diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8051.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8051.MAP index 043e340b8e02e8da02bea7ff78149733b0644f1f..4cb3777107aaf944c4d5ca0ebacf23dcf579486f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8051.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8051.MAP @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b51698dfc723af7d801ea577caf48e301245ec7f379c91f6a019b8da1795db34 -size 119 +#Syntax Highlight Extension Mappings for 8051 +SDI=8051.SYN +ASM=8051.SYN +A51=8051.SYN +S51=8051.SYN +H=C.SYN +C=C.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8051.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8051.SYN index 1931bfb7e22e8c91af511a6d723d5f1a4e42d396..e301735c00310b09768ddee8830fd3ef64d4f009 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8051.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8051.SYN @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12c922c4b6682f1d1e167fb00b15fba8921213f647ff566ca8f967e46ccad63a -size 702 +# +# Labcenter Electronics +# +# 8051 syntax highlighter definition file. +# +line_comment=;.*$ +string='([^'\\]|\\.)*' +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b +keyword=\b(ACALL|ADD|ADDC|AJMP|ANL|CALL|CJNE|CLR|CPL|DA|DEC|DIV|DJNZ|INC|JB|JBC|JC|JMP|JNC|JNB|JNZ|JZ|LCALL|LJMP|MOV|MOVC|MOVX|MUL|NOP|ORL|POP|PUSH|RET|RETI|RL|RLC|RR|RRC|SETB|SJMP|SUBB|SWAP|XCH|XRL)\b +extensions=\b(A(B|CC)|B|C|D(PH|PL|PTR)|R[0-7]|SP|PSW)\b +macro=\b(ASEG|BSEG|COMMON|CSEG|DB|DBIT|DS|DSEG|DW|END|ENDIF|ENDMOD|ELSE|EQU|EXTERN|EXTRN|HIGH|ISEG|LOW|LSTPAG|MODULE|NAME|ORG|PAGE|PAGSIZ|PUBLIC|RSEG|SEGMENT|SET|TITEL|TITL|USING|XSEG)\b +operator=(\+|-:|=|@|#|\$|\[|\]) + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8086.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8086.MAP index 80dfa9f68a430ee7c1c0a93cbac11ef4fd9f99db..4186a8542cce2a8f27c97d6b25f22b592f0d43ea 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8086.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8086.MAP @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ee9b44ac64c2667c4a3b1cd799a655d33e71a97d4b64dba375c3246f20b4c22f -size 119 +#Syntax Highlight Extension Mappings for 8086 +SDI=8086.SYN +ASM=8086.SYN +H=C.SYN +C=C.SYN +CPP=CPP.SYN +HPP=CPP.SYN diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8086.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8086.SYN index 36bebf3cb6a77d1035edd4dd1b0a1837063c3c86..2d1f2b3c973af8c5accb42396e6ea08966038564 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8086.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/8086.SYN @@ -1,3 +1,53 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75dab73c2f73e73e4a2849ed89d983d752baf7d181eea95c8c2fdd1d13da9035 -size 2646 +# +# Labcenter Electronics +# +# 8086 syntax highlighter definition file. +# +line_comment=;.*$ +string='([^'\\]|\\.)*' +operator=(\+|-|<|>|/(/)?) +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b + +keyword=\b(ad(c|d)|dec|(i)?div|(i)?mul|inc|dec|neg|s(bb|ub)\b +keyword=\b(aa(a|d|m|s)|da(a|s))\b +keyword=\b(and|not|(x)?or|r[co][rl]|s[ah][rl])\b +keyword=\b(test|cmp(s)?|int(o)?)\b +keyword=\bj(a(e)?|nb(e)?|b(e)?|na(e)?|c(xz)?|ecxz|e|z|g|nle|ge|nl|l|nge|le|ng|nc|ne|nz|no|np|po|ns|o|p|pe|s)\b +keyword=\b(lds|les|lea|lods(b|w)|mov(s(b|w))?|stos(b|w)|xchg|xlat(b)?)\b +keyword=\b(clc|cld|cli|cmc|(l|s)ahf|pop(f)?|push(f)?,st(c|d|i))\b +keyword=\b(in|out)\b +keyword=\b(jcxz|jecxz|loop(e|z|ne|nz)?))\b +keyword=\b(hlt|lock|not|wait)\b +keyword=\b(enter|leave)\b +keyword=\b(rep(e|z|ne|nz)?|cbw|cwd|call|iret|ret(n|f)?|jmp)\b + +extensions=\b(align|even|label|org|else(if|if2)?|endif|if(2|b|nb|def|ndef|dif(i)?|e|idn(i)?)?)\b +extensions=\.(break|continue|else(if)?|end(if|w)|if|repeat|until(cxz)?|while)\b +extensions=\.(err(2|b|def|dif(i)?|e|idn(i)?|n(b|def|z))?)\b +extensions=\b((t|s)?byte|(d|sd|f|q|s)?word|real(4|8|10)|=|(text)?equ|d(b|w|d|t|f|q))\b +extensions=\b((sub)?title|tfcond))\b +extensions=\b(assume|comment|echo|end|include(lib)?|option|(pop|push)context)\b +extensions=\b(endp|invoke|proc|proto|uses)\b +extensions=\b(comm|extern(def)?|public)\b +extensions=\b(assume|\group|segment)\b +extensions=\.((no)?cref|list(all|if|macro(all)?)?|nolist(if|macro)?)\b +extensions=\.(alpha|dosseg|seq|code|const|(far)?data(\?)?|exit|model|stack|startup|radix|8086)\b +extensions=\b((cat|in|size|sub)str)\b +extensions=\b(ends|record|struct|typedef|union)\b + +extensions=\b(ALIGN|EVEN|LABEL|ORG|ELSE(IF|IF2)?|ENDIF|IF(2|B|NB|DEF|NDEF|DIF(I)?|E|IDN(I)?)?)\b +extensions=\.(BREAK|CONTINUE|ELSE(IF)?|END(IF|W)|IF|REPEAT|UNTIL(CXZ)?|WHILE)\b +extensions=\.(ERR(2|B|DEF|DIF(I)?|E|IDN(I)?|N(B|DEF|Z))?)\b +extensions=\b((T|S)?BYTE|(D|SD|F|Q|S)?WORD|REAL(4|8|10)|=|(TEXT)?EQU|D(B|W|D|T|F|Q))\b +extensions=\b((SUB)?TITLE|TFCOND))\b +extensions=\b(ASSUME|COMMENT|ECHO|END|INCLUDE(LIB)?|OPTION|(POP|PUSH)CONTEXT)\b +extensions=\b(ENDP|INVOKE|PROC|PROTO|USES)\b +extensions=\b(COMM|EXTERN(DEF)?|PUBLIC)\b +extensions=\b(ASSUME|\GROUP|SEGMENT)\b +extensions=\.((NO)?CREF|LIST(ALL|IF|MACRO(ALL)?)?|NOLIST(IF|MACRO)?)\b +extensions=\.(ALPHA|DOSSEG|SEQ|CODE|CONST|(FAR)?DATA(\?)?|EXIT|MODEL|STACK|STARTUP|RADIX|8086)\b +extensions=\b((CAT|IN|SIZE|SUB)STR)\b +extensions=\b(ENDS|RECORD|STRUCT|TYPEDEF|UNION)\b + +macros=\b(endm|exitm|goto|local|macro|purge)\b +macros=\b(ENDM|EXITM|GOTO|LOCAL|MACRO|PURGE)\b diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO-STM32.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO-STM32.MAP index 73a59faa826f62fe561258acc0ccfe5ad0624e71..ceccd5102a2c13a173261dca18e6933886f7bb62 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO-STM32.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO-STM32.MAP @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:43e3f342a4056bb7fec9ff7d0f41525e42cd0a29d570307def066e3efe335cf1 -size 105 +#Syntax Highlight Extension Mappings for CM3 +ASM=CM3.SYN +H=CPP.SYN +C=CPP.SYN +HPP=CPP.SYN +CPP=CPP.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO.MAP index 925d0b98b0f6d6128b13ecd4733e68045a99ff25..6e06944deb59d0a46794dfffc48a08f6e73cb384 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO.MAP @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b43e459a7dc0dcdca821c7ed0ae8b69b52340f115a7756386967ad22aa1e257 -size 159 +#Syntax Highlight Extension Mappings for AVR +SDI=AVR.SYN +ASM=AVR.SYN +INC=AVR.SYN +H=C.SYN +C=C.SYN +HPP=CPP.SYN +CPP=CPP.SYN +BAS=BASIC.SYN +INO=ARDUINO.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO.SYN index 5efb9d694c8d2ee40449d4f4e0a31aa0c49a3c06..83420469407f3e2190f0152bf6fa2cbb28b30a38 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARDUINO.SYN @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f277bbff8d5ce3a8a08b7f72d39f092a6a620f03ed3540797d3b347401235ff2 -size 1902 +# +# Labcenter Electronics +# +# Arduino syntax highlighter definition file. +# +line_comment=//.*$ +block_comment_open=/\* +block_comment_close=\*/ +string="([^"\\]|\\.)*" +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b +constant='([^'\\]|\\.)*' +keyword=\b(auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b +extensions=\b(asm|_cs|cdecl|_ds|_es|far|fortran|huge|interrupt|near|pascal|_ss)\b +macro=^\w*#(define|include|if|endif|else).*$ +operator=(\?|:|\|\||&&|~|\+\+|--) +operator=(&|\^|\||<<|>>|\*|/|%|\+|-|=|!|<|>)(=)? +# LITERAL1 specifies constants +extensions=\b(HIGH|LOW|INPUT|INPUT_PULLUP|OUTPUT|DEC|BIN|HEX|OCT|PI|HALF_PI|TWO_PI|LSBFIRST|MSBFIRST|CHANGE|FALLING|RISING|DEFAULT|EXTERNAL|INTERNAL|INTERNAL1V1|INTERNAL2V56)\b +# KEYWORD1 specifies datatypes and C/C++ keywords +keyword=\b(boolean|byte|class|FALSE|new|null|private|protected|public|String|this|throw|try|TRUE)\b +# KEYWORD2 specifies methods and functions +extensions=\b(abs|acos|asin|atan|atan2|ceil|constrain|cos|degrees|exp|floor|log|map|max|min|radians|random|randomSeed|round|sin|sq|sqrt|tan)\b +extensions=\b(bitRead|bitWrite|bitSet|bitClear|bit|highByte|lowByte)\b +extensions=\b(analogReference|analogRead|analogWrite|attachInterrupt|detachInterrupt|delay|delayMicroseconds|digitalWrite|digitalRead|interrupts|millis|micros|noInterrupts|noTone|pinMode|pulseIn|shiftIn|shiftOut|tone)\b +extensions=\b(Serial|Serial1|Serial2|Serial3|begin|end|peek|read|print|println|available|flush|setTimeout|find|findUntil|parseInt|parseFloat|readBytes|readBytesUntil|readString|readStringUntil)\b +# USB-related keywords +extensions=\b(Keyboard|Mouse|press|release|releaseAll|accept|click|move|isPressed)\b +extensions=\b(setup|loop)\b diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARM7.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARM7.MAP index 3d75370c2c4db162b7b2c9a1328e758f502e61fd..9d0e2903d6af47c641b09e3eb2825884add9e346 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARM7.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/ARM7.MAP @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ad5c02968ae649757fa1d1901dc4f3ce366dea05551cf5f596b26c4f121a5a6 -size 89 +#Syntax Highlight Extension Mappings for ARM7 +H=C.SYN +C=C.SYN +HPP=CPP.SYN +CPP=CPP.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/AVR.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/AVR.MAP index 925d0b98b0f6d6128b13ecd4733e68045a99ff25..6e06944deb59d0a46794dfffc48a08f6e73cb384 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/AVR.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/AVR.MAP @@ -1,3 +1,10 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b43e459a7dc0dcdca821c7ed0ae8b69b52340f115a7756386967ad22aa1e257 -size 159 +#Syntax Highlight Extension Mappings for AVR +SDI=AVR.SYN +ASM=AVR.SYN +INC=AVR.SYN +H=C.SYN +C=C.SYN +HPP=CPP.SYN +CPP=CPP.SYN +BAS=BASIC.SYN +INO=ARDUINO.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/AVR.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/AVR.SYN index 189330417b857d18bf1fb1c5a5f77ddd654e9256..e7d6ffae4c774247860d8cfb2745ba4908a1f366 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/AVR.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/AVR.SYN @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:239576851cf0a3dfad51bdaebc9cd4ebdc88aa0af9ecc4d66225457118798a8c -size 846 +# +# Labcenter Electronics +# +# AVR syntax highlighter definition file. +# +line_comment=;.*$ +string='([^'\\]|\\.)*' +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b +keyword=\b(ad(d|c|iw)|and(i)?|cbr|clr|com|cp(c|i)?|dec|eor)\b +keyword=\b(fmul(su|s)?|inc|mul(su|s)?|neg|or(i)?|sub(i)?|sbc(i)?|sbiw|sbr|ser|tst)\b +keyword=\b(br(bs|bc|eq|ne|cs|cc|sh|lo|mi|pl|ge|lt|hs|hc|ts|tc|vs|vc|ie|id))\b +keyword=\b(call|cpse|eicall|eijmp|ijmp|icall|jmp|rjmp|rcall|ret(i)?|sb(rc|rs|ic|is))\b +keyword=\b(elpm|espm|in|ld(i|s|d)?|lpm|mov(w)?|out|push|pop|st(s|d)?|spm)\b +keyword=\b(asr|cbi|cl(c|n|z|i|s|v|t|h)|lsl|lsr|nop|ror|rol|sbi|se(c|n|z|i|s|v|t|h)|swap|sleep|bst|bld|bset|bclr|wdr)\b +extensions=\b\.(org|equ|include|macro|endmacro|set|byte|cseg|db|def|device|dseg|dw|eseg|exit|list|nolist|listmac)\b diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BASCOM-AVR.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BASCOM-AVR.SYN index f2221cafec80165aa567648cafcaa8c2048ad22e..6009640fab7edd0d6ba309df406e9523a145c08d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BASCOM-AVR.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BASCOM-AVR.SYN @@ -1,3 +1,41 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:48cd157fe49d0b4b476b7eb3e31a0bda4a99568e1f3f49e51d977f2753f9323d -size 4638 +line_comment=(REM|').*$ +string="([^"\\]|\\.)*" +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b +constant='([^'\\]|\\.)*' + +keyword=\b(IF|THEN|ELSE|ENDIF|FOR|NEXT|EXIT|DO|LOOP|WHILE|WEND|UNTIL|END|MOD|$INCLUDE|GOSUB|RETURN|GOTO|DATA|STOP)\b +keyword=\b(INPUTHEX|INPUT|DIM|PRINT|INKEY|WAIT|ON|DECR|INCR|PRIORITY|SET|RESET|DISABLE|INTERRUPTS|SERIAL)\b +keyword=\b(TIMER0|TIMER1|TIMER2|LOCAL|SWAP|DELAY|TO|ENABLE|I2CSEND|I2CRECEIVE|START|LOAD|COUNTER|BIT|BYTE)\b +keyword=\b(INTEGER|AS|LEFT|RIGHT|ROTATE|CLS|$DATA|$EEPROM|LOWERLINE|UPPERLINE|HOME|SHIFTLCD|LOCATE|SHIFTCURSOR|UPPER)\b +keyword=\b(LOWER|CURSOR|OFF|NOBLINK|BLINK|DISPLAY|LCD|LCDHEX|DEFINT|DEFBIT|DEFBYTE|DEFWORD|BITWAIT|IDLE|POWERDOWN|I2CSTART)\b +keyword=\b(I2CSTOP|I2CRBYTE|I2CWBYTE|WAITMS|CONST|CALL|SUB|DECLARE|CHR|ELSEIF|MAKEDEC|MAKEBCD|BCD|$NOINIT|GETRC5|$CRYSTAL)\b +keyword=\b($BAUD|THIRD|FOURTH|THIRDLINE|FOURTHLINE|DEFLCDCHAR|ACK|NACK|COUNTER0|COUNTER1|COUNTER2|CONFIG)\b +keyword=\b(MODE|INTERNAL|EXTERNAL|GATE|TIMER|ALIAS|READ|RESTORE|$ROMSTART|SOUND|INP|OUT|$SERIALOUTPUT|$SERIALINPUT|WORD|$OBJ|XRAM|$RAMSTART)\b +keyword=\b($RAMSIZE|$LARGE|$LCD|$LCDRS|$ASM|$END|ASM|ASC|LEN|VAL|LOW|HIGH|HEXVAL|HEX|STR|MID|SPACE|STRING|LONG|WAITKEY|NOECHO|WATCHDOG)\b +keyword=\b(LCASE|UCASE|WRITEEEPROM|READEEPROM|SELECT|CASE|PEEK|CPEEK|IS|POKE|$NOSP|BREAK|$NOBREAK|ABS|LTRIM|STEP|NOSAVE|RTRIM)\b +keyword=\b(LOOKUP|TRIM|$RANGECHECK|ERR|VARPTR|ERASE|DEBOUNCE|MAKEINT|LOOKUPSTR|$SIM|INPUTBIN|PRINTBIN|SPIINIT|SPIIN|SPIOUT|SHIFTOUT)\b +keyword=\b(SHIFTIN|PRINT1|PRINTHEX1|INPUT1|INPUTHEX1|SINGLE|FUSING|$IRAMSTART|$REGFILE|OUTPUT|CLOSE|OPEN|BYVAL)\b +keyword=\b(SHIFT|$DEFAULT|FUNCTION|COMPARE1A|COMPARE1B|PWM1A|PWM1B|BAUD|$XRAMSTART|$XRAMSIZE|$SERIALINPUT2LCD|BOOLEAN)\b +keyword=\b(ERAM|AT|1WRESET|1WWRITE|1WREAD|LOADADR|POWERSAVE|PUSHALL|POPALL|$LCDPUTDATA|$LCDPUTCTRL|CLOCKDIVISION|WAITUS)\b +keyword=\b($LIB|$EXTERNAL|SPIMOVE|INSTR|SQR|RND|GETRC|LPRINT|TOGGLE|INPW|OUTW|CRYSTAL|PULSEOUT|GETKBD|LET|CHECKSUM|FORMAT)\b +keyword=\b(READMAGCARD|PULSEIN|CPEEKH|TIME$|DATE$|GETADC|$WAITSTATE|1WSEARCHFIRST|1WSEARCHNEXT|1WIRECOUNT|$NORAMCLEAR)\b +keyword=\b(ENDIF|HIGHW|DEFSNG|DEFLNG|$OLDWAITMS|LOG|EXP|CRC8|DTMFOUT|SPC|ECHO|BIN|LOOKDOWN|SHOWPIC|PSET|$BGF|BIN2GREY|GREY2BIN)\b +keyword=\b(MIN|MAX|BINVAL|BCRESET|BCCALL|BCDEF|BCINIT|RC5SEND|CRC16|POWER|COS|SIN|TAN|ATN|RAD2DEG|DEG2RAD|INT|FRAC|SINH|COSH|TANH|LOG10|LINE|SONYSEND)\b +keyword=\b(SHOWPICE|CIRCLE|I2CREPSTART|I2CINIT|OVERLAY|$BAUD1|FIX|ROUND|ASIN|ACOS|ATN2|$TINY|LOADLABEL|SETFONT)\b +keyword=\b(LCDAT|SERIN|SEROUT|RC6SEND|ISCHARWAITING|DAYOFWEEK|SECOFDAY|SYSSEC|TIME|DATE|DAYOFYEAR|SYSDAY|SECELAPSED|SYSSECELAPSED)\b +keyword=\b(INITLCD|CLOSESOCKET|TCPWRITE|TCPREAD|SOCKETSTAT|SOCKETCONNECT|GETSOCKET|SOCKETLISTEN|TCPWRITESTR|GETDSTIP|GETDSTPORT|UDPWRITE)\b +keyword=\b(UDPREAD|UDPWRITESTR|X10DETECT|X10SEND|SENDSCAN|PS2MOUSEXY|SENDSCANKBD|$MAP|$EEPLEAVE|BASE64DEC|IP2STR)\b +keyword=\b(INITFILESYSTEM|FREEFILE|APPEND|LOC|LOF|SEEK|BSAVE|BLOAD|EOF|FILEATTR|SGN|BINARY|DISKFREE|DISKSIZE)\b +keyword=\b(FLUSH|DIR|KILL|VER|GET|PUT|SETTCP|FILELEN|FILEDATETIME|FILEDATE|FILETIME|DRIVECHECK|DRIVERESET|DRIVEINIT|DRIVEGETIDENTITY)\b +keyword=\b(DRIVEWRITESECTOR|DRIVEREADSECTOR|GETATKBD|WRITE|$PROG|$INC|TIMER3|$EEPROMHEX|GLCDCMD|$INITMICRO|ENCODER|DOUBLE)\b +keyword=\b($TIMEOUT|CRC32|VERSION|BITS|NBITS|$HWSTACK|$SWSTACK|$FRAMESIZE|BUFSPACE|$NOTYPECHECK|$TYPECHECK|CHDIR|MKDIR|RMDIR)\b +keyword=\b(GETATTR|NAME|PWM0A|PWM0B|PWM2A|PWM2B|RC5SENDEXT|$LOADER|GRAY2BIN|BIN2GRAY|SPLIT|LOADWORDADR|BAUD1|DEFDBL|$LOADERSIZE|BASE64ENC)\b +keyword=\b(MAKETCP|$XA|SNTP|SETTCPREGS|GETTCPREGS|SETIPPROTOCOL|TCPCHECKSUM|MEMCOPY|GETATKBD|BOX|CLEAR|$NOCOMPILE|DCF77TIMEZONE)\b +keyword=\b(PWM1C|PWM3A|PWM3B|PWM3C|PWM4A|PWM4B|PWM4C|PWM5A|PWM5B|PWM5C|DAC|DATAPTR|$PROGRAMMER|$BOOT|$DBG|$LCDVFO|$SERIALINPUT1|$SERIALOUTPUT1|DBG|DEBUG|GETATKBDRAW)\b +keyword=\b(GLCDDATA|LCDCONTRAST|STCHECK|1WVERIFY|MACRO|BOXFILL|READHITAG|ADR|ADR2|CRC16UNI|MAKEMODBUS|LCDCMD|LCDDATA|$RESOURCE)\b +keyword=\b(LOWW|QUOTE|$PROJECTTIME|NOCURSOR|CHARPOS|$BIGSTRINGS|$EEPROMSIZE|REPLACECHARS|TYPE|AESENCRYPT|AESDECRYPT|BYLABEL)\b +keyword=\b(READSIG|LCDAUTODIM|CHECKFLOAT|$NORAMPZ|$CRYPT|CHECKSUMXOR|DWORD|$VERSION|DELCHAR|DELCHARS|INSERTCHAR|$AESKEY|$FILE)\b +keyword=\b(SETREG|GETREG|XTEAENCODE|XTEADECODE|SAVE|SAVEALL|STR2DIGITS2|CANBAUD|CANRESET|CANCLEARALLMOBS|CANSEND|CANRECEIVE|CANSELPAGE)\b +keyword=\b(CANCLEARMOB|CANGETINTS|CANID|SOCKETDISCONNECT|SOCKETCLOSE|TCPREADHEADER|UDPREADHEADER|$NOFRAMEPROTECT|STR2DIGITS|$FRAMEPROTECT|SORT|$FRAMECHECK)\b + +operator=(\+|-|\*|\\|/|\^|=|<>|<|>|<=|>=|NOT|AND|OR|XOR) diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BASIC.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BASIC.SYN index 0f6b3cdbc9a9b9dd6a0ec8489af6fb9ac662ae6b..a746fd71811eeb9f781fa4f61fc5de9bb3b0de0a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BASIC.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BASIC.SYN @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9451003b66ff86607367c3fef47690ee09342ef587dcf5fef0b6bacb15f2ae33 -size 788 +# +# Labcenter Electronics +# +# Basic syntax highlighter definition file. +# +line_comment=(REM|').*$ +string="([^"\\]|\\.)*" +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b +constant='([^'\\]|\\.)*' +keyword=\b(IF|THEN|ELSE|ELSEIF|END|WHILE|WEND|DO|LOOP|SELECT|CASE|FOR|NEXT|CONFIG)\b +keyword=\b(DECLARE|FUNCTION|SUB|DIM|EXIT|GOSUB|GOTO|RETURN|ON|CONST|VALUE|POPALL|PUSHALL|SHIFT|SWAP|BYVAL|VARPTR|LOCAL|BITS)\b +extensions=\b(PRINT|ASC|UCASE|LCASE|TRIM|SPLIT|LTRIM|INSTR|SPACE|RTRIM|LEFT|LEN|MID|RIGHT|VAL|STR|CHR|HEX|HEXVAL)\b +extensions=\b(ACOS|ASIN|ATN|ATN2|EXP|RAD2DEG|FRAC|TAN|TANH|COS|COSH|LOG|LOG10|ROUND|ABS|INT|MAX|MIN|SQR|SGN|POWER|SIN|SINH|FIX|INCR|DECR|DEG2RAD)\b +operator=(\+|-|\*|\\|/|\^|=|<>|<|>|<=|>=|NOT|AND|OR|XOR) diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BSTAMP.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BSTAMP.MAP index 2067ffcf2aeed8462086331da8f0a3f48ea3950f..6cf4fff9326095f1f0a0d3c92c9f2f8adab69c8e 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BSTAMP.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/BSTAMP.MAP @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b0725bb38a65c3a17aca133e042d7f89aabed665631c1b0677e37f1f2a08e1b9 -size 102 +#Syntax Highlight Extension Mappings for Basic Stamp +BAS=BSTAMP.SYN +BS1=BSTAMP.SYN +BS2=BSTAMP.SYN diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/C.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/C.SYN index 6cfa4b01d25edeb355b0d4c36b3e62338a199b85..5dc7c9c0338656b02ab73624d21abe1856c18460 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/C.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/C.SYN @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a813d502114007c4fdb49728bfa29a0bf7c674b3f85ef6ed44ef07eacc7421eb -size 719 +# +# Labcenter Electronics +# +# C syntax highlighter definition file. +# +line_comment=//.*$ +block_comment_open=/\* +block_comment_close=\*/ +string="([^"\\]|\\.)*" +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b +constant='([^'\\]|\\.)*' +keyword=\b(auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b +extensions=\b(asm|_cs|cdecl|_ds|_es|far|fortran|huge|interrupt|near|pascal|_ss)\b +macro=^\w*#(define|include|if|endif|else).*$ +operator=(\?|:|\|\||&&|~|\+\+|--) +operator=(&|\^|\||<<|>>|\*|/|%|\+|-|=|!|<|>)(=)? + diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/CPP.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/CPP.SYN index a958c3caff983a20537225a02d98e8db87353608..37fc46601e43906d32920e9eb84d0e798e751697 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/CPP.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/CPP.SYN @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:26eb59a02bfb0f1500c42858285c53e995fcde15885e940aab14938af208c40f -size 960 +# +# Labcenter Electronics +# +# C++ syntax highlighter definition file. +# +line_comment=//.*$ +block_comment_open=/\* +block_comment_close=\*/ +string="([^"\\]|\\.)*" +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b +constant='([^'\\]|\\.)*' +constant=\b(false|true)\b +keyword=\b(auto|bool|break|case|catch|char|class|const|const_cast|continue|default|delete|do|double|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_cast|struct|switch|template|this|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b +extensions=\b(asm|_cs|cdecl|_ds|_es|far|fortran|huge|interrupt|near|pascal|_ss)\b +macro=^\w*#(define|include|if|endif|else).*$ +operator=(\?|:|\|\||&&|~|\+\+|--) +operator=(&|\^|\||<<|>>|\*|/|%|\+|-|=|!|<|>)(=)? + diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/EASYHDL.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/EASYHDL.SYN index 5797bb7205fac67bcdca919e70deab0e8a7e9fc0..bc2b936c0b272029b7cb175dfe5941d09f0eaa4e 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/EASYHDL.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/EASYHDL.SYN @@ -1,3 +1,20 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2a7971e21d7d332a9bba240cb341f5d147e52a4a412d55708aa7022dfa8a07a -size 1082 +# +# Labcenter Electronics +# +# EASYHDL syntax highlighter definition file. +# +line_comment=(//|REM).*$ +#block_comment_open=/\* +#block_comment_close=\*/ +string="([^"\\]|\\.)*" +constant=\b(EVTID|EVTTIME|REALTIME|TDSCALE|RANDOM|EI_ANY|EI_BOOT|EI_SETTLE|EI_INPUT|EI_OUTPUT|EI_CALLBACK|FLT|SHI|SLO|WHI|WLO|INACTIVE|FF|FT|POSEDGE|FALSE|ACTIVE|TF|NEGEDGE|TT|TRUE|PI)\b +constant=(\$[\da-fA-F]+)|(\%[0-1]+)\b +constant=\b((0(x|X)[\da-fA-F]+)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(f|p|n|u|m|K|M|G|T)?\b +#constant='([^'\\]|\\.)*' +keyword=\b(ABORT|ALIAS|BOOL|BOUNDSTEP|BREAK|CALLBACK|CASE|CONTINUE|DATA|DEFAULT|DOUBLE|ELIF|ELSE|ELSEIF|ELSIF|END|ENDIF|ENDMAP|ENDON|ENDSW|FLOAT|FOR|GOSUB|GOTO|IF|INT|IPROP|LET)\b +keyword=\b(MAP|NEXT|NODE|NPROP|ON|PAUSE|PIN|PRINT|READ|REM|REPEAT|RESTORE|RETURN|SEED|SLEEP|STRING|SUSPEND|SWITCH|TIME|TIMER|TPROP|UNTIL|WAIT|WEND|WHILE)\b +keyword=\b(DEG|RAD|SIN|COS|TAN|ASIN|ACOS|ATAN|SQRT|LN|EXP|POW|ROUND|FRAC|ASC|CHR|LEN|SUBSTR)\b +keyword=\b(AT|AFTER|EVERY|THEN|STEP|TO)\b +#extensions=\b()\b +operator=AND|OR|&|\^|\||<<|>>|\*|/|%|\+|-|=|!|<|> + diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/HC11.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/HC11.MAP index 38397d3241e8aab7175e8924794ad8765f9e6490..ee46e31ca227b7831486378f2dbf4bdfaa0454b8 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/HC11.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/HC11.MAP @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be28d316f25612d7570276a5b4c292ae8c91d0bf0a8499262a09a759b4ee1fad -size 91 +#Syntax Highlight Extension Mappings for HC11 +SDI=HC11.SYN +ASM=HC11.SYN +H=C.SYN +C=C.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/LUA.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/LUA.SYN index 98102faaf44e8722476ff8808a6803bcb60abc44..d6b076932d8b1eb6f2a44d7fed5718b8339be083 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/LUA.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/LUA.SYN @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:21d4de83bea5bbdaf6ebb3d5c66678e1338151bef654c4ddedd22e2154abddef -size 635 +# +# Labcenter Electronics +# +# LUA syntax highlighter definition file. +# This is a first draft. May require tweaking. +# Some thought might be given to dynamic parsing of actual function names and table members. +# +line_comment=--.*$ +block_comment_open=--[[ +block_comment_close=--]] +string="([^"\\]|\\.)*"|'([^'\\]|\\.)*' +constant=\b((0(b|B)[01]*)|(0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)\b +keyword=\b(if|then|else|elseif|end|repeat|until|while|do|for|in|function|local|return|break)\b +extensions=\b(false|true|nil)\b +macro=(require).*$ +operator=(\+|-|*|/|^|=|~=|==|>|<|>=|<=) +operator=(and|or|not) + diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC10.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC10.MAP index 8204d7b0e23cefe51acec128545895156d9f7e26..3411774d7572278fed607488f2e3498f30580b89 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC10.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC10.MAP @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b2b1b20e7d98ca9d402518d191b08cf9634d2c73f4daa88fffa63b3dab26a0a -size 151 +#Syntax Highlight Extension Mappings for PIC10 +SDI=PIC10.SYN +ASM=PIC10.SYN +INC=PIC10.SYN +AS=PIC10.SYN +H=C.SYN +C=C.SYN +CPP=CPP.SYN +BAS=BASIC.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC10.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC10.SYN index 98bf58b885e6f4cc5653dffb360fdf1f6bbfe703..580a83bc6ac68fd668b68f2e9b6749f76f9fb17d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC10.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC10.SYN @@ -1,3 +1,30 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9423133e24286c9fafa90762337794af29ea99ef7ddf95b9c0469ead4222431e -size 2012 +# +# Labcenter Electronics +# +# Microchip PIC10 syntax highlighter definition file. (12bit instruction set) +# +line_comment=;.*$ +string='([^'\\]|\\.)*' +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b + +#PIC10 +keyword=\b(NOP|OPTION|SLEEP|CLRWDT|TRIS|MOVWF|CLRW|CLRF|SUBWF|DECF|IORWF|ANDWF|XORWF|ADDWF|MOVF|COMF)\b +keyword=\b(INCF|DECFSZ|RRF|RLF|SWAPF|INCFSZ|BCF|BSF|BTFSC|BTFSS|RETLW|CALL|GOTO|MOVLW|IORLW|ANDLW|XORLW)\b + +extensions=\b(ADCON[0-1]|ADRES|CCP[1-2]CON|CCPR[1-2](L|H)|CMCON|EEADR|EECON[1-2]|EEDATA|F(SR)?|GPIO|INDF|INTCON|LCDCON|LCDD(0[0-0]|1[0-5])|LCDPS|LCDSE|OSCCAL|PCL|PCLATH|PCON|PIE[1-2]|PIR[1-2]|PORT[A-G]|PR2|RCREG|RCSTA|RTCC|SPBRG|SSP(ADD|BUF|CON|STAT)|STATUS|T[1-2]CON|TMR((0|2)|1(H|L))|TRIS[A-G]|TXREG|TXSTA|VRCON|WREG|W)\b +extensions=\b(AD(CS[0-1]|IE|IF|ON)|BF|BO|BRGH|C([1-2]OUT)?|CAL[0-5]|CCP[1-2](IE|IF|M[0-3]|X|Y)|CHS[0-2]|CK(E|P)|CM[0-2]|CIS|CMI(E|F)|CREN|CS[0-1]|CSRC|D(A|C)|EEI(E|F)|FERR|GIE|GO_DONE|IBF|IBOV|INT(F|E(DG)?)|IRP|LCD(EN|I(E|F))|LMUX[0-1]|LP[0-3]|NOT(_PD|_RBPU|_RBWU|_TO)|OBF|OERR|PA[0-1]|PCFG[0-2]|PEIE|POR|P|PS([0-2]|A|P(IE|IF|MODE))|RBI(E|F)|RBWUF|RCI(E|F)|RD|RP[0-1]|RW|RX9(D)?|S(E(0|5|9|12|16|20|27|29))?|SLPEN|SMP|SPEN|SREN|SSP(EN|IE|IF|M[0-3]|OV)|SYNC|T0(CS|IE|IF|SE)|T[1-2]CKPS[0-1]|T1OSCEN|TMR(1CS|[1-2]IE|[1-2]IF|[1-2]ON)|TOUTPS[0-3]|TRISE[0-2]|TRMT|TX(89|9|9D|D8|EN|I(E|F))|UA|VGEN|VR([0-3]|EN|OE|R)|WCOL|WR(EN|ERR)?|Z)\b + +macro=\b(ADDCF|ADDDCF|BC|BNC|BNDC|BZ|BNZ|CLRC|CLRDC|CLRZ|MOVFN|NEGF|SETC|SETDC|SETZ|SKPC|SKPNC|SKPDC|SKPNDC|SKPZ|SKPNZ|SUBCF|SUBDCF|TSTF)\b +macro=\b(BANKISEL|BANKSEL|CBLOCK|CODE|CONSTANT|DATA|DB|DE|DT|DW|ELSE|END|ENDC|ENDIF|ENDM|ENDW|EQU|ERROR|ERRORLEVEL|EXITM|EXPAND|EXTERN|FILL|GLOBAL|IDATA|IF|IFDEF|IFNDEF|LIST|LOCAL|MACRO|MESSG|NOEXPAND|NOLIST|ORG|PAGE|PAGESEL|PROCESSOR|RADIX|RES|SET|SPACE|SUBTITLE|TITLE|UDATA|UDATA_OVR|UDATA_SHR|VARIABLE|WHILE|__BADRAM|__CONFIG|__IDLOCS|__MAXRAM)\b +macro=(#DEFINE|#INCLUDE|#UNDEFINE)\b + +operator=(\+|-|<|>|/(/)?) + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC12.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC12.MAP index e07c83edb7677e9d6441c7f12772bfacdd388815..942100a71ebdc85b82043eab7c53633f48723ac9 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC12.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC12.MAP @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:684ed8f4f6868ce3e2cc7a5dc25d710a5b5c887477f0b526deec3b3492af6b93 -size 151 +#Syntax Highlight Extension Mappings for PIC12 +SDI=PIC16.SYN +ASM=PIC16.SYN +INC=PIC16.SYN +AS=PIC16.SYN +H=C.SYN +C=C.SYN +CPP=CPP.SYN +BAS=BASIC.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC16.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC16.MAP index 613f9650c11ef4a129aa46de51ecb58c3dc73a76..67f642fbc881ee76bdf037217e9edf91f5a8262c 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC16.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC16.MAP @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb71694e0578fc9d990c28ee75017ba20839b9bdcaaab63ebd32ea7a3aea10ba -size 151 +#Syntax Highlight Extension Mappings for PIC16 +SDI=PIC16.SYN +ASM=PIC16.SYN +INC=PIC16.SYN +AS=PIC16.SYN +H=C.SYN +C=C.SYN +CPP=CPP.SYN +BAS=BASIC.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC16.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC16.SYN index 3bf832c4476864a44d6c193af7990760768f47d8..abfc63dcdb1d8373df677b662d9058fe72b8b2d8 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC16.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC16.SYN @@ -1,3 +1,25 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:696b3745ffcc88d4329ca3af317544f54200c67608997bd907ad79b8f75e7e98 -size 2195 +# +# Labcenter Electronics +# +# Microchip PIC16 syntax highlighter definition file. +# +line_comment=;.*$ +string='([^'\\]|\\.)*' +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b +#PIC16C5 +keyword=\b(addwf|andlw|andwf|bcf|bsf|btfsc|btfss|call|clrf|clrw|clrwdt|comf|decf|decfsz|goto|incf|incfsz|iorlw|iorwf|movf|movlw|movwf|nop|option|retlw|rlf|rrf|sleep|subwf|swapf|tris|xorlw|xorwf)\b +#PIC16C +keyword=\b(addlw|retfie|return|sublw)\b +#PIC17C +keyword=\b(addwfc|btg|cpfseq|cpfsgt|cpfslt|daw|dcfsnz|infsnz|lcall|movfp|movlb|movlr|movpf|mullw|mulwf|negw|rlcf|rlncf|rrcf|rrncf|setf|subwfb|tablrd|tablwt|tlrd|tlwt|tstfsz)\b + +extensions=\b(ADCON[0-1]|ADRES|CCP[1-2]CON|CCPR[1-2](L|H)|CMCON|EEADR|EECON[1-2]|EEDATA|F(SR)?|GPIO|INDF|INTCON|LCDCON|LCDD(0[0-0]|1[0-5])|LCDPS|LCDSE|OSCCAL|PCL|PCLATH|PCON|PIE[1-2]|PIR[1-2]|PORT[A-G]|PR2|RCREG|RCSTA|RTCC|SPBRG|SSP(ADD|BUF|CON|STAT)|STATUS|T[1-2]CON|TMR((0|2)|1(H|L))|TRIS[A-G]|TXREG|TXSTA|VRCON|WREG|W)\b +extensions=\b(AD(CS[0-1]|IE|IF|ON)|BF|BO|BRGH|C([1-2]OUT)?|CAL[0-5]|CCP[1-2](IE|IF|M[0-3]|X|Y)|CHS[0-2]|CK(E|P)|CM[0-2]|CIS|CMI(E|F)|CREN|CS[0-1]|CSRC|D(A|C)|EEI(E|F)|FERR|GIE|GO_DONE|IBF|IBOV|INT(F|E(DG)?)|IRP|LCD(EN|I(E|F))|LMUX[0-1]|LP[0-3]|NOT(_PD|_RBPU|_RBWU|_TO)|OBF|OERR|PA[0-1]|PCFG[0-2]|PEIE|POR|P|PS([0-2]|A|P(IE|IF|MODE))|RBI(E|F)|RBWUF|RCI(E|F)|RD|RP[0-1]|RW|RX9(D)?|S(E(0|5|9|12|16|20|27|29))?|SLPEN|SMP|SPEN|SREN|SSP(EN|IE|IF|M[0-3]|OV)|SYNC|T0(CS|IE|IF|SE)|T[1-2]CKPS[0-1]|T1OSCEN|TMR(1CS|[1-2]IE|[1-2]IF|[1-2]ON)|TOUTPS[0-3]|TRISE[0-2]|TRMT|TX(89|9|9D|D8|EN|I(E|F))|UA|VGEN|VR([0-3]|EN|OE|R)|WCOL|WR(EN|ERR)?|Z)\b + +macro=\b(ADDCF|ADDDCF|BC|BNC|BNDC|BZ|BNZ|CLRC|CLRDC|CLRZ|MOVFN|NEGF|SETC|SETDC|SETZ|SKPC|SKPNC|SKPDC|SKPNDC|SKPZ|SKPNZ|SUBCF|SUBDCF|TSTF)\b +macro=\b(BANKISEL|BANKSEL|CBLOCK|CODE|CONSTANT|DATA|DB|DE|DT|DW|ELSE|END|ENDC|ENDIF|ENDM|ENDW|EQU|ERROR|ERRORLEVEL|EXITM|EXPAND|EXTERN|FILL|GLOBAL|IDATA|IF|IFDEF|IFNDEF|LIST|LOCAL|MACRO|MESSG|NOEXPAND|NOLIST|ORG|PAGE|PAGESEL|PROCESSOR|RADIX|RES|SET|SPACE|SUBTITLE|TITLE|UDATA|UDATA_OVR|UDATA_SHR|VARIABLE|WHILE|__BADRAM|__CONFIG|__IDLOCS|__MAXRAM)\b +macro=(#DEFINE|#INCLUDE|#UNDEFINE)\b + +operator=(\+|-|<|>|/(/)?) + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC18.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC18.MAP index e93645a0dbdf1147e5e0bd49b56c3952556b16aa..ef827b20fbd4671fd8c37d260418d8442bbe7ebe 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC18.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC18.MAP @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3c154118a4b0e21395c741c1159607c20d2d8e074c82717dc8296560266a49f -size 151 +#Syntax Highlight Extension Mappings for PIC18 +SDI=PIC18.SYN +ASM=PIC18.SYN +INC=PIC18.SYN +AS=PIC18.SYN +H=C.SYN +C=C.SYN +CPP=CPP.SYN +BAS=BASIC.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC18.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC18.SYN index 77791e4f7ccaf3d86506d5913ddd6dbc3ccf4189..a354a16759c3a368821a419a61a9914ffe2b6e2f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC18.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC18.SYN @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8aff49a811da83fd979c27ff77b0f731ce203e83d6009c66a22e617e9b4617af -size 1362 +# +# Labcenter Electronics +# +# Microchip PIC18 syntax highlighter definition file +# + +line_comment=;.*$ + +string='([^'\\]|\\.)*' + +constant=\b((0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)(L|l|UL|ul|u|U|F|f)?\b + +#PIC18 +keyword=\b(add(lw|wf(c)?)|and(lw|wf)|bc(f)?|bn(c|n|o|z)?|bov|bra|bsf|bt(fs(c|s)|g)|bz|class|clr(f|wdt)|comf|cpf(seq|sgt|slt)|daw|dcfsnz|decf(sz)?|goto|incf(z)?|infsnz|ior(lw|wf)|lfsr|mov(f|wf|l(b|w))|mul(lw|wf)|negf|nop|pop|push|rcall|reset|ret(fie|lw|urn)|r(l|r)(n)?cf|setf|sleep|sub(fwb|lw|wf(b)?)|swapf|tbl(rd|wt)|tstfsz|xor(lw|wf))\b +#PIC18 Extended +keyword=\b((add|sub)(fsr|ulnk)|call(w)?|movs(s|f)|pushl)\b + +#Extensions omitted as there are simply too many. (Manually add them on a chip by ship basis if required.) + +#Common macros +macro=\b(ADDCF|ADDDCF|BC|BNC|BNDC|BZ|BNZ|CLRC|CLRDC|CLRZ|MOVFN|NEGF|SETC|SETDC|SETZ|SKPC|SKPNC|SKPDC|SKPNDC|SKPZ|SKPNZ|SUBCF|SUBDCF|TSTF)\b +macro=\b(BANKISEL|BANKSEL|CBLOCK|CODE|CONSTANT|DATA|DB|DE|DT|DW|ELSE|END|ENDC|ENDIF|ENDM|ENDW|EQU|ERROR|ERRORLEVEL|EXITM|EXPAND|EXTERN|FILL|GLOBAL|IDATA|IF|IFDEF|IFNDEF|LIST|LOCAL|MACRO|MESSG|NOEXPAND|NOLIST|ORG|PAGE|PAGESEL|PROCESSOR|RADIX|RES|SET|SPACE|SUBTITLE|TITLE|UDATA|UDATA_OVR|UDATA_SHR|VARIABLE|WHILE|__BADRAM|__CONFIG|__IDLOCS|__MAXRAM)\b +macro=(#DEFINE|#INCLUDE|#UNDEFINE)\b + +#Operators +operator=(\+|-|<|>|/(/)?) + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC30.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC30.MAP index 9e2ef35e49502fcf150407803e1594dede0e4f12..cc7fa64315cb1aa261984b51f5ef2349bc95000a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC30.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PIC30.MAP @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ed91bf662faac23a30b5f8416609bd3aa906205ebd91208018ab9d56fc63413d -size 77 +#Syntax Highlight Extension Mappings for PIC30 +H=C.SYN +C=C.SYN +CPP=CPP.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PICAXE.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PICAXE.MAP index c28cab1e7779040554d0290cdcd6c75e2d17f5d0..ebac955bb70c07a2f62572082a28fdf07419fe41 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PICAXE.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PICAXE.MAP @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8d6bd2054b95b93676e7711174eda58f35aeb52cd969b191a809f94d7727f322 -size 81 +#Syntax Highlight Extension Mappings for PICAXE +BAS=PICAXE.SYN +TXT=PICAXE.SYN diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PICAXE.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PICAXE.SYN index 3577fb42f7586ef2bb0d6b0af3ac1ed2d2440ccb..5bbe57e51ef8073f226df0f6d4915e0961341814 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PICAXE.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PICAXE.SYN @@ -1,3 +1,51 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef45bdad162c8d8e0132c31d7e65e2b22acc22d89da07d24c1edf70205dedc5d -size 3965 +# +# Revolution Education Ltd PICAXE syntax highlighter definition file for ISIS +# (c) Revolution Education Ltd 2008 +# +# keyword= PICAXE Commands +# extensions= PICAXE Variables +# macro= PICAXE # Directives +# operator= PICAXE Math Operators +# constant= PICAXE Named Constants +# + +block_comment_open=(?i)\#[ ]*rem.*$ +block_comment_close=(?i)\#[ ]*end[ ]*rem.*$ + +line_comment=(?i)(rem|[;'`]).*$ + +string=\"[^\"]*\" + +constant=%[01]+|(\$|0x|0X)[0-9a-fA-F]+|\b([0-9]+)\b + +keyword=(?i)\b(adcsetup|backward|bcdtoascii|bcdtobin|bintoascii|bintobcd|booti2c|branch|button|calibadc(10)?|calibfreq|case|count|data|debug|dec|disablebod|disconnect|do|doze|eeprom|else(if)?|enablebod|end(if|select)?|exit|for|forward|get|gosub|goto|halt|hi2cin|hi2cout|hi2csetup)\b + +keyword=(?i)\b(hibernate|high|hintsetup|hpwm|hpwmduty|hserin|hserout|hsersetup|hshin|hshout|hspiin|hspiout|hspisetup|i2cmaster|i2cread|i2cslave|i2cwrite|if|inc|infrain(2)?|infraout|input|irin|irout|kbin|kbled|keyin|keyled|let|lookdown|lookup|loop|low|nap|next|off|on|output|owin|owout|pause(us)?)\b + +keyword=(?i)\b(peek(sfr)?|play|poke(sfr)?|porta|portb|portc|pot|pulsin|pulsout|put|pwm(duty|out)?|random|read(adc(10)?|i2c|mem|outputs|owclk|owsn|pinsc|portc|revision|table|temp(12)?|version)?|reconnect|reset(owclk)?|return|reverse|run)\b + +keyword=(?i)\b(select|sensor|serin|serout|serrxd|sertxd|servo|servopos|setfreq|setint|setintflags|settimer|shiftin|shiftout|shin|shout|sleep|sound|spiin|spiout|step|stop|swap|switch([ ]*off|[ ]*on)?|symbol|table|then|to|toggle|tune|until|vartoascii|wait|while|word|write(i2c|mem)?)\b + +macro=(?i)^#[ ]*(com|define|error|freq|gosubs|if(def|ndef)?|include|picaxe[ ]*08[M]?|picaxe[ ]*14[M]|picaxe[ ]*18[AXM]?|picaxe[ ]*20[M]|picaxe[ ]*28(A|X1|X2|X)?|picaxe[ ]*40(A|X1|X2|X)?|sim(speed)?|slot|terminal|undefine) + +extensions=(?i)\b(b0|b1|b2|b3|b4|b5|b6|b7|b8|b9|b10|b11|b12|b13|b14|b15|b16|b17|b18|b19|b20|b21|b22|b23|b24|b25|b26|b27|b28|b29|b30|b31|b32|b33|b34|b35|b36|b37|b38|b39|b40|b41|b42|b43|b44|b45|b46|b47|b48|b49|b50|b51|b52|b53|b54|b55|bit0|bit1|bit2|bit3|bit4|bit5|bit6|bit7|bit8|bit9|bit10)\b + +extensions=(?i)\b(bit11|bit12|bit13|bit14|bit15|bit16|bit17|bit18|bit19|bit20|bit21|bit22|bit23|bit24|bit25|bit26|bit27|bit28|bit29|bit30|bit31|dir(s(a|b|c|d)?|a|b|c|d|[0-7])|infra)\b + +extensions=(?i)\b(input[0-7]|keyvalue|outpin(s|[0-7])|pin(s(a|b|c|d)?|[0-7])|port|trisc|w0|w1|w2|w3|w4|w5|w6|w7|w8|w9|w10|w11|w12|w13|w14|w15|w16|w17|w18|w19|w20|w21|w22|w23|w24|w25|w26|w27)\b + +extensions=(?i)\b(s_w[0-7]|hi2clast|hserptr|hserinptr|timer|ptr(l|h|0|2|3|4|5|6|7|8|9|10|11|12|13|14|15|inc|dec)?|\@ptr(inc|dec)?|flags(h|l)?|flag(0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15)|int0flag|int1flag|int2flag|toflag|hserinflag|hserflag|hi2cflag)\b + +operator=\+|\-|\*|\*\*|\/|\%|\<\<|\>\>|\&|\||\^|\&\/|\|\/|\^\/ + +operator=(?i)\b(and(not)?|cos|dcd|dig|inv|is|mod|nand|ncd|nor|not|or(not)?|rev|sin|sqr|xnor|xor(not)?)\b + +constant=(?i)\b(b300(_4|_8|_16|_20)|b600(_4|_8|_16|_20)|b1200(_4|_8|_16|_20)|b2400(_4|_8|_16|_20)|b4800(_4|_8|_16|_20)|b9600(_4|_8|_16|_20)|b19200(_4|_8|_16|_20)|b38400(_4|_8|_16|_20)|b57600(_4|_8|_16|_20)|b115200(_4|_8|_16|_20))\b + +constant=(?i)\b(cls|cr|em4|em8|em16|em20|em32|em40|i2cbyte|i2cword|i2cfast(4|8|16|_4|_8|_16)?|i2cslow(4|8|16|_4|_8|_16)?|k31|k125|k250|k500|lf|lsbfirst(_h|_l)?|lsbpost(_h|_l)?|lsbpre(_h|_l)?|msbfirst(_h|_l)?|msbpost(_h|_l)?|msbpre(_h|_l)?|m1|m2|m4|m8|m16)\b + +constant=(?i)\b(n300(_4)?|n600(_4|_8)?|n1200(_4|_8|_16)?|n2400(_4|_8|_16)?|n4800(_4|_8|_16)?|n9600(_8|_16)|n19200_16|output[0-7]|ownoreset|ownoreset_bit|owresetafter|owresetafter_bit\b) + +constant=(?i)\b(owresetboth(_bit)?|owresetfirst(_bit)?|pwmfull(_f|_r)|pwmhalf|pwmsingle|pwmhhhh|pwmhlhl|pwmlhlh|pwmllll|spifast|spimedium|spislow|spimode(00|00e|01|01e|10|10e|11|11e)|t1s_4|t1s_8|t1s_16)\b + +constant=(?i)\b(t300(_4)?|t600(_4|_8)?|t1200(_4|_8|_16)?|t2400(_4|_8|_16)?|t4800(_4|_8|_16)?|t9600(_8|_16)|t19200_16)\b \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PP.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PP.MAP index 38cd546f2447d873e997ed8477a207dbb49131cf..b4c7f10fa9f2bf2ecafdffb26ecac5bd5c181dc0 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PP.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PP.MAP @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a97113492565a7a631cf229c43d7bac3d111b51607663e9ff6ff6a24d533125 -size 73 +#Syntax Highlight Extension Mappings for Proteus Processor +LUA=LUA.SYN diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PYTHON.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PYTHON.SYN index 2fb25fcf0e99f632cd16b61e35aa27e77d8c4810..e3fd2a786cb5f4cc8681e59c2bf5365e65f0a04a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PYTHON.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/PYTHON.SYN @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f4bb64c81bfb1146edc128b517cf43cfe96b32628be18df7cf1c0efa378ad550 -size 519 +# +# Labcenter Electronics +# +# Python syntax highlighter definition file. +# +line_comment=#.*$ +string="([^"\\]|\\.)*"|'([^'\\]|\\.)*' +constant=\b((0(b|B)[01]*)|(0(x|X)[\da-fA-F]*)|((\d+\.?\d*)|(\.\d+))((e|E)(\+|-)?\d+)?)\b +keyword=\b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\b +extensions=\b(True|False|None)\b +macro=(import).*$ +operator=(\+|-|\*|/|%|<|>|=|!=|<>|\(|\)|\[|\]|\{|\}|@|,|:|\.|;) diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/README.TXT b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/README.TXT index d5b50220a1994769df24428bdb0e596dcf8460a2..59d8f509c3e66d6def4a4f70411ea9bb86bb35e1 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/README.TXT +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/README.TXT @@ -1,3 +1,64 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e89fcfc1e40fd7902c44986b00691f2cc9a37bd9f5a66e3fbf4b47f02c096955 -size 2270 +DETAILS OF THE .MAP FILE FORMAT +------------------------------- +The .MAP file specifies the syntax file(s) to use for particular source file extensions for a particular processor. +This allows .ASM to be highlighted using PIC16.SYN for a PIC16 but using 8051.SYN for an 8051. + +A processor specifies a particular file to use for syntax highlighting it's source window by calling the function + + srcwin->loadsyntaxmap(mapfile) + +on its ISOURCEPOPUP interface. + +The format of the map file is very simple + +Any line starting with a hash/pound/gate '#' is a comment. + +Extension to syntax mapping are then described with one or more lines of the form + += + + +DETAILS OF THE .SYN FILE FORMAT +------------------------------- +The .SYN file specifies the rules for syntax highlighting for a particular language. + +Any line starting with a hash/pound/gate '#' is a comment. +Each line can contain a statement. +A statement consists a highlighting class and a regular expression, +separated by an equality sign '='. With the highlighting class to the +left and the regular expression to the right of the equality sign. + +The class can be: + +line_comment +block_comment_open +block_comment_close +string +constant +operator +keyword +extensions +macro + + +The regular expressions are perl compatible regular expressions, the +Intel documentation alludes to them being somewhat compatible with the +PCRE library other than a few limitations such as no Unicode support. +(The real PCRE does have unicode support, so we are not sunk if we have +to switch from Intel libraries.) + +For a synopsis of regular expressions try: + +http://en.wikipedia.org/wiki/Regular_expressions + +http://www.amazon.co.uk/s/?url=index%3Daps&field-keywords=regular+expressions + +The highlighter searches each line of the text file until it finds a +match to one of the regular expressions in the syntax file. In case of +the tie between two regular expressions, the order in the syntax file +dictates the priority. + +Classes can appear multiple times in the syntax file, though it is best +to combine such classes into one line, as this increases parse speed and +saves memory. (There is also a maximum of 64 statements per file, to +encourage this.) diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm0.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm0.MAP index 565ec163a7f6f399f48440b80c12d3a63bea83e3..aa5c05bec071066f689534a7b970bd5484dbd023 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm0.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm0.MAP @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ae6354c435726092141953ea9f928e99a96af6ddee13af64d76aef34d6e6ac1d -size 101 +#Syntax Highlight Extension Mappings for CM0 +ASM=CM0.SYN +H=C.SYN +C=C.SYN +HPP=CPP.SYN +CPP=CPP.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm0.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm0.SYN index 9f14ee9ea81ebee1426b18e2c29c4298f9d2823b..0d68827dd89156612292812e66d3e49e74f797db 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm0.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm0.SYN @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e2078c21427c61cb94a367ed3c9655ff20810092092cb353366752de6182ff1 -size 1113 +# +# Labcenter Electronics +# +# CM0 syntax highlighter definition file. +# +line_comment=(?i);.*$ +operator=@|& +string='([^'\\]|\\.)*' +operator=(+|-|<|>|/)? + +constant=#([0-9a-fA-F]*h|[0-9]*) + +extensions=\b(r[0-9]*|acc|epsr|apsr|msp|psp) +extensions=\b(R[0-9]*|ACC|EPSR|APSR|MSP|PSP) + +keyword=\b(ad(c|d|r)|and|asr|b[f(i|c)|ic|l[x]|x|kpt]|cb(z|nz)cl(rex|z)|cm(n|p)|cps|d(m|s)b|eor|isb|it|ld(m[db]|r[b|d|ex|h|s(b|h)])|ls(l|r)) +keyword=\b(ml(a|s)|mov[t]|mrs|msr|mul|mvn|nop|or(n|r)|pop|push|rbit|rev[sh]|ror|rrx|rsb|sb(c|fx)|sdiv|sev|sm(lal|ul)|ssat|stm[db]|str[b|d|ex[b|h]|h]|sub) +keyword=\b(svc|sxt(b|h)|tb(b|h)|teq|tst|ubfx|udiv|umlal|umull|usat|uxt[b|h]|wf(e|i)) + +keyword=\b(AD(C|D|R)|AND|ASR|B[F(I|C)|IC|L[X]|X|KPT]|CB(Z|NZ)CL(REX|Z)|CM(N|P)|CPS|D(M|S)B|EOR|ISB|IT|LD(M[DB]|R[B|D|EX|H|S(B|H)])|LS(L|R)) +keyword=\b(ML(A|S)|MOV[T]|MRS|MSR|MUL|MVN|NOP|OR(N|R)|POP|PUSH|RBIT|REV[SH]|ROR|RRX|RSB|SB(C|FX)|SDIV|SEV|SM(LAL|UL)|SSAT|STM[DB]|STR[B|D|EX[B|H]|H]|SUB) +keyword=\b(SVC|SXT(B|H)|TB(B|H)|TEQ|TST|UBFX|UDIV|UMLAL|UMULL|USAT|UXT[B|H]|WF(E|I)) + +macro=\b(text|se[t|ct]|ref|global|if|else|end[if]) diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm3.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm3.MAP index a697ca541c16aff7eaef003a5c3040a95aba7993..c435781b17c0fba07d5ad07184b5012333711fe3 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm3.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm3.MAP @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:88a9da17e926bdba862c2e8fff2c74ad14c9646c164e9dd11b8c011a1db07043 -size 101 +#Syntax Highlight Extension Mappings for CM3 +ASM=CM3.SYN +H=C.SYN +C=C.SYN +HPP=CPP.SYN +CPP=CPP.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm3.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm3.SYN index 010d8c52e7e30611f68b8f67a3dc7dced56a9364..7ea66d4b3e90e6dbe003af68abd6348ce863a29f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm3.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm3.SYN @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ff2bf573489e8374d10a384a2e8953eed12fd04081c969541e7cc40658fc3d0 -size 1113 +# +# Labcenter Electronics +# +# CM3 syntax highlighter definition file. +# +line_comment=(?i);.*$ +operator=@|& +string='([^'\\]|\\.)*' +operator=(+|-|<|>|/)? + +constant=#([0-9a-fA-F]*h|[0-9]*) + +extensions=\b(r[0-9]*|acc|epsr|apsr|msp|psp) +extensions=\b(R[0-9]*|ACC|EPSR|APSR|MSP|PSP) + +keyword=\b(ad(c|d|r)|and|asr|b[f(i|c)|ic|l[x]|x|kpt]|cb(z|nz)cl(rex|z)|cm(n|p)|cps|d(m|s)b|eor|isb|it|ld(m[db]|r[b|d|ex|h|s(b|h)])|ls(l|r)) +keyword=\b(ml(a|s)|mov[t]|mrs|msr|mul|mvn|nop|or(n|r)|pop|push|rbit|rev[sh]|ror|rrx|rsb|sb(c|fx)|sdiv|sev|sm(lal|ul)|ssat|stm[db]|str[b|d|ex[b|h]|h]|sub) +keyword=\b(svc|sxt(b|h)|tb(b|h)|teq|tst|ubfx|udiv|umlal|umull|usat|uxt[b|h]|wf(e|i)) + +keyword=\b(AD(C|D|R)|AND|ASR|B[F(I|C)|IC|L[X]|X|KPT]|CB(Z|NZ)CL(REX|Z)|CM(N|P)|CPS|D(M|S)B|EOR|ISB|IT|LD(M[DB]|R[B|D|EX|H|S(B|H)])|LS(L|R)) +keyword=\b(ML(A|S)|MOV[T]|MRS|MSR|MUL|MVN|NOP|OR(N|R)|POP|PUSH|RBIT|REV[SH]|ROR|RRX|RSB|SB(C|FX)|SDIV|SEV|SM(LAL|UL)|SSAT|STM[DB]|STR[B|D|EX[B|H]|H]|SUB) +keyword=\b(SVC|SXT(B|H)|TB(B|H)|TEQ|TST|UBFX|UDIV|UMLAL|UMULL|USAT|UXT[B|H]|WF(E|I)) + +macro=\b(text|se[t|ct]|ref|global|if|else|end[if]) diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm4.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm4.MAP index 19bed38b14b3934e42a675cd9dff2736a8e9744a..ba213a8a90df42f4c3ac0ecb7911223803835a25 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm4.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm4.MAP @@ -1,3 +1,6 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a1397a304edcf733213b69a18473550bfc8c092318b10595ef95e625cb1f720 -size 101 +#Syntax Highlight Extension Mappings for CM4 +ASM=CM4.SYN +H=C.SYN +C=C.SYN +HPP=CPP.SYN +CPP=CPP.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm4.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm4.SYN index f9754bbbf5009c134b7bf1f5ca8d3d07f04342b7..b3d3e664aab3fde49ffe0b3a9f9ff6a100f74482 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm4.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/cm4.SYN @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ee83e3fc3c99543608fcc9b4e8c28618ac8c012ff0eb054af8d4f97953e1e64f -size 2283 +# +# Labcenter Electronics +# +# CM3 syntax highlighter definition file. +# +line_comment=(?i);.*$ +operator=@|& +string='([^'\\]|\\.)*' +operator=(+|-|<|>|/)? + +constant=#([0-9a-fA-F]*h|[0-9]*) + +extensions=\b(r[0-9]*|acc|epsr|apsr|msp|psp|fpscr|d[0-9]*|s[0-9]*) +extensions=\b(R[0-9]*|ACC|EPSR|APSR|MSP|PSP|FPSCR|D[0-9]*|S[0-9]*) + +keyword=\b(ad(c|d|r)|and|asr|b[f(i|c)|ic|l[x]|x|kpt]|cb(z|nz)cl(rex|z)|cm(n|p)|cps|d(m|s)b|eor|isb|it|ld(m[db]|r[b|d|ex|h|s(b|h)])|ls(l|r)) +keyword=\b(ml(a|s)|mov[t]|mrs|msr|mul|mvn|nop|or(n|r)|pop|push|rbit|rev[sh]|ror|rrx|rsb|sb(c|fx)|sdiv|sev|sm(lal|ul)|ssat|stm[db]|str[b|d|ex[b|h]|h]|sub) +keyword=\b(svc|sxt(b|h)|tb(b|h)|teq|tst|ubfx|udiv|umlal|umull|usat|uxt[b|h]|wf(e|i)) +keyword=\b(ldr[b|h|sb|sh]t|pl(d|i)|str(b|h)t|pkhxy|q(add[8|16]|asx|dadd|dsub|sax|sub[8|16])|sadd(8|16)|sasx|sel|sh(add(8|16)|asx|sax|sub(8|16))) +keyword=\b(sml(abb|ad|albb|ald|awb|sd|sld)|smm(la|ls|ul)|smu(ad|lbb|lwb|sd)|ss(at16|ax|ub(8|16))|strt|sxt(ab[16]|ah|b16)) +keyword=\b(u(add(8|16)|asx|h(add(8|16)|asx|sax|sub(8|16))|maal|q(add(8|16)|asx|sax|sub(8|16))|s(ad[a]8|at[16]|ax|ub(8|16))|x(tab[16]|tah|tb16))) +# FPU +keyword=\b(v(abs|add|cmp(e|p)|cvt[r|t|b]|div|f(ma|ms|nma|nms)|ld(m|r)|ml(a|s)|mov|mrs|msr|mul|neg|nml(a|s)|nmul|pop|push|sqrt|st(m|r)|sub)) + +keyword=\b(AD(C|D|R)|AND|ASR|B[F(I|C)|IC|L[X]|X|KPT]|CB(Z|NZ)CL(REX|Z)|CM(N|P)|CPS|D(M|S)B|EOR|ISB|IT|LD(M[DB]|R[B|D|EX|H|S(B|H)])|LS(L|R)) +keyword=\b(ML(A|S)|MOV[T]|MRS|MSR|MUL|MVN|NOP|OR(N|R)|POP|PUSH|RBIT|REV[SH]|ROR|RRX|RSB|SB(C|FX)|SDIV|SEV|SM(LAL|UL)|SSAT|STM[DB]|STR[B|D|EX[B|H]|H]|SUB) +keyword=\b(SVC|SXT(B|H)|TB(B|H)|TEQ|TST|UBFX|UDIV|UMLAL|UMULL|USAT|UXT[B|H]|WF(E|I)) +keyword=\b(LDR[B|H|SB|SH]T|PL(D|I)|STR(B|H)T|PKHXY|Q(ADD[8|16]|ASX|DADD|DSUB|SAX|SUB[8|16])|SADD(8|16)|SASX|SEL|SH(ADD(8|16)|ASX|SAX|SUB(8|16))) +keyword=\b(SML(ABB|AD|ALBB|ALD|AWB|SD|SLD)|SMM(LA|LS|UL)|SMU(AD|LBB|LWB|SD)|SS(AT16|AX|UB(8|16))|STRT|SXT(AB[16]|AH|B16)) +keyword=\b(U(ADD(8|16)|ASX|H(ADD(8|16)|ASX|SAX|SUB(8|16))|MAAL|Q(ADD(8|16)|ASX|SAX|SUB(8|16))|S(AD[A]8|AT[16]|AX|UB(8|16))|X(TAB[16]|TAH|TB16))) +# FPU +keyword=\b(V(ABS|ADD|CMP(E|P)|CVT[R|T|B]|DIV|F(MA|MS|NMA|NMS)|LD(M|R)|ML(A|S)|MOV|MRS|MSR|MUL|NEG|NML(A|S)|NMUL|POP|PUSH|SQRT|ST(M|R)|SUB)) + +macro=\b(text|se[t|ct]|ref|global|if|else|end[if]) diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/dsPIC33.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/dsPIC33.MAP index cda0ed99452021e49dd4640b0dc55c20be25ec76..6728c9c5822c8de0f1459ece07c3e078d15c77a2 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/dsPIC33.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/dsPIC33.MAP @@ -1,3 +1,3 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:503df4e38bf2590aaca1142ed86c9cb7bfa29e39059304716b7d12d5a6505fa6 -size 64 +#Syntax Highlight Extension Mappings for PIC30 +H=C.SYN +C=C.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/msp430.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/msp430.MAP index 1bc4d309e81ebd021cc01803bd28aac0027fc530..edb0030a34af8546a46d912125f5456f1420e93a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/msp430.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/msp430.MAP @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3919a2047bdd7ef10cd63f2fb8e453c53ad0365296ada4b0dbca23c440959240 -size 123 +#Syntax Highlight Extension Mappings for MSP430 +SDI=MSP430.SYN +ASM=MSP430.SYN +H=C.SYN +C=C.SYN +HPP=CPP.SYN +CPP=CPP.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/msp430.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/msp430.SYN index 46cf244c1dda8d8e46218a429f67258576d3f39e..c91a9d0315445f8361c8802d6b23ac81252b554f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/msp430.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/msp430.SYN @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0f68ee25c22ba701de4861791c462973c7f9d99eb3b01d3d7e18f28d95621dbd -size 643 +# +# Labcenter Electronics +# +# MSP430 syntax highlighter definition file. +# +line_comment=;.*$ +operator=@|& +string='([^'\\]|\\.)*' + + +constant=#([0-9a-fA-F]*h|[0-9]*) + +extensions=\b(r[0-9]*|sp|pc|sr|cg(1|2)) +extensions=\b(R[0-9]*|SP|PC|SR|CG(1|2)) + +keyword=\b(mov|add|addc|subb|sub|cmp|dadd|bi(t|c|s)|xor|and|dec)\.(b|w) +keyword=\b((rr(c|a)|push).(b|w)?|swpb|call|reti|sxt) +keyword=\bj(z|nz|eq|ne|c|nc|n|ge|l|mp) + +keyword=\b(MOV|ADD|ADDC|SUB|SUBB|CMP|DADD|BI(T|C|S)|XOR|AND|DEC)\.(B|W) +keyword=\b((RR(C|A)|PUSH).(B|W)?|SWPB|CALL|RETI|SXT) +keyword=\bJ(Z|NZ|EQ|NE|C|NC|N|GE|L|MP) + +macro=\b(short|end) + +operator=(\+|-|<|>|/) \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/piccolo.MAP b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/piccolo.MAP index c099bc2644d79fe5425735b6d1caf467ffbd1c2f..e0aec797a2bb87a98abc99107370142f607d0233 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/piccolo.MAP +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/piccolo.MAP @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e3d350e6d25c424737845b6d95e5300ce8e22b0173549d630a488b7c428b38b7 -size 127 +#Syntax Highlight Extension Mappings for Piccolo +SDI=piccolo.SYN +ASM=piccolo.SYN +H=C.SYN +C=C.SYN +HPP=CPP.SYN +CPP=CPP.SYN \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/piccolo.SYN b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/piccolo.SYN index cecb2e0148818a262d76fc4506c82b439dda5cc7..6a232686b108c792f47ed59e5ccee5013691fcb9 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/piccolo.SYN +++ b/Proteus 8 Professional/DATA/VSM Studio/SYNTAX/piccolo.SYN @@ -1,3 +1,31 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2f56643f4bc711ecc20ec1aabd41c8b1fe3374f6c0ea78faaffed8075d2bee9c -size 1252 +# +# Labcenter Electronics +# +# Piccolo syntax highlighter definition file. +# +line_comment=;.*$ + +string='([^'\\]|\\.)*' +string="([^"\\]|\\.)*" + +constant=(#|@)([0-9a-fA-F]+h|[0-9]+)\b +constant=\b([0-9a-fA-F]+h|[0-9]+)\b + +keyword=\b(ADD(B|CL|CU|L|U|UL)?)\b +keyword=\b(C27(MAP|OBJ))\b +keyword=\b(C28(ADDR|MAP|OBJ))\b +keyword=\b(CMP(64|B|L|R)?)\b +keyword=\b(MOV(A|AD|B|DL|H|L|P|S|U|W|X|Z)?)\b +keyword=\b(MPY(A|B|S|U|XU)?)\b +keyword=\b(SUB(B|BL|CU|CUL|L|R|RL|U|UL)?)\b + +keyword=\b(ABORTI|ABS|ABSTC|ADRK|AND|ANDB|ASP|ASR|ASR64|ASRL|B|BANZ|BAR|BF|CLRC|CSB|DEC|DINT|DMAC|DMOV|EALLOW|EDIS|EINT|ESTOP0|ESTOP1)\b +keyword=\b(FFC|FLIP|IACK|IDLE|IMACL|IMPYAL|IMPYL|IMPYSL|IMPYXUL|IN|INC|INTR|IRET)\b +keyword=\b(LB|LC|LCR|LOOPNZ|LOOPZ|LPADDR|LRET|LRETE|LRETR|LSL|LSL64|LSLL|LSR|LSR64|LSRL|MAC|MAX|MAXCUL|MAXL|MIN|MINCUL|MINL|NASP|NEG|NEG64|NEGTC|NOP|NORM|NOT)\b +keyword=\b(OR|ORB|OUT|POP|PREAD|PUSH|PWRITE|QMACL|QMPYAL|QMPYL|QMPYSL|QMPYUL|QMPYXUL|ROL|ROR|RPT|SAT|SAT64|SB|SBBU|SBF|SBRK|SETC|SFR|SPM|SQRA|SQRS|SXTB)\b +keyword=\b(TBIT|TCLR|TEST|TRAP|TSET|UOUT|XB|XBANZ|XCALL|XMAC|XMACD|XOR|XORB|XPREAD|XPWRITE|XRET|XRETC|ZALR|ZAP|ZAPA)\b + +macro=\b(text|se(t|ct)|ref|global|if|else|end(if)?)\b + +operator=(\+|-|<|>|/) +operator=@|& diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/configure.sh b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/configure.sh index ae8e7cb17a41406724341c6e6bb4a007e34731c9..312ee0df48707925aeec197ac23a24788fae0ff6 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/configure.sh +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/configure.sh @@ -1,3 +1,151 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:238ea59945371d0b8606ac2ab265c3f9ed7ae225cfcd162ee4a84eb5ba8dd73d -size 3804 +#!/bin/sh +# Raspbian Configuration Script + +hostname=RaspberryPiFour + +# Check if it's been configured already +if [ "$hostname" = "$(hostname)" ]; then + ls /etc/init.d/iotbuilder >/dev/null 2>&1 + if [ "$?" -eq "0" ]; then + exit 0 + fi +fi + +if [ "$1" = "check" ]; then + # Indicate that configuration required + return 1 +fi + +echo "Initial board configuration. Don't close the window.\n" + +# Set host name +if [ "$hostname" != "$(hostname)" ]; then + echo "Changing host name to '$hostname'" + sudo sed -i 's/'$(hostname)'/'$hostname'/g' /etc/hosts + echo $hostname >/etc/hostname + + # Check if further configuration required + ls /etc/init.d/iotbuilder >/dev/null 2>&1 + if [ "$?" -eq "0" ]; then + echo "Configuration complete. Restarting..." + shutdown -r now + fi +fi + +# Enable required hardware + +# I2C +ls /dev/i2c-1 >/dev/null 2>&1 +if [ "$?" -ne "0" ]; then + sed -i 's/#dtparam=i2c_arm=on/dtparam=i2c_arm=on/g' /boot/config.txt + grep 'i2c-bcm2708' /etc/modules >/dev/null 2>&1 + if [ "$?" -ne "0" ]; then + echo "i2c-bcm2708" >> /etc/modules + fi + grep 'i2c-dev' /etc/modules >/dev/null 2>&1 + if [ "$?" -ne "0" ]; then + echo "i2c-dev" >> /etc/modules + fi +fi + +#SPI +ls /dev/spidev0.0 >/dev/null 2>&1 +if [ "$?" -ne "0" ]; then + sed -i 's/#dtparam=i2c_arm=on/dtparam=i2c_arm=on/g' /boot/config.txt +fi +ls /dev/spidev0.1 >/dev/null 2>&1 +if [ "$?" -ne "0" ]; then + sed -i 's/#dtparam=spi=on/dtparam=spi=on/g' /boot/config.txt +fi + + +#Serial 0 +ls /dev/serial0 >/dev/null 2>&1 +if [ "$?" -ne "0" ]; then + grep 'dtoverlay=pi3-miniuart-bt' /boot/config.txt >/dev/null 2>&1 + if [ "$?" -ne "0" ]; then + echo "" >> /boot/config.txt + echo "# Enable Serial 0" >> /boot/config.txt + echo "dtoverlay=pi3-miniuart-bt" >> /boot/config.txt + fi + sed -i 's/console=serial0,115200//g' /boot/cmdline.txt + sed -i 's/console=ttyAMA0,115200//g' /boot/cmdline.txt +fi + +#Camera Enabling +if grep "start_x" /boot/config.txt; then + if grep "start_x=0" /boot/config.txt; then + sed -i "s/start_x=0/start_x=1/g" /boot/config.txt + fi +else + echo "start_x=1" >> /boot/config.txt + echo "gpu_mem=128" >> /boot/config.txt +fi + + +# Install required software + +# Update repository +apt-get update || exit 1 + +# Update all packages +apt-get -y dist-upgrade || exit 1 + +# Update repository (again) +apt-get update || exit 1 + +# Install required packages +apt-get -y install python3 python3-pip python3-smbus python3-serial python3-pygame python3-pil.imagetk avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan ffmpeg || exit 1 + +# Install Python 3 packages + +# Install Wiring Pi (TO Remove) +python3 -m pip install wiringpi || exit 1 + +# Install PRi.GPIO +python3 -m pip install RPi.GPIO || exit 1 + +# Install spidev +python3 -m pip install spidev || exit 1 + +# Install picamera +python3 -m pip install picamera || exit 1 + +# Install Opencv cv2 +python3 -m pip install opencv-python || exit 1 + +# Install Twython +python3 -m pip install twython || exit 1 + +# Create AVAHI SSH service +SSH_SERVICE="/etc/avahi/services/ssh.service" +cat >$SSH_SERVICE << EOF + + + + Secure Shell on %h + + _ssh._tcp + 22 + + +EOF +# Mark as non-executable +chmod 644 $SSH_SERVICE +# Start AVAHI +/etc/init.d/avahi-daemon start + +# Create /vsm directory for the scripts +mkdir /vsm 2>/dev/null +chown pi:pi /vsm + +# Sketch startup script +cp /boot/iotbuilder /etc/init.d/ +chmod 775 /etc/init.d/iotbuilder +chown root:root /etc/init.d/iotbuilder +# Run sketch on boot +update-rc.d iotbuilder defaults + +# Restart +echo "Configuration complete. Restarting..." +shutdown -r now diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/iotbuilder b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/iotbuilder index 3ee2a5ece9cbcfb8ae6d52fde817663d9cf81e13..c1d4fee02f64428f159088d5589406fc0f11605b 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/iotbuilder +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/iotbuilder @@ -1,3 +1,69 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc8682254a5fa9f3e520478f427100dc5a652bf3c6b7e40495e33bce71ce62c7 -size 1396 +#!/bin/sh -e +### BEGIN INIT INFO +# Provides: iotbuilder +# Required-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: Proteus IoT Builder sketch runner +### END INIT INFO + +DIR="/vsm" +SCRIPT="python3 /vsm/work/main.py" +RUNAS=root + +PIDFILE=/var/run/iotbuilder.pid +LOGFILE=/var/log/iotbuilder.log + +start() { + if [ -f "$PIDFILE" ] && kill -0 $(cat "$PIDFILE"); then + echo 'Service already running' >&2 + return 1 + fi + echo 'Starting service' >&2 + local CMD="$SCRIPT &> \"$LOGFILE\" & echo \$!" + cd "$DIR" + su -c "$CMD" $RUNAS > "$PIDFILE" + echo 'Service started' >&2 +} + +stop() { + if [ ! -f "$PIDFILE" ] || ! kill -0 $(cat "$PIDFILE"); then + echo 'Service not running' >&2 + return 1 + fi + echo 'Stopping service' >&2 + kill -15 $(cat "$PIDFILE") && rm -f "$PIDFILE" + echo 'Service stopped' >&2 +} + +uninstall() { + echo -n "Are you really sure you want to uninstall this service? That cannot be undone. [yes|No] " + local SURE + read SURE + if [ "$SURE" = "yes" ]; then + stop + rm -f "$PIDFILE" + echo "Notice: log file is not be removed: '$LOGFILE'" >&2 + update-rc.d -f remove + rm -fv "$0" + fi +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + uninstall) + uninstall + ;; + restart) + stop + start + ;; + *) + echo "Usage: $0 {start|stop|restart|uninstall}" +esac diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/wpa_supplicant.conf b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/wpa_supplicant.conf index 25745cbf775ddff80417fc3c316872fc7c25f060..a8551db9ccb1b1240bae37eb2dadf5b3411ab16c 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/wpa_supplicant.conf +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Configure/wpa_supplicant.conf @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6bdb01ee54ce2424e161244854230fa3bfc9183825794ce22303a621d823f2f5 -size 207 +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 +country=«your_ISO-3166-1_two-letter_country_code» + +network={ + ssid="«your_SSID»" + psk="«your_PSK»" + key_mgmt=WPA-PSK +} \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Controls.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Controls.py index 0fd939cf577b10179c4cbc1786fe9b1a4503ac14..910680ba29fa5c596a994f4a1a561f017e99ebcd 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Controls.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Controls.py @@ -1,3 +1,869 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:222061b208de11fdacc3ddf029e226be839169d5039564a5aa66c46421074e1c -size 25384 +#********************************************************************# +#********************************************************************# +#***** *****# +#***** L A B C E N T E R E L E C T R O N I C S *****# +#***** *****# +#***** Proteus IoT Builder *****# +#***** *****# +#***** IoT Control Classes *****# +#***** *****# +#********************************************************************# +#********************************************************************# + +#TODO Control. reload, reloadHandler, eventHandler. Won't crash but also won't work. +#TODO PrintList. setPlace. Unknown where this is set in the C++. + +import VFP +import os +import datetime +from PrintList import PrintList +from FileStore import FileStore + +# Control class +class Control: + def __init__(self, id): + global controls + self.id = id + VFP.controls.append(self) + + def getId(self): + return self.id + + def reload(self): + pass + + def parseArgs(self, args): + return args + + def reloadHandler(self): + pass + + def eventHandler(self, state): + pass + + def _set(self, key, value): + VFP.set(self.id, key, value) + +# TrafficLights +class TrafficLights(Control): + def __init__(self, id): + Control.__init__(self, id) + self._state = 0 + self._label = "" + def setState(self, state): + self._state = state + self._set("state", state) + def setRed(self, state): + self._state = state + self._set("state", 1) + def setAmber(self, state): + self._state = state + self._set("state", 2) + def setGreen(self, state): + self._state = state + self._set("state", 4) + +# Display Controls +class Indicator(Control): + def __init__(self, id): + Control.__init__(self, id) + self._state = 0 + self._label = "" + def setState(self, state): + self._state = state + self._set("state", state) + def setValue(self, value): + self._state = value + self._set("value", value) + def setLabel(self, label): + self._label = label + self._set("label", "'" + label + "'") + def setTemperature(self, temp): + self._state = temp + self._set("temperature", temp) + +class BarGraph(Indicator): pass +class LED(Indicator): pass +class PanelMeter(Indicator): pass +class Speedometer(Indicator): pass +class LoadingBar(Indicator): pass +class Gauge(Indicator): pass +class LEDStrip(Indicator): pass +class Bearing(Indicator): pass +class Thermometer(Indicator): pass + +class SegmentedDisplay(Control, PrintList): + def __init__(self, id, elements): + Control.__init__(self, id) + PrintList.__init__(self, self.setValue) + self._state = 0 + self.handler = None + def clear(self): + self._set("value","") + + def setValue(self, value): + self._state = str(value) + self._set("value", '"'+str(value)+'"') + + def setError(self): + self._set("value", '"ERR"') + +# Feedback Controls +class Actuator(Control): + def __init__(self, id): + Control.__init__(self, id) + self._state = 0 + self.handler = None + def begin(self, state): + self.setState(state) + def setState(self, state): + self._state = state + self._set("state", state) + def getState(self): + return int(self._state) + def setValue(self, value): + self._state = value + self._set("value", value) + def getValue(self): + return float(self._state) + def __call__(self): + return self._state + def eventHandler(self, state): + val = state.split("=") + if len(val) == 1: + self.setState(val[0]) + elif val[0] == "state": + self.setState(val[1]) + elif val[0] == "value": + self.setValue(val[1]) + if self.handler: + self.handler() + def attachEventHandler(self, handler): + self.handler = handler + #Additional define. don't need an exra class for button. + def setLamp(self, f): + self._set("lamp", f) + +class RotaryKnob(Actuator): pass +class Slider(Actuator): pass +class Dial(Actuator): pass +class RotarySwitch(Actuator): pass +class SlideSwitch(Actuator): pass +class SteeringWheel(Actuator):pass +class Throttle(Actuator): pass +class ToggleSwitch(Actuator): pass + +class PushButton(Actuator): pass +class ButtonGroup(Actuator): pass + + + +class Login(Control): + def __init__(self, id): + Control.__init__(self, id) + self.storedPassword = None + + def init (self, initPassword): + self.storedPassword = initPassword + + def reloadHandler(self): + VFP.create(self.id, "Login") + + def setTitle(self, newTitle): + VFP.call(self.id, "setTitle", '"'+newTitle+'"') + + def setPassword(self, newPassword): + self.storedPassword = newPassword + + def logOut(self): + VFP.authorize(False) + + def __call__(self): + return VFP.isAuthorized() + + def eventHandler(self, loginRequest): + + if loginRequest != "0": + loginRequest = loginRequest.replace('"', '') + loginRequest = loginRequest.split(',') + enteredPassword = loginRequest[1] + + if enteredPassword == self.storedPassword: + VFP.authorize(True) + else: + VFP.call(self.id, "authError") + else: + self.logOut() + +class JoyStick(Control): + def __init__(self, id): + Control.__init__(self, id) + self._x = 0 + self._y = 0 + self.handler = None + + def begin(self, x,y): + self.setValue([int(self._x), int(self._y)]) + + def setValue(self, values): + self._x = int(values[0]) + self._y = int(values[1]) + self._set("value", [int(self._x), int(self._y)]) + + def getValueX(self): + return int(self._x) + def getValueY(self): + return int(self._y) + def getValues(self): + return self._x,self._y + + def __call__(self): + return [self._x,self._y] + def eventHandler(self, state): + val = state.split("=") + if val[1] != "NaN,NaN": + self._x = int(val[1].split(",")[0]) + self._y = int(val[1].split(",")[1]) + else: + self._set("value", [int(self._x), -int(self._y)]) + if self.handler: + self.handler() + def attachEventHandler(self, handler): + self.handler = handler + +class KeyPad(Control): + def __init__(self, id): + Control.__init__(self, id) + self._state = 0 + self.handler = None + + def setState(self, state): + self._state = state + self._set("state", state) + + def getInput(self): + return self._state + + def __call__(self): + return self._state + def eventHandler(self, state): + val = state.split("=") + self.setState(val[0][1:-1]) + if self.handler: + self.handler() + def attachEventHandler(self, handler): + self.handler = handler + +# Text Controls (WORKING: 13/04/18) +class AlertBox(Control): + def __init__(self, id): + Control.__init__(self, id) + self._state = 0 + self.handler = None + def setState(self, state): + self._state = state + self._set("state", state) + + def reloadHandler(self): + VFP.create(self.id, "AlertBox") + + def info(self, message): + VFP.call(self.id, "info", '"'+message+'"') + + def warning(self, message): + VFP.call(self.id, "warning", '"'+message+'"') + + def error(self, message): + VFP.call(self.id, "error", '"'+message+'"') + + def confirm(self, message): + VFP.call(self.id, "confirm", '"'+message+'"') + + def __call__(self): + return self._state + def eventHandler(self, state): + val = state.split("=") + if len(val) == 1: + self.setState(val[0]) + elif val[0] == "state": + self.setState(val[1]) + elif val[0] == "value": + self.setValue(val[1]) + if self.handler: + self.handler() + def attachEventHandler(self, handler): + self.handler = handler + +class LineEdit(Control): + def __init__(self, id): + Control.__init__(self, id) + self._state = "" + self.handler = None + + def setText(self, text): + self._state = text + self._set("text", '"'+text+'"') + + def setError(self, text): + self._state = text + VFP.call(self.id,"setError", '"'+text+'"') + + def clear(self): + self._state = "" + self._set("text", '""') + + def getText(self): + return self._state + + def setReadOnly(self, bool): + self._set("readOnly", bool) + + def __call__(self): + return self._state + def eventHandler(self, state): + val = state.split("=") + if val[1][0] == '"': + val[1] = val[1][1:-1] + self.setText(val[1]) + if self.handler: + self.handler() + def attachEventHandler(self, handler): + self.handler = handler + +class Terminal(Control, PrintList): + def __init__(self, id): + Control.__init__(self, id) + PrintList.__init__(self, self.appendText) + self._state = "" + self.handler = None + + def begin(self, state): + self._state = state + + def setPrompt(self, text): + self._state = text + self._set("prompt", '"'+text+'"') + + def cls(self): + VFP.call(self.id, "cls") + VFP.erase(self.id) + + def appendText(self,text): + VFP.record(self.id, True) + VFP.call(self.id,"appendText", '"'+text+'"') + + def getCommand(self): + return self._state + + def __call__(self): + return self._state + def eventHandler(self, state): + val = state.split("=") + if val[0][0] == '"': + val[0] = val[0][1:-1] + self.begin(val[0]) + if self.handler: + self.handler() + def attachEventHandler(self, handler): + self.handler = handler + +class TextLog(Control, PrintList): + def __init__(self, id): + Control.__init__(self, id) + PrintList.__init__(self, self.info) + self._fileName = "" + self._recording = False + self._text = "" + + def clear(self): + VFP.call(self.id, "clear") + VFP.erase(self.id) + + try: + os.remove("../" + self._fileName) + except Exception as e: + #If the file doesn't exist + #print(e) + pass + + def info(self,text): + self.append(text) + + def warning(self,text): + output = 'w\\r'+self.toString(text) + self.append(output) + + def error(self,text): + output = 'e\\r'+self.toString(text) + self.append(output) + + def setFile(self,fileName): + if self._recording: + VFP.erase(self.id) + VFP.record(self.id,False) + self._recording = False + + self._fileName = fileName + self._set("file", '"'+fileName+'"') + + def append(self, output): + #Writing to the file + if self._fileName != "": + file = open("../"+self._fileName, "a+") + file.write(str(output).replace("\\r", "\r")+'\n'); + file.close() + + elif self._recording == False: + VFP.record(self.id, True) + self._recording = True + + VFP.call(self.id,"appendLine", '"'+self.toString(output)+'"') + +# Chart Controls +class LineChart(Control):# TODO setPlaces + + def __init__(self, id): + Control.__init__(self, id) + self._fileName = "" + self._recording = False + self._data = "" + + def setPlaces(self, n): + pass + + def append(self): + #Writing to the file + if self._fileName != "": + if self._data != "": + store = FileStore() + file = store.open(self._fileName, "a+") + store.write(file,str(self._data).replace("\\r", "\r")+'\n'); + store.close(file) + + elif not self._recording: + VFP.record(self.id, True) + self._recording = True + + VFP.call(self.id,"appendData", '"'+self._data+'"') + + def showColumn(self, column, visible): + print("ColumnVisible" + str(column) ) + VFP.set(self.id,"columnVisible" + str(column) , str(visible)) + + def setYrange(self, axis, min, max): + VFP.set(self.id, "YRange", str(axis)+ ',' + str(min) + ',' + str(max)) + + def setXrange(self, min, max): + VFP.set(self.id, "XRange", str(min) + ',' + str(max)) + + def setTimeRange(self, unit, range, absolute): + VFP.set(self.id, "TimeRange", str(unit) +','+ str(range) +','+ str(int(absolute))) + + def setDataFile(self, file): + if self._recording: + VFP.erase(self.id) + VFP.record(self.id, False) + self._recording = False + VFP.set(self.id,'data', '"'+file+'"') + self._fileName = file + self.append() + + def clearData(self): + VFP.call(self.id, "clearData") + VFP.erase(self.id) + store = FileStore() + store.remove(self._fileName) + + def writeData(self,*d): + self._data = str(d[0]) + for i in range(len(d[1:])): + self._data += "," + str(d[i+1]) + self.append() + +class Histogram(Control):# TODO setPlaces + def __init__(self, id): + Control.__init__(self, id) + self._fileName = "" + self._recording = False + self._data = "" + + + def append(self): + #Writing to the file + if self._fileName != "": + if self._data != "": + store = FileStore() + file = store.open(self._fileName, "a+") + store.write(file,str(self._data).replace("\\r", "\r")+'\n'); + store.close(file) + + elif not self._recording: + VFP.record(self.id, True) + self._recording = True + + VFP.call(self.id,"appendData", '"'+self._data+'"') + + def setPlaces(self,n): + pass + + def clearData(self): + VFP.call(self.id, "clearData") + VFP.erase(self.id) + store = FileStore() + store.remove(self._fileName) + + def setXRange(self, max, min, bars): + VFP.set(self.id,'XRange',str(max) + ',' + str(min) + ',' + str(bars)) + + def setTimeRange(self, unit, range, bars, absolute): + VFP.set(self.id,'TimeRange',str(unit) + ',' + str(range) + ',' + str(bars)+ ',' + str(int(absolute))) + + def setYRange(self, min, max): + VFP.set(self.id, "YRange", str(min) + ',' + str(max)) + + def setDataFile(self, file): + if self._recording: + VFP.erase(self.id) + VFP.record(self.id, False) + self._recording = False + VFP.set(self.id,'data', '"'+file+'"') + self._fileName = file + self.append() + + def writeData(self,bar,y): + self._data = str(bar) + "," + str(y) + self.append() + +class BarChart(Control): + def __init__(self, id): + Control.__init__(self, id) + self.activeSeries = [] + self.catCount = -1 + VFP.record(self.id, True) + + def init(self, _catCount): + self.catCount = _catCount + for i in range(self.catCount): + self.activeSeries.append(0.0) + + def reload(self): + for i in range(self.catCount): + VFP.call(self.id,"setData", '"'+str(0)+'","'+str(i)+'","'+str(self.activeSeries[i])+'"') + + def setSeriesVisible(self, seriesIdx, visible): + VFP.set(self.id,'seriesVisible',str(seriesIdx) + ',' + str(visible)) + + def setYrange(self, min, max): + VFP.set(self.id,'YRange',str(min) + ',' + str(max)) + + def setData(self, catIdx, value): + if(catIdx < self.catCount): + VFP.call(self.id,"setData", '"'+str(0)+'","'+str(catIdx)+'","'+str(value)+'"') + self.activeSeries[catIdx] = value + + def incrementData(self, catIdx, amount): + if(catIdx < self.catCount): + self.setData(catIdx,self.activeSeries[catIdx] + amount) + + def decrementData(self,catIdx, amount): + self.incrementData(catIdx, -amount) + + def resetSeries(self, seriesIdx): + VFP.call(self.id,"clearSeriesData", '"'+str(seriesIdx)+'"') + if (seriesIdx == 0): + for i in range(self.catCount): + self.activeSeries[i] = 0.0 + + def writeSeries(self, filename): + file = open("../"+filename, "w") + for i in range(self.catCount): + file.write(str(self.activeSeries[i])+'\n') + file.close() + + def loadSeries(self, seriesIdx, filename): + VFP.set(self.id,'seriesDataFile',str(seriesIdx) + ',"' + str(filename)+'"') + + def clearData(self): + VFP.call(self.id, "clearData") + VFP.erase(self.id) + +class WindRose(Control): + def __init__(self, id): + Control.__init__(self, id) + self._fileName = "" + self.WIND_BANDS = 6 + self.WIND_DIRS = 16 + self.thresholds = [] + self.calm = 0 + + self.clearRecord() + + def begin(self, file, bands): + self._fileName = file + self.thresholds = bands.split(',') + + def reload(self): + VFP.call(self.id, "loadData") + + def setTimeRange(self, unit, range): + VFP.set(self.id,'TimeRange',str(unit) + ',' + str(range)) + + def storeReading(self, wind_dir, wind_speed): + #This will store a reading into the array + dir = round((self.WIND_DIRS*wind_dir/360.0)%self.WIND_DIRS) + band = 0 + while(band < self.WIND_BANDS-1 and wind_speed > int(self.thresholds[band])): + band += 1 + + if (band == 0): + self.calm += 1 + else: + self.bins[dir][band-1] += 1 + + def storeRecord(self): + #Tis writes to the data file + dateTime = str(datetime.datetime.now()).split('.')[0] + file = open('../'+self._fileName, 'a+') + file.write(dateTime+','+str(self.calm)) + for i in range(self.WIND_DIRS): + for n in range(self.WIND_BANDS-1): + file.write(','+str(self.bins[i][n])) + file.write('\n') + file.close() + + self.clearRecord() + VFP.call(self.id, "loadData") + + def clearRecord(self): + #This sets and resets the array called bins + self.bins = [] + for i in range(self.WIND_DIRS): + self.bins.append([0,0,0,0,0]) + self.calm = 0 + + def clearData(self): + VFP.call(self.id, "clearData") + try: + os.remove('../'+self._fileName) + except: + #If there is no file + pass + +#Time Controls +class Clock(Control): + def __init__(self, id): + Control.__init__(self, id) + + rawTime = str(datetime.datetime.now()).split('.')[0] + self.time = datetime.datetime.strptime(rawTime,'%Y-%m-%d %H:%M:%S').timestamp() + + self.CLOCK_ALARMS = 8 #Max number of alarms + + self.alarms = [] #Time + self.enabled = []#Is alarm enabled or not? + now = str(datetime.datetime.now()).split('.')[0] #Ticking Time + self.nexttick = datetime.datetime.strptime(now,'%Y-%m-%d %H:%M:%S').timestamp() + + + for i in range(self.CLOCK_ALARMS): + self.alarms.append(0) + self.enabled.append(0) + # + def sync(self): + now = datetime.datetime.fromtimestamp(self.time) + hour = str(now).split(' ')[1].split(':')[0] + minute = str(now).split(':')[1] + second = str(now).split(':')[2].split('.')[0] + + alarm = False + for i in range(self.CLOCK_ALARMS): + if self.enabled[i] == 1: + alarm = True + + VFP.call(self.id,"sync", hour+','+minute+','+second+',"'+str(alarm)+'"') + + def poll(self):#TODO poll at end of loop + millis = datetime.datetime.strptime(str(datetime.datetime.now()).split('.')[0],'%Y-%m-%d %H:%M:%S').timestamp() + while (millis - self.nexttick) >= 0: + self.time = (self.time + 1)#%86400 + self.sync() + + for i in range(self.CLOCK_ALARMS): + if ((self.enabled[i] == True) & (self.time == self.alarms[i])): + self.trigger() + + self.nexttick += 1 + # + def reload(self): + self.sync() + # + def operator(self, id): + id -= 1 + return self.enabled[id] & self.alarms[id] >= self.time & self.time < self.alarms[id]+60; + # + def setTime(self, time): + self.time = time + self.sync() + # + def getTime(self): + return(self.time) + # + def setTimeMode(self, id): + h = 0 + m = 0 + now = datetime.datetime.fromtimestamp(self.time) + if id == 0: + h = str(now).split(' ')[1].split(':')[0] + m = str(now).split(':')[1] + else: + h = int(self.alarms[id-1]/3600) + m = self.alarms[id-1]/60-60*h + + + + VFP.call(self.id,"setMode", str(id)+','+str(h)+','+str(m)) + # + def cancelSetMode(self): + VFP.call(self.id,"cancelMode") + # + def setAlarm(self,id,hour,min): + if (id >= 1 & id <= self.CLOCK_ALARMS): + self.alarms[id-1] = self.time + min*60 + hour*3600; + self.enabled[id-1] = True + # + def enableAlarm(self,id,flag): + self.enabled[id-1] = flag + # + def getAlarm(self, id): + return(self.alarms[id-1]) + # + def attachAlarmHandler(self, handler): + self.alarmHandler = handler + # + def trigger(self): + VFP.call(self.id,"trigger") + if self.alarmHandler != None: + self.alarmHandler() + +class Timer(Control): + def __init__(self, id): + Control.__init__(self, id) + self.dir = 0 + self.mode = 0 + self.period = 0 + self.time = 0 + self.running = False #Time + self.triggered = 0 + self.millis = 0 + + self.nexttick = datetime.datetime.strptime(str(datetime.datetime.now()).split('.')[0],'%Y-%m-%d %H:%M:%S').timestamp() + + def begin(self, d, m, hour, min, sec, e): + self.dir = d + self.mode = m + self.time = sec + 60*min*3600*hour + self.period = self.time + if e == 0: + self.enabled = False + else: + self.enabled = True + self.reset(False) + + def poll(self): + millis = datetime.datetime.strptime(str(datetime.datetime.now()).split('.')[0],'%Y-%m-%d %H:%M:%S').timestamp() + while (millis - self.nexttick) >= 0: + if self.running: + if ((int(self.dir) > 0) and (self.time != self.period)) or ((int(self.dir) < 0) and (self.time != 0)): + if ((int(self.dir) > 0) and (self.time+1 == self.period)) or ((int(self.dir) < 0) and (self.time-1 == 0)): + self.trigger() + else: + if int(self.dir) > 0: + self.time +=1 + else: + self.time -= 1 + self.sync() + + self.nexttick += 1 + + + def reload(self): + self.sync() + + def operator(self): + t = self.triggered + self.triggered = False + return t + + def restart(self): + self.reset(True) + + def reset(self, run = False): + self.running = run + if int(self.dir) > 0: + self.time = 0 + else: + self.time = self.period + self.sync() + + def start(self): + if (((int(self.dir) > 0) and (self.time == self.period)) or ((int(self.dir) < 0) and (self.time == 0))): + self.reset(True) + else: + self.running = True + self.sync() + + def stop(self): + self.running = False + self.sync() + + def setPeriod(self,hour,min,sec): + self.period = sec+(60*min)+(3600*hour) + self.sync() + + def enableAlarm(self, flag): + if flag == 0: + self.enabled = False + else: + self.enabled = True + + def trigger(self): + if int(self.mode) == 0: + self.running = False + if int(self.dir) > 0: + self.time += 1 + else: + self.time -= 1 + self.sync() + else: + self.restart() + + if self.enabled: + self.triggered = True + if self.eventHandler != None: + self.eventHandler() + VFP.call(self.id,"trigger") + + def sync(self): + hour = str(int(self.time/3600)) + minute = str(int((self.time%3600)/60)) + second = str(int((self.time%3600)%60)) + + VFP.call(self.id,"sync", hour+','+minute+','+second+',"'+str(self.enabled)+'"') + + def getTime(self): + return self.time + + + def attachEventHandler(self, handler): + self.eventHandler = handler + +# Photo / Video controls +class Photo(Control): + def __init__(self, id): + Control.__init__(self, id) + def showImage(self, file): + self._set("file", "'"+file+"'") + def showVideo(self, file): + self._set("file", "'"+file+"'") + def clear(self): + VFP.call(self.id,"clear") diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/DC Motor.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/DC Motor.xml index fb91c1e9e11d148bc611a0d7b2a79bc511863c85..6de05ed3a26418d76232c55b39c14e1cfdbb2291 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/DC Motor.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/DC Motor.xml @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e62cd540245aa60a3e8ece4a287a3e60c1c191b9d7dcfa9f5c7ff39676146100 -size 872 + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Displays.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Displays.py index ced7ba14d24738ed40c1014d974ff4544037a23e..67531440aca416ba5762edef90ef10c76c4e9902 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Displays.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Displays.py @@ -1,3 +1,167 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97f131361e19141eb5947c1d51be543f51de774eab9f2995f7bb0c8be979e26c -size 5654 +import Adafruit_ILI9341 +import Adafruit_GPIO as GPIO +import Adafruit_GPIO.SPI as SPI +from PIL import Image, ImageDraw, ImageFont +import smbus +from PrintList import PrintList +import time +import sys + + +class TFTDisplay: + def __init__(self, DC, RST): + SPI_PORT = 0 + SPI_DEVICE = 0 + Speed = 64000000 + Pi = SPI.SpiDev(SPI_PORT, SPI_DEVICE, max_speed_hz=Speed) + + #Setup Display + self.disp = Adafruit_ILI9341.ILI9341(DC,rst=RST, spi=Pi) + + #Start Display + self.disp.begin() + + #Setup for drawing + self.draw = self.disp.draw() + + #Setup Colours + self.redFill = 0 + self.greenFill = 0 + self.blueFill = 0 + self.redLine = 0 + self.greenLine = 0 + self.blueLine = 0 + + #Setup Text Properties + self.font = ImageFont.load_default() + self.textSize = 90 + + def loadImage(self,Picture,angle): + try: + self.image = Image.open(Picture) + self.image = self.image.rotate(angle) + self.image = self.image.resize((240, 320)) # sets the image size. Needed for all + self.disp.display(self.image) + except: + print("Image name incorrect, or incorrect format", file=sys.stderr) + + #Drawing Methods + + def setOutline(self,red,green,blue): + self.redLine = red + self.greenLine = green + self.blueLine = blue + + def setFill(self,red,green,blue): + self.redFill = red + self.greenFill = green + self.blueFill = blue + + def fillScreen(self): + self.disp.clear((self.redFill,self.greenFill,self.blueFill)) + self.disp.display() + + def drawCircle(self,x,y,radius): + outColour = (self.redLine,self.greenLine,self.blueLine) + fillColour = (self.redFill,self.greenFill,self.blueFill) + self.draw.ellipse((x-radius, y-radius, x+radius, y+radius), outline=outColour, fill=fillColour) + self.disp.display() + + def drawEllipses(self,x,y,width,height): + outColour = (self.redLine,self.greenLine,self.blueLine) + fillColour = (self.redFill,self.greenFill,self.blueFill) + self.draw.ellipse((x-width, y-height, x+width, y+height), outline=outColour, fill=fillColour) + self.disp.display() + + def drawRectangle(self,x,y,height,width): + outColour = (self.redLine,self.greenLine,self.blueLine) + fillColour = (self.redFill,self.greenFill,self.blueFill) + self.draw.rectangle((x, y,x+width ,y+height), outline=outColour, fill=fillColour) + self.disp.display() + + def drawLine(self,x1,y1,x2,y2): + outColour = (self.redLine,self.greenLine,self.blueLine) + self.draw.line((x1, y1, x2, y2), fill=outColour) + self.disp.display() + + def newPolygon(self,x,y): + self.polygon = [] + self.polygon.append((x,y)) + + def addPolygonPoint(self,x,y): + self.polygon.append((x,y)) + + def drawPolygon(self): + outColour = (self.redLine,self.greenLine,self.blueLine) + fillColour = (self.redFill,self.greenFill,self.blueFill) + self.draw.polygon(self.polygon, outline=outColour, fill=fillColour) + self.disp.display() + + #Text Methods + + def draw_rotated_text(self, image, text, position, angle, font, fill): + # Get rendered font width and height. + draw = ImageDraw.Draw(image) + width, height = draw.textsize(text, font=font) + # Create a new image with transparent background to store the text. + textimage = Image.new('RGBA', (width, height), (0,0,0,0)) + # Render the text. + textdraw = ImageDraw.Draw(textimage) + textdraw.text((0,0), text, font=font, fill=fill) + # Rotate the text image. + rotated = textimage.rotate(angle, expand=1) + # Paste the text into the image, using it as a mask for transparency. + image.paste(rotated, position, rotated) + + def setTextFont(self, size, font): + fonts = ['DejaVuSerif.ttf','DejaVuSans.ttf','DejaVuSansMono.ttf'] + self.font = ImageFont.truetype(fonts[font], size) + + def customTextFont(self, size, font): + self.font = ImageFont.truetype(font, size) + + def drawText(self, text, x, y, angle): + fillColour = (self.redFill,self.greenFill,self.blueFill) + self.draw_rotated_text(self.disp.buffer, text, (x, y), angle, self.font, fill=fillColour) + self.disp.display() + + def clear(self): + self.disp.clear((255,255,255)) + self.disp.display() + + +class I2CLDC(PrintList): + def __init__(self): + PrintList.__init__(self, self._print) + self.bus = smbus.SMBus(1) + self.bus.write_i2c_block_data(62, 128, [1]) + time.sleep(.05) + self.bus.write_i2c_block_data(62, 128, [12]) + self.bus.write_i2c_block_data(62, 128, [40]) + + + def _print(self,value): + line = True + for i in range(len(value)): + if (i > 16) and line: + self.bus.write_i2c_block_data(62, 128, [192]) + line = False + + try: + ascii = ord(value[i]) + except: + ascii = 63 + self.bus.write_i2c_block_data(62, 64, [ascii]) + + def println(self,value): + self.bus.write_i2c_block_data(62, 128, [192]) + for i in range(len(value)): + try: + ascii = ord(value[i]) + except: + ascii = 63 + self.bus.write_i2c_block_data(62, 64, [ascii]) + + def clear(self): + self.bus.write_i2c_block_data(62, 0, [1]) + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Email.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Email.xml index 93522b5388873231bfc0030caa9b65a0495b9221..30acfeef5c338c7e67f237d3d8e641a20385bad0 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Email.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Email.xml @@ -1,3 +1,22 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bae54b2d0c549df1b3aa9aeba2cf2b2cc7caa98681a8f508305d121f0cc08950 -size 1074 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/FileStore.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/FileStore.py index 20da26e88d4e8e9aa03ff154a502943500814849..9ba63426af4e783881c71d1d394def483f665c31 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/FileStore.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/FileStore.py @@ -1,3 +1,92 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1139a3f244f0f9d0745b9672a9f6b1ae8f2a2fcf4ad43adcfa874350f0538cf0 -size 2219 +import os +from ReadList import ReadList +from PrintList import PrintList + +class FileStore : + def __init__(self): + self._cwd = './' + self._delimiter=',' + pass + + def begin(self): + pass + + def _absPath(self, filename): + if (filename[0] == '/'): + return filename + else: + return self._cwd + filename; + + def __call__(self, filename): + try: + file = open(self._absPath(filename), 'r') + if (file == None): + return False + file.close() + return True + except OSError: + return False + + def open(self, filename, mode='r'): + try: + return open(self._absPath(filename), mode) + except OSError: + return None + + def close(self, file): + if (file != None): + file.close() + + def flush(self, file): + return file.flush() + + def remove(self, filename): + return os.remove(self._absPath(filename)) + + def chdir(self, dir): + self._cwd = self._absPath(dir) + '/' + + def mkdir(self, dir): + return os.makedirs(self._absPath(dir), exist_ok=True) + + def rmdir(self, dir): + return os.rmdir(self._absPath(dir)) + + def setDelimiter(self, delimiter): + self._delimiter = delimiter + + def write(self, file, *args): + def writeString(s): + nonlocal file + file.write(s) + list = PrintList(writeString) + list.setDelimiter(self._delimiter) + list.print(*args) + + def writeln(self, file, *args): + self.write(file, *args) + file.write("\n") + + def readln(self, file): + return file.readline() + + def read(self, file, output=[]): + def readChar(): + nonlocal file + return file.read(1) + list = ReadList(readChar) + list.setDelimiter(self._delimiter) + list.read(output) + + def flush(self, file): + file.flush() + + def print(self, file, *args): + if args: + file.write(self._delimiter.join(str(x) for x in args)) + + def println(self, file, *args): + if args: + file.write(self._delimiter.join(str(x) for x in args)) + file.write("\n") + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/FileStore.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/FileStore.xml index 2243f2674f297139bf150e5fb77579717674a29d..488288a4ed693ed4a6a20ab9d35ad33dc5e338e0 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/FileStore.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/FileStore.xml @@ -1,3 +1,62 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ef9b4615fed8f8b9875fa2c9ba2c08495f03eb3abbde8a457b158780c1e0aaf -size 3023 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/GPIO Expander MCP23017.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/GPIO Expander MCP23017.xml index 50e100bb63515b0b777847d64306fd33fd66d240..c7013fe56db9f5337117c2e940d125888bca4ede 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/GPIO Expander MCP23017.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/GPIO Expander MCP23017.xml @@ -1,3 +1,48 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4eed921093e02ac70df2010576f5cbfc4a7feaea98abbac0c5f84815c3d32ec7 -size 2184 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Generic.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Generic.py index 6f6e5c5fbae1a14dc71a1e68c5cdfe516d2c7de2..e302c92391d28dd5a4dbbb0dfce6db445839ba4d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Generic.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Generic.py @@ -1,3 +1,488 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8eedcaf93fbd42c1090776c06c6b9057432d5628c6c8bcb3699feb1763efe0e -size 13173 +import wiringpi +#import serial +import RPi.GPIO as GPIO +import time +import math +from Adafruit_MCP230xx.Adafruit_MCP230xx import Adafruit_MCP230XX +from ADS1x15 import ADS1015 as ADS1x15 +import Adafruit_MCP3008 +import math + +import board +import adafruit_bme280.advanced as adafruit_bme280 + +class RelayBoards: + __pinR1 = 0 + __pinR2 = 0 + __pinR3 = 0 + __pinR4 = 0 + + def __init__(self, R1, R2, R3=2, R4=3): + time.sleep(0.01) + + GPIO.setmode(GPIO.BCM) + self.__pinR1 = R1 + self.__pinR2 = R2 + self.__pinR3 = R3 + self.__pinR4 = R4 + + + def relayOn(self, n): + __pinHold = self.getPin(n) + GPIO.setup(__pinHold, GPIO.OUT) + GPIO.output(__pinHold, True) + + def relayOff(self, n): + __pinHold = self.getPin(n) + GPIO.setup(__pinHold, GPIO.OUT) + GPIO.output(__pinHold, False) + + def relaySet(self, n, s): + __pinHold = self.getPin(n) + GPIO.setup(__pinHold, GPIO.OUT) + if s: + GPIO.output(__pinHold, True) + else: + GPIO.output(__pinHold, False) + + def relayGet(self, n): + __pinHold = self.getPin(n) + GPIO.setup(__pinHold, GPIO.IN) + return GPIO.input(__pinHold) + + + def getPin(self, n): + __pinHold = 0 + + if n == 0: + __pinHold = self.__pinR1 + elif n == 1: + __pinHold = self.__pinR2 + elif n == 2: + __pinHold = self.__pinR3 + else: + __pinHold = self.__pinR4 + + return __pinHold + +class Buzzer: + __pin = 0 + + def __init__(self, id): + time.sleep(0.01) + GPIO.setmode(GPIO.BCM) + self.__pin = id + GPIO.setup(self.__pin, GPIO.OUT) + + def on(self): + GPIO.output(self.__pin, True) + + def off(self): + GPIO.output(self.__pin, False) + + def set(self,s): + GPIO.output(self.__pin, s) + +class LED: + __pin = 0 + + def __init__(self, id): + time.sleep(0.01) + GPIO.setmode(GPIO.BCM) + self.__pin = id + GPIO.setup(self.__pin, GPIO.OUT) + + def on(self): + GPIO.output(self.__pin, True) + + def off(self): + GPIO.output(self.__pin, False) + + def set(self,s): + GPIO.output(self.__pin, s) + + def toggle(self): + state = GPIO.input(self.__pin) + GPIO.output(self.__pin, not state) + + def __call__(self): + return GPIO.input(self.__pin) + +class Button: + __pin = 0 + + def __init__(self, id): + time.sleep(0.01) + GPIO.setmode(GPIO.BCM) + self.__pin = id + GPIO.setup(self.__pin, GPIO.IN) + + def __call__(self): + return GPIO.input(self.__pin) + +class Piezo: + __pin = 0 + isEnabled = False + driveState = False + + def __init__(self, id): + time.sleep(0.01) + GPIO.setmode(GPIO.BCM) + self.__pin = id + GPIO.setup(self.__pin, GPIO.OUT) + + def drive(self): + if (self.driveState): + self.driveState = False + else: + self.driveState = True + + if (self.isEnabled): + if (self.driveState): + GPIO.output(self.__pin, True) + else: + GPIO.output(self.__pin, False) + + def enable(self): + self.isEnabled = True + + def disable(self): + self.isEnabled = False + GPIO.output(self.__pin, False) + +class Switch: + __pin = 0 + + def __init__(self, id): + time.sleep(0.01) + GPIO.setmode(GPIO.BCM) + self.__pin = id + GPIO.setup(self.__pin, GPIO.IN) + + def __call__(self): + return wGPIO.input(self.__pin) + +class RgbLedCc: + __pinR = 0 + __pinG = 0 + __pinB = 0 + colour = [True,True,True] + + def __init__(self, r, g, b): + time.sleep(0.01) + GPIO.setmode(GPIO.BCM) + self.__pinR = r + self.__pinG = g + self.__pinB = b + GPIO.setup(self.__pinR, GPIO.OUT) + GPIO.setup(self.__pinG, GPIO.OUT) + GPIO.setup(self.__pinB, GPIO.OUT) + + def set(self, r, g, b): + GPIO.output(self.__pinR, r) + GPIO.output(self.__pinG, g) + GPIO.output(self.__pinB, b) + self.colour = [GPIO.input(self.__pinR), + GPIO.input(self.__pinG), + GPIO.input(self.__pinB)] + + def toggle(self): + #Toggling the colour on and off. not switching colours + colourCheck = [GPIO.input(self.__pinR), + GPIO.input(self.__pinG), + GPIO.input(self.__pinB)] + + if colourCheck == self.colour: + GPIO.output(self.__pinR, False) + GPIO.output(self.__pinG, False) + GPIO.output(self.__pinB, False) + else: + GPIO.output(self.__pinR, self.colour[0]) + GPIO.output(self.__pinG, self.colour[1]) + GPIO.output(self.__pinB, self.colour[2]) + +class RgbLedCa: + __pinR = 0 + __pinG = 0 + __pinB = 0 + colour = [False,False,False] + + def __init__(self, r, g, b): + time.sleep(0.01) + GPIO.setmode(GPIO.BCM) + self.__pinR = r + self.__pinG = g + self.__pinB = b + GPIO.setup(self.__pinR, GPIO.OUT) + GPIO.setup(self.__pinG, GPIO.OUT) + GPIO.setup(self.__pinB, GPIO.OUT) + + def set(self, r, g, b): + GPIO.output(self.__pinR, not r) + GPIO.output(self.__pinG, not g) + GPIO.output(self.__pinB, not b) + self.colour = [GPIO.input(self.__pinR), + GPIO.input(self.__pinG), + GPIO.input(self.__pinB)] + + def toggle(self): + #Toggling the colour on and off. not switching colours + colourCheck = [GPIO.input(self.__pinR), + GPIO.input(self.__pinG), + GPIO.input(self.__pinB)] + + if colourCheck == self.colour: + GPIO.output(self.__pinR, True) + GPIO.output(self.__pinG, True) + GPIO.output(self.__pinB, True) + else: + GPIO.output(self.__pinR, self.colour[0]) + GPIO.output(self.__pinG, self.colour[1]) + GPIO.output(self.__pinB, self.colour[2]) + +class MCP23017: + + def __init__(self, *jps): + + address = 0x20 + + for i in range(len(jps)): + if jps[i] == "1": + address += 2**i + + self.setAddress(address) + + def setAddress(self,address): + self.mcp = Adafruit_MCP230XX(busnum = 1, address = address, num_gpios = 16) + + def pinMode(self, pin, mode): + self.mcp.config(pin, mode) + + def pullUpPin(self, pin): + self.mcp.pullup(pin, 1) + + def digitalWrite(self,pin,value): + self.mcp.output(pin, value) + + def digitalRead(self,pin): + value = self.mcp.input(pin) + if value > 0: + return(1) + else: + return(0) + +class ADS1015: + def __init__(self): + self.setAddress(0x48) + + def readAnalogue(self,port): + value = (self.ads.read_adc(port))/(5*100) + return value + + def setAddress(self,address): + self.ads = ADS1x15(address) + +class MCP3008: + def __init__(self, CLK, DOUT, DIN, CS): + self.mcp = Adafruit_MCP3008.MCP3008(clk=CLK, cs=CS, miso=DOUT, mosi=DIN) + + def analogRead(self,pin): + value = self.mcp.read_adc(pin)/205 + return(value) + +#TODO +class RotaryAngleSensor: + __pin = 0 + full_angle = 0 + + def __init__(self, id, angle): + time.sleep(0.01) + self.__pin = id + full_angle = angle + wiringpi.wiringPiSetupGpio() + wiringpi.pinMode(self.__pin, wiringpi.INPUT) + + def readAngle(self): + return adcval/1024*full_angle + + def readRaw(self): + return adcval() + + def adcval(self): + return wiringpi.analogRead(self.__pin) + + def __call__(self, trigger): + if (readAngle() >= trigger): + return readAngle() + +class DCMotorV1: + dir = 0 + pwm = 0 + brake = 0 + running = False + + def __init__(self, d, p, b): + time.sleep(0.01) + self.dir = d + self.pwm = p + self.brake = b + self.running = False + GPIO.setmode(GPIO.BCM) + + def __call__(self): + return self.running + + def begin(self): + GPIO.setup(self.dir, GPIO.OUT) + GPIO.setup(self.brake, GPIO.OUT) + GPIO.setup(self.pwm, GPIO.OUT) + GPIO.output(self.dir, False) + GPIO.output(self.brake, False) + + self.motorPWM = GPIO.PWM(self.pwm, 100) + self.motorPWM.start(0) + + def run(self, direction, speed): + if (direction == 1): + GPIO.output(self.dir, True) + else: + GPIO.output(self.dir, False) + + GPIO.output(self.brake, False) + self.motorPWM.ChangeDutyCycle(speed) + + def stop(self): + self.motorPWM.ChangeDutyCycle(100) + GPIO.output(self.brake, True) + + def release(self): + GPIO.output(self.brake, False) + self.motorPWM.ChangeDutyCycle(0) + +class GPS: + storedData = [0,0] + + def __init__(self): + self.uart = wiringpi.Serial("/dev/serial0", 9600) + + def read(self): + data = "" + c = 0 + while True: + input = self.uart.getchar() + if input == "\r": + c = c + 1 + if c > 3: + return(data) + data += input + + def returnFix(self): + data = self.read().split('\n') + for i in range(len(data)): + if '$GPGGA' in data[i]: + if data[i].split(',')[2][:2] == '': + return(False) + else: + return(True) + + def getPosition(self): + data = self.read().split('\n') + latitude = self.storedData[0] + longitude = self.storedData[1] + for i in range(len(data)): + print(data[i]) + if '$GPGGA' in data[i]: + try: + lat = data[i].split(',')[2] + lon = data[i].split(',')[4] + print('Lat: '+lat) + print('Lon: '+lon) + latitude = float(lat[:2])+(float(lat[2:])/60) + longitude = float(lon[:3])+(float(lon[3:])/60) + self.storedData = [latitude,longitude] + except: + pass + + return(latitude,longitude) + + def getAltitude(self): + data = self.read().split('\n') + + for i in range(len(data)): + if '$GPGGA' in data[i]: + try: + altitude = float(data[i].split(',')[9]) + except: + altitude = 0 + return(altitude) + + def getSatellites(self): + data = self.read().split('\n') + + for i in range(len(data)): + if '$GPGGA' in data[i]: + try: + satellites = int(data[i].split(',')[7]) + except: + satellites = 0 + return(satellites) + + def getDistance(self, lon1, lat1, lon2, lat2): + + # convert decimal degrees to radians + lon1 = math.radians(lon1) + lat1 = math.radians(lat1) + lon2 = math.radians(lon2) + lat2 = math.radians(lat2) + + # haversine formula + dlon = lon2 - lon1 + dlat = lat2 - lat1 + a = math.sin(dlat/2)**2 + math.cos(lat1) * math.cos(lat2) * math.sin(dlon/2)**2 + c = 2 * math.asin(math.sqrt(a)) + r = 6371000 #6371 Radius of earth in kilometers. Use 3956 for miles + return(c * r) + + def getBearing(self,lat1,lon1,lat2,lon2): + lat1 = math.radians(lat1) + lat2 = math.radians(lat2) + + diffLong = math.radians(lon2 - lon1) + + x = math.sin(diffLong) * math.cos(lat2) + y = (math.cos(lat1) * math.sin(lat2) - (math.sin(lat1) + * math.cos(lat2) * math.cos(diffLong))) + + initial_bearing = math.atan2(x, y) + initial_bearing = math.degrees(initial_bearing) + compass_bearing = (initial_bearing + 360) % 360 + return compass_bearing + + +class BME280: + + def __init__(self, sea_level = 1013.25): + + i2c = board.I2C() # uses board.SCL and board.SDA + self.bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c) + self.bme280.sea_level_pressure = sea_level + + def getValues(self): + humidity = self.bme280.relative_humidity + pressure = self.bme280.pressure + temperature = self.bme280.temperature + + return(humidity, pressure, temperature) + + def getHumidity(self): + return(self.bme280.relative_humidity) + + def getPressure(self): + return(self.bme280.pressure) + + def getTemperature(self): + return(self.bme280.temperature) + + def getAltitude(self, seaLevelPressure): + self.bme280.sea_level_pressure = seaLevelPressure + return(self.bme280.altitude) \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove 128x64 OLED display.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove 128x64 OLED display.xml index 87ad434ae3a88d3f87ebbd3eec0b126947fe3608..9eab4f0415d66bdcb9f1c78a8cceaee189e84356 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove 128x64 OLED display.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove 128x64 OLED display.xml @@ -1,3 +1,61 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f6b38e0f2b9046d1cd2a57dc3161b843946b0a400e8b50b8edd8339bad3d4d90 -size 2512 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove 4 Digit Display.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove 4 Digit Display.xml index 8f13990c1e14cfb17f3e2751b9a46a819b50151f..c06ff33d253638941142ad5a0d7b343bede6a033 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove 4 Digit Display.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove 4 Digit Display.xml @@ -1,3 +1,36 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d057a75b6197c79bd3d1a143b655d5aa3854f7a97f1fa9b517aa8726b8e32c7b -size 1525 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Button.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Button.xml index c0744e657842bd1604474afc5d4177be81403d68..f17f520a1eb89793d88490918efa5a3d29c3b8cb 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Button.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Button.xml @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:23b2d04a874bb4be0c4a427b03c55fc1de58b44fba59383a214b2ef8167f0c60 -size 640 + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Buzzer.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Buzzer.xml index 1983e6b5543b16a63ed99564e10b684d1ef63ed6..5cec903b70079c19fd88b74b800af450c382b717 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Buzzer.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Buzzer.xml @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dac876a458982c447867cd15c6e1c5e348dea24a447906a74b24f62d697d8152 -size 842 + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Differential Amplifier.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Differential Amplifier.xml index 08da7fb010fee6bffd2470deeeaca0faf7f31c32..27ba3ea2a173ed38a44b293f1b61b13e798183a3 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Differential Amplifier.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Differential Amplifier.xml @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:207a41bebb1e332f9ac61d4ba7bd07d931b9af35655b89a88b52b0d2385d4b05 -size 1686 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove I2C ADC.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove I2C ADC.xml index 9ff7c8992149b65a0d88989f529c1d77676a0a7c..acf8ef19c4a93d213acbcf8840f991a2175e41c0 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove I2C ADC.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove I2C ADC.xml @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0bdb4d9201418e18be5f2f9dd6b79c0f2659371b99c99cf2afeac65a294e3cf0 -size 1175 + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Infrared Proximity Sensor.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Infrared Proximity Sensor.xml index a436f8f78a41c8c0a15baeab8d35b0b4db2efcc7..b22bfde22c06b14c56ab9dc680b5a975611f4334 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Infrared Proximity Sensor.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Infrared Proximity Sensor.xml @@ -1,3 +1,27 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e0a29c2eafb4d582be9c8164349eff14342dc81e579b67c769e2fd23765ada3 -size 1199 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LCD RGB Backlight.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LCD RGB Backlight.xml index 4d5b42d425753fc91938eed5b565629bc36f10fb..2232ecac06b2249e0947168ee715dc4ca46d3351 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LCD RGB Backlight.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LCD RGB Backlight.xml @@ -1,3 +1,47 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dcbba8872d6df7f6e128cd03e03a19433f7edeaf56b1a02d44e8dfdfdfff7718 -size 2036 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Blue.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Blue.xml index 0570a0d2543739e7a6f82845da11c0f87bb64ce0..0bc0a81434b9bba95cdeb57b051605f3cf57fc80 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Blue.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Blue.xml @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5b67744df3cfa1492f69abbd446d3a50e40126286606c8834e84a84120ad8170 -size 490 + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Green.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Green.xml index 473c70a1542c22badfc8bb6c0e5113cf1ad6e552..3be62390c9e353fdcd367daebbf6ac0d2a2e5b01 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Green.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Green.xml @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:07211158a37f9971f2072f1351914534b467647284dde76a6f4a09bd3a94c8fa -size 492 + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Red.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Red.xml index a97beb604e612e25acd1547be186a45de0c137f8..72de7dc430b25134a4b7bcc5a671e49df4f601d8 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Red.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Red.xml @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3be30fe6f7a0ba26fd6d98df61ca3f682c744be66193a4049e472d07d3994ad3 -size 488 + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Yellow.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Yellow.xml index e17560a85b9493cfff6bb02c504359f8ba23d16d..4d71063c8fe63ccdcc8f3421930c9e127800f26f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Yellow.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED Yellow.xml @@ -1,3 +1,13 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e9caa2322c62155742478ef9df0abff354238f7f0a0a4e828eb7b413713078c -size 494 + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED bar.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED bar.xml index 431d062867593d845a059d102e315c64590370f4..39fb14b84b8cd72cb920139be451caad6b7618fa 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED bar.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove LED bar.xml @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f61309fddc5e45d8b2da988d31801de88af93614010b4b2cda524786a001c44d -size 1687 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Light Sensor.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Light Sensor.xml index 436346bb4aee348badb4d1e78991b1f5fd1128b7..a5e8c50465478b259f01533ff583fde0481c0e84 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Light Sensor.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Light Sensor.xml @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ef594c47298c9f71ebe39ce85b0653b8bbf757b0daac8a588c4ccaf8523fef2 -size 1271 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Luminance Sensor.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Luminance Sensor.xml index 632e1d55fe671c33959f6fa8f53f7ad5e2fd3d75..993aa890ae799eae75b8e2195a88d8c5b3a5884f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Luminance Sensor.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Luminance Sensor.xml @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97678dfcfda359327d56c5ac9f7881e009acf0b536014341b1ce16a5665ccb22 -size 1148 + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Relay.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Relay.xml index 842a18602c0554589358e0c44bed515801fbd39c..9aa76de9682dea2d7ca5eb79a36befbb348f681b 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Relay.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Relay.xml @@ -1,3 +1,20 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:28862a4dc089fdc9ebea3359757b0e79e88235e3e0dcb1b2138b2197dd605c74 -size 916 + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Rotary Angle Sensor.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Rotary Angle Sensor.xml index fa3ed7092db0da48a9352dbf405b4b6ff170749c..8e7519b877e946b3a1f86e81ed108ce0e51fa95f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Rotary Angle Sensor.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Rotary Angle Sensor.xml @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c55529e695ef1a23536212816ce9f63b493c2dea33772f7ff4c8ff2d31bfce02 -size 1243 + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Sound Sensor.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Sound Sensor.xml index 83a62c44afb75b9c9fcb859a56578cd7533ad3b9..3553148cd14cf306e3f8a0125320a44b180b5d12 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Sound Sensor.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Sound Sensor.xml @@ -1,3 +1,24 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97dd6052e91f4501542417f9789fa35372d52cadb5b80e23e6495576ee15de63 -size 1010 + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Switch.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Switch.xml index 776c1c459ed20bbfe2ade8210abf9154e3dd282f..ae50abdefcac3fd2040ffdb0a4b63a778d4689f6 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Switch.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Switch.xml @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f07c15310daf2b4bc5003731e4bd865c91cc4bdd36a5788f939ff9fd6fe6b2e1 -size 653 + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Temperature Sensor.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Temperature Sensor.xml index f30c0a412732fe32040e8884b9e0758fa72399aa..a8eadeb0c7c79f927b7330f6532e7f88f35042db 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Temperature Sensor.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Temperature Sensor.xml @@ -1,3 +1,30 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:18341f6092abdbbb5c74ade974369ee7305e5cbd338c7f0e50418b1745c8d71c -size 1347 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Touch Sensor.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Touch Sensor.xml index ad3f18be54499f4e6a78f21207e5cbf41794bd6d..a8f8549e29a8eb114b5691c38ca68fad26471b39 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Touch Sensor.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Touch Sensor.xml @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3873c3dc39d58f17df4533557daeb271031bff8624f4a2e90da8ba0571f67941 -size 663 + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Ultrasonic Ranger.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Ultrasonic Ranger.xml index f3084485a66ba308324b99ef4b43083438a322a1..5cc0aeb4e0124562d5eec584fa835399e135dc07 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Ultrasonic Ranger.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Ultrasonic Ranger.xml @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc08305f435cd363c13ac2318b9dc5c1401f9b5de80734bcc0334637cf737fa2 -size 1151 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Voltage Divider.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Voltage Divider.xml index 57054b7aea7c1df7d177c0123f3e83b9f104f5b6..8b2de699f47e06e20294cc759ca131b3856b43f8 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Voltage Divider.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove Voltage Divider.xml @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9a3bdf8cc8eda74cb3851a407d0a0a610b33bb5f42d5dccc6cc4edd47179fdf0 -size 1515 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove.py index 4b407a56663e49511aa8f59aecc71233137401be..40cc19aa6380264f289d53bc7587435ef8b7b0fb 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove.py @@ -1,3 +1,506 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:337d8040bc28076c0b3283244713d87506061a8e4a6206568a27a9675274be38 -size 12764 +import grovepi +import grove_rgb_lcd +import time +import math +import grove_128_64_oled as oled +import smbus +from PrintList import PrintList +from wiringpi import Serial #(Used in serial terminal) +#DONE + +class Grove: + def pinMode(self, pin, mode): + grovepi.pinMode(pin, mode) + + def digitalWrite(self, pin, value): + grovepi.digitalWrite(pin, value) + + def digitalRead(self, pin): + grovepi.digitalRead(pin) + + def analogWrite(self, pin, value): + grovepi.analogWrite(pin, value) + + def analogRead(self, pin): + return grovepi.analogRead(pin) + + +class GroveLED: + __pin = 0 + + def __init__(self, id): + self.__pin = id + grovepi.pinMode(self.__pin, "OUTPUT") + + def on(self): + grovepi.digitalWrite(self.__pin, 1) + + def off(self): + grovepi.digitalWrite(self.__pin, 0) + + def set(self, s): + if (s): + grovepi.digitalWrite(self.__pin, 1) + else: + grovepi.digitalWrite(self.__pin, 0) + + def dim(self, v): + grovepi.analogWrite(self.__pin, v) + + def toggle(self): + if (grovepi.digitalRead(self.__pin)): + grovepi.digitalWrite(self.__pin, 0) + else: + grovepi.digitalWrite(self.__pin, 1) + + def __call__(self): + return grovepi.digitalRead(self.__pin) == 1 + +class GroveButton: + __pin = 0 + + def __init__(self, id): + self.__pin = id + grovepi.pinMode(self.__pin, "INPUT") + + def __call__(self): + return grovepi.digitalRead(self.__pin) == 1 + +class GroveSwitch: + __pin = 0 + def __init__(self, id): + self.__pin = id + grovepi.pinMode(self.__pin, "INPUT") + + def __call__(self): + return grovepi.digitalRead(self.__pin) == 1 + +class GroveRelay: + __pin = 0 + def __init__(self, id): + self.__pin = id + grovepi.pinMode(self.__pin, "OUTPUT") + + def on(self): + grovepi.digitalWrite(self.__pin, 1) + + def off(self): + grovepi.digitalWrite(self.__pin, 0) + + def set(self, s): + if (s): + grovepi.digitalWrite(self.__pin, 1) + else: + grovepi.digitalWrite(self.__pin, 0) + + def __call__(self): + return grovepi.digitalRead(self.__pin) == 1 + +class GroveBuzzer: + __pin = 0 + + def __init__(self, id): + self.__pin = id + grovepi.pinMode(self.__pin, "OUTPUT") + + def on(self): + grovepi.digitalWrite(self.__pin, 1) + + def off(self): + grovepi.digitalWrite(self.__pin, 0) + + def set(self, s): + if (s): + grovepi.digitalWrite(self.__pin, 1) + else: + grovepi.digitalWrite(self.__pin, 0) + + def __call__(self): + return grovepi.digitalRead(self.__pin) == 1 + +class GroveTouchSensor: + __pin = 0 + + def __init__(self, id): + self.__pin = id + grovepi.pinMode(self.__pin, "INPUT") + + def __call__(self): + return grovepi.digitalRead(self.__pin) == 1 + +class GroveLedBar: + __pin = 0 + + def __init__(self, id): + self.__pin = id + grovepi.ledBar_init(self.__pin, 1) + + def setOrientation(self, greenToRed): + grovepi.ledBar_orientation(self.__pin, greenToRed) + + def setLevel(self, level): + grovepi.ledBar_setLevel(self.__pin, level) + + def setLed(self, led, state): + grovepi.ledBar_setLed(self.__pin, led, state) + + def toggleLed(self, led): + grovepi.ledBar_toggleLed(self.__pin,led) + + def setLeds(self, bits): + grovepi.ledBar_setBits(self.__pin,bits) + + def getLeds(self): + grovepi.ledBar_getBits(self.__pin) + +class Grove4DigitDisplay: + __pin = 0 + + def __init__(self, id): + self.__pin = id + grovepi.fourDigit_init(self.__pin) + + def init(self): + grovepi.fourDigit_off(self.__pin) + + def setBrightness(self, level): + grovepi.fourDigit_brightness(self.__pin, level) + + def display(self, pos, value): + grovepi.fourDigit_number(self.__pin, value, pos) + + #TODO Unsure of desired result for decimal + ''' + def decPoint(self, state): + value = 0 + if state == True: + value = 128 + + grovepi.fourDigit_segment(self.__pin, 0,value) + grovepi.fourDigit_segment(self.__pin, 1,value) + grovepi.fourDigit_segment(self.__pin, 2,value) + grovepi.fourDigit_segment(self.__pin, 3,value) + ''' + +class GroveTemperatureSensor: + __pin = 0 + + def __init__(self, id): + self.__pin = id + + def resistance(self): + a = grovepi.analogRead(self.__pin) + return((1023-a)*10000.0/a) + + def readKelvin(self): + return(1.0/(math.log(self.resistance()/10000)/3975+1/298.15)) + + def readCelcius(self): + return(self.readKelvin() - 273.15) + + def readFarenheit(self): + return(9*self.readKelvin() / 5 - 459.67) + + def __call__(self, trigger): + return self.readCelcius() >= trigger + +class GroveLightSensor: + __pin = 0 + Gamma = -0.858 + R1Lux = 127410.0 + Rref = 10000.0 + Vcc = 5.0 + + def __init__(self, id): + self.__pin = id + + def adcval(self): + return grovepi.analogRead(self.__pin) + + def resistance(self): + vout = (self.Vcc / 1024.0 * self.adcval()) + return (self.Rref * self.Vcc / vout) - self.Rref + + def readLight(self): + return (self.resistance() / self.R1Lux) ** (1.0 / self.Gamma) + + def readResistance(self): + return self.resistance() + + def readRaw(self): + return self.adcval() + + + def __call__(self, trigger): + return self.readLight() >= trigger + +class GroveRotaryAngleSensor: + __pin = 0 + Full_angle = 0 + + def adcval(self): + return grovepi.analogRead(self.__pin) + + def __init__(self, id, angle): + self.__pin = id + self.Full_angle = angle + + def readAngle(self): + return self.adcval() / 1024 * self.Full_angle + + def readRaw(self): + return self.adcval() + + + def __call__(self, trigger): + return self.readAngle() >= trigger + +class GroveVoltageDivider: + __pin = 0 + an = 0 + idx = 0 + divisor = 0 + + + def __init__(self, id, Divisor): + self.__pin = id + if Divisor == True: + self.divisor = 10 + else: + self.divisor = 3 + + def readValue(self, num_average): + self.an=0 + self.idx=0 + while self.idx= trigger + +class GroveLuminanceSensor: + __pin = 0 + + def __init__(self, id): + self.__pin = id + + def readLuminance(self): + vout = self.voltage() + lux = -14.266*(vout**3)+76.189*(vout**2)+389.65*vout-0.8606 + + if (lux < 0.0): + lux = 0.0 + return lux + + def adcval(self): + return grovepi.analogRead(self.__pin) + + def voltage(self): + return 5.0/1024.0 * self.adcval() + + def readVoltage(self): + return self.voltage() + + + def __call__(self, trigger): + return self.readLuminance() >= trigger + +class GroveInfraredProximitySensor: + __pin = 0 + + def __init__(self, id): + self.__pin = id + 1 + + def readVoltage(self): + return self.voltage() + + def readDistance(self): + return (self.voltage()**-1.219)*26.714 + + def voltage(self): + an=0 + idx=0 + while idx<20: + an = an + grovepi.analogRead(self.__pin) + idx+=1 + return an/20 * 5.0/1024.0 + + def __call__(self, trigger): + return self.readDistance() >= trigger + +class GroveDifferentialAmplifier: + __pin = 0 + + def __init__(self, id): + self.__pin = id + + def readAnalog(self): + return self.readValue(1) + + def readAverageAnalog(self, navr): + return self.readValue(navr) + + def readVoltage(self): + return self.readAverageAnalog(100)*5.0/1023.0 + + def readValue(self, num_average): + an=0 + idx=0 + while idx= trigger + +class GroveSoundSensor: + __pin = 0 + + def __init__(self, id): + self.__pin = id + + def readLevel(self): + return grovepi.analogRead(self.__pin) + + def __call__(self, trigger): + return self.readLevel() >= trigger + +#TODOs + +class GroveUltrasonic: + __pin = 0 + + def __init__(self, id): + self.__pin = id + + def readCentimeters(self): + return grovepi.ultrasonicRead(self.__pin)/0.38 + + def readInches(self): + return grovepi.ultrasonicRead(self.__pin) + + def __call__(self, trigger): + return self.readLevel() >= trigger + +class GroveRgbLcd(PrintList): + + def __init__(self): + self.memory = "" + PrintList.__init__(self, self._print) + + def _print(self,string): + self.memory = str(string) + grove_rgb_lcd.setText(self.toString(string)) + + def clear(self): + self.memory = "" + grove_rgb_lcd.setText("") + + def display(self): + grove_rgb_lcd.setText(self.memory) + + def noDisplay(self): + grove_rgb_lcd.setText("") + + def setColor(self,r,g,b): + try: + grove_rgb_lcd.setRGB(r,g,b) + except: + pass + +class OLEDdisplay(PrintList): + + def __init__(self,address): + self.line = 0 + + oled.address = 0x3C + address - 1 + oled.init() + + oled.clearDisplay() #clear the screen and set start position to top left corner + oled.setNormalDisplay() #Set display to normal mode (i.e non-inverse mode) + oled.setPageMode() + + PrintList.__init__(self, self._print) + + def writeCommand(self,command): + oled.sendCommand(command) + + def writeData(self,data): + oled.sendData(data) + + def clearDisplay(self): + oled.clearDisplay() + + def invertDisplay(self,invert): + if invert: + oled.setInverseDisplay() + else: + oled.setNormalDisplay() + + def _print(self, string): + oled.putString(self.toString(string)) + + def println(self, string): + oled.putString(self.toString(string)+'\n') + self.line += 1 + oled.setTextXY(0,self.line) + +class SerialTerminal(PrintList): + def __init__(self,Speed): + PrintList.__init__(self, self._print) + self.uart = Serial("/dev/serial0", Speed) + + def _print(self,string): + self.uart.puts(string) + + def println(self,string): + self.uart.puts(string + "\r") + + def input(self, echo=True): + data = "" + while True: + input = self.uart.getchar() + if echo: + self.uart.putchar(input) + if input == "\r": + return(data) + data += input + +class GroveI2CAdc: + def __init__(self,jumperTwo,jumperOne): + self.bus = smbus.SMBus(1) + self.address = 0x50 + jumperOne * 4 + jumperTwo + self.bus.write_byte_data(self.address, 0x02,0x20) + + def readAnalog(self): + data=self.bus.read_i2c_block_data(self.address, 0x00, 2)#Reading Data + raw_val=(data[0]&0x0f)<<8 | data[1]#Formatting Data + + return(raw_val) + + def readAverageAnalog(self,navr): + average = 0 + for i in range(0,navr):#Adding Data together + data=self.bus.read_i2c_block_data(self.address, 0x00, 2)#Reading Data + raw_val=(data[0]&0x0f)<<8 | data[1]#Formatting Data + average += raw_val + average /= navr + + return(average) + + def readVoltage(self): + return(self.readAnalog()/682) + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove.xml index 74a5129dab6074773ad2c800b7204d328f11ddbc..6462f2315728dd473d30871ad7e8794b684cd5ca 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove.xml @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:acc9fbea8f7f596e0aa9fde017d582e0f3eb7ba0f24f4a911e421ac9e2f7ab9f -size 1539 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove/LED Driver.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove/LED Driver.xml index a1a7587cf85a90f0a4572fecd0fd9ebd0aff95ea..7fedcdd949b1520f3fa4ebcdcdf02121a88f0241 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove/LED Driver.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Grove/LED Driver.xml @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9137c20b01ae5d87bc511dba65df3a697d6ddfca2835ee1c637ff115515518f7 -size 798 + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/GrovePi Hat.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/GrovePi Hat.xml index 3500388402261768622466d41bc75a0e22adedbf..e8af169a11dd6c40ad5c4ab96f25efe258c5aefe 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/GrovePi Hat.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/GrovePi Hat.xml @@ -1,3 +1,7 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9e9c5cf31c5358a7938cf5e8c7158433c8999f475fd9ead5adf6a7741bdf69ee -size 368 + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/I2CLDC.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/I2CLDC.xml index fe68fcfc602e14939df4f3d3c94c2c62604cb1e8..5cf1836a73a06f4ea58e773da935947b104dcab3 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/I2CLDC.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/I2CLDC.xml @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b9e28bd40d2a62fccba97bd5fa0e74b4f937cfc2f9450183e7771a1699c3538 -size 1373 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/I2c.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/I2c.xml index e796ebe24994bfa29cd3e64fd85132f14307897f..3449b4f20242f5e23bd2418f5b990a89ce03662f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/I2c.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/I2c.xml @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e539655746f438938b3bc47f81883bbe405e78da4714b7bb7f28f36abd017f40 -size 726 + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/InternetCommunication.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/InternetCommunication.py index 120882d5c8beedcc4fe9a3b6480a41aff08df1c6..796c7ed3bc43d34a238b4d75bc8a856c8347e433 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/InternetCommunication.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/InternetCommunication.py @@ -1,3 +1,134 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d27bbaf727c9ef2b8f811689d61641c07d0f900c4de9a934bb24f9da98ad9dd5 -size 4975 +from twython import Twython +from twython import TwythonStreamer +import smtplib +from email.mime.image import MIMEImage +from email.mime.multipart import MIMEMultipart +from email.mime.text import MIMEText +from email.mime.base import MIMEBase +from email import encoders +import time +from datetime import datetime +import urllib.request +import sys + +class streamer(TwythonStreamer): + def on_success(self,data): + print(data) + +class Twitter: + + def setup(self, CustomerKey, CustomerSecret, Token, SecretToken): + self.twitter = Twython(CustomerKey,CustomerSecret,Token,SecretToken) + + def tweet(self, message): + try: + self.twitter.update_status(status=message) + except: + print("Tweet not sent (No Duplicate tweets alowed)", file=sys.stderr) + + def tweetImage(self, Message, Image): + try: + photo = open(Image, 'rb') + response = self.twitter.upload_media(media=photo) + self.twitter.update_status(status=Message, media_ids=[response['media_id']]) + except: + print("Tweet not sent (No Duplicate tweets alowed)", file=sys.stderr) + + def tweetVideo(self, Message, Vid): + try: + video = open(Vid, 'rb') + response = self.twitter.upload_video(media=video, media_type='video/mp4', check_progress=True) + self.twitter.update_status(status=Message, media_ids=[response['media_id']]) + except: + print("Tweet not sent (No Duplicate tweets alowed)", file=sys.stderr) + + def searchFor(self,Question): + data = self.twitter.search(q=Question, count=1) + if data['statuses'] != []: + Message = data['statuses'][0]['text'] + UserName = data['statuses'][0]['user']['screen_name'] + Date = data['statuses'][0]['created_at'][4:] + datetime_object = datetime.strptime(Date, '%b %d %H:%M:%S %z %Y') + else: + Message = "" + UserName = "" + datetime_object = datetime.utcfromtimestamp(0) + return(Message,UserName,datetime_object) + + def searchImage(self,Question,ImageName): + data = self.twitter.search(q=Question, count=1) + if data['statuses'] != []: + Message = data['statuses'][0]['text'] + UserName = data['statuses'][0]['user']['screen_name'] + Date = data['statuses'][0]['created_at'][4:] + datetime_object = datetime.strptime(Date, '%b %d %H:%M:%S %z %Y') + if 'media' in data['statuses'][0]['entities']: + ImageReceived = True + fileType = data['statuses'][0]['entities']['media'][0]['media_url'].split('.')[-1] + PictureName = ImageName+fileType + file = open(PictureName,'wb') + file.write(urllib.request.urlopen(data['statuses'][0]['entities']['media'][0]['media_url']).read()) + file.close() + else: + PictureName = "" + else: + PictureName = "" + Message = "" + UserName = "" + datetime_object = datetime.utcfromtimestamp(0) + + return(Message,UserName,datetime_object,PictureName) +class Email: + attachmentNames = [] + recipientEmails = "" + def emailLogIn(self, email, password, server): + self.emailServer = server + self.userEmail = email + self.userPassword = password + + def emailStructure(self,Subject,EmailContent,*RecipientEmails): + #Turns list of Emails into string + for i in range(len(RecipientEmails)): + self.recipientEmails += RecipientEmails[i] + ',' + #removes last commer + self.recipientEmails = self.recipientEmails[:-1] + self.emailSubject = Subject + self.emailContent = EmailContent + + def emailAttachment(self,*file): + for i in range(len(file)): + self.attachmentNames.append(file[i]) + + def sendEmail(self): + email = MIMEMultipart() + email['Subject'] = self.emailSubject + email['From'] = self.userEmail + email['To'] = self.recipientEmails + + email.attach(MIMEText(self.emailContent, 'plain')) + + if len(self.attachmentNames) != 0: + for i in range(len(self.attachmentNames)): + filename = self.attachmentNames[i] + attachment = open(filename, "rb") + + part = MIMEBase('application', 'octet-stream') + part.set_payload((attachment).read()) + encoders.encode_base64(part) + part.add_header('Content-Disposition', "attachment; filename= %s" % filename) + + email.attach(part) + try: + server = smtplib.SMTP_SSL(self.emailServer) + server.ehlo() + server.login(self.userEmail, self.userPassword) + server.send_message(email) + server.quit() + print("Email sent") + + except Exception as e: + print("Email Failed, Check login", file=sys.stderr) + print(e, file=sys.stderr) + +class MQTT: + pass \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/LED Driver.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/LED Driver.xml index 588df86f94b8873ed9fcd25eaaff20516caecd8a..789a038a2d143ca82455ff4a343bd816195373c2 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/LED Driver.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/LED Driver.xml @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f0bcca5ff1b8d4c2e455cd76206324c778eb3adbaed31b26f9f522b51a37b328 -size 556 + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MCP3008.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MCP3008.xml index cb7cb33b253c991c59ad6ffebbb1543b9da0a7d6..cae49afd820bebb4bddd1bcbbfe551e1a52110bf 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MCP3008.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MCP3008.xml @@ -1,3 +1,31 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bfa4efc4fc665cd2def65700fb7265a50339b387252bce1ea8d99cb9097019bc -size 1094 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MQTT.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MQTT.py index e788257bdf85db927d164b4dc7a7e51e173214fd..09a95b7a034676e108964dad4cb60e51f40228e4 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MQTT.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MQTT.py @@ -1,3 +1,204 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:476be683d82f636877db26a92690c335385e351b77b835058c3e12f2bd4bc4f2 -size 5890 +import mqtt.client as mqtt +from time import sleep +from ReadList import ReadList + +class MQTT: + + mqttc = None + connectEventHandler = None + messageEventHandler = None + + connectionFlag = False + cleanSession = None + + clientId = None + server = None + port = None + username = None + password = None + + willTopic = None + willMessage = None + willQOS = None + willRetain = None + + def __call__(self, newTopic): + global topic + result = (topic == newTopic) + return(result) + + def begin(self, id, server, port, username, password): + + #Passing in config variables + + #Solving for no name + if id == "": + id = None + + self.clientId = id + self.server = server + self.port = port + self.username = username + self.password = password + + def setClientId(self, id): + self.clientId = id + + + # Setting up the event handlers + def attachConnectHandler(self, handler): + global connectEventHandler + connectEventHandler = handler + + def attachMessageHandler(self, handler): + global messageEventHandler + messageEventHandler = handler + + def connect(self, CleanSession=True): + def onConnect(mqttc, obj, flags, rc): + global connectEventHandler + connectEventHandler() + + def onMessage(mqttc, obj, msg): + global messageEventHandler + global message + global topic + message = str(msg.payload)[2:-1] + topic = msg.topic + messageEventHandler() + + def onDisconnect(mqttc, obj, rc): + global connectionFlag + global cleanSession + if connectionFlag: + global connect + print("Disconnected from server, attempting reconnect") + connect(cleanSession) + + #Tell the program we want to connect + global connectionFlag + global cleanSession + connectionFlag = True + cleanSession = CleanSession + + #Setup the MQTT object + self.mqttc = mqtt.Client(client_id=self.clientId, clean_session=CleanSession) + + if (self.username != None): + self.mqttc.username_pw_set(self.username, self.password) + + if (self.willTopic != None): + self.mqttc.will_set(self.willTopic, self.willMessage, self.willQOS, self.willRetain) + + self.mqttc.on_connect = onConnect + self.mqttc.on_message = onMessage + self.mqttc.on_disconnect = onDisconnect + + self.mqttc.connect(self.server, self.port) + self.mqttc.loop_start() + + def setWillMessage(self, Topic, QOS, Retain, *messageText): + #Creating the object then calling connect + self.willTopic = Topic + self.willQOS = QOS + self.willRetain = Retain + + try: + newMessage = '' + + for i in range(len(messageText)): + #Adds seperator + if i > 0: + newMessage += ',' + #Deals with bool + if str([messageText[i]]) == "[True]": + newMessage += '1' + + elif str([messageText[i]]) == "[False]": + newMessage += '0' + #Deals with strings + elif isinstance(messageText[i], str): + newMessage += '"' + messageText[i] + '"' + #Deals with ints and floats + else: + newMessage += str(messageText[i]) + + self.willMessage = newMessage + + except Exception as e: + print("Issue with list ",e) + self.willMessage = '' + + def subscribe(self, Topic, QOSChannel): + try: + self.mqttc.subscribe(Topic, QOSChannel) + except: + print("Client not connected to a broker") + + def readMessage(self): + global message + return(message) + + def readList(self, output=[]): + global message + pos = 0 + size = len(message) + def readMessage(): + global message + nonlocal pos + nonlocal size + if pos >= size: + return None + result = message[pos] + pos += 1 + return result + list = ReadList(readMessage) + list.setDelimiter(",") + list.read(output) + + def readTopic(self): + global topic + return(topic) + + def publish(self, topic, QOSChannel, Retain, *messageText): + try: + newMessage = '' + + for i in range(len(messageText)): + #Adds seperator + if i > 0: + newMessage += ',' + #Deals with bool + if str([messageText[i]]) == "[True]": + newMessage += '1' + + elif str([messageText[i]]) == "[False]": + newMessage += '0' + #Deals with strings + elif isinstance(messageText[i], str): + newMessage += '"' + messageText[i] + '"' + #Deals with ints and floats + else: + newMessage += str(messageText[i]) + + infot = self.mqttc.publish(topic, newMessage, qos=QOSChannel, retain=Retain) + + except Exception as e: + print("Client not connected to a broker: ",e) + + def readStoredMessage(self, value): + pass #Leave for now. May not be needed + + def unsubscribe(self, Topic): + try: + self.mqttc.unsubscribe(Topic) + except: + print("Client not connected to a broker") + + def disconnect(self): + global connectionFlag + connectionFlag = False + try: + self.mqttc.disconnect() + except: + print("Client not connected to a broker") \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MQTT.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MQTT.xml index f10c026fbeb5108ca5b169f1c34e164f9ef5596c..07c5ced73d36c9b0566865c8fc5d6e437083129f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MQTT.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/MQTT.xml @@ -1,3 +1,64 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:00d6a3b1ac5d0f6eb9d67087c9478fa271ab39a6d2f3e648a6fa8011b87a3c4b -size 3751 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniAutomationHat.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniAutomationHat.xml index 2e8f05f8c63531d86970283e52949e94a291d11a..9b9362e9b76ea84494863a41e41b7ee86e9e81e0 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniAutomationHat.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniAutomationHat.xml @@ -1,3 +1,32 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5640ddddd6efacfc9a2ca64baec2684e1d0395ce018fb8da5b3950854cd5e9fa -size 1490 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniExplorerHat.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniExplorerHat.xml index 148dbda38dc0ddbd13725d0d48cbd2fd95240d13..c15936505a099c809ba7f2bb1135ad75fba2e23e 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniExplorerHat.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniExplorerHat.xml @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:25b8a1b9d05ed09462bae528e06ea249835b5875869954ed36145c19c107f2d4 -size 1990 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniHats.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniHats.py index 18ee0ba5bd8985a8ea628ed44a86b7a0d727a6df..d363c825f23c0be72fb3172b8911a1a208333a47 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniHats.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniHats.py @@ -1,3 +1,171 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac575194c46ba98399f26da373aa7e44fcbe97d95a1b5b5b4fb10504884edeac -size 4660 +#Automation Hat +import automationhat +import piglow +import pianohat + +from smbus import SMBus +import RPi.GPIO as GPIO +from ADS1x15 import ADS1015 as ADS1x15 + +class PimoroniAutomationHat: + #This will also need the library sn3218.py + def setRelay(self,relay,value): + automationhat.relay[relay].write(value) + + def readInput(self,input): + value = automationhat.input[input].read() + return(value) + + def readADC(self,input): + value = automationhat.analog[input].read() + return(value) + + def output(self,output,value): + automationhat.output[output].write(value) + +class PimoroniPiGlowHat: + def __init__(self): + piglow.auto_update = True + + #This will also need the library sn3218.py + def setLeg(self,leg,value): + value = value*255 + if value <= 255: + piglow.leg(leg,int(value)) + else: + print("Value too big") + + def setColour(self,colour,value): + value = value*255 + if value <= 255: + piglow.colour(colour,int(value)) + else: + print("Value too big") + + def setRing(self,ring,value): + if -1 <= ring < 6: + value = value*255 + if value <= 255: + piglow.ring(ring,int(value)) + else: + print("Value too big") + else: + print("Rings are between 0 and 5") + + def setLED(self,led,value): + value = value*255 + if value <= 255: + piglow.led(led,int(value)) + else: + print("Value too big") + + def allOff(self): + piglow.off() + + def allOn(self,value): + value = value *255 + print(value) + if value <= 255: + piglow.all(int(value)) + else: + print("Value too big") + +class PimoroniExplorerHat: + def __init__(self): + GPIO.setmode(GPIO.BCM) + + self.i2c = SMBus(1) + multi = self.i2c.read_byte_data(40, 0x2A) + self.i2c.write_byte_data(40, 0x2A, multi & ~0x80) + + #Setting Pins + pinArray = [4,17,27,5,6,12,13,16,19,20,21,26] + for i in range(len(pinArray)): + GPIO.setup(pinArray[i], GPIO.OUT, initial=GPIO.LOW) + + pinArray = [23,22,24,25] + for i in range(len(pinArray)): + GPIO.setup(pinArray[i], GPIO.IN) + + self.ads = ADS1x15(0x48) + + self.motor1b = GPIO.PWM(19, 100) + self.motor1f = GPIO.PWM(20, 100) + self.motor2b = GPIO.PWM(21, 100) + self.motor2f = GPIO.PWM(26, 100) + + self.motor1b.start(0) + self.motor1f.start(0) + self.motor2b.start(0) + self.motor2f.start(0) + + def setOutput(self,pin,value): + pinArray = [6,12,13,16] + if value: + GPIO.output(pinArray[pin-1], True) + else: + GPIO.output(pinArray[pin-1], False) + + def readAnalog(self,pin): + value = (self.ads.read_adc(-(pin-4)))/(450) + return value + + def readInput(self,pin): + pinArray = [23,22,24,25] + return GPIO.input(pinArray[pin-1]) + + def setMotor(self,motor,speed): + pinArray = [19,20,21,26] + + if motor == 1 and speed >= 0: + self.motor1f.ChangeDutyCycle(speed) + self.motor1b.ChangeDutyCycle(0) + + elif motor == 1 and speed <= 0: + self.motor1f.ChangeDutyCycle(0) + self.motor1b.ChangeDutyCycle(-speed) + + elif motor == 2 and speed >= 0: + self.motor2f.ChangeDutyCycle(speed) + self.motor2b.ChangeDutyCycle(0) + + elif motor == 2 and speed <= 0: + self.motor2f.ChangeDutyCycle(0) + self.motor2b.ChangeDutyCycle(-speed) + + + def setLight(self,pin,value): + pinArray = [4,17,27,5] + if value: + GPIO.output(pinArray[pin-1], True) + else: + GPIO.output(pinArray[pin-1], False) + + def getButton(self,button): + #order of buttons on pins + buttonOrder = [3,2,1,0,7,6,5,4] + + reading = self.i2c.read_i2c_block_data(40, 0, 4)[3] + array = [0,0,0,0,0,0,0,0] + n = 128 + for i in range(0,8): + if reading-n >= 0: + reading -= n + array[i] = 1 + n /=2 + + self.i2c.write_byte_data(40, 0, 0) + return array[buttonOrder[button-1]] + +class PimoroniPianoHat: + + def buttonState(self,Button): + state = pianohat.get_state() + #print(state) + return(state[Button]) + + def setAutoLED(self,Boolean): + pianohat.auto_leds(Boolean) + + def setLED(self,LED,State): + pianohat.set_led(LED,State) \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniPiGlowHat.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniPiGlowHat.xml index 5fddee46abaa6d1f7f3e93a2c20f0d19f9f05534..d90cf88f5c82f135f552a9b39762e0d6bec482a5 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniPiGlowHat.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniPiGlowHat.xml @@ -1,3 +1,46 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9e5025518299ec17950cbbb829bef3b5870ddb26d915a5293c9c5603b9769510 -size 2122 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniPianoHat.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniPianoHat.xml index 01ddfb415bd73c18521db4904acc50b31fe49a13..76603b320830222ddfef9259af8692febc1a4413 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniPianoHat.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PimoroniPianoHat.xml @@ -1,3 +1,26 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f7fb2cdeb8d7524849105c9b628fbb798aa82a243f55b843cbccdf75f1845366 -size 1116 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Ports.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Ports.py index 4b42c25dc8842efafefa88c0685676c48b6af474..3e468ca749b85d14fa3d641ab0c775f7d60fa1d9 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Ports.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Ports.py @@ -1,3 +1,82 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1cd36324316452e2f386da523284dd9fc128241d1082fbd776503d0ce6ff86a -size 2155 +import smbus +import spidev +from wiringpi import Serial +import time +from PrintList import PrintList + +class I2c: + def __init__(self): + self.bus = smbus.SMBus(1) + #port 0 = pins 27&28 + #port 1 = pins 3&5 + + def transmit(self,address,command,*values): + array = [] + for i in range(len(values)): + array.append(values[i]) + self.bus.write_i2c_block_data(address, command, array) + + def receive(self,address,command,output=[]): + value = self.bus.read_i2c_block_data(address,command) + for i in range(min(len(value),len(output))): + output[i] = value[i] + +class SPI: + def setup(self,clock,device): + self.spi = spidev.SpiDev() + self.spi.open(0,device) + self.spi.max_speed_hz = clock + + def transfer(self, output=[]): + data = self.spi.xfer2(output) + for i in range(len(output)): + output[i] = data[i] + + def send(self,*values): + list = [] + for i in range(len(values)): + list.append(values[i]) + self.spi.xfer2(list) + + def receive(self,length): + list = [] + for i in range(length): + list.append(0xFF) + data = self.spi.xfer2(list) + return(data) + +class UART(PrintList): + def __init__(self): + PrintList.__init__(self, self._print) + self.uart = Serial("/dev/serial0", 9600) + + def setup(self, speed): + self.uart = Serial("/dev/serial0", speed) + + def _print(self,string): + self.uart.puts(string) + + def println(self,string): + self.uart.puts(string + "\r") + + def recv(self): + return self.uart.getchar() + + def send(self,char): + self.uart.putchar(char) + + def input(self, echo=True): + data = "" + while True: + input = self.uart.getchar() + if echo: + self.uart.putchar(input) + if input == "\r": + return(data) + data += input + +class SerialTerminal(UART): + + def __init__(self,Speed): + PrintList.__init__(self, self._print) + self.uart = Serial("/dev/serial0", Speed) \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PrintList.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PrintList.py index 3b1ce658108342cf945ae30078a9f4f41632f9f4..8695677602037453e7493d10467a307641545c9e 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PrintList.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/PrintList.py @@ -1,3 +1,52 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1955d2b8f5d28674cb5dda88d463821b83614e82ed1105c6387ca3ed00082671 -size 1485 +# Printlist Class +from datetime import datetime +class PrintList: + def __init__(self, handler): + self._delimiter = "" + self._handler = handler + self._base = 10 + self._place = 10 + + def setDelimiter(self, delimiter): + self._delimiter = delimiter + + def print(self, *args): + if args: + self._handler(self._delimiter.join(self.toString(x) for x in args)) + + def println(self, *args): + if args: + self._handler(self._delimiter.join(self.toString(x) for x in args) + "\\n") + + def setPlaces(self,Places): + self._place = Places + + def setBase(self,Base): + self._base = Base + + def toString(self, object): + if isinstance(object, datetime): + return object.strftime("%Y-%m-%d %H:%M:%S.%f") + _val = str(object) + + try: + if self._base != 10 and isinstance(float(_val), float): + _val = str(int(float(_val))) + except: + pass + + if _val.isnumeric(): + if self._base == 2: + return bin(int(_val)).replace('0b','') + if self._base == 8: + return oct(int(_val)).replace('0o','') + if self._base == 10: + return _val + if self._base == 16: + return hex(int(_val)).replace('0x','') + else: + try: + _val = ("%." + str(self._place) + "f") % float(_val) + except: + pass + return _val diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 3 + Grove Hat.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 3 + Grove Hat.xml index 562b334df8d6dd7083c0b17dfd8db703a83283aa..58da708bc1d06e35318ceb99859ea35d8ecd3a8b 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 3 + Grove Hat.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 3 + Grove Hat.xml @@ -1,3 +1,68 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9e300d04605be17e1ac7e88b2ec562d368f01a8b6623220b4b9bcd1190a5c15d -size 3450 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 3.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 3.xml index d3fa92097f0454bba0de0045ec0b1cb820dd2a13..4dd7e1b4823e03d59afeb7be1ed6aedd73640e0f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 3.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 3.xml @@ -1,3 +1,68 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4f02b85ea85e77ca840d6622b10d57b0d0e3646531f0084702c445d97fd4a546 -size 3615 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 4 + Grove Hat.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 4 + Grove Hat.xml index 76620c04aca066bfe73745abbfe740cb20fcf1c8..7655be85e162b90fe6eaa994b93fdeff1cc53c3a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 4 + Grove Hat.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 4 + Grove Hat.xml @@ -1,3 +1,68 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8932040fe2ca5c7c5b81112c858ceba4034a81b0eac49cbeff391de4412adfb7 -size 3451 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 4.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 4.xml index 8f39aa7aa013c7ccaa9ec3d23362f213c7d96553..c821d3e856fccb38a5d45588ea91e163b053f496 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 4.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi 4.xml @@ -1,3 +1,64 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d85814ebf369519a31dd05e668c2cef57527d1379fdfecc1bd2d97e816a860a -size 3344 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Motor Shield with DC Motors.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Motor Shield with DC Motors.xml index 86c420ea1af70da770dcfb8c76ced051ea97a073..874fe9c60189aea3d8545afdd637d25b6ccb09fb 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Motor Shield with DC Motors.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Motor Shield with DC Motors.xml @@ -1,3 +1,47 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a042e2b8f7a309a842e0f67470df3a9a81b6fe9ff1fd5cc500c6137b61f39c2 -size 1607 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Zero + Grove Hat.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Zero + Grove Hat.xml index 1bf1282210de10bc566e0be9972ca37dcba18644..1bdfa94a714f0868140e538d8f19deb90640d192 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Zero + Grove Hat.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Zero + Grove Hat.xml @@ -1,3 +1,68 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c7515fc3c63c84f352890b7d26e7a4f89a79bdc078ddc31ca14ee71bf12387a -size 3461 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Zero.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Zero.xml index ffdf6b7918d7b2162161d737deb5b4f749a5d188..1880c311d2e22091e6b5d0a96137bce85849c3b5 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Zero.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Raspberry Pi Zero.xml @@ -1,3 +1,65 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d482734fa0f0a8113507f03b49d23d68aba2107728b0ac448da14f28abec478 -size 3381 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi 2 Channel Relay Shield.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi 2 Channel Relay Shield.xml index d6769877159fac616554a7d680304ae8ed4ef661..c26b08b234a271222564279a7a25d54bb29b7c86 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi 2 Channel Relay Shield.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi 2 Channel Relay Shield.xml @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e7612cb4e41f7889b3ad11a297ddf6b761b2255ecaf1122a66ce5505d467c689 -size 607 + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi 4 Channel Relay Shield.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi 4 Channel Relay Shield.xml index 78d75ca094af64e091f3b4f7878f1fe7eaa4c0a4..9502ed10b48a0ba38538d35a33239bdbcbfc9869 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi 4 Channel Relay Shield.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi 4 Channel Relay Shield.xml @@ -1,3 +1,20 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0fadd9661c5e34d7566b0a79f7b5b60e40839c6c03637f976285c6dd6a1f64a5 -size 810 + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi BME280 Breakout Board.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi BME280 Breakout Board.xml index 0900ccd3a03490b6f3a262c506430e85052b8ca7..aca9bf0e1436c03c5a577306285ccc328599edce 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi BME280 Breakout Board.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi BME280 Breakout Board.xml @@ -1,3 +1,38 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:496a8c4878779a3344ef8b65abf0faab646e3ddd06651ce6538771c35dfb1fc9 -size 1985 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Button Breakout Board.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Button Breakout Board.xml index 19beb086d2c9dcff4055dc5ab298fc8299b7764d..077aaecc1fbd73c24024df99717c8cdd71fa768e 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Button Breakout Board.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Button Breakout Board.xml @@ -1,3 +1,19 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f3379bcf03f2d50f4a98ee72d04a5255abd895df263ff17954f36e5e3b86d51f -size 671 + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Buzzer Breakout Board.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Buzzer Breakout Board.xml index ec585f7c8af601bb465bd17ef973b65a225d1cd3..e321c32d357f3a793b4e97af8dcc75f9163f7001 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Buzzer Breakout Board.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Buzzer Breakout Board.xml @@ -1,3 +1,22 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c3ca88019941ebfb2eb3aa98e334d2f77b4411c1d861def683efe6665dec5a0d -size 846 + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Camera Module.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Camera Module.xml index f57f4a27c3737a93b55867633870a8983629dbb6..e3bce6bcdd91713214bdccc7c045f7b096ab9005 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Camera Module.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Camera Module.xml @@ -1,3 +1,51 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:381d2975b6bdad69d1ad6124bb3338648a30d818d48ae1939961a301a16616f7 -size 2931 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi GPS.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi GPS.xml index bae5ecaa60f9e5fc0f420ccb78e756e2277d0d2f..7a7cf4df97d71818a38f041751e16d406c44e56f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi GPS.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi GPS.xml @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51890c7530e1611137ecc0e8d824326ae4e898a9cc883e2698bf2aa41aca23b2 -size 2443 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Blue Breakout Board.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Blue Breakout Board.xml index 652a666f4dc8bd1dfc3143188010c43034c3988d..b380ddff6534a7e6f1691ab2d1f9eda1c88fe797 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Blue Breakout Board.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Blue Breakout Board.xml @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:43c94beed643c23e52e5b5ed415372112dc211807d8ee73f275dd7eb2e918191 -size 536 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Green Breakout Board.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Green Breakout Board.xml index bf6b929b9fd098f5fb36cf0698eaaaa00ff5aff4..93c738b3d34660d1fb42a9c8084d79648b46d9a6 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Green Breakout Board.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Green Breakout Board.xml @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cbe8fb9fd56d1ec46cf045fafd85382f7ec26eb367918b62e4782ce781499d32 -size 538 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Red Breakout Board.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Red Breakout Board.xml index e6736fd2939ef8e08b3feae3e37add86ede63f86..a83115df3a5aa84bf9a0977dd2784a0538a4a242 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Red Breakout Board.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Red Breakout Board.xml @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8797d176b4279ececc306eb95b60cdaede356f686ce6384e501570aa94338634 -size 534 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Yellow Breakout Board.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Yellow Breakout Board.xml index 43f14314a8b0603a12962b3b95ab1230f6434c27..7fc0032d3b184c95e43fe53187b3c86621f79450 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Yellow Breakout Board.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi LED Yellow Breakout Board.xml @@ -1,3 +1,15 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:98588bfa3a74edf245921a3ef7779beaa42ec144d8ec7443b1c66ae90cf901b2 -size 540 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Piezo Sounder Breakout Board.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Piezo Sounder Breakout Board.xml index de570f2322f1092d7fba0b8c98a5f95a160c5906..97488f2f99af28926a6100890e5745b411f1f284 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Piezo Sounder Breakout Board.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Piezo Sounder Breakout Board.xml @@ -1,3 +1,20 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8ed4bfca1b7372f7d189898b60cb90854e4491859af1bb3df9ffab55fb1ac43a -size 736 + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB Common Anode LED.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB Common Anode LED.xml index c25912c6808ac5b23254e97a2d44f0df64bde528..222ec7e392ba17693ec558c5049b966719980d36 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB Common Anode LED.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB Common Anode LED.xml @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da8fb8a40a620e98e1883db5a5a24d584282036e40a634b86a50b531cff9341f -size 1267 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB Common Cathode LED.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB Common Cathode LED.xml index 0375e6458aef520af084bacb808151d26647649d..6bbf610ab4fb2b4bb4f6cc2d0f90b02436182820 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB Common Cathode LED.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB Common Cathode LED.xml @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:53d97936582f14d931415a47859f605c7fadeba90ea38e3f9516ed7a01531d84 -size 1444 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB TFT Display.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB TFT Display.xml index 4c04c617b7508a398930f2de4f4d816231445f55..b583ee2dd7d26ccb13a0d14e60f2d2e9b6bdb804 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB TFT Display.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi RGB TFT Display.xml @@ -1,3 +1,108 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:86747ac8973d224d9a5831c3edf8a19157f2303b6c2d0a1b16c0e5449907df05 -size 5753 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Switch Breakout Board.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Switch Breakout Board.xml index bff922f78686ccc5562a5a43001099a6eb01afad..8f330c2ffa060b041ab6326d6bf5007d3df94ddc 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Switch Breakout Board.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPi Switch Breakout Board.xml @@ -1,3 +1,19 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ddc24a33d6ab0f627b21e57c4fbf934da47b7c7a56d92fd8e0950fbe6ea0fb64 -size 661 + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPiTerminal.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPiTerminal.xml index 3a941ff0586097da721d827062398ffb9773031a..b4ce7946c7df4d3c7dbcbfbcfd3f26c7a451e724 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPiTerminal.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/RaspberryPiTerminal.xml @@ -1,3 +1,39 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e443c9d5903a838c2c65a167fb5fd3a00804b387f0a7e2e484cde75a4bdab1b -size 1812 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/ReadList.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/ReadList.py index 5846c9dc80a1c61145ac23d66482a0e03763b823..7e0e7b7fb32591d87a4b9f5c7456ed5cf37a7de6 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/ReadList.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/ReadList.py @@ -1,3 +1,43 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:141e067a9529fa15ff9461b3781bbbb9df23ab40353ee80bd97aef317a9841c9 -size 1251 +# ReadList Class +from datetime import datetime +class ReadList: + def __init__(self, readHandler): + self._delimiter = "" + self._readHandler = readHandler + self._base = 10 + + def setDelimiter(self, delimiter): + self._delimiter = delimiter + + def read(self, output = []): + for i in range(len(output)): + s = self._readNext() + if isinstance(output[i], bool): + output[i] = s.lower() in ['true', '1', 't', 'y', 'yes'] + elif isinstance(output[i], float): + output[i] = float(s) + elif isinstance(output[i], int): + output[i] = int(s) + elif isinstance(output[i], datetime): + output[i] = datetime.strptime(s, "%Y-%m-%d %H:%M:%S.%f") + elif isinstance(output[i], str): + + #Strips out extra " + if s[0] == '"' and s[-1] == '"': + s = s[1:-1] + + output[i] = s + + def setPlaces(self,Places): + pass + + def setBase(self,Base): + self._base = Base + + def _readNext(self): + s = ""; + while True: + c = self._readHandler() + if not c or c == self._delimiter or c == "\r": + return s + s += c diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/SPI.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/SPI.xml index b26ba38c46a411a4d05956f95dd19450b4b6b02c..c325705b2e8249ed5658944092d7a05ba0e4caf8 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/SPI.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/SPI.xml @@ -1,3 +1,30 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e29ab7f2bde69c11b9b01759a69859d29e8aab169c3d1efec5dfa422898dc186 -size 1195 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Timer.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Timer.xml index 7847785a7f7aa8a694733e36dbb6b5d08918ffaf..3dfcd5f7a9d63fc3eaa69a8999455cf09a1a8f9a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Timer.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Timer.xml @@ -1,3 +1,17 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:742acc43d8d5a2352cddffae60a71b28e7e2c34e7fed301d8abd0ee89dc10224 -size 920 + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Twitter.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Twitter.xml index ebeedc76f1f106306bb87873c7409ee61b73c672..60d398b04d6bab03fc4ab7a66e84766ba4ed53a6 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Twitter.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Twitter.xml @@ -1,3 +1,41 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:40f15fcff07297b6221c6756ecb0521ff3bb38f5b0624463b19a1e8f13d5d891 -size 1992 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/UART.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/UART.xml index ed6bb5b87f1df7e2efb91f79d4db0ab29a5849c9..960efb546437380103a58a35b3d756ca3b6988ac 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/UART.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/UART.xml @@ -1,3 +1,45 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e51e437720337a3aaa583b712bab3eb99b7b034ae3eab984523a96d816c0e74f -size 1607 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/VFP.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/VFP.py index 8b6e2af23f464dd53b5f117d0323a04ca4710855..2da3063f5edb592c7c86a4e183efa7ffa6287fae 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/VFP.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/VFP.py @@ -1,3 +1,150 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:486c62ca21e47617c9a87633049ebe03f9ad46f4772b1696f71f8f65549517f5 -size 3430 +from server import VfpServer +import socket + +# Control objects list +controls = [] +status = "" +state = {} +reloadHandler = None +loginHandler = None +logoutHandler = None +requestHandler = None +history = {} +authorized = False + +def toString(value): + if isinstance(value, (bool)): + if value: + value = 1 + else: + value = 0 + return str(value) + +#Handlers +def callReloadHandlers(): + global controls + global status + global state + + #print("Reload") + for control in controls: + control.reloadHandler() + for key in state.keys(): + status += str(key) + "=" + state[key] + "\n" + for key in history.keys(): + status += history[key] + "\n" + if reloadHandler != None: + reloadHandler() + +def callEventHandlers(event): + global controls + #print("Event: " + event) + val = event.split(".",1) + if len(val) == 1: + val = event.split("=") + for control in controls: + if val[0] == control.getId(): + control.eventHandler(val[1]) + if requestHandler != None: + requestHandler() + +#Status +def pollStatus(): + global status + _status = status + #if status != "" : print("Status: " + status) + status = "" + return _status + +def set(id, key, value): + global status + global state + name = id + "." + key + value = toString(value) + if name in state.keys(): + if state[name] == value: + return + state[name] = value + string = name + "=" + value + "\n" + status += string + +def call(object, method, *args): + global status + global history + string = object + "." + method + "(" + if args: + _delimiter = "," + string += _delimiter.join(toString(x) for x in args) + string += ")\n" + status += string + if object in history.keys(): + history[object] += string + +def create(object, type): + global status + string = "$.create." + object + "=\"" + type + "\"" + status += string + "\n" + +def record(object, flag): + global status + global history + if (flag): + string = "$.start=" + object + if not object in history.keys(): + history[object] = "" + else: + string = "$.stop=" + object + del history[object] + status += string + "\n" + +def erase(object): + global status + global history + string = "$.erase=" + object + status += string + "\n" + if object in history.keys(): + history[object] = "" + +def setTitle(title): + set("$", "title", title) + +def debug(*args): + if args: + _delimiter = "," + print(_delimiter.join(toString(x) for x in args)) + +def authorize(flag): + global authorized + global loginHandler + global logoutHandler + + if (flag != authorized): + print("Authorize: ", flag) + authorized = flag + + if (flag and loginHandler != None): + loginHandler() + if (flag == False and logoutHandler != None): + logoutHandler() + + set("$", "authorized", flag) + +def isAuthorized(): + global authorized + return authorized + +def attachReloadHandler(handler): + global reloadHandler + reloadHandler = handler + +def attachLoginHandler(handler): + global loginHandler + loginHandler = handler + +def attachLogoutHandler(handler): + global logoutHandler + logoutHandler = handler + +def attachRequestHandler(handler): + global requestHandler + requestHandler = handler \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/Client.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/Client.xml index b868c8efcd7305f874696f921d63c7788007edeb..d27f60bd1673268323d2ecaabc101b8280f15cba 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/Client.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/Client.xml @@ -1,3 +1,23 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:60f7cea7a5536a8946e28e370b02f61b86eac129b4d3e44d622e3a2be72970cd -size 873 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/VfpServer.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/VfpServer.xml index 7a0e3f27462b4802fd3474d323a8a3bf7321226d..fe08b1519f3e47a4c85bd19520ac06af5a4bca33 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/VfpServer.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/VfpServer.xml @@ -1,3 +1,56 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:29327b22c1cea1192a62617a2611c1caf2851d05efacba7973a7a01fffefa954 -size 2778 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/favicon.png b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/favicon.png index 6b3814efd5c921a49b78d365ea8035b21fd7334e..035f171cc9865380c3d0d9e8d122609bafa05a0e 100644 Binary files a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/favicon.png and b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/favicon.png differ diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/jquery.js b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/jquery.js index 0a3a759d2a41f6ad25c316711577af722ee45d2f..4c5be4c0fbe230e81d95718a18829e965a2d14b2 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/jquery.js +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/jquery.js @@ -1,3 +1,4 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:85556761a8800d14ced8fcd41a6b8b26bf012d44a318866c0d81a62092efd9bf -size 86709 +/*! jQuery v3.1.1 | (c) jQuery Foundation | jquery.org/license */ +!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.1.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,C=/^.[^:#\[\.,]*$/;function D(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):C.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(D(this,a||[],!1))},not:function(a){return this.pushStack(D(this,a||[],!0))},is:function(a){return!!D(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var E,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,G=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||E,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:F.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),B.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};G.prototype=r.fn,E=r(d);var H=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function J(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return J(a,"nextSibling")},prev:function(a){return J(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return a.contentDocument||r.merge([],a.childNodes)}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(I[a]||r.uniqueSort(e),H.test(a)&&e.reverse()),this.pushStack(e)}});var K=/[^\x20\t\r\n\f]+/g;function L(a){var b={};return r.each(a.match(K)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?L(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function M(a){return a}function N(a){throw a}function O(a,b,c){var d;try{a&&r.isFunction(d=a.promise)?d.call(a).done(b).fail(c):a&&r.isFunction(d=a.then)?d.call(a,b,c):b.call(void 0,a)}catch(a){c.call(void 0,a)}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b=f&&(d!==N&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:M,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:M)),c[2][3].add(g(0,a,r.isFunction(d)?d:N))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(O(a,g.done(h(c)).resolve,g.reject),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)O(e[c],h(c),g.reject);return g.promise()}});var P=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&P.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var Q=r.Deferred();r.fn.ready=function(a){return Q.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,holdReady:function(a){a?r.readyWait++:r.ready(!0)},ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||Q.resolveWith(d,[r]))}}),r.ready.then=Q.then;function R(){d.removeEventListener("DOMContentLoaded",R), +a.removeEventListener("load",R),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",R),a.addEventListener("load",R));var S=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)S(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h1,null,!0)},removeData:function(a){return this.each(function(){W.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=V.get(a,b),c&&(!d||r.isArray(c)?d=V.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return V.get(a,c)||V.access(a,c,{empty:r.Callbacks("once memory").add(function(){V.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length\x20\t\r\n\f]+)/i,ka=/^$|\/(?:java|ecma)script/i,la={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};la.optgroup=la.option,la.tbody=la.tfoot=la.colgroup=la.caption=la.thead,la.th=la.td;function ma(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&r.nodeName(a,b)?r.merge([a],c):c}function na(a,b){for(var c=0,d=a.length;c-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=ma(l.appendChild(f),"script"),j&&na(g),c){k=0;while(f=g[k++])ka.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var qa=d.documentElement,ra=/^key/,sa=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ta=/^([^.]*)(?:\.(.+)|)/;function ua(){return!0}function va(){return!1}function wa(){try{return d.activeElement}catch(a){}}function xa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)xa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=va;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(qa,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(K)||[""],j=b.length;while(j--)h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.hasData(a)&&V.get(a);if(q&&(i=q.events)){b=(b||"").match(K)||[""],j=b.length;while(j--)if(h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&V.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(V.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i\x20\t\r\n\f]*)[^>]*)\/>/gi,za=/\s*$/g;function Da(a,b){return r.nodeName(a,"table")&&r.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function Ea(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Fa(a){var b=Ba.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ga(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(V.hasData(a)&&(f=V.access(a),g=V.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c1&&"string"==typeof q&&!o.checkClone&&Aa.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ia(f,b,c,d)});if(m&&(e=pa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(ma(e,"script"),Ea),i=h.length;l")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=ma(h),f=ma(a),d=0,e=f.length;d0&&na(g,!i&&ma(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(T(c)){if(b=c[V.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[V.expando]=void 0}c[W.expando]&&(c[W.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ja(this,a,!0)},remove:function(a){return Ja(this,a)},text:function(a){return S(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.appendChild(a)}})},prepend:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(ma(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return S(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!za.test(a)&&!la[(ja.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c1)}});function Ya(a,b,c,d,e){return new Ya.prototype.init(a,b,c,d,e)}r.Tween=Ya,Ya.prototype={constructor:Ya,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=Ya.propHooks[this.prop];return a&&a.get?a.get(this):Ya.propHooks._default.get(this)},run:function(a){var b,c=Ya.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ya.propHooks._default.set(this),this}},Ya.prototype.init.prototype=Ya.prototype,Ya.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},Ya.propHooks.scrollTop=Ya.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=Ya.prototype.init,r.fx.step={};var Za,$a,_a=/^(?:toggle|show|hide)$/,ab=/queueHooks$/;function bb(){$a&&(a.requestAnimationFrame(bb),r.fx.tick())}function cb(){return a.setTimeout(function(){Za=void 0}),Za=r.now()}function db(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ba[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function eb(a,b,c){for(var d,e=(hb.tweeners[b]||[]).concat(hb.tweeners["*"]),f=0,g=e.length;f1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?ib:void 0)), +void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&r.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(K);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),ib={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=jb[b]||r.find.attr;jb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=jb[g],jb[g]=e,e=null!=c(a,b,d)?g:null,jb[g]=f),e}});var kb=/^(?:input|select|textarea|button)$/i,lb=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return S(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):kb.test(a.nodeName)||lb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function mb(a){var b=a.match(K)||[];return b.join(" ")}function nb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,nb(this)))});if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,nb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,nb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(K)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=nb(this),b&&V.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":V.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+mb(nb(c))+" ").indexOf(b)>-1)return!0;return!1}});var ob=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":r.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ob,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:mb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(r.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var pb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!pb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,pb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(V.get(h,"events")||{})[b.type]&&V.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&T(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!T(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=V.access(d,b);e||d.addEventListener(a,c,!0),V.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=V.access(d,b)-1;e?V.access(d,b,e):(d.removeEventListener(a,c,!0),V.remove(d,b))}}});var qb=a.location,rb=r.now(),sb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var tb=/\[\]$/,ub=/\r?\n/g,vb=/^(?:submit|button|image|reset|file)$/i,wb=/^(?:input|select|textarea|keygen)/i;function xb(a,b,c,d){var e;if(r.isArray(b))r.each(b,function(b,e){c||tb.test(a)?d(a,e):xb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)xb(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(r.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)xb(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&wb.test(this.nodeName)&&!vb.test(a)&&(this.checked||!ia.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:r.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(ub,"\r\n")}}):{name:b.name,value:c.replace(ub,"\r\n")}}).get()}});var yb=/%20/g,zb=/#.*$/,Ab=/([?&])_=[^&]*/,Bb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Cb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Db=/^(?:GET|HEAD)$/,Eb=/^\/\//,Fb={},Gb={},Hb="*/".concat("*"),Ib=d.createElement("a");Ib.href=qb.href;function Jb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(K)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Kb(a,b,c,d){var e={},f=a===Gb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Lb(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Mb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Nb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qb.href,type:"GET",isLocal:Cb.test(qb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Lb(Lb(a,r.ajaxSettings),b):Lb(r.ajaxSettings,a)},ajaxPrefilter:Jb(Fb),ajaxTransport:Jb(Gb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Bb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||qb.href)+"").replace(Eb,qb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(K)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Ib.protocol+"//"+Ib.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Kb(Fb,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Db.test(o.type),f=o.url.replace(zb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(yb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(sb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Ab,"$1"),n=(sb.test(f)?"&":"?")+"_="+rb++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Hb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Kb(Gb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Mb(o,y,d)),v=Nb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Ob={0:200,1223:204},Pb=r.ajaxSettings.xhr();o.cors=!!Pb&&"withCredentials"in Pb,o.ajax=Pb=!!Pb,r.ajaxTransport(function(b){var c,d;if(o.cors||Pb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Ob[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r(" + + + + + + + + + +
+
+ + + + + + +
+ + + +

Loading panel graphics...

+ + + +
+
+
+ + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/panel.svg b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/panel.svg index c4ce83ef5d416c909857fcfb65a3ebc1752f1846..b3d0a26c185189eb5e6e7e7fd3b3ed6a9e2a106e 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/panel.svg +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/panel.svg @@ -1,3 +1,60 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5033055e6591b72f9b7598d5008b27d4738ac3f7b60fd59bc96fd71ee96a92ae -size 14478 + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {"buttonLabels":"","init":"-1","labelFont":{"family":"sans-serif","weight":"normal","style":"normal","decoration":"","colour":"#00000c","size":30},"labelPosition":"2","labelSpacing":"10","lampColour":"#9bf6df","replicate":{"count":2,"spacing":0,"direction":0,"width":110,"height":110},"faceColour":"#cccccc"} + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/showlog.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/showlog.py index f4b889e6388d4100fc9d966c07041528558b78bf..f2566b8b2696b21dc964c121c9e3b044155ae21e 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/showlog.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/showlog.py @@ -1,3 +1,33 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8863251ed8b14edf1afaa8daced0917b3df76bef83c171be1a3e2f92490faac1 -size 710 +# Program to show incomming contents of the server log on the console: + +import os, time, sys, select +pipe_name = '/tmp/server.log' + + +def readlog () : + pipein = open(pipe_name, 'r') + while not heardEnter(): + line = pipein.readline() + if line != "" : + print (line[:-1]) + if line.startswith("***ENDS"): + break + pipein.close() + +def heardEnter(): + i,o,e = select.select([sys.stdin],[],[],0) + for s in i: + if s == sys.stdin: + input = sys.stdin.readline() + return True + return False + +if os.path.exists(pipe_name): + os.remove(pipe_name) +os.mkfifo(pipe_name) +readlog() +os.remove(pipe_name) + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/transport.js b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/transport.js index e91efbe05e4c5ae0ce0a11e3fae43b1d4e75deff..7b22b19f04bdc9438876286c9d82a7bee410bc25 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/transport.js +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/Vfp/transport.js @@ -1,3 +1,141 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3749d5bd5d71a9466536d7ea28c1d3550750d18d8928300a4438096fbe750dd5 -size 5862 +// The code here implements the transport protocol between the controls and the Iot application. +// It can be changed to use alternate transport mechanisms and formatting as required for a particular platform. +var statusRequests = 0; +var statusFails = 0; +var statusAborted = false; +var statusHttpRequest = null; +var messageQueue = []; +var messageHttpRequest = null; +var firstResponse = true; + +document.title = "Virtual Front Panel (Raspberry Pi)" + +function statusRequest() { + statusHttpRequest = new XMLHttpRequest(); + statusHttpRequest.timeout = 30000; + statusHttpRequest.onreadystatechange = function() { + if (statusHttpRequest.readyState == 4 && !statusAborted) { + if (statusHttpRequest.status == 200) { + // We have received a status response, all is well. Typically the first one will occur for 'session' which will respond + // immediately so we can make a call on the viewer here to say/confirm that we are up and runnng. + if (firstResponse) { + if (typeof(viewer) == 'object' && viewer.setConnected != undefined) + viewer.setConnected(1); + firstResponse = false; + } + parseResponse(statusHttpRequest.responseText); + statusFails = 0; // reset the fail counter + statusRequest(); + } + else if (statusHttpRequest.status != 403 && ++statusFails < 3) { + // If the status request fails then try to re-make it. Timeouts with broken connection seem to take 3-4 s + // A 403 will occur where the server has been reset and a status request occurs without a prior reload. + console.log("Status request failed", statusHttpRequest.status); + window.setTimeout(statusRequest, 1000); + } + else { + // Failed to reconnect - show an error: + statusAbort(); + statusLost(); + } + } + }; + statusHttpRequest.ontimeout = function () { + // Normally, a timeout occurs where the connection to the appliance is still valid but there is no response; it can also + // occur if the appliance has been turned off or gone out of wifi range. We count this situation as 3 fails in total. + // The readystate will go to 4=done after a timeout so the mechanism above will trigger and the host/viewer will be informed. + statusAbort(); + statusLost(); + }; + if (statusRequests++ == 0) + statusHttpRequest.open("GET", "session", true); + else + statusHttpRequest.open("GET", "status", true); + statusHttpRequest.send(); +} + + +function postEvent (id, msg) { sendMessage ("POST", id, null, msg); } +function postState (id, state, msg) { sendMessage ("POST", id, state, msg); } +function recordState (id, state, msg) { sendMessage ("PUT", id, state, msg); } + +// Transmit state change event - the new state will be recorded/preserved by the server +function sendMessage (action, id, state, msg) { + var params = ""; + if (msg != undefined) { + if (typeof(msg)!='object') + msg = [ msg ]; + for (var i in msg) { + if (typeof(msg[i]) === 'string') + msg[i] = JSON.stringify(msg[i]); + if (i > 0) + params = params+','; + params = params + msg[i]; + } + } + + if (state != null) + messageQueue.push([action, id+"."+state+"="+params]); + else + messageQueue.push([action, id+"="+params]); + if (messageQueue.length == 1) + dispatchMessages(); +} + +// Attempt to dispatch any queued messages. +// Messages are dispatched in order and in batches (of the same action type) +// enabling a fairly fast throughput even over a slow link. +function dispatchMessages () { + if (messageQueue.length > 0) { + var body = ""; + var msgCount = 0; + var action = messageQueue[0][0]; + for (var i=0; iLost connection to the '"+pageTitle+"'.

"; +} + +function statusAbort () { + statusAborted = true; + if (statusHttpRequest != null) + statusHttpRequest.abort() + if (messageHttpRequest != null) + messageHttpRequest.abort() +} + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/sbcsgroupprober.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/sbcsgroupprober.py index 28b0815b014b6971926b7d696dcfcba79740fb05..98e95dc1a3cbc65e97bc726ab7000955132719dd 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/sbcsgroupprober.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/sbcsgroupprober.py @@ -1,3 +1,73 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d48a6b70207f935a9f9a7c460ba3016f110b94aa83dec716e92f1823075ec970 -size 3546 +######################## BEGIN LICENSE BLOCK ######################## +# The Original Code is Mozilla Universal charset detector code. +# +# The Initial Developer of the Original Code is +# Netscape Communications Corporation. +# Portions created by the Initial Developer are Copyright (C) 2001 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s): +# Mark Pilgrim - port to Python +# Shy Shalom - original C code +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +# 02110-1301 USA +######################### END LICENSE BLOCK ######################### + +from .charsetgroupprober import CharSetGroupProber +from .sbcharsetprober import SingleByteCharSetProber +from .langcyrillicmodel import (Win1251CyrillicModel, Koi8rModel, + Latin5CyrillicModel, MacCyrillicModel, + Ibm866Model, Ibm855Model) +from .langgreekmodel import Latin7GreekModel, Win1253GreekModel +from .langbulgarianmodel import Latin5BulgarianModel, Win1251BulgarianModel +# from .langhungarianmodel import Latin2HungarianModel, Win1250HungarianModel +from .langthaimodel import TIS620ThaiModel +from .langhebrewmodel import Win1255HebrewModel +from .hebrewprober import HebrewProber +from .langturkishmodel import Latin5TurkishModel + + +class SBCSGroupProber(CharSetGroupProber): + def __init__(self): + super(SBCSGroupProber, self).__init__() + self.probers = [ + SingleByteCharSetProber(Win1251CyrillicModel), + SingleByteCharSetProber(Koi8rModel), + SingleByteCharSetProber(Latin5CyrillicModel), + SingleByteCharSetProber(MacCyrillicModel), + SingleByteCharSetProber(Ibm866Model), + SingleByteCharSetProber(Ibm855Model), + SingleByteCharSetProber(Latin7GreekModel), + SingleByteCharSetProber(Win1253GreekModel), + SingleByteCharSetProber(Latin5BulgarianModel), + SingleByteCharSetProber(Win1251BulgarianModel), + # TODO: Restore Hungarian encodings (iso-8859-2 and windows-1250) + # after we retrain model. + # SingleByteCharSetProber(Latin2HungarianModel), + # SingleByteCharSetProber(Win1250HungarianModel), + SingleByteCharSetProber(TIS620ThaiModel), + SingleByteCharSetProber(Latin5TurkishModel), + ] + hebrew_prober = HebrewProber() + logical_hebrew_prober = SingleByteCharSetProber(Win1255HebrewModel, + False, hebrew_prober) + visual_hebrew_prober = SingleByteCharSetProber(Win1255HebrewModel, True, + hebrew_prober) + hebrew_prober.set_model_probers(logical_hebrew_prober, visual_hebrew_prober) + self.probers.extend([hebrew_prober, logical_hebrew_prober, + visual_hebrew_prober]) + + self.reset() diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/sjisprober.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/sjisprober.py index e8b1534ebb18b2b467ff323e8dd1347ac3897623..9e29623bdc54a7c6d11bcc167d71bb44cc9be39d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/sjisprober.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/sjisprober.py @@ -1,3 +1,92 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:208b7e9598f4589a8ae2b9946732993f8189944f0a504b45615b98f7a7a4e4c4 -size 3774 +######################## BEGIN LICENSE BLOCK ######################## +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is +# Netscape Communications Corporation. +# Portions created by the Initial Developer are Copyright (C) 1998 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s): +# Mark Pilgrim - port to Python +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +# 02110-1301 USA +######################### END LICENSE BLOCK ######################### + +from .mbcharsetprober import MultiByteCharSetProber +from .codingstatemachine import CodingStateMachine +from .chardistribution import SJISDistributionAnalysis +from .jpcntx import SJISContextAnalysis +from .mbcssm import SJIS_SM_MODEL +from .enums import ProbingState, MachineState + + +class SJISProber(MultiByteCharSetProber): + def __init__(self): + super(SJISProber, self).__init__() + self.coding_sm = CodingStateMachine(SJIS_SM_MODEL) + self.distribution_analyzer = SJISDistributionAnalysis() + self.context_analyzer = SJISContextAnalysis() + self.reset() + + def reset(self): + super(SJISProber, self).reset() + self.context_analyzer.reset() + + @property + def charset_name(self): + return self.context_analyzer.charset_name + + @property + def language(self): + return "Japanese" + + def feed(self, byte_str): + for i in range(len(byte_str)): + coding_state = self.coding_sm.next_state(byte_str[i]) + if coding_state == MachineState.ERROR: + self.logger.debug('%s %s prober hit error at byte %s', + self.charset_name, self.language, i) + self._state = ProbingState.NOT_ME + break + elif coding_state == MachineState.ITS_ME: + self._state = ProbingState.FOUND_IT + break + elif coding_state == MachineState.START: + char_len = self.coding_sm.get_current_charlen() + if i == 0: + self._last_char[1] = byte_str[0] + self.context_analyzer.feed(self._last_char[2 - char_len:], + char_len) + self.distribution_analyzer.feed(self._last_char, char_len) + else: + self.context_analyzer.feed(byte_str[i + 1 - char_len:i + 3 + - char_len], char_len) + self.distribution_analyzer.feed(byte_str[i - 1:i + 1], + char_len) + + self._last_char[0] = byte_str[-1] + + if self.state == ProbingState.DETECTING: + if (self.context_analyzer.got_enough_data() and + (self.get_confidence() > self.SHORTCUT_THRESHOLD)): + self._state = ProbingState.FOUND_IT + + return self.state + + def get_confidence(self): + context_conf = self.context_analyzer.get_confidence() + distrib_conf = self.distribution_analyzer.get_confidence() + return max(context_conf, distrib_conf) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/universaldetector.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/universaldetector.py index f97c4cdbcd352abde92b403413ed65874accaf7e..7b4e92d6158527736e3d14d6f725edada8f94b00 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/universaldetector.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/universaldetector.py @@ -1,3 +1,286 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a8bd35ef8952644e38d9e076d679e4b53f7f55c0327b4ee5685594794ae3b6d6 -size 12485 +######################## BEGIN LICENSE BLOCK ######################## +# The Original Code is Mozilla Universal charset detector code. +# +# The Initial Developer of the Original Code is +# Netscape Communications Corporation. +# Portions created by the Initial Developer are Copyright (C) 2001 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s): +# Mark Pilgrim - port to Python +# Shy Shalom - original C code +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +# 02110-1301 USA +######################### END LICENSE BLOCK ######################### +""" +Module containing the UniversalDetector detector class, which is the primary +class a user of ``chardet`` should use. + +:author: Mark Pilgrim (initial port to Python) +:author: Shy Shalom (original C code) +:author: Dan Blanchard (major refactoring for 3.0) +:author: Ian Cordasco +""" + + +import codecs +import logging +import re + +from .charsetgroupprober import CharSetGroupProber +from .enums import InputState, LanguageFilter, ProbingState +from .escprober import EscCharSetProber +from .latin1prober import Latin1Prober +from .mbcsgroupprober import MBCSGroupProber +from .sbcsgroupprober import SBCSGroupProber + + +class UniversalDetector(object): + """ + The ``UniversalDetector`` class underlies the ``chardet.detect`` function + and coordinates all of the different charset probers. + + To get a ``dict`` containing an encoding and its confidence, you can simply + run: + + .. code:: + + u = UniversalDetector() + u.feed(some_bytes) + u.close() + detected = u.result + + """ + + MINIMUM_THRESHOLD = 0.20 + HIGH_BYTE_DETECTOR = re.compile(b'[\x80-\xFF]') + ESC_DETECTOR = re.compile(b'(\033|~{)') + WIN_BYTE_DETECTOR = re.compile(b'[\x80-\x9F]') + ISO_WIN_MAP = {'iso-8859-1': 'Windows-1252', + 'iso-8859-2': 'Windows-1250', + 'iso-8859-5': 'Windows-1251', + 'iso-8859-6': 'Windows-1256', + 'iso-8859-7': 'Windows-1253', + 'iso-8859-8': 'Windows-1255', + 'iso-8859-9': 'Windows-1254', + 'iso-8859-13': 'Windows-1257'} + + def __init__(self, lang_filter=LanguageFilter.ALL): + self._esc_charset_prober = None + self._charset_probers = [] + self.result = None + self.done = None + self._got_data = None + self._input_state = None + self._last_char = None + self.lang_filter = lang_filter + self.logger = logging.getLogger(__name__) + self._has_win_bytes = None + self.reset() + + def reset(self): + """ + Reset the UniversalDetector and all of its probers back to their + initial states. This is called by ``__init__``, so you only need to + call this directly in between analyses of different documents. + """ + self.result = {'encoding': None, 'confidence': 0.0, 'language': None} + self.done = False + self._got_data = False + self._has_win_bytes = False + self._input_state = InputState.PURE_ASCII + self._last_char = b'' + if self._esc_charset_prober: + self._esc_charset_prober.reset() + for prober in self._charset_probers: + prober.reset() + + def feed(self, byte_str): + """ + Takes a chunk of a document and feeds it through all of the relevant + charset probers. + + After calling ``feed``, you can check the value of the ``done`` + attribute to see if you need to continue feeding the + ``UniversalDetector`` more data, or if it has made a prediction + (in the ``result`` attribute). + + .. note:: + You should always call ``close`` when you're done feeding in your + document if ``done`` is not already ``True``. + """ + if self.done: + return + + if not len(byte_str): + return + + if not isinstance(byte_str, bytearray): + byte_str = bytearray(byte_str) + + # First check for known BOMs, since these are guaranteed to be correct + if not self._got_data: + # If the data starts with BOM, we know it is UTF + if byte_str.startswith(codecs.BOM_UTF8): + # EF BB BF UTF-8 with BOM + self.result = {'encoding': "UTF-8-SIG", + 'confidence': 1.0, + 'language': ''} + elif byte_str.startswith((codecs.BOM_UTF32_LE, + codecs.BOM_UTF32_BE)): + # FF FE 00 00 UTF-32, little-endian BOM + # 00 00 FE FF UTF-32, big-endian BOM + self.result = {'encoding': "UTF-32", + 'confidence': 1.0, + 'language': ''} + elif byte_str.startswith(b'\xFE\xFF\x00\x00'): + # FE FF 00 00 UCS-4, unusual octet order BOM (3412) + self.result = {'encoding': "X-ISO-10646-UCS-4-3412", + 'confidence': 1.0, + 'language': ''} + elif byte_str.startswith(b'\x00\x00\xFF\xFE'): + # 00 00 FF FE UCS-4, unusual octet order BOM (2143) + self.result = {'encoding': "X-ISO-10646-UCS-4-2143", + 'confidence': 1.0, + 'language': ''} + elif byte_str.startswith((codecs.BOM_LE, codecs.BOM_BE)): + # FF FE UTF-16, little endian BOM + # FE FF UTF-16, big endian BOM + self.result = {'encoding': "UTF-16", + 'confidence': 1.0, + 'language': ''} + + self._got_data = True + if self.result['encoding'] is not None: + self.done = True + return + + # If none of those matched and we've only see ASCII so far, check + # for high bytes and escape sequences + if self._input_state == InputState.PURE_ASCII: + if self.HIGH_BYTE_DETECTOR.search(byte_str): + self._input_state = InputState.HIGH_BYTE + elif self._input_state == InputState.PURE_ASCII and \ + self.ESC_DETECTOR.search(self._last_char + byte_str): + self._input_state = InputState.ESC_ASCII + + self._last_char = byte_str[-1:] + + # If we've seen escape sequences, use the EscCharSetProber, which + # uses a simple state machine to check for known escape sequences in + # HZ and ISO-2022 encodings, since those are the only encodings that + # use such sequences. + if self._input_state == InputState.ESC_ASCII: + if not self._esc_charset_prober: + self._esc_charset_prober = EscCharSetProber(self.lang_filter) + if self._esc_charset_prober.feed(byte_str) == ProbingState.FOUND_IT: + self.result = {'encoding': + self._esc_charset_prober.charset_name, + 'confidence': + self._esc_charset_prober.get_confidence(), + 'language': + self._esc_charset_prober.language} + self.done = True + # If we've seen high bytes (i.e., those with values greater than 127), + # we need to do more complicated checks using all our multi-byte and + # single-byte probers that are left. The single-byte probers + # use character bigram distributions to determine the encoding, whereas + # the multi-byte probers use a combination of character unigram and + # bigram distributions. + elif self._input_state == InputState.HIGH_BYTE: + if not self._charset_probers: + self._charset_probers = [MBCSGroupProber(self.lang_filter)] + # If we're checking non-CJK encodings, use single-byte prober + if self.lang_filter & LanguageFilter.NON_CJK: + self._charset_probers.append(SBCSGroupProber()) + self._charset_probers.append(Latin1Prober()) + for prober in self._charset_probers: + if prober.feed(byte_str) == ProbingState.FOUND_IT: + self.result = {'encoding': prober.charset_name, + 'confidence': prober.get_confidence(), + 'language': prober.language} + self.done = True + break + if self.WIN_BYTE_DETECTOR.search(byte_str): + self._has_win_bytes = True + + def close(self): + """ + Stop analyzing the current document and come up with a final + prediction. + + :returns: The ``result`` attribute, a ``dict`` with the keys + `encoding`, `confidence`, and `language`. + """ + # Don't bother with checks if we're already done + if self.done: + return self.result + self.done = True + + if not self._got_data: + self.logger.debug('no data received!') + + # Default to ASCII if it is all we've seen so far + elif self._input_state == InputState.PURE_ASCII: + self.result = {'encoding': 'ascii', + 'confidence': 1.0, + 'language': ''} + + # If we have seen non-ASCII, return the best that met MINIMUM_THRESHOLD + elif self._input_state == InputState.HIGH_BYTE: + prober_confidence = None + max_prober_confidence = 0.0 + max_prober = None + for prober in self._charset_probers: + if not prober: + continue + prober_confidence = prober.get_confidence() + if prober_confidence > max_prober_confidence: + max_prober_confidence = prober_confidence + max_prober = prober + if max_prober and (max_prober_confidence > self.MINIMUM_THRESHOLD): + charset_name = max_prober.charset_name + lower_charset_name = max_prober.charset_name.lower() + confidence = max_prober.get_confidence() + # Use Windows encoding name instead of ISO-8859 if we saw any + # extra Windows-specific bytes + if lower_charset_name.startswith('iso-8859'): + if self._has_win_bytes: + charset_name = self.ISO_WIN_MAP.get(lower_charset_name, + charset_name) + self.result = {'encoding': charset_name, + 'confidence': confidence, + 'language': max_prober.language} + + # Log all prober confidences if none met MINIMUM_THRESHOLD + if self.logger.getEffectiveLevel() == logging.DEBUG: + if self.result['encoding'] is None: + self.logger.debug('no probers hit minimum threshold') + for group_prober in self._charset_probers: + if not group_prober: + continue + if isinstance(group_prober, CharSetGroupProber): + for prober in group_prober.probers: + self.logger.debug('%s %s confidence = %s', + prober.charset_name, + prober.language, + prober.get_confidence()) + else: + self.logger.debug('%s %s confidence = %s', + prober.charset_name, + prober.language, + prober.get_confidence()) + return self.result diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/utf8prober.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/utf8prober.py index ee3a5a187e4331ed6e81d13d48445eeaa408c088..6c3196cc2d7e46e6756580267f5643c6f7b448dd 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/utf8prober.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/utf8prober.py @@ -1,3 +1,82 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:21d0fcbf7cd63ac07c38b8b23e2fb2fdfab08a9445c55f4d73578a04b4ae204c -size 2766 +######################## BEGIN LICENSE BLOCK ######################## +# The Original Code is mozilla.org code. +# +# The Initial Developer of the Original Code is +# Netscape Communications Corporation. +# Portions created by the Initial Developer are Copyright (C) 1998 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s): +# Mark Pilgrim - port to Python +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +# 02110-1301 USA +######################### END LICENSE BLOCK ######################### + +from .charsetprober import CharSetProber +from .enums import ProbingState, MachineState +from .codingstatemachine import CodingStateMachine +from .mbcssm import UTF8_SM_MODEL + + + +class UTF8Prober(CharSetProber): + ONE_CHAR_PROB = 0.5 + + def __init__(self): + super(UTF8Prober, self).__init__() + self.coding_sm = CodingStateMachine(UTF8_SM_MODEL) + self._num_mb_chars = None + self.reset() + + def reset(self): + super(UTF8Prober, self).reset() + self.coding_sm.reset() + self._num_mb_chars = 0 + + @property + def charset_name(self): + return "utf-8" + + @property + def language(self): + return "" + + def feed(self, byte_str): + for c in byte_str: + coding_state = self.coding_sm.next_state(c) + if coding_state == MachineState.ERROR: + self._state = ProbingState.NOT_ME + break + elif coding_state == MachineState.ITS_ME: + self._state = ProbingState.FOUND_IT + break + elif coding_state == MachineState.START: + if self.coding_sm.get_current_charlen() >= 2: + self._num_mb_chars += 1 + + if self.state == ProbingState.DETECTING: + if self.get_confidence() > self.SHORTCUT_THRESHOLD: + self._state = ProbingState.FOUND_IT + + return self.state + + def get_confidence(self): + unlike = 0.99 + if self._num_mb_chars < 6: + unlike *= self.ONE_CHAR_PROB ** self._num_mb_chars + return 1.0 - unlike + else: + return unlike diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/version.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/version.py index 359ad614e7a37c7efb54194eab12a0a1a2f230f4..bb2a34a70ea760ad1f58979acfc8fa466e30c511 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/version.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/chardet/version.py @@ -1,3 +1,9 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b29dc1d3c9ab0d707ea5fdcaf5fa89ff37831ce08b0bc46b9e04320c56a9ffb8 -size 242 +""" +This module exists only to simplify retrieving the version number of chardet +from within setup.py and from chardet subpackages. + +:author: Dan Blanchard (dan.blanchard@gmail.com) +""" + +__version__ = "3.0.4" +VERSION = __version__.split('.') diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/cpu.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/cpu.py index 811b6be50d7d288604ee2a2e544f7434c55b0dc5..dc1de30a28a6eca12e1f214bba7156829e7afbf3 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/cpu.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/cpu.py @@ -1,3 +1,154 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c3edf3b3b9fb4bde9db30a181eda109803606581e0e5b353316a101b90f2d129 -size 2954 +# Raspberry Pi CPU Module +# It provides access to the GPIO pins +import time +import pio +import RPi.GPIO as GPIO + +try: + import pygame +except: + print("No pygame") +import subprocess + +# Constants +#PINMODE +INPUT = 0 +OUTPUT = 1 +PWM = 2 + +#PULLUP +PUD_OFF = 0 +PUD_DOWN = 1 +PUD_UP = 2 + +class CPU: + # Constructor + def __init__(self) : + self.PWMsignals = {} + GPIO.setmode(GPIO.BCM) + try: + pygame.mixer.init() + except: + pass + + # Methods + def pinMode(self, pin, mode) : + if pin in self.PWMsignals: + self.PWMsignals.pop(pin) + if mode == OUTPUT : + GPIO.setup(pin, GPIO.OUT) + else: + GPIO.setup(pin, GPIO.IN) + + def pwmMode(self, pin, frequency): + GPIO.setup(pin, GPIO.OUT) + self.PWMsignals.update({pin:GPIO.PWM(pin, frequency)}) + + def pullUpDnControl(self, pin, mode) : + if mode == PUD_OFF : + GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_OFF) + else : + if mode == PUD_UP: + GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_UP) + else : + GPIO.setup(pin, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) + + def digitalWrite(self, pin, state) : + GPIO.output(pin, state) + + def digitalRead(self, pin) : + return GPIO.input(pin) + + def pwmWrite(self, pin, percent): + if percent != 0: + self.PWMsignals[pin].start(percent) + else: + self.PWMsignals[pin].stop() + + def playSound(self, file): + pygame.mixer.music.load(file) + pygame.mixer.music.play() + + def sys(self, *args): + subprocess.run(args, shell=True) + + def millis(self): + return int(round(time.time() * 1000)) + + def debug(self, *args): + if args: + _delimiter = "," + print(_delimiter.join(str(x) for x in args)) + +pio.IO0 = 0 +pio.IO1 = 1 +pio.IO2 = 2 +pio.IO3 = 3 +pio.IO4 = 4 +pio.IO5 = 5 +pio.IO6 = 6 +pio.IO7 = 7 +pio.IO8 = 8 +pio.IO9 = 9 +pio.IO10 = 10 +pio.IO11 = 11 +pio.IO12 = 12 +pio.IO13 = 13 +pio.IO14 = 14 +pio.IO15 = 15 +pio.IO16 = 16 +pio.IO17 = 17 +pio.IO18 = 18 +pio.IO19 = 19 +pio.IO20 = 20 +pio.IO21 = 21 +pio.IO22 = 22 +pio.IO23 = 23 +pio.IO24 = 24 +pio.IO25 = 25 +pio.IO26 = 26 +pio.IO27 = 27 +pio.IO28 = 28 +pio.IO29 = 29 +pio.IO30 = 30 +pio.IO31 = 31 +pio.GPIO0 = 0 +pio.GPIO1 = 1 +pio.GPIO2 = 2 +pio.GPIO3 = 3 +pio.GPIO4 = 4 +pio.GPIO5 = 5 +pio.GPIO6 = 6 +pio.GPIO7 = 7 +pio.GPIO8 = 8 +pio.GPIO9 = 9 +pio.GPIO10 = 10 +pio.GPIO11 = 11 +pio.GPIO12 = 12 +pio.GPIO13 = 13 +pio.GPIO14 = 14 +pio.GPIO15 = 15 +pio.GPIO16 = 16 +pio.GPIO17 = 17 +pio.GPIO18 = 18 +pio.GPIO19 = 19 +pio.GPIO20 = 20 +pio.GPIO21 = 21 +pio.GPIO22 = 22 +pio.GPIO23 = 23 +pio.GPIO24 = 24 +pio.GPIO25 = 25 +pio.GPIO26 = 26 +pio.GPIO27 = 27 +pio.GPIO28 = 28 +pio.GPIO29 = 29 +pio.GPIO30 = 30 +pio.GPIO31 = 31 +#SPI +pio.CLK=11 +pio.CS=8 +pio.MOSI=10 +pio.MISO=9 +#I2C +pio.SDA=2 +pio.SCL=3 diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/cpu.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/cpu.xml index 5cf0a1eae0362d8dbeac668be2f93d5a7658ec74..69bcfc3b5d992322b7bb29ad869bd501aeee779b 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/cpu.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/cpu.xml @@ -1,3 +1,59 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb2f13670b20721248a703fdea8875081b64de2b9f98d7f4fbcba4e452c2956f -size 2963 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/di_i2c.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/di_i2c.py index a8d7bfcae605df5cf4a8cdbbcb2d0f15e3423d6a..0d75e6025098dc939efceda2b53e695af5a6bb65 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/di_i2c.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/di_i2c.py @@ -1,3 +1,649 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:57a0c3f5c0e739b1bf7bb29e975eaa9910956dcb1b790760f3cfe8b27dd4e77c -size 23757 +# https://www.dexterindustries.com +# +# Copyright (c) 2019 Dexter Industries +# Released under the MIT license (http://choosealicense.com/licenses/mit/). +# For more information see https://github.com/DexterInd/DI_Sensors/blob/master/LICENSE.md +# +# Python I2C drivers + +from __future__ import print_function +from __future__ import division + +import time +import di_mutex + +# Enabling one of the communication libraries +# This is not meant to change on a regular basis +# If Periphery doesn't work for you, uncomment either pigpio or smbus +#RPI_1_Module = "pigpio" +#RPI_1_Module = "smbus" +RPI_1_Module = "periphery" + +if RPI_1_Module == "pigpio": + import pigpio +elif RPI_1_Module == "smbus": + import smbus +elif RPI_1_Module == "periphery": + from periphery import I2C +else: + raise IOError("RPI_1 module not supported") + + +class DI_I2C(object): + """ Dexter Industries I2C drivers for hardware and software I2C busses """ + + def __init__(self, bus, address, big_endian = True): + """Initialize I2C + + Keyword arguments: + bus -- The I2C bus: + "RPI_1" - RPi hardware I2C + "RPI_1SW" - RPi software I2C + "GPG3_AD1" - GPG3 AD1 software I2C + "GPG3_AD2" - GPG3 AD2 software I2C + address -- the slave I2C address. Formatted as bits 0-6, not 1-7. + big_endian (default True) -- Big endian? + """ + + if bus == "RPI_1": + self.bus_name = bus + + if RPI_1_Module == "pigpio": + self.i2c_bus = pigpio.pi() + self.i2c_bus_handle = None + elif RPI_1_Module == "smbus": + self.i2c_bus = smbus.SMBus(1) + elif RPI_1_Module == "periphery": + self.bus_name = bus + self.i2c_bus = I2C("/dev/i2c-1") + elif bus == "RPI_1SW": + self.bus_name = bus + self.i2c_bus = DI_I2C_RPI_SW() + elif bus == "GPG3_AD1" or bus == "GPG3_AD2": + self.bus_name = bus + + self.gopigo3_module = __import__("gopigo3") + self.gpg3 = self.gopigo3_module.GoPiGo3() + if bus == "GPG3_AD1": + self.port = self.gpg3.GROVE_1 + elif bus == "GPG3_AD2": + self.port = self.gpg3.GROVE_2 + self.gpg3.set_grove_type(self.port, self.gpg3.GROVE_TYPE.I2C) + time.sleep(0.01) + elif bus == "BP3_1" or bus == "BP3_2" or bus == "BP3_3" or bus == "BP3_4": + self.bus_name = bus + + self.brickpi3_module = __import__("brickpi3") + self.bp3 = self.brickpi3_module.BrickPi3() + if bus == "BP3_1": + self.port = self.bp3.PORT_1 + elif bus == "BP3_2": + self.port = self.bp3.PORT_2 + elif bus == "BP3_3": + self.port = self.bp3.PORT_3 + elif bus == "BP3_4": + self.port = self.bp3.PORT_4 + self.bp3.set_sensor_type(self.port, self.bp3.SENSOR_TYPE.I2C, [0, 0]) + time.sleep(0.01) + else: + raise IOError("I2C bus not supported") + + self.mutex = di_mutex.DI_Mutex(name = ("I2C_Bus_" + bus)) + self.set_address(address) + self.big_endian = big_endian + + def reconfig_bus(self): + """Reconfigure I2C bus + + Reconfigure I2C port. If the port configuration got reset, call this method to reconfigure it.""" + if self.bus_name == "GPG3_AD1" or self.bus_name == "GPG3_AD2": + self.gpg3.set_grove_type(self.port, self.gpg3.GROVE_TYPE.I2C) + + def set_address(self, address): + """Set I2C address + + Keyword arguments: + address -- the slave I2C address""" + self.address = address + if self.bus_name == "RPI_1" and RPI_1_Module == "pigpio": + if self.i2c_bus_handle: + self.i2c_bus.i2c_close(self.i2c_bus_handle) + self.i2c_bus_handle = self.i2c_bus.i2c_open(1, address, 0) + + def transfer(self, outArr, inBytes = 0): + """Conduct an I2C transfer (write and/or read) + + Keyword arguments: + outArr -- list of bytes to write + inBytes (default 0) -- how many bytes to read + + Returns list of bytes read""" + + # Make sure all bytes are in the range of 0-255 + for b in range(len(outArr)): + outArr[b] &= 0xFF + + # type cast to int to ensure compatibility + inBytes = int(inBytes) + + self.mutex.acquire() # acquire the bus mutex + + return_val = None + + try: + if self.bus_name == "RPI_1": + if RPI_1_Module == "pigpio": + if(len(outArr) >= 2 and inBytes == 0): + self.i2c_bus.i2c_write_i2c_block_data(self.i2c_bus_handle, outArr[0], outArr[1:]) + elif(len(outArr) == 1 and inBytes == 0): + self.i2c_bus.i2c_write_byte(self.i2c_bus_handle, outArr[0]) + elif(len(outArr) == 1 and inBytes >= 1): + return_val = self.i2c_bus.i2c_read_i2c_block_data(self.i2c_bus_handle, outArr[0], inBytes) + elif(len(outArr) == 0 and inBytes >= 1): + return_val = self.i2c_bus.i2c_read_byte(self.i2c_bus_handle) + else: + raise IOError("I2C operation not supported") + elif RPI_1_Module == "smbus": + if(len(outArr) >= 2 and inBytes == 0): + self.i2c_bus.write_i2c_block_data(self.address, outArr[0], outArr[1:]) + elif(len(outArr) == 1 and inBytes == 0): + self.i2c_bus.write_byte(self.address, outArr[0]) + elif(len(outArr) == 1 and inBytes >= 1): + return_val = self.i2c_bus.read_i2c_block_data(self.address, outArr[0], inBytes) + elif(len(outArr) == 0 and inBytes == 1): + return_val = self.i2c_bus.read_byte(self.address) + else: + raise IOError("I2C operation not supported") + elif RPI_1_Module == "periphery": + # for repeated starts + # seems to fail regularly. RPi does not recognize clock stretching during repeated starts. + #msgs = [] + #offset = 0 + #if(len(outArr) > 0): + # msgs.append(self.i2c_bus.Message(outArr)) + # offset = 1 + #if(inBytes): + # r = [0 for b in range(inBytes)] + # msgs.append(self.i2c_bus.Message(r, read = True)) + #if(len(msgs) >= 1): + # self.i2c_bus.transfer(self.address, msgs) + #if(inBytes): + # return msgs[offset].data + + # for independent messages (no repeated starts) + # there is a small delay between messages, but it doesn't fail to recognize clock stretching between the messages + if(len(outArr) > 0): + msg = [self.i2c_bus.Message(outArr)] + self.i2c_bus.transfer(self.address, msg) + if(inBytes): + r = [0 for b in range(inBytes)] + msg = [self.i2c_bus.Message(r, read = True)] + self.i2c_bus.transfer(self.address, msg) + return_val = msg[0].data + + elif self.bus_name == "RPI_1SW": + return_val = self.i2c_bus.transfer(self.address, outArr, inBytes) + + elif self.bus_name == "GPG3_AD1" or self.bus_name == "GPG3_AD2": + try: + return_val = self.gpg3.grove_i2c_transfer(self.port, self.address, outArr, inBytes) + except self.gopigo3_module.I2CError: + raise IOError("[Errno 5] Input/output error") + + elif self.bus_name == "BP3_1" or self.bus_name == "BP3_2" or self.bus_name == "BP3_3" or self.bus_name == "BP3_4": + try: + return_val = self.bp3.i2c_transfer(self.port, self.address, outArr, inBytes) + except self.brickpi3_module.I2CError: + raise IOError("[Errno 5] Input/output error") + except: + self.mutex.release() # release the bus mutex before raising the exception + raise # raise the exception for user-code to deal with + + self.mutex.release() # release the bus mutex + return return_val # return data (if read) + + def write_8(self, val): + """Write an 8-bit value + + Keyword arguments: + val -- byte to write""" + val = int(val) + self.transfer([val]) + + def write_reg_8(self, reg, val): + """Write an 8-bit value to a register + + Keyword arguments: + reg -- register to write to + val -- byte to write""" + val = int(val) + self.transfer([reg, val]) + + def write_reg_16(self, reg, val, big_endian = None): + """Write a 16-bit value to a register + + Keyword arguments: + reg -- register to write to + val -- data to write + big_endian (default None) -- True (big endian), False (little endian), or None (use the pre-defined endianness for the object)""" + val = int(val) + if big_endian == None: + big_endian = self.big_endian + if big_endian: + self.transfer([reg, ((val >> 8) & 0xFF), (val & 0xFF)]) + else: + self.transfer([reg, (val & 0xFF), ((val >> 8) & 0xFF)]) + + def write_reg_32(self, reg, val, big_endian = None): + """Write a 32-bit value to a register + + Keyword arguments: + reg -- register to write to + val -- data to write + big_endian (default None) -- True (big endian), False (little endian), or None (use the pre-defined endianness for the object)""" + val = int(val) + if big_endian == None: + big_endian = self.big_endian + if big_endian: + self.transfer( [reg, ((val >> 24) & 0xFF), ((val >> 16) & 0xFF), ((val >> 8) & 0xFF), (val & 0xFF)]) + else: + self.transfer([reg, (val & 0xFF), ((val >> 8) & 0xFF), ((val >> 16) & 0xFF), ((val >> 24) & 0xFF)]) + + def write_reg_list(self, reg, list): + """Write a list of bytes to a register + + Keyword arguments: + reg -- regester to write to + list -- list of bytes to write""" + arr = [reg] + arr.extend(list) + self.transfer(arr) + + def read_8(self, reg = None, signed = False): + """Read a 8-bit value + + Keyword arguments: + reg (default None) -- Register to read from or None + signed (default False) -- True (signed) or False (unsigned) + + Returns the value + """ + # write the register to read from? + if reg != None: + outArr = [reg] + else: + outArr = [] + + val = self.transfer(outArr, 1) + + value = val[0] + + # signed value? + if signed: + # negative value? + if value & 0x80: + value = value - 0x100 + + return value + + def read_16(self, reg = None, signed = False, big_endian = None): + """Read a 16-bit value + + Keyword arguments: + reg (default None) -- Register to read from or None + signed (default False) -- True (signed) or False (unsigned) + big_endian (default None) -- True (big endian), False (little endian), or None (use the pre-defined endianness for the object) + + Returns the value + """ + # write the register to read from? + if reg != None: + outArr = [reg] + else: + outArr = [] + + val = self.transfer(outArr, 2) + + if big_endian == None: + big_endian = self.big_endian + + # big endian? + if big_endian: + value = (val[0] << 8) | val[1] + else: + value = (val[1] << 8) | val[0] + + # signed value? + if signed: + # negative value? + if value & 0x8000: + value = value - 0x10000 + + return value + + def read_32(self, reg = None, signed = False, big_endian = None): + """Read a 32-bit value + + Keyword arguments: + reg (default None) -- Register to read from or None + signed (default False) -- True (signed) or False (unsigned) + big_endian (default None) -- True (big endian), False (little endian), or None (use the pre-defined endianness for the object) + + Returns the value + """ + # write the register to read from? + if reg != None: + outArr = [reg] + else: + outArr = [] + + val = self.transfer(outArr, 4) + + if big_endian == None: + big_endian = self.big_endian + + # big endian? + if big_endian: + value = (val[0] << 24) | (val[1] << 16) | (val[2] << 8) | val[3] + else: + value = (val[3] << 24) | (val[2] << 16) | (val[1] << 8) | val[0] + + # signed value? + if signed: + # negative value? + if value & 0x80000000: + value = value - 0x100000000 + + return value + + def read_list(self, reg, len): + """Read a list of bytes from a register + + Keyword arguments: + reg -- Register to read from or None + len -- Number of bytes to read + + Returns a list of the bytes read""" + + # write the register to read from? + if reg != None: + outArr = [reg] + else: + outArr = [] + return self.transfer(outArr, len) + +#import wiringpi +import atexit + + +class DI_I2C_RPI_SW(object): + """Dexter Industries I2C bit-bang drivers for the Raspberry Pi""" + + ''' + Currently the bus runs at about 100kbps. Tested with an RPi 3B+ with minimal CPU load. + + + Code for using RPi.GPIO for GPIO control + # setup + GPIO.setmode(GPIO.BCM) # set up the GPIO with BCM numbering + GPIO.setup(2, GPIO.IN) # set SDA pin as input + GPIO.setup(3, GPIO.IN) # set SCL pin as input + + GPIO.setup(3, GPIO.IN) # SCL High + GPIO.setup(3, GPIO.OUT) # SCL Low + GPIO.setup(2, GPIO.IN) # SDA High + GPIO.setup(2, GPIO.OUT) # SDA Low + GPIO.input(3) # SCL Read + GPIO.input(2) # SDA Read + + Code for using wiringpi for GPIO control + # setup + wiringpi.wiringPiSetupGpio() + wiringpi.pinMode(2, 0) # set SDA pin as input + wiringpi.pinMode(3, 0) # set SCL pin as input + wiringpi.digitalWrite(2, 0) + wiringpi.digitalWrite(3, 0) + + wiringpi.pinMode(3, 0) # SCL High + wiringpi.pinMode(3, 1) # SCL Low + wiringpi.pinMode(2, 0) # SDA High + wiringpi.pinMode(2, 1) # SDA Low + wiringpi.digitalRead(3) # SCL Read + wiringpi.digitalRead(2) # SDA Read + + wiringpi.pinModeAlt(2, 4) # restore ALT0 functionality on SDA pin + wiringpi.pinModeAlt(3, 4) # restore ALT0 functionality on SCL pin + ''' + + SUCCESS = 0 + ERROR_NACK = 1 + ERROR_CLOCK_STRETCH_TIMEOUT = 2 + ERROR_DATA_STRETCH_TIMEOUT = 3 + ERROR_DATA_AND_CLOCK_STRETCH_TIMEOUT = 4 + + INPUT = 0 + OUTPUT = 1 + + # timeout if stretched for more than this long (in seconds) + STRETCH_TIMEOUT = 0.001 + + BusActive = False + + def __init__(self): + """ Initialize """ + + # set up the GPIO with BCM numbering + wiringpi.wiringPiSetupGpio() + + # Register the exit method + atexit.register(self.__exit_cleanup__) # register the exit method + + def __set_gpio_pins__(self): + """ Set pins as GPIO """ + + self.BusActive = True + wiringpi.pinMode(3, self.INPUT) # set SCL pin as input + wiringpi.pinMode(2, self.INPUT) # set SDA pin as input + + def __restore_gpio_pins__(self): + """ Restore HW I2C functionality on GPIO pins 2 & 3 """ + + wiringpi.pinModeAlt(3, 4) # restore ALT0 functionality on SCL pin + wiringpi.pinModeAlt(2, 4) # restore ALT0 functionality on SDA pin + self.BusActive = False + + def __exit_cleanup__(self): + """ Called at exit to clean up """ + + if self.BusActive: + self.__restore_gpio_pins__() + + def transfer(self, addr, outArr, inBytes): + """ Write and/or read I2C """ + + self.__set_gpio_pins__() + + if(len(outArr) > 0): # bytes to write? + if self.__write__(addr, outArr, inBytes) != self.SUCCESS: + self.__restore_gpio_pins__() + raise IOError("[Errno 5] Input/output error") + + if(inBytes > 0): # read bytes? + result, value = self.__read__(addr, inBytes) + self.__restore_gpio_pins__() + if result != self.SUCCESS: + raise IOError("[Errno 5] Input/output error") + return value + else: + self.__restore_gpio_pins__() + + def __delay__(self): + """ Delay called for slowing down the I2C clock to around 100kbps """ + + #time_start = time.time() + #while (time.time() - time_start) < 0.000005: + # pass + + #time.sleep(0.000005) + + pass # Already enough time overhead. Return ASAP. + + def __scl_high_check__(self): + """ Allow SCL to go high, and wait until it's high. Timeout. """ + + wiringpi.pinMode(3, self.INPUT) # SCL High + if not wiringpi.digitalRead(3): # SCL Read + return self.__scl_check_timeout__() + return self.SUCCESS + + def __scl_check_timeout__(self): + """ Wait until SCL is high, and timeout if it takes too long """ + + time_start = time.time() + while not wiringpi.digitalRead(3): # SCL Read + if (time.time() - time_start) > self.STRETCH_TIMEOUT: + return self.ERROR_CLOCK_STRETCH_TIMEOUT # timeout waiting for SCL to go high + #self.__delay__() # SCL is already high, just make sure it's high enough + return self.SUCCESS + + def __sda_high_check__(self): + """ Allow SDA to go high, and wait until it's high """ + + wiringpi.pinMode(2, self.INPUT) # SDA High + result = 0 + time_start = time.time() + while not wiringpi.digitalRead(2): # SDA Read + if time.time() - time_start > self.STRETCH_TIMEOUT: + return self.ERROR_DATA_STRETCH_TIMEOUT # timeout waiting for SDA to go high + #self.__delay__() # SDA is already high, just make sure it's high enough + return self.SUCCESS + + def __write__(self, addr, outArr, restart = False): + """ Write bytes """ + + outBuffer = [(addr << 1)] # left-shift I2C address and clear read bit + outBuffer.extend(outArr) # outBuffer now contains the address and outArr + self.__start__() # issue bus start + for b in range(len(outBuffer)): # for each byte + result = self.__write_byte__(outBuffer[b]) # write the byte + if result != self.SUCCESS: # if an error + if result == self.ERROR_NACK: # if NACK + self.__stop__() + else: # other error. Probably ERROR_CLOCK_STRETCH_TIMEOUT + wiringpi.pinMode(3, self.INPUT) # SCL High + wiringpi.pinMode(2, self.INPUT) # SDA High + return result # return error + if restart: # if a read is immediately following, issue a restart + # SDA high then SCL high, with provisions for timeout + if self.__sda_high_check__(): + if self.__scl_high_check__(): + return self.ERROR_DATA_AND_CLOCK_STRETCH_TIMEOUT + return self.ERROR_DATA_STRETCH_TIMEOUT + if self.__scl_high_check__(): + return self.ERROR_CLOCK_STRETCH_TIMEOUT + + #self.__start__() # This doesn't seem to be necessary # issue bus start + return self.SUCCESS + else: + return self.__stop__() # issue bus stop + + def __read__(self, addr, inBytes): + """ Read bytes """ + + addr = (addr << 1) | 0x01 # left-shift I2C address and set read bit + inBuffer = [] + + self.__start__() # issue bus start + result = self.__write_byte__(addr) # write the address and read bit + if result != self.SUCCESS: # check for error + if result == self.ERROR_NACK: # if NACK + self.__stop__() + else: # other error. Probably ERROR_CLOCK_STRETCH_TIMEOUT + wiringpi.pinMode(3, self.INPUT) # SCL High + wiringpi.pinMode(2, self.INPUT) # SDA High + return result, inBuffer + + for b in range(inBytes): # for each byte to read + result, value = self.__read_byte__((inBytes - 1) - b) # read a byte, and ack all except the last + if result != self.SUCCESS: # check for error + wiringpi.pinMode(3, self.INPUT) # SCL High + wiringpi.pinMode(2, self.INPUT) # SDA High + return result, inBuffer # return error + inBuffer.append(value) # append the read byte to inBuffer + + result = self.__stop__() # issue bus stop + return result, inBuffer # return the read byte array + + def __start__(self): + """ Issue bus start sequence """ + + wiringpi.pinMode(2, self.OUTPUT) # SDA Low + self.__delay__() + + def __stop__(self): + """ Issue bus stop sequence """ + + wiringpi.pinMode(2, self.OUTPUT) # SDA Low + self.__delay__() + + # SCL high then SDA high, with provisions for timeout + if self.__scl_high_check__(): + if self.__sda_high_check__(): + return self.ERROR_DATA_AND_CLOCK_STRETCH_TIMEOUT + return self.ERROR_CLOCK_STRETCH_TIMEOUT + if self.__sda_high_check__(): + return self.ERROR_DATA_STRETCH_TIMEOUT + + return self.SUCCESS + + def __write_byte__(self, val): + """ Write a byte """ + + for b in range(8): + wiringpi.pinMode(3, self.OUTPUT) # SCL Low + if (0x80 >> b) & val: + wiringpi.pinMode(2, self.INPUT) # SDA High + else: + wiringpi.pinMode(2, self.OUTPUT) # SDA Low + #self.__delay__() + wiringpi.pinMode(3, self.INPUT) # SCL High + if not wiringpi.digitalRead(3): # SCL Read + if self.__scl_check_timeout__(): + return self.ERROR_CLOCK_STRETCH_TIMEOUT + #self.__delay__() + wiringpi.pinMode(3, self.OUTPUT) # SCL Low + wiringpi.pinMode(2, self.INPUT) # SDA High + self.__delay__() + if self.__scl_high_check__(): + return self.ERROR_CLOCK_STRETCH_TIMEOUT + + result = self.SUCCESS + if wiringpi.digitalRead(2): # SDA Read. check for ACK + result = self.ERROR_NACK + wiringpi.pinMode(3, self.OUTPUT) # SCL Low + return result + + def __read_byte__(self, ack): + """ Read a byte """ + + wiringpi.pinMode(2, self.INPUT) # SDA High + data = 0 + wiringpi.pinMode(3, self.OUTPUT) # SCL Low + for b in range(8): + self.__delay__() + wiringpi.pinMode(3, self.INPUT) # SCL High + if not wiringpi.digitalRead(3): # SCL Read + if self.__scl_check_timeout__(): + return self.ERROR_CLOCK_STRETCH_TIMEOUT + if wiringpi.digitalRead(2): # SDA Read + data |= (0x80 >> b) + #self.__delay__() + wiringpi.pinMode(3, self.OUTPUT) # SCL Low + if ack != 0: # send ack? + wiringpi.pinMode(2, self.OUTPUT) # SDA Low + else: + self.__delay__() + if self.__scl_high_check__(): + return self.ERROR_CLOCK_STRETCH_TIMEOUT, 0 + wiringpi.pinMode(3, self.OUTPUT) # SCL Low + return self.SUCCESS, data diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/di_mutex.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/di_mutex.py index 4363917682b0b92ce8e20de202ab92e1d75c098c..212e0fdc6cd834d6c81a6e448a75962f5180990d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/di_mutex.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/di_mutex.py @@ -1,3 +1,63 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:71033e9771463779605c2b23bdea4d65f9d148742809c8e2b97606e55fbc725c -size 1700 +# https://www.dexterindustries.com +# +# Copyright (c) 2019 Dexter Industries +# Released under the MIT license (http://choosealicense.com/licenses/mit/). +# For more information see https://github.com/DexterInd/DI_Sensors/blob/master/LICENSE.md +# +# Python mutex + +from __future__ import print_function +from __future__ import division + +import time +import fcntl +import os +import atexit + + +class DI_Mutex(object): + """ Dexter Industries mutex """ + + def __init__(self, name, loop_time = 0.0001): + """ Initialize """ + + self.Filename = "/run/lock/DI_Mutex_" + name + self.LoopTime = loop_time + self.Handle = None + + try: + open(self.Filename, 'w') + if os.path.isfile(self.Filename): + os.chmod(self.Filename, 0o777) + except Exception as e: + pass + + # Register the exit method + atexit.register(self.__exit_cleanup__) # register the exit method + + def __exit_cleanup__(self): + """ Called at exit to clean up """ + + self.release() + + def acquire(self): + """ Acquire the mutex """ + + while True: + try: + self.Handle = open(self.Filename, 'w') + # lock + fcntl.lockf(self.Handle, fcntl.LOCK_EX | fcntl.LOCK_NB) + return + except IOError: # already locked by a different process + time.sleep(self.LoopTime) + except Exception as e: + print(e) + + def release(self): + """ Release the mutex """ + + if self.Handle is not None and self.Handle is not True: + self.Handle.close() + self.Handle = None + time.sleep(self.LoopTime) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/__init__.py index 9703e890473bc7b65c6dab73a6abb555851fc57d..32a23c73e52a04d29692a0e758c00dec82e95ca2 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/__init__.py @@ -1,3 +1,951 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4545cdfd82da74c0327d14734b55114820e49b9917847758d1bab9b8b8a3e62 -size 24291 +"""[explorerhat] + +API library for Explorer HAT and Explorer HAT Pro, Raspberry Pi add-on boards""" + +import atexit +import signal +import time +from sys import version_info + +try: + from smbus import SMBus +except ImportError: + if version_info[0] < 3: + raise ImportError("This library requires python-smbus\nInstall with: sudo apt-get install python-smbus") + elif version_info[0] == 3: + raise ImportError("This library requires python3-smbus\nInstall with: sudo apt-get install python3-smbus") + +try: + import RPi.GPIO as GPIO +except ImportError: + raise ImportError("This library requires the RPi.GPIO module\nInstall with: sudo pip install RPi.GPIO") + +try: + from cap1xxx import Cap1208 +except ImportError: + raise ImportError("This library requires the cap1xxx module\nInstall with: sudo pip install cap1xxx") + +from .pins import ObjectCollection, AsyncWorker, StoppableThread + + +__version__ = '0.4.2' + +_verbose = False +_gpio_is_setup = False +_analog_is_setup = False +_captouch_is_setup = False + +explorer_pro = False +explorer_phat = False +has_captouch = False +has_analog = False + +# Assume A+, B+ and no funny business + +# Onboard LEDs above 1, 2, 3, 4 +LED1 = 4 +LED2 = 17 +LED3 = 27 +LED4 = 5 + +# Outputs via ULN2003A +OUT1 = 6 +OUT2 = 12 +OUT3 = 13 +OUT4 = 16 + +# 5v Tolerant Inputs +IN1 = 23 +IN2 = 22 +IN3 = 24 +IN4 = 25 + +# Motor, via DRV8833PWP Dual H-Bridge +M1B = 19 +M1F = 20 +M2B = 21 +M2F = 26 + +# Number of times to update +# pulsing LEDs per second +PULSE_FPS = 50 +PULSE_FREQUENCY = 1000 + +DEBOUNCE_TIME = 20 + +CAP_PRODUCT_ID = 107 + + +def help(topic=None): + return _help[topic] + +def set_verbose(value): + global _verbose + _verbose = value + +def explorerhat_exit(): + if _verbose: print("\nExplorer HAT exiting cleanly, please wait...") + + if _verbose: print("Stopping flashy things...") + output.stop() + input.stop() + light.stop() + light.stop_pulse() + + if _verbose: print("Stopping user tasks...") + async_stop_all() + + if _verbose: print("Cleaning up...") + GPIO.cleanup() + + if _verbose: print("Goodbye!") + +def setup(): + setup_gpio() + setup_captouch() + setup_analog() + +def setup_gpio(pin=None, mode=None, initial=0): + global _gpio_is_setup + + if not _gpio_is_setup: + _gpio_is_setup = True + GPIO.setmode(GPIO.BCM) + GPIO.setwarnings(False) + atexit.register(explorerhat_exit) + + if pin is not None and mode is not None: + if mode == GPIO.OUT: + GPIO.setup(pin, mode, initial=initial) + else: + GPIO.setup(pin, mode) + +def setup_captouch(): + global _captouch_is_setup, has_captouch, _cap1208 + + if _captouch_is_setup: + return has_captouch + + _captouch_is_setup = True + + try: + _cap1208 = Cap1208() + has_captouch = True + except IOError: + has_captouch = False + + return has_captouch + +def setup_analog(): + global _analog_is_setup, adc_available, read_se_adc, has_analog + + if _analog_is_setup: + return has_analog + + _analog_is_setup = True + + from .ads1015 import read_se_adc, adc_available + + if adc_available: + has_analog = True + else: + has_analog = False + + return has_analog + +def is_explorer_pro(): + setup_analog() + setup_captouch() + return has_captouch and has_analog + +def is_explorer_basic(): + setup_analog() + setup_captouch() + return has_captouch and not has_analog + +def is_explorer_phat(): + setup_analog() + setup_captouch() + return has_analog and not has_captouch + + +class Pulse(StoppableThread): + """Basic thread wrapper class for delta-timed LED pulsing + + Pulses an LED in perfect wall-clock time + Small delay by 1.0/FPS to prevent unnecessary workload""" + def __init__(self, pin, time_on, time_off, transition_on, transition_off): + StoppableThread.__init__(self) + + self._paused = False + self.pin = pin + self.time_on = time_on + self.time_off = time_off + self.transition_on = transition_on + self.transition_off = transition_off + + self.fps = PULSE_FPS + + # Total time of transition + self.time_start = time.time() + + def start(self): + self.pin.frequency(PULSE_FREQUENCY) + + if self._paused: + self.time_start = time.time() + self._paused = False + return + + self.time_start = time.time() + StoppableThread.start(self) + + def pause(self): + self._paused = True + + def run(self): + # This loop runs at the specified "FPS" uses time.time() + while not self.stop_event.is_set(): + if not self._paused: + current_time = time.time() - self.time_start + delta = current_time % (self.transition_on+self.time_on+self.transition_off+self.time_off) + + time_off = self.transition_on + self.time_on + self.transition_off + time_on = self.transition_on + self.time_on + + if delta <= self.transition_on: + # Transition On Phase + self.pin.duty_cycle(round((100.0 / self.transition_on) * delta)) + + elif time_on < delta <= time_off: + # Transition Off Phase + current_delta = delta - self.transition_on - self.time_on + self.pin.duty_cycle(round(100.0 - ((100.0 / self.transition_off) * current_delta))) + + elif delta > self.transition_on < delta <= time_on: + self.pin.duty_cycle(100) + + elif delta > time_off: + self.pin.duty_cycle(0) + + time.sleep(1.0/self.fps) + + self.pin.duty_cycle(0) + + +class Pin(object): + """ExplorerHAT class representing a GPIO Pin + + Pin contains methods that apply to both inputs and outputs""" + type = 'Pin' + + def __init__(self, pin, mode=GPIO.IN): + self.pin = pin + self.mode = mode + self.last = GPIO.LOW + self.handle_change = False + self.handle_high = False + self.handle_low = False + self._is_gpio_setup = False + + # Return a tidy list of all "public" methods + def __call__(self): + return filter(lambda x: x[0] != '_', dir(self)) + + def _setup_gpio(self): + if self._is_gpio_setup: + return True + + self._is_gpio_setup = True + setup_gpio(self.pin, self.mode) + + def has_changed(self): + if self.read() != self.last: + self.last = self.read() + return True + return False + + def is_off(self): + return self.read() == 0 + + def is_on(self): + return self.read() == 1 + + def read(self): + self._setup_gpio() + return GPIO.input(self.pin) + + def stop(self): + return True + + def __enter__(self): + return self + + def __exit__(self, type, value, traceback): + pass + + def __del__(self): + pass + + is_high = is_on + is_low = is_off + get = read + + +class Motor(object): + type = 'Motor' + + def __init__(self, pin_fw, pin_bw): + self._invert = False + self.pin_fw = pin_fw + self.pin_bw = pin_bw + self._speed = 0 + self._gpio_is_setup = False + + def _setup_gpio(self): + if self._gpio_is_setup: + return + + self._gpio_is_setup = True + setup_gpio(self.pin_fw, GPIO.OUT, initial=GPIO.LOW) + setup_gpio(self.pin_bw, GPIO.OUT, initial=GPIO.LOW) + + self.pwm_fw = GPIO.PWM(self.pin_fw, 100) + self.pwm_fw.start(0) + + self.pwm_bw = GPIO.PWM(self.pin_bw, 100) + self.pwm_bw.start(0) + + def invert(self): + self._invert = not self._invert + self._speed = -self._speed + self.speed(self._speed) + return self._invert + + def forwards(self, speed=100): + if speed > 100 or speed < 0: + raise ValueError("Speed must be between 0 and 100") + if self._invert: + self.speed(-speed) + else: + self.speed(speed) + + def backwards(self, speed=100): + if speed > 100 or speed < 0: + raise ValueError("Speed must be between 0 and 100") + if self._invert: + self.speed(speed) + else: + self.speed(-speed) + + def speed(self, speed=100): + self._setup_gpio() + + if speed > 100 or speed < -100: + raise ValueError("Speed must be between -100 and 100") + + self._speed = speed + if speed > 0: + self.pwm_bw.ChangeDutyCycle(0) + self.pwm_fw.ChangeDutyCycle(speed) + if speed < 0: + self.pwm_fw.ChangeDutyCycle(0) + self.pwm_bw.ChangeDutyCycle(abs(speed)) + if speed == 0: + self.pwm_fw.ChangeDutyCycle(0) + self.pwm_bw.ChangeDutyCycle(0) + + return speed + + def stop(self): + self.speed(0) + + forward = forwards + backward = backwards + reverse = invert + + +class Input(Pin): + """ExplorerHAT class representing a GPIO Input + + Input contains methods that apply only to inputs""" + + type = 'Input' + + def __init__(self, pin): + self.handle_pressed = None + self.handle_released = None + self.handle_changed = None + self.has_callback = False + + super(Input, self).__init__(pin, GPIO.IN) + + def on_high(self, callback, bouncetime=DEBOUNCE_TIME): + self.handle_pressed = callback + self._setup_callback(bouncetime) + return True + + def _setup_callback(self, bouncetime): + if self.has_callback: + return False + + def handle_callback(pin): + if self.read() == 1 and callable(self.handle_pressed): + self.handle_pressed(self) + elif self.read() == 0 and callable(self.handle_released): + self.handle_released(self) + if callable(self.handle_changed): + self.handle_changed(self) + + self._setup_gpio() + GPIO.add_event_detect(self.pin, GPIO.BOTH, callback=handle_callback, bouncetime=bouncetime) + self.has_callback = True + return True + + def on_low(self, callback, bouncetime=DEBOUNCE_TIME): + self.handle_released = callback + self._setup_callback(bouncetime) + return True + + def on_changed(self, callback, bouncetime=DEBOUNCE_TIME): + self.handle_changed = callback + self._setup_callback(bouncetime) + return True + + def clear_events(self): + if self._is_gpio_setup(): + GPIO.remove_event_detect(self.pin) + self.has_callback = False + + # Alias handlers + changed = on_changed + pressed = on_high + released = on_low + + +class Output(Pin): + """ExplorerHAT class representing a GPIO Output + + Output contains methods that apply only to outputs. + It also contains methods for pulsing, blinking LEDs or other attached devices""" + type = 'Output' + + def __init__(self, pin): + super(Output, self).__init__(pin, GPIO.OUT) + + self.pulser = Pulse(self, 0, 0, 0, 0) + self.blinking = False + self.pulsing = False + self.fading = False + self.fader = None + self._value = 0 + self.gpio_pwm = None + + def _setup_gpio(self): + if self._is_gpio_setup: + return True + + setup_gpio(self.pin, self.mode) + self.gpio_pwm = GPIO.PWM(self.pin, PULSE_FREQUENCY) + self.gpio_pwm.start(0) + + def __del__(self): + if self.gpio_pwm is not None: + self.gpio_pwm.stop() + Pin.__del__(self) + + def fade(self, start, end, duration): + """Fades an LED to a specific brightness over a specific time in seconds + + @param self Object pointer. + @param start Starting brightness % + @param end Ending brightness % + @param duration Time duration ( in seconds ) of the fade""" + self.stop() + time_start = time.time() + self.pwm(PULSE_FREQUENCY, start) + + def _fade(): + self.fading = True + + if time.time() - time_start >= duration: + self.duty_cycle(end) + self.fading = False + return False + + current = (time.time() - time_start) / duration + brightness = start + (float(end-start) * current) + self.duty_cycle(round(brightness)) + time.sleep(1.0 / PULSE_FPS) + + self.fader = AsyncWorker(_fade) + self.fader.start() + return True + + def blink(self, on=1, off=-1): + """Blinks an LED by working out the correct PWM frequency/duty cycle + + @param self Object pointer. + @param on Time the LED should stay at 100%/on + @param off Time the LED should stay at 0%/off""" + + self.stop() + + if off == -1: + off = on + + off = float(off) + on = float(on) + + total = off + on + + duty_cycle = 100.0 * (on/total) + + # Use pure PWM blinking, because threads are ugly + self.frequency(1.0/total) + self.duty_cycle(duty_cycle) + self.blinking = True + + return True + + def pulse(self, transition_on=None, transition_off=None, time_on=None, time_off=None): + """Pulses an LED + + @param self Object pointer. + @param transition_on Time the transition from 0% to 100% brightness should take + @param transition_off Time the trantition from 100% to 0% brightness should take + @param time_on Time the LED should stay at 100% brightness + @param time_off Time the LED should stay at 0% brightness""" + + self.stop() + + # This needs a thread to handle the fade in and out + + # Attempt to cascade parameters + # pulse() = pulse(0.5,0.5,0.5,0.5) + # pulse(0.5,1.0) = pulse(0.5,1.0,0.5,0.5) + # pulse(0.5,1.0,1.0) = pulse(0.5,1.0,1.0,1.0) + # pulse(0.5,1.0,1.0,0.5) = - + + if transition_on is None: + transition_on = 0.5 + if transition_off is None: + transition_off = transition_on + if time_on is None: + time_on = transition_on + if time_off is None: + time_off = transition_on + + # pulse(x,y,0,0) is basically just a regular blink + # only fire up a thread if we really need it + if transition_on == 0 and transition_off == 0: + self.blink(time_on, time_off) + self.blinking = True + else: + self.pulser.time_on = time_on + self.pulser.time_off = time_off + self.pulser.transition_on = transition_on + self.pulser.transition_off = transition_off + self.pulser.start() + self.pulsing = True + + return True + + def pwm(self, freq, duty_cycle=50): + self.gpio_pwm.ChangeDutyCycle(duty_cycle) + self.gpio_pwm.ChangeFrequency(freq) + return True + + def frequency(self, freq): + self.gpio_pwm.ChangeFrequency(freq) + return True + + def duty_cycle(self, duty_cycle): + self.gpio_pwm.ChangeDutyCycle(duty_cycle) + return True + + def stop(self): + """Spops all animation""" + self._setup_gpio() + + if self.fading: + self.fader.stop() + self.fading = False + + if self.pulsing: + self.pulsing = False + self.pulser.pause() + + if self.blinking: + self.blinking = False + + if self._value: + self.duty_cycle(100) + else: + self.duty_cycle(0) + + return True + + def stop_pulse(self): + """Stops the pulsing thread + + @param self Object pointer.""" + self.pulsing = False + self.pulser.stop() + self.pulser = Pulse(self, 0, 0, 0, 0) + + def brightness(self, value): + if not 0 <= value <= 100: + raise ValueError("Brightness must be between 0 and 100") + + self.frequency(PULSE_FREQUENCY) + self.duty_cycle(value) + + def write(self, value): + if value is not True and value is not False and value is not 1 and value is not 0: + raise ValueError("You must write a value of 1/True or 0/False") + + self.stop() + self._value = value + + self.frequency(PULSE_FREQUENCY) + + if self._value: + self.duty_cycle(100) + else: + self.duty_cycle(0) + + return True + + def on(self): + """Turns an Output on + @param self Object pointer.""" + self.write(1) + return True + + def off(self): + """Turns an Output off + @param self Object pointer.""" + self.write(0) + return True + + high = on + low = off + + def toggle(self): + self.stop() + + if self.read(): + self.write(0) + else: + self.write(1) + + return True + + +class Light(Output): + """ExplorerHAT class representing an onboard LED""" + + type = 'Light' + + def __init__(self, pin): + super(Light, self).__init__(pin) + + +class AnalogInput(object): + type = 'Analog Input' + + def __init__(self, channel): + self.channel = channel + self._sensitivity = 0.1 + self._t_watch = None + self.last_value = None + self._handler = None + + def read(self): + if not setup_analog(): + raise RuntimeError("Analog is unavailable, check your pHAT/HAT and/or connections!") + return read_se_adc(self.channel) + + def sensitivity(self, sensitivity): + self._sensitivity = sensitivity + + def changed(self, handler, sensitivity=None): + self._handler = handler + if sensitivity is not None: + self._sensitivity = sensitivity + if self._t_watch is None: + self._t_watch = AsyncWorker(self._watch) + self._t_watch.start() + + def _watch(self): + value = self.read() + if self.last_value is not None and abs(value-self.last_value) > self._sensitivity: + if callable(self._handler): + self._handler(self, value) + self.last_value = value + time.sleep(0.01) + + +class CapTouchSettings(object): + type = 'Cap Touch Settings' + + @staticmethod + def enable_multitouch(en=True): + _cap1208.enable_multitouch(en) + + +class CapTouchInput(object): + type = 'Cap Touch Input' + + def __init__(self, channel, alias): + self.alias = alias + self._pressed = False + self._held = False + self.channel = channel + self.handlers = {'press': None, 'release': None, 'held': None} + self._captouch_is_setup = False + + def _setup_captouch(self): + if self._captouch_is_setup: + return has_captouch + + self._captouch_is_setup = True + + if setup_captouch(): + for event in ['press', 'release', 'held']: + _cap1208.on(channel=self.channel, event=event, handler=self._handle_state) + + return has_captouch + + def _handle_state(self, channel, event): + if channel == self.channel: + if event == 'press': + self._pressed = True + elif event == 'held': + self._held = True + elif event in ['release', 'none']: + self._pressed = False + self._held = False + if callable(self.handlers[event]): + self.handlers[event](self.alias, event) + + def is_pressed(self): + if not self._setup_captouch(): + raise RuntimeError("Touch is unavailable, check your pHAT/HAT and/or connections!") + + return self._pressed + + def is_held(self): + if not self._setup_captouch(): + raise RuntimeError("Touch is unavailable, check your pHAT/HAT and/or connections!") + + return self._held + + def pressed(self, handler): + if not self._setup_captouch(): + raise RuntimeError("Touch is unavailable, check your pHAT/HAT and/or connections!") + + self.handlers['press'] = handler + + def released(self, handler): + if not self._setup_captouch(): + raise RuntimeError("Touch is unavailable, check your pHAT/HAT and/or connections!") + + self.handlers['release'] = handler + + def held(self, handler): + if not self._setup_captouch(): + raise RuntimeError("Touch is unavailable, check your pHAT/HAT and/or connections!") + + self.handlers['held'] = handler + +running = False +workers = {} + + +def async_start(name, function): + global workers + workers[name] = AsyncWorker(function) + workers[name].start() + return True + +def async_stop(name): + global workers + workers[name].stop() + return True + +def async_stop_all(): + global workers + for worker in workers: + print("Stopping user task: " + worker) + workers[worker].stop() + return True + +def set_timeout(function, seconds): + def fn_timeout(): + time.sleep(seconds) + function() + return False + timeout = AsyncWorker(fn_timeout) + timeout.start() + return True + +def pause(): + signal.pause() + +def loop(callback): + global running + running = True + while running: + callback() + +def stop(): + global running + running = False + return True + + +settings = ObjectCollection() +settings._add(touch=CapTouchSettings()) + +light = ObjectCollection() +light._add(blue=Light(LED1)) +light._add(yellow=Light(LED2)) +light._add(red=Light(LED3)) +light._add(green=Light(LED4)) +light._alias(amber='yellow') + +output = ObjectCollection() +output._add(one=Output(OUT1)) +output._add(two=Output(OUT2)) +output._add(three=Output(OUT3)) +output._add(four=Output(OUT4)) + +input = ObjectCollection() +input._add(one=Input(IN1)) +input._add(two=Input(IN2)) +input._add(three=Input(IN3)) +input._add(four=Input(IN4)) + +touch = ObjectCollection() +touch._add(one=CapTouchInput(4, 1)) +touch._add(two=CapTouchInput(5, 2)) +touch._add(three=CapTouchInput(6, 3)) +touch._add(four=CapTouchInput(7, 4)) +touch._add(five=CapTouchInput(0, 5)) +touch._add(six=CapTouchInput(1, 6)) +touch._add(seven=CapTouchInput(2, 7)) +touch._add(eight=CapTouchInput(3, 8)) + +motor = ObjectCollection() +motor._add(one=Motor(M1F, M1B)) +motor._add(two=Motor(M2F, M2B)) + +analog = ObjectCollection() +analog._add(one=AnalogInput(3)) +analog._add(two=AnalogInput(2)) +analog._add(three=AnalogInput(1)) +analog._add(four=AnalogInput(0)) + +_help = { + 'index': '''Call with "explorerhat.help(topic)" for help with: + + * touch + * input + * output + * light + * analog + * motor + +Explorer HAT uses simple named collections of things to get you +started writing Python to control and sense the world around you. + +In the same way as you called help, try calling the name of a +collection of things. + + explorerhat.touch + ... + explorerhat.light + +You can then call methods on either entire collections, like so: + + explorerhat.light.on() + +Or just one thing, like so: + + explorerhat.light.red.on() +''', + 'touch': '''Touch Inputs + +Explorer HAT includes 8 touch inputs which act just like buttons. + +The 8 touch pads are named "one" to "eight" and can be called like so: + + explorerhat.touch.one + explorerhat.touch.two + ... + explorerhat.touch.eight +''', + 'input': '''Inputs + +Explorer HAT includes 4 buffered, 5v tolerant inputs. + +The 4 inputs are named "one" to "four" and can be called like so: + + explorerhat.input.one + ... + explorerhat.input.four +''', + 'output': '''Outputs + +Explorer HAT includes 4 5v tolerant outputs. + +Beware, these are driven through a Darlington Array ( ULN2003A ) +and will *pull down to ground* rather than supply 5v. + +The 4 outputs are named "one" to "four" and can be called like so: + + explorerhat.output.one + ... + explorerhat.output.four +''', + 'light': '''Lights + +Explorer HAT includs 4 LEDs; Yellow, Blue, Red and Green + +You can call them like so: + + explorerhat.light.yellow + ... + explorerhat.light.green + +''', + 'analog': '''Analog Inputs + +Explorer HAT inclues 4, 5v tolerant analogue inputs. + +The 4 analog inputs are named "one" to "four" and can be called like so: + + explorerhat.analog.one + ... + explorerhat.analog.four +''', + 'motor': '''Motor Driver + +Explorer HAT includes a motor driver, capable of driving two motors. + +The two motors are named "one" and "two" and can be called like so: + + explorerhat.motor.one + explorerhat.motor.two +''', +} + + +def help(topic='index'): + if topic.lower() in _help.keys(): + print("HELP{}\n\n{}\n{}".format('-'*66, _help[topic.lower()], '-'*70)) + else: + print(_help['index']) + return None diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/ads1015.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/ads1015.py index 77ed07995c6aa81bbb6df0612ec29458561454eb..768cb60a3474871e8b047545e7e195bc903d303c 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/ads1015.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/ads1015.py @@ -1,3 +1,64 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c40a10b01d1a39647b0fc2deaec29ca390861c20be0939ee3492dbe360d885a -size 1769 +import time +from sys import exit, version_info + +try: + from smbus import SMBus +except ImportError: + if version_info[0] < 3: + exit("This library requires python-smbus\nInstall with: sudo apt-get install python-smbus") + elif version_info[0] == 3: + exit("This library requires python3-smbus\nInstall with: sudo apt-get install python3-smbus") + + +adc_available = True + + +def i2c_bus_id(): + revision = ([l[12:-1] for l in open('/proc/cpuinfo', 'r').readlines() if l[:8] == "CPU Revision"] + ['0000'])[0] + return 1 if int(revision, 16) >= 4 else 0 + + +address = 0x48 +i2c = SMBus(i2c_bus_id()) + +REG_CONV = 0x00 +REG_CFG = 0x01 + +samples_per_second_map = {128: 0x0000, 250: 0x0020, 490: 0x0040, 920: 0x0060, 1600: 0x0080, 2400: 0x00A0, 3300: 0x00C0} +channel_map = {0: 0x4000, 1: 0x5000, 2: 0x6000, 3: 0x7000} +programmable_gain_map = {6144: 0x0000, 4096: 0x0200, 2048: 0x0400, 1024: 0x0600, 512: 0x0800, 256: 0x0A00} + +PGA_6_144V = 6144 +PGA_4_096V = 4096 +PGA_2_048V = 2048 +PGA_1_024V = 1024 +PGA_0_512V = 512 +PGA_0_256V = 256 + + +def read_se_adc(channel=1, programmable_gain=PGA_6_144V, samples_per_second=1600): + # sane defaults + config = 0x0003 | 0x0100 + + config |= samples_per_second_map[samples_per_second] + config |= channel_map[channel] + config |= programmable_gain_map[programmable_gain] + + # set "single shot" mode + config |= 0x8000 + + # write single conversion flag + i2c.write_i2c_block_data(address, REG_CFG, [(config >> 8) & 0xFF, config & 0xFF]) + + delay = (1.0 / samples_per_second) + 0.0001 + time.sleep(delay) + + data = i2c.read_i2c_block_data(address, REG_CONV) + + return (((data[0] << 8) | data[1]) >> 4) * programmable_gain / 2048.0 / 1000.0 + + +try: + read_se_adc() +except IOError: + adc_available = False diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/pins.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/pins.py index 53ef1f1607edec3f695ba2b5f81a19904b375fe6..29bd13ca9f1aaf221223c8a17db4f471bd0f580f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/pins.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/explorerhat/pins.py @@ -1,3 +1,141 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:296f40d376436b5d42c07f27a21fe61d6fae220df90ceffaa3984e0ad08764e7 -size 4047 +import threading + + +class StoppableThread(threading.Thread): + """Basic Stoppable Thread Wrapper + + Adds event for stopping the execution + loop and exiting cleanly.""" + def __init__(self): + threading.Thread.__init__(self) + self.stop_event = threading.Event() + self.daemon = True + + def start(self): + if not self.isAlive(): + self.stop_event.clear() + threading.Thread.start(self) + + def stop(self): + if self.isAlive(): + self.stop_event.set() + self.join() + + +class AsyncWorker(StoppableThread): + """Basic thread wrapper class for asynchronously running functions + + Return False from the worker function to abort loop.""" + def __init__(self, todo): + StoppableThread.__init__(self) + self.todo = todo + + def run(self): + while not self.stop_event.is_set(): + # Explicitly check for False being returned + # from worker, IE: Don't allow None + if self.todo() is False: + self.stop_event.set() + break + + +class ObjectCollection: + """Represents a collection of similar objects + + Allows multiple named attributes to be + added to produce a tidy API. Methods can then + be called against one or all of the collections members. + """ + + def __init__(self, **kwargs): + self._all = {} + self._aliases = {} + self._index = [] + for name in kwargs: + self._add_single(name, kwargs[name]) + + def __iter__(self): + for pin in self._index: + yield self._all[pin] + + def __call__(self): + return self + + def __repr__(self): + """Allows collection to return a list of members""" + return str(', '.join(self._all.keys())) + + def __str__(self): + return ', '.join(self._all.keys()) + + def __len__(self): + return len(self._index) + + def __dir__(self): + """Returns all items in the collection""" + return self._all.keys() + dir(self._all[self._all.keys()[0]]) + + def __getattr__(self, name): + """Returns a pin if found by name + + Otherwise runs named function against all pins""" + + # Return the pin if we have it + if name in self._all.keys(): + return self._all[name] + if name in self._aliases.keys(): + return self._aliases[name] + + # Otherwise try to run against all pins + else: + def handler(*args, **kwargs): + return self._do(name, *args, **kwargs) + handler.__name__ = name + return handler + + def __getitem__(self, key): + """Supprot accessing with [n]""" + if isinstance(key, int): + return self._all[self._index[key]] + else: + return self._all[key] + + def _do(self, name, *args, **kwargs): + """Runs a function against all registered pins + + Ask for a specific method to be run against all added pins""" + _results = {} + for node in self._index: + handler = getattr(self._all[node], name) + if hasattr(handler, '__call__'): + _results[node] = handler(*args, **kwargs) + else: + _results[node] = handler + return _results + + def count(self): + return self.all.count() + + def _alias(self, **kwargs): + for name in kwargs: + self._add_alias(name, kwargs[name]) + + def _add(self, **kwargs): + for name in kwargs: + self._add_single(name, kwargs[name]) + + def _add_alias(self, name, target): + self._aliases[name] = self._all[target] + + def _add_single(self, name, obj): + """Add a single item to the collection""" + self._all[name] = obj + self._all[name].name = name + self._index.append(name) + + def each(self, handler): + """Iterate through each item in the collection + and pass them to "handler" function in turn as + the sole argument.""" + for name in self._all.keys(): + handler(self._all[name]) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/goto.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/goto.py index d0b0c4a9783f2ee0a9297510173b68982b8ea195..2604a9961db960967f677a9b1a1c15bb303777e0 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/goto.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/goto.py @@ -1,3 +1,191 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1859841bb7e9c072f35bbb254afc9903d37b70d3864dee762df326453c9817a1 -size 6074 +import dis +import struct +import array +import types +import functools + + +class _Bytecode: + def __init__(self): + code = (lambda: x if x else y).__code__.co_code + opcode, oparg = struct.unpack_from('BB', code, 2) + + # Starting with Python 3.6, the bytecode format has been changed to use + # 16-bit words (8-bit opcode + 8-bit argument) for each instruction, + # as opposed to previously 24-bit (8-bit opcode + 16-bit argument) for + # instructions that expect an argument or just 8-bit for those that don't. + # https://bugs.python.org/issue26647 + if dis.opname[opcode] == 'POP_JUMP_IF_FALSE': + self.argument = struct.Struct('B') + self.have_argument = 0 + # As of Python 3.6, jump targets are still addressed by their byte + # unit. This, however, is matter to change, so that jump targets, + # in the future, will refer to the code unit (address in bytes / 2). + # https://bugs.python.org/issue26647 + self.jump_unit = 8 // oparg + else: + self.argument = struct.Struct('= _BYTECODE.have_argument: + oparg = extended_arg | _BYTECODE.argument.unpack_from(code, pos)[0] + pos += _BYTECODE.argument.size + + if opcode == dis.EXTENDED_ARG: + extended_arg = oparg << _BYTECODE.argument_bits + extended_arg_offset = offset + continue + + extended_arg = 0 + extended_arg_offset = None + yield (dis.opname[opcode], oparg, offset) + + +def _write_instruction(buf, pos, opname, oparg=0): + extended_arg = oparg >> _BYTECODE.argument_bits + if extended_arg != 0: + pos = _write_instruction(buf, pos, 'EXTENDED_ARG', extended_arg) + oparg &= (1 << _BYTECODE.argument_bits) - 1 + + opcode = dis.opmap[opname] + buf[pos] = opcode + pos += 1 + + if opcode >= _BYTECODE.have_argument: + _BYTECODE.argument.pack_into(buf, pos, oparg) + pos += _BYTECODE.argument.size + + return pos + + +def _find_labels_and_gotos(code): + labels = {} + gotos = [] + + block_stack = [] + block_counter = 0 + + opname1 = oparg1 = offset1 = None + opname2 = oparg2 = offset2 = None + opname3 = oparg3 = offset3 = None + + for opname4, oparg4, offset4 in _parse_instructions(code.co_code): + if opname1 in ('LOAD_GLOBAL', 'LOAD_NAME'): + if opname2 == 'LOAD_ATTR' and opname3 == 'POP_TOP': + name = code.co_names[oparg1] + if name == 'label': + labels[oparg2] = (offset1, + offset4, + tuple(block_stack)) + elif name == 'goto': + gotos.append((offset1, + offset4, + oparg2, + tuple(block_stack))) + elif opname1 in ('SETUP_LOOP', + 'SETUP_EXCEPT', 'SETUP_FINALLY', + 'SETUP_WITH', 'SETUP_ASYNC_WITH'): + block_counter += 1 + block_stack.append(block_counter) + elif opname1 == 'POP_BLOCK' and block_stack: + block_stack.pop() + + opname1, oparg1, offset1 = opname2, oparg2, offset2 + opname2, oparg2, offset2 = opname3, oparg3, offset3 + opname3, oparg3, offset3 = opname4, oparg4, offset4 + + return labels, gotos + + +def _inject_nop_sled(buf, pos, end): + while pos < end: + pos = _write_instruction(buf, pos, 'NOP') + + +def _patch_code(code): + labels, gotos = _find_labels_and_gotos(code) + buf = array.array('B', code.co_code) + + for pos, end, _ in labels.values(): + _inject_nop_sled(buf, pos, end) + + for pos, end, label, origin_stack in gotos: + try: + _, target, target_stack = labels[label] + except KeyError: + raise SyntaxError('Unknown label {0!r}'.format(code.co_names[label])) + + target_depth = len(target_stack) + if origin_stack[:target_depth] != target_stack: + raise SyntaxError('Jump into different block') + + failed = False + try: + for i in range(len(origin_stack) - target_depth): + pos = _write_instruction(buf, pos, 'POP_BLOCK') + pos = _write_instruction(buf, pos, 'JUMP_ABSOLUTE', target // _BYTECODE.jump_unit) + except (IndexError, struct.error): + failed = True + + if failed or pos > end: + raise SyntaxError('Jump out of too many nested blocks') + + _inject_nop_sled(buf, pos, end) + + return _make_code(code, buf.tostring()) + + +def with_goto(func_or_code): + if isinstance(func_or_code, types.CodeType): + return _patch_code(func_or_code) + + return functools.update_wrapper( + types.FunctionType( + _patch_code(func_or_code.__code__), + func_or_code.__globals__, + func_or_code.__name__, + func_or_code.__defaults__, + func_or_code.__closure__, + ), + func_or_code + ) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grove_128_64_oled.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grove_128_64_oled.py index 34bd27764993259ea6739f58a3a87e6cd034e17b..84bbc5c96b1f4278726a0fe203ea7aaf957f781b 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grove_128_64_oled.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grove_128_64_oled.py @@ -1,3 +1,347 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0290712b65b94c61f21172fb361dd91a69bf5a626b8c0602e4126de0d4f1738f -size 10989 +#!/usr/bin/env python +# +# GrovePi library for the basic functions of Grove 128x64 OLED (http://www.seeedstudio.com/depot/Grove-OLED-Display-112-p-781.html) +# v1.0 +# +# The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi +# +# Have a question about this example? Ask on the forums here: http://forum.dexterindustries.com/c/grovepi +# +# LICENSE: +# These files have been made available online through a [Creative Commons Attribution-ShareAlike 3.0](http://creativecommons.org/licenses/by-sa/3.0/) license. +# +# Karan Nayan +# Initial Date: 12 Aug 2015 +# Last Updated: 12 Aug 2015 +# +# Based on the Arduino library "SeeedOLED.cpp" +# Seeed Technology Inc. +# written by: Visweswara R +# +''' +## License + +The MIT License (MIT) + +GrovePi for the Raspberry Pi: an open source platform for connecting Grove Sensors to the Raspberry Pi. +Copyright (C) 2017 Dexter Industries + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +''' + +import smbus +import time +import math +import RPi.GPIO as GPIO +import struct + +rev = GPIO.RPI_REVISION +if rev == 2 or rev == 3: + bus = smbus.SMBus(1) +else: + bus = smbus.SMBus(0) + +address=0x3c +addressingMode= None +SeeedOLED_Max_X =127 #128 Pixels +SeeedOLED_Max_Y =63 #64 Pixels + +PAGE_MODE =1 +HORIZONTAL_MODE =2 + +SeeedOLED_Address =0x3c +SeeedOLED_Command_Mode =0x80 +SeeedOLED_Data_Mode =0x40 +SeeedOLED_Display_Off_Cmd =0xAE +SeeedOLED_Display_On_Cmd =0xAF +SeeedOLED_Normal_Display_Cmd =0xA6 +SeeedOLED_Inverse_Display_Cmd =0xA7 +SeeedOLED_Activate_Scroll_Cmd =0x2F +SeeedOLED_Dectivate_Scroll_Cmd =0x2E +SeeedOLED_Set_Brightness_Cmd =0x81 + +Scroll_Left =0x00 +Scroll_Right =0x01 + +Scroll_2Frames =0x7 +Scroll_3Frames =0x4 +Scroll_4Frames =0x5 +Scroll_5Frames =0x0 +Scroll_25Frames =0x6 +Scroll_64Frames =0x1 +Scroll_128Frames =0x2 +Scroll_256Frames =0x3 + +BasicFont = [[0 for x in range(8)] for x in range(10)] +BasicFont=[[0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00], +[0x00,0x00,0x5F,0x00,0x00,0x00,0x00,0x00], +[0x00,0x00,0x07,0x00,0x07,0x00,0x00,0x00], +[0x00,0x14,0x7F,0x14,0x7F,0x14,0x00,0x00], +[0x00,0x24,0x2A,0x7F,0x2A,0x12,0x00,0x00], +[0x00,0x23,0x13,0x08,0x64,0x62,0x00,0x00], +[0x00,0x36,0x49,0x55,0x22,0x50,0x00,0x00], +[0x00,0x00,0x05,0x03,0x00,0x00,0x00,0x00], +[0x00,0x1C,0x22,0x41,0x00,0x00,0x00,0x00], +[0x00,0x41,0x22,0x1C,0x00,0x00,0x00,0x00], +[0x00,0x08,0x2A,0x1C,0x2A,0x08,0x00,0x00], +[0x00,0x08,0x08,0x3E,0x08,0x08,0x00,0x00], +[0x00,0xA0,0x60,0x00,0x00,0x00,0x00,0x00], +[0x00,0x08,0x08,0x08,0x08,0x08,0x00,0x00], +[0x00,0x60,0x60,0x00,0x00,0x00,0x00,0x00], +[0x00,0x20,0x10,0x08,0x04,0x02,0x00,0x00], +[0x00,0x3E,0x51,0x49,0x45,0x3E,0x00,0x00], +[0x00,0x00,0x42,0x7F,0x40,0x00,0x00,0x00], +[0x00,0x62,0x51,0x49,0x49,0x46,0x00,0x00], +[0x00,0x22,0x41,0x49,0x49,0x36,0x00,0x00], +[0x00,0x18,0x14,0x12,0x7F,0x10,0x00,0x00], +[0x00,0x27,0x45,0x45,0x45,0x39,0x00,0x00], +[0x00,0x3C,0x4A,0x49,0x49,0x30,0x00,0x00], +[0x00,0x01,0x71,0x09,0x05,0x03,0x00,0x00], +[0x00,0x36,0x49,0x49,0x49,0x36,0x00,0x00], +[0x00,0x06,0x49,0x49,0x29,0x1E,0x00,0x00], +[0x00,0x00,0x36,0x36,0x00,0x00,0x00,0x00], +[0x00,0x00,0xAC,0x6C,0x00,0x00,0x00,0x00], +[0x00,0x08,0x14,0x22,0x41,0x00,0x00,0x00], +[0x00,0x14,0x14,0x14,0x14,0x14,0x00,0x00], +[0x00,0x41,0x22,0x14,0x08,0x00,0x00,0x00], +[0x00,0x02,0x01,0x51,0x09,0x06,0x00,0x00], +[0x00,0x32,0x49,0x79,0x41,0x3E,0x00,0x00], +[0x00,0x7E,0x09,0x09,0x09,0x7E,0x00,0x00], +[0x00,0x7F,0x49,0x49,0x49,0x36,0x00,0x00], +[0x00,0x3E,0x41,0x41,0x41,0x22,0x00,0x00], +[0x00,0x7F,0x41,0x41,0x22,0x1C,0x00,0x00], +[0x00,0x7F,0x49,0x49,0x49,0x41,0x00,0x00], +[0x00,0x7F,0x09,0x09,0x09,0x01,0x00,0x00], +[0x00,0x3E,0x41,0x41,0x51,0x72,0x00,0x00], +[0x00,0x7F,0x08,0x08,0x08,0x7F,0x00,0x00], +[0x00,0x41,0x7F,0x41,0x00,0x00,0x00,0x00], +[0x00,0x20,0x40,0x41,0x3F,0x01,0x00,0x00], +[0x00,0x7F,0x08,0x14,0x22,0x41,0x00,0x00], +[0x00,0x7F,0x40,0x40,0x40,0x40,0x00,0x00], +[0x00,0x7F,0x02,0x0C,0x02,0x7F,0x00,0x00], +[0x00,0x7F,0x04,0x08,0x10,0x7F,0x00,0x00], +[0x00,0x3E,0x41,0x41,0x41,0x3E,0x00,0x00], +[0x00,0x7F,0x09,0x09,0x09,0x06,0x00,0x00], +[0x00,0x3E,0x41,0x51,0x21,0x5E,0x00,0x00], +[0x00,0x7F,0x09,0x19,0x29,0x46,0x00,0x00], +[0x00,0x26,0x49,0x49,0x49,0x32,0x00,0x00], +[0x00,0x01,0x01,0x7F,0x01,0x01,0x00,0x00], +[0x00,0x3F,0x40,0x40,0x40,0x3F,0x00,0x00], +[0x00,0x1F,0x20,0x40,0x20,0x1F,0x00,0x00], +[0x00,0x3F,0x40,0x38,0x40,0x3F,0x00,0x00], +[0x00,0x63,0x14,0x08,0x14,0x63,0x00,0x00], +[0x00,0x03,0x04,0x78,0x04,0x03,0x00,0x00], +[0x00,0x61,0x51,0x49,0x45,0x43,0x00,0x00], +[0x00,0x7F,0x41,0x41,0x00,0x00,0x00,0x00], +[0x00,0x02,0x04,0x08,0x10,0x20,0x00,0x00], +[0x00,0x41,0x41,0x7F,0x00,0x00,0x00,0x00], +[0x00,0x04,0x02,0x01,0x02,0x04,0x00,0x00], +[0x00,0x80,0x80,0x80,0x80,0x80,0x00,0x00], +[0x00,0x01,0x02,0x04,0x00,0x00,0x00,0x00], +[0x00,0x20,0x54,0x54,0x54,0x78,0x00,0x00], +[0x00,0x7F,0x48,0x44,0x44,0x38,0x00,0x00], +[0x00,0x38,0x44,0x44,0x28,0x00,0x00,0x00], +[0x00,0x38,0x44,0x44,0x48,0x7F,0x00,0x00], +[0x00,0x38,0x54,0x54,0x54,0x18,0x00,0x00], +[0x00,0x08,0x7E,0x09,0x02,0x00,0x00,0x00], +[0x00,0x18,0xA4,0xA4,0xA4,0x7C,0x00,0x00], +[0x00,0x7F,0x08,0x04,0x04,0x78,0x00,0x00], +[0x00,0x00,0x7D,0x00,0x00,0x00,0x00,0x00], +[0x00,0x80,0x84,0x7D,0x00,0x00,0x00,0x00], +[0x00,0x7F,0x10,0x28,0x44,0x00,0x00,0x00], +[0x00,0x41,0x7F,0x40,0x00,0x00,0x00,0x00], +[0x00,0x7C,0x04,0x18,0x04,0x78,0x00,0x00], +[0x00,0x7C,0x08,0x04,0x7C,0x00,0x00,0x00], +[0x00,0x38,0x44,0x44,0x38,0x00,0x00,0x00], +[0x00,0xFC,0x24,0x24,0x18,0x00,0x00,0x00], +[0x00,0x18,0x24,0x24,0xFC,0x00,0x00,0x00], +[0x00,0x00,0x7C,0x08,0x04,0x00,0x00,0x00], +[0x00,0x48,0x54,0x54,0x24,0x00,0x00,0x00], +[0x00,0x04,0x7F,0x44,0x00,0x00,0x00,0x00], +[0x00,0x3C,0x40,0x40,0x7C,0x00,0x00,0x00], +[0x00,0x1C,0x20,0x40,0x20,0x1C,0x00,0x00], +[0x00,0x3C,0x40,0x30,0x40,0x3C,0x00,0x00], +[0x00,0x44,0x28,0x10,0x28,0x44,0x00,0x00], +[0x00,0x1C,0xA0,0xA0,0x7C,0x00,0x00,0x00], +[0x00,0x44,0x64,0x54,0x4C,0x44,0x00,0x00], +[0x00,0x08,0x36,0x41,0x00,0x00,0x00,0x00], +[0x00,0x00,0x7F,0x00,0x00,0x00,0x00,0x00], +[0x00,0x41,0x36,0x08,0x00,0x00,0x00,0x00], +[0x00,0x02,0x01,0x01,0x02,0x01,0x00,0x00], +[0x00,0x02,0x05,0x05,0x02,0x00,0x00,0x00]] + +def sendCommand(byte): + try: + block=[] + block.append(byte) + return bus.write_i2c_block_data(address,SeeedOLED_Command_Mode,block) + except IOError: + print("IOError") + return -1 + +def sendData(byte): + try: + block=[] + block.append(byte) + return bus.write_i2c_block_data(address,SeeedOLED_Data_Mode,block) + except IOError: + print("IOError") + return -1 + +def multi_comm(commands): + for c in commands: + sendCommand(c) + +# Init function of the OLED +def init(): + sendCommand(SeeedOLED_Display_Off_Cmd) #display off + time.sleep(.005) + sendCommand(SeeedOLED_Display_On_Cmd) #display on + time.sleep(.005) + sendCommand(SeeedOLED_Normal_Display_Cmd) #Set Normal Display (default) + +def setBrightness(Brightness): + sendCommand(SeeedOLED_Set_Brightness_Cmd) + sendCommand(Brightness) + +def setHorizontalMode(): + global addressingMode + addressingMode = HORIZONTAL_MODE + sendCommand(0x20) #set addressing mode + sendCommand(0x00) #set horizontal addressing mode + +def setPageMode(): + global addressingMode + addressingMode = PAGE_MODE + sendCommand(0x20) #set addressing mode + sendCommand(0x02) #set page addressing mode + +def setTextXY(Column,Row): + sendCommand(0xB0 + Row) #set page address + sendCommand(0x00 + (8*Column & 0x0F)) #set column lower address + sendCommand(0x10 + ((8*Column>>4)&0x0F)) #set column higher address + +def clearDisplay(): + sendCommand(SeeedOLED_Display_Off_Cmd) #display off + for j in range(8): + setTextXY(0,j) + for i in range(16): #clear all columns + putChar(' ') + sendCommand(SeeedOLED_Display_On_Cmd) #display on + setTextXY(0,0) + +def putChar(C): + C_add=ord(C) + if C_add<32 or C_add>127: # Ignore non-printable ASCII characters + C=' ' + C_add=ord(C) + + for i in range(8): + data=(BasicFont[C_add-32][i]) + sendData(data) + + # for i in range(0,8,2): + # for j in range(0,8): + # c=0x00 + # bit1=((BasicFont[C_add-32][i])>>j)&0x01 + # bit2=((BasicFont[C_add-32][i+1])>>j)&0x01 + # if bit1: + # c=c|grayH + # else: + # c=c|0x00 + # if bit2: + # c=c|grayL + # else: + # c=c|0x00 + # sendData(c) + +def putString(s): + for i in range(len(s)): + putChar(s[i]) + +def putNumber(long_num): + char_buffer[10]=None + i = 0 + f = 0 + + if (long_num < 0) : + f=1 + putChar('-') + long_num = -long_num + + elif (long_num == 0) : + f=1 + putChar('0') + return f + + while (long_num > 0): + char_buffer[i] = long_num % 10 + long_num /= 10 + i+=1 + + f=f+i + while(i>0): + putChar('0'+ char_buffer[i - 1]) + i-=1 + return f + + +def setHorizontalScrollProperties(direction,startPage, endPage, scrollSpeed): + + ''' + Use the following defines for 'direction' : + Scroll_Left + Scroll_Right + Use the following defines for 'scrollSpeed' : + Scroll_2Frames + Scroll_3Frames + Scroll_4Frames + Scroll_5Frames + Scroll_25Frames + Scroll_64Frames + Scroll_128Frames + Scroll_256Frames + ''' + + if(Scroll_Right == direction): + #Scroll Right + sendCommand(0x26) + else: + #Scroll Left + sendCommand(0x27) + + sendCommand(0x00) + sendCommand(startPage) + sendCommand(scrollSpeed) + sendCommand(endPage) + sendCommand(0x00) + sendCommand(0xFF) + + +def activateScroll(): + sendCommand(SeeedOLED_Activate_Scroll_Cmd) + +def deactivateScroll(): + sendCommand(SeeedOLED_Dectivate_Scroll_Cmd) + +def setNormalDisplay(): + sendCommand(SeeedOLED_Normal_Display_Cmd) + +def setInverseDisplay(): + sendCommand(SeeedOLED_Inverse_Display_Cmd) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grove_rgb_lcd.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grove_rgb_lcd.py index 9864af646b47864df3853c7ae7d984427c241e4d..57a61ad3e1505a1d6e1a5eb7be5aa325f5d4ddea 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grove_rgb_lcd.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grove_rgb_lcd.py @@ -1,3 +1,139 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:756a8af00fa49b27252aedcd6e3d40de020d2e02db46591f018c66a7305307b6 -size 4666 +#!/usr/bin/env python +# +# GrovePi Example for using the Grove - LCD RGB Backlight (http://www.seeedstudio.com/wiki/Grove_-_LCD_RGB_Backlight) +# +# The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi +# +# Have a question about this example? Ask on the forums here: http://forum.dexterindustries.com/c/grovepi +# +# History +# ------------------------------------------------ +# Author Date Comments +# Initial Authoring +# Karan 7 Jan 16 Library updated to add a function to update the text without erasing the screen +''' +## License + +The MIT License (MIT) + +GrovePi for the Raspberry Pi: an open source platform for connecting Grove Sensors to the Raspberry Pi. +Copyright (C) 2017 Dexter Industries + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +''' +# +# NOTE: +# Just supports setting the backlight colour, and +# putting a single string of text onto the display +# Doesn't support anything clever, cursors or anything + +import time,sys + +if sys.platform == 'uwp': + import winrt_smbus as smbus + bus = smbus.SMBus(1) +else: + import smbus + import RPi.GPIO as GPIO + rev = GPIO.RPI_REVISION + if rev == 2 or rev == 3: + bus = smbus.SMBus(1) + else: + bus = smbus.SMBus(0) + +# this device has two I2C addresses +DISPLAY_RGB_ADDR = 0x62 +DISPLAY_TEXT_ADDR = 0x3e + +# set backlight to (R,G,B) (values from 0..255 for each) +def setRGB(r,g,b): + bus.write_byte_data(DISPLAY_RGB_ADDR,0,0) + bus.write_byte_data(DISPLAY_RGB_ADDR,1,0) + bus.write_byte_data(DISPLAY_RGB_ADDR,0x08,0xaa) + bus.write_byte_data(DISPLAY_RGB_ADDR,4,r) + bus.write_byte_data(DISPLAY_RGB_ADDR,3,g) + bus.write_byte_data(DISPLAY_RGB_ADDR,2,b) + +# send command to display (no need for external use) +def textCommand(cmd): + bus.write_byte_data(DISPLAY_TEXT_ADDR,0x80,cmd) + +# set display text \n for second line(or auto wrap) +def setText(text): + textCommand(0x01) # clear display + time.sleep(.05) + textCommand(0x08 | 0x04) # display on, no cursor + textCommand(0x28) # 2 lines + time.sleep(.05) + count = 0 + row = 0 + for c in text: + if c == '\n' or count == 16: + count = 0 + row += 1 + if row == 2: + break + textCommand(0xc0) + if c == '\n': + continue + count += 1 + bus.write_byte_data(DISPLAY_TEXT_ADDR,0x40,ord(c)) + +#Update the display without erasing the display +def setText_norefresh(text): + textCommand(0x02) # return home + time.sleep(.05) + textCommand(0x08 | 0x04) # display on, no cursor + textCommand(0x28) # 2 lines + time.sleep(.05) + count = 0 + row = 0 + while len(text) < 32: #clears the rest of the screen + text += ' ' + for c in text: + if c == '\n' or count == 16: + count = 0 + row += 1 + if row == 2: + break + textCommand(0xc0) + if c == '\n': + continue + count += 1 + bus.write_byte_data(DISPLAY_TEXT_ADDR,0x40,ord(c)) + +# Create a custom character (from array of row patterns) +def create_char(location, pattern): + location &= 0x07 # Make sure location is 0-7 + textCommand(0x40 | (location << 3)) + bus.write_i2c_block_data(DISPLAY_TEXT_ADDR, 0x40, pattern) + +# example code +if __name__=="__main__": + setText("Hello world\nThis is an LCD test") + setRGB(0,128,64) + time.sleep(2) + for c in range(0,255): + setText_norefresh("Going to sleep in {}...".format(str(c))) + setRGB(c,255-c,0) + time.sleep(0.1) + setRGB(0,255,0) + setText("Bye bye, this should wrap onto next line") + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grovepi.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grovepi.py index ff661e8132bac61fce60828204132deb5f0202a5..0999da596b10552ee610b84f074118b8468637f8 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grovepi.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/grovepi.py @@ -1,3 +1,679 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a01efc12058ef6e6f8fdc8267825637c21fa21d9b5a60804e46930146c801bf5 -size 20932 +#!/usr/bin/env python +# +# GrovePi Python library +# v1.2.2 +# +# This file provides the basic functions for using the GrovePi +# +# The GrovePi connects the Raspberry Pi and Grove sensors. You can learn more about GrovePi here: http://www.dexterindustries.com/GrovePi +# +# Have a question about this example? Ask on the forums here: http://forum.dexterindustries.com/c/grovepi +# +''' +## License + +The MIT License (MIT) + +GrovePi for the Raspberry Pi: an open source platform for connecting Grove Sensors to the Raspberry Pi. +Copyright (C) 2017 Dexter Industries + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +''' +# Initial Date: 13 Feb 2014 +# Last Updated: 11 Nov 2016 +# http://www.dexterindustries.com/ +# Author Date Comments +# Karan 13 Feb 2014 Initial Authoring +# 11 Nov 2016 I2C retries added for faster IO +# DHT function updated to look for nan's + +import sys +import time +import math +import struct +import numpy + +import di_i2c + +def set_bus(bus): + global i2c + i2c = di_i2c.DI_I2C(bus = bus, address = address) + +address = 0x04 +max_recv_size = 10 +set_bus("RPI_1") + +if sys.version_info<(3,0): + p_version = 2 +else: + p_version = 3 + +# Earliest version of the firmware to work with +works_with_firmware = [ + "1.3.0" +] + +# interrupt operations +COUNT_CHANGES = 0 +COUNT_LOW_DURATION = 1 + +# interrupt trigger mode +CHANGE = 1 +FALLING = 2 +RISING = 3 + +# This allows us to be more specific about which commands contain unused bytes +unused = 0 +retries = 10 +additional_waiting = 0 + +# Get firmware version +version_cmd = [8] +# No data is available from the GrovePi +data_not_available_cmd = [23] + +# Command Format +# digitalRead() command format header +dRead_cmd = [1] +# digitalWrite() command format header +dWrite_cmd = [2] +# analogRead() command format header +aRead_cmd = [3] +# analogWrite() command format header +aWrite_cmd = [4] +# pinMode() command format header +pMode_cmd = [5] +# Ultrasonic read +uRead_cmd = [7] +# Accelerometer (+/- 1.5g) read +acc_xyz_cmd = [20] +# RTC get time +rtc_getTime_cmd = [30] +# DHT Pro sensor temperature +dht_temp_cmd = [40] + +# Grove LED Bar commands +# Initialise +ledBarInit_cmd = [50] +# Set orientation +ledBarOrient_cmd = [51] +# Set level +ledBarLevel_cmd = [52] +# Set single LED +ledBarSetOne_cmd = [53] +# Toggle single LED +ledBarToggleOne_cmd = [54] +# Set all LEDs +ledBarSet_cmd = [55] +# Get current state +ledBarGet_cmd = [56] + +# Grove 4 Digit Display commands +# Initialise +fourDigitInit_cmd = [70] +# Set brightness, not visible until next cmd +fourDigitBrightness_cmd = [71] +# Set numeric value without leading zeros +fourDigitValue_cmd = [72] +# Set numeric value with leading zeros +fourDigitValueZeros_cmd = [73] +# Set individual digit +fourDigitIndividualDigit_cmd = [74] +# Set individual leds of a segment +fourDigitIndividualLeds_cmd = [75] +# Set left and right values with colon +fourDigitScore_cmd = [76] +# Analog read for n seconds +fourDigitAnalogRead_cmd = [77] +# Entire display on +fourDigitAllOn_cmd = [78] +# Entire display off +fourDigitAllOff_cmd = [79] + +# Grove Chainable RGB LED commands +# Store color for later use +storeColor_cmd = [90] +# Initialise +chainableRgbLedInit_cmd = [91] +# Initialise and test with a simple color +chainableRgbLedTest_cmd = [92] +# Set one or more leds to the stored color by pattern +chainableRgbLedSetPattern_cmd = [93] +# set one or more leds to the stored color by modulo +chainableRgbLedSetModulo_cmd = [94] +# sets leds similar to a bar graph, reversible +chainableRgbLedSetLevel_cmd = [95] + +# Read the button from IR sensor +ir_read_cmd = [21] +# Set pin for the IR receiver +ir_recv_pin_cmd = [22] +# Check if there's data coming from the IR receiver +ir_read_isdata = [24] + +# Interrupt-based devices +isr_set_cmd = [6] +isr_unset_cmd = [9] +isr_read_cmd = [10] +isr_clear_cmd = [11] +isr_active_cmd = [12] + +# Grove Encoders +encoder_read_cmd = [13] +encoder_en_cmd = [14] +encoder_dis_cmd = [15] + +# Dust, Encoder & Flow Sensor commands +# dust_sensor_read_cmd=[10] +# dust_sensor_en_cmd=[14] +# dust_sensor_dis_cmd=[15] +# dust_sensor_int_cmd=[9] +# dust_sensor_read_int_cmd=[6] +# flow_read_cmd=[12] +# flow_disable_cmd=[13] +# flow_en_cmd=[18] + + +# Function declarations of the various functions used for encoding and sending +# data from RPi to Arduino + +# Write I2C block to the GrovePi +def write_i2c_block(block, custom_timing = None): + counter = 0 + reg = block[0] + data = block[1:] + while counter < 3: + try: + i2c.write_reg_list(reg, data) + time.sleep(0.002 + additional_waiting) + return + except: + counter += 1 + time.sleep(0.003) + continue + +# Read I2C block from the GrovePi +def read_i2c_block(no_bytes = max_recv_size): + data = data_not_available_cmd + counter = 0 + while data[0] in [data_not_available_cmd[0], 255] and counter < 3: + try: + data = i2c.read_list(reg = None, len = no_bytes) + time.sleep(0.002 + additional_waiting) + if counter > 0: + counter = 0 + except: + counter += 1 + time.sleep(0.003) + + return data + +def read_identified_i2c_block(read_command_id, no_bytes): + data = [-1] + while data[0] != read_command_id[0]: + data = read_i2c_block(no_bytes + 1) + + return data[1:] + +# Arduino Digital Read +def digitalRead(pin): + write_i2c_block(dRead_cmd + [pin, unused, unused]) + data = read_identified_i2c_block( dRead_cmd, no_bytes = 1)[0] + return data + +# Arduino Digital Write +def digitalWrite(pin, value): + write_i2c_block(dWrite_cmd + [pin, value, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Read analog value from Pin +def analogRead(pin): + write_i2c_block(aRead_cmd + [pin, unused, unused]) + number = read_identified_i2c_block(aRead_cmd, no_bytes = 2) + return number[0] * 256 + number[1] + + +# Write PWM +def analogWrite(pin, value): + write_i2c_block(aWrite_cmd + [pin, value, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Setting Up Pin mode on Arduino +def pinMode(pin, mode): + if mode == "OUTPUT": + write_i2c_block(pMode_cmd + [pin, 1, unused]) + elif mode == "INPUT": + write_i2c_block(pMode_cmd + [pin, 0, unused]) + read_i2c_block(no_bytes = 1) + return 1 + + +# Read temp in Celsius from Grove Temperature Sensor +def temp(pin, model = '1.0'): + # each of the sensor revisions use different thermistors, each with their own B value constant + if model == '1.2': + bValue = 4250 # sensor v1.2 uses thermistor ??? (assuming NCP18WF104F03RC until SeeedStudio clarifies) + elif model == '1.1': + bValue = 4250 # sensor v1.1 uses thermistor NCP18WF104F03RC + else: + bValue = 3975 # sensor v1.0 uses thermistor TTC3A103*39H + a = analogRead(pin) + resistance = (float)(1023 - a) * 10000 / a + t = (float)(1 / (math.log(resistance / 10000) / bValue + 1 / 298.15) - 273.15) + return t + + +# Read value from Grove Ultrasonic +def ultrasonicRead(pin): + write_i2c_block(uRead_cmd + [pin, unused, unused]) + number = read_identified_i2c_block(uRead_cmd, no_bytes = 2) + return (number[0] * 256 + number[1]) + + +# Read the firmware version +def version(): + write_i2c_block(version_cmd + [unused, unused, unused]) + number = read_identified_i2c_block(version_cmd, no_bytes = 3) + return "%s.%s.%s" % (number[0], number[1], number[2]) + + +# Read Grove Accelerometer (+/- 1.5g) XYZ value +# Need to investigate why this reports what was read with the previous command +# Doesn't look to be implemented on the GrovePi +def acc_xyz(): + write_i2c_block(acc_xyz_cmd + [unused, unused, unused]) + number = read_identified_i2c_block(acc_xyz_cmd, no_bytes = 3) + if number[1] > 32: + number[1] = - (number[1] - 224) + if number[2] > 32: + number[2] = - (number[2] - 224) + if number[3] > 32: + number[3] = - (number[3] - 224) + return (number[0], number[1], number[2]) + + +# Read from Grove RTC +# Doesn't look to be implemented on the GrovePi +def rtc_getTime(): + write_i2c_block(rtc_getTime_cmd + [unused, unused, unused]) + number = read_i2c_block() + return number + +# Read and return temperature and humidity from Grove DHT Pro +def dht(pin, module_type): + write_i2c_block(dht_temp_cmd + [pin, module_type, unused]) + number = read_identified_i2c_block(dht_temp_cmd, no_bytes = 8) + + if p_version==2: + h='' + for element in (number[0:4]): + h+=chr(element) + + t_val=struct.unpack('f', h) + t = round(t_val[0], 2) + + h = '' + for element in (number[4:8]): + h+=chr(element) + + hum_val=struct.unpack('f',h) + hum = round(hum_val[0], 2) + else: + t_val=bytearray(number[0:4]) + h_val=bytearray(number[4:8]) + t=round(struct.unpack('f',t_val)[0],2) + hum=round(struct.unpack('f',h_val)[0],2) + if t > -100.0 and t <150.0 and hum >= 0.0 and hum<=100.0: + return [t, hum] + else: + return [float('nan'),float('nan')] + +# Grove - Infrared Receiver - get the commands received from the Grove IR sensor +def ir_read_signal(): + write_i2c_block(ir_read_cmd + [unused, unused, unused]) + data_back = read_identified_i2c_block(ir_read_cmd, no_bytes = 7) + + return (data_back[0], + data_back[1] + data_back[2] * 256, + data_back[3] + data_back[4] * 256 + data_back[5] * (256 ** 2) + data_back[6] * (256 ** 3)) + +# Grove - Infrared Receiver - set the pin on which the Grove IR sensor is connected +def ir_recv_pin(pin): + write_i2c_block(ir_recv_pin_cmd + [pin, unused, unused]) + read_i2c_block(no_bytes = 1) + +# Grove - Infrared Receiver - check if there's any data that hasn't been read so far +def ir_is_data(): + write_i2c_block(ir_read_isdata + 3 * [unused]) + number = read_identified_i2c_block(ir_read_isdata, no_bytes = 1) + + return number[0] != 0 + +# after a list of numerical values is provided +# the function returns a list with the outlier(or extreme) values removed +# make the std_factor_threshold bigger so that filtering becomes less strict +# and make the std_factor_threshold smaller to get the opposite +def statisticalNoiseReduction(values, std_factor_threshold = 2): + if len(values) == 0: + return [] + + mean = numpy.mean(values) + standard_deviation = numpy.std(values) + + if standard_deviation == 0: + return values + + filtered_values = [element for element in values if element > mean - std_factor_threshold * standard_deviation] + filtered_values = [element for element in filtered_values if element < mean + std_factor_threshold * standard_deviation] + + return filtered_values + + +# Grove LED Bar - initialise +# orientation: (0 = red to green, 1 = green to red) +def ledBar_init(pin, orientation): + write_i2c_block(ledBarInit_cmd + [pin, orientation, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove LED Bar - set orientation +# orientation: (0 = red to green, 1 = green to red) +def ledBar_orientation(pin, orientation): + write_i2c_block(ledBarOrient_cmd + [pin, orientation, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove LED Bar - set level +# level: (0-10) +def ledBar_setLevel(pin, level): + write_i2c_block(ledBarLevel_cmd + [pin, level, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove LED Bar - set single led +# led: which led (1-10) +# state: off or on (0-1) +def ledBar_setLed(pin, led, state): + write_i2c_block(ledBarSetOne_cmd + [pin, led, state]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove LED Bar - toggle single led +# led: which led (1-10) +def ledBar_toggleLed(pin, led): + write_i2c_block(ledBarToggleOne_cmd + [pin, led, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove LED Bar - set all leds +# state: (0-1023) or (0x00-0x3FF) or (0b0000000000-0b1111111111) or (int('0000000000',2)-int('1111111111',2)) +def ledBar_setBits(pin, state): + byte1 = state & 255 + byte2 = state >> 8 + write_i2c_block(ledBarSet_cmd + [pin, byte1, byte2]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove LED Bar - get current state +# state: (0-1023) a bit for each of the 10 LEDs +def ledBar_getBits(pin): + write_i2c_block(ledBarGet_cmd + [pin, unused, unused]) + block = read_identified_i2c_block(ledBarGet_cmd, no_bytes = 2) + return block[0] ^ (block[1] << 8) + + +# Grove 4 Digit Display - initialise +def fourDigit_init(pin): + write_i2c_block(fourDigitInit_cmd + [pin, unused, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove 4 Digit Display - set numeric value with or without leading zeros +# value: (0-65535) or (0000-FFFF) +def fourDigit_number(pin, value, leading_zero): + # split the value into two bytes so we can render 0000-FFFF on the display + byte1 = value & 255 + byte2 = value >> 8 + # separate commands to overcome current 4 bytes per command limitation + if (leading_zero): + write_i2c_block(fourDigitValue_cmd + [pin, byte1, byte2]) + else: + write_i2c_block(fourDigitValueZeros_cmd + [pin, byte1, byte2]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove 4 Digit Display - set brightness +# brightness: (0-7) +def fourDigit_brightness(pin, brightness): + # not actually visible until next command is executed + write_i2c_block(fourDigitBrightness_cmd + [pin, brightness, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove 4 Digit Display - set individual segment (0-9,A-F) +# segment: (0-3) +# value: (0-15) or (0-F) +def fourDigit_digit(pin, segment, value): + write_i2c_block(fourDigitIndividualDigit_cmd + [pin, segment, value]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove 4 Digit Display - set 7 individual leds of a segment +# segment: (0-3) +# leds: (0-255) or (0-0xFF) one bit per led, segment 2 is special, 8th bit is the colon +def fourDigit_segment(pin, segment, leds): + write_i2c_block(fourDigitIndividualLeds_cmd + [pin, segment, leds]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove 4 Digit Display - set left and right values (0-99), with leading zeros and a colon +# left: (0-255) or (0-FF) +# right: (0-255) or (0-FF) +# colon will be lit +def fourDigit_score(pin, left, right): + write_i2c_block(fourDigitScore_cmd + [pin, left, right]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove 4 Digit Display - display analogRead value for n seconds, 4 samples per second +# analog: analog pin to read +# duration: analog read for this many seconds +def fourDigit_monitor(pin, analog, duration): + write_i2c_block(fourDigitAnalogRead_cmd + [pin, analog, duration]) + read_i2c_block(no_bytes = 1) + time.sleep(duration) + return 1 + +# Grove 4 Digit Display - turn entire display on (88:88) +def fourDigit_on(pin): + write_i2c_block(fourDigitAllOn_cmd + [pin, unused, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove 4 Digit Display - turn entire display off +def fourDigit_off(pin): + write_i2c_block(fourDigitAllOff_cmd + [pin, unused, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove Chainable RGB LED - store a color for later use +# red: 0-255 +# green: 0-255 +# blue: 0-255 +def storeColor(red, green, blue): + write_i2c_block(storeColor_cmd + [red, green, blue]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove Chainable RGB LED - initialise +# numLeds: how many leds do you have in the chain +def chainableRgbLed_init(pin, numLeds): + write_i2c_block(chainableRgbLedInit_cmd + [pin, numLeds, unused]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove Chainable RGB LED - initialise and test with a simple color +# numLeds: how many leds do you have in the chain +# testColor: (0-7) 3 bits in total - a bit for red, green and blue, eg. 0x04 == 0b100 (0bRGB) == rgb(255, 0, 0) == #FF0000 == red +# ie. 0 black, 1 blue, 2 green, 3 cyan, 4 red, 5 magenta, 6 yellow, 7 white +def chainableRgbLed_test(pin, numLeds, testColor): + write_i2c_block(chainableRgbLedTest_cmd + [pin, numLeds, testColor]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove Chainable RGB LED - set one or more leds to the stored color by pattern +# pattern: (0-3) 0 = this led only, 1 all leds except this led, 2 this led and all leds inwards, 3 this led and all leds outwards +# whichLed: index of led you wish to set counting outwards from the GrovePi, 0 = led closest to the GrovePi +def chainableRgbLed_pattern(pin, pattern, whichLed): + write_i2c_block(chainableRgbLedSetPattern_cmd + [pin, pattern, whichLed]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove Chainable RGB LED - set one or more leds to the stored color by modulo +# offset: index of led you wish to start at, 0 = led closest to the GrovePi, counting outwards +# divisor: when 1 (default) sets stored color on all leds >= offset, when 2 sets every 2nd led >= offset and so on +def chainableRgbLed_modulo(pin, offset, divisor): + write_i2c_block(chainableRgbLedSetModulo_cmd + [pin, offset, divisor]) + read_i2c_block(no_bytes = 1) + return 1 + +# Grove Chainable RGB LED - sets leds similar to a bar graph, reversible +# level: (0-10) the number of leds you wish to set to the stored color +# reversible (0-1) when 0 counting outwards from GrovePi, 0 = led closest to the GrovePi, otherwise counting inwards +def chainableRgbLed_setLevel(pin, level, reverse): + write_i2c_block(chainableRgbLedSetLevel_cmd + [pin, level, reverse]) + read_i2c_block(no_bytes = 1) + return 1 + +def set_pin_interrupt(pin, ftype, interrupt_mode, period): + ''' + Attach an interrupt to a pin. + + pin - D2-D8 pins + ftype - 0 for COUNT_CHANGES, 1 for COUNT_LOW_DURATION + interrupt_mode - 1 for CHANGE, 2 for FALLING, 3 for RISING + period - as measured in ms (max 65535 ms) + ''' + period_high = period >> 8 + period_low = period & 0xff + combined_params = (pin & 0x0f) + ((ftype & 0x03) << 4) + ((interrupt_mode & 0x03) << 6) + write_i2c_block(isr_set_cmd + [combined_params, period_high, period_low]) + read_i2c_block(no_bytes = 1) + +def unset_pin_interrupt(pin): + ''' + Detach an interrupt from a pin. + + pin - D2-D8 pins + ''' + write_i2c_block(isr_unset_cmd + [pin, unused, unused]) + read_i2c_block(no_bytes = 1) + +def unset_all_interrupts(): + ''' + Detach all attached interrupts from all D2-D8 pins. + + pin - D2-D8 pins + ''' + write_i2c_block(isr_clear_cmd + 3 * [unused]) + read_i2c_block(no_bytes = 1) + +def is_interrupt_active(pin): + write_i2c_block(isr_active_cmd + [pin, unused, unused]) + data = read_identified_i2c_block(isr_active_cmd, no_bytes = 2) + value = data[1] >> pin + return value != 0 + +def get_active_interrupts(): + ''' + Get list of attached interrupts for a given pin or all of them. + + pin - D2-D8 pins; if it's 255 return the state of all pins + ''' + pin = 255 + write_i2c_block(isr_active_cmd + [pin, unused, unused]) + data = read_identified_i2c_block(isr_active_cmd, no_bytes = 2) + value = data[0] + (data[1] << 8) + active_interrupts = [i for i in range(2 * 8) if ((value >> i) & 0x01)] + return active_interrupts + +def read_interrupt_state(pin): + ''' + Read number of pulses/changes on given port that occurred within a time period. + + pin - D2-D8 pins + ''' + write_i2c_block(isr_read_cmd + [pin, unused, unused]) + data = read_identified_i2c_block(isr_read_cmd, no_bytes = 4) + value = data[0] + (data[1] << 8) + (data[2] << 16) + (data[3] << 24) + return value + +def dust_sensor_en(pin = 2, period = 30000): + set_pin_interrupt(pin, ftype=COUNT_LOW_DURATION, interrupt_mode=CHANGE, period=period) + +def dust_sensor_dis(pin = 2): + unset_pin_interrupt(pin) + +def dust_sensor_read(pin = 2, period = 30000): + ''' + By default, the sample rate is set to 1 at every 30 seconds and this + function was written only for that interval. + + If you wish to use a different + interval, then use dust_sensor_read_more function. To set a + different interval, use set_dust_sensor_interval function. + ''' + lpo = read_interrupt_state(pin) + percentage = 100.0 * lpo / period + concentration = 1.1 * percentage ** 3 - 3.8 * percentage ** 2 + 520 * percentage + 0.62 + + return lpo, percentage, concentration + +def encoder_en(pin = 2, steps = 32): + write_i2c_block(encoder_en_cmd + [pin, steps, unused]) + read_i2c_block(no_bytes = 1) + +def encoder_dis(pin = 2): + write_i2c_block(encoder_dis_cmd + [pin, unused, unused]) + read_i2c_block(no_bytes = 1) + +def encoderRead(pin = 2): + write_i2c_block(encoder_read_cmd + [pin, unused, unused]) + data = read_identified_i2c_block(encoder_read_cmd, no_bytes = 4) + value = data[0] + (data[1] << 8) + (data[2] << 16) + (data[3] << 24) + return value + +def flowEnable(pin = 2, period = 2000): + set_pin_interrupt(pin, ftype=COUNT_CHANGES, interrupt_mode=RISING, period=period) + +def flowDisable(pin = 2): + unset_pin_interrupt(pin) + +def flowRead(pin = 2): + val = read_interrupt_state(pin) + return val + +def main(): + print("library supports this fw versions: " + + " ".join('{}'.format(k[1]) for k in enumerate(works_with_firmware))) + +if __name__ == "__main__": + main() diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/ht16k33.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/ht16k33.py index 45f1e47cd2c45d2489b9ae8fe56cc608e1177d1e..0fbbda8b80c1788a527ff6f1b759c31f2ba34660 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/ht16k33.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/ht16k33.py @@ -1,3 +1,111 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7297b2f368ba54e06fe0bf6a636fd4a290590fcbead88684e1a0689b5cb2c4e -size 3346 +from PIL import Image +from PIL import ImageDraw +from Adafruit_LED_Backpack import Matrix8x8 as MX1 +from Adafruit_LED_Backpack import Matrix8x16 as MX2 +from Adafruit_LED_Backpack import AlphaNum4 +from Adafruit_LED_Backpack import SevenSegment as Seven + +class Matrix8x8: + def __init__(self): + self.display = MX1.Matrix8x8() + self.display.begin() + self.image = Image.new('1', (8, 8)) + self.draw = ImageDraw.Draw(self.image) + + def setSingle(self,x,y,boolean): + self.display.set_pixel(x, y, boolean) + self.display.write_display() + + def drawLine(self,x1,y1,x2,y2): + self.draw.line((x1,y1,x2,y2), fill=255) + self.display.set_image(self.image) + self.display.write_display() + + def drawRectangle(self,x,y,length,height,fill): + self.draw.rectangle((x,y,length,height), outline=255, fill=int(fill)*255) + self.display.set_image(self.image) + self.display.write_display() + + def clear(self): + self.display.clear() + self.display.write_display() + +class Matrix8x16: + def __init__(self): + self.display = MX2.Matrix8x16() + self.display.begin() + self.image = Image.new('1', (8, 16)) + self.draw = ImageDraw.Draw(self.image) + + def setSingle(self,x,y,boolean): + self.display.set_pixel(x, y, boolean) + self.display.write_display() + + def drawLine(self,x1,y1,x2,y2): + self.draw.line((x1,y1,x2,y2), fill=255) + self.display.set_image(self.image) + self.display.write_display() + + def drawRectangle(self,x,y,length,height,fill): + self.draw.rectangle((x,y,length,height), outline=255, fill=int(fill)*255) + self.display.set_image(self.image) + self.display.write_display() + + def clear(self): + self.display.clear() + self.display.write_display() + +class AlphaNumeric: + def __init__(self): + self.display = AlphaNum4.AlphaNum4() + self.display.begin() + + def printString(self,string): + self.display.print_str(string) + self.display.write_display() + + def printFloat(self, float, place): + self.display.print_float(float, place) + self.display.write_display() + + def printInt(self, int): + self.display.print_float(int, 0) + self.display.write_display() + + def printHex(self, hex): + self.display.print_hex(hex) + self.display.write_display() + + def clear(self): + self.display.clear() + self.display.write_display() + +class SevenSegment: + def __init__(self): + self.display = Seven.SevenSegment() + self.display.begin() + + def printString(self,string): + self.display.print_number_str(string) + self.display.write_display() + + def printFloat(self, float, place): + self.display.print_float(float, place) + self.display.write_display() + + def printInt(self, int): + self.display.print_float(int, 0) + self.display.write_display() + + def printHex(self, hex): + self.display.print_hex(hex) + self.display.write_display() + + def colon(self, bool): + self.display.set_colon(bool) + self.display.write_display() + + def clear(self): + self.display.clear() + self.display.write_display() + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/__init__.py index 06f765bd4ec6f9368394ad2f1a257f637c7d4461..847bf9354781fddc44ed2f47055a67c025972fd4 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/__init__.py @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f4db7bc69c9eb770e63ab3d41a8a03740c261d966ed6a500cb611a27dde41a24 -size 58 +from .package_data import __version__ +from .core import * diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/codec.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/codec.py index 241b52ac41764e98293d6b941caa94c498741223..98c65ead146e42b359a11703d719bafe916b1ad7 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/codec.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/codec.py @@ -1,3 +1,118 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96f61bef2bbb3e102a15a00801d59cc2069623652682c794b9afb573402c1b40 -size 3299 +from .core import encode, decode, alabel, ulabel, IDNAError +import codecs +import re + +_unicode_dots_re = re.compile(u'[\u002e\u3002\uff0e\uff61]') + +class Codec(codecs.Codec): + + def encode(self, data, errors='strict'): + + if errors != 'strict': + raise IDNAError("Unsupported error handling \"{0}\"".format(errors)) + + if not data: + return "", 0 + + return encode(data), len(data) + + def decode(self, data, errors='strict'): + + if errors != 'strict': + raise IDNAError("Unsupported error handling \"{0}\"".format(errors)) + + if not data: + return u"", 0 + + return decode(data), len(data) + +class IncrementalEncoder(codecs.BufferedIncrementalEncoder): + def _buffer_encode(self, data, errors, final): + if errors != 'strict': + raise IDNAError("Unsupported error handling \"{0}\"".format(errors)) + + if not data: + return ("", 0) + + labels = _unicode_dots_re.split(data) + trailing_dot = u'' + if labels: + if not labels[-1]: + trailing_dot = '.' + del labels[-1] + elif not final: + # Keep potentially unfinished label until the next call + del labels[-1] + if labels: + trailing_dot = '.' + + result = [] + size = 0 + for label in labels: + result.append(alabel(label)) + if size: + size += 1 + size += len(label) + + # Join with U+002E + result = ".".join(result) + trailing_dot + size += len(trailing_dot) + return (result, size) + +class IncrementalDecoder(codecs.BufferedIncrementalDecoder): + def _buffer_decode(self, data, errors, final): + if errors != 'strict': + raise IDNAError("Unsupported error handling \"{0}\"".format(errors)) + + if not data: + return (u"", 0) + + # IDNA allows decoding to operate on Unicode strings, too. + if isinstance(data, unicode): + labels = _unicode_dots_re.split(data) + else: + # Must be ASCII string + data = str(data) + unicode(data, "ascii") + labels = data.split(".") + + trailing_dot = u'' + if labels: + if not labels[-1]: + trailing_dot = u'.' + del labels[-1] + elif not final: + # Keep potentially unfinished label until the next call + del labels[-1] + if labels: + trailing_dot = u'.' + + result = [] + size = 0 + for label in labels: + result.append(ulabel(label)) + if size: + size += 1 + size += len(label) + + result = u".".join(result) + trailing_dot + size += len(trailing_dot) + return (result, size) + + +class StreamWriter(Codec, codecs.StreamWriter): + pass + +class StreamReader(Codec, codecs.StreamReader): + pass + +def getregentry(): + return codecs.CodecInfo( + name='idna', + encode=Codec().encode, + decode=Codec().decode, + incrementalencoder=IncrementalEncoder, + incrementaldecoder=IncrementalDecoder, + streamwriter=StreamWriter, + streamreader=StreamReader, + ) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/compat.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/compat.py index 772ae6ef3a2fe240e9c087cbf7ef4033658d406a..4d47f336dbc55ca7141150c14ec1a7924dd0e854 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/compat.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/compat.py @@ -1,3 +1,12 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:47e876f43fba9ab9c9cdb5f1ca6ad6516ee2654bf2fb6e934306748a3e7b8b85 -size 232 +from .core import * +from .codec import * + +def ToASCII(label): + return encode(label) + +def ToUnicode(label): + return decode(label) + +def nameprep(s): + raise NotImplementedError("IDNA 2008 does not utilise nameprep protocol") + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/core.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/core.py index 2812ecb60c6ed2f1ce9d5e0c8dc3e65113f6c9f7..104624ad2ddd7b18e255a74dcaa099a84223d959 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/core.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/core.py @@ -1,3 +1,396 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:24309967f3cb112a888046d4f263f2a04b9f5b0a0e888ab2800d7bf906487b7b -size 11733 +from . import idnadata +import bisect +import unicodedata +import re +import sys +from .intranges import intranges_contain + +_virama_combining_class = 9 +_alabel_prefix = b'xn--' +_unicode_dots_re = re.compile(u'[\u002e\u3002\uff0e\uff61]') + +if sys.version_info[0] == 3: + unicode = str + unichr = chr + +class IDNAError(UnicodeError): + """ Base exception for all IDNA-encoding related problems """ + pass + + +class IDNABidiError(IDNAError): + """ Exception when bidirectional requirements are not satisfied """ + pass + + +class InvalidCodepoint(IDNAError): + """ Exception when a disallowed or unallocated codepoint is used """ + pass + + +class InvalidCodepointContext(IDNAError): + """ Exception when the codepoint is not valid in the context it is used """ + pass + + +def _combining_class(cp): + v = unicodedata.combining(unichr(cp)) + if v == 0: + if not unicodedata.name(unichr(cp)): + raise ValueError("Unknown character in unicodedata") + return v + +def _is_script(cp, script): + return intranges_contain(ord(cp), idnadata.scripts[script]) + +def _punycode(s): + return s.encode('punycode') + +def _unot(s): + return 'U+{0:04X}'.format(s) + + +def valid_label_length(label): + + if len(label) > 63: + return False + return True + + +def valid_string_length(label, trailing_dot): + + if len(label) > (254 if trailing_dot else 253): + return False + return True + + +def check_bidi(label, check_ltr=False): + + # Bidi rules should only be applied if string contains RTL characters + bidi_label = False + for (idx, cp) in enumerate(label, 1): + direction = unicodedata.bidirectional(cp) + if direction == '': + # String likely comes from a newer version of Unicode + raise IDNABidiError('Unknown directionality in label {0} at position {1}'.format(repr(label), idx)) + if direction in ['R', 'AL', 'AN']: + bidi_label = True + if not bidi_label and not check_ltr: + return True + + # Bidi rule 1 + direction = unicodedata.bidirectional(label[0]) + if direction in ['R', 'AL']: + rtl = True + elif direction == 'L': + rtl = False + else: + raise IDNABidiError('First codepoint in label {0} must be directionality L, R or AL'.format(repr(label))) + + valid_ending = False + number_type = False + for (idx, cp) in enumerate(label, 1): + direction = unicodedata.bidirectional(cp) + + if rtl: + # Bidi rule 2 + if not direction in ['R', 'AL', 'AN', 'EN', 'ES', 'CS', 'ET', 'ON', 'BN', 'NSM']: + raise IDNABidiError('Invalid direction for codepoint at position {0} in a right-to-left label'.format(idx)) + # Bidi rule 3 + if direction in ['R', 'AL', 'EN', 'AN']: + valid_ending = True + elif direction != 'NSM': + valid_ending = False + # Bidi rule 4 + if direction in ['AN', 'EN']: + if not number_type: + number_type = direction + else: + if number_type != direction: + raise IDNABidiError('Can not mix numeral types in a right-to-left label') + else: + # Bidi rule 5 + if not direction in ['L', 'EN', 'ES', 'CS', 'ET', 'ON', 'BN', 'NSM']: + raise IDNABidiError('Invalid direction for codepoint at position {0} in a left-to-right label'.format(idx)) + # Bidi rule 6 + if direction in ['L', 'EN']: + valid_ending = True + elif direction != 'NSM': + valid_ending = False + + if not valid_ending: + raise IDNABidiError('Label ends with illegal codepoint directionality') + + return True + + +def check_initial_combiner(label): + + if unicodedata.category(label[0])[0] == 'M': + raise IDNAError('Label begins with an illegal combining character') + return True + + +def check_hyphen_ok(label): + + if label[2:4] == '--': + raise IDNAError('Label has disallowed hyphens in 3rd and 4th position') + if label[0] == '-' or label[-1] == '-': + raise IDNAError('Label must not start or end with a hyphen') + return True + + +def check_nfc(label): + + if unicodedata.normalize('NFC', label) != label: + raise IDNAError('Label must be in Normalization Form C') + + +def valid_contextj(label, pos): + + cp_value = ord(label[pos]) + + if cp_value == 0x200c: + + if pos > 0: + if _combining_class(ord(label[pos - 1])) == _virama_combining_class: + return True + + ok = False + for i in range(pos-1, -1, -1): + joining_type = idnadata.joining_types.get(ord(label[i])) + if joining_type == ord('T'): + continue + if joining_type in [ord('L'), ord('D')]: + ok = True + break + + if not ok: + return False + + ok = False + for i in range(pos+1, len(label)): + joining_type = idnadata.joining_types.get(ord(label[i])) + if joining_type == ord('T'): + continue + if joining_type in [ord('R'), ord('D')]: + ok = True + break + return ok + + if cp_value == 0x200d: + + if pos > 0: + if _combining_class(ord(label[pos - 1])) == _virama_combining_class: + return True + return False + + else: + + return False + + +def valid_contexto(label, pos, exception=False): + + cp_value = ord(label[pos]) + + if cp_value == 0x00b7: + if 0 < pos < len(label)-1: + if ord(label[pos - 1]) == 0x006c and ord(label[pos + 1]) == 0x006c: + return True + return False + + elif cp_value == 0x0375: + if pos < len(label)-1 and len(label) > 1: + return _is_script(label[pos + 1], 'Greek') + return False + + elif cp_value == 0x05f3 or cp_value == 0x05f4: + if pos > 0: + return _is_script(label[pos - 1], 'Hebrew') + return False + + elif cp_value == 0x30fb: + for cp in label: + if cp == u'\u30fb': + continue + if _is_script(cp, 'Hiragana') or _is_script(cp, 'Katakana') or _is_script(cp, 'Han'): + return True + return False + + elif 0x660 <= cp_value <= 0x669: + for cp in label: + if 0x6f0 <= ord(cp) <= 0x06f9: + return False + return True + + elif 0x6f0 <= cp_value <= 0x6f9: + for cp in label: + if 0x660 <= ord(cp) <= 0x0669: + return False + return True + + +def check_label(label): + + if isinstance(label, (bytes, bytearray)): + label = label.decode('utf-8') + if len(label) == 0: + raise IDNAError('Empty Label') + + check_nfc(label) + check_hyphen_ok(label) + check_initial_combiner(label) + + for (pos, cp) in enumerate(label): + cp_value = ord(cp) + if intranges_contain(cp_value, idnadata.codepoint_classes['PVALID']): + continue + elif intranges_contain(cp_value, idnadata.codepoint_classes['CONTEXTJ']): + try: + if not valid_contextj(label, pos): + raise InvalidCodepointContext('Joiner {0} not allowed at position {1} in {2}'.format( + _unot(cp_value), pos+1, repr(label))) + except ValueError: + raise IDNAError('Unknown codepoint adjacent to joiner {0} at position {1} in {2}'.format( + _unot(cp_value), pos+1, repr(label))) + elif intranges_contain(cp_value, idnadata.codepoint_classes['CONTEXTO']): + if not valid_contexto(label, pos): + raise InvalidCodepointContext('Codepoint {0} not allowed at position {1} in {2}'.format(_unot(cp_value), pos+1, repr(label))) + else: + raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not allowed'.format(_unot(cp_value), pos+1, repr(label))) + + check_bidi(label) + + +def alabel(label): + + try: + label = label.encode('ascii') + ulabel(label) + if not valid_label_length(label): + raise IDNAError('Label too long') + return label + except UnicodeEncodeError: + pass + + if not label: + raise IDNAError('No Input') + + label = unicode(label) + check_label(label) + label = _punycode(label) + label = _alabel_prefix + label + + if not valid_label_length(label): + raise IDNAError('Label too long') + + return label + + +def ulabel(label): + + if not isinstance(label, (bytes, bytearray)): + try: + label = label.encode('ascii') + except UnicodeEncodeError: + check_label(label) + return label + + label = label.lower() + if label.startswith(_alabel_prefix): + label = label[len(_alabel_prefix):] + else: + check_label(label) + return label.decode('ascii') + + label = label.decode('punycode') + check_label(label) + return label + + +def uts46_remap(domain, std3_rules=True, transitional=False): + """Re-map the characters in the string according to UTS46 processing.""" + from .uts46data import uts46data + output = u"" + try: + for pos, char in enumerate(domain): + code_point = ord(char) + uts46row = uts46data[code_point if code_point < 256 else + bisect.bisect_left(uts46data, (code_point, "Z")) - 1] + status = uts46row[1] + replacement = uts46row[2] if len(uts46row) == 3 else None + if (status == "V" or + (status == "D" and not transitional) or + (status == "3" and not std3_rules and replacement is None)): + output += char + elif replacement is not None and (status == "M" or + (status == "3" and not std3_rules) or + (status == "D" and transitional)): + output += replacement + elif status != "I": + raise IndexError() + return unicodedata.normalize("NFC", output) + except IndexError: + raise InvalidCodepoint( + "Codepoint {0} not allowed at position {1} in {2}".format( + _unot(code_point), pos + 1, repr(domain))) + + +def encode(s, strict=False, uts46=False, std3_rules=False, transitional=False): + + if isinstance(s, (bytes, bytearray)): + s = s.decode("ascii") + if uts46: + s = uts46_remap(s, std3_rules, transitional) + trailing_dot = False + result = [] + if strict: + labels = s.split('.') + else: + labels = _unicode_dots_re.split(s) + if not labels or labels == ['']: + raise IDNAError('Empty domain') + if labels[-1] == '': + del labels[-1] + trailing_dot = True + for label in labels: + s = alabel(label) + if s: + result.append(s) + else: + raise IDNAError('Empty label') + if trailing_dot: + result.append(b'') + s = b'.'.join(result) + if not valid_string_length(s, trailing_dot): + raise IDNAError('Domain too long') + return s + + +def decode(s, strict=False, uts46=False, std3_rules=False): + + if isinstance(s, (bytes, bytearray)): + s = s.decode("ascii") + if uts46: + s = uts46_remap(s, std3_rules, False) + trailing_dot = False + result = [] + if not strict: + labels = _unicode_dots_re.split(s) + else: + labels = s.split(u'.') + if not labels or labels == ['']: + raise IDNAError('Empty domain') + if not labels[-1]: + del labels[-1] + trailing_dot = True + for label in labels: + s = ulabel(label) + if s: + result.append(s) + else: + raise IDNAError('Empty label') + if trailing_dot: + result.append(u'') + return u'.'.join(result) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/idnadata.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/idnadata.py index 958b2817de894743ed3d4eb04d4e7b38ee5ced67..a80c959d2a7127633cd696f86844d1f356a0bc83 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/idnadata.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/idnadata.py @@ -1,3 +1,1979 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1d768f170ebf600274aa9a4008fbb460b0142ed46cdd0a2f44cfc20991c6758d -size 40899 +# This file is automatically generated by tools/idna-data + +__version__ = "11.0.0" +scripts = { + 'Greek': ( + 0x37000000374, + 0x37500000378, + 0x37a0000037e, + 0x37f00000380, + 0x38400000385, + 0x38600000387, + 0x3880000038b, + 0x38c0000038d, + 0x38e000003a2, + 0x3a3000003e2, + 0x3f000000400, + 0x1d2600001d2b, + 0x1d5d00001d62, + 0x1d6600001d6b, + 0x1dbf00001dc0, + 0x1f0000001f16, + 0x1f1800001f1e, + 0x1f2000001f46, + 0x1f4800001f4e, + 0x1f5000001f58, + 0x1f5900001f5a, + 0x1f5b00001f5c, + 0x1f5d00001f5e, + 0x1f5f00001f7e, + 0x1f8000001fb5, + 0x1fb600001fc5, + 0x1fc600001fd4, + 0x1fd600001fdc, + 0x1fdd00001ff0, + 0x1ff200001ff5, + 0x1ff600001fff, + 0x212600002127, + 0xab650000ab66, + 0x101400001018f, + 0x101a0000101a1, + 0x1d2000001d246, + ), + 'Han': ( + 0x2e8000002e9a, + 0x2e9b00002ef4, + 0x2f0000002fd6, + 0x300500003006, + 0x300700003008, + 0x30210000302a, + 0x30380000303c, + 0x340000004db6, + 0x4e0000009ff0, + 0xf9000000fa6e, + 0xfa700000fada, + 0x200000002a6d7, + 0x2a7000002b735, + 0x2b7400002b81e, + 0x2b8200002cea2, + 0x2ceb00002ebe1, + 0x2f8000002fa1e, + ), + 'Hebrew': ( + 0x591000005c8, + 0x5d0000005eb, + 0x5ef000005f5, + 0xfb1d0000fb37, + 0xfb380000fb3d, + 0xfb3e0000fb3f, + 0xfb400000fb42, + 0xfb430000fb45, + 0xfb460000fb50, + ), + 'Hiragana': ( + 0x304100003097, + 0x309d000030a0, + 0x1b0010001b11f, + 0x1f2000001f201, + ), + 'Katakana': ( + 0x30a1000030fb, + 0x30fd00003100, + 0x31f000003200, + 0x32d0000032ff, + 0x330000003358, + 0xff660000ff70, + 0xff710000ff9e, + 0x1b0000001b001, + ), +} +joining_types = { + 0x600: 85, + 0x601: 85, + 0x602: 85, + 0x603: 85, + 0x604: 85, + 0x605: 85, + 0x608: 85, + 0x60b: 85, + 0x620: 68, + 0x621: 85, + 0x622: 82, + 0x623: 82, + 0x624: 82, + 0x625: 82, + 0x626: 68, + 0x627: 82, + 0x628: 68, + 0x629: 82, + 0x62a: 68, + 0x62b: 68, + 0x62c: 68, + 0x62d: 68, + 0x62e: 68, + 0x62f: 82, + 0x630: 82, + 0x631: 82, + 0x632: 82, + 0x633: 68, + 0x634: 68, + 0x635: 68, + 0x636: 68, + 0x637: 68, + 0x638: 68, + 0x639: 68, + 0x63a: 68, + 0x63b: 68, + 0x63c: 68, + 0x63d: 68, + 0x63e: 68, + 0x63f: 68, + 0x640: 67, + 0x641: 68, + 0x642: 68, + 0x643: 68, + 0x644: 68, + 0x645: 68, + 0x646: 68, + 0x647: 68, + 0x648: 82, + 0x649: 68, + 0x64a: 68, + 0x66e: 68, + 0x66f: 68, + 0x671: 82, + 0x672: 82, + 0x673: 82, + 0x674: 85, + 0x675: 82, + 0x676: 82, + 0x677: 82, + 0x678: 68, + 0x679: 68, + 0x67a: 68, + 0x67b: 68, + 0x67c: 68, + 0x67d: 68, + 0x67e: 68, + 0x67f: 68, + 0x680: 68, + 0x681: 68, + 0x682: 68, + 0x683: 68, + 0x684: 68, + 0x685: 68, + 0x686: 68, + 0x687: 68, + 0x688: 82, + 0x689: 82, + 0x68a: 82, + 0x68b: 82, + 0x68c: 82, + 0x68d: 82, + 0x68e: 82, + 0x68f: 82, + 0x690: 82, + 0x691: 82, + 0x692: 82, + 0x693: 82, + 0x694: 82, + 0x695: 82, + 0x696: 82, + 0x697: 82, + 0x698: 82, + 0x699: 82, + 0x69a: 68, + 0x69b: 68, + 0x69c: 68, + 0x69d: 68, + 0x69e: 68, + 0x69f: 68, + 0x6a0: 68, + 0x6a1: 68, + 0x6a2: 68, + 0x6a3: 68, + 0x6a4: 68, + 0x6a5: 68, + 0x6a6: 68, + 0x6a7: 68, + 0x6a8: 68, + 0x6a9: 68, + 0x6aa: 68, + 0x6ab: 68, + 0x6ac: 68, + 0x6ad: 68, + 0x6ae: 68, + 0x6af: 68, + 0x6b0: 68, + 0x6b1: 68, + 0x6b2: 68, + 0x6b3: 68, + 0x6b4: 68, + 0x6b5: 68, + 0x6b6: 68, + 0x6b7: 68, + 0x6b8: 68, + 0x6b9: 68, + 0x6ba: 68, + 0x6bb: 68, + 0x6bc: 68, + 0x6bd: 68, + 0x6be: 68, + 0x6bf: 68, + 0x6c0: 82, + 0x6c1: 68, + 0x6c2: 68, + 0x6c3: 82, + 0x6c4: 82, + 0x6c5: 82, + 0x6c6: 82, + 0x6c7: 82, + 0x6c8: 82, + 0x6c9: 82, + 0x6ca: 82, + 0x6cb: 82, + 0x6cc: 68, + 0x6cd: 82, + 0x6ce: 68, + 0x6cf: 82, + 0x6d0: 68, + 0x6d1: 68, + 0x6d2: 82, + 0x6d3: 82, + 0x6d5: 82, + 0x6dd: 85, + 0x6ee: 82, + 0x6ef: 82, + 0x6fa: 68, + 0x6fb: 68, + 0x6fc: 68, + 0x6ff: 68, + 0x70f: 84, + 0x710: 82, + 0x712: 68, + 0x713: 68, + 0x714: 68, + 0x715: 82, + 0x716: 82, + 0x717: 82, + 0x718: 82, + 0x719: 82, + 0x71a: 68, + 0x71b: 68, + 0x71c: 68, + 0x71d: 68, + 0x71e: 82, + 0x71f: 68, + 0x720: 68, + 0x721: 68, + 0x722: 68, + 0x723: 68, + 0x724: 68, + 0x725: 68, + 0x726: 68, + 0x727: 68, + 0x728: 82, + 0x729: 68, + 0x72a: 82, + 0x72b: 68, + 0x72c: 82, + 0x72d: 68, + 0x72e: 68, + 0x72f: 82, + 0x74d: 82, + 0x74e: 68, + 0x74f: 68, + 0x750: 68, + 0x751: 68, + 0x752: 68, + 0x753: 68, + 0x754: 68, + 0x755: 68, + 0x756: 68, + 0x757: 68, + 0x758: 68, + 0x759: 82, + 0x75a: 82, + 0x75b: 82, + 0x75c: 68, + 0x75d: 68, + 0x75e: 68, + 0x75f: 68, + 0x760: 68, + 0x761: 68, + 0x762: 68, + 0x763: 68, + 0x764: 68, + 0x765: 68, + 0x766: 68, + 0x767: 68, + 0x768: 68, + 0x769: 68, + 0x76a: 68, + 0x76b: 82, + 0x76c: 82, + 0x76d: 68, + 0x76e: 68, + 0x76f: 68, + 0x770: 68, + 0x771: 82, + 0x772: 68, + 0x773: 82, + 0x774: 82, + 0x775: 68, + 0x776: 68, + 0x777: 68, + 0x778: 82, + 0x779: 82, + 0x77a: 68, + 0x77b: 68, + 0x77c: 68, + 0x77d: 68, + 0x77e: 68, + 0x77f: 68, + 0x7ca: 68, + 0x7cb: 68, + 0x7cc: 68, + 0x7cd: 68, + 0x7ce: 68, + 0x7cf: 68, + 0x7d0: 68, + 0x7d1: 68, + 0x7d2: 68, + 0x7d3: 68, + 0x7d4: 68, + 0x7d5: 68, + 0x7d6: 68, + 0x7d7: 68, + 0x7d8: 68, + 0x7d9: 68, + 0x7da: 68, + 0x7db: 68, + 0x7dc: 68, + 0x7dd: 68, + 0x7de: 68, + 0x7df: 68, + 0x7e0: 68, + 0x7e1: 68, + 0x7e2: 68, + 0x7e3: 68, + 0x7e4: 68, + 0x7e5: 68, + 0x7e6: 68, + 0x7e7: 68, + 0x7e8: 68, + 0x7e9: 68, + 0x7ea: 68, + 0x7fa: 67, + 0x840: 82, + 0x841: 68, + 0x842: 68, + 0x843: 68, + 0x844: 68, + 0x845: 68, + 0x846: 82, + 0x847: 82, + 0x848: 68, + 0x849: 82, + 0x84a: 68, + 0x84b: 68, + 0x84c: 68, + 0x84d: 68, + 0x84e: 68, + 0x84f: 68, + 0x850: 68, + 0x851: 68, + 0x852: 68, + 0x853: 68, + 0x854: 82, + 0x855: 68, + 0x856: 85, + 0x857: 85, + 0x858: 85, + 0x860: 68, + 0x861: 85, + 0x862: 68, + 0x863: 68, + 0x864: 68, + 0x865: 68, + 0x866: 85, + 0x867: 82, + 0x868: 68, + 0x869: 82, + 0x86a: 82, + 0x8a0: 68, + 0x8a1: 68, + 0x8a2: 68, + 0x8a3: 68, + 0x8a4: 68, + 0x8a5: 68, + 0x8a6: 68, + 0x8a7: 68, + 0x8a8: 68, + 0x8a9: 68, + 0x8aa: 82, + 0x8ab: 82, + 0x8ac: 82, + 0x8ad: 85, + 0x8ae: 82, + 0x8af: 68, + 0x8b0: 68, + 0x8b1: 82, + 0x8b2: 82, + 0x8b3: 68, + 0x8b4: 68, + 0x8b6: 68, + 0x8b7: 68, + 0x8b8: 68, + 0x8b9: 82, + 0x8ba: 68, + 0x8bb: 68, + 0x8bc: 68, + 0x8bd: 68, + 0x8e2: 85, + 0x1806: 85, + 0x1807: 68, + 0x180a: 67, + 0x180e: 85, + 0x1820: 68, + 0x1821: 68, + 0x1822: 68, + 0x1823: 68, + 0x1824: 68, + 0x1825: 68, + 0x1826: 68, + 0x1827: 68, + 0x1828: 68, + 0x1829: 68, + 0x182a: 68, + 0x182b: 68, + 0x182c: 68, + 0x182d: 68, + 0x182e: 68, + 0x182f: 68, + 0x1830: 68, + 0x1831: 68, + 0x1832: 68, + 0x1833: 68, + 0x1834: 68, + 0x1835: 68, + 0x1836: 68, + 0x1837: 68, + 0x1838: 68, + 0x1839: 68, + 0x183a: 68, + 0x183b: 68, + 0x183c: 68, + 0x183d: 68, + 0x183e: 68, + 0x183f: 68, + 0x1840: 68, + 0x1841: 68, + 0x1842: 68, + 0x1843: 68, + 0x1844: 68, + 0x1845: 68, + 0x1846: 68, + 0x1847: 68, + 0x1848: 68, + 0x1849: 68, + 0x184a: 68, + 0x184b: 68, + 0x184c: 68, + 0x184d: 68, + 0x184e: 68, + 0x184f: 68, + 0x1850: 68, + 0x1851: 68, + 0x1852: 68, + 0x1853: 68, + 0x1854: 68, + 0x1855: 68, + 0x1856: 68, + 0x1857: 68, + 0x1858: 68, + 0x1859: 68, + 0x185a: 68, + 0x185b: 68, + 0x185c: 68, + 0x185d: 68, + 0x185e: 68, + 0x185f: 68, + 0x1860: 68, + 0x1861: 68, + 0x1862: 68, + 0x1863: 68, + 0x1864: 68, + 0x1865: 68, + 0x1866: 68, + 0x1867: 68, + 0x1868: 68, + 0x1869: 68, + 0x186a: 68, + 0x186b: 68, + 0x186c: 68, + 0x186d: 68, + 0x186e: 68, + 0x186f: 68, + 0x1870: 68, + 0x1871: 68, + 0x1872: 68, + 0x1873: 68, + 0x1874: 68, + 0x1875: 68, + 0x1876: 68, + 0x1877: 68, + 0x1878: 68, + 0x1880: 85, + 0x1881: 85, + 0x1882: 85, + 0x1883: 85, + 0x1884: 85, + 0x1885: 84, + 0x1886: 84, + 0x1887: 68, + 0x1888: 68, + 0x1889: 68, + 0x188a: 68, + 0x188b: 68, + 0x188c: 68, + 0x188d: 68, + 0x188e: 68, + 0x188f: 68, + 0x1890: 68, + 0x1891: 68, + 0x1892: 68, + 0x1893: 68, + 0x1894: 68, + 0x1895: 68, + 0x1896: 68, + 0x1897: 68, + 0x1898: 68, + 0x1899: 68, + 0x189a: 68, + 0x189b: 68, + 0x189c: 68, + 0x189d: 68, + 0x189e: 68, + 0x189f: 68, + 0x18a0: 68, + 0x18a1: 68, + 0x18a2: 68, + 0x18a3: 68, + 0x18a4: 68, + 0x18a5: 68, + 0x18a6: 68, + 0x18a7: 68, + 0x18a8: 68, + 0x18aa: 68, + 0x200c: 85, + 0x200d: 67, + 0x202f: 85, + 0x2066: 85, + 0x2067: 85, + 0x2068: 85, + 0x2069: 85, + 0xa840: 68, + 0xa841: 68, + 0xa842: 68, + 0xa843: 68, + 0xa844: 68, + 0xa845: 68, + 0xa846: 68, + 0xa847: 68, + 0xa848: 68, + 0xa849: 68, + 0xa84a: 68, + 0xa84b: 68, + 0xa84c: 68, + 0xa84d: 68, + 0xa84e: 68, + 0xa84f: 68, + 0xa850: 68, + 0xa851: 68, + 0xa852: 68, + 0xa853: 68, + 0xa854: 68, + 0xa855: 68, + 0xa856: 68, + 0xa857: 68, + 0xa858: 68, + 0xa859: 68, + 0xa85a: 68, + 0xa85b: 68, + 0xa85c: 68, + 0xa85d: 68, + 0xa85e: 68, + 0xa85f: 68, + 0xa860: 68, + 0xa861: 68, + 0xa862: 68, + 0xa863: 68, + 0xa864: 68, + 0xa865: 68, + 0xa866: 68, + 0xa867: 68, + 0xa868: 68, + 0xa869: 68, + 0xa86a: 68, + 0xa86b: 68, + 0xa86c: 68, + 0xa86d: 68, + 0xa86e: 68, + 0xa86f: 68, + 0xa870: 68, + 0xa871: 68, + 0xa872: 76, + 0xa873: 85, + 0x10ac0: 68, + 0x10ac1: 68, + 0x10ac2: 68, + 0x10ac3: 68, + 0x10ac4: 68, + 0x10ac5: 82, + 0x10ac6: 85, + 0x10ac7: 82, + 0x10ac8: 85, + 0x10ac9: 82, + 0x10aca: 82, + 0x10acb: 85, + 0x10acc: 85, + 0x10acd: 76, + 0x10ace: 82, + 0x10acf: 82, + 0x10ad0: 82, + 0x10ad1: 82, + 0x10ad2: 82, + 0x10ad3: 68, + 0x10ad4: 68, + 0x10ad5: 68, + 0x10ad6: 68, + 0x10ad7: 76, + 0x10ad8: 68, + 0x10ad9: 68, + 0x10ada: 68, + 0x10adb: 68, + 0x10adc: 68, + 0x10add: 82, + 0x10ade: 68, + 0x10adf: 68, + 0x10ae0: 68, + 0x10ae1: 82, + 0x10ae2: 85, + 0x10ae3: 85, + 0x10ae4: 82, + 0x10aeb: 68, + 0x10aec: 68, + 0x10aed: 68, + 0x10aee: 68, + 0x10aef: 82, + 0x10b80: 68, + 0x10b81: 82, + 0x10b82: 68, + 0x10b83: 82, + 0x10b84: 82, + 0x10b85: 82, + 0x10b86: 68, + 0x10b87: 68, + 0x10b88: 68, + 0x10b89: 82, + 0x10b8a: 68, + 0x10b8b: 68, + 0x10b8c: 82, + 0x10b8d: 68, + 0x10b8e: 82, + 0x10b8f: 82, + 0x10b90: 68, + 0x10b91: 82, + 0x10ba9: 82, + 0x10baa: 82, + 0x10bab: 82, + 0x10bac: 82, + 0x10bad: 68, + 0x10bae: 68, + 0x10baf: 85, + 0x10d00: 76, + 0x10d01: 68, + 0x10d02: 68, + 0x10d03: 68, + 0x10d04: 68, + 0x10d05: 68, + 0x10d06: 68, + 0x10d07: 68, + 0x10d08: 68, + 0x10d09: 68, + 0x10d0a: 68, + 0x10d0b: 68, + 0x10d0c: 68, + 0x10d0d: 68, + 0x10d0e: 68, + 0x10d0f: 68, + 0x10d10: 68, + 0x10d11: 68, + 0x10d12: 68, + 0x10d13: 68, + 0x10d14: 68, + 0x10d15: 68, + 0x10d16: 68, + 0x10d17: 68, + 0x10d18: 68, + 0x10d19: 68, + 0x10d1a: 68, + 0x10d1b: 68, + 0x10d1c: 68, + 0x10d1d: 68, + 0x10d1e: 68, + 0x10d1f: 68, + 0x10d20: 68, + 0x10d21: 68, + 0x10d22: 82, + 0x10d23: 68, + 0x10f30: 68, + 0x10f31: 68, + 0x10f32: 68, + 0x10f33: 82, + 0x10f34: 68, + 0x10f35: 68, + 0x10f36: 68, + 0x10f37: 68, + 0x10f38: 68, + 0x10f39: 68, + 0x10f3a: 68, + 0x10f3b: 68, + 0x10f3c: 68, + 0x10f3d: 68, + 0x10f3e: 68, + 0x10f3f: 68, + 0x10f40: 68, + 0x10f41: 68, + 0x10f42: 68, + 0x10f43: 68, + 0x10f44: 68, + 0x10f45: 85, + 0x10f51: 68, + 0x10f52: 68, + 0x10f53: 68, + 0x10f54: 82, + 0x110bd: 85, + 0x110cd: 85, + 0x1e900: 68, + 0x1e901: 68, + 0x1e902: 68, + 0x1e903: 68, + 0x1e904: 68, + 0x1e905: 68, + 0x1e906: 68, + 0x1e907: 68, + 0x1e908: 68, + 0x1e909: 68, + 0x1e90a: 68, + 0x1e90b: 68, + 0x1e90c: 68, + 0x1e90d: 68, + 0x1e90e: 68, + 0x1e90f: 68, + 0x1e910: 68, + 0x1e911: 68, + 0x1e912: 68, + 0x1e913: 68, + 0x1e914: 68, + 0x1e915: 68, + 0x1e916: 68, + 0x1e917: 68, + 0x1e918: 68, + 0x1e919: 68, + 0x1e91a: 68, + 0x1e91b: 68, + 0x1e91c: 68, + 0x1e91d: 68, + 0x1e91e: 68, + 0x1e91f: 68, + 0x1e920: 68, + 0x1e921: 68, + 0x1e922: 68, + 0x1e923: 68, + 0x1e924: 68, + 0x1e925: 68, + 0x1e926: 68, + 0x1e927: 68, + 0x1e928: 68, + 0x1e929: 68, + 0x1e92a: 68, + 0x1e92b: 68, + 0x1e92c: 68, + 0x1e92d: 68, + 0x1e92e: 68, + 0x1e92f: 68, + 0x1e930: 68, + 0x1e931: 68, + 0x1e932: 68, + 0x1e933: 68, + 0x1e934: 68, + 0x1e935: 68, + 0x1e936: 68, + 0x1e937: 68, + 0x1e938: 68, + 0x1e939: 68, + 0x1e93a: 68, + 0x1e93b: 68, + 0x1e93c: 68, + 0x1e93d: 68, + 0x1e93e: 68, + 0x1e93f: 68, + 0x1e940: 68, + 0x1e941: 68, + 0x1e942: 68, + 0x1e943: 68, +} +codepoint_classes = { + 'PVALID': ( + 0x2d0000002e, + 0x300000003a, + 0x610000007b, + 0xdf000000f7, + 0xf800000100, + 0x10100000102, + 0x10300000104, + 0x10500000106, + 0x10700000108, + 0x1090000010a, + 0x10b0000010c, + 0x10d0000010e, + 0x10f00000110, + 0x11100000112, + 0x11300000114, + 0x11500000116, + 0x11700000118, + 0x1190000011a, + 0x11b0000011c, + 0x11d0000011e, + 0x11f00000120, + 0x12100000122, + 0x12300000124, + 0x12500000126, + 0x12700000128, + 0x1290000012a, + 0x12b0000012c, + 0x12d0000012e, + 0x12f00000130, + 0x13100000132, + 0x13500000136, + 0x13700000139, + 0x13a0000013b, + 0x13c0000013d, + 0x13e0000013f, + 0x14200000143, + 0x14400000145, + 0x14600000147, + 0x14800000149, + 0x14b0000014c, + 0x14d0000014e, + 0x14f00000150, + 0x15100000152, + 0x15300000154, + 0x15500000156, + 0x15700000158, + 0x1590000015a, + 0x15b0000015c, + 0x15d0000015e, + 0x15f00000160, + 0x16100000162, + 0x16300000164, + 0x16500000166, + 0x16700000168, + 0x1690000016a, + 0x16b0000016c, + 0x16d0000016e, + 0x16f00000170, + 0x17100000172, + 0x17300000174, + 0x17500000176, + 0x17700000178, + 0x17a0000017b, + 0x17c0000017d, + 0x17e0000017f, + 0x18000000181, + 0x18300000184, + 0x18500000186, + 0x18800000189, + 0x18c0000018e, + 0x19200000193, + 0x19500000196, + 0x1990000019c, + 0x19e0000019f, + 0x1a1000001a2, + 0x1a3000001a4, + 0x1a5000001a6, + 0x1a8000001a9, + 0x1aa000001ac, + 0x1ad000001ae, + 0x1b0000001b1, + 0x1b4000001b5, + 0x1b6000001b7, + 0x1b9000001bc, + 0x1bd000001c4, + 0x1ce000001cf, + 0x1d0000001d1, + 0x1d2000001d3, + 0x1d4000001d5, + 0x1d6000001d7, + 0x1d8000001d9, + 0x1da000001db, + 0x1dc000001de, + 0x1df000001e0, + 0x1e1000001e2, + 0x1e3000001e4, + 0x1e5000001e6, + 0x1e7000001e8, + 0x1e9000001ea, + 0x1eb000001ec, + 0x1ed000001ee, + 0x1ef000001f1, + 0x1f5000001f6, + 0x1f9000001fa, + 0x1fb000001fc, + 0x1fd000001fe, + 0x1ff00000200, + 0x20100000202, + 0x20300000204, + 0x20500000206, + 0x20700000208, + 0x2090000020a, + 0x20b0000020c, + 0x20d0000020e, + 0x20f00000210, + 0x21100000212, + 0x21300000214, + 0x21500000216, + 0x21700000218, + 0x2190000021a, + 0x21b0000021c, + 0x21d0000021e, + 0x21f00000220, + 0x22100000222, + 0x22300000224, + 0x22500000226, + 0x22700000228, + 0x2290000022a, + 0x22b0000022c, + 0x22d0000022e, + 0x22f00000230, + 0x23100000232, + 0x2330000023a, + 0x23c0000023d, + 0x23f00000241, + 0x24200000243, + 0x24700000248, + 0x2490000024a, + 0x24b0000024c, + 0x24d0000024e, + 0x24f000002b0, + 0x2b9000002c2, + 0x2c6000002d2, + 0x2ec000002ed, + 0x2ee000002ef, + 0x30000000340, + 0x34200000343, + 0x3460000034f, + 0x35000000370, + 0x37100000372, + 0x37300000374, + 0x37700000378, + 0x37b0000037e, + 0x39000000391, + 0x3ac000003cf, + 0x3d7000003d8, + 0x3d9000003da, + 0x3db000003dc, + 0x3dd000003de, + 0x3df000003e0, + 0x3e1000003e2, + 0x3e3000003e4, + 0x3e5000003e6, + 0x3e7000003e8, + 0x3e9000003ea, + 0x3eb000003ec, + 0x3ed000003ee, + 0x3ef000003f0, + 0x3f3000003f4, + 0x3f8000003f9, + 0x3fb000003fd, + 0x43000000460, + 0x46100000462, + 0x46300000464, + 0x46500000466, + 0x46700000468, + 0x4690000046a, + 0x46b0000046c, + 0x46d0000046e, + 0x46f00000470, + 0x47100000472, + 0x47300000474, + 0x47500000476, + 0x47700000478, + 0x4790000047a, + 0x47b0000047c, + 0x47d0000047e, + 0x47f00000480, + 0x48100000482, + 0x48300000488, + 0x48b0000048c, + 0x48d0000048e, + 0x48f00000490, + 0x49100000492, + 0x49300000494, + 0x49500000496, + 0x49700000498, + 0x4990000049a, + 0x49b0000049c, + 0x49d0000049e, + 0x49f000004a0, + 0x4a1000004a2, + 0x4a3000004a4, + 0x4a5000004a6, + 0x4a7000004a8, + 0x4a9000004aa, + 0x4ab000004ac, + 0x4ad000004ae, + 0x4af000004b0, + 0x4b1000004b2, + 0x4b3000004b4, + 0x4b5000004b6, + 0x4b7000004b8, + 0x4b9000004ba, + 0x4bb000004bc, + 0x4bd000004be, + 0x4bf000004c0, + 0x4c2000004c3, + 0x4c4000004c5, + 0x4c6000004c7, + 0x4c8000004c9, + 0x4ca000004cb, + 0x4cc000004cd, + 0x4ce000004d0, + 0x4d1000004d2, + 0x4d3000004d4, + 0x4d5000004d6, + 0x4d7000004d8, + 0x4d9000004da, + 0x4db000004dc, + 0x4dd000004de, + 0x4df000004e0, + 0x4e1000004e2, + 0x4e3000004e4, + 0x4e5000004e6, + 0x4e7000004e8, + 0x4e9000004ea, + 0x4eb000004ec, + 0x4ed000004ee, + 0x4ef000004f0, + 0x4f1000004f2, + 0x4f3000004f4, + 0x4f5000004f6, + 0x4f7000004f8, + 0x4f9000004fa, + 0x4fb000004fc, + 0x4fd000004fe, + 0x4ff00000500, + 0x50100000502, + 0x50300000504, + 0x50500000506, + 0x50700000508, + 0x5090000050a, + 0x50b0000050c, + 0x50d0000050e, + 0x50f00000510, + 0x51100000512, + 0x51300000514, + 0x51500000516, + 0x51700000518, + 0x5190000051a, + 0x51b0000051c, + 0x51d0000051e, + 0x51f00000520, + 0x52100000522, + 0x52300000524, + 0x52500000526, + 0x52700000528, + 0x5290000052a, + 0x52b0000052c, + 0x52d0000052e, + 0x52f00000530, + 0x5590000055a, + 0x56000000587, + 0x58800000589, + 0x591000005be, + 0x5bf000005c0, + 0x5c1000005c3, + 0x5c4000005c6, + 0x5c7000005c8, + 0x5d0000005eb, + 0x5ef000005f3, + 0x6100000061b, + 0x62000000640, + 0x64100000660, + 0x66e00000675, + 0x679000006d4, + 0x6d5000006dd, + 0x6df000006e9, + 0x6ea000006f0, + 0x6fa00000700, + 0x7100000074b, + 0x74d000007b2, + 0x7c0000007f6, + 0x7fd000007fe, + 0x8000000082e, + 0x8400000085c, + 0x8600000086b, + 0x8a0000008b5, + 0x8b6000008be, + 0x8d3000008e2, + 0x8e300000958, + 0x96000000964, + 0x96600000970, + 0x97100000984, + 0x9850000098d, + 0x98f00000991, + 0x993000009a9, + 0x9aa000009b1, + 0x9b2000009b3, + 0x9b6000009ba, + 0x9bc000009c5, + 0x9c7000009c9, + 0x9cb000009cf, + 0x9d7000009d8, + 0x9e0000009e4, + 0x9e6000009f2, + 0x9fc000009fd, + 0x9fe000009ff, + 0xa0100000a04, + 0xa0500000a0b, + 0xa0f00000a11, + 0xa1300000a29, + 0xa2a00000a31, + 0xa3200000a33, + 0xa3500000a36, + 0xa3800000a3a, + 0xa3c00000a3d, + 0xa3e00000a43, + 0xa4700000a49, + 0xa4b00000a4e, + 0xa5100000a52, + 0xa5c00000a5d, + 0xa6600000a76, + 0xa8100000a84, + 0xa8500000a8e, + 0xa8f00000a92, + 0xa9300000aa9, + 0xaaa00000ab1, + 0xab200000ab4, + 0xab500000aba, + 0xabc00000ac6, + 0xac700000aca, + 0xacb00000ace, + 0xad000000ad1, + 0xae000000ae4, + 0xae600000af0, + 0xaf900000b00, + 0xb0100000b04, + 0xb0500000b0d, + 0xb0f00000b11, + 0xb1300000b29, + 0xb2a00000b31, + 0xb3200000b34, + 0xb3500000b3a, + 0xb3c00000b45, + 0xb4700000b49, + 0xb4b00000b4e, + 0xb5600000b58, + 0xb5f00000b64, + 0xb6600000b70, + 0xb7100000b72, + 0xb8200000b84, + 0xb8500000b8b, + 0xb8e00000b91, + 0xb9200000b96, + 0xb9900000b9b, + 0xb9c00000b9d, + 0xb9e00000ba0, + 0xba300000ba5, + 0xba800000bab, + 0xbae00000bba, + 0xbbe00000bc3, + 0xbc600000bc9, + 0xbca00000bce, + 0xbd000000bd1, + 0xbd700000bd8, + 0xbe600000bf0, + 0xc0000000c0d, + 0xc0e00000c11, + 0xc1200000c29, + 0xc2a00000c3a, + 0xc3d00000c45, + 0xc4600000c49, + 0xc4a00000c4e, + 0xc5500000c57, + 0xc5800000c5b, + 0xc6000000c64, + 0xc6600000c70, + 0xc8000000c84, + 0xc8500000c8d, + 0xc8e00000c91, + 0xc9200000ca9, + 0xcaa00000cb4, + 0xcb500000cba, + 0xcbc00000cc5, + 0xcc600000cc9, + 0xcca00000cce, + 0xcd500000cd7, + 0xcde00000cdf, + 0xce000000ce4, + 0xce600000cf0, + 0xcf100000cf3, + 0xd0000000d04, + 0xd0500000d0d, + 0xd0e00000d11, + 0xd1200000d45, + 0xd4600000d49, + 0xd4a00000d4f, + 0xd5400000d58, + 0xd5f00000d64, + 0xd6600000d70, + 0xd7a00000d80, + 0xd8200000d84, + 0xd8500000d97, + 0xd9a00000db2, + 0xdb300000dbc, + 0xdbd00000dbe, + 0xdc000000dc7, + 0xdca00000dcb, + 0xdcf00000dd5, + 0xdd600000dd7, + 0xdd800000de0, + 0xde600000df0, + 0xdf200000df4, + 0xe0100000e33, + 0xe3400000e3b, + 0xe4000000e4f, + 0xe5000000e5a, + 0xe8100000e83, + 0xe8400000e85, + 0xe8700000e89, + 0xe8a00000e8b, + 0xe8d00000e8e, + 0xe9400000e98, + 0xe9900000ea0, + 0xea100000ea4, + 0xea500000ea6, + 0xea700000ea8, + 0xeaa00000eac, + 0xead00000eb3, + 0xeb400000eba, + 0xebb00000ebe, + 0xec000000ec5, + 0xec600000ec7, + 0xec800000ece, + 0xed000000eda, + 0xede00000ee0, + 0xf0000000f01, + 0xf0b00000f0c, + 0xf1800000f1a, + 0xf2000000f2a, + 0xf3500000f36, + 0xf3700000f38, + 0xf3900000f3a, + 0xf3e00000f43, + 0xf4400000f48, + 0xf4900000f4d, + 0xf4e00000f52, + 0xf5300000f57, + 0xf5800000f5c, + 0xf5d00000f69, + 0xf6a00000f6d, + 0xf7100000f73, + 0xf7400000f75, + 0xf7a00000f81, + 0xf8200000f85, + 0xf8600000f93, + 0xf9400000f98, + 0xf9900000f9d, + 0xf9e00000fa2, + 0xfa300000fa7, + 0xfa800000fac, + 0xfad00000fb9, + 0xfba00000fbd, + 0xfc600000fc7, + 0x10000000104a, + 0x10500000109e, + 0x10d0000010fb, + 0x10fd00001100, + 0x120000001249, + 0x124a0000124e, + 0x125000001257, + 0x125800001259, + 0x125a0000125e, + 0x126000001289, + 0x128a0000128e, + 0x1290000012b1, + 0x12b2000012b6, + 0x12b8000012bf, + 0x12c0000012c1, + 0x12c2000012c6, + 0x12c8000012d7, + 0x12d800001311, + 0x131200001316, + 0x13180000135b, + 0x135d00001360, + 0x138000001390, + 0x13a0000013f6, + 0x14010000166d, + 0x166f00001680, + 0x16810000169b, + 0x16a0000016eb, + 0x16f1000016f9, + 0x17000000170d, + 0x170e00001715, + 0x172000001735, + 0x174000001754, + 0x17600000176d, + 0x176e00001771, + 0x177200001774, + 0x1780000017b4, + 0x17b6000017d4, + 0x17d7000017d8, + 0x17dc000017de, + 0x17e0000017ea, + 0x18100000181a, + 0x182000001879, + 0x1880000018ab, + 0x18b0000018f6, + 0x19000000191f, + 0x19200000192c, + 0x19300000193c, + 0x19460000196e, + 0x197000001975, + 0x1980000019ac, + 0x19b0000019ca, + 0x19d0000019da, + 0x1a0000001a1c, + 0x1a2000001a5f, + 0x1a6000001a7d, + 0x1a7f00001a8a, + 0x1a9000001a9a, + 0x1aa700001aa8, + 0x1ab000001abe, + 0x1b0000001b4c, + 0x1b5000001b5a, + 0x1b6b00001b74, + 0x1b8000001bf4, + 0x1c0000001c38, + 0x1c4000001c4a, + 0x1c4d00001c7e, + 0x1cd000001cd3, + 0x1cd400001cfa, + 0x1d0000001d2c, + 0x1d2f00001d30, + 0x1d3b00001d3c, + 0x1d4e00001d4f, + 0x1d6b00001d78, + 0x1d7900001d9b, + 0x1dc000001dfa, + 0x1dfb00001e00, + 0x1e0100001e02, + 0x1e0300001e04, + 0x1e0500001e06, + 0x1e0700001e08, + 0x1e0900001e0a, + 0x1e0b00001e0c, + 0x1e0d00001e0e, + 0x1e0f00001e10, + 0x1e1100001e12, + 0x1e1300001e14, + 0x1e1500001e16, + 0x1e1700001e18, + 0x1e1900001e1a, + 0x1e1b00001e1c, + 0x1e1d00001e1e, + 0x1e1f00001e20, + 0x1e2100001e22, + 0x1e2300001e24, + 0x1e2500001e26, + 0x1e2700001e28, + 0x1e2900001e2a, + 0x1e2b00001e2c, + 0x1e2d00001e2e, + 0x1e2f00001e30, + 0x1e3100001e32, + 0x1e3300001e34, + 0x1e3500001e36, + 0x1e3700001e38, + 0x1e3900001e3a, + 0x1e3b00001e3c, + 0x1e3d00001e3e, + 0x1e3f00001e40, + 0x1e4100001e42, + 0x1e4300001e44, + 0x1e4500001e46, + 0x1e4700001e48, + 0x1e4900001e4a, + 0x1e4b00001e4c, + 0x1e4d00001e4e, + 0x1e4f00001e50, + 0x1e5100001e52, + 0x1e5300001e54, + 0x1e5500001e56, + 0x1e5700001e58, + 0x1e5900001e5a, + 0x1e5b00001e5c, + 0x1e5d00001e5e, + 0x1e5f00001e60, + 0x1e6100001e62, + 0x1e6300001e64, + 0x1e6500001e66, + 0x1e6700001e68, + 0x1e6900001e6a, + 0x1e6b00001e6c, + 0x1e6d00001e6e, + 0x1e6f00001e70, + 0x1e7100001e72, + 0x1e7300001e74, + 0x1e7500001e76, + 0x1e7700001e78, + 0x1e7900001e7a, + 0x1e7b00001e7c, + 0x1e7d00001e7e, + 0x1e7f00001e80, + 0x1e8100001e82, + 0x1e8300001e84, + 0x1e8500001e86, + 0x1e8700001e88, + 0x1e8900001e8a, + 0x1e8b00001e8c, + 0x1e8d00001e8e, + 0x1e8f00001e90, + 0x1e9100001e92, + 0x1e9300001e94, + 0x1e9500001e9a, + 0x1e9c00001e9e, + 0x1e9f00001ea0, + 0x1ea100001ea2, + 0x1ea300001ea4, + 0x1ea500001ea6, + 0x1ea700001ea8, + 0x1ea900001eaa, + 0x1eab00001eac, + 0x1ead00001eae, + 0x1eaf00001eb0, + 0x1eb100001eb2, + 0x1eb300001eb4, + 0x1eb500001eb6, + 0x1eb700001eb8, + 0x1eb900001eba, + 0x1ebb00001ebc, + 0x1ebd00001ebe, + 0x1ebf00001ec0, + 0x1ec100001ec2, + 0x1ec300001ec4, + 0x1ec500001ec6, + 0x1ec700001ec8, + 0x1ec900001eca, + 0x1ecb00001ecc, + 0x1ecd00001ece, + 0x1ecf00001ed0, + 0x1ed100001ed2, + 0x1ed300001ed4, + 0x1ed500001ed6, + 0x1ed700001ed8, + 0x1ed900001eda, + 0x1edb00001edc, + 0x1edd00001ede, + 0x1edf00001ee0, + 0x1ee100001ee2, + 0x1ee300001ee4, + 0x1ee500001ee6, + 0x1ee700001ee8, + 0x1ee900001eea, + 0x1eeb00001eec, + 0x1eed00001eee, + 0x1eef00001ef0, + 0x1ef100001ef2, + 0x1ef300001ef4, + 0x1ef500001ef6, + 0x1ef700001ef8, + 0x1ef900001efa, + 0x1efb00001efc, + 0x1efd00001efe, + 0x1eff00001f08, + 0x1f1000001f16, + 0x1f2000001f28, + 0x1f3000001f38, + 0x1f4000001f46, + 0x1f5000001f58, + 0x1f6000001f68, + 0x1f7000001f71, + 0x1f7200001f73, + 0x1f7400001f75, + 0x1f7600001f77, + 0x1f7800001f79, + 0x1f7a00001f7b, + 0x1f7c00001f7d, + 0x1fb000001fb2, + 0x1fb600001fb7, + 0x1fc600001fc7, + 0x1fd000001fd3, + 0x1fd600001fd8, + 0x1fe000001fe3, + 0x1fe400001fe8, + 0x1ff600001ff7, + 0x214e0000214f, + 0x218400002185, + 0x2c3000002c5f, + 0x2c6100002c62, + 0x2c6500002c67, + 0x2c6800002c69, + 0x2c6a00002c6b, + 0x2c6c00002c6d, + 0x2c7100002c72, + 0x2c7300002c75, + 0x2c7600002c7c, + 0x2c8100002c82, + 0x2c8300002c84, + 0x2c8500002c86, + 0x2c8700002c88, + 0x2c8900002c8a, + 0x2c8b00002c8c, + 0x2c8d00002c8e, + 0x2c8f00002c90, + 0x2c9100002c92, + 0x2c9300002c94, + 0x2c9500002c96, + 0x2c9700002c98, + 0x2c9900002c9a, + 0x2c9b00002c9c, + 0x2c9d00002c9e, + 0x2c9f00002ca0, + 0x2ca100002ca2, + 0x2ca300002ca4, + 0x2ca500002ca6, + 0x2ca700002ca8, + 0x2ca900002caa, + 0x2cab00002cac, + 0x2cad00002cae, + 0x2caf00002cb0, + 0x2cb100002cb2, + 0x2cb300002cb4, + 0x2cb500002cb6, + 0x2cb700002cb8, + 0x2cb900002cba, + 0x2cbb00002cbc, + 0x2cbd00002cbe, + 0x2cbf00002cc0, + 0x2cc100002cc2, + 0x2cc300002cc4, + 0x2cc500002cc6, + 0x2cc700002cc8, + 0x2cc900002cca, + 0x2ccb00002ccc, + 0x2ccd00002cce, + 0x2ccf00002cd0, + 0x2cd100002cd2, + 0x2cd300002cd4, + 0x2cd500002cd6, + 0x2cd700002cd8, + 0x2cd900002cda, + 0x2cdb00002cdc, + 0x2cdd00002cde, + 0x2cdf00002ce0, + 0x2ce100002ce2, + 0x2ce300002ce5, + 0x2cec00002ced, + 0x2cee00002cf2, + 0x2cf300002cf4, + 0x2d0000002d26, + 0x2d2700002d28, + 0x2d2d00002d2e, + 0x2d3000002d68, + 0x2d7f00002d97, + 0x2da000002da7, + 0x2da800002daf, + 0x2db000002db7, + 0x2db800002dbf, + 0x2dc000002dc7, + 0x2dc800002dcf, + 0x2dd000002dd7, + 0x2dd800002ddf, + 0x2de000002e00, + 0x2e2f00002e30, + 0x300500003008, + 0x302a0000302e, + 0x303c0000303d, + 0x304100003097, + 0x30990000309b, + 0x309d0000309f, + 0x30a1000030fb, + 0x30fc000030ff, + 0x310500003130, + 0x31a0000031bb, + 0x31f000003200, + 0x340000004db6, + 0x4e0000009ff0, + 0xa0000000a48d, + 0xa4d00000a4fe, + 0xa5000000a60d, + 0xa6100000a62c, + 0xa6410000a642, + 0xa6430000a644, + 0xa6450000a646, + 0xa6470000a648, + 0xa6490000a64a, + 0xa64b0000a64c, + 0xa64d0000a64e, + 0xa64f0000a650, + 0xa6510000a652, + 0xa6530000a654, + 0xa6550000a656, + 0xa6570000a658, + 0xa6590000a65a, + 0xa65b0000a65c, + 0xa65d0000a65e, + 0xa65f0000a660, + 0xa6610000a662, + 0xa6630000a664, + 0xa6650000a666, + 0xa6670000a668, + 0xa6690000a66a, + 0xa66b0000a66c, + 0xa66d0000a670, + 0xa6740000a67e, + 0xa67f0000a680, + 0xa6810000a682, + 0xa6830000a684, + 0xa6850000a686, + 0xa6870000a688, + 0xa6890000a68a, + 0xa68b0000a68c, + 0xa68d0000a68e, + 0xa68f0000a690, + 0xa6910000a692, + 0xa6930000a694, + 0xa6950000a696, + 0xa6970000a698, + 0xa6990000a69a, + 0xa69b0000a69c, + 0xa69e0000a6e6, + 0xa6f00000a6f2, + 0xa7170000a720, + 0xa7230000a724, + 0xa7250000a726, + 0xa7270000a728, + 0xa7290000a72a, + 0xa72b0000a72c, + 0xa72d0000a72e, + 0xa72f0000a732, + 0xa7330000a734, + 0xa7350000a736, + 0xa7370000a738, + 0xa7390000a73a, + 0xa73b0000a73c, + 0xa73d0000a73e, + 0xa73f0000a740, + 0xa7410000a742, + 0xa7430000a744, + 0xa7450000a746, + 0xa7470000a748, + 0xa7490000a74a, + 0xa74b0000a74c, + 0xa74d0000a74e, + 0xa74f0000a750, + 0xa7510000a752, + 0xa7530000a754, + 0xa7550000a756, + 0xa7570000a758, + 0xa7590000a75a, + 0xa75b0000a75c, + 0xa75d0000a75e, + 0xa75f0000a760, + 0xa7610000a762, + 0xa7630000a764, + 0xa7650000a766, + 0xa7670000a768, + 0xa7690000a76a, + 0xa76b0000a76c, + 0xa76d0000a76e, + 0xa76f0000a770, + 0xa7710000a779, + 0xa77a0000a77b, + 0xa77c0000a77d, + 0xa77f0000a780, + 0xa7810000a782, + 0xa7830000a784, + 0xa7850000a786, + 0xa7870000a789, + 0xa78c0000a78d, + 0xa78e0000a790, + 0xa7910000a792, + 0xa7930000a796, + 0xa7970000a798, + 0xa7990000a79a, + 0xa79b0000a79c, + 0xa79d0000a79e, + 0xa79f0000a7a0, + 0xa7a10000a7a2, + 0xa7a30000a7a4, + 0xa7a50000a7a6, + 0xa7a70000a7a8, + 0xa7a90000a7aa, + 0xa7af0000a7b0, + 0xa7b50000a7b6, + 0xa7b70000a7b8, + 0xa7b90000a7ba, + 0xa7f70000a7f8, + 0xa7fa0000a828, + 0xa8400000a874, + 0xa8800000a8c6, + 0xa8d00000a8da, + 0xa8e00000a8f8, + 0xa8fb0000a8fc, + 0xa8fd0000a92e, + 0xa9300000a954, + 0xa9800000a9c1, + 0xa9cf0000a9da, + 0xa9e00000a9ff, + 0xaa000000aa37, + 0xaa400000aa4e, + 0xaa500000aa5a, + 0xaa600000aa77, + 0xaa7a0000aac3, + 0xaadb0000aade, + 0xaae00000aaf0, + 0xaaf20000aaf7, + 0xab010000ab07, + 0xab090000ab0f, + 0xab110000ab17, + 0xab200000ab27, + 0xab280000ab2f, + 0xab300000ab5b, + 0xab600000ab66, + 0xabc00000abeb, + 0xabec0000abee, + 0xabf00000abfa, + 0xac000000d7a4, + 0xfa0e0000fa10, + 0xfa110000fa12, + 0xfa130000fa15, + 0xfa1f0000fa20, + 0xfa210000fa22, + 0xfa230000fa25, + 0xfa270000fa2a, + 0xfb1e0000fb1f, + 0xfe200000fe30, + 0xfe730000fe74, + 0x100000001000c, + 0x1000d00010027, + 0x100280001003b, + 0x1003c0001003e, + 0x1003f0001004e, + 0x100500001005e, + 0x10080000100fb, + 0x101fd000101fe, + 0x102800001029d, + 0x102a0000102d1, + 0x102e0000102e1, + 0x1030000010320, + 0x1032d00010341, + 0x103420001034a, + 0x103500001037b, + 0x103800001039e, + 0x103a0000103c4, + 0x103c8000103d0, + 0x104280001049e, + 0x104a0000104aa, + 0x104d8000104fc, + 0x1050000010528, + 0x1053000010564, + 0x1060000010737, + 0x1074000010756, + 0x1076000010768, + 0x1080000010806, + 0x1080800010809, + 0x1080a00010836, + 0x1083700010839, + 0x1083c0001083d, + 0x1083f00010856, + 0x1086000010877, + 0x108800001089f, + 0x108e0000108f3, + 0x108f4000108f6, + 0x1090000010916, + 0x109200001093a, + 0x10980000109b8, + 0x109be000109c0, + 0x10a0000010a04, + 0x10a0500010a07, + 0x10a0c00010a14, + 0x10a1500010a18, + 0x10a1900010a36, + 0x10a3800010a3b, + 0x10a3f00010a40, + 0x10a6000010a7d, + 0x10a8000010a9d, + 0x10ac000010ac8, + 0x10ac900010ae7, + 0x10b0000010b36, + 0x10b4000010b56, + 0x10b6000010b73, + 0x10b8000010b92, + 0x10c0000010c49, + 0x10cc000010cf3, + 0x10d0000010d28, + 0x10d3000010d3a, + 0x10f0000010f1d, + 0x10f2700010f28, + 0x10f3000010f51, + 0x1100000011047, + 0x1106600011070, + 0x1107f000110bb, + 0x110d0000110e9, + 0x110f0000110fa, + 0x1110000011135, + 0x1113600011140, + 0x1114400011147, + 0x1115000011174, + 0x1117600011177, + 0x11180000111c5, + 0x111c9000111cd, + 0x111d0000111db, + 0x111dc000111dd, + 0x1120000011212, + 0x1121300011238, + 0x1123e0001123f, + 0x1128000011287, + 0x1128800011289, + 0x1128a0001128e, + 0x1128f0001129e, + 0x1129f000112a9, + 0x112b0000112eb, + 0x112f0000112fa, + 0x1130000011304, + 0x113050001130d, + 0x1130f00011311, + 0x1131300011329, + 0x1132a00011331, + 0x1133200011334, + 0x113350001133a, + 0x1133b00011345, + 0x1134700011349, + 0x1134b0001134e, + 0x1135000011351, + 0x1135700011358, + 0x1135d00011364, + 0x113660001136d, + 0x1137000011375, + 0x114000001144b, + 0x114500001145a, + 0x1145e0001145f, + 0x11480000114c6, + 0x114c7000114c8, + 0x114d0000114da, + 0x11580000115b6, + 0x115b8000115c1, + 0x115d8000115de, + 0x1160000011641, + 0x1164400011645, + 0x116500001165a, + 0x11680000116b8, + 0x116c0000116ca, + 0x117000001171b, + 0x1171d0001172c, + 0x117300001173a, + 0x118000001183b, + 0x118c0000118ea, + 0x118ff00011900, + 0x11a0000011a3f, + 0x11a4700011a48, + 0x11a5000011a84, + 0x11a8600011a9a, + 0x11a9d00011a9e, + 0x11ac000011af9, + 0x11c0000011c09, + 0x11c0a00011c37, + 0x11c3800011c41, + 0x11c5000011c5a, + 0x11c7200011c90, + 0x11c9200011ca8, + 0x11ca900011cb7, + 0x11d0000011d07, + 0x11d0800011d0a, + 0x11d0b00011d37, + 0x11d3a00011d3b, + 0x11d3c00011d3e, + 0x11d3f00011d48, + 0x11d5000011d5a, + 0x11d6000011d66, + 0x11d6700011d69, + 0x11d6a00011d8f, + 0x11d9000011d92, + 0x11d9300011d99, + 0x11da000011daa, + 0x11ee000011ef7, + 0x120000001239a, + 0x1248000012544, + 0x130000001342f, + 0x1440000014647, + 0x1680000016a39, + 0x16a4000016a5f, + 0x16a6000016a6a, + 0x16ad000016aee, + 0x16af000016af5, + 0x16b0000016b37, + 0x16b4000016b44, + 0x16b5000016b5a, + 0x16b6300016b78, + 0x16b7d00016b90, + 0x16e6000016e80, + 0x16f0000016f45, + 0x16f5000016f7f, + 0x16f8f00016fa0, + 0x16fe000016fe2, + 0x17000000187f2, + 0x1880000018af3, + 0x1b0000001b11f, + 0x1b1700001b2fc, + 0x1bc000001bc6b, + 0x1bc700001bc7d, + 0x1bc800001bc89, + 0x1bc900001bc9a, + 0x1bc9d0001bc9f, + 0x1da000001da37, + 0x1da3b0001da6d, + 0x1da750001da76, + 0x1da840001da85, + 0x1da9b0001daa0, + 0x1daa10001dab0, + 0x1e0000001e007, + 0x1e0080001e019, + 0x1e01b0001e022, + 0x1e0230001e025, + 0x1e0260001e02b, + 0x1e8000001e8c5, + 0x1e8d00001e8d7, + 0x1e9220001e94b, + 0x1e9500001e95a, + 0x200000002a6d7, + 0x2a7000002b735, + 0x2b7400002b81e, + 0x2b8200002cea2, + 0x2ceb00002ebe1, + ), + 'CONTEXTJ': ( + 0x200c0000200e, + ), + 'CONTEXTO': ( + 0xb7000000b8, + 0x37500000376, + 0x5f3000005f5, + 0x6600000066a, + 0x6f0000006fa, + 0x30fb000030fc, + ), +} diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/intranges.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/intranges.py index 9339dc5e57cff8c34ee4938234fd5ceaf7b0d004..fa8a735662d0afc1950ba75bc57e99e8480dac88 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/intranges.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/intranges.py @@ -1,3 +1,53 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d8d65a7164841610fead36a8d9905039860a0c58e8f53819a7506f22853f3b1 -size 1749 +""" +Given a list of integers, made up of (hopefully) a small number of long runs +of consecutive integers, compute a representation of the form +((start1, end1), (start2, end2) ...). Then answer the question "was x present +in the original list?" in time O(log(# runs)). +""" + +import bisect + +def intranges_from_list(list_): + """Represent a list of integers as a sequence of ranges: + ((start_0, end_0), (start_1, end_1), ...), such that the original + integers are exactly those x such that start_i <= x < end_i for some i. + + Ranges are encoded as single integers (start << 32 | end), not as tuples. + """ + + sorted_list = sorted(list_) + ranges = [] + last_write = -1 + for i in range(len(sorted_list)): + if i+1 < len(sorted_list): + if sorted_list[i] == sorted_list[i+1]-1: + continue + current_range = sorted_list[last_write+1:i+1] + ranges.append(_encode_range(current_range[0], current_range[-1] + 1)) + last_write = i + + return tuple(ranges) + +def _encode_range(start, end): + return (start << 32) | end + +def _decode_range(r): + return (r >> 32), (r & ((1 << 32) - 1)) + + +def intranges_contain(int_, ranges): + """Determine if `int_` falls into one of the ranges in `ranges`.""" + tuple_ = _encode_range(int_, 0) + pos = bisect.bisect_left(ranges, tuple_) + # we could be immediately ahead of a tuple (start, end) + # with start < int_ <= end + if pos > 0: + left, right = _decode_range(ranges[pos-1]) + if left <= int_ < right: + return True + # or we could be immediately behind a tuple (int_, end) + if pos < len(ranges): + left, _ = _decode_range(ranges[pos]) + if left == int_: + return True + return False diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/package_data.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/package_data.py index 61d1003765d4be7d171ac65b5c93117890b6bf34..257e8989393055bec9bf86010828fb8bab7a9645 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/package_data.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/package_data.py @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:908cde28a5c4a2e5cb478b2bab07fd437ceff8d7df2923b3e5a4833890113c1d -size 21 +__version__ = '2.8' + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/uts46data.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/uts46data.py index 9ae51f07e474aa7f9a09e8f3268c6fef2cf8fb46..a68ed4c0ec3d3a5ffd400dbe8ffb0ec470eb2b66 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/uts46data.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/idna/uts46data.py @@ -1,3 +1,8205 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0bc8d675a416a20658fdcc5ccb15177f3fb27c32445c8038ac8c4c5947fe0c6 -size 198292 +# This file is automatically generated by tools/idna-data +# vim: set fileencoding=utf-8 : + +"""IDNA Mapping Table from UTS46.""" + + +__version__ = "11.0.0" +def _seg_0(): + return [ + (0x0, '3'), + (0x1, '3'), + (0x2, '3'), + (0x3, '3'), + (0x4, '3'), + (0x5, '3'), + (0x6, '3'), + (0x7, '3'), + (0x8, '3'), + (0x9, '3'), + (0xA, '3'), + (0xB, '3'), + (0xC, '3'), + (0xD, '3'), + (0xE, '3'), + (0xF, '3'), + (0x10, '3'), + (0x11, '3'), + (0x12, '3'), + (0x13, '3'), + (0x14, '3'), + (0x15, '3'), + (0x16, '3'), + (0x17, '3'), + (0x18, '3'), + (0x19, '3'), + (0x1A, '3'), + (0x1B, '3'), + (0x1C, '3'), + (0x1D, '3'), + (0x1E, '3'), + (0x1F, '3'), + (0x20, '3'), + (0x21, '3'), + (0x22, '3'), + (0x23, '3'), + (0x24, '3'), + (0x25, '3'), + (0x26, '3'), + (0x27, '3'), + (0x28, '3'), + (0x29, '3'), + (0x2A, '3'), + (0x2B, '3'), + (0x2C, '3'), + (0x2D, 'V'), + (0x2E, 'V'), + (0x2F, '3'), + (0x30, 'V'), + (0x31, 'V'), + (0x32, 'V'), + (0x33, 'V'), + (0x34, 'V'), + (0x35, 'V'), + (0x36, 'V'), + (0x37, 'V'), + (0x38, 'V'), + (0x39, 'V'), + (0x3A, '3'), + (0x3B, '3'), + (0x3C, '3'), + (0x3D, '3'), + (0x3E, '3'), + (0x3F, '3'), + (0x40, '3'), + (0x41, 'M', u'a'), + (0x42, 'M', u'b'), + (0x43, 'M', u'c'), + (0x44, 'M', u'd'), + (0x45, 'M', u'e'), + (0x46, 'M', u'f'), + (0x47, 'M', u'g'), + (0x48, 'M', u'h'), + (0x49, 'M', u'i'), + (0x4A, 'M', u'j'), + (0x4B, 'M', u'k'), + (0x4C, 'M', u'l'), + (0x4D, 'M', u'm'), + (0x4E, 'M', u'n'), + (0x4F, 'M', u'o'), + (0x50, 'M', u'p'), + (0x51, 'M', u'q'), + (0x52, 'M', u'r'), + (0x53, 'M', u's'), + (0x54, 'M', u't'), + (0x55, 'M', u'u'), + (0x56, 'M', u'v'), + (0x57, 'M', u'w'), + (0x58, 'M', u'x'), + (0x59, 'M', u'y'), + (0x5A, 'M', u'z'), + (0x5B, '3'), + (0x5C, '3'), + (0x5D, '3'), + (0x5E, '3'), + (0x5F, '3'), + (0x60, '3'), + (0x61, 'V'), + (0x62, 'V'), + (0x63, 'V'), + ] + +def _seg_1(): + return [ + (0x64, 'V'), + (0x65, 'V'), + (0x66, 'V'), + (0x67, 'V'), + (0x68, 'V'), + (0x69, 'V'), + (0x6A, 'V'), + (0x6B, 'V'), + (0x6C, 'V'), + (0x6D, 'V'), + (0x6E, 'V'), + (0x6F, 'V'), + (0x70, 'V'), + (0x71, 'V'), + (0x72, 'V'), + (0x73, 'V'), + (0x74, 'V'), + (0x75, 'V'), + (0x76, 'V'), + (0x77, 'V'), + (0x78, 'V'), + (0x79, 'V'), + (0x7A, 'V'), + (0x7B, '3'), + (0x7C, '3'), + (0x7D, '3'), + (0x7E, '3'), + (0x7F, '3'), + (0x80, 'X'), + (0x81, 'X'), + (0x82, 'X'), + (0x83, 'X'), + (0x84, 'X'), + (0x85, 'X'), + (0x86, 'X'), + (0x87, 'X'), + (0x88, 'X'), + (0x89, 'X'), + (0x8A, 'X'), + (0x8B, 'X'), + (0x8C, 'X'), + (0x8D, 'X'), + (0x8E, 'X'), + (0x8F, 'X'), + (0x90, 'X'), + (0x91, 'X'), + (0x92, 'X'), + (0x93, 'X'), + (0x94, 'X'), + (0x95, 'X'), + (0x96, 'X'), + (0x97, 'X'), + (0x98, 'X'), + (0x99, 'X'), + (0x9A, 'X'), + (0x9B, 'X'), + (0x9C, 'X'), + (0x9D, 'X'), + (0x9E, 'X'), + (0x9F, 'X'), + (0xA0, '3', u' '), + (0xA1, 'V'), + (0xA2, 'V'), + (0xA3, 'V'), + (0xA4, 'V'), + (0xA5, 'V'), + (0xA6, 'V'), + (0xA7, 'V'), + (0xA8, '3', u' ̈'), + (0xA9, 'V'), + (0xAA, 'M', u'a'), + (0xAB, 'V'), + (0xAC, 'V'), + (0xAD, 'I'), + (0xAE, 'V'), + (0xAF, '3', u' ̄'), + (0xB0, 'V'), + (0xB1, 'V'), + (0xB2, 'M', u'2'), + (0xB3, 'M', u'3'), + (0xB4, '3', u' ́'), + (0xB5, 'M', u'μ'), + (0xB6, 'V'), + (0xB7, 'V'), + (0xB8, '3', u' ̧'), + (0xB9, 'M', u'1'), + (0xBA, 'M', u'o'), + (0xBB, 'V'), + (0xBC, 'M', u'1⁄4'), + (0xBD, 'M', u'1⁄2'), + (0xBE, 'M', u'3⁄4'), + (0xBF, 'V'), + (0xC0, 'M', u'à'), + (0xC1, 'M', u'á'), + (0xC2, 'M', u'â'), + (0xC3, 'M', u'ã'), + (0xC4, 'M', u'ä'), + (0xC5, 'M', u'å'), + (0xC6, 'M', u'æ'), + (0xC7, 'M', u'ç'), + ] + +def _seg_2(): + return [ + (0xC8, 'M', u'è'), + (0xC9, 'M', u'é'), + (0xCA, 'M', u'ê'), + (0xCB, 'M', u'ë'), + (0xCC, 'M', u'ì'), + (0xCD, 'M', u'í'), + (0xCE, 'M', u'î'), + (0xCF, 'M', u'ï'), + (0xD0, 'M', u'ð'), + (0xD1, 'M', u'ñ'), + (0xD2, 'M', u'ò'), + (0xD3, 'M', u'ó'), + (0xD4, 'M', u'ô'), + (0xD5, 'M', u'õ'), + (0xD6, 'M', u'ö'), + (0xD7, 'V'), + (0xD8, 'M', u'ø'), + (0xD9, 'M', u'ù'), + (0xDA, 'M', u'ú'), + (0xDB, 'M', u'û'), + (0xDC, 'M', u'ü'), + (0xDD, 'M', u'ý'), + (0xDE, 'M', u'þ'), + (0xDF, 'D', u'ss'), + (0xE0, 'V'), + (0xE1, 'V'), + (0xE2, 'V'), + (0xE3, 'V'), + (0xE4, 'V'), + (0xE5, 'V'), + (0xE6, 'V'), + (0xE7, 'V'), + (0xE8, 'V'), + (0xE9, 'V'), + (0xEA, 'V'), + (0xEB, 'V'), + (0xEC, 'V'), + (0xED, 'V'), + (0xEE, 'V'), + (0xEF, 'V'), + (0xF0, 'V'), + (0xF1, 'V'), + (0xF2, 'V'), + (0xF3, 'V'), + (0xF4, 'V'), + (0xF5, 'V'), + (0xF6, 'V'), + (0xF7, 'V'), + (0xF8, 'V'), + (0xF9, 'V'), + (0xFA, 'V'), + (0xFB, 'V'), + (0xFC, 'V'), + (0xFD, 'V'), + (0xFE, 'V'), + (0xFF, 'V'), + (0x100, 'M', u'ā'), + (0x101, 'V'), + (0x102, 'M', u'ă'), + (0x103, 'V'), + (0x104, 'M', u'ą'), + (0x105, 'V'), + (0x106, 'M', u'ć'), + (0x107, 'V'), + (0x108, 'M', u'ĉ'), + (0x109, 'V'), + (0x10A, 'M', u'ċ'), + (0x10B, 'V'), + (0x10C, 'M', u'č'), + (0x10D, 'V'), + (0x10E, 'M', u'ď'), + (0x10F, 'V'), + (0x110, 'M', u'đ'), + (0x111, 'V'), + (0x112, 'M', u'ē'), + (0x113, 'V'), + (0x114, 'M', u'ĕ'), + (0x115, 'V'), + (0x116, 'M', u'ė'), + (0x117, 'V'), + (0x118, 'M', u'ę'), + (0x119, 'V'), + (0x11A, 'M', u'ě'), + (0x11B, 'V'), + (0x11C, 'M', u'ĝ'), + (0x11D, 'V'), + (0x11E, 'M', u'ğ'), + (0x11F, 'V'), + (0x120, 'M', u'ġ'), + (0x121, 'V'), + (0x122, 'M', u'ģ'), + (0x123, 'V'), + (0x124, 'M', u'ĥ'), + (0x125, 'V'), + (0x126, 'M', u'ħ'), + (0x127, 'V'), + (0x128, 'M', u'ĩ'), + (0x129, 'V'), + (0x12A, 'M', u'ī'), + (0x12B, 'V'), + ] + +def _seg_3(): + return [ + (0x12C, 'M', u'ĭ'), + (0x12D, 'V'), + (0x12E, 'M', u'į'), + (0x12F, 'V'), + (0x130, 'M', u'i̇'), + (0x131, 'V'), + (0x132, 'M', u'ij'), + (0x134, 'M', u'ĵ'), + (0x135, 'V'), + (0x136, 'M', u'ķ'), + (0x137, 'V'), + (0x139, 'M', u'ĺ'), + (0x13A, 'V'), + (0x13B, 'M', u'ļ'), + (0x13C, 'V'), + (0x13D, 'M', u'ľ'), + (0x13E, 'V'), + (0x13F, 'M', u'l·'), + (0x141, 'M', u'ł'), + (0x142, 'V'), + (0x143, 'M', u'ń'), + (0x144, 'V'), + (0x145, 'M', u'ņ'), + (0x146, 'V'), + (0x147, 'M', u'ň'), + (0x148, 'V'), + (0x149, 'M', u'ʼn'), + (0x14A, 'M', u'ŋ'), + (0x14B, 'V'), + (0x14C, 'M', u'ō'), + (0x14D, 'V'), + (0x14E, 'M', u'ŏ'), + (0x14F, 'V'), + (0x150, 'M', u'ő'), + (0x151, 'V'), + (0x152, 'M', u'œ'), + (0x153, 'V'), + (0x154, 'M', u'ŕ'), + (0x155, 'V'), + (0x156, 'M', u'ŗ'), + (0x157, 'V'), + (0x158, 'M', u'ř'), + (0x159, 'V'), + (0x15A, 'M', u'ś'), + (0x15B, 'V'), + (0x15C, 'M', u'ŝ'), + (0x15D, 'V'), + (0x15E, 'M', u'ş'), + (0x15F, 'V'), + (0x160, 'M', u'š'), + (0x161, 'V'), + (0x162, 'M', u'ţ'), + (0x163, 'V'), + (0x164, 'M', u'ť'), + (0x165, 'V'), + (0x166, 'M', u'ŧ'), + (0x167, 'V'), + (0x168, 'M', u'ũ'), + (0x169, 'V'), + (0x16A, 'M', u'ū'), + (0x16B, 'V'), + (0x16C, 'M', u'ŭ'), + (0x16D, 'V'), + (0x16E, 'M', u'ů'), + (0x16F, 'V'), + (0x170, 'M', u'ű'), + (0x171, 'V'), + (0x172, 'M', u'ų'), + (0x173, 'V'), + (0x174, 'M', u'ŵ'), + (0x175, 'V'), + (0x176, 'M', u'ŷ'), + (0x177, 'V'), + (0x178, 'M', u'ÿ'), + (0x179, 'M', u'ź'), + (0x17A, 'V'), + (0x17B, 'M', u'ż'), + (0x17C, 'V'), + (0x17D, 'M', u'ž'), + (0x17E, 'V'), + (0x17F, 'M', u's'), + (0x180, 'V'), + (0x181, 'M', u'ɓ'), + (0x182, 'M', u'ƃ'), + (0x183, 'V'), + (0x184, 'M', u'ƅ'), + (0x185, 'V'), + (0x186, 'M', u'ɔ'), + (0x187, 'M', u'ƈ'), + (0x188, 'V'), + (0x189, 'M', u'ɖ'), + (0x18A, 'M', u'ɗ'), + (0x18B, 'M', u'ƌ'), + (0x18C, 'V'), + (0x18E, 'M', u'ǝ'), + (0x18F, 'M', u'ə'), + (0x190, 'M', u'ɛ'), + (0x191, 'M', u'ƒ'), + (0x192, 'V'), + (0x193, 'M', u'ɠ'), + ] + +def _seg_4(): + return [ + (0x194, 'M', u'ɣ'), + (0x195, 'V'), + (0x196, 'M', u'ɩ'), + (0x197, 'M', u'ɨ'), + (0x198, 'M', u'ƙ'), + (0x199, 'V'), + (0x19C, 'M', u'ɯ'), + (0x19D, 'M', u'ɲ'), + (0x19E, 'V'), + (0x19F, 'M', u'ɵ'), + (0x1A0, 'M', u'ơ'), + (0x1A1, 'V'), + (0x1A2, 'M', u'ƣ'), + (0x1A3, 'V'), + (0x1A4, 'M', u'ƥ'), + (0x1A5, 'V'), + (0x1A6, 'M', u'ʀ'), + (0x1A7, 'M', u'ƨ'), + (0x1A8, 'V'), + (0x1A9, 'M', u'ʃ'), + (0x1AA, 'V'), + (0x1AC, 'M', u'ƭ'), + (0x1AD, 'V'), + (0x1AE, 'M', u'ʈ'), + (0x1AF, 'M', u'ư'), + (0x1B0, 'V'), + (0x1B1, 'M', u'ʊ'), + (0x1B2, 'M', u'ʋ'), + (0x1B3, 'M', u'ƴ'), + (0x1B4, 'V'), + (0x1B5, 'M', u'ƶ'), + (0x1B6, 'V'), + (0x1B7, 'M', u'ʒ'), + (0x1B8, 'M', u'ƹ'), + (0x1B9, 'V'), + (0x1BC, 'M', u'ƽ'), + (0x1BD, 'V'), + (0x1C4, 'M', u'dž'), + (0x1C7, 'M', u'lj'), + (0x1CA, 'M', u'nj'), + (0x1CD, 'M', u'ǎ'), + (0x1CE, 'V'), + (0x1CF, 'M', u'ǐ'), + (0x1D0, 'V'), + (0x1D1, 'M', u'ǒ'), + (0x1D2, 'V'), + (0x1D3, 'M', u'ǔ'), + (0x1D4, 'V'), + (0x1D5, 'M', u'ǖ'), + (0x1D6, 'V'), + (0x1D7, 'M', u'ǘ'), + (0x1D8, 'V'), + (0x1D9, 'M', u'ǚ'), + (0x1DA, 'V'), + (0x1DB, 'M', u'ǜ'), + (0x1DC, 'V'), + (0x1DE, 'M', u'ǟ'), + (0x1DF, 'V'), + (0x1E0, 'M', u'ǡ'), + (0x1E1, 'V'), + (0x1E2, 'M', u'ǣ'), + (0x1E3, 'V'), + (0x1E4, 'M', u'ǥ'), + (0x1E5, 'V'), + (0x1E6, 'M', u'ǧ'), + (0x1E7, 'V'), + (0x1E8, 'M', u'ǩ'), + (0x1E9, 'V'), + (0x1EA, 'M', u'ǫ'), + (0x1EB, 'V'), + (0x1EC, 'M', u'ǭ'), + (0x1ED, 'V'), + (0x1EE, 'M', u'ǯ'), + (0x1EF, 'V'), + (0x1F1, 'M', u'dz'), + (0x1F4, 'M', u'ǵ'), + (0x1F5, 'V'), + (0x1F6, 'M', u'ƕ'), + (0x1F7, 'M', u'ƿ'), + (0x1F8, 'M', u'ǹ'), + (0x1F9, 'V'), + (0x1FA, 'M', u'ǻ'), + (0x1FB, 'V'), + (0x1FC, 'M', u'ǽ'), + (0x1FD, 'V'), + (0x1FE, 'M', u'ǿ'), + (0x1FF, 'V'), + (0x200, 'M', u'ȁ'), + (0x201, 'V'), + (0x202, 'M', u'ȃ'), + (0x203, 'V'), + (0x204, 'M', u'ȅ'), + (0x205, 'V'), + (0x206, 'M', u'ȇ'), + (0x207, 'V'), + (0x208, 'M', u'ȉ'), + (0x209, 'V'), + (0x20A, 'M', u'ȋ'), + (0x20B, 'V'), + (0x20C, 'M', u'ȍ'), + ] + +def _seg_5(): + return [ + (0x20D, 'V'), + (0x20E, 'M', u'ȏ'), + (0x20F, 'V'), + (0x210, 'M', u'ȑ'), + (0x211, 'V'), + (0x212, 'M', u'ȓ'), + (0x213, 'V'), + (0x214, 'M', u'ȕ'), + (0x215, 'V'), + (0x216, 'M', u'ȗ'), + (0x217, 'V'), + (0x218, 'M', u'ș'), + (0x219, 'V'), + (0x21A, 'M', u'ț'), + (0x21B, 'V'), + (0x21C, 'M', u'ȝ'), + (0x21D, 'V'), + (0x21E, 'M', u'ȟ'), + (0x21F, 'V'), + (0x220, 'M', u'ƞ'), + (0x221, 'V'), + (0x222, 'M', u'ȣ'), + (0x223, 'V'), + (0x224, 'M', u'ȥ'), + (0x225, 'V'), + (0x226, 'M', u'ȧ'), + (0x227, 'V'), + (0x228, 'M', u'ȩ'), + (0x229, 'V'), + (0x22A, 'M', u'ȫ'), + (0x22B, 'V'), + (0x22C, 'M', u'ȭ'), + (0x22D, 'V'), + (0x22E, 'M', u'ȯ'), + (0x22F, 'V'), + (0x230, 'M', u'ȱ'), + (0x231, 'V'), + (0x232, 'M', u'ȳ'), + (0x233, 'V'), + (0x23A, 'M', u'ⱥ'), + (0x23B, 'M', u'ȼ'), + (0x23C, 'V'), + (0x23D, 'M', u'ƚ'), + (0x23E, 'M', u'ⱦ'), + (0x23F, 'V'), + (0x241, 'M', u'ɂ'), + (0x242, 'V'), + (0x243, 'M', u'ƀ'), + (0x244, 'M', u'ʉ'), + (0x245, 'M', u'ʌ'), + (0x246, 'M', u'ɇ'), + (0x247, 'V'), + (0x248, 'M', u'ɉ'), + (0x249, 'V'), + (0x24A, 'M', u'ɋ'), + (0x24B, 'V'), + (0x24C, 'M', u'ɍ'), + (0x24D, 'V'), + (0x24E, 'M', u'ɏ'), + (0x24F, 'V'), + (0x2B0, 'M', u'h'), + (0x2B1, 'M', u'ɦ'), + (0x2B2, 'M', u'j'), + (0x2B3, 'M', u'r'), + (0x2B4, 'M', u'ɹ'), + (0x2B5, 'M', u'ɻ'), + (0x2B6, 'M', u'ʁ'), + (0x2B7, 'M', u'w'), + (0x2B8, 'M', u'y'), + (0x2B9, 'V'), + (0x2D8, '3', u' ̆'), + (0x2D9, '3', u' ̇'), + (0x2DA, '3', u' ̊'), + (0x2DB, '3', u' ̨'), + (0x2DC, '3', u' ̃'), + (0x2DD, '3', u' ̋'), + (0x2DE, 'V'), + (0x2E0, 'M', u'ɣ'), + (0x2E1, 'M', u'l'), + (0x2E2, 'M', u's'), + (0x2E3, 'M', u'x'), + (0x2E4, 'M', u'ʕ'), + (0x2E5, 'V'), + (0x340, 'M', u'̀'), + (0x341, 'M', u'́'), + (0x342, 'V'), + (0x343, 'M', u'̓'), + (0x344, 'M', u'̈́'), + (0x345, 'M', u'ι'), + (0x346, 'V'), + (0x34F, 'I'), + (0x350, 'V'), + (0x370, 'M', u'ͱ'), + (0x371, 'V'), + (0x372, 'M', u'ͳ'), + (0x373, 'V'), + (0x374, 'M', u'ʹ'), + (0x375, 'V'), + (0x376, 'M', u'ͷ'), + (0x377, 'V'), + ] + +def _seg_6(): + return [ + (0x378, 'X'), + (0x37A, '3', u' ι'), + (0x37B, 'V'), + (0x37E, '3', u';'), + (0x37F, 'M', u'ϳ'), + (0x380, 'X'), + (0x384, '3', u' ́'), + (0x385, '3', u' ̈́'), + (0x386, 'M', u'ά'), + (0x387, 'M', u'·'), + (0x388, 'M', u'έ'), + (0x389, 'M', u'ή'), + (0x38A, 'M', u'ί'), + (0x38B, 'X'), + (0x38C, 'M', u'ό'), + (0x38D, 'X'), + (0x38E, 'M', u'ύ'), + (0x38F, 'M', u'ώ'), + (0x390, 'V'), + (0x391, 'M', u'α'), + (0x392, 'M', u'β'), + (0x393, 'M', u'γ'), + (0x394, 'M', u'δ'), + (0x395, 'M', u'ε'), + (0x396, 'M', u'ζ'), + (0x397, 'M', u'η'), + (0x398, 'M', u'θ'), + (0x399, 'M', u'ι'), + (0x39A, 'M', u'κ'), + (0x39B, 'M', u'λ'), + (0x39C, 'M', u'μ'), + (0x39D, 'M', u'ν'), + (0x39E, 'M', u'ξ'), + (0x39F, 'M', u'ο'), + (0x3A0, 'M', u'π'), + (0x3A1, 'M', u'ρ'), + (0x3A2, 'X'), + (0x3A3, 'M', u'σ'), + (0x3A4, 'M', u'τ'), + (0x3A5, 'M', u'υ'), + (0x3A6, 'M', u'φ'), + (0x3A7, 'M', u'χ'), + (0x3A8, 'M', u'ψ'), + (0x3A9, 'M', u'ω'), + (0x3AA, 'M', u'ϊ'), + (0x3AB, 'M', u'ϋ'), + (0x3AC, 'V'), + (0x3C2, 'D', u'σ'), + (0x3C3, 'V'), + (0x3CF, 'M', u'ϗ'), + (0x3D0, 'M', u'β'), + (0x3D1, 'M', u'θ'), + (0x3D2, 'M', u'υ'), + (0x3D3, 'M', u'ύ'), + (0x3D4, 'M', u'ϋ'), + (0x3D5, 'M', u'φ'), + (0x3D6, 'M', u'π'), + (0x3D7, 'V'), + (0x3D8, 'M', u'ϙ'), + (0x3D9, 'V'), + (0x3DA, 'M', u'ϛ'), + (0x3DB, 'V'), + (0x3DC, 'M', u'ϝ'), + (0x3DD, 'V'), + (0x3DE, 'M', u'ϟ'), + (0x3DF, 'V'), + (0x3E0, 'M', u'ϡ'), + (0x3E1, 'V'), + (0x3E2, 'M', u'ϣ'), + (0x3E3, 'V'), + (0x3E4, 'M', u'ϥ'), + (0x3E5, 'V'), + (0x3E6, 'M', u'ϧ'), + (0x3E7, 'V'), + (0x3E8, 'M', u'ϩ'), + (0x3E9, 'V'), + (0x3EA, 'M', u'ϫ'), + (0x3EB, 'V'), + (0x3EC, 'M', u'ϭ'), + (0x3ED, 'V'), + (0x3EE, 'M', u'ϯ'), + (0x3EF, 'V'), + (0x3F0, 'M', u'κ'), + (0x3F1, 'M', u'ρ'), + (0x3F2, 'M', u'σ'), + (0x3F3, 'V'), + (0x3F4, 'M', u'θ'), + (0x3F5, 'M', u'ε'), + (0x3F6, 'V'), + (0x3F7, 'M', u'ϸ'), + (0x3F8, 'V'), + (0x3F9, 'M', u'σ'), + (0x3FA, 'M', u'ϻ'), + (0x3FB, 'V'), + (0x3FD, 'M', u'ͻ'), + (0x3FE, 'M', u'ͼ'), + (0x3FF, 'M', u'ͽ'), + (0x400, 'M', u'ѐ'), + (0x401, 'M', u'ё'), + (0x402, 'M', u'ђ'), + ] + +def _seg_7(): + return [ + (0x403, 'M', u'ѓ'), + (0x404, 'M', u'є'), + (0x405, 'M', u'ѕ'), + (0x406, 'M', u'і'), + (0x407, 'M', u'ї'), + (0x408, 'M', u'ј'), + (0x409, 'M', u'љ'), + (0x40A, 'M', u'њ'), + (0x40B, 'M', u'ћ'), + (0x40C, 'M', u'ќ'), + (0x40D, 'M', u'ѝ'), + (0x40E, 'M', u'ў'), + (0x40F, 'M', u'џ'), + (0x410, 'M', u'а'), + (0x411, 'M', u'б'), + (0x412, 'M', u'в'), + (0x413, 'M', u'г'), + (0x414, 'M', u'д'), + (0x415, 'M', u'е'), + (0x416, 'M', u'ж'), + (0x417, 'M', u'з'), + (0x418, 'M', u'и'), + (0x419, 'M', u'й'), + (0x41A, 'M', u'к'), + (0x41B, 'M', u'л'), + (0x41C, 'M', u'м'), + (0x41D, 'M', u'н'), + (0x41E, 'M', u'о'), + (0x41F, 'M', u'п'), + (0x420, 'M', u'р'), + (0x421, 'M', u'с'), + (0x422, 'M', u'т'), + (0x423, 'M', u'у'), + (0x424, 'M', u'ф'), + (0x425, 'M', u'х'), + (0x426, 'M', u'ц'), + (0x427, 'M', u'ч'), + (0x428, 'M', u'ш'), + (0x429, 'M', u'щ'), + (0x42A, 'M', u'ъ'), + (0x42B, 'M', u'ы'), + (0x42C, 'M', u'ь'), + (0x42D, 'M', u'э'), + (0x42E, 'M', u'ю'), + (0x42F, 'M', u'я'), + (0x430, 'V'), + (0x460, 'M', u'ѡ'), + (0x461, 'V'), + (0x462, 'M', u'ѣ'), + (0x463, 'V'), + (0x464, 'M', u'ѥ'), + (0x465, 'V'), + (0x466, 'M', u'ѧ'), + (0x467, 'V'), + (0x468, 'M', u'ѩ'), + (0x469, 'V'), + (0x46A, 'M', u'ѫ'), + (0x46B, 'V'), + (0x46C, 'M', u'ѭ'), + (0x46D, 'V'), + (0x46E, 'M', u'ѯ'), + (0x46F, 'V'), + (0x470, 'M', u'ѱ'), + (0x471, 'V'), + (0x472, 'M', u'ѳ'), + (0x473, 'V'), + (0x474, 'M', u'ѵ'), + (0x475, 'V'), + (0x476, 'M', u'ѷ'), + (0x477, 'V'), + (0x478, 'M', u'ѹ'), + (0x479, 'V'), + (0x47A, 'M', u'ѻ'), + (0x47B, 'V'), + (0x47C, 'M', u'ѽ'), + (0x47D, 'V'), + (0x47E, 'M', u'ѿ'), + (0x47F, 'V'), + (0x480, 'M', u'ҁ'), + (0x481, 'V'), + (0x48A, 'M', u'ҋ'), + (0x48B, 'V'), + (0x48C, 'M', u'ҍ'), + (0x48D, 'V'), + (0x48E, 'M', u'ҏ'), + (0x48F, 'V'), + (0x490, 'M', u'ґ'), + (0x491, 'V'), + (0x492, 'M', u'ғ'), + (0x493, 'V'), + (0x494, 'M', u'ҕ'), + (0x495, 'V'), + (0x496, 'M', u'җ'), + (0x497, 'V'), + (0x498, 'M', u'ҙ'), + (0x499, 'V'), + (0x49A, 'M', u'қ'), + (0x49B, 'V'), + (0x49C, 'M', u'ҝ'), + (0x49D, 'V'), + ] + +def _seg_8(): + return [ + (0x49E, 'M', u'ҟ'), + (0x49F, 'V'), + (0x4A0, 'M', u'ҡ'), + (0x4A1, 'V'), + (0x4A2, 'M', u'ң'), + (0x4A3, 'V'), + (0x4A4, 'M', u'ҥ'), + (0x4A5, 'V'), + (0x4A6, 'M', u'ҧ'), + (0x4A7, 'V'), + (0x4A8, 'M', u'ҩ'), + (0x4A9, 'V'), + (0x4AA, 'M', u'ҫ'), + (0x4AB, 'V'), + (0x4AC, 'M', u'ҭ'), + (0x4AD, 'V'), + (0x4AE, 'M', u'ү'), + (0x4AF, 'V'), + (0x4B0, 'M', u'ұ'), + (0x4B1, 'V'), + (0x4B2, 'M', u'ҳ'), + (0x4B3, 'V'), + (0x4B4, 'M', u'ҵ'), + (0x4B5, 'V'), + (0x4B6, 'M', u'ҷ'), + (0x4B7, 'V'), + (0x4B8, 'M', u'ҹ'), + (0x4B9, 'V'), + (0x4BA, 'M', u'һ'), + (0x4BB, 'V'), + (0x4BC, 'M', u'ҽ'), + (0x4BD, 'V'), + (0x4BE, 'M', u'ҿ'), + (0x4BF, 'V'), + (0x4C0, 'X'), + (0x4C1, 'M', u'ӂ'), + (0x4C2, 'V'), + (0x4C3, 'M', u'ӄ'), + (0x4C4, 'V'), + (0x4C5, 'M', u'ӆ'), + (0x4C6, 'V'), + (0x4C7, 'M', u'ӈ'), + (0x4C8, 'V'), + (0x4C9, 'M', u'ӊ'), + (0x4CA, 'V'), + (0x4CB, 'M', u'ӌ'), + (0x4CC, 'V'), + (0x4CD, 'M', u'ӎ'), + (0x4CE, 'V'), + (0x4D0, 'M', u'ӑ'), + (0x4D1, 'V'), + (0x4D2, 'M', u'ӓ'), + (0x4D3, 'V'), + (0x4D4, 'M', u'ӕ'), + (0x4D5, 'V'), + (0x4D6, 'M', u'ӗ'), + (0x4D7, 'V'), + (0x4D8, 'M', u'ә'), + (0x4D9, 'V'), + (0x4DA, 'M', u'ӛ'), + (0x4DB, 'V'), + (0x4DC, 'M', u'ӝ'), + (0x4DD, 'V'), + (0x4DE, 'M', u'ӟ'), + (0x4DF, 'V'), + (0x4E0, 'M', u'ӡ'), + (0x4E1, 'V'), + (0x4E2, 'M', u'ӣ'), + (0x4E3, 'V'), + (0x4E4, 'M', u'ӥ'), + (0x4E5, 'V'), + (0x4E6, 'M', u'ӧ'), + (0x4E7, 'V'), + (0x4E8, 'M', u'ө'), + (0x4E9, 'V'), + (0x4EA, 'M', u'ӫ'), + (0x4EB, 'V'), + (0x4EC, 'M', u'ӭ'), + (0x4ED, 'V'), + (0x4EE, 'M', u'ӯ'), + (0x4EF, 'V'), + (0x4F0, 'M', u'ӱ'), + (0x4F1, 'V'), + (0x4F2, 'M', u'ӳ'), + (0x4F3, 'V'), + (0x4F4, 'M', u'ӵ'), + (0x4F5, 'V'), + (0x4F6, 'M', u'ӷ'), + (0x4F7, 'V'), + (0x4F8, 'M', u'ӹ'), + (0x4F9, 'V'), + (0x4FA, 'M', u'ӻ'), + (0x4FB, 'V'), + (0x4FC, 'M', u'ӽ'), + (0x4FD, 'V'), + (0x4FE, 'M', u'ӿ'), + (0x4FF, 'V'), + (0x500, 'M', u'ԁ'), + (0x501, 'V'), + (0x502, 'M', u'ԃ'), + ] + +def _seg_9(): + return [ + (0x503, 'V'), + (0x504, 'M', u'ԅ'), + (0x505, 'V'), + (0x506, 'M', u'ԇ'), + (0x507, 'V'), + (0x508, 'M', u'ԉ'), + (0x509, 'V'), + (0x50A, 'M', u'ԋ'), + (0x50B, 'V'), + (0x50C, 'M', u'ԍ'), + (0x50D, 'V'), + (0x50E, 'M', u'ԏ'), + (0x50F, 'V'), + (0x510, 'M', u'ԑ'), + (0x511, 'V'), + (0x512, 'M', u'ԓ'), + (0x513, 'V'), + (0x514, 'M', u'ԕ'), + (0x515, 'V'), + (0x516, 'M', u'ԗ'), + (0x517, 'V'), + (0x518, 'M', u'ԙ'), + (0x519, 'V'), + (0x51A, 'M', u'ԛ'), + (0x51B, 'V'), + (0x51C, 'M', u'ԝ'), + (0x51D, 'V'), + (0x51E, 'M', u'ԟ'), + (0x51F, 'V'), + (0x520, 'M', u'ԡ'), + (0x521, 'V'), + (0x522, 'M', u'ԣ'), + (0x523, 'V'), + (0x524, 'M', u'ԥ'), + (0x525, 'V'), + (0x526, 'M', u'ԧ'), + (0x527, 'V'), + (0x528, 'M', u'ԩ'), + (0x529, 'V'), + (0x52A, 'M', u'ԫ'), + (0x52B, 'V'), + (0x52C, 'M', u'ԭ'), + (0x52D, 'V'), + (0x52E, 'M', u'ԯ'), + (0x52F, 'V'), + (0x530, 'X'), + (0x531, 'M', u'ա'), + (0x532, 'M', u'բ'), + (0x533, 'M', u'գ'), + (0x534, 'M', u'դ'), + (0x535, 'M', u'ե'), + (0x536, 'M', u'զ'), + (0x537, 'M', u'է'), + (0x538, 'M', u'ը'), + (0x539, 'M', u'թ'), + (0x53A, 'M', u'ժ'), + (0x53B, 'M', u'ի'), + (0x53C, 'M', u'լ'), + (0x53D, 'M', u'խ'), + (0x53E, 'M', u'ծ'), + (0x53F, 'M', u'կ'), + (0x540, 'M', u'հ'), + (0x541, 'M', u'ձ'), + (0x542, 'M', u'ղ'), + (0x543, 'M', u'ճ'), + (0x544, 'M', u'մ'), + (0x545, 'M', u'յ'), + (0x546, 'M', u'ն'), + (0x547, 'M', u'շ'), + (0x548, 'M', u'ո'), + (0x549, 'M', u'չ'), + (0x54A, 'M', u'պ'), + (0x54B, 'M', u'ջ'), + (0x54C, 'M', u'ռ'), + (0x54D, 'M', u'ս'), + (0x54E, 'M', u'վ'), + (0x54F, 'M', u'տ'), + (0x550, 'M', u'ր'), + (0x551, 'M', u'ց'), + (0x552, 'M', u'ւ'), + (0x553, 'M', u'փ'), + (0x554, 'M', u'ք'), + (0x555, 'M', u'օ'), + (0x556, 'M', u'ֆ'), + (0x557, 'X'), + (0x559, 'V'), + (0x587, 'M', u'եւ'), + (0x588, 'V'), + (0x58B, 'X'), + (0x58D, 'V'), + (0x590, 'X'), + (0x591, 'V'), + (0x5C8, 'X'), + (0x5D0, 'V'), + (0x5EB, 'X'), + (0x5EF, 'V'), + (0x5F5, 'X'), + (0x606, 'V'), + (0x61C, 'X'), + (0x61E, 'V'), + ] + +def _seg_10(): + return [ + (0x675, 'M', u'اٴ'), + (0x676, 'M', u'وٴ'), + (0x677, 'M', u'ۇٴ'), + (0x678, 'M', u'يٴ'), + (0x679, 'V'), + (0x6DD, 'X'), + (0x6DE, 'V'), + (0x70E, 'X'), + (0x710, 'V'), + (0x74B, 'X'), + (0x74D, 'V'), + (0x7B2, 'X'), + (0x7C0, 'V'), + (0x7FB, 'X'), + (0x7FD, 'V'), + (0x82E, 'X'), + (0x830, 'V'), + (0x83F, 'X'), + (0x840, 'V'), + (0x85C, 'X'), + (0x85E, 'V'), + (0x85F, 'X'), + (0x860, 'V'), + (0x86B, 'X'), + (0x8A0, 'V'), + (0x8B5, 'X'), + (0x8B6, 'V'), + (0x8BE, 'X'), + (0x8D3, 'V'), + (0x8E2, 'X'), + (0x8E3, 'V'), + (0x958, 'M', u'क़'), + (0x959, 'M', u'ख़'), + (0x95A, 'M', u'ग़'), + (0x95B, 'M', u'ज़'), + (0x95C, 'M', u'ड़'), + (0x95D, 'M', u'ढ़'), + (0x95E, 'M', u'फ़'), + (0x95F, 'M', u'य़'), + (0x960, 'V'), + (0x984, 'X'), + (0x985, 'V'), + (0x98D, 'X'), + (0x98F, 'V'), + (0x991, 'X'), + (0x993, 'V'), + (0x9A9, 'X'), + (0x9AA, 'V'), + (0x9B1, 'X'), + (0x9B2, 'V'), + (0x9B3, 'X'), + (0x9B6, 'V'), + (0x9BA, 'X'), + (0x9BC, 'V'), + (0x9C5, 'X'), + (0x9C7, 'V'), + (0x9C9, 'X'), + (0x9CB, 'V'), + (0x9CF, 'X'), + (0x9D7, 'V'), + (0x9D8, 'X'), + (0x9DC, 'M', u'ড়'), + (0x9DD, 'M', u'ঢ়'), + (0x9DE, 'X'), + (0x9DF, 'M', u'য়'), + (0x9E0, 'V'), + (0x9E4, 'X'), + (0x9E6, 'V'), + (0x9FF, 'X'), + (0xA01, 'V'), + (0xA04, 'X'), + (0xA05, 'V'), + (0xA0B, 'X'), + (0xA0F, 'V'), + (0xA11, 'X'), + (0xA13, 'V'), + (0xA29, 'X'), + (0xA2A, 'V'), + (0xA31, 'X'), + (0xA32, 'V'), + (0xA33, 'M', u'ਲ਼'), + (0xA34, 'X'), + (0xA35, 'V'), + (0xA36, 'M', u'ਸ਼'), + (0xA37, 'X'), + (0xA38, 'V'), + (0xA3A, 'X'), + (0xA3C, 'V'), + (0xA3D, 'X'), + (0xA3E, 'V'), + (0xA43, 'X'), + (0xA47, 'V'), + (0xA49, 'X'), + (0xA4B, 'V'), + (0xA4E, 'X'), + (0xA51, 'V'), + (0xA52, 'X'), + (0xA59, 'M', u'ਖ਼'), + (0xA5A, 'M', u'ਗ਼'), + (0xA5B, 'M', u'ਜ਼'), + ] + +def _seg_11(): + return [ + (0xA5C, 'V'), + (0xA5D, 'X'), + (0xA5E, 'M', u'ਫ਼'), + (0xA5F, 'X'), + (0xA66, 'V'), + (0xA77, 'X'), + (0xA81, 'V'), + (0xA84, 'X'), + (0xA85, 'V'), + (0xA8E, 'X'), + (0xA8F, 'V'), + (0xA92, 'X'), + (0xA93, 'V'), + (0xAA9, 'X'), + (0xAAA, 'V'), + (0xAB1, 'X'), + (0xAB2, 'V'), + (0xAB4, 'X'), + (0xAB5, 'V'), + (0xABA, 'X'), + (0xABC, 'V'), + (0xAC6, 'X'), + (0xAC7, 'V'), + (0xACA, 'X'), + (0xACB, 'V'), + (0xACE, 'X'), + (0xAD0, 'V'), + (0xAD1, 'X'), + (0xAE0, 'V'), + (0xAE4, 'X'), + (0xAE6, 'V'), + (0xAF2, 'X'), + (0xAF9, 'V'), + (0xB00, 'X'), + (0xB01, 'V'), + (0xB04, 'X'), + (0xB05, 'V'), + (0xB0D, 'X'), + (0xB0F, 'V'), + (0xB11, 'X'), + (0xB13, 'V'), + (0xB29, 'X'), + (0xB2A, 'V'), + (0xB31, 'X'), + (0xB32, 'V'), + (0xB34, 'X'), + (0xB35, 'V'), + (0xB3A, 'X'), + (0xB3C, 'V'), + (0xB45, 'X'), + (0xB47, 'V'), + (0xB49, 'X'), + (0xB4B, 'V'), + (0xB4E, 'X'), + (0xB56, 'V'), + (0xB58, 'X'), + (0xB5C, 'M', u'ଡ଼'), + (0xB5D, 'M', u'ଢ଼'), + (0xB5E, 'X'), + (0xB5F, 'V'), + (0xB64, 'X'), + (0xB66, 'V'), + (0xB78, 'X'), + (0xB82, 'V'), + (0xB84, 'X'), + (0xB85, 'V'), + (0xB8B, 'X'), + (0xB8E, 'V'), + (0xB91, 'X'), + (0xB92, 'V'), + (0xB96, 'X'), + (0xB99, 'V'), + (0xB9B, 'X'), + (0xB9C, 'V'), + (0xB9D, 'X'), + (0xB9E, 'V'), + (0xBA0, 'X'), + (0xBA3, 'V'), + (0xBA5, 'X'), + (0xBA8, 'V'), + (0xBAB, 'X'), + (0xBAE, 'V'), + (0xBBA, 'X'), + (0xBBE, 'V'), + (0xBC3, 'X'), + (0xBC6, 'V'), + (0xBC9, 'X'), + (0xBCA, 'V'), + (0xBCE, 'X'), + (0xBD0, 'V'), + (0xBD1, 'X'), + (0xBD7, 'V'), + (0xBD8, 'X'), + (0xBE6, 'V'), + (0xBFB, 'X'), + (0xC00, 'V'), + (0xC0D, 'X'), + (0xC0E, 'V'), + (0xC11, 'X'), + (0xC12, 'V'), + ] + +def _seg_12(): + return [ + (0xC29, 'X'), + (0xC2A, 'V'), + (0xC3A, 'X'), + (0xC3D, 'V'), + (0xC45, 'X'), + (0xC46, 'V'), + (0xC49, 'X'), + (0xC4A, 'V'), + (0xC4E, 'X'), + (0xC55, 'V'), + (0xC57, 'X'), + (0xC58, 'V'), + (0xC5B, 'X'), + (0xC60, 'V'), + (0xC64, 'X'), + (0xC66, 'V'), + (0xC70, 'X'), + (0xC78, 'V'), + (0xC8D, 'X'), + (0xC8E, 'V'), + (0xC91, 'X'), + (0xC92, 'V'), + (0xCA9, 'X'), + (0xCAA, 'V'), + (0xCB4, 'X'), + (0xCB5, 'V'), + (0xCBA, 'X'), + (0xCBC, 'V'), + (0xCC5, 'X'), + (0xCC6, 'V'), + (0xCC9, 'X'), + (0xCCA, 'V'), + (0xCCE, 'X'), + (0xCD5, 'V'), + (0xCD7, 'X'), + (0xCDE, 'V'), + (0xCDF, 'X'), + (0xCE0, 'V'), + (0xCE4, 'X'), + (0xCE6, 'V'), + (0xCF0, 'X'), + (0xCF1, 'V'), + (0xCF3, 'X'), + (0xD00, 'V'), + (0xD04, 'X'), + (0xD05, 'V'), + (0xD0D, 'X'), + (0xD0E, 'V'), + (0xD11, 'X'), + (0xD12, 'V'), + (0xD45, 'X'), + (0xD46, 'V'), + (0xD49, 'X'), + (0xD4A, 'V'), + (0xD50, 'X'), + (0xD54, 'V'), + (0xD64, 'X'), + (0xD66, 'V'), + (0xD80, 'X'), + (0xD82, 'V'), + (0xD84, 'X'), + (0xD85, 'V'), + (0xD97, 'X'), + (0xD9A, 'V'), + (0xDB2, 'X'), + (0xDB3, 'V'), + (0xDBC, 'X'), + (0xDBD, 'V'), + (0xDBE, 'X'), + (0xDC0, 'V'), + (0xDC7, 'X'), + (0xDCA, 'V'), + (0xDCB, 'X'), + (0xDCF, 'V'), + (0xDD5, 'X'), + (0xDD6, 'V'), + (0xDD7, 'X'), + (0xDD8, 'V'), + (0xDE0, 'X'), + (0xDE6, 'V'), + (0xDF0, 'X'), + (0xDF2, 'V'), + (0xDF5, 'X'), + (0xE01, 'V'), + (0xE33, 'M', u'ํา'), + (0xE34, 'V'), + (0xE3B, 'X'), + (0xE3F, 'V'), + (0xE5C, 'X'), + (0xE81, 'V'), + (0xE83, 'X'), + (0xE84, 'V'), + (0xE85, 'X'), + (0xE87, 'V'), + (0xE89, 'X'), + (0xE8A, 'V'), + (0xE8B, 'X'), + (0xE8D, 'V'), + (0xE8E, 'X'), + (0xE94, 'V'), + ] + +def _seg_13(): + return [ + (0xE98, 'X'), + (0xE99, 'V'), + (0xEA0, 'X'), + (0xEA1, 'V'), + (0xEA4, 'X'), + (0xEA5, 'V'), + (0xEA6, 'X'), + (0xEA7, 'V'), + (0xEA8, 'X'), + (0xEAA, 'V'), + (0xEAC, 'X'), + (0xEAD, 'V'), + (0xEB3, 'M', u'ໍາ'), + (0xEB4, 'V'), + (0xEBA, 'X'), + (0xEBB, 'V'), + (0xEBE, 'X'), + (0xEC0, 'V'), + (0xEC5, 'X'), + (0xEC6, 'V'), + (0xEC7, 'X'), + (0xEC8, 'V'), + (0xECE, 'X'), + (0xED0, 'V'), + (0xEDA, 'X'), + (0xEDC, 'M', u'ຫນ'), + (0xEDD, 'M', u'ຫມ'), + (0xEDE, 'V'), + (0xEE0, 'X'), + (0xF00, 'V'), + (0xF0C, 'M', u'་'), + (0xF0D, 'V'), + (0xF43, 'M', u'གྷ'), + (0xF44, 'V'), + (0xF48, 'X'), + (0xF49, 'V'), + (0xF4D, 'M', u'ཌྷ'), + (0xF4E, 'V'), + (0xF52, 'M', u'དྷ'), + (0xF53, 'V'), + (0xF57, 'M', u'བྷ'), + (0xF58, 'V'), + (0xF5C, 'M', u'ཛྷ'), + (0xF5D, 'V'), + (0xF69, 'M', u'ཀྵ'), + (0xF6A, 'V'), + (0xF6D, 'X'), + (0xF71, 'V'), + (0xF73, 'M', u'ཱི'), + (0xF74, 'V'), + (0xF75, 'M', u'ཱུ'), + (0xF76, 'M', u'ྲྀ'), + (0xF77, 'M', u'ྲཱྀ'), + (0xF78, 'M', u'ླྀ'), + (0xF79, 'M', u'ླཱྀ'), + (0xF7A, 'V'), + (0xF81, 'M', u'ཱྀ'), + (0xF82, 'V'), + (0xF93, 'M', u'ྒྷ'), + (0xF94, 'V'), + (0xF98, 'X'), + (0xF99, 'V'), + (0xF9D, 'M', u'ྜྷ'), + (0xF9E, 'V'), + (0xFA2, 'M', u'ྡྷ'), + (0xFA3, 'V'), + (0xFA7, 'M', u'ྦྷ'), + (0xFA8, 'V'), + (0xFAC, 'M', u'ྫྷ'), + (0xFAD, 'V'), + (0xFB9, 'M', u'ྐྵ'), + (0xFBA, 'V'), + (0xFBD, 'X'), + (0xFBE, 'V'), + (0xFCD, 'X'), + (0xFCE, 'V'), + (0xFDB, 'X'), + (0x1000, 'V'), + (0x10A0, 'X'), + (0x10C7, 'M', u'ⴧ'), + (0x10C8, 'X'), + (0x10CD, 'M', u'ⴭ'), + (0x10CE, 'X'), + (0x10D0, 'V'), + (0x10FC, 'M', u'ნ'), + (0x10FD, 'V'), + (0x115F, 'X'), + (0x1161, 'V'), + (0x1249, 'X'), + (0x124A, 'V'), + (0x124E, 'X'), + (0x1250, 'V'), + (0x1257, 'X'), + (0x1258, 'V'), + (0x1259, 'X'), + (0x125A, 'V'), + (0x125E, 'X'), + (0x1260, 'V'), + (0x1289, 'X'), + (0x128A, 'V'), + ] + +def _seg_14(): + return [ + (0x128E, 'X'), + (0x1290, 'V'), + (0x12B1, 'X'), + (0x12B2, 'V'), + (0x12B6, 'X'), + (0x12B8, 'V'), + (0x12BF, 'X'), + (0x12C0, 'V'), + (0x12C1, 'X'), + (0x12C2, 'V'), + (0x12C6, 'X'), + (0x12C8, 'V'), + (0x12D7, 'X'), + (0x12D8, 'V'), + (0x1311, 'X'), + (0x1312, 'V'), + (0x1316, 'X'), + (0x1318, 'V'), + (0x135B, 'X'), + (0x135D, 'V'), + (0x137D, 'X'), + (0x1380, 'V'), + (0x139A, 'X'), + (0x13A0, 'V'), + (0x13F6, 'X'), + (0x13F8, 'M', u'Ᏸ'), + (0x13F9, 'M', u'Ᏹ'), + (0x13FA, 'M', u'Ᏺ'), + (0x13FB, 'M', u'Ᏻ'), + (0x13FC, 'M', u'Ᏼ'), + (0x13FD, 'M', u'Ᏽ'), + (0x13FE, 'X'), + (0x1400, 'V'), + (0x1680, 'X'), + (0x1681, 'V'), + (0x169D, 'X'), + (0x16A0, 'V'), + (0x16F9, 'X'), + (0x1700, 'V'), + (0x170D, 'X'), + (0x170E, 'V'), + (0x1715, 'X'), + (0x1720, 'V'), + (0x1737, 'X'), + (0x1740, 'V'), + (0x1754, 'X'), + (0x1760, 'V'), + (0x176D, 'X'), + (0x176E, 'V'), + (0x1771, 'X'), + (0x1772, 'V'), + (0x1774, 'X'), + (0x1780, 'V'), + (0x17B4, 'X'), + (0x17B6, 'V'), + (0x17DE, 'X'), + (0x17E0, 'V'), + (0x17EA, 'X'), + (0x17F0, 'V'), + (0x17FA, 'X'), + (0x1800, 'V'), + (0x1806, 'X'), + (0x1807, 'V'), + (0x180B, 'I'), + (0x180E, 'X'), + (0x1810, 'V'), + (0x181A, 'X'), + (0x1820, 'V'), + (0x1879, 'X'), + (0x1880, 'V'), + (0x18AB, 'X'), + (0x18B0, 'V'), + (0x18F6, 'X'), + (0x1900, 'V'), + (0x191F, 'X'), + (0x1920, 'V'), + (0x192C, 'X'), + (0x1930, 'V'), + (0x193C, 'X'), + (0x1940, 'V'), + (0x1941, 'X'), + (0x1944, 'V'), + (0x196E, 'X'), + (0x1970, 'V'), + (0x1975, 'X'), + (0x1980, 'V'), + (0x19AC, 'X'), + (0x19B0, 'V'), + (0x19CA, 'X'), + (0x19D0, 'V'), + (0x19DB, 'X'), + (0x19DE, 'V'), + (0x1A1C, 'X'), + (0x1A1E, 'V'), + (0x1A5F, 'X'), + (0x1A60, 'V'), + (0x1A7D, 'X'), + (0x1A7F, 'V'), + (0x1A8A, 'X'), + (0x1A90, 'V'), + ] + +def _seg_15(): + return [ + (0x1A9A, 'X'), + (0x1AA0, 'V'), + (0x1AAE, 'X'), + (0x1AB0, 'V'), + (0x1ABF, 'X'), + (0x1B00, 'V'), + (0x1B4C, 'X'), + (0x1B50, 'V'), + (0x1B7D, 'X'), + (0x1B80, 'V'), + (0x1BF4, 'X'), + (0x1BFC, 'V'), + (0x1C38, 'X'), + (0x1C3B, 'V'), + (0x1C4A, 'X'), + (0x1C4D, 'V'), + (0x1C80, 'M', u'в'), + (0x1C81, 'M', u'д'), + (0x1C82, 'M', u'о'), + (0x1C83, 'M', u'с'), + (0x1C84, 'M', u'т'), + (0x1C86, 'M', u'ъ'), + (0x1C87, 'M', u'ѣ'), + (0x1C88, 'M', u'ꙋ'), + (0x1C89, 'X'), + (0x1CC0, 'V'), + (0x1CC8, 'X'), + (0x1CD0, 'V'), + (0x1CFA, 'X'), + (0x1D00, 'V'), + (0x1D2C, 'M', u'a'), + (0x1D2D, 'M', u'æ'), + (0x1D2E, 'M', u'b'), + (0x1D2F, 'V'), + (0x1D30, 'M', u'd'), + (0x1D31, 'M', u'e'), + (0x1D32, 'M', u'ǝ'), + (0x1D33, 'M', u'g'), + (0x1D34, 'M', u'h'), + (0x1D35, 'M', u'i'), + (0x1D36, 'M', u'j'), + (0x1D37, 'M', u'k'), + (0x1D38, 'M', u'l'), + (0x1D39, 'M', u'm'), + (0x1D3A, 'M', u'n'), + (0x1D3B, 'V'), + (0x1D3C, 'M', u'o'), + (0x1D3D, 'M', u'ȣ'), + (0x1D3E, 'M', u'p'), + (0x1D3F, 'M', u'r'), + (0x1D40, 'M', u't'), + (0x1D41, 'M', u'u'), + (0x1D42, 'M', u'w'), + (0x1D43, 'M', u'a'), + (0x1D44, 'M', u'ɐ'), + (0x1D45, 'M', u'ɑ'), + (0x1D46, 'M', u'ᴂ'), + (0x1D47, 'M', u'b'), + (0x1D48, 'M', u'd'), + (0x1D49, 'M', u'e'), + (0x1D4A, 'M', u'ə'), + (0x1D4B, 'M', u'ɛ'), + (0x1D4C, 'M', u'ɜ'), + (0x1D4D, 'M', u'g'), + (0x1D4E, 'V'), + (0x1D4F, 'M', u'k'), + (0x1D50, 'M', u'm'), + (0x1D51, 'M', u'ŋ'), + (0x1D52, 'M', u'o'), + (0x1D53, 'M', u'ɔ'), + (0x1D54, 'M', u'ᴖ'), + (0x1D55, 'M', u'ᴗ'), + (0x1D56, 'M', u'p'), + (0x1D57, 'M', u't'), + (0x1D58, 'M', u'u'), + (0x1D59, 'M', u'ᴝ'), + (0x1D5A, 'M', u'ɯ'), + (0x1D5B, 'M', u'v'), + (0x1D5C, 'M', u'ᴥ'), + (0x1D5D, 'M', u'β'), + (0x1D5E, 'M', u'γ'), + (0x1D5F, 'M', u'δ'), + (0x1D60, 'M', u'φ'), + (0x1D61, 'M', u'χ'), + (0x1D62, 'M', u'i'), + (0x1D63, 'M', u'r'), + (0x1D64, 'M', u'u'), + (0x1D65, 'M', u'v'), + (0x1D66, 'M', u'β'), + (0x1D67, 'M', u'γ'), + (0x1D68, 'M', u'ρ'), + (0x1D69, 'M', u'φ'), + (0x1D6A, 'M', u'χ'), + (0x1D6B, 'V'), + (0x1D78, 'M', u'н'), + (0x1D79, 'V'), + (0x1D9B, 'M', u'ɒ'), + (0x1D9C, 'M', u'c'), + (0x1D9D, 'M', u'ɕ'), + (0x1D9E, 'M', u'ð'), + ] + +def _seg_16(): + return [ + (0x1D9F, 'M', u'ɜ'), + (0x1DA0, 'M', u'f'), + (0x1DA1, 'M', u'ɟ'), + (0x1DA2, 'M', u'ɡ'), + (0x1DA3, 'M', u'ɥ'), + (0x1DA4, 'M', u'ɨ'), + (0x1DA5, 'M', u'ɩ'), + (0x1DA6, 'M', u'ɪ'), + (0x1DA7, 'M', u'ᵻ'), + (0x1DA8, 'M', u'ʝ'), + (0x1DA9, 'M', u'ɭ'), + (0x1DAA, 'M', u'ᶅ'), + (0x1DAB, 'M', u'ʟ'), + (0x1DAC, 'M', u'ɱ'), + (0x1DAD, 'M', u'ɰ'), + (0x1DAE, 'M', u'ɲ'), + (0x1DAF, 'M', u'ɳ'), + (0x1DB0, 'M', u'ɴ'), + (0x1DB1, 'M', u'ɵ'), + (0x1DB2, 'M', u'ɸ'), + (0x1DB3, 'M', u'ʂ'), + (0x1DB4, 'M', u'ʃ'), + (0x1DB5, 'M', u'ƫ'), + (0x1DB6, 'M', u'ʉ'), + (0x1DB7, 'M', u'ʊ'), + (0x1DB8, 'M', u'ᴜ'), + (0x1DB9, 'M', u'ʋ'), + (0x1DBA, 'M', u'ʌ'), + (0x1DBB, 'M', u'z'), + (0x1DBC, 'M', u'ʐ'), + (0x1DBD, 'M', u'ʑ'), + (0x1DBE, 'M', u'ʒ'), + (0x1DBF, 'M', u'θ'), + (0x1DC0, 'V'), + (0x1DFA, 'X'), + (0x1DFB, 'V'), + (0x1E00, 'M', u'ḁ'), + (0x1E01, 'V'), + (0x1E02, 'M', u'ḃ'), + (0x1E03, 'V'), + (0x1E04, 'M', u'ḅ'), + (0x1E05, 'V'), + (0x1E06, 'M', u'ḇ'), + (0x1E07, 'V'), + (0x1E08, 'M', u'ḉ'), + (0x1E09, 'V'), + (0x1E0A, 'M', u'ḋ'), + (0x1E0B, 'V'), + (0x1E0C, 'M', u'ḍ'), + (0x1E0D, 'V'), + (0x1E0E, 'M', u'ḏ'), + (0x1E0F, 'V'), + (0x1E10, 'M', u'ḑ'), + (0x1E11, 'V'), + (0x1E12, 'M', u'ḓ'), + (0x1E13, 'V'), + (0x1E14, 'M', u'ḕ'), + (0x1E15, 'V'), + (0x1E16, 'M', u'ḗ'), + (0x1E17, 'V'), + (0x1E18, 'M', u'ḙ'), + (0x1E19, 'V'), + (0x1E1A, 'M', u'ḛ'), + (0x1E1B, 'V'), + (0x1E1C, 'M', u'ḝ'), + (0x1E1D, 'V'), + (0x1E1E, 'M', u'ḟ'), + (0x1E1F, 'V'), + (0x1E20, 'M', u'ḡ'), + (0x1E21, 'V'), + (0x1E22, 'M', u'ḣ'), + (0x1E23, 'V'), + (0x1E24, 'M', u'ḥ'), + (0x1E25, 'V'), + (0x1E26, 'M', u'ḧ'), + (0x1E27, 'V'), + (0x1E28, 'M', u'ḩ'), + (0x1E29, 'V'), + (0x1E2A, 'M', u'ḫ'), + (0x1E2B, 'V'), + (0x1E2C, 'M', u'ḭ'), + (0x1E2D, 'V'), + (0x1E2E, 'M', u'ḯ'), + (0x1E2F, 'V'), + (0x1E30, 'M', u'ḱ'), + (0x1E31, 'V'), + (0x1E32, 'M', u'ḳ'), + (0x1E33, 'V'), + (0x1E34, 'M', u'ḵ'), + (0x1E35, 'V'), + (0x1E36, 'M', u'ḷ'), + (0x1E37, 'V'), + (0x1E38, 'M', u'ḹ'), + (0x1E39, 'V'), + (0x1E3A, 'M', u'ḻ'), + (0x1E3B, 'V'), + (0x1E3C, 'M', u'ḽ'), + (0x1E3D, 'V'), + (0x1E3E, 'M', u'ḿ'), + (0x1E3F, 'V'), + ] + +def _seg_17(): + return [ + (0x1E40, 'M', u'ṁ'), + (0x1E41, 'V'), + (0x1E42, 'M', u'ṃ'), + (0x1E43, 'V'), + (0x1E44, 'M', u'ṅ'), + (0x1E45, 'V'), + (0x1E46, 'M', u'ṇ'), + (0x1E47, 'V'), + (0x1E48, 'M', u'ṉ'), + (0x1E49, 'V'), + (0x1E4A, 'M', u'ṋ'), + (0x1E4B, 'V'), + (0x1E4C, 'M', u'ṍ'), + (0x1E4D, 'V'), + (0x1E4E, 'M', u'ṏ'), + (0x1E4F, 'V'), + (0x1E50, 'M', u'ṑ'), + (0x1E51, 'V'), + (0x1E52, 'M', u'ṓ'), + (0x1E53, 'V'), + (0x1E54, 'M', u'ṕ'), + (0x1E55, 'V'), + (0x1E56, 'M', u'ṗ'), + (0x1E57, 'V'), + (0x1E58, 'M', u'ṙ'), + (0x1E59, 'V'), + (0x1E5A, 'M', u'ṛ'), + (0x1E5B, 'V'), + (0x1E5C, 'M', u'ṝ'), + (0x1E5D, 'V'), + (0x1E5E, 'M', u'ṟ'), + (0x1E5F, 'V'), + (0x1E60, 'M', u'ṡ'), + (0x1E61, 'V'), + (0x1E62, 'M', u'ṣ'), + (0x1E63, 'V'), + (0x1E64, 'M', u'ṥ'), + (0x1E65, 'V'), + (0x1E66, 'M', u'ṧ'), + (0x1E67, 'V'), + (0x1E68, 'M', u'ṩ'), + (0x1E69, 'V'), + (0x1E6A, 'M', u'ṫ'), + (0x1E6B, 'V'), + (0x1E6C, 'M', u'ṭ'), + (0x1E6D, 'V'), + (0x1E6E, 'M', u'ṯ'), + (0x1E6F, 'V'), + (0x1E70, 'M', u'ṱ'), + (0x1E71, 'V'), + (0x1E72, 'M', u'ṳ'), + (0x1E73, 'V'), + (0x1E74, 'M', u'ṵ'), + (0x1E75, 'V'), + (0x1E76, 'M', u'ṷ'), + (0x1E77, 'V'), + (0x1E78, 'M', u'ṹ'), + (0x1E79, 'V'), + (0x1E7A, 'M', u'ṻ'), + (0x1E7B, 'V'), + (0x1E7C, 'M', u'ṽ'), + (0x1E7D, 'V'), + (0x1E7E, 'M', u'ṿ'), + (0x1E7F, 'V'), + (0x1E80, 'M', u'ẁ'), + (0x1E81, 'V'), + (0x1E82, 'M', u'ẃ'), + (0x1E83, 'V'), + (0x1E84, 'M', u'ẅ'), + (0x1E85, 'V'), + (0x1E86, 'M', u'ẇ'), + (0x1E87, 'V'), + (0x1E88, 'M', u'ẉ'), + (0x1E89, 'V'), + (0x1E8A, 'M', u'ẋ'), + (0x1E8B, 'V'), + (0x1E8C, 'M', u'ẍ'), + (0x1E8D, 'V'), + (0x1E8E, 'M', u'ẏ'), + (0x1E8F, 'V'), + (0x1E90, 'M', u'ẑ'), + (0x1E91, 'V'), + (0x1E92, 'M', u'ẓ'), + (0x1E93, 'V'), + (0x1E94, 'M', u'ẕ'), + (0x1E95, 'V'), + (0x1E9A, 'M', u'aʾ'), + (0x1E9B, 'M', u'ṡ'), + (0x1E9C, 'V'), + (0x1E9E, 'M', u'ss'), + (0x1E9F, 'V'), + (0x1EA0, 'M', u'ạ'), + (0x1EA1, 'V'), + (0x1EA2, 'M', u'ả'), + (0x1EA3, 'V'), + (0x1EA4, 'M', u'ấ'), + (0x1EA5, 'V'), + (0x1EA6, 'M', u'ầ'), + (0x1EA7, 'V'), + (0x1EA8, 'M', u'ẩ'), + ] + +def _seg_18(): + return [ + (0x1EA9, 'V'), + (0x1EAA, 'M', u'ẫ'), + (0x1EAB, 'V'), + (0x1EAC, 'M', u'ậ'), + (0x1EAD, 'V'), + (0x1EAE, 'M', u'ắ'), + (0x1EAF, 'V'), + (0x1EB0, 'M', u'ằ'), + (0x1EB1, 'V'), + (0x1EB2, 'M', u'ẳ'), + (0x1EB3, 'V'), + (0x1EB4, 'M', u'ẵ'), + (0x1EB5, 'V'), + (0x1EB6, 'M', u'ặ'), + (0x1EB7, 'V'), + (0x1EB8, 'M', u'ẹ'), + (0x1EB9, 'V'), + (0x1EBA, 'M', u'ẻ'), + (0x1EBB, 'V'), + (0x1EBC, 'M', u'ẽ'), + (0x1EBD, 'V'), + (0x1EBE, 'M', u'ế'), + (0x1EBF, 'V'), + (0x1EC0, 'M', u'ề'), + (0x1EC1, 'V'), + (0x1EC2, 'M', u'ể'), + (0x1EC3, 'V'), + (0x1EC4, 'M', u'ễ'), + (0x1EC5, 'V'), + (0x1EC6, 'M', u'ệ'), + (0x1EC7, 'V'), + (0x1EC8, 'M', u'ỉ'), + (0x1EC9, 'V'), + (0x1ECA, 'M', u'ị'), + (0x1ECB, 'V'), + (0x1ECC, 'M', u'ọ'), + (0x1ECD, 'V'), + (0x1ECE, 'M', u'ỏ'), + (0x1ECF, 'V'), + (0x1ED0, 'M', u'ố'), + (0x1ED1, 'V'), + (0x1ED2, 'M', u'ồ'), + (0x1ED3, 'V'), + (0x1ED4, 'M', u'ổ'), + (0x1ED5, 'V'), + (0x1ED6, 'M', u'ỗ'), + (0x1ED7, 'V'), + (0x1ED8, 'M', u'ộ'), + (0x1ED9, 'V'), + (0x1EDA, 'M', u'ớ'), + (0x1EDB, 'V'), + (0x1EDC, 'M', u'ờ'), + (0x1EDD, 'V'), + (0x1EDE, 'M', u'ở'), + (0x1EDF, 'V'), + (0x1EE0, 'M', u'ỡ'), + (0x1EE1, 'V'), + (0x1EE2, 'M', u'ợ'), + (0x1EE3, 'V'), + (0x1EE4, 'M', u'ụ'), + (0x1EE5, 'V'), + (0x1EE6, 'M', u'ủ'), + (0x1EE7, 'V'), + (0x1EE8, 'M', u'ứ'), + (0x1EE9, 'V'), + (0x1EEA, 'M', u'ừ'), + (0x1EEB, 'V'), + (0x1EEC, 'M', u'ử'), + (0x1EED, 'V'), + (0x1EEE, 'M', u'ữ'), + (0x1EEF, 'V'), + (0x1EF0, 'M', u'ự'), + (0x1EF1, 'V'), + (0x1EF2, 'M', u'ỳ'), + (0x1EF3, 'V'), + (0x1EF4, 'M', u'ỵ'), + (0x1EF5, 'V'), + (0x1EF6, 'M', u'ỷ'), + (0x1EF7, 'V'), + (0x1EF8, 'M', u'ỹ'), + (0x1EF9, 'V'), + (0x1EFA, 'M', u'ỻ'), + (0x1EFB, 'V'), + (0x1EFC, 'M', u'ỽ'), + (0x1EFD, 'V'), + (0x1EFE, 'M', u'ỿ'), + (0x1EFF, 'V'), + (0x1F08, 'M', u'ἀ'), + (0x1F09, 'M', u'ἁ'), + (0x1F0A, 'M', u'ἂ'), + (0x1F0B, 'M', u'ἃ'), + (0x1F0C, 'M', u'ἄ'), + (0x1F0D, 'M', u'ἅ'), + (0x1F0E, 'M', u'ἆ'), + (0x1F0F, 'M', u'ἇ'), + (0x1F10, 'V'), + (0x1F16, 'X'), + (0x1F18, 'M', u'ἐ'), + (0x1F19, 'M', u'ἑ'), + (0x1F1A, 'M', u'ἒ'), + ] + +def _seg_19(): + return [ + (0x1F1B, 'M', u'ἓ'), + (0x1F1C, 'M', u'ἔ'), + (0x1F1D, 'M', u'ἕ'), + (0x1F1E, 'X'), + (0x1F20, 'V'), + (0x1F28, 'M', u'ἠ'), + (0x1F29, 'M', u'ἡ'), + (0x1F2A, 'M', u'ἢ'), + (0x1F2B, 'M', u'ἣ'), + (0x1F2C, 'M', u'ἤ'), + (0x1F2D, 'M', u'ἥ'), + (0x1F2E, 'M', u'ἦ'), + (0x1F2F, 'M', u'ἧ'), + (0x1F30, 'V'), + (0x1F38, 'M', u'ἰ'), + (0x1F39, 'M', u'ἱ'), + (0x1F3A, 'M', u'ἲ'), + (0x1F3B, 'M', u'ἳ'), + (0x1F3C, 'M', u'ἴ'), + (0x1F3D, 'M', u'ἵ'), + (0x1F3E, 'M', u'ἶ'), + (0x1F3F, 'M', u'ἷ'), + (0x1F40, 'V'), + (0x1F46, 'X'), + (0x1F48, 'M', u'ὀ'), + (0x1F49, 'M', u'ὁ'), + (0x1F4A, 'M', u'ὂ'), + (0x1F4B, 'M', u'ὃ'), + (0x1F4C, 'M', u'ὄ'), + (0x1F4D, 'M', u'ὅ'), + (0x1F4E, 'X'), + (0x1F50, 'V'), + (0x1F58, 'X'), + (0x1F59, 'M', u'ὑ'), + (0x1F5A, 'X'), + (0x1F5B, 'M', u'ὓ'), + (0x1F5C, 'X'), + (0x1F5D, 'M', u'ὕ'), + (0x1F5E, 'X'), + (0x1F5F, 'M', u'ὗ'), + (0x1F60, 'V'), + (0x1F68, 'M', u'ὠ'), + (0x1F69, 'M', u'ὡ'), + (0x1F6A, 'M', u'ὢ'), + (0x1F6B, 'M', u'ὣ'), + (0x1F6C, 'M', u'ὤ'), + (0x1F6D, 'M', u'ὥ'), + (0x1F6E, 'M', u'ὦ'), + (0x1F6F, 'M', u'ὧ'), + (0x1F70, 'V'), + (0x1F71, 'M', u'ά'), + (0x1F72, 'V'), + (0x1F73, 'M', u'έ'), + (0x1F74, 'V'), + (0x1F75, 'M', u'ή'), + (0x1F76, 'V'), + (0x1F77, 'M', u'ί'), + (0x1F78, 'V'), + (0x1F79, 'M', u'ό'), + (0x1F7A, 'V'), + (0x1F7B, 'M', u'ύ'), + (0x1F7C, 'V'), + (0x1F7D, 'M', u'ώ'), + (0x1F7E, 'X'), + (0x1F80, 'M', u'ἀι'), + (0x1F81, 'M', u'ἁι'), + (0x1F82, 'M', u'ἂι'), + (0x1F83, 'M', u'ἃι'), + (0x1F84, 'M', u'ἄι'), + (0x1F85, 'M', u'ἅι'), + (0x1F86, 'M', u'ἆι'), + (0x1F87, 'M', u'ἇι'), + (0x1F88, 'M', u'ἀι'), + (0x1F89, 'M', u'ἁι'), + (0x1F8A, 'M', u'ἂι'), + (0x1F8B, 'M', u'ἃι'), + (0x1F8C, 'M', u'ἄι'), + (0x1F8D, 'M', u'ἅι'), + (0x1F8E, 'M', u'ἆι'), + (0x1F8F, 'M', u'ἇι'), + (0x1F90, 'M', u'ἠι'), + (0x1F91, 'M', u'ἡι'), + (0x1F92, 'M', u'ἢι'), + (0x1F93, 'M', u'ἣι'), + (0x1F94, 'M', u'ἤι'), + (0x1F95, 'M', u'ἥι'), + (0x1F96, 'M', u'ἦι'), + (0x1F97, 'M', u'ἧι'), + (0x1F98, 'M', u'ἠι'), + (0x1F99, 'M', u'ἡι'), + (0x1F9A, 'M', u'ἢι'), + (0x1F9B, 'M', u'ἣι'), + (0x1F9C, 'M', u'ἤι'), + (0x1F9D, 'M', u'ἥι'), + (0x1F9E, 'M', u'ἦι'), + (0x1F9F, 'M', u'ἧι'), + (0x1FA0, 'M', u'ὠι'), + (0x1FA1, 'M', u'ὡι'), + (0x1FA2, 'M', u'ὢι'), + (0x1FA3, 'M', u'ὣι'), + ] + +def _seg_20(): + return [ + (0x1FA4, 'M', u'ὤι'), + (0x1FA5, 'M', u'ὥι'), + (0x1FA6, 'M', u'ὦι'), + (0x1FA7, 'M', u'ὧι'), + (0x1FA8, 'M', u'ὠι'), + (0x1FA9, 'M', u'ὡι'), + (0x1FAA, 'M', u'ὢι'), + (0x1FAB, 'M', u'ὣι'), + (0x1FAC, 'M', u'ὤι'), + (0x1FAD, 'M', u'ὥι'), + (0x1FAE, 'M', u'ὦι'), + (0x1FAF, 'M', u'ὧι'), + (0x1FB0, 'V'), + (0x1FB2, 'M', u'ὰι'), + (0x1FB3, 'M', u'αι'), + (0x1FB4, 'M', u'άι'), + (0x1FB5, 'X'), + (0x1FB6, 'V'), + (0x1FB7, 'M', u'ᾶι'), + (0x1FB8, 'M', u'ᾰ'), + (0x1FB9, 'M', u'ᾱ'), + (0x1FBA, 'M', u'ὰ'), + (0x1FBB, 'M', u'ά'), + (0x1FBC, 'M', u'αι'), + (0x1FBD, '3', u' ̓'), + (0x1FBE, 'M', u'ι'), + (0x1FBF, '3', u' ̓'), + (0x1FC0, '3', u' ͂'), + (0x1FC1, '3', u' ̈͂'), + (0x1FC2, 'M', u'ὴι'), + (0x1FC3, 'M', u'ηι'), + (0x1FC4, 'M', u'ήι'), + (0x1FC5, 'X'), + (0x1FC6, 'V'), + (0x1FC7, 'M', u'ῆι'), + (0x1FC8, 'M', u'ὲ'), + (0x1FC9, 'M', u'έ'), + (0x1FCA, 'M', u'ὴ'), + (0x1FCB, 'M', u'ή'), + (0x1FCC, 'M', u'ηι'), + (0x1FCD, '3', u' ̓̀'), + (0x1FCE, '3', u' ̓́'), + (0x1FCF, '3', u' ̓͂'), + (0x1FD0, 'V'), + (0x1FD3, 'M', u'ΐ'), + (0x1FD4, 'X'), + (0x1FD6, 'V'), + (0x1FD8, 'M', u'ῐ'), + (0x1FD9, 'M', u'ῑ'), + (0x1FDA, 'M', u'ὶ'), + (0x1FDB, 'M', u'ί'), + (0x1FDC, 'X'), + (0x1FDD, '3', u' ̔̀'), + (0x1FDE, '3', u' ̔́'), + (0x1FDF, '3', u' ̔͂'), + (0x1FE0, 'V'), + (0x1FE3, 'M', u'ΰ'), + (0x1FE4, 'V'), + (0x1FE8, 'M', u'ῠ'), + (0x1FE9, 'M', u'ῡ'), + (0x1FEA, 'M', u'ὺ'), + (0x1FEB, 'M', u'ύ'), + (0x1FEC, 'M', u'ῥ'), + (0x1FED, '3', u' ̈̀'), + (0x1FEE, '3', u' ̈́'), + (0x1FEF, '3', u'`'), + (0x1FF0, 'X'), + (0x1FF2, 'M', u'ὼι'), + (0x1FF3, 'M', u'ωι'), + (0x1FF4, 'M', u'ώι'), + (0x1FF5, 'X'), + (0x1FF6, 'V'), + (0x1FF7, 'M', u'ῶι'), + (0x1FF8, 'M', u'ὸ'), + (0x1FF9, 'M', u'ό'), + (0x1FFA, 'M', u'ὼ'), + (0x1FFB, 'M', u'ώ'), + (0x1FFC, 'M', u'ωι'), + (0x1FFD, '3', u' ́'), + (0x1FFE, '3', u' ̔'), + (0x1FFF, 'X'), + (0x2000, '3', u' '), + (0x200B, 'I'), + (0x200C, 'D', u''), + (0x200E, 'X'), + (0x2010, 'V'), + (0x2011, 'M', u'‐'), + (0x2012, 'V'), + (0x2017, '3', u' ̳'), + (0x2018, 'V'), + (0x2024, 'X'), + (0x2027, 'V'), + (0x2028, 'X'), + (0x202F, '3', u' '), + (0x2030, 'V'), + (0x2033, 'M', u'′′'), + (0x2034, 'M', u'′′′'), + (0x2035, 'V'), + (0x2036, 'M', u'‵‵'), + (0x2037, 'M', u'‵‵‵'), + ] + +def _seg_21(): + return [ + (0x2038, 'V'), + (0x203C, '3', u'!!'), + (0x203D, 'V'), + (0x203E, '3', u' ̅'), + (0x203F, 'V'), + (0x2047, '3', u'??'), + (0x2048, '3', u'?!'), + (0x2049, '3', u'!?'), + (0x204A, 'V'), + (0x2057, 'M', u'′′′′'), + (0x2058, 'V'), + (0x205F, '3', u' '), + (0x2060, 'I'), + (0x2061, 'X'), + (0x2064, 'I'), + (0x2065, 'X'), + (0x2070, 'M', u'0'), + (0x2071, 'M', u'i'), + (0x2072, 'X'), + (0x2074, 'M', u'4'), + (0x2075, 'M', u'5'), + (0x2076, 'M', u'6'), + (0x2077, 'M', u'7'), + (0x2078, 'M', u'8'), + (0x2079, 'M', u'9'), + (0x207A, '3', u'+'), + (0x207B, 'M', u'−'), + (0x207C, '3', u'='), + (0x207D, '3', u'('), + (0x207E, '3', u')'), + (0x207F, 'M', u'n'), + (0x2080, 'M', u'0'), + (0x2081, 'M', u'1'), + (0x2082, 'M', u'2'), + (0x2083, 'M', u'3'), + (0x2084, 'M', u'4'), + (0x2085, 'M', u'5'), + (0x2086, 'M', u'6'), + (0x2087, 'M', u'7'), + (0x2088, 'M', u'8'), + (0x2089, 'M', u'9'), + (0x208A, '3', u'+'), + (0x208B, 'M', u'−'), + (0x208C, '3', u'='), + (0x208D, '3', u'('), + (0x208E, '3', u')'), + (0x208F, 'X'), + (0x2090, 'M', u'a'), + (0x2091, 'M', u'e'), + (0x2092, 'M', u'o'), + (0x2093, 'M', u'x'), + (0x2094, 'M', u'ə'), + (0x2095, 'M', u'h'), + (0x2096, 'M', u'k'), + (0x2097, 'M', u'l'), + (0x2098, 'M', u'm'), + (0x2099, 'M', u'n'), + (0x209A, 'M', u'p'), + (0x209B, 'M', u's'), + (0x209C, 'M', u't'), + (0x209D, 'X'), + (0x20A0, 'V'), + (0x20A8, 'M', u'rs'), + (0x20A9, 'V'), + (0x20C0, 'X'), + (0x20D0, 'V'), + (0x20F1, 'X'), + (0x2100, '3', u'a/c'), + (0x2101, '3', u'a/s'), + (0x2102, 'M', u'c'), + (0x2103, 'M', u'°c'), + (0x2104, 'V'), + (0x2105, '3', u'c/o'), + (0x2106, '3', u'c/u'), + (0x2107, 'M', u'ɛ'), + (0x2108, 'V'), + (0x2109, 'M', u'°f'), + (0x210A, 'M', u'g'), + (0x210B, 'M', u'h'), + (0x210F, 'M', u'ħ'), + (0x2110, 'M', u'i'), + (0x2112, 'M', u'l'), + (0x2114, 'V'), + (0x2115, 'M', u'n'), + (0x2116, 'M', u'no'), + (0x2117, 'V'), + (0x2119, 'M', u'p'), + (0x211A, 'M', u'q'), + (0x211B, 'M', u'r'), + (0x211E, 'V'), + (0x2120, 'M', u'sm'), + (0x2121, 'M', u'tel'), + (0x2122, 'M', u'tm'), + (0x2123, 'V'), + (0x2124, 'M', u'z'), + (0x2125, 'V'), + (0x2126, 'M', u'ω'), + (0x2127, 'V'), + (0x2128, 'M', u'z'), + (0x2129, 'V'), + ] + +def _seg_22(): + return [ + (0x212A, 'M', u'k'), + (0x212B, 'M', u'å'), + (0x212C, 'M', u'b'), + (0x212D, 'M', u'c'), + (0x212E, 'V'), + (0x212F, 'M', u'e'), + (0x2131, 'M', u'f'), + (0x2132, 'X'), + (0x2133, 'M', u'm'), + (0x2134, 'M', u'o'), + (0x2135, 'M', u'א'), + (0x2136, 'M', u'ב'), + (0x2137, 'M', u'ג'), + (0x2138, 'M', u'ד'), + (0x2139, 'M', u'i'), + (0x213A, 'V'), + (0x213B, 'M', u'fax'), + (0x213C, 'M', u'π'), + (0x213D, 'M', u'γ'), + (0x213F, 'M', u'π'), + (0x2140, 'M', u'∑'), + (0x2141, 'V'), + (0x2145, 'M', u'd'), + (0x2147, 'M', u'e'), + (0x2148, 'M', u'i'), + (0x2149, 'M', u'j'), + (0x214A, 'V'), + (0x2150, 'M', u'1⁄7'), + (0x2151, 'M', u'1⁄9'), + (0x2152, 'M', u'1⁄10'), + (0x2153, 'M', u'1⁄3'), + (0x2154, 'M', u'2⁄3'), + (0x2155, 'M', u'1⁄5'), + (0x2156, 'M', u'2⁄5'), + (0x2157, 'M', u'3⁄5'), + (0x2158, 'M', u'4⁄5'), + (0x2159, 'M', u'1⁄6'), + (0x215A, 'M', u'5⁄6'), + (0x215B, 'M', u'1⁄8'), + (0x215C, 'M', u'3⁄8'), + (0x215D, 'M', u'5⁄8'), + (0x215E, 'M', u'7⁄8'), + (0x215F, 'M', u'1⁄'), + (0x2160, 'M', u'i'), + (0x2161, 'M', u'ii'), + (0x2162, 'M', u'iii'), + (0x2163, 'M', u'iv'), + (0x2164, 'M', u'v'), + (0x2165, 'M', u'vi'), + (0x2166, 'M', u'vii'), + (0x2167, 'M', u'viii'), + (0x2168, 'M', u'ix'), + (0x2169, 'M', u'x'), + (0x216A, 'M', u'xi'), + (0x216B, 'M', u'xii'), + (0x216C, 'M', u'l'), + (0x216D, 'M', u'c'), + (0x216E, 'M', u'd'), + (0x216F, 'M', u'm'), + (0x2170, 'M', u'i'), + (0x2171, 'M', u'ii'), + (0x2172, 'M', u'iii'), + (0x2173, 'M', u'iv'), + (0x2174, 'M', u'v'), + (0x2175, 'M', u'vi'), + (0x2176, 'M', u'vii'), + (0x2177, 'M', u'viii'), + (0x2178, 'M', u'ix'), + (0x2179, 'M', u'x'), + (0x217A, 'M', u'xi'), + (0x217B, 'M', u'xii'), + (0x217C, 'M', u'l'), + (0x217D, 'M', u'c'), + (0x217E, 'M', u'd'), + (0x217F, 'M', u'm'), + (0x2180, 'V'), + (0x2183, 'X'), + (0x2184, 'V'), + (0x2189, 'M', u'0⁄3'), + (0x218A, 'V'), + (0x218C, 'X'), + (0x2190, 'V'), + (0x222C, 'M', u'∫∫'), + (0x222D, 'M', u'∫∫∫'), + (0x222E, 'V'), + (0x222F, 'M', u'∮∮'), + (0x2230, 'M', u'∮∮∮'), + (0x2231, 'V'), + (0x2260, '3'), + (0x2261, 'V'), + (0x226E, '3'), + (0x2270, 'V'), + (0x2329, 'M', u'〈'), + (0x232A, 'M', u'〉'), + (0x232B, 'V'), + (0x2427, 'X'), + (0x2440, 'V'), + (0x244B, 'X'), + (0x2460, 'M', u'1'), + (0x2461, 'M', u'2'), + ] + +def _seg_23(): + return [ + (0x2462, 'M', u'3'), + (0x2463, 'M', u'4'), + (0x2464, 'M', u'5'), + (0x2465, 'M', u'6'), + (0x2466, 'M', u'7'), + (0x2467, 'M', u'8'), + (0x2468, 'M', u'9'), + (0x2469, 'M', u'10'), + (0x246A, 'M', u'11'), + (0x246B, 'M', u'12'), + (0x246C, 'M', u'13'), + (0x246D, 'M', u'14'), + (0x246E, 'M', u'15'), + (0x246F, 'M', u'16'), + (0x2470, 'M', u'17'), + (0x2471, 'M', u'18'), + (0x2472, 'M', u'19'), + (0x2473, 'M', u'20'), + (0x2474, '3', u'(1)'), + (0x2475, '3', u'(2)'), + (0x2476, '3', u'(3)'), + (0x2477, '3', u'(4)'), + (0x2478, '3', u'(5)'), + (0x2479, '3', u'(6)'), + (0x247A, '3', u'(7)'), + (0x247B, '3', u'(8)'), + (0x247C, '3', u'(9)'), + (0x247D, '3', u'(10)'), + (0x247E, '3', u'(11)'), + (0x247F, '3', u'(12)'), + (0x2480, '3', u'(13)'), + (0x2481, '3', u'(14)'), + (0x2482, '3', u'(15)'), + (0x2483, '3', u'(16)'), + (0x2484, '3', u'(17)'), + (0x2485, '3', u'(18)'), + (0x2486, '3', u'(19)'), + (0x2487, '3', u'(20)'), + (0x2488, 'X'), + (0x249C, '3', u'(a)'), + (0x249D, '3', u'(b)'), + (0x249E, '3', u'(c)'), + (0x249F, '3', u'(d)'), + (0x24A0, '3', u'(e)'), + (0x24A1, '3', u'(f)'), + (0x24A2, '3', u'(g)'), + (0x24A3, '3', u'(h)'), + (0x24A4, '3', u'(i)'), + (0x24A5, '3', u'(j)'), + (0x24A6, '3', u'(k)'), + (0x24A7, '3', u'(l)'), + (0x24A8, '3', u'(m)'), + (0x24A9, '3', u'(n)'), + (0x24AA, '3', u'(o)'), + (0x24AB, '3', u'(p)'), + (0x24AC, '3', u'(q)'), + (0x24AD, '3', u'(r)'), + (0x24AE, '3', u'(s)'), + (0x24AF, '3', u'(t)'), + (0x24B0, '3', u'(u)'), + (0x24B1, '3', u'(v)'), + (0x24B2, '3', u'(w)'), + (0x24B3, '3', u'(x)'), + (0x24B4, '3', u'(y)'), + (0x24B5, '3', u'(z)'), + (0x24B6, 'M', u'a'), + (0x24B7, 'M', u'b'), + (0x24B8, 'M', u'c'), + (0x24B9, 'M', u'd'), + (0x24BA, 'M', u'e'), + (0x24BB, 'M', u'f'), + (0x24BC, 'M', u'g'), + (0x24BD, 'M', u'h'), + (0x24BE, 'M', u'i'), + (0x24BF, 'M', u'j'), + (0x24C0, 'M', u'k'), + (0x24C1, 'M', u'l'), + (0x24C2, 'M', u'm'), + (0x24C3, 'M', u'n'), + (0x24C4, 'M', u'o'), + (0x24C5, 'M', u'p'), + (0x24C6, 'M', u'q'), + (0x24C7, 'M', u'r'), + (0x24C8, 'M', u's'), + (0x24C9, 'M', u't'), + (0x24CA, 'M', u'u'), + (0x24CB, 'M', u'v'), + (0x24CC, 'M', u'w'), + (0x24CD, 'M', u'x'), + (0x24CE, 'M', u'y'), + (0x24CF, 'M', u'z'), + (0x24D0, 'M', u'a'), + (0x24D1, 'M', u'b'), + (0x24D2, 'M', u'c'), + (0x24D3, 'M', u'd'), + (0x24D4, 'M', u'e'), + (0x24D5, 'M', u'f'), + (0x24D6, 'M', u'g'), + (0x24D7, 'M', u'h'), + (0x24D8, 'M', u'i'), + ] + +def _seg_24(): + return [ + (0x24D9, 'M', u'j'), + (0x24DA, 'M', u'k'), + (0x24DB, 'M', u'l'), + (0x24DC, 'M', u'm'), + (0x24DD, 'M', u'n'), + (0x24DE, 'M', u'o'), + (0x24DF, 'M', u'p'), + (0x24E0, 'M', u'q'), + (0x24E1, 'M', u'r'), + (0x24E2, 'M', u's'), + (0x24E3, 'M', u't'), + (0x24E4, 'M', u'u'), + (0x24E5, 'M', u'v'), + (0x24E6, 'M', u'w'), + (0x24E7, 'M', u'x'), + (0x24E8, 'M', u'y'), + (0x24E9, 'M', u'z'), + (0x24EA, 'M', u'0'), + (0x24EB, 'V'), + (0x2A0C, 'M', u'∫∫∫∫'), + (0x2A0D, 'V'), + (0x2A74, '3', u'::='), + (0x2A75, '3', u'=='), + (0x2A76, '3', u'==='), + (0x2A77, 'V'), + (0x2ADC, 'M', u'⫝̸'), + (0x2ADD, 'V'), + (0x2B74, 'X'), + (0x2B76, 'V'), + (0x2B96, 'X'), + (0x2B98, 'V'), + (0x2BC9, 'X'), + (0x2BCA, 'V'), + (0x2BFF, 'X'), + (0x2C00, 'M', u'ⰰ'), + (0x2C01, 'M', u'ⰱ'), + (0x2C02, 'M', u'ⰲ'), + (0x2C03, 'M', u'ⰳ'), + (0x2C04, 'M', u'ⰴ'), + (0x2C05, 'M', u'ⰵ'), + (0x2C06, 'M', u'ⰶ'), + (0x2C07, 'M', u'ⰷ'), + (0x2C08, 'M', u'ⰸ'), + (0x2C09, 'M', u'ⰹ'), + (0x2C0A, 'M', u'ⰺ'), + (0x2C0B, 'M', u'ⰻ'), + (0x2C0C, 'M', u'ⰼ'), + (0x2C0D, 'M', u'ⰽ'), + (0x2C0E, 'M', u'ⰾ'), + (0x2C0F, 'M', u'ⰿ'), + (0x2C10, 'M', u'ⱀ'), + (0x2C11, 'M', u'ⱁ'), + (0x2C12, 'M', u'ⱂ'), + (0x2C13, 'M', u'ⱃ'), + (0x2C14, 'M', u'ⱄ'), + (0x2C15, 'M', u'ⱅ'), + (0x2C16, 'M', u'ⱆ'), + (0x2C17, 'M', u'ⱇ'), + (0x2C18, 'M', u'ⱈ'), + (0x2C19, 'M', u'ⱉ'), + (0x2C1A, 'M', u'ⱊ'), + (0x2C1B, 'M', u'ⱋ'), + (0x2C1C, 'M', u'ⱌ'), + (0x2C1D, 'M', u'ⱍ'), + (0x2C1E, 'M', u'ⱎ'), + (0x2C1F, 'M', u'ⱏ'), + (0x2C20, 'M', u'ⱐ'), + (0x2C21, 'M', u'ⱑ'), + (0x2C22, 'M', u'ⱒ'), + (0x2C23, 'M', u'ⱓ'), + (0x2C24, 'M', u'ⱔ'), + (0x2C25, 'M', u'ⱕ'), + (0x2C26, 'M', u'ⱖ'), + (0x2C27, 'M', u'ⱗ'), + (0x2C28, 'M', u'ⱘ'), + (0x2C29, 'M', u'ⱙ'), + (0x2C2A, 'M', u'ⱚ'), + (0x2C2B, 'M', u'ⱛ'), + (0x2C2C, 'M', u'ⱜ'), + (0x2C2D, 'M', u'ⱝ'), + (0x2C2E, 'M', u'ⱞ'), + (0x2C2F, 'X'), + (0x2C30, 'V'), + (0x2C5F, 'X'), + (0x2C60, 'M', u'ⱡ'), + (0x2C61, 'V'), + (0x2C62, 'M', u'ɫ'), + (0x2C63, 'M', u'ᵽ'), + (0x2C64, 'M', u'ɽ'), + (0x2C65, 'V'), + (0x2C67, 'M', u'ⱨ'), + (0x2C68, 'V'), + (0x2C69, 'M', u'ⱪ'), + (0x2C6A, 'V'), + (0x2C6B, 'M', u'ⱬ'), + (0x2C6C, 'V'), + (0x2C6D, 'M', u'ɑ'), + (0x2C6E, 'M', u'ɱ'), + (0x2C6F, 'M', u'ɐ'), + (0x2C70, 'M', u'ɒ'), + ] + +def _seg_25(): + return [ + (0x2C71, 'V'), + (0x2C72, 'M', u'ⱳ'), + (0x2C73, 'V'), + (0x2C75, 'M', u'ⱶ'), + (0x2C76, 'V'), + (0x2C7C, 'M', u'j'), + (0x2C7D, 'M', u'v'), + (0x2C7E, 'M', u'ȿ'), + (0x2C7F, 'M', u'ɀ'), + (0x2C80, 'M', u'ⲁ'), + (0x2C81, 'V'), + (0x2C82, 'M', u'ⲃ'), + (0x2C83, 'V'), + (0x2C84, 'M', u'ⲅ'), + (0x2C85, 'V'), + (0x2C86, 'M', u'ⲇ'), + (0x2C87, 'V'), + (0x2C88, 'M', u'ⲉ'), + (0x2C89, 'V'), + (0x2C8A, 'M', u'ⲋ'), + (0x2C8B, 'V'), + (0x2C8C, 'M', u'ⲍ'), + (0x2C8D, 'V'), + (0x2C8E, 'M', u'ⲏ'), + (0x2C8F, 'V'), + (0x2C90, 'M', u'ⲑ'), + (0x2C91, 'V'), + (0x2C92, 'M', u'ⲓ'), + (0x2C93, 'V'), + (0x2C94, 'M', u'ⲕ'), + (0x2C95, 'V'), + (0x2C96, 'M', u'ⲗ'), + (0x2C97, 'V'), + (0x2C98, 'M', u'ⲙ'), + (0x2C99, 'V'), + (0x2C9A, 'M', u'ⲛ'), + (0x2C9B, 'V'), + (0x2C9C, 'M', u'ⲝ'), + (0x2C9D, 'V'), + (0x2C9E, 'M', u'ⲟ'), + (0x2C9F, 'V'), + (0x2CA0, 'M', u'ⲡ'), + (0x2CA1, 'V'), + (0x2CA2, 'M', u'ⲣ'), + (0x2CA3, 'V'), + (0x2CA4, 'M', u'ⲥ'), + (0x2CA5, 'V'), + (0x2CA6, 'M', u'ⲧ'), + (0x2CA7, 'V'), + (0x2CA8, 'M', u'ⲩ'), + (0x2CA9, 'V'), + (0x2CAA, 'M', u'ⲫ'), + (0x2CAB, 'V'), + (0x2CAC, 'M', u'ⲭ'), + (0x2CAD, 'V'), + (0x2CAE, 'M', u'ⲯ'), + (0x2CAF, 'V'), + (0x2CB0, 'M', u'ⲱ'), + (0x2CB1, 'V'), + (0x2CB2, 'M', u'ⲳ'), + (0x2CB3, 'V'), + (0x2CB4, 'M', u'ⲵ'), + (0x2CB5, 'V'), + (0x2CB6, 'M', u'ⲷ'), + (0x2CB7, 'V'), + (0x2CB8, 'M', u'ⲹ'), + (0x2CB9, 'V'), + (0x2CBA, 'M', u'ⲻ'), + (0x2CBB, 'V'), + (0x2CBC, 'M', u'ⲽ'), + (0x2CBD, 'V'), + (0x2CBE, 'M', u'ⲿ'), + (0x2CBF, 'V'), + (0x2CC0, 'M', u'ⳁ'), + (0x2CC1, 'V'), + (0x2CC2, 'M', u'ⳃ'), + (0x2CC3, 'V'), + (0x2CC4, 'M', u'ⳅ'), + (0x2CC5, 'V'), + (0x2CC6, 'M', u'ⳇ'), + (0x2CC7, 'V'), + (0x2CC8, 'M', u'ⳉ'), + (0x2CC9, 'V'), + (0x2CCA, 'M', u'ⳋ'), + (0x2CCB, 'V'), + (0x2CCC, 'M', u'ⳍ'), + (0x2CCD, 'V'), + (0x2CCE, 'M', u'ⳏ'), + (0x2CCF, 'V'), + (0x2CD0, 'M', u'ⳑ'), + (0x2CD1, 'V'), + (0x2CD2, 'M', u'ⳓ'), + (0x2CD3, 'V'), + (0x2CD4, 'M', u'ⳕ'), + (0x2CD5, 'V'), + (0x2CD6, 'M', u'ⳗ'), + (0x2CD7, 'V'), + (0x2CD8, 'M', u'ⳙ'), + (0x2CD9, 'V'), + (0x2CDA, 'M', u'ⳛ'), + ] + +def _seg_26(): + return [ + (0x2CDB, 'V'), + (0x2CDC, 'M', u'ⳝ'), + (0x2CDD, 'V'), + (0x2CDE, 'M', u'ⳟ'), + (0x2CDF, 'V'), + (0x2CE0, 'M', u'ⳡ'), + (0x2CE1, 'V'), + (0x2CE2, 'M', u'ⳣ'), + (0x2CE3, 'V'), + (0x2CEB, 'M', u'ⳬ'), + (0x2CEC, 'V'), + (0x2CED, 'M', u'ⳮ'), + (0x2CEE, 'V'), + (0x2CF2, 'M', u'ⳳ'), + (0x2CF3, 'V'), + (0x2CF4, 'X'), + (0x2CF9, 'V'), + (0x2D26, 'X'), + (0x2D27, 'V'), + (0x2D28, 'X'), + (0x2D2D, 'V'), + (0x2D2E, 'X'), + (0x2D30, 'V'), + (0x2D68, 'X'), + (0x2D6F, 'M', u'ⵡ'), + (0x2D70, 'V'), + (0x2D71, 'X'), + (0x2D7F, 'V'), + (0x2D97, 'X'), + (0x2DA0, 'V'), + (0x2DA7, 'X'), + (0x2DA8, 'V'), + (0x2DAF, 'X'), + (0x2DB0, 'V'), + (0x2DB7, 'X'), + (0x2DB8, 'V'), + (0x2DBF, 'X'), + (0x2DC0, 'V'), + (0x2DC7, 'X'), + (0x2DC8, 'V'), + (0x2DCF, 'X'), + (0x2DD0, 'V'), + (0x2DD7, 'X'), + (0x2DD8, 'V'), + (0x2DDF, 'X'), + (0x2DE0, 'V'), + (0x2E4F, 'X'), + (0x2E80, 'V'), + (0x2E9A, 'X'), + (0x2E9B, 'V'), + (0x2E9F, 'M', u'母'), + (0x2EA0, 'V'), + (0x2EF3, 'M', u'龟'), + (0x2EF4, 'X'), + (0x2F00, 'M', u'一'), + (0x2F01, 'M', u'丨'), + (0x2F02, 'M', u'丶'), + (0x2F03, 'M', u'丿'), + (0x2F04, 'M', u'乙'), + (0x2F05, 'M', u'亅'), + (0x2F06, 'M', u'二'), + (0x2F07, 'M', u'亠'), + (0x2F08, 'M', u'人'), + (0x2F09, 'M', u'儿'), + (0x2F0A, 'M', u'入'), + (0x2F0B, 'M', u'八'), + (0x2F0C, 'M', u'冂'), + (0x2F0D, 'M', u'冖'), + (0x2F0E, 'M', u'冫'), + (0x2F0F, 'M', u'几'), + (0x2F10, 'M', u'凵'), + (0x2F11, 'M', u'刀'), + (0x2F12, 'M', u'力'), + (0x2F13, 'M', u'勹'), + (0x2F14, 'M', u'匕'), + (0x2F15, 'M', u'匚'), + (0x2F16, 'M', u'匸'), + (0x2F17, 'M', u'十'), + (0x2F18, 'M', u'卜'), + (0x2F19, 'M', u'卩'), + (0x2F1A, 'M', u'厂'), + (0x2F1B, 'M', u'厶'), + (0x2F1C, 'M', u'又'), + (0x2F1D, 'M', u'口'), + (0x2F1E, 'M', u'囗'), + (0x2F1F, 'M', u'土'), + (0x2F20, 'M', u'士'), + (0x2F21, 'M', u'夂'), + (0x2F22, 'M', u'夊'), + (0x2F23, 'M', u'夕'), + (0x2F24, 'M', u'大'), + (0x2F25, 'M', u'女'), + (0x2F26, 'M', u'子'), + (0x2F27, 'M', u'宀'), + (0x2F28, 'M', u'寸'), + (0x2F29, 'M', u'小'), + (0x2F2A, 'M', u'尢'), + (0x2F2B, 'M', u'尸'), + (0x2F2C, 'M', u'屮'), + (0x2F2D, 'M', u'山'), + ] + +def _seg_27(): + return [ + (0x2F2E, 'M', u'巛'), + (0x2F2F, 'M', u'工'), + (0x2F30, 'M', u'己'), + (0x2F31, 'M', u'巾'), + (0x2F32, 'M', u'干'), + (0x2F33, 'M', u'幺'), + (0x2F34, 'M', u'广'), + (0x2F35, 'M', u'廴'), + (0x2F36, 'M', u'廾'), + (0x2F37, 'M', u'弋'), + (0x2F38, 'M', u'弓'), + (0x2F39, 'M', u'彐'), + (0x2F3A, 'M', u'彡'), + (0x2F3B, 'M', u'彳'), + (0x2F3C, 'M', u'心'), + (0x2F3D, 'M', u'戈'), + (0x2F3E, 'M', u'戶'), + (0x2F3F, 'M', u'手'), + (0x2F40, 'M', u'支'), + (0x2F41, 'M', u'攴'), + (0x2F42, 'M', u'文'), + (0x2F43, 'M', u'斗'), + (0x2F44, 'M', u'斤'), + (0x2F45, 'M', u'方'), + (0x2F46, 'M', u'无'), + (0x2F47, 'M', u'日'), + (0x2F48, 'M', u'曰'), + (0x2F49, 'M', u'月'), + (0x2F4A, 'M', u'木'), + (0x2F4B, 'M', u'欠'), + (0x2F4C, 'M', u'止'), + (0x2F4D, 'M', u'歹'), + (0x2F4E, 'M', u'殳'), + (0x2F4F, 'M', u'毋'), + (0x2F50, 'M', u'比'), + (0x2F51, 'M', u'毛'), + (0x2F52, 'M', u'氏'), + (0x2F53, 'M', u'气'), + (0x2F54, 'M', u'水'), + (0x2F55, 'M', u'火'), + (0x2F56, 'M', u'爪'), + (0x2F57, 'M', u'父'), + (0x2F58, 'M', u'爻'), + (0x2F59, 'M', u'爿'), + (0x2F5A, 'M', u'片'), + (0x2F5B, 'M', u'牙'), + (0x2F5C, 'M', u'牛'), + (0x2F5D, 'M', u'犬'), + (0x2F5E, 'M', u'玄'), + (0x2F5F, 'M', u'玉'), + (0x2F60, 'M', u'瓜'), + (0x2F61, 'M', u'瓦'), + (0x2F62, 'M', u'甘'), + (0x2F63, 'M', u'生'), + (0x2F64, 'M', u'用'), + (0x2F65, 'M', u'田'), + (0x2F66, 'M', u'疋'), + (0x2F67, 'M', u'疒'), + (0x2F68, 'M', u'癶'), + (0x2F69, 'M', u'白'), + (0x2F6A, 'M', u'皮'), + (0x2F6B, 'M', u'皿'), + (0x2F6C, 'M', u'目'), + (0x2F6D, 'M', u'矛'), + (0x2F6E, 'M', u'矢'), + (0x2F6F, 'M', u'石'), + (0x2F70, 'M', u'示'), + (0x2F71, 'M', u'禸'), + (0x2F72, 'M', u'禾'), + (0x2F73, 'M', u'穴'), + (0x2F74, 'M', u'立'), + (0x2F75, 'M', u'竹'), + (0x2F76, 'M', u'米'), + (0x2F77, 'M', u'糸'), + (0x2F78, 'M', u'缶'), + (0x2F79, 'M', u'网'), + (0x2F7A, 'M', u'羊'), + (0x2F7B, 'M', u'羽'), + (0x2F7C, 'M', u'老'), + (0x2F7D, 'M', u'而'), + (0x2F7E, 'M', u'耒'), + (0x2F7F, 'M', u'耳'), + (0x2F80, 'M', u'聿'), + (0x2F81, 'M', u'肉'), + (0x2F82, 'M', u'臣'), + (0x2F83, 'M', u'自'), + (0x2F84, 'M', u'至'), + (0x2F85, 'M', u'臼'), + (0x2F86, 'M', u'舌'), + (0x2F87, 'M', u'舛'), + (0x2F88, 'M', u'舟'), + (0x2F89, 'M', u'艮'), + (0x2F8A, 'M', u'色'), + (0x2F8B, 'M', u'艸'), + (0x2F8C, 'M', u'虍'), + (0x2F8D, 'M', u'虫'), + (0x2F8E, 'M', u'血'), + (0x2F8F, 'M', u'行'), + (0x2F90, 'M', u'衣'), + (0x2F91, 'M', u'襾'), + ] + +def _seg_28(): + return [ + (0x2F92, 'M', u'見'), + (0x2F93, 'M', u'角'), + (0x2F94, 'M', u'言'), + (0x2F95, 'M', u'谷'), + (0x2F96, 'M', u'豆'), + (0x2F97, 'M', u'豕'), + (0x2F98, 'M', u'豸'), + (0x2F99, 'M', u'貝'), + (0x2F9A, 'M', u'赤'), + (0x2F9B, 'M', u'走'), + (0x2F9C, 'M', u'足'), + (0x2F9D, 'M', u'身'), + (0x2F9E, 'M', u'車'), + (0x2F9F, 'M', u'辛'), + (0x2FA0, 'M', u'辰'), + (0x2FA1, 'M', u'辵'), + (0x2FA2, 'M', u'邑'), + (0x2FA3, 'M', u'酉'), + (0x2FA4, 'M', u'釆'), + (0x2FA5, 'M', u'里'), + (0x2FA6, 'M', u'金'), + (0x2FA7, 'M', u'長'), + (0x2FA8, 'M', u'門'), + (0x2FA9, 'M', u'阜'), + (0x2FAA, 'M', u'隶'), + (0x2FAB, 'M', u'隹'), + (0x2FAC, 'M', u'雨'), + (0x2FAD, 'M', u'靑'), + (0x2FAE, 'M', u'非'), + (0x2FAF, 'M', u'面'), + (0x2FB0, 'M', u'革'), + (0x2FB1, 'M', u'韋'), + (0x2FB2, 'M', u'韭'), + (0x2FB3, 'M', u'音'), + (0x2FB4, 'M', u'頁'), + (0x2FB5, 'M', u'風'), + (0x2FB6, 'M', u'飛'), + (0x2FB7, 'M', u'食'), + (0x2FB8, 'M', u'首'), + (0x2FB9, 'M', u'香'), + (0x2FBA, 'M', u'馬'), + (0x2FBB, 'M', u'骨'), + (0x2FBC, 'M', u'高'), + (0x2FBD, 'M', u'髟'), + (0x2FBE, 'M', u'鬥'), + (0x2FBF, 'M', u'鬯'), + (0x2FC0, 'M', u'鬲'), + (0x2FC1, 'M', u'鬼'), + (0x2FC2, 'M', u'魚'), + (0x2FC3, 'M', u'鳥'), + (0x2FC4, 'M', u'鹵'), + (0x2FC5, 'M', u'鹿'), + (0x2FC6, 'M', u'麥'), + (0x2FC7, 'M', u'麻'), + (0x2FC8, 'M', u'黃'), + (0x2FC9, 'M', u'黍'), + (0x2FCA, 'M', u'黑'), + (0x2FCB, 'M', u'黹'), + (0x2FCC, 'M', u'黽'), + (0x2FCD, 'M', u'鼎'), + (0x2FCE, 'M', u'鼓'), + (0x2FCF, 'M', u'鼠'), + (0x2FD0, 'M', u'鼻'), + (0x2FD1, 'M', u'齊'), + (0x2FD2, 'M', u'齒'), + (0x2FD3, 'M', u'龍'), + (0x2FD4, 'M', u'龜'), + (0x2FD5, 'M', u'龠'), + (0x2FD6, 'X'), + (0x3000, '3', u' '), + (0x3001, 'V'), + (0x3002, 'M', u'.'), + (0x3003, 'V'), + (0x3036, 'M', u'〒'), + (0x3037, 'V'), + (0x3038, 'M', u'十'), + (0x3039, 'M', u'卄'), + (0x303A, 'M', u'卅'), + (0x303B, 'V'), + (0x3040, 'X'), + (0x3041, 'V'), + (0x3097, 'X'), + (0x3099, 'V'), + (0x309B, '3', u' ゙'), + (0x309C, '3', u' ゚'), + (0x309D, 'V'), + (0x309F, 'M', u'より'), + (0x30A0, 'V'), + (0x30FF, 'M', u'コト'), + (0x3100, 'X'), + (0x3105, 'V'), + (0x3130, 'X'), + (0x3131, 'M', u'ᄀ'), + (0x3132, 'M', u'ᄁ'), + (0x3133, 'M', u'ᆪ'), + (0x3134, 'M', u'ᄂ'), + (0x3135, 'M', u'ᆬ'), + (0x3136, 'M', u'ᆭ'), + (0x3137, 'M', u'ᄃ'), + (0x3138, 'M', u'ᄄ'), + ] + +def _seg_29(): + return [ + (0x3139, 'M', u'ᄅ'), + (0x313A, 'M', u'ᆰ'), + (0x313B, 'M', u'ᆱ'), + (0x313C, 'M', u'ᆲ'), + (0x313D, 'M', u'ᆳ'), + (0x313E, 'M', u'ᆴ'), + (0x313F, 'M', u'ᆵ'), + (0x3140, 'M', u'ᄚ'), + (0x3141, 'M', u'ᄆ'), + (0x3142, 'M', u'ᄇ'), + (0x3143, 'M', u'ᄈ'), + (0x3144, 'M', u'ᄡ'), + (0x3145, 'M', u'ᄉ'), + (0x3146, 'M', u'ᄊ'), + (0x3147, 'M', u'ᄋ'), + (0x3148, 'M', u'ᄌ'), + (0x3149, 'M', u'ᄍ'), + (0x314A, 'M', u'ᄎ'), + (0x314B, 'M', u'ᄏ'), + (0x314C, 'M', u'ᄐ'), + (0x314D, 'M', u'ᄑ'), + (0x314E, 'M', u'ᄒ'), + (0x314F, 'M', u'ᅡ'), + (0x3150, 'M', u'ᅢ'), + (0x3151, 'M', u'ᅣ'), + (0x3152, 'M', u'ᅤ'), + (0x3153, 'M', u'ᅥ'), + (0x3154, 'M', u'ᅦ'), + (0x3155, 'M', u'ᅧ'), + (0x3156, 'M', u'ᅨ'), + (0x3157, 'M', u'ᅩ'), + (0x3158, 'M', u'ᅪ'), + (0x3159, 'M', u'ᅫ'), + (0x315A, 'M', u'ᅬ'), + (0x315B, 'M', u'ᅭ'), + (0x315C, 'M', u'ᅮ'), + (0x315D, 'M', u'ᅯ'), + (0x315E, 'M', u'ᅰ'), + (0x315F, 'M', u'ᅱ'), + (0x3160, 'M', u'ᅲ'), + (0x3161, 'M', u'ᅳ'), + (0x3162, 'M', u'ᅴ'), + (0x3163, 'M', u'ᅵ'), + (0x3164, 'X'), + (0x3165, 'M', u'ᄔ'), + (0x3166, 'M', u'ᄕ'), + (0x3167, 'M', u'ᇇ'), + (0x3168, 'M', u'ᇈ'), + (0x3169, 'M', u'ᇌ'), + (0x316A, 'M', u'ᇎ'), + (0x316B, 'M', u'ᇓ'), + (0x316C, 'M', u'ᇗ'), + (0x316D, 'M', u'ᇙ'), + (0x316E, 'M', u'ᄜ'), + (0x316F, 'M', u'ᇝ'), + (0x3170, 'M', u'ᇟ'), + (0x3171, 'M', u'ᄝ'), + (0x3172, 'M', u'ᄞ'), + (0x3173, 'M', u'ᄠ'), + (0x3174, 'M', u'ᄢ'), + (0x3175, 'M', u'ᄣ'), + (0x3176, 'M', u'ᄧ'), + (0x3177, 'M', u'ᄩ'), + (0x3178, 'M', u'ᄫ'), + (0x3179, 'M', u'ᄬ'), + (0x317A, 'M', u'ᄭ'), + (0x317B, 'M', u'ᄮ'), + (0x317C, 'M', u'ᄯ'), + (0x317D, 'M', u'ᄲ'), + (0x317E, 'M', u'ᄶ'), + (0x317F, 'M', u'ᅀ'), + (0x3180, 'M', u'ᅇ'), + (0x3181, 'M', u'ᅌ'), + (0x3182, 'M', u'ᇱ'), + (0x3183, 'M', u'ᇲ'), + (0x3184, 'M', u'ᅗ'), + (0x3185, 'M', u'ᅘ'), + (0x3186, 'M', u'ᅙ'), + (0x3187, 'M', u'ᆄ'), + (0x3188, 'M', u'ᆅ'), + (0x3189, 'M', u'ᆈ'), + (0x318A, 'M', u'ᆑ'), + (0x318B, 'M', u'ᆒ'), + (0x318C, 'M', u'ᆔ'), + (0x318D, 'M', u'ᆞ'), + (0x318E, 'M', u'ᆡ'), + (0x318F, 'X'), + (0x3190, 'V'), + (0x3192, 'M', u'一'), + (0x3193, 'M', u'二'), + (0x3194, 'M', u'三'), + (0x3195, 'M', u'四'), + (0x3196, 'M', u'上'), + (0x3197, 'M', u'中'), + (0x3198, 'M', u'下'), + (0x3199, 'M', u'甲'), + (0x319A, 'M', u'乙'), + (0x319B, 'M', u'丙'), + (0x319C, 'M', u'丁'), + (0x319D, 'M', u'天'), + ] + +def _seg_30(): + return [ + (0x319E, 'M', u'地'), + (0x319F, 'M', u'人'), + (0x31A0, 'V'), + (0x31BB, 'X'), + (0x31C0, 'V'), + (0x31E4, 'X'), + (0x31F0, 'V'), + (0x3200, '3', u'(ᄀ)'), + (0x3201, '3', u'(ᄂ)'), + (0x3202, '3', u'(ᄃ)'), + (0x3203, '3', u'(ᄅ)'), + (0x3204, '3', u'(ᄆ)'), + (0x3205, '3', u'(ᄇ)'), + (0x3206, '3', u'(ᄉ)'), + (0x3207, '3', u'(ᄋ)'), + (0x3208, '3', u'(ᄌ)'), + (0x3209, '3', u'(ᄎ)'), + (0x320A, '3', u'(ᄏ)'), + (0x320B, '3', u'(ᄐ)'), + (0x320C, '3', u'(ᄑ)'), + (0x320D, '3', u'(ᄒ)'), + (0x320E, '3', u'(가)'), + (0x320F, '3', u'(나)'), + (0x3210, '3', u'(다)'), + (0x3211, '3', u'(라)'), + (0x3212, '3', u'(마)'), + (0x3213, '3', u'(바)'), + (0x3214, '3', u'(사)'), + (0x3215, '3', u'(아)'), + (0x3216, '3', u'(자)'), + (0x3217, '3', u'(차)'), + (0x3218, '3', u'(카)'), + (0x3219, '3', u'(타)'), + (0x321A, '3', u'(파)'), + (0x321B, '3', u'(하)'), + (0x321C, '3', u'(주)'), + (0x321D, '3', u'(오전)'), + (0x321E, '3', u'(오후)'), + (0x321F, 'X'), + (0x3220, '3', u'(一)'), + (0x3221, '3', u'(二)'), + (0x3222, '3', u'(三)'), + (0x3223, '3', u'(四)'), + (0x3224, '3', u'(五)'), + (0x3225, '3', u'(六)'), + (0x3226, '3', u'(七)'), + (0x3227, '3', u'(八)'), + (0x3228, '3', u'(九)'), + (0x3229, '3', u'(十)'), + (0x322A, '3', u'(月)'), + (0x322B, '3', u'(火)'), + (0x322C, '3', u'(水)'), + (0x322D, '3', u'(木)'), + (0x322E, '3', u'(金)'), + (0x322F, '3', u'(土)'), + (0x3230, '3', u'(日)'), + (0x3231, '3', u'(株)'), + (0x3232, '3', u'(有)'), + (0x3233, '3', u'(社)'), + (0x3234, '3', u'(名)'), + (0x3235, '3', u'(特)'), + (0x3236, '3', u'(財)'), + (0x3237, '3', u'(祝)'), + (0x3238, '3', u'(労)'), + (0x3239, '3', u'(代)'), + (0x323A, '3', u'(呼)'), + (0x323B, '3', u'(学)'), + (0x323C, '3', u'(監)'), + (0x323D, '3', u'(企)'), + (0x323E, '3', u'(資)'), + (0x323F, '3', u'(協)'), + (0x3240, '3', u'(祭)'), + (0x3241, '3', u'(休)'), + (0x3242, '3', u'(自)'), + (0x3243, '3', u'(至)'), + (0x3244, 'M', u'問'), + (0x3245, 'M', u'幼'), + (0x3246, 'M', u'文'), + (0x3247, 'M', u'箏'), + (0x3248, 'V'), + (0x3250, 'M', u'pte'), + (0x3251, 'M', u'21'), + (0x3252, 'M', u'22'), + (0x3253, 'M', u'23'), + (0x3254, 'M', u'24'), + (0x3255, 'M', u'25'), + (0x3256, 'M', u'26'), + (0x3257, 'M', u'27'), + (0x3258, 'M', u'28'), + (0x3259, 'M', u'29'), + (0x325A, 'M', u'30'), + (0x325B, 'M', u'31'), + (0x325C, 'M', u'32'), + (0x325D, 'M', u'33'), + (0x325E, 'M', u'34'), + (0x325F, 'M', u'35'), + (0x3260, 'M', u'ᄀ'), + (0x3261, 'M', u'ᄂ'), + (0x3262, 'M', u'ᄃ'), + (0x3263, 'M', u'ᄅ'), + ] + +def _seg_31(): + return [ + (0x3264, 'M', u'ᄆ'), + (0x3265, 'M', u'ᄇ'), + (0x3266, 'M', u'ᄉ'), + (0x3267, 'M', u'ᄋ'), + (0x3268, 'M', u'ᄌ'), + (0x3269, 'M', u'ᄎ'), + (0x326A, 'M', u'ᄏ'), + (0x326B, 'M', u'ᄐ'), + (0x326C, 'M', u'ᄑ'), + (0x326D, 'M', u'ᄒ'), + (0x326E, 'M', u'가'), + (0x326F, 'M', u'나'), + (0x3270, 'M', u'다'), + (0x3271, 'M', u'라'), + (0x3272, 'M', u'마'), + (0x3273, 'M', u'바'), + (0x3274, 'M', u'사'), + (0x3275, 'M', u'아'), + (0x3276, 'M', u'자'), + (0x3277, 'M', u'차'), + (0x3278, 'M', u'카'), + (0x3279, 'M', u'타'), + (0x327A, 'M', u'파'), + (0x327B, 'M', u'하'), + (0x327C, 'M', u'참고'), + (0x327D, 'M', u'주의'), + (0x327E, 'M', u'우'), + (0x327F, 'V'), + (0x3280, 'M', u'一'), + (0x3281, 'M', u'二'), + (0x3282, 'M', u'三'), + (0x3283, 'M', u'四'), + (0x3284, 'M', u'五'), + (0x3285, 'M', u'六'), + (0x3286, 'M', u'七'), + (0x3287, 'M', u'八'), + (0x3288, 'M', u'九'), + (0x3289, 'M', u'十'), + (0x328A, 'M', u'月'), + (0x328B, 'M', u'火'), + (0x328C, 'M', u'水'), + (0x328D, 'M', u'木'), + (0x328E, 'M', u'金'), + (0x328F, 'M', u'土'), + (0x3290, 'M', u'日'), + (0x3291, 'M', u'株'), + (0x3292, 'M', u'有'), + (0x3293, 'M', u'社'), + (0x3294, 'M', u'名'), + (0x3295, 'M', u'特'), + (0x3296, 'M', u'財'), + (0x3297, 'M', u'祝'), + (0x3298, 'M', u'労'), + (0x3299, 'M', u'秘'), + (0x329A, 'M', u'男'), + (0x329B, 'M', u'女'), + (0x329C, 'M', u'適'), + (0x329D, 'M', u'優'), + (0x329E, 'M', u'印'), + (0x329F, 'M', u'注'), + (0x32A0, 'M', u'項'), + (0x32A1, 'M', u'休'), + (0x32A2, 'M', u'写'), + (0x32A3, 'M', u'正'), + (0x32A4, 'M', u'上'), + (0x32A5, 'M', u'中'), + (0x32A6, 'M', u'下'), + (0x32A7, 'M', u'左'), + (0x32A8, 'M', u'右'), + (0x32A9, 'M', u'医'), + (0x32AA, 'M', u'宗'), + (0x32AB, 'M', u'学'), + (0x32AC, 'M', u'監'), + (0x32AD, 'M', u'企'), + (0x32AE, 'M', u'資'), + (0x32AF, 'M', u'協'), + (0x32B0, 'M', u'夜'), + (0x32B1, 'M', u'36'), + (0x32B2, 'M', u'37'), + (0x32B3, 'M', u'38'), + (0x32B4, 'M', u'39'), + (0x32B5, 'M', u'40'), + (0x32B6, 'M', u'41'), + (0x32B7, 'M', u'42'), + (0x32B8, 'M', u'43'), + (0x32B9, 'M', u'44'), + (0x32BA, 'M', u'45'), + (0x32BB, 'M', u'46'), + (0x32BC, 'M', u'47'), + (0x32BD, 'M', u'48'), + (0x32BE, 'M', u'49'), + (0x32BF, 'M', u'50'), + (0x32C0, 'M', u'1月'), + (0x32C1, 'M', u'2月'), + (0x32C2, 'M', u'3月'), + (0x32C3, 'M', u'4月'), + (0x32C4, 'M', u'5月'), + (0x32C5, 'M', u'6月'), + (0x32C6, 'M', u'7月'), + (0x32C7, 'M', u'8月'), + ] + +def _seg_32(): + return [ + (0x32C8, 'M', u'9月'), + (0x32C9, 'M', u'10月'), + (0x32CA, 'M', u'11月'), + (0x32CB, 'M', u'12月'), + (0x32CC, 'M', u'hg'), + (0x32CD, 'M', u'erg'), + (0x32CE, 'M', u'ev'), + (0x32CF, 'M', u'ltd'), + (0x32D0, 'M', u'ア'), + (0x32D1, 'M', u'イ'), + (0x32D2, 'M', u'ウ'), + (0x32D3, 'M', u'エ'), + (0x32D4, 'M', u'オ'), + (0x32D5, 'M', u'カ'), + (0x32D6, 'M', u'キ'), + (0x32D7, 'M', u'ク'), + (0x32D8, 'M', u'ケ'), + (0x32D9, 'M', u'コ'), + (0x32DA, 'M', u'サ'), + (0x32DB, 'M', u'シ'), + (0x32DC, 'M', u'ス'), + (0x32DD, 'M', u'セ'), + (0x32DE, 'M', u'ソ'), + (0x32DF, 'M', u'タ'), + (0x32E0, 'M', u'チ'), + (0x32E1, 'M', u'ツ'), + (0x32E2, 'M', u'テ'), + (0x32E3, 'M', u'ト'), + (0x32E4, 'M', u'ナ'), + (0x32E5, 'M', u'ニ'), + (0x32E6, 'M', u'ヌ'), + (0x32E7, 'M', u'ネ'), + (0x32E8, 'M', u'ノ'), + (0x32E9, 'M', u'ハ'), + (0x32EA, 'M', u'ヒ'), + (0x32EB, 'M', u'フ'), + (0x32EC, 'M', u'ヘ'), + (0x32ED, 'M', u'ホ'), + (0x32EE, 'M', u'マ'), + (0x32EF, 'M', u'ミ'), + (0x32F0, 'M', u'ム'), + (0x32F1, 'M', u'メ'), + (0x32F2, 'M', u'モ'), + (0x32F3, 'M', u'ヤ'), + (0x32F4, 'M', u'ユ'), + (0x32F5, 'M', u'ヨ'), + (0x32F6, 'M', u'ラ'), + (0x32F7, 'M', u'リ'), + (0x32F8, 'M', u'ル'), + (0x32F9, 'M', u'レ'), + (0x32FA, 'M', u'ロ'), + (0x32FB, 'M', u'ワ'), + (0x32FC, 'M', u'ヰ'), + (0x32FD, 'M', u'ヱ'), + (0x32FE, 'M', u'ヲ'), + (0x32FF, 'X'), + (0x3300, 'M', u'アパート'), + (0x3301, 'M', u'アルファ'), + (0x3302, 'M', u'アンペア'), + (0x3303, 'M', u'アール'), + (0x3304, 'M', u'イニング'), + (0x3305, 'M', u'インチ'), + (0x3306, 'M', u'ウォン'), + (0x3307, 'M', u'エスクード'), + (0x3308, 'M', u'エーカー'), + (0x3309, 'M', u'オンス'), + (0x330A, 'M', u'オーム'), + (0x330B, 'M', u'カイリ'), + (0x330C, 'M', u'カラット'), + (0x330D, 'M', u'カロリー'), + (0x330E, 'M', u'ガロン'), + (0x330F, 'M', u'ガンマ'), + (0x3310, 'M', u'ギガ'), + (0x3311, 'M', u'ギニー'), + (0x3312, 'M', u'キュリー'), + (0x3313, 'M', u'ギルダー'), + (0x3314, 'M', u'キロ'), + (0x3315, 'M', u'キログラム'), + (0x3316, 'M', u'キロメートル'), + (0x3317, 'M', u'キロワット'), + (0x3318, 'M', u'グラム'), + (0x3319, 'M', u'グラムトン'), + (0x331A, 'M', u'クルゼイロ'), + (0x331B, 'M', u'クローネ'), + (0x331C, 'M', u'ケース'), + (0x331D, 'M', u'コルナ'), + (0x331E, 'M', u'コーポ'), + (0x331F, 'M', u'サイクル'), + (0x3320, 'M', u'サンチーム'), + (0x3321, 'M', u'シリング'), + (0x3322, 'M', u'センチ'), + (0x3323, 'M', u'セント'), + (0x3324, 'M', u'ダース'), + (0x3325, 'M', u'デシ'), + (0x3326, 'M', u'ドル'), + (0x3327, 'M', u'トン'), + (0x3328, 'M', u'ナノ'), + (0x3329, 'M', u'ノット'), + (0x332A, 'M', u'ハイツ'), + (0x332B, 'M', u'パーセント'), + ] + +def _seg_33(): + return [ + (0x332C, 'M', u'パーツ'), + (0x332D, 'M', u'バーレル'), + (0x332E, 'M', u'ピアストル'), + (0x332F, 'M', u'ピクル'), + (0x3330, 'M', u'ピコ'), + (0x3331, 'M', u'ビル'), + (0x3332, 'M', u'ファラッド'), + (0x3333, 'M', u'フィート'), + (0x3334, 'M', u'ブッシェル'), + (0x3335, 'M', u'フラン'), + (0x3336, 'M', u'ヘクタール'), + (0x3337, 'M', u'ペソ'), + (0x3338, 'M', u'ペニヒ'), + (0x3339, 'M', u'ヘルツ'), + (0x333A, 'M', u'ペンス'), + (0x333B, 'M', u'ページ'), + (0x333C, 'M', u'ベータ'), + (0x333D, 'M', u'ポイント'), + (0x333E, 'M', u'ボルト'), + (0x333F, 'M', u'ホン'), + (0x3340, 'M', u'ポンド'), + (0x3341, 'M', u'ホール'), + (0x3342, 'M', u'ホーン'), + (0x3343, 'M', u'マイクロ'), + (0x3344, 'M', u'マイル'), + (0x3345, 'M', u'マッハ'), + (0x3346, 'M', u'マルク'), + (0x3347, 'M', u'マンション'), + (0x3348, 'M', u'ミクロン'), + (0x3349, 'M', u'ミリ'), + (0x334A, 'M', u'ミリバール'), + (0x334B, 'M', u'メガ'), + (0x334C, 'M', u'メガトン'), + (0x334D, 'M', u'メートル'), + (0x334E, 'M', u'ヤード'), + (0x334F, 'M', u'ヤール'), + (0x3350, 'M', u'ユアン'), + (0x3351, 'M', u'リットル'), + (0x3352, 'M', u'リラ'), + (0x3353, 'M', u'ルピー'), + (0x3354, 'M', u'ルーブル'), + (0x3355, 'M', u'レム'), + (0x3356, 'M', u'レントゲン'), + (0x3357, 'M', u'ワット'), + (0x3358, 'M', u'0点'), + (0x3359, 'M', u'1点'), + (0x335A, 'M', u'2点'), + (0x335B, 'M', u'3点'), + (0x335C, 'M', u'4点'), + (0x335D, 'M', u'5点'), + (0x335E, 'M', u'6点'), + (0x335F, 'M', u'7点'), + (0x3360, 'M', u'8点'), + (0x3361, 'M', u'9点'), + (0x3362, 'M', u'10点'), + (0x3363, 'M', u'11点'), + (0x3364, 'M', u'12点'), + (0x3365, 'M', u'13点'), + (0x3366, 'M', u'14点'), + (0x3367, 'M', u'15点'), + (0x3368, 'M', u'16点'), + (0x3369, 'M', u'17点'), + (0x336A, 'M', u'18点'), + (0x336B, 'M', u'19点'), + (0x336C, 'M', u'20点'), + (0x336D, 'M', u'21点'), + (0x336E, 'M', u'22点'), + (0x336F, 'M', u'23点'), + (0x3370, 'M', u'24点'), + (0x3371, 'M', u'hpa'), + (0x3372, 'M', u'da'), + (0x3373, 'M', u'au'), + (0x3374, 'M', u'bar'), + (0x3375, 'M', u'ov'), + (0x3376, 'M', u'pc'), + (0x3377, 'M', u'dm'), + (0x3378, 'M', u'dm2'), + (0x3379, 'M', u'dm3'), + (0x337A, 'M', u'iu'), + (0x337B, 'M', u'平成'), + (0x337C, 'M', u'昭和'), + (0x337D, 'M', u'大正'), + (0x337E, 'M', u'明治'), + (0x337F, 'M', u'株式会社'), + (0x3380, 'M', u'pa'), + (0x3381, 'M', u'na'), + (0x3382, 'M', u'μa'), + (0x3383, 'M', u'ma'), + (0x3384, 'M', u'ka'), + (0x3385, 'M', u'kb'), + (0x3386, 'M', u'mb'), + (0x3387, 'M', u'gb'), + (0x3388, 'M', u'cal'), + (0x3389, 'M', u'kcal'), + (0x338A, 'M', u'pf'), + (0x338B, 'M', u'nf'), + (0x338C, 'M', u'μf'), + (0x338D, 'M', u'μg'), + (0x338E, 'M', u'mg'), + (0x338F, 'M', u'kg'), + ] + +def _seg_34(): + return [ + (0x3390, 'M', u'hz'), + (0x3391, 'M', u'khz'), + (0x3392, 'M', u'mhz'), + (0x3393, 'M', u'ghz'), + (0x3394, 'M', u'thz'), + (0x3395, 'M', u'μl'), + (0x3396, 'M', u'ml'), + (0x3397, 'M', u'dl'), + (0x3398, 'M', u'kl'), + (0x3399, 'M', u'fm'), + (0x339A, 'M', u'nm'), + (0x339B, 'M', u'μm'), + (0x339C, 'M', u'mm'), + (0x339D, 'M', u'cm'), + (0x339E, 'M', u'km'), + (0x339F, 'M', u'mm2'), + (0x33A0, 'M', u'cm2'), + (0x33A1, 'M', u'm2'), + (0x33A2, 'M', u'km2'), + (0x33A3, 'M', u'mm3'), + (0x33A4, 'M', u'cm3'), + (0x33A5, 'M', u'm3'), + (0x33A6, 'M', u'km3'), + (0x33A7, 'M', u'm∕s'), + (0x33A8, 'M', u'm∕s2'), + (0x33A9, 'M', u'pa'), + (0x33AA, 'M', u'kpa'), + (0x33AB, 'M', u'mpa'), + (0x33AC, 'M', u'gpa'), + (0x33AD, 'M', u'rad'), + (0x33AE, 'M', u'rad∕s'), + (0x33AF, 'M', u'rad∕s2'), + (0x33B0, 'M', u'ps'), + (0x33B1, 'M', u'ns'), + (0x33B2, 'M', u'μs'), + (0x33B3, 'M', u'ms'), + (0x33B4, 'M', u'pv'), + (0x33B5, 'M', u'nv'), + (0x33B6, 'M', u'μv'), + (0x33B7, 'M', u'mv'), + (0x33B8, 'M', u'kv'), + (0x33B9, 'M', u'mv'), + (0x33BA, 'M', u'pw'), + (0x33BB, 'M', u'nw'), + (0x33BC, 'M', u'μw'), + (0x33BD, 'M', u'mw'), + (0x33BE, 'M', u'kw'), + (0x33BF, 'M', u'mw'), + (0x33C0, 'M', u'kω'), + (0x33C1, 'M', u'mω'), + (0x33C2, 'X'), + (0x33C3, 'M', u'bq'), + (0x33C4, 'M', u'cc'), + (0x33C5, 'M', u'cd'), + (0x33C6, 'M', u'c∕kg'), + (0x33C7, 'X'), + (0x33C8, 'M', u'db'), + (0x33C9, 'M', u'gy'), + (0x33CA, 'M', u'ha'), + (0x33CB, 'M', u'hp'), + (0x33CC, 'M', u'in'), + (0x33CD, 'M', u'kk'), + (0x33CE, 'M', u'km'), + (0x33CF, 'M', u'kt'), + (0x33D0, 'M', u'lm'), + (0x33D1, 'M', u'ln'), + (0x33D2, 'M', u'log'), + (0x33D3, 'M', u'lx'), + (0x33D4, 'M', u'mb'), + (0x33D5, 'M', u'mil'), + (0x33D6, 'M', u'mol'), + (0x33D7, 'M', u'ph'), + (0x33D8, 'X'), + (0x33D9, 'M', u'ppm'), + (0x33DA, 'M', u'pr'), + (0x33DB, 'M', u'sr'), + (0x33DC, 'M', u'sv'), + (0x33DD, 'M', u'wb'), + (0x33DE, 'M', u'v∕m'), + (0x33DF, 'M', u'a∕m'), + (0x33E0, 'M', u'1日'), + (0x33E1, 'M', u'2日'), + (0x33E2, 'M', u'3日'), + (0x33E3, 'M', u'4日'), + (0x33E4, 'M', u'5日'), + (0x33E5, 'M', u'6日'), + (0x33E6, 'M', u'7日'), + (0x33E7, 'M', u'8日'), + (0x33E8, 'M', u'9日'), + (0x33E9, 'M', u'10日'), + (0x33EA, 'M', u'11日'), + (0x33EB, 'M', u'12日'), + (0x33EC, 'M', u'13日'), + (0x33ED, 'M', u'14日'), + (0x33EE, 'M', u'15日'), + (0x33EF, 'M', u'16日'), + (0x33F0, 'M', u'17日'), + (0x33F1, 'M', u'18日'), + (0x33F2, 'M', u'19日'), + (0x33F3, 'M', u'20日'), + ] + +def _seg_35(): + return [ + (0x33F4, 'M', u'21日'), + (0x33F5, 'M', u'22日'), + (0x33F6, 'M', u'23日'), + (0x33F7, 'M', u'24日'), + (0x33F8, 'M', u'25日'), + (0x33F9, 'M', u'26日'), + (0x33FA, 'M', u'27日'), + (0x33FB, 'M', u'28日'), + (0x33FC, 'M', u'29日'), + (0x33FD, 'M', u'30日'), + (0x33FE, 'M', u'31日'), + (0x33FF, 'M', u'gal'), + (0x3400, 'V'), + (0x4DB6, 'X'), + (0x4DC0, 'V'), + (0x9FF0, 'X'), + (0xA000, 'V'), + (0xA48D, 'X'), + (0xA490, 'V'), + (0xA4C7, 'X'), + (0xA4D0, 'V'), + (0xA62C, 'X'), + (0xA640, 'M', u'ꙁ'), + (0xA641, 'V'), + (0xA642, 'M', u'ꙃ'), + (0xA643, 'V'), + (0xA644, 'M', u'ꙅ'), + (0xA645, 'V'), + (0xA646, 'M', u'ꙇ'), + (0xA647, 'V'), + (0xA648, 'M', u'ꙉ'), + (0xA649, 'V'), + (0xA64A, 'M', u'ꙋ'), + (0xA64B, 'V'), + (0xA64C, 'M', u'ꙍ'), + (0xA64D, 'V'), + (0xA64E, 'M', u'ꙏ'), + (0xA64F, 'V'), + (0xA650, 'M', u'ꙑ'), + (0xA651, 'V'), + (0xA652, 'M', u'ꙓ'), + (0xA653, 'V'), + (0xA654, 'M', u'ꙕ'), + (0xA655, 'V'), + (0xA656, 'M', u'ꙗ'), + (0xA657, 'V'), + (0xA658, 'M', u'ꙙ'), + (0xA659, 'V'), + (0xA65A, 'M', u'ꙛ'), + (0xA65B, 'V'), + (0xA65C, 'M', u'ꙝ'), + (0xA65D, 'V'), + (0xA65E, 'M', u'ꙟ'), + (0xA65F, 'V'), + (0xA660, 'M', u'ꙡ'), + (0xA661, 'V'), + (0xA662, 'M', u'ꙣ'), + (0xA663, 'V'), + (0xA664, 'M', u'ꙥ'), + (0xA665, 'V'), + (0xA666, 'M', u'ꙧ'), + (0xA667, 'V'), + (0xA668, 'M', u'ꙩ'), + (0xA669, 'V'), + (0xA66A, 'M', u'ꙫ'), + (0xA66B, 'V'), + (0xA66C, 'M', u'ꙭ'), + (0xA66D, 'V'), + (0xA680, 'M', u'ꚁ'), + (0xA681, 'V'), + (0xA682, 'M', u'ꚃ'), + (0xA683, 'V'), + (0xA684, 'M', u'ꚅ'), + (0xA685, 'V'), + (0xA686, 'M', u'ꚇ'), + (0xA687, 'V'), + (0xA688, 'M', u'ꚉ'), + (0xA689, 'V'), + (0xA68A, 'M', u'ꚋ'), + (0xA68B, 'V'), + (0xA68C, 'M', u'ꚍ'), + (0xA68D, 'V'), + (0xA68E, 'M', u'ꚏ'), + (0xA68F, 'V'), + (0xA690, 'M', u'ꚑ'), + (0xA691, 'V'), + (0xA692, 'M', u'ꚓ'), + (0xA693, 'V'), + (0xA694, 'M', u'ꚕ'), + (0xA695, 'V'), + (0xA696, 'M', u'ꚗ'), + (0xA697, 'V'), + (0xA698, 'M', u'ꚙ'), + (0xA699, 'V'), + (0xA69A, 'M', u'ꚛ'), + (0xA69B, 'V'), + (0xA69C, 'M', u'ъ'), + (0xA69D, 'M', u'ь'), + (0xA69E, 'V'), + (0xA6F8, 'X'), + ] + +def _seg_36(): + return [ + (0xA700, 'V'), + (0xA722, 'M', u'ꜣ'), + (0xA723, 'V'), + (0xA724, 'M', u'ꜥ'), + (0xA725, 'V'), + (0xA726, 'M', u'ꜧ'), + (0xA727, 'V'), + (0xA728, 'M', u'ꜩ'), + (0xA729, 'V'), + (0xA72A, 'M', u'ꜫ'), + (0xA72B, 'V'), + (0xA72C, 'M', u'ꜭ'), + (0xA72D, 'V'), + (0xA72E, 'M', u'ꜯ'), + (0xA72F, 'V'), + (0xA732, 'M', u'ꜳ'), + (0xA733, 'V'), + (0xA734, 'M', u'ꜵ'), + (0xA735, 'V'), + (0xA736, 'M', u'ꜷ'), + (0xA737, 'V'), + (0xA738, 'M', u'ꜹ'), + (0xA739, 'V'), + (0xA73A, 'M', u'ꜻ'), + (0xA73B, 'V'), + (0xA73C, 'M', u'ꜽ'), + (0xA73D, 'V'), + (0xA73E, 'M', u'ꜿ'), + (0xA73F, 'V'), + (0xA740, 'M', u'ꝁ'), + (0xA741, 'V'), + (0xA742, 'M', u'ꝃ'), + (0xA743, 'V'), + (0xA744, 'M', u'ꝅ'), + (0xA745, 'V'), + (0xA746, 'M', u'ꝇ'), + (0xA747, 'V'), + (0xA748, 'M', u'ꝉ'), + (0xA749, 'V'), + (0xA74A, 'M', u'ꝋ'), + (0xA74B, 'V'), + (0xA74C, 'M', u'ꝍ'), + (0xA74D, 'V'), + (0xA74E, 'M', u'ꝏ'), + (0xA74F, 'V'), + (0xA750, 'M', u'ꝑ'), + (0xA751, 'V'), + (0xA752, 'M', u'ꝓ'), + (0xA753, 'V'), + (0xA754, 'M', u'ꝕ'), + (0xA755, 'V'), + (0xA756, 'M', u'ꝗ'), + (0xA757, 'V'), + (0xA758, 'M', u'ꝙ'), + (0xA759, 'V'), + (0xA75A, 'M', u'ꝛ'), + (0xA75B, 'V'), + (0xA75C, 'M', u'ꝝ'), + (0xA75D, 'V'), + (0xA75E, 'M', u'ꝟ'), + (0xA75F, 'V'), + (0xA760, 'M', u'ꝡ'), + (0xA761, 'V'), + (0xA762, 'M', u'ꝣ'), + (0xA763, 'V'), + (0xA764, 'M', u'ꝥ'), + (0xA765, 'V'), + (0xA766, 'M', u'ꝧ'), + (0xA767, 'V'), + (0xA768, 'M', u'ꝩ'), + (0xA769, 'V'), + (0xA76A, 'M', u'ꝫ'), + (0xA76B, 'V'), + (0xA76C, 'M', u'ꝭ'), + (0xA76D, 'V'), + (0xA76E, 'M', u'ꝯ'), + (0xA76F, 'V'), + (0xA770, 'M', u'ꝯ'), + (0xA771, 'V'), + (0xA779, 'M', u'ꝺ'), + (0xA77A, 'V'), + (0xA77B, 'M', u'ꝼ'), + (0xA77C, 'V'), + (0xA77D, 'M', u'ᵹ'), + (0xA77E, 'M', u'ꝿ'), + (0xA77F, 'V'), + (0xA780, 'M', u'ꞁ'), + (0xA781, 'V'), + (0xA782, 'M', u'ꞃ'), + (0xA783, 'V'), + (0xA784, 'M', u'ꞅ'), + (0xA785, 'V'), + (0xA786, 'M', u'ꞇ'), + (0xA787, 'V'), + (0xA78B, 'M', u'ꞌ'), + (0xA78C, 'V'), + (0xA78D, 'M', u'ɥ'), + (0xA78E, 'V'), + (0xA790, 'M', u'ꞑ'), + (0xA791, 'V'), + ] + +def _seg_37(): + return [ + (0xA792, 'M', u'ꞓ'), + (0xA793, 'V'), + (0xA796, 'M', u'ꞗ'), + (0xA797, 'V'), + (0xA798, 'M', u'ꞙ'), + (0xA799, 'V'), + (0xA79A, 'M', u'ꞛ'), + (0xA79B, 'V'), + (0xA79C, 'M', u'ꞝ'), + (0xA79D, 'V'), + (0xA79E, 'M', u'ꞟ'), + (0xA79F, 'V'), + (0xA7A0, 'M', u'ꞡ'), + (0xA7A1, 'V'), + (0xA7A2, 'M', u'ꞣ'), + (0xA7A3, 'V'), + (0xA7A4, 'M', u'ꞥ'), + (0xA7A5, 'V'), + (0xA7A6, 'M', u'ꞧ'), + (0xA7A7, 'V'), + (0xA7A8, 'M', u'ꞩ'), + (0xA7A9, 'V'), + (0xA7AA, 'M', u'ɦ'), + (0xA7AB, 'M', u'ɜ'), + (0xA7AC, 'M', u'ɡ'), + (0xA7AD, 'M', u'ɬ'), + (0xA7AE, 'M', u'ɪ'), + (0xA7AF, 'V'), + (0xA7B0, 'M', u'ʞ'), + (0xA7B1, 'M', u'ʇ'), + (0xA7B2, 'M', u'ʝ'), + (0xA7B3, 'M', u'ꭓ'), + (0xA7B4, 'M', u'ꞵ'), + (0xA7B5, 'V'), + (0xA7B6, 'M', u'ꞷ'), + (0xA7B7, 'V'), + (0xA7B8, 'X'), + (0xA7B9, 'V'), + (0xA7BA, 'X'), + (0xA7F7, 'V'), + (0xA7F8, 'M', u'ħ'), + (0xA7F9, 'M', u'œ'), + (0xA7FA, 'V'), + (0xA82C, 'X'), + (0xA830, 'V'), + (0xA83A, 'X'), + (0xA840, 'V'), + (0xA878, 'X'), + (0xA880, 'V'), + (0xA8C6, 'X'), + (0xA8CE, 'V'), + (0xA8DA, 'X'), + (0xA8E0, 'V'), + (0xA954, 'X'), + (0xA95F, 'V'), + (0xA97D, 'X'), + (0xA980, 'V'), + (0xA9CE, 'X'), + (0xA9CF, 'V'), + (0xA9DA, 'X'), + (0xA9DE, 'V'), + (0xA9FF, 'X'), + (0xAA00, 'V'), + (0xAA37, 'X'), + (0xAA40, 'V'), + (0xAA4E, 'X'), + (0xAA50, 'V'), + (0xAA5A, 'X'), + (0xAA5C, 'V'), + (0xAAC3, 'X'), + (0xAADB, 'V'), + (0xAAF7, 'X'), + (0xAB01, 'V'), + (0xAB07, 'X'), + (0xAB09, 'V'), + (0xAB0F, 'X'), + (0xAB11, 'V'), + (0xAB17, 'X'), + (0xAB20, 'V'), + (0xAB27, 'X'), + (0xAB28, 'V'), + (0xAB2F, 'X'), + (0xAB30, 'V'), + (0xAB5C, 'M', u'ꜧ'), + (0xAB5D, 'M', u'ꬷ'), + (0xAB5E, 'M', u'ɫ'), + (0xAB5F, 'M', u'ꭒ'), + (0xAB60, 'V'), + (0xAB66, 'X'), + (0xAB70, 'M', u'Ꭰ'), + (0xAB71, 'M', u'Ꭱ'), + (0xAB72, 'M', u'Ꭲ'), + (0xAB73, 'M', u'Ꭳ'), + (0xAB74, 'M', u'Ꭴ'), + (0xAB75, 'M', u'Ꭵ'), + (0xAB76, 'M', u'Ꭶ'), + (0xAB77, 'M', u'Ꭷ'), + (0xAB78, 'M', u'Ꭸ'), + (0xAB79, 'M', u'Ꭹ'), + (0xAB7A, 'M', u'Ꭺ'), + ] + +def _seg_38(): + return [ + (0xAB7B, 'M', u'Ꭻ'), + (0xAB7C, 'M', u'Ꭼ'), + (0xAB7D, 'M', u'Ꭽ'), + (0xAB7E, 'M', u'Ꭾ'), + (0xAB7F, 'M', u'Ꭿ'), + (0xAB80, 'M', u'Ꮀ'), + (0xAB81, 'M', u'Ꮁ'), + (0xAB82, 'M', u'Ꮂ'), + (0xAB83, 'M', u'Ꮃ'), + (0xAB84, 'M', u'Ꮄ'), + (0xAB85, 'M', u'Ꮅ'), + (0xAB86, 'M', u'Ꮆ'), + (0xAB87, 'M', u'Ꮇ'), + (0xAB88, 'M', u'Ꮈ'), + (0xAB89, 'M', u'Ꮉ'), + (0xAB8A, 'M', u'Ꮊ'), + (0xAB8B, 'M', u'Ꮋ'), + (0xAB8C, 'M', u'Ꮌ'), + (0xAB8D, 'M', u'Ꮍ'), + (0xAB8E, 'M', u'Ꮎ'), + (0xAB8F, 'M', u'Ꮏ'), + (0xAB90, 'M', u'Ꮐ'), + (0xAB91, 'M', u'Ꮑ'), + (0xAB92, 'M', u'Ꮒ'), + (0xAB93, 'M', u'Ꮓ'), + (0xAB94, 'M', u'Ꮔ'), + (0xAB95, 'M', u'Ꮕ'), + (0xAB96, 'M', u'Ꮖ'), + (0xAB97, 'M', u'Ꮗ'), + (0xAB98, 'M', u'Ꮘ'), + (0xAB99, 'M', u'Ꮙ'), + (0xAB9A, 'M', u'Ꮚ'), + (0xAB9B, 'M', u'Ꮛ'), + (0xAB9C, 'M', u'Ꮜ'), + (0xAB9D, 'M', u'Ꮝ'), + (0xAB9E, 'M', u'Ꮞ'), + (0xAB9F, 'M', u'Ꮟ'), + (0xABA0, 'M', u'Ꮠ'), + (0xABA1, 'M', u'Ꮡ'), + (0xABA2, 'M', u'Ꮢ'), + (0xABA3, 'M', u'Ꮣ'), + (0xABA4, 'M', u'Ꮤ'), + (0xABA5, 'M', u'Ꮥ'), + (0xABA6, 'M', u'Ꮦ'), + (0xABA7, 'M', u'Ꮧ'), + (0xABA8, 'M', u'Ꮨ'), + (0xABA9, 'M', u'Ꮩ'), + (0xABAA, 'M', u'Ꮪ'), + (0xABAB, 'M', u'Ꮫ'), + (0xABAC, 'M', u'Ꮬ'), + (0xABAD, 'M', u'Ꮭ'), + (0xABAE, 'M', u'Ꮮ'), + (0xABAF, 'M', u'Ꮯ'), + (0xABB0, 'M', u'Ꮰ'), + (0xABB1, 'M', u'Ꮱ'), + (0xABB2, 'M', u'Ꮲ'), + (0xABB3, 'M', u'Ꮳ'), + (0xABB4, 'M', u'Ꮴ'), + (0xABB5, 'M', u'Ꮵ'), + (0xABB6, 'M', u'Ꮶ'), + (0xABB7, 'M', u'Ꮷ'), + (0xABB8, 'M', u'Ꮸ'), + (0xABB9, 'M', u'Ꮹ'), + (0xABBA, 'M', u'Ꮺ'), + (0xABBB, 'M', u'Ꮻ'), + (0xABBC, 'M', u'Ꮼ'), + (0xABBD, 'M', u'Ꮽ'), + (0xABBE, 'M', u'Ꮾ'), + (0xABBF, 'M', u'Ꮿ'), + (0xABC0, 'V'), + (0xABEE, 'X'), + (0xABF0, 'V'), + (0xABFA, 'X'), + (0xAC00, 'V'), + (0xD7A4, 'X'), + (0xD7B0, 'V'), + (0xD7C7, 'X'), + (0xD7CB, 'V'), + (0xD7FC, 'X'), + (0xF900, 'M', u'豈'), + (0xF901, 'M', u'更'), + (0xF902, 'M', u'車'), + (0xF903, 'M', u'賈'), + (0xF904, 'M', u'滑'), + (0xF905, 'M', u'串'), + (0xF906, 'M', u'句'), + (0xF907, 'M', u'龜'), + (0xF909, 'M', u'契'), + (0xF90A, 'M', u'金'), + (0xF90B, 'M', u'喇'), + (0xF90C, 'M', u'奈'), + (0xF90D, 'M', u'懶'), + (0xF90E, 'M', u'癩'), + (0xF90F, 'M', u'羅'), + (0xF910, 'M', u'蘿'), + (0xF911, 'M', u'螺'), + (0xF912, 'M', u'裸'), + (0xF913, 'M', u'邏'), + (0xF914, 'M', u'樂'), + (0xF915, 'M', u'洛'), + ] + +def _seg_39(): + return [ + (0xF916, 'M', u'烙'), + (0xF917, 'M', u'珞'), + (0xF918, 'M', u'落'), + (0xF919, 'M', u'酪'), + (0xF91A, 'M', u'駱'), + (0xF91B, 'M', u'亂'), + (0xF91C, 'M', u'卵'), + (0xF91D, 'M', u'欄'), + (0xF91E, 'M', u'爛'), + (0xF91F, 'M', u'蘭'), + (0xF920, 'M', u'鸞'), + (0xF921, 'M', u'嵐'), + (0xF922, 'M', u'濫'), + (0xF923, 'M', u'藍'), + (0xF924, 'M', u'襤'), + (0xF925, 'M', u'拉'), + (0xF926, 'M', u'臘'), + (0xF927, 'M', u'蠟'), + (0xF928, 'M', u'廊'), + (0xF929, 'M', u'朗'), + (0xF92A, 'M', u'浪'), + (0xF92B, 'M', u'狼'), + (0xF92C, 'M', u'郎'), + (0xF92D, 'M', u'來'), + (0xF92E, 'M', u'冷'), + (0xF92F, 'M', u'勞'), + (0xF930, 'M', u'擄'), + (0xF931, 'M', u'櫓'), + (0xF932, 'M', u'爐'), + (0xF933, 'M', u'盧'), + (0xF934, 'M', u'老'), + (0xF935, 'M', u'蘆'), + (0xF936, 'M', u'虜'), + (0xF937, 'M', u'路'), + (0xF938, 'M', u'露'), + (0xF939, 'M', u'魯'), + (0xF93A, 'M', u'鷺'), + (0xF93B, 'M', u'碌'), + (0xF93C, 'M', u'祿'), + (0xF93D, 'M', u'綠'), + (0xF93E, 'M', u'菉'), + (0xF93F, 'M', u'錄'), + (0xF940, 'M', u'鹿'), + (0xF941, 'M', u'論'), + (0xF942, 'M', u'壟'), + (0xF943, 'M', u'弄'), + (0xF944, 'M', u'籠'), + (0xF945, 'M', u'聾'), + (0xF946, 'M', u'牢'), + (0xF947, 'M', u'磊'), + (0xF948, 'M', u'賂'), + (0xF949, 'M', u'雷'), + (0xF94A, 'M', u'壘'), + (0xF94B, 'M', u'屢'), + (0xF94C, 'M', u'樓'), + (0xF94D, 'M', u'淚'), + (0xF94E, 'M', u'漏'), + (0xF94F, 'M', u'累'), + (0xF950, 'M', u'縷'), + (0xF951, 'M', u'陋'), + (0xF952, 'M', u'勒'), + (0xF953, 'M', u'肋'), + (0xF954, 'M', u'凜'), + (0xF955, 'M', u'凌'), + (0xF956, 'M', u'稜'), + (0xF957, 'M', u'綾'), + (0xF958, 'M', u'菱'), + (0xF959, 'M', u'陵'), + (0xF95A, 'M', u'讀'), + (0xF95B, 'M', u'拏'), + (0xF95C, 'M', u'樂'), + (0xF95D, 'M', u'諾'), + (0xF95E, 'M', u'丹'), + (0xF95F, 'M', u'寧'), + (0xF960, 'M', u'怒'), + (0xF961, 'M', u'率'), + (0xF962, 'M', u'異'), + (0xF963, 'M', u'北'), + (0xF964, 'M', u'磻'), + (0xF965, 'M', u'便'), + (0xF966, 'M', u'復'), + (0xF967, 'M', u'不'), + (0xF968, 'M', u'泌'), + (0xF969, 'M', u'數'), + (0xF96A, 'M', u'索'), + (0xF96B, 'M', u'參'), + (0xF96C, 'M', u'塞'), + (0xF96D, 'M', u'省'), + (0xF96E, 'M', u'葉'), + (0xF96F, 'M', u'說'), + (0xF970, 'M', u'殺'), + (0xF971, 'M', u'辰'), + (0xF972, 'M', u'沈'), + (0xF973, 'M', u'拾'), + (0xF974, 'M', u'若'), + (0xF975, 'M', u'掠'), + (0xF976, 'M', u'略'), + (0xF977, 'M', u'亮'), + (0xF978, 'M', u'兩'), + (0xF979, 'M', u'凉'), + ] + +def _seg_40(): + return [ + (0xF97A, 'M', u'梁'), + (0xF97B, 'M', u'糧'), + (0xF97C, 'M', u'良'), + (0xF97D, 'M', u'諒'), + (0xF97E, 'M', u'量'), + (0xF97F, 'M', u'勵'), + (0xF980, 'M', u'呂'), + (0xF981, 'M', u'女'), + (0xF982, 'M', u'廬'), + (0xF983, 'M', u'旅'), + (0xF984, 'M', u'濾'), + (0xF985, 'M', u'礪'), + (0xF986, 'M', u'閭'), + (0xF987, 'M', u'驪'), + (0xF988, 'M', u'麗'), + (0xF989, 'M', u'黎'), + (0xF98A, 'M', u'力'), + (0xF98B, 'M', u'曆'), + (0xF98C, 'M', u'歷'), + (0xF98D, 'M', u'轢'), + (0xF98E, 'M', u'年'), + (0xF98F, 'M', u'憐'), + (0xF990, 'M', u'戀'), + (0xF991, 'M', u'撚'), + (0xF992, 'M', u'漣'), + (0xF993, 'M', u'煉'), + (0xF994, 'M', u'璉'), + (0xF995, 'M', u'秊'), + (0xF996, 'M', u'練'), + (0xF997, 'M', u'聯'), + (0xF998, 'M', u'輦'), + (0xF999, 'M', u'蓮'), + (0xF99A, 'M', u'連'), + (0xF99B, 'M', u'鍊'), + (0xF99C, 'M', u'列'), + (0xF99D, 'M', u'劣'), + (0xF99E, 'M', u'咽'), + (0xF99F, 'M', u'烈'), + (0xF9A0, 'M', u'裂'), + (0xF9A1, 'M', u'說'), + (0xF9A2, 'M', u'廉'), + (0xF9A3, 'M', u'念'), + (0xF9A4, 'M', u'捻'), + (0xF9A5, 'M', u'殮'), + (0xF9A6, 'M', u'簾'), + (0xF9A7, 'M', u'獵'), + (0xF9A8, 'M', u'令'), + (0xF9A9, 'M', u'囹'), + (0xF9AA, 'M', u'寧'), + (0xF9AB, 'M', u'嶺'), + (0xF9AC, 'M', u'怜'), + (0xF9AD, 'M', u'玲'), + (0xF9AE, 'M', u'瑩'), + (0xF9AF, 'M', u'羚'), + (0xF9B0, 'M', u'聆'), + (0xF9B1, 'M', u'鈴'), + (0xF9B2, 'M', u'零'), + (0xF9B3, 'M', u'靈'), + (0xF9B4, 'M', u'領'), + (0xF9B5, 'M', u'例'), + (0xF9B6, 'M', u'禮'), + (0xF9B7, 'M', u'醴'), + (0xF9B8, 'M', u'隸'), + (0xF9B9, 'M', u'惡'), + (0xF9BA, 'M', u'了'), + (0xF9BB, 'M', u'僚'), + (0xF9BC, 'M', u'寮'), + (0xF9BD, 'M', u'尿'), + (0xF9BE, 'M', u'料'), + (0xF9BF, 'M', u'樂'), + (0xF9C0, 'M', u'燎'), + (0xF9C1, 'M', u'療'), + (0xF9C2, 'M', u'蓼'), + (0xF9C3, 'M', u'遼'), + (0xF9C4, 'M', u'龍'), + (0xF9C5, 'M', u'暈'), + (0xF9C6, 'M', u'阮'), + (0xF9C7, 'M', u'劉'), + (0xF9C8, 'M', u'杻'), + (0xF9C9, 'M', u'柳'), + (0xF9CA, 'M', u'流'), + (0xF9CB, 'M', u'溜'), + (0xF9CC, 'M', u'琉'), + (0xF9CD, 'M', u'留'), + (0xF9CE, 'M', u'硫'), + (0xF9CF, 'M', u'紐'), + (0xF9D0, 'M', u'類'), + (0xF9D1, 'M', u'六'), + (0xF9D2, 'M', u'戮'), + (0xF9D3, 'M', u'陸'), + (0xF9D4, 'M', u'倫'), + (0xF9D5, 'M', u'崙'), + (0xF9D6, 'M', u'淪'), + (0xF9D7, 'M', u'輪'), + (0xF9D8, 'M', u'律'), + (0xF9D9, 'M', u'慄'), + (0xF9DA, 'M', u'栗'), + (0xF9DB, 'M', u'率'), + (0xF9DC, 'M', u'隆'), + (0xF9DD, 'M', u'利'), + ] + +def _seg_41(): + return [ + (0xF9DE, 'M', u'吏'), + (0xF9DF, 'M', u'履'), + (0xF9E0, 'M', u'易'), + (0xF9E1, 'M', u'李'), + (0xF9E2, 'M', u'梨'), + (0xF9E3, 'M', u'泥'), + (0xF9E4, 'M', u'理'), + (0xF9E5, 'M', u'痢'), + (0xF9E6, 'M', u'罹'), + (0xF9E7, 'M', u'裏'), + (0xF9E8, 'M', u'裡'), + (0xF9E9, 'M', u'里'), + (0xF9EA, 'M', u'離'), + (0xF9EB, 'M', u'匿'), + (0xF9EC, 'M', u'溺'), + (0xF9ED, 'M', u'吝'), + (0xF9EE, 'M', u'燐'), + (0xF9EF, 'M', u'璘'), + (0xF9F0, 'M', u'藺'), + (0xF9F1, 'M', u'隣'), + (0xF9F2, 'M', u'鱗'), + (0xF9F3, 'M', u'麟'), + (0xF9F4, 'M', u'林'), + (0xF9F5, 'M', u'淋'), + (0xF9F6, 'M', u'臨'), + (0xF9F7, 'M', u'立'), + (0xF9F8, 'M', u'笠'), + (0xF9F9, 'M', u'粒'), + (0xF9FA, 'M', u'狀'), + (0xF9FB, 'M', u'炙'), + (0xF9FC, 'M', u'識'), + (0xF9FD, 'M', u'什'), + (0xF9FE, 'M', u'茶'), + (0xF9FF, 'M', u'刺'), + (0xFA00, 'M', u'切'), + (0xFA01, 'M', u'度'), + (0xFA02, 'M', u'拓'), + (0xFA03, 'M', u'糖'), + (0xFA04, 'M', u'宅'), + (0xFA05, 'M', u'洞'), + (0xFA06, 'M', u'暴'), + (0xFA07, 'M', u'輻'), + (0xFA08, 'M', u'行'), + (0xFA09, 'M', u'降'), + (0xFA0A, 'M', u'見'), + (0xFA0B, 'M', u'廓'), + (0xFA0C, 'M', u'兀'), + (0xFA0D, 'M', u'嗀'), + (0xFA0E, 'V'), + (0xFA10, 'M', u'塚'), + (0xFA11, 'V'), + (0xFA12, 'M', u'晴'), + (0xFA13, 'V'), + (0xFA15, 'M', u'凞'), + (0xFA16, 'M', u'猪'), + (0xFA17, 'M', u'益'), + (0xFA18, 'M', u'礼'), + (0xFA19, 'M', u'神'), + (0xFA1A, 'M', u'祥'), + (0xFA1B, 'M', u'福'), + (0xFA1C, 'M', u'靖'), + (0xFA1D, 'M', u'精'), + (0xFA1E, 'M', u'羽'), + (0xFA1F, 'V'), + (0xFA20, 'M', u'蘒'), + (0xFA21, 'V'), + (0xFA22, 'M', u'諸'), + (0xFA23, 'V'), + (0xFA25, 'M', u'逸'), + (0xFA26, 'M', u'都'), + (0xFA27, 'V'), + (0xFA2A, 'M', u'飯'), + (0xFA2B, 'M', u'飼'), + (0xFA2C, 'M', u'館'), + (0xFA2D, 'M', u'鶴'), + (0xFA2E, 'M', u'郞'), + (0xFA2F, 'M', u'隷'), + (0xFA30, 'M', u'侮'), + (0xFA31, 'M', u'僧'), + (0xFA32, 'M', u'免'), + (0xFA33, 'M', u'勉'), + (0xFA34, 'M', u'勤'), + (0xFA35, 'M', u'卑'), + (0xFA36, 'M', u'喝'), + (0xFA37, 'M', u'嘆'), + (0xFA38, 'M', u'器'), + (0xFA39, 'M', u'塀'), + (0xFA3A, 'M', u'墨'), + (0xFA3B, 'M', u'層'), + (0xFA3C, 'M', u'屮'), + (0xFA3D, 'M', u'悔'), + (0xFA3E, 'M', u'慨'), + (0xFA3F, 'M', u'憎'), + (0xFA40, 'M', u'懲'), + (0xFA41, 'M', u'敏'), + (0xFA42, 'M', u'既'), + (0xFA43, 'M', u'暑'), + (0xFA44, 'M', u'梅'), + (0xFA45, 'M', u'海'), + (0xFA46, 'M', u'渚'), + ] + +def _seg_42(): + return [ + (0xFA47, 'M', u'漢'), + (0xFA48, 'M', u'煮'), + (0xFA49, 'M', u'爫'), + (0xFA4A, 'M', u'琢'), + (0xFA4B, 'M', u'碑'), + (0xFA4C, 'M', u'社'), + (0xFA4D, 'M', u'祉'), + (0xFA4E, 'M', u'祈'), + (0xFA4F, 'M', u'祐'), + (0xFA50, 'M', u'祖'), + (0xFA51, 'M', u'祝'), + (0xFA52, 'M', u'禍'), + (0xFA53, 'M', u'禎'), + (0xFA54, 'M', u'穀'), + (0xFA55, 'M', u'突'), + (0xFA56, 'M', u'節'), + (0xFA57, 'M', u'練'), + (0xFA58, 'M', u'縉'), + (0xFA59, 'M', u'繁'), + (0xFA5A, 'M', u'署'), + (0xFA5B, 'M', u'者'), + (0xFA5C, 'M', u'臭'), + (0xFA5D, 'M', u'艹'), + (0xFA5F, 'M', u'著'), + (0xFA60, 'M', u'褐'), + (0xFA61, 'M', u'視'), + (0xFA62, 'M', u'謁'), + (0xFA63, 'M', u'謹'), + (0xFA64, 'M', u'賓'), + (0xFA65, 'M', u'贈'), + (0xFA66, 'M', u'辶'), + (0xFA67, 'M', u'逸'), + (0xFA68, 'M', u'難'), + (0xFA69, 'M', u'響'), + (0xFA6A, 'M', u'頻'), + (0xFA6B, 'M', u'恵'), + (0xFA6C, 'M', u'𤋮'), + (0xFA6D, 'M', u'舘'), + (0xFA6E, 'X'), + (0xFA70, 'M', u'並'), + (0xFA71, 'M', u'况'), + (0xFA72, 'M', u'全'), + (0xFA73, 'M', u'侀'), + (0xFA74, 'M', u'充'), + (0xFA75, 'M', u'冀'), + (0xFA76, 'M', u'勇'), + (0xFA77, 'M', u'勺'), + (0xFA78, 'M', u'喝'), + (0xFA79, 'M', u'啕'), + (0xFA7A, 'M', u'喙'), + (0xFA7B, 'M', u'嗢'), + (0xFA7C, 'M', u'塚'), + (0xFA7D, 'M', u'墳'), + (0xFA7E, 'M', u'奄'), + (0xFA7F, 'M', u'奔'), + (0xFA80, 'M', u'婢'), + (0xFA81, 'M', u'嬨'), + (0xFA82, 'M', u'廒'), + (0xFA83, 'M', u'廙'), + (0xFA84, 'M', u'彩'), + (0xFA85, 'M', u'徭'), + (0xFA86, 'M', u'惘'), + (0xFA87, 'M', u'慎'), + (0xFA88, 'M', u'愈'), + (0xFA89, 'M', u'憎'), + (0xFA8A, 'M', u'慠'), + (0xFA8B, 'M', u'懲'), + (0xFA8C, 'M', u'戴'), + (0xFA8D, 'M', u'揄'), + (0xFA8E, 'M', u'搜'), + (0xFA8F, 'M', u'摒'), + (0xFA90, 'M', u'敖'), + (0xFA91, 'M', u'晴'), + (0xFA92, 'M', u'朗'), + (0xFA93, 'M', u'望'), + (0xFA94, 'M', u'杖'), + (0xFA95, 'M', u'歹'), + (0xFA96, 'M', u'殺'), + (0xFA97, 'M', u'流'), + (0xFA98, 'M', u'滛'), + (0xFA99, 'M', u'滋'), + (0xFA9A, 'M', u'漢'), + (0xFA9B, 'M', u'瀞'), + (0xFA9C, 'M', u'煮'), + (0xFA9D, 'M', u'瞧'), + (0xFA9E, 'M', u'爵'), + (0xFA9F, 'M', u'犯'), + (0xFAA0, 'M', u'猪'), + (0xFAA1, 'M', u'瑱'), + (0xFAA2, 'M', u'甆'), + (0xFAA3, 'M', u'画'), + (0xFAA4, 'M', u'瘝'), + (0xFAA5, 'M', u'瘟'), + (0xFAA6, 'M', u'益'), + (0xFAA7, 'M', u'盛'), + (0xFAA8, 'M', u'直'), + (0xFAA9, 'M', u'睊'), + (0xFAAA, 'M', u'着'), + (0xFAAB, 'M', u'磌'), + (0xFAAC, 'M', u'窱'), + ] + +def _seg_43(): + return [ + (0xFAAD, 'M', u'節'), + (0xFAAE, 'M', u'类'), + (0xFAAF, 'M', u'絛'), + (0xFAB0, 'M', u'練'), + (0xFAB1, 'M', u'缾'), + (0xFAB2, 'M', u'者'), + (0xFAB3, 'M', u'荒'), + (0xFAB4, 'M', u'華'), + (0xFAB5, 'M', u'蝹'), + (0xFAB6, 'M', u'襁'), + (0xFAB7, 'M', u'覆'), + (0xFAB8, 'M', u'視'), + (0xFAB9, 'M', u'調'), + (0xFABA, 'M', u'諸'), + (0xFABB, 'M', u'請'), + (0xFABC, 'M', u'謁'), + (0xFABD, 'M', u'諾'), + (0xFABE, 'M', u'諭'), + (0xFABF, 'M', u'謹'), + (0xFAC0, 'M', u'變'), + (0xFAC1, 'M', u'贈'), + (0xFAC2, 'M', u'輸'), + (0xFAC3, 'M', u'遲'), + (0xFAC4, 'M', u'醙'), + (0xFAC5, 'M', u'鉶'), + (0xFAC6, 'M', u'陼'), + (0xFAC7, 'M', u'難'), + (0xFAC8, 'M', u'靖'), + (0xFAC9, 'M', u'韛'), + (0xFACA, 'M', u'響'), + (0xFACB, 'M', u'頋'), + (0xFACC, 'M', u'頻'), + (0xFACD, 'M', u'鬒'), + (0xFACE, 'M', u'龜'), + (0xFACF, 'M', u'𢡊'), + (0xFAD0, 'M', u'𢡄'), + (0xFAD1, 'M', u'𣏕'), + (0xFAD2, 'M', u'㮝'), + (0xFAD3, 'M', u'䀘'), + (0xFAD4, 'M', u'䀹'), + (0xFAD5, 'M', u'𥉉'), + (0xFAD6, 'M', u'𥳐'), + (0xFAD7, 'M', u'𧻓'), + (0xFAD8, 'M', u'齃'), + (0xFAD9, 'M', u'龎'), + (0xFADA, 'X'), + (0xFB00, 'M', u'ff'), + (0xFB01, 'M', u'fi'), + (0xFB02, 'M', u'fl'), + (0xFB03, 'M', u'ffi'), + (0xFB04, 'M', u'ffl'), + (0xFB05, 'M', u'st'), + (0xFB07, 'X'), + (0xFB13, 'M', u'մն'), + (0xFB14, 'M', u'մե'), + (0xFB15, 'M', u'մի'), + (0xFB16, 'M', u'վն'), + (0xFB17, 'M', u'մխ'), + (0xFB18, 'X'), + (0xFB1D, 'M', u'יִ'), + (0xFB1E, 'V'), + (0xFB1F, 'M', u'ײַ'), + (0xFB20, 'M', u'ע'), + (0xFB21, 'M', u'א'), + (0xFB22, 'M', u'ד'), + (0xFB23, 'M', u'ה'), + (0xFB24, 'M', u'כ'), + (0xFB25, 'M', u'ל'), + (0xFB26, 'M', u'ם'), + (0xFB27, 'M', u'ר'), + (0xFB28, 'M', u'ת'), + (0xFB29, '3', u'+'), + (0xFB2A, 'M', u'שׁ'), + (0xFB2B, 'M', u'שׂ'), + (0xFB2C, 'M', u'שּׁ'), + (0xFB2D, 'M', u'שּׂ'), + (0xFB2E, 'M', u'אַ'), + (0xFB2F, 'M', u'אָ'), + (0xFB30, 'M', u'אּ'), + (0xFB31, 'M', u'בּ'), + (0xFB32, 'M', u'גּ'), + (0xFB33, 'M', u'דּ'), + (0xFB34, 'M', u'הּ'), + (0xFB35, 'M', u'וּ'), + (0xFB36, 'M', u'זּ'), + (0xFB37, 'X'), + (0xFB38, 'M', u'טּ'), + (0xFB39, 'M', u'יּ'), + (0xFB3A, 'M', u'ךּ'), + (0xFB3B, 'M', u'כּ'), + (0xFB3C, 'M', u'לּ'), + (0xFB3D, 'X'), + (0xFB3E, 'M', u'מּ'), + (0xFB3F, 'X'), + (0xFB40, 'M', u'נּ'), + (0xFB41, 'M', u'סּ'), + (0xFB42, 'X'), + (0xFB43, 'M', u'ףּ'), + (0xFB44, 'M', u'פּ'), + (0xFB45, 'X'), + ] + +def _seg_44(): + return [ + (0xFB46, 'M', u'צּ'), + (0xFB47, 'M', u'קּ'), + (0xFB48, 'M', u'רּ'), + (0xFB49, 'M', u'שּ'), + (0xFB4A, 'M', u'תּ'), + (0xFB4B, 'M', u'וֹ'), + (0xFB4C, 'M', u'בֿ'), + (0xFB4D, 'M', u'כֿ'), + (0xFB4E, 'M', u'פֿ'), + (0xFB4F, 'M', u'אל'), + (0xFB50, 'M', u'ٱ'), + (0xFB52, 'M', u'ٻ'), + (0xFB56, 'M', u'پ'), + (0xFB5A, 'M', u'ڀ'), + (0xFB5E, 'M', u'ٺ'), + (0xFB62, 'M', u'ٿ'), + (0xFB66, 'M', u'ٹ'), + (0xFB6A, 'M', u'ڤ'), + (0xFB6E, 'M', u'ڦ'), + (0xFB72, 'M', u'ڄ'), + (0xFB76, 'M', u'ڃ'), + (0xFB7A, 'M', u'چ'), + (0xFB7E, 'M', u'ڇ'), + (0xFB82, 'M', u'ڍ'), + (0xFB84, 'M', u'ڌ'), + (0xFB86, 'M', u'ڎ'), + (0xFB88, 'M', u'ڈ'), + (0xFB8A, 'M', u'ژ'), + (0xFB8C, 'M', u'ڑ'), + (0xFB8E, 'M', u'ک'), + (0xFB92, 'M', u'گ'), + (0xFB96, 'M', u'ڳ'), + (0xFB9A, 'M', u'ڱ'), + (0xFB9E, 'M', u'ں'), + (0xFBA0, 'M', u'ڻ'), + (0xFBA4, 'M', u'ۀ'), + (0xFBA6, 'M', u'ہ'), + (0xFBAA, 'M', u'ھ'), + (0xFBAE, 'M', u'ے'), + (0xFBB0, 'M', u'ۓ'), + (0xFBB2, 'V'), + (0xFBC2, 'X'), + (0xFBD3, 'M', u'ڭ'), + (0xFBD7, 'M', u'ۇ'), + (0xFBD9, 'M', u'ۆ'), + (0xFBDB, 'M', u'ۈ'), + (0xFBDD, 'M', u'ۇٴ'), + (0xFBDE, 'M', u'ۋ'), + (0xFBE0, 'M', u'ۅ'), + (0xFBE2, 'M', u'ۉ'), + (0xFBE4, 'M', u'ې'), + (0xFBE8, 'M', u'ى'), + (0xFBEA, 'M', u'ئا'), + (0xFBEC, 'M', u'ئە'), + (0xFBEE, 'M', u'ئو'), + (0xFBF0, 'M', u'ئۇ'), + (0xFBF2, 'M', u'ئۆ'), + (0xFBF4, 'M', u'ئۈ'), + (0xFBF6, 'M', u'ئې'), + (0xFBF9, 'M', u'ئى'), + (0xFBFC, 'M', u'ی'), + (0xFC00, 'M', u'ئج'), + (0xFC01, 'M', u'ئح'), + (0xFC02, 'M', u'ئم'), + (0xFC03, 'M', u'ئى'), + (0xFC04, 'M', u'ئي'), + (0xFC05, 'M', u'بج'), + (0xFC06, 'M', u'بح'), + (0xFC07, 'M', u'بخ'), + (0xFC08, 'M', u'بم'), + (0xFC09, 'M', u'بى'), + (0xFC0A, 'M', u'بي'), + (0xFC0B, 'M', u'تج'), + (0xFC0C, 'M', u'تح'), + (0xFC0D, 'M', u'تخ'), + (0xFC0E, 'M', u'تم'), + (0xFC0F, 'M', u'تى'), + (0xFC10, 'M', u'تي'), + (0xFC11, 'M', u'ثج'), + (0xFC12, 'M', u'ثم'), + (0xFC13, 'M', u'ثى'), + (0xFC14, 'M', u'ثي'), + (0xFC15, 'M', u'جح'), + (0xFC16, 'M', u'جم'), + (0xFC17, 'M', u'حج'), + (0xFC18, 'M', u'حم'), + (0xFC19, 'M', u'خج'), + (0xFC1A, 'M', u'خح'), + (0xFC1B, 'M', u'خم'), + (0xFC1C, 'M', u'سج'), + (0xFC1D, 'M', u'سح'), + (0xFC1E, 'M', u'سخ'), + (0xFC1F, 'M', u'سم'), + (0xFC20, 'M', u'صح'), + (0xFC21, 'M', u'صم'), + (0xFC22, 'M', u'ضج'), + (0xFC23, 'M', u'ضح'), + (0xFC24, 'M', u'ضخ'), + (0xFC25, 'M', u'ضم'), + (0xFC26, 'M', u'طح'), + ] + +def _seg_45(): + return [ + (0xFC27, 'M', u'طم'), + (0xFC28, 'M', u'ظم'), + (0xFC29, 'M', u'عج'), + (0xFC2A, 'M', u'عم'), + (0xFC2B, 'M', u'غج'), + (0xFC2C, 'M', u'غم'), + (0xFC2D, 'M', u'فج'), + (0xFC2E, 'M', u'فح'), + (0xFC2F, 'M', u'فخ'), + (0xFC30, 'M', u'فم'), + (0xFC31, 'M', u'فى'), + (0xFC32, 'M', u'في'), + (0xFC33, 'M', u'قح'), + (0xFC34, 'M', u'قم'), + (0xFC35, 'M', u'قى'), + (0xFC36, 'M', u'قي'), + (0xFC37, 'M', u'كا'), + (0xFC38, 'M', u'كج'), + (0xFC39, 'M', u'كح'), + (0xFC3A, 'M', u'كخ'), + (0xFC3B, 'M', u'كل'), + (0xFC3C, 'M', u'كم'), + (0xFC3D, 'M', u'كى'), + (0xFC3E, 'M', u'كي'), + (0xFC3F, 'M', u'لج'), + (0xFC40, 'M', u'لح'), + (0xFC41, 'M', u'لخ'), + (0xFC42, 'M', u'لم'), + (0xFC43, 'M', u'لى'), + (0xFC44, 'M', u'لي'), + (0xFC45, 'M', u'مج'), + (0xFC46, 'M', u'مح'), + (0xFC47, 'M', u'مخ'), + (0xFC48, 'M', u'مم'), + (0xFC49, 'M', u'مى'), + (0xFC4A, 'M', u'مي'), + (0xFC4B, 'M', u'نج'), + (0xFC4C, 'M', u'نح'), + (0xFC4D, 'M', u'نخ'), + (0xFC4E, 'M', u'نم'), + (0xFC4F, 'M', u'نى'), + (0xFC50, 'M', u'ني'), + (0xFC51, 'M', u'هج'), + (0xFC52, 'M', u'هم'), + (0xFC53, 'M', u'هى'), + (0xFC54, 'M', u'هي'), + (0xFC55, 'M', u'يج'), + (0xFC56, 'M', u'يح'), + (0xFC57, 'M', u'يخ'), + (0xFC58, 'M', u'يم'), + (0xFC59, 'M', u'يى'), + (0xFC5A, 'M', u'يي'), + (0xFC5B, 'M', u'ذٰ'), + (0xFC5C, 'M', u'رٰ'), + (0xFC5D, 'M', u'ىٰ'), + (0xFC5E, '3', u' ٌّ'), + (0xFC5F, '3', u' ٍّ'), + (0xFC60, '3', u' َّ'), + (0xFC61, '3', u' ُّ'), + (0xFC62, '3', u' ِّ'), + (0xFC63, '3', u' ّٰ'), + (0xFC64, 'M', u'ئر'), + (0xFC65, 'M', u'ئز'), + (0xFC66, 'M', u'ئم'), + (0xFC67, 'M', u'ئن'), + (0xFC68, 'M', u'ئى'), + (0xFC69, 'M', u'ئي'), + (0xFC6A, 'M', u'بر'), + (0xFC6B, 'M', u'بز'), + (0xFC6C, 'M', u'بم'), + (0xFC6D, 'M', u'بن'), + (0xFC6E, 'M', u'بى'), + (0xFC6F, 'M', u'بي'), + (0xFC70, 'M', u'تر'), + (0xFC71, 'M', u'تز'), + (0xFC72, 'M', u'تم'), + (0xFC73, 'M', u'تن'), + (0xFC74, 'M', u'تى'), + (0xFC75, 'M', u'تي'), + (0xFC76, 'M', u'ثر'), + (0xFC77, 'M', u'ثز'), + (0xFC78, 'M', u'ثم'), + (0xFC79, 'M', u'ثن'), + (0xFC7A, 'M', u'ثى'), + (0xFC7B, 'M', u'ثي'), + (0xFC7C, 'M', u'فى'), + (0xFC7D, 'M', u'في'), + (0xFC7E, 'M', u'قى'), + (0xFC7F, 'M', u'قي'), + (0xFC80, 'M', u'كا'), + (0xFC81, 'M', u'كل'), + (0xFC82, 'M', u'كم'), + (0xFC83, 'M', u'كى'), + (0xFC84, 'M', u'كي'), + (0xFC85, 'M', u'لم'), + (0xFC86, 'M', u'لى'), + (0xFC87, 'M', u'لي'), + (0xFC88, 'M', u'ما'), + (0xFC89, 'M', u'مم'), + (0xFC8A, 'M', u'نر'), + ] + +def _seg_46(): + return [ + (0xFC8B, 'M', u'نز'), + (0xFC8C, 'M', u'نم'), + (0xFC8D, 'M', u'نن'), + (0xFC8E, 'M', u'نى'), + (0xFC8F, 'M', u'ني'), + (0xFC90, 'M', u'ىٰ'), + (0xFC91, 'M', u'ير'), + (0xFC92, 'M', u'يز'), + (0xFC93, 'M', u'يم'), + (0xFC94, 'M', u'ين'), + (0xFC95, 'M', u'يى'), + (0xFC96, 'M', u'يي'), + (0xFC97, 'M', u'ئج'), + (0xFC98, 'M', u'ئح'), + (0xFC99, 'M', u'ئخ'), + (0xFC9A, 'M', u'ئم'), + (0xFC9B, 'M', u'ئه'), + (0xFC9C, 'M', u'بج'), + (0xFC9D, 'M', u'بح'), + (0xFC9E, 'M', u'بخ'), + (0xFC9F, 'M', u'بم'), + (0xFCA0, 'M', u'به'), + (0xFCA1, 'M', u'تج'), + (0xFCA2, 'M', u'تح'), + (0xFCA3, 'M', u'تخ'), + (0xFCA4, 'M', u'تم'), + (0xFCA5, 'M', u'ته'), + (0xFCA6, 'M', u'ثم'), + (0xFCA7, 'M', u'جح'), + (0xFCA8, 'M', u'جم'), + (0xFCA9, 'M', u'حج'), + (0xFCAA, 'M', u'حم'), + (0xFCAB, 'M', u'خج'), + (0xFCAC, 'M', u'خم'), + (0xFCAD, 'M', u'سج'), + (0xFCAE, 'M', u'سح'), + (0xFCAF, 'M', u'سخ'), + (0xFCB0, 'M', u'سم'), + (0xFCB1, 'M', u'صح'), + (0xFCB2, 'M', u'صخ'), + (0xFCB3, 'M', u'صم'), + (0xFCB4, 'M', u'ضج'), + (0xFCB5, 'M', u'ضح'), + (0xFCB6, 'M', u'ضخ'), + (0xFCB7, 'M', u'ضم'), + (0xFCB8, 'M', u'طح'), + (0xFCB9, 'M', u'ظم'), + (0xFCBA, 'M', u'عج'), + (0xFCBB, 'M', u'عم'), + (0xFCBC, 'M', u'غج'), + (0xFCBD, 'M', u'غم'), + (0xFCBE, 'M', u'فج'), + (0xFCBF, 'M', u'فح'), + (0xFCC0, 'M', u'فخ'), + (0xFCC1, 'M', u'فم'), + (0xFCC2, 'M', u'قح'), + (0xFCC3, 'M', u'قم'), + (0xFCC4, 'M', u'كج'), + (0xFCC5, 'M', u'كح'), + (0xFCC6, 'M', u'كخ'), + (0xFCC7, 'M', u'كل'), + (0xFCC8, 'M', u'كم'), + (0xFCC9, 'M', u'لج'), + (0xFCCA, 'M', u'لح'), + (0xFCCB, 'M', u'لخ'), + (0xFCCC, 'M', u'لم'), + (0xFCCD, 'M', u'له'), + (0xFCCE, 'M', u'مج'), + (0xFCCF, 'M', u'مح'), + (0xFCD0, 'M', u'مخ'), + (0xFCD1, 'M', u'مم'), + (0xFCD2, 'M', u'نج'), + (0xFCD3, 'M', u'نح'), + (0xFCD4, 'M', u'نخ'), + (0xFCD5, 'M', u'نم'), + (0xFCD6, 'M', u'نه'), + (0xFCD7, 'M', u'هج'), + (0xFCD8, 'M', u'هم'), + (0xFCD9, 'M', u'هٰ'), + (0xFCDA, 'M', u'يج'), + (0xFCDB, 'M', u'يح'), + (0xFCDC, 'M', u'يخ'), + (0xFCDD, 'M', u'يم'), + (0xFCDE, 'M', u'يه'), + (0xFCDF, 'M', u'ئم'), + (0xFCE0, 'M', u'ئه'), + (0xFCE1, 'M', u'بم'), + (0xFCE2, 'M', u'به'), + (0xFCE3, 'M', u'تم'), + (0xFCE4, 'M', u'ته'), + (0xFCE5, 'M', u'ثم'), + (0xFCE6, 'M', u'ثه'), + (0xFCE7, 'M', u'سم'), + (0xFCE8, 'M', u'سه'), + (0xFCE9, 'M', u'شم'), + (0xFCEA, 'M', u'شه'), + (0xFCEB, 'M', u'كل'), + (0xFCEC, 'M', u'كم'), + (0xFCED, 'M', u'لم'), + (0xFCEE, 'M', u'نم'), + ] + +def _seg_47(): + return [ + (0xFCEF, 'M', u'نه'), + (0xFCF0, 'M', u'يم'), + (0xFCF1, 'M', u'يه'), + (0xFCF2, 'M', u'ـَّ'), + (0xFCF3, 'M', u'ـُّ'), + (0xFCF4, 'M', u'ـِّ'), + (0xFCF5, 'M', u'طى'), + (0xFCF6, 'M', u'طي'), + (0xFCF7, 'M', u'عى'), + (0xFCF8, 'M', u'عي'), + (0xFCF9, 'M', u'غى'), + (0xFCFA, 'M', u'غي'), + (0xFCFB, 'M', u'سى'), + (0xFCFC, 'M', u'سي'), + (0xFCFD, 'M', u'شى'), + (0xFCFE, 'M', u'شي'), + (0xFCFF, 'M', u'حى'), + (0xFD00, 'M', u'حي'), + (0xFD01, 'M', u'جى'), + (0xFD02, 'M', u'جي'), + (0xFD03, 'M', u'خى'), + (0xFD04, 'M', u'خي'), + (0xFD05, 'M', u'صى'), + (0xFD06, 'M', u'صي'), + (0xFD07, 'M', u'ضى'), + (0xFD08, 'M', u'ضي'), + (0xFD09, 'M', u'شج'), + (0xFD0A, 'M', u'شح'), + (0xFD0B, 'M', u'شخ'), + (0xFD0C, 'M', u'شم'), + (0xFD0D, 'M', u'شر'), + (0xFD0E, 'M', u'سر'), + (0xFD0F, 'M', u'صر'), + (0xFD10, 'M', u'ضر'), + (0xFD11, 'M', u'طى'), + (0xFD12, 'M', u'طي'), + (0xFD13, 'M', u'عى'), + (0xFD14, 'M', u'عي'), + (0xFD15, 'M', u'غى'), + (0xFD16, 'M', u'غي'), + (0xFD17, 'M', u'سى'), + (0xFD18, 'M', u'سي'), + (0xFD19, 'M', u'شى'), + (0xFD1A, 'M', u'شي'), + (0xFD1B, 'M', u'حى'), + (0xFD1C, 'M', u'حي'), + (0xFD1D, 'M', u'جى'), + (0xFD1E, 'M', u'جي'), + (0xFD1F, 'M', u'خى'), + (0xFD20, 'M', u'خي'), + (0xFD21, 'M', u'صى'), + (0xFD22, 'M', u'صي'), + (0xFD23, 'M', u'ضى'), + (0xFD24, 'M', u'ضي'), + (0xFD25, 'M', u'شج'), + (0xFD26, 'M', u'شح'), + (0xFD27, 'M', u'شخ'), + (0xFD28, 'M', u'شم'), + (0xFD29, 'M', u'شر'), + (0xFD2A, 'M', u'سر'), + (0xFD2B, 'M', u'صر'), + (0xFD2C, 'M', u'ضر'), + (0xFD2D, 'M', u'شج'), + (0xFD2E, 'M', u'شح'), + (0xFD2F, 'M', u'شخ'), + (0xFD30, 'M', u'شم'), + (0xFD31, 'M', u'سه'), + (0xFD32, 'M', u'شه'), + (0xFD33, 'M', u'طم'), + (0xFD34, 'M', u'سج'), + (0xFD35, 'M', u'سح'), + (0xFD36, 'M', u'سخ'), + (0xFD37, 'M', u'شج'), + (0xFD38, 'M', u'شح'), + (0xFD39, 'M', u'شخ'), + (0xFD3A, 'M', u'طم'), + (0xFD3B, 'M', u'ظم'), + (0xFD3C, 'M', u'اً'), + (0xFD3E, 'V'), + (0xFD40, 'X'), + (0xFD50, 'M', u'تجم'), + (0xFD51, 'M', u'تحج'), + (0xFD53, 'M', u'تحم'), + (0xFD54, 'M', u'تخم'), + (0xFD55, 'M', u'تمج'), + (0xFD56, 'M', u'تمح'), + (0xFD57, 'M', u'تمخ'), + (0xFD58, 'M', u'جمح'), + (0xFD5A, 'M', u'حمي'), + (0xFD5B, 'M', u'حمى'), + (0xFD5C, 'M', u'سحج'), + (0xFD5D, 'M', u'سجح'), + (0xFD5E, 'M', u'سجى'), + (0xFD5F, 'M', u'سمح'), + (0xFD61, 'M', u'سمج'), + (0xFD62, 'M', u'سمم'), + (0xFD64, 'M', u'صحح'), + (0xFD66, 'M', u'صمم'), + (0xFD67, 'M', u'شحم'), + (0xFD69, 'M', u'شجي'), + ] + +def _seg_48(): + return [ + (0xFD6A, 'M', u'شمخ'), + (0xFD6C, 'M', u'شمم'), + (0xFD6E, 'M', u'ضحى'), + (0xFD6F, 'M', u'ضخم'), + (0xFD71, 'M', u'طمح'), + (0xFD73, 'M', u'طمم'), + (0xFD74, 'M', u'طمي'), + (0xFD75, 'M', u'عجم'), + (0xFD76, 'M', u'عمم'), + (0xFD78, 'M', u'عمى'), + (0xFD79, 'M', u'غمم'), + (0xFD7A, 'M', u'غمي'), + (0xFD7B, 'M', u'غمى'), + (0xFD7C, 'M', u'فخم'), + (0xFD7E, 'M', u'قمح'), + (0xFD7F, 'M', u'قمم'), + (0xFD80, 'M', u'لحم'), + (0xFD81, 'M', u'لحي'), + (0xFD82, 'M', u'لحى'), + (0xFD83, 'M', u'لجج'), + (0xFD85, 'M', u'لخم'), + (0xFD87, 'M', u'لمح'), + (0xFD89, 'M', u'محج'), + (0xFD8A, 'M', u'محم'), + (0xFD8B, 'M', u'محي'), + (0xFD8C, 'M', u'مجح'), + (0xFD8D, 'M', u'مجم'), + (0xFD8E, 'M', u'مخج'), + (0xFD8F, 'M', u'مخم'), + (0xFD90, 'X'), + (0xFD92, 'M', u'مجخ'), + (0xFD93, 'M', u'همج'), + (0xFD94, 'M', u'همم'), + (0xFD95, 'M', u'نحم'), + (0xFD96, 'M', u'نحى'), + (0xFD97, 'M', u'نجم'), + (0xFD99, 'M', u'نجى'), + (0xFD9A, 'M', u'نمي'), + (0xFD9B, 'M', u'نمى'), + (0xFD9C, 'M', u'يمم'), + (0xFD9E, 'M', u'بخي'), + (0xFD9F, 'M', u'تجي'), + (0xFDA0, 'M', u'تجى'), + (0xFDA1, 'M', u'تخي'), + (0xFDA2, 'M', u'تخى'), + (0xFDA3, 'M', u'تمي'), + (0xFDA4, 'M', u'تمى'), + (0xFDA5, 'M', u'جمي'), + (0xFDA6, 'M', u'جحى'), + (0xFDA7, 'M', u'جمى'), + (0xFDA8, 'M', u'سخى'), + (0xFDA9, 'M', u'صحي'), + (0xFDAA, 'M', u'شحي'), + (0xFDAB, 'M', u'ضحي'), + (0xFDAC, 'M', u'لجي'), + (0xFDAD, 'M', u'لمي'), + (0xFDAE, 'M', u'يحي'), + (0xFDAF, 'M', u'يجي'), + (0xFDB0, 'M', u'يمي'), + (0xFDB1, 'M', u'ممي'), + (0xFDB2, 'M', u'قمي'), + (0xFDB3, 'M', u'نحي'), + (0xFDB4, 'M', u'قمح'), + (0xFDB5, 'M', u'لحم'), + (0xFDB6, 'M', u'عمي'), + (0xFDB7, 'M', u'كمي'), + (0xFDB8, 'M', u'نجح'), + (0xFDB9, 'M', u'مخي'), + (0xFDBA, 'M', u'لجم'), + (0xFDBB, 'M', u'كمم'), + (0xFDBC, 'M', u'لجم'), + (0xFDBD, 'M', u'نجح'), + (0xFDBE, 'M', u'جحي'), + (0xFDBF, 'M', u'حجي'), + (0xFDC0, 'M', u'مجي'), + (0xFDC1, 'M', u'فمي'), + (0xFDC2, 'M', u'بحي'), + (0xFDC3, 'M', u'كمم'), + (0xFDC4, 'M', u'عجم'), + (0xFDC5, 'M', u'صمم'), + (0xFDC6, 'M', u'سخي'), + (0xFDC7, 'M', u'نجي'), + (0xFDC8, 'X'), + (0xFDF0, 'M', u'صلے'), + (0xFDF1, 'M', u'قلے'), + (0xFDF2, 'M', u'الله'), + (0xFDF3, 'M', u'اكبر'), + (0xFDF4, 'M', u'محمد'), + (0xFDF5, 'M', u'صلعم'), + (0xFDF6, 'M', u'رسول'), + (0xFDF7, 'M', u'عليه'), + (0xFDF8, 'M', u'وسلم'), + (0xFDF9, 'M', u'صلى'), + (0xFDFA, '3', u'صلى الله عليه وسلم'), + (0xFDFB, '3', u'جل جلاله'), + (0xFDFC, 'M', u'ریال'), + (0xFDFD, 'V'), + (0xFDFE, 'X'), + (0xFE00, 'I'), + (0xFE10, '3', u','), + ] + +def _seg_49(): + return [ + (0xFE11, 'M', u'、'), + (0xFE12, 'X'), + (0xFE13, '3', u':'), + (0xFE14, '3', u';'), + (0xFE15, '3', u'!'), + (0xFE16, '3', u'?'), + (0xFE17, 'M', u'〖'), + (0xFE18, 'M', u'〗'), + (0xFE19, 'X'), + (0xFE20, 'V'), + (0xFE30, 'X'), + (0xFE31, 'M', u'—'), + (0xFE32, 'M', u'–'), + (0xFE33, '3', u'_'), + (0xFE35, '3', u'('), + (0xFE36, '3', u')'), + (0xFE37, '3', u'{'), + (0xFE38, '3', u'}'), + (0xFE39, 'M', u'〔'), + (0xFE3A, 'M', u'〕'), + (0xFE3B, 'M', u'【'), + (0xFE3C, 'M', u'】'), + (0xFE3D, 'M', u'《'), + (0xFE3E, 'M', u'》'), + (0xFE3F, 'M', u'〈'), + (0xFE40, 'M', u'〉'), + (0xFE41, 'M', u'「'), + (0xFE42, 'M', u'」'), + (0xFE43, 'M', u'『'), + (0xFE44, 'M', u'』'), + (0xFE45, 'V'), + (0xFE47, '3', u'['), + (0xFE48, '3', u']'), + (0xFE49, '3', u' ̅'), + (0xFE4D, '3', u'_'), + (0xFE50, '3', u','), + (0xFE51, 'M', u'、'), + (0xFE52, 'X'), + (0xFE54, '3', u';'), + (0xFE55, '3', u':'), + (0xFE56, '3', u'?'), + (0xFE57, '3', u'!'), + (0xFE58, 'M', u'—'), + (0xFE59, '3', u'('), + (0xFE5A, '3', u')'), + (0xFE5B, '3', u'{'), + (0xFE5C, '3', u'}'), + (0xFE5D, 'M', u'〔'), + (0xFE5E, 'M', u'〕'), + (0xFE5F, '3', u'#'), + (0xFE60, '3', u'&'), + (0xFE61, '3', u'*'), + (0xFE62, '3', u'+'), + (0xFE63, 'M', u'-'), + (0xFE64, '3', u'<'), + (0xFE65, '3', u'>'), + (0xFE66, '3', u'='), + (0xFE67, 'X'), + (0xFE68, '3', u'\\'), + (0xFE69, '3', u'$'), + (0xFE6A, '3', u'%'), + (0xFE6B, '3', u'@'), + (0xFE6C, 'X'), + (0xFE70, '3', u' ً'), + (0xFE71, 'M', u'ـً'), + (0xFE72, '3', u' ٌ'), + (0xFE73, 'V'), + (0xFE74, '3', u' ٍ'), + (0xFE75, 'X'), + (0xFE76, '3', u' َ'), + (0xFE77, 'M', u'ـَ'), + (0xFE78, '3', u' ُ'), + (0xFE79, 'M', u'ـُ'), + (0xFE7A, '3', u' ِ'), + (0xFE7B, 'M', u'ـِ'), + (0xFE7C, '3', u' ّ'), + (0xFE7D, 'M', u'ـّ'), + (0xFE7E, '3', u' ْ'), + (0xFE7F, 'M', u'ـْ'), + (0xFE80, 'M', u'ء'), + (0xFE81, 'M', u'آ'), + (0xFE83, 'M', u'أ'), + (0xFE85, 'M', u'ؤ'), + (0xFE87, 'M', u'إ'), + (0xFE89, 'M', u'ئ'), + (0xFE8D, 'M', u'ا'), + (0xFE8F, 'M', u'ب'), + (0xFE93, 'M', u'ة'), + (0xFE95, 'M', u'ت'), + (0xFE99, 'M', u'ث'), + (0xFE9D, 'M', u'ج'), + (0xFEA1, 'M', u'ح'), + (0xFEA5, 'M', u'خ'), + (0xFEA9, 'M', u'د'), + (0xFEAB, 'M', u'ذ'), + (0xFEAD, 'M', u'ر'), + (0xFEAF, 'M', u'ز'), + (0xFEB1, 'M', u'س'), + (0xFEB5, 'M', u'ش'), + (0xFEB9, 'M', u'ص'), + ] + +def _seg_50(): + return [ + (0xFEBD, 'M', u'ض'), + (0xFEC1, 'M', u'ط'), + (0xFEC5, 'M', u'ظ'), + (0xFEC9, 'M', u'ع'), + (0xFECD, 'M', u'غ'), + (0xFED1, 'M', u'ف'), + (0xFED5, 'M', u'ق'), + (0xFED9, 'M', u'ك'), + (0xFEDD, 'M', u'ل'), + (0xFEE1, 'M', u'م'), + (0xFEE5, 'M', u'ن'), + (0xFEE9, 'M', u'ه'), + (0xFEED, 'M', u'و'), + (0xFEEF, 'M', u'ى'), + (0xFEF1, 'M', u'ي'), + (0xFEF5, 'M', u'لآ'), + (0xFEF7, 'M', u'لأ'), + (0xFEF9, 'M', u'لإ'), + (0xFEFB, 'M', u'لا'), + (0xFEFD, 'X'), + (0xFEFF, 'I'), + (0xFF00, 'X'), + (0xFF01, '3', u'!'), + (0xFF02, '3', u'"'), + (0xFF03, '3', u'#'), + (0xFF04, '3', u'$'), + (0xFF05, '3', u'%'), + (0xFF06, '3', u'&'), + (0xFF07, '3', u'\''), + (0xFF08, '3', u'('), + (0xFF09, '3', u')'), + (0xFF0A, '3', u'*'), + (0xFF0B, '3', u'+'), + (0xFF0C, '3', u','), + (0xFF0D, 'M', u'-'), + (0xFF0E, 'M', u'.'), + (0xFF0F, '3', u'/'), + (0xFF10, 'M', u'0'), + (0xFF11, 'M', u'1'), + (0xFF12, 'M', u'2'), + (0xFF13, 'M', u'3'), + (0xFF14, 'M', u'4'), + (0xFF15, 'M', u'5'), + (0xFF16, 'M', u'6'), + (0xFF17, 'M', u'7'), + (0xFF18, 'M', u'8'), + (0xFF19, 'M', u'9'), + (0xFF1A, '3', u':'), + (0xFF1B, '3', u';'), + (0xFF1C, '3', u'<'), + (0xFF1D, '3', u'='), + (0xFF1E, '3', u'>'), + (0xFF1F, '3', u'?'), + (0xFF20, '3', u'@'), + (0xFF21, 'M', u'a'), + (0xFF22, 'M', u'b'), + (0xFF23, 'M', u'c'), + (0xFF24, 'M', u'd'), + (0xFF25, 'M', u'e'), + (0xFF26, 'M', u'f'), + (0xFF27, 'M', u'g'), + (0xFF28, 'M', u'h'), + (0xFF29, 'M', u'i'), + (0xFF2A, 'M', u'j'), + (0xFF2B, 'M', u'k'), + (0xFF2C, 'M', u'l'), + (0xFF2D, 'M', u'm'), + (0xFF2E, 'M', u'n'), + (0xFF2F, 'M', u'o'), + (0xFF30, 'M', u'p'), + (0xFF31, 'M', u'q'), + (0xFF32, 'M', u'r'), + (0xFF33, 'M', u's'), + (0xFF34, 'M', u't'), + (0xFF35, 'M', u'u'), + (0xFF36, 'M', u'v'), + (0xFF37, 'M', u'w'), + (0xFF38, 'M', u'x'), + (0xFF39, 'M', u'y'), + (0xFF3A, 'M', u'z'), + (0xFF3B, '3', u'['), + (0xFF3C, '3', u'\\'), + (0xFF3D, '3', u']'), + (0xFF3E, '3', u'^'), + (0xFF3F, '3', u'_'), + (0xFF40, '3', u'`'), + (0xFF41, 'M', u'a'), + (0xFF42, 'M', u'b'), + (0xFF43, 'M', u'c'), + (0xFF44, 'M', u'd'), + (0xFF45, 'M', u'e'), + (0xFF46, 'M', u'f'), + (0xFF47, 'M', u'g'), + (0xFF48, 'M', u'h'), + (0xFF49, 'M', u'i'), + (0xFF4A, 'M', u'j'), + (0xFF4B, 'M', u'k'), + (0xFF4C, 'M', u'l'), + (0xFF4D, 'M', u'm'), + (0xFF4E, 'M', u'n'), + ] + +def _seg_51(): + return [ + (0xFF4F, 'M', u'o'), + (0xFF50, 'M', u'p'), + (0xFF51, 'M', u'q'), + (0xFF52, 'M', u'r'), + (0xFF53, 'M', u's'), + (0xFF54, 'M', u't'), + (0xFF55, 'M', u'u'), + (0xFF56, 'M', u'v'), + (0xFF57, 'M', u'w'), + (0xFF58, 'M', u'x'), + (0xFF59, 'M', u'y'), + (0xFF5A, 'M', u'z'), + (0xFF5B, '3', u'{'), + (0xFF5C, '3', u'|'), + (0xFF5D, '3', u'}'), + (0xFF5E, '3', u'~'), + (0xFF5F, 'M', u'⦅'), + (0xFF60, 'M', u'⦆'), + (0xFF61, 'M', u'.'), + (0xFF62, 'M', u'「'), + (0xFF63, 'M', u'」'), + (0xFF64, 'M', u'、'), + (0xFF65, 'M', u'・'), + (0xFF66, 'M', u'ヲ'), + (0xFF67, 'M', u'ァ'), + (0xFF68, 'M', u'ィ'), + (0xFF69, 'M', u'ゥ'), + (0xFF6A, 'M', u'ェ'), + (0xFF6B, 'M', u'ォ'), + (0xFF6C, 'M', u'ャ'), + (0xFF6D, 'M', u'ュ'), + (0xFF6E, 'M', u'ョ'), + (0xFF6F, 'M', u'ッ'), + (0xFF70, 'M', u'ー'), + (0xFF71, 'M', u'ア'), + (0xFF72, 'M', u'イ'), + (0xFF73, 'M', u'ウ'), + (0xFF74, 'M', u'エ'), + (0xFF75, 'M', u'オ'), + (0xFF76, 'M', u'カ'), + (0xFF77, 'M', u'キ'), + (0xFF78, 'M', u'ク'), + (0xFF79, 'M', u'ケ'), + (0xFF7A, 'M', u'コ'), + (0xFF7B, 'M', u'サ'), + (0xFF7C, 'M', u'シ'), + (0xFF7D, 'M', u'ス'), + (0xFF7E, 'M', u'セ'), + (0xFF7F, 'M', u'ソ'), + (0xFF80, 'M', u'タ'), + (0xFF81, 'M', u'チ'), + (0xFF82, 'M', u'ツ'), + (0xFF83, 'M', u'テ'), + (0xFF84, 'M', u'ト'), + (0xFF85, 'M', u'ナ'), + (0xFF86, 'M', u'ニ'), + (0xFF87, 'M', u'ヌ'), + (0xFF88, 'M', u'ネ'), + (0xFF89, 'M', u'ノ'), + (0xFF8A, 'M', u'ハ'), + (0xFF8B, 'M', u'ヒ'), + (0xFF8C, 'M', u'フ'), + (0xFF8D, 'M', u'ヘ'), + (0xFF8E, 'M', u'ホ'), + (0xFF8F, 'M', u'マ'), + (0xFF90, 'M', u'ミ'), + (0xFF91, 'M', u'ム'), + (0xFF92, 'M', u'メ'), + (0xFF93, 'M', u'モ'), + (0xFF94, 'M', u'ヤ'), + (0xFF95, 'M', u'ユ'), + (0xFF96, 'M', u'ヨ'), + (0xFF97, 'M', u'ラ'), + (0xFF98, 'M', u'リ'), + (0xFF99, 'M', u'ル'), + (0xFF9A, 'M', u'レ'), + (0xFF9B, 'M', u'ロ'), + (0xFF9C, 'M', u'ワ'), + (0xFF9D, 'M', u'ン'), + (0xFF9E, 'M', u'゙'), + (0xFF9F, 'M', u'゚'), + (0xFFA0, 'X'), + (0xFFA1, 'M', u'ᄀ'), + (0xFFA2, 'M', u'ᄁ'), + (0xFFA3, 'M', u'ᆪ'), + (0xFFA4, 'M', u'ᄂ'), + (0xFFA5, 'M', u'ᆬ'), + (0xFFA6, 'M', u'ᆭ'), + (0xFFA7, 'M', u'ᄃ'), + (0xFFA8, 'M', u'ᄄ'), + (0xFFA9, 'M', u'ᄅ'), + (0xFFAA, 'M', u'ᆰ'), + (0xFFAB, 'M', u'ᆱ'), + (0xFFAC, 'M', u'ᆲ'), + (0xFFAD, 'M', u'ᆳ'), + (0xFFAE, 'M', u'ᆴ'), + (0xFFAF, 'M', u'ᆵ'), + (0xFFB0, 'M', u'ᄚ'), + (0xFFB1, 'M', u'ᄆ'), + (0xFFB2, 'M', u'ᄇ'), + ] + +def _seg_52(): + return [ + (0xFFB3, 'M', u'ᄈ'), + (0xFFB4, 'M', u'ᄡ'), + (0xFFB5, 'M', u'ᄉ'), + (0xFFB6, 'M', u'ᄊ'), + (0xFFB7, 'M', u'ᄋ'), + (0xFFB8, 'M', u'ᄌ'), + (0xFFB9, 'M', u'ᄍ'), + (0xFFBA, 'M', u'ᄎ'), + (0xFFBB, 'M', u'ᄏ'), + (0xFFBC, 'M', u'ᄐ'), + (0xFFBD, 'M', u'ᄑ'), + (0xFFBE, 'M', u'ᄒ'), + (0xFFBF, 'X'), + (0xFFC2, 'M', u'ᅡ'), + (0xFFC3, 'M', u'ᅢ'), + (0xFFC4, 'M', u'ᅣ'), + (0xFFC5, 'M', u'ᅤ'), + (0xFFC6, 'M', u'ᅥ'), + (0xFFC7, 'M', u'ᅦ'), + (0xFFC8, 'X'), + (0xFFCA, 'M', u'ᅧ'), + (0xFFCB, 'M', u'ᅨ'), + (0xFFCC, 'M', u'ᅩ'), + (0xFFCD, 'M', u'ᅪ'), + (0xFFCE, 'M', u'ᅫ'), + (0xFFCF, 'M', u'ᅬ'), + (0xFFD0, 'X'), + (0xFFD2, 'M', u'ᅭ'), + (0xFFD3, 'M', u'ᅮ'), + (0xFFD4, 'M', u'ᅯ'), + (0xFFD5, 'M', u'ᅰ'), + (0xFFD6, 'M', u'ᅱ'), + (0xFFD7, 'M', u'ᅲ'), + (0xFFD8, 'X'), + (0xFFDA, 'M', u'ᅳ'), + (0xFFDB, 'M', u'ᅴ'), + (0xFFDC, 'M', u'ᅵ'), + (0xFFDD, 'X'), + (0xFFE0, 'M', u'¢'), + (0xFFE1, 'M', u'£'), + (0xFFE2, 'M', u'¬'), + (0xFFE3, '3', u' ̄'), + (0xFFE4, 'M', u'¦'), + (0xFFE5, 'M', u'¥'), + (0xFFE6, 'M', u'₩'), + (0xFFE7, 'X'), + (0xFFE8, 'M', u'│'), + (0xFFE9, 'M', u'←'), + (0xFFEA, 'M', u'↑'), + (0xFFEB, 'M', u'→'), + (0xFFEC, 'M', u'↓'), + (0xFFED, 'M', u'■'), + (0xFFEE, 'M', u'○'), + (0xFFEF, 'X'), + (0x10000, 'V'), + (0x1000C, 'X'), + (0x1000D, 'V'), + (0x10027, 'X'), + (0x10028, 'V'), + (0x1003B, 'X'), + (0x1003C, 'V'), + (0x1003E, 'X'), + (0x1003F, 'V'), + (0x1004E, 'X'), + (0x10050, 'V'), + (0x1005E, 'X'), + (0x10080, 'V'), + (0x100FB, 'X'), + (0x10100, 'V'), + (0x10103, 'X'), + (0x10107, 'V'), + (0x10134, 'X'), + (0x10137, 'V'), + (0x1018F, 'X'), + (0x10190, 'V'), + (0x1019C, 'X'), + (0x101A0, 'V'), + (0x101A1, 'X'), + (0x101D0, 'V'), + (0x101FE, 'X'), + (0x10280, 'V'), + (0x1029D, 'X'), + (0x102A0, 'V'), + (0x102D1, 'X'), + (0x102E0, 'V'), + (0x102FC, 'X'), + (0x10300, 'V'), + (0x10324, 'X'), + (0x1032D, 'V'), + (0x1034B, 'X'), + (0x10350, 'V'), + (0x1037B, 'X'), + (0x10380, 'V'), + (0x1039E, 'X'), + (0x1039F, 'V'), + (0x103C4, 'X'), + (0x103C8, 'V'), + (0x103D6, 'X'), + (0x10400, 'M', u'𐐨'), + (0x10401, 'M', u'𐐩'), + ] + +def _seg_53(): + return [ + (0x10402, 'M', u'𐐪'), + (0x10403, 'M', u'𐐫'), + (0x10404, 'M', u'𐐬'), + (0x10405, 'M', u'𐐭'), + (0x10406, 'M', u'𐐮'), + (0x10407, 'M', u'𐐯'), + (0x10408, 'M', u'𐐰'), + (0x10409, 'M', u'𐐱'), + (0x1040A, 'M', u'𐐲'), + (0x1040B, 'M', u'𐐳'), + (0x1040C, 'M', u'𐐴'), + (0x1040D, 'M', u'𐐵'), + (0x1040E, 'M', u'𐐶'), + (0x1040F, 'M', u'𐐷'), + (0x10410, 'M', u'𐐸'), + (0x10411, 'M', u'𐐹'), + (0x10412, 'M', u'𐐺'), + (0x10413, 'M', u'𐐻'), + (0x10414, 'M', u'𐐼'), + (0x10415, 'M', u'𐐽'), + (0x10416, 'M', u'𐐾'), + (0x10417, 'M', u'𐐿'), + (0x10418, 'M', u'𐑀'), + (0x10419, 'M', u'𐑁'), + (0x1041A, 'M', u'𐑂'), + (0x1041B, 'M', u'𐑃'), + (0x1041C, 'M', u'𐑄'), + (0x1041D, 'M', u'𐑅'), + (0x1041E, 'M', u'𐑆'), + (0x1041F, 'M', u'𐑇'), + (0x10420, 'M', u'𐑈'), + (0x10421, 'M', u'𐑉'), + (0x10422, 'M', u'𐑊'), + (0x10423, 'M', u'𐑋'), + (0x10424, 'M', u'𐑌'), + (0x10425, 'M', u'𐑍'), + (0x10426, 'M', u'𐑎'), + (0x10427, 'M', u'𐑏'), + (0x10428, 'V'), + (0x1049E, 'X'), + (0x104A0, 'V'), + (0x104AA, 'X'), + (0x104B0, 'M', u'𐓘'), + (0x104B1, 'M', u'𐓙'), + (0x104B2, 'M', u'𐓚'), + (0x104B3, 'M', u'𐓛'), + (0x104B4, 'M', u'𐓜'), + (0x104B5, 'M', u'𐓝'), + (0x104B6, 'M', u'𐓞'), + (0x104B7, 'M', u'𐓟'), + (0x104B8, 'M', u'𐓠'), + (0x104B9, 'M', u'𐓡'), + (0x104BA, 'M', u'𐓢'), + (0x104BB, 'M', u'𐓣'), + (0x104BC, 'M', u'𐓤'), + (0x104BD, 'M', u'𐓥'), + (0x104BE, 'M', u'𐓦'), + (0x104BF, 'M', u'𐓧'), + (0x104C0, 'M', u'𐓨'), + (0x104C1, 'M', u'𐓩'), + (0x104C2, 'M', u'𐓪'), + (0x104C3, 'M', u'𐓫'), + (0x104C4, 'M', u'𐓬'), + (0x104C5, 'M', u'𐓭'), + (0x104C6, 'M', u'𐓮'), + (0x104C7, 'M', u'𐓯'), + (0x104C8, 'M', u'𐓰'), + (0x104C9, 'M', u'𐓱'), + (0x104CA, 'M', u'𐓲'), + (0x104CB, 'M', u'𐓳'), + (0x104CC, 'M', u'𐓴'), + (0x104CD, 'M', u'𐓵'), + (0x104CE, 'M', u'𐓶'), + (0x104CF, 'M', u'𐓷'), + (0x104D0, 'M', u'𐓸'), + (0x104D1, 'M', u'𐓹'), + (0x104D2, 'M', u'𐓺'), + (0x104D3, 'M', u'𐓻'), + (0x104D4, 'X'), + (0x104D8, 'V'), + (0x104FC, 'X'), + (0x10500, 'V'), + (0x10528, 'X'), + (0x10530, 'V'), + (0x10564, 'X'), + (0x1056F, 'V'), + (0x10570, 'X'), + (0x10600, 'V'), + (0x10737, 'X'), + (0x10740, 'V'), + (0x10756, 'X'), + (0x10760, 'V'), + (0x10768, 'X'), + (0x10800, 'V'), + (0x10806, 'X'), + (0x10808, 'V'), + (0x10809, 'X'), + (0x1080A, 'V'), + (0x10836, 'X'), + (0x10837, 'V'), + ] + +def _seg_54(): + return [ + (0x10839, 'X'), + (0x1083C, 'V'), + (0x1083D, 'X'), + (0x1083F, 'V'), + (0x10856, 'X'), + (0x10857, 'V'), + (0x1089F, 'X'), + (0x108A7, 'V'), + (0x108B0, 'X'), + (0x108E0, 'V'), + (0x108F3, 'X'), + (0x108F4, 'V'), + (0x108F6, 'X'), + (0x108FB, 'V'), + (0x1091C, 'X'), + (0x1091F, 'V'), + (0x1093A, 'X'), + (0x1093F, 'V'), + (0x10940, 'X'), + (0x10980, 'V'), + (0x109B8, 'X'), + (0x109BC, 'V'), + (0x109D0, 'X'), + (0x109D2, 'V'), + (0x10A04, 'X'), + (0x10A05, 'V'), + (0x10A07, 'X'), + (0x10A0C, 'V'), + (0x10A14, 'X'), + (0x10A15, 'V'), + (0x10A18, 'X'), + (0x10A19, 'V'), + (0x10A36, 'X'), + (0x10A38, 'V'), + (0x10A3B, 'X'), + (0x10A3F, 'V'), + (0x10A49, 'X'), + (0x10A50, 'V'), + (0x10A59, 'X'), + (0x10A60, 'V'), + (0x10AA0, 'X'), + (0x10AC0, 'V'), + (0x10AE7, 'X'), + (0x10AEB, 'V'), + (0x10AF7, 'X'), + (0x10B00, 'V'), + (0x10B36, 'X'), + (0x10B39, 'V'), + (0x10B56, 'X'), + (0x10B58, 'V'), + (0x10B73, 'X'), + (0x10B78, 'V'), + (0x10B92, 'X'), + (0x10B99, 'V'), + (0x10B9D, 'X'), + (0x10BA9, 'V'), + (0x10BB0, 'X'), + (0x10C00, 'V'), + (0x10C49, 'X'), + (0x10C80, 'M', u'𐳀'), + (0x10C81, 'M', u'𐳁'), + (0x10C82, 'M', u'𐳂'), + (0x10C83, 'M', u'𐳃'), + (0x10C84, 'M', u'𐳄'), + (0x10C85, 'M', u'𐳅'), + (0x10C86, 'M', u'𐳆'), + (0x10C87, 'M', u'𐳇'), + (0x10C88, 'M', u'𐳈'), + (0x10C89, 'M', u'𐳉'), + (0x10C8A, 'M', u'𐳊'), + (0x10C8B, 'M', u'𐳋'), + (0x10C8C, 'M', u'𐳌'), + (0x10C8D, 'M', u'𐳍'), + (0x10C8E, 'M', u'𐳎'), + (0x10C8F, 'M', u'𐳏'), + (0x10C90, 'M', u'𐳐'), + (0x10C91, 'M', u'𐳑'), + (0x10C92, 'M', u'𐳒'), + (0x10C93, 'M', u'𐳓'), + (0x10C94, 'M', u'𐳔'), + (0x10C95, 'M', u'𐳕'), + (0x10C96, 'M', u'𐳖'), + (0x10C97, 'M', u'𐳗'), + (0x10C98, 'M', u'𐳘'), + (0x10C99, 'M', u'𐳙'), + (0x10C9A, 'M', u'𐳚'), + (0x10C9B, 'M', u'𐳛'), + (0x10C9C, 'M', u'𐳜'), + (0x10C9D, 'M', u'𐳝'), + (0x10C9E, 'M', u'𐳞'), + (0x10C9F, 'M', u'𐳟'), + (0x10CA0, 'M', u'𐳠'), + (0x10CA1, 'M', u'𐳡'), + (0x10CA2, 'M', u'𐳢'), + (0x10CA3, 'M', u'𐳣'), + (0x10CA4, 'M', u'𐳤'), + (0x10CA5, 'M', u'𐳥'), + (0x10CA6, 'M', u'𐳦'), + (0x10CA7, 'M', u'𐳧'), + (0x10CA8, 'M', u'𐳨'), + ] + +def _seg_55(): + return [ + (0x10CA9, 'M', u'𐳩'), + (0x10CAA, 'M', u'𐳪'), + (0x10CAB, 'M', u'𐳫'), + (0x10CAC, 'M', u'𐳬'), + (0x10CAD, 'M', u'𐳭'), + (0x10CAE, 'M', u'𐳮'), + (0x10CAF, 'M', u'𐳯'), + (0x10CB0, 'M', u'𐳰'), + (0x10CB1, 'M', u'𐳱'), + (0x10CB2, 'M', u'𐳲'), + (0x10CB3, 'X'), + (0x10CC0, 'V'), + (0x10CF3, 'X'), + (0x10CFA, 'V'), + (0x10D28, 'X'), + (0x10D30, 'V'), + (0x10D3A, 'X'), + (0x10E60, 'V'), + (0x10E7F, 'X'), + (0x10F00, 'V'), + (0x10F28, 'X'), + (0x10F30, 'V'), + (0x10F5A, 'X'), + (0x11000, 'V'), + (0x1104E, 'X'), + (0x11052, 'V'), + (0x11070, 'X'), + (0x1107F, 'V'), + (0x110BD, 'X'), + (0x110BE, 'V'), + (0x110C2, 'X'), + (0x110D0, 'V'), + (0x110E9, 'X'), + (0x110F0, 'V'), + (0x110FA, 'X'), + (0x11100, 'V'), + (0x11135, 'X'), + (0x11136, 'V'), + (0x11147, 'X'), + (0x11150, 'V'), + (0x11177, 'X'), + (0x11180, 'V'), + (0x111CE, 'X'), + (0x111D0, 'V'), + (0x111E0, 'X'), + (0x111E1, 'V'), + (0x111F5, 'X'), + (0x11200, 'V'), + (0x11212, 'X'), + (0x11213, 'V'), + (0x1123F, 'X'), + (0x11280, 'V'), + (0x11287, 'X'), + (0x11288, 'V'), + (0x11289, 'X'), + (0x1128A, 'V'), + (0x1128E, 'X'), + (0x1128F, 'V'), + (0x1129E, 'X'), + (0x1129F, 'V'), + (0x112AA, 'X'), + (0x112B0, 'V'), + (0x112EB, 'X'), + (0x112F0, 'V'), + (0x112FA, 'X'), + (0x11300, 'V'), + (0x11304, 'X'), + (0x11305, 'V'), + (0x1130D, 'X'), + (0x1130F, 'V'), + (0x11311, 'X'), + (0x11313, 'V'), + (0x11329, 'X'), + (0x1132A, 'V'), + (0x11331, 'X'), + (0x11332, 'V'), + (0x11334, 'X'), + (0x11335, 'V'), + (0x1133A, 'X'), + (0x1133B, 'V'), + (0x11345, 'X'), + (0x11347, 'V'), + (0x11349, 'X'), + (0x1134B, 'V'), + (0x1134E, 'X'), + (0x11350, 'V'), + (0x11351, 'X'), + (0x11357, 'V'), + (0x11358, 'X'), + (0x1135D, 'V'), + (0x11364, 'X'), + (0x11366, 'V'), + (0x1136D, 'X'), + (0x11370, 'V'), + (0x11375, 'X'), + (0x11400, 'V'), + (0x1145A, 'X'), + (0x1145B, 'V'), + (0x1145C, 'X'), + (0x1145D, 'V'), + ] + +def _seg_56(): + return [ + (0x1145F, 'X'), + (0x11480, 'V'), + (0x114C8, 'X'), + (0x114D0, 'V'), + (0x114DA, 'X'), + (0x11580, 'V'), + (0x115B6, 'X'), + (0x115B8, 'V'), + (0x115DE, 'X'), + (0x11600, 'V'), + (0x11645, 'X'), + (0x11650, 'V'), + (0x1165A, 'X'), + (0x11660, 'V'), + (0x1166D, 'X'), + (0x11680, 'V'), + (0x116B8, 'X'), + (0x116C0, 'V'), + (0x116CA, 'X'), + (0x11700, 'V'), + (0x1171B, 'X'), + (0x1171D, 'V'), + (0x1172C, 'X'), + (0x11730, 'V'), + (0x11740, 'X'), + (0x11800, 'V'), + (0x1183C, 'X'), + (0x118A0, 'M', u'𑣀'), + (0x118A1, 'M', u'𑣁'), + (0x118A2, 'M', u'𑣂'), + (0x118A3, 'M', u'𑣃'), + (0x118A4, 'M', u'𑣄'), + (0x118A5, 'M', u'𑣅'), + (0x118A6, 'M', u'𑣆'), + (0x118A7, 'M', u'𑣇'), + (0x118A8, 'M', u'𑣈'), + (0x118A9, 'M', u'𑣉'), + (0x118AA, 'M', u'𑣊'), + (0x118AB, 'M', u'𑣋'), + (0x118AC, 'M', u'𑣌'), + (0x118AD, 'M', u'𑣍'), + (0x118AE, 'M', u'𑣎'), + (0x118AF, 'M', u'𑣏'), + (0x118B0, 'M', u'𑣐'), + (0x118B1, 'M', u'𑣑'), + (0x118B2, 'M', u'𑣒'), + (0x118B3, 'M', u'𑣓'), + (0x118B4, 'M', u'𑣔'), + (0x118B5, 'M', u'𑣕'), + (0x118B6, 'M', u'𑣖'), + (0x118B7, 'M', u'𑣗'), + (0x118B8, 'M', u'𑣘'), + (0x118B9, 'M', u'𑣙'), + (0x118BA, 'M', u'𑣚'), + (0x118BB, 'M', u'𑣛'), + (0x118BC, 'M', u'𑣜'), + (0x118BD, 'M', u'𑣝'), + (0x118BE, 'M', u'𑣞'), + (0x118BF, 'M', u'𑣟'), + (0x118C0, 'V'), + (0x118F3, 'X'), + (0x118FF, 'V'), + (0x11900, 'X'), + (0x11A00, 'V'), + (0x11A48, 'X'), + (0x11A50, 'V'), + (0x11A84, 'X'), + (0x11A86, 'V'), + (0x11AA3, 'X'), + (0x11AC0, 'V'), + (0x11AF9, 'X'), + (0x11C00, 'V'), + (0x11C09, 'X'), + (0x11C0A, 'V'), + (0x11C37, 'X'), + (0x11C38, 'V'), + (0x11C46, 'X'), + (0x11C50, 'V'), + (0x11C6D, 'X'), + (0x11C70, 'V'), + (0x11C90, 'X'), + (0x11C92, 'V'), + (0x11CA8, 'X'), + (0x11CA9, 'V'), + (0x11CB7, 'X'), + (0x11D00, 'V'), + (0x11D07, 'X'), + (0x11D08, 'V'), + (0x11D0A, 'X'), + (0x11D0B, 'V'), + (0x11D37, 'X'), + (0x11D3A, 'V'), + (0x11D3B, 'X'), + (0x11D3C, 'V'), + (0x11D3E, 'X'), + (0x11D3F, 'V'), + (0x11D48, 'X'), + (0x11D50, 'V'), + (0x11D5A, 'X'), + (0x11D60, 'V'), + ] + +def _seg_57(): + return [ + (0x11D66, 'X'), + (0x11D67, 'V'), + (0x11D69, 'X'), + (0x11D6A, 'V'), + (0x11D8F, 'X'), + (0x11D90, 'V'), + (0x11D92, 'X'), + (0x11D93, 'V'), + (0x11D99, 'X'), + (0x11DA0, 'V'), + (0x11DAA, 'X'), + (0x11EE0, 'V'), + (0x11EF9, 'X'), + (0x12000, 'V'), + (0x1239A, 'X'), + (0x12400, 'V'), + (0x1246F, 'X'), + (0x12470, 'V'), + (0x12475, 'X'), + (0x12480, 'V'), + (0x12544, 'X'), + (0x13000, 'V'), + (0x1342F, 'X'), + (0x14400, 'V'), + (0x14647, 'X'), + (0x16800, 'V'), + (0x16A39, 'X'), + (0x16A40, 'V'), + (0x16A5F, 'X'), + (0x16A60, 'V'), + (0x16A6A, 'X'), + (0x16A6E, 'V'), + (0x16A70, 'X'), + (0x16AD0, 'V'), + (0x16AEE, 'X'), + (0x16AF0, 'V'), + (0x16AF6, 'X'), + (0x16B00, 'V'), + (0x16B46, 'X'), + (0x16B50, 'V'), + (0x16B5A, 'X'), + (0x16B5B, 'V'), + (0x16B62, 'X'), + (0x16B63, 'V'), + (0x16B78, 'X'), + (0x16B7D, 'V'), + (0x16B90, 'X'), + (0x16E60, 'V'), + (0x16E9B, 'X'), + (0x16F00, 'V'), + (0x16F45, 'X'), + (0x16F50, 'V'), + (0x16F7F, 'X'), + (0x16F8F, 'V'), + (0x16FA0, 'X'), + (0x16FE0, 'V'), + (0x16FE2, 'X'), + (0x17000, 'V'), + (0x187F2, 'X'), + (0x18800, 'V'), + (0x18AF3, 'X'), + (0x1B000, 'V'), + (0x1B11F, 'X'), + (0x1B170, 'V'), + (0x1B2FC, 'X'), + (0x1BC00, 'V'), + (0x1BC6B, 'X'), + (0x1BC70, 'V'), + (0x1BC7D, 'X'), + (0x1BC80, 'V'), + (0x1BC89, 'X'), + (0x1BC90, 'V'), + (0x1BC9A, 'X'), + (0x1BC9C, 'V'), + (0x1BCA0, 'I'), + (0x1BCA4, 'X'), + (0x1D000, 'V'), + (0x1D0F6, 'X'), + (0x1D100, 'V'), + (0x1D127, 'X'), + (0x1D129, 'V'), + (0x1D15E, 'M', u'𝅗𝅥'), + (0x1D15F, 'M', u'𝅘𝅥'), + (0x1D160, 'M', u'𝅘𝅥𝅮'), + (0x1D161, 'M', u'𝅘𝅥𝅯'), + (0x1D162, 'M', u'𝅘𝅥𝅰'), + (0x1D163, 'M', u'𝅘𝅥𝅱'), + (0x1D164, 'M', u'𝅘𝅥𝅲'), + (0x1D165, 'V'), + (0x1D173, 'X'), + (0x1D17B, 'V'), + (0x1D1BB, 'M', u'𝆹𝅥'), + (0x1D1BC, 'M', u'𝆺𝅥'), + (0x1D1BD, 'M', u'𝆹𝅥𝅮'), + (0x1D1BE, 'M', u'𝆺𝅥𝅮'), + (0x1D1BF, 'M', u'𝆹𝅥𝅯'), + (0x1D1C0, 'M', u'𝆺𝅥𝅯'), + (0x1D1C1, 'V'), + (0x1D1E9, 'X'), + (0x1D200, 'V'), + ] + +def _seg_58(): + return [ + (0x1D246, 'X'), + (0x1D2E0, 'V'), + (0x1D2F4, 'X'), + (0x1D300, 'V'), + (0x1D357, 'X'), + (0x1D360, 'V'), + (0x1D379, 'X'), + (0x1D400, 'M', u'a'), + (0x1D401, 'M', u'b'), + (0x1D402, 'M', u'c'), + (0x1D403, 'M', u'd'), + (0x1D404, 'M', u'e'), + (0x1D405, 'M', u'f'), + (0x1D406, 'M', u'g'), + (0x1D407, 'M', u'h'), + (0x1D408, 'M', u'i'), + (0x1D409, 'M', u'j'), + (0x1D40A, 'M', u'k'), + (0x1D40B, 'M', u'l'), + (0x1D40C, 'M', u'm'), + (0x1D40D, 'M', u'n'), + (0x1D40E, 'M', u'o'), + (0x1D40F, 'M', u'p'), + (0x1D410, 'M', u'q'), + (0x1D411, 'M', u'r'), + (0x1D412, 'M', u's'), + (0x1D413, 'M', u't'), + (0x1D414, 'M', u'u'), + (0x1D415, 'M', u'v'), + (0x1D416, 'M', u'w'), + (0x1D417, 'M', u'x'), + (0x1D418, 'M', u'y'), + (0x1D419, 'M', u'z'), + (0x1D41A, 'M', u'a'), + (0x1D41B, 'M', u'b'), + (0x1D41C, 'M', u'c'), + (0x1D41D, 'M', u'd'), + (0x1D41E, 'M', u'e'), + (0x1D41F, 'M', u'f'), + (0x1D420, 'M', u'g'), + (0x1D421, 'M', u'h'), + (0x1D422, 'M', u'i'), + (0x1D423, 'M', u'j'), + (0x1D424, 'M', u'k'), + (0x1D425, 'M', u'l'), + (0x1D426, 'M', u'm'), + (0x1D427, 'M', u'n'), + (0x1D428, 'M', u'o'), + (0x1D429, 'M', u'p'), + (0x1D42A, 'M', u'q'), + (0x1D42B, 'M', u'r'), + (0x1D42C, 'M', u's'), + (0x1D42D, 'M', u't'), + (0x1D42E, 'M', u'u'), + (0x1D42F, 'M', u'v'), + (0x1D430, 'M', u'w'), + (0x1D431, 'M', u'x'), + (0x1D432, 'M', u'y'), + (0x1D433, 'M', u'z'), + (0x1D434, 'M', u'a'), + (0x1D435, 'M', u'b'), + (0x1D436, 'M', u'c'), + (0x1D437, 'M', u'd'), + (0x1D438, 'M', u'e'), + (0x1D439, 'M', u'f'), + (0x1D43A, 'M', u'g'), + (0x1D43B, 'M', u'h'), + (0x1D43C, 'M', u'i'), + (0x1D43D, 'M', u'j'), + (0x1D43E, 'M', u'k'), + (0x1D43F, 'M', u'l'), + (0x1D440, 'M', u'm'), + (0x1D441, 'M', u'n'), + (0x1D442, 'M', u'o'), + (0x1D443, 'M', u'p'), + (0x1D444, 'M', u'q'), + (0x1D445, 'M', u'r'), + (0x1D446, 'M', u's'), + (0x1D447, 'M', u't'), + (0x1D448, 'M', u'u'), + (0x1D449, 'M', u'v'), + (0x1D44A, 'M', u'w'), + (0x1D44B, 'M', u'x'), + (0x1D44C, 'M', u'y'), + (0x1D44D, 'M', u'z'), + (0x1D44E, 'M', u'a'), + (0x1D44F, 'M', u'b'), + (0x1D450, 'M', u'c'), + (0x1D451, 'M', u'd'), + (0x1D452, 'M', u'e'), + (0x1D453, 'M', u'f'), + (0x1D454, 'M', u'g'), + (0x1D455, 'X'), + (0x1D456, 'M', u'i'), + (0x1D457, 'M', u'j'), + (0x1D458, 'M', u'k'), + (0x1D459, 'M', u'l'), + (0x1D45A, 'M', u'm'), + (0x1D45B, 'M', u'n'), + (0x1D45C, 'M', u'o'), + ] + +def _seg_59(): + return [ + (0x1D45D, 'M', u'p'), + (0x1D45E, 'M', u'q'), + (0x1D45F, 'M', u'r'), + (0x1D460, 'M', u's'), + (0x1D461, 'M', u't'), + (0x1D462, 'M', u'u'), + (0x1D463, 'M', u'v'), + (0x1D464, 'M', u'w'), + (0x1D465, 'M', u'x'), + (0x1D466, 'M', u'y'), + (0x1D467, 'M', u'z'), + (0x1D468, 'M', u'a'), + (0x1D469, 'M', u'b'), + (0x1D46A, 'M', u'c'), + (0x1D46B, 'M', u'd'), + (0x1D46C, 'M', u'e'), + (0x1D46D, 'M', u'f'), + (0x1D46E, 'M', u'g'), + (0x1D46F, 'M', u'h'), + (0x1D470, 'M', u'i'), + (0x1D471, 'M', u'j'), + (0x1D472, 'M', u'k'), + (0x1D473, 'M', u'l'), + (0x1D474, 'M', u'm'), + (0x1D475, 'M', u'n'), + (0x1D476, 'M', u'o'), + (0x1D477, 'M', u'p'), + (0x1D478, 'M', u'q'), + (0x1D479, 'M', u'r'), + (0x1D47A, 'M', u's'), + (0x1D47B, 'M', u't'), + (0x1D47C, 'M', u'u'), + (0x1D47D, 'M', u'v'), + (0x1D47E, 'M', u'w'), + (0x1D47F, 'M', u'x'), + (0x1D480, 'M', u'y'), + (0x1D481, 'M', u'z'), + (0x1D482, 'M', u'a'), + (0x1D483, 'M', u'b'), + (0x1D484, 'M', u'c'), + (0x1D485, 'M', u'd'), + (0x1D486, 'M', u'e'), + (0x1D487, 'M', u'f'), + (0x1D488, 'M', u'g'), + (0x1D489, 'M', u'h'), + (0x1D48A, 'M', u'i'), + (0x1D48B, 'M', u'j'), + (0x1D48C, 'M', u'k'), + (0x1D48D, 'M', u'l'), + (0x1D48E, 'M', u'm'), + (0x1D48F, 'M', u'n'), + (0x1D490, 'M', u'o'), + (0x1D491, 'M', u'p'), + (0x1D492, 'M', u'q'), + (0x1D493, 'M', u'r'), + (0x1D494, 'M', u's'), + (0x1D495, 'M', u't'), + (0x1D496, 'M', u'u'), + (0x1D497, 'M', u'v'), + (0x1D498, 'M', u'w'), + (0x1D499, 'M', u'x'), + (0x1D49A, 'M', u'y'), + (0x1D49B, 'M', u'z'), + (0x1D49C, 'M', u'a'), + (0x1D49D, 'X'), + (0x1D49E, 'M', u'c'), + (0x1D49F, 'M', u'd'), + (0x1D4A0, 'X'), + (0x1D4A2, 'M', u'g'), + (0x1D4A3, 'X'), + (0x1D4A5, 'M', u'j'), + (0x1D4A6, 'M', u'k'), + (0x1D4A7, 'X'), + (0x1D4A9, 'M', u'n'), + (0x1D4AA, 'M', u'o'), + (0x1D4AB, 'M', u'p'), + (0x1D4AC, 'M', u'q'), + (0x1D4AD, 'X'), + (0x1D4AE, 'M', u's'), + (0x1D4AF, 'M', u't'), + (0x1D4B0, 'M', u'u'), + (0x1D4B1, 'M', u'v'), + (0x1D4B2, 'M', u'w'), + (0x1D4B3, 'M', u'x'), + (0x1D4B4, 'M', u'y'), + (0x1D4B5, 'M', u'z'), + (0x1D4B6, 'M', u'a'), + (0x1D4B7, 'M', u'b'), + (0x1D4B8, 'M', u'c'), + (0x1D4B9, 'M', u'd'), + (0x1D4BA, 'X'), + (0x1D4BB, 'M', u'f'), + (0x1D4BC, 'X'), + (0x1D4BD, 'M', u'h'), + (0x1D4BE, 'M', u'i'), + (0x1D4BF, 'M', u'j'), + (0x1D4C0, 'M', u'k'), + (0x1D4C1, 'M', u'l'), + (0x1D4C2, 'M', u'm'), + (0x1D4C3, 'M', u'n'), + ] + +def _seg_60(): + return [ + (0x1D4C4, 'X'), + (0x1D4C5, 'M', u'p'), + (0x1D4C6, 'M', u'q'), + (0x1D4C7, 'M', u'r'), + (0x1D4C8, 'M', u's'), + (0x1D4C9, 'M', u't'), + (0x1D4CA, 'M', u'u'), + (0x1D4CB, 'M', u'v'), + (0x1D4CC, 'M', u'w'), + (0x1D4CD, 'M', u'x'), + (0x1D4CE, 'M', u'y'), + (0x1D4CF, 'M', u'z'), + (0x1D4D0, 'M', u'a'), + (0x1D4D1, 'M', u'b'), + (0x1D4D2, 'M', u'c'), + (0x1D4D3, 'M', u'd'), + (0x1D4D4, 'M', u'e'), + (0x1D4D5, 'M', u'f'), + (0x1D4D6, 'M', u'g'), + (0x1D4D7, 'M', u'h'), + (0x1D4D8, 'M', u'i'), + (0x1D4D9, 'M', u'j'), + (0x1D4DA, 'M', u'k'), + (0x1D4DB, 'M', u'l'), + (0x1D4DC, 'M', u'm'), + (0x1D4DD, 'M', u'n'), + (0x1D4DE, 'M', u'o'), + (0x1D4DF, 'M', u'p'), + (0x1D4E0, 'M', u'q'), + (0x1D4E1, 'M', u'r'), + (0x1D4E2, 'M', u's'), + (0x1D4E3, 'M', u't'), + (0x1D4E4, 'M', u'u'), + (0x1D4E5, 'M', u'v'), + (0x1D4E6, 'M', u'w'), + (0x1D4E7, 'M', u'x'), + (0x1D4E8, 'M', u'y'), + (0x1D4E9, 'M', u'z'), + (0x1D4EA, 'M', u'a'), + (0x1D4EB, 'M', u'b'), + (0x1D4EC, 'M', u'c'), + (0x1D4ED, 'M', u'd'), + (0x1D4EE, 'M', u'e'), + (0x1D4EF, 'M', u'f'), + (0x1D4F0, 'M', u'g'), + (0x1D4F1, 'M', u'h'), + (0x1D4F2, 'M', u'i'), + (0x1D4F3, 'M', u'j'), + (0x1D4F4, 'M', u'k'), + (0x1D4F5, 'M', u'l'), + (0x1D4F6, 'M', u'm'), + (0x1D4F7, 'M', u'n'), + (0x1D4F8, 'M', u'o'), + (0x1D4F9, 'M', u'p'), + (0x1D4FA, 'M', u'q'), + (0x1D4FB, 'M', u'r'), + (0x1D4FC, 'M', u's'), + (0x1D4FD, 'M', u't'), + (0x1D4FE, 'M', u'u'), + (0x1D4FF, 'M', u'v'), + (0x1D500, 'M', u'w'), + (0x1D501, 'M', u'x'), + (0x1D502, 'M', u'y'), + (0x1D503, 'M', u'z'), + (0x1D504, 'M', u'a'), + (0x1D505, 'M', u'b'), + (0x1D506, 'X'), + (0x1D507, 'M', u'd'), + (0x1D508, 'M', u'e'), + (0x1D509, 'M', u'f'), + (0x1D50A, 'M', u'g'), + (0x1D50B, 'X'), + (0x1D50D, 'M', u'j'), + (0x1D50E, 'M', u'k'), + (0x1D50F, 'M', u'l'), + (0x1D510, 'M', u'm'), + (0x1D511, 'M', u'n'), + (0x1D512, 'M', u'o'), + (0x1D513, 'M', u'p'), + (0x1D514, 'M', u'q'), + (0x1D515, 'X'), + (0x1D516, 'M', u's'), + (0x1D517, 'M', u't'), + (0x1D518, 'M', u'u'), + (0x1D519, 'M', u'v'), + (0x1D51A, 'M', u'w'), + (0x1D51B, 'M', u'x'), + (0x1D51C, 'M', u'y'), + (0x1D51D, 'X'), + (0x1D51E, 'M', u'a'), + (0x1D51F, 'M', u'b'), + (0x1D520, 'M', u'c'), + (0x1D521, 'M', u'd'), + (0x1D522, 'M', u'e'), + (0x1D523, 'M', u'f'), + (0x1D524, 'M', u'g'), + (0x1D525, 'M', u'h'), + (0x1D526, 'M', u'i'), + (0x1D527, 'M', u'j'), + (0x1D528, 'M', u'k'), + ] + +def _seg_61(): + return [ + (0x1D529, 'M', u'l'), + (0x1D52A, 'M', u'm'), + (0x1D52B, 'M', u'n'), + (0x1D52C, 'M', u'o'), + (0x1D52D, 'M', u'p'), + (0x1D52E, 'M', u'q'), + (0x1D52F, 'M', u'r'), + (0x1D530, 'M', u's'), + (0x1D531, 'M', u't'), + (0x1D532, 'M', u'u'), + (0x1D533, 'M', u'v'), + (0x1D534, 'M', u'w'), + (0x1D535, 'M', u'x'), + (0x1D536, 'M', u'y'), + (0x1D537, 'M', u'z'), + (0x1D538, 'M', u'a'), + (0x1D539, 'M', u'b'), + (0x1D53A, 'X'), + (0x1D53B, 'M', u'd'), + (0x1D53C, 'M', u'e'), + (0x1D53D, 'M', u'f'), + (0x1D53E, 'M', u'g'), + (0x1D53F, 'X'), + (0x1D540, 'M', u'i'), + (0x1D541, 'M', u'j'), + (0x1D542, 'M', u'k'), + (0x1D543, 'M', u'l'), + (0x1D544, 'M', u'm'), + (0x1D545, 'X'), + (0x1D546, 'M', u'o'), + (0x1D547, 'X'), + (0x1D54A, 'M', u's'), + (0x1D54B, 'M', u't'), + (0x1D54C, 'M', u'u'), + (0x1D54D, 'M', u'v'), + (0x1D54E, 'M', u'w'), + (0x1D54F, 'M', u'x'), + (0x1D550, 'M', u'y'), + (0x1D551, 'X'), + (0x1D552, 'M', u'a'), + (0x1D553, 'M', u'b'), + (0x1D554, 'M', u'c'), + (0x1D555, 'M', u'd'), + (0x1D556, 'M', u'e'), + (0x1D557, 'M', u'f'), + (0x1D558, 'M', u'g'), + (0x1D559, 'M', u'h'), + (0x1D55A, 'M', u'i'), + (0x1D55B, 'M', u'j'), + (0x1D55C, 'M', u'k'), + (0x1D55D, 'M', u'l'), + (0x1D55E, 'M', u'm'), + (0x1D55F, 'M', u'n'), + (0x1D560, 'M', u'o'), + (0x1D561, 'M', u'p'), + (0x1D562, 'M', u'q'), + (0x1D563, 'M', u'r'), + (0x1D564, 'M', u's'), + (0x1D565, 'M', u't'), + (0x1D566, 'M', u'u'), + (0x1D567, 'M', u'v'), + (0x1D568, 'M', u'w'), + (0x1D569, 'M', u'x'), + (0x1D56A, 'M', u'y'), + (0x1D56B, 'M', u'z'), + (0x1D56C, 'M', u'a'), + (0x1D56D, 'M', u'b'), + (0x1D56E, 'M', u'c'), + (0x1D56F, 'M', u'd'), + (0x1D570, 'M', u'e'), + (0x1D571, 'M', u'f'), + (0x1D572, 'M', u'g'), + (0x1D573, 'M', u'h'), + (0x1D574, 'M', u'i'), + (0x1D575, 'M', u'j'), + (0x1D576, 'M', u'k'), + (0x1D577, 'M', u'l'), + (0x1D578, 'M', u'm'), + (0x1D579, 'M', u'n'), + (0x1D57A, 'M', u'o'), + (0x1D57B, 'M', u'p'), + (0x1D57C, 'M', u'q'), + (0x1D57D, 'M', u'r'), + (0x1D57E, 'M', u's'), + (0x1D57F, 'M', u't'), + (0x1D580, 'M', u'u'), + (0x1D581, 'M', u'v'), + (0x1D582, 'M', u'w'), + (0x1D583, 'M', u'x'), + (0x1D584, 'M', u'y'), + (0x1D585, 'M', u'z'), + (0x1D586, 'M', u'a'), + (0x1D587, 'M', u'b'), + (0x1D588, 'M', u'c'), + (0x1D589, 'M', u'd'), + (0x1D58A, 'M', u'e'), + (0x1D58B, 'M', u'f'), + (0x1D58C, 'M', u'g'), + (0x1D58D, 'M', u'h'), + (0x1D58E, 'M', u'i'), + ] + +def _seg_62(): + return [ + (0x1D58F, 'M', u'j'), + (0x1D590, 'M', u'k'), + (0x1D591, 'M', u'l'), + (0x1D592, 'M', u'm'), + (0x1D593, 'M', u'n'), + (0x1D594, 'M', u'o'), + (0x1D595, 'M', u'p'), + (0x1D596, 'M', u'q'), + (0x1D597, 'M', u'r'), + (0x1D598, 'M', u's'), + (0x1D599, 'M', u't'), + (0x1D59A, 'M', u'u'), + (0x1D59B, 'M', u'v'), + (0x1D59C, 'M', u'w'), + (0x1D59D, 'M', u'x'), + (0x1D59E, 'M', u'y'), + (0x1D59F, 'M', u'z'), + (0x1D5A0, 'M', u'a'), + (0x1D5A1, 'M', u'b'), + (0x1D5A2, 'M', u'c'), + (0x1D5A3, 'M', u'd'), + (0x1D5A4, 'M', u'e'), + (0x1D5A5, 'M', u'f'), + (0x1D5A6, 'M', u'g'), + (0x1D5A7, 'M', u'h'), + (0x1D5A8, 'M', u'i'), + (0x1D5A9, 'M', u'j'), + (0x1D5AA, 'M', u'k'), + (0x1D5AB, 'M', u'l'), + (0x1D5AC, 'M', u'm'), + (0x1D5AD, 'M', u'n'), + (0x1D5AE, 'M', u'o'), + (0x1D5AF, 'M', u'p'), + (0x1D5B0, 'M', u'q'), + (0x1D5B1, 'M', u'r'), + (0x1D5B2, 'M', u's'), + (0x1D5B3, 'M', u't'), + (0x1D5B4, 'M', u'u'), + (0x1D5B5, 'M', u'v'), + (0x1D5B6, 'M', u'w'), + (0x1D5B7, 'M', u'x'), + (0x1D5B8, 'M', u'y'), + (0x1D5B9, 'M', u'z'), + (0x1D5BA, 'M', u'a'), + (0x1D5BB, 'M', u'b'), + (0x1D5BC, 'M', u'c'), + (0x1D5BD, 'M', u'd'), + (0x1D5BE, 'M', u'e'), + (0x1D5BF, 'M', u'f'), + (0x1D5C0, 'M', u'g'), + (0x1D5C1, 'M', u'h'), + (0x1D5C2, 'M', u'i'), + (0x1D5C3, 'M', u'j'), + (0x1D5C4, 'M', u'k'), + (0x1D5C5, 'M', u'l'), + (0x1D5C6, 'M', u'm'), + (0x1D5C7, 'M', u'n'), + (0x1D5C8, 'M', u'o'), + (0x1D5C9, 'M', u'p'), + (0x1D5CA, 'M', u'q'), + (0x1D5CB, 'M', u'r'), + (0x1D5CC, 'M', u's'), + (0x1D5CD, 'M', u't'), + (0x1D5CE, 'M', u'u'), + (0x1D5CF, 'M', u'v'), + (0x1D5D0, 'M', u'w'), + (0x1D5D1, 'M', u'x'), + (0x1D5D2, 'M', u'y'), + (0x1D5D3, 'M', u'z'), + (0x1D5D4, 'M', u'a'), + (0x1D5D5, 'M', u'b'), + (0x1D5D6, 'M', u'c'), + (0x1D5D7, 'M', u'd'), + (0x1D5D8, 'M', u'e'), + (0x1D5D9, 'M', u'f'), + (0x1D5DA, 'M', u'g'), + (0x1D5DB, 'M', u'h'), + (0x1D5DC, 'M', u'i'), + (0x1D5DD, 'M', u'j'), + (0x1D5DE, 'M', u'k'), + (0x1D5DF, 'M', u'l'), + (0x1D5E0, 'M', u'm'), + (0x1D5E1, 'M', u'n'), + (0x1D5E2, 'M', u'o'), + (0x1D5E3, 'M', u'p'), + (0x1D5E4, 'M', u'q'), + (0x1D5E5, 'M', u'r'), + (0x1D5E6, 'M', u's'), + (0x1D5E7, 'M', u't'), + (0x1D5E8, 'M', u'u'), + (0x1D5E9, 'M', u'v'), + (0x1D5EA, 'M', u'w'), + (0x1D5EB, 'M', u'x'), + (0x1D5EC, 'M', u'y'), + (0x1D5ED, 'M', u'z'), + (0x1D5EE, 'M', u'a'), + (0x1D5EF, 'M', u'b'), + (0x1D5F0, 'M', u'c'), + (0x1D5F1, 'M', u'd'), + (0x1D5F2, 'M', u'e'), + ] + +def _seg_63(): + return [ + (0x1D5F3, 'M', u'f'), + (0x1D5F4, 'M', u'g'), + (0x1D5F5, 'M', u'h'), + (0x1D5F6, 'M', u'i'), + (0x1D5F7, 'M', u'j'), + (0x1D5F8, 'M', u'k'), + (0x1D5F9, 'M', u'l'), + (0x1D5FA, 'M', u'm'), + (0x1D5FB, 'M', u'n'), + (0x1D5FC, 'M', u'o'), + (0x1D5FD, 'M', u'p'), + (0x1D5FE, 'M', u'q'), + (0x1D5FF, 'M', u'r'), + (0x1D600, 'M', u's'), + (0x1D601, 'M', u't'), + (0x1D602, 'M', u'u'), + (0x1D603, 'M', u'v'), + (0x1D604, 'M', u'w'), + (0x1D605, 'M', u'x'), + (0x1D606, 'M', u'y'), + (0x1D607, 'M', u'z'), + (0x1D608, 'M', u'a'), + (0x1D609, 'M', u'b'), + (0x1D60A, 'M', u'c'), + (0x1D60B, 'M', u'd'), + (0x1D60C, 'M', u'e'), + (0x1D60D, 'M', u'f'), + (0x1D60E, 'M', u'g'), + (0x1D60F, 'M', u'h'), + (0x1D610, 'M', u'i'), + (0x1D611, 'M', u'j'), + (0x1D612, 'M', u'k'), + (0x1D613, 'M', u'l'), + (0x1D614, 'M', u'm'), + (0x1D615, 'M', u'n'), + (0x1D616, 'M', u'o'), + (0x1D617, 'M', u'p'), + (0x1D618, 'M', u'q'), + (0x1D619, 'M', u'r'), + (0x1D61A, 'M', u's'), + (0x1D61B, 'M', u't'), + (0x1D61C, 'M', u'u'), + (0x1D61D, 'M', u'v'), + (0x1D61E, 'M', u'w'), + (0x1D61F, 'M', u'x'), + (0x1D620, 'M', u'y'), + (0x1D621, 'M', u'z'), + (0x1D622, 'M', u'a'), + (0x1D623, 'M', u'b'), + (0x1D624, 'M', u'c'), + (0x1D625, 'M', u'd'), + (0x1D626, 'M', u'e'), + (0x1D627, 'M', u'f'), + (0x1D628, 'M', u'g'), + (0x1D629, 'M', u'h'), + (0x1D62A, 'M', u'i'), + (0x1D62B, 'M', u'j'), + (0x1D62C, 'M', u'k'), + (0x1D62D, 'M', u'l'), + (0x1D62E, 'M', u'm'), + (0x1D62F, 'M', u'n'), + (0x1D630, 'M', u'o'), + (0x1D631, 'M', u'p'), + (0x1D632, 'M', u'q'), + (0x1D633, 'M', u'r'), + (0x1D634, 'M', u's'), + (0x1D635, 'M', u't'), + (0x1D636, 'M', u'u'), + (0x1D637, 'M', u'v'), + (0x1D638, 'M', u'w'), + (0x1D639, 'M', u'x'), + (0x1D63A, 'M', u'y'), + (0x1D63B, 'M', u'z'), + (0x1D63C, 'M', u'a'), + (0x1D63D, 'M', u'b'), + (0x1D63E, 'M', u'c'), + (0x1D63F, 'M', u'd'), + (0x1D640, 'M', u'e'), + (0x1D641, 'M', u'f'), + (0x1D642, 'M', u'g'), + (0x1D643, 'M', u'h'), + (0x1D644, 'M', u'i'), + (0x1D645, 'M', u'j'), + (0x1D646, 'M', u'k'), + (0x1D647, 'M', u'l'), + (0x1D648, 'M', u'm'), + (0x1D649, 'M', u'n'), + (0x1D64A, 'M', u'o'), + (0x1D64B, 'M', u'p'), + (0x1D64C, 'M', u'q'), + (0x1D64D, 'M', u'r'), + (0x1D64E, 'M', u's'), + (0x1D64F, 'M', u't'), + (0x1D650, 'M', u'u'), + (0x1D651, 'M', u'v'), + (0x1D652, 'M', u'w'), + (0x1D653, 'M', u'x'), + (0x1D654, 'M', u'y'), + (0x1D655, 'M', u'z'), + (0x1D656, 'M', u'a'), + ] + +def _seg_64(): + return [ + (0x1D657, 'M', u'b'), + (0x1D658, 'M', u'c'), + (0x1D659, 'M', u'd'), + (0x1D65A, 'M', u'e'), + (0x1D65B, 'M', u'f'), + (0x1D65C, 'M', u'g'), + (0x1D65D, 'M', u'h'), + (0x1D65E, 'M', u'i'), + (0x1D65F, 'M', u'j'), + (0x1D660, 'M', u'k'), + (0x1D661, 'M', u'l'), + (0x1D662, 'M', u'm'), + (0x1D663, 'M', u'n'), + (0x1D664, 'M', u'o'), + (0x1D665, 'M', u'p'), + (0x1D666, 'M', u'q'), + (0x1D667, 'M', u'r'), + (0x1D668, 'M', u's'), + (0x1D669, 'M', u't'), + (0x1D66A, 'M', u'u'), + (0x1D66B, 'M', u'v'), + (0x1D66C, 'M', u'w'), + (0x1D66D, 'M', u'x'), + (0x1D66E, 'M', u'y'), + (0x1D66F, 'M', u'z'), + (0x1D670, 'M', u'a'), + (0x1D671, 'M', u'b'), + (0x1D672, 'M', u'c'), + (0x1D673, 'M', u'd'), + (0x1D674, 'M', u'e'), + (0x1D675, 'M', u'f'), + (0x1D676, 'M', u'g'), + (0x1D677, 'M', u'h'), + (0x1D678, 'M', u'i'), + (0x1D679, 'M', u'j'), + (0x1D67A, 'M', u'k'), + (0x1D67B, 'M', u'l'), + (0x1D67C, 'M', u'm'), + (0x1D67D, 'M', u'n'), + (0x1D67E, 'M', u'o'), + (0x1D67F, 'M', u'p'), + (0x1D680, 'M', u'q'), + (0x1D681, 'M', u'r'), + (0x1D682, 'M', u's'), + (0x1D683, 'M', u't'), + (0x1D684, 'M', u'u'), + (0x1D685, 'M', u'v'), + (0x1D686, 'M', u'w'), + (0x1D687, 'M', u'x'), + (0x1D688, 'M', u'y'), + (0x1D689, 'M', u'z'), + (0x1D68A, 'M', u'a'), + (0x1D68B, 'M', u'b'), + (0x1D68C, 'M', u'c'), + (0x1D68D, 'M', u'd'), + (0x1D68E, 'M', u'e'), + (0x1D68F, 'M', u'f'), + (0x1D690, 'M', u'g'), + (0x1D691, 'M', u'h'), + (0x1D692, 'M', u'i'), + (0x1D693, 'M', u'j'), + (0x1D694, 'M', u'k'), + (0x1D695, 'M', u'l'), + (0x1D696, 'M', u'm'), + (0x1D697, 'M', u'n'), + (0x1D698, 'M', u'o'), + (0x1D699, 'M', u'p'), + (0x1D69A, 'M', u'q'), + (0x1D69B, 'M', u'r'), + (0x1D69C, 'M', u's'), + (0x1D69D, 'M', u't'), + (0x1D69E, 'M', u'u'), + (0x1D69F, 'M', u'v'), + (0x1D6A0, 'M', u'w'), + (0x1D6A1, 'M', u'x'), + (0x1D6A2, 'M', u'y'), + (0x1D6A3, 'M', u'z'), + (0x1D6A4, 'M', u'ı'), + (0x1D6A5, 'M', u'ȷ'), + (0x1D6A6, 'X'), + (0x1D6A8, 'M', u'α'), + (0x1D6A9, 'M', u'β'), + (0x1D6AA, 'M', u'γ'), + (0x1D6AB, 'M', u'δ'), + (0x1D6AC, 'M', u'ε'), + (0x1D6AD, 'M', u'ζ'), + (0x1D6AE, 'M', u'η'), + (0x1D6AF, 'M', u'θ'), + (0x1D6B0, 'M', u'ι'), + (0x1D6B1, 'M', u'κ'), + (0x1D6B2, 'M', u'λ'), + (0x1D6B3, 'M', u'μ'), + (0x1D6B4, 'M', u'ν'), + (0x1D6B5, 'M', u'ξ'), + (0x1D6B6, 'M', u'ο'), + (0x1D6B7, 'M', u'π'), + (0x1D6B8, 'M', u'ρ'), + (0x1D6B9, 'M', u'θ'), + (0x1D6BA, 'M', u'σ'), + (0x1D6BB, 'M', u'τ'), + ] + +def _seg_65(): + return [ + (0x1D6BC, 'M', u'υ'), + (0x1D6BD, 'M', u'φ'), + (0x1D6BE, 'M', u'χ'), + (0x1D6BF, 'M', u'ψ'), + (0x1D6C0, 'M', u'ω'), + (0x1D6C1, 'M', u'∇'), + (0x1D6C2, 'M', u'α'), + (0x1D6C3, 'M', u'β'), + (0x1D6C4, 'M', u'γ'), + (0x1D6C5, 'M', u'δ'), + (0x1D6C6, 'M', u'ε'), + (0x1D6C7, 'M', u'ζ'), + (0x1D6C8, 'M', u'η'), + (0x1D6C9, 'M', u'θ'), + (0x1D6CA, 'M', u'ι'), + (0x1D6CB, 'M', u'κ'), + (0x1D6CC, 'M', u'λ'), + (0x1D6CD, 'M', u'μ'), + (0x1D6CE, 'M', u'ν'), + (0x1D6CF, 'M', u'ξ'), + (0x1D6D0, 'M', u'ο'), + (0x1D6D1, 'M', u'π'), + (0x1D6D2, 'M', u'ρ'), + (0x1D6D3, 'M', u'σ'), + (0x1D6D5, 'M', u'τ'), + (0x1D6D6, 'M', u'υ'), + (0x1D6D7, 'M', u'φ'), + (0x1D6D8, 'M', u'χ'), + (0x1D6D9, 'M', u'ψ'), + (0x1D6DA, 'M', u'ω'), + (0x1D6DB, 'M', u'∂'), + (0x1D6DC, 'M', u'ε'), + (0x1D6DD, 'M', u'θ'), + (0x1D6DE, 'M', u'κ'), + (0x1D6DF, 'M', u'φ'), + (0x1D6E0, 'M', u'ρ'), + (0x1D6E1, 'M', u'π'), + (0x1D6E2, 'M', u'α'), + (0x1D6E3, 'M', u'β'), + (0x1D6E4, 'M', u'γ'), + (0x1D6E5, 'M', u'δ'), + (0x1D6E6, 'M', u'ε'), + (0x1D6E7, 'M', u'ζ'), + (0x1D6E8, 'M', u'η'), + (0x1D6E9, 'M', u'θ'), + (0x1D6EA, 'M', u'ι'), + (0x1D6EB, 'M', u'κ'), + (0x1D6EC, 'M', u'λ'), + (0x1D6ED, 'M', u'μ'), + (0x1D6EE, 'M', u'ν'), + (0x1D6EF, 'M', u'ξ'), + (0x1D6F0, 'M', u'ο'), + (0x1D6F1, 'M', u'π'), + (0x1D6F2, 'M', u'ρ'), + (0x1D6F3, 'M', u'θ'), + (0x1D6F4, 'M', u'σ'), + (0x1D6F5, 'M', u'τ'), + (0x1D6F6, 'M', u'υ'), + (0x1D6F7, 'M', u'φ'), + (0x1D6F8, 'M', u'χ'), + (0x1D6F9, 'M', u'ψ'), + (0x1D6FA, 'M', u'ω'), + (0x1D6FB, 'M', u'∇'), + (0x1D6FC, 'M', u'α'), + (0x1D6FD, 'M', u'β'), + (0x1D6FE, 'M', u'γ'), + (0x1D6FF, 'M', u'δ'), + (0x1D700, 'M', u'ε'), + (0x1D701, 'M', u'ζ'), + (0x1D702, 'M', u'η'), + (0x1D703, 'M', u'θ'), + (0x1D704, 'M', u'ι'), + (0x1D705, 'M', u'κ'), + (0x1D706, 'M', u'λ'), + (0x1D707, 'M', u'μ'), + (0x1D708, 'M', u'ν'), + (0x1D709, 'M', u'ξ'), + (0x1D70A, 'M', u'ο'), + (0x1D70B, 'M', u'π'), + (0x1D70C, 'M', u'ρ'), + (0x1D70D, 'M', u'σ'), + (0x1D70F, 'M', u'τ'), + (0x1D710, 'M', u'υ'), + (0x1D711, 'M', u'φ'), + (0x1D712, 'M', u'χ'), + (0x1D713, 'M', u'ψ'), + (0x1D714, 'M', u'ω'), + (0x1D715, 'M', u'∂'), + (0x1D716, 'M', u'ε'), + (0x1D717, 'M', u'θ'), + (0x1D718, 'M', u'κ'), + (0x1D719, 'M', u'φ'), + (0x1D71A, 'M', u'ρ'), + (0x1D71B, 'M', u'π'), + (0x1D71C, 'M', u'α'), + (0x1D71D, 'M', u'β'), + (0x1D71E, 'M', u'γ'), + (0x1D71F, 'M', u'δ'), + (0x1D720, 'M', u'ε'), + (0x1D721, 'M', u'ζ'), + ] + +def _seg_66(): + return [ + (0x1D722, 'M', u'η'), + (0x1D723, 'M', u'θ'), + (0x1D724, 'M', u'ι'), + (0x1D725, 'M', u'κ'), + (0x1D726, 'M', u'λ'), + (0x1D727, 'M', u'μ'), + (0x1D728, 'M', u'ν'), + (0x1D729, 'M', u'ξ'), + (0x1D72A, 'M', u'ο'), + (0x1D72B, 'M', u'π'), + (0x1D72C, 'M', u'ρ'), + (0x1D72D, 'M', u'θ'), + (0x1D72E, 'M', u'σ'), + (0x1D72F, 'M', u'τ'), + (0x1D730, 'M', u'υ'), + (0x1D731, 'M', u'φ'), + (0x1D732, 'M', u'χ'), + (0x1D733, 'M', u'ψ'), + (0x1D734, 'M', u'ω'), + (0x1D735, 'M', u'∇'), + (0x1D736, 'M', u'α'), + (0x1D737, 'M', u'β'), + (0x1D738, 'M', u'γ'), + (0x1D739, 'M', u'δ'), + (0x1D73A, 'M', u'ε'), + (0x1D73B, 'M', u'ζ'), + (0x1D73C, 'M', u'η'), + (0x1D73D, 'M', u'θ'), + (0x1D73E, 'M', u'ι'), + (0x1D73F, 'M', u'κ'), + (0x1D740, 'M', u'λ'), + (0x1D741, 'M', u'μ'), + (0x1D742, 'M', u'ν'), + (0x1D743, 'M', u'ξ'), + (0x1D744, 'M', u'ο'), + (0x1D745, 'M', u'π'), + (0x1D746, 'M', u'ρ'), + (0x1D747, 'M', u'σ'), + (0x1D749, 'M', u'τ'), + (0x1D74A, 'M', u'υ'), + (0x1D74B, 'M', u'φ'), + (0x1D74C, 'M', u'χ'), + (0x1D74D, 'M', u'ψ'), + (0x1D74E, 'M', u'ω'), + (0x1D74F, 'M', u'∂'), + (0x1D750, 'M', u'ε'), + (0x1D751, 'M', u'θ'), + (0x1D752, 'M', u'κ'), + (0x1D753, 'M', u'φ'), + (0x1D754, 'M', u'ρ'), + (0x1D755, 'M', u'π'), + (0x1D756, 'M', u'α'), + (0x1D757, 'M', u'β'), + (0x1D758, 'M', u'γ'), + (0x1D759, 'M', u'δ'), + (0x1D75A, 'M', u'ε'), + (0x1D75B, 'M', u'ζ'), + (0x1D75C, 'M', u'η'), + (0x1D75D, 'M', u'θ'), + (0x1D75E, 'M', u'ι'), + (0x1D75F, 'M', u'κ'), + (0x1D760, 'M', u'λ'), + (0x1D761, 'M', u'μ'), + (0x1D762, 'M', u'ν'), + (0x1D763, 'M', u'ξ'), + (0x1D764, 'M', u'ο'), + (0x1D765, 'M', u'π'), + (0x1D766, 'M', u'ρ'), + (0x1D767, 'M', u'θ'), + (0x1D768, 'M', u'σ'), + (0x1D769, 'M', u'τ'), + (0x1D76A, 'M', u'υ'), + (0x1D76B, 'M', u'φ'), + (0x1D76C, 'M', u'χ'), + (0x1D76D, 'M', u'ψ'), + (0x1D76E, 'M', u'ω'), + (0x1D76F, 'M', u'∇'), + (0x1D770, 'M', u'α'), + (0x1D771, 'M', u'β'), + (0x1D772, 'M', u'γ'), + (0x1D773, 'M', u'δ'), + (0x1D774, 'M', u'ε'), + (0x1D775, 'M', u'ζ'), + (0x1D776, 'M', u'η'), + (0x1D777, 'M', u'θ'), + (0x1D778, 'M', u'ι'), + (0x1D779, 'M', u'κ'), + (0x1D77A, 'M', u'λ'), + (0x1D77B, 'M', u'μ'), + (0x1D77C, 'M', u'ν'), + (0x1D77D, 'M', u'ξ'), + (0x1D77E, 'M', u'ο'), + (0x1D77F, 'M', u'π'), + (0x1D780, 'M', u'ρ'), + (0x1D781, 'M', u'σ'), + (0x1D783, 'M', u'τ'), + (0x1D784, 'M', u'υ'), + (0x1D785, 'M', u'φ'), + (0x1D786, 'M', u'χ'), + (0x1D787, 'M', u'ψ'), + ] + +def _seg_67(): + return [ + (0x1D788, 'M', u'ω'), + (0x1D789, 'M', u'∂'), + (0x1D78A, 'M', u'ε'), + (0x1D78B, 'M', u'θ'), + (0x1D78C, 'M', u'κ'), + (0x1D78D, 'M', u'φ'), + (0x1D78E, 'M', u'ρ'), + (0x1D78F, 'M', u'π'), + (0x1D790, 'M', u'α'), + (0x1D791, 'M', u'β'), + (0x1D792, 'M', u'γ'), + (0x1D793, 'M', u'δ'), + (0x1D794, 'M', u'ε'), + (0x1D795, 'M', u'ζ'), + (0x1D796, 'M', u'η'), + (0x1D797, 'M', u'θ'), + (0x1D798, 'M', u'ι'), + (0x1D799, 'M', u'κ'), + (0x1D79A, 'M', u'λ'), + (0x1D79B, 'M', u'μ'), + (0x1D79C, 'M', u'ν'), + (0x1D79D, 'M', u'ξ'), + (0x1D79E, 'M', u'ο'), + (0x1D79F, 'M', u'π'), + (0x1D7A0, 'M', u'ρ'), + (0x1D7A1, 'M', u'θ'), + (0x1D7A2, 'M', u'σ'), + (0x1D7A3, 'M', u'τ'), + (0x1D7A4, 'M', u'υ'), + (0x1D7A5, 'M', u'φ'), + (0x1D7A6, 'M', u'χ'), + (0x1D7A7, 'M', u'ψ'), + (0x1D7A8, 'M', u'ω'), + (0x1D7A9, 'M', u'∇'), + (0x1D7AA, 'M', u'α'), + (0x1D7AB, 'M', u'β'), + (0x1D7AC, 'M', u'γ'), + (0x1D7AD, 'M', u'δ'), + (0x1D7AE, 'M', u'ε'), + (0x1D7AF, 'M', u'ζ'), + (0x1D7B0, 'M', u'η'), + (0x1D7B1, 'M', u'θ'), + (0x1D7B2, 'M', u'ι'), + (0x1D7B3, 'M', u'κ'), + (0x1D7B4, 'M', u'λ'), + (0x1D7B5, 'M', u'μ'), + (0x1D7B6, 'M', u'ν'), + (0x1D7B7, 'M', u'ξ'), + (0x1D7B8, 'M', u'ο'), + (0x1D7B9, 'M', u'π'), + (0x1D7BA, 'M', u'ρ'), + (0x1D7BB, 'M', u'σ'), + (0x1D7BD, 'M', u'τ'), + (0x1D7BE, 'M', u'υ'), + (0x1D7BF, 'M', u'φ'), + (0x1D7C0, 'M', u'χ'), + (0x1D7C1, 'M', u'ψ'), + (0x1D7C2, 'M', u'ω'), + (0x1D7C3, 'M', u'∂'), + (0x1D7C4, 'M', u'ε'), + (0x1D7C5, 'M', u'θ'), + (0x1D7C6, 'M', u'κ'), + (0x1D7C7, 'M', u'φ'), + (0x1D7C8, 'M', u'ρ'), + (0x1D7C9, 'M', u'π'), + (0x1D7CA, 'M', u'ϝ'), + (0x1D7CC, 'X'), + (0x1D7CE, 'M', u'0'), + (0x1D7CF, 'M', u'1'), + (0x1D7D0, 'M', u'2'), + (0x1D7D1, 'M', u'3'), + (0x1D7D2, 'M', u'4'), + (0x1D7D3, 'M', u'5'), + (0x1D7D4, 'M', u'6'), + (0x1D7D5, 'M', u'7'), + (0x1D7D6, 'M', u'8'), + (0x1D7D7, 'M', u'9'), + (0x1D7D8, 'M', u'0'), + (0x1D7D9, 'M', u'1'), + (0x1D7DA, 'M', u'2'), + (0x1D7DB, 'M', u'3'), + (0x1D7DC, 'M', u'4'), + (0x1D7DD, 'M', u'5'), + (0x1D7DE, 'M', u'6'), + (0x1D7DF, 'M', u'7'), + (0x1D7E0, 'M', u'8'), + (0x1D7E1, 'M', u'9'), + (0x1D7E2, 'M', u'0'), + (0x1D7E3, 'M', u'1'), + (0x1D7E4, 'M', u'2'), + (0x1D7E5, 'M', u'3'), + (0x1D7E6, 'M', u'4'), + (0x1D7E7, 'M', u'5'), + (0x1D7E8, 'M', u'6'), + (0x1D7E9, 'M', u'7'), + (0x1D7EA, 'M', u'8'), + (0x1D7EB, 'M', u'9'), + (0x1D7EC, 'M', u'0'), + (0x1D7ED, 'M', u'1'), + (0x1D7EE, 'M', u'2'), + ] + +def _seg_68(): + return [ + (0x1D7EF, 'M', u'3'), + (0x1D7F0, 'M', u'4'), + (0x1D7F1, 'M', u'5'), + (0x1D7F2, 'M', u'6'), + (0x1D7F3, 'M', u'7'), + (0x1D7F4, 'M', u'8'), + (0x1D7F5, 'M', u'9'), + (0x1D7F6, 'M', u'0'), + (0x1D7F7, 'M', u'1'), + (0x1D7F8, 'M', u'2'), + (0x1D7F9, 'M', u'3'), + (0x1D7FA, 'M', u'4'), + (0x1D7FB, 'M', u'5'), + (0x1D7FC, 'M', u'6'), + (0x1D7FD, 'M', u'7'), + (0x1D7FE, 'M', u'8'), + (0x1D7FF, 'M', u'9'), + (0x1D800, 'V'), + (0x1DA8C, 'X'), + (0x1DA9B, 'V'), + (0x1DAA0, 'X'), + (0x1DAA1, 'V'), + (0x1DAB0, 'X'), + (0x1E000, 'V'), + (0x1E007, 'X'), + (0x1E008, 'V'), + (0x1E019, 'X'), + (0x1E01B, 'V'), + (0x1E022, 'X'), + (0x1E023, 'V'), + (0x1E025, 'X'), + (0x1E026, 'V'), + (0x1E02B, 'X'), + (0x1E800, 'V'), + (0x1E8C5, 'X'), + (0x1E8C7, 'V'), + (0x1E8D7, 'X'), + (0x1E900, 'M', u'𞤢'), + (0x1E901, 'M', u'𞤣'), + (0x1E902, 'M', u'𞤤'), + (0x1E903, 'M', u'𞤥'), + (0x1E904, 'M', u'𞤦'), + (0x1E905, 'M', u'𞤧'), + (0x1E906, 'M', u'𞤨'), + (0x1E907, 'M', u'𞤩'), + (0x1E908, 'M', u'𞤪'), + (0x1E909, 'M', u'𞤫'), + (0x1E90A, 'M', u'𞤬'), + (0x1E90B, 'M', u'𞤭'), + (0x1E90C, 'M', u'𞤮'), + (0x1E90D, 'M', u'𞤯'), + (0x1E90E, 'M', u'𞤰'), + (0x1E90F, 'M', u'𞤱'), + (0x1E910, 'M', u'𞤲'), + (0x1E911, 'M', u'𞤳'), + (0x1E912, 'M', u'𞤴'), + (0x1E913, 'M', u'𞤵'), + (0x1E914, 'M', u'𞤶'), + (0x1E915, 'M', u'𞤷'), + (0x1E916, 'M', u'𞤸'), + (0x1E917, 'M', u'𞤹'), + (0x1E918, 'M', u'𞤺'), + (0x1E919, 'M', u'𞤻'), + (0x1E91A, 'M', u'𞤼'), + (0x1E91B, 'M', u'𞤽'), + (0x1E91C, 'M', u'𞤾'), + (0x1E91D, 'M', u'𞤿'), + (0x1E91E, 'M', u'𞥀'), + (0x1E91F, 'M', u'𞥁'), + (0x1E920, 'M', u'𞥂'), + (0x1E921, 'M', u'𞥃'), + (0x1E922, 'V'), + (0x1E94B, 'X'), + (0x1E950, 'V'), + (0x1E95A, 'X'), + (0x1E95E, 'V'), + (0x1E960, 'X'), + (0x1EC71, 'V'), + (0x1ECB5, 'X'), + (0x1EE00, 'M', u'ا'), + (0x1EE01, 'M', u'ب'), + (0x1EE02, 'M', u'ج'), + (0x1EE03, 'M', u'د'), + (0x1EE04, 'X'), + (0x1EE05, 'M', u'و'), + (0x1EE06, 'M', u'ز'), + (0x1EE07, 'M', u'ح'), + (0x1EE08, 'M', u'ط'), + (0x1EE09, 'M', u'ي'), + (0x1EE0A, 'M', u'ك'), + (0x1EE0B, 'M', u'ل'), + (0x1EE0C, 'M', u'م'), + (0x1EE0D, 'M', u'ن'), + (0x1EE0E, 'M', u'س'), + (0x1EE0F, 'M', u'ع'), + (0x1EE10, 'M', u'ف'), + (0x1EE11, 'M', u'ص'), + (0x1EE12, 'M', u'ق'), + (0x1EE13, 'M', u'ر'), + (0x1EE14, 'M', u'ش'), + ] + +def _seg_69(): + return [ + (0x1EE15, 'M', u'ت'), + (0x1EE16, 'M', u'ث'), + (0x1EE17, 'M', u'خ'), + (0x1EE18, 'M', u'ذ'), + (0x1EE19, 'M', u'ض'), + (0x1EE1A, 'M', u'ظ'), + (0x1EE1B, 'M', u'غ'), + (0x1EE1C, 'M', u'ٮ'), + (0x1EE1D, 'M', u'ں'), + (0x1EE1E, 'M', u'ڡ'), + (0x1EE1F, 'M', u'ٯ'), + (0x1EE20, 'X'), + (0x1EE21, 'M', u'ب'), + (0x1EE22, 'M', u'ج'), + (0x1EE23, 'X'), + (0x1EE24, 'M', u'ه'), + (0x1EE25, 'X'), + (0x1EE27, 'M', u'ح'), + (0x1EE28, 'X'), + (0x1EE29, 'M', u'ي'), + (0x1EE2A, 'M', u'ك'), + (0x1EE2B, 'M', u'ل'), + (0x1EE2C, 'M', u'م'), + (0x1EE2D, 'M', u'ن'), + (0x1EE2E, 'M', u'س'), + (0x1EE2F, 'M', u'ع'), + (0x1EE30, 'M', u'ف'), + (0x1EE31, 'M', u'ص'), + (0x1EE32, 'M', u'ق'), + (0x1EE33, 'X'), + (0x1EE34, 'M', u'ش'), + (0x1EE35, 'M', u'ت'), + (0x1EE36, 'M', u'ث'), + (0x1EE37, 'M', u'خ'), + (0x1EE38, 'X'), + (0x1EE39, 'M', u'ض'), + (0x1EE3A, 'X'), + (0x1EE3B, 'M', u'غ'), + (0x1EE3C, 'X'), + (0x1EE42, 'M', u'ج'), + (0x1EE43, 'X'), + (0x1EE47, 'M', u'ح'), + (0x1EE48, 'X'), + (0x1EE49, 'M', u'ي'), + (0x1EE4A, 'X'), + (0x1EE4B, 'M', u'ل'), + (0x1EE4C, 'X'), + (0x1EE4D, 'M', u'ن'), + (0x1EE4E, 'M', u'س'), + (0x1EE4F, 'M', u'ع'), + (0x1EE50, 'X'), + (0x1EE51, 'M', u'ص'), + (0x1EE52, 'M', u'ق'), + (0x1EE53, 'X'), + (0x1EE54, 'M', u'ش'), + (0x1EE55, 'X'), + (0x1EE57, 'M', u'خ'), + (0x1EE58, 'X'), + (0x1EE59, 'M', u'ض'), + (0x1EE5A, 'X'), + (0x1EE5B, 'M', u'غ'), + (0x1EE5C, 'X'), + (0x1EE5D, 'M', u'ں'), + (0x1EE5E, 'X'), + (0x1EE5F, 'M', u'ٯ'), + (0x1EE60, 'X'), + (0x1EE61, 'M', u'ب'), + (0x1EE62, 'M', u'ج'), + (0x1EE63, 'X'), + (0x1EE64, 'M', u'ه'), + (0x1EE65, 'X'), + (0x1EE67, 'M', u'ح'), + (0x1EE68, 'M', u'ط'), + (0x1EE69, 'M', u'ي'), + (0x1EE6A, 'M', u'ك'), + (0x1EE6B, 'X'), + (0x1EE6C, 'M', u'م'), + (0x1EE6D, 'M', u'ن'), + (0x1EE6E, 'M', u'س'), + (0x1EE6F, 'M', u'ع'), + (0x1EE70, 'M', u'ف'), + (0x1EE71, 'M', u'ص'), + (0x1EE72, 'M', u'ق'), + (0x1EE73, 'X'), + (0x1EE74, 'M', u'ش'), + (0x1EE75, 'M', u'ت'), + (0x1EE76, 'M', u'ث'), + (0x1EE77, 'M', u'خ'), + (0x1EE78, 'X'), + (0x1EE79, 'M', u'ض'), + (0x1EE7A, 'M', u'ظ'), + (0x1EE7B, 'M', u'غ'), + (0x1EE7C, 'M', u'ٮ'), + (0x1EE7D, 'X'), + (0x1EE7E, 'M', u'ڡ'), + (0x1EE7F, 'X'), + (0x1EE80, 'M', u'ا'), + (0x1EE81, 'M', u'ب'), + (0x1EE82, 'M', u'ج'), + (0x1EE83, 'M', u'د'), + ] + +def _seg_70(): + return [ + (0x1EE84, 'M', u'ه'), + (0x1EE85, 'M', u'و'), + (0x1EE86, 'M', u'ز'), + (0x1EE87, 'M', u'ح'), + (0x1EE88, 'M', u'ط'), + (0x1EE89, 'M', u'ي'), + (0x1EE8A, 'X'), + (0x1EE8B, 'M', u'ل'), + (0x1EE8C, 'M', u'م'), + (0x1EE8D, 'M', u'ن'), + (0x1EE8E, 'M', u'س'), + (0x1EE8F, 'M', u'ع'), + (0x1EE90, 'M', u'ف'), + (0x1EE91, 'M', u'ص'), + (0x1EE92, 'M', u'ق'), + (0x1EE93, 'M', u'ر'), + (0x1EE94, 'M', u'ش'), + (0x1EE95, 'M', u'ت'), + (0x1EE96, 'M', u'ث'), + (0x1EE97, 'M', u'خ'), + (0x1EE98, 'M', u'ذ'), + (0x1EE99, 'M', u'ض'), + (0x1EE9A, 'M', u'ظ'), + (0x1EE9B, 'M', u'غ'), + (0x1EE9C, 'X'), + (0x1EEA1, 'M', u'ب'), + (0x1EEA2, 'M', u'ج'), + (0x1EEA3, 'M', u'د'), + (0x1EEA4, 'X'), + (0x1EEA5, 'M', u'و'), + (0x1EEA6, 'M', u'ز'), + (0x1EEA7, 'M', u'ح'), + (0x1EEA8, 'M', u'ط'), + (0x1EEA9, 'M', u'ي'), + (0x1EEAA, 'X'), + (0x1EEAB, 'M', u'ل'), + (0x1EEAC, 'M', u'م'), + (0x1EEAD, 'M', u'ن'), + (0x1EEAE, 'M', u'س'), + (0x1EEAF, 'M', u'ع'), + (0x1EEB0, 'M', u'ف'), + (0x1EEB1, 'M', u'ص'), + (0x1EEB2, 'M', u'ق'), + (0x1EEB3, 'M', u'ر'), + (0x1EEB4, 'M', u'ش'), + (0x1EEB5, 'M', u'ت'), + (0x1EEB6, 'M', u'ث'), + (0x1EEB7, 'M', u'خ'), + (0x1EEB8, 'M', u'ذ'), + (0x1EEB9, 'M', u'ض'), + (0x1EEBA, 'M', u'ظ'), + (0x1EEBB, 'M', u'غ'), + (0x1EEBC, 'X'), + (0x1EEF0, 'V'), + (0x1EEF2, 'X'), + (0x1F000, 'V'), + (0x1F02C, 'X'), + (0x1F030, 'V'), + (0x1F094, 'X'), + (0x1F0A0, 'V'), + (0x1F0AF, 'X'), + (0x1F0B1, 'V'), + (0x1F0C0, 'X'), + (0x1F0C1, 'V'), + (0x1F0D0, 'X'), + (0x1F0D1, 'V'), + (0x1F0F6, 'X'), + (0x1F101, '3', u'0,'), + (0x1F102, '3', u'1,'), + (0x1F103, '3', u'2,'), + (0x1F104, '3', u'3,'), + (0x1F105, '3', u'4,'), + (0x1F106, '3', u'5,'), + (0x1F107, '3', u'6,'), + (0x1F108, '3', u'7,'), + (0x1F109, '3', u'8,'), + (0x1F10A, '3', u'9,'), + (0x1F10B, 'V'), + (0x1F10D, 'X'), + (0x1F110, '3', u'(a)'), + (0x1F111, '3', u'(b)'), + (0x1F112, '3', u'(c)'), + (0x1F113, '3', u'(d)'), + (0x1F114, '3', u'(e)'), + (0x1F115, '3', u'(f)'), + (0x1F116, '3', u'(g)'), + (0x1F117, '3', u'(h)'), + (0x1F118, '3', u'(i)'), + (0x1F119, '3', u'(j)'), + (0x1F11A, '3', u'(k)'), + (0x1F11B, '3', u'(l)'), + (0x1F11C, '3', u'(m)'), + (0x1F11D, '3', u'(n)'), + (0x1F11E, '3', u'(o)'), + (0x1F11F, '3', u'(p)'), + (0x1F120, '3', u'(q)'), + (0x1F121, '3', u'(r)'), + (0x1F122, '3', u'(s)'), + (0x1F123, '3', u'(t)'), + (0x1F124, '3', u'(u)'), + ] + +def _seg_71(): + return [ + (0x1F125, '3', u'(v)'), + (0x1F126, '3', u'(w)'), + (0x1F127, '3', u'(x)'), + (0x1F128, '3', u'(y)'), + (0x1F129, '3', u'(z)'), + (0x1F12A, 'M', u'〔s〕'), + (0x1F12B, 'M', u'c'), + (0x1F12C, 'M', u'r'), + (0x1F12D, 'M', u'cd'), + (0x1F12E, 'M', u'wz'), + (0x1F12F, 'V'), + (0x1F130, 'M', u'a'), + (0x1F131, 'M', u'b'), + (0x1F132, 'M', u'c'), + (0x1F133, 'M', u'd'), + (0x1F134, 'M', u'e'), + (0x1F135, 'M', u'f'), + (0x1F136, 'M', u'g'), + (0x1F137, 'M', u'h'), + (0x1F138, 'M', u'i'), + (0x1F139, 'M', u'j'), + (0x1F13A, 'M', u'k'), + (0x1F13B, 'M', u'l'), + (0x1F13C, 'M', u'm'), + (0x1F13D, 'M', u'n'), + (0x1F13E, 'M', u'o'), + (0x1F13F, 'M', u'p'), + (0x1F140, 'M', u'q'), + (0x1F141, 'M', u'r'), + (0x1F142, 'M', u's'), + (0x1F143, 'M', u't'), + (0x1F144, 'M', u'u'), + (0x1F145, 'M', u'v'), + (0x1F146, 'M', u'w'), + (0x1F147, 'M', u'x'), + (0x1F148, 'M', u'y'), + (0x1F149, 'M', u'z'), + (0x1F14A, 'M', u'hv'), + (0x1F14B, 'M', u'mv'), + (0x1F14C, 'M', u'sd'), + (0x1F14D, 'M', u'ss'), + (0x1F14E, 'M', u'ppv'), + (0x1F14F, 'M', u'wc'), + (0x1F150, 'V'), + (0x1F16A, 'M', u'mc'), + (0x1F16B, 'M', u'md'), + (0x1F16C, 'X'), + (0x1F170, 'V'), + (0x1F190, 'M', u'dj'), + (0x1F191, 'V'), + (0x1F1AD, 'X'), + (0x1F1E6, 'V'), + (0x1F200, 'M', u'ほか'), + (0x1F201, 'M', u'ココ'), + (0x1F202, 'M', u'サ'), + (0x1F203, 'X'), + (0x1F210, 'M', u'手'), + (0x1F211, 'M', u'字'), + (0x1F212, 'M', u'双'), + (0x1F213, 'M', u'デ'), + (0x1F214, 'M', u'二'), + (0x1F215, 'M', u'多'), + (0x1F216, 'M', u'解'), + (0x1F217, 'M', u'天'), + (0x1F218, 'M', u'交'), + (0x1F219, 'M', u'映'), + (0x1F21A, 'M', u'無'), + (0x1F21B, 'M', u'料'), + (0x1F21C, 'M', u'前'), + (0x1F21D, 'M', u'後'), + (0x1F21E, 'M', u'再'), + (0x1F21F, 'M', u'新'), + (0x1F220, 'M', u'初'), + (0x1F221, 'M', u'終'), + (0x1F222, 'M', u'生'), + (0x1F223, 'M', u'販'), + (0x1F224, 'M', u'声'), + (0x1F225, 'M', u'吹'), + (0x1F226, 'M', u'演'), + (0x1F227, 'M', u'投'), + (0x1F228, 'M', u'捕'), + (0x1F229, 'M', u'一'), + (0x1F22A, 'M', u'三'), + (0x1F22B, 'M', u'遊'), + (0x1F22C, 'M', u'左'), + (0x1F22D, 'M', u'中'), + (0x1F22E, 'M', u'右'), + (0x1F22F, 'M', u'指'), + (0x1F230, 'M', u'走'), + (0x1F231, 'M', u'打'), + (0x1F232, 'M', u'禁'), + (0x1F233, 'M', u'空'), + (0x1F234, 'M', u'合'), + (0x1F235, 'M', u'満'), + (0x1F236, 'M', u'有'), + (0x1F237, 'M', u'月'), + (0x1F238, 'M', u'申'), + (0x1F239, 'M', u'割'), + (0x1F23A, 'M', u'営'), + (0x1F23B, 'M', u'配'), + ] + +def _seg_72(): + return [ + (0x1F23C, 'X'), + (0x1F240, 'M', u'〔本〕'), + (0x1F241, 'M', u'〔三〕'), + (0x1F242, 'M', u'〔二〕'), + (0x1F243, 'M', u'〔安〕'), + (0x1F244, 'M', u'〔点〕'), + (0x1F245, 'M', u'〔打〕'), + (0x1F246, 'M', u'〔盗〕'), + (0x1F247, 'M', u'〔勝〕'), + (0x1F248, 'M', u'〔敗〕'), + (0x1F249, 'X'), + (0x1F250, 'M', u'得'), + (0x1F251, 'M', u'可'), + (0x1F252, 'X'), + (0x1F260, 'V'), + (0x1F266, 'X'), + (0x1F300, 'V'), + (0x1F6D5, 'X'), + (0x1F6E0, 'V'), + (0x1F6ED, 'X'), + (0x1F6F0, 'V'), + (0x1F6FA, 'X'), + (0x1F700, 'V'), + (0x1F774, 'X'), + (0x1F780, 'V'), + (0x1F7D9, 'X'), + (0x1F800, 'V'), + (0x1F80C, 'X'), + (0x1F810, 'V'), + (0x1F848, 'X'), + (0x1F850, 'V'), + (0x1F85A, 'X'), + (0x1F860, 'V'), + (0x1F888, 'X'), + (0x1F890, 'V'), + (0x1F8AE, 'X'), + (0x1F900, 'V'), + (0x1F90C, 'X'), + (0x1F910, 'V'), + (0x1F93F, 'X'), + (0x1F940, 'V'), + (0x1F971, 'X'), + (0x1F973, 'V'), + (0x1F977, 'X'), + (0x1F97A, 'V'), + (0x1F97B, 'X'), + (0x1F97C, 'V'), + (0x1F9A3, 'X'), + (0x1F9B0, 'V'), + (0x1F9BA, 'X'), + (0x1F9C0, 'V'), + (0x1F9C3, 'X'), + (0x1F9D0, 'V'), + (0x1FA00, 'X'), + (0x1FA60, 'V'), + (0x1FA6E, 'X'), + (0x20000, 'V'), + (0x2A6D7, 'X'), + (0x2A700, 'V'), + (0x2B735, 'X'), + (0x2B740, 'V'), + (0x2B81E, 'X'), + (0x2B820, 'V'), + (0x2CEA2, 'X'), + (0x2CEB0, 'V'), + (0x2EBE1, 'X'), + (0x2F800, 'M', u'丽'), + (0x2F801, 'M', u'丸'), + (0x2F802, 'M', u'乁'), + (0x2F803, 'M', u'𠄢'), + (0x2F804, 'M', u'你'), + (0x2F805, 'M', u'侮'), + (0x2F806, 'M', u'侻'), + (0x2F807, 'M', u'倂'), + (0x2F808, 'M', u'偺'), + (0x2F809, 'M', u'備'), + (0x2F80A, 'M', u'僧'), + (0x2F80B, 'M', u'像'), + (0x2F80C, 'M', u'㒞'), + (0x2F80D, 'M', u'𠘺'), + (0x2F80E, 'M', u'免'), + (0x2F80F, 'M', u'兔'), + (0x2F810, 'M', u'兤'), + (0x2F811, 'M', u'具'), + (0x2F812, 'M', u'𠔜'), + (0x2F813, 'M', u'㒹'), + (0x2F814, 'M', u'內'), + (0x2F815, 'M', u'再'), + (0x2F816, 'M', u'𠕋'), + (0x2F817, 'M', u'冗'), + (0x2F818, 'M', u'冤'), + (0x2F819, 'M', u'仌'), + (0x2F81A, 'M', u'冬'), + (0x2F81B, 'M', u'况'), + (0x2F81C, 'M', u'𩇟'), + (0x2F81D, 'M', u'凵'), + (0x2F81E, 'M', u'刃'), + (0x2F81F, 'M', u'㓟'), + (0x2F820, 'M', u'刻'), + (0x2F821, 'M', u'剆'), + ] + +def _seg_73(): + return [ + (0x2F822, 'M', u'割'), + (0x2F823, 'M', u'剷'), + (0x2F824, 'M', u'㔕'), + (0x2F825, 'M', u'勇'), + (0x2F826, 'M', u'勉'), + (0x2F827, 'M', u'勤'), + (0x2F828, 'M', u'勺'), + (0x2F829, 'M', u'包'), + (0x2F82A, 'M', u'匆'), + (0x2F82B, 'M', u'北'), + (0x2F82C, 'M', u'卉'), + (0x2F82D, 'M', u'卑'), + (0x2F82E, 'M', u'博'), + (0x2F82F, 'M', u'即'), + (0x2F830, 'M', u'卽'), + (0x2F831, 'M', u'卿'), + (0x2F834, 'M', u'𠨬'), + (0x2F835, 'M', u'灰'), + (0x2F836, 'M', u'及'), + (0x2F837, 'M', u'叟'), + (0x2F838, 'M', u'𠭣'), + (0x2F839, 'M', u'叫'), + (0x2F83A, 'M', u'叱'), + (0x2F83B, 'M', u'吆'), + (0x2F83C, 'M', u'咞'), + (0x2F83D, 'M', u'吸'), + (0x2F83E, 'M', u'呈'), + (0x2F83F, 'M', u'周'), + (0x2F840, 'M', u'咢'), + (0x2F841, 'M', u'哶'), + (0x2F842, 'M', u'唐'), + (0x2F843, 'M', u'啓'), + (0x2F844, 'M', u'啣'), + (0x2F845, 'M', u'善'), + (0x2F847, 'M', u'喙'), + (0x2F848, 'M', u'喫'), + (0x2F849, 'M', u'喳'), + (0x2F84A, 'M', u'嗂'), + (0x2F84B, 'M', u'圖'), + (0x2F84C, 'M', u'嘆'), + (0x2F84D, 'M', u'圗'), + (0x2F84E, 'M', u'噑'), + (0x2F84F, 'M', u'噴'), + (0x2F850, 'M', u'切'), + (0x2F851, 'M', u'壮'), + (0x2F852, 'M', u'城'), + (0x2F853, 'M', u'埴'), + (0x2F854, 'M', u'堍'), + (0x2F855, 'M', u'型'), + (0x2F856, 'M', u'堲'), + (0x2F857, 'M', u'報'), + (0x2F858, 'M', u'墬'), + (0x2F859, 'M', u'𡓤'), + (0x2F85A, 'M', u'売'), + (0x2F85B, 'M', u'壷'), + (0x2F85C, 'M', u'夆'), + (0x2F85D, 'M', u'多'), + (0x2F85E, 'M', u'夢'), + (0x2F85F, 'M', u'奢'), + (0x2F860, 'M', u'𡚨'), + (0x2F861, 'M', u'𡛪'), + (0x2F862, 'M', u'姬'), + (0x2F863, 'M', u'娛'), + (0x2F864, 'M', u'娧'), + (0x2F865, 'M', u'姘'), + (0x2F866, 'M', u'婦'), + (0x2F867, 'M', u'㛮'), + (0x2F868, 'X'), + (0x2F869, 'M', u'嬈'), + (0x2F86A, 'M', u'嬾'), + (0x2F86C, 'M', u'𡧈'), + (0x2F86D, 'M', u'寃'), + (0x2F86E, 'M', u'寘'), + (0x2F86F, 'M', u'寧'), + (0x2F870, 'M', u'寳'), + (0x2F871, 'M', u'𡬘'), + (0x2F872, 'M', u'寿'), + (0x2F873, 'M', u'将'), + (0x2F874, 'X'), + (0x2F875, 'M', u'尢'), + (0x2F876, 'M', u'㞁'), + (0x2F877, 'M', u'屠'), + (0x2F878, 'M', u'屮'), + (0x2F879, 'M', u'峀'), + (0x2F87A, 'M', u'岍'), + (0x2F87B, 'M', u'𡷤'), + (0x2F87C, 'M', u'嵃'), + (0x2F87D, 'M', u'𡷦'), + (0x2F87E, 'M', u'嵮'), + (0x2F87F, 'M', u'嵫'), + (0x2F880, 'M', u'嵼'), + (0x2F881, 'M', u'巡'), + (0x2F882, 'M', u'巢'), + (0x2F883, 'M', u'㠯'), + (0x2F884, 'M', u'巽'), + (0x2F885, 'M', u'帨'), + (0x2F886, 'M', u'帽'), + (0x2F887, 'M', u'幩'), + (0x2F888, 'M', u'㡢'), + (0x2F889, 'M', u'𢆃'), + ] + +def _seg_74(): + return [ + (0x2F88A, 'M', u'㡼'), + (0x2F88B, 'M', u'庰'), + (0x2F88C, 'M', u'庳'), + (0x2F88D, 'M', u'庶'), + (0x2F88E, 'M', u'廊'), + (0x2F88F, 'M', u'𪎒'), + (0x2F890, 'M', u'廾'), + (0x2F891, 'M', u'𢌱'), + (0x2F893, 'M', u'舁'), + (0x2F894, 'M', u'弢'), + (0x2F896, 'M', u'㣇'), + (0x2F897, 'M', u'𣊸'), + (0x2F898, 'M', u'𦇚'), + (0x2F899, 'M', u'形'), + (0x2F89A, 'M', u'彫'), + (0x2F89B, 'M', u'㣣'), + (0x2F89C, 'M', u'徚'), + (0x2F89D, 'M', u'忍'), + (0x2F89E, 'M', u'志'), + (0x2F89F, 'M', u'忹'), + (0x2F8A0, 'M', u'悁'), + (0x2F8A1, 'M', u'㤺'), + (0x2F8A2, 'M', u'㤜'), + (0x2F8A3, 'M', u'悔'), + (0x2F8A4, 'M', u'𢛔'), + (0x2F8A5, 'M', u'惇'), + (0x2F8A6, 'M', u'慈'), + (0x2F8A7, 'M', u'慌'), + (0x2F8A8, 'M', u'慎'), + (0x2F8A9, 'M', u'慌'), + (0x2F8AA, 'M', u'慺'), + (0x2F8AB, 'M', u'憎'), + (0x2F8AC, 'M', u'憲'), + (0x2F8AD, 'M', u'憤'), + (0x2F8AE, 'M', u'憯'), + (0x2F8AF, 'M', u'懞'), + (0x2F8B0, 'M', u'懲'), + (0x2F8B1, 'M', u'懶'), + (0x2F8B2, 'M', u'成'), + (0x2F8B3, 'M', u'戛'), + (0x2F8B4, 'M', u'扝'), + (0x2F8B5, 'M', u'抱'), + (0x2F8B6, 'M', u'拔'), + (0x2F8B7, 'M', u'捐'), + (0x2F8B8, 'M', u'𢬌'), + (0x2F8B9, 'M', u'挽'), + (0x2F8BA, 'M', u'拼'), + (0x2F8BB, 'M', u'捨'), + (0x2F8BC, 'M', u'掃'), + (0x2F8BD, 'M', u'揤'), + (0x2F8BE, 'M', u'𢯱'), + (0x2F8BF, 'M', u'搢'), + (0x2F8C0, 'M', u'揅'), + (0x2F8C1, 'M', u'掩'), + (0x2F8C2, 'M', u'㨮'), + (0x2F8C3, 'M', u'摩'), + (0x2F8C4, 'M', u'摾'), + (0x2F8C5, 'M', u'撝'), + (0x2F8C6, 'M', u'摷'), + (0x2F8C7, 'M', u'㩬'), + (0x2F8C8, 'M', u'敏'), + (0x2F8C9, 'M', u'敬'), + (0x2F8CA, 'M', u'𣀊'), + (0x2F8CB, 'M', u'旣'), + (0x2F8CC, 'M', u'書'), + (0x2F8CD, 'M', u'晉'), + (0x2F8CE, 'M', u'㬙'), + (0x2F8CF, 'M', u'暑'), + (0x2F8D0, 'M', u'㬈'), + (0x2F8D1, 'M', u'㫤'), + (0x2F8D2, 'M', u'冒'), + (0x2F8D3, 'M', u'冕'), + (0x2F8D4, 'M', u'最'), + (0x2F8D5, 'M', u'暜'), + (0x2F8D6, 'M', u'肭'), + (0x2F8D7, 'M', u'䏙'), + (0x2F8D8, 'M', u'朗'), + (0x2F8D9, 'M', u'望'), + (0x2F8DA, 'M', u'朡'), + (0x2F8DB, 'M', u'杞'), + (0x2F8DC, 'M', u'杓'), + (0x2F8DD, 'M', u'𣏃'), + (0x2F8DE, 'M', u'㭉'), + (0x2F8DF, 'M', u'柺'), + (0x2F8E0, 'M', u'枅'), + (0x2F8E1, 'M', u'桒'), + (0x2F8E2, 'M', u'梅'), + (0x2F8E3, 'M', u'𣑭'), + (0x2F8E4, 'M', u'梎'), + (0x2F8E5, 'M', u'栟'), + (0x2F8E6, 'M', u'椔'), + (0x2F8E7, 'M', u'㮝'), + (0x2F8E8, 'M', u'楂'), + (0x2F8E9, 'M', u'榣'), + (0x2F8EA, 'M', u'槪'), + (0x2F8EB, 'M', u'檨'), + (0x2F8EC, 'M', u'𣚣'), + (0x2F8ED, 'M', u'櫛'), + (0x2F8EE, 'M', u'㰘'), + (0x2F8EF, 'M', u'次'), + ] + +def _seg_75(): + return [ + (0x2F8F0, 'M', u'𣢧'), + (0x2F8F1, 'M', u'歔'), + (0x2F8F2, 'M', u'㱎'), + (0x2F8F3, 'M', u'歲'), + (0x2F8F4, 'M', u'殟'), + (0x2F8F5, 'M', u'殺'), + (0x2F8F6, 'M', u'殻'), + (0x2F8F7, 'M', u'𣪍'), + (0x2F8F8, 'M', u'𡴋'), + (0x2F8F9, 'M', u'𣫺'), + (0x2F8FA, 'M', u'汎'), + (0x2F8FB, 'M', u'𣲼'), + (0x2F8FC, 'M', u'沿'), + (0x2F8FD, 'M', u'泍'), + (0x2F8FE, 'M', u'汧'), + (0x2F8FF, 'M', u'洖'), + (0x2F900, 'M', u'派'), + (0x2F901, 'M', u'海'), + (0x2F902, 'M', u'流'), + (0x2F903, 'M', u'浩'), + (0x2F904, 'M', u'浸'), + (0x2F905, 'M', u'涅'), + (0x2F906, 'M', u'𣴞'), + (0x2F907, 'M', u'洴'), + (0x2F908, 'M', u'港'), + (0x2F909, 'M', u'湮'), + (0x2F90A, 'M', u'㴳'), + (0x2F90B, 'M', u'滋'), + (0x2F90C, 'M', u'滇'), + (0x2F90D, 'M', u'𣻑'), + (0x2F90E, 'M', u'淹'), + (0x2F90F, 'M', u'潮'), + (0x2F910, 'M', u'𣽞'), + (0x2F911, 'M', u'𣾎'), + (0x2F912, 'M', u'濆'), + (0x2F913, 'M', u'瀹'), + (0x2F914, 'M', u'瀞'), + (0x2F915, 'M', u'瀛'), + (0x2F916, 'M', u'㶖'), + (0x2F917, 'M', u'灊'), + (0x2F918, 'M', u'災'), + (0x2F919, 'M', u'灷'), + (0x2F91A, 'M', u'炭'), + (0x2F91B, 'M', u'𠔥'), + (0x2F91C, 'M', u'煅'), + (0x2F91D, 'M', u'𤉣'), + (0x2F91E, 'M', u'熜'), + (0x2F91F, 'X'), + (0x2F920, 'M', u'爨'), + (0x2F921, 'M', u'爵'), + (0x2F922, 'M', u'牐'), + (0x2F923, 'M', u'𤘈'), + (0x2F924, 'M', u'犀'), + (0x2F925, 'M', u'犕'), + (0x2F926, 'M', u'𤜵'), + (0x2F927, 'M', u'𤠔'), + (0x2F928, 'M', u'獺'), + (0x2F929, 'M', u'王'), + (0x2F92A, 'M', u'㺬'), + (0x2F92B, 'M', u'玥'), + (0x2F92C, 'M', u'㺸'), + (0x2F92E, 'M', u'瑇'), + (0x2F92F, 'M', u'瑜'), + (0x2F930, 'M', u'瑱'), + (0x2F931, 'M', u'璅'), + (0x2F932, 'M', u'瓊'), + (0x2F933, 'M', u'㼛'), + (0x2F934, 'M', u'甤'), + (0x2F935, 'M', u'𤰶'), + (0x2F936, 'M', u'甾'), + (0x2F937, 'M', u'𤲒'), + (0x2F938, 'M', u'異'), + (0x2F939, 'M', u'𢆟'), + (0x2F93A, 'M', u'瘐'), + (0x2F93B, 'M', u'𤾡'), + (0x2F93C, 'M', u'𤾸'), + (0x2F93D, 'M', u'𥁄'), + (0x2F93E, 'M', u'㿼'), + (0x2F93F, 'M', u'䀈'), + (0x2F940, 'M', u'直'), + (0x2F941, 'M', u'𥃳'), + (0x2F942, 'M', u'𥃲'), + (0x2F943, 'M', u'𥄙'), + (0x2F944, 'M', u'𥄳'), + (0x2F945, 'M', u'眞'), + (0x2F946, 'M', u'真'), + (0x2F948, 'M', u'睊'), + (0x2F949, 'M', u'䀹'), + (0x2F94A, 'M', u'瞋'), + (0x2F94B, 'M', u'䁆'), + (0x2F94C, 'M', u'䂖'), + (0x2F94D, 'M', u'𥐝'), + (0x2F94E, 'M', u'硎'), + (0x2F94F, 'M', u'碌'), + (0x2F950, 'M', u'磌'), + (0x2F951, 'M', u'䃣'), + (0x2F952, 'M', u'𥘦'), + (0x2F953, 'M', u'祖'), + (0x2F954, 'M', u'𥚚'), + (0x2F955, 'M', u'𥛅'), + ] + +def _seg_76(): + return [ + (0x2F956, 'M', u'福'), + (0x2F957, 'M', u'秫'), + (0x2F958, 'M', u'䄯'), + (0x2F959, 'M', u'穀'), + (0x2F95A, 'M', u'穊'), + (0x2F95B, 'M', u'穏'), + (0x2F95C, 'M', u'𥥼'), + (0x2F95D, 'M', u'𥪧'), + (0x2F95F, 'X'), + (0x2F960, 'M', u'䈂'), + (0x2F961, 'M', u'𥮫'), + (0x2F962, 'M', u'篆'), + (0x2F963, 'M', u'築'), + (0x2F964, 'M', u'䈧'), + (0x2F965, 'M', u'𥲀'), + (0x2F966, 'M', u'糒'), + (0x2F967, 'M', u'䊠'), + (0x2F968, 'M', u'糨'), + (0x2F969, 'M', u'糣'), + (0x2F96A, 'M', u'紀'), + (0x2F96B, 'M', u'𥾆'), + (0x2F96C, 'M', u'絣'), + (0x2F96D, 'M', u'䌁'), + (0x2F96E, 'M', u'緇'), + (0x2F96F, 'M', u'縂'), + (0x2F970, 'M', u'繅'), + (0x2F971, 'M', u'䌴'), + (0x2F972, 'M', u'𦈨'), + (0x2F973, 'M', u'𦉇'), + (0x2F974, 'M', u'䍙'), + (0x2F975, 'M', u'𦋙'), + (0x2F976, 'M', u'罺'), + (0x2F977, 'M', u'𦌾'), + (0x2F978, 'M', u'羕'), + (0x2F979, 'M', u'翺'), + (0x2F97A, 'M', u'者'), + (0x2F97B, 'M', u'𦓚'), + (0x2F97C, 'M', u'𦔣'), + (0x2F97D, 'M', u'聠'), + (0x2F97E, 'M', u'𦖨'), + (0x2F97F, 'M', u'聰'), + (0x2F980, 'M', u'𣍟'), + (0x2F981, 'M', u'䏕'), + (0x2F982, 'M', u'育'), + (0x2F983, 'M', u'脃'), + (0x2F984, 'M', u'䐋'), + (0x2F985, 'M', u'脾'), + (0x2F986, 'M', u'媵'), + (0x2F987, 'M', u'𦞧'), + (0x2F988, 'M', u'𦞵'), + (0x2F989, 'M', u'𣎓'), + (0x2F98A, 'M', u'𣎜'), + (0x2F98B, 'M', u'舁'), + (0x2F98C, 'M', u'舄'), + (0x2F98D, 'M', u'辞'), + (0x2F98E, 'M', u'䑫'), + (0x2F98F, 'M', u'芑'), + (0x2F990, 'M', u'芋'), + (0x2F991, 'M', u'芝'), + (0x2F992, 'M', u'劳'), + (0x2F993, 'M', u'花'), + (0x2F994, 'M', u'芳'), + (0x2F995, 'M', u'芽'), + (0x2F996, 'M', u'苦'), + (0x2F997, 'M', u'𦬼'), + (0x2F998, 'M', u'若'), + (0x2F999, 'M', u'茝'), + (0x2F99A, 'M', u'荣'), + (0x2F99B, 'M', u'莭'), + (0x2F99C, 'M', u'茣'), + (0x2F99D, 'M', u'莽'), + (0x2F99E, 'M', u'菧'), + (0x2F99F, 'M', u'著'), + (0x2F9A0, 'M', u'荓'), + (0x2F9A1, 'M', u'菊'), + (0x2F9A2, 'M', u'菌'), + (0x2F9A3, 'M', u'菜'), + (0x2F9A4, 'M', u'𦰶'), + (0x2F9A5, 'M', u'𦵫'), + (0x2F9A6, 'M', u'𦳕'), + (0x2F9A7, 'M', u'䔫'), + (0x2F9A8, 'M', u'蓱'), + (0x2F9A9, 'M', u'蓳'), + (0x2F9AA, 'M', u'蔖'), + (0x2F9AB, 'M', u'𧏊'), + (0x2F9AC, 'M', u'蕤'), + (0x2F9AD, 'M', u'𦼬'), + (0x2F9AE, 'M', u'䕝'), + (0x2F9AF, 'M', u'䕡'), + (0x2F9B0, 'M', u'𦾱'), + (0x2F9B1, 'M', u'𧃒'), + (0x2F9B2, 'M', u'䕫'), + (0x2F9B3, 'M', u'虐'), + (0x2F9B4, 'M', u'虜'), + (0x2F9B5, 'M', u'虧'), + (0x2F9B6, 'M', u'虩'), + (0x2F9B7, 'M', u'蚩'), + (0x2F9B8, 'M', u'蚈'), + (0x2F9B9, 'M', u'蜎'), + (0x2F9BA, 'M', u'蛢'), + ] + +def _seg_77(): + return [ + (0x2F9BB, 'M', u'蝹'), + (0x2F9BC, 'M', u'蜨'), + (0x2F9BD, 'M', u'蝫'), + (0x2F9BE, 'M', u'螆'), + (0x2F9BF, 'X'), + (0x2F9C0, 'M', u'蟡'), + (0x2F9C1, 'M', u'蠁'), + (0x2F9C2, 'M', u'䗹'), + (0x2F9C3, 'M', u'衠'), + (0x2F9C4, 'M', u'衣'), + (0x2F9C5, 'M', u'𧙧'), + (0x2F9C6, 'M', u'裗'), + (0x2F9C7, 'M', u'裞'), + (0x2F9C8, 'M', u'䘵'), + (0x2F9C9, 'M', u'裺'), + (0x2F9CA, 'M', u'㒻'), + (0x2F9CB, 'M', u'𧢮'), + (0x2F9CC, 'M', u'𧥦'), + (0x2F9CD, 'M', u'䚾'), + (0x2F9CE, 'M', u'䛇'), + (0x2F9CF, 'M', u'誠'), + (0x2F9D0, 'M', u'諭'), + (0x2F9D1, 'M', u'變'), + (0x2F9D2, 'M', u'豕'), + (0x2F9D3, 'M', u'𧲨'), + (0x2F9D4, 'M', u'貫'), + (0x2F9D5, 'M', u'賁'), + (0x2F9D6, 'M', u'贛'), + (0x2F9D7, 'M', u'起'), + (0x2F9D8, 'M', u'𧼯'), + (0x2F9D9, 'M', u'𠠄'), + (0x2F9DA, 'M', u'跋'), + (0x2F9DB, 'M', u'趼'), + (0x2F9DC, 'M', u'跰'), + (0x2F9DD, 'M', u'𠣞'), + (0x2F9DE, 'M', u'軔'), + (0x2F9DF, 'M', u'輸'), + (0x2F9E0, 'M', u'𨗒'), + (0x2F9E1, 'M', u'𨗭'), + (0x2F9E2, 'M', u'邔'), + (0x2F9E3, 'M', u'郱'), + (0x2F9E4, 'M', u'鄑'), + (0x2F9E5, 'M', u'𨜮'), + (0x2F9E6, 'M', u'鄛'), + (0x2F9E7, 'M', u'鈸'), + (0x2F9E8, 'M', u'鋗'), + (0x2F9E9, 'M', u'鋘'), + (0x2F9EA, 'M', u'鉼'), + (0x2F9EB, 'M', u'鏹'), + (0x2F9EC, 'M', u'鐕'), + (0x2F9ED, 'M', u'𨯺'), + (0x2F9EE, 'M', u'開'), + (0x2F9EF, 'M', u'䦕'), + (0x2F9F0, 'M', u'閷'), + (0x2F9F1, 'M', u'𨵷'), + (0x2F9F2, 'M', u'䧦'), + (0x2F9F3, 'M', u'雃'), + (0x2F9F4, 'M', u'嶲'), + (0x2F9F5, 'M', u'霣'), + (0x2F9F6, 'M', u'𩅅'), + (0x2F9F7, 'M', u'𩈚'), + (0x2F9F8, 'M', u'䩮'), + (0x2F9F9, 'M', u'䩶'), + (0x2F9FA, 'M', u'韠'), + (0x2F9FB, 'M', u'𩐊'), + (0x2F9FC, 'M', u'䪲'), + (0x2F9FD, 'M', u'𩒖'), + (0x2F9FE, 'M', u'頋'), + (0x2FA00, 'M', u'頩'), + (0x2FA01, 'M', u'𩖶'), + (0x2FA02, 'M', u'飢'), + (0x2FA03, 'M', u'䬳'), + (0x2FA04, 'M', u'餩'), + (0x2FA05, 'M', u'馧'), + (0x2FA06, 'M', u'駂'), + (0x2FA07, 'M', u'駾'), + (0x2FA08, 'M', u'䯎'), + (0x2FA09, 'M', u'𩬰'), + (0x2FA0A, 'M', u'鬒'), + (0x2FA0B, 'M', u'鱀'), + (0x2FA0C, 'M', u'鳽'), + (0x2FA0D, 'M', u'䳎'), + (0x2FA0E, 'M', u'䳭'), + (0x2FA0F, 'M', u'鵧'), + (0x2FA10, 'M', u'𪃎'), + (0x2FA11, 'M', u'䳸'), + (0x2FA12, 'M', u'𪄅'), + (0x2FA13, 'M', u'𪈎'), + (0x2FA14, 'M', u'𪊑'), + (0x2FA15, 'M', u'麻'), + (0x2FA16, 'M', u'䵖'), + (0x2FA17, 'M', u'黹'), + (0x2FA18, 'M', u'黾'), + (0x2FA19, 'M', u'鼅'), + (0x2FA1A, 'M', u'鼏'), + (0x2FA1B, 'M', u'鼖'), + (0x2FA1C, 'M', u'鼻'), + (0x2FA1D, 'M', u'𪘀'), + (0x2FA1E, 'X'), + (0xE0100, 'I'), + ] + +def _seg_78(): + return [ + (0xE01F0, 'X'), + ] + +uts46data = tuple( + _seg_0() + + _seg_1() + + _seg_2() + + _seg_3() + + _seg_4() + + _seg_5() + + _seg_6() + + _seg_7() + + _seg_8() + + _seg_9() + + _seg_10() + + _seg_11() + + _seg_12() + + _seg_13() + + _seg_14() + + _seg_15() + + _seg_16() + + _seg_17() + + _seg_18() + + _seg_19() + + _seg_20() + + _seg_21() + + _seg_22() + + _seg_23() + + _seg_24() + + _seg_25() + + _seg_26() + + _seg_27() + + _seg_28() + + _seg_29() + + _seg_30() + + _seg_31() + + _seg_32() + + _seg_33() + + _seg_34() + + _seg_35() + + _seg_36() + + _seg_37() + + _seg_38() + + _seg_39() + + _seg_40() + + _seg_41() + + _seg_42() + + _seg_43() + + _seg_44() + + _seg_45() + + _seg_46() + + _seg_47() + + _seg_48() + + _seg_49() + + _seg_50() + + _seg_51() + + _seg_52() + + _seg_53() + + _seg_54() + + _seg_55() + + _seg_56() + + _seg_57() + + _seg_58() + + _seg_59() + + _seg_60() + + _seg_61() + + _seg_62() + + _seg_63() + + _seg_64() + + _seg_65() + + _seg_66() + + _seg_67() + + _seg_68() + + _seg_69() + + _seg_70() + + _seg_71() + + _seg_72() + + _seg_73() + + _seg_74() + + _seg_75() + + _seg_76() + + _seg_77() + + _seg_78() +) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/language.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/language.xml index c9b9494c2e6a40964851dd81036ec6b07cefc2ce..69d4e4ca1e23305d8442fd28f400fbb7dde82839 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/language.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/language.xml @@ -1,3 +1,326 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:50d53e55fdcc07dc62e87632aee4fd683a0025031d19a40bdaf041b9771e19bc -size 13570 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/max31855.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/max31855.py index 9a8594b61f91a36d8725f8937bb4e970fa633cd1..ea1401828b9eefc83f337868aac2a761a0d70847 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/max31855.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/max31855.py @@ -1,3 +1,35 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:241aed8ac792b55ee9d2b14ccca9f0cfb70142a2c066d35fae46f8a5a4fbcb14 -size 833 +# MAX31855 Thermocouple ADC Driver + +import spidev + +def readValue() : + spi = spidev.SpiDev() + spi.open(0, 0) + to_send = [0xFF, 0xFF, 0xFF, 0xFF] + data = spi.xfer2(to_send) + return (data[0] << 24) | (data[1] << 16) | (data[2] << 8) | data[3] + +def readTemperatureRaw() : + value = readValue() + temp = (value >> 18) & 0x1FFF; + if (value & 0x80000000) : + temp = -temp + return temp + +def readError() : + value = readValue() + return value & 0x07 + +def readTemperatureC() : + value = readValue() + temp = (value >> 18) & 0x1FFF; + if (value & 0x80000000) : + temp = -temp + return int(((temp * 50) + 1) / 20) + +def readTemperatureF() : + value = readValue() + temp = (value >> 18) & 0x1FFF; + if (value & 0x80000000) : + temp = -temp + return int(((temp * 45) + 3201) / 10) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/microcontroller/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/microcontroller/__init__.py index 164bfe10aa75fbb702f1b049ac2b671f4412d6fb..81965ef74db0faa4360217b10864622b9be98d1a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/microcontroller/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/microcontroller/__init__.py @@ -1,3 +1,48 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:51a8070e44f16afef583754de234285dcc812a091bc6f6cf2390922ce30b626b -size 1850 +"""Microcontroller pins""" + +from adafruit_platformdetect import chip as ap_chip +from adafruit_blinka import Enum +from adafruit_blinka.agnostic import board_id, chip_id + +class Pin(Enum): + """Reference Pin object""" + def __init__(self, pin_id): + """Identifier for pin, referencing platform-specific pin id""" + self._id = pin_id + + def __repr__(self): + import board + for key in dir(board): + if getattr(board, key) is self: + return "board.{}".format(key) + import microcontroller.pin as pin + for key in dir(pin): + if getattr(pin, key) is self: + return "microcontroller.pin.{}".format(key) + return repr(self) + +# We intentionally are patching into this namespace so skip the wildcard check. +# pylint: disable=unused-wildcard-import,wildcard-import,ungrouped-imports + +if chip_id == ap_chip.ESP8266: + from adafruit_blinka.microcontroller.esp8266 import * +elif chip_id == ap_chip.STM32: + from adafruit_blinka.microcontroller.stm32 import * +elif chip_id == ap_chip.BCM2XXX: + from adafruit_blinka.microcontroller.bcm283x import * +elif chip_id == ap_chip.AM33XX: + from adafruit_blinka.microcontroller.am335x import * +elif chip_id == ap_chip.SUN8I: + from adafruit_blinka.microcontroller.allwinner_h3 import * +elif chip_id == ap_chip.SAMA5: + from adafruit_blinka.microcontroller.sama5 import * +elif chip_id == ap_chip.T210: + from adafruit_blinka.microcontroller.tegra.t210 import * +elif chip_id == ap_chip.T186: + from adafruit_blinka.microcontroller.tegra.t186 import * +elif chip_id == ap_chip.T194: + from adafruit_blinka.microcontroller.tegra.t194 import * +elif chip_id == ap_chip.IMX8MX: + from adafruit_blinka.microcontroller.nxp_imx8m import * +else: + raise NotImplementedError("Microcontroller not supported:", chip_id) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/microcontroller/pin.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/microcontroller/pin.py index 90a868b1eaaff98baf5c194ce496750265443490..5d495802baa0ca989e79652bd21c5b4dcd39c770 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/microcontroller/pin.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/microcontroller/pin.py @@ -1,3 +1,30 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:89bae1d360f29cf8d830bd351bed941ba08829a1fa2a58018aae0b8ada34a7e9 -size 1312 +"""Pins named after their chip name.""" + +import adafruit_platformdetect.chip as ap_chip +from adafruit_blinka.agnostic import chip_id + +# We intentionally are patching into this namespace so skip the wildcard check. +# pylint: disable=unused-wildcard-import,wildcard-import,ungrouped-imports + +if chip_id == ap_chip.ESP8266: + from adafruit_blinka.microcontroller.esp8266.pin import * +elif chip_id == ap_chip.STM32: + from adafruit_blinka.microcontroller.stm32.pin import * +elif chip_id == ap_chip.BCM2XXX: + from adafruit_blinka.microcontroller.bcm283x.pin import * +elif chip_id == ap_chip.AM33XX: + from adafruit_blinka.microcontroller.am335x.pin import * +elif chip_id == ap_chip.SUN8I: + from adafruit_blinka.microcontroller.allwinner_h3.pin import * +elif chip_id == ap_chip.SAMA5: + from adafruit_blinka.microcontroller.sama5.pin import * +elif chip_id == ap_chip.T210: + from adafruit_blinka.microcontroller.tegra.t210.pin import * +elif chip_id == ap_chip.T186: + from adafruit_blinka.microcontroller.tegra.t186.pin import * +elif chip_id == ap_chip.T194: + from adafruit_blinka.microcontroller.tegra.t194.pin import * +elif chip_id == ap_chip.IMX8MX: + from adafruit_blinka.microcontroller.nxp_imx8m.pin import * +else: + raise NotImplementedError("Microcontroller not supported: ", chip_id) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/__init__.py index 5164d360204e776313bc66cef0b90214a93a9643..45b5470d49c4812ca04aa4684675222503bf1e98 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/__init__.py @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b1f93cf9429758b3477727204637872c1a63e8c45c15cb1e17e9e24333bd56f5 -size 65 +__version__ = "1.5.0" + + +class MQTTException(Exception): + pass diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/client.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/client.py index 7ac6867ac89ab6ae130e73e6c8da488e242941da..ae2b511c55bfc4e5f8765190ab731e8bada89ba5 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/client.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/client.py @@ -1,3 +1,3834 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:054a0b09832df5edd3d6f3937d36915977dd71eaf78982bb332da8cb4bf960c9 -size 150847 +# Copyright (c) 2012-2019 Roger Light and others +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# and Eclipse Distribution License v1.0 which accompany this distribution. +# +# The Eclipse Public License is available at +# http://www.eclipse.org/legal/epl-v10.html +# and the Eclipse Distribution License is available at +# http://www.eclipse.org/org/documents/edl-v10.php. +# +# Contributors: +# Roger Light - initial API and implementation +# Ian Craggs - MQTT V5 support + +from .subscribeoptions import SubscribeOptions +from .reasoncodes import ReasonCodes +from .properties import Properties +from .matcher import MQTTMatcher +import logging +import hashlib +import string +import base64 +import uuid +import time +import threading +import sys +import struct +""" +This is an MQTT client module. MQTT is a lightweight pub/sub messaging +protocol that is easy to implement and suitable for low powered devices. +""" +import collections +import errno +import os +import platform +import select +import socket + +ssl = None +try: + import ssl +except ImportError: + pass + +socks = None +try: + import socks +except ImportError: + pass + +try: + # Python 3 + from urllib import request as urllib_dot_request + from urllib import parse as urllib_dot_parse +except ImportError: + # Python 2 + import urllib as urllib_dot_request + import urlparse as urllib_dot_parse + + +try: + # Use monotonic clock if available + time_func = time.monotonic +except AttributeError: + time_func = time.time + +try: + import dns.resolver +except ImportError: + HAVE_DNS = False +else: + HAVE_DNS = True + + +if platform.system() == 'Windows': + EAGAIN = errno.WSAEWOULDBLOCK +else: + EAGAIN = errno.EAGAIN + +MQTTv31 = 3 +MQTTv311 = 4 +MQTTv5 = 5 + +if sys.version_info[0] >= 3: + # define some alias for python2 compatibility + unicode = str + basestring = str + +# Message types +CONNECT = 0x10 +CONNACK = 0x20 +PUBLISH = 0x30 +PUBACK = 0x40 +PUBREC = 0x50 +PUBREL = 0x60 +PUBCOMP = 0x70 +SUBSCRIBE = 0x80 +SUBACK = 0x90 +UNSUBSCRIBE = 0xA0 +UNSUBACK = 0xB0 +PINGREQ = 0xC0 +PINGRESP = 0xD0 +DISCONNECT = 0xE0 +AUTH = 0xF0 + +# Log levels +MQTT_LOG_INFO = 0x01 +MQTT_LOG_NOTICE = 0x02 +MQTT_LOG_WARNING = 0x04 +MQTT_LOG_ERR = 0x08 +MQTT_LOG_DEBUG = 0x10 +LOGGING_LEVEL = { + MQTT_LOG_DEBUG: logging.DEBUG, + MQTT_LOG_INFO: logging.INFO, + MQTT_LOG_NOTICE: logging.INFO, # This has no direct equivalent level + MQTT_LOG_WARNING: logging.WARNING, + MQTT_LOG_ERR: logging.ERROR, +} + +# CONNACK codes +CONNACK_ACCEPTED = 0 +CONNACK_REFUSED_PROTOCOL_VERSION = 1 +CONNACK_REFUSED_IDENTIFIER_REJECTED = 2 +CONNACK_REFUSED_SERVER_UNAVAILABLE = 3 +CONNACK_REFUSED_BAD_USERNAME_PASSWORD = 4 +CONNACK_REFUSED_NOT_AUTHORIZED = 5 + +# Connection state +mqtt_cs_new = 0 +mqtt_cs_connected = 1 +mqtt_cs_disconnecting = 2 +mqtt_cs_connect_async = 3 + +# Message state +mqtt_ms_invalid = 0 +mqtt_ms_publish = 1 +mqtt_ms_wait_for_puback = 2 +mqtt_ms_wait_for_pubrec = 3 +mqtt_ms_resend_pubrel = 4 +mqtt_ms_wait_for_pubrel = 5 +mqtt_ms_resend_pubcomp = 6 +mqtt_ms_wait_for_pubcomp = 7 +mqtt_ms_send_pubrec = 8 +mqtt_ms_queued = 9 + +# Error values +MQTT_ERR_AGAIN = -1 +MQTT_ERR_SUCCESS = 0 +MQTT_ERR_NOMEM = 1 +MQTT_ERR_PROTOCOL = 2 +MQTT_ERR_INVAL = 3 +MQTT_ERR_NO_CONN = 4 +MQTT_ERR_CONN_REFUSED = 5 +MQTT_ERR_NOT_FOUND = 6 +MQTT_ERR_CONN_LOST = 7 +MQTT_ERR_TLS = 8 +MQTT_ERR_PAYLOAD_SIZE = 9 +MQTT_ERR_NOT_SUPPORTED = 10 +MQTT_ERR_AUTH = 11 +MQTT_ERR_ACL_DENIED = 12 +MQTT_ERR_UNKNOWN = 13 +MQTT_ERR_ERRNO = 14 +MQTT_ERR_QUEUE_SIZE = 15 + +MQTT_CLIENT = 0 +MQTT_BRIDGE = 1 + +# For MQTT V5, use the clean start flag only on the first successful connect +MQTT_CLEAN_START_FIRST_ONLY = 3 + +sockpair_data = b"0" + + +class WebsocketConnectionError(ValueError): + pass + + +class WouldBlockError(Exception): + pass + + +def error_string(mqtt_errno): + """Return the error string associated with an mqtt error number.""" + if mqtt_errno == MQTT_ERR_SUCCESS: + return "No error." + elif mqtt_errno == MQTT_ERR_NOMEM: + return "Out of memory." + elif mqtt_errno == MQTT_ERR_PROTOCOL: + return "A network protocol error occurred when communicating with the broker." + elif mqtt_errno == MQTT_ERR_INVAL: + return "Invalid function arguments provided." + elif mqtt_errno == MQTT_ERR_NO_CONN: + return "The client is not currently connected." + elif mqtt_errno == MQTT_ERR_CONN_REFUSED: + return "The connection was refused." + elif mqtt_errno == MQTT_ERR_NOT_FOUND: + return "Message not found (internal error)." + elif mqtt_errno == MQTT_ERR_CONN_LOST: + return "The connection was lost." + elif mqtt_errno == MQTT_ERR_TLS: + return "A TLS error occurred." + elif mqtt_errno == MQTT_ERR_PAYLOAD_SIZE: + return "Payload too large." + elif mqtt_errno == MQTT_ERR_NOT_SUPPORTED: + return "This feature is not supported." + elif mqtt_errno == MQTT_ERR_AUTH: + return "Authorisation failed." + elif mqtt_errno == MQTT_ERR_ACL_DENIED: + return "Access denied by ACL." + elif mqtt_errno == MQTT_ERR_UNKNOWN: + return "Unknown error." + elif mqtt_errno == MQTT_ERR_ERRNO: + return "Error defined by errno." + elif mqtt_errno == MQTT_ERR_QUEUE_SIZE: + return "Message queue full." + else: + return "Unknown error." + + +def connack_string(connack_code): + """Return the string associated with a CONNACK result.""" + if connack_code == CONNACK_ACCEPTED: + return "Connection Accepted." + elif connack_code == CONNACK_REFUSED_PROTOCOL_VERSION: + return "Connection Refused: unacceptable protocol version." + elif connack_code == CONNACK_REFUSED_IDENTIFIER_REJECTED: + return "Connection Refused: identifier rejected." + elif connack_code == CONNACK_REFUSED_SERVER_UNAVAILABLE: + return "Connection Refused: broker unavailable." + elif connack_code == CONNACK_REFUSED_BAD_USERNAME_PASSWORD: + return "Connection Refused: bad user name or password." + elif connack_code == CONNACK_REFUSED_NOT_AUTHORIZED: + return "Connection Refused: not authorised." + else: + return "Connection Refused: unknown reason." + + +def base62(num, base=string.digits + string.ascii_letters, padding=1): + """Convert a number to base-62 representation.""" + assert num >= 0 + digits = [] + while num: + num, rest = divmod(num, 62) + digits.append(base[rest]) + digits.extend(base[0] for _ in range(len(digits), padding)) + return ''.join(reversed(digits)) + + +def topic_matches_sub(sub, topic): + """Check whether a topic matches a subscription. + + For example: + + foo/bar would match the subscription foo/# or +/bar + non/matching would not match the subscription non/+/+ + """ + matcher = MQTTMatcher() + matcher[sub] = True + try: + next(matcher.iter_match(topic)) + return True + except StopIteration: + return False + + +def _socketpair_compat(): + """TCP/IP socketpair including Windows support""" + listensock = socket.socket( + socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_IP) + listensock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + listensock.bind(("127.0.0.1", 0)) + listensock.listen(1) + + iface, port = listensock.getsockname() + sock1 = socket.socket( + socket.AF_INET, socket.SOCK_STREAM, socket.IPPROTO_IP) + sock1.setblocking(0) + try: + sock1.connect(("127.0.0.1", port)) + except socket.error as err: + if err.errno != errno.EINPROGRESS and err.errno != errno.EWOULDBLOCK and err.errno != EAGAIN: + raise + sock2, address = listensock.accept() + sock2.setblocking(0) + listensock.close() + return (sock1, sock2) + + +class MQTTMessageInfo(object): + """This is a class returned from Client.publish() and can be used to find + out the mid of the message that was published, and to determine whether the + message has been published, and/or wait until it is published. + """ + + __slots__ = 'mid', '_published', '_condition', 'rc', '_iterpos' + + def __init__(self, mid): + self.mid = mid + self._published = False + self._condition = threading.Condition() + self.rc = 0 + self._iterpos = 0 + + def __str__(self): + return str((self.rc, self.mid)) + + def __iter__(self): + self._iterpos = 0 + return self + + def __next__(self): + return self.next() + + def next(self): + if self._iterpos == 0: + self._iterpos = 1 + return self.rc + elif self._iterpos == 1: + self._iterpos = 2 + return self.mid + else: + raise StopIteration + + def __getitem__(self, index): + if index == 0: + return self.rc + elif index == 1: + return self.mid + else: + raise IndexError("index out of range") + + def _set_as_published(self): + with self._condition: + self._published = True + self._condition.notify() + + def wait_for_publish(self): + """Block until the message associated with this object is published.""" + if self.rc == MQTT_ERR_QUEUE_SIZE: + raise ValueError('Message is not queued due to ERR_QUEUE_SIZE') + with self._condition: + while not self._published: + self._condition.wait() + + def is_published(self): + """Returns True if the message associated with this object has been + published, else returns False.""" + if self.rc == MQTT_ERR_QUEUE_SIZE: + raise ValueError('Message is not queued due to ERR_QUEUE_SIZE') + with self._condition: + return self._published + + +class MQTTMessage(object): + """ This is a class that describes an incoming or outgoing message. It is + passed to the on_message callback as the message parameter. + + Members: + + topic : String/bytes. topic that the message was published on. + payload : String/bytes the message payload. + qos : Integer. The message Quality of Service 0, 1 or 2. + retain : Boolean. If true, the message is a retained message and not fresh. + mid : Integer. The message id. + properties: Properties class. In MQTT v5.0, the properties associated with the message. + + On Python 3, topic must be bytes. + """ + + __slots__ = 'timestamp', 'state', 'dup', 'mid', '_topic', 'payload', 'qos', 'retain', 'info', 'properties' + + def __init__(self, mid=0, topic=b""): + self.timestamp = 0 + self.state = mqtt_ms_invalid + self.dup = False + self.mid = mid + self._topic = topic + self.payload = b"" + self.qos = 0 + self.retain = False + self.info = MQTTMessageInfo(mid) + + def __eq__(self, other): + """Override the default Equals behavior""" + if isinstance(other, self.__class__): + return self.mid == other.mid + return False + + def __ne__(self, other): + """Define a non-equality test""" + return not self.__eq__(other) + + @property + def topic(self): + return self._topic.decode('utf-8') + + @topic.setter + def topic(self, value): + self._topic = value + + +class Client(object): + """MQTT version 3.1/3.1.1/5.0 client class. + + This is the main class for use communicating with an MQTT broker. + + General usage flow: + + * Use connect()/connect_async() to connect to a broker + * Call loop() frequently to maintain network traffic flow with the broker + * Or use loop_start() to set a thread running to call loop() for you. + * Or use loop_forever() to handle calling loop() for you in a blocking + * function. + * Use subscribe() to subscribe to a topic and receive messages + * Use publish() to send messages + * Use disconnect() to disconnect from the broker + + Data returned from the broker is made available with the use of callback + functions as described below. + + Callbacks + ========= + + A number of callback functions are available to receive data back from the + broker. To use a callback, define a function and then assign it to the + client: + + def on_connect(client, userdata, flags, rc, properties=None): + print("Connection returned " + str(rc)) + + client.on_connect = on_connect + + All of the callbacks as described below have a "client" and an "userdata" + argument. "client" is the Client instance that is calling the callback. + "userdata" is user data of any type and can be set when creating a new client + instance or with user_data_set(userdata). + + The callbacks: + + on_connect(client, userdata, flags, rc, properties=None): called when the broker responds to our connection + request. + flags is a dict that contains response flags from the broker: + flags['session present'] - this flag is useful for clients that are + using clean session set to 0 only. If a client with clean + session=0, that reconnects to a broker that it has previously + connected to, this flag indicates whether the broker still has the + session information for the client. If 1, the session still exists. + The value of rc determines success or not: + 0: Connection successful + 1: Connection refused - incorrect protocol version + 2: Connection refused - invalid client identifier + 3: Connection refused - server unavailable + 4: Connection refused - bad username or password + 5: Connection refused - not authorised + 6-255: Currently unused. + + on_disconnect(client, userdata, rc): called when the client disconnects from the broker. + The rc parameter indicates the disconnection state. If MQTT_ERR_SUCCESS + (0), the callback was called in response to a disconnect() call. If any + other value the disconnection was unexpected, such as might be caused by + a network error. + + on_disconnect(client, userdata, rc, properties): called when the MQTT V5 client disconnects from the broker. + When using MQTT V5, the broker can send a disconnect message to the client. The + message can contain a reason code and MQTT V5 properties. The properties parameter could be + None if they do not exist in the disconnect message. + + on_message(client, userdata, message): called when a message has been received on a + topic that the client subscribes to. The message variable is a + MQTTMessage that describes all of the message parameters. + + on_publish(client, userdata, mid): called when a message that was to be sent using the + publish() call has completed transmission to the broker. For messages + with QoS levels 1 and 2, this means that the appropriate handshakes have + completed. For QoS 0, this simply means that the message has left the + client. The mid variable matches the mid variable returned from the + corresponding publish() call, to allow outgoing messages to be tracked. + This callback is important because even if the publish() call returns + success, it does not always mean that the message has been sent. + + on_subscribe(client, userdata, mid, granted_qos, properties=None): called when the broker responds to a + subscribe request. The mid variable matches the mid variable returned + from the corresponding subscribe() call. The granted_qos variable is a + list of integers that give the QoS level the broker has granted for each + of the different subscription requests. + + on_unsubscribe(client, userdata, mid): called when the broker responds to an unsubscribe + request. The mid variable matches the mid variable returned from the + corresponding unsubscribe() call. + + on_log(client, userdata, level, buf): called when the client has log information. Define + to allow debugging. The level variable gives the severity of the message + and will be one of MQTT_LOG_INFO, MQTT_LOG_NOTICE, MQTT_LOG_WARNING, + MQTT_LOG_ERR, and MQTT_LOG_DEBUG. The message itself is in buf. + + on_socket_open(client, userdata, sock): Called when the socket has been opened. Use this + to register the socket with an external event loop for reading. + + on_socket_close(client, userdata, sock): Called when the socket is about to be closed. + Use this to unregister a socket from an external event loop for reading. + + on_socket_register_write(client, userdata, sock): Called when a write operation to the + socket failed because it would have blocked, e.g. output buffer full. Use this to + register the socket with an external event loop for writing. + + on_socket_unregister_write(client, userdata, sock): Called when a write operation to the + socket succeeded after it had previously failed. Use this to unregister the socket + from an external event loop for writing. + """ + + def __init__(self, client_id="", clean_session=None, userdata=None, + protocol=MQTTv311, transport="tcp"): + """client_id is the unique client id string used when connecting to the + broker. If client_id is zero length or None, then the behaviour is + defined by which protocol version is in use. If using MQTT v3.1.1, then + a zero length client id will be sent to the broker and the broker will + generate a random for the client. If using MQTT v3.1 then an id will be + randomly generated. In both cases, clean_session must be True. If this + is not the case a ValueError will be raised. + + clean_session is a boolean that determines the client type. If True, + the broker will remove all information about this client when it + disconnects. If False, the client is a persistent client and + subscription information and queued messages will be retained when the + client disconnects. + Note that a client will never discard its own outgoing messages on + disconnect. Calling connect() or reconnect() will cause the messages to + be resent. Use reinitialise() to reset a client to its original state. + The clean_session argument only applies to MQTT versions v3.1.1 and v3.1. + It is not accepted if the MQTT version is v5.0 - use the clean_start + argument on connect() instead. + + userdata is user defined data of any type that is passed as the "userdata" + parameter to callbacks. It may be updated at a later point with the + user_data_set() function. + + The protocol argument allows explicit setting of the MQTT version to + use for this client. Can be paho.mqtt.client.MQTTv311 (v3.1.1), + paho.mqtt.client.MQTTv31 (v3.1) or paho.mqtt.client.MQTTv5 (v5.0), + with the default being v3.1.1. + + Set transport to "websockets" to use WebSockets as the transport + mechanism. Set to "tcp" to use raw TCP, which is the default. + """ + + if protocol == MQTTv5: + if clean_session != None: + raise ValueError('Clean session is not used for MQTT 5.0') + else: + if clean_session == None: + clean_session = True + if not clean_session and (client_id == "" or client_id is None): + raise ValueError( + 'A client id must be provided if clean session is False.') + self._clean_session = clean_session + + if transport.lower() not in ('websockets', 'tcp'): + raise ValueError( + 'transport must be "websockets" or "tcp", not %s' % transport) + self._transport = transport.lower() + self._protocol = protocol + self._userdata = userdata + self._sock = None + self._sockpairR, self._sockpairW = (None, None,) + self._sockpairR, self._sockpairW = _socketpair_compat() + self._keepalive = 60 + self._message_retry = 20 + self._last_retry_check = 0 + self._client_mode = MQTT_CLIENT + # [MQTT-3.1.3-4] Client Id must be UTF-8 encoded string. + if client_id == "" or client_id is None: + if protocol == MQTTv31: + self._client_id = base62(uuid.uuid4().int, padding=22) + else: + self._client_id = b"" + else: + self._client_id = client_id + if isinstance(self._client_id, unicode): + self._client_id = self._client_id.encode('utf-8') + + self._username = None + self._password = None + self._in_packet = { + "command": 0, + "have_remaining": 0, + "remaining_count": [], + "remaining_mult": 1, + "remaining_length": 0, + "packet": b"", + "to_process": 0, + "pos": 0} + self._out_packet = collections.deque() + self._current_out_packet = None + self._last_msg_in = time_func() + self._last_msg_out = time_func() + self._reconnect_min_delay = 1 + self._reconnect_max_delay = 120 + self._reconnect_delay = None + self._ping_t = 0 + self._last_mid = 0 + self._state = mqtt_cs_new + self._out_messages = collections.OrderedDict() + self._in_messages = collections.OrderedDict() + self._max_inflight_messages = 20 + self._inflight_messages = 0 + self._max_queued_messages = 0 + self._connect_properties = None + self._will_properties = None + self._will = False + self._will_topic = b"" + self._will_payload = b"" + self._will_qos = 0 + self._will_retain = False + self._on_message_filtered = MQTTMatcher() + self._host = "" + self._port = 1883 + self._bind_address = "" + self._bind_port = 0 + self._proxy = {} + self._in_callback_mutex = threading.Lock() + self._callback_mutex = threading.RLock() + self._out_packet_mutex = threading.Lock() + self._current_out_packet_mutex = threading.RLock() + self._msgtime_mutex = threading.Lock() + self._out_message_mutex = threading.RLock() + self._in_message_mutex = threading.Lock() + self._reconnect_delay_mutex = threading.Lock() + self._mid_generate_mutex = threading.Lock() + self._thread = None + self._thread_terminate = False + self._ssl = False + self._ssl_context = None + # Only used when SSL context does not have check_hostname attribute + self._tls_insecure = False + self._logger = None + self._registered_write = False + # No default callbacks + self._on_log = None + self._on_connect = None + self._on_subscribe = None + self._on_message = None + self._on_publish = None + self._on_unsubscribe = None + self._on_disconnect = None + self._on_socket_open = None + self._on_socket_close = None + self._on_socket_register_write = None + self._on_socket_unregister_write = None + self._websocket_path = "/mqtt" + self._websocket_extra_headers = None + # for clean_start == MQTT_CLEAN_START_FIRST_ONLY + self._mqttv5_first_connect = True + + def __del__(self): + self._reset_sockets() + + def _sock_recv(self, bufsize): + try: + return self._sock.recv(bufsize) + except socket.error as err: + if self._ssl and err.errno == ssl.SSL_ERROR_WANT_READ: + raise WouldBlockError() + if self._ssl and err.errno == ssl.SSL_ERROR_WANT_WRITE: + self._call_socket_register_write() + raise WouldBlockError() + if err.errno == EAGAIN: + raise WouldBlockError() + raise + + def _sock_send(self, buf): + try: + return self._sock.send(buf) + except socket.error as err: + if self._ssl and err.errno == ssl.SSL_ERROR_WANT_READ: + raise WouldBlockError() + if self._ssl and err.errno == ssl.SSL_ERROR_WANT_WRITE: + self._call_socket_register_write() + raise WouldBlockError() + if err.errno == EAGAIN: + self._call_socket_register_write() + raise WouldBlockError() + raise + + def _sock_close(self): + """Close the connection to the server.""" + if not self._sock: + return + + try: + sock = self._sock + self._sock = None + self._call_socket_unregister_write(sock) + self._call_socket_close(sock) + finally: + # In case a callback fails, still close the socket to avoid leaking the file descriptor. + sock.close() + + def _reset_sockets(self): + self._sock_close() + + if self._sockpairR: + self._sockpairR.close() + self._sockpairR = None + if self._sockpairW: + self._sockpairW.close() + self._sockpairW = None + + def reinitialise(self, client_id="", clean_session=True, userdata=None): + self._reset_sockets() + + self.__init__(client_id, clean_session, userdata) + + def ws_set_options(self, path="/mqtt", headers=None): + """ Set the path and headers for a websocket connection + + path is a string starting with / which should be the endpoint of the + mqtt connection on the remote server + + headers can be either a dict or a callable object. If it is a dict then + the extra items in the dict are added to the websocket headers. If it is + a callable, then the default websocket headers are passed into this + function and the result is used as the new headers. + """ + self._websocket_path = path + + if headers is not None: + if isinstance(headers, dict) or callable(headers): + self._websocket_extra_headers = headers + else: + raise ValueError( + "'headers' option to ws_set_options has to be either a dictionary or callable") + + def tls_set_context(self, context=None): + """Configure network encryption and authentication context. Enables SSL/TLS support. + + context : an ssl.SSLContext object. By default this is given by + `ssl.create_default_context()`, if available. + + Must be called before connect() or connect_async().""" + if self._ssl_context is not None: + raise ValueError('SSL/TLS has already been configured.') + + # Assume that have SSL support, or at least that context input behaves like ssl.SSLContext + # in current versions of Python + + if context is None: + if hasattr(ssl, 'create_default_context'): + context = ssl.create_default_context() + else: + raise ValueError('SSL/TLS context must be specified') + + self._ssl = True + self._ssl_context = context + + # Ensure _tls_insecure is consistent with check_hostname attribute + if hasattr(context, 'check_hostname'): + self._tls_insecure = not context.check_hostname + + def tls_set(self, ca_certs=None, certfile=None, keyfile=None, cert_reqs=None, tls_version=None, ciphers=None): + """Configure network encryption and authentication options. Enables SSL/TLS support. + + ca_certs : a string path to the Certificate Authority certificate files + that are to be treated as trusted by this client. If this is the only + option given then the client will operate in a similar manner to a web + browser. That is to say it will require the broker to have a + certificate signed by the Certificate Authorities in ca_certs and will + communicate using TLS v1, but will not attempt any form of + authentication. This provides basic network encryption but may not be + sufficient depending on how the broker is configured. + By default, on Python 2.7.9+ or 3.4+, the default certification + authority of the system is used. On older Python version this parameter + is mandatory. + + certfile and keyfile are strings pointing to the PEM encoded client + certificate and private keys respectively. If these arguments are not + None then they will be used as client information for TLS based + authentication. Support for this feature is broker dependent. Note + that if either of these files in encrypted and needs a password to + decrypt it, Python will ask for the password at the command line. It is + not currently possible to define a callback to provide the password. + + cert_reqs allows the certificate requirements that the client imposes + on the broker to be changed. By default this is ssl.CERT_REQUIRED, + which means that the broker must provide a certificate. See the ssl + pydoc for more information on this parameter. + + tls_version allows the version of the SSL/TLS protocol used to be + specified. By default TLS v1 is used. Previous versions (all versions + beginning with SSL) are possible but not recommended due to possible + security problems. + + ciphers is a string specifying which encryption ciphers are allowable + for this connection, or None to use the defaults. See the ssl pydoc for + more information. + + Must be called before connect() or connect_async().""" + if ssl is None: + raise ValueError('This platform has no SSL/TLS.') + + if not hasattr(ssl, 'SSLContext'): + # Require Python version that has SSL context support in standard library + raise ValueError( + 'Python 2.7.9 and 3.2 are the minimum supported versions for TLS.') + + if ca_certs is None and not hasattr(ssl.SSLContext, 'load_default_certs'): + raise ValueError('ca_certs must not be None.') + + # Create SSLContext object + if tls_version is None: + tls_version = ssl.PROTOCOL_TLSv1 + # If the python version supports it, use highest TLS version automatically + if hasattr(ssl, "PROTOCOL_TLS"): + tls_version = ssl.PROTOCOL_TLS + context = ssl.SSLContext(tls_version) + + # Configure context + if certfile is not None: + context.load_cert_chain(certfile, keyfile) + + if cert_reqs == ssl.CERT_NONE and hasattr(context, 'check_hostname'): + context.check_hostname = False + + context.verify_mode = ssl.CERT_REQUIRED if cert_reqs is None else cert_reqs + + if ca_certs is not None: + context.load_verify_locations(ca_certs) + else: + context.load_default_certs() + + if ciphers is not None: + context.set_ciphers(ciphers) + + self.tls_set_context(context) + + if cert_reqs != ssl.CERT_NONE: + # Default to secure, sets context.check_hostname attribute + # if available + self.tls_insecure_set(False) + else: + # But with ssl.CERT_NONE, we can not check_hostname + self.tls_insecure_set(True) + + def tls_insecure_set(self, value): + """Configure verification of the server hostname in the server certificate. + + If value is set to true, it is impossible to guarantee that the host + you are connecting to is not impersonating your server. This can be + useful in initial server testing, but makes it possible for a malicious + third party to impersonate your server through DNS spoofing, for + example. + + Do not use this function in a real system. Setting value to true means + there is no point using encryption. + + Must be called before connect() and after either tls_set() or + tls_set_context().""" + + if self._ssl_context is None: + raise ValueError( + 'Must configure SSL context before using tls_insecure_set.') + + self._tls_insecure = value + + # Ensure check_hostname is consistent with _tls_insecure attribute + if hasattr(self._ssl_context, 'check_hostname'): + # Rely on SSLContext to check host name + # If verify_mode is CERT_NONE then the host name will never be checked + self._ssl_context.check_hostname = not value + + def proxy_set(self, **proxy_args): + """Configure proxying of MQTT connection. Enables support for SOCKS or + HTTP proxies. + + Proxying is done through the PySocks library. Brief descriptions of the + proxy_args parameters are below; see the PySocks docs for more info. + + (Required) + proxy_type: One of {socks.HTTP, socks.SOCKS4, or socks.SOCKS5} + proxy_addr: IP address or DNS name of proxy server + + (Optional) + proxy_rdns: boolean indicating whether proxy lookup should be performed + remotely (True, default) or locally (False) + proxy_username: username for SOCKS5 proxy, or userid for SOCKS4 proxy + proxy_password: password for SOCKS5 proxy + + Must be called before connect() or connect_async().""" + if socks is None: + raise ValueError("PySocks must be installed for proxy support.") + elif not self._proxy_is_valid(proxy_args): + raise ValueError("proxy_type and/or proxy_addr are invalid.") + else: + self._proxy = proxy_args + + def enable_logger(self, logger=None): + """ Enables a logger to send log messages to """ + if logger is None: + if self._logger is not None: + # Do not replace existing logger + return + logger = logging.getLogger(__name__) + self._logger = logger + + def disable_logger(self): + self._logger = None + + def connect(self, host, port=1883, keepalive=60, bind_address="", bind_port=0, + clean_start=MQTT_CLEAN_START_FIRST_ONLY, properties=None): + """Connect to a remote broker. + + host is the hostname or IP address of the remote broker. + port is the network port of the server host to connect to. Defaults to + 1883. Note that the default port for MQTT over SSL/TLS is 8883 so if you + are using tls_set() the port may need providing. + keepalive: Maximum period in seconds between communications with the + broker. If no other messages are being exchanged, this controls the + rate at which the client will send ping messages to the broker. + clean_start: (MQTT v5.0 only) True, False or MQTT_CLEAN_START_FIRST_ONLY. + Sets the MQTT v5.0 clean_start flag always, never or on the first successful connect only, + respectively. MQTT session data (such as outstanding messages and subscriptions) + is cleared on successful connect when the clean_start flag is set. + properties: (MQTT v5.0 only) the MQTT v5.0 properties to be sent in the + MQTT connect packet. + """ + + if self._protocol == MQTTv5: + self._mqttv5_first_connect == True + else: + if clean_start != MQTT_CLEAN_START_FIRST_ONLY: + raise ValueError("Clean start only applies to MQTT V5") + if properties != None: + raise ValueError("Properties only apply to MQTT V5") + + self.connect_async(host, port, keepalive, + bind_address, bind_port, clean_start, properties) + return self.reconnect() + + def connect_srv(self, domain=None, keepalive=60, bind_address="", + clean_start=MQTT_CLEAN_START_FIRST_ONLY, properties=None): + """Connect to a remote broker. + + domain is the DNS domain to search for SRV records; if None, + try to determine local domain name. + keepalive, bind_address, clean_start and properties are as for connect() + """ + + if HAVE_DNS is False: + raise ValueError( + 'No DNS resolver library found, try "pip install dnspython" or "pip3 install dnspython3".') + + if domain is None: + domain = socket.getfqdn() + domain = domain[domain.find('.') + 1:] + + try: + rr = '_mqtt._tcp.%s' % domain + if self._ssl: + # IANA specifies secure-mqtt (not mqtts) for port 8883 + rr = '_secure-mqtt._tcp.%s' % domain + answers = [] + for answer in dns.resolver.query(rr, dns.rdatatype.SRV): + addr = answer.target.to_text()[:-1] + answers.append( + (addr, answer.port, answer.priority, answer.weight)) + except (dns.resolver.NXDOMAIN, dns.resolver.NoAnswer, dns.resolver.NoNameservers): + raise ValueError("No answer/NXDOMAIN for SRV in %s" % (domain)) + + # FIXME: doesn't account for weight + for answer in answers: + host, port, prio, weight = answer + + try: + return self.connect(host, port, keepalive, bind_address, clean_start, properties) + except Exception: + pass + + raise ValueError("No SRV hosts responded") + + def connect_async(self, host, port=1883, keepalive=60, bind_address="", bind_port=0, + clean_start=MQTT_CLEAN_START_FIRST_ONLY, properties=None): + """Connect to a remote broker asynchronously. This is a non-blocking + connect call that can be used with loop_start() to provide very quick + start. + + host is the hostname or IP address of the remote broker. + port is the network port of the server host to connect to. Defaults to + 1883. Note that the default port for MQTT over SSL/TLS is 8883 so if you + are using tls_set() the port may need providing. + keepalive: Maximum period in seconds between communications with the + broker. If no other messages are being exchanged, this controls the + rate at which the client will send ping messages to the broker. + clean_start: (MQTT v5.0 only) True, False or MQTT_CLEAN_START_FIRST_ONLY. + Sets the MQTT v5.0 clean_start flag always, never or on the first successful connect only, + respectively. MQTT session data (such as outstanding messages and subscriptions) + is cleared on successful connect when the clean_start flag is set. + properties: (MQTT v5.0 only) the MQTT v5.0 properties to be sent in the + MQTT connect packet. Use the Properties class. + """ + if host is None or len(host) == 0: + raise ValueError('Invalid host.') + if port <= 0: + raise ValueError('Invalid port number.') + if keepalive < 0: + raise ValueError('Keepalive must be >=0.') + if bind_address != "" and bind_address is not None: + if sys.version_info < (2, 7) or (3, 0) < sys.version_info < (3, 2): + raise ValueError('bind_address requires Python 2.7 or 3.2.') + if bind_port < 0: + raise ValueError('Invalid bind port number.') + + self._host = host + self._port = port + self._keepalive = keepalive + self._bind_address = bind_address + self._bind_port = bind_port + self._clean_start = clean_start + self._connect_properties = properties + self._state = mqtt_cs_connect_async + + + def reconnect_delay_set(self, min_delay=1, max_delay=120): + """ Configure the exponential reconnect delay + + When connection is lost, wait initially min_delay seconds and + double this time every attempt. The wait is capped at max_delay. + Once the client is fully connected (e.g. not only TCP socket, but + received a success CONNACK), the wait timer is reset to min_delay. + """ + with self._reconnect_delay_mutex: + self._reconnect_min_delay = min_delay + self._reconnect_max_delay = max_delay + self._reconnect_delay = None + + def reconnect(self): + """Reconnect the client after a disconnect. Can only be called after + connect()/connect_async().""" + if len(self._host) == 0: + raise ValueError('Invalid host.') + if self._port <= 0: + raise ValueError('Invalid port number.') + + self._in_packet = { + "command": 0, + "have_remaining": 0, + "remaining_count": [], + "remaining_mult": 1, + "remaining_length": 0, + "packet": b"", + "to_process": 0, + "pos": 0} + + with self._out_packet_mutex: + self._out_packet = collections.deque() + + with self._current_out_packet_mutex: + self._current_out_packet = None + + with self._msgtime_mutex: + self._last_msg_in = time_func() + self._last_msg_out = time_func() + + self._ping_t = 0 + self._state = mqtt_cs_new + + self._sock_close() + + # Put messages in progress in a valid state. + self._messages_reconnect_reset() + + sock = self._create_socket_connection() + + if self._ssl: + # SSL is only supported when SSLContext is available (implies Python >= 2.7.9 or >= 3.2) + + verify_host = not self._tls_insecure + try: + # Try with server_hostname, even it's not supported in certain scenarios + sock = self._ssl_context.wrap_socket( + sock, + server_hostname=self._host, + do_handshake_on_connect=False, + ) + except ssl.CertificateError: + # CertificateError is derived from ValueError + raise + except ValueError: + # Python version requires SNI in order to handle server_hostname, but SNI is not available + sock = self._ssl_context.wrap_socket( + sock, + do_handshake_on_connect=False, + ) + else: + # If SSL context has already checked hostname, then don't need to do it again + if (hasattr(self._ssl_context, 'check_hostname') and + self._ssl_context.check_hostname): + verify_host = False + + sock.settimeout(self._keepalive) + sock.do_handshake() + + if verify_host: + ssl.match_hostname(sock.getpeercert(), self._host) + + if self._transport == "websockets": + sock.settimeout(self._keepalive) + sock = WebsocketWrapper(sock, self._host, self._port, self._ssl, + self._websocket_path, self._websocket_extra_headers) + + self._sock = sock + self._sock.setblocking(0) + self._registered_write = False + self._call_socket_open() + + return self._send_connect(self._keepalive) + + def loop(self, timeout=1.0, max_packets=1): + """Process network events. + + This function must be called regularly to ensure communication with the + broker is carried out. It calls select() on the network socket to wait + for network events. If incoming data is present it will then be + processed. Outgoing commands, from e.g. publish(), are normally sent + immediately that their function is called, but this is not always + possible. loop() will also attempt to send any remaining outgoing + messages, which also includes commands that are part of the flow for + messages with QoS>0. + + timeout: The time in seconds to wait for incoming/outgoing network + traffic before timing out and returning. + max_packets: Not currently used. + + Returns MQTT_ERR_SUCCESS on success. + Returns >0 on error. + + A ValueError will be raised if timeout < 0""" + if timeout < 0.0: + raise ValueError('Invalid timeout.') + + with self._current_out_packet_mutex: + with self._out_packet_mutex: + if self._current_out_packet is None and len(self._out_packet) > 0: + self._current_out_packet = self._out_packet.popleft() + + if self._current_out_packet: + wlist = [self._sock] + else: + wlist = [] + + # used to check if there are any bytes left in the (SSL) socket + pending_bytes = 0 + if hasattr(self._sock, 'pending'): + pending_bytes = self._sock.pending() + + # if bytes are pending do not wait in select + if pending_bytes > 0: + timeout = 0.0 + + # sockpairR is used to break out of select() before the timeout, on a + # call to publish() etc. + rlist = [self._sock, self._sockpairR] + try: + socklist = select.select(rlist, wlist, [], timeout) + except TypeError: + # Socket isn't correct type, in likelihood connection is lost + return MQTT_ERR_CONN_LOST + except ValueError: + # Can occur if we just reconnected but rlist/wlist contain a -1 for + # some reason. + return MQTT_ERR_CONN_LOST + except Exception: + # Note that KeyboardInterrupt, etc. can still terminate since they + # are not derived from Exception + return MQTT_ERR_UNKNOWN + + if self._sock in socklist[0] or pending_bytes > 0: + rc = self.loop_read(max_packets) + if rc or self._sock is None: + return rc + + if self._sockpairR in socklist[0]: + # Stimulate output write even though we didn't ask for it, because + # at that point the publish or other command wasn't present. + socklist[1].insert(0, self._sock) + # Clear sockpairR - only ever a single byte written. + try: + self._sockpairR.recv(1) + except socket.error as err: + if err.errno != EAGAIN: + raise + + if self._sock in socklist[1]: + rc = self.loop_write(max_packets) + if rc or self._sock is None: + return rc + + return self.loop_misc() + + def publish(self, topic, payload=None, qos=0, retain=False, properties=None): + """Publish a message on a topic. + + This causes a message to be sent to the broker and subsequently from + the broker to any clients subscribing to matching topics. + + topic: The topic that the message should be published on. + payload: The actual message to send. If not given, or set to None a + zero length message will be used. Passing an int or float will result + in the payload being converted to a string representing that number. If + you wish to send a true int/float, use struct.pack() to create the + payload you require. + qos: The quality of service level to use. + retain: If set to true, the message will be set as the "last known + good"/retained message for the topic. + properties: (MQTT v5.0 only) the MQTT v5.0 properties to be included. + Use the Properties class. + + Returns a MQTTMessageInfo class, which can be used to determine whether + the message has been delivered (using info.is_published()) or to block + waiting for the message to be delivered (info.wait_for_publish()). The + message ID and return code of the publish() call can be found at + info.mid and info.rc. + + For backwards compatibility, the MQTTMessageInfo class is iterable so + the old construct of (rc, mid) = client.publish(...) is still valid. + + rc is MQTT_ERR_SUCCESS to indicate success or MQTT_ERR_NO_CONN if the + client is not currently connected. mid is the message ID for the + publish request. The mid value can be used to track the publish request + by checking against the mid argument in the on_publish() callback if it + is defined. + + A ValueError will be raised if topic is None, has zero length or is + invalid (contains a wildcard), except if the MQTT version used is v5.0. + For v5.0, a zero length topic can be used when a Topic Alias has been set. + + A ValueError will be raised if qos is not one of 0, 1 or 2, or if + the length of the payload is greater than 268435455 bytes.""" + if self._protocol != MQTTv5: + if topic is None or len(topic) == 0: + raise ValueError('Invalid topic.') + + topic = topic.encode('utf-8') + + if self._topic_wildcard_len_check(topic) != MQTT_ERR_SUCCESS: + raise ValueError('Publish topic cannot contain wildcards.') + + if qos < 0 or qos > 2: + raise ValueError('Invalid QoS level.') + + if isinstance(payload, unicode): + local_payload = payload.encode('utf-8') + elif isinstance(payload, (bytes, bytearray)): + local_payload = payload + elif isinstance(payload, (int, float)): + local_payload = str(payload).encode('ascii') + elif payload is None: + local_payload = b'' + else: + raise TypeError( + 'payload must be a string, bytearray, int, float or None.') + + if len(local_payload) > 268435455: + raise ValueError('Payload too large.') + + local_mid = self._mid_generate() + + if qos == 0: + info = MQTTMessageInfo(local_mid) + rc = self._send_publish( + local_mid, topic, local_payload, qos, retain, False, info, properties) + info.rc = rc + return info + else: + message = MQTTMessage(local_mid, topic) + message.timestamp = time_func() + message.payload = local_payload + message.qos = qos + message.retain = retain + message.dup = False + message.properties = properties + + with self._out_message_mutex: + if self._max_queued_messages > 0 and len(self._out_messages) >= self._max_queued_messages: + message.info.rc = MQTT_ERR_QUEUE_SIZE + return message.info + + if local_mid in self._out_messages: + message.info.rc = MQTT_ERR_QUEUE_SIZE + return message.info + + self._out_messages[message.mid] = message + if self._max_inflight_messages == 0 or self._inflight_messages < self._max_inflight_messages: + self._inflight_messages += 1 + if qos == 1: + message.state = mqtt_ms_wait_for_puback + elif qos == 2: + message.state = mqtt_ms_wait_for_pubrec + + rc = self._send_publish(message.mid, topic, message.payload, message.qos, message.retain, + message.dup, message.info, message.properties) + + # remove from inflight messages so it will be send after a connection is made + if rc is MQTT_ERR_NO_CONN: + self._inflight_messages -= 1 + message.state = mqtt_ms_publish + + message.info.rc = rc + return message.info + else: + message.state = mqtt_ms_queued + message.info.rc = MQTT_ERR_SUCCESS + return message.info + + def username_pw_set(self, username, password=None): + """Set a username and optionally a password for broker authentication. + + Must be called before connect() to have any effect. + Requires a broker that supports MQTT v3.1. + + username: The username to authenticate with. Need have no relationship to the client id. Must be unicode + [MQTT-3.1.3-11]. + Set to None to reset client back to not using username/password for broker authentication. + password: The password to authenticate with. Optional, set to None if not required. If it is unicode, then it + will be encoded as UTF-8. + """ + + # [MQTT-3.1.3-11] User name must be UTF-8 encoded string + self._username = None if username is None else username.encode('utf-8') + self._password = password + if isinstance(self._password, unicode): + self._password = self._password.encode('utf-8') + + def enable_bridge_mode(self): + """Sets the client in a bridge mode instead of client mode. + + Must be called before connect() to have any effect. + Requires brokers that support bridge mode. + + Under bridge mode, the broker will identify the client as a bridge and + not send it's own messages back to it. Hence a subsciption of # is + possible without message loops. This feature also correctly propagates + the retain flag on the messages. + + Currently Mosquitto and RSMB support this feature. This feature can + be used to create a bridge between multiple broker. + """ + self._client_mode = MQTT_BRIDGE + + def is_connected(self): + """Returns the current status of the connection + + True if connection exists + False if connection is closed + """ + return self._state == mqtt_cs_connected + + def disconnect(self, reasoncode=None, properties=None): + """Disconnect a connected client from the broker. + reasoncode: (MQTT v5.0 only) a ReasonCodes instance setting the MQTT v5.0 + reasoncode to be sent with the disconnect. It is optional, the receiver + then assuming that 0 (success) is the value. + properties: (MQTT v5.0 only) a Properties instance setting the MQTT v5.0 properties + to be included. Optional - if not set, no properties are sent. + """ + self._state = mqtt_cs_disconnecting + + if self._sock is None: + return MQTT_ERR_NO_CONN + + return self._send_disconnect(reasoncode, properties) + + def subscribe(self, topic, qos=0, options=None, properties=None): + """Subscribe the client to one or more topics. + + This function may be called in three different ways (and a further three for MQTT v5.0): + + Simple string and integer + ------------------------- + e.g. subscribe("my/topic", 2) + + topic: A string specifying the subscription topic to subscribe to. + qos: The desired quality of service level for the subscription. + Defaults to 0. + options and properties: Not used. + + Simple string and subscribe options (MQTT v5.0 only) + ---------------------------------------------------- + e.g. subscribe("my/topic", options=SubscribeOptions(qos=2)) + + topic: A string specifying the subscription topic to subscribe to. + qos: Not used. + options: The MQTT v5.0 subscribe options. + properties: a Properties instance setting the MQTT v5.0 properties + to be included. Optional - if not set, no properties are sent. + + String and integer tuple + ------------------------ + e.g. subscribe(("my/topic", 1)) + + topic: A tuple of (topic, qos). Both topic and qos must be present in + the tuple. + qos and options: Not used. + properties: Only used for MQTT v5.0. A Properties instance setting the + MQTT v5.0 properties. Optional - if not set, no properties are sent. + + String and subscribe options tuple (MQTT v5.0 only) + --------------------------------------------------- + e.g. subscribe(("my/topic", SubscribeOptions(qos=1))) + + topic: A tuple of (topic, SubscribeOptions). Both topic and subscribe + options must be present in the tuple. + qos and options: Not used. + properties: a Properties instance setting the MQTT v5.0 properties + to be included. Optional - if not set, no properties are sent. + + List of string and integer tuples + --------------------------------- + e.g. subscribe([("my/topic", 0), ("another/topic", 2)]) + + This allows multiple topic subscriptions in a single SUBSCRIPTION + command, which is more efficient than using multiple calls to + subscribe(). + + topic: A list of tuple of format (topic, qos). Both topic and qos must + be present in all of the tuples. + qos, options and properties: Not used. + + List of string and subscribe option tuples (MQTT v5.0 only) + ----------------------------------------------------------- + e.g. subscribe([("my/topic", SubscribeOptions(qos=0), ("another/topic", SubscribeOptions(qos=2)]) + + This allows multiple topic subscriptions in a single SUBSCRIPTION + command, which is more efficient than using multiple calls to + subscribe(). + + topic: A list of tuple of format (topic, SubscribeOptions). Both topic and subscribe + options must be present in all of the tuples. + qos and options: Not used. + properties: a Properties instance setting the MQTT v5.0 properties + to be included. Optional - if not set, no properties are sent. + + The function returns a tuple (result, mid), where result is + MQTT_ERR_SUCCESS to indicate success or (MQTT_ERR_NO_CONN, None) if the + client is not currently connected. mid is the message ID for the + subscribe request. The mid value can be used to track the subscribe + request by checking against the mid argument in the on_subscribe() + callback if it is defined. + + Raises a ValueError if qos is not 0, 1 or 2, or if topic is None or has + zero string length, or if topic is not a string, tuple or list. + """ + topic_qos_list = None + + if isinstance(topic, tuple): + if self._protocol == MQTTv5: + topic, options = topic + if not isinstance(options, SubscribeOptions): + raise ValueError( + 'Subscribe options must be instance of SubscribeOptions class.') + else: + topic, qos = topic + + if isinstance(topic, basestring): + if qos < 0 or qos > 2: + raise ValueError('Invalid QoS level.') + if self._protocol == MQTTv5: + if options == None: + # if no options are provided, use the QoS passed instead + options = SubscribeOptions(qos=qos) + elif qos != 0: + raise ValueError( + 'Subscribe options and qos parameters cannot be combined.') + if not isinstance(options, SubscribeOptions): + raise ValueError( + 'Subscribe options must be instance of SubscribeOptions class.') + topic_qos_list = [(topic.encode('utf-8'), options)] + else: + if topic is None or len(topic) == 0: + raise ValueError('Invalid topic.') + topic_qos_list = [(topic.encode('utf-8'), qos)] + elif isinstance(topic, list): + topic_qos_list = [] + if self._protocol == MQTTv5: + for t, o in topic: + if not isinstance(o, SubscribeOptions): + # then the second value should be QoS + if o < 0 or o > 2: + raise ValueError('Invalid QoS level.') + o = SubscribeOptions(qos=o) + topic_qos_list.append((t.encode('utf-8'), o)) + else: + for t, q in topic: + if q < 0 or q > 2: + raise ValueError('Invalid QoS level.') + if t is None or len(t) == 0 or not isinstance(t, basestring): + raise ValueError('Invalid topic.') + topic_qos_list.append((t.encode('utf-8'), q)) + + if topic_qos_list is None: + raise ValueError("No topic specified, or incorrect topic type.") + + if any(self._filter_wildcard_len_check(topic) != MQTT_ERR_SUCCESS for topic, _ in topic_qos_list): + raise ValueError('Invalid subscription filter.') + + if self._sock is None: + return (MQTT_ERR_NO_CONN, None) + + return self._send_subscribe(False, topic_qos_list, properties) + + def unsubscribe(self, topic, properties=None): + """Unsubscribe the client from one or more topics. + + topic: A single string, or list of strings that are the subscription + topics to unsubscribe from. + properties: (MQTT v5.0 only) a Properties instance setting the MQTT v5.0 properties + to be included. Optional - if not set, no properties are sent. + + Returns a tuple (result, mid), where result is MQTT_ERR_SUCCESS + to indicate success or (MQTT_ERR_NO_CONN, None) if the client is not + currently connected. + mid is the message ID for the unsubscribe request. The mid value can be + used to track the unsubscribe request by checking against the mid + argument in the on_unsubscribe() callback if it is defined. + + Raises a ValueError if topic is None or has zero string length, or is + not a string or list. + """ + topic_list = None + if topic is None: + raise ValueError('Invalid topic.') + if isinstance(topic, basestring): + if len(topic) == 0: + raise ValueError('Invalid topic.') + topic_list = [topic.encode('utf-8')] + elif isinstance(topic, list): + topic_list = [] + for t in topic: + if len(t) == 0 or not isinstance(t, basestring): + raise ValueError('Invalid topic.') + topic_list.append(t.encode('utf-8')) + + if topic_list is None: + raise ValueError("No topic specified, or incorrect topic type.") + + if self._sock is None: + return (MQTT_ERR_NO_CONN, None) + + return self._send_unsubscribe(False, topic_list, properties) + + def loop_read(self, max_packets=1): + """Process read network events. Use in place of calling loop() if you + wish to handle your client reads as part of your own application. + + Use socket() to obtain the client socket to call select() or equivalent + on. + + Do not use if you are using the threaded interface loop_start().""" + if self._sock is None: + return MQTT_ERR_NO_CONN + + max_packets = len(self._out_messages) + len(self._in_messages) + if max_packets < 1: + max_packets = 1 + + for _ in range(0, max_packets): + if self._sock is None: + return MQTT_ERR_NO_CONN + rc = self._packet_read() + if rc > 0: + return self._loop_rc_handle(rc) + elif rc == MQTT_ERR_AGAIN: + return MQTT_ERR_SUCCESS + return MQTT_ERR_SUCCESS + + def loop_write(self, max_packets=1): + """Process write network events. Use in place of calling loop() if you + wish to handle your client writes as part of your own application. + + Use socket() to obtain the client socket to call select() or equivalent + on. + + Use want_write() to determine if there is data waiting to be written. + + Do not use if you are using the threaded interface loop_start().""" + if self._sock is None: + return MQTT_ERR_NO_CONN + + max_packets = len(self._out_packet) + 1 + if max_packets < 1: + max_packets = 1 + + try: + for _ in range(0, max_packets): + rc = self._packet_write() + if rc > 0: + return self._loop_rc_handle(rc) + elif rc == MQTT_ERR_AGAIN: + return MQTT_ERR_SUCCESS + return MQTT_ERR_SUCCESS + finally: + if self.want_write(): + self._call_socket_register_write() + else: + self._call_socket_unregister_write() + + def want_write(self): + """Call to determine if there is network data waiting to be written. + Useful if you are calling select() yourself rather than using loop(). + """ + if self._current_out_packet or len(self._out_packet) > 0: + return True + else: + return False + + def loop_misc(self): + """Process miscellaneous network events. Use in place of calling loop() if you + wish to call select() or equivalent on. + + Do not use if you are using the threaded interface loop_start().""" + if self._sock is None: + return MQTT_ERR_NO_CONN + + now = time_func() + self._check_keepalive() + if self._last_retry_check + 1 < now: + # Only check once a second at most + self._message_retry_check() + self._last_retry_check = now + + if self._ping_t > 0 and now - self._ping_t >= self._keepalive: + # client->ping_t != 0 means we are waiting for a pingresp. + # This hasn't happened in the keepalive time so we should disconnect. + self._sock_close() + + if self._state == mqtt_cs_disconnecting: + rc = MQTT_ERR_SUCCESS + else: + rc = 1 + + with self._callback_mutex: + if self.on_disconnect: + with self._in_callback_mutex: + try: + self.on_disconnect(self, self._userdata, rc) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_disconnect: %s', err) + + return MQTT_ERR_CONN_LOST + + return MQTT_ERR_SUCCESS + + def max_inflight_messages_set(self, inflight): + """Set the maximum number of messages with QoS>0 that can be part way + through their network flow at once. Defaults to 20.""" + if inflight < 0: + raise ValueError('Invalid inflight.') + self._max_inflight_messages = inflight + + def max_queued_messages_set(self, queue_size): + """Set the maximum number of messages in the outgoing message queue. + 0 means unlimited.""" + if queue_size < 0: + raise ValueError('Invalid queue size.') + if not isinstance(queue_size, int): + raise ValueError('Invalid type of queue size.') + self._max_queued_messages = queue_size + return self + + def message_retry_set(self, retry): + """Set the timeout in seconds before a message with QoS>0 is retried. + 20 seconds by default.""" + if retry < 0: + raise ValueError('Invalid retry.') + + self._message_retry = retry + + def user_data_set(self, userdata): + """Set the user data variable passed to callbacks. May be any data type.""" + self._userdata = userdata + + def will_set(self, topic, payload=None, qos=0, retain=False, properties=None): + """Set a Will to be sent by the broker in case the client disconnects unexpectedly. + + This must be called before connect() to have any effect. + + topic: The topic that the will message should be published on. + payload: The message to send as a will. If not given, or set to None a + zero length message will be used as the will. Passing an int or float + will result in the payload being converted to a string representing + that number. If you wish to send a true int/float, use struct.pack() to + create the payload you require. + qos: The quality of service level to use for the will. + retain: If set to true, the will message will be set as the "last known + good"/retained message for the topic. + properties: (MQTT v5.0 only) a Properties instance setting the MQTT v5.0 properties + to be included with the will message. Optional - if not set, no properties are sent. + + Raises a ValueError if qos is not 0, 1 or 2, or if topic is None or has + zero string length. + """ + if topic is None or len(topic) == 0: + raise ValueError('Invalid topic.') + + if qos < 0 or qos > 2: + raise ValueError('Invalid QoS level.') + + if properties != None and not isinstance(properties, Properties): + raise ValueError( + "The properties argument must be an instance of the Properties class.") + + if isinstance(payload, unicode): + self._will_payload = payload.encode('utf-8') + elif isinstance(payload, (bytes, bytearray)): + self._will_payload = payload + elif isinstance(payload, (int, float)): + self._will_payload = str(payload).encode('ascii') + elif payload is None: + self._will_payload = b"" + else: + raise TypeError( + 'payload must be a string, bytearray, int, float or None.') + + self._will = True + self._will_topic = topic.encode('utf-8') + self._will_qos = qos + self._will_retain = retain + self._will_properties = properties + + def will_clear(self): + """ Removes a will that was previously configured with will_set(). + + Must be called before connect() to have any effect.""" + self._will = False + self._will_topic = b"" + self._will_payload = b"" + self._will_qos = 0 + self._will_retain = False + + def socket(self): + """Return the socket or ssl object for this client.""" + return self._sock + + def loop_forever(self, timeout=1.0, max_packets=1, retry_first_connection=False): + """This function call loop() for you in an infinite blocking loop. It + is useful for the case where you only want to run the MQTT client loop + in your program. + + loop_forever() will handle reconnecting for you. If you call + disconnect() in a callback it will return. + + + timeout: The time in seconds to wait for incoming/outgoing network + traffic before timing out and returning. + max_packets: Not currently used. + retry_first_connection: Should the first connection attempt be retried on failure. + + Raises socket.error on first connection failures unless retry_first_connection=True + """ + + run = True + + while run: + if self._thread_terminate is True: + break + + if self._state == mqtt_cs_connect_async: + try: + self.reconnect() + except (socket.error, OSError, WebsocketConnectionError): + if not retry_first_connection: + raise + self._easy_log( + MQTT_LOG_DEBUG, "Connection failed, retrying") + self._reconnect_wait() + else: + break + + while run: + rc = MQTT_ERR_SUCCESS + while rc == MQTT_ERR_SUCCESS: + rc = self.loop(timeout, max_packets) + # We don't need to worry about locking here, because we've + # either called loop_forever() when in single threaded mode, or + # in multi threaded mode when loop_stop() has been called and + # so no other threads can access _current_out_packet, + # _out_packet or _messages. + if (self._thread_terminate is True + and self._current_out_packet is None + and len(self._out_packet) == 0 + and len(self._out_messages) == 0): + rc = 1 + run = False + + def should_exit(): + return self._state == mqtt_cs_disconnecting or run is False or self._thread_terminate is True + + if should_exit(): + run = False + else: + self._reconnect_wait() + + if should_exit(): + run = False + else: + try: + self.reconnect() + except (socket.error, OSError, WebsocketConnectionError): + self._easy_log( + MQTT_LOG_DEBUG, "Connection failed, retrying") + + return rc + + def loop_start(self): + """This is part of the threaded client interface. Call this once to + start a new thread to process network traffic. This provides an + alternative to repeatedly calling loop() yourself. + """ + if self._thread is not None: + return MQTT_ERR_INVAL + + self._thread_terminate = False + self._thread = threading.Thread(target=self._thread_main) + self._thread.daemon = True + self._thread.start() + + def loop_stop(self, force=False): + """This is part of the threaded client interface. Call this once to + stop the network thread previously created with loop_start(). This call + will block until the network thread finishes. + + The force parameter is currently ignored. + """ + if self._thread is None: + return MQTT_ERR_INVAL + + self._thread_terminate = True + if threading.current_thread() != self._thread: + self._thread.join() + self._thread = None + + @property + def on_log(self): + """If implemented, called when the client has log information. + Defined to allow debugging.""" + return self._on_log + + @on_log.setter + def on_log(self, func): + """ Define the logging callback implementation. + + Expected signature is: + log_callback(client, userdata, level, buf) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + level: gives the severity of the message and will be one of + MQTT_LOG_INFO, MQTT_LOG_NOTICE, MQTT_LOG_WARNING, + MQTT_LOG_ERR, and MQTT_LOG_DEBUG. + buf: the message itself + """ + self._on_log = func + + @property + def on_connect(self): + """If implemented, called when the broker responds to our connection + request.""" + return self._on_connect + + @on_connect.setter + def on_connect(self, func): + """ Define the connect callback implementation. + + Expected signature for MQTT v3.1 and v3.1.1 is: + connect_callback(client, userdata, flags, rc, properties=None) + + and for MQTT v5.0: + connect_callback(client, userdata, flags, reasonCode, properties) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + flags: response flags sent by the broker + rc: the connection result + reasonCode: the MQTT v5.0 reason code: an instance of the ReasonCode class. + ReasonCode may be compared to interger. + properties: the MQTT v5.0 properties returned from the broker. An instance + of the Properties class. + For MQTT v3.1 and v3.1.1 properties is not provided but for compatibility + with MQTT v5.0, we recommand adding properties=None. + + flags is a dict that contains response flags from the broker: + flags['session present'] - this flag is useful for clients that are + using clean session set to 0 only. If a client with clean + session=0, that reconnects to a broker that it has previously + connected to, this flag indicates whether the broker still has the + session information for the client. If 1, the session still exists. + + The value of rc indicates success or not: + 0: Connection successful + 1: Connection refused - incorrect protocol version + 2: Connection refused - invalid client identifier + 3: Connection refused - server unavailable + 4: Connection refused - bad username or password + 5: Connection refused - not authorised + 6-255: Currently unused. + """ + with self._callback_mutex: + self._on_connect = func + + @property + def on_subscribe(self): + """If implemented, called when the broker responds to a subscribe + request.""" + return self._on_subscribe + + @on_subscribe.setter + def on_subscribe(self, func): + """ Define the suscribe callback implementation. + + Expected signature for MQTT v3.1.1 and v3.1 is: + subscribe_callback(client, userdata, mid, granted_qos, properties=None) + + and for MQTT v5.0: + subscribe_callback(client, userdata, mid, reasonCodes, properties) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + mid: matches the mid variable returned from the corresponding + subscribe() call. + granted_qos: list of integers that give the QoS level the broker has + granted for each of the different subscription requests. + reasonCodes: the MQTT v5.0 reason codes received from the broker for each + subscription. A list of ReasonCodes instances. + properties: the MQTT v5.0 properties received from the broker. A + list of Properties class instances. + """ + with self._callback_mutex: + self._on_subscribe = func + + @property + def on_message(self): + """If implemented, called when a message has been received on a topic + that the client subscribes to. + + This callback will be called for every message received. Use + message_callback_add() to define multiple callbacks that will be called + for specific topic filters.""" + return self._on_message + + @on_message.setter + def on_message(self, func): + """ Define the message received callback implementation. + + Expected signature is: + on_message_callback(client, userdata, message) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + message: an instance of MQTTMessage. + This is a class with members topic, payload, qos, retain. + """ + with self._callback_mutex: + self._on_message = func + + @property + def on_publish(self): + """If implemented, called when a message that was to be sent using the + publish() call has completed transmission to the broker. + + For messages with QoS levels 1 and 2, this means that the appropriate + handshakes have completed. For QoS 0, this simply means that the message + has left the client. + This callback is important because even if the publish() call returns + success, it does not always mean that the message has been sent.""" + return self._on_publish + + @on_publish.setter + def on_publish(self, func): + """ Define the published message callback implementation. + + Expected signature is: + on_publish_callback(client, userdata, mid) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + mid: matches the mid variable returned from the corresponding + publish() call, to allow outgoing messages to be tracked. + """ + with self._callback_mutex: + self._on_publish = func + + @property + def on_unsubscribe(self): + """If implemented, called when the broker responds to an unsubscribe + request.""" + return self._on_unsubscribe + + @on_unsubscribe.setter + def on_unsubscribe(self, func): + """ Define the unsubscribe callback implementation. + + Expected signature for MQTT v3.1.1 and v3.1 is: + unsubscribe_callback(client, userdata, mid) + + and for MQTT v5.0: + unsubscribe_callback(client, userdata, mid, properties, reasonCodes) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + mid: matches the mid variable returned from the corresponding + unsubscribe() call. + properties: the MQTT v5.0 properties received from the broker. A + list of Properties class instances. + reasonCodes: the MQTT v5.0 reason codes received from the broker for each + unsubscribe topic. A list of ReasonCodes instances + """ + with self._callback_mutex: + self._on_unsubscribe = func + + @property + def on_disconnect(self): + """If implemented, called when the client disconnects from the broker. + """ + return self._on_disconnect + + @on_disconnect.setter + def on_disconnect(self, func): + """ Define the disconnect callback implementation. + + Expected signature for MQTT v3.1.1 and v3.1 is: + disconnect_callback(client, userdata, rc) + + and for MQTT v5.0: + disconnect_callback(client, userdata, reasonCode, properties) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + rc: the disconnection result + The rc parameter indicates the disconnection state. If + MQTT_ERR_SUCCESS (0), the callback was called in response to + a disconnect() call. If any other value the disconnection + was unexpected, such as might be caused by a network error. + """ + with self._callback_mutex: + self._on_disconnect = func + + @property + def on_socket_open(self): + """If implemented, called just after the socket was opend.""" + return self._on_socket_open + + @on_socket_open.setter + def on_socket_open(self, func): + """Define the socket_open callback implementation. + + This should be used to register the socket to an external event loop for reading. + + Expected signature is: + socket_open_callback(client, userdata, socket) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + sock: the socket which was just opened. + """ + with self._callback_mutex: + self._on_socket_open = func + + def _call_socket_open(self): + """Call the socket_open callback with the just-opened socket""" + with self._callback_mutex: + if self.on_socket_open: + with self._in_callback_mutex: + try: + self.on_socket_open(self, self._userdata, self._sock) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_socket_open: %s', err) + + @property + def on_socket_close(self): + """If implemented, called just before the socket is closed.""" + return self._on_socket_close + + @on_socket_close.setter + def on_socket_close(self, func): + """Define the socket_close callback implementation. + + This should be used to unregister the socket from an external event loop for reading. + + Expected signature is: + socket_close_callback(client, userdata, socket) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + sock: the socket which is about to be closed. + """ + with self._callback_mutex: + self._on_socket_close = func + + def _call_socket_close(self, sock): + """Call the socket_close callback with the about-to-be-closed socket""" + with self._callback_mutex: + if self.on_socket_close: + with self._in_callback_mutex: + try: + self.on_socket_close(self, self._userdata, sock) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_socket_close: %s', err) + + @property + def on_socket_register_write(self): + """If implemented, called when the socket needs writing but can't.""" + return self._on_socket_register_write + + @on_socket_register_write.setter + def on_socket_register_write(self, func): + """Define the socket_register_write callback implementation. + + This should be used to register the socket with an external event loop for writing. + + Expected signature is: + socket_register_write_callback(client, userdata, socket) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + sock: the socket which should be registered for writing + """ + with self._callback_mutex: + self._on_socket_register_write = func + + def _call_socket_register_write(self): + """Call the socket_register_write callback with the unwritable socket""" + if not self._sock or self._registered_write: + return + self._registered_write = True + with self._callback_mutex: + if self.on_socket_register_write: + try: + self.on_socket_register_write( + self, self._userdata, self._sock) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_socket_register_write: %s', err) + + @property + def on_socket_unregister_write(self): + """If implemented, called when the socket doesn't need writing anymore.""" + return self._on_socket_unregister_write + + @on_socket_unregister_write.setter + def on_socket_unregister_write(self, func): + """Define the socket_unregister_write callback implementation. + + This should be used to unregister the socket from an external event loop for writing. + + Expected signature is: + socket_unregister_write_callback(client, userdata, socket) + + client: the client instance for this callback + userdata: the private user data as set in Client() or userdata_set() + sock: the socket which should be unregistered for writing + """ + with self._callback_mutex: + self._on_socket_unregister_write = func + + def _call_socket_unregister_write(self, sock=None): + """Call the socket_unregister_write callback with the writable socket""" + sock = sock or self._sock + if not sock or not self._registered_write: + return + self._registered_write = False + + with self._callback_mutex: + if self.on_socket_unregister_write: + try: + self.on_socket_unregister_write(self, self._userdata, sock) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_socket_unregister_write: %s', err) + + def message_callback_add(self, sub, callback): + """Register a message callback for a specific topic. + Messages that match 'sub' will be passed to 'callback'. Any + non-matching messages will be passed to the default on_message + callback. + + Call multiple times with different 'sub' to define multiple topic + specific callbacks. + + Topic specific callbacks may be removed with + message_callback_remove().""" + if callback is None or sub is None: + raise ValueError("sub and callback must both be defined.") + + with self._callback_mutex: + self._on_message_filtered[sub] = callback + + def message_callback_remove(self, sub): + """Remove a message callback previously registered with + message_callback_add().""" + if sub is None: + raise ValueError("sub must defined.") + + with self._callback_mutex: + try: + del self._on_message_filtered[sub] + except KeyError: # no such subscription + pass + + # ============================================================ + # Private functions + # ============================================================ + + def _loop_rc_handle(self, rc, properties=None): + if rc: + self._sock_close() + + if self._state == mqtt_cs_disconnecting: + rc = MQTT_ERR_SUCCESS + + with self._callback_mutex: + if self.on_disconnect: + with self._in_callback_mutex: + try: + if properties: + self.on_disconnect( + self, self._userdata, rc, properties) + else: + self.on_disconnect(self, self._userdata, rc) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_disconnect: %s', err) + return rc + + def _packet_read(self): + # This gets called if pselect() indicates that there is network data + # available - ie. at least one byte. What we do depends on what data we + # already have. + # If we've not got a command, attempt to read one and save it. This should + # always work because it's only a single byte. + # Then try to read the remaining length. This may fail because it is may + # be more than one byte - will need to save data pending next read if it + # does fail. + # Then try to read the remaining payload, where 'payload' here means the + # combined variable header and actual payload. This is the most likely to + # fail due to longer length, so save current data and current position. + # After all data is read, send to _mqtt_handle_packet() to deal with. + # Finally, free the memory and reset everything to starting conditions. + if self._in_packet['command'] == 0: + try: + command = self._sock_recv(1) + except WouldBlockError: + return MQTT_ERR_AGAIN + except socket.error as err: + self._easy_log( + MQTT_LOG_ERR, 'failed to receive on socket: %s', err) + return 1 + else: + if len(command) == 0: + return 1 + command, = struct.unpack("!B", command) + self._in_packet['command'] = command + + if self._in_packet['have_remaining'] == 0: + # Read remaining + # Algorithm for decoding taken from pseudo code at + # http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/ac10870_.htm + while True: + try: + byte = self._sock_recv(1) + except WouldBlockError: + return MQTT_ERR_AGAIN + except socket.error as err: + self._easy_log( + MQTT_LOG_ERR, 'failed to receive on socket: %s', err) + return 1 + else: + if len(byte) == 0: + return 1 + byte, = struct.unpack("!B", byte) + self._in_packet['remaining_count'].append(byte) + # Max 4 bytes length for remaining length as defined by protocol. + # Anything more likely means a broken/malicious client. + if len(self._in_packet['remaining_count']) > 4: + return MQTT_ERR_PROTOCOL + + self._in_packet['remaining_length'] += ( + byte & 127) * self._in_packet['remaining_mult'] + self._in_packet['remaining_mult'] = self._in_packet['remaining_mult'] * 128 + + if (byte & 128) == 0: + break + + self._in_packet['have_remaining'] = 1 + self._in_packet['to_process'] = self._in_packet['remaining_length'] + + while self._in_packet['to_process'] > 0: + try: + data = self._sock_recv(self._in_packet['to_process']) + except WouldBlockError: + return MQTT_ERR_AGAIN + except socket.error as err: + self._easy_log( + MQTT_LOG_ERR, 'failed to receive on socket: %s', err) + return 1 + else: + if len(data) == 0: + return 1 + self._in_packet['to_process'] -= len(data) + self._in_packet['packet'] += data + + # All data for this packet is read. + self._in_packet['pos'] = 0 + rc = self._packet_handle() + + # Free data and reset values + self._in_packet = { + 'command': 0, + 'have_remaining': 0, + 'remaining_count': [], + 'remaining_mult': 1, + 'remaining_length': 0, + 'packet': b"", + 'to_process': 0, + 'pos': 0} + + with self._msgtime_mutex: + self._last_msg_in = time_func() + return rc + + def _packet_write(self): + self._current_out_packet_mutex.acquire() + + while self._current_out_packet: + packet = self._current_out_packet + + try: + write_length = self._sock_send( + packet['packet'][packet['pos']:]) + except (AttributeError, ValueError): + self._current_out_packet_mutex.release() + return MQTT_ERR_SUCCESS + except WouldBlockError: + self._current_out_packet_mutex.release() + return MQTT_ERR_AGAIN + except socket.error as err: + self._current_out_packet_mutex.release() + self._easy_log( + MQTT_LOG_ERR, 'failed to receive on socket: %s', err) + return 1 + + if write_length > 0: + packet['to_process'] -= write_length + packet['pos'] += write_length + + if packet['to_process'] == 0: + if (packet['command'] & 0xF0) == PUBLISH and packet['qos'] == 0: + with self._callback_mutex: + if self.on_publish: + with self._in_callback_mutex: + try: + self.on_publish( + self, self._userdata, packet['mid']) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_publish: %s', err) + + packet['info']._set_as_published() + + if (packet['command'] & 0xF0) == DISCONNECT: + self._current_out_packet_mutex.release() + + with self._msgtime_mutex: + self._last_msg_out = time_func() + + with self._callback_mutex: + if self.on_disconnect: + with self._in_callback_mutex: + try: + self.on_disconnect( + self, self._userdata, 0) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_disconnect: %s', err) + + self._sock_close() + return MQTT_ERR_SUCCESS + + with self._out_packet_mutex: + if len(self._out_packet) > 0: + self._current_out_packet = self._out_packet.popleft() + else: + self._current_out_packet = None + else: + break + + self._current_out_packet_mutex.release() + + with self._msgtime_mutex: + self._last_msg_out = time_func() + + return MQTT_ERR_SUCCESS + + def _easy_log(self, level, fmt, *args): + if self.on_log is not None: + buf = fmt % args + try: + self.on_log(self, self._userdata, level, buf) + except Exception: + # Can't _easy_log this, as we'll recurse until we break + pass # self._logger will pick this up, so we're fine + if self._logger is not None: + level_std = LOGGING_LEVEL[level] + self._logger.log(level_std, fmt, *args) + + def _check_keepalive(self): + if self._keepalive == 0: + return MQTT_ERR_SUCCESS + + now = time_func() + + with self._msgtime_mutex: + last_msg_out = self._last_msg_out + last_msg_in = self._last_msg_in + + if self._sock is not None and (now - last_msg_out >= self._keepalive or now - last_msg_in >= self._keepalive): + if self._state == mqtt_cs_connected and self._ping_t == 0: + self._send_pingreq() + with self._msgtime_mutex: + self._last_msg_out = now + self._last_msg_in = now + else: + self._sock_close() + + if self._state == mqtt_cs_disconnecting: + rc = MQTT_ERR_SUCCESS + else: + rc = 1 + with self._callback_mutex: + if self.on_disconnect: + with self._in_callback_mutex: + try: + self.on_disconnect(self, self._userdata, rc) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_disconnect: %s', err) + + def _mid_generate(self): + with self._mid_generate_mutex: + self._last_mid += 1 + if self._last_mid == 65536: + self._last_mid = 1 + return self._last_mid + + @staticmethod + def _topic_wildcard_len_check(topic): + # Search for + or # in a topic. Return MQTT_ERR_INVAL if found. + # Also returns MQTT_ERR_INVAL if the topic string is too long. + # Returns MQTT_ERR_SUCCESS if everything is fine. + if b'+' in topic or b'#' in topic or len(topic) > 65535: + return MQTT_ERR_INVAL + else: + return MQTT_ERR_SUCCESS + + @staticmethod + def _filter_wildcard_len_check(sub): + if (len(sub) == 0 or len(sub) > 65535 + or any(b'+' in p or b'#' in p for p in sub.split(b'/') if len(p) > 1) + or b'#/' in sub): + return MQTT_ERR_INVAL + else: + return MQTT_ERR_SUCCESS + + def _send_pingreq(self): + self._easy_log(MQTT_LOG_DEBUG, "Sending PINGREQ") + rc = self._send_simple_command(PINGREQ) + if rc == MQTT_ERR_SUCCESS: + self._ping_t = time_func() + return rc + + def _send_pingresp(self): + self._easy_log(MQTT_LOG_DEBUG, "Sending PINGRESP") + return self._send_simple_command(PINGRESP) + + def _send_puback(self, mid): + self._easy_log(MQTT_LOG_DEBUG, "Sending PUBACK (Mid: %d)", mid) + return self._send_command_with_mid(PUBACK, mid, False) + + def _send_pubcomp(self, mid): + self._easy_log(MQTT_LOG_DEBUG, "Sending PUBCOMP (Mid: %d)", mid) + return self._send_command_with_mid(PUBCOMP, mid, False) + + def _pack_remaining_length(self, packet, remaining_length): + remaining_bytes = [] + while True: + byte = remaining_length % 128 + remaining_length = remaining_length // 128 + # If there are more digits to encode, set the top bit of this digit + if remaining_length > 0: + byte |= 0x80 + + remaining_bytes.append(byte) + packet.append(byte) + if remaining_length == 0: + # FIXME - this doesn't deal with incorrectly large payloads + return packet + + def _pack_str16(self, packet, data): + if isinstance(data, unicode): + data = data.encode('utf-8') + packet.extend(struct.pack("!H", len(data))) + packet.extend(data) + + def _send_publish(self, mid, topic, payload=b'', qos=0, retain=False, dup=False, info=None, properties=None): + # we assume that topic and payload are already properly encoded + assert not isinstance(topic, unicode) and not isinstance( + payload, unicode) and payload is not None + + if self._sock is None: + return MQTT_ERR_NO_CONN + + command = PUBLISH | ((dup & 0x1) << 3) | (qos << 1) | retain + packet = bytearray() + packet.append(command) + + payloadlen = len(payload) + remaining_length = 2 + len(topic) + payloadlen + + if payloadlen == 0: + if self._protocol == MQTTv5: + self._easy_log( + MQTT_LOG_DEBUG, + "Sending PUBLISH (d%d, q%d, r%d, m%d), '%s', properties=%s (NULL payload)", + dup, qos, retain, mid, topic, properties + ) + else: + self._easy_log( + MQTT_LOG_DEBUG, + "Sending PUBLISH (d%d, q%d, r%d, m%d), '%s' (NULL payload)", + dup, qos, retain, mid, topic + ) + else: + if self._protocol == MQTTv5: + self._easy_log( + MQTT_LOG_DEBUG, + "Sending PUBLISH (d%d, q%d, r%d, m%d), '%s', properties=%s, ... (%d bytes)", + dup, qos, retain, mid, topic, properties, payloadlen + ) + else: + self._easy_log( + MQTT_LOG_DEBUG, + "Sending PUBLISH (d%d, q%d, r%d, m%d), '%s', ... (%d bytes)", + dup, qos, retain, mid, topic, payloadlen + ) + + if qos > 0: + # For message id + remaining_length += 2 + + if self._protocol == MQTTv5: + if properties == None: + packed_properties = b'\x00' + else: + packed_properties = properties.pack() + remaining_length += len(packed_properties) + + self._pack_remaining_length(packet, remaining_length) + self._pack_str16(packet, topic) + + if qos > 0: + # For message id + packet.extend(struct.pack("!H", mid)) + + if self._protocol == MQTTv5: + packet.extend(packed_properties) + + packet.extend(payload) + + return self._packet_queue(PUBLISH, packet, mid, qos, info) + + def _send_pubrec(self, mid): + self._easy_log(MQTT_LOG_DEBUG, "Sending PUBREC (Mid: %d)", mid) + return self._send_command_with_mid(PUBREC, mid, False) + + def _send_pubrel(self, mid): + self._easy_log(MQTT_LOG_DEBUG, "Sending PUBREL (Mid: %d)", mid) + return self._send_command_with_mid(PUBREL | 2, mid, False) + + def _send_command_with_mid(self, command, mid, dup): + # For PUBACK, PUBCOMP, PUBREC, and PUBREL + if dup: + command |= 0x8 + + remaining_length = 2 + packet = struct.pack('!BBH', command, remaining_length, mid) + return self._packet_queue(command, packet, mid, 1) + + def _send_simple_command(self, command): + # For DISCONNECT, PINGREQ and PINGRESP + remaining_length = 0 + packet = struct.pack('!BB', command, remaining_length) + return self._packet_queue(command, packet, 0, 0) + + def _send_connect(self, keepalive): + proto_ver = self._protocol + # hard-coded UTF-8 encoded string + protocol = b"MQTT" if proto_ver >= MQTTv311 else b"MQIsdp" + + remaining_length = 2 + len(protocol) + 1 + \ + 1 + 2 + 2 + len(self._client_id) + + connect_flags = 0 + if self._protocol == MQTTv5: + if self._clean_start == True: + connect_flags |= 0x02 + elif self._clean_start == MQTT_CLEAN_START_FIRST_ONLY and self._mqttv5_first_connect == True: + connect_flags |= 0x02 + elif self._clean_session: + connect_flags |= 0x02 + + if self._will: + remaining_length += 2 + \ + len(self._will_topic) + 2 + len(self._will_payload) + connect_flags |= 0x04 | ((self._will_qos & 0x03) << 3) | ( + (self._will_retain & 0x01) << 5) + + if self._username is not None: + remaining_length += 2 + len(self._username) + connect_flags |= 0x80 + if self._password is not None: + connect_flags |= 0x40 + remaining_length += 2 + len(self._password) + + if self._protocol == MQTTv5: + if self._connect_properties == None: + packed_connect_properties = b'\x00' + else: + packed_connect_properties = self._connect_properties.pack() + remaining_length += len(packed_connect_properties) + if self._will: + if self._will_properties == None: + packed_will_properties = b'\x00' + else: + packed_will_properties = self._will_properties.pack() + remaining_length += len(packed_will_properties) + + command = CONNECT + packet = bytearray() + packet.append(command) + + # as per the mosquitto broker, if the MSB of this version is set + # to 1, then it treats the connection as a bridge + if self._client_mode == MQTT_BRIDGE: + proto_ver |= 0x80 + + self._pack_remaining_length(packet, remaining_length) + packet.extend(struct.pack("!H" + str(len(protocol)) + "sBBH", len(protocol), protocol, proto_ver, connect_flags, + keepalive)) + + if self._protocol == MQTTv5: + packet += packed_connect_properties + + self._pack_str16(packet, self._client_id) + + if self._will: + if self._protocol == MQTTv5: + packet += packed_will_properties + self._pack_str16(packet, self._will_topic) + self._pack_str16(packet, self._will_payload) + + if self._username is not None: + self._pack_str16(packet, self._username) + + if self._password is not None: + self._pack_str16(packet, self._password) + + self._keepalive = keepalive + if self._protocol == MQTTv5: + self._easy_log( + MQTT_LOG_DEBUG, + "Sending CONNECT (u%d, p%d, wr%d, wq%d, wf%d, c%d, k%d) client_id=%s properties=%s", + (connect_flags & 0x80) >> 7, + (connect_flags & 0x40) >> 6, + (connect_flags & 0x20) >> 5, + (connect_flags & 0x18) >> 3, + (connect_flags & 0x4) >> 2, + (connect_flags & 0x2) >> 1, + keepalive, + self._client_id, + self._connect_properties + ) + else: + self._easy_log( + MQTT_LOG_DEBUG, + "Sending CONNECT (u%d, p%d, wr%d, wq%d, wf%d, c%d, k%d) client_id=%s", + (connect_flags & 0x80) >> 7, + (connect_flags & 0x40) >> 6, + (connect_flags & 0x20) >> 5, + (connect_flags & 0x18) >> 3, + (connect_flags & 0x4) >> 2, + (connect_flags & 0x2) >> 1, + keepalive, + self._client_id + ) + return self._packet_queue(command, packet, 0, 0) + + def _send_disconnect(self, reasoncode=None, properties=None): + if self._protocol == MQTTv5: + self._easy_log(MQTT_LOG_DEBUG, "Sending DISCONNECT reasonCode=%s properties=%s", + reasoncode, + properties + ) + else: + self._easy_log(MQTT_LOG_DEBUG, "Sending DISCONNECT") + + remaining_length = 0 + + command = DISCONNECT + packet = bytearray() + packet.append(command) + + if self._protocol == MQTTv5: + if properties != None or reasoncode != None: + if reasoncode == None: + reasoncode = ReasonCodes(DISCONNECT >> 4, identifier=0) + remaining_length += 1 + if properties != None: + packed_props = properties.pack() + remaining_length += len(packed_props) + + self._pack_remaining_length(packet, remaining_length) + + if self._protocol == MQTTv5: + if reasoncode != None: + packet += reasoncode.pack() + if properties != None: + packet += packed_props + + return self._packet_queue(command, packet, 0, 0) + + def _send_subscribe(self, dup, topics, properties=None): + remaining_length = 2 + if self._protocol == MQTTv5: + if properties == None: + packed_subscribe_properties = b'\x00' + else: + packed_subscribe_properties = properties.pack() + remaining_length += len(packed_subscribe_properties) + for t, _ in topics: + remaining_length += 2 + len(t) + 1 + + command = SUBSCRIBE | (dup << 3) | 0x2 + packet = bytearray() + packet.append(command) + self._pack_remaining_length(packet, remaining_length) + local_mid = self._mid_generate() + packet.extend(struct.pack("!H", local_mid)) + + if self._protocol == MQTTv5: + packet += packed_subscribe_properties + + for t, q in topics: + self._pack_str16(packet, t) + if self._protocol == MQTTv5: + packet += q.pack() + else: + packet.append(q) + + self._easy_log( + MQTT_LOG_DEBUG, + "Sending SUBSCRIBE (d%d, m%d) %s", + dup, + local_mid, + topics, + ) + return (self._packet_queue(command, packet, local_mid, 1), local_mid) + + def _send_unsubscribe(self, dup, topics, properties=None): + remaining_length = 2 + if self._protocol == MQTTv5: + if properties == None: + packed_unsubscribe_properties = b'\x00' + else: + packed_unsubscribe_properties = properties.pack() + remaining_length += len(packed_unsubscribe_properties) + for t in topics: + remaining_length += 2 + len(t) + + command = UNSUBSCRIBE | (dup << 3) | 0x2 + packet = bytearray() + packet.append(command) + self._pack_remaining_length(packet, remaining_length) + local_mid = self._mid_generate() + packet.extend(struct.pack("!H", local_mid)) + + if self._protocol == MQTTv5: + packet += packed_unsubscribe_properties + + for t in topics: + self._pack_str16(packet, t) + + # topics_repr = ", ".join("'"+topic.decode('utf8')+"'" for topic in topics) + if self._protocol == MQTTv5: + self._easy_log( + MQTT_LOG_DEBUG, + "Sending UNSUBSCRIBE (d%d, m%d) %s %s", + dup, + local_mid, + properties, + topics, + ) + else: + self._easy_log( + MQTT_LOG_DEBUG, + "Sending UNSUBSCRIBE (d%d, m%d) %s", + dup, + local_mid, + topics, + ) + return (self._packet_queue(command, packet, local_mid, 1), local_mid) + + def _message_retry_check_actual(self, messages, mutex): + with mutex: + now = time_func() + for m in messages.values(): + if m.timestamp + self._message_retry < now: + if m.state == mqtt_ms_wait_for_puback or m.state == mqtt_ms_wait_for_pubrec: + m.timestamp = now + m.dup = True + self._send_publish( + m.mid, + m.topic.encode('utf-8'), + m.payload, + m.qos, + m.retain, + m.dup + ) + elif m.state == mqtt_ms_wait_for_pubrel: + m.timestamp = now + self._send_pubrec(m.mid) + elif m.state == mqtt_ms_wait_for_pubcomp: + m.timestamp = now + self._send_pubrel(m.mid) + + def _message_retry_check(self): + self._message_retry_check_actual( + self._out_messages, self._out_message_mutex) + self._message_retry_check_actual( + self._in_messages, self._in_message_mutex) + + def _check_clean_session(self): + if self._protocol == MQTTv5: + if self._clean_start == MQTT_CLEAN_START_FIRST_ONLY: + return self._mqttv5_first_connect + else: + return self._clean_start + else: + return self._clean_session + + def _messages_reconnect_reset_out(self): + with self._out_message_mutex: + self._inflight_messages = 0 + for m in self._out_messages.values(): + m.timestamp = 0 + if self._max_inflight_messages == 0 or self._inflight_messages < self._max_inflight_messages: + if m.qos == 0: + m.state = mqtt_ms_publish + elif m.qos == 1: + # self._inflight_messages = self._inflight_messages + 1 + if m.state == mqtt_ms_wait_for_puback: + m.dup = True + m.state = mqtt_ms_publish + elif m.qos == 2: + # self._inflight_messages = self._inflight_messages + 1 + if self._check_clean_session(): + if m.state != mqtt_ms_publish: + m.dup = True + m.state = mqtt_ms_publish + else: + if m.state == mqtt_ms_wait_for_pubcomp: + m.state = mqtt_ms_resend_pubrel + else: + if m.state == mqtt_ms_wait_for_pubrec: + m.dup = True + m.state = mqtt_ms_publish + else: + m.state = mqtt_ms_queued + + def _messages_reconnect_reset_in(self): + with self._in_message_mutex: + if self._check_clean_session(): + self._in_messages = collections.OrderedDict() + return + for m in self._in_messages.values(): + m.timestamp = 0 + if m.qos != 2: + self._in_messages.pop(m.mid) + else: + # Preserve current state + pass + + def _messages_reconnect_reset(self): + self._messages_reconnect_reset_out() + self._messages_reconnect_reset_in() + + def _packet_queue(self, command, packet, mid, qos, info=None): + mpkt = { + 'command': command, + 'mid': mid, + 'qos': qos, + 'pos': 0, + 'to_process': len(packet), + 'packet': packet, + 'info': info} + + with self._out_packet_mutex: + self._out_packet.append(mpkt) + if self._current_out_packet_mutex.acquire(False): + if self._current_out_packet is None and len(self._out_packet) > 0: + self._current_out_packet = self._out_packet.popleft() + self._current_out_packet_mutex.release() + + # Write a single byte to sockpairW (connected to sockpairR) to break + # out of select() if in threaded mode. + try: + self._sockpairW.send(sockpair_data) + except socket.error as err: + if err.errno != EAGAIN: + raise + + if self._thread is None: + if self._in_callback_mutex.acquire(False): + self._in_callback_mutex.release() + return self.loop_write() + + self._call_socket_register_write() + + return MQTT_ERR_SUCCESS + + def _packet_handle(self): + cmd = self._in_packet['command'] & 0xF0 + if cmd == PINGREQ: + return self._handle_pingreq() + elif cmd == PINGRESP: + return self._handle_pingresp() + elif cmd == PUBACK: + return self._handle_pubackcomp("PUBACK") + elif cmd == PUBCOMP: + return self._handle_pubackcomp("PUBCOMP") + elif cmd == PUBLISH: + return self._handle_publish() + elif cmd == PUBREC: + return self._handle_pubrec() + elif cmd == PUBREL: + return self._handle_pubrel() + elif cmd == CONNACK: + return self._handle_connack() + elif cmd == SUBACK: + return self._handle_suback() + elif cmd == UNSUBACK: + return self._handle_unsuback() + elif cmd == DISCONNECT and self._protocol == MQTTv5: # only allowed in MQTT 5.0 + return self._handle_disconnect() + else: + # If we don't recognise the command, return an error straight away. + self._easy_log(MQTT_LOG_ERR, "Error: Unrecognised command %s", cmd) + return MQTT_ERR_PROTOCOL + + def _handle_pingreq(self): + if self._in_packet['remaining_length'] != 0: + return MQTT_ERR_PROTOCOL + + self._easy_log(MQTT_LOG_DEBUG, "Received PINGREQ") + return self._send_pingresp() + + def _handle_pingresp(self): + if self._in_packet['remaining_length'] != 0: + return MQTT_ERR_PROTOCOL + + # No longer waiting for a PINGRESP. + self._ping_t = 0 + self._easy_log(MQTT_LOG_DEBUG, "Received PINGRESP") + return MQTT_ERR_SUCCESS + + def _handle_connack(self): + if self._protocol == MQTTv5: + if self._in_packet['remaining_length'] < 2: + return MQTT_ERR_PROTOCOL + elif self._in_packet['remaining_length'] != 2: + return MQTT_ERR_PROTOCOL + + if self._protocol == MQTTv5: + (flags, result) = struct.unpack( + "!BB", self._in_packet['packet'][:2]) + reason = ReasonCodes(CONNACK >> 4, identifier=result) + properties = Properties(CONNACK >> 4) + properties.unpack(self._in_packet['packet'][2:]) + else: + (flags, result) = struct.unpack("!BB", self._in_packet['packet']) + if self._protocol == MQTTv311: + if result == CONNACK_REFUSED_PROTOCOL_VERSION: + self._easy_log( + MQTT_LOG_DEBUG, + "Received CONNACK (%s, %s), attempting downgrade to MQTT v3.1.", + flags, result + ) + # Downgrade to MQTT v3.1 + self._protocol = MQTTv31 + return self.reconnect() + elif (result == CONNACK_REFUSED_IDENTIFIER_REJECTED + and self._client_id == b''): + self._easy_log( + MQTT_LOG_DEBUG, + "Received CONNACK (%s, %s), attempting to use non-empty CID", + flags, result, + ) + self._client_id = base62(uuid.uuid4().int, padding=22) + return self.reconnect() + + if result == 0: + self._state = mqtt_cs_connected + self._reconnect_delay = None + + if self._protocol == MQTTv5: + self._easy_log( + MQTT_LOG_DEBUG, "Received CONNACK (%s, %s) properties=%s", flags, reason, properties) + else: + self._easy_log( + MQTT_LOG_DEBUG, "Received CONNACK (%s, %s)", flags, result) + + # it won't be the first successful connect any more + self._mqttv5_first_connect == False + + with self._callback_mutex: + if self.on_connect: + flags_dict = {} + flags_dict['session present'] = flags & 0x01 + with self._in_callback_mutex: + try: + if self._protocol == MQTTv5: + self.on_connect(self, self._userdata, + flags_dict, reason, properties) + else: + self.on_connect( + self, self._userdata, flags_dict, result) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_connect: %s', err) + + if result == 0: + rc = 0 + with self._out_message_mutex: + for m in self._out_messages.values(): + m.timestamp = time_func() + if m.state == mqtt_ms_queued: + self.loop_write() # Process outgoing messages that have just been queued up + return MQTT_ERR_SUCCESS + + if m.qos == 0: + with self._in_callback_mutex: # Don't call loop_write after _send_publish() + rc = self._send_publish( + m.mid, + m.topic.encode('utf-8'), + m.payload, + m.qos, + m.retain, + m.dup, + properties=m.properties + ) + if rc != 0: + return rc + elif m.qos == 1: + if m.state == mqtt_ms_publish: + self._inflight_messages += 1 + m.state = mqtt_ms_wait_for_puback + with self._in_callback_mutex: # Don't call loop_write after _send_publish() + rc = self._send_publish( + m.mid, + m.topic.encode('utf-8'), + m.payload, + m.qos, + m.retain, + m.dup, + properties=m.properties + ) + if rc != 0: + return rc + elif m.qos == 2: + if m.state == mqtt_ms_publish: + self._inflight_messages += 1 + m.state = mqtt_ms_wait_for_pubrec + with self._in_callback_mutex: # Don't call loop_write after _send_publish() + rc = self._send_publish( + m.mid, + m.topic.encode('utf-8'), + m.payload, + m.qos, + m.retain, + m.dup, + properties=m.properties + ) + if rc != 0: + return rc + elif m.state == mqtt_ms_resend_pubrel: + self._inflight_messages += 1 + m.state = mqtt_ms_wait_for_pubcomp + with self._in_callback_mutex: # Don't call loop_write after _send_publish() + rc = self._send_pubrel(m.mid) + if rc != 0: + return rc + self.loop_write() # Process outgoing messages that have just been queued up + + return rc + elif result > 0 and result < 6: + return MQTT_ERR_CONN_REFUSED + else: + return MQTT_ERR_PROTOCOL + + def _handle_disconnect(self): + packet_type = DISCONNECT >> 4 + reasonCode = properties = None + if self._in_packet['remaining_length'] > 2: + reasonCode = ReasonCodes(packet_type) + reasonCode.unpack(self._in_packet['packet']) + if self._in_packet['remaining_length'] > 3: + properties = Properties(packet_type) + props, props_len = properties.unpack( + self._in_packet['packet'][1:]) + self._easy_log(MQTT_LOG_DEBUG, "Received DISCONNECT %s %s", + reasonCode, + properties + ) + + self._loop_rc_handle(reasonCode, properties) + + return MQTT_ERR_SUCCESS + + def _handle_suback(self): + self._easy_log(MQTT_LOG_DEBUG, "Received SUBACK") + pack_format = "!H" + str(len(self._in_packet['packet']) - 2) + 's' + (mid, packet) = struct.unpack(pack_format, self._in_packet['packet']) + + if self._protocol == MQTTv5: + properties = Properties(SUBACK >> 4) + props, props_len = properties.unpack(packet) + reasoncodes = [] + for c in packet[props_len:]: + if sys.version_info[0] < 3: + c = ord(c) + reasoncodes.append(ReasonCodes(SUBACK >> 4, identifier=c)) + else: + pack_format = "!" + "B" * len(packet) + granted_qos = struct.unpack(pack_format, packet) + + with self._callback_mutex: + if self.on_subscribe: + with self._in_callback_mutex: # Don't call loop_write after _send_publish() + try: + if self._protocol == MQTTv5: + self.on_subscribe( + self, self._userdata, mid, reasoncodes, properties) + else: + self.on_subscribe( + self, self._userdata, mid, granted_qos) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_subscribe: %s', err) + + return MQTT_ERR_SUCCESS + + def _handle_publish(self): + rc = 0 + + header = self._in_packet['command'] + message = MQTTMessage() + message.dup = (header & 0x08) >> 3 + message.qos = (header & 0x06) >> 1 + message.retain = (header & 0x01) + + pack_format = "!H" + str(len(self._in_packet['packet']) - 2) + 's' + (slen, packet) = struct.unpack(pack_format, self._in_packet['packet']) + pack_format = '!' + str(slen) + 's' + str(len(packet) - slen) + 's' + (topic, packet) = struct.unpack(pack_format, packet) + + if self._protocol != MQTTv5 and len(topic) == 0: + return MQTT_ERR_PROTOCOL + + # Handle topics with invalid UTF-8 + # This replaces an invalid topic with a message and the hex + # representation of the topic for logging. When the user attempts to + # access message.topic in the callback, an exception will be raised. + try: + print_topic = topic.decode('utf-8') + except UnicodeDecodeError: + print_topic = "TOPIC WITH INVALID UTF-8: " + str(topic) + + message.topic = topic + + if message.qos > 0: + pack_format = "!H" + str(len(packet) - 2) + 's' + (message.mid, packet) = struct.unpack(pack_format, packet) + + if self._protocol == MQTTv5: + message.properties = Properties(PUBLISH >> 4) + props, props_len = message.properties.unpack(packet) + packet = packet[props_len:] + + message.payload = packet + + if self._protocol == MQTTv5: + self._easy_log( + MQTT_LOG_DEBUG, + "Received PUBLISH (d%d, q%d, r%d, m%d), '%s', properties=%s, ... (%d bytes)", + message.dup, message.qos, message.retain, message.mid, + print_topic, message.properties, len(message.payload) + ) + else: + self._easy_log( + MQTT_LOG_DEBUG, + "Received PUBLISH (d%d, q%d, r%d, m%d), '%s', ... (%d bytes)", + message.dup, message.qos, message.retain, message.mid, + print_topic, len(message.payload) + ) + + message.timestamp = time_func() + if message.qos == 0: + self._handle_on_message(message) + return MQTT_ERR_SUCCESS + elif message.qos == 1: + rc = self._send_puback(message.mid) + self._handle_on_message(message) + return rc + elif message.qos == 2: + rc = self._send_pubrec(message.mid) + message.state = mqtt_ms_wait_for_pubrel + with self._in_message_mutex: + self._in_messages[message.mid] = message + return rc + else: + return MQTT_ERR_PROTOCOL + + def _handle_pubrel(self): + if self._in_packet['remaining_length'] != 2: + return MQTT_ERR_PROTOCOL + + mid, = struct.unpack("!H", self._in_packet['packet']) + self._easy_log(MQTT_LOG_DEBUG, "Received PUBREL (Mid: %d)", mid) + + with self._in_message_mutex: + if mid in self._in_messages: + # Only pass the message on if we have removed it from the queue - this + # prevents multiple callbacks for the same message. + message = self._in_messages.pop(mid) + self._handle_on_message(message) + self._inflight_messages -= 1 + if self._max_inflight_messages > 0: + with self._out_message_mutex: + rc = self._update_inflight() + if rc != MQTT_ERR_SUCCESS: + return rc + + # FIXME: this should only be done if the message is known + # If unknown it's a protocol error and we should close the connection. + # But since we don't have (on disk) persistence for the session, it + # is possible that we must known about this message. + # Choose to acknwoledge this messsage (and thus losing a message) but + # avoid hanging. See #284. + return self._send_pubcomp(mid) + + def _update_inflight(self): + # Dont lock message_mutex here + for m in self._out_messages.values(): + if self._inflight_messages < self._max_inflight_messages: + if m.qos > 0 and m.state == mqtt_ms_queued: + self._inflight_messages += 1 + if m.qos == 1: + m.state = mqtt_ms_wait_for_puback + elif m.qos == 2: + m.state = mqtt_ms_wait_for_pubrec + rc = self._send_publish( + m.mid, + m.topic.encode('utf-8'), + m.payload, + m.qos, + m.retain, + m.dup, + ) + if rc != 0: + return rc + else: + return MQTT_ERR_SUCCESS + return MQTT_ERR_SUCCESS + + def _handle_pubrec(self): + if self._protocol == MQTTv5: + if self._in_packet['remaining_length'] < 2: + return MQTT_ERR_PROTOCOL + elif self._in_packet['remaining_length'] != 2: + return MQTT_ERR_PROTOCOL + + mid, = struct.unpack("!H", self._in_packet['packet'][:2]) + if self._protocol == MQTTv5: + if self._in_packet['remaining_length'] > 2: + reasonCode = ReasonCodes(PUBREC >> 4) + reasonCode.unpack(self._in_packet['packet'][2:]) + if self._in_packet['remaining_length'] > 3: + properties = Properties(PUBREC >> 4) + props, props_len = properties.unpack( + self._in_packet['packet'][3:]) + self._easy_log(MQTT_LOG_DEBUG, "Received PUBREC (Mid: %d)", mid) + + with self._out_message_mutex: + if mid in self._out_messages: + msg = self._out_messages[mid] + msg.state = mqtt_ms_wait_for_pubcomp + msg.timestamp = time_func() + return self._send_pubrel(mid) + + return MQTT_ERR_SUCCESS + + def _handle_unsuback(self): + if self._protocol == MQTTv5: + if self._in_packet['remaining_length'] < 4: + return MQTT_ERR_PROTOCOL + elif self._in_packet['remaining_length'] != 2: + return MQTT_ERR_PROTOCOL + + mid, = struct.unpack("!H", self._in_packet['packet'][:2]) + if self._protocol == MQTTv5: + packet = self._in_packet['packet'][2:] + properties = Properties(UNSUBACK >> 4) + props, props_len = properties.unpack(packet) + reasoncodes = [] + for c in packet[props_len:]: + if sys.version_info[0] < 3: + c = ord(c) + reasoncodes.append(ReasonCodes(UNSUBACK >> 4, identifier=c)) + if len(reasoncodes) == 1: + reasoncodes = reasoncodes[0] + + self._easy_log(MQTT_LOG_DEBUG, "Received UNSUBACK (Mid: %d)", mid) + with self._callback_mutex: + if self.on_unsubscribe: + with self._in_callback_mutex: + try: + if self._protocol == MQTTv5: + self.on_unsubscribe( + self, self._userdata, mid, properties, reasoncodes) + else: + self.on_unsubscribe(self, self._userdata, mid) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_unsubscribe: %s', err) + return MQTT_ERR_SUCCESS + + def _do_on_publish(self, mid): + with self._callback_mutex: + if self.on_publish: + with self._in_callback_mutex: + try: + self.on_publish(self, self._userdata, mid) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_publish: %s', err) + + msg = self._out_messages.pop(mid) + msg.info._set_as_published() + if msg.qos > 0: + self._inflight_messages -= 1 + if self._max_inflight_messages > 0: + rc = self._update_inflight() + if rc != MQTT_ERR_SUCCESS: + return rc + return MQTT_ERR_SUCCESS + + def _handle_pubackcomp(self, cmd): + if self._protocol == MQTTv5: + if self._in_packet['remaining_length'] < 2: + return MQTT_ERR_PROTOCOL + elif self._in_packet['remaining_length'] != 2: + return MQTT_ERR_PROTOCOL + + packet_type = PUBACK if cmd == "PUBACK" else PUBCOMP + packet_type = packet_type >> 4 + mid, = struct.unpack("!H", self._in_packet['packet'][:2]) + if self._protocol == MQTTv5: + if self._in_packet['remaining_length'] > 2: + reasonCode = ReasonCodes(packet_type) + reasonCode.unpack(self._in_packet['packet'][2:]) + if self._in_packet['remaining_length'] > 3: + properties = Properties(packet_type) + props, props_len = properties.unpack( + self._in_packet['packet'][3:]) + self._easy_log(MQTT_LOG_DEBUG, "Received %s (Mid: %d)", cmd, mid) + + with self._out_message_mutex: + if mid in self._out_messages: + # Only inform the client the message has been sent once. + rc = self._do_on_publish(mid) + return rc + + return MQTT_ERR_SUCCESS + + def _handle_on_message(self, message): + matched = False + with self._callback_mutex: + try: + topic = message.topic + except UnicodeDecodeError: + topic = None + + if topic is not None: + for callback in self._on_message_filtered.iter_match(message.topic): + with self._in_callback_mutex: + callback(self, self._userdata, message) + matched = True + + if matched == False and self.on_message: + with self._in_callback_mutex: + try: + self.on_message(self, self._userdata, message) + except Exception as err: + self._easy_log( + MQTT_LOG_ERR, 'Caught exception in on_message: %s', err) + + def _thread_main(self): + self.loop_forever(retry_first_connection=True) + + def _reconnect_wait(self): + # See reconnect_delay_set for details + now = time_func() + with self._reconnect_delay_mutex: + if self._reconnect_delay is None: + self._reconnect_delay = self._reconnect_min_delay + else: + self._reconnect_delay = min( + self._reconnect_delay * 2, + self._reconnect_max_delay, + ) + + target_time = now + self._reconnect_delay + + remaining = target_time - now + while (self._state != mqtt_cs_disconnecting + and not self._thread_terminate + and remaining > 0): + + time.sleep(min(remaining, 1)) + remaining = target_time - time_func() + + @staticmethod + def _proxy_is_valid(p): + def check(t, a): + return (socks is not None and + t in set([socks.HTTP, socks.SOCKS4, socks.SOCKS5]) and a) + + if isinstance(p, dict): + return check(p.get("proxy_type"), p.get("proxy_addr")) + elif isinstance(p, (list, tuple)): + return len(p) == 6 and check(p[0], p[1]) + else: + return False + + def _get_proxy(self): + if socks is None: + return None + + # First, check if the user explicitly passed us a proxy to use + if self._proxy_is_valid(self._proxy): + return self._proxy + + # Next, check for an mqtt_proxy environment variable as long as the host + # we're trying to connect to isn't listed under the no_proxy environment + # variable (matches built-in module urllib's behavior) + if not (hasattr(urllib_dot_request, "proxy_bypass") and + urllib_dot_request.proxy_bypass(self._host)): + env_proxies = urllib_dot_request.getproxies() + if "mqtt" in env_proxies: + parts = urllib_dot_parse.urlparse(env_proxies["mqtt"]) + if parts.scheme == "http": + proxy = { + "proxy_type": socks.HTTP, + "proxy_addr": parts.hostname, + "proxy_port": parts.port + } + return proxy + elif parts.scheme == "socks": + proxy = { + "proxy_type": socks.SOCKS5, + "proxy_addr": parts.hostname, + "proxy_port": parts.port + } + return proxy + + # Finally, check if the user has monkeypatched the PySocks library with + # a default proxy + socks_default = socks.get_default_proxy() + if self._proxy_is_valid(socks_default): + proxy_keys = ("proxy_type", "proxy_addr", "proxy_port", + "proxy_rdns", "proxy_username", "proxy_password") + return dict(zip(proxy_keys, socks_default)) + + # If we didn't find a proxy through any of the above methods, return + # None to indicate that the connection should be handled normally + return None + + def _create_socket_connection(self): + proxy = self._get_proxy() + addr = (self._host, self._port) + source = (self._bind_address, self._bind_port) + + + if sys.version_info < (2, 7) or (3, 0) < sys.version_info < (3, 2): + # Have to short-circuit here because of unsupported source_address + # param in earlier Python versions. + return socket.create_connection(addr, timeout=self._keepalive) + + if proxy: + return socks.create_connection(addr, source_address=source, timeout=self._keepalive, **proxy) + else: + return socket.create_connection(addr, source_address=source, timeout=self._keepalive) + + +# Compatibility class for easy porting from mosquitto.py. +class Mosquitto(Client): + def __init__(self, client_id="", clean_session=True, userdata=None): + super(Mosquitto, self).__init__(client_id, clean_session, userdata) + + +class WebsocketWrapper(object): + OPCODE_CONTINUATION = 0x0 + OPCODE_TEXT = 0x1 + OPCODE_BINARY = 0x2 + OPCODE_CONNCLOSE = 0x8 + OPCODE_PING = 0x9 + OPCODE_PONG = 0xa + + def __init__(self, socket, host, port, is_ssl, path, extra_headers): + + self.connected = False + + self._ssl = is_ssl + self._host = host + self._port = port + self._socket = socket + self._path = path + + self._sendbuffer = bytearray() + self._readbuffer = bytearray() + + self._requested_size = 0 + self._payload_head = 0 + self._readbuffer_head = 0 + + self._do_handshake(extra_headers) + + def __del__(self): + + self._sendbuffer = None + self._readbuffer = None + + def _do_handshake(self, extra_headers): + + sec_websocket_key = uuid.uuid4().bytes + sec_websocket_key = base64.b64encode(sec_websocket_key) + + websocket_headers = { + "Host": "{self._host:s}:{self._port:d}".format(self=self), + "Upgrade": "websocket", + "Connection": "Upgrade", + "Origin": "https://{self._host:s}:{self._port:d}".format(self=self), + "Sec-WebSocket-Key": sec_websocket_key.decode("utf8"), + "Sec-Websocket-Version": "13", + "Sec-Websocket-Protocol": "mqtt", + } + + # This is checked in ws_set_options so it will either be None, a + # dictionary, or a callable + if isinstance(extra_headers, dict): + websocket_headers.update(extra_headers) + elif callable(extra_headers): + websocket_headers = extra_headers(websocket_headers) + + header = "\r\n".join([ + "GET {self._path} HTTP/1.1".format(self=self), + "\r\n".join("{}: {}".format(i, j) + for i, j in websocket_headers.items()), + "\r\n", + ]).encode("utf8") + + self._socket.send(header) + + has_secret = False + has_upgrade = False + + while True: + # read HTTP response header as lines + byte = self._socket.recv(1) + + self._readbuffer.extend(byte) + + # line end + if byte == b"\n": + if len(self._readbuffer) > 2: + # check upgrade + if b"connection" in str(self._readbuffer).lower().encode('utf-8'): + if b"upgrade" not in str(self._readbuffer).lower().encode('utf-8'): + raise WebsocketConnectionError( + "WebSocket handshake error, connection not upgraded") + else: + has_upgrade = True + + # check key hash + if b"sec-websocket-accept" in str(self._readbuffer).lower().encode('utf-8'): + GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" + + server_hash = self._readbuffer.decode( + 'utf-8').split(": ", 1)[1] + server_hash = server_hash.strip().encode('utf-8') + + client_hash = sec_websocket_key.decode('utf-8') + GUID + client_hash = hashlib.sha1(client_hash.encode('utf-8')) + client_hash = base64.b64encode(client_hash.digest()) + + if server_hash != client_hash: + raise WebsocketConnectionError( + "WebSocket handshake error, invalid secret key") + else: + has_secret = True + else: + # ending linebreak + break + + # reset linebuffer + self._readbuffer = bytearray() + + # connection reset + elif not byte: + raise WebsocketConnectionError("WebSocket handshake error") + + if not has_upgrade or not has_secret: + raise WebsocketConnectionError("WebSocket handshake error") + + self._readbuffer = bytearray() + self.connected = True + + def _create_frame(self, opcode, data, do_masking=1): + + header = bytearray() + length = len(data) + + mask_key = bytearray(os.urandom(4)) + mask_flag = do_masking + + # 1 << 7 is the final flag, we don't send continuated data + header.append(1 << 7 | opcode) + + if length < 126: + header.append(mask_flag << 7 | length) + + elif length < 65536: + header.append(mask_flag << 7 | 126) + header += struct.pack("!H", length) + + elif length < 0x8000000000000001: + header.append(mask_flag << 7 | 127) + header += struct.pack("!Q", length) + + else: + raise ValueError("Maximum payload size is 2^63") + + if mask_flag == 1: + for index in range(length): + data[index] ^= mask_key[index % 4] + data = mask_key + data + + return header + data + + def _buffered_read(self, length): + + # try to recv and strore needed bytes + wanted_bytes = length - (len(self._readbuffer) - self._readbuffer_head) + if wanted_bytes > 0: + + data = self._socket.recv(wanted_bytes) + + if not data: + raise socket.error(errno.ECONNABORTED, 0) + else: + self._readbuffer.extend(data) + + if len(data) < wanted_bytes: + raise socket.error(EAGAIN, 0) + + self._readbuffer_head += length + return self._readbuffer[self._readbuffer_head - length:self._readbuffer_head] + + def _recv_impl(self, length): + + # try to decode websocket payload part from data + try: + + self._readbuffer_head = 0 + + result = None + + chunk_startindex = self._payload_head + chunk_endindex = self._payload_head + length + + header1 = self._buffered_read(1) + header2 = self._buffered_read(1) + + opcode = (header1[0] & 0x0f) + maskbit = (header2[0] & 0x80) == 0x80 + lengthbits = (header2[0] & 0x7f) + payload_length = lengthbits + mask_key = None + + # read length + if lengthbits == 0x7e: + + value = self._buffered_read(2) + payload_length, = struct.unpack("!H", value) + + elif lengthbits == 0x7f: + + value = self._buffered_read(8) + payload_length, = struct.unpack("!Q", value) + + # read mask + if maskbit: + mask_key = self._buffered_read(4) + + # if frame payload is shorter than the requested data, read only the possible part + readindex = chunk_endindex + if payload_length < readindex: + readindex = payload_length + + if readindex > 0: + # get payload chunk + payload = self._buffered_read(readindex) + + # unmask only the needed part + if maskbit: + for index in range(chunk_startindex, readindex): + payload[index] ^= mask_key[index % 4] + + result = payload[chunk_startindex:readindex] + self._payload_head = readindex + else: + payload = bytearray() + + # check if full frame arrived and reset readbuffer and payloadhead if needed + if readindex == payload_length: + self._readbuffer = bytearray() + self._payload_head = 0 + + # respond to non-binary opcodes, their arrival is not guaranteed beacause of non-blocking sockets + if opcode == WebsocketWrapper.OPCODE_CONNCLOSE: + frame = self._create_frame( + WebsocketWrapper.OPCODE_CONNCLOSE, payload, 0) + self._socket.send(frame) + + if opcode == WebsocketWrapper.OPCODE_PING: + frame = self._create_frame( + WebsocketWrapper.OPCODE_PONG, payload, 0) + self._socket.send(frame) + + if opcode == WebsocketWrapper.OPCODE_BINARY and payload_length > 0: + return result + else: + raise socket.error(EAGAIN, 0) + + except socket.error as err: + + if err.errno == errno.ECONNABORTED: + self.connected = False + return b'' + else: + # no more data + raise + + def _send_impl(self, data): + + # if previous frame was sent successfully + if len(self._sendbuffer) == 0: + # create websocket frame + frame = self._create_frame( + WebsocketWrapper.OPCODE_BINARY, bytearray(data)) + self._sendbuffer.extend(frame) + self._requested_size = len(data) + + # try to write out as much as possible + length = self._socket.send(self._sendbuffer) + + self._sendbuffer = self._sendbuffer[length:] + + if len(self._sendbuffer) == 0: + # buffer sent out completely, return with payload's size + return self._requested_size + else: + # couldn't send whole data, request the same data again with 0 as sent length + return 0 + + def recv(self, length): + return self._recv_impl(length) + + def read(self, length): + return self._recv_impl(length) + + def send(self, data): + return self._send_impl(data) + + def write(self, data): + return self._send_impl(data) + + def close(self): + self._socket.close() + + def fileno(self): + return self._socket.fileno() + + def pending(self): + # Fix for bug #131: a SSL socket may still have data available + # for reading without select() being aware of it. + if self._ssl: + return self._socket.pending() + else: + # normal socket rely only on select() + return 0 + + def setblocking(self, flag): + self._socket.setblocking(flag) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/matcher.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/matcher.py index 141812e2dc775fdf09cea184dee28287d92afeb1..7fc966a370d3477e0322930e3e3a697e273530e7 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/matcher.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/matcher.py @@ -1,3 +1,78 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75e71a6bcc8ce10b158061d92fd8cf7a1087ccbb45661c73cc791e96a1ebdc34 -size 2775 +class MQTTMatcher(object): + """Intended to manage topic filters including wildcards. + + Internally, MQTTMatcher use a prefix tree (trie) to store + values associated with filters, and has an iter_match() + method to iterate efficiently over all filters that match + some topic name.""" + + class Node(object): + __slots__ = '_children', '_content' + + def __init__(self): + self._children = {} + self._content = None + + def __init__(self): + self._root = self.Node() + + def __setitem__(self, key, value): + """Add a topic filter :key to the prefix tree + and associate it to :value""" + node = self._root + for sym in key.split('/'): + node = node._children.setdefault(sym, self.Node()) + node._content = value + + def __getitem__(self, key): + """Retrieve the value associated with some topic filter :key""" + try: + node = self._root + for sym in key.split('/'): + node = node._children[sym] + if node._content is None: + raise KeyError(key) + return node._content + except KeyError: + raise KeyError(key) + + def __delitem__(self, key): + """Delete the value associated with some topic filter :key""" + lst = [] + try: + parent, node = None, self._root + for k in key.split('/'): + parent, node = node, node._children[k] + lst.append((parent, k, node)) + # TODO + node._content = None + except KeyError: + raise KeyError(key) + else: # cleanup + for parent, k, node in reversed(lst): + if node._children or node._content is not None: + break + del parent._children[k] + + def iter_match(self, topic): + """Return an iterator on all values associated with filters + that match the :topic""" + lst = topic.split('/') + normal = not topic.startswith('$') + def rec(node, i=0): + if i == len(lst): + if node._content is not None: + yield node._content + else: + part = lst[i] + if part in node._children: + for content in rec(node._children[part], i + 1): + yield content + if '+' in node._children and (normal or i > 0): + for content in rec(node._children['+'], i + 1): + yield content + if '#' in node._children and (normal or i > 0): + content = node._children['#']._content + if content is not None: + yield content + return rec(self._root) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/packettypes.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/packettypes.py index de1793a3d41e9915eac79a447260170b3526436b..7eb40697e4db4b18d4e645f7c2cb44aafab7dede 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/packettypes.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/packettypes.py @@ -1,3 +1,43 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0fe640451cdaa333a4647c99e5691e53c3fa56811112324d0a503cfbf330274c -size 1453 +""" +******************************************************************* + Copyright (c) 2017, 2019 IBM Corp. + + All rights reserved. This program and the accompanying materials + are made available under the terms of the Eclipse Public License v1.0 + and Eclipse Distribution License v1.0 which accompany this distribution. + + The Eclipse Public License is available at + http://www.eclipse.org/legal/epl-v10.html + and the Eclipse Distribution License is available at + http://www.eclipse.org/org/documents/edl-v10.php. + + Contributors: + Ian Craggs - initial implementation and/or documentation +******************************************************************* +""" + + +class PacketTypes: + + """ + Packet types class. Includes the AUTH packet for MQTT v5.0. + + Holds constants for each packet type such as PacketTypes.PUBLISH + and packet name strings: PacketTypes.Names[PacketTypes.PUBLISH]. + + """ + + indexes = range(1, 16) + + # Packet types + CONNECT, CONNACK, PUBLISH, PUBACK, PUBREC, PUBREL, \ + PUBCOMP, SUBSCRIBE, SUBACK, UNSUBSCRIBE, UNSUBACK, \ + PINGREQ, PINGRESP, DISCONNECT, AUTH = indexes + + # Dummy packet type for properties use - will delay only applies to will + WILLMESSAGE = 99 + + Names = [ "reserved", \ + "Connect", "Connack", "Publish", "Puback", "Pubrec", "Pubrel", \ + "Pubcomp", "Subscribe", "Suback", "Unsubscribe", "Unsuback", \ + "Pingreq", "Pingresp", "Disconnect", "Auth"] diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/properties.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/properties.py index 67b8c3c410709a2442fe44d8a6381e04ec901706..99f654a62a5e289edd46291ddc07ea59cf0aec92 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/properties.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/properties.py @@ -1,3 +1,409 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:39d8bebd4f9a590328881504913311a08acac8a765a46e14cbeb4249f6938bf0 -size 16499 +""" +******************************************************************* + Copyright (c) 2017, 2019 IBM Corp. + + All rights reserved. This program and the accompanying materials + are made available under the terms of the Eclipse Public License v1.0 + and Eclipse Distribution License v1.0 which accompany this distribution. + + The Eclipse Public License is available at + http://www.eclipse.org/legal/epl-v10.html + and the Eclipse Distribution License is available at + http://www.eclipse.org/org/documents/edl-v10.php. + + Contributors: + Ian Craggs - initial implementation and/or documentation +******************************************************************* +""" + +import sys, struct + +from .packettypes import PacketTypes + + +class MQTTException(Exception): + pass + + +class MalformedPacket(MQTTException): + pass + + +def writeInt16(length): + # serialize a 16 bit integer to network format + return bytearray(struct.pack("!H", length)) + + +def readInt16(buf): + # deserialize a 16 bit integer from network format + return struct.unpack("!H", buf[:2])[0] + + +def writeInt32(length): + # serialize a 32 bit integer to network format + return bytearray(struct.pack("!L", length)) + + +def readInt32(buf): + # deserialize a 32 bit integer from network format + return struct.unpack("!L", buf[:4])[0] + + +def writeUTF(data): + # data could be a string, or bytes. If string, encode into bytes with utf-8 + if sys.version_info[0] < 3: + data = bytearray(data, 'utf-8') + else: + data = data if type(data) == type(b"") else bytes(data, "utf-8") + return writeInt16(len(data)) + data + + +def readUTF(buffer, maxlen): + if maxlen >= 2: + length = readInt16(buffer) + else: + raise MalformedPacket("Not enough data to read string length") + maxlen -= 2 + if length > maxlen: + raise MalformedPacket("Length delimited string too long") + buf = buffer[2:2+length].decode("utf-8") + # look for chars which are invalid for MQTT + for c in buf: # look for D800-DFFF in the UTF string + ord_c = ord(c) + if ord_c >= 0xD800 and ord_c <= 0xDFFF: + raise MalformedPacket("[MQTT-1.5.4-1] D800-DFFF found in UTF-8 data") + if ord_c == 0x00: # look for null in the UTF string + raise MalformedPacket("[MQTT-1.5.4-2] Null found in UTF-8 data") + if ord_c == 0xFEFF: + raise MalformedPacket("[MQTT-1.5.4-3] U+FEFF in UTF-8 data") + return buf, length+2 + + +def writeBytes(buffer): + return writeInt16(len(buffer)) + buffer + + +def readBytes(buffer): + length = readInt16(buffer) + return buffer[2:2+length], length+2 + + +class VariableByteIntegers: # Variable Byte Integer + """ + MQTT variable byte integer helper class. Used + in several places in MQTT v5.0 properties. + + """ + + @staticmethod + def encode(x): + """ + Convert an integer 0 <= x <= 268435455 into multi-byte format. + Returns the buffer convered from the integer. + """ + assert 0 <= x <= 268435455 + buffer = b'' + while 1: + digit = x % 128 + x //= 128 + if x > 0: + digit |= 0x80 + if sys.version_info[0] >= 3: + buffer += bytes([digit]) + else: + buffer += bytes(chr(digit)) + if x == 0: + break + return buffer + + @staticmethod + def decode(buffer): + """ + Get the value of a multi-byte integer from a buffer + Return the value, and the number of bytes used. + + [MQTT-1.5.5-1] the encoded value MUST use the minimum number of bytes necessary to represent the value + """ + multiplier = 1 + value = 0 + bytes = 0 + while 1: + bytes += 1 + digit = buffer[0] + buffer = buffer[1:] + value += (digit & 127) * multiplier + if digit & 128 == 0: + break + multiplier *= 128 + return (value, bytes) + + +class Properties(object): + """MQTT v5.0 properties class. + + See Properties.names for a list of accepted property names along with their numeric values. + + See Properties.properties for the data type of each property. + + Example of use: + + publish_properties = Properties(PacketTypes.PUBLISH) + publish_properties.UserProperty = ("a", "2") + publish_properties.UserProperty = ("c", "3") + + First the object is created with packet type as argument, no properties will be present at + this point. Then properties are added as attributes, the name of which is the string property + name without the spaces. + + """ + + def __init__(self, packetType): + self.packetType = packetType + self.types = ["Byte", "Two Byte Integer", "Four Byte Integer", "Variable Byte Integer", + "Binary Data", "UTF-8 Encoded String", "UTF-8 String Pair"] + + self.names = { + "Payload Format Indicator": 1, + "Message Expiry Interval": 2, + "Content Type": 3, + "Response Topic": 8, + "Correlation Data": 9, + "Subscription Identifier": 11, + "Session Expiry Interval": 17, + "Assigned Client Identifier": 18, + "Server Keep Alive": 19, + "Authentication Method": 21, + "Authentication Data": 22, + "Request Problem Information": 23, + "Will Delay Interval": 24, + "Request Response Information": 25, + "Response Information": 26, + "Server Reference": 28, + "Reason String": 31, + "Receive Maximum": 33, + "Topic Alias Maximum": 34, + "Topic Alias": 35, + "Maximum QoS": 36, + "Retain Available": 37, + "User Property": 38, + "Maximum Packet Size": 39, + "Wildcard Subscription Available": 40, + "Subscription Identifier Available": 41, + "Shared Subscription Available": 42 + } + + self.properties = { + # id: type, packets + # payload format indicator + 1: (self.types.index("Byte"), [PacketTypes.PUBLISH, PacketTypes.WILLMESSAGE]), + 2: (self.types.index("Four Byte Integer"), [PacketTypes.PUBLISH, PacketTypes.WILLMESSAGE]), + 3: (self.types.index("UTF-8 Encoded String"), [PacketTypes.PUBLISH, PacketTypes.WILLMESSAGE]), + 8: (self.types.index("UTF-8 Encoded String"), [PacketTypes.PUBLISH, PacketTypes.WILLMESSAGE]), + 9: (self.types.index("Binary Data"), [PacketTypes.PUBLISH, PacketTypes.WILLMESSAGE]), + 11: (self.types.index("Variable Byte Integer"), + [PacketTypes.PUBLISH, PacketTypes.SUBSCRIBE]), + 17: (self.types.index("Four Byte Integer"), + [PacketTypes.CONNECT, PacketTypes.CONNACK, PacketTypes.DISCONNECT]), + 18: (self.types.index("UTF-8 Encoded String"), [PacketTypes.CONNACK]), + 19: (self.types.index("Two Byte Integer"), [PacketTypes.CONNACK]), + 21: (self.types.index("UTF-8 Encoded String"), + [PacketTypes.CONNECT, PacketTypes.CONNACK, PacketTypes.AUTH]), + 22: (self.types.index("Binary Data"), + [PacketTypes.CONNECT, PacketTypes.CONNACK, PacketTypes.AUTH]), + 23: (self.types.index("Byte"), + [PacketTypes.CONNECT]), + 24: (self.types.index("Four Byte Integer"), [PacketTypes.WILLMESSAGE]), + 25: (self.types.index("Byte"), [PacketTypes.CONNECT]), + 26: (self.types.index("UTF-8 Encoded String"), [PacketTypes.CONNACK]), + 28: (self.types.index("UTF-8 Encoded String"), + [PacketTypes.CONNACK, PacketTypes.DISCONNECT]), + 31: (self.types.index("UTF-8 Encoded String"), + [PacketTypes.CONNACK, PacketTypes.PUBACK, PacketTypes.PUBREC, + PacketTypes.PUBREL, PacketTypes.PUBCOMP, PacketTypes.SUBACK, + PacketTypes.UNSUBACK, PacketTypes.DISCONNECT, PacketTypes.AUTH]), + 33: (self.types.index("Two Byte Integer"), + [PacketTypes.CONNECT, PacketTypes.CONNACK]), + 34: (self.types.index("Two Byte Integer"), + [PacketTypes.CONNECT, PacketTypes.CONNACK]), + 35: (self.types.index("Two Byte Integer"), [PacketTypes.PUBLISH]), + 36: (self.types.index("Byte"), [PacketTypes.CONNACK]), + 37: (self.types.index("Byte"), [PacketTypes.CONNACK]), + 38: (self.types.index("UTF-8 String Pair"), + [PacketTypes.CONNECT, PacketTypes.CONNACK, + PacketTypes.PUBLISH, PacketTypes.PUBACK, + PacketTypes.PUBREC, PacketTypes.PUBREL, PacketTypes.PUBCOMP, + PacketTypes.SUBSCRIBE, PacketTypes.SUBACK, + PacketTypes.UNSUBSCRIBE, PacketTypes.UNSUBACK, + PacketTypes.DISCONNECT, PacketTypes.AUTH, PacketTypes.WILLMESSAGE]), + 39: (self.types.index("Four Byte Integer"), + [PacketTypes.CONNECT, PacketTypes.CONNACK]), + 40: (self.types.index("Byte"), [PacketTypes.CONNACK]), + 41: (self.types.index("Byte"), [PacketTypes.CONNACK]), + 42: (self.types.index("Byte"), [PacketTypes.CONNACK]), + } + + def allowsMultiple(self, compressedName): + return self.getIdentFromName(compressedName) in [11, 38] + + def getIdentFromName(self, compressedName): + # return the identifier corresponding to the property name + result = -1 + for name in self.names.keys(): + if compressedName == name.replace(' ', ''): + result = self.names[name] + break + return result + + def __setattr__(self, name, value): + name = name.replace(' ', '') + privateVars = ["packetType", "types", "names", "properties"] + if name in privateVars: + object.__setattr__(self, name, value) + else: + # the name could have spaces in, or not. Remove spaces before assignment + if name not in [aname.replace(' ', '') for aname in self.names.keys()]: + raise MQTTException( + "Property name must be one of "+str(self.names.keys())) + # check that this attribute applies to the packet type + if self.packetType not in self.properties[self.getIdentFromName(name)][1]: + raise MQTTException("Property %s does not apply to packet type %s" + % (name, PacketTypes.Names[self.packetType])) + if self.allowsMultiple(name): + if type(value) != type([]): + value = [value] + if hasattr(self, name): + value = object.__getattribute__(self, name) + value + object.__setattr__(self, name, value) + + def __str__(self): + buffer = "[" + first = True + for name in self.names.keys(): + compressedName = name.replace(' ', '') + if hasattr(self, compressedName): + if not first: + buffer += ", " + buffer += compressedName + " : " + \ + str(getattr(self, compressedName)) + first = False + buffer += "]" + return buffer + + def json(self): + data = {} + for name in self.names.keys(): + compressedName = name.replace(' ', '') + if hasattr(self, compressedName): + data[compressedName] = getattr(self, compressedName) + return data + + def isEmpty(self): + rc = True + for name in self.names.keys(): + compressedName = name.replace(' ', '') + if hasattr(self, compressedName): + rc = False + break + return rc + + def clear(self): + for name in self.names.keys(): + compressedName = name.replace(' ', '') + if hasattr(self, compressedName): + delattr(self, compressedName) + + def writeProperty(self, identifier, type, value): + buffer = b"" + buffer += VariableByteIntegers.encode(identifier) # identifier + if type == self.types.index("Byte"): # value + if sys.version_info[0] < 3: + buffer += chr(value) + else: + buffer += bytes([value]) + elif type == self.types.index("Two Byte Integer"): + buffer += writeInt16(value) + elif type == self.types.index("Four Byte Integer"): + buffer += writeInt32(value) + elif type == self.types.index("Variable Byte Integer"): + buffer += VariableByteIntegers.encode(value) + elif type == self.types.index("Binary Data"): + buffer += writeBytes(value) + elif type == self.types.index("UTF-8 Encoded String"): + buffer += writeUTF(value) + elif type == self.types.index("UTF-8 String Pair"): + buffer += writeUTF(value[0]) + writeUTF(value[1]) + return buffer + + def pack(self): + # serialize properties into buffer for sending over network + buffer = b"" + for name in self.names.keys(): + compressedName = name.replace(' ', '') + if hasattr(self, compressedName): + identifier = self.getIdentFromName(compressedName) + attr_type = self.properties[identifier][0] + if self.allowsMultiple(compressedName): + for prop in getattr(self, compressedName): + buffer += self.writeProperty(identifier, + attr_type, prop) + else: + buffer += self.writeProperty(identifier, attr_type, + getattr(self, compressedName)) + return VariableByteIntegers.encode(len(buffer)) + buffer + + def readProperty(self, buffer, type, propslen): + if type == self.types.index("Byte"): + value = buffer[0] + valuelen = 1 + elif type == self.types.index("Two Byte Integer"): + value = readInt16(buffer) + valuelen = 2 + elif type == self.types.index("Four Byte Integer"): + value = readInt32(buffer) + valuelen = 4 + elif type == self.types.index("Variable Byte Integer"): + value, valuelen = VariableByteIntegers.decode(buffer) + elif type == self.types.index("Binary Data"): + value, valuelen = readBytes(buffer) + elif type == self.types.index("UTF-8 Encoded String"): + value, valuelen = readUTF(buffer, propslen) + elif type == self.types.index("UTF-8 String Pair"): + value, valuelen = readUTF(buffer, propslen) + buffer = buffer[valuelen:] # strip the bytes used by the value + value1, valuelen1 = readUTF(buffer, propslen - valuelen) + value = (value, value1) + valuelen += valuelen1 + return value, valuelen + + def getNameFromIdent(self, identifier): + rc = None + for name in self.names: + if self.names[name] == identifier: + rc = name + return rc + + def unpack(self, buffer): + if sys.version_info[0] < 3: + buffer = bytearray(buffer) + self.clear() + # deserialize properties into attributes from buffer received from network + propslen, VBIlen = VariableByteIntegers.decode(buffer) + buffer = buffer[VBIlen:] # strip the bytes used by the VBI + propslenleft = propslen + while propslenleft > 0: # properties length is 0 if there are none + identifier, VBIlen = VariableByteIntegers.decode( + buffer) # property identifier + buffer = buffer[VBIlen:] # strip the bytes used by the VBI + propslenleft -= VBIlen + attr_type = self.properties[identifier][0] + value, valuelen = self.readProperty( + buffer, attr_type, propslenleft) + buffer = buffer[valuelen:] # strip the bytes used by the value + propslenleft -= valuelen + propname = self.getNameFromIdent(identifier) + compressedName = propname.replace(' ', '') + if not self.allowsMultiple(compressedName) and hasattr(self, compressedName): + raise MQTTException( + "Property '%s' must not exist more than once" % property) + setattr(self, propname, value) + return self, propslen + VBIlen diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/publish.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/publish.py index 88f8e16bdc087844b228fccc64b3bb93128e1bff..f9f1986e51d09de8ebad6fed52d2befab921e433 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/publish.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/publish.py @@ -1,3 +1,228 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:02ee461d6759f620d8a208b8b7300902918213a80bc82cf554fd8b85228b74ac -size 9297 +# Copyright (c) 2014 Roger Light +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# and Eclipse Distribution License v1.0 which accompany this distribution. +# +# The Eclipse Public License is available at +# http://www.eclipse.org/legal/epl-v10.html +# and the Eclipse Distribution License is available at +# http://www.eclipse.org/org/documents/edl-v10.php. +# +# Contributors: +# Roger Light - initial API and implementation + +""" +This module provides some helper functions to allow straightforward publishing +of messages in a one-shot manner. In other words, they are useful for the +situation where you have a single/multiple messages you want to publish to a +broker, then disconnect and nothing else is required. +""" +from __future__ import absolute_import + +import collections + +from . import client as paho +from .. import mqtt + +def _do_publish(client): + """Internal function""" + + message = client._userdata.popleft() + + if isinstance(message, dict): + client.publish(**message) + elif isinstance(message, (tuple, list)): + client.publish(*message) + else: + raise TypeError('message must be a dict, tuple, or list') + + +def _on_connect(client, userdata, flags, rc): + """Internal callback""" + #pylint: disable=invalid-name, unused-argument + + if rc == 0: + if len(userdata) > 0: + _do_publish(client) + else: + raise mqtt.MQTTException(paho.connack_string(rc)) + + +def _on_publish(client, userdata, mid): + """Internal callback""" + #pylint: disable=unused-argument + + if len(userdata) == 0: + client.disconnect() + else: + _do_publish(client) + + +def multiple(msgs, hostname="localhost", port=1883, client_id="", keepalive=60, + will=None, auth=None, tls=None, protocol=paho.MQTTv311, + transport="tcp", proxy_args=None): + """Publish multiple messages to a broker, then disconnect cleanly. + + This function creates an MQTT client, connects to a broker and publishes a + list of messages. Once the messages have been delivered, it disconnects + cleanly from the broker. + + msgs : a list of messages to publish. Each message is either a dict or a + tuple. + + If a dict, only the topic must be present. Default values will be + used for any missing arguments. The dict must be of the form: + + msg = {'topic':"", 'payload':"", 'qos':, + 'retain':} + topic must be present and may not be empty. + If payload is "", None or not present then a zero length payload + will be published. + If qos is not present, the default of 0 is used. + If retain is not present, the default of False is used. + + If a tuple, then it must be of the form: + ("", "", qos, retain) + + hostname : a string containing the address of the broker to connect to. + Defaults to localhost. + + port : the port to connect to the broker on. Defaults to 1883. + + client_id : the MQTT client id to use. If "" or None, the Paho library will + generate a client id automatically. + + keepalive : the keepalive timeout value for the client. Defaults to 60 + seconds. + + will : a dict containing will parameters for the client: will = {'topic': + "", 'payload':", 'qos':, 'retain':}. + Topic is required, all other parameters are optional and will + default to None, 0 and False respectively. + Defaults to None, which indicates no will should be used. + + auth : a dict containing authentication parameters for the client: + auth = {'username':"", 'password':""} + Username is required, password is optional and will default to None + if not provided. + Defaults to None, which indicates no authentication is to be used. + + tls : a dict containing TLS configuration parameters for the client: + dict = {'ca_certs':"", 'certfile':"", + 'keyfile':"", 'tls_version':"", + 'ciphers':", 'insecure':""} + ca_certs is required, all other parameters are optional and will + default to None if not provided, which results in the client using + the default behaviour - see the paho.mqtt.client documentation. + Alternatively, tls input can be an SSLContext object, which will be + processed using the tls_set_context method. + Defaults to None, which indicates that TLS should not be used. + + transport : set to "tcp" to use the default setting of transport which is + raw TCP. Set to "websockets" to use WebSockets as the transport. + proxy_args: a dictionary that will be given to the client. + """ + + if not isinstance(msgs, collections.Iterable): + raise TypeError('msgs must be an iterable') + + client = paho.Client(client_id=client_id, userdata=collections.deque(msgs), + protocol=protocol, transport=transport) + + client.on_publish = _on_publish + client.on_connect = _on_connect + + if proxy_args is not None: + client.proxy_set(**proxy_args) + + if auth: + username = auth.get('username') + if username: + password = auth.get('password') + client.username_pw_set(username, password) + else: + raise KeyError("The 'username' key was not found, this is " + "required for auth") + + if will is not None: + client.will_set(**will) + + if tls is not None: + if isinstance(tls, dict): + insecure = tls.pop('insecure', False) + client.tls_set(**tls) + if insecure: + # Must be set *after* the `client.tls_set()` call since it sets + # up the SSL context that `client.tls_insecure_set` alters. + client.tls_insecure_set(insecure) + else: + # Assume input is SSLContext object + client.tls_set_context(tls) + + client.connect(hostname, port, keepalive) + client.loop_forever() + + +def single(topic, payload=None, qos=0, retain=False, hostname="localhost", + port=1883, client_id="", keepalive=60, will=None, auth=None, + tls=None, protocol=paho.MQTTv311, transport="tcp", proxy_args=None): + """Publish a single message to a broker, then disconnect cleanly. + + This function creates an MQTT client, connects to a broker and publishes a + single message. Once the message has been delivered, it disconnects cleanly + from the broker. + + topic : the only required argument must be the topic string to which the + payload will be published. + + payload : the payload to be published. If "" or None, a zero length payload + will be published. + + qos : the qos to use when publishing, default to 0. + + retain : set the message to be retained (True) or not (False). + + hostname : a string containing the address of the broker to connect to. + Defaults to localhost. + + port : the port to connect to the broker on. Defaults to 1883. + + client_id : the MQTT client id to use. If "" or None, the Paho library will + generate a client id automatically. + + keepalive : the keepalive timeout value for the client. Defaults to 60 + seconds. + + will : a dict containing will parameters for the client: will = {'topic': + "", 'payload':", 'qos':, 'retain':}. + Topic is required, all other parameters are optional and will + default to None, 0 and False respectively. + Defaults to None, which indicates no will should be used. + + auth : a dict containing authentication parameters for the client: + auth = {'username':"", 'password':""} + Username is required, password is optional and will default to None + if not provided. + Defaults to None, which indicates no authentication is to be used. + + tls : a dict containing TLS configuration parameters for the client: + dict = {'ca_certs':"", 'certfile':"", + 'keyfile':"", 'tls_version':"", + 'ciphers':", 'insecure':""} + ca_certs is required, all other parameters are optional and will + default to None if not provided, which results in the client using + the default behaviour - see the paho.mqtt.client documentation. + Defaults to None, which indicates that TLS should not be used. + Alternatively, tls input can be an SSLContext object, which will be + processed using the tls_set_context method. + + transport : set to "tcp" to use the default setting of transport which is + raw TCP. Set to "websockets" to use WebSockets as the transport. + proxy_args: a dictionary that will be given to the client. + """ + + msg = {'topic':topic, 'payload':payload, 'qos':qos, 'retain':retain} + + multiple([msg], hostname, port, client_id, keepalive, will, auth, tls, + protocol, transport, proxy_args) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/reasoncodes.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/reasoncodes.py index c18299000319a456425153b74e9b62db09f38461..12325bcbd8e6f170143be88c17a542a7ebb5510c 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/reasoncodes.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/reasoncodes.py @@ -1,3 +1,191 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3a300eb9fdf5fc6ef59776a2f66d974da4a6be39d3642a23acdc2c14f92df4c7 -size 8590 +""" +******************************************************************* + Copyright (c) 2017, 2019 IBM Corp. + + All rights reserved. This program and the accompanying materials + are made available under the terms of the Eclipse Public License v1.0 + and Eclipse Distribution License v1.0 which accompany this distribution. + + The Eclipse Public License is available at + http://www.eclipse.org/legal/epl-v10.html + and the Eclipse Distribution License is available at + http://www.eclipse.org/org/documents/edl-v10.php. + + Contributors: + Ian Craggs - initial implementation and/or documentation +******************************************************************* +""" + +import sys +from .packettypes import PacketTypes + + +class ReasonCodes: + """MQTT version 5.0 reason codes class. + + See ReasonCodes.names for a list of possible numeric values along with their + names and the packets to which they apply. + + """ + + def __init__(self, packetType, aName="Success", identifier=-1): + """ + packetType: the type of the packet, such as PacketTypes.CONNECT that + this reason code will be used with. Some reason codes have different + names for the same identifier when used a different packet type. + + aName: the String name of the reason code to be created. Ignored + if the identifier is set. + + identifier: an integer value of the reason code to be created. + + """ + + self.packetType = packetType + self.names = { + 0: {"Success": [PacketTypes.CONNACK, PacketTypes.PUBACK, + PacketTypes.PUBREC, PacketTypes.PUBREL, PacketTypes.PUBCOMP, + PacketTypes.UNSUBACK, PacketTypes.AUTH], + "Normal disconnection": [PacketTypes.DISCONNECT], + "Granted QoS 0": [PacketTypes.SUBACK]}, + 1: {"Granted QoS 1": [PacketTypes.SUBACK]}, + 2: {"Granted QoS 2": [PacketTypes.SUBACK]}, + 4: {"Disconnect with will message": [PacketTypes.DISCONNECT]}, + 16: {"No matching subscribers": + [PacketTypes.PUBACK, PacketTypes.PUBREC]}, + 17: {"No subscription found": [PacketTypes.UNSUBACK]}, + 24: {"Continue authentication": [PacketTypes.AUTH]}, + 25: {"Re-authenticate": [PacketTypes.AUTH]}, + 128: {"Unspecified error": [PacketTypes.CONNACK, PacketTypes.PUBACK, + PacketTypes.PUBREC, PacketTypes.SUBACK, PacketTypes.UNSUBACK, + PacketTypes.DISCONNECT], }, + 129: {"Malformed packet": + [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 130: {"Protocol error": + [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 131: {"Implementation specific error": [PacketTypes.CONNACK, + PacketTypes.PUBACK, PacketTypes.PUBREC, PacketTypes.SUBACK, + PacketTypes.UNSUBACK, PacketTypes.DISCONNECT], }, + 132: {"Unsupported protocol version": [PacketTypes.CONNACK]}, + 133: {"Client identifier not valid": [PacketTypes.CONNACK]}, + 134: {"Bad user name or password": [PacketTypes.CONNACK]}, + 135: {"Not authorized": [PacketTypes.CONNACK, PacketTypes.PUBACK, + PacketTypes.PUBREC, PacketTypes.SUBACK, PacketTypes.UNSUBACK, + PacketTypes.DISCONNECT], }, + 136: {"Server unavailable": [PacketTypes.CONNACK]}, + 137: {"Server busy": [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 138: {"Banned": [PacketTypes.CONNACK]}, + 139: {"Server shutting down": [PacketTypes.DISCONNECT]}, + 140: {"Bad authentication method": + [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 141: {"Keep alive timeout": [PacketTypes.DISCONNECT]}, + 142: {"Session taken over": [PacketTypes.DISCONNECT]}, + 143: {"Topic filter invalid": + [PacketTypes.SUBACK, PacketTypes.UNSUBACK, PacketTypes.DISCONNECT]}, + 144: {"Topic name invalid": + [PacketTypes.CONNACK, PacketTypes.PUBACK, + PacketTypes.PUBREC, PacketTypes.DISCONNECT]}, + 145: {"Packet identifier in use": + [PacketTypes.PUBACK, PacketTypes.PUBREC, + PacketTypes.SUBACK, PacketTypes.UNSUBACK]}, + 146: {"Packet identifier not found": + [PacketTypes.PUBREL, PacketTypes.PUBCOMP]}, + 147: {"Receive maximum exceeded": [PacketTypes.DISCONNECT]}, + 148: {"Topic alias invalid": [PacketTypes.DISCONNECT]}, + 149: {"Packet too large": [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 150: {"Message rate too high": [PacketTypes.DISCONNECT]}, + 151: {"Quota exceeded": [PacketTypes.CONNACK, PacketTypes.PUBACK, + PacketTypes.PUBREC, PacketTypes.SUBACK, PacketTypes.DISCONNECT], }, + 152: {"Administrative action": [PacketTypes.DISCONNECT]}, + 153: {"Payload format invalid": + [PacketTypes.PUBACK, PacketTypes.PUBREC, PacketTypes.DISCONNECT]}, + 154: {"Retain not supported": + [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 155: {"QoS not supported": + [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 156: {"Use another server": + [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 157: {"Server moved": + [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 158: {"Shared subscription not supported": + [PacketTypes.SUBACK, PacketTypes.DISCONNECT]}, + 159: {"Connection rate exceeded": + [PacketTypes.CONNACK, PacketTypes.DISCONNECT]}, + 160: {"Maximum connect time": + [PacketTypes.DISCONNECT]}, + 161: {"Subscription identifiers not supported": + [PacketTypes.SUBACK, PacketTypes.DISCONNECT]}, + 162: {"Wildcard subscription not supported": + [PacketTypes.SUBACK, PacketTypes.DISCONNECT]}, + } + if identifier == -1: + if packetType == PacketTypes.DISCONNECT and aName == "Success": + aName = "Normal disconnection" + self.set(aName) + else: + self.value = identifier + self.getName() # check it's good + + def __getName__(self, packetType, identifier): + """ + Get the reason code string name for a specific identifier. + The name can vary by packet type for the same identifier, which + is why the packet type is also required. + + Used when displaying the reason code. + """ + assert identifier in self.names.keys(), identifier + names = self.names[identifier] + namelist = [name for name in names.keys() if packetType in names[name]] + assert len(namelist) == 1 + return namelist[0] + + def getId(self, name): + """ + Get the numeric id corresponding to a reason code name. + + Used when setting the reason code for a packetType + check that only valid codes for the packet are set. + """ + identifier = None + for code in self.names.keys(): + if name in self.names[code].keys(): + if self.packetType in self.names[code][name]: + identifier = code + break + assert identifier != None, name + return identifier + + def set(self, name): + self.value = self.getId(name) + + def unpack(self, buffer): + c = buffer[0] + if sys.version_info[0] < 3: + c = ord(c) + name = self.__getName__(self.packetType, c) + self.value = self.getId(name) + return 1 + + def getName(self): + """Returns the reason code name corresponding to the numeric value which is set. + """ + return self.__getName__(self.packetType, self.value) + + def __eq__(self, other): + if isinstance(other, int): + return self.value == other + if isinstance(other, str): + return self.value == str(self) + if isinstance(other, ReasonCodes): + return self.value == other.value + return False + + def __str__(self): + return self.getName() + + def json(self): + return self.getName() + + def pack(self): + return bytearray([self.value]) \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/subscribe.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/subscribe.py index fbd055c68a47a60eeac462eedd70e7416908c611..8900a6bbbde10ec02cb9f0816e07898aad4abc69 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/subscribe.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/subscribe.py @@ -1,3 +1,266 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f9d90afafbad602c5e2a595317530f3d795f405489644458167af8c8161a3c00 -size 11138 +# Copyright (c) 2016 Roger Light +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# and Eclipse Distribution License v1.0 which accompany this distribution. +# +# The Eclipse Public License is available at +# http://www.eclipse.org/legal/epl-v10.html +# and the Eclipse Distribution License is available at +# http://www.eclipse.org/org/documents/edl-v10.php. +# +# Contributors: +# Roger Light - initial API and implementation + +""" +This module provides some helper functions to allow straightforward subscribing +to topics and retrieving messages. The two functions are simple(), which +returns one or messages matching a set of topics, and callback() which allows +you to pass a callback for processing of messages. +""" +from __future__ import absolute_import + +from . import client as paho +from .. import mqtt + +def _on_connect(client, userdata, flags, rc): + """Internal callback""" + if rc != 0: + raise mqtt.MQTTException(paho.connack_string(rc)) + + if isinstance(userdata['topics'], list): + for topic in userdata['topics']: + client.subscribe(topic, userdata['qos']) + else: + client.subscribe(userdata['topics'], userdata['qos']) + + +def _on_message_callback(client, userdata, message): + """Internal callback""" + userdata['callback'](client, userdata['userdata'], message) + + +def _on_message_simple(client, userdata, message): + """Internal callback""" + + if userdata['msg_count'] == 0: + return + + # Don't process stale retained messages if 'retained' was false + if message.retain and not userdata['retained']: + return + + userdata['msg_count'] = userdata['msg_count'] - 1 + + if userdata['messages'] is None and userdata['msg_count'] == 0: + userdata['messages'] = message + client.disconnect() + return + + userdata['messages'].append(message) + if userdata['msg_count'] == 0: + client.disconnect() + + +def callback(callback, topics, qos=0, userdata=None, hostname="localhost", + port=1883, client_id="", keepalive=60, will=None, auth=None, + tls=None, protocol=paho.MQTTv311, transport="tcp", + clean_session=True, proxy_args=None): + """Subscribe to a list of topics and process them in a callback function. + + This function creates an MQTT client, connects to a broker and subscribes + to a list of topics. Incoming messages are processed by the user provided + callback. This is a blocking function and will never return. + + callback : function of the form "on_message(client, userdata, message)" for + processing the messages received. + + topics : either a string containing a single topic to subscribe to, or a + list of topics to subscribe to. + + qos : the qos to use when subscribing. This is applied to all topics. + + userdata : passed to the callback + + hostname : a string containing the address of the broker to connect to. + Defaults to localhost. + + port : the port to connect to the broker on. Defaults to 1883. + + client_id : the MQTT client id to use. If "" or None, the Paho library will + generate a client id automatically. + + keepalive : the keepalive timeout value for the client. Defaults to 60 + seconds. + + will : a dict containing will parameters for the client: will = {'topic': + "", 'payload':", 'qos':, 'retain':}. + Topic is required, all other parameters are optional and will + default to None, 0 and False respectively. + Defaults to None, which indicates no will should be used. + + auth : a dict containing authentication parameters for the client: + auth = {'username':"", 'password':""} + Username is required, password is optional and will default to None + if not provided. + Defaults to None, which indicates no authentication is to be used. + + tls : a dict containing TLS configuration parameters for the client: + dict = {'ca_certs':"", 'certfile':"", + 'keyfile':"", 'tls_version':"", + 'ciphers':", 'insecure':""} + ca_certs is required, all other parameters are optional and will + default to None if not provided, which results in the client using + the default behaviour - see the paho.mqtt.client documentation. + Alternatively, tls input can be an SSLContext object, which will be + processed using the tls_set_context method. + Defaults to None, which indicates that TLS should not be used. + + transport : set to "tcp" to use the default setting of transport which is + raw TCP. Set to "websockets" to use WebSockets as the transport. + + clean_session : a boolean that determines the client type. If True, + the broker will remove all information about this client + when it disconnects. If False, the client is a persistent + client and subscription information and queued messages + will be retained when the client disconnects. + Defaults to True. + + proxy_args: a dictionary that will be given to the client. + """ + + if qos < 0 or qos > 2: + raise ValueError('qos must be in the range 0-2') + + callback_userdata = { + 'callback':callback, + 'topics':topics, + 'qos':qos, + 'userdata':userdata} + + client = paho.Client(client_id=client_id, userdata=callback_userdata, + protocol=protocol, transport=transport, + clean_session=clean_session) + client.on_message = _on_message_callback + client.on_connect = _on_connect + + if proxy_args is not None: + client.proxy_set(**proxy_args) + + if auth: + username = auth.get('username') + if username: + password = auth.get('password') + client.username_pw_set(username, password) + else: + raise KeyError("The 'username' key was not found, this is " + "required for auth") + + if will is not None: + client.will_set(**will) + + if tls is not None: + if isinstance(tls, dict): + insecure = tls.pop('insecure', False) + client.tls_set(**tls) + if insecure: + # Must be set *after* the `client.tls_set()` call since it sets + # up the SSL context that `client.tls_insecure_set` alters. + client.tls_insecure_set(insecure) + else: + # Assume input is SSLContext object + client.tls_set_context(tls) + + client.connect(hostname, port, keepalive) + client.loop_forever() + + +def simple(topics, qos=0, msg_count=1, retained=True, hostname="localhost", + port=1883, client_id="", keepalive=60, will=None, auth=None, + tls=None, protocol=paho.MQTTv311, transport="tcp", + clean_session=True, proxy_args=None): + """Subscribe to a list of topics and return msg_count messages. + + This function creates an MQTT client, connects to a broker and subscribes + to a list of topics. Once "msg_count" messages have been received, it + disconnects cleanly from the broker and returns the messages. + + topics : either a string containing a single topic to subscribe to, or a + list of topics to subscribe to. + + qos : the qos to use when subscribing. This is applied to all topics. + + msg_count : the number of messages to retrieve from the broker. + if msg_count == 1 then a single MQTTMessage will be returned. + if msg_count > 1 then a list of MQTTMessages will be returned. + + retained : If set to True, retained messages will be processed the same as + non-retained messages. If set to False, retained messages will + be ignored. This means that with retained=False and msg_count=1, + the function will return the first message received that does + not have the retained flag set. + + hostname : a string containing the address of the broker to connect to. + Defaults to localhost. + + port : the port to connect to the broker on. Defaults to 1883. + + client_id : the MQTT client id to use. If "" or None, the Paho library will + generate a client id automatically. + + keepalive : the keepalive timeout value for the client. Defaults to 60 + seconds. + + will : a dict containing will parameters for the client: will = {'topic': + "", 'payload':", 'qos':, 'retain':}. + Topic is required, all other parameters are optional and will + default to None, 0 and False respectively. + Defaults to None, which indicates no will should be used. + + auth : a dict containing authentication parameters for the client: + auth = {'username':"", 'password':""} + Username is required, password is optional and will default to None + if not provided. + Defaults to None, which indicates no authentication is to be used. + + tls : a dict containing TLS configuration parameters for the client: + dict = {'ca_certs':"", 'certfile':"", + 'keyfile':"", 'tls_version':"", + 'ciphers':", 'insecure':""} + ca_certs is required, all other parameters are optional and will + default to None if not provided, which results in the client using + the default behaviour - see the paho.mqtt.client documentation. + Alternatively, tls input can be an SSLContext object, which will be + processed using the tls_set_context method. + Defaults to None, which indicates that TLS should not be used. + + transport : set to "tcp" to use the default setting of transport which is + raw TCP. Set to "websockets" to use WebSockets as the transport. + + clean_session : a boolean that determines the client type. If True, + the broker will remove all information about this client + when it disconnects. If False, the client is a persistent + client and subscription information and queued messages + will be retained when the client disconnects. + Defaults to True. + + proxy_args: a dictionary that will be given to the client. + """ + + if msg_count < 1: + raise ValueError('msg_count must be > 0') + + # Set ourselves up to return a single message if msg_count == 1, or a list + # if > 1. + if msg_count == 1: + messages = None + else: + messages = [] + + userdata = {'retained':retained, 'msg_count':msg_count, 'messages':messages} + + callback(_on_message_simple, topics, qos, userdata, hostname, port, + client_id, keepalive, will, auth, tls, protocol, transport, + clean_session, proxy_args) + + return userdata['messages'] diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/subscribeoptions.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/subscribeoptions.py index a6c46a4928b1dd95734fad9262a272e8ae3fb345..f55e90a4593acd8b3fe51d8f2f145c13a436ea38 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/subscribeoptions.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/mqtt/subscribeoptions.py @@ -1,3 +1,110 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b8eb860015453f63159be36300f4dac415e20dfa0bc31be37e9701f618ea7951 -size 4616 +""" +******************************************************************* + Copyright (c) 2017, 2019 IBM Corp. + + All rights reserved. This program and the accompanying materials + are made available under the terms of the Eclipse Public License v1.0 + and Eclipse Distribution License v1.0 which accompany this distribution. + + The Eclipse Public License is available at + http://www.eclipse.org/legal/epl-v10.html + and the Eclipse Distribution License is available at + http://www.eclipse.org/org/documents/edl-v10.php. + + Contributors: + Ian Craggs - initial implementation and/or documentation +******************************************************************* +""" + +import sys + + +class MQTTException(Exception): + pass + + +class SubscribeOptions(object): + """The MQTT v5.0 subscribe options class. + + The options are: + qos: As in MQTT v3.1.1. + noLocal: True or False. If set to True, the subscriber will not receive its own publications. + retainAsPublished: True or False. If set to True, the retain flag on received publications will be as set + by the publisher. + retainHandling: RETAIN_SEND_ON_SUBSCRIBE, RETAIN_SEND_IF_NEW_SUB or RETAIN_DO_NOT_SEND + Controls when the broker should send retained messages: + - RETAIN_SEND_ON_SUBSCRIBE: on any successful subscribe request + - RETAIN_SEND_IF_NEW_SUB: only if the subscribe request is new + - RETAIN_DO_NOT_SEND: never send retained messages + """ + + # retain handling options + RETAIN_SEND_ON_SUBSCRIBE, RETAIN_SEND_IF_NEW_SUB, RETAIN_DO_NOT_SEND = range( + 0, 3) + + def __init__(self, qos=0, noLocal=False, retainAsPublished=False, retainHandling=RETAIN_SEND_ON_SUBSCRIBE): + """ + qos: 0, 1 or 2. 0 is the default. + noLocal: True or False. False is the default and corresponds to MQTT v3.1.1 behavior. + retainAsPublished: True or False. False is the default and corresponds to MQTT v3.1.1 behavior. + retainHandling: RETAIN_SEND_ON_SUBSCRIBE, RETAIN_SEND_IF_NEW_SUB or RETAIN_DO_NOT_SEND + RETAIN_SEND_ON_SUBSCRIBE is the default and corresponds to MQTT v3.1.1 behavior. + """ + object.__setattr__(self, "names", + ["QoS", "noLocal", "retainAsPublished", "retainHandling"]) + self.QoS = qos # bits 0,1 + self.noLocal = noLocal # bit 2 + self.retainAsPublished = retainAsPublished # bit 3 + self.retainHandling = retainHandling # bits 4 and 5: 0, 1 or 2 + assert self.QoS in [0, 1, 2] + assert self.retainHandling in [ + 0, 1, 2], "Retain handling should be 0, 1 or 2" + + def __setattr__(self, name, value): + if name not in self.names: + raise MQTTException( + name + " Attribute name must be one of "+str(self.names)) + object.__setattr__(self, name, value) + + def pack(self): + assert self.QoS in [0, 1, 2] + assert self.retainHandling in [ + 0, 1, 2], "Retain handling should be 0, 1 or 2" + noLocal = 1 if self.noLocal else 0 + retainAsPublished = 1 if self.retainAsPublished else 0 + data = [(self.retainHandling << 4) | (retainAsPublished << 3) | + (noLocal << 2) | self.QoS] + if sys.version_info[0] >= 3: + buffer = bytes(data) + else: + buffer = bytearray(data) + return buffer + + def unpack(self, buffer): + b0 = buffer[0] + self.retainHandling = ((b0 >> 4) & 0x03) + self.retainAsPublished = True if ((b0 >> 3) & 0x01) == 1 else False + self.noLocal = True if ((b0 >> 2) & 0x01) == 1 else False + self.QoS = (b0 & 0x03) + assert self.retainHandling in [ + 0, 1, 2], "Retain handling should be 0, 1 or 2, not %d" % self.retainHandling + assert self.QoS in [ + 0, 1, 2], "QoS should be 0, 1 or 2, not %d" % self.QoS + return 1 + + def __repr__(self): + return str(self) + + def __str__(self): + return "{QoS="+str(self.QoS)+", noLocal="+str(self.noLocal) +\ + ", retainAsPublished="+str(self.retainAsPublished) +\ + ", retainHandling="+str(self.retainHandling)+"}" + + def json(self): + data = { + "QoS": self.QoS, + "noLocal": self.noLocal, + "retainAsPublished": self.retainAsPublished, + "retainHandling": self.retainHandling, + } + return data diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/__init__.py index bf9711f5139588699bb9a59df6642e0dd14a4172..9df36f3a8148630d896b7681d517b1a8cf566c43 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/__init__.py @@ -1,3 +1,46 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da22b17e1eff412f71d9a931fd634e6ea3331fba731ed20efef18ee6084de664 -size 998 +import time + +__version__ = "1.1.2" +"Module version string." + +version = (1, 1, 2) +"Module version tuple." + + +def sleep(seconds): + """Sleep for the specified number of seconds. + + Args: + seconds (int, long, float): duration in seconds. + + """ + time.sleep(seconds) + + +def sleep_ms(milliseconds): + """Sleep for the specified number of milliseconds. + + Args: + milliseconds (int, long, float): duration in milliseconds. + + """ + time.sleep(milliseconds / 1000.0) + + +def sleep_us(microseconds): + """Sleep for the specified number of microseconds. + + Args: + microseconds (int, long, float): duration in microseconds. + + """ + time.sleep(microseconds / 1000000.0) + + +from periphery.gpio import GPIO, GPIOError +from periphery.led import LED, LEDError +from periphery.pwm import PWM, PWMError +from periphery.spi import SPI, SPIError +from periphery.i2c import I2C, I2CError +from periphery.mmio import MMIO, MMIOError +from periphery.serial import Serial, SerialError diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/gpio.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/gpio.py index d8daf59b839d75f0435e921e87440d6503ebf76d..5d9647ebecafe18cf7cfbb1a49f39901928fca6a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/gpio.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/gpio.py @@ -1,3 +1,328 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c21e4ae0c8f4247f363cbe2eab23bc99a4493d044fecdfd6eab8787d79f1377 -size 10330 +import os +import select +import time + + +class GPIOError(IOError): + """Base class for GPIO errors.""" + pass + + +class GPIO(object): + # Number of retries to check for successful GPIO export + GPIO_EXPORT_STAT_RETRIES = 10 + # Delay between check for GPIO export (100ms) + GPIO_EXPORT_STAT_DELAY = 0.1 + + def __init__(self, pin, direction="preserve"): + """Instantiate a GPIO object and open the sysfs GPIO corresponding to + the specified pin, with the specified direction. + + `direction` can be "in" for input; "out" for output, initialized to + low; "high" for output, initialized to high; "low" for output, + initialized to low, or "preserve" for preserving existing direction. + Default is "preserve". + + Args: + pin (int): Linux pin number. + direction (str): pin direction, can be "in", "out", "high", "low", + or "preserve". + + Returns: + GPIO: GPIO object. + + Raises: + GPIOError: if an I/O or OS error occurs. + TypeError: if `pin` or `direction` types are invalid. + ValueError: if `direction` value is invalid. + TimeoutError: if waiting for GPIO export times out. + + """ + self._fd = None + self._pin = None + self._open(pin, direction) + + def __del__(self): + self.close() + + def __enter__(self): + pass + + def __exit__(self, t, value, traceback): + self.close() + + def _open(self, pin, direction): + if not isinstance(pin, int): + raise TypeError("Invalid pin type, should be integer.") + if not isinstance(direction, str): + raise TypeError("Invalid direction type, should be string.") + if direction.lower() not in ["in", "out", "high", "low", "preserve"]: + raise ValueError("Invalid direction, can be: \"in\", \"out\", \"high\", \"low\", \"preserve\".") + + gpio_path = "/sys/class/gpio/gpio%d" % pin + + if not os.path.isdir(gpio_path): + # Export the pin + try: + with open("/sys/class/gpio/export", "w") as f_export: + f_export.write("%d\n" % pin) + except IOError as e: + raise GPIOError(e.errno, "Exporting GPIO: " + e.strerror) + + # Loop until GPIO is exported + exported = False + for i in range(GPIO.GPIO_EXPORT_STAT_RETRIES): + if os.path.isdir(gpio_path): + exported = True + break + + time.sleep(GPIO.GPIO_EXPORT_STAT_DELAY) + + if not exported: + raise TimeoutError("Exporting GPIO: waiting for '%s' timed out" % gpio_path) + + # Write direction, if it's not to be preserved + direction = direction.lower() + if direction != "preserve": + try: + with open("/sys/class/gpio/gpio%d/direction" % pin, "w") as f_direction: + f_direction.write(direction + "\n") + except IOError as e: + raise GPIOError(e.errno, "Setting GPIO direction: " + e.strerror) + + # Open value + try: + self._fd = os.open("/sys/class/gpio/gpio%d/value" % pin, os.O_RDWR) + except OSError as e: + raise GPIOError(e.errno, "Opening GPIO: " + e.strerror) + + self._pin = pin + + # Methods + + def read(self): + """Read the state of the GPIO. + + Returns: + bool: ``True`` for high state, ``False`` for low state. + + Raises: + GPIOError: if an I/O or OS error occurs. + + """ + # Read value + try: + buf = os.read(self._fd, 2) + except OSError as e: + raise GPIOError(e.errno, "Reading GPIO: " + e.strerror) + + # Rewind + try: + os.lseek(self._fd, 0, os.SEEK_SET) + except OSError as e: + raise GPIOError(e.errno, "Rewinding GPIO: " + e.strerror) + + if buf[0] == b"0"[0]: + return False + elif buf[0] == b"1"[0]: + return True + + raise GPIOError(None, "Unknown GPIO value: \"%s\"" % buf[0]) + + def write(self, value): + """Set the state of the GPIO to `value`. + + Args: + value (bool): ``True`` for high state, ``False`` for low state. + + Raises: + GPIOError: if an I/O or OS error occurs. + TypeError: if `value` type is not bool. + + """ + if not isinstance(value, bool): + raise TypeError("Invalid value type, should be bool.") + + # Write value + try: + if value: + os.write(self._fd, b"1\n") + else: + os.write(self._fd, b"0\n") + except OSError as e: + raise GPIOError(e.errno, "Writing GPIO: " + e.strerror) + + # Rewind + try: + os.lseek(self._fd, 0, os.SEEK_SET) + except OSError as e: + raise GPIOError(e.errno, "Rewinding GPIO: " + e.strerror) + + def poll(self, timeout=None): + """Poll a GPIO for the edge event configured with the .edge property. + + `timeout` can be a positive number for a timeout in seconds, 0 for a + non-blocking poll, or negative or None for a blocking poll. Defaults to + blocking poll. + + Args: + timeout (int, float, None): timeout duration in seconds. + + Returns: + bool: ``True`` if an edge event occurred, ``False`` on timeout. + + Raises: + GPIOError: if an I/O or OS error occurs. + TypeError: if `timeout` type is not None or int. + + """ + if not isinstance(timeout, (int, float, type(None))): + raise TypeError("Invalid timeout type, should be integer, float, or None.") + + # Setup epoll + p = select.epoll() + p.register(self._fd, select.EPOLLIN | select.EPOLLET | select.EPOLLPRI) + + # Poll twice, as first call returns with current state + for _ in range(2): + events = p.poll(timeout) + + # If GPIO edge interrupt occurred + if events: + # Rewind + try: + os.lseek(self._fd, 0, os.SEEK_SET) + except OSError as e: + raise GPIOError(e.errno, "Rewinding GPIO: " + e.strerror) + + return True + + return False + + def close(self): + """Close the sysfs GPIO. + + Raises: + GPIOError: if an I/O or OS error occurs. + + """ + if self._fd is None: + return + + try: + os.close(self._fd) + except OSError as e: + raise GPIOError(e.errno, "Closing GPIO: " + e.strerror) + + self._fd = None + + # Immutable properties + + @property + def fd(self): + """Get the file descriptor for the underlying sysfs GPIO "value" file + of the GPIO object. + + :type: int + """ + return self._fd + + @property + def pin(self): + """Get the sysfs GPIO pin number. + + :type: int + """ + return self._pin + + @property + def supports_interrupts(self): + """Get whether or not this GPIO supports edge interrupts, configurable + with the .edge property. + + :type: bool + """ + return os.path.isfile("/sys/class/gpio/gpio%d/edge" % self._pin) + + # Mutable properties + + def _get_direction(self): + # Read direction + try: + with open("/sys/class/gpio/gpio%d/direction" % self._pin, "r") as f_direction: + direction = f_direction.read() + except IOError as e: + raise GPIOError(e.errno, "Getting GPIO direction: " + e.strerror) + + return direction.strip() + + def _set_direction(self, direction): + if not isinstance(direction, str): + raise TypeError("Invalid direction type, should be string.") + if direction.lower() not in ["in", "out", "high", "low"]: + raise ValueError("Invalid direction, can be: \"in\", \"out\", \"high\", \"low\".") + + # Write direction + try: + direction = direction.lower() + with open("/sys/class/gpio/gpio%d/direction" % self._pin, "w") as f_direction: + f_direction.write(direction + "\n") + except IOError as e: + raise GPIOError(e.errno, "Setting GPIO direction: " + e.strerror) + + direction = property(_get_direction, _set_direction) + """Get or set the GPIO's direction. Can be "in", "out", "high", "low". + + Direction "in" is input; "out" is output, initialized to low; "high" is + output, initialized to high; and "low" is output, initialized to low. + + Raises: + GPIOError: if an I/O or OS error occurs. + TypeError: if `direction` type is not str. + ValueError: if `direction` value is invalid. + + :type: str + """ + + def _get_edge(self): + # Read edge + try: + with open("/sys/class/gpio/gpio%d/edge" % self._pin, "r") as f_edge: + edge = f_edge.read() + except IOError as e: + raise GPIOError(e.errno, "Getting GPIO edge: " + e.strerror) + + return edge.strip() + + def _set_edge(self, edge): + if not isinstance(edge, str): + raise TypeError("Invalid edge type, should be string.") + if edge.lower() not in ["none", "rising", "falling", "both"]: + raise ValueError("Invalid edge, can be: \"none\", \"rising\", \"falling\", \"both\".") + + # Write edge + try: + edge = edge.lower() + with open("/sys/class/gpio/gpio%d/edge" % self._pin, "w") as f_edge: + f_edge.write(edge + "\n") + except IOError as e: + raise GPIOError(e.errno, "Setting GPIO edge: " + e.strerror) + + edge = property(_get_edge, _set_edge) + """Get or set the GPIO's interrupt edge. Can be "none", "rising", "falling", "both". + + Raises: + GPIOError: if an I/O or OS error occurs. + TypeError: if `edge` type is not str. + ValueError: if `edge` value is invalid. + + :type: str + """ + + # String representation + + def __str__(self): + if self.supports_interrupts: + return "GPIO %d (fd=%d, direction=%s, supports interrupts, edge=%s)" % (self._pin, self._fd, self.direction, self.edge) + + return "GPIO %d (fd=%d, direction=%s, no interrupts)" % (self._pin, self._fd, self.direction) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/i2c.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/i2c.py index d0b8b70eaba33c9086a1b152a518d507ad70b4cd..b5277017e9105a8556a5a139e1bc4a1a2ebae847 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/i2c.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/i2c.py @@ -1,3 +1,218 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96298199c438b1b6983ae17be3f2c79f51610cacb956fb62f3740483e82fcb7b -size 6721 +import os +import ctypes +import array +import fcntl + + +class I2CError(IOError): + """Base class for I2C errors.""" + pass + + +class _CI2CMessage(ctypes.Structure): + _fields_ = [ + ("addr", ctypes.c_ushort), + ("flags", ctypes.c_ushort), + ("len", ctypes.c_ushort), + ("buf", ctypes.POINTER(ctypes.c_ubyte)), + ] + + +class _CI2CIocTransfer(ctypes.Structure): + _fields_ = [ + ("msgs", ctypes.POINTER(_CI2CMessage)), + ("nmsgs", ctypes.c_uint), + ] + + +class I2C(object): + # Constants scraped from and + _I2C_IOC_FUNCS = 0x705 + _I2C_IOC_RDWR = 0x707 + _I2C_FUNC_I2C = 0x1 + _I2C_M_TEN = 0x0010 + _I2C_M_RD = 0x0001 + _I2C_M_STOP = 0x8000 + _I2C_M_NOSTART = 0x4000 + _I2C_M_REV_DIR_ADDR = 0x2000 + _I2C_M_IGNORE_NAK = 0x1000 + _I2C_M_NO_RD_ACK = 0x0800 + _I2C_M_RECV_LEN = 0x0400 + + def __init__(self, devpath): + """Instantiate an I2C object and open the i2c-dev device at the + specified path. + + Args: + devpath (str): i2c-dev device path. + + Returns: + I2C: I2C object. + + Raises: + I2CError: if an I/O or OS error occurs. + + """ + self._fd = None + self._devpath = None + self._open(devpath) + + def __del__(self): + self.close() + + def __enter__(self): + pass + + def __exit__(self, t, value, traceback): + self.close() + + def _open(self, devpath): + # Open i2c device + try: + self._fd = os.open(devpath, os.O_RDWR) + except OSError as e: + raise I2CError(e.errno, "Opening I2C device: " + e.strerror) + + self._devpath = devpath + + # Query supported functions + buf = array.array('I', [0]) + try: + fcntl.ioctl(self._fd, I2C._I2C_IOC_FUNCS, buf, True) + except OSError as e: + self.close() + raise I2CError(e.errno, "Querying supported functions: " + e.strerror) + + # Check that I2C_RDWR ioctl() is supported on this device + if (buf[0] & I2C._I2C_FUNC_I2C) == 0: + self.close() + raise I2CError(None, "I2C not supported on device %s." % devpath) + + # Methods + + def transfer(self, address, messages): + """Transfer `messages` to the specified I2C `address`. Modifies the + `messages` array with the results of any read transactions. + + Args: + address (int): I2C address. + messages (list): list of I2C.Message messages. + + Raises: + I2CError: if an I/O or OS error occurs. + TypeError: if `messages` type is not list. + ValueError: if `messages` length is zero, or if message data is not valid bytes. + + """ + if not isinstance(messages, list): + raise TypeError("Invalid messages type, should be list of I2C.Message.") + elif len(messages) == 0: + raise ValueError("Invalid messages data, should be non-zero length.") + + # Convert I2C.Message messages to _CI2CMessage messages + cmessages = (_CI2CMessage * len(messages))() + for i in range(len(messages)): + # Convert I2C.Message data to bytes + if isinstance(messages[i].data, bytes): + data = messages[i].data + elif isinstance(messages[i].data, bytearray): + data = bytes(messages[i].data) + elif isinstance(messages[i].data, list): + data = bytes(bytearray(messages[i].data)) + + cmessages[i].addr = address + cmessages[i].flags = messages[i].flags | (I2C._I2C_M_RD if messages[i].read else 0) + cmessages[i].len = len(data) + cmessages[i].buf = ctypes.cast(ctypes.create_string_buffer(data, len(data)), ctypes.POINTER(ctypes.c_ubyte)) + + # Prepare transfer structure + i2c_xfer = _CI2CIocTransfer() + i2c_xfer.nmsgs = len(cmessages) + i2c_xfer.msgs = cmessages + + # Transfer + try: + fcntl.ioctl(self._fd, I2C._I2C_IOC_RDWR, i2c_xfer, False) + except IOError as e: + raise I2CError(e.errno, "I2C transfer: " + e.strerror) + + # Update any read I2C.Message messages + for i in range(len(messages)): + if messages[i].read: + data = [cmessages[i].buf[j] for j in range(cmessages[i].len)] + # Convert read data to type used in I2C.Message messages + if isinstance(messages[i].data, list): + messages[i].data = data + elif isinstance(messages[i].data, bytearray): + messages[i].data = bytearray(data) + elif isinstance(messages[i].data, bytes): + messages[i].data = bytes(bytearray(data)) + + def close(self): + """Close the i2c-dev I2C device. + + Raises: + I2CError: if an I/O or OS error occurs. + + """ + if self._fd is None: + return + + try: + os.close(self._fd) + except OSError as e: + raise I2CError(e.errno, "Closing I2C device: " + e.strerror) + + self._fd = None + + # Immutable properties + + @property + def fd(self): + """Get the file descriptor of the underlying i2c-dev device. + + :type: int + """ + return self._fd + + @property + def devpath(self): + """Get the device path of the underlying i2c-dev device. + + :type: str + """ + return self._devpath + + # String representation + + def __str__(self): + return "I2C (device=%s, fd=%d)" % (self.devpath, self.fd) + + class Message: + def __init__(self, data, read=False, flags=0): + """Instantiate an I2C Message object. + + Args: + data (bytes, bytearray, list): a byte array or list of 8-bit + integers to write. + read (bool): specify this as a read message, where `data` + serves as placeholder bytes for the read. + flags (int): additional i2c-dev flags for this message. + + Returns: + Message: Message object. + + Raises: + TypeError: if `data`, `read`, or `flags` types are invalid. + + """ + if not isinstance(data, (bytes, bytearray, list)): + raise TypeError("Invalid data type, should be bytes, bytearray, or list.") + if not isinstance(read, bool): + raise TypeError("Invalid read type, should be boolean.") + if not isinstance(flags, int): + raise TypeError("Invalid flags type, should be integer.") + + self.data = data + self.read = read + self.flags = flags diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/led.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/led.py index d6c3f914469187002013ed33e7e672116455aa0d..841a465f0f873695f600bd3acb76a423e02f8939 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/led.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/led.py @@ -1,3 +1,207 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:46d7846337c00478d632cddd6aa0d059e6ab080154b38dfabdaac6eceb76628c -size 5655 +import os + + +class LEDError(IOError): + """Base class for LED errors.""" + pass + + +class LED(object): + def __init__(self, name, brightness=None): + """Instantiate an LED object and open the sysfs LED corresponding to + the specified name. + + `brightness` can be a boolean for on/off, integer value for a specific + brightness, or None to preserve existing brightness. Default is + preserve existing brightness. + + Args: + name (str): Linux led name. + brightness (bool, int, None): Initial brightness. + + Returns: + LED: LED object. + + Raises: + LEDError: if an I/O or OS error occurs. + TypeError: if `name` or `brightness` types are invalid. + ValueError: if `brightness` value is invalid. + + """ + self._fd = None + self._name = None + self._max_brightness = None + self._open(name, brightness) + + def __del__(self): + self.close() + + def __enter__(self): + pass + + def __exit__(self, t, value, traceback): + self.close() + + def _open(self, name, brightness): + if not isinstance(name, str): + raise TypeError("Invalid name type, should be string.") + if not isinstance(brightness, (bool, int, type(None))): + raise TypeError("Invalid brightness type, should be bool, int, or None.") + + led_path = "/sys/class/leds/%s" % name + + if not os.path.isdir(led_path): + raise ValueError("LED %s not found!" % name) + + # Read max brightness + try: + with open("/sys/class/leds/%s/max_brightness" % name, "r") as f_max_brightness: + max_brightness = int(f_max_brightness.read()) + except IOError as e: + raise LEDError(e.errno, "Reading LED max brightness: " + e.strerror) + + # Open brightness + try: + self._fd = os.open("/sys/class/leds/%s/brightness" % name, os.O_RDWR) + except OSError as e: + raise LEDError(e.errno, "Opening LED brightness: " + e.strerror) + + self._max_brightness = max_brightness + self._name = name + + # Set initial brightness + if brightness: + self.write(brightness) + + # Methods + + def read(self): + """Read the brightness of the LED. + + Returns: + int: Current brightness. + + Raises: + LEDError: if an I/O or OS error occurs. + + """ + # Read value + try: + buf = os.read(self._fd, 8) + except OSError as e: + raise LEDError(e.errno, "Reading LED brightness: " + e.strerror) + + # Rewind + try: + os.lseek(self._fd, 0, os.SEEK_SET) + except OSError as e: + raise LEDError(e.errno, "Rewinding LED brightness: " + e.strerror) + + return int(buf) + + def write(self, brightness): + """Set the brightness of the LED to `brightness`. + + `brightness` can be a boolean for on/off, or integer value for a + specific brightness. + + Args: + brightness (bool, int): Brightness value to set. + + Raises: + LEDError: if an I/O or OS error occurs. + TypeError: if `brightness` type is not bool or int. + + """ + if not isinstance(brightness, (bool, int)): + raise TypeError("Invalid brightness type, should be bool or int.") + + if isinstance(brightness, bool): + brightness = self._max_brightness if brightness else 0 + else: + if not 0 <= brightness <= self._max_brightness: + raise ValueError("Invalid brightness value, should be between 0 and %d." % self._max_brightness) + + # Write value + try: + os.write(self._fd, b"%d\n" % brightness) + except OSError as e: + raise LEDError(e.errno, "Writing LED brightness: " + e.strerror) + + # Rewind + try: + os.lseek(self._fd, 0, os.SEEK_SET) + except OSError as e: + raise LEDError(e.errno, "Rewinding LED brightness: " + e.strerror) + + def close(self): + """Close the sysfs LED. + + Raises: + LEDError: if an I/O or OS error occurs. + + """ + if self._fd is None: + return + + try: + os.close(self._fd) + except OSError as e: + raise LEDError(e.errno, "Closing LED: " + e.strerror) + + self._fd = None + + # Immutable properties + + @property + def fd(self): + """Get the file descriptor for the underlying sysfs LED "brightness" + file of the LED object. + + :type: int + """ + return self._fd + + @property + def name(self): + """Get the sysfs LED name. + + :type: str + """ + return self._name + + @property + def max_brightness(self): + """Get the LED's max brightness. + + :type: int + """ + return self._max_brightness + + # Mutable properties + + def _get_brightness(self): + # Read brightness + return self.read() + + def _set_brightness(self, brightness): + return self.write(brightness) + + brightness = property(_get_brightness, _set_brightness) + """Get or set the LED's brightness. + + Value can be a boolean for on/off, or integer value a for specific + brightness. + + Raises: + LEDError: if an I/O or OS error occurs. + TypeError: if `brightness` type is not bool or int. + ValueError: if `brightness` value is invalid. + + :type: int + """ + + # String representation + + def __str__(self): + return "LED %s (fd=%d, max_brightness=%d)" % (self._name, self._fd, self._max_brightness) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/mmio.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/mmio.py index 28821d852ed5738918e6a776956cf2058ecb2fa6..0ad6465682f06e1810f9bd7ef22a5e5368d28f97 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/mmio.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/mmio.py @@ -1,3 +1,309 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aeb9edac0102b50deefd002b3f46863699593fb675a683a9028999edd14f3bbf -size 10117 +import sys +import os +import mmap +import ctypes +import struct + + +# Alias long to int on Python 3 +if sys.version_info[0] >= 3: + long = int + + +class MMIOError(IOError): + """Base class for MMIO errors.""" + pass + + +class MMIO(object): + def __init__(self, physaddr, size): + """Instantiate an MMIO object and map the region of physical memory + specified by the address base `physaddr` and size `size` in bytes. + + Args: + physaddr (int, long): base physical address of memory region. + size (int, long): size of memory region. + + Returns: + MMIO: MMIO object. + + Raises: + MMIOError: if an I/O or OS error occurs. + TypeError: if `physaddr` or `size` types are invalid. + + """ + self.mapping = None + self._open(physaddr, size) + + def __del__(self): + self.close() + + def __enter__(self): + pass + + def __exit__(self, t, value, traceback): + self.close() + + def _open(self, physaddr, size): + if not isinstance(physaddr, (int, long)): + raise TypeError("Invalid physaddr type, should be integer.") + if not isinstance(size, (int, long)): + raise TypeError("Invalid size type, should be integer.") + + pagesize = os.sysconf(os.sysconf_names['SC_PAGESIZE']) + + self._physaddr = physaddr + self._size = size + self._aligned_physaddr = physaddr - (physaddr % pagesize) + self._aligned_size = size + (physaddr - self._aligned_physaddr) + + try: + fd = os.open("/dev/mem", os.O_RDWR | os.O_SYNC) + except OSError as e: + raise MMIOError(e.errno, "Opening /dev/mem: " + e.strerror) + + try: + self.mapping = mmap.mmap(fd, self._aligned_size, flags=mmap.MAP_SHARED, prot=(mmap.PROT_READ | mmap.PROT_WRITE), offset=self._aligned_physaddr) + except OSError as e: + raise MMIOError(e.errno, "Mapping /dev/mem: " + e.strerror) + + try: + os.close(fd) + except OSError as e: + raise MMIOError(e.errno, "Closing /dev/mem: " + e.strerror) + + # Methods + + def _adjust_offset(self, offset): + return offset + (self._physaddr - self._aligned_physaddr) + + def _validate_offset(self, offset, length): + if (offset + length) > self._aligned_size: + raise ValueError("Offset out of bounds.") + + def read32(self, offset): + """Read 32-bits from the specified `offset` in bytes, relative to the + base physical address of the MMIO region. + + Args: + offset (int, long): offset from base physical address, in bytes. + + Returns: + int: 32-bit value read. + + Raises: + TypeError: if `offset` type is invalid. + ValueError: if `offset` is out of bounds. + + """ + if not isinstance(offset, (int, long)): + raise TypeError("Invalid offset type, should be integer.") + + offset = self._adjust_offset(offset) + self._validate_offset(offset, 4) + return struct.unpack("=L", self.mapping[offset:offset + 4])[0] + + def read16(self, offset): + """Read 16-bits from the specified `offset` in bytes, relative to the + base physical address of the MMIO region. + + Args: + offset (int, long): offset from base physical address, in bytes. + + Returns: + int: 16-bit value read. + + Raises: + TypeError: if `offset` type is invalid. + ValueError: if `offset` is out of bounds. + + """ + if not isinstance(offset, (int, long)): + raise TypeError("Invalid offset type, should be integer.") + + offset = self._adjust_offset(offset) + self._validate_offset(offset, 2) + return struct.unpack("=H", self.mapping[offset:offset + 2])[0] + + def read8(self, offset): + """Read 8-bits from the specified `offset` in bytes, relative to the + base physical address of the MMIO region. + + Args: + offset (int, long): offset from base physical address, in bytes. + + Returns: + int: 8-bit value read. + + Raises: + TypeError: if `offset` type is invalid. + ValueError: if `offset` is out of bounds. + + """ + if not isinstance(offset, (int, long)): + raise TypeError("Invalid offset type, should be integer.") + + offset = self._adjust_offset(offset) + self._validate_offset(offset, 1) + return struct.unpack("B", self.mapping[offset:offset + 1])[0] + + def read(self, offset, length): + """Read a string of bytes from the specified `offset` in bytes, + relative to the base physical address of the MMIO region. + + Args: + offset (int, long): offset from base physical address, in bytes. + length (int): number of bytes to read. + + Returns: + bytes: bytes read. + + Raises: + TypeError: if `offset` type is invalid. + ValueError: if `offset` is out of bounds. + + """ + if not isinstance(offset, (int, long)): + raise TypeError("Invalid offset type, should be integer.") + + offset = self._adjust_offset(offset) + self._validate_offset(offset, length) + return bytes(self.mapping[offset:offset + length]) + + def write32(self, offset, value): + """Write 32-bits to the specified `offset` in bytes, relative to the + base physical address of the MMIO region. + + Args: + offset (int, long): offset from base physical address, in bytes. + value (int, long): 32-bit value to write. + + Raises: + TypeError: if `offset` or `value` type are invalid. + ValueError: if `offset` or `value` are out of bounds. + + """ + if not isinstance(offset, (int, long)): + raise TypeError("Invalid offset type, should be integer.") + if not isinstance(value, (int, long)): + raise TypeError("Invalid value type, should be integer.") + if value < 0 or value > 0xffffffff: + raise ValueError("Value out of bounds.") + + offset = self._adjust_offset(offset) + self._validate_offset(offset, 4) + self.mapping[offset:offset + 4] = struct.pack("=L", value) + + def write16(self, offset, value): + """Write 16-bits to the specified `offset` in bytes, relative to the + base physical address of the MMIO region. + + Args: + offset (int, long): offset from base physical address, in bytes. + value (int, long): 16-bit value to write. + + Raises: + TypeError: if `offset` or `value` type are invalid. + ValueError: if `offset` or `value` are out of bounds. + + """ + if not isinstance(offset, (int, long)): + raise TypeError("Invalid offset type, should be integer.") + if not isinstance(value, (int, long)): + raise TypeError("Invalid value type, should be integer.") + if value < 0 or value > 0xffff: + raise ValueError("Value out of bounds.") + + offset = self._adjust_offset(offset) + self._validate_offset(offset, 2) + self.mapping[offset:offset + 2] = struct.pack("=H", value) + + def write8(self, offset, value): + """Write 8-bits to the specified `offset` in bytes, relative to the + base physical address of the MMIO region. + + Args: + offset (int, long): offset from base physical address, in bytes. + value (int, long): 8-bit value to write. + + Raises: + TypeError: if `offset` or `value` type are invalid. + ValueError: if `offset` or `value` are out of bounds. + + """ + if not isinstance(offset, (int, long)): + raise TypeError("Invalid offset type, should be integer.") + if not isinstance(value, (int, long)): + raise TypeError("Invalid value type, should be integer.") + if value < 0 or value > 0xff: + raise ValueError("Value out of bounds.") + + offset = self._adjust_offset(offset) + self._validate_offset(offset, 1) + self.mapping[offset:offset + 1] = struct.pack("B", value) + + def write(self, offset, data): + """Write a string of bytes to the specified `offset` in bytes, relative + to the base physical address of the MMIO region. + + Args: + offset (int, long): offset from base physical address, in bytes. + data (bytes, bytearray, list): a byte array or list of 8-bit + integers to write. + + Raises: + TypeError: if `offset` or `data` type are invalid. + ValueError: if `offset` is out of bounds, or if data is not valid bytes. + + """ + if not isinstance(offset, (int, long)): + raise TypeError("Invalid offset type, should be integer.") + if not isinstance(data, (bytes, bytearray, list)): + raise TypeError("Invalid data type, expected bytes, bytearray, or list.") + + offset = self._adjust_offset(offset) + self._validate_offset(offset, len(data)) + + data = bytes(bytearray(data)) + self.mapping[offset:offset + len(data)] = data + + def close(self): + """Unmap the MMIO object's mapped physical memory.""" + if self.mapping is None: + return + + self.mapping.close() + self.mapping = None + + self._fd = None + + # Immutable properties + + @property + def base(self): + """Get the base physical address of the MMIO region. + + :type: int + """ + return self._physaddr + + @property + def size(self): + """Get the mapping size of the MMIO region. + + :type: int + """ + return self._size + + @property + def pointer(self): + """Get a ctypes void pointer to the memory mapped region. + + :type: ctypes.c_void_p + """ + return ctypes.cast(ctypes.pointer(ctypes.c_uint8.from_buffer(self.mapping, 0)), ctypes.c_void_p) + + # String representation + + def __str__(self): + return "MMIO 0x%08x (size=%d)" % (self.base, self.size) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/pwm.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/pwm.py index c197ce2d52ce0b4af9b20f9debe240d4b06be946..58471496f0a28ef71a48d04c2ba5483a78718192 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/pwm.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/pwm.py @@ -1,3 +1,281 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9d188ed982a5dc9f9209391329c080fd9482eaff0e25f3da7da5dde98b05501f -size 8205 +import os + + +class PWMError(IOError): + """Base class for PWM errors.""" + pass + + +class PWM(object): + # Sysfs paths + _sysfs_path = "/sys/class/pwm/" + _channel_path = "pwmchip{}" + + # Channel paths + _export_path = "export" + _pin_path = "pwm{}" + + # Pin attribute paths + _pin_period_path = "period" + _pin_duty_cycle_path = "duty_cycle" + _pin_polarity_path = "polarity" + _pin_enable_path = "enable" + + def __init__(self, channel, pin): + """Instantiate a PWM object and open the sysfs PWM corresponding to the + specified channel and pin. + + Args: + channel (int): Linux channel number. + pin (int): Linux pin number. + + Returns: + PWM: PWM object. + + Raises: + PWMError: if an I/O or OS error occurs. + TypeError: if `channel` or `pin` types are invalid. + ValueError: if PWM channel does not exist. + + """ + + self._channel = None + self._pin = None + self._open(channel, pin) + + def __del__(self): + self.close() + + def __enter__(self): + return self + + def __exit__(self, t, value, traceback): + self.close() + + def _open(self, channel, pin): + if not isinstance(channel, int): + raise TypeError("Invalid channel type, should be integer.") + if not isinstance(pin, int): + raise TypeError("Invalid pin type, should be integer.") + + channel_path = os.path.join(self._sysfs_path, self._channel_path.format(channel)) + if not os.path.isdir(channel_path): + raise ValueError("PWM channel does not exist, check that the required modules are loaded.") + + pin_path = os.path.join(channel_path, self._pin_path.format(pin)) + if not os.path.isdir(pin_path): + try: + with open(os.path.join(channel_path, self._export_path), "w") as f_export: + f_export.write("%d\n" % pin) + except IOError as e: + raise PWMError(e.errno, "Exporting PWM pin: " + e.strerror) + + self._channel = channel + self._pin = pin + + # Look up the period, for fast duty cycle updates + self._period = self._get_period() + + def close(self): + """Close the sysfs PWM.""" + self._channel = None + self._pin = None + + def _write_pin_attr(self, attr, value): + path = os.path.join( + self._sysfs_path, + self._channel_path.format(self._channel), + self._pin_path.format(self._pin), + attr) + + with open(path, 'w') as f_attr: + f_attr.write(value + "\n") + + def _read_pin_attr(self, attr): + path = os.path.join( + self._sysfs_path, + self._channel_path.format(self._channel), + self._pin_path.format(self._pin), + attr) + + with open(path, 'r') as f_attr: + return f_attr.read().strip() + + # Methods + + def enable(self): + """Enable the PWM output.""" + self.enabled = True + + def disable(self): + """Disable the PWM output.""" + self.enabled = False + + # Immutable properties + + @property + def channel(self): + """Get the sysfs PWM channel number. + + :type: int + """ + return self._channel + + @property + def pin(self): + """Get the sysfs PWM pin number. + + :type: int + """ + return self._pin + + # Mutable properties + + def _get_period(self): + try: + period_ns = int(self._read_pin_attr(self._pin_period_path)) + except ValueError: + raise PWMError(None, "Unknown period value: \"%s\"" % period_ns) + + # Convert period from nanoseconds to seconds + period = period_ns / 1e9 + + # Update our cached period + self._period = period + + return period + + def _set_period(self, period): + if not isinstance(period, (int, float)): + raise TypeError("Invalid period type, should be int or float.") + + # Convert period from seconds to integer nanoseconds + period_ns = int(period * 1e9) + + self._write_pin_attr(self._pin_period_path, "{}".format(period_ns)) + + # Update our cached period + self._period = float(period) + + period = property(_get_period, _set_period) + """Get or set the PWM's output period in seconds. + + Raises: + PWMError: if an I/O or OS error occurs. + TypeError: if value type is not int or float. + + :type: int, float + """ + + def _get_duty_cycle(self): + try: + duty_cycle_ns = int(self._read_pin_attr(self._pin_duty_cycle_path)) + except ValueError: + raise PWMError(None, "Unknown duty cycle value: \"%s\"" % duty_cycle_ns) + + # Convert duty cycle from nanoseconds to seconds + duty_cycle = duty_cycle_ns / 1e9 + + # Convert duty cycle to ratio from 0.0 to 1.0 + duty_cycle = duty_cycle / self._period + + return duty_cycle + + def _set_duty_cycle(self, duty_cycle): + if not isinstance(duty_cycle, (int, float)): + raise TypeError("Invalid duty cycle type, should be int or float.") + elif not 0.0 <= duty_cycle <= 1.0: + raise ValueError("Invalid duty cycle value, should be between 0.0 and 1.0.") + + # Convert duty cycle from ratio to seconds + duty_cycle = duty_cycle * self._period + + # Convert duty cycle from seconds to integer nanoseconds + duty_cycle_ns = int(duty_cycle * 1e9) + + self._write_pin_attr(self._pin_duty_cycle_path, "{}".format(duty_cycle_ns)) + + duty_cycle = property(_get_duty_cycle, _set_duty_cycle) + """Get or set the PWM's output duty cycle as a ratio from 0.0 to 1.0. + + Raises: + PWMError: if an I/O or OS error occurs. + TypeError: if value type is not int or float. + ValueError: if value is out of bounds of 0.0 to 1.0. + + :type: int, float + """ + + def _get_frequency(self): + return 1.0 / self.period + + def _set_frequency(self, frequency): + if not isinstance(frequency, (int, float)): + raise TypeError("Invalid frequency type, should be int or float.") + + self.period = 1.0 / frequency + + frequency = property(_get_frequency, _set_frequency) + """Get or set the PWM's output frequency in Hertz. + + Raises: + PWMError: if an I/O or OS error occurs. + TypeError: if value type is not int or float. + + :type: int, float + """ + + def _get_polarity(self): + return self._read_pin_attr(self._pin_polarity_path) + + def _set_polarity(self, polarity): + if not isinstance(polarity, str): + raise TypeError("Invalid polarity type, should be str.") + elif polarity.lower() not in ["normal", "inversed"]: + raise ValueError("Invalid polarity, can be: \"normal\" or \"inversed\".") + + self._write_pin_attr(self._pin_polarity_path, polarity.lower()) + + polarity = property(_get_polarity, _set_polarity) + """Get or set the PWM's output polarity. Can be "normal" or "inversed". + + Raises: + PWMError: if an I/O or OS error occurs. + TypeError: if value type is not str. + ValueError: if value is invalid. + + :type: str + """ + + def _get_enabled(self): + enabled = self._read_pin_attr(self._pin_enable_path) + + if enabled == "1": + return True + elif enabled == "0": + return False + + raise PWMError(None, "Unknown enabled value: \"%s\"" % enabled) + + def _set_enabled(self, value): + if not isinstance(value, bool): + raise TypeError("Invalid enabled type, should be string.") + + self._write_pin_attr(self._pin_enable_path, "1" if value else "0") + + enabled = property(_get_enabled, _set_enabled) + """Get or set the PWM's output enabled state. + + Raises: + PWMError: if an I/O or OS error occurs. + TypeError: if value type is not bool. + + :type: bool + """ + + # String representation + + def __str__(self): + return "PWM%d, pin %d (period=%f sec, duty_cycle=%f%%, polarity=%s, enabled=%s)" % \ + (self._channel, self._pin, self.period, self.duty_cycle * 100, + self.polarity, str(self.enabled)) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/serial.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/serial.py index 287f5e56a2ec21172d3ac452b883cf6e2575b6bc..c4b04a26221ebf5305bbccc53a8e9a12285b1617 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/serial.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/serial.py @@ -1,3 +1,640 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5e17186e8d2d0408f45e4626828e6fe4653f280fcfa02c9ee5c53725375ed957 -size 21097 +import os +import fcntl +import array +import termios +import select + + +class SerialError(IOError): + """Base class for Serial errors.""" + pass + + +class Serial(object): + _DATABITS_TO_CFLAG = { + 5: termios.CS5, 6: termios.CS6, 7: termios.CS7, 8: termios.CS8 + } + _CFLAG_TO_DATABITS = {v: k for k, v in _DATABITS_TO_CFLAG.items()} + + _BAUDRATE_TO_OSPEED = { + 50: termios.B50, 75: termios.B75, 110: termios.B110, 134: termios.B134, + 150: termios.B150, 200: termios.B200, 300: termios.B300, + 600: termios.B600, 1200: termios.B1200, 1800: termios.B1800, + 2400: termios.B2400, 4800: termios.B4800, 9600: termios.B9600, + 19200: termios.B19200, 38400: termios.B38400, 57600: termios.B57600, + 115200: termios.B115200, 230400: termios.B230400, + # Linux baudrates bits missing in termios module included below + 460800: 0x1004, 500000: 0x1005, 576000: 0x1006, + 921600: 0x1007, 1000000: 0x1008, 1152000: 0x1009, + 1500000: 0x100A, 2000000: 0x100B, 2500000: 0x100C, + 3000000: 0x100D, 3500000: 0x100E, 4000000: 0x100F, + } + _OSPEED_TO_BAUDRATE = {v: k for k, v in _BAUDRATE_TO_OSPEED.items()} + + def __init__(self, devpath, baudrate, databits=8, parity="none", stopbits=1, xonxoff=False, rtscts=False): + """Instantiate a Serial object and open the tty device at the specified + path with the specified baudrate, and the defaults of 8 data bits, no + parity, 1 stop bit, no software flow control (xonxoff), and no hardware + flow control (rtscts). + + Args: + devpath (str): tty device path. + baudrate (int): baudrate. + databits (int): data bits, can be 5, 6, 7, 8. + parity (str): parity, can be "none", "even", "odd". + stopbits (int): stop bits, can be 1 or 2. + xonxoff (bool): software flow control. + rtscts (bool): hardware flow control. + + Returns: + Serial: Serial object. + + Raises: + SerialError: if an I/O or OS error occurs. + TypeError: if `devpath`, `baudrate`, `databits`, `parity`, `stopbits`, `xonxoff`, or `rtscts` types are invalid. + ValueError: if `baudrate`, `databits`, `parity`, or `stopbits` values are invalid. + + """ + self._fd = None + self._devpath = None + self._open(devpath, baudrate, databits, parity, stopbits, xonxoff, rtscts) + + def __del__(self): + self.close() + + def __enter__(self): + pass + + def __exit__(self, t, value, traceback): + self.close() + + def _open(self, devpath, baudrate, databits, parity, stopbits, xonxoff, rtscts): + if not isinstance(devpath, str): + raise TypeError("Invalid devpath type, should be string.") + elif not isinstance(baudrate, int): + raise TypeError("Invalid baud rate type, should be integer.") + elif not isinstance(databits, int): + raise TypeError("Invalid data bits type, should be integer.") + elif not isinstance(parity, str): + raise TypeError("Invalid parity type, should be string.") + elif not isinstance(stopbits, int): + raise TypeError("Invalid stop bits type, should be integer.") + elif not isinstance(xonxoff, bool): + raise TypeError("Invalid xonxoff type, should be boolean.") + elif not isinstance(rtscts, bool): + raise TypeError("Invalid rtscts type, should be boolean.") + + if baudrate not in Serial._BAUDRATE_TO_OSPEED: + raise ValueError("Unknown baud rate %d." % baudrate) + elif databits not in [5, 6, 7, 8]: + raise ValueError("Invalid data bits, can be 5, 6, 7, 8.") + elif parity.lower() not in ["none", "even", "odd"]: + raise ValueError("Invalid parity, can be: \"none\", \"even\", \"odd\".") + elif stopbits not in [1, 2]: + raise ValueError("Invalid stop bits, can be 1, 2.") + + # Open tty + try: + self._fd = os.open(devpath, os.O_RDWR | os.O_NOCTTY) + except OSError as e: + raise SerialError(e.errno, "Opening serial port: " + e.strerror) + + self._devpath = devpath + + parity = parity.lower() + + (iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = (0, 0, 0, 0, 0, 0, [0] * 32) + + ### + # iflag + + # Ignore break characters + iflag = termios.IGNBRK + + # Setup parity + if parity != "none": + iflag |= (termios.INPCK | termios.ISTRIP) + + # Setup xonxoff + if xonxoff: + iflag |= (termios.IXON | termios.IXOFF) + + ####### + # oflag + oflag = 0 + + ####### + # lflag + lflag = 0 + + ####### + # cflag + + # Enable receiver, ignore modem control lines + cflag = (termios.CREAD | termios.CLOCAL) + + # Setup data bits + cflag |= Serial._DATABITS_TO_CFLAG[databits] + + # Setup parity + if parity == "even": + cflag |= termios.PARENB + elif parity == "odd": + cflag |= (termios.PARENB | termios.PARODD) + + # Setup stop bits + if stopbits == 2: + cflag |= termios.CSTOPB + + # Setup rtscts + if rtscts: + cflag |= termios.CRTSCTS + + # Setup baud rate + cflag |= Serial._BAUDRATE_TO_OSPEED[baudrate] + + ######## + # ispeed + ispeed = Serial._BAUDRATE_TO_OSPEED[baudrate] + + ######## + # ospeed + ospeed = Serial._BAUDRATE_TO_OSPEED[baudrate] + + # Set tty attributes + try: + termios.tcsetattr(self._fd, termios.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) + except termios.error as e: + raise SerialError(e.errno, "Setting serial port attributes: " + e.strerror) + + # Methods + + def read(self, length, timeout=None): + """Read up to `length` number of bytes from the serial port with an + optional timeout. + + `timeout` can be positive for a timeout in seconds, 0 for a + non-blocking read, or negative or None for a blocking read that will + block until `length` number of bytes are read. Default is a blocking + read. + + For a non-blocking or timeout-bound read, read() may return data whose + length is less than or equal to the requested length. + + Args: + length (int): length in bytes. + timeout (int, float, None): timeout duration in seconds. + + Returns: + bytes: data read. + + Raises: + SerialError: if an I/O or OS error occurs. + + """ + data = b"" + + # Read length bytes if timeout is None + + # Read up to length bytes if timeout is not None + while True: + if timeout is not None: + # Select + (rlist, _, _) = select.select([self._fd], [], [], timeout) + # If timeout + if self._fd not in rlist: + break + + try: + data += os.read(self._fd, length - len(data)) + except OSError as e: + raise SerialError(e.errno, "Reading serial port: " + e.strerror) + + if len(data) == length: + break + + return data + + def write(self, data): + """Write `data` to the serial port and return the number of bytes + written. + + Args: + data (bytes, bytearray, list): a byte array or list of 8-bit integers to write. + + Returns: + int: number of bytes written. + + Raises: + SerialError: if an I/O or OS error occurs. + TypeError: if `data` type is invalid. + ValueError: if data is not valid bytes. + + """ + if not isinstance(data, (bytes, bytearray, list)): + raise TypeError("Invalid data type, should be bytes, bytearray, or list.") + + if isinstance(data, list): + data = bytearray(data) + + try: + return os.write(self._fd, data) + except OSError as e: + raise SerialError(e.errno, "Writing serial port: " + e.strerror) + + def poll(self, timeout=None): + """Poll for data available for reading from the serial port. + + `timeout` can be positive for a timeout in seconds, 0 for a + non-blocking poll, or negative or None for a blocking poll. Default is + a blocking poll. + + Args: + timeout (int, float, None): timeout duration in seconds. + + Returns: + bool: ``True`` if data is available for reading from the serial port, ``False`` if not. + + """ + p = select.poll() + p.register(self._fd, select.POLLIN | select.POLLPRI) + events = p.poll(int(timeout * 1000)) + + if len(events) > 0: + return True + + return False + + def flush(self): + """Flush the write buffer of the serial port, blocking until all bytes + are written. + + Raises: + SerialError: if an I/O or OS error occurs. + + """ + try: + termios.tcdrain(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Flushing serial port: " + e.strerror) + + def input_waiting(self): + """Query the number of bytes waiting to be read from the serial port. + + Returns: + int: number of bytes waiting to be read. + + Raises: + SerialError: if an I/O or OS error occurs. + + """ + # Get input waiting + buf = array.array('I', [0]) + try: + fcntl.ioctl(self._fd, termios.TIOCINQ, buf, True) + except OSError as e: + raise SerialError(e.errno, "Querying input waiting: " + e.strerror) + + return buf[0] + + def output_waiting(self): + """Query the number of bytes waiting to be written to the serial port. + + Returns: + int: number of bytes waiting to be written. + + Raises: + SerialError: if an I/O or OS error occurs. + + """ + # Get input waiting + buf = array.array('I', [0]) + try: + fcntl.ioctl(self._fd, termios.TIOCOUTQ, buf, True) + except OSError as e: + raise SerialError(e.errno, "Querying output waiting: " + e.strerror) + + return buf[0] + + def close(self): + """Close the tty device. + + Raises: + SerialError: if an I/O or OS error occurs. + + """ + if self._fd is None: + return + + try: + os.close(self._fd) + except OSError as e: + raise SerialError(e.errno, "Closing serial port: " + e.strerror) + + self._fd = None + + # Immutable properties + + @property + def fd(self): + """Get the file descriptor of the underlying tty device. + + :type: int + """ + return self._fd + + @property + def devpath(self): + """Get the device path of the underlying tty device. + + :type: str + """ + return self._devpath + + # Mutable properties + + def _get_baudrate(self): + # Get tty attributes + try: + (_, _, _, _, _, ospeed, _) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + if ospeed not in Serial._OSPEED_TO_BAUDRATE: + raise SerialError(None, "Unknown baud rate: ospeed 0x%x." % ospeed) + + return Serial._OSPEED_TO_BAUDRATE[ospeed] + + def _set_baudrate(self, baudrate): + if not isinstance(baudrate, int): + raise TypeError("Invalid baud rate type, should be integer.") + + if baudrate not in Serial._BAUDRATE_TO_OSPEED: + raise ValueError("Unknown baud rate %d." % baudrate) + + # Get tty attributes + try: + (iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + # Modify tty attributes + cflag &= ~(termios.CBAUD | termios.CBAUDEX) + cflag |= Serial._BAUDRATE_TO_OSPEED[baudrate] + ispeed = Serial._BAUDRATE_TO_OSPEED[baudrate] + ospeed = Serial._BAUDRATE_TO_OSPEED[baudrate] + + # Set tty attributes + try: + termios.tcsetattr(self._fd, termios.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) + except termios.error as e: + raise SerialError(e.errno, "Setting serial port attributes: " + e.strerror) + + baudrate = property(_get_baudrate, _set_baudrate) + """Get or set the baudrate. + + Raises: + SerialError: if an I/O or OS error occurs. + TypeError: if `baudrate` type is not int. + ValueError: if `baudrate` value is not supported. + + :type: int + """ + + def _get_databits(self): + # Get tty attributes + try: + (_, _, cflag, _, _, _, _) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + cs = cflag & termios.CSIZE + + if cs not in Serial._CFLAG_TO_DATABITS: + raise SerialError(None, "Unknown data bits setting: csize 0x%x." % cs) + + return Serial._CFLAG_TO_DATABITS[cs] + + def _set_databits(self, databits): + if not isinstance(databits, int): + raise TypeError("Invalid data bits type, should be integer.") + elif databits not in [5, 6, 7, 8]: + raise ValueError("Invalid data bits, can be 5, 6, 7, 8.") + + # Get tty attributes + try: + (iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + # Modify tty attributes + cflag &= ~termios.CSIZE + cflag |= Serial._DATABITS_TO_CFLAG[databits] + + # Set tty attributes + try: + termios.tcsetattr(self._fd, termios.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) + except termios.error as e: + raise SerialError(e.errno, "Setting serial port attributes: " + e.strerror) + + databits = property(_get_databits, _set_databits) + """Get or set the data bits. Can be 5, 6, 7, 8. + + Raises: + SerialError: if an I/O or OS error occurs. + TypeError: if `databits` type is not int. + ValueError: if `databits` value is invalid. + + :type: int + """ + + def _get_parity(self): + # Get tty attributes + try: + (_, _, cflag, _, _, _, _) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + if (cflag & termios.PARENB) == 0: + return "none" + elif (cflag & termios.PARODD) == 0: + return "even" + else: + return "odd" + + def _set_parity(self, parity): + if not isinstance(parity, str): + raise TypeError("Invalid parity type, should be string.") + elif parity.lower() not in ["none", "even", "odd"]: + raise ValueError("Invalid parity, can be: \"none\", \"even\", \"odd\".") + + parity = parity.lower() + + # Get tty attributes + try: + (iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + # Modify tty attributes + iflag &= ~(termios.INPCK | termios.ISTRIP) + cflag &= ~(termios.PARENB | termios.PARODD) + if parity != "none": + iflag |= (termios.INPCK | termios.ISTRIP) + cflag |= termios.PARENB + if parity == "odd": + cflag |= termios.PARODD + + # Set tty attributes + try: + termios.tcsetattr(self._fd, termios.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) + except termios.error as e: + raise SerialError(e.errno, "Setting serial port attributes: " + e.strerror) + + parity = property(_get_parity, _set_parity) + """Get or set the parity. Can be "none", "even", "odd". + + Raises: + SerialError: if an I/O or OS error occurs. + TypeError: if `parity` type is not str. + ValueError: if `parity` value is invalid. + + :type: str + """ + + def _get_stopbits(self): + # Get tty attributes + try: + (_, _, cflag, _, _, _, _) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + if (cflag & termios.CSTOPB) != 0: + return 2 + else: + return 1 + + def _set_stopbits(self, stopbits): + if not isinstance(stopbits, int): + raise TypeError("Invalid stop bits type, should be integer.") + elif stopbits not in [1, 2]: + raise ValueError("Invalid stop bits, can be 1, 2.") + + # Get tty attributes + try: + (iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + # Modify tty attributes + cflag &= ~termios.CSTOPB + if stopbits == 2: + cflag |= termios.CSTOPB + + # Set tty attributes + try: + termios.tcsetattr(self._fd, termios.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) + except termios.error as e: + raise SerialError(e.errno, "Setting serial port attributes: " + e.strerror) + + stopbits = property(_get_stopbits, _set_stopbits) + """Get or set the stop bits. Can be 1 or 2. + + Raises: + SerialError: if an I/O or OS error occurs. + TypeError: if `stopbits` type is not int. + ValueError: if `stopbits` value is invalid. + + :type: int + """ + + def _get_xonxoff(self): + # Get tty attributes + try: + (iflag, _, _, _, _, _, _) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + if (iflag & (termios.IXON | termios.IXOFF)) != 0: + return True + else: + return False + + def _set_xonxoff(self, enabled): + if not isinstance(enabled, bool): + raise TypeError("Invalid enabled type, should be boolean.") + + # Get tty attributes + try: + (iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + # Modify tty attributes + iflag &= ~(termios.IXON | termios.IXOFF | termios.IXANY) + if enabled: + iflag |= (termios.IXON | termios.IXOFF) + + # Set tty attributes + try: + termios.tcsetattr(self._fd, termios.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) + except termios.error as e: + raise SerialError(e.errno, "Setting serial port attributes: " + e.strerror) + + xonxoff = property(_get_xonxoff, _set_xonxoff) + """Get or set software flow control. + + Raises: + SerialError: if an I/O or OS error occurs. + TypeError: if `xonxoff` type is not bool. + + :type: bool + """ + + def _get_rtscts(self): + # Get tty attributes + try: + (_, _, cflag, _, _, _, _) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + if (cflag & termios.CRTSCTS) != 0: + return True + else: + return False + + def _set_rtscts(self, enabled): + if not isinstance(enabled, bool): + raise TypeError("Invalid enabled type, should be boolean.") + + # Get tty attributes + try: + (iflag, oflag, cflag, lflag, ispeed, ospeed, cc) = termios.tcgetattr(self._fd) + except termios.error as e: + raise SerialError(e.errno, "Getting serial port attributes: " + e.strerror) + + # Modify tty attributes + cflag = ~termios.CRTSCTS + if enabled: + cflag |= termios.CRTSCTS + + # Set tty attributes + try: + termios.tcsetattr(self._fd, termios.TCSANOW, [iflag, oflag, cflag, lflag, ispeed, ospeed, cc]) + except termios.error as e: + raise SerialError(e.errno, "Setting serial port attributes: " + e.strerror) + + rtscts = property(_get_rtscts, _set_rtscts) + """Get or set hardware flow control. + + Raises: + SerialError: if an I/O or OS error occurs. + TypeError: if `rtscts` type is not bool. + + :type: bool + """ + + # String representation + + def __str__(self): + return "Serial (device=%s, fd=%d, baudrate=%d, databits=%d, parity=%s, stopbits=%d, xonxoff=%s, rtscts=%s)" % (self.devpath, self.fd, self.baudrate, self.databits, self.parity, self.stopbits, str(self.xonxoff), str(self.rtscts)) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/spi.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/spi.py index c18bb2b362e8393225df1f40f69b064d378b1243..2b440749f50f2a00366d5f23f5139e005de4f13f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/spi.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/periphery/spi.py @@ -1,3 +1,419 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ca6dc86e843dc68dd96657a8125e58ad50bde507ac00696ab6cbc3d85abd0244 -size 14065 +import os +import fcntl +import array +import ctypes + + +class SPIError(IOError): + """Base class for SPI errors.""" + pass + + +class _CSpiIocTransfer(ctypes.Structure): + _fields_ = [ + ('tx_buf', ctypes.c_ulonglong), + ('rx_buf', ctypes.c_ulonglong), + ('len', ctypes.c_uint), + ('speed_hz', ctypes.c_uint), + ('delay_usecs', ctypes.c_ushort), + ('bits_per_word', ctypes.c_ubyte), + ('cs_change', ctypes.c_ubyte), + ('tx_nbits', ctypes.c_ubyte), + ('rx_nbits', ctypes.c_ubyte), + ('pad', ctypes.c_ushort), + ] + + +class SPI(object): + # Constants scraped from + _SPI_CPHA = 0x1 + _SPI_CPOL = 0x2 + _SPI_LSB_FIRST = 0x8 + _SPI_IOC_WR_MODE = 0x40016b01 + _SPI_IOC_RD_MODE = 0x80016b01 + _SPI_IOC_WR_MAX_SPEED_HZ = 0x40046b04 + _SPI_IOC_RD_MAX_SPEED_HZ = 0x80046b04 + _SPI_IOC_WR_BITS_PER_WORD = 0x40016b03 + _SPI_IOC_RD_BITS_PER_WORD = 0x80016b03 + _SPI_IOC_MESSAGE_1 = 0x40206b00 + + def __init__(self, devpath, mode, max_speed, bit_order="msb", bits_per_word=8, extra_flags=0): + """Instantiate a SPI object and open the spidev device at the specified + path with the specified SPI mode, max speed in hertz, and the defaults + of "msb" bit order and 8 bits per word. + + Args: + devpath (str): spidev device path. + mode (int): SPI mode, can be 0, 1, 2, 3. + max_speed (int, float): maximum speed in Hertz. + bit_order (str): bit order, can be "msb" or "lsb". + bits_per_word (int): bits per word. + extra_flags (int): extra spidev flags to be bitwise-ORed with the SPI mode. + + Returns: + SPI: SPI object. + + Raises: + SPIError: if an I/O or OS error occurs. + TypeError: if `devpath`, `mode`, `max_speed`, `bit_order`, `bits_per_word`, or `extra_flags` types are invalid. + ValueError: if `mode`, `bit_order`, `bits_per_word`, or `extra_flags` values are invalid. + + """ + self._fd = None + self._devpath = None + self._open(devpath, mode, max_speed, bit_order, bits_per_word, extra_flags) + + def __del__(self): + self.close() + + def __enter__(self): + pass + + def __exit__(self, t, value, traceback): + self.close() + + def _open(self, devpath, mode, max_speed, bit_order, bits_per_word, extra_flags): + if not isinstance(devpath, str): + raise TypeError("Invalid devpath type, should be string.") + elif not isinstance(mode, int): + raise TypeError("Invalid mode type, should be integer.") + elif not isinstance(max_speed, (int, float)): + raise TypeError("Invalid max_speed type, should be integer or float.") + elif not isinstance(bit_order, str): + raise TypeError("Invalid bit_order type, should be string.") + elif not isinstance(bits_per_word, int): + raise TypeError("Invalid bits_per_word type, should be integer.") + elif not isinstance(extra_flags, int): + raise TypeError("Invalid extra_flags type, should be integer.") + + if mode not in [0, 1, 2, 3]: + raise ValueError("Invalid mode, can be 0, 1, 2, 3.") + elif bit_order.lower() not in ["msb", "lsb"]: + raise ValueError("Invalid bit_order, can be \"msb\" or \"lsb\".") + elif bits_per_word < 0 or bits_per_word > 255: + raise ValueError("Invalid bits_per_word, must be 0-255.") + elif extra_flags < 0 or extra_flags > 255: + raise ValueError("Invalid extra_flags, must be 0-255.") + + # Open spidev + try: + self._fd = os.open(devpath, os.O_RDWR) + except OSError as e: + raise SPIError(e.errno, "Opening SPI device: " + e.strerror) + + self._devpath = devpath + + bit_order = bit_order.lower() + + # Set mode, bit order, extra flags + buf = array.array("B", [mode | (SPI._SPI_LSB_FIRST if bit_order == "lsb" else 0) | extra_flags]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_WR_MODE, buf, False) + except OSError as e: + raise SPIError(e.errno, "Setting SPI mode: " + e.strerror) + + # Set max speed + buf = array.array("I", [int(max_speed)]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_WR_MAX_SPEED_HZ, buf, False) + except OSError as e: + raise SPIError(e.errno, "Setting SPI max speed: " + e.strerror) + + # Set bits per word + buf = array.array("B", [bits_per_word]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_WR_BITS_PER_WORD, buf, False) + except OSError as e: + raise SPIError(e.errno, "Setting SPI bits per word: " + e.strerror) + + # Methods + + def transfer(self, data): + """Shift out `data` and return shifted in data. + + Args: + data (bytes, bytearray, list): a byte array or list of 8-bit integers to shift out. + + Returns: + bytes, bytearray, list: data shifted in. + + Raises: + SPIError: if an I/O or OS error occurs. + TypeError: if `data` type is invalid. + ValueError: if data is not valid bytes. + + """ + if not isinstance(data, (bytes, bytearray, list)): + raise TypeError("Invalid data type, should be bytes, bytearray, or list.") + + # Create mutable array + try: + buf = array.array('B', data) + except OverflowError: + raise ValueError("Invalid data bytes.") + + buf_addr, buf_len = buf.buffer_info() + + # Prepare transfer structure + spi_xfer = _CSpiIocTransfer() + spi_xfer.tx_buf = buf_addr + spi_xfer.rx_buf = buf_addr + spi_xfer.len = buf_len + + # Transfer + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_MESSAGE_1, spi_xfer) + except OSError as e: + raise SPIError(e.errno, "SPI transfer: " + e.strerror) + + # Return shifted out data with the same type as shifted in data + if isinstance(data, bytes): + return bytes(bytearray(buf)) + elif isinstance(data, bytearray): + return bytearray(buf) + elif isinstance(data, list): + return buf.tolist() + + def close(self): + """Close the spidev SPI device. + + Raises: + SPIError: if an I/O or OS error occurs. + + """ + if self._fd is None: + return + + try: + os.close(self._fd) + except OSError as e: + raise SPIError(e.errno, "Closing SPI device: " + e.strerror) + + self._fd = None + + # Immutable properties + + @property + def fd(self): + """Get the file descriptor of the underlying spidev device. + + :type: int + """ + return self._fd + + @property + def devpath(self): + """Get the device path of the underlying spidev device. + + :type: str + """ + return self._devpath + + # Mutable properties + + def _get_mode(self): + buf = array.array('B', [0]) + + # Get mode + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_RD_MODE, buf, True) + except OSError as e: + raise SPIError(e.errno, "Getting SPI mode: " + e.strerror) + + return buf[0] & 0x3 + + def _set_mode(self, mode): + if not isinstance(mode, int): + raise TypeError("Invalid mode type, should be integer.") + if mode not in [0, 1, 2, 3]: + raise ValueError("Invalid mode, can be 0, 1, 2, 3.") + + # Read-modify-write mode, because the mode contains bits for other settings + + # Get mode + buf = array.array('B', [0]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_RD_MODE, buf, True) + except OSError as e: + raise SPIError(e.errno, "Getting SPI mode: " + e.strerror) + + buf[0] = (buf[0] & ~(SPI._SPI_CPOL | SPI._SPI_CPHA)) | mode + + # Set mode + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_WR_MODE, buf, False) + except OSError as e: + raise SPIError(e.errno, "Setting SPI mode: " + e.strerror) + + mode = property(_get_mode, _set_mode) + """Get or set the SPI mode. Can be 0, 1, 2, 3. + + Raises: + SPIError: if an I/O or OS error occurs. + TypeError: if `mode` type is not int. + ValueError: if `mode` value is invalid. + + :type: int + """ + + def _get_max_speed(self): + # Get max speed + buf = array.array('I', [0]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_RD_MAX_SPEED_HZ, buf, True) + except OSError as e: + raise SPIError(e.errno, "Getting SPI max speed: " + e.strerror) + + return buf[0] + + def _set_max_speed(self, max_speed): + if not isinstance(max_speed, (int, float)): + raise TypeError("Invalid max_speed type, should be integer or float.") + + # Set max speed + buf = array.array('I', [int(max_speed)]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_WR_MAX_SPEED_HZ, buf, False) + except OSError as e: + raise SPIError(e.errno, "Setting SPI max speed: " + e.strerror) + + max_speed = property(_get_max_speed, _set_max_speed) + """Get or set the maximum speed in Hertz. + + Raises: + SPIError: if an I/O or OS error occurs. + TypeError: if `max_speed` type is not int or float. + + :type: int, float + """ + + def _get_bit_order(self): + # Get mode + buf = array.array('B', [0]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_RD_MODE, buf, True) + except OSError as e: + raise SPIError(e.errno, "Getting SPI mode: " + e.strerror) + + if (buf[0] & SPI._SPI_LSB_FIRST) > 0: + return "lsb" + + return "msb" + + def _set_bit_order(self, bit_order): + if not isinstance(bit_order, str): + raise TypeError("Invalid bit_order type, should be string.") + elif bit_order.lower() not in ["msb", "lsb"]: + raise ValueError("Invalid bit_order, can be \"msb\" or \"lsb\".") + + # Read-modify-write mode, because the mode contains bits for other settings + + # Get mode + buf = array.array('B', [0]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_RD_MODE, buf, True) + except OSError as e: + raise SPIError(e.errno, "Getting SPI mode: " + e.strerror) + + bit_order = bit_order.lower() + buf[0] = (buf[0] & ~SPI._SPI_LSB_FIRST) | (SPI._SPI_LSB_FIRST if bit_order == "lsb" else 0) + + # Set mode + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_WR_MODE, buf, False) + except OSError as e: + raise SPIError(e.errno, "Setting SPI mode: " + e.strerror) + + bit_order = property(_get_bit_order, _set_bit_order) + """Get or set the SPI bit order. Can be "msb" or "lsb". + + Raises: + SPIError: if an I/O or OS error occurs. + TypeError: if `bit_order` type is not str. + ValueError: if `bit_order` value is invalid. + + :type: str + """ + + def _get_bits_per_word(self): + # Get bits per word + buf = array.array('B', [0]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_RD_BITS_PER_WORD, buf, True) + except OSError as e: + raise SPIError(e.errno, "Getting SPI bits per word: " + e.strerror) + + return buf[0] + + def _set_bits_per_word(self, bits_per_word): + if not isinstance(bits_per_word, int): + raise TypeError("Invalid bits_per_word type, should be integer.") + if bits_per_word < 0 or bits_per_word > 255: + raise ValueError("Invalid bits_per_word, must be 0-255.") + + # Set bits per word + buf = array.array('B', [bits_per_word]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_WR_BITS_PER_WORD, buf, False) + except OSError as e: + raise SPIError(e.errno, "Setting SPI bits per word: " + e.strerror) + + bits_per_word = property(_get_bits_per_word, _set_bits_per_word) + """Get or set the SPI bits per word. + + Raises: + SPIError: if an I/O or OS error occurs. + TypeError: if `bits_per_word` type is not int. + ValueError: if `bits_per_word` value is invalid. + + :type: int + """ + + def _get_extra_flags(self): + # Get mode + buf = array.array('B', [0]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_RD_MODE, buf, True) + except OSError as e: + raise SPIError(e.errno, "Getting SPI mode: " + e.strerror) + + return buf[0] & ~(SPI._SPI_LSB_FIRST | SPI._SPI_CPHA | SPI._SPI_CPOL) + + def _set_extra_flags(self, extra_flags): + if not isinstance(extra_flags, int): + raise TypeError("Invalid extra_flags type, should be integer.") + if extra_flags < 0 or extra_flags > 255: + raise ValueError("Invalid extra_flags, must be 0-255.") + + # Read-modify-write mode, because the mode contains bits for other settings + + # Get mode + buf = array.array('B', [0]) + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_RD_MODE, buf, True) + except OSError as e: + raise SPIError(e.errno, "Getting SPI mode: " + e.strerror) + + buf[0] = (buf[0] & (SPI._SPI_LSB_FIRST | SPI._SPI_CPHA | SPI._SPI_CPOL)) | extra_flags + + # Set mode + try: + fcntl.ioctl(self._fd, SPI._SPI_IOC_WR_MODE, buf, False) + except OSError as e: + raise SPIError(e.errno, "Setting SPI mode: " + e.strerror) + + extra_flags = property(_get_extra_flags, _set_extra_flags) + """Get or set the spidev extra flags. Extra flags are bitwise-ORed with the SPI mode. + + Raises: + SPIError: if an I/O or OS error occurs. + TypeError: if `extra_flags` type is not int. + ValueError: if `extra_flags` value is invalid. + + :type: int + """ + + # String representation + + def __str__(self): + return "SPI (device=%s, fd=%d, mode=%s, max_speed=%d, bit_order=%s, bits_per_word=%d, extra_flags=0x%02x)" % (self.devpath, self.fd, self.mode, self.max_speed, self.bit_order, self.bits_per_word, self.extra_flags) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/pianohat.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/pianohat.py index 69c7140f30d36d995778c2e62b69c3211c32a636..5040e3dfb289606668b5719ade5258687a17619d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/pianohat.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/pianohat.py @@ -1,3 +1,211 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c118bb7ddece1a68ed0e5ecdd6444cb4ec2697e16785e95dc2d693fcdadb64f -size 5014 +#!/usr/bin/env python + +import signal +from sys import exit + +try: + import cap1xxx +except ImportError: + raise ImportError("This library requires the cap1xxx module\nInstall with: sudo pip install cap1xxx") + +__version__ = '0.1.0' + +_on_note = None +_on_octave_up = None +_on_octave_down = None +_on_instrument = None + +_is_setup = False +_pressed = [False for x in range(16)] + +PRESSED = True +RELEASED = False + +C = 0 +CSHARP = 1 +D = 2 +DSHARP = 3 +E = 4 +F = 5 +FSHARP = 6 +G = 7 +GSHARP = 8 +A = 9 +ASHARP = 10 +B = 11 +C2 = 12 + +OCTAVE_DOWN = 13 +OCTAVE_UP = 14 +INSTRUMENT = 15 + +def _setup_cap(cap): + for x in range(8): + cap._write_byte(0x30 + x, 0b00000110) + + cap._write_byte(cap1xxx.R_LED_BEHAVIOUR_1, 0b00000000) + cap._write_byte(cap1xxx.R_LED_BEHAVIOUR_2, 0b00000000) + cap._write_byte(cap1xxx.R_LED_LINKING, 0b11111111) + + cap._write_byte(cap1xxx.R_SAMPLING_CONFIG, 0b00000000) + cap._write_byte(cap1xxx.R_SENSITIVITY, 0b01100000) + cap._write_byte(cap1xxx.R_GENERAL_CONFIG, 0b00111000) + cap._write_byte(cap1xxx.R_CONFIGURATION2, 0b01100000) + cap.set_touch_delta(10) + cap.set_led_direct_ramp_rate(0,0) + +def _handle_event(cap_index, event, state): + global _pressed + offset = 0 + if cap_index == 1: offset = 8 + + channel = offset + event.channel + + _pressed[channel] = (state == PRESSED) + + if (channel) == OCTAVE_DOWN and callable(_on_octave_down): + _on_octave_down(channel, state) + if (channel) == OCTAVE_UP and callable(_on_octave_up): + _on_octave_up(channel, state) + if (channel) == INSTRUMENT and callable(_on_instrument): + _on_instrument(channel, state) + if (channel) <= 12 and callable(_on_note): + _on_note(channel, state) + +def auto_leds(enable = True): + """Enable or disable automatic LEDs + + :param enable: enable or disable: True/False + + on automatic, the corresponding LED will light when + a key is touched and turn off when it is released. + + """ + + setup() + + _piano_ctog._write_byte(cap1xxx.R_LED_LINKING, 0b11111111 * enable) + _piano_atoc._write_byte(cap1xxx.R_LED_LINKING, 0b11111111 * enable) + +def set_led(index, state): + """Turn an LED on or off + + :param index: index of the LED to toggle: from 0 to 15 + :param state: state to set the LED: either False or True + + """ + + setup() + + if index >= 8: + _piano_atoc.set_led_state(index-8,state) + else: + _piano_ctog.set_led_state(index,state) + +def set_led_ramp_rate(rise,fall): + """Set the time it takes an LED to turn on or off + + :param rise: time it takes LED to light in milliseconds + :param fall: time it takes LED to turn off in milliseconds + + """ + + setup() + + _piano_ctog.set_led_direct_ramp_rate(rise, fall) + _piano_atoc.set_led_direct_ramp_rate(rise, fall) + +def get_state(index=-1): + """Get the state of a single key + + :param index: index of key to return, from 0 to 15 + + """ + + setup() + + if index > 0 and index < 16: + return _pressed[index] + else: + return _pressed + +def on_note(handler): + """Register handler for press/release of note key + + :param handler: handler function to register + + The handler function should expect two arguments. + + The first is the button index that got the event, + and the second is True for pressed and False for released. + + """ + + global _on_note + setup() + _on_note = handler + +def on_octave_up(handler): + """Register handler for press/release of octave_up key + + :param handler: handler function to register + + See on_note for details. + + """ + + global _on_octave_up + setup() + _on_octave_up = handler + +def on_octave_down(handler): + """Register handler for press/release of octave_down key + + :param handler: handler function to register + + See on_note for details. + + """ + + global _on_octave_down + setup() + _on_octave_down = handler + +def on_instrument(handler): + """Register handler for press/release of instrument key + + :param handler: handler function to register + + See on_note for details. + + """ + + global _on_instrument + setup() + _on_instrument = handler + +def setup(): + global _is_setup, _piano_ctog, _piano_atoc + + if _is_setup: + return True + + # Keys C, C#, D, D#, E, F, F# and G + _piano_ctog = cap1xxx.Cap1188(i2c_addr=0x28, alert_pin=4) + _setup_cap(_piano_ctog) + + # Keys G#, A, A#, B, C, Instrument, Octave -, Octave + + _piano_atoc = cap1xxx.Cap1188(i2c_addr=0x2b, alert_pin=27) + _setup_cap(_piano_atoc) + + for x in range(0,8): + _piano_ctog.on(x,event='press', handler=lambda evt: _handle_event(0,evt,PRESSED )) + _piano_ctog.on(x,event='release',handler=lambda evt: _handle_event(0,evt,RELEASED)) + _piano_atoc.on(x,event='press', handler=lambda evt: _handle_event(1,evt,PRESSED )) + _piano_atoc.on(x,event='release',handler=lambda evt: _handle_event(1,evt,RELEASED)) + + #_piano_ctog.clear_interrupt() + #_piano_atoc.clear_interrupt() + + _is_setup = True + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/piglow.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/piglow.py index 4cb465f0abe369a7588efee46a06e1ad3a0346f6..f8ba41444eee6654cec773619d7b21259bff2f9d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/piglow.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/piglow.py @@ -1,3 +1,329 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:72902d42a39f3d43fc2b4e34c28b02b2e2b793f33086ddab73dc7a38ab0a75b4 -size 6115 +import atexit +import time +from sys import exit + + +__version__ = '1.2.4' + +_is_setup = False +clear_on_exit = True +auto_update = False + +_legs = [ + # r o y g b w + [6, 7, 8, 5, 4, 9], + [17, 16, 15, 13, 11, 10], + [0, 1, 2, 3, 14, 12] +] + +_map = _legs[0] + _legs[1] + _legs[2] + +_values = [0] * 18 + +colours = { + "red": 0, + "orange": 1, + "yellow": 2, + "green": 3, + "blue": 4, + "white": 5 +} + + +def white(v): ring(5, v) + + +def blue(v): ring(4, v) + + +def green(v): ring(3, v) + + +def yellow(v): ring(2, v) + + +def orange(v): ring(1, v) + + +def red(v): ring(0, v) + + +def arm1(v): arm(0, v) + + +def arm2(v): arm(1, v) + + +def arm3(v): arm(2, v) + + +def led1(v): set(0, v) + + +def led2(v): set(1, v) + + +def led3(v): set(2, v) + + +def led4(v): set(3, v) + + +def led5(v): set(4, v) + + +def led6(v): set(5, v) + + +def led7(v): set(6, v) + + +def led8(v): set(7, v) + + +def led9(v): set(8, v) + + +def led10(v): set(9, v) + + +def led11(v): set(10, v) + + +def led12(v): set(11, v) + + +def led13(v): set(12, v) + + +def led14(v): set(13, v) + + +def led15(v): set(14, v) + + +def led16(v): set(15, v) + + +def led17(v): set(16, v) + + +def led18(v): set(17, v) + + +def arm(x, y): leg(x - 1, y) + + +def spoke(x, y): leg(x - 1, y) + + +def show(): + """Output the contents of the values list to PiGlow.""" + + setup() + sn3218.output(_values) + + +def get(): + return _values + + +def set(leds, value): + """Set one or more LEDs with one or more values. + + You can set multiple LEDs with the same value, or supply a list of LEDs and values. + + :param led: A single index, or list of indexes of the LEDs to set + :param value: A single value, or list of values to set""" + + if isinstance(value, list) and isinstance(leds, int): + offset = leds + leds = [(offset + x) % 18 for x in range(len(value))] + if isinstance(leds, list): + leds = [_map[l] for l in leds] + elif isinstance(leds, int): + leds = _map[leds] + _set(leds, value) + + +def _set(leds, value): + global _values + + if isinstance(leds, list): + if isinstance(value, list): + for x in range(len(value)): + _values[leds[x] % 18] = (value[x] % 256) + else: + for led_index in leds: + _values[led_index % 18] = (value % 256) + + elif isinstance(leds, int): + leds %= 18 + if isinstance(value, list): + _values[leds:leds + len(value)] = map(lambda v: v % 256, value) + if len(_values) > 18: + wrap = _values[18:] + _values = _values[:18] + set(0, wrap) + else: + _values[leds] = (value % 256) + else: + raise ValueError("Invalid LED(s)") + + if auto_update: + show() + + +def ring(ring_index, value): + """Set the brightness of a specific ring""" + + ring_index %= 7 + _set([_legs[0][ring_index], _legs[1][ring_index], _legs[2][ring_index]], value) + + +def leg_bar(leg_index, percentage): + """Display a bargraph on a leg. + + A leg/arm/spoke is the line of 6 LEDs the emanates from the center of Piglow to the edge. + + :param leg_index: leg from 0 to 2 + :param percentage: percentage to display in decimal + + """ + + if percentage > 1.0 or percentage < 0: + raise ValueError("percentage must be between 0.0 and 1.0") + + # 1530 = 6 * 255 + amount = int(1530.0 * percentage) + for led_index in reversed(_legs[leg_index % 3]): + _set(led_index, 255 if amount > 255 else amount) + amount = 0 if amount < 255 else amount - 255 + + +def leg(leg_index, intensity): + _set(_legs[leg_index % 3], intensity) + + +def led(led_index, intensity): + """Compatibility function for old PiGlow library + Accepts LED between 1 and 18. + Calls set(led - 1, intesity) + + :param led_index: LED number from 1 to 18 + :param intensity: brightness from 0 to 255 + + """ + + set(led_index - 1, intensity) + + +def single(leg_index, ring_index, intensity): + """Sets a single LED by its leg/ring + + :param leg_index: leg index of LED + :param ring_index: ring index of LED + :param intensity: brightness from 0 to 255 + + """ + + _set(_legs[leg_index % 3][ring_index % 7], intensity) + + +def tween(duration, end, start=None): + """Tweens to a particular set of intensities. + Also accepts an optional starting point, otherwise + the current state of the LED is used. + + :param duration: duration in seconds + :param end: list of 18 values to tween to + :param start: list of 18 values to start from + + """ + + if not len(end) == 18: + raise ValueError("Requires list of 18 values") + + fps = 1.0 / 60 + steps = int(duration / fps) + + if start is None: + start = _values + + for x in range(steps): + new = [] + for y in range(18): + s = start[y] + e = end[y] + c = float(e - s) + b = s + ((c / float(steps)) * (x + 1)) + new.append(int(b)) + _set(0, new) + show() + time.sleep(fps) + + +def colour(colour, intensity): + """Set all LEDs of a particular colour to specified intensity + + :param colour: text name of LED colour; red, orange, yellow, green, blue, white + :param intensity: brightness from 0 to 255 + + """ + + if not isinstance(colour, int): + if colour in colours: + ring(colours[colour], intensity) + return True + else: + raise ValueError("Invalid Colour") + ring(colour - 1, intensity) + return True + + +def all(value): + """Set all LEDs to a specific brightness""" + + global _values + _values = [value] * 18 + + if auto_update: + show() + + +def clear(): + """Set all LEDS to 0/off""" + + all(0) + + +def off(): + """Set all LEDs to 0/off""" + + all(0) + show() + + +def _exit(): + if clear_on_exit: + off() + + +def setup(): + global _is_setup, sn3218 + + if _is_setup: + return True + + try: + import sn3218 + except ImportError: + raise ImportError("This library requires the sn3218 module\nInstall with: sudo pip install sn3218") + + sn3218.enable() + sn3218.enable_leds(0b111111111111111111) + + atexit.register(_exit) + + _is_setup = True + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/pio.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/pio.py index f409c91be4bceaf7b1d7cc89d7e4913f8968c0eb..7badfef3e36be4bca578a5e515828bdff6445941 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/pio.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/pio.py @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7dbe2b87cd793ac177b5eb5d6c19d4dbdc4c4650b583b37448a33a329048a88d -size 51 +# Dummy Module for the Flowchart I/O Device Drivers \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/relayboards.xml b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/relayboards.xml index 78813a376a28e89c8a6fb592a11f2699319ea11f..7d8e1cfee319be4e7a9ec3d354c655678efd5e91 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/relayboards.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/relayboards.xml @@ -1,3 +1,22 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9af9cfd726ae78176da111045095c44ed608315d79f77afdffe882df5a94892d -size 946 + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/__init__.py index 1cb9cc442e3903ea3f4e3e798397c31c00d2d314..9a899df67fb619d871db8b62eea9c1ed436c3a79 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/__init__.py @@ -1,3 +1,131 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3e7282823713ab8e0b68033307eefef81d8575ec11ac4f05fef8d979a1bd3610 -size 3921 +# -*- coding: utf-8 -*- + +# __ +# /__) _ _ _ _ _/ _ +# / ( (- (/ (/ (- _) / _) +# / + +""" +Requests HTTP Library +~~~~~~~~~~~~~~~~~~~~~ + +Requests is an HTTP library, written in Python, for human beings. Basic GET +usage: + + >>> import requests + >>> r = requests.get('https://www.python.org') + >>> r.status_code + 200 + >>> 'Python is a programming language' in r.content + True + +... or POST: + + >>> payload = dict(key1='value1', key2='value2') + >>> r = requests.post('https://httpbin.org/post', data=payload) + >>> print(r.text) + { + ... + "form": { + "key2": "value2", + "key1": "value1" + }, + ... + } + +The other HTTP methods are supported - see `requests.api`. Full documentation +is at . + +:copyright: (c) 2017 by Kenneth Reitz. +:license: Apache 2.0, see LICENSE for more details. +""" + +import urllib3 +import chardet +import warnings +from .exceptions import RequestsDependencyWarning + + +def check_compatibility(urllib3_version, chardet_version): + urllib3_version = urllib3_version.split('.') + assert urllib3_version != ['dev'] # Verify urllib3 isn't installed from git. + + # Sometimes, urllib3 only reports its version as 16.1. + if len(urllib3_version) == 2: + urllib3_version.append('0') + + # Check urllib3 for compatibility. + major, minor, patch = urllib3_version # noqa: F811 + major, minor, patch = int(major), int(minor), int(patch) + # urllib3 >= 1.21.1, <= 1.25 + assert major == 1 + assert minor >= 21 + assert minor <= 25 + + # Check chardet for compatibility. + major, minor, patch = chardet_version.split('.')[:3] + major, minor, patch = int(major), int(minor), int(patch) + # chardet >= 3.0.2, < 3.1.0 + assert major == 3 + assert minor < 1 + assert patch >= 2 + + +def _check_cryptography(cryptography_version): + # cryptography < 1.3.4 + try: + cryptography_version = list(map(int, cryptography_version.split('.'))) + except ValueError: + return + + if cryptography_version < [1, 3, 4]: + warning = 'Old version of cryptography ({}) may cause slowdown.'.format(cryptography_version) + warnings.warn(warning, RequestsDependencyWarning) + +# Check imported dependencies for compatibility. +try: + check_compatibility(urllib3.__version__, chardet.__version__) +except (AssertionError, ValueError): + warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported " + "version!".format(urllib3.__version__, chardet.__version__), + RequestsDependencyWarning) + +# Attempt to enable urllib3's SNI support, if possible +try: + from urllib3.contrib import pyopenssl + pyopenssl.inject_into_urllib3() + + # Check cryptography version + from cryptography import __version__ as cryptography_version + _check_cryptography(cryptography_version) +except ImportError: + pass + +# urllib3's DependencyWarnings should be silenced. +from urllib3.exceptions import DependencyWarning +warnings.simplefilter('ignore', DependencyWarning) + +from .__version__ import __title__, __description__, __url__, __version__ +from .__version__ import __build__, __author__, __author_email__, __license__ +from .__version__ import __copyright__, __cake__ + +from . import utils +from . import packages +from .models import Request, Response, PreparedRequest +from .api import request, get, head, post, patch, put, delete, options +from .sessions import session, Session +from .status_codes import codes +from .exceptions import ( + RequestException, Timeout, URLRequired, + TooManyRedirects, HTTPError, ConnectionError, + FileModeWarning, ConnectTimeout, ReadTimeout +) + +# Set default logging handler to avoid "No handler found" warnings. +import logging +from logging import NullHandler + +logging.getLogger(__name__).addHandler(NullHandler()) + +# FileModeWarnings go off per the default. +warnings.simplefilter('default', FileModeWarning, append=True) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/__version__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/__version__.py index 515aaeaf254f170ad89136c4cf45a8b91ac27797..9844f740abea47edbe57cb01d181b341d021ffb1 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/__version__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/__version__.py @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:066f8616cb506857b3b0596798432b2437bc24d44ecfd9f65d762d38376f8e37 -size 436 +# .-. .-. .-. . . .-. .-. .-. .-. +# |( |- |.| | | |- `-. | `-. +# ' ' `-' `-`.`-' `-' `-' ' `-' + +__title__ = 'requests' +__description__ = 'Python HTTP for Humans.' +__url__ = 'http://python-requests.org' +__version__ = '2.22.0' +__build__ = 0x022200 +__author__ = 'Kenneth Reitz' +__author_email__ = 'me@kennethreitz.org' +__license__ = 'Apache 2.0' +__copyright__ = 'Copyright 2019 Kenneth Reitz' +__cake__ = u'\u2728 \U0001f370 \u2728' diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/_internal_utils.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/_internal_utils.py index b8fcbd9a397c88b98978aa0f1924c964347b8316..759d9a56ba0102bb3b7b3abfcfae6731a2ecc243 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/_internal_utils.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/_internal_utils.py @@ -1,3 +1,42 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:671dcf9c451c7327ec07e89ed759d95405bca82949cb4831d6a34c13bae04f5f -size 1096 +# -*- coding: utf-8 -*- + +""" +requests._internal_utils +~~~~~~~~~~~~~~ + +Provides utility functions that are consumed internally by Requests +which depend on extremely few external helpers (such as compat) +""" + +from .compat import is_py2, builtin_str, str + + +def to_native_string(string, encoding='ascii'): + """Given a string object, regardless of type, returns a representation of + that string in the native string type, encoding and decoding where + necessary. This assumes ASCII unless told otherwise. + """ + if isinstance(string, builtin_str): + out = string + else: + if is_py2: + out = string.encode(encoding) + else: + out = string.decode(encoding) + + return out + + +def unicode_is_ascii(u_string): + """Determine if unicode string only contains ASCII characters. + + :param str u_string: unicode string to check. Must be unicode + and not Python 2 `str`. + :rtype: bool + """ + assert isinstance(u_string, str) + try: + u_string.encode('ascii') + return True + except UnicodeEncodeError: + return False diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/adapters.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/adapters.py index eeec99fd711bc24e3e82bcd0e3e7da3fe5d021c3..fa4d9b3cc9a2cf6dc2465958387f32193b431410 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/adapters.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/adapters.py @@ -1,3 +1,533 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:59e95233504241775b8c4b83b01c6a283003798f011e6c65af06cd9cb376aebe -size 21344 +# -*- coding: utf-8 -*- + +""" +requests.adapters +~~~~~~~~~~~~~~~~~ + +This module contains the transport adapters that Requests uses to define +and maintain connections. +""" + +import os.path +import socket + +from urllib3.poolmanager import PoolManager, proxy_from_url +from urllib3.response import HTTPResponse +from urllib3.util import parse_url +from urllib3.util import Timeout as TimeoutSauce +from urllib3.util.retry import Retry +from urllib3.exceptions import ClosedPoolError +from urllib3.exceptions import ConnectTimeoutError +from urllib3.exceptions import HTTPError as _HTTPError +from urllib3.exceptions import MaxRetryError +from urllib3.exceptions import NewConnectionError +from urllib3.exceptions import ProxyError as _ProxyError +from urllib3.exceptions import ProtocolError +from urllib3.exceptions import ReadTimeoutError +from urllib3.exceptions import SSLError as _SSLError +from urllib3.exceptions import ResponseError +from urllib3.exceptions import LocationValueError + +from .models import Response +from .compat import urlparse, basestring +from .utils import (DEFAULT_CA_BUNDLE_PATH, extract_zipped_paths, + get_encoding_from_headers, prepend_scheme_if_needed, + get_auth_from_url, urldefragauth, select_proxy) +from .structures import CaseInsensitiveDict +from .cookies import extract_cookies_to_jar +from .exceptions import (ConnectionError, ConnectTimeout, ReadTimeout, SSLError, + ProxyError, RetryError, InvalidSchema, InvalidProxyURL, + InvalidURL) +from .auth import _basic_auth_str + +try: + from urllib3.contrib.socks import SOCKSProxyManager +except ImportError: + def SOCKSProxyManager(*args, **kwargs): + raise InvalidSchema("Missing dependencies for SOCKS support.") + +DEFAULT_POOLBLOCK = False +DEFAULT_POOLSIZE = 10 +DEFAULT_RETRIES = 0 +DEFAULT_POOL_TIMEOUT = None + + +class BaseAdapter(object): + """The Base Transport Adapter""" + + def __init__(self): + super(BaseAdapter, self).__init__() + + def send(self, request, stream=False, timeout=None, verify=True, + cert=None, proxies=None): + """Sends PreparedRequest object. Returns Response object. + + :param request: The :class:`PreparedRequest ` being sent. + :param stream: (optional) Whether to stream the request content. + :param timeout: (optional) How long to wait for the server to send + data before giving up, as a float, or a :ref:`(connect timeout, + read timeout) ` tuple. + :type timeout: float or tuple + :param verify: (optional) Either a boolean, in which case it controls whether we verify + the server's TLS certificate, or a string, in which case it must be a path + to a CA bundle to use + :param cert: (optional) Any user-provided SSL certificate to be trusted. + :param proxies: (optional) The proxies dictionary to apply to the request. + """ + raise NotImplementedError + + def close(self): + """Cleans up adapter specific items.""" + raise NotImplementedError + + +class HTTPAdapter(BaseAdapter): + """The built-in HTTP Adapter for urllib3. + + Provides a general-case interface for Requests sessions to contact HTTP and + HTTPS urls by implementing the Transport Adapter interface. This class will + usually be created by the :class:`Session ` class under the + covers. + + :param pool_connections: The number of urllib3 connection pools to cache. + :param pool_maxsize: The maximum number of connections to save in the pool. + :param max_retries: The maximum number of retries each connection + should attempt. Note, this applies only to failed DNS lookups, socket + connections and connection timeouts, never to requests where data has + made it to the server. By default, Requests does not retry failed + connections. If you need granular control over the conditions under + which we retry a request, import urllib3's ``Retry`` class and pass + that instead. + :param pool_block: Whether the connection pool should block for connections. + + Usage:: + + >>> import requests + >>> s = requests.Session() + >>> a = requests.adapters.HTTPAdapter(max_retries=3) + >>> s.mount('http://', a) + """ + __attrs__ = ['max_retries', 'config', '_pool_connections', '_pool_maxsize', + '_pool_block'] + + def __init__(self, pool_connections=DEFAULT_POOLSIZE, + pool_maxsize=DEFAULT_POOLSIZE, max_retries=DEFAULT_RETRIES, + pool_block=DEFAULT_POOLBLOCK): + if max_retries == DEFAULT_RETRIES: + self.max_retries = Retry(0, read=False) + else: + self.max_retries = Retry.from_int(max_retries) + self.config = {} + self.proxy_manager = {} + + super(HTTPAdapter, self).__init__() + + self._pool_connections = pool_connections + self._pool_maxsize = pool_maxsize + self._pool_block = pool_block + + self.init_poolmanager(pool_connections, pool_maxsize, block=pool_block) + + def __getstate__(self): + return {attr: getattr(self, attr, None) for attr in self.__attrs__} + + def __setstate__(self, state): + # Can't handle by adding 'proxy_manager' to self.__attrs__ because + # self.poolmanager uses a lambda function, which isn't pickleable. + self.proxy_manager = {} + self.config = {} + + for attr, value in state.items(): + setattr(self, attr, value) + + self.init_poolmanager(self._pool_connections, self._pool_maxsize, + block=self._pool_block) + + def init_poolmanager(self, connections, maxsize, block=DEFAULT_POOLBLOCK, **pool_kwargs): + """Initializes a urllib3 PoolManager. + + This method should not be called from user code, and is only + exposed for use when subclassing the + :class:`HTTPAdapter `. + + :param connections: The number of urllib3 connection pools to cache. + :param maxsize: The maximum number of connections to save in the pool. + :param block: Block when no free connections are available. + :param pool_kwargs: Extra keyword arguments used to initialize the Pool Manager. + """ + # save these values for pickling + self._pool_connections = connections + self._pool_maxsize = maxsize + self._pool_block = block + + self.poolmanager = PoolManager(num_pools=connections, maxsize=maxsize, + block=block, strict=True, **pool_kwargs) + + def proxy_manager_for(self, proxy, **proxy_kwargs): + """Return urllib3 ProxyManager for the given proxy. + + This method should not be called from user code, and is only + exposed for use when subclassing the + :class:`HTTPAdapter `. + + :param proxy: The proxy to return a urllib3 ProxyManager for. + :param proxy_kwargs: Extra keyword arguments used to configure the Proxy Manager. + :returns: ProxyManager + :rtype: urllib3.ProxyManager + """ + if proxy in self.proxy_manager: + manager = self.proxy_manager[proxy] + elif proxy.lower().startswith('socks'): + username, password = get_auth_from_url(proxy) + manager = self.proxy_manager[proxy] = SOCKSProxyManager( + proxy, + username=username, + password=password, + num_pools=self._pool_connections, + maxsize=self._pool_maxsize, + block=self._pool_block, + **proxy_kwargs + ) + else: + proxy_headers = self.proxy_headers(proxy) + manager = self.proxy_manager[proxy] = proxy_from_url( + proxy, + proxy_headers=proxy_headers, + num_pools=self._pool_connections, + maxsize=self._pool_maxsize, + block=self._pool_block, + **proxy_kwargs) + + return manager + + def cert_verify(self, conn, url, verify, cert): + """Verify a SSL certificate. This method should not be called from user + code, and is only exposed for use when subclassing the + :class:`HTTPAdapter `. + + :param conn: The urllib3 connection object associated with the cert. + :param url: The requested URL. + :param verify: Either a boolean, in which case it controls whether we verify + the server's TLS certificate, or a string, in which case it must be a path + to a CA bundle to use + :param cert: The SSL certificate to verify. + """ + if url.lower().startswith('https') and verify: + + cert_loc = None + + # Allow self-specified cert location. + if verify is not True: + cert_loc = verify + + if not cert_loc: + cert_loc = extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH) + + if not cert_loc or not os.path.exists(cert_loc): + raise IOError("Could not find a suitable TLS CA certificate bundle, " + "invalid path: {}".format(cert_loc)) + + conn.cert_reqs = 'CERT_REQUIRED' + + if not os.path.isdir(cert_loc): + conn.ca_certs = cert_loc + else: + conn.ca_cert_dir = cert_loc + else: + conn.cert_reqs = 'CERT_NONE' + conn.ca_certs = None + conn.ca_cert_dir = None + + if cert: + if not isinstance(cert, basestring): + conn.cert_file = cert[0] + conn.key_file = cert[1] + else: + conn.cert_file = cert + conn.key_file = None + if conn.cert_file and not os.path.exists(conn.cert_file): + raise IOError("Could not find the TLS certificate file, " + "invalid path: {}".format(conn.cert_file)) + if conn.key_file and not os.path.exists(conn.key_file): + raise IOError("Could not find the TLS key file, " + "invalid path: {}".format(conn.key_file)) + + def build_response(self, req, resp): + """Builds a :class:`Response ` object from a urllib3 + response. This should not be called from user code, and is only exposed + for use when subclassing the + :class:`HTTPAdapter ` + + :param req: The :class:`PreparedRequest ` used to generate the response. + :param resp: The urllib3 response object. + :rtype: requests.Response + """ + response = Response() + + # Fallback to None if there's no status_code, for whatever reason. + response.status_code = getattr(resp, 'status', None) + + # Make headers case-insensitive. + response.headers = CaseInsensitiveDict(getattr(resp, 'headers', {})) + + # Set encoding. + response.encoding = get_encoding_from_headers(response.headers) + response.raw = resp + response.reason = response.raw.reason + + if isinstance(req.url, bytes): + response.url = req.url.decode('utf-8') + else: + response.url = req.url + + # Add new cookies from the server. + extract_cookies_to_jar(response.cookies, req, resp) + + # Give the Response some context. + response.request = req + response.connection = self + + return response + + def get_connection(self, url, proxies=None): + """Returns a urllib3 connection for the given URL. This should not be + called from user code, and is only exposed for use when subclassing the + :class:`HTTPAdapter `. + + :param url: The URL to connect to. + :param proxies: (optional) A Requests-style dictionary of proxies used on this request. + :rtype: urllib3.ConnectionPool + """ + proxy = select_proxy(url, proxies) + + if proxy: + proxy = prepend_scheme_if_needed(proxy, 'http') + proxy_url = parse_url(proxy) + if not proxy_url.host: + raise InvalidProxyURL("Please check proxy URL. It is malformed" + " and could be missing the host.") + proxy_manager = self.proxy_manager_for(proxy) + conn = proxy_manager.connection_from_url(url) + else: + # Only scheme should be lower case + parsed = urlparse(url) + url = parsed.geturl() + conn = self.poolmanager.connection_from_url(url) + + return conn + + def close(self): + """Disposes of any internal state. + + Currently, this closes the PoolManager and any active ProxyManager, + which closes any pooled connections. + """ + self.poolmanager.clear() + for proxy in self.proxy_manager.values(): + proxy.clear() + + def request_url(self, request, proxies): + """Obtain the url to use when making the final request. + + If the message is being sent through a HTTP proxy, the full URL has to + be used. Otherwise, we should only use the path portion of the URL. + + This should not be called from user code, and is only exposed for use + when subclassing the + :class:`HTTPAdapter `. + + :param request: The :class:`PreparedRequest ` being sent. + :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs. + :rtype: str + """ + proxy = select_proxy(request.url, proxies) + scheme = urlparse(request.url).scheme + + is_proxied_http_request = (proxy and scheme != 'https') + using_socks_proxy = False + if proxy: + proxy_scheme = urlparse(proxy).scheme.lower() + using_socks_proxy = proxy_scheme.startswith('socks') + + url = request.path_url + if is_proxied_http_request and not using_socks_proxy: + url = urldefragauth(request.url) + + return url + + def add_headers(self, request, **kwargs): + """Add any headers needed by the connection. As of v2.0 this does + nothing by default, but is left for overriding by users that subclass + the :class:`HTTPAdapter `. + + This should not be called from user code, and is only exposed for use + when subclassing the + :class:`HTTPAdapter `. + + :param request: The :class:`PreparedRequest ` to add headers to. + :param kwargs: The keyword arguments from the call to send(). + """ + pass + + def proxy_headers(self, proxy): + """Returns a dictionary of the headers to add to any request sent + through a proxy. This works with urllib3 magic to ensure that they are + correctly sent to the proxy, rather than in a tunnelled request if + CONNECT is being used. + + This should not be called from user code, and is only exposed for use + when subclassing the + :class:`HTTPAdapter `. + + :param proxy: The url of the proxy being used for this request. + :rtype: dict + """ + headers = {} + username, password = get_auth_from_url(proxy) + + if username: + headers['Proxy-Authorization'] = _basic_auth_str(username, + password) + + return headers + + def send(self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None): + """Sends PreparedRequest object. Returns Response object. + + :param request: The :class:`PreparedRequest ` being sent. + :param stream: (optional) Whether to stream the request content. + :param timeout: (optional) How long to wait for the server to send + data before giving up, as a float, or a :ref:`(connect timeout, + read timeout) ` tuple. + :type timeout: float or tuple or urllib3 Timeout object + :param verify: (optional) Either a boolean, in which case it controls whether + we verify the server's TLS certificate, or a string, in which case it + must be a path to a CA bundle to use + :param cert: (optional) Any user-provided SSL certificate to be trusted. + :param proxies: (optional) The proxies dictionary to apply to the request. + :rtype: requests.Response + """ + + try: + conn = self.get_connection(request.url, proxies) + except LocationValueError as e: + raise InvalidURL(e, request=request) + + self.cert_verify(conn, request.url, verify, cert) + url = self.request_url(request, proxies) + self.add_headers(request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies) + + chunked = not (request.body is None or 'Content-Length' in request.headers) + + if isinstance(timeout, tuple): + try: + connect, read = timeout + timeout = TimeoutSauce(connect=connect, read=read) + except ValueError as e: + # this may raise a string formatting error. + err = ("Invalid timeout {}. Pass a (connect, read) " + "timeout tuple, or a single float to set " + "both timeouts to the same value".format(timeout)) + raise ValueError(err) + elif isinstance(timeout, TimeoutSauce): + pass + else: + timeout = TimeoutSauce(connect=timeout, read=timeout) + + try: + if not chunked: + resp = conn.urlopen( + method=request.method, + url=url, + body=request.body, + headers=request.headers, + redirect=False, + assert_same_host=False, + preload_content=False, + decode_content=False, + retries=self.max_retries, + timeout=timeout + ) + + # Send the request. + else: + if hasattr(conn, 'proxy_pool'): + conn = conn.proxy_pool + + low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT) + + try: + low_conn.putrequest(request.method, + url, + skip_accept_encoding=True) + + for header, value in request.headers.items(): + low_conn.putheader(header, value) + + low_conn.endheaders() + + for i in request.body: + low_conn.send(hex(len(i))[2:].encode('utf-8')) + low_conn.send(b'\r\n') + low_conn.send(i) + low_conn.send(b'\r\n') + low_conn.send(b'0\r\n\r\n') + + # Receive the response from the server + try: + # For Python 2.7, use buffering of HTTP responses + r = low_conn.getresponse(buffering=True) + except TypeError: + # For compatibility with Python 3.3+ + r = low_conn.getresponse() + + resp = HTTPResponse.from_httplib( + r, + pool=conn, + connection=low_conn, + preload_content=False, + decode_content=False + ) + except: + # If we hit any problems here, clean up the connection. + # Then, reraise so that we can handle the actual exception. + low_conn.close() + raise + + except (ProtocolError, socket.error) as err: + raise ConnectionError(err, request=request) + + except MaxRetryError as e: + if isinstance(e.reason, ConnectTimeoutError): + # TODO: Remove this in 3.0.0: see #2811 + if not isinstance(e.reason, NewConnectionError): + raise ConnectTimeout(e, request=request) + + if isinstance(e.reason, ResponseError): + raise RetryError(e, request=request) + + if isinstance(e.reason, _ProxyError): + raise ProxyError(e, request=request) + + if isinstance(e.reason, _SSLError): + # This branch is for urllib3 v1.22 and later. + raise SSLError(e, request=request) + + raise ConnectionError(e, request=request) + + except ClosedPoolError as e: + raise ConnectionError(e, request=request) + + except _ProxyError as e: + raise ProxyError(e) + + except (_SSLError, _HTTPError) as e: + if isinstance(e, _SSLError): + # This branch is for urllib3 versions earlier than v1.22 + raise SSLError(e, request=request) + elif isinstance(e, ReadTimeoutError): + raise ReadTimeout(e, request=request) + else: + raise + + return self.build_response(request, resp) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/api.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/api.py index b8a2bc8890bc1d4b3df918c782fcb552103c1ddb..ef71d0759ea9f3c38bae8dd227371042c959dcb7 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/api.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/api.py @@ -1,3 +1,158 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7db528d754282cea0d81653a15fbcdcfcbcc8fd6c4fdc3262025c16bb4d91c9b -size 6271 +# -*- coding: utf-8 -*- + +""" +requests.api +~~~~~~~~~~~~ + +This module implements the Requests API. + +:copyright: (c) 2012 by Kenneth Reitz. +:license: Apache2, see LICENSE for more details. +""" + +from . import sessions + + +def request(method, url, **kwargs): + """Constructs and sends a :class:`Request `. + + :param method: method for the new :class:`Request` object. + :param url: URL for the new :class:`Request` object. + :param params: (optional) Dictionary, list of tuples or bytes to send + in the query string for the :class:`Request`. + :param data: (optional) Dictionary, list of tuples, bytes, or file-like + object to send in the body of the :class:`Request`. + :param json: (optional) A JSON serializable Python object to send in the body of the :class:`Request`. + :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`. + :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`. + :param files: (optional) Dictionary of ``'name': file-like-objects`` (or ``{'name': file-tuple}``) for multipart encoding upload. + ``file-tuple`` can be a 2-tuple ``('filename', fileobj)``, 3-tuple ``('filename', fileobj, 'content_type')`` + or a 4-tuple ``('filename', fileobj, 'content_type', custom_headers)``, where ``'content-type'`` is a string + defining the content type of the given file and ``custom_headers`` a dict-like object containing additional headers + to add for the file. + :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth. + :param timeout: (optional) How many seconds to wait for the server to send data + before giving up, as a float, or a :ref:`(connect timeout, read + timeout) ` tuple. + :type timeout: float or tuple + :param allow_redirects: (optional) Boolean. Enable/disable GET/OPTIONS/POST/PUT/PATCH/DELETE/HEAD redirection. Defaults to ``True``. + :type allow_redirects: bool + :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy. + :param verify: (optional) Either a boolean, in which case it controls whether we verify + the server's TLS certificate, or a string, in which case it must be a path + to a CA bundle to use. Defaults to ``True``. + :param stream: (optional) if ``False``, the response content will be immediately downloaded. + :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair. + :return: :class:`Response ` object + :rtype: requests.Response + + Usage:: + + >>> import requests + >>> req = requests.request('GET', 'https://httpbin.org/get') + + """ + + # By using the 'with' statement we are sure the session is closed, thus we + # avoid leaving sockets open which can trigger a ResourceWarning in some + # cases, and look like a memory leak in others. + with sessions.Session() as session: + return session.request(method=method, url=url, **kwargs) + + +def get(url, params=None, **kwargs): + r"""Sends a GET request. + + :param url: URL for the new :class:`Request` object. + :param params: (optional) Dictionary, list of tuples or bytes to send + in the query string for the :class:`Request`. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :return: :class:`Response ` object + :rtype: requests.Response + """ + + kwargs.setdefault('allow_redirects', True) + return request('get', url, params=params, **kwargs) + + +def options(url, **kwargs): + r"""Sends an OPTIONS request. + + :param url: URL for the new :class:`Request` object. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :return: :class:`Response ` object + :rtype: requests.Response + """ + + kwargs.setdefault('allow_redirects', True) + return request('options', url, **kwargs) + + +def head(url, **kwargs): + r"""Sends a HEAD request. + + :param url: URL for the new :class:`Request` object. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :return: :class:`Response ` object + :rtype: requests.Response + """ + + kwargs.setdefault('allow_redirects', False) + return request('head', url, **kwargs) + + +def post(url, data=None, json=None, **kwargs): + r"""Sends a POST request. + + :param url: URL for the new :class:`Request` object. + :param data: (optional) Dictionary, list of tuples, bytes, or file-like + object to send in the body of the :class:`Request`. + :param json: (optional) json data to send in the body of the :class:`Request`. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :return: :class:`Response ` object + :rtype: requests.Response + """ + + return request('post', url, data=data, json=json, **kwargs) + + +def put(url, data=None, **kwargs): + r"""Sends a PUT request. + + :param url: URL for the new :class:`Request` object. + :param data: (optional) Dictionary, list of tuples, bytes, or file-like + object to send in the body of the :class:`Request`. + :param json: (optional) json data to send in the body of the :class:`Request`. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :return: :class:`Response ` object + :rtype: requests.Response + """ + + return request('put', url, data=data, **kwargs) + + +def patch(url, data=None, **kwargs): + r"""Sends a PATCH request. + + :param url: URL for the new :class:`Request` object. + :param data: (optional) Dictionary, list of tuples, bytes, or file-like + object to send in the body of the :class:`Request`. + :param json: (optional) json data to send in the body of the :class:`Request`. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :return: :class:`Response ` object + :rtype: requests.Response + """ + + return request('patch', url, data=data, **kwargs) + + +def delete(url, **kwargs): + r"""Sends a DELETE request. + + :param url: URL for the new :class:`Request` object. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :return: :class:`Response ` object + :rtype: requests.Response + """ + + return request('delete', url, **kwargs) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/auth.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/auth.py index 1ed9285f1f3adb5a09f9dc65c52e6763674f3197..bdde51c7fd1b0f1e3c7adeb8f2bf2587cdfab122 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/auth.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/auth.py @@ -1,3 +1,305 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:401dbe712523d63aef5997cf5edb6c669c8069c420b4a2d5935e2f416f53a521 -size 10206 +# -*- coding: utf-8 -*- + +""" +requests.auth +~~~~~~~~~~~~~ + +This module contains the authentication handlers for Requests. +""" + +import os +import re +import time +import hashlib +import threading +import warnings + +from base64 import b64encode + +from .compat import urlparse, str, basestring +from .cookies import extract_cookies_to_jar +from ._internal_utils import to_native_string +from .utils import parse_dict_header + +CONTENT_TYPE_FORM_URLENCODED = 'application/x-www-form-urlencoded' +CONTENT_TYPE_MULTI_PART = 'multipart/form-data' + + +def _basic_auth_str(username, password): + """Returns a Basic Auth string.""" + + # "I want us to put a big-ol' comment on top of it that + # says that this behaviour is dumb but we need to preserve + # it because people are relying on it." + # - Lukasa + # + # These are here solely to maintain backwards compatibility + # for things like ints. This will be removed in 3.0.0. + if not isinstance(username, basestring): + warnings.warn( + "Non-string usernames will no longer be supported in Requests " + "3.0.0. Please convert the object you've passed in ({!r}) to " + "a string or bytes object in the near future to avoid " + "problems.".format(username), + category=DeprecationWarning, + ) + username = str(username) + + if not isinstance(password, basestring): + warnings.warn( + "Non-string passwords will no longer be supported in Requests " + "3.0.0. Please convert the object you've passed in ({!r}) to " + "a string or bytes object in the near future to avoid " + "problems.".format(password), + category=DeprecationWarning, + ) + password = str(password) + # -- End Removal -- + + if isinstance(username, str): + username = username.encode('latin1') + + if isinstance(password, str): + password = password.encode('latin1') + + authstr = 'Basic ' + to_native_string( + b64encode(b':'.join((username, password))).strip() + ) + + return authstr + + +class AuthBase(object): + """Base class that all auth implementations derive from""" + + def __call__(self, r): + raise NotImplementedError('Auth hooks must be callable.') + + +class HTTPBasicAuth(AuthBase): + """Attaches HTTP Basic Authentication to the given Request object.""" + + def __init__(self, username, password): + self.username = username + self.password = password + + def __eq__(self, other): + return all([ + self.username == getattr(other, 'username', None), + self.password == getattr(other, 'password', None) + ]) + + def __ne__(self, other): + return not self == other + + def __call__(self, r): + r.headers['Authorization'] = _basic_auth_str(self.username, self.password) + return r + + +class HTTPProxyAuth(HTTPBasicAuth): + """Attaches HTTP Proxy Authentication to a given Request object.""" + + def __call__(self, r): + r.headers['Proxy-Authorization'] = _basic_auth_str(self.username, self.password) + return r + + +class HTTPDigestAuth(AuthBase): + """Attaches HTTP Digest Authentication to the given Request object.""" + + def __init__(self, username, password): + self.username = username + self.password = password + # Keep state in per-thread local storage + self._thread_local = threading.local() + + def init_per_thread_state(self): + # Ensure state is initialized just once per-thread + if not hasattr(self._thread_local, 'init'): + self._thread_local.init = True + self._thread_local.last_nonce = '' + self._thread_local.nonce_count = 0 + self._thread_local.chal = {} + self._thread_local.pos = None + self._thread_local.num_401_calls = None + + def build_digest_header(self, method, url): + """ + :rtype: str + """ + + realm = self._thread_local.chal['realm'] + nonce = self._thread_local.chal['nonce'] + qop = self._thread_local.chal.get('qop') + algorithm = self._thread_local.chal.get('algorithm') + opaque = self._thread_local.chal.get('opaque') + hash_utf8 = None + + if algorithm is None: + _algorithm = 'MD5' + else: + _algorithm = algorithm.upper() + # lambdas assume digest modules are imported at the top level + if _algorithm == 'MD5' or _algorithm == 'MD5-SESS': + def md5_utf8(x): + if isinstance(x, str): + x = x.encode('utf-8') + return hashlib.md5(x).hexdigest() + hash_utf8 = md5_utf8 + elif _algorithm == 'SHA': + def sha_utf8(x): + if isinstance(x, str): + x = x.encode('utf-8') + return hashlib.sha1(x).hexdigest() + hash_utf8 = sha_utf8 + elif _algorithm == 'SHA-256': + def sha256_utf8(x): + if isinstance(x, str): + x = x.encode('utf-8') + return hashlib.sha256(x).hexdigest() + hash_utf8 = sha256_utf8 + elif _algorithm == 'SHA-512': + def sha512_utf8(x): + if isinstance(x, str): + x = x.encode('utf-8') + return hashlib.sha512(x).hexdigest() + hash_utf8 = sha512_utf8 + + KD = lambda s, d: hash_utf8("%s:%s" % (s, d)) + + if hash_utf8 is None: + return None + + # XXX not implemented yet + entdig = None + p_parsed = urlparse(url) + #: path is request-uri defined in RFC 2616 which should not be empty + path = p_parsed.path or "/" + if p_parsed.query: + path += '?' + p_parsed.query + + A1 = '%s:%s:%s' % (self.username, realm, self.password) + A2 = '%s:%s' % (method, path) + + HA1 = hash_utf8(A1) + HA2 = hash_utf8(A2) + + if nonce == self._thread_local.last_nonce: + self._thread_local.nonce_count += 1 + else: + self._thread_local.nonce_count = 1 + ncvalue = '%08x' % self._thread_local.nonce_count + s = str(self._thread_local.nonce_count).encode('utf-8') + s += nonce.encode('utf-8') + s += time.ctime().encode('utf-8') + s += os.urandom(8) + + cnonce = (hashlib.sha1(s).hexdigest()[:16]) + if _algorithm == 'MD5-SESS': + HA1 = hash_utf8('%s:%s:%s' % (HA1, nonce, cnonce)) + + if not qop: + respdig = KD(HA1, "%s:%s" % (nonce, HA2)) + elif qop == 'auth' or 'auth' in qop.split(','): + noncebit = "%s:%s:%s:%s:%s" % ( + nonce, ncvalue, cnonce, 'auth', HA2 + ) + respdig = KD(HA1, noncebit) + else: + # XXX handle auth-int. + return None + + self._thread_local.last_nonce = nonce + + # XXX should the partial digests be encoded too? + base = 'username="%s", realm="%s", nonce="%s", uri="%s", ' \ + 'response="%s"' % (self.username, realm, nonce, path, respdig) + if opaque: + base += ', opaque="%s"' % opaque + if algorithm: + base += ', algorithm="%s"' % algorithm + if entdig: + base += ', digest="%s"' % entdig + if qop: + base += ', qop="auth", nc=%s, cnonce="%s"' % (ncvalue, cnonce) + + return 'Digest %s' % (base) + + def handle_redirect(self, r, **kwargs): + """Reset num_401_calls counter on redirects.""" + if r.is_redirect: + self._thread_local.num_401_calls = 1 + + def handle_401(self, r, **kwargs): + """ + Takes the given response and tries digest-auth, if needed. + + :rtype: requests.Response + """ + + # If response is not 4xx, do not auth + # See https://github.com/requests/requests/issues/3772 + if not 400 <= r.status_code < 500: + self._thread_local.num_401_calls = 1 + return r + + if self._thread_local.pos is not None: + # Rewind the file position indicator of the body to where + # it was to resend the request. + r.request.body.seek(self._thread_local.pos) + s_auth = r.headers.get('www-authenticate', '') + + if 'digest' in s_auth.lower() and self._thread_local.num_401_calls < 2: + + self._thread_local.num_401_calls += 1 + pat = re.compile(r'digest ', flags=re.IGNORECASE) + self._thread_local.chal = parse_dict_header(pat.sub('', s_auth, count=1)) + + # Consume content and release the original connection + # to allow our new request to reuse the same one. + r.content + r.close() + prep = r.request.copy() + extract_cookies_to_jar(prep._cookies, r.request, r.raw) + prep.prepare_cookies(prep._cookies) + + prep.headers['Authorization'] = self.build_digest_header( + prep.method, prep.url) + _r = r.connection.send(prep, **kwargs) + _r.history.append(r) + _r.request = prep + + return _r + + self._thread_local.num_401_calls = 1 + return r + + def __call__(self, r): + # Initialize per-thread state, if needed + self.init_per_thread_state() + # If we have a saved nonce, skip the 401 + if self._thread_local.last_nonce: + r.headers['Authorization'] = self.build_digest_header(r.method, r.url) + try: + self._thread_local.pos = r.body.tell() + except AttributeError: + # In the case of HTTPDigestAuth being reused and the body of + # the previous request was a file-like object, pos has the + # file position of the previous body. Ensure it's set to + # None. + self._thread_local.pos = None + r.register_hook('response', self.handle_401) + r.register_hook('response', self.handle_redirect) + self._thread_local.num_401_calls = 1 + + return r + + def __eq__(self, other): + return all([ + self.username == getattr(other, 'username', None), + self.password == getattr(other, 'password', None) + ]) + + def __ne__(self, other): + return not self == other diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/certs.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/certs.py index 6c7328f590438cb71b7813ee580135dfea12fc83..d1a378d787d5a220ef2df694c5cbcd6b4015cbea 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/certs.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/certs.py @@ -1,3 +1,18 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:74e079ad5d83675ddd121abd0546bfe21779900aa0e7d7bfcd4641d347da633f -size 453 +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +""" +requests.certs +~~~~~~~~~~~~~~ + +This module returns the preferred default CA certificate bundle. There is +only one — the one from the certifi package. + +If you are packaging Requests, e.g., for a Linux distribution or a managed +environment, you can change the definition of where() to return a separately +packaged CA bundle. +""" +from certifi import where + +if __name__ == '__main__': + print(where()) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/compat.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/compat.py index 4db9a183a20301bf255abe0ec78987ad1f46d8e2..c44b35efb984650802c40efbc5281b875bae4adc 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/compat.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/compat.py @@ -1,3 +1,70 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:15521e4ce9e240c1d091e13625d26f6abdce67e6f820587c68d7b3227e39cf0b -size 1678 +# -*- coding: utf-8 -*- + +""" +requests.compat +~~~~~~~~~~~~~~~ + +This module handles import compatibility issues between Python 2 and +Python 3. +""" + +import chardet + +import sys + +# ------- +# Pythons +# ------- + +# Syntax sugar. +_ver = sys.version_info + +#: Python 2.x? +is_py2 = (_ver[0] == 2) + +#: Python 3.x? +is_py3 = (_ver[0] == 3) + +try: + import simplejson as json +except ImportError: + import json + +# --------- +# Specifics +# --------- + +if is_py2: + from urllib import ( + quote, unquote, quote_plus, unquote_plus, urlencode, getproxies, + proxy_bypass, proxy_bypass_environment, getproxies_environment) + from urlparse import urlparse, urlunparse, urljoin, urlsplit, urldefrag + from urllib2 import parse_http_list + import cookielib + from Cookie import Morsel + from StringIO import StringIO + from collections import Callable, Mapping, MutableMapping, OrderedDict + + + builtin_str = str + bytes = str + str = unicode + basestring = basestring + numeric_types = (int, long, float) + integer_types = (int, long) + +elif is_py3: + from urllib.parse import urlparse, urlunparse, urljoin, urlsplit, urlencode, quote, unquote, quote_plus, unquote_plus, urldefrag + from urllib.request import parse_http_list, getproxies, proxy_bypass, proxy_bypass_environment, getproxies_environment + from http import cookiejar as cookielib + from http.cookies import Morsel + from io import StringIO + from collections import OrderedDict + from collections.abc import Callable, Mapping, MutableMapping + + builtin_str = str + str = str + bytes = bytes + basestring = (str, bytes) + numeric_types = (int, float) + integer_types = (int,) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/cookies.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/cookies.py index 5b62de500f1e5cdade677f8e73bf15aeb4ba4414..56fccd9c2570d2a31365ed11278fd1b6ecc2aa54 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/cookies.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/cookies.py @@ -1,3 +1,549 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:63e6ca5fa4ef5b716762513a02ed125ed55559c68d745bee030431c3e1b48932 -size 18430 +# -*- coding: utf-8 -*- + +""" +requests.cookies +~~~~~~~~~~~~~~~~ + +Compatibility code to be able to use `cookielib.CookieJar` with requests. + +requests.utils imports from here, so be careful with imports. +""" + +import copy +import time +import calendar + +from ._internal_utils import to_native_string +from .compat import cookielib, urlparse, urlunparse, Morsel, MutableMapping + +try: + import threading +except ImportError: + import dummy_threading as threading + + +class MockRequest(object): + """Wraps a `requests.Request` to mimic a `urllib2.Request`. + + The code in `cookielib.CookieJar` expects this interface in order to correctly + manage cookie policies, i.e., determine whether a cookie can be set, given the + domains of the request and the cookie. + + The original request object is read-only. The client is responsible for collecting + the new headers via `get_new_headers()` and interpreting them appropriately. You + probably want `get_cookie_header`, defined below. + """ + + def __init__(self, request): + self._r = request + self._new_headers = {} + self.type = urlparse(self._r.url).scheme + + def get_type(self): + return self.type + + def get_host(self): + return urlparse(self._r.url).netloc + + def get_origin_req_host(self): + return self.get_host() + + def get_full_url(self): + # Only return the response's URL if the user hadn't set the Host + # header + if not self._r.headers.get('Host'): + return self._r.url + # If they did set it, retrieve it and reconstruct the expected domain + host = to_native_string(self._r.headers['Host'], encoding='utf-8') + parsed = urlparse(self._r.url) + # Reconstruct the URL as we expect it + return urlunparse([ + parsed.scheme, host, parsed.path, parsed.params, parsed.query, + parsed.fragment + ]) + + def is_unverifiable(self): + return True + + def has_header(self, name): + return name in self._r.headers or name in self._new_headers + + def get_header(self, name, default=None): + return self._r.headers.get(name, self._new_headers.get(name, default)) + + def add_header(self, key, val): + """cookielib has no legitimate use for this method; add it back if you find one.""" + raise NotImplementedError("Cookie headers should be added with add_unredirected_header()") + + def add_unredirected_header(self, name, value): + self._new_headers[name] = value + + def get_new_headers(self): + return self._new_headers + + @property + def unverifiable(self): + return self.is_unverifiable() + + @property + def origin_req_host(self): + return self.get_origin_req_host() + + @property + def host(self): + return self.get_host() + + +class MockResponse(object): + """Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`. + + ...what? Basically, expose the parsed HTTP headers from the server response + the way `cookielib` expects to see them. + """ + + def __init__(self, headers): + """Make a MockResponse for `cookielib` to read. + + :param headers: a httplib.HTTPMessage or analogous carrying the headers + """ + self._headers = headers + + def info(self): + return self._headers + + def getheaders(self, name): + self._headers.getheaders(name) + + +def extract_cookies_to_jar(jar, request, response): + """Extract the cookies from the response into a CookieJar. + + :param jar: cookielib.CookieJar (not necessarily a RequestsCookieJar) + :param request: our own requests.Request object + :param response: urllib3.HTTPResponse object + """ + if not (hasattr(response, '_original_response') and + response._original_response): + return + # the _original_response field is the wrapped httplib.HTTPResponse object, + req = MockRequest(request) + # pull out the HTTPMessage with the headers and put it in the mock: + res = MockResponse(response._original_response.msg) + jar.extract_cookies(res, req) + + +def get_cookie_header(jar, request): + """ + Produce an appropriate Cookie header string to be sent with `request`, or None. + + :rtype: str + """ + r = MockRequest(request) + jar.add_cookie_header(r) + return r.get_new_headers().get('Cookie') + + +def remove_cookie_by_name(cookiejar, name, domain=None, path=None): + """Unsets a cookie by name, by default over all domains and paths. + + Wraps CookieJar.clear(), is O(n). + """ + clearables = [] + for cookie in cookiejar: + if cookie.name != name: + continue + if domain is not None and domain != cookie.domain: + continue + if path is not None and path != cookie.path: + continue + clearables.append((cookie.domain, cookie.path, cookie.name)) + + for domain, path, name in clearables: + cookiejar.clear(domain, path, name) + + +class CookieConflictError(RuntimeError): + """There are two cookies that meet the criteria specified in the cookie jar. + Use .get and .set and include domain and path args in order to be more specific. + """ + + +class RequestsCookieJar(cookielib.CookieJar, MutableMapping): + """Compatibility class; is a cookielib.CookieJar, but exposes a dict + interface. + + This is the CookieJar we create by default for requests and sessions that + don't specify one, since some clients may expect response.cookies and + session.cookies to support dict operations. + + Requests does not use the dict interface internally; it's just for + compatibility with external client code. All requests code should work + out of the box with externally provided instances of ``CookieJar``, e.g. + ``LWPCookieJar`` and ``FileCookieJar``. + + Unlike a regular CookieJar, this class is pickleable. + + .. warning:: dictionary operations that are normally O(1) may be O(n). + """ + + def get(self, name, default=None, domain=None, path=None): + """Dict-like get() that also supports optional domain and path args in + order to resolve naming collisions from using one cookie jar over + multiple domains. + + .. warning:: operation is O(n), not O(1). + """ + try: + return self._find_no_duplicates(name, domain, path) + except KeyError: + return default + + def set(self, name, value, **kwargs): + """Dict-like set() that also supports optional domain and path args in + order to resolve naming collisions from using one cookie jar over + multiple domains. + """ + # support client code that unsets cookies by assignment of a None value: + if value is None: + remove_cookie_by_name(self, name, domain=kwargs.get('domain'), path=kwargs.get('path')) + return + + if isinstance(value, Morsel): + c = morsel_to_cookie(value) + else: + c = create_cookie(name, value, **kwargs) + self.set_cookie(c) + return c + + def iterkeys(self): + """Dict-like iterkeys() that returns an iterator of names of cookies + from the jar. + + .. seealso:: itervalues() and iteritems(). + """ + for cookie in iter(self): + yield cookie.name + + def keys(self): + """Dict-like keys() that returns a list of names of cookies from the + jar. + + .. seealso:: values() and items(). + """ + return list(self.iterkeys()) + + def itervalues(self): + """Dict-like itervalues() that returns an iterator of values of cookies + from the jar. + + .. seealso:: iterkeys() and iteritems(). + """ + for cookie in iter(self): + yield cookie.value + + def values(self): + """Dict-like values() that returns a list of values of cookies from the + jar. + + .. seealso:: keys() and items(). + """ + return list(self.itervalues()) + + def iteritems(self): + """Dict-like iteritems() that returns an iterator of name-value tuples + from the jar. + + .. seealso:: iterkeys() and itervalues(). + """ + for cookie in iter(self): + yield cookie.name, cookie.value + + def items(self): + """Dict-like items() that returns a list of name-value tuples from the + jar. Allows client-code to call ``dict(RequestsCookieJar)`` and get a + vanilla python dict of key value pairs. + + .. seealso:: keys() and values(). + """ + return list(self.iteritems()) + + def list_domains(self): + """Utility method to list all the domains in the jar.""" + domains = [] + for cookie in iter(self): + if cookie.domain not in domains: + domains.append(cookie.domain) + return domains + + def list_paths(self): + """Utility method to list all the paths in the jar.""" + paths = [] + for cookie in iter(self): + if cookie.path not in paths: + paths.append(cookie.path) + return paths + + def multiple_domains(self): + """Returns True if there are multiple domains in the jar. + Returns False otherwise. + + :rtype: bool + """ + domains = [] + for cookie in iter(self): + if cookie.domain is not None and cookie.domain in domains: + return True + domains.append(cookie.domain) + return False # there is only one domain in jar + + def get_dict(self, domain=None, path=None): + """Takes as an argument an optional domain and path and returns a plain + old Python dict of name-value pairs of cookies that meet the + requirements. + + :rtype: dict + """ + dictionary = {} + for cookie in iter(self): + if ( + (domain is None or cookie.domain == domain) and + (path is None or cookie.path == path) + ): + dictionary[cookie.name] = cookie.value + return dictionary + + def __contains__(self, name): + try: + return super(RequestsCookieJar, self).__contains__(name) + except CookieConflictError: + return True + + def __getitem__(self, name): + """Dict-like __getitem__() for compatibility with client code. Throws + exception if there are more than one cookie with name. In that case, + use the more explicit get() method instead. + + .. warning:: operation is O(n), not O(1). + """ + return self._find_no_duplicates(name) + + def __setitem__(self, name, value): + """Dict-like __setitem__ for compatibility with client code. Throws + exception if there is already a cookie of that name in the jar. In that + case, use the more explicit set() method instead. + """ + self.set(name, value) + + def __delitem__(self, name): + """Deletes a cookie given a name. Wraps ``cookielib.CookieJar``'s + ``remove_cookie_by_name()``. + """ + remove_cookie_by_name(self, name) + + def set_cookie(self, cookie, *args, **kwargs): + if hasattr(cookie.value, 'startswith') and cookie.value.startswith('"') and cookie.value.endswith('"'): + cookie.value = cookie.value.replace('\\"', '') + return super(RequestsCookieJar, self).set_cookie(cookie, *args, **kwargs) + + def update(self, other): + """Updates this jar with cookies from another CookieJar or dict-like""" + if isinstance(other, cookielib.CookieJar): + for cookie in other: + self.set_cookie(copy.copy(cookie)) + else: + super(RequestsCookieJar, self).update(other) + + def _find(self, name, domain=None, path=None): + """Requests uses this method internally to get cookie values. + + If there are conflicting cookies, _find arbitrarily chooses one. + See _find_no_duplicates if you want an exception thrown if there are + conflicting cookies. + + :param name: a string containing name of cookie + :param domain: (optional) string containing domain of cookie + :param path: (optional) string containing path of cookie + :return: cookie.value + """ + for cookie in iter(self): + if cookie.name == name: + if domain is None or cookie.domain == domain: + if path is None or cookie.path == path: + return cookie.value + + raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path)) + + def _find_no_duplicates(self, name, domain=None, path=None): + """Both ``__get_item__`` and ``get`` call this function: it's never + used elsewhere in Requests. + + :param name: a string containing name of cookie + :param domain: (optional) string containing domain of cookie + :param path: (optional) string containing path of cookie + :raises KeyError: if cookie is not found + :raises CookieConflictError: if there are multiple cookies + that match name and optionally domain and path + :return: cookie.value + """ + toReturn = None + for cookie in iter(self): + if cookie.name == name: + if domain is None or cookie.domain == domain: + if path is None or cookie.path == path: + if toReturn is not None: # if there are multiple cookies that meet passed in criteria + raise CookieConflictError('There are multiple cookies with name, %r' % (name)) + toReturn = cookie.value # we will eventually return this as long as no cookie conflict + + if toReturn: + return toReturn + raise KeyError('name=%r, domain=%r, path=%r' % (name, domain, path)) + + def __getstate__(self): + """Unlike a normal CookieJar, this class is pickleable.""" + state = self.__dict__.copy() + # remove the unpickleable RLock object + state.pop('_cookies_lock') + return state + + def __setstate__(self, state): + """Unlike a normal CookieJar, this class is pickleable.""" + self.__dict__.update(state) + if '_cookies_lock' not in self.__dict__: + self._cookies_lock = threading.RLock() + + def copy(self): + """Return a copy of this RequestsCookieJar.""" + new_cj = RequestsCookieJar() + new_cj.set_policy(self.get_policy()) + new_cj.update(self) + return new_cj + + def get_policy(self): + """Return the CookiePolicy instance used.""" + return self._policy + + +def _copy_cookie_jar(jar): + if jar is None: + return None + + if hasattr(jar, 'copy'): + # We're dealing with an instance of RequestsCookieJar + return jar.copy() + # We're dealing with a generic CookieJar instance + new_jar = copy.copy(jar) + new_jar.clear() + for cookie in jar: + new_jar.set_cookie(copy.copy(cookie)) + return new_jar + + +def create_cookie(name, value, **kwargs): + """Make a cookie from underspecified parameters. + + By default, the pair of `name` and `value` will be set for the domain '' + and sent on every request (this is sometimes called a "supercookie"). + """ + result = { + 'version': 0, + 'name': name, + 'value': value, + 'port': None, + 'domain': '', + 'path': '/', + 'secure': False, + 'expires': None, + 'discard': True, + 'comment': None, + 'comment_url': None, + 'rest': {'HttpOnly': None}, + 'rfc2109': False, + } + + badargs = set(kwargs) - set(result) + if badargs: + err = 'create_cookie() got unexpected keyword arguments: %s' + raise TypeError(err % list(badargs)) + + result.update(kwargs) + result['port_specified'] = bool(result['port']) + result['domain_specified'] = bool(result['domain']) + result['domain_initial_dot'] = result['domain'].startswith('.') + result['path_specified'] = bool(result['path']) + + return cookielib.Cookie(**result) + + +def morsel_to_cookie(morsel): + """Convert a Morsel object into a Cookie containing the one k/v pair.""" + + expires = None + if morsel['max-age']: + try: + expires = int(time.time() + int(morsel['max-age'])) + except ValueError: + raise TypeError('max-age: %s must be integer' % morsel['max-age']) + elif morsel['expires']: + time_template = '%a, %d-%b-%Y %H:%M:%S GMT' + expires = calendar.timegm( + time.strptime(morsel['expires'], time_template) + ) + return create_cookie( + comment=morsel['comment'], + comment_url=bool(morsel['comment']), + discard=False, + domain=morsel['domain'], + expires=expires, + name=morsel.key, + path=morsel['path'], + port=None, + rest={'HttpOnly': morsel['httponly']}, + rfc2109=False, + secure=bool(morsel['secure']), + value=morsel.value, + version=morsel['version'] or 0, + ) + + +def cookiejar_from_dict(cookie_dict, cookiejar=None, overwrite=True): + """Returns a CookieJar from a key/value dictionary. + + :param cookie_dict: Dict of key/values to insert into CookieJar. + :param cookiejar: (optional) A cookiejar to add the cookies to. + :param overwrite: (optional) If False, will not replace cookies + already in the jar with new ones. + :rtype: CookieJar + """ + if cookiejar is None: + cookiejar = RequestsCookieJar() + + if cookie_dict is not None: + names_from_jar = [cookie.name for cookie in cookiejar] + for name in cookie_dict: + if overwrite or (name not in names_from_jar): + cookiejar.set_cookie(create_cookie(name, cookie_dict[name])) + + return cookiejar + + +def merge_cookies(cookiejar, cookies): + """Add cookies to cookiejar and returns a merged CookieJar. + + :param cookiejar: CookieJar object to add the cookies to. + :param cookies: Dictionary or CookieJar object to be added. + :rtype: CookieJar + """ + if not isinstance(cookiejar, cookielib.CookieJar): + raise ValueError('You can only merge into CookieJar') + + if isinstance(cookies, dict): + cookiejar = cookiejar_from_dict( + cookies, cookiejar=cookiejar, overwrite=False) + elif isinstance(cookies, cookielib.CookieJar): + try: + cookiejar.update(cookies) + except AttributeError: + for cookie_in_jar in cookies: + cookiejar.set_cookie(cookie_in_jar) + + return cookiejar diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/exceptions.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/exceptions.py index 612b352289db38663dc837d1f0a7cf5796afa7d1..a80cad80f14411ddf0ba86070d1a65c78dbf7878 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/exceptions.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/exceptions.py @@ -1,3 +1,126 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:43c61e596c621c75e1904ca72e93200bfebfaff653630d9a213b3dc0248064d6 -size 3185 +# -*- coding: utf-8 -*- + +""" +requests.exceptions +~~~~~~~~~~~~~~~~~~~ + +This module contains the set of Requests' exceptions. +""" +from urllib3.exceptions import HTTPError as BaseHTTPError + + +class RequestException(IOError): + """There was an ambiguous exception that occurred while handling your + request. + """ + + def __init__(self, *args, **kwargs): + """Initialize RequestException with `request` and `response` objects.""" + response = kwargs.pop('response', None) + self.response = response + self.request = kwargs.pop('request', None) + if (response is not None and not self.request and + hasattr(response, 'request')): + self.request = self.response.request + super(RequestException, self).__init__(*args, **kwargs) + + +class HTTPError(RequestException): + """An HTTP error occurred.""" + + +class ConnectionError(RequestException): + """A Connection error occurred.""" + + +class ProxyError(ConnectionError): + """A proxy error occurred.""" + + +class SSLError(ConnectionError): + """An SSL error occurred.""" + + +class Timeout(RequestException): + """The request timed out. + + Catching this error will catch both + :exc:`~requests.exceptions.ConnectTimeout` and + :exc:`~requests.exceptions.ReadTimeout` errors. + """ + + +class ConnectTimeout(ConnectionError, Timeout): + """The request timed out while trying to connect to the remote server. + + Requests that produced this error are safe to retry. + """ + + +class ReadTimeout(Timeout): + """The server did not send any data in the allotted amount of time.""" + + +class URLRequired(RequestException): + """A valid URL is required to make a request.""" + + +class TooManyRedirects(RequestException): + """Too many redirects.""" + + +class MissingSchema(RequestException, ValueError): + """The URL schema (e.g. http or https) is missing.""" + + +class InvalidSchema(RequestException, ValueError): + """See defaults.py for valid schemas.""" + + +class InvalidURL(RequestException, ValueError): + """The URL provided was somehow invalid.""" + + +class InvalidHeader(RequestException, ValueError): + """The header value provided was somehow invalid.""" + + +class InvalidProxyURL(InvalidURL): + """The proxy URL provided is invalid.""" + + +class ChunkedEncodingError(RequestException): + """The server declared chunked encoding but sent an invalid chunk.""" + + +class ContentDecodingError(RequestException, BaseHTTPError): + """Failed to decode response content""" + + +class StreamConsumedError(RequestException, TypeError): + """The content for this response was already consumed""" + + +class RetryError(RequestException): + """Custom retries logic failed""" + + +class UnrewindableBodyError(RequestException): + """Requests encountered an error when trying to rewind a body""" + +# Warnings + + +class RequestsWarning(Warning): + """Base warning for Requests.""" + pass + + +class FileModeWarning(RequestsWarning, DeprecationWarning): + """A file was opened in text mode, but Requests determined its binary length.""" + pass + + +class RequestsDependencyWarning(RequestsWarning): + """An imported dependency doesn't match the expected version range.""" + pass diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/help.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/help.py index 13f74f9b79a1a7e411a94aa9ad57f9c3a0f65b41..e53d35ef6dec122aa4aba941b9c555997a35d143 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/help.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/help.py @@ -1,3 +1,119 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94b701b4a01aafc4fa4fbf1ef5373865f77f104245867b718226f524735cb442 -size 3515 +"""Module containing bug report helper(s).""" +from __future__ import print_function + +import json +import platform +import sys +import ssl + +import idna +import urllib3 +import chardet + +from . import __version__ as requests_version + +try: + from urllib3.contrib import pyopenssl +except ImportError: + pyopenssl = None + OpenSSL = None + cryptography = None +else: + import OpenSSL + import cryptography + + +def _implementation(): + """Return a dict with the Python implementation and version. + + Provide both the name and the version of the Python implementation + currently running. For example, on CPython 2.7.5 it will return + {'name': 'CPython', 'version': '2.7.5'}. + + This function works best on CPython and PyPy: in particular, it probably + doesn't work for Jython or IronPython. Future investigation should be done + to work out the correct shape of the code for those platforms. + """ + implementation = platform.python_implementation() + + if implementation == 'CPython': + implementation_version = platform.python_version() + elif implementation == 'PyPy': + implementation_version = '%s.%s.%s' % (sys.pypy_version_info.major, + sys.pypy_version_info.minor, + sys.pypy_version_info.micro) + if sys.pypy_version_info.releaselevel != 'final': + implementation_version = ''.join([ + implementation_version, sys.pypy_version_info.releaselevel + ]) + elif implementation == 'Jython': + implementation_version = platform.python_version() # Complete Guess + elif implementation == 'IronPython': + implementation_version = platform.python_version() # Complete Guess + else: + implementation_version = 'Unknown' + + return {'name': implementation, 'version': implementation_version} + + +def info(): + """Generate information for a bug report.""" + try: + platform_info = { + 'system': platform.system(), + 'release': platform.release(), + } + except IOError: + platform_info = { + 'system': 'Unknown', + 'release': 'Unknown', + } + + implementation_info = _implementation() + urllib3_info = {'version': urllib3.__version__} + chardet_info = {'version': chardet.__version__} + + pyopenssl_info = { + 'version': None, + 'openssl_version': '', + } + if OpenSSL: + pyopenssl_info = { + 'version': OpenSSL.__version__, + 'openssl_version': '%x' % OpenSSL.SSL.OPENSSL_VERSION_NUMBER, + } + cryptography_info = { + 'version': getattr(cryptography, '__version__', ''), + } + idna_info = { + 'version': getattr(idna, '__version__', ''), + } + + system_ssl = ssl.OPENSSL_VERSION_NUMBER + system_ssl_info = { + 'version': '%x' % system_ssl if system_ssl is not None else '' + } + + return { + 'platform': platform_info, + 'implementation': implementation_info, + 'system_ssl': system_ssl_info, + 'using_pyopenssl': pyopenssl is not None, + 'pyOpenSSL': pyopenssl_info, + 'urllib3': urllib3_info, + 'chardet': chardet_info, + 'cryptography': cryptography_info, + 'idna': idna_info, + 'requests': { + 'version': requests_version, + }, + } + + +def main(): + """Pretty-print the bug information as JSON.""" + print(json.dumps(info(), sort_keys=True, indent=2)) + + +if __name__ == '__main__': + main() diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/hooks.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/hooks.py index 8f4df37bc7707ac06c1d5964cba2163054148959..7a51f212c8a08fc6a04e509e89d8dcc85185df77 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/hooks.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/hooks.py @@ -1,3 +1,34 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:411786cb2d1b45caf9ae4c02b8e6cd6a46d8b1cec492229e0701b8a877a4af64 -size 757 +# -*- coding: utf-8 -*- + +""" +requests.hooks +~~~~~~~~~~~~~~ + +This module provides the capabilities for the Requests hooks system. + +Available hooks: + +``response``: + The response generated from a Request. +""" +HOOKS = ['response'] + + +def default_hooks(): + return {event: [] for event in HOOKS} + +# TODO: response is the only one + + +def dispatch_hook(key, hooks, hook_data, **kwargs): + """Dispatches a hook dictionary on a given piece of data.""" + hooks = hooks or {} + hooks = hooks.get(key) + if hooks: + if hasattr(hooks, '__call__'): + hooks = [hooks] + for hook in hooks: + _hook_data = hook(hook_data, **kwargs) + if _hook_data is not None: + hook_data = _hook_data + return hook_data diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/models.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/models.py index 9f81da4eeb722eb4574999534db519df1adf47a5..62dcd0b7c8c64399ad0d317fcfa926e40388d968 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/models.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/models.py @@ -1,3 +1,953 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6dc7baa0e451dba498f9d54f6aa329741ba70f5cd7ceb80c4a51fa8e17efb910 -size 34210 +# -*- coding: utf-8 -*- + +""" +requests.models +~~~~~~~~~~~~~~~ + +This module contains the primary objects that power Requests. +""" + +import datetime +import sys + +# Import encoding now, to avoid implicit import later. +# Implicit import within threads may cause LookupError when standard library is in a ZIP, +# such as in Embedded Python. See https://github.com/requests/requests/issues/3578. +import encodings.idna + +from urllib3.fields import RequestField +from urllib3.filepost import encode_multipart_formdata +from urllib3.util import parse_url +from urllib3.exceptions import ( + DecodeError, ReadTimeoutError, ProtocolError, LocationParseError) + +from io import UnsupportedOperation +from .hooks import default_hooks +from .structures import CaseInsensitiveDict + +from .auth import HTTPBasicAuth +from .cookies import cookiejar_from_dict, get_cookie_header, _copy_cookie_jar +from .exceptions import ( + HTTPError, MissingSchema, InvalidURL, ChunkedEncodingError, + ContentDecodingError, ConnectionError, StreamConsumedError) +from ._internal_utils import to_native_string, unicode_is_ascii +from .utils import ( + guess_filename, get_auth_from_url, requote_uri, + stream_decode_response_unicode, to_key_val_list, parse_header_links, + iter_slices, guess_json_utf, super_len, check_header_validity) +from .compat import ( + Callable, Mapping, + cookielib, urlunparse, urlsplit, urlencode, str, bytes, + is_py2, chardet, builtin_str, basestring) +from .compat import json as complexjson +from .status_codes import codes + +#: The set of HTTP status codes that indicate an automatically +#: processable redirect. +REDIRECT_STATI = ( + codes.moved, # 301 + codes.found, # 302 + codes.other, # 303 + codes.temporary_redirect, # 307 + codes.permanent_redirect, # 308 +) + +DEFAULT_REDIRECT_LIMIT = 30 +CONTENT_CHUNK_SIZE = 10 * 1024 +ITER_CHUNK_SIZE = 512 + + +class RequestEncodingMixin(object): + @property + def path_url(self): + """Build the path URL to use.""" + + url = [] + + p = urlsplit(self.url) + + path = p.path + if not path: + path = '/' + + url.append(path) + + query = p.query + if query: + url.append('?') + url.append(query) + + return ''.join(url) + + @staticmethod + def _encode_params(data): + """Encode parameters in a piece of data. + + Will successfully encode parameters when passed as a dict or a list of + 2-tuples. Order is retained if data is a list of 2-tuples but arbitrary + if parameters are supplied as a dict. + """ + + if isinstance(data, (str, bytes)): + return data + elif hasattr(data, 'read'): + return data + elif hasattr(data, '__iter__'): + result = [] + for k, vs in to_key_val_list(data): + if isinstance(vs, basestring) or not hasattr(vs, '__iter__'): + vs = [vs] + for v in vs: + if v is not None: + result.append( + (k.encode('utf-8') if isinstance(k, str) else k, + v.encode('utf-8') if isinstance(v, str) else v)) + return urlencode(result, doseq=True) + else: + return data + + @staticmethod + def _encode_files(files, data): + """Build the body for a multipart/form-data request. + + Will successfully encode files when passed as a dict or a list of + tuples. Order is retained if data is a list of tuples but arbitrary + if parameters are supplied as a dict. + The tuples may be 2-tuples (filename, fileobj), 3-tuples (filename, fileobj, contentype) + or 4-tuples (filename, fileobj, contentype, custom_headers). + """ + if (not files): + raise ValueError("Files must be provided.") + elif isinstance(data, basestring): + raise ValueError("Data must not be a string.") + + new_fields = [] + fields = to_key_val_list(data or {}) + files = to_key_val_list(files or {}) + + for field, val in fields: + if isinstance(val, basestring) or not hasattr(val, '__iter__'): + val = [val] + for v in val: + if v is not None: + # Don't call str() on bytestrings: in Py3 it all goes wrong. + if not isinstance(v, bytes): + v = str(v) + + new_fields.append( + (field.decode('utf-8') if isinstance(field, bytes) else field, + v.encode('utf-8') if isinstance(v, str) else v)) + + for (k, v) in files: + # support for explicit filename + ft = None + fh = None + if isinstance(v, (tuple, list)): + if len(v) == 2: + fn, fp = v + elif len(v) == 3: + fn, fp, ft = v + else: + fn, fp, ft, fh = v + else: + fn = guess_filename(v) or k + fp = v + + if isinstance(fp, (str, bytes, bytearray)): + fdata = fp + elif hasattr(fp, 'read'): + fdata = fp.read() + elif fp is None: + continue + else: + fdata = fp + + rf = RequestField(name=k, data=fdata, filename=fn, headers=fh) + rf.make_multipart(content_type=ft) + new_fields.append(rf) + + body, content_type = encode_multipart_formdata(new_fields) + + return body, content_type + + +class RequestHooksMixin(object): + def register_hook(self, event, hook): + """Properly register a hook.""" + + if event not in self.hooks: + raise ValueError('Unsupported event specified, with event name "%s"' % (event)) + + if isinstance(hook, Callable): + self.hooks[event].append(hook) + elif hasattr(hook, '__iter__'): + self.hooks[event].extend(h for h in hook if isinstance(h, Callable)) + + def deregister_hook(self, event, hook): + """Deregister a previously registered hook. + Returns True if the hook existed, False if not. + """ + + try: + self.hooks[event].remove(hook) + return True + except ValueError: + return False + + +class Request(RequestHooksMixin): + """A user-created :class:`Request ` object. + + Used to prepare a :class:`PreparedRequest `, which is sent to the server. + + :param method: HTTP method to use. + :param url: URL to send. + :param headers: dictionary of headers to send. + :param files: dictionary of {filename: fileobject} files to multipart upload. + :param data: the body to attach to the request. If a dictionary or + list of tuples ``[(key, value)]`` is provided, form-encoding will + take place. + :param json: json for the body to attach to the request (if files or data is not specified). + :param params: URL parameters to append to the URL. If a dictionary or + list of tuples ``[(key, value)]`` is provided, form-encoding will + take place. + :param auth: Auth handler or (user, pass) tuple. + :param cookies: dictionary or CookieJar of cookies to attach to this request. + :param hooks: dictionary of callback hooks, for internal usage. + + Usage:: + + >>> import requests + >>> req = requests.Request('GET', 'https://httpbin.org/get') + >>> req.prepare() + + """ + + def __init__(self, + method=None, url=None, headers=None, files=None, data=None, + params=None, auth=None, cookies=None, hooks=None, json=None): + + # Default empty dicts for dict params. + data = [] if data is None else data + files = [] if files is None else files + headers = {} if headers is None else headers + params = {} if params is None else params + hooks = {} if hooks is None else hooks + + self.hooks = default_hooks() + for (k, v) in list(hooks.items()): + self.register_hook(event=k, hook=v) + + self.method = method + self.url = url + self.headers = headers + self.files = files + self.data = data + self.json = json + self.params = params + self.auth = auth + self.cookies = cookies + + def __repr__(self): + return '' % (self.method) + + def prepare(self): + """Constructs a :class:`PreparedRequest ` for transmission and returns it.""" + p = PreparedRequest() + p.prepare( + method=self.method, + url=self.url, + headers=self.headers, + files=self.files, + data=self.data, + json=self.json, + params=self.params, + auth=self.auth, + cookies=self.cookies, + hooks=self.hooks, + ) + return p + + +class PreparedRequest(RequestEncodingMixin, RequestHooksMixin): + """The fully mutable :class:`PreparedRequest ` object, + containing the exact bytes that will be sent to the server. + + Generated from either a :class:`Request ` object or manually. + + Usage:: + + >>> import requests + >>> req = requests.Request('GET', 'https://httpbin.org/get') + >>> r = req.prepare() + + + >>> s = requests.Session() + >>> s.send(r) + + """ + + def __init__(self): + #: HTTP verb to send to the server. + self.method = None + #: HTTP URL to send the request to. + self.url = None + #: dictionary of HTTP headers. + self.headers = None + # The `CookieJar` used to create the Cookie header will be stored here + # after prepare_cookies is called + self._cookies = None + #: request body to send to the server. + self.body = None + #: dictionary of callback hooks, for internal usage. + self.hooks = default_hooks() + #: integer denoting starting position of a readable file-like body. + self._body_position = None + + def prepare(self, + method=None, url=None, headers=None, files=None, data=None, + params=None, auth=None, cookies=None, hooks=None, json=None): + """Prepares the entire request with the given parameters.""" + + self.prepare_method(method) + self.prepare_url(url, params) + self.prepare_headers(headers) + self.prepare_cookies(cookies) + self.prepare_body(data, files, json) + self.prepare_auth(auth, url) + + # Note that prepare_auth must be last to enable authentication schemes + # such as OAuth to work on a fully prepared request. + + # This MUST go after prepare_auth. Authenticators could add a hook + self.prepare_hooks(hooks) + + def __repr__(self): + return '' % (self.method) + + def copy(self): + p = PreparedRequest() + p.method = self.method + p.url = self.url + p.headers = self.headers.copy() if self.headers is not None else None + p._cookies = _copy_cookie_jar(self._cookies) + p.body = self.body + p.hooks = self.hooks + p._body_position = self._body_position + return p + + def prepare_method(self, method): + """Prepares the given HTTP method.""" + self.method = method + if self.method is not None: + self.method = to_native_string(self.method.upper()) + + @staticmethod + def _get_idna_encoded_host(host): + import idna + + try: + host = idna.encode(host, uts46=True).decode('utf-8') + except idna.IDNAError: + raise UnicodeError + return host + + def prepare_url(self, url, params): + """Prepares the given HTTP URL.""" + #: Accept objects that have string representations. + #: We're unable to blindly call unicode/str functions + #: as this will include the bytestring indicator (b'') + #: on python 3.x. + #: https://github.com/requests/requests/pull/2238 + if isinstance(url, bytes): + url = url.decode('utf8') + else: + url = unicode(url) if is_py2 else str(url) + + # Remove leading whitespaces from url + url = url.lstrip() + + # Don't do any URL preparation for non-HTTP schemes like `mailto`, + # `data` etc to work around exceptions from `url_parse`, which + # handles RFC 3986 only. + if ':' in url and not url.lower().startswith('http'): + self.url = url + return + + # Support for unicode domain names and paths. + try: + scheme, auth, host, port, path, query, fragment = parse_url(url) + except LocationParseError as e: + raise InvalidURL(*e.args) + + if not scheme: + error = ("Invalid URL {0!r}: No schema supplied. Perhaps you meant http://{0}?") + error = error.format(to_native_string(url, 'utf8')) + + raise MissingSchema(error) + + if not host: + raise InvalidURL("Invalid URL %r: No host supplied" % url) + + # In general, we want to try IDNA encoding the hostname if the string contains + # non-ASCII characters. This allows users to automatically get the correct IDNA + # behaviour. For strings containing only ASCII characters, we need to also verify + # it doesn't start with a wildcard (*), before allowing the unencoded hostname. + if not unicode_is_ascii(host): + try: + host = self._get_idna_encoded_host(host) + except UnicodeError: + raise InvalidURL('URL has an invalid label.') + elif host.startswith(u'*'): + raise InvalidURL('URL has an invalid label.') + + # Carefully reconstruct the network location + netloc = auth or '' + if netloc: + netloc += '@' + netloc += host + if port: + netloc += ':' + str(port) + + # Bare domains aren't valid URLs. + if not path: + path = '/' + + if is_py2: + if isinstance(scheme, str): + scheme = scheme.encode('utf-8') + if isinstance(netloc, str): + netloc = netloc.encode('utf-8') + if isinstance(path, str): + path = path.encode('utf-8') + if isinstance(query, str): + query = query.encode('utf-8') + if isinstance(fragment, str): + fragment = fragment.encode('utf-8') + + if isinstance(params, (str, bytes)): + params = to_native_string(params) + + enc_params = self._encode_params(params) + if enc_params: + if query: + query = '%s&%s' % (query, enc_params) + else: + query = enc_params + + url = requote_uri(urlunparse([scheme, netloc, path, None, query, fragment])) + self.url = url + + def prepare_headers(self, headers): + """Prepares the given HTTP headers.""" + + self.headers = CaseInsensitiveDict() + if headers: + for header in headers.items(): + # Raise exception on invalid header value. + check_header_validity(header) + name, value = header + self.headers[to_native_string(name)] = value + + def prepare_body(self, data, files, json=None): + """Prepares the given HTTP body data.""" + + # Check if file, fo, generator, iterator. + # If not, run through normal process. + + # Nottin' on you. + body = None + content_type = None + + if not data and json is not None: + # urllib3 requires a bytes-like body. Python 2's json.dumps + # provides this natively, but Python 3 gives a Unicode string. + content_type = 'application/json' + body = complexjson.dumps(json) + if not isinstance(body, bytes): + body = body.encode('utf-8') + + is_stream = all([ + hasattr(data, '__iter__'), + not isinstance(data, (basestring, list, tuple, Mapping)) + ]) + + try: + length = super_len(data) + except (TypeError, AttributeError, UnsupportedOperation): + length = None + + if is_stream: + body = data + + if getattr(body, 'tell', None) is not None: + # Record the current file position before reading. + # This will allow us to rewind a file in the event + # of a redirect. + try: + self._body_position = body.tell() + except (IOError, OSError): + # This differentiates from None, allowing us to catch + # a failed `tell()` later when trying to rewind the body + self._body_position = object() + + if files: + raise NotImplementedError('Streamed bodies and files are mutually exclusive.') + + if length: + self.headers['Content-Length'] = builtin_str(length) + else: + self.headers['Transfer-Encoding'] = 'chunked' + else: + # Multi-part file uploads. + if files: + (body, content_type) = self._encode_files(files, data) + else: + if data: + body = self._encode_params(data) + if isinstance(data, basestring) or hasattr(data, 'read'): + content_type = None + else: + content_type = 'application/x-www-form-urlencoded' + + self.prepare_content_length(body) + + # Add content-type if it wasn't explicitly provided. + if content_type and ('content-type' not in self.headers): + self.headers['Content-Type'] = content_type + + self.body = body + + def prepare_content_length(self, body): + """Prepare Content-Length header based on request method and body""" + if body is not None: + length = super_len(body) + if length: + # If length exists, set it. Otherwise, we fallback + # to Transfer-Encoding: chunked. + self.headers['Content-Length'] = builtin_str(length) + elif self.method not in ('GET', 'HEAD') and self.headers.get('Content-Length') is None: + # Set Content-Length to 0 for methods that can have a body + # but don't provide one. (i.e. not GET or HEAD) + self.headers['Content-Length'] = '0' + + def prepare_auth(self, auth, url=''): + """Prepares the given HTTP auth data.""" + + # If no Auth is explicitly provided, extract it from the URL first. + if auth is None: + url_auth = get_auth_from_url(self.url) + auth = url_auth if any(url_auth) else None + + if auth: + if isinstance(auth, tuple) and len(auth) == 2: + # special-case basic HTTP auth + auth = HTTPBasicAuth(*auth) + + # Allow auth to make its changes. + r = auth(self) + + # Update self to reflect the auth changes. + self.__dict__.update(r.__dict__) + + # Recompute Content-Length + self.prepare_content_length(self.body) + + def prepare_cookies(self, cookies): + """Prepares the given HTTP cookie data. + + This function eventually generates a ``Cookie`` header from the + given cookies using cookielib. Due to cookielib's design, the header + will not be regenerated if it already exists, meaning this function + can only be called once for the life of the + :class:`PreparedRequest ` object. Any subsequent calls + to ``prepare_cookies`` will have no actual effect, unless the "Cookie" + header is removed beforehand. + """ + if isinstance(cookies, cookielib.CookieJar): + self._cookies = cookies + else: + self._cookies = cookiejar_from_dict(cookies) + + cookie_header = get_cookie_header(self._cookies, self) + if cookie_header is not None: + self.headers['Cookie'] = cookie_header + + def prepare_hooks(self, hooks): + """Prepares the given hooks.""" + # hooks can be passed as None to the prepare method and to this + # method. To prevent iterating over None, simply use an empty list + # if hooks is False-y + hooks = hooks or [] + for event in hooks: + self.register_hook(event, hooks[event]) + + +class Response(object): + """The :class:`Response ` object, which contains a + server's response to an HTTP request. + """ + + __attrs__ = [ + '_content', 'status_code', 'headers', 'url', 'history', + 'encoding', 'reason', 'cookies', 'elapsed', 'request' + ] + + def __init__(self): + self._content = False + self._content_consumed = False + self._next = None + + #: Integer Code of responded HTTP Status, e.g. 404 or 200. + self.status_code = None + + #: Case-insensitive Dictionary of Response Headers. + #: For example, ``headers['content-encoding']`` will return the + #: value of a ``'Content-Encoding'`` response header. + self.headers = CaseInsensitiveDict() + + #: File-like object representation of response (for advanced usage). + #: Use of ``raw`` requires that ``stream=True`` be set on the request. + # This requirement does not apply for use internally to Requests. + self.raw = None + + #: Final URL location of Response. + self.url = None + + #: Encoding to decode with when accessing r.text. + self.encoding = None + + #: A list of :class:`Response ` objects from + #: the history of the Request. Any redirect responses will end + #: up here. The list is sorted from the oldest to the most recent request. + self.history = [] + + #: Textual reason of responded HTTP Status, e.g. "Not Found" or "OK". + self.reason = None + + #: A CookieJar of Cookies the server sent back. + self.cookies = cookiejar_from_dict({}) + + #: The amount of time elapsed between sending the request + #: and the arrival of the response (as a timedelta). + #: This property specifically measures the time taken between sending + #: the first byte of the request and finishing parsing the headers. It + #: is therefore unaffected by consuming the response content or the + #: value of the ``stream`` keyword argument. + self.elapsed = datetime.timedelta(0) + + #: The :class:`PreparedRequest ` object to which this + #: is a response. + self.request = None + + def __enter__(self): + return self + + def __exit__(self, *args): + self.close() + + def __getstate__(self): + # Consume everything; accessing the content attribute makes + # sure the content has been fully read. + if not self._content_consumed: + self.content + + return {attr: getattr(self, attr, None) for attr in self.__attrs__} + + def __setstate__(self, state): + for name, value in state.items(): + setattr(self, name, value) + + # pickled objects do not have .raw + setattr(self, '_content_consumed', True) + setattr(self, 'raw', None) + + def __repr__(self): + return '' % (self.status_code) + + def __bool__(self): + """Returns True if :attr:`status_code` is less than 400. + + This attribute checks if the status code of the response is between + 400 and 600 to see if there was a client error or a server error. If + the status code, is between 200 and 400, this will return True. This + is **not** a check to see if the response code is ``200 OK``. + """ + return self.ok + + def __nonzero__(self): + """Returns True if :attr:`status_code` is less than 400. + + This attribute checks if the status code of the response is between + 400 and 600 to see if there was a client error or a server error. If + the status code, is between 200 and 400, this will return True. This + is **not** a check to see if the response code is ``200 OK``. + """ + return self.ok + + def __iter__(self): + """Allows you to use a response as an iterator.""" + return self.iter_content(128) + + @property + def ok(self): + """Returns True if :attr:`status_code` is less than 400, False if not. + + This attribute checks if the status code of the response is between + 400 and 600 to see if there was a client error or a server error. If + the status code is between 200 and 400, this will return True. This + is **not** a check to see if the response code is ``200 OK``. + """ + try: + self.raise_for_status() + except HTTPError: + return False + return True + + @property + def is_redirect(self): + """True if this Response is a well-formed HTTP redirect that could have + been processed automatically (by :meth:`Session.resolve_redirects`). + """ + return ('location' in self.headers and self.status_code in REDIRECT_STATI) + + @property + def is_permanent_redirect(self): + """True if this Response one of the permanent versions of redirect.""" + return ('location' in self.headers and self.status_code in (codes.moved_permanently, codes.permanent_redirect)) + + @property + def next(self): + """Returns a PreparedRequest for the next request in a redirect chain, if there is one.""" + return self._next + + @property + def apparent_encoding(self): + """The apparent encoding, provided by the chardet library.""" + return chardet.detect(self.content)['encoding'] + + def iter_content(self, chunk_size=1, decode_unicode=False): + """Iterates over the response data. When stream=True is set on the + request, this avoids reading the content at once into memory for + large responses. The chunk size is the number of bytes it should + read into memory. This is not necessarily the length of each item + returned as decoding can take place. + + chunk_size must be of type int or None. A value of None will + function differently depending on the value of `stream`. + stream=True will read data as it arrives in whatever size the + chunks are received. If stream=False, data is returned as + a single chunk. + + If decode_unicode is True, content will be decoded using the best + available encoding based on the response. + """ + + def generate(): + # Special case for urllib3. + if hasattr(self.raw, 'stream'): + try: + for chunk in self.raw.stream(chunk_size, decode_content=True): + yield chunk + except ProtocolError as e: + raise ChunkedEncodingError(e) + except DecodeError as e: + raise ContentDecodingError(e) + except ReadTimeoutError as e: + raise ConnectionError(e) + else: + # Standard file-like object. + while True: + chunk = self.raw.read(chunk_size) + if not chunk: + break + yield chunk + + self._content_consumed = True + + if self._content_consumed and isinstance(self._content, bool): + raise StreamConsumedError() + elif chunk_size is not None and not isinstance(chunk_size, int): + raise TypeError("chunk_size must be an int, it is instead a %s." % type(chunk_size)) + # simulate reading small chunks of the content + reused_chunks = iter_slices(self._content, chunk_size) + + stream_chunks = generate() + + chunks = reused_chunks if self._content_consumed else stream_chunks + + if decode_unicode: + chunks = stream_decode_response_unicode(chunks, self) + + return chunks + + def iter_lines(self, chunk_size=ITER_CHUNK_SIZE, decode_unicode=False, delimiter=None): + """Iterates over the response data, one line at a time. When + stream=True is set on the request, this avoids reading the + content at once into memory for large responses. + + .. note:: This method is not reentrant safe. + """ + + pending = None + + for chunk in self.iter_content(chunk_size=chunk_size, decode_unicode=decode_unicode): + + if pending is not None: + chunk = pending + chunk + + if delimiter: + lines = chunk.split(delimiter) + else: + lines = chunk.splitlines() + + if lines and lines[-1] and chunk and lines[-1][-1] == chunk[-1]: + pending = lines.pop() + else: + pending = None + + for line in lines: + yield line + + if pending is not None: + yield pending + + @property + def content(self): + """Content of the response, in bytes.""" + + if self._content is False: + # Read the contents. + if self._content_consumed: + raise RuntimeError( + 'The content for this response was already consumed') + + if self.status_code == 0 or self.raw is None: + self._content = None + else: + self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b'' + + self._content_consumed = True + # don't need to release the connection; that's been handled by urllib3 + # since we exhausted the data. + return self._content + + @property + def text(self): + """Content of the response, in unicode. + + If Response.encoding is None, encoding will be guessed using + ``chardet``. + + The encoding of the response content is determined based solely on HTTP + headers, following RFC 2616 to the letter. If you can take advantage of + non-HTTP knowledge to make a better guess at the encoding, you should + set ``r.encoding`` appropriately before accessing this property. + """ + + # Try charset from content-type + content = None + encoding = self.encoding + + if not self.content: + return str('') + + # Fallback to auto-detected encoding. + if self.encoding is None: + encoding = self.apparent_encoding + + # Decode unicode from given encoding. + try: + content = str(self.content, encoding, errors='replace') + except (LookupError, TypeError): + # A LookupError is raised if the encoding was not found which could + # indicate a misspelling or similar mistake. + # + # A TypeError can be raised if encoding is None + # + # So we try blindly encoding. + content = str(self.content, errors='replace') + + return content + + def json(self, **kwargs): + r"""Returns the json-encoded content of a response, if any. + + :param \*\*kwargs: Optional arguments that ``json.loads`` takes. + :raises ValueError: If the response body does not contain valid json. + """ + + if not self.encoding and self.content and len(self.content) > 3: + # No encoding set. JSON RFC 4627 section 3 states we should expect + # UTF-8, -16 or -32. Detect which one to use; If the detection or + # decoding fails, fall back to `self.text` (using chardet to make + # a best guess). + encoding = guess_json_utf(self.content) + if encoding is not None: + try: + return complexjson.loads( + self.content.decode(encoding), **kwargs + ) + except UnicodeDecodeError: + # Wrong UTF codec detected; usually because it's not UTF-8 + # but some other 8-bit codec. This is an RFC violation, + # and the server didn't bother to tell us what codec *was* + # used. + pass + return complexjson.loads(self.text, **kwargs) + + @property + def links(self): + """Returns the parsed header links of the response, if any.""" + + header = self.headers.get('link') + + # l = MultiDict() + l = {} + + if header: + links = parse_header_links(header) + + for link in links: + key = link.get('rel') or link.get('url') + l[key] = link + + return l + + def raise_for_status(self): + """Raises stored :class:`HTTPError`, if one occurred.""" + + http_error_msg = '' + if isinstance(self.reason, bytes): + # We attempt to decode utf-8 first because some servers + # choose to localize their reason strings. If the string + # isn't utf-8, we fall back to iso-8859-1 for all other + # encodings. (See PR #3538) + try: + reason = self.reason.decode('utf-8') + except UnicodeDecodeError: + reason = self.reason.decode('iso-8859-1') + else: + reason = self.reason + + if 400 <= self.status_code < 500: + http_error_msg = u'%s Client Error: %s for url: %s' % (self.status_code, reason, self.url) + + elif 500 <= self.status_code < 600: + http_error_msg = u'%s Server Error: %s for url: %s' % (self.status_code, reason, self.url) + + if http_error_msg: + raise HTTPError(http_error_msg, response=self) + + def close(self): + """Releases the connection back to the pool. Once this method has been + called the underlying ``raw`` object must not be accessed again. + + *Note: Should not normally need to be called explicitly.* + """ + if not self._content_consumed: + self.raw.close() + + release_conn = getattr(self.raw, 'release_conn', None) + if release_conn is not None: + release_conn() diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/packages.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/packages.py index d7d5f263b63a45f05b6dfe10f33917a52a993639..7232fe0ff7e85083d47d624532f29badd7c854d0 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/packages.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/packages.py @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:436ac5d0be66737c1002f73aabf94056d3d30ce68e785803fbb9164902e48c44 -size 542 +import sys + +# This code exists for backwards compatibility reasons. +# I don't like it either. Just look the other way. :) + +for package in ('urllib3', 'idna', 'chardet'): + locals()[package] = __import__(package) + # This traversal is apparently necessary such that the identities are + # preserved (requests.packages.urllib3.* is urllib3.*) + for mod in list(sys.modules): + if mod == package or mod.startswith(package + '.'): + sys.modules['requests.packages.' + mod] = sys.modules[mod] + +# Kinda cool, though, right? diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/sessions.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/sessions.py index 06685312e9a63dfce11630088770711b1a07f6d7..d73d700fa6baa975ab9b10fbdb186bccdb9d3610 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/sessions.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/sessions.py @@ -1,3 +1,770 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0e36c2a2d0d6eb1480681b236d6f8bf25e0dd147309abc553604ab6602231963 -size 29332 +# -*- coding: utf-8 -*- + +""" +requests.session +~~~~~~~~~~~~~~~~ + +This module provides a Session object to manage and persist settings across +requests (cookies, auth, proxies). +""" +import os +import sys +import time +from datetime import timedelta + +from .auth import _basic_auth_str +from .compat import cookielib, is_py3, OrderedDict, urljoin, urlparse, Mapping +from .cookies import ( + cookiejar_from_dict, extract_cookies_to_jar, RequestsCookieJar, merge_cookies) +from .models import Request, PreparedRequest, DEFAULT_REDIRECT_LIMIT +from .hooks import default_hooks, dispatch_hook +from ._internal_utils import to_native_string +from .utils import to_key_val_list, default_headers, DEFAULT_PORTS +from .exceptions import ( + TooManyRedirects, InvalidSchema, ChunkedEncodingError, ContentDecodingError) + +from .structures import CaseInsensitiveDict +from .adapters import HTTPAdapter + +from .utils import ( + requote_uri, get_environ_proxies, get_netrc_auth, should_bypass_proxies, + get_auth_from_url, rewind_body +) + +from .status_codes import codes + +# formerly defined here, reexposed here for backward compatibility +from .models import REDIRECT_STATI + +# Preferred clock, based on which one is more accurate on a given system. +if sys.platform == 'win32': + try: # Python 3.4+ + preferred_clock = time.perf_counter + except AttributeError: # Earlier than Python 3. + preferred_clock = time.clock +else: + preferred_clock = time.time + + +def merge_setting(request_setting, session_setting, dict_class=OrderedDict): + """Determines appropriate setting for a given request, taking into account + the explicit setting on that request, and the setting in the session. If a + setting is a dictionary, they will be merged together using `dict_class` + """ + + if session_setting is None: + return request_setting + + if request_setting is None: + return session_setting + + # Bypass if not a dictionary (e.g. verify) + if not ( + isinstance(session_setting, Mapping) and + isinstance(request_setting, Mapping) + ): + return request_setting + + merged_setting = dict_class(to_key_val_list(session_setting)) + merged_setting.update(to_key_val_list(request_setting)) + + # Remove keys that are set to None. Extract keys first to avoid altering + # the dictionary during iteration. + none_keys = [k for (k, v) in merged_setting.items() if v is None] + for key in none_keys: + del merged_setting[key] + + return merged_setting + + +def merge_hooks(request_hooks, session_hooks, dict_class=OrderedDict): + """Properly merges both requests and session hooks. + + This is necessary because when request_hooks == {'response': []}, the + merge breaks Session hooks entirely. + """ + if session_hooks is None or session_hooks.get('response') == []: + return request_hooks + + if request_hooks is None or request_hooks.get('response') == []: + return session_hooks + + return merge_setting(request_hooks, session_hooks, dict_class) + + +class SessionRedirectMixin(object): + + def get_redirect_target(self, resp): + """Receives a Response. Returns a redirect URI or ``None``""" + # Due to the nature of how requests processes redirects this method will + # be called at least once upon the original response and at least twice + # on each subsequent redirect response (if any). + # If a custom mixin is used to handle this logic, it may be advantageous + # to cache the redirect location onto the response object as a private + # attribute. + if resp.is_redirect: + location = resp.headers['location'] + # Currently the underlying http module on py3 decode headers + # in latin1, but empirical evidence suggests that latin1 is very + # rarely used with non-ASCII characters in HTTP headers. + # It is more likely to get UTF8 header rather than latin1. + # This causes incorrect handling of UTF8 encoded location headers. + # To solve this, we re-encode the location in latin1. + if is_py3: + location = location.encode('latin1') + return to_native_string(location, 'utf8') + return None + + def should_strip_auth(self, old_url, new_url): + """Decide whether Authorization header should be removed when redirecting""" + old_parsed = urlparse(old_url) + new_parsed = urlparse(new_url) + if old_parsed.hostname != new_parsed.hostname: + return True + # Special case: allow http -> https redirect when using the standard + # ports. This isn't specified by RFC 7235, but is kept to avoid + # breaking backwards compatibility with older versions of requests + # that allowed any redirects on the same host. + if (old_parsed.scheme == 'http' and old_parsed.port in (80, None) + and new_parsed.scheme == 'https' and new_parsed.port in (443, None)): + return False + + # Handle default port usage corresponding to scheme. + changed_port = old_parsed.port != new_parsed.port + changed_scheme = old_parsed.scheme != new_parsed.scheme + default_port = (DEFAULT_PORTS.get(old_parsed.scheme, None), None) + if (not changed_scheme and old_parsed.port in default_port + and new_parsed.port in default_port): + return False + + # Standard case: root URI must match + return changed_port or changed_scheme + + def resolve_redirects(self, resp, req, stream=False, timeout=None, + verify=True, cert=None, proxies=None, yield_requests=False, **adapter_kwargs): + """Receives a Response. Returns a generator of Responses or Requests.""" + + hist = [] # keep track of history + + url = self.get_redirect_target(resp) + previous_fragment = urlparse(req.url).fragment + while url: + prepared_request = req.copy() + + # Update history and keep track of redirects. + # resp.history must ignore the original request in this loop + hist.append(resp) + resp.history = hist[1:] + + try: + resp.content # Consume socket so it can be released + except (ChunkedEncodingError, ContentDecodingError, RuntimeError): + resp.raw.read(decode_content=False) + + if len(resp.history) >= self.max_redirects: + raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp) + + # Release the connection back into the pool. + resp.close() + + # Handle redirection without scheme (see: RFC 1808 Section 4) + if url.startswith('//'): + parsed_rurl = urlparse(resp.url) + url = '%s:%s' % (to_native_string(parsed_rurl.scheme), url) + + # Normalize url case and attach previous fragment if needed (RFC 7231 7.1.2) + parsed = urlparse(url) + if parsed.fragment == '' and previous_fragment: + parsed = parsed._replace(fragment=previous_fragment) + elif parsed.fragment: + previous_fragment = parsed.fragment + url = parsed.geturl() + + # Facilitate relative 'location' headers, as allowed by RFC 7231. + # (e.g. '/path/to/resource' instead of 'http://domain.tld/path/to/resource') + # Compliant with RFC3986, we percent encode the url. + if not parsed.netloc: + url = urljoin(resp.url, requote_uri(url)) + else: + url = requote_uri(url) + + prepared_request.url = to_native_string(url) + + self.rebuild_method(prepared_request, resp) + + # https://github.com/requests/requests/issues/1084 + if resp.status_code not in (codes.temporary_redirect, codes.permanent_redirect): + # https://github.com/requests/requests/issues/3490 + purged_headers = ('Content-Length', 'Content-Type', 'Transfer-Encoding') + for header in purged_headers: + prepared_request.headers.pop(header, None) + prepared_request.body = None + + headers = prepared_request.headers + try: + del headers['Cookie'] + except KeyError: + pass + + # Extract any cookies sent on the response to the cookiejar + # in the new request. Because we've mutated our copied prepared + # request, use the old one that we haven't yet touched. + extract_cookies_to_jar(prepared_request._cookies, req, resp.raw) + merge_cookies(prepared_request._cookies, self.cookies) + prepared_request.prepare_cookies(prepared_request._cookies) + + # Rebuild auth and proxy information. + proxies = self.rebuild_proxies(prepared_request, proxies) + self.rebuild_auth(prepared_request, resp) + + # A failed tell() sets `_body_position` to `object()`. This non-None + # value ensures `rewindable` will be True, allowing us to raise an + # UnrewindableBodyError, instead of hanging the connection. + rewindable = ( + prepared_request._body_position is not None and + ('Content-Length' in headers or 'Transfer-Encoding' in headers) + ) + + # Attempt to rewind consumed file-like object. + if rewindable: + rewind_body(prepared_request) + + # Override the original request. + req = prepared_request + + if yield_requests: + yield req + else: + + resp = self.send( + req, + stream=stream, + timeout=timeout, + verify=verify, + cert=cert, + proxies=proxies, + allow_redirects=False, + **adapter_kwargs + ) + + extract_cookies_to_jar(self.cookies, prepared_request, resp.raw) + + # extract redirect url, if any, for the next loop + url = self.get_redirect_target(resp) + yield resp + + def rebuild_auth(self, prepared_request, response): + """When being redirected we may want to strip authentication from the + request to avoid leaking credentials. This method intelligently removes + and reapplies authentication where possible to avoid credential loss. + """ + headers = prepared_request.headers + url = prepared_request.url + + if 'Authorization' in headers and self.should_strip_auth(response.request.url, url): + # If we get redirected to a new host, we should strip out any + # authentication headers. + del headers['Authorization'] + + # .netrc might have more auth for us on our new host. + new_auth = get_netrc_auth(url) if self.trust_env else None + if new_auth is not None: + prepared_request.prepare_auth(new_auth) + + return + + def rebuild_proxies(self, prepared_request, proxies): + """This method re-evaluates the proxy configuration by considering the + environment variables. If we are redirected to a URL covered by + NO_PROXY, we strip the proxy configuration. Otherwise, we set missing + proxy keys for this URL (in case they were stripped by a previous + redirect). + + This method also replaces the Proxy-Authorization header where + necessary. + + :rtype: dict + """ + proxies = proxies if proxies is not None else {} + headers = prepared_request.headers + url = prepared_request.url + scheme = urlparse(url).scheme + new_proxies = proxies.copy() + no_proxy = proxies.get('no_proxy') + + bypass_proxy = should_bypass_proxies(url, no_proxy=no_proxy) + if self.trust_env and not bypass_proxy: + environ_proxies = get_environ_proxies(url, no_proxy=no_proxy) + + proxy = environ_proxies.get(scheme, environ_proxies.get('all')) + + if proxy: + new_proxies.setdefault(scheme, proxy) + + if 'Proxy-Authorization' in headers: + del headers['Proxy-Authorization'] + + try: + username, password = get_auth_from_url(new_proxies[scheme]) + except KeyError: + username, password = None, None + + if username and password: + headers['Proxy-Authorization'] = _basic_auth_str(username, password) + + return new_proxies + + def rebuild_method(self, prepared_request, response): + """When being redirected we may want to change the method of the request + based on certain specs or browser behavior. + """ + method = prepared_request.method + + # https://tools.ietf.org/html/rfc7231#section-6.4.4 + if response.status_code == codes.see_other and method != 'HEAD': + method = 'GET' + + # Do what the browsers do, despite standards... + # First, turn 302s into GETs. + if response.status_code == codes.found and method != 'HEAD': + method = 'GET' + + # Second, if a POST is responded to with a 301, turn it into a GET. + # This bizarre behaviour is explained in Issue 1704. + if response.status_code == codes.moved and method == 'POST': + method = 'GET' + + prepared_request.method = method + + +class Session(SessionRedirectMixin): + """A Requests session. + + Provides cookie persistence, connection-pooling, and configuration. + + Basic Usage:: + + >>> import requests + >>> s = requests.Session() + >>> s.get('https://httpbin.org/get') + + + Or as a context manager:: + + >>> with requests.Session() as s: + >>> s.get('https://httpbin.org/get') + + """ + + __attrs__ = [ + 'headers', 'cookies', 'auth', 'proxies', 'hooks', 'params', 'verify', + 'cert', 'prefetch', 'adapters', 'stream', 'trust_env', + 'max_redirects', + ] + + def __init__(self): + + #: A case-insensitive dictionary of headers to be sent on each + #: :class:`Request ` sent from this + #: :class:`Session `. + self.headers = default_headers() + + #: Default Authentication tuple or object to attach to + #: :class:`Request `. + self.auth = None + + #: Dictionary mapping protocol or protocol and host to the URL of the proxy + #: (e.g. {'http': 'foo.bar:3128', 'http://host.name': 'foo.bar:4012'}) to + #: be used on each :class:`Request `. + self.proxies = {} + + #: Event-handling hooks. + self.hooks = default_hooks() + + #: Dictionary of querystring data to attach to each + #: :class:`Request `. The dictionary values may be lists for + #: representing multivalued query parameters. + self.params = {} + + #: Stream response content default. + self.stream = False + + #: SSL Verification default. + self.verify = True + + #: SSL client certificate default, if String, path to ssl client + #: cert file (.pem). If Tuple, ('cert', 'key') pair. + self.cert = None + + #: Maximum number of redirects allowed. If the request exceeds this + #: limit, a :class:`TooManyRedirects` exception is raised. + #: This defaults to requests.models.DEFAULT_REDIRECT_LIMIT, which is + #: 30. + self.max_redirects = DEFAULT_REDIRECT_LIMIT + + #: Trust environment settings for proxy configuration, default + #: authentication and similar. + self.trust_env = True + + #: A CookieJar containing all currently outstanding cookies set on this + #: session. By default it is a + #: :class:`RequestsCookieJar `, but + #: may be any other ``cookielib.CookieJar`` compatible object. + self.cookies = cookiejar_from_dict({}) + + # Default connection adapters. + self.adapters = OrderedDict() + self.mount('https://', HTTPAdapter()) + self.mount('http://', HTTPAdapter()) + + def __enter__(self): + return self + + def __exit__(self, *args): + self.close() + + def prepare_request(self, request): + """Constructs a :class:`PreparedRequest ` for + transmission and returns it. The :class:`PreparedRequest` has settings + merged from the :class:`Request ` instance and those of the + :class:`Session`. + + :param request: :class:`Request` instance to prepare with this + session's settings. + :rtype: requests.PreparedRequest + """ + cookies = request.cookies or {} + + # Bootstrap CookieJar. + if not isinstance(cookies, cookielib.CookieJar): + cookies = cookiejar_from_dict(cookies) + + # Merge with session cookies + merged_cookies = merge_cookies( + merge_cookies(RequestsCookieJar(), self.cookies), cookies) + + # Set environment's basic authentication if not explicitly set. + auth = request.auth + if self.trust_env and not auth and not self.auth: + auth = get_netrc_auth(request.url) + + p = PreparedRequest() + p.prepare( + method=request.method.upper(), + url=request.url, + files=request.files, + data=request.data, + json=request.json, + headers=merge_setting(request.headers, self.headers, dict_class=CaseInsensitiveDict), + params=merge_setting(request.params, self.params), + auth=merge_setting(auth, self.auth), + cookies=merged_cookies, + hooks=merge_hooks(request.hooks, self.hooks), + ) + return p + + def request(self, method, url, + params=None, data=None, headers=None, cookies=None, files=None, + auth=None, timeout=None, allow_redirects=True, proxies=None, + hooks=None, stream=None, verify=None, cert=None, json=None): + """Constructs a :class:`Request `, prepares it and sends it. + Returns :class:`Response ` object. + + :param method: method for the new :class:`Request` object. + :param url: URL for the new :class:`Request` object. + :param params: (optional) Dictionary or bytes to be sent in the query + string for the :class:`Request`. + :param data: (optional) Dictionary, list of tuples, bytes, or file-like + object to send in the body of the :class:`Request`. + :param json: (optional) json to send in the body of the + :class:`Request`. + :param headers: (optional) Dictionary of HTTP Headers to send with the + :class:`Request`. + :param cookies: (optional) Dict or CookieJar object to send with the + :class:`Request`. + :param files: (optional) Dictionary of ``'filename': file-like-objects`` + for multipart encoding upload. + :param auth: (optional) Auth tuple or callable to enable + Basic/Digest/Custom HTTP Auth. + :param timeout: (optional) How long to wait for the server to send + data before giving up, as a float, or a :ref:`(connect timeout, + read timeout) ` tuple. + :type timeout: float or tuple + :param allow_redirects: (optional) Set to True by default. + :type allow_redirects: bool + :param proxies: (optional) Dictionary mapping protocol or protocol and + hostname to the URL of the proxy. + :param stream: (optional) whether to immediately download the response + content. Defaults to ``False``. + :param verify: (optional) Either a boolean, in which case it controls whether we verify + the server's TLS certificate, or a string, in which case it must be a path + to a CA bundle to use. Defaults to ``True``. + :param cert: (optional) if String, path to ssl client cert file (.pem). + If Tuple, ('cert', 'key') pair. + :rtype: requests.Response + """ + # Create the Request. + req = Request( + method=method.upper(), + url=url, + headers=headers, + files=files, + data=data or {}, + json=json, + params=params or {}, + auth=auth, + cookies=cookies, + hooks=hooks, + ) + prep = self.prepare_request(req) + + proxies = proxies or {} + + settings = self.merge_environment_settings( + prep.url, proxies, stream, verify, cert + ) + + # Send the request. + send_kwargs = { + 'timeout': timeout, + 'allow_redirects': allow_redirects, + } + send_kwargs.update(settings) + resp = self.send(prep, **send_kwargs) + + return resp + + def get(self, url, **kwargs): + r"""Sends a GET request. Returns :class:`Response` object. + + :param url: URL for the new :class:`Request` object. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :rtype: requests.Response + """ + + kwargs.setdefault('allow_redirects', True) + return self.request('GET', url, **kwargs) + + def options(self, url, **kwargs): + r"""Sends a OPTIONS request. Returns :class:`Response` object. + + :param url: URL for the new :class:`Request` object. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :rtype: requests.Response + """ + + kwargs.setdefault('allow_redirects', True) + return self.request('OPTIONS', url, **kwargs) + + def head(self, url, **kwargs): + r"""Sends a HEAD request. Returns :class:`Response` object. + + :param url: URL for the new :class:`Request` object. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :rtype: requests.Response + """ + + kwargs.setdefault('allow_redirects', False) + return self.request('HEAD', url, **kwargs) + + def post(self, url, data=None, json=None, **kwargs): + r"""Sends a POST request. Returns :class:`Response` object. + + :param url: URL for the new :class:`Request` object. + :param data: (optional) Dictionary, list of tuples, bytes, or file-like + object to send in the body of the :class:`Request`. + :param json: (optional) json to send in the body of the :class:`Request`. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :rtype: requests.Response + """ + + return self.request('POST', url, data=data, json=json, **kwargs) + + def put(self, url, data=None, **kwargs): + r"""Sends a PUT request. Returns :class:`Response` object. + + :param url: URL for the new :class:`Request` object. + :param data: (optional) Dictionary, list of tuples, bytes, or file-like + object to send in the body of the :class:`Request`. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :rtype: requests.Response + """ + + return self.request('PUT', url, data=data, **kwargs) + + def patch(self, url, data=None, **kwargs): + r"""Sends a PATCH request. Returns :class:`Response` object. + + :param url: URL for the new :class:`Request` object. + :param data: (optional) Dictionary, list of tuples, bytes, or file-like + object to send in the body of the :class:`Request`. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :rtype: requests.Response + """ + + return self.request('PATCH', url, data=data, **kwargs) + + def delete(self, url, **kwargs): + r"""Sends a DELETE request. Returns :class:`Response` object. + + :param url: URL for the new :class:`Request` object. + :param \*\*kwargs: Optional arguments that ``request`` takes. + :rtype: requests.Response + """ + + return self.request('DELETE', url, **kwargs) + + def send(self, request, **kwargs): + """Send a given PreparedRequest. + + :rtype: requests.Response + """ + # Set defaults that the hooks can utilize to ensure they always have + # the correct parameters to reproduce the previous request. + kwargs.setdefault('stream', self.stream) + kwargs.setdefault('verify', self.verify) + kwargs.setdefault('cert', self.cert) + kwargs.setdefault('proxies', self.proxies) + + # It's possible that users might accidentally send a Request object. + # Guard against that specific failure case. + if isinstance(request, Request): + raise ValueError('You can only send PreparedRequests.') + + # Set up variables needed for resolve_redirects and dispatching of hooks + allow_redirects = kwargs.pop('allow_redirects', True) + stream = kwargs.get('stream') + hooks = request.hooks + + # Get the appropriate adapter to use + adapter = self.get_adapter(url=request.url) + + # Start time (approximately) of the request + start = preferred_clock() + + # Send the request + r = adapter.send(request, **kwargs) + + # Total elapsed time of the request (approximately) + elapsed = preferred_clock() - start + r.elapsed = timedelta(seconds=elapsed) + + # Response manipulation hooks + r = dispatch_hook('response', hooks, r, **kwargs) + + # Persist cookies + if r.history: + + # If the hooks create history then we want those cookies too + for resp in r.history: + extract_cookies_to_jar(self.cookies, resp.request, resp.raw) + + extract_cookies_to_jar(self.cookies, request, r.raw) + + # Redirect resolving generator. + gen = self.resolve_redirects(r, request, **kwargs) + + # Resolve redirects if allowed. + history = [resp for resp in gen] if allow_redirects else [] + + # Shuffle things around if there's history. + if history: + # Insert the first (original) request at the start + history.insert(0, r) + # Get the last request made + r = history.pop() + r.history = history + + # If redirects aren't being followed, store the response on the Request for Response.next(). + if not allow_redirects: + try: + r._next = next(self.resolve_redirects(r, request, yield_requests=True, **kwargs)) + except StopIteration: + pass + + if not stream: + r.content + + return r + + def merge_environment_settings(self, url, proxies, stream, verify, cert): + """ + Check the environment and merge it with some settings. + + :rtype: dict + """ + # Gather clues from the surrounding environment. + if self.trust_env: + # Set environment's proxies. + no_proxy = proxies.get('no_proxy') if proxies is not None else None + env_proxies = get_environ_proxies(url, no_proxy=no_proxy) + for (k, v) in env_proxies.items(): + proxies.setdefault(k, v) + + # Look for requests environment configuration and be compatible + # with cURL. + if verify is True or verify is None: + verify = (os.environ.get('REQUESTS_CA_BUNDLE') or + os.environ.get('CURL_CA_BUNDLE')) + + # Merge all the kwargs. + proxies = merge_setting(proxies, self.proxies) + stream = merge_setting(stream, self.stream) + verify = merge_setting(verify, self.verify) + cert = merge_setting(cert, self.cert) + + return {'verify': verify, 'proxies': proxies, 'stream': stream, + 'cert': cert} + + def get_adapter(self, url): + """ + Returns the appropriate connection adapter for the given URL. + + :rtype: requests.adapters.BaseAdapter + """ + for (prefix, adapter) in self.adapters.items(): + + if url.lower().startswith(prefix.lower()): + return adapter + + # Nothing matches :-/ + raise InvalidSchema("No connection adapters were found for '%s'" % url) + + def close(self): + """Closes all adapters and as such the session""" + for v in self.adapters.values(): + v.close() + + def mount(self, prefix, adapter): + """Registers a connection adapter to a prefix. + + Adapters are sorted in descending order by prefix length. + """ + self.adapters[prefix] = adapter + keys_to_move = [k for k in self.adapters if len(k) < len(prefix)] + + for key in keys_to_move: + self.adapters[key] = self.adapters.pop(key) + + def __getstate__(self): + state = {attr: getattr(self, attr, None) for attr in self.__attrs__} + return state + + def __setstate__(self, state): + for attr, value in state.items(): + setattr(self, attr, value) + + +def session(): + """ + Returns a :class:`Session` for context-management. + + .. deprecated:: 1.0.0 + + This method has been deprecated since version 1.0.0 and is only kept for + backwards compatibility. New code should use :class:`~requests.sessions.Session` + to create a session. This may be removed at a future date. + + :rtype: Session + """ + return Session() diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/status_codes.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/status_codes.py index f24b4915bae5edc6aecaa80db42829a6438a57cc..813e8c4e62fdcbbfcb73e2f52e187e0c3c5b84d7 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/status_codes.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/status_codes.py @@ -1,3 +1,120 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5d695ca418db0adabdb12aa91fdfca2b18272d37fd67fff0096a25ab6d724a58 -size 4129 +# -*- coding: utf-8 -*- + +r""" +The ``codes`` object defines a mapping from common names for HTTP statuses +to their numerical codes, accessible either as attributes or as dictionary +items. + +>>> requests.codes['temporary_redirect'] +307 +>>> requests.codes.teapot +418 +>>> requests.codes['\o/'] +200 + +Some codes have multiple names, and both upper- and lower-case versions of +the names are allowed. For example, ``codes.ok``, ``codes.OK``, and +``codes.okay`` all correspond to the HTTP status code 200. +""" + +from .structures import LookupDict + +_codes = { + + # Informational. + 100: ('continue',), + 101: ('switching_protocols',), + 102: ('processing',), + 103: ('checkpoint',), + 122: ('uri_too_long', 'request_uri_too_long'), + 200: ('ok', 'okay', 'all_ok', 'all_okay', 'all_good', '\\o/', '✓'), + 201: ('created',), + 202: ('accepted',), + 203: ('non_authoritative_info', 'non_authoritative_information'), + 204: ('no_content',), + 205: ('reset_content', 'reset'), + 206: ('partial_content', 'partial'), + 207: ('multi_status', 'multiple_status', 'multi_stati', 'multiple_stati'), + 208: ('already_reported',), + 226: ('im_used',), + + # Redirection. + 300: ('multiple_choices',), + 301: ('moved_permanently', 'moved', '\\o-'), + 302: ('found',), + 303: ('see_other', 'other'), + 304: ('not_modified',), + 305: ('use_proxy',), + 306: ('switch_proxy',), + 307: ('temporary_redirect', 'temporary_moved', 'temporary'), + 308: ('permanent_redirect', + 'resume_incomplete', 'resume',), # These 2 to be removed in 3.0 + + # Client Error. + 400: ('bad_request', 'bad'), + 401: ('unauthorized',), + 402: ('payment_required', 'payment'), + 403: ('forbidden',), + 404: ('not_found', '-o-'), + 405: ('method_not_allowed', 'not_allowed'), + 406: ('not_acceptable',), + 407: ('proxy_authentication_required', 'proxy_auth', 'proxy_authentication'), + 408: ('request_timeout', 'timeout'), + 409: ('conflict',), + 410: ('gone',), + 411: ('length_required',), + 412: ('precondition_failed', 'precondition'), + 413: ('request_entity_too_large',), + 414: ('request_uri_too_large',), + 415: ('unsupported_media_type', 'unsupported_media', 'media_type'), + 416: ('requested_range_not_satisfiable', 'requested_range', 'range_not_satisfiable'), + 417: ('expectation_failed',), + 418: ('im_a_teapot', 'teapot', 'i_am_a_teapot'), + 421: ('misdirected_request',), + 422: ('unprocessable_entity', 'unprocessable'), + 423: ('locked',), + 424: ('failed_dependency', 'dependency'), + 425: ('unordered_collection', 'unordered'), + 426: ('upgrade_required', 'upgrade'), + 428: ('precondition_required', 'precondition'), + 429: ('too_many_requests', 'too_many'), + 431: ('header_fields_too_large', 'fields_too_large'), + 444: ('no_response', 'none'), + 449: ('retry_with', 'retry'), + 450: ('blocked_by_windows_parental_controls', 'parental_controls'), + 451: ('unavailable_for_legal_reasons', 'legal_reasons'), + 499: ('client_closed_request',), + + # Server Error. + 500: ('internal_server_error', 'server_error', '/o\\', '✗'), + 501: ('not_implemented',), + 502: ('bad_gateway',), + 503: ('service_unavailable', 'unavailable'), + 504: ('gateway_timeout',), + 505: ('http_version_not_supported', 'http_version'), + 506: ('variant_also_negotiates',), + 507: ('insufficient_storage',), + 509: ('bandwidth_limit_exceeded', 'bandwidth'), + 510: ('not_extended',), + 511: ('network_authentication_required', 'network_auth', 'network_authentication'), +} + +codes = LookupDict(name='status_codes') + +def _init(): + for code, titles in _codes.items(): + for title in titles: + setattr(codes, title, code) + if not title.startswith(('\\', '/')): + setattr(codes, title.upper(), code) + + def doc(code): + names = ', '.join('``%s``' % n for n in _codes[code]) + return '* %d: %s' % (code, names) + + global __doc__ + __doc__ = (__doc__ + '\n' + + '\n'.join(doc(code) for code in sorted(_codes)) + if __doc__ is not None else None) + +_init() diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/structures.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/structures.py index 0f4995ac663248c0b2484ee98a5682923cd5c276..da930e2852049feb2b6e262d442b9cc25ecb2d94 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/structures.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/structures.py @@ -1,3 +1,103 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce83fcaa5cb625a9397bcf47c29aa3375cf6762ced23efe06aab6cd6b6892417 -size 2981 +# -*- coding: utf-8 -*- + +""" +requests.structures +~~~~~~~~~~~~~~~~~~~ + +Data structures that power Requests. +""" + +from .compat import OrderedDict, Mapping, MutableMapping + + +class CaseInsensitiveDict(MutableMapping): + """A case-insensitive ``dict``-like object. + + Implements all methods and operations of + ``MutableMapping`` as well as dict's ``copy``. Also + provides ``lower_items``. + + All keys are expected to be strings. The structure remembers the + case of the last key to be set, and ``iter(instance)``, + ``keys()``, ``items()``, ``iterkeys()``, and ``iteritems()`` + will contain case-sensitive keys. However, querying and contains + testing is case insensitive:: + + cid = CaseInsensitiveDict() + cid['Accept'] = 'application/json' + cid['aCCEPT'] == 'application/json' # True + list(cid) == ['Accept'] # True + + For example, ``headers['content-encoding']`` will return the + value of a ``'Content-Encoding'`` response header, regardless + of how the header name was originally stored. + + If the constructor, ``.update``, or equality comparison + operations are given keys that have equal ``.lower()``s, the + behavior is undefined. + """ + + def __init__(self, data=None, **kwargs): + self._store = OrderedDict() + if data is None: + data = {} + self.update(data, **kwargs) + + def __setitem__(self, key, value): + # Use the lowercased key for lookups, but store the actual + # key alongside the value. + self._store[key.lower()] = (key, value) + + def __getitem__(self, key): + return self._store[key.lower()][1] + + def __delitem__(self, key): + del self._store[key.lower()] + + def __iter__(self): + return (casedkey for casedkey, mappedvalue in self._store.values()) + + def __len__(self): + return len(self._store) + + def lower_items(self): + """Like iteritems(), but with all lowercase keys.""" + return ( + (lowerkey, keyval[1]) + for (lowerkey, keyval) + in self._store.items() + ) + + def __eq__(self, other): + if isinstance(other, Mapping): + other = CaseInsensitiveDict(other) + else: + return NotImplemented + # Compare insensitively + return dict(self.lower_items()) == dict(other.lower_items()) + + # Copy is required + def copy(self): + return CaseInsensitiveDict(self._store.values()) + + def __repr__(self): + return str(dict(self.items())) + + +class LookupDict(dict): + """Dictionary lookup object.""" + + def __init__(self, name=None): + self.name = name + super(LookupDict, self).__init__() + + def __repr__(self): + return '' % (self.name) + + def __getitem__(self, key): + # We allow fall-through here, so values default to None + + return self.__dict__.get(key, None) + + def get(self, key, default=None): + return self.__dict__.get(key, default) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/utils.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/utils.py index da285d95cd45c7b359b7e424e73fea4902329c96..8170a8d2c45dc6d9dbb44abc4d5ce4d7c548463d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/utils.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/requests/utils.py @@ -1,3 +1,977 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2ed3c9d5d6fa9897dfd932522562a2eeb069ce33d2de648eae30bdcd18680f70 -size 30049 +# -*- coding: utf-8 -*- + +""" +requests.utils +~~~~~~~~~~~~~~ + +This module provides utility functions that are used within Requests +that are also useful for external consumption. +""" + +import codecs +import contextlib +import io +import os +import re +import socket +import struct +import sys +import tempfile +import warnings +import zipfile + +from .__version__ import __version__ +from . import certs +# to_native_string is unused here, but imported here for backwards compatibility +from ._internal_utils import to_native_string +from .compat import parse_http_list as _parse_list_header +from .compat import ( + quote, urlparse, bytes, str, OrderedDict, unquote, getproxies, + proxy_bypass, urlunparse, basestring, integer_types, is_py3, + proxy_bypass_environment, getproxies_environment, Mapping) +from .cookies import cookiejar_from_dict +from .structures import CaseInsensitiveDict +from .exceptions import ( + InvalidURL, InvalidHeader, FileModeWarning, UnrewindableBodyError) + +NETRC_FILES = ('.netrc', '_netrc') + +DEFAULT_CA_BUNDLE_PATH = certs.where() + +DEFAULT_PORTS = {'http': 80, 'https': 443} + + +if sys.platform == 'win32': + # provide a proxy_bypass version on Windows without DNS lookups + + def proxy_bypass_registry(host): + try: + if is_py3: + import winreg + else: + import _winreg as winreg + except ImportError: + return False + + try: + internetSettings = winreg.OpenKey(winreg.HKEY_CURRENT_USER, + r'Software\Microsoft\Windows\CurrentVersion\Internet Settings') + # ProxyEnable could be REG_SZ or REG_DWORD, normalizing it + proxyEnable = int(winreg.QueryValueEx(internetSettings, + 'ProxyEnable')[0]) + # ProxyOverride is almost always a string + proxyOverride = winreg.QueryValueEx(internetSettings, + 'ProxyOverride')[0] + except OSError: + return False + if not proxyEnable or not proxyOverride: + return False + + # make a check value list from the registry entry: replace the + # '' string by the localhost entry and the corresponding + # canonical entry. + proxyOverride = proxyOverride.split(';') + # now check if we match one of the registry values. + for test in proxyOverride: + if test == '': + if '.' not in host: + return True + test = test.replace(".", r"\.") # mask dots + test = test.replace("*", r".*") # change glob sequence + test = test.replace("?", r".") # change glob char + if re.match(test, host, re.I): + return True + return False + + def proxy_bypass(host): # noqa + """Return True, if the host should be bypassed. + + Checks proxy settings gathered from the environment, if specified, + or the registry. + """ + if getproxies_environment(): + return proxy_bypass_environment(host) + else: + return proxy_bypass_registry(host) + + +def dict_to_sequence(d): + """Returns an internal sequence dictionary update.""" + + if hasattr(d, 'items'): + d = d.items() + + return d + + +def super_len(o): + total_length = None + current_position = 0 + + if hasattr(o, '__len__'): + total_length = len(o) + + elif hasattr(o, 'len'): + total_length = o.len + + elif hasattr(o, 'fileno'): + try: + fileno = o.fileno() + except io.UnsupportedOperation: + pass + else: + total_length = os.fstat(fileno).st_size + + # Having used fstat to determine the file length, we need to + # confirm that this file was opened up in binary mode. + if 'b' not in o.mode: + warnings.warn(( + "Requests has determined the content-length for this " + "request using the binary size of the file: however, the " + "file has been opened in text mode (i.e. without the 'b' " + "flag in the mode). This may lead to an incorrect " + "content-length. In Requests 3.0, support will be removed " + "for files in text mode."), + FileModeWarning + ) + + if hasattr(o, 'tell'): + try: + current_position = o.tell() + except (OSError, IOError): + # This can happen in some weird situations, such as when the file + # is actually a special file descriptor like stdin. In this + # instance, we don't know what the length is, so set it to zero and + # let requests chunk it instead. + if total_length is not None: + current_position = total_length + else: + if hasattr(o, 'seek') and total_length is None: + # StringIO and BytesIO have seek but no useable fileno + try: + # seek to end of file + o.seek(0, 2) + total_length = o.tell() + + # seek back to current position to support + # partially read file-like objects + o.seek(current_position or 0) + except (OSError, IOError): + total_length = 0 + + if total_length is None: + total_length = 0 + + return max(0, total_length - current_position) + + +def get_netrc_auth(url, raise_errors=False): + """Returns the Requests tuple auth for a given url from netrc.""" + + try: + from netrc import netrc, NetrcParseError + + netrc_path = None + + for f in NETRC_FILES: + try: + loc = os.path.expanduser('~/{}'.format(f)) + except KeyError: + # os.path.expanduser can fail when $HOME is undefined and + # getpwuid fails. See https://bugs.python.org/issue20164 & + # https://github.com/requests/requests/issues/1846 + return + + if os.path.exists(loc): + netrc_path = loc + break + + # Abort early if there isn't one. + if netrc_path is None: + return + + ri = urlparse(url) + + # Strip port numbers from netloc. This weird `if...encode`` dance is + # used for Python 3.2, which doesn't support unicode literals. + splitstr = b':' + if isinstance(url, str): + splitstr = splitstr.decode('ascii') + host = ri.netloc.split(splitstr)[0] + + try: + _netrc = netrc(netrc_path).authenticators(host) + if _netrc: + # Return with login / password + login_i = (0 if _netrc[0] else 1) + return (_netrc[login_i], _netrc[2]) + except (NetrcParseError, IOError): + # If there was a parsing error or a permissions issue reading the file, + # we'll just skip netrc auth unless explicitly asked to raise errors. + if raise_errors: + raise + + # AppEngine hackiness. + except (ImportError, AttributeError): + pass + + +def guess_filename(obj): + """Tries to guess the filename of the given object.""" + name = getattr(obj, 'name', None) + if (name and isinstance(name, basestring) and name[0] != '<' and + name[-1] != '>'): + return os.path.basename(name) + + +def extract_zipped_paths(path): + """Replace nonexistent paths that look like they refer to a member of a zip + archive with the location of an extracted copy of the target, or else + just return the provided path unchanged. + """ + if os.path.exists(path): + # this is already a valid path, no need to do anything further + return path + + # find the first valid part of the provided path and treat that as a zip archive + # assume the rest of the path is the name of a member in the archive + archive, member = os.path.split(path) + while archive and not os.path.exists(archive): + archive, prefix = os.path.split(archive) + member = '/'.join([prefix, member]) + + if not zipfile.is_zipfile(archive): + return path + + zip_file = zipfile.ZipFile(archive) + if member not in zip_file.namelist(): + return path + + # we have a valid zip archive and a valid member of that archive + tmp = tempfile.gettempdir() + extracted_path = os.path.join(tmp, *member.split('/')) + if not os.path.exists(extracted_path): + extracted_path = zip_file.extract(member, path=tmp) + + return extracted_path + + +def from_key_val_list(value): + """Take an object and test to see if it can be represented as a + dictionary. Unless it can not be represented as such, return an + OrderedDict, e.g., + + :: + + >>> from_key_val_list([('key', 'val')]) + OrderedDict([('key', 'val')]) + >>> from_key_val_list('string') + ValueError: cannot encode objects that are not 2-tuples + >>> from_key_val_list({'key': 'val'}) + OrderedDict([('key', 'val')]) + + :rtype: OrderedDict + """ + if value is None: + return None + + if isinstance(value, (str, bytes, bool, int)): + raise ValueError('cannot encode objects that are not 2-tuples') + + return OrderedDict(value) + + +def to_key_val_list(value): + """Take an object and test to see if it can be represented as a + dictionary. If it can be, return a list of tuples, e.g., + + :: + + >>> to_key_val_list([('key', 'val')]) + [('key', 'val')] + >>> to_key_val_list({'key': 'val'}) + [('key', 'val')] + >>> to_key_val_list('string') + ValueError: cannot encode objects that are not 2-tuples. + + :rtype: list + """ + if value is None: + return None + + if isinstance(value, (str, bytes, bool, int)): + raise ValueError('cannot encode objects that are not 2-tuples') + + if isinstance(value, Mapping): + value = value.items() + + return list(value) + + +# From mitsuhiko/werkzeug (used with permission). +def parse_list_header(value): + """Parse lists as described by RFC 2068 Section 2. + + In particular, parse comma-separated lists where the elements of + the list may include quoted-strings. A quoted-string could + contain a comma. A non-quoted string could have quotes in the + middle. Quotes are removed automatically after parsing. + + It basically works like :func:`parse_set_header` just that items + may appear multiple times and case sensitivity is preserved. + + The return value is a standard :class:`list`: + + >>> parse_list_header('token, "quoted value"') + ['token', 'quoted value'] + + To create a header from the :class:`list` again, use the + :func:`dump_header` function. + + :param value: a string with a list header. + :return: :class:`list` + :rtype: list + """ + result = [] + for item in _parse_list_header(value): + if item[:1] == item[-1:] == '"': + item = unquote_header_value(item[1:-1]) + result.append(item) + return result + + +# From mitsuhiko/werkzeug (used with permission). +def parse_dict_header(value): + """Parse lists of key, value pairs as described by RFC 2068 Section 2 and + convert them into a python dict: + + >>> d = parse_dict_header('foo="is a fish", bar="as well"') + >>> type(d) is dict + True + >>> sorted(d.items()) + [('bar', 'as well'), ('foo', 'is a fish')] + + If there is no value for a key it will be `None`: + + >>> parse_dict_header('key_without_value') + {'key_without_value': None} + + To create a header from the :class:`dict` again, use the + :func:`dump_header` function. + + :param value: a string with a dict header. + :return: :class:`dict` + :rtype: dict + """ + result = {} + for item in _parse_list_header(value): + if '=' not in item: + result[item] = None + continue + name, value = item.split('=', 1) + if value[:1] == value[-1:] == '"': + value = unquote_header_value(value[1:-1]) + result[name] = value + return result + + +# From mitsuhiko/werkzeug (used with permission). +def unquote_header_value(value, is_filename=False): + r"""Unquotes a header value. (Reversal of :func:`quote_header_value`). + This does not use the real unquoting but what browsers are actually + using for quoting. + + :param value: the header value to unquote. + :rtype: str + """ + if value and value[0] == value[-1] == '"': + # this is not the real unquoting, but fixing this so that the + # RFC is met will result in bugs with internet explorer and + # probably some other browsers as well. IE for example is + # uploading files with "C:\foo\bar.txt" as filename + value = value[1:-1] + + # if this is a filename and the starting characters look like + # a UNC path, then just return the value without quotes. Using the + # replace sequence below on a UNC path has the effect of turning + # the leading double slash into a single slash and then + # _fix_ie_filename() doesn't work correctly. See #458. + if not is_filename or value[:2] != '\\\\': + return value.replace('\\\\', '\\').replace('\\"', '"') + return value + + +def dict_from_cookiejar(cj): + """Returns a key/value dictionary from a CookieJar. + + :param cj: CookieJar object to extract cookies from. + :rtype: dict + """ + + cookie_dict = {} + + for cookie in cj: + cookie_dict[cookie.name] = cookie.value + + return cookie_dict + + +def add_dict_to_cookiejar(cj, cookie_dict): + """Returns a CookieJar from a key/value dictionary. + + :param cj: CookieJar to insert cookies into. + :param cookie_dict: Dict of key/values to insert into CookieJar. + :rtype: CookieJar + """ + + return cookiejar_from_dict(cookie_dict, cj) + + +def get_encodings_from_content(content): + """Returns encodings from given content string. + + :param content: bytestring to extract encodings from. + """ + warnings.warn(( + 'In requests 3.0, get_encodings_from_content will be removed. For ' + 'more information, please see the discussion on issue #2266. (This' + ' warning should only appear once.)'), + DeprecationWarning) + + charset_re = re.compile(r']', flags=re.I) + pragma_re = re.compile(r']', flags=re.I) + xml_re = re.compile(r'^<\?xml.*?encoding=["\']*(.+?)["\'>]') + + return (charset_re.findall(content) + + pragma_re.findall(content) + + xml_re.findall(content)) + + +def _parse_content_type_header(header): + """Returns content type and parameters from given header + + :param header: string + :return: tuple containing content type and dictionary of + parameters + """ + + tokens = header.split(';') + content_type, params = tokens[0].strip(), tokens[1:] + params_dict = {} + items_to_strip = "\"' " + + for param in params: + param = param.strip() + if param: + key, value = param, True + index_of_equals = param.find("=") + if index_of_equals != -1: + key = param[:index_of_equals].strip(items_to_strip) + value = param[index_of_equals + 1:].strip(items_to_strip) + params_dict[key.lower()] = value + return content_type, params_dict + + +def get_encoding_from_headers(headers): + """Returns encodings from given HTTP Header Dict. + + :param headers: dictionary to extract encoding from. + :rtype: str + """ + + content_type = headers.get('content-type') + + if not content_type: + return None + + content_type, params = _parse_content_type_header(content_type) + + if 'charset' in params: + return params['charset'].strip("'\"") + + if 'text' in content_type: + return 'ISO-8859-1' + + +def stream_decode_response_unicode(iterator, r): + """Stream decodes a iterator.""" + + if r.encoding is None: + for item in iterator: + yield item + return + + decoder = codecs.getincrementaldecoder(r.encoding)(errors='replace') + for chunk in iterator: + rv = decoder.decode(chunk) + if rv: + yield rv + rv = decoder.decode(b'', final=True) + if rv: + yield rv + + +def iter_slices(string, slice_length): + """Iterate over slices of a string.""" + pos = 0 + if slice_length is None or slice_length <= 0: + slice_length = len(string) + while pos < len(string): + yield string[pos:pos + slice_length] + pos += slice_length + + +def get_unicode_from_response(r): + """Returns the requested content back in unicode. + + :param r: Response object to get unicode content from. + + Tried: + + 1. charset from content-type + 2. fall back and replace all unicode characters + + :rtype: str + """ + warnings.warn(( + 'In requests 3.0, get_unicode_from_response will be removed. For ' + 'more information, please see the discussion on issue #2266. (This' + ' warning should only appear once.)'), + DeprecationWarning) + + tried_encodings = [] + + # Try charset from content-type + encoding = get_encoding_from_headers(r.headers) + + if encoding: + try: + return str(r.content, encoding) + except UnicodeError: + tried_encodings.append(encoding) + + # Fall back: + try: + return str(r.content, encoding, errors='replace') + except TypeError: + return r.content + + +# The unreserved URI characters (RFC 3986) +UNRESERVED_SET = frozenset( + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" + "0123456789-._~") + + +def unquote_unreserved(uri): + """Un-escape any percent-escape sequences in a URI that are unreserved + characters. This leaves all reserved, illegal and non-ASCII bytes encoded. + + :rtype: str + """ + parts = uri.split('%') + for i in range(1, len(parts)): + h = parts[i][0:2] + if len(h) == 2 and h.isalnum(): + try: + c = chr(int(h, 16)) + except ValueError: + raise InvalidURL("Invalid percent-escape sequence: '%s'" % h) + + if c in UNRESERVED_SET: + parts[i] = c + parts[i][2:] + else: + parts[i] = '%' + parts[i] + else: + parts[i] = '%' + parts[i] + return ''.join(parts) + + +def requote_uri(uri): + """Re-quote the given URI. + + This function passes the given URI through an unquote/quote cycle to + ensure that it is fully and consistently quoted. + + :rtype: str + """ + safe_with_percent = "!#$%&'()*+,/:;=?@[]~" + safe_without_percent = "!#$&'()*+,/:;=?@[]~" + try: + # Unquote only the unreserved characters + # Then quote only illegal characters (do not quote reserved, + # unreserved, or '%') + return quote(unquote_unreserved(uri), safe=safe_with_percent) + except InvalidURL: + # We couldn't unquote the given URI, so let's try quoting it, but + # there may be unquoted '%'s in the URI. We need to make sure they're + # properly quoted so they do not cause issues elsewhere. + return quote(uri, safe=safe_without_percent) + + +def address_in_network(ip, net): + """This function allows you to check if an IP belongs to a network subnet + + Example: returns True if ip = 192.168.1.1 and net = 192.168.1.0/24 + returns False if ip = 192.168.1.1 and net = 192.168.100.0/24 + + :rtype: bool + """ + ipaddr = struct.unpack('=L', socket.inet_aton(ip))[0] + netaddr, bits = net.split('/') + netmask = struct.unpack('=L', socket.inet_aton(dotted_netmask(int(bits))))[0] + network = struct.unpack('=L', socket.inet_aton(netaddr))[0] & netmask + return (ipaddr & netmask) == (network & netmask) + + +def dotted_netmask(mask): + """Converts mask from /xx format to xxx.xxx.xxx.xxx + + Example: if mask is 24 function returns 255.255.255.0 + + :rtype: str + """ + bits = 0xffffffff ^ (1 << 32 - mask) - 1 + return socket.inet_ntoa(struct.pack('>I', bits)) + + +def is_ipv4_address(string_ip): + """ + :rtype: bool + """ + try: + socket.inet_aton(string_ip) + except socket.error: + return False + return True + + +def is_valid_cidr(string_network): + """ + Very simple check of the cidr format in no_proxy variable. + + :rtype: bool + """ + if string_network.count('/') == 1: + try: + mask = int(string_network.split('/')[1]) + except ValueError: + return False + + if mask < 1 or mask > 32: + return False + + try: + socket.inet_aton(string_network.split('/')[0]) + except socket.error: + return False + else: + return False + return True + + +@contextlib.contextmanager +def set_environ(env_name, value): + """Set the environment variable 'env_name' to 'value' + + Save previous value, yield, and then restore the previous value stored in + the environment variable 'env_name'. + + If 'value' is None, do nothing""" + value_changed = value is not None + if value_changed: + old_value = os.environ.get(env_name) + os.environ[env_name] = value + try: + yield + finally: + if value_changed: + if old_value is None: + del os.environ[env_name] + else: + os.environ[env_name] = old_value + + +def should_bypass_proxies(url, no_proxy): + """ + Returns whether we should bypass proxies or not. + + :rtype: bool + """ + # Prioritize lowercase environment variables over uppercase + # to keep a consistent behaviour with other http projects (curl, wget). + get_proxy = lambda k: os.environ.get(k) or os.environ.get(k.upper()) + + # First check whether no_proxy is defined. If it is, check that the URL + # we're getting isn't in the no_proxy list. + no_proxy_arg = no_proxy + if no_proxy is None: + no_proxy = get_proxy('no_proxy') + parsed = urlparse(url) + + if parsed.hostname is None: + # URLs don't always have hostnames, e.g. file:/// urls. + return True + + if no_proxy: + # We need to check whether we match here. We need to see if we match + # the end of the hostname, both with and without the port. + no_proxy = ( + host for host in no_proxy.replace(' ', '').split(',') if host + ) + + if is_ipv4_address(parsed.hostname): + for proxy_ip in no_proxy: + if is_valid_cidr(proxy_ip): + if address_in_network(parsed.hostname, proxy_ip): + return True + elif parsed.hostname == proxy_ip: + # If no_proxy ip was defined in plain IP notation instead of cidr notation & + # matches the IP of the index + return True + else: + host_with_port = parsed.hostname + if parsed.port: + host_with_port += ':{}'.format(parsed.port) + + for host in no_proxy: + if parsed.hostname.endswith(host) or host_with_port.endswith(host): + # The URL does match something in no_proxy, so we don't want + # to apply the proxies on this URL. + return True + + with set_environ('no_proxy', no_proxy_arg): + # parsed.hostname can be `None` in cases such as a file URI. + try: + bypass = proxy_bypass(parsed.hostname) + except (TypeError, socket.gaierror): + bypass = False + + if bypass: + return True + + return False + + +def get_environ_proxies(url, no_proxy=None): + """ + Return a dict of environment proxies. + + :rtype: dict + """ + if should_bypass_proxies(url, no_proxy=no_proxy): + return {} + else: + return getproxies() + + +def select_proxy(url, proxies): + """Select a proxy for the url, if applicable. + + :param url: The url being for the request + :param proxies: A dictionary of schemes or schemes and hosts to proxy URLs + """ + proxies = proxies or {} + urlparts = urlparse(url) + if urlparts.hostname is None: + return proxies.get(urlparts.scheme, proxies.get('all')) + + proxy_keys = [ + urlparts.scheme + '://' + urlparts.hostname, + urlparts.scheme, + 'all://' + urlparts.hostname, + 'all', + ] + proxy = None + for proxy_key in proxy_keys: + if proxy_key in proxies: + proxy = proxies[proxy_key] + break + + return proxy + + +def default_user_agent(name="python-requests"): + """ + Return a string representing the default user agent. + + :rtype: str + """ + return '%s/%s' % (name, __version__) + + +def default_headers(): + """ + :rtype: requests.structures.CaseInsensitiveDict + """ + return CaseInsensitiveDict({ + 'User-Agent': default_user_agent(), + 'Accept-Encoding': ', '.join(('gzip', 'deflate')), + 'Accept': '*/*', + 'Connection': 'keep-alive', + }) + + +def parse_header_links(value): + """Return a list of parsed link headers proxies. + + i.e. Link: ; rel=front; type="image/jpeg",; rel=back;type="image/jpeg" + + :rtype: list + """ + + links = [] + + replace_chars = ' \'"' + + value = value.strip(replace_chars) + if not value: + return links + + for val in re.split(', *<', value): + try: + url, params = val.split(';', 1) + except ValueError: + url, params = val, '' + + link = {'url': url.strip('<> \'"')} + + for param in params.split(';'): + try: + key, value = param.split('=') + except ValueError: + break + + link[key.strip(replace_chars)] = value.strip(replace_chars) + + links.append(link) + + return links + + +# Null bytes; no need to recreate these on each call to guess_json_utf +_null = '\x00'.encode('ascii') # encoding to ASCII for Python 3 +_null2 = _null * 2 +_null3 = _null * 3 + + +def guess_json_utf(data): + """ + :rtype: str + """ + # JSON always starts with two ASCII characters, so detection is as + # easy as counting the nulls and from their location and count + # determine the encoding. Also detect a BOM, if present. + sample = data[:4] + if sample in (codecs.BOM_UTF32_LE, codecs.BOM_UTF32_BE): + return 'utf-32' # BOM included + if sample[:3] == codecs.BOM_UTF8: + return 'utf-8-sig' # BOM included, MS style (discouraged) + if sample[:2] in (codecs.BOM_UTF16_LE, codecs.BOM_UTF16_BE): + return 'utf-16' # BOM included + nullcount = sample.count(_null) + if nullcount == 0: + return 'utf-8' + if nullcount == 2: + if sample[::2] == _null2: # 1st and 3rd are null + return 'utf-16-be' + if sample[1::2] == _null2: # 2nd and 4th are null + return 'utf-16-le' + # Did not detect 2 valid UTF-16 ascii-range characters + if nullcount == 3: + if sample[:3] == _null3: + return 'utf-32-be' + if sample[1:] == _null3: + return 'utf-32-le' + # Did not detect a valid UTF-32 ascii-range character + return None + + +def prepend_scheme_if_needed(url, new_scheme): + """Given a URL that may or may not have a scheme, prepend the given scheme. + Does not replace a present scheme with the one provided as an argument. + + :rtype: str + """ + scheme, netloc, path, params, query, fragment = urlparse(url, new_scheme) + + # urlparse is a finicky beast, and sometimes decides that there isn't a + # netloc present. Assume that it's being over-cautious, and switch netloc + # and path if urlparse decided there was no netloc. + if not netloc: + netloc, path = path, netloc + + return urlunparse((scheme, netloc, path, params, query, fragment)) + + +def get_auth_from_url(url): + """Given a url with authentication components, extract them into a tuple of + username,password. + + :rtype: (str,str) + """ + parsed = urlparse(url) + + try: + auth = (unquote(parsed.username), unquote(parsed.password)) + except (AttributeError, TypeError): + auth = ('', '') + + return auth + + +# Moved outside of function to avoid recompile every call +_CLEAN_HEADER_REGEX_BYTE = re.compile(b'^\\S[^\\r\\n]*$|^$') +_CLEAN_HEADER_REGEX_STR = re.compile(r'^\S[^\r\n]*$|^$') + + +def check_header_validity(header): + """Verifies that header value is a string which doesn't contain + leading whitespace or return characters. This prevents unintended + header injection. + + :param header: tuple, in the format (name, value). + """ + name, value = header + + if isinstance(value, bytes): + pat = _CLEAN_HEADER_REGEX_BYTE + else: + pat = _CLEAN_HEADER_REGEX_STR + try: + if not pat.match(value): + raise InvalidHeader("Invalid return character or leading space in header: %s" % name) + except TypeError: + raise InvalidHeader("Value for header {%s: %s} must be of type str or " + "bytes, not %s" % (name, value, type(value))) + + +def urldefragauth(url): + """ + Given a url remove the fragment and the authentication part. + + :rtype: str + """ + scheme, netloc, path, params, query, fragment = urlparse(url) + + # see func:`prepend_scheme_if_needed` + if not netloc: + netloc, path = path, netloc + + netloc = netloc.rsplit('@', 1)[-1] + + return urlunparse((scheme, netloc, path, params, query, '')) + + +def rewind_body(prepared_request): + """Move file pointer back to its recorded starting position + so it can be read again on redirect. + """ + body_seek = getattr(prepared_request.body, 'seek', None) + if body_seek is not None and isinstance(prepared_request._body_position, integer_types): + try: + body_seek(prepared_request._body_position) + except (IOError, OSError): + raise UnrewindableBodyError("An error occurred when rewinding request " + "body for redirect.") + else: + raise UnrewindableBodyError("Unable to rewind request body for redirect.") diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/resource.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/resource.py index b8265538f2788fee355b14354d55cce7fbbdcb04..f7a436ad98534cd2dc80491615c48d901c8842e7 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/resource.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/resource.py @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:65f80a4dfd28a833fb74577deebd00e8d412d1f9b37eaf402e459f8105c291b2 -size 20 +#Resources support diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/server.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/server.py index 2cb2b5c65a164074ab29ad59b197c250c022d286..6d1d4928f15524120cac20307da1f2c0b25a722b 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/server.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/server.py @@ -1,3 +1,580 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:729c5d45c4b4c934c63c4fdd3d17808b165f98572eb34c1a60f2de00ed052429 -size 22916 +# VFP Server +import os, sys, stat, select +import socket, select, struct +import threading +import time, calendar +import re +import VFP +import zeroconf + +class Watchdog: + def __init__(self, timeout, handler): + self._timeout = timeout + self._handler = handler + self._timeoutTime = -1 + self._due = False + + def reset(self): + self._timeoutTime = self._getTime() + self._timeout + self._due = False + + def start(self): + self._timeoutTime = self._getTime() + self._timeout + self._due = False + + def stop(self): + self._timeoutTime = -1 + self._due = False + + def isDue(self): + return self._due + + def poll(self): + if self._timeoutTime > 0: + now = self._getTime() + if now >= self._timeoutTime: + self._due = True + self._timeoutTime = now + self._timeout + if self._handler: + self._handler() + + # Time in seconds + def _getTime(self): + from datetime import datetime + dt = datetime.now() + return ((dt.hour * 60) + dt.minute) * 60 + dt.second + dt.microsecond / 1000000.0 + +class VfpServer: + + def __init__(self): + self.HOST = '' # Symbolic name meaning all available interfaces + self.PORT = 8081 # Arbitrary non-privileged port + self.BUFFERSIZE = 4096 + + self.PANEL_SVG = "./panel.svg" + self.LOG_NAME = "./server.log" + self.RESOURCE_DIR = "./" + + self.applianceName = "" + self.clientAddress = None + self.clientUserAgent = None + self.statusSocket = None + self.statusBuffer = "" + self.sessionState = {} + self.sessionHistory = {} + self.pollEvents = [] + + KEEPALIVE_INTERVAL = 10 + KEEPALIVE_TIMEOUT = 30 + + self.keepaliveTimer = Watchdog(KEEPALIVE_INTERVAL, self.keepaliveDue) + self.statusTimeout = Watchdog(KEEPALIVE_TIMEOUT, self.lostStatus) + + def processRequest (self, conn, addr) : + firstLine = "" + rangeLine = "" + rangeStart = None + rangeEnd = None + currentLine = "" + lines = []; + done = False + etag = "" + userAgent = "" + + #self.writelog("Receiving...") + conn.settimeout(5.0) + + connfile=conn.makefile('r', 1, encoding="utf8") + + while not done: + try: + data = connfile.readline() + currentLine = data.split('\r')[0] + currentLine = currentLine.split('\n')[0] + if currentLine != "": + if currentLine.startswith("User-Agent"): + self.writelog(currentLine) + userAgent = currentLine[12:] + if currentLine.startswith("Range"): + self.writelog(currentLine) + rangeLine = currentLine + if currentLine.startswith("If-None-Match"): + etag = currentLine[15:] + lines.append(currentLine) + elif firstLine == "": + firstLine = lines[0] + done = firstLine.startswith('GET') or firstLine.startswith('HEAD') + body = len(lines) + else: + done = True + except socket.timeout: + self.writelog("Socket Timeout") + conn.close() + return + except: + self.pollEvents.append((VFP.authorize, (False))) + self.writelog("Socket Error") + conn.close() + return + + conn.settimeout(None) + + if firstLine != "": + self.writelog(firstLine) + action = firstLine.split(' ')[0] + if action=='GET': + filename = firstLine.split(' ')[1] + if filename == '/' : + #Process a page reload. + if self.clientAddress == None or ("Proteus" in str(self.clientUserAgent)) or (self.clientAddress == addr and self.clientUserAgent == userAgent): + # If this is a new connection, or a reload from the same client then this is processed normally: + filename = 'panel.htm' + self.writelog("Client Address:"+str(addr)) + #Authorisation dealing with reload addresses + if self.clientAddress != addr or self.clientUserAgent != userAgent: + self.pollEvents.append((VFP.authorize, (False))) + + self.pollEvents.append((VFP.callReloadHandlers, ())) + + # Close any previous status connection and launch the status timeout. Anything that doesn't establish a + # status connection within the status timeout period will thus be disconnected. + self.clientAddress = addr + self.clientUserAgent = userAgent + self.statusBuffer = "" + self.closeStatus() + else: + # If an attempt is made to connection from another client without first closing the other, then send a 403: + conn.sendall("HTTP/1.1 403 FORBIDDEN\n".encode()) + conn.sendall("Content-Type: text/html\n\n".encode()) + conn.sendall("".encode()) + conn.sendall("Appliance In Use".encode()) + conn.sendall("

".encode()) + conn.sendall(("The '"+self.applianceName+"' is under the control of another client ["+str(self.clientAddress)+"].\n").encode()) + conn.sendall("

".encode()) + conn.sendall("".encode()) + conn.close() + self.writelog("Rejected connection from " +str(addr)) + return + + elif filename == '/status': + #Process a status request. + if self.clientAddress == addr and self.clientUserAgent == userAgent: + #We send a response header but then keep the connection + #open until we receive something to send to it from the Arduino + conn.sendall("HTTP/1.1 200 OK\n".encode()) + conn.sendall("Content-Type: text/plain\n".encode()) + conn.sendall("Connection: close\n".encode()) + conn.sendall("\n".encode()) + if len(self.statusBuffer) == 0: + self.openStatus(conn) + else: + conn.sendall(self.statusBuffer.encode()) + conn.close() + self.statusBuffer = "" + self.statusTimeout.reset() + else: + # Another client is trying to use the appliance: + self.writelog("Rejected client:"+str(addr)) + conn.sendall("HTTP/1.1 403 FORBIDDEN\n".encode()) + conn.sendall("Content-Type: text/plain\n".encode()) + conn.sendall("Connection: close\n".encode()) + conn.sendall("\n\n".encode()) + conn.close(); + return + elif filename == '/session': + if self.clientAddress == addr and self.clientUserAgent == userAgent: + #Process a session state request. + self.openStatus(conn) + self.sendState(conn) + self.closeStatus() + else: + # Another client is trying to use the appliance: + self.writelog("Rejected client:"+str(addr)) + conn.sendall("HTTP/1.1 403 FORBIDDEN\n".encode()) + conn.sendall("Content-Type: text/plain\n".encode()) + conn.sendall("Connection: close\n".encode()) + conn.sendall("\n\n".encode()) + conn.close(); + return + elif filename.startswith('/'): + filename = filename[1:] + if rangeLine != "": + m = re.match("[^=]*=([0-9]*)-([0-9]*)", rangeLine) + if m != None and len(m.group(1)) > 0: + rangeStart = int(m.group(1)) + if m != None and len(m.group(2)) > 0: + rangeEnd = int(m.group(2)) + self.sendFile(conn, filename, rangeStart, rangeEnd, etag) + + elif action=='POST' or action=='PUT' : + if self.clientAddress == addr and self.clientUserAgent == userAgent: + # Process messages from the client/browser. + # POST messages are passed on to the AVR, PUT messages merely update the session state. + conn.sendall("HTTP/1.1 200 OK\n".encode()) + conn.sendall("Content-Type: text/plain\n".encode()) + conn.sendall("Connection: close\n".encode()) + conn.sendall("\n".encode()) + for i in range(body, len(lines)): + currentLine = lines[i] + self.writelog(currentLine) + if len(currentLine) > 0: + if action=='POST': + self.writelog("EVENT:"+currentLine) + self.pollEvents.append((VFP.callEventHandlers, (currentLine))) + else: + self.writelog("RECORD:"+currentLine) + self.pollEvents.append((self.saveState, (currentLine))) + else: + # Another client is trying to use the appliance: + self.writelog("Rejected client:"+str(addr)) + conn.sendall("HTTP/1.1 403 FORBIDDEN\n".encode()) + conn.sendall("Content-Type: text/plain\n".encode()) + conn.sendall("Connection: close\n".encode()) + conn.sendall("\n\n".encode()) + conn.close(); + + + + conn.close() + + #Opens a requested file + def sendFile (self, conn, filename, start, end, etag): + #Records server acknowledgement + self.writelog("Sending file '"+filename+"'") + + #Tries to send the file + + #Cache control + try: + mtime = str(os.path.getmtime(filename)) + if start == None and end == None and len(etag) > 0 and etag == mtime: + conn.sendall("HTTP/1.1 304 Not Modified\n\n".encode()) + self.writelog("Cached") + return + except: + mtime = "" + + + try: + file = open(self.RESOURCE_DIR + filename, "rb") + + except: + file = None + conn.sendall("HTTP/1.1 404 Not Found\n".encode()) + conn.sendall("Content-Type: text/html\n\n".encode()) + conn.sendall("".encode()) + conn.sendall(" 404 NOT FOUND ".encode()) + conn.sendall("

".encode()) + conn.sendall((filename+" - file not found").encode()) + conn.sendall("

".encode()) + conn.sendall("".encode()) + self.writelog("File failed to send\n") + + if file != None: + data = file.read() + if start == None and end == None: + conn.sendall("HTTP/1.1 200 OK\n".encode()) + conn.sendall(("Content-Type: " + self.fileType(filename) + "\n").encode()) + conn.sendall("Accept-Ranges: bytes\n".encode()) + conn.sendall("Connection: close\n".encode()) + conn.sendall("Cache-Control: no-cache\n".encode()) + if len(mtime) > 0: + conn.sendall(("ETag: " + mtime + "\n").encode()) + conn.sendall(("Content-Length: "+str(len(data))+"\n\n").encode()) + conn.sendall(data) + self.writelog("Transfer successful") + else: + conn.sendall("HTTP/1.1 206 OK\n".encode()) + conn.sendall("Accept-Ranges: bytes\n".encode()) + conn.sendall("Connection: close\n".encode()) + conn.sendall("Cache-Control: no-cache\n".encode()) + if start == None: + start = len(data)-end + end = len(data)-1 + if end == None: + end = len(data)-1 + conn.sendall(("Content-Type: " + self.fileType(filename) + "\n").encode()) + conn.sendall(("Content-Range: bytes "+str(start)+"-"+str(end)+"/"+str(len(data))+"\n").encode()) + conn.sendall(("Content-Length: "+str(end-start+1)+"\n\n").encode()) + conn.sendall(data[start:end+1]) + self.writelog("Partial transfer successful") + file.close() + + #Send the session state (state variables of all controls) + def sendState(self, conn): + conn.sendall("HTTP/1.1 200 OK\n".encode()) + conn.sendall("Content-Type: text/plain\n".encode()) + conn.sendall("Connection: close\n".encode()) + conn.sendall("\n".encode()) + self.writelog("Sending session state") + for key in self.sessionState: + if not key.startswith('$.record'): + conn.sendall((key+'='+self.sessionState[key]+'\n').encode()) + for key in self.sessionHistory: + conn.sendall(self.sessionHistory[key].encode()); + + def fileType (self, filename): + parts = filename.split('.') + if (len(parts) > 1): + extn = parts[1]; + else: + extn = "" + if extn == "png": + filetype = "image/png" + elif extn == "gif": + filetype = "image/gif" + elif extn == "jpeg": + filetype = "image/jpeg" + elif extn == "jpg": + filetype = "image/jpeg" + elif extn == "svg": + filetype = "image/svg+xml" + elif extn == "js": + filetype = "application/javascript" + elif extn == "htm" or extn == "html": + filetype = "text/html" + elif extn == "txt": + filetype = "text/html" + elif extn == "css": + filetype = "text/css" + elif extn == "mp4": + filetype = "video/mp4" + else: + filetype = "application/octet-stream" + return filetype + + def pollStatus (self) : + data = "" + + self.keepaliveTimer.poll() + self.statusTimeout.poll() + + data = VFP.pollStatus() + + # If the keepalive timer has expired we need to send a keep alive packet + if len(data) == 0 and self.keepaliveTimer.isDue(): + self.writelog('Sending Keepalive'); + data = "$.keepalive\n" + self.keepaliveTimer.reset() + + # If we have a status connection then use it to send the data, + # otherwise we park it in a buffer unless the client has gone away. + if len(data) != 0: + if self.statusSocket != None: + try: + self.statusSocket.sendall(data.encode()) + except IOError: + pass + self.closeStatus() + elif self.statusTimeout != None: + self.statusBuffer += data + else: + self.statusBuffer = "" + + return + + # This is called when the client opens a reverse AJAX connection and we have nothing to send. + def openStatus (self, sock): + if self.statusSocket == None: + # New Connection + self.writelog("Client connected:"+str(sock.getpeername()[0])) + if self.statusSocket != None: + self.statusSocket.close() + self.statusSocket = sock + self.keepaliveTimer.start() + self.statusTimeout.stop() + + # This is called to close status connection because we want the client to process the information + # that we have written to it. At this point we start the a timeout timer, because we except to receive + # another status connection within this time frame. + def closeStatus (self): + if self.statusSocket != None: + self.statusSocket.close() + self.statusSocket = None + self.keepaliveTimer.stop() + self.statusTimeout.reset() + + # This is triggered if/when the keepalive timer triggers. + # It will cause the next call to pollStatus() to post a keepalive message and close the status pipe + # at which point the server should request a new one. + def keepaliveDue(self): + pass + + # If the statusTimeout timer triggers then we can assume that we have lost contact with the client. + def lostStatus(self): + VFP.authorize(False) + self.writelog("Client disconnected") + self.clientAddress = None + self.keepaliveTimer.stop() + self.statusTimeout.stop() + + # Update the recorded state data. + # Returns true is there is a state change which should be passed to the browser. + def saveState(self, msg): + m = re.match("([$a-zA-Z_][a-zA-Z0-9_\\.]*)\\s*=\\s*([^\\r\\n]*)", msg) + dirty = False + if m != None and len(m.groups()) == 2: + # State assignment and history functions: + key = m.group(1) + value = m.group(2) + if key.startswith("$.create"): + dirty = True; + elif key.startswith("$.record"): + # Start recording for control with id=value + id = value.replace('"', '') + self.sessionState["$.record."+id] = "1" + elif key.startswith("$.stop"): + # Stop recording for control with id=value + id = value.replace('"', '') + self.sessionState["$.record."+id] = "0" + elif key.startswith("$.erase"): + # Erase recorded history for control with id=value + id = value.replace('"', '') + self.sessionHistory.pop(id, None) + elif not key in self.sessionState or self.sessionState[key] != value: + # Normal state assignment + self.sessionState[key] = value + dirty = True + else: + # Ordinary JS method call of form . () + id = msg.split('.')[0] + if self.sessionState.get("$.record."+id, '0') == '1': + h = self.sessionHistory.get(id, '')+msg+'\n'; + self.sessionHistory[id] = h + dirty = True; + return dirty + + def writelog(self, msg): + if os.path.exists(self.LOG_NAME): + log = open(self.LOG_NAME, "a+") + log.write(msg+'\n'); + log.close() + #print(msg) + + def get_ip_address(self, ifname): + s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + return socket.inet_ntoa(fcntl.ioctl( + s.fileno(), + 0x8915, # SIOCGIFADDR + struct.pack('256s', ifname[:15]) + )[20:24]) + + def configure (self, title): + zeroconf.registerService(title, "_vfpserver._tcp", "local", self.PORT) + + def begin(self, port): + # Set the PORT if specified on the command line: + if port > 0: + self.PORT = port + + # Extract the project title from panel.svg + # This should work using the XML library but the parser library is missing on the Yun Board. + from html.parser import HTMLParser + class SvgParser(HTMLParser): + def __init__(self): + HTMLParser.__init__(self) + self.title = 'Virtual Front Panel' + + def handle_starttag(self, tag, attrs): + if (tag == "svg"): + for attr in attrs: + if attr[0] == 'vfp:title': + self.title = attr[1] + + # instantiate the parser and fed it some HTML + try: + parser = SvgParser() + file = open(self.PANEL_SVG) + parser.feed(file.read()) + file.close() + self.applianceName = parser.title + self.writelog("Configuring '"+parser.title+"'") + + #Perform configuration operations: + self.configure(parser.title) + + except: + self.writelog("Can't open "+self.PANEL_SVG) + + #Create, bind and listen on the socket: + self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + self.sock.bind((self.HOST, self.PORT)) + self.sock.listen(4) + + # Have we got wlan0: + try: + ipAddr = get_ip_address('wlan0') + self.writelog("Listening on wlan0:"+ipAddr+":"+str(self.PORT)) + except: + self.writelog("No IP for wlan0") + + # Have we got eth0: + try: + ipAddr = get_ip_address('eth0') + self.writelog("Listening on eth0:"+ipAddr+":"+str(self.PORT)) + except: + self.writelog("No IP for eth0") + + # Have we got eth1: + try: + ipAddr = get_ip_address('eth1') + self.writelog("Listening on eth1:"+ipAddr+":"+str(self.PORT)) + except: + self.writelog("No IP for eth1") + + serverThread = ServerThread() + serverThread.server = self + serverThread.start() + + def poll(self): + # Handle stored events + while len(self.pollEvents) > 0: + event = self.pollEvents.pop(0) + if type(event[1]) == tuple or type(event[1]) == list: + event[0](*event[1]) # Expand arguments list + else: + event[0](event[1]) + + def setTitle(self, title): + VFP.setTitle(title) + + def debug(self, *args): + if args: + _delimiter = "," + print(_delimiter.join(str(x) for x in args), "\n") + + def waitForRequests(self, delayms): + endTime = time.time() + delayms / 1000.0 + while time.time() < endTime: + self.poll() + time.sleep(0.001) # Sleep for 1ms + + def waitForTimeServer(self): + #TBD + pass + + def attachReloadHandler(self, handler): + VFP.attachReloadHandler(handler) + + def attachLoginHandler(self, handler): + VFP.attachLoginHandler(handler) + + def attachLogoutHandler(self, handler): + VFP.attachLogoutHandler(handler) + + def attachRequestHandler(self, handler): + VFP.attachRequestHandler(handler) + + +class ServerThread(threading.Thread): + def run(self): + while True: + self.server.pollStatus() + self.server.sock.setblocking(False); + try: + conn, addr = self.server.sock.accept() + self.server.processRequest(conn, addr[0]); + except socket.error: + #No connection + pass diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/sn3218.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/sn3218.py index 917920597bd9c1fb385f340f56809fc555b40c3a..41b293a5980b77820874d9bc7f6bbe1f5d6f8d93 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/sn3218.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/sn3218.py @@ -1,3 +1,166 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f6c201674715130b080d1d7ac296213f1879aab787b9bf3a38e9f22618b34168 -size 4708 +import sys + +try: + from smbus import SMBus +except ImportError: + if sys.version_info[0] < 3: + raise ImportError("This library requires python-smbus\nInstall with: sudo apt install python-smbus") + elif sys.version_info[0] == 3: + raise ImportError("This library requires python3-smbus\nInstall with: sudo apt install python3-smbus") + +__version__ = '1.2.7' + +I2C_ADDRESS = 0x54 +CMD_ENABLE_OUTPUT = 0x00 +CMD_SET_PWM_VALUES = 0x01 +CMD_ENABLE_LEDS = 0x13 +CMD_UPDATE = 0x16 +CMD_RESET = 0x17 + + +def i2c_bus_id(): + revision = ([l[12:-1] for l in open('/proc/cpuinfo', 'r').readlines() if l[:8] == "Revision"]+['0000'])[0] + return 1 if int(revision, 16) >= 4 else 0 + + +def enable(): + """ + Enables output. + """ + i2c.write_i2c_block_data(I2C_ADDRESS, CMD_ENABLE_OUTPUT, [0x01]) + + +def disable(): + """ + Disables output. + """ + i2c.write_i2c_block_data(I2C_ADDRESS, CMD_ENABLE_OUTPUT, [0x00]) + + +def reset(): + """ + Resets all internal registers. + """ + i2c.write_i2c_block_data(I2C_ADDRESS, CMD_RESET, [0xFF]) + + +def enable_leds(enable_mask): + """ + Enables or disables each LED channel. The first 18 bit values are + used to determine the state of each channel (1=on, 0=off) if fewer + than 18 bits are provided the remaining channels are turned off. + + Args: + enable_mask (int): up to 18 bits of data + Raises: + TypeError: if enable_mask is not an integer. + """ + if type(enable_mask) is not int: + raise TypeError("enable_mask must be an integer") + + i2c.write_i2c_block_data(I2C_ADDRESS, CMD_ENABLE_LEDS, + [enable_mask & 0x3F, (enable_mask >> 6) & 0x3F, (enable_mask >> 12) & 0X3F]) + i2c.write_i2c_block_data(I2C_ADDRESS, CMD_UPDATE, [0xFF]) + + +def channel_gamma(channel, gamma_table): + """ + Overrides the gamma table for a single channel. + + Args: + channel (int): channel number + gamma_table (list): list of 256 gamma correction values + Raises: + TypeError: if channel is not an integer. + ValueError: if channel is not in the range 0..17. + TypeError: if gamma_table is not a list. + """ + global channel_gamma_table + + if type(channel) is not int: + raise TypeError("channel must be an integer") + + if channel not in range(18): + raise ValueError("channel be an integer in the range 0..17") + + if type(gamma_table) is not list or len(gamma_table) != 256: + raise TypeError("gamma_table must be a list of 256 integers") + + channel_gamma_table[channel] = gamma_table + + +def output(values): + """ + Outputs a new set of values to the driver + + Args: + values (list): channel number + Raises: + TypeError: if values is not a list. + """ + if type(values) is not list or len(values) != 18: + raise TypeError("values must be a list of 18 integers") + + i2c.write_i2c_block_data(I2C_ADDRESS, CMD_SET_PWM_VALUES, [channel_gamma_table[i][values[i]] for i in range(18)]) + i2c.write_i2c_block_data(I2C_ADDRESS, CMD_UPDATE, [0xFF]) + + +i2c = SMBus(i2c_bus_id()) + +# generate a good default gamma table +default_gamma_table = [int(pow(255, float(i - 1) / 255)) for i in range(256)] +channel_gamma_table = [default_gamma_table] * 18 + +enable_leds(0b111111111111111111) + +if __name__ == "__main__": + print("sn3218 test cycles") + + import time + import math + + # enable output + enable() + enable_leds(0b111111111111111111) + + print(">> test enable mask (on/off)") + enable_mask = 0b000000000000000000 + output([0x10] * 18) + for i in range(10): + enable_mask = ~enable_mask + enable_leds(enable_mask) + time.sleep(0.15) + + print(">> test enable mask (odd/even)") + enable_mask = 0b101010101010101010 + output([0x10] * 18) + for i in range(10): + enable_mask = ~enable_mask + enable_leds(enable_mask) + time.sleep(0.15) + + print(">> test enable mask (rotate)") + enable_mask = 0b100000100000100000 + output([0x10] * 18) + for i in range(10): + enable_mask = ((enable_mask & 0x01) << 18) | enable_mask >> 1 + enable_leds(enable_mask) + time.sleep(0.15) + + print(">> test gamma gradient") + enable_mask = 0b111111111111111111 + enable_leds(enable_mask) + for i in range(256): + output([((j * (256//18)) + (i * (256//18))) % 256 for j in range(18)]) + time.sleep(0.01) + + print(">> test gamma fade") + enable_mask = 0b111111111111111111 + enable_leds(enable_mask) + for i in range(512): + output([int((math.sin(float(i)/64.0) + 1.0) * 128.0)]*18) + time.sleep(0.01) + + # turn everything off and disable output + output([0 for i in range(18)]) + disable() diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/stddef.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/stddef.py index 70bcebd5b3101123076e651ebd2cf03e541e299f..d10976fd5deec55ff269afd065506eaecb261c38 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/stddef.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/stddef.py @@ -1,3 +1,155 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:03fe08b4d55a3e4e1cabb505ea27cfbe3594c32d2efe617a4149c6172fdd7f9e -size 2481 +# Standard functions + +from datetime import datetime +import time as _time +import math + +# General Functions + +def toInt(val): + return int(val) + +def toFloat(val): + return float(val) + +def toString(val): + return str(val) + + +# String Functions + +def left(s, c): + return s[:c] + +def right(s, c): + return s[len(s)-c:] + +def sub(s,b,n): + return s[b:n] + +def upper(s): + return s.upper() + +def lower(s): + return s.lower() + + +# Math Functions + +def fabs(val): + return math.fabs(val) + +def fmin(a, b): + return min(a, b) + +def fmax(a, b): + return max(a, b) + +def ceil(val): + return math.ceil(val) + +def floor(val): + return math.floor(val) + +def sqrt(val): + return math.sqrt(val) + +def log(val): + return math.log(val) + +def log10(val): + return math.log10(val) + +def exp(val): + return math.exp(val) + +def pow(x, y): + return math.pow(x, y) + +def sin(x): + return math.sin(x) + +def cos(x): + return math.cos(x) + +def tan(x): + return math.tan(x) + +def asin(x): + return math.asin(x) + +def acos(x): + return math.acos(x) + +def atan(x): + return math.atan(x) + +def degrees(x): + return math.degrees(x) + +def radians(x): + return math.radians(x) + + +# Date Time Functions + +def millis(): + return int(round(_time.time() * 1000)) + +def now(): + return datetime.today() + +def date(t): + return t.strftime("%Y-%m-%d") + +def time(t): + return t.strftime("%H:%M:%S") + +def dateTime(t): + return t.strftime("%Y-%m-%d %H:%M:%S") + +def makeTime(year, month, day, hour, minute, second): + newtime = _time.mktime({year, month, day, hour, minute, second, 0, 1, -1}) + # TBD: Set current time + +def tmHour(t): + return t.hour + +def tmMinute(t): + return t.minute + +def tmSecond(t): + return t.second + +def tmMonth(t): + return t.month + +def tmYear(t): + return t.year + +def tmDay(t): + return t.day + +def tmWeekDay(t): + return t.weekday() + +def monthName(month): + return _time.strftime("%B", _time.strptime(str(month), "%m")) + +def dayName(day): + day+=1 + while day >= 7: + day -= 7 + return _time.strftime("%A", _time.strptime(str(day), "%w")) + +def shortMonthName(month): + return _time.strftime("%b", _time.strptime(str(month), "%m")) + +def shortDayName(day): + day+=1 + while day >= 7: + day -= 7 + return _time.strftime("%a", _time.strptime(str(day), "%w")) + +def sleep(s): + _time.sleep(s) \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/timer.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/timer.py index 4334ed07accbd0cb05afc187878df98b077ae927..aa2e18681774ba1a91cac5a7a1105f26847a4dbc 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/timer.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/timer.py @@ -1,3 +1,56 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d95dc51fcb61b2beffd32d8e1e0992b3ad044e206db02d085c4659893024c5e -size 1233 +import time + +class Timer: + _period = -1 + _running = False + _now = int(round(time.time() * 1000)) + _time = 0 + _counter = 0 + _hook = None + + def initialize(self, period): + self._period = period + + def setPeriod(self, period): + if period > 0: + self._period = period + + def start(self): + if not self._running: + self._time = self._now + if (self._period > 0): + self._running = True + + def stop(self): + self._running = False + + def restart(self): + self._counter = 0 + self.start() + + def resume(self): + if (self._period > 0): + self._running = True + + def read(self): + return self._counter + + def attachInterrupt(self, hook, period=-1): + self._hook = hook; + self.setPeriod(period) + + # Event handler + def _eventHandler(self): + self._counter+=1 + # Restart + self.start() + if (self._hook): + self._hook() + + def poll(self): + self._now = int(round(time.time() * 1000)) + if self._running: + passed = self._now - self._time + if passed > self._period: + self._time += self._period + self._eventHandler() diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/__init__.py index baca7981882442b276c78dac2be4cfe3224e6b04..d500ce091ed789e2926beaf9abfff63f7e35ac72 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/__init__.py @@ -1,3 +1,86 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:563ddf9ef61af8c93461888aa5856ee3289ad22e5a3db4b0b262444c76cb4bd6 -size 2683 +""" +urllib3 - Thread-safe connection pooling and re-using. +""" +from __future__ import absolute_import +import warnings + +from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url + +from . import exceptions +from .filepost import encode_multipart_formdata +from .poolmanager import PoolManager, ProxyManager, proxy_from_url +from .response import HTTPResponse +from .util.request import make_headers +from .util.url import get_host +from .util.timeout import Timeout +from .util.retry import Retry + + +# Set default logging handler to avoid "No handler found" warnings. +import logging +from logging import NullHandler + +__author__ = "Andrey Petrov (andrey.petrov@shazow.net)" +__license__ = "MIT" +__version__ = "1.25.5" + +__all__ = ( + "HTTPConnectionPool", + "HTTPSConnectionPool", + "PoolManager", + "ProxyManager", + "HTTPResponse", + "Retry", + "Timeout", + "add_stderr_logger", + "connection_from_url", + "disable_warnings", + "encode_multipart_formdata", + "get_host", + "make_headers", + "proxy_from_url", +) + +logging.getLogger(__name__).addHandler(NullHandler()) + + +def add_stderr_logger(level=logging.DEBUG): + """ + Helper for quickly adding a StreamHandler to the logger. Useful for + debugging. + + Returns the handler after adding it. + """ + # This method needs to be in this __init__.py to get the __name__ correct + # even if urllib3 is vendored within another package. + logger = logging.getLogger(__name__) + handler = logging.StreamHandler() + handler.setFormatter(logging.Formatter("%(asctime)s %(levelname)s %(message)s")) + logger.addHandler(handler) + logger.setLevel(level) + logger.debug("Added a stderr logging handler to logger: %s", __name__) + return handler + + +# ... Clean up. +del NullHandler + + +# All warning filters *must* be appended unless you're really certain that they +# shouldn't be: otherwise, it's very hard for users to use most Python +# mechanisms to silence them. +# SecurityWarning's always go off by default. +warnings.simplefilter("always", exceptions.SecurityWarning, append=True) +# SubjectAltNameWarning's should go off once per host +warnings.simplefilter("default", exceptions.SubjectAltNameWarning, append=True) +# InsecurePlatformWarning's don't vary between requests, so we keep it default. +warnings.simplefilter("default", exceptions.InsecurePlatformWarning, append=True) +# SNIMissingWarnings should go off only once. +warnings.simplefilter("default", exceptions.SNIMissingWarning, append=True) + + +def disable_warnings(category=exceptions.HTTPWarning): + """ + Helper for quickly disabling all urllib3 warnings. + """ + warnings.simplefilter("ignore", category) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/_collections.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/_collections.py index 83e56a15e7141e4bf9389828fb385293804c12e6..019d1511d56b977ac3b396100d2d3ce353acea45 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/_collections.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/_collections.py @@ -1,3 +1,336 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1a8b95b0dcf083a8c00d94e68a6308ea8aa6c0a4acc27328f5d879b4635558ee -size 10792 +from __future__ import absolute_import + +try: + from collections.abc import Mapping, MutableMapping +except ImportError: + from collections import Mapping, MutableMapping +try: + from threading import RLock +except ImportError: # Platform-specific: No threads available + + class RLock: + def __enter__(self): + pass + + def __exit__(self, exc_type, exc_value, traceback): + pass + + +from collections import OrderedDict +from .exceptions import InvalidHeader +from .packages.six import iterkeys, itervalues, PY3 + + +__all__ = ["RecentlyUsedContainer", "HTTPHeaderDict"] + + +_Null = object() + + +class RecentlyUsedContainer(MutableMapping): + """ + Provides a thread-safe dict-like container which maintains up to + ``maxsize`` keys while throwing away the least-recently-used keys beyond + ``maxsize``. + + :param maxsize: + Maximum number of recent elements to retain. + + :param dispose_func: + Every time an item is evicted from the container, + ``dispose_func(value)`` is called. Callback which will get called + """ + + ContainerCls = OrderedDict + + def __init__(self, maxsize=10, dispose_func=None): + self._maxsize = maxsize + self.dispose_func = dispose_func + + self._container = self.ContainerCls() + self.lock = RLock() + + def __getitem__(self, key): + # Re-insert the item, moving it to the end of the eviction line. + with self.lock: + item = self._container.pop(key) + self._container[key] = item + return item + + def __setitem__(self, key, value): + evicted_value = _Null + with self.lock: + # Possibly evict the existing value of 'key' + evicted_value = self._container.get(key, _Null) + self._container[key] = value + + # If we didn't evict an existing value, we might have to evict the + # least recently used item from the beginning of the container. + if len(self._container) > self._maxsize: + _key, evicted_value = self._container.popitem(last=False) + + if self.dispose_func and evicted_value is not _Null: + self.dispose_func(evicted_value) + + def __delitem__(self, key): + with self.lock: + value = self._container.pop(key) + + if self.dispose_func: + self.dispose_func(value) + + def __len__(self): + with self.lock: + return len(self._container) + + def __iter__(self): + raise NotImplementedError( + "Iteration over this class is unlikely to be threadsafe." + ) + + def clear(self): + with self.lock: + # Copy pointers to all values, then wipe the mapping + values = list(itervalues(self._container)) + self._container.clear() + + if self.dispose_func: + for value in values: + self.dispose_func(value) + + def keys(self): + with self.lock: + return list(iterkeys(self._container)) + + +class HTTPHeaderDict(MutableMapping): + """ + :param headers: + An iterable of field-value pairs. Must not contain multiple field names + when compared case-insensitively. + + :param kwargs: + Additional field-value pairs to pass in to ``dict.update``. + + A ``dict`` like container for storing HTTP Headers. + + Field names are stored and compared case-insensitively in compliance with + RFC 7230. Iteration provides the first case-sensitive key seen for each + case-insensitive pair. + + Using ``__setitem__`` syntax overwrites fields that compare equal + case-insensitively in order to maintain ``dict``'s api. For fields that + compare equal, instead create a new ``HTTPHeaderDict`` and use ``.add`` + in a loop. + + If multiple fields that are equal case-insensitively are passed to the + constructor or ``.update``, the behavior is undefined and some will be + lost. + + >>> headers = HTTPHeaderDict() + >>> headers.add('Set-Cookie', 'foo=bar') + >>> headers.add('set-cookie', 'baz=quxx') + >>> headers['content-length'] = '7' + >>> headers['SET-cookie'] + 'foo=bar, baz=quxx' + >>> headers['Content-Length'] + '7' + """ + + def __init__(self, headers=None, **kwargs): + super(HTTPHeaderDict, self).__init__() + self._container = OrderedDict() + if headers is not None: + if isinstance(headers, HTTPHeaderDict): + self._copy_from(headers) + else: + self.extend(headers) + if kwargs: + self.extend(kwargs) + + def __setitem__(self, key, val): + self._container[key.lower()] = [key, val] + return self._container[key.lower()] + + def __getitem__(self, key): + val = self._container[key.lower()] + return ", ".join(val[1:]) + + def __delitem__(self, key): + del self._container[key.lower()] + + def __contains__(self, key): + return key.lower() in self._container + + def __eq__(self, other): + if not isinstance(other, Mapping) and not hasattr(other, "keys"): + return False + if not isinstance(other, type(self)): + other = type(self)(other) + return dict((k.lower(), v) for k, v in self.itermerged()) == dict( + (k.lower(), v) for k, v in other.itermerged() + ) + + def __ne__(self, other): + return not self.__eq__(other) + + if not PY3: # Python 2 + iterkeys = MutableMapping.iterkeys + itervalues = MutableMapping.itervalues + + __marker = object() + + def __len__(self): + return len(self._container) + + def __iter__(self): + # Only provide the originally cased names + for vals in self._container.values(): + yield vals[0] + + def pop(self, key, default=__marker): + """D.pop(k[,d]) -> v, remove specified key and return the corresponding value. + If key is not found, d is returned if given, otherwise KeyError is raised. + """ + # Using the MutableMapping function directly fails due to the private marker. + # Using ordinary dict.pop would expose the internal structures. + # So let's reinvent the wheel. + try: + value = self[key] + except KeyError: + if default is self.__marker: + raise + return default + else: + del self[key] + return value + + def discard(self, key): + try: + del self[key] + except KeyError: + pass + + def add(self, key, val): + """Adds a (name, value) pair, doesn't overwrite the value if it already + exists. + + >>> headers = HTTPHeaderDict(foo='bar') + >>> headers.add('Foo', 'baz') + >>> headers['foo'] + 'bar, baz' + """ + key_lower = key.lower() + new_vals = [key, val] + # Keep the common case aka no item present as fast as possible + vals = self._container.setdefault(key_lower, new_vals) + if new_vals is not vals: + vals.append(val) + + def extend(self, *args, **kwargs): + """Generic import function for any type of header-like object. + Adapted version of MutableMapping.update in order to insert items + with self.add instead of self.__setitem__ + """ + if len(args) > 1: + raise TypeError( + "extend() takes at most 1 positional " + "arguments ({0} given)".format(len(args)) + ) + other = args[0] if len(args) >= 1 else () + + if isinstance(other, HTTPHeaderDict): + for key, val in other.iteritems(): + self.add(key, val) + elif isinstance(other, Mapping): + for key in other: + self.add(key, other[key]) + elif hasattr(other, "keys"): + for key in other.keys(): + self.add(key, other[key]) + else: + for key, value in other: + self.add(key, value) + + for key, value in kwargs.items(): + self.add(key, value) + + def getlist(self, key, default=__marker): + """Returns a list of all the values for the named field. Returns an + empty list if the key doesn't exist.""" + try: + vals = self._container[key.lower()] + except KeyError: + if default is self.__marker: + return [] + return default + else: + return vals[1:] + + # Backwards compatibility for httplib + getheaders = getlist + getallmatchingheaders = getlist + iget = getlist + + # Backwards compatibility for http.cookiejar + get_all = getlist + + def __repr__(self): + return "%s(%s)" % (type(self).__name__, dict(self.itermerged())) + + def _copy_from(self, other): + for key in other: + val = other.getlist(key) + if isinstance(val, list): + # Don't need to convert tuples + val = list(val) + self._container[key.lower()] = [key] + val + + def copy(self): + clone = type(self)() + clone._copy_from(self) + return clone + + def iteritems(self): + """Iterate over all header lines, including duplicate ones.""" + for key in self: + vals = self._container[key.lower()] + for val in vals[1:]: + yield vals[0], val + + def itermerged(self): + """Iterate over all headers, merging duplicate ones together.""" + for key in self: + val = self._container[key.lower()] + yield val[0], ", ".join(val[1:]) + + def items(self): + return list(self.iteritems()) + + @classmethod + def from_httplib(cls, message): # Python 2 + """Read headers from a Python 2 httplib message object.""" + # python2.7 does not expose a proper API for exporting multiheaders + # efficiently. This function re-reads raw lines from the message + # object and extracts the multiheaders properly. + obs_fold_continued_leaders = (" ", "\t") + headers = [] + + for line in message.headers: + if line.startswith(obs_fold_continued_leaders): + if not headers: + # We received a header line that starts with OWS as described + # in RFC-7230 S3.2.4. This indicates a multiline header, but + # there exists no previous header to which we can attach it. + raise InvalidHeader( + "Header continuation with no previous header: %s" % line + ) + else: + key, value = headers[-1] + headers[-1] = (key, value + " " + line.strip()) + continue + + key, value = line.split(":", 1) + headers.append((key, value.strip())) + + return cls(headers) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/connection.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/connection.py index 8dbb0fd79242fdcab9563186c6bb06ad77c08231..3eeb1af58edd4861d7b898a621fb00069325624f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/connection.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/connection.py @@ -1,3 +1,448 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a7bb945a1ddc3f48608daf1f165cdf66fc15c6f8896bcf82e5cc7d1b7c10e7ea -size 15170 +from __future__ import absolute_import +import datetime +import logging +import os +import socket +from socket import error as SocketError, timeout as SocketTimeout +import warnings +from .packages import six +from .packages.six.moves.http_client import HTTPConnection as _HTTPConnection +from .packages.six.moves.http_client import HTTPException # noqa: F401 + +try: # Compiled with SSL? + import ssl + + BaseSSLError = ssl.SSLError +except (ImportError, AttributeError): # Platform-specific: No SSL. + ssl = None + + class BaseSSLError(BaseException): + pass + + +try: + # Python 3: not a no-op, we're adding this to the namespace so it can be imported. + ConnectionError = ConnectionError +except NameError: + # Python 2 + class ConnectionError(Exception): + pass + + +from .exceptions import ( + NewConnectionError, + ConnectTimeoutError, + SubjectAltNameWarning, + SystemTimeWarning, +) +from .packages.ssl_match_hostname import match_hostname, CertificateError + +from .util.ssl_ import ( + resolve_cert_reqs, + resolve_ssl_version, + assert_fingerprint, + create_urllib3_context, + ssl_wrap_socket, +) + + +from .util import connection + +from ._collections import HTTPHeaderDict + +log = logging.getLogger(__name__) + +port_by_scheme = {"http": 80, "https": 443} + +# When it comes time to update this value as a part of regular maintenance +# (ie test_recent_date is failing) update it to ~6 months before the current date. +RECENT_DATE = datetime.date(2019, 1, 1) + + +class DummyConnection(object): + """Used to detect a failed ConnectionCls import.""" + + pass + + +class HTTPConnection(_HTTPConnection, object): + """ + Based on httplib.HTTPConnection but provides an extra constructor + backwards-compatibility layer between older and newer Pythons. + + Additional keyword parameters are used to configure attributes of the connection. + Accepted parameters include: + + - ``strict``: See the documentation on :class:`urllib3.connectionpool.HTTPConnectionPool` + - ``source_address``: Set the source address for the current connection. + - ``socket_options``: Set specific options on the underlying socket. If not specified, then + defaults are loaded from ``HTTPConnection.default_socket_options`` which includes disabling + Nagle's algorithm (sets TCP_NODELAY to 1) unless the connection is behind a proxy. + + For example, if you wish to enable TCP Keep Alive in addition to the defaults, + you might pass:: + + HTTPConnection.default_socket_options + [ + (socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1), + ] + + Or you may want to disable the defaults by passing an empty list (e.g., ``[]``). + """ + + default_port = port_by_scheme["http"] + + #: Disable Nagle's algorithm by default. + #: ``[(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)]`` + default_socket_options = [(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)] + + #: Whether this connection verifies the host's certificate. + is_verified = False + + def __init__(self, *args, **kw): + if not six.PY2: + kw.pop("strict", None) + + # Pre-set source_address. + self.source_address = kw.get("source_address") + + #: The socket options provided by the user. If no options are + #: provided, we use the default options. + self.socket_options = kw.pop("socket_options", self.default_socket_options) + + _HTTPConnection.__init__(self, *args, **kw) + + @property + def host(self): + """ + Getter method to remove any trailing dots that indicate the hostname is an FQDN. + + In general, SSL certificates don't include the trailing dot indicating a + fully-qualified domain name, and thus, they don't validate properly when + checked against a domain name that includes the dot. In addition, some + servers may not expect to receive the trailing dot when provided. + + However, the hostname with trailing dot is critical to DNS resolution; doing a + lookup with the trailing dot will properly only resolve the appropriate FQDN, + whereas a lookup without a trailing dot will search the system's search domain + list. Thus, it's important to keep the original host around for use only in + those cases where it's appropriate (i.e., when doing DNS lookup to establish the + actual TCP connection across which we're going to send HTTP requests). + """ + return self._dns_host.rstrip(".") + + @host.setter + def host(self, value): + """ + Setter for the `host` property. + + We assume that only urllib3 uses the _dns_host attribute; httplib itself + only uses `host`, and it seems reasonable that other libraries follow suit. + """ + self._dns_host = value + + def _new_conn(self): + """ Establish a socket connection and set nodelay settings on it. + + :return: New socket connection. + """ + extra_kw = {} + if self.source_address: + extra_kw["source_address"] = self.source_address + + if self.socket_options: + extra_kw["socket_options"] = self.socket_options + + try: + conn = connection.create_connection( + (self._dns_host, self.port), self.timeout, **extra_kw + ) + + except SocketTimeout: + raise ConnectTimeoutError( + self, + "Connection to %s timed out. (connect timeout=%s)" + % (self.host, self.timeout), + ) + + except SocketError as e: + raise NewConnectionError( + self, "Failed to establish a new connection: %s" % e + ) + + return conn + + def _prepare_conn(self, conn): + self.sock = conn + # Google App Engine's httplib does not define _tunnel_host + if getattr(self, "_tunnel_host", None): + # TODO: Fix tunnel so it doesn't depend on self.sock state. + self._tunnel() + # Mark this connection as not reusable + self.auto_open = 0 + + def connect(self): + conn = self._new_conn() + self._prepare_conn(conn) + + def request_chunked(self, method, url, body=None, headers=None): + """ + Alternative to the common request method, which sends the + body with chunked encoding and not as one block + """ + headers = HTTPHeaderDict(headers if headers is not None else {}) + skip_accept_encoding = "accept-encoding" in headers + skip_host = "host" in headers + self.putrequest( + method, url, skip_accept_encoding=skip_accept_encoding, skip_host=skip_host + ) + for header, value in headers.items(): + self.putheader(header, value) + if "transfer-encoding" not in headers: + self.putheader("Transfer-Encoding", "chunked") + self.endheaders() + + if body is not None: + stringish_types = six.string_types + (bytes,) + if isinstance(body, stringish_types): + body = (body,) + for chunk in body: + if not chunk: + continue + if not isinstance(chunk, bytes): + chunk = chunk.encode("utf8") + len_str = hex(len(chunk))[2:] + self.send(len_str.encode("utf-8")) + self.send(b"\r\n") + self.send(chunk) + self.send(b"\r\n") + + # After the if clause, to always have a closed body + self.send(b"0\r\n\r\n") + + +class HTTPSConnection(HTTPConnection): + default_port = port_by_scheme["https"] + + ssl_version = None + + def __init__( + self, + host, + port=None, + key_file=None, + cert_file=None, + key_password=None, + strict=None, + timeout=socket._GLOBAL_DEFAULT_TIMEOUT, + ssl_context=None, + server_hostname=None, + **kw + ): + + HTTPConnection.__init__(self, host, port, strict=strict, timeout=timeout, **kw) + + self.key_file = key_file + self.cert_file = cert_file + self.key_password = key_password + self.ssl_context = ssl_context + self.server_hostname = server_hostname + + # Required property for Google AppEngine 1.9.0 which otherwise causes + # HTTPS requests to go out as HTTP. (See Issue #356) + self._protocol = "https" + + def connect(self): + conn = self._new_conn() + self._prepare_conn(conn) + + # Wrap socket using verification with the root certs in + # trusted_root_certs + default_ssl_context = False + if self.ssl_context is None: + default_ssl_context = True + self.ssl_context = create_urllib3_context( + ssl_version=resolve_ssl_version(self.ssl_version), + cert_reqs=resolve_cert_reqs(self.cert_reqs), + ) + + # Try to load OS default certs if none are given. + # Works well on Windows (requires Python3.4+) + context = self.ssl_context + if ( + not self.ca_certs + and not self.ca_cert_dir + and default_ssl_context + and hasattr(context, "load_default_certs") + ): + context.load_default_certs() + + self.sock = ssl_wrap_socket( + sock=conn, + keyfile=self.key_file, + certfile=self.cert_file, + key_password=self.key_password, + ssl_context=self.ssl_context, + server_hostname=self.server_hostname, + ) + + +class VerifiedHTTPSConnection(HTTPSConnection): + """ + Based on httplib.HTTPSConnection but wraps the socket with + SSL certification. + """ + + cert_reqs = None + ca_certs = None + ca_cert_dir = None + ssl_version = None + assert_fingerprint = None + + def set_cert( + self, + key_file=None, + cert_file=None, + cert_reqs=None, + key_password=None, + ca_certs=None, + assert_hostname=None, + assert_fingerprint=None, + ca_cert_dir=None, + ): + """ + This method should only be called once, before the connection is used. + """ + # If cert_reqs is not provided we'll assume CERT_REQUIRED unless we also + # have an SSLContext object in which case we'll use its verify_mode. + if cert_reqs is None: + if self.ssl_context is not None: + cert_reqs = self.ssl_context.verify_mode + else: + cert_reqs = resolve_cert_reqs(None) + + self.key_file = key_file + self.cert_file = cert_file + self.cert_reqs = cert_reqs + self.key_password = key_password + self.assert_hostname = assert_hostname + self.assert_fingerprint = assert_fingerprint + self.ca_certs = ca_certs and os.path.expanduser(ca_certs) + self.ca_cert_dir = ca_cert_dir and os.path.expanduser(ca_cert_dir) + + def connect(self): + # Add certificate verification + conn = self._new_conn() + hostname = self.host + + # Google App Engine's httplib does not define _tunnel_host + if getattr(self, "_tunnel_host", None): + self.sock = conn + # Calls self._set_hostport(), so self.host is + # self._tunnel_host below. + self._tunnel() + # Mark this connection as not reusable + self.auto_open = 0 + + # Override the host with the one we're requesting data from. + hostname = self._tunnel_host + + server_hostname = hostname + if self.server_hostname is not None: + server_hostname = self.server_hostname + + is_time_off = datetime.date.today() < RECENT_DATE + if is_time_off: + warnings.warn( + ( + "System time is way off (before {0}). This will probably " + "lead to SSL verification errors" + ).format(RECENT_DATE), + SystemTimeWarning, + ) + + # Wrap socket using verification with the root certs in + # trusted_root_certs + default_ssl_context = False + if self.ssl_context is None: + default_ssl_context = True + self.ssl_context = create_urllib3_context( + ssl_version=resolve_ssl_version(self.ssl_version), + cert_reqs=resolve_cert_reqs(self.cert_reqs), + ) + + context = self.ssl_context + context.verify_mode = resolve_cert_reqs(self.cert_reqs) + + # Try to load OS default certs if none are given. + # Works well on Windows (requires Python3.4+) + if ( + not self.ca_certs + and not self.ca_cert_dir + and default_ssl_context + and hasattr(context, "load_default_certs") + ): + context.load_default_certs() + + self.sock = ssl_wrap_socket( + sock=conn, + keyfile=self.key_file, + certfile=self.cert_file, + key_password=self.key_password, + ca_certs=self.ca_certs, + ca_cert_dir=self.ca_cert_dir, + server_hostname=server_hostname, + ssl_context=context, + ) + + if self.assert_fingerprint: + assert_fingerprint( + self.sock.getpeercert(binary_form=True), self.assert_fingerprint + ) + elif ( + context.verify_mode != ssl.CERT_NONE + and not getattr(context, "check_hostname", False) + and self.assert_hostname is not False + ): + # While urllib3 attempts to always turn off hostname matching from + # the TLS library, this cannot always be done. So we check whether + # the TLS Library still thinks it's matching hostnames. + cert = self.sock.getpeercert() + if not cert.get("subjectAltName", ()): + warnings.warn( + ( + "Certificate for {0} has no `subjectAltName`, falling back to check for a " + "`commonName` for now. This feature is being removed by major browsers and " + "deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 " + "for details.)".format(hostname) + ), + SubjectAltNameWarning, + ) + _match_hostname(cert, self.assert_hostname or server_hostname) + + self.is_verified = ( + context.verify_mode == ssl.CERT_REQUIRED + or self.assert_fingerprint is not None + ) + + +def _match_hostname(cert, asserted_hostname): + try: + match_hostname(cert, asserted_hostname) + except CertificateError as e: + log.warning( + "Certificate did not match expected hostname: %s. " "Certificate: %s", + asserted_hostname, + cert, + ) + # Add cert to exception and reraise so client code can inspect + # the cert when catching the exception, if they want to + e._peer_cert = cert + raise + + +if ssl: + # Make a copy for testing. + UnverifiedHTTPSConnection = HTTPSConnection + HTTPSConnection = VerifiedHTTPSConnection +else: + HTTPSConnection = DummyConnection diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/connectionpool.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/connectionpool.py index 3e9ab146f84d5a077036196e33171278f861e779..e73fa57a4277ef0795a69f462cf80138d0f80378 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/connectionpool.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/connectionpool.py @@ -1,3 +1,1051 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:358605617f8bf573b8b50314eee83900189db2618a552136fd7e17320833c319 -size 36446 +from __future__ import absolute_import +import errno +import logging +import sys +import warnings + +from socket import error as SocketError, timeout as SocketTimeout +import socket + + +from .exceptions import ( + ClosedPoolError, + ProtocolError, + EmptyPoolError, + HeaderParsingError, + HostChangedError, + LocationValueError, + MaxRetryError, + ProxyError, + ReadTimeoutError, + SSLError, + TimeoutError, + InsecureRequestWarning, + NewConnectionError, +) +from .packages.ssl_match_hostname import CertificateError +from .packages import six +from .packages.six.moves import queue +from .connection import ( + port_by_scheme, + DummyConnection, + HTTPConnection, + HTTPSConnection, + VerifiedHTTPSConnection, + HTTPException, + BaseSSLError, +) +from .request import RequestMethods +from .response import HTTPResponse + +from .util.connection import is_connection_dropped +from .util.request import set_file_position +from .util.response import assert_header_parsing +from .util.retry import Retry +from .util.timeout import Timeout +from .util.url import ( + get_host, + parse_url, + Url, + _normalize_host as normalize_host, + _encode_target, +) +from .util.queue import LifoQueue + + +xrange = six.moves.xrange + +log = logging.getLogger(__name__) + +_Default = object() + + +# Pool objects +class ConnectionPool(object): + """ + Base class for all connection pools, such as + :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`. + """ + + scheme = None + QueueCls = LifoQueue + + def __init__(self, host, port=None): + if not host: + raise LocationValueError("No host specified.") + + self.host = _normalize_host(host, scheme=self.scheme) + self._proxy_host = host.lower() + self.port = port + + def __str__(self): + return "%s(host=%r, port=%r)" % (type(self).__name__, self.host, self.port) + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + self.close() + # Return False to re-raise any potential exceptions + return False + + def close(self): + """ + Close all pooled connections and disable the pool. + """ + pass + + +# This is taken from http://hg.python.org/cpython/file/7aaba721ebc0/Lib/socket.py#l252 +_blocking_errnos = {errno.EAGAIN, errno.EWOULDBLOCK} + + +class HTTPConnectionPool(ConnectionPool, RequestMethods): + """ + Thread-safe connection pool for one host. + + :param host: + Host used for this HTTP Connection (e.g. "localhost"), passed into + :class:`httplib.HTTPConnection`. + + :param port: + Port used for this HTTP Connection (None is equivalent to 80), passed + into :class:`httplib.HTTPConnection`. + + :param strict: + Causes BadStatusLine to be raised if the status line can't be parsed + as a valid HTTP/1.0 or 1.1 status line, passed into + :class:`httplib.HTTPConnection`. + + .. note:: + Only works in Python 2. This parameter is ignored in Python 3. + + :param timeout: + Socket timeout in seconds for each individual connection. This can + be a float or integer, which sets the timeout for the HTTP request, + or an instance of :class:`urllib3.util.Timeout` which gives you more + fine-grained control over request timeouts. After the constructor has + been parsed, this is always a `urllib3.util.Timeout` object. + + :param maxsize: + Number of connections to save that can be reused. More than 1 is useful + in multithreaded situations. If ``block`` is set to False, more + connections will be created but they will not be saved once they've + been used. + + :param block: + If set to True, no more than ``maxsize`` connections will be used at + a time. When no free connections are available, the call will block + until a connection has been released. This is a useful side effect for + particular multithreaded situations where one does not want to use more + than maxsize connections per host to prevent flooding. + + :param headers: + Headers to include with all requests, unless other headers are given + explicitly. + + :param retries: + Retry configuration to use by default with requests in this pool. + + :param _proxy: + Parsed proxy URL, should not be used directly, instead, see + :class:`urllib3.connectionpool.ProxyManager`" + + :param _proxy_headers: + A dictionary with proxy headers, should not be used directly, + instead, see :class:`urllib3.connectionpool.ProxyManager`" + + :param \\**conn_kw: + Additional parameters are used to create fresh :class:`urllib3.connection.HTTPConnection`, + :class:`urllib3.connection.HTTPSConnection` instances. + """ + + scheme = "http" + ConnectionCls = HTTPConnection + ResponseCls = HTTPResponse + + def __init__( + self, + host, + port=None, + strict=False, + timeout=Timeout.DEFAULT_TIMEOUT, + maxsize=1, + block=False, + headers=None, + retries=None, + _proxy=None, + _proxy_headers=None, + **conn_kw + ): + ConnectionPool.__init__(self, host, port) + RequestMethods.__init__(self, headers) + + self.strict = strict + + if not isinstance(timeout, Timeout): + timeout = Timeout.from_float(timeout) + + if retries is None: + retries = Retry.DEFAULT + + self.timeout = timeout + self.retries = retries + + self.pool = self.QueueCls(maxsize) + self.block = block + + self.proxy = _proxy + self.proxy_headers = _proxy_headers or {} + + # Fill the queue up so that doing get() on it will block properly + for _ in xrange(maxsize): + self.pool.put(None) + + # These are mostly for testing and debugging purposes. + self.num_connections = 0 + self.num_requests = 0 + self.conn_kw = conn_kw + + if self.proxy: + # Enable Nagle's algorithm for proxies, to avoid packet fragmentation. + # We cannot know if the user has added default socket options, so we cannot replace the + # list. + self.conn_kw.setdefault("socket_options", []) + + def _new_conn(self): + """ + Return a fresh :class:`HTTPConnection`. + """ + self.num_connections += 1 + log.debug( + "Starting new HTTP connection (%d): %s:%s", + self.num_connections, + self.host, + self.port or "80", + ) + + conn = self.ConnectionCls( + host=self.host, + port=self.port, + timeout=self.timeout.connect_timeout, + strict=self.strict, + **self.conn_kw + ) + return conn + + def _get_conn(self, timeout=None): + """ + Get a connection. Will return a pooled connection if one is available. + + If no connections are available and :prop:`.block` is ``False``, then a + fresh connection is returned. + + :param timeout: + Seconds to wait before giving up and raising + :class:`urllib3.exceptions.EmptyPoolError` if the pool is empty and + :prop:`.block` is ``True``. + """ + conn = None + try: + conn = self.pool.get(block=self.block, timeout=timeout) + + except AttributeError: # self.pool is None + raise ClosedPoolError(self, "Pool is closed.") + + except queue.Empty: + if self.block: + raise EmptyPoolError( + self, + "Pool reached maximum size and no more " "connections are allowed.", + ) + pass # Oh well, we'll create a new connection then + + # If this is a persistent connection, check if it got disconnected + if conn and is_connection_dropped(conn): + log.debug("Resetting dropped connection: %s", self.host) + conn.close() + if getattr(conn, "auto_open", 1) == 0: + # This is a proxied connection that has been mutated by + # httplib._tunnel() and cannot be reused (since it would + # attempt to bypass the proxy) + conn = None + + return conn or self._new_conn() + + def _put_conn(self, conn): + """ + Put a connection back into the pool. + + :param conn: + Connection object for the current host and port as returned by + :meth:`._new_conn` or :meth:`._get_conn`. + + If the pool is already full, the connection is closed and discarded + because we exceeded maxsize. If connections are discarded frequently, + then maxsize should be increased. + + If the pool is closed, then the connection will be closed and discarded. + """ + try: + self.pool.put(conn, block=False) + return # Everything is dandy, done. + except AttributeError: + # self.pool is None. + pass + except queue.Full: + # This should never happen if self.block == True + log.warning("Connection pool is full, discarding connection: %s", self.host) + + # Connection never got put back into the pool, close it. + if conn: + conn.close() + + def _validate_conn(self, conn): + """ + Called right before a request is made, after the socket is created. + """ + pass + + def _prepare_proxy(self, conn): + # Nothing to do for HTTP connections. + pass + + def _get_timeout(self, timeout): + """ Helper that always returns a :class:`urllib3.util.Timeout` """ + if timeout is _Default: + return self.timeout.clone() + + if isinstance(timeout, Timeout): + return timeout.clone() + else: + # User passed us an int/float. This is for backwards compatibility, + # can be removed later + return Timeout.from_float(timeout) + + def _raise_timeout(self, err, url, timeout_value): + """Is the error actually a timeout? Will raise a ReadTimeout or pass""" + + if isinstance(err, SocketTimeout): + raise ReadTimeoutError( + self, url, "Read timed out. (read timeout=%s)" % timeout_value + ) + + # See the above comment about EAGAIN in Python 3. In Python 2 we have + # to specifically catch it and throw the timeout error + if hasattr(err, "errno") and err.errno in _blocking_errnos: + raise ReadTimeoutError( + self, url, "Read timed out. (read timeout=%s)" % timeout_value + ) + + # Catch possible read timeouts thrown as SSL errors. If not the + # case, rethrow the original. We need to do this because of: + # http://bugs.python.org/issue10272 + if "timed out" in str(err) or "did not complete (read)" in str( + err + ): # Python < 2.7.4 + raise ReadTimeoutError( + self, url, "Read timed out. (read timeout=%s)" % timeout_value + ) + + def _make_request( + self, conn, method, url, timeout=_Default, chunked=False, **httplib_request_kw + ): + """ + Perform a request on a given urllib connection object taken from our + pool. + + :param conn: + a connection from one of our connection pools + + :param timeout: + Socket timeout in seconds for the request. This can be a + float or integer, which will set the same timeout value for + the socket connect and the socket read, or an instance of + :class:`urllib3.util.Timeout`, which gives you more fine-grained + control over your timeouts. + """ + self.num_requests += 1 + + timeout_obj = self._get_timeout(timeout) + timeout_obj.start_connect() + conn.timeout = timeout_obj.connect_timeout + + # Trigger any extra validation we need to do. + try: + self._validate_conn(conn) + except (SocketTimeout, BaseSSLError) as e: + # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout. + self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) + raise + + # conn.request() calls httplib.*.request, not the method in + # urllib3.request. It also calls makefile (recv) on the socket. + if chunked: + conn.request_chunked(method, url, **httplib_request_kw) + else: + conn.request(method, url, **httplib_request_kw) + + # Reset the timeout for the recv() on the socket + read_timeout = timeout_obj.read_timeout + + # App Engine doesn't have a sock attr + if getattr(conn, "sock", None): + # In Python 3 socket.py will catch EAGAIN and return None when you + # try and read into the file pointer created by http.client, which + # instead raises a BadStatusLine exception. Instead of catching + # the exception and assuming all BadStatusLine exceptions are read + # timeouts, check for a zero timeout before making the request. + if read_timeout == 0: + raise ReadTimeoutError( + self, url, "Read timed out. (read timeout=%s)" % read_timeout + ) + if read_timeout is Timeout.DEFAULT_TIMEOUT: + conn.sock.settimeout(socket.getdefaulttimeout()) + else: # None or a value + conn.sock.settimeout(read_timeout) + + # Receive the response from the server + try: + try: + # Python 2.7, use buffering of HTTP responses + httplib_response = conn.getresponse(buffering=True) + except TypeError: + # Python 3 + try: + httplib_response = conn.getresponse() + except BaseException as e: + # Remove the TypeError from the exception chain in + # Python 3 (including for exceptions like SystemExit). + # Otherwise it looks like a bug in the code. + six.raise_from(e, None) + except (SocketTimeout, BaseSSLError, SocketError) as e: + self._raise_timeout(err=e, url=url, timeout_value=read_timeout) + raise + + # AppEngine doesn't have a version attr. + http_version = getattr(conn, "_http_vsn_str", "HTTP/?") + log.debug( + '%s://%s:%s "%s %s %s" %s %s', + self.scheme, + self.host, + self.port, + method, + url, + http_version, + httplib_response.status, + httplib_response.length, + ) + + try: + assert_header_parsing(httplib_response.msg) + except (HeaderParsingError, TypeError) as hpe: # Platform-specific: Python 3 + log.warning( + "Failed to parse headers (url=%s): %s", + self._absolute_url(url), + hpe, + exc_info=True, + ) + + return httplib_response + + def _absolute_url(self, path): + return Url(scheme=self.scheme, host=self.host, port=self.port, path=path).url + + def close(self): + """ + Close all pooled connections and disable the pool. + """ + if self.pool is None: + return + # Disable access to the pool + old_pool, self.pool = self.pool, None + + try: + while True: + conn = old_pool.get(block=False) + if conn: + conn.close() + + except queue.Empty: + pass # Done. + + def is_same_host(self, url): + """ + Check if the given ``url`` is a member of the same host as this + connection pool. + """ + if url.startswith("/"): + return True + + # TODO: Add optional support for socket.gethostbyname checking. + scheme, host, port = get_host(url) + if host is not None: + host = _normalize_host(host, scheme=scheme) + + # Use explicit default port for comparison when none is given + if self.port and not port: + port = port_by_scheme.get(scheme) + elif not self.port and port == port_by_scheme.get(scheme): + port = None + + return (scheme, host, port) == (self.scheme, self.host, self.port) + + def urlopen( + self, + method, + url, + body=None, + headers=None, + retries=None, + redirect=True, + assert_same_host=True, + timeout=_Default, + pool_timeout=None, + release_conn=None, + chunked=False, + body_pos=None, + **response_kw + ): + """ + Get a connection from the pool and perform an HTTP request. This is the + lowest level call for making a request, so you'll need to specify all + the raw details. + + .. note:: + + More commonly, it's appropriate to use a convenience method provided + by :class:`.RequestMethods`, such as :meth:`request`. + + .. note:: + + `release_conn` will only behave as expected if + `preload_content=False` because we want to make + `preload_content=False` the default behaviour someday soon without + breaking backwards compatibility. + + :param method: + HTTP request method (such as GET, POST, PUT, etc.) + + :param body: + Data to send in the request body (useful for creating + POST requests, see HTTPConnectionPool.post_url for + more convenience). + + :param headers: + Dictionary of custom headers to send, such as User-Agent, + If-None-Match, etc. If None, pool headers are used. If provided, + these headers completely replace any pool-specific headers. + + :param retries: + Configure the number of retries to allow before raising a + :class:`~urllib3.exceptions.MaxRetryError` exception. + + Pass ``None`` to retry until you receive a response. Pass a + :class:`~urllib3.util.retry.Retry` object for fine-grained control + over different types of retries. + Pass an integer number to retry connection errors that many times, + but no other types of errors. Pass zero to never retry. + + If ``False``, then retries are disabled and any exception is raised + immediately. Also, instead of raising a MaxRetryError on redirects, + the redirect response will be returned. + + :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. + + :param redirect: + If True, automatically handle redirects (status codes 301, 302, + 303, 307, 308). Each redirect counts as a retry. Disabling retries + will disable redirect, too. + + :param assert_same_host: + If ``True``, will make sure that the host of the pool requests is + consistent else will raise HostChangedError. When False, you can + use the pool on an HTTP proxy and request foreign hosts. + + :param timeout: + If specified, overrides the default timeout for this one + request. It may be a float (in seconds) or an instance of + :class:`urllib3.util.Timeout`. + + :param pool_timeout: + If set and the pool is set to block=True, then this method will + block for ``pool_timeout`` seconds and raise EmptyPoolError if no + connection is available within the time period. + + :param release_conn: + If False, then the urlopen call will not release the connection + back into the pool once a response is received (but will release if + you read the entire contents of the response such as when + `preload_content=True`). This is useful if you're not preloading + the response's content immediately. You will need to call + ``r.release_conn()`` on the response ``r`` to return the connection + back into the pool. If None, it takes the value of + ``response_kw.get('preload_content', True)``. + + :param chunked: + If True, urllib3 will send the body using chunked transfer + encoding. Otherwise, urllib3 will send the body using the standard + content-length form. Defaults to False. + + :param int body_pos: + Position to seek to in file-like body in the event of a retry or + redirect. Typically this won't need to be set because urllib3 will + auto-populate the value when needed. + + :param \\**response_kw: + Additional parameters are passed to + :meth:`urllib3.response.HTTPResponse.from_httplib` + """ + if headers is None: + headers = self.headers + + if not isinstance(retries, Retry): + retries = Retry.from_int(retries, redirect=redirect, default=self.retries) + + if release_conn is None: + release_conn = response_kw.get("preload_content", True) + + # Check host + if assert_same_host and not self.is_same_host(url): + raise HostChangedError(self, url, retries) + + # Ensure that the URL we're connecting to is properly encoded + if url.startswith("/"): + url = six.ensure_str(_encode_target(url)) + else: + url = six.ensure_str(parse_url(url).url) + + conn = None + + # Track whether `conn` needs to be released before + # returning/raising/recursing. Update this variable if necessary, and + # leave `release_conn` constant throughout the function. That way, if + # the function recurses, the original value of `release_conn` will be + # passed down into the recursive call, and its value will be respected. + # + # See issue #651 [1] for details. + # + # [1] + release_this_conn = release_conn + + # Merge the proxy headers. Only do this in HTTP. We have to copy the + # headers dict so we can safely change it without those changes being + # reflected in anyone else's copy. + if self.scheme == "http": + headers = headers.copy() + headers.update(self.proxy_headers) + + # Must keep the exception bound to a separate variable or else Python 3 + # complains about UnboundLocalError. + err = None + + # Keep track of whether we cleanly exited the except block. This + # ensures we do proper cleanup in finally. + clean_exit = False + + # Rewind body position, if needed. Record current position + # for future rewinds in the event of a redirect/retry. + body_pos = set_file_position(body, body_pos) + + try: + # Request a connection from the queue. + timeout_obj = self._get_timeout(timeout) + conn = self._get_conn(timeout=pool_timeout) + + conn.timeout = timeout_obj.connect_timeout + + is_new_proxy_conn = self.proxy is not None and not getattr( + conn, "sock", None + ) + if is_new_proxy_conn: + self._prepare_proxy(conn) + + # Make the request on the httplib connection object. + httplib_response = self._make_request( + conn, + method, + url, + timeout=timeout_obj, + body=body, + headers=headers, + chunked=chunked, + ) + + # If we're going to release the connection in ``finally:``, then + # the response doesn't need to know about the connection. Otherwise + # it will also try to release it and we'll have a double-release + # mess. + response_conn = conn if not release_conn else None + + # Pass method to Response for length checking + response_kw["request_method"] = method + + # Import httplib's response into our own wrapper object + response = self.ResponseCls.from_httplib( + httplib_response, + pool=self, + connection=response_conn, + retries=retries, + **response_kw + ) + + # Everything went great! + clean_exit = True + + except queue.Empty: + # Timed out by queue. + raise EmptyPoolError(self, "No pool connections are available.") + + except ( + TimeoutError, + HTTPException, + SocketError, + ProtocolError, + BaseSSLError, + SSLError, + CertificateError, + ) as e: + # Discard the connection for these exceptions. It will be + # replaced during the next _get_conn() call. + clean_exit = False + if isinstance(e, (BaseSSLError, CertificateError)): + e = SSLError(e) + elif isinstance(e, (SocketError, NewConnectionError)) and self.proxy: + e = ProxyError("Cannot connect to proxy.", e) + elif isinstance(e, (SocketError, HTTPException)): + e = ProtocolError("Connection aborted.", e) + + retries = retries.increment( + method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] + ) + retries.sleep() + + # Keep track of the error for the retry warning. + err = e + + finally: + if not clean_exit: + # We hit some kind of exception, handled or otherwise. We need + # to throw the connection away unless explicitly told not to. + # Close the connection, set the variable to None, and make sure + # we put the None back in the pool to avoid leaking it. + conn = conn and conn.close() + release_this_conn = True + + if release_this_conn: + # Put the connection back to be reused. If the connection is + # expired then it will be None, which will get replaced with a + # fresh connection during _get_conn. + self._put_conn(conn) + + if not conn: + # Try again + log.warning( + "Retrying (%r) after connection " "broken by '%r': %s", + retries, + err, + url, + ) + return self.urlopen( + method, + url, + body, + headers, + retries, + redirect, + assert_same_host, + timeout=timeout, + pool_timeout=pool_timeout, + release_conn=release_conn, + body_pos=body_pos, + **response_kw + ) + + def drain_and_release_conn(response): + try: + # discard any remaining response body, the connection will be + # released back to the pool once the entire response is read + response.read() + except ( + TimeoutError, + HTTPException, + SocketError, + ProtocolError, + BaseSSLError, + SSLError, + ): + pass + + # Handle redirect? + redirect_location = redirect and response.get_redirect_location() + if redirect_location: + if response.status == 303: + method = "GET" + + try: + retries = retries.increment(method, url, response=response, _pool=self) + except MaxRetryError: + if retries.raise_on_redirect: + # Drain and release the connection for this response, since + # we're not returning it to be released manually. + drain_and_release_conn(response) + raise + return response + + # drain and return the connection to the pool before recursing + drain_and_release_conn(response) + + retries.sleep_for_retry(response) + log.debug("Redirecting %s -> %s", url, redirect_location) + return self.urlopen( + method, + redirect_location, + body, + headers, + retries=retries, + redirect=redirect, + assert_same_host=assert_same_host, + timeout=timeout, + pool_timeout=pool_timeout, + release_conn=release_conn, + body_pos=body_pos, + **response_kw + ) + + # Check if we should retry the HTTP response. + has_retry_after = bool(response.getheader("Retry-After")) + if retries.is_retry(method, response.status, has_retry_after): + try: + retries = retries.increment(method, url, response=response, _pool=self) + except MaxRetryError: + if retries.raise_on_status: + # Drain and release the connection for this response, since + # we're not returning it to be released manually. + drain_and_release_conn(response) + raise + return response + + # drain and return the connection to the pool before recursing + drain_and_release_conn(response) + + retries.sleep(response) + log.debug("Retry: %s", url) + return self.urlopen( + method, + url, + body, + headers, + retries=retries, + redirect=redirect, + assert_same_host=assert_same_host, + timeout=timeout, + pool_timeout=pool_timeout, + release_conn=release_conn, + body_pos=body_pos, + **response_kw + ) + + return response + + +class HTTPSConnectionPool(HTTPConnectionPool): + """ + Same as :class:`.HTTPConnectionPool`, but HTTPS. + + When Python is compiled with the :mod:`ssl` module, then + :class:`.VerifiedHTTPSConnection` is used, which *can* verify certificates, + instead of :class:`.HTTPSConnection`. + + :class:`.VerifiedHTTPSConnection` uses one of ``assert_fingerprint``, + ``assert_hostname`` and ``host`` in this order to verify connections. + If ``assert_hostname`` is False, no verification is done. + + The ``key_file``, ``cert_file``, ``cert_reqs``, ``ca_certs``, + ``ca_cert_dir``, ``ssl_version``, ``key_password`` are only used if :mod:`ssl` + is available and are fed into :meth:`urllib3.util.ssl_wrap_socket` to upgrade + the connection socket into an SSL socket. + """ + + scheme = "https" + ConnectionCls = HTTPSConnection + + def __init__( + self, + host, + port=None, + strict=False, + timeout=Timeout.DEFAULT_TIMEOUT, + maxsize=1, + block=False, + headers=None, + retries=None, + _proxy=None, + _proxy_headers=None, + key_file=None, + cert_file=None, + cert_reqs=None, + key_password=None, + ca_certs=None, + ssl_version=None, + assert_hostname=None, + assert_fingerprint=None, + ca_cert_dir=None, + **conn_kw + ): + + HTTPConnectionPool.__init__( + self, + host, + port, + strict, + timeout, + maxsize, + block, + headers, + retries, + _proxy, + _proxy_headers, + **conn_kw + ) + + self.key_file = key_file + self.cert_file = cert_file + self.cert_reqs = cert_reqs + self.key_password = key_password + self.ca_certs = ca_certs + self.ca_cert_dir = ca_cert_dir + self.ssl_version = ssl_version + self.assert_hostname = assert_hostname + self.assert_fingerprint = assert_fingerprint + + def _prepare_conn(self, conn): + """ + Prepare the ``connection`` for :meth:`urllib3.util.ssl_wrap_socket` + and establish the tunnel if proxy is used. + """ + + if isinstance(conn, VerifiedHTTPSConnection): + conn.set_cert( + key_file=self.key_file, + key_password=self.key_password, + cert_file=self.cert_file, + cert_reqs=self.cert_reqs, + ca_certs=self.ca_certs, + ca_cert_dir=self.ca_cert_dir, + assert_hostname=self.assert_hostname, + assert_fingerprint=self.assert_fingerprint, + ) + conn.ssl_version = self.ssl_version + return conn + + def _prepare_proxy(self, conn): + """ + Establish tunnel connection early, because otherwise httplib + would improperly set Host: header to proxy's IP:port. + """ + conn.set_tunnel(self._proxy_host, self.port, self.proxy_headers) + conn.connect() + + def _new_conn(self): + """ + Return a fresh :class:`httplib.HTTPSConnection`. + """ + self.num_connections += 1 + log.debug( + "Starting new HTTPS connection (%d): %s:%s", + self.num_connections, + self.host, + self.port or "443", + ) + + if not self.ConnectionCls or self.ConnectionCls is DummyConnection: + raise SSLError( + "Can't connect to HTTPS URL because the SSL " "module is not available." + ) + + actual_host = self.host + actual_port = self.port + if self.proxy is not None: + actual_host = self.proxy.host + actual_port = self.proxy.port + + conn = self.ConnectionCls( + host=actual_host, + port=actual_port, + timeout=self.timeout.connect_timeout, + strict=self.strict, + cert_file=self.cert_file, + key_file=self.key_file, + key_password=self.key_password, + **self.conn_kw + ) + + return self._prepare_conn(conn) + + def _validate_conn(self, conn): + """ + Called right before a request is made, after the socket is created. + """ + super(HTTPSConnectionPool, self)._validate_conn(conn) + + # Force connect early to allow us to validate the connection. + if not getattr(conn, "sock", None): # AppEngine might not have `.sock` + conn.connect() + + if not conn.is_verified: + warnings.warn( + ( + "Unverified HTTPS request is being made. " + "Adding certificate verification is strongly advised. See: " + "https://urllib3.readthedocs.io/en/latest/advanced-usage.html" + "#ssl-warnings" + ), + InsecureRequestWarning, + ) + + +def connection_from_url(url, **kw): + """ + Given a url, return an :class:`.ConnectionPool` instance of its host. + + This is a shortcut for not having to parse out the scheme, host, and port + of the url before creating an :class:`.ConnectionPool` instance. + + :param url: + Absolute URL string that must include the scheme. Port is optional. + + :param \\**kw: + Passes additional parameters to the constructor of the appropriate + :class:`.ConnectionPool`. Useful for specifying things like + timeout, maxsize, headers, etc. + + Example:: + + >>> conn = connection_from_url('http://google.com/') + >>> r = conn.request('GET', '/') + """ + scheme, host, port = get_host(url) + port = port or port_by_scheme.get(scheme, 80) + if scheme == "https": + return HTTPSConnectionPool(host, port=port, **kw) + else: + return HTTPConnectionPool(host, port=port, **kw) + + +def _normalize_host(host, scheme): + """ + Normalize hosts for comparisons and use with sockets. + """ + + host = normalize_host(host, scheme) + + # httplib doesn't like it when we include brackets in IPv6 addresses + # Specifically, if we include brackets but also pass the port then + # httplib crazily doubles up the square brackets on the Host header. + # Instead, we need to make sure we never pass ``None`` as the port. + # However, for backward compatibility reasons we can't actually + # *assert* that. See http://bugs.python.org/issue28539 + if host.startswith("[") and host.endswith("]"): + host = host[1:-1] + return host diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_appengine_environ.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_appengine_environ.py index e24181da715dd4ed03624c8f210f750033193261..c909010bf27a55474e7ea34bb19b15bf9c530da0 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_appengine_environ.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_appengine_environ.py @@ -1,3 +1,32 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b49bcc5f2822e549c59f8b66087b6b5ce408ab2d4501f6680c32b7e90df91752 -size 707 +""" +This module provides means to detect the App Engine environment. +""" + +import os + + +def is_appengine(): + return is_local_appengine() or is_prod_appengine() or is_prod_appengine_mvms() + + +def is_appengine_sandbox(): + return is_appengine() and not is_prod_appengine_mvms() + + +def is_local_appengine(): + return ( + "APPENGINE_RUNTIME" in os.environ + and "Development/" in os.environ["SERVER_SOFTWARE"] + ) + + +def is_prod_appengine(): + return ( + "APPENGINE_RUNTIME" in os.environ + and "Google App Engine/" in os.environ["SERVER_SOFTWARE"] + and not is_prod_appengine_mvms() + ) + + +def is_prod_appengine_mvms(): + return os.environ.get("GAE_VM", False) == "true" diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_securetransport/bindings.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_securetransport/bindings.py index cab096789427bb3e84617553a8cf7afc96325a29..b46e1e3b5de827e98c54d2071965debcdfefa9d7 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_securetransport/bindings.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_securetransport/bindings.py @@ -1,3 +1,492 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:66e484559c22b9b934a1a5669196bc6d4a0af4009524984f5604733d937a2a84 -size 16805 +""" +This module uses ctypes to bind a whole bunch of functions and constants from +SecureTransport. The goal here is to provide the low-level API to +SecureTransport. These are essentially the C-level functions and constants, and +they're pretty gross to work with. + +This code is a bastardised version of the code found in Will Bond's oscrypto +library. An enormous debt is owed to him for blazing this trail for us. For +that reason, this code should be considered to be covered both by urllib3's +license and by oscrypto's: + + Copyright (c) 2015-2016 Will Bond + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. +""" +from __future__ import absolute_import + +import platform +from ctypes.util import find_library +from ctypes import ( + c_void_p, + c_int32, + c_char_p, + c_size_t, + c_byte, + c_uint32, + c_ulong, + c_long, + c_bool, +) +from ctypes import CDLL, POINTER, CFUNCTYPE + + +security_path = find_library("Security") +if not security_path: + raise ImportError("The library Security could not be found") + + +core_foundation_path = find_library("CoreFoundation") +if not core_foundation_path: + raise ImportError("The library CoreFoundation could not be found") + + +version = platform.mac_ver()[0] +version_info = tuple(map(int, version.split("."))) +if version_info < (10, 8): + raise OSError( + "Only OS X 10.8 and newer are supported, not %s.%s" + % (version_info[0], version_info[1]) + ) + +Security = CDLL(security_path, use_errno=True) +CoreFoundation = CDLL(core_foundation_path, use_errno=True) + +Boolean = c_bool +CFIndex = c_long +CFStringEncoding = c_uint32 +CFData = c_void_p +CFString = c_void_p +CFArray = c_void_p +CFMutableArray = c_void_p +CFDictionary = c_void_p +CFError = c_void_p +CFType = c_void_p +CFTypeID = c_ulong + +CFTypeRef = POINTER(CFType) +CFAllocatorRef = c_void_p + +OSStatus = c_int32 + +CFDataRef = POINTER(CFData) +CFStringRef = POINTER(CFString) +CFArrayRef = POINTER(CFArray) +CFMutableArrayRef = POINTER(CFMutableArray) +CFDictionaryRef = POINTER(CFDictionary) +CFArrayCallBacks = c_void_p +CFDictionaryKeyCallBacks = c_void_p +CFDictionaryValueCallBacks = c_void_p + +SecCertificateRef = POINTER(c_void_p) +SecExternalFormat = c_uint32 +SecExternalItemType = c_uint32 +SecIdentityRef = POINTER(c_void_p) +SecItemImportExportFlags = c_uint32 +SecItemImportExportKeyParameters = c_void_p +SecKeychainRef = POINTER(c_void_p) +SSLProtocol = c_uint32 +SSLCipherSuite = c_uint32 +SSLContextRef = POINTER(c_void_p) +SecTrustRef = POINTER(c_void_p) +SSLConnectionRef = c_uint32 +SecTrustResultType = c_uint32 +SecTrustOptionFlags = c_uint32 +SSLProtocolSide = c_uint32 +SSLConnectionType = c_uint32 +SSLSessionOption = c_uint32 + + +try: + Security.SecItemImport.argtypes = [ + CFDataRef, + CFStringRef, + POINTER(SecExternalFormat), + POINTER(SecExternalItemType), + SecItemImportExportFlags, + POINTER(SecItemImportExportKeyParameters), + SecKeychainRef, + POINTER(CFArrayRef), + ] + Security.SecItemImport.restype = OSStatus + + Security.SecCertificateGetTypeID.argtypes = [] + Security.SecCertificateGetTypeID.restype = CFTypeID + + Security.SecIdentityGetTypeID.argtypes = [] + Security.SecIdentityGetTypeID.restype = CFTypeID + + Security.SecKeyGetTypeID.argtypes = [] + Security.SecKeyGetTypeID.restype = CFTypeID + + Security.SecCertificateCreateWithData.argtypes = [CFAllocatorRef, CFDataRef] + Security.SecCertificateCreateWithData.restype = SecCertificateRef + + Security.SecCertificateCopyData.argtypes = [SecCertificateRef] + Security.SecCertificateCopyData.restype = CFDataRef + + Security.SecCopyErrorMessageString.argtypes = [OSStatus, c_void_p] + Security.SecCopyErrorMessageString.restype = CFStringRef + + Security.SecIdentityCreateWithCertificate.argtypes = [ + CFTypeRef, + SecCertificateRef, + POINTER(SecIdentityRef), + ] + Security.SecIdentityCreateWithCertificate.restype = OSStatus + + Security.SecKeychainCreate.argtypes = [ + c_char_p, + c_uint32, + c_void_p, + Boolean, + c_void_p, + POINTER(SecKeychainRef), + ] + Security.SecKeychainCreate.restype = OSStatus + + Security.SecKeychainDelete.argtypes = [SecKeychainRef] + Security.SecKeychainDelete.restype = OSStatus + + Security.SecPKCS12Import.argtypes = [ + CFDataRef, + CFDictionaryRef, + POINTER(CFArrayRef), + ] + Security.SecPKCS12Import.restype = OSStatus + + SSLReadFunc = CFUNCTYPE(OSStatus, SSLConnectionRef, c_void_p, POINTER(c_size_t)) + SSLWriteFunc = CFUNCTYPE( + OSStatus, SSLConnectionRef, POINTER(c_byte), POINTER(c_size_t) + ) + + Security.SSLSetIOFuncs.argtypes = [SSLContextRef, SSLReadFunc, SSLWriteFunc] + Security.SSLSetIOFuncs.restype = OSStatus + + Security.SSLSetPeerID.argtypes = [SSLContextRef, c_char_p, c_size_t] + Security.SSLSetPeerID.restype = OSStatus + + Security.SSLSetCertificate.argtypes = [SSLContextRef, CFArrayRef] + Security.SSLSetCertificate.restype = OSStatus + + Security.SSLSetCertificateAuthorities.argtypes = [SSLContextRef, CFTypeRef, Boolean] + Security.SSLSetCertificateAuthorities.restype = OSStatus + + Security.SSLSetConnection.argtypes = [SSLContextRef, SSLConnectionRef] + Security.SSLSetConnection.restype = OSStatus + + Security.SSLSetPeerDomainName.argtypes = [SSLContextRef, c_char_p, c_size_t] + Security.SSLSetPeerDomainName.restype = OSStatus + + Security.SSLHandshake.argtypes = [SSLContextRef] + Security.SSLHandshake.restype = OSStatus + + Security.SSLRead.argtypes = [SSLContextRef, c_char_p, c_size_t, POINTER(c_size_t)] + Security.SSLRead.restype = OSStatus + + Security.SSLWrite.argtypes = [SSLContextRef, c_char_p, c_size_t, POINTER(c_size_t)] + Security.SSLWrite.restype = OSStatus + + Security.SSLClose.argtypes = [SSLContextRef] + Security.SSLClose.restype = OSStatus + + Security.SSLGetNumberSupportedCiphers.argtypes = [SSLContextRef, POINTER(c_size_t)] + Security.SSLGetNumberSupportedCiphers.restype = OSStatus + + Security.SSLGetSupportedCiphers.argtypes = [ + SSLContextRef, + POINTER(SSLCipherSuite), + POINTER(c_size_t), + ] + Security.SSLGetSupportedCiphers.restype = OSStatus + + Security.SSLSetEnabledCiphers.argtypes = [ + SSLContextRef, + POINTER(SSLCipherSuite), + c_size_t, + ] + Security.SSLSetEnabledCiphers.restype = OSStatus + + Security.SSLGetNumberEnabledCiphers.argtype = [SSLContextRef, POINTER(c_size_t)] + Security.SSLGetNumberEnabledCiphers.restype = OSStatus + + Security.SSLGetEnabledCiphers.argtypes = [ + SSLContextRef, + POINTER(SSLCipherSuite), + POINTER(c_size_t), + ] + Security.SSLGetEnabledCiphers.restype = OSStatus + + Security.SSLGetNegotiatedCipher.argtypes = [SSLContextRef, POINTER(SSLCipherSuite)] + Security.SSLGetNegotiatedCipher.restype = OSStatus + + Security.SSLGetNegotiatedProtocolVersion.argtypes = [ + SSLContextRef, + POINTER(SSLProtocol), + ] + Security.SSLGetNegotiatedProtocolVersion.restype = OSStatus + + Security.SSLCopyPeerTrust.argtypes = [SSLContextRef, POINTER(SecTrustRef)] + Security.SSLCopyPeerTrust.restype = OSStatus + + Security.SecTrustSetAnchorCertificates.argtypes = [SecTrustRef, CFArrayRef] + Security.SecTrustSetAnchorCertificates.restype = OSStatus + + Security.SecTrustSetAnchorCertificatesOnly.argstypes = [SecTrustRef, Boolean] + Security.SecTrustSetAnchorCertificatesOnly.restype = OSStatus + + Security.SecTrustEvaluate.argtypes = [SecTrustRef, POINTER(SecTrustResultType)] + Security.SecTrustEvaluate.restype = OSStatus + + Security.SecTrustGetCertificateCount.argtypes = [SecTrustRef] + Security.SecTrustGetCertificateCount.restype = CFIndex + + Security.SecTrustGetCertificateAtIndex.argtypes = [SecTrustRef, CFIndex] + Security.SecTrustGetCertificateAtIndex.restype = SecCertificateRef + + Security.SSLCreateContext.argtypes = [ + CFAllocatorRef, + SSLProtocolSide, + SSLConnectionType, + ] + Security.SSLCreateContext.restype = SSLContextRef + + Security.SSLSetSessionOption.argtypes = [SSLContextRef, SSLSessionOption, Boolean] + Security.SSLSetSessionOption.restype = OSStatus + + Security.SSLSetProtocolVersionMin.argtypes = [SSLContextRef, SSLProtocol] + Security.SSLSetProtocolVersionMin.restype = OSStatus + + Security.SSLSetProtocolVersionMax.argtypes = [SSLContextRef, SSLProtocol] + Security.SSLSetProtocolVersionMax.restype = OSStatus + + Security.SecCopyErrorMessageString.argtypes = [OSStatus, c_void_p] + Security.SecCopyErrorMessageString.restype = CFStringRef + + Security.SSLReadFunc = SSLReadFunc + Security.SSLWriteFunc = SSLWriteFunc + Security.SSLContextRef = SSLContextRef + Security.SSLProtocol = SSLProtocol + Security.SSLCipherSuite = SSLCipherSuite + Security.SecIdentityRef = SecIdentityRef + Security.SecKeychainRef = SecKeychainRef + Security.SecTrustRef = SecTrustRef + Security.SecTrustResultType = SecTrustResultType + Security.SecExternalFormat = SecExternalFormat + Security.OSStatus = OSStatus + + Security.kSecImportExportPassphrase = CFStringRef.in_dll( + Security, "kSecImportExportPassphrase" + ) + Security.kSecImportItemIdentity = CFStringRef.in_dll( + Security, "kSecImportItemIdentity" + ) + + # CoreFoundation time! + CoreFoundation.CFRetain.argtypes = [CFTypeRef] + CoreFoundation.CFRetain.restype = CFTypeRef + + CoreFoundation.CFRelease.argtypes = [CFTypeRef] + CoreFoundation.CFRelease.restype = None + + CoreFoundation.CFGetTypeID.argtypes = [CFTypeRef] + CoreFoundation.CFGetTypeID.restype = CFTypeID + + CoreFoundation.CFStringCreateWithCString.argtypes = [ + CFAllocatorRef, + c_char_p, + CFStringEncoding, + ] + CoreFoundation.CFStringCreateWithCString.restype = CFStringRef + + CoreFoundation.CFStringGetCStringPtr.argtypes = [CFStringRef, CFStringEncoding] + CoreFoundation.CFStringGetCStringPtr.restype = c_char_p + + CoreFoundation.CFStringGetCString.argtypes = [ + CFStringRef, + c_char_p, + CFIndex, + CFStringEncoding, + ] + CoreFoundation.CFStringGetCString.restype = c_bool + + CoreFoundation.CFDataCreate.argtypes = [CFAllocatorRef, c_char_p, CFIndex] + CoreFoundation.CFDataCreate.restype = CFDataRef + + CoreFoundation.CFDataGetLength.argtypes = [CFDataRef] + CoreFoundation.CFDataGetLength.restype = CFIndex + + CoreFoundation.CFDataGetBytePtr.argtypes = [CFDataRef] + CoreFoundation.CFDataGetBytePtr.restype = c_void_p + + CoreFoundation.CFDictionaryCreate.argtypes = [ + CFAllocatorRef, + POINTER(CFTypeRef), + POINTER(CFTypeRef), + CFIndex, + CFDictionaryKeyCallBacks, + CFDictionaryValueCallBacks, + ] + CoreFoundation.CFDictionaryCreate.restype = CFDictionaryRef + + CoreFoundation.CFDictionaryGetValue.argtypes = [CFDictionaryRef, CFTypeRef] + CoreFoundation.CFDictionaryGetValue.restype = CFTypeRef + + CoreFoundation.CFArrayCreate.argtypes = [ + CFAllocatorRef, + POINTER(CFTypeRef), + CFIndex, + CFArrayCallBacks, + ] + CoreFoundation.CFArrayCreate.restype = CFArrayRef + + CoreFoundation.CFArrayCreateMutable.argtypes = [ + CFAllocatorRef, + CFIndex, + CFArrayCallBacks, + ] + CoreFoundation.CFArrayCreateMutable.restype = CFMutableArrayRef + + CoreFoundation.CFArrayAppendValue.argtypes = [CFMutableArrayRef, c_void_p] + CoreFoundation.CFArrayAppendValue.restype = None + + CoreFoundation.CFArrayGetCount.argtypes = [CFArrayRef] + CoreFoundation.CFArrayGetCount.restype = CFIndex + + CoreFoundation.CFArrayGetValueAtIndex.argtypes = [CFArrayRef, CFIndex] + CoreFoundation.CFArrayGetValueAtIndex.restype = c_void_p + + CoreFoundation.kCFAllocatorDefault = CFAllocatorRef.in_dll( + CoreFoundation, "kCFAllocatorDefault" + ) + CoreFoundation.kCFTypeArrayCallBacks = c_void_p.in_dll( + CoreFoundation, "kCFTypeArrayCallBacks" + ) + CoreFoundation.kCFTypeDictionaryKeyCallBacks = c_void_p.in_dll( + CoreFoundation, "kCFTypeDictionaryKeyCallBacks" + ) + CoreFoundation.kCFTypeDictionaryValueCallBacks = c_void_p.in_dll( + CoreFoundation, "kCFTypeDictionaryValueCallBacks" + ) + + CoreFoundation.CFTypeRef = CFTypeRef + CoreFoundation.CFArrayRef = CFArrayRef + CoreFoundation.CFStringRef = CFStringRef + CoreFoundation.CFDictionaryRef = CFDictionaryRef + +except (AttributeError): + raise ImportError("Error initializing ctypes") + + +class CFConst(object): + """ + A class object that acts as essentially a namespace for CoreFoundation + constants. + """ + + kCFStringEncodingUTF8 = CFStringEncoding(0x08000100) + + +class SecurityConst(object): + """ + A class object that acts as essentially a namespace for Security constants. + """ + + kSSLSessionOptionBreakOnServerAuth = 0 + + kSSLProtocol2 = 1 + kSSLProtocol3 = 2 + kTLSProtocol1 = 4 + kTLSProtocol11 = 7 + kTLSProtocol12 = 8 + kTLSProtocol13 = 10 + kTLSProtocolMaxSupported = 999 + + kSSLClientSide = 1 + kSSLStreamType = 0 + + kSecFormatPEMSequence = 10 + + kSecTrustResultInvalid = 0 + kSecTrustResultProceed = 1 + # This gap is present on purpose: this was kSecTrustResultConfirm, which + # is deprecated. + kSecTrustResultDeny = 3 + kSecTrustResultUnspecified = 4 + kSecTrustResultRecoverableTrustFailure = 5 + kSecTrustResultFatalTrustFailure = 6 + kSecTrustResultOtherError = 7 + + errSSLProtocol = -9800 + errSSLWouldBlock = -9803 + errSSLClosedGraceful = -9805 + errSSLClosedNoNotify = -9816 + errSSLClosedAbort = -9806 + + errSSLXCertChainInvalid = -9807 + errSSLCrypto = -9809 + errSSLInternal = -9810 + errSSLCertExpired = -9814 + errSSLCertNotYetValid = -9815 + errSSLUnknownRootCert = -9812 + errSSLNoRootCert = -9813 + errSSLHostNameMismatch = -9843 + errSSLPeerHandshakeFail = -9824 + errSSLPeerUserCancelled = -9839 + errSSLWeakPeerEphemeralDHKey = -9850 + errSSLServerAuthCompleted = -9841 + errSSLRecordOverflow = -9847 + + errSecVerifyFailed = -67808 + errSecNoTrustSettings = -25263 + errSecItemNotFound = -25300 + errSecInvalidTrustSettings = -25262 + + # Cipher suites. We only pick the ones our default cipher string allows. + # Source: https://developer.apple.com/documentation/security/1550981-ssl_cipher_suite_values + TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = 0xC02C + TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = 0xC030 + TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 0xC02B + TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = 0xC02F + TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 = 0xCCA9 + TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 = 0xCCA8 + TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 = 0x009F + TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 = 0x009E + TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = 0xC024 + TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = 0xC028 + TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = 0xC00A + TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 0xC014 + TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 = 0x006B + TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 0x0039 + TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = 0xC023 + TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = 0xC027 + TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = 0xC009 + TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = 0xC013 + TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 = 0x0067 + TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 0x0033 + TLS_RSA_WITH_AES_256_GCM_SHA384 = 0x009D + TLS_RSA_WITH_AES_128_GCM_SHA256 = 0x009C + TLS_RSA_WITH_AES_256_CBC_SHA256 = 0x003D + TLS_RSA_WITH_AES_128_CBC_SHA256 = 0x003C + TLS_RSA_WITH_AES_256_CBC_SHA = 0x0035 + TLS_RSA_WITH_AES_128_CBC_SHA = 0x002F + TLS_AES_128_GCM_SHA256 = 0x1301 + TLS_AES_256_GCM_SHA384 = 0x1302 + TLS_AES_128_CCM_8_SHA256 = 0x1305 + TLS_AES_128_CCM_SHA256 = 0x1304 diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_securetransport/low_level.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_securetransport/low_level.py index 9c73347fd342d21941686f0f4b6899366d1d4091..e60168cac14d080b45ac693b2ceda1ec59f712b5 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_securetransport/low_level.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/_securetransport/low_level.py @@ -1,3 +1,328 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:57b1a7ba3c67599876376b0cb15e4de1df489b29a89249b7cc1c20b7beff6d21 -size 11956 +""" +Low-level helpers for the SecureTransport bindings. + +These are Python functions that are not directly related to the high-level APIs +but are necessary to get them to work. They include a whole bunch of low-level +CoreFoundation messing about and memory management. The concerns in this module +are almost entirely about trying to avoid memory leaks and providing +appropriate and useful assistance to the higher-level code. +""" +import base64 +import ctypes +import itertools +import re +import os +import ssl +import tempfile + +from .bindings import Security, CoreFoundation, CFConst + + +# This regular expression is used to grab PEM data out of a PEM bundle. +_PEM_CERTS_RE = re.compile( + b"-----BEGIN CERTIFICATE-----\n(.*?)\n-----END CERTIFICATE-----", re.DOTALL +) + + +def _cf_data_from_bytes(bytestring): + """ + Given a bytestring, create a CFData object from it. This CFData object must + be CFReleased by the caller. + """ + return CoreFoundation.CFDataCreate( + CoreFoundation.kCFAllocatorDefault, bytestring, len(bytestring) + ) + + +def _cf_dictionary_from_tuples(tuples): + """ + Given a list of Python tuples, create an associated CFDictionary. + """ + dictionary_size = len(tuples) + + # We need to get the dictionary keys and values out in the same order. + keys = (t[0] for t in tuples) + values = (t[1] for t in tuples) + cf_keys = (CoreFoundation.CFTypeRef * dictionary_size)(*keys) + cf_values = (CoreFoundation.CFTypeRef * dictionary_size)(*values) + + return CoreFoundation.CFDictionaryCreate( + CoreFoundation.kCFAllocatorDefault, + cf_keys, + cf_values, + dictionary_size, + CoreFoundation.kCFTypeDictionaryKeyCallBacks, + CoreFoundation.kCFTypeDictionaryValueCallBacks, + ) + + +def _cf_string_to_unicode(value): + """ + Creates a Unicode string from a CFString object. Used entirely for error + reporting. + + Yes, it annoys me quite a lot that this function is this complex. + """ + value_as_void_p = ctypes.cast(value, ctypes.POINTER(ctypes.c_void_p)) + + string = CoreFoundation.CFStringGetCStringPtr( + value_as_void_p, CFConst.kCFStringEncodingUTF8 + ) + if string is None: + buffer = ctypes.create_string_buffer(1024) + result = CoreFoundation.CFStringGetCString( + value_as_void_p, buffer, 1024, CFConst.kCFStringEncodingUTF8 + ) + if not result: + raise OSError("Error copying C string from CFStringRef") + string = buffer.value + if string is not None: + string = string.decode("utf-8") + return string + + +def _assert_no_error(error, exception_class=None): + """ + Checks the return code and throws an exception if there is an error to + report + """ + if error == 0: + return + + cf_error_string = Security.SecCopyErrorMessageString(error, None) + output = _cf_string_to_unicode(cf_error_string) + CoreFoundation.CFRelease(cf_error_string) + + if output is None or output == u"": + output = u"OSStatus %s" % error + + if exception_class is None: + exception_class = ssl.SSLError + + raise exception_class(output) + + +def _cert_array_from_pem(pem_bundle): + """ + Given a bundle of certs in PEM format, turns them into a CFArray of certs + that can be used to validate a cert chain. + """ + # Normalize the PEM bundle's line endings. + pem_bundle = pem_bundle.replace(b"\r\n", b"\n") + + der_certs = [ + base64.b64decode(match.group(1)) for match in _PEM_CERTS_RE.finditer(pem_bundle) + ] + if not der_certs: + raise ssl.SSLError("No root certificates specified") + + cert_array = CoreFoundation.CFArrayCreateMutable( + CoreFoundation.kCFAllocatorDefault, + 0, + ctypes.byref(CoreFoundation.kCFTypeArrayCallBacks), + ) + if not cert_array: + raise ssl.SSLError("Unable to allocate memory!") + + try: + for der_bytes in der_certs: + certdata = _cf_data_from_bytes(der_bytes) + if not certdata: + raise ssl.SSLError("Unable to allocate memory!") + cert = Security.SecCertificateCreateWithData( + CoreFoundation.kCFAllocatorDefault, certdata + ) + CoreFoundation.CFRelease(certdata) + if not cert: + raise ssl.SSLError("Unable to build cert object!") + + CoreFoundation.CFArrayAppendValue(cert_array, cert) + CoreFoundation.CFRelease(cert) + except Exception: + # We need to free the array before the exception bubbles further. + # We only want to do that if an error occurs: otherwise, the caller + # should free. + CoreFoundation.CFRelease(cert_array) + + return cert_array + + +def _is_cert(item): + """ + Returns True if a given CFTypeRef is a certificate. + """ + expected = Security.SecCertificateGetTypeID() + return CoreFoundation.CFGetTypeID(item) == expected + + +def _is_identity(item): + """ + Returns True if a given CFTypeRef is an identity. + """ + expected = Security.SecIdentityGetTypeID() + return CoreFoundation.CFGetTypeID(item) == expected + + +def _temporary_keychain(): + """ + This function creates a temporary Mac keychain that we can use to work with + credentials. This keychain uses a one-time password and a temporary file to + store the data. We expect to have one keychain per socket. The returned + SecKeychainRef must be freed by the caller, including calling + SecKeychainDelete. + + Returns a tuple of the SecKeychainRef and the path to the temporary + directory that contains it. + """ + # Unfortunately, SecKeychainCreate requires a path to a keychain. This + # means we cannot use mkstemp to use a generic temporary file. Instead, + # we're going to create a temporary directory and a filename to use there. + # This filename will be 8 random bytes expanded into base64. We also need + # some random bytes to password-protect the keychain we're creating, so we + # ask for 40 random bytes. + random_bytes = os.urandom(40) + filename = base64.b16encode(random_bytes[:8]).decode("utf-8") + password = base64.b16encode(random_bytes[8:]) # Must be valid UTF-8 + tempdirectory = tempfile.mkdtemp() + + keychain_path = os.path.join(tempdirectory, filename).encode("utf-8") + + # We now want to create the keychain itself. + keychain = Security.SecKeychainRef() + status = Security.SecKeychainCreate( + keychain_path, len(password), password, False, None, ctypes.byref(keychain) + ) + _assert_no_error(status) + + # Having created the keychain, we want to pass it off to the caller. + return keychain, tempdirectory + + +def _load_items_from_file(keychain, path): + """ + Given a single file, loads all the trust objects from it into arrays and + the keychain. + Returns a tuple of lists: the first list is a list of identities, the + second a list of certs. + """ + certificates = [] + identities = [] + result_array = None + + with open(path, "rb") as f: + raw_filedata = f.read() + + try: + filedata = CoreFoundation.CFDataCreate( + CoreFoundation.kCFAllocatorDefault, raw_filedata, len(raw_filedata) + ) + result_array = CoreFoundation.CFArrayRef() + result = Security.SecItemImport( + filedata, # cert data + None, # Filename, leaving it out for now + None, # What the type of the file is, we don't care + None, # what's in the file, we don't care + 0, # import flags + None, # key params, can include passphrase in the future + keychain, # The keychain to insert into + ctypes.byref(result_array), # Results + ) + _assert_no_error(result) + + # A CFArray is not very useful to us as an intermediary + # representation, so we are going to extract the objects we want + # and then free the array. We don't need to keep hold of keys: the + # keychain already has them! + result_count = CoreFoundation.CFArrayGetCount(result_array) + for index in range(result_count): + item = CoreFoundation.CFArrayGetValueAtIndex(result_array, index) + item = ctypes.cast(item, CoreFoundation.CFTypeRef) + + if _is_cert(item): + CoreFoundation.CFRetain(item) + certificates.append(item) + elif _is_identity(item): + CoreFoundation.CFRetain(item) + identities.append(item) + finally: + if result_array: + CoreFoundation.CFRelease(result_array) + + CoreFoundation.CFRelease(filedata) + + return (identities, certificates) + + +def _load_client_cert_chain(keychain, *paths): + """ + Load certificates and maybe keys from a number of files. Has the end goal + of returning a CFArray containing one SecIdentityRef, and then zero or more + SecCertificateRef objects, suitable for use as a client certificate trust + chain. + """ + # Ok, the strategy. + # + # This relies on knowing that macOS will not give you a SecIdentityRef + # unless you have imported a key into a keychain. This is a somewhat + # artificial limitation of macOS (for example, it doesn't necessarily + # affect iOS), but there is nothing inside Security.framework that lets you + # get a SecIdentityRef without having a key in a keychain. + # + # So the policy here is we take all the files and iterate them in order. + # Each one will use SecItemImport to have one or more objects loaded from + # it. We will also point at a keychain that macOS can use to work with the + # private key. + # + # Once we have all the objects, we'll check what we actually have. If we + # already have a SecIdentityRef in hand, fab: we'll use that. Otherwise, + # we'll take the first certificate (which we assume to be our leaf) and + # ask the keychain to give us a SecIdentityRef with that cert's associated + # key. + # + # We'll then return a CFArray containing the trust chain: one + # SecIdentityRef and then zero-or-more SecCertificateRef objects. The + # responsibility for freeing this CFArray will be with the caller. This + # CFArray must remain alive for the entire connection, so in practice it + # will be stored with a single SSLSocket, along with the reference to the + # keychain. + certificates = [] + identities = [] + + # Filter out bad paths. + paths = (path for path in paths if path) + + try: + for file_path in paths: + new_identities, new_certs = _load_items_from_file(keychain, file_path) + identities.extend(new_identities) + certificates.extend(new_certs) + + # Ok, we have everything. The question is: do we have an identity? If + # not, we want to grab one from the first cert we have. + if not identities: + new_identity = Security.SecIdentityRef() + status = Security.SecIdentityCreateWithCertificate( + keychain, certificates[0], ctypes.byref(new_identity) + ) + _assert_no_error(status) + identities.append(new_identity) + + # We now want to release the original certificate, as we no longer + # need it. + CoreFoundation.CFRelease(certificates.pop(0)) + + # We now need to build a new CFArray that holds the trust chain. + trust_chain = CoreFoundation.CFArrayCreateMutable( + CoreFoundation.kCFAllocatorDefault, + 0, + ctypes.byref(CoreFoundation.kCFTypeArrayCallBacks), + ) + for item in itertools.chain(identities, certificates): + # ArrayAppendValue does a CFRetain on the item. That's fine, + # because the finally block will release our other refs to them. + CoreFoundation.CFArrayAppendValue(trust_chain, item) + + return trust_chain + finally: + for obj in itertools.chain(identities, certificates): + CoreFoundation.CFRelease(obj) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/appengine.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/appengine.py index 00e798e5e74ab9e94e144bab816ecc163f6553d2..01c91409f8ff58bf301634f6ac35dfa986ebc5c6 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/appengine.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/appengine.py @@ -1,3 +1,321 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c2480de6a3c8155f0b296eb2217efd08c4cd8624ac0d7763e4508d071c144198 -size 11290 +""" +This module provides a pool manager that uses Google App Engine's +`URLFetch Service `_. + +Example usage:: + + from urllib3 import PoolManager + from urllib3.contrib.appengine import AppEngineManager, is_appengine_sandbox + + if is_appengine_sandbox(): + # AppEngineManager uses AppEngine's URLFetch API behind the scenes + http = AppEngineManager() + else: + # PoolManager uses a socket-level API behind the scenes + http = PoolManager() + + r = http.request('GET', 'https://google.com/') + +There are `limitations `_ to the URLFetch service and it may not be +the best choice for your application. There are three options for using +urllib3 on Google App Engine: + +1. You can use :class:`AppEngineManager` with URLFetch. URLFetch is + cost-effective in many circumstances as long as your usage is within the + limitations. +2. You can use a normal :class:`~urllib3.PoolManager` by enabling sockets. + Sockets also have `limitations and restrictions + `_ and have a lower free quota than URLFetch. + To use sockets, be sure to specify the following in your ``app.yaml``:: + + env_variables: + GAE_USE_SOCKETS_HTTPLIB : 'true' + +3. If you are using `App Engine Flexible +`_, you can use the standard +:class:`PoolManager` without any configuration or special environment variables. +""" + +from __future__ import absolute_import +import io +import logging +import warnings +from ..packages.six.moves.urllib.parse import urljoin + +from ..exceptions import ( + HTTPError, + HTTPWarning, + MaxRetryError, + ProtocolError, + TimeoutError, + SSLError, +) + +from ..request import RequestMethods +from ..response import HTTPResponse +from ..util.timeout import Timeout +from ..util.retry import Retry +from . import _appengine_environ + +try: + from google.appengine.api import urlfetch +except ImportError: + urlfetch = None + + +log = logging.getLogger(__name__) + + +class AppEnginePlatformWarning(HTTPWarning): + pass + + +class AppEnginePlatformError(HTTPError): + pass + + +class AppEngineManager(RequestMethods): + """ + Connection manager for Google App Engine sandbox applications. + + This manager uses the URLFetch service directly instead of using the + emulated httplib, and is subject to URLFetch limitations as described in + the App Engine documentation `here + `_. + + Notably it will raise an :class:`AppEnginePlatformError` if: + * URLFetch is not available. + * If you attempt to use this on App Engine Flexible, as full socket + support is available. + * If a request size is more than 10 megabytes. + * If a response size is more than 32 megabtyes. + * If you use an unsupported request method such as OPTIONS. + + Beyond those cases, it will raise normal urllib3 errors. + """ + + def __init__( + self, + headers=None, + retries=None, + validate_certificate=True, + urlfetch_retries=True, + ): + if not urlfetch: + raise AppEnginePlatformError( + "URLFetch is not available in this environment." + ) + + if is_prod_appengine_mvms(): + raise AppEnginePlatformError( + "Use normal urllib3.PoolManager instead of AppEngineManager" + "on Managed VMs, as using URLFetch is not necessary in " + "this environment." + ) + + warnings.warn( + "urllib3 is using URLFetch on Google App Engine sandbox instead " + "of sockets. To use sockets directly instead of URLFetch see " + "https://urllib3.readthedocs.io/en/latest/reference/urllib3.contrib.html.", + AppEnginePlatformWarning, + ) + + RequestMethods.__init__(self, headers) + self.validate_certificate = validate_certificate + self.urlfetch_retries = urlfetch_retries + + self.retries = retries or Retry.DEFAULT + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + # Return False to re-raise any potential exceptions + return False + + def urlopen( + self, + method, + url, + body=None, + headers=None, + retries=None, + redirect=True, + timeout=Timeout.DEFAULT_TIMEOUT, + **response_kw + ): + + retries = self._get_retries(retries, redirect) + + try: + follow_redirects = redirect and retries.redirect != 0 and retries.total + response = urlfetch.fetch( + url, + payload=body, + method=method, + headers=headers or {}, + allow_truncated=False, + follow_redirects=self.urlfetch_retries and follow_redirects, + deadline=self._get_absolute_timeout(timeout), + validate_certificate=self.validate_certificate, + ) + except urlfetch.DeadlineExceededError as e: + raise TimeoutError(self, e) + + except urlfetch.InvalidURLError as e: + if "too large" in str(e): + raise AppEnginePlatformError( + "URLFetch request too large, URLFetch only " + "supports requests up to 10mb in size.", + e, + ) + raise ProtocolError(e) + + except urlfetch.DownloadError as e: + if "Too many redirects" in str(e): + raise MaxRetryError(self, url, reason=e) + raise ProtocolError(e) + + except urlfetch.ResponseTooLargeError as e: + raise AppEnginePlatformError( + "URLFetch response too large, URLFetch only supports" + "responses up to 32mb in size.", + e, + ) + + except urlfetch.SSLCertificateError as e: + raise SSLError(e) + + except urlfetch.InvalidMethodError as e: + raise AppEnginePlatformError( + "URLFetch does not support method: %s" % method, e + ) + + http_response = self._urlfetch_response_to_http_response( + response, retries=retries, **response_kw + ) + + # Handle redirect? + redirect_location = redirect and http_response.get_redirect_location() + if redirect_location: + # Check for redirect response + if self.urlfetch_retries and retries.raise_on_redirect: + raise MaxRetryError(self, url, "too many redirects") + else: + if http_response.status == 303: + method = "GET" + + try: + retries = retries.increment( + method, url, response=http_response, _pool=self + ) + except MaxRetryError: + if retries.raise_on_redirect: + raise MaxRetryError(self, url, "too many redirects") + return http_response + + retries.sleep_for_retry(http_response) + log.debug("Redirecting %s -> %s", url, redirect_location) + redirect_url = urljoin(url, redirect_location) + return self.urlopen( + method, + redirect_url, + body, + headers, + retries=retries, + redirect=redirect, + timeout=timeout, + **response_kw + ) + + # Check if we should retry the HTTP response. + has_retry_after = bool(http_response.getheader("Retry-After")) + if retries.is_retry(method, http_response.status, has_retry_after): + retries = retries.increment(method, url, response=http_response, _pool=self) + log.debug("Retry: %s", url) + retries.sleep(http_response) + return self.urlopen( + method, + url, + body=body, + headers=headers, + retries=retries, + redirect=redirect, + timeout=timeout, + **response_kw + ) + + return http_response + + def _urlfetch_response_to_http_response(self, urlfetch_resp, **response_kw): + + if is_prod_appengine(): + # Production GAE handles deflate encoding automatically, but does + # not remove the encoding header. + content_encoding = urlfetch_resp.headers.get("content-encoding") + + if content_encoding == "deflate": + del urlfetch_resp.headers["content-encoding"] + + transfer_encoding = urlfetch_resp.headers.get("transfer-encoding") + # We have a full response's content, + # so let's make sure we don't report ourselves as chunked data. + if transfer_encoding == "chunked": + encodings = transfer_encoding.split(",") + encodings.remove("chunked") + urlfetch_resp.headers["transfer-encoding"] = ",".join(encodings) + + original_response = HTTPResponse( + # In order for decoding to work, we must present the content as + # a file-like object. + body=io.BytesIO(urlfetch_resp.content), + msg=urlfetch_resp.header_msg, + headers=urlfetch_resp.headers, + status=urlfetch_resp.status_code, + **response_kw + ) + + return HTTPResponse( + body=io.BytesIO(urlfetch_resp.content), + headers=urlfetch_resp.headers, + status=urlfetch_resp.status_code, + original_response=original_response, + **response_kw + ) + + def _get_absolute_timeout(self, timeout): + if timeout is Timeout.DEFAULT_TIMEOUT: + return None # Defer to URLFetch's default. + if isinstance(timeout, Timeout): + if timeout._read is not None or timeout._connect is not None: + warnings.warn( + "URLFetch does not support granular timeout settings, " + "reverting to total or default URLFetch timeout.", + AppEnginePlatformWarning, + ) + return timeout.total + return timeout + + def _get_retries(self, retries, redirect): + if not isinstance(retries, Retry): + retries = Retry.from_int(retries, redirect=redirect, default=self.retries) + + if retries.connect or retries.read or retries.redirect: + warnings.warn( + "URLFetch only supports total retries and does not " + "recognize connect, read, or redirect retry parameters.", + AppEnginePlatformWarning, + ) + + return retries + + +# Alias methods from _appengine_environ to maintain public API interface. + +is_appengine = _appengine_environ.is_appengine +is_appengine_sandbox = _appengine_environ.is_appengine_sandbox +is_local_appengine = _appengine_environ.is_local_appengine +is_prod_appengine = _appengine_environ.is_prod_appengine +is_prod_appengine_mvms = _appengine_environ.is_prod_appengine_mvms diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/ntlmpool.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/ntlmpool.py index 63a31e398f9217e32580080d301d554748cafbe8..9c96be29d8ad4227d8ada09ff2eb4fd4908339bb 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/ntlmpool.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/ntlmpool.py @@ -1,3 +1,123 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:62759cdbe9e9ed1ce2d8b7c2c49d9f129ae11a47990d28d015d26e4d0e6fb941 -size 4201 +""" +NTLM authenticating pool, contributed by erikcederstran + +Issue #10, see: http://code.google.com/p/urllib3/issues/detail?id=10 +""" +from __future__ import absolute_import + +from logging import getLogger +from ntlm import ntlm + +from .. import HTTPSConnectionPool +from ..packages.six.moves.http_client import HTTPSConnection + + +log = getLogger(__name__) + + +class NTLMConnectionPool(HTTPSConnectionPool): + """ + Implements an NTLM authentication version of an urllib3 connection pool + """ + + scheme = "https" + + def __init__(self, user, pw, authurl, *args, **kwargs): + """ + authurl is a random URL on the server that is protected by NTLM. + user is the Windows user, probably in the DOMAIN\\username format. + pw is the password for the user. + """ + super(NTLMConnectionPool, self).__init__(*args, **kwargs) + self.authurl = authurl + self.rawuser = user + user_parts = user.split("\\", 1) + self.domain = user_parts[0].upper() + self.user = user_parts[1] + self.pw = pw + + def _new_conn(self): + # Performs the NTLM handshake that secures the connection. The socket + # must be kept open while requests are performed. + self.num_connections += 1 + log.debug( + "Starting NTLM HTTPS connection no. %d: https://%s%s", + self.num_connections, + self.host, + self.authurl, + ) + + headers = {"Connection": "Keep-Alive"} + req_header = "Authorization" + resp_header = "www-authenticate" + + conn = HTTPSConnection(host=self.host, port=self.port) + + # Send negotiation message + headers[req_header] = "NTLM %s" % ntlm.create_NTLM_NEGOTIATE_MESSAGE( + self.rawuser + ) + log.debug("Request headers: %s", headers) + conn.request("GET", self.authurl, None, headers) + res = conn.getresponse() + reshdr = dict(res.getheaders()) + log.debug("Response status: %s %s", res.status, res.reason) + log.debug("Response headers: %s", reshdr) + log.debug("Response data: %s [...]", res.read(100)) + + # Remove the reference to the socket, so that it can not be closed by + # the response object (we want to keep the socket open) + res.fp = None + + # Server should respond with a challenge message + auth_header_values = reshdr[resp_header].split(", ") + auth_header_value = None + for s in auth_header_values: + if s[:5] == "NTLM ": + auth_header_value = s[5:] + if auth_header_value is None: + raise Exception( + "Unexpected %s response header: %s" % (resp_header, reshdr[resp_header]) + ) + + # Send authentication message + ServerChallenge, NegotiateFlags = ntlm.parse_NTLM_CHALLENGE_MESSAGE( + auth_header_value + ) + auth_msg = ntlm.create_NTLM_AUTHENTICATE_MESSAGE( + ServerChallenge, self.user, self.domain, self.pw, NegotiateFlags + ) + headers[req_header] = "NTLM %s" % auth_msg + log.debug("Request headers: %s", headers) + conn.request("GET", self.authurl, None, headers) + res = conn.getresponse() + log.debug("Response status: %s %s", res.status, res.reason) + log.debug("Response headers: %s", dict(res.getheaders())) + log.debug("Response data: %s [...]", res.read()[:100]) + if res.status != 200: + if res.status == 401: + raise Exception( + "Server rejected request: wrong " "username or password" + ) + raise Exception("Wrong server response: %s %s" % (res.status, res.reason)) + + res.fp = None + log.debug("Connection established") + return conn + + def urlopen( + self, + method, + url, + body=None, + headers=None, + retries=3, + redirect=True, + assert_same_host=True, + ): + if headers is None: + headers = {} + headers["Connection"] = "Keep-Alive" + return super(NTLMConnectionPool, self).urlopen( + method, url, body, headers, retries, redirect, assert_same_host + ) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/pyopenssl.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/pyopenssl.py index f541f7b8a590879bc690867cfa20b7f21249c740..3051ef3af226faaec6ec4a7a1105afebf1cf66df 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/pyopenssl.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/pyopenssl.py @@ -1,3 +1,498 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e9f79520a4042c239fb34c6cb8dbea3153fda7e97ca7782ee0347c37ab1d02c -size 16423 +""" +SSL with SNI_-support for Python 2. Follow these instructions if you would +like to verify SSL certificates in Python 2. Note, the default libraries do +*not* do certificate checking; you need to do additional work to validate +certificates yourself. + +This needs the following packages installed: + +* pyOpenSSL (tested with 16.0.0) +* cryptography (minimum 1.3.4, from pyopenssl) +* idna (minimum 2.0, from cryptography) + +However, pyopenssl depends on cryptography, which depends on idna, so while we +use all three directly here we end up having relatively few packages required. + +You can install them with the following command: + + pip install pyopenssl cryptography idna + +To activate certificate checking, call +:func:`~urllib3.contrib.pyopenssl.inject_into_urllib3` from your Python code +before you begin making HTTP requests. This can be done in a ``sitecustomize`` +module, or at any other time before your application begins using ``urllib3``, +like this:: + + try: + import urllib3.contrib.pyopenssl + urllib3.contrib.pyopenssl.inject_into_urllib3() + except ImportError: + pass + +Now you can use :mod:`urllib3` as you normally would, and it will support SNI +when the required modules are installed. + +Activating this module also has the positive side effect of disabling SSL/TLS +compression in Python 2 (see `CRIME attack`_). + +If you want to configure the default list of supported cipher suites, you can +set the ``urllib3.contrib.pyopenssl.DEFAULT_SSL_CIPHER_LIST`` variable. + +.. _sni: https://en.wikipedia.org/wiki/Server_Name_Indication +.. _crime attack: https://en.wikipedia.org/wiki/CRIME_(security_exploit) +""" +from __future__ import absolute_import + +import OpenSSL.SSL +from cryptography import x509 +from cryptography.hazmat.backends.openssl import backend as openssl_backend +from cryptography.hazmat.backends.openssl.x509 import _Certificate + +try: + from cryptography.x509 import UnsupportedExtension +except ImportError: + # UnsupportedExtension is gone in cryptography >= 2.1.0 + class UnsupportedExtension(Exception): + pass + + +from socket import timeout, error as SocketError +from io import BytesIO + +try: # Platform-specific: Python 2 + from socket import _fileobject +except ImportError: # Platform-specific: Python 3 + _fileobject = None + from ..packages.backports.makefile import backport_makefile + +import logging +import ssl +from ..packages import six +import sys + +from .. import util + + +__all__ = ["inject_into_urllib3", "extract_from_urllib3"] + +# SNI always works. +HAS_SNI = True + +# Map from urllib3 to PyOpenSSL compatible parameter-values. +_openssl_versions = { + util.PROTOCOL_TLS: OpenSSL.SSL.SSLv23_METHOD, + ssl.PROTOCOL_TLSv1: OpenSSL.SSL.TLSv1_METHOD, +} + +if hasattr(ssl, "PROTOCOL_SSLv3") and hasattr(OpenSSL.SSL, "SSLv3_METHOD"): + _openssl_versions[ssl.PROTOCOL_SSLv3] = OpenSSL.SSL.SSLv3_METHOD + +if hasattr(ssl, "PROTOCOL_TLSv1_1") and hasattr(OpenSSL.SSL, "TLSv1_1_METHOD"): + _openssl_versions[ssl.PROTOCOL_TLSv1_1] = OpenSSL.SSL.TLSv1_1_METHOD + +if hasattr(ssl, "PROTOCOL_TLSv1_2") and hasattr(OpenSSL.SSL, "TLSv1_2_METHOD"): + _openssl_versions[ssl.PROTOCOL_TLSv1_2] = OpenSSL.SSL.TLSv1_2_METHOD + + +_stdlib_to_openssl_verify = { + ssl.CERT_NONE: OpenSSL.SSL.VERIFY_NONE, + ssl.CERT_OPTIONAL: OpenSSL.SSL.VERIFY_PEER, + ssl.CERT_REQUIRED: OpenSSL.SSL.VERIFY_PEER + + OpenSSL.SSL.VERIFY_FAIL_IF_NO_PEER_CERT, +} +_openssl_to_stdlib_verify = dict((v, k) for k, v in _stdlib_to_openssl_verify.items()) + +# OpenSSL will only write 16K at a time +SSL_WRITE_BLOCKSIZE = 16384 + +orig_util_HAS_SNI = util.HAS_SNI +orig_util_SSLContext = util.ssl_.SSLContext + + +log = logging.getLogger(__name__) + + +def inject_into_urllib3(): + "Monkey-patch urllib3 with PyOpenSSL-backed SSL-support." + + _validate_dependencies_met() + + util.SSLContext = PyOpenSSLContext + util.ssl_.SSLContext = PyOpenSSLContext + util.HAS_SNI = HAS_SNI + util.ssl_.HAS_SNI = HAS_SNI + util.IS_PYOPENSSL = True + util.ssl_.IS_PYOPENSSL = True + + +def extract_from_urllib3(): + "Undo monkey-patching by :func:`inject_into_urllib3`." + + util.SSLContext = orig_util_SSLContext + util.ssl_.SSLContext = orig_util_SSLContext + util.HAS_SNI = orig_util_HAS_SNI + util.ssl_.HAS_SNI = orig_util_HAS_SNI + util.IS_PYOPENSSL = False + util.ssl_.IS_PYOPENSSL = False + + +def _validate_dependencies_met(): + """ + Verifies that PyOpenSSL's package-level dependencies have been met. + Throws `ImportError` if they are not met. + """ + # Method added in `cryptography==1.1`; not available in older versions + from cryptography.x509.extensions import Extensions + + if getattr(Extensions, "get_extension_for_class", None) is None: + raise ImportError( + "'cryptography' module missing required functionality. " + "Try upgrading to v1.3.4 or newer." + ) + + # pyOpenSSL 0.14 and above use cryptography for OpenSSL bindings. The _x509 + # attribute is only present on those versions. + from OpenSSL.crypto import X509 + + x509 = X509() + if getattr(x509, "_x509", None) is None: + raise ImportError( + "'pyOpenSSL' module missing required functionality. " + "Try upgrading to v0.14 or newer." + ) + + +def _dnsname_to_stdlib(name): + """ + Converts a dNSName SubjectAlternativeName field to the form used by the + standard library on the given Python version. + + Cryptography produces a dNSName as a unicode string that was idna-decoded + from ASCII bytes. We need to idna-encode that string to get it back, and + then on Python 3 we also need to convert to unicode via UTF-8 (the stdlib + uses PyUnicode_FromStringAndSize on it, which decodes via UTF-8). + + If the name cannot be idna-encoded then we return None signalling that + the name given should be skipped. + """ + + def idna_encode(name): + """ + Borrowed wholesale from the Python Cryptography Project. It turns out + that we can't just safely call `idna.encode`: it can explode for + wildcard names. This avoids that problem. + """ + import idna + + try: + for prefix in [u"*.", u"."]: + if name.startswith(prefix): + name = name[len(prefix) :] + return prefix.encode("ascii") + idna.encode(name) + return idna.encode(name) + except idna.core.IDNAError: + return None + + # Don't send IPv6 addresses through the IDNA encoder. + if ":" in name: + return name + + name = idna_encode(name) + if name is None: + return None + elif sys.version_info >= (3, 0): + name = name.decode("utf-8") + return name + + +def get_subj_alt_name(peer_cert): + """ + Given an PyOpenSSL certificate, provides all the subject alternative names. + """ + # Pass the cert to cryptography, which has much better APIs for this. + if hasattr(peer_cert, "to_cryptography"): + cert = peer_cert.to_cryptography() + else: + # This is technically using private APIs, but should work across all + # relevant versions before PyOpenSSL got a proper API for this. + cert = _Certificate(openssl_backend, peer_cert._x509) + + # We want to find the SAN extension. Ask Cryptography to locate it (it's + # faster than looping in Python) + try: + ext = cert.extensions.get_extension_for_class(x509.SubjectAlternativeName).value + except x509.ExtensionNotFound: + # No such extension, return the empty list. + return [] + except ( + x509.DuplicateExtension, + UnsupportedExtension, + x509.UnsupportedGeneralNameType, + UnicodeError, + ) as e: + # A problem has been found with the quality of the certificate. Assume + # no SAN field is present. + log.warning( + "A problem was encountered with the certificate that prevented " + "urllib3 from finding the SubjectAlternativeName field. This can " + "affect certificate validation. The error was %s", + e, + ) + return [] + + # We want to return dNSName and iPAddress fields. We need to cast the IPs + # back to strings because the match_hostname function wants them as + # strings. + # Sadly the DNS names need to be idna encoded and then, on Python 3, UTF-8 + # decoded. This is pretty frustrating, but that's what the standard library + # does with certificates, and so we need to attempt to do the same. + # We also want to skip over names which cannot be idna encoded. + names = [ + ("DNS", name) + for name in map(_dnsname_to_stdlib, ext.get_values_for_type(x509.DNSName)) + if name is not None + ] + names.extend( + ("IP Address", str(name)) for name in ext.get_values_for_type(x509.IPAddress) + ) + + return names + + +class WrappedSocket(object): + """API-compatibility wrapper for Python OpenSSL's Connection-class. + + Note: _makefile_refs, _drop() and _reuse() are needed for the garbage + collector of pypy. + """ + + def __init__(self, connection, socket, suppress_ragged_eofs=True): + self.connection = connection + self.socket = socket + self.suppress_ragged_eofs = suppress_ragged_eofs + self._makefile_refs = 0 + self._closed = False + + def fileno(self): + return self.socket.fileno() + + # Copy-pasted from Python 3.5 source code + def _decref_socketios(self): + if self._makefile_refs > 0: + self._makefile_refs -= 1 + if self._closed: + self.close() + + def recv(self, *args, **kwargs): + try: + data = self.connection.recv(*args, **kwargs) + except OpenSSL.SSL.SysCallError as e: + if self.suppress_ragged_eofs and e.args == (-1, "Unexpected EOF"): + return b"" + else: + raise SocketError(str(e)) + except OpenSSL.SSL.ZeroReturnError: + if self.connection.get_shutdown() == OpenSSL.SSL.RECEIVED_SHUTDOWN: + return b"" + else: + raise + except OpenSSL.SSL.WantReadError: + if not util.wait_for_read(self.socket, self.socket.gettimeout()): + raise timeout("The read operation timed out") + else: + return self.recv(*args, **kwargs) + + # TLS 1.3 post-handshake authentication + except OpenSSL.SSL.Error as e: + raise ssl.SSLError("read error: %r" % e) + else: + return data + + def recv_into(self, *args, **kwargs): + try: + return self.connection.recv_into(*args, **kwargs) + except OpenSSL.SSL.SysCallError as e: + if self.suppress_ragged_eofs and e.args == (-1, "Unexpected EOF"): + return 0 + else: + raise SocketError(str(e)) + except OpenSSL.SSL.ZeroReturnError: + if self.connection.get_shutdown() == OpenSSL.SSL.RECEIVED_SHUTDOWN: + return 0 + else: + raise + except OpenSSL.SSL.WantReadError: + if not util.wait_for_read(self.socket, self.socket.gettimeout()): + raise timeout("The read operation timed out") + else: + return self.recv_into(*args, **kwargs) + + # TLS 1.3 post-handshake authentication + except OpenSSL.SSL.Error as e: + raise ssl.SSLError("read error: %r" % e) + + def settimeout(self, timeout): + return self.socket.settimeout(timeout) + + def _send_until_done(self, data): + while True: + try: + return self.connection.send(data) + except OpenSSL.SSL.WantWriteError: + if not util.wait_for_write(self.socket, self.socket.gettimeout()): + raise timeout() + continue + except OpenSSL.SSL.SysCallError as e: + raise SocketError(str(e)) + + def sendall(self, data): + total_sent = 0 + while total_sent < len(data): + sent = self._send_until_done( + data[total_sent : total_sent + SSL_WRITE_BLOCKSIZE] + ) + total_sent += sent + + def shutdown(self): + # FIXME rethrow compatible exceptions should we ever use this + self.connection.shutdown() + + def close(self): + if self._makefile_refs < 1: + try: + self._closed = True + return self.connection.close() + except OpenSSL.SSL.Error: + return + else: + self._makefile_refs -= 1 + + def getpeercert(self, binary_form=False): + x509 = self.connection.get_peer_certificate() + + if not x509: + return x509 + + if binary_form: + return OpenSSL.crypto.dump_certificate(OpenSSL.crypto.FILETYPE_ASN1, x509) + + return { + "subject": ((("commonName", x509.get_subject().CN),),), + "subjectAltName": get_subj_alt_name(x509), + } + + def version(self): + return self.connection.get_protocol_version_name() + + def _reuse(self): + self._makefile_refs += 1 + + def _drop(self): + if self._makefile_refs < 1: + self.close() + else: + self._makefile_refs -= 1 + + +if _fileobject: # Platform-specific: Python 2 + + def makefile(self, mode, bufsize=-1): + self._makefile_refs += 1 + return _fileobject(self, mode, bufsize, close=True) + + +else: # Platform-specific: Python 3 + makefile = backport_makefile + +WrappedSocket.makefile = makefile + + +class PyOpenSSLContext(object): + """ + I am a wrapper class for the PyOpenSSL ``Context`` object. I am responsible + for translating the interface of the standard library ``SSLContext`` object + to calls into PyOpenSSL. + """ + + def __init__(self, protocol): + self.protocol = _openssl_versions[protocol] + self._ctx = OpenSSL.SSL.Context(self.protocol) + self._options = 0 + self.check_hostname = False + + @property + def options(self): + return self._options + + @options.setter + def options(self, value): + self._options = value + self._ctx.set_options(value) + + @property + def verify_mode(self): + return _openssl_to_stdlib_verify[self._ctx.get_verify_mode()] + + @verify_mode.setter + def verify_mode(self, value): + self._ctx.set_verify(_stdlib_to_openssl_verify[value], _verify_callback) + + def set_default_verify_paths(self): + self._ctx.set_default_verify_paths() + + def set_ciphers(self, ciphers): + if isinstance(ciphers, six.text_type): + ciphers = ciphers.encode("utf-8") + self._ctx.set_cipher_list(ciphers) + + def load_verify_locations(self, cafile=None, capath=None, cadata=None): + if cafile is not None: + cafile = cafile.encode("utf-8") + if capath is not None: + capath = capath.encode("utf-8") + self._ctx.load_verify_locations(cafile, capath) + if cadata is not None: + self._ctx.load_verify_locations(BytesIO(cadata)) + + def load_cert_chain(self, certfile, keyfile=None, password=None): + self._ctx.use_certificate_chain_file(certfile) + if password is not None: + if not isinstance(password, six.binary_type): + password = password.encode("utf-8") + self._ctx.set_passwd_cb(lambda *_: password) + self._ctx.use_privatekey_file(keyfile or certfile) + + def wrap_socket( + self, + sock, + server_side=False, + do_handshake_on_connect=True, + suppress_ragged_eofs=True, + server_hostname=None, + ): + cnx = OpenSSL.SSL.Connection(self._ctx, sock) + + if isinstance(server_hostname, six.text_type): # Platform-specific: Python 3 + server_hostname = server_hostname.encode("utf-8") + + if server_hostname is not None: + cnx.set_tlsext_host_name(server_hostname) + + cnx.set_connect_state() + + while True: + try: + cnx.do_handshake() + except OpenSSL.SSL.WantReadError: + if not util.wait_for_read(sock, sock.gettimeout()): + raise timeout("select timed out") + continue + except OpenSSL.SSL.Error as e: + raise ssl.SSLError("bad handshake: %r" % e) + break + + return WrappedSocket(cnx, sock) + + +def _verify_callback(cnx, x509, err_no, err_depth, return_code): + return err_no == 0 diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/securetransport.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/securetransport.py index 990137085d53e96182844437ab748327a3501925..24e6b5c4d9ebfe8696ab29a31cf97e18df37b952 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/securetransport.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/securetransport.py @@ -1,3 +1,870 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fef07203c2b314fc67f71ebb8629403eef70a682834bd7d4dcad4355abc493be -size 32742 +""" +SecureTranport support for urllib3 via ctypes. + +This makes platform-native TLS available to urllib3 users on macOS without the +use of a compiler. This is an important feature because the Python Package +Index is moving to become a TLSv1.2-or-higher server, and the default OpenSSL +that ships with macOS is not capable of doing TLSv1.2. The only way to resolve +this is to give macOS users an alternative solution to the problem, and that +solution is to use SecureTransport. + +We use ctypes here because this solution must not require a compiler. That's +because pip is not allowed to require a compiler either. + +This is not intended to be a seriously long-term solution to this problem. +The hope is that PEP 543 will eventually solve this issue for us, at which +point we can retire this contrib module. But in the short term, we need to +solve the impending tire fire that is Python on Mac without this kind of +contrib module. So...here we are. + +To use this module, simply import and inject it:: + + import urllib3.contrib.securetransport + urllib3.contrib.securetransport.inject_into_urllib3() + +Happy TLSing! + +This code is a bastardised version of the code found in Will Bond's oscrypto +library. An enormous debt is owed to him for blazing this trail for us. For +that reason, this code should be considered to be covered both by urllib3's +license and by oscrypto's: + + Copyright (c) 2015-2016 Will Bond + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. +""" +from __future__ import absolute_import + +import contextlib +import ctypes +import errno +import os.path +import shutil +import socket +import ssl +import threading +import weakref + +from .. import util +from ._securetransport.bindings import Security, SecurityConst, CoreFoundation +from ._securetransport.low_level import ( + _assert_no_error, + _cert_array_from_pem, + _temporary_keychain, + _load_client_cert_chain, +) + +try: # Platform-specific: Python 2 + from socket import _fileobject +except ImportError: # Platform-specific: Python 3 + _fileobject = None + from ..packages.backports.makefile import backport_makefile + +__all__ = ["inject_into_urllib3", "extract_from_urllib3"] + +# SNI always works +HAS_SNI = True + +orig_util_HAS_SNI = util.HAS_SNI +orig_util_SSLContext = util.ssl_.SSLContext + +# This dictionary is used by the read callback to obtain a handle to the +# calling wrapped socket. This is a pretty silly approach, but for now it'll +# do. I feel like I should be able to smuggle a handle to the wrapped socket +# directly in the SSLConnectionRef, but for now this approach will work I +# guess. +# +# We need to lock around this structure for inserts, but we don't do it for +# reads/writes in the callbacks. The reasoning here goes as follows: +# +# 1. It is not possible to call into the callbacks before the dictionary is +# populated, so once in the callback the id must be in the dictionary. +# 2. The callbacks don't mutate the dictionary, they only read from it, and +# so cannot conflict with any of the insertions. +# +# This is good: if we had to lock in the callbacks we'd drastically slow down +# the performance of this code. +_connection_refs = weakref.WeakValueDictionary() +_connection_ref_lock = threading.Lock() + +# Limit writes to 16kB. This is OpenSSL's limit, but we'll cargo-cult it over +# for no better reason than we need *a* limit, and this one is right there. +SSL_WRITE_BLOCKSIZE = 16384 + +# This is our equivalent of util.ssl_.DEFAULT_CIPHERS, but expanded out to +# individual cipher suites. We need to do this because this is how +# SecureTransport wants them. +CIPHER_SUITES = [ + SecurityConst.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, + SecurityConst.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, + SecurityConst.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, + SecurityConst.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, + SecurityConst.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, + SecurityConst.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, + SecurityConst.TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, + SecurityConst.TLS_DHE_RSA_WITH_AES_128_GCM_SHA256, + SecurityConst.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384, + SecurityConst.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, + SecurityConst.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256, + SecurityConst.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, + SecurityConst.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, + SecurityConst.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, + SecurityConst.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, + SecurityConst.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, + SecurityConst.TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, + SecurityConst.TLS_DHE_RSA_WITH_AES_256_CBC_SHA, + SecurityConst.TLS_DHE_RSA_WITH_AES_128_CBC_SHA256, + SecurityConst.TLS_DHE_RSA_WITH_AES_128_CBC_SHA, + SecurityConst.TLS_AES_256_GCM_SHA384, + SecurityConst.TLS_AES_128_GCM_SHA256, + SecurityConst.TLS_RSA_WITH_AES_256_GCM_SHA384, + SecurityConst.TLS_RSA_WITH_AES_128_GCM_SHA256, + SecurityConst.TLS_AES_128_CCM_8_SHA256, + SecurityConst.TLS_AES_128_CCM_SHA256, + SecurityConst.TLS_RSA_WITH_AES_256_CBC_SHA256, + SecurityConst.TLS_RSA_WITH_AES_128_CBC_SHA256, + SecurityConst.TLS_RSA_WITH_AES_256_CBC_SHA, + SecurityConst.TLS_RSA_WITH_AES_128_CBC_SHA, +] + +# Basically this is simple: for PROTOCOL_SSLv23 we turn it into a low of +# TLSv1 and a high of TLSv1.3. For everything else, we pin to that version. +# TLSv1 to 1.2 are supported on macOS 10.8+ and TLSv1.3 is macOS 10.13+ +_protocol_to_min_max = { + util.PROTOCOL_TLS: ( + SecurityConst.kTLSProtocol1, + SecurityConst.kTLSProtocolMaxSupported, + ) +} + +if hasattr(ssl, "PROTOCOL_SSLv2"): + _protocol_to_min_max[ssl.PROTOCOL_SSLv2] = ( + SecurityConst.kSSLProtocol2, + SecurityConst.kSSLProtocol2, + ) +if hasattr(ssl, "PROTOCOL_SSLv3"): + _protocol_to_min_max[ssl.PROTOCOL_SSLv3] = ( + SecurityConst.kSSLProtocol3, + SecurityConst.kSSLProtocol3, + ) +if hasattr(ssl, "PROTOCOL_TLSv1"): + _protocol_to_min_max[ssl.PROTOCOL_TLSv1] = ( + SecurityConst.kTLSProtocol1, + SecurityConst.kTLSProtocol1, + ) +if hasattr(ssl, "PROTOCOL_TLSv1_1"): + _protocol_to_min_max[ssl.PROTOCOL_TLSv1_1] = ( + SecurityConst.kTLSProtocol11, + SecurityConst.kTLSProtocol11, + ) +if hasattr(ssl, "PROTOCOL_TLSv1_2"): + _protocol_to_min_max[ssl.PROTOCOL_TLSv1_2] = ( + SecurityConst.kTLSProtocol12, + SecurityConst.kTLSProtocol12, + ) + + +def inject_into_urllib3(): + """ + Monkey-patch urllib3 with SecureTransport-backed SSL-support. + """ + util.SSLContext = SecureTransportContext + util.ssl_.SSLContext = SecureTransportContext + util.HAS_SNI = HAS_SNI + util.ssl_.HAS_SNI = HAS_SNI + util.IS_SECURETRANSPORT = True + util.ssl_.IS_SECURETRANSPORT = True + + +def extract_from_urllib3(): + """ + Undo monkey-patching by :func:`inject_into_urllib3`. + """ + util.SSLContext = orig_util_SSLContext + util.ssl_.SSLContext = orig_util_SSLContext + util.HAS_SNI = orig_util_HAS_SNI + util.ssl_.HAS_SNI = orig_util_HAS_SNI + util.IS_SECURETRANSPORT = False + util.ssl_.IS_SECURETRANSPORT = False + + +def _read_callback(connection_id, data_buffer, data_length_pointer): + """ + SecureTransport read callback. This is called by ST to request that data + be returned from the socket. + """ + wrapped_socket = None + try: + wrapped_socket = _connection_refs.get(connection_id) + if wrapped_socket is None: + return SecurityConst.errSSLInternal + base_socket = wrapped_socket.socket + + requested_length = data_length_pointer[0] + + timeout = wrapped_socket.gettimeout() + error = None + read_count = 0 + + try: + while read_count < requested_length: + if timeout is None or timeout >= 0: + if not util.wait_for_read(base_socket, timeout): + raise socket.error(errno.EAGAIN, "timed out") + + remaining = requested_length - read_count + buffer = (ctypes.c_char * remaining).from_address( + data_buffer + read_count + ) + chunk_size = base_socket.recv_into(buffer, remaining) + read_count += chunk_size + if not chunk_size: + if not read_count: + return SecurityConst.errSSLClosedGraceful + break + except (socket.error) as e: + error = e.errno + + if error is not None and error != errno.EAGAIN: + data_length_pointer[0] = read_count + if error == errno.ECONNRESET or error == errno.EPIPE: + return SecurityConst.errSSLClosedAbort + raise + + data_length_pointer[0] = read_count + + if read_count != requested_length: + return SecurityConst.errSSLWouldBlock + + return 0 + except Exception as e: + if wrapped_socket is not None: + wrapped_socket._exception = e + return SecurityConst.errSSLInternal + + +def _write_callback(connection_id, data_buffer, data_length_pointer): + """ + SecureTransport write callback. This is called by ST to request that data + actually be sent on the network. + """ + wrapped_socket = None + try: + wrapped_socket = _connection_refs.get(connection_id) + if wrapped_socket is None: + return SecurityConst.errSSLInternal + base_socket = wrapped_socket.socket + + bytes_to_write = data_length_pointer[0] + data = ctypes.string_at(data_buffer, bytes_to_write) + + timeout = wrapped_socket.gettimeout() + error = None + sent = 0 + + try: + while sent < bytes_to_write: + if timeout is None or timeout >= 0: + if not util.wait_for_write(base_socket, timeout): + raise socket.error(errno.EAGAIN, "timed out") + chunk_sent = base_socket.send(data) + sent += chunk_sent + + # This has some needless copying here, but I'm not sure there's + # much value in optimising this data path. + data = data[chunk_sent:] + except (socket.error) as e: + error = e.errno + + if error is not None and error != errno.EAGAIN: + data_length_pointer[0] = sent + if error == errno.ECONNRESET or error == errno.EPIPE: + return SecurityConst.errSSLClosedAbort + raise + + data_length_pointer[0] = sent + + if sent != bytes_to_write: + return SecurityConst.errSSLWouldBlock + + return 0 + except Exception as e: + if wrapped_socket is not None: + wrapped_socket._exception = e + return SecurityConst.errSSLInternal + + +# We need to keep these two objects references alive: if they get GC'd while +# in use then SecureTransport could attempt to call a function that is in freed +# memory. That would be...uh...bad. Yeah, that's the word. Bad. +_read_callback_pointer = Security.SSLReadFunc(_read_callback) +_write_callback_pointer = Security.SSLWriteFunc(_write_callback) + + +class WrappedSocket(object): + """ + API-compatibility wrapper for Python's OpenSSL wrapped socket object. + + Note: _makefile_refs, _drop(), and _reuse() are needed for the garbage + collector of PyPy. + """ + + def __init__(self, socket): + self.socket = socket + self.context = None + self._makefile_refs = 0 + self._closed = False + self._exception = None + self._keychain = None + self._keychain_dir = None + self._client_cert_chain = None + + # We save off the previously-configured timeout and then set it to + # zero. This is done because we use select and friends to handle the + # timeouts, but if we leave the timeout set on the lower socket then + # Python will "kindly" call select on that socket again for us. Avoid + # that by forcing the timeout to zero. + self._timeout = self.socket.gettimeout() + self.socket.settimeout(0) + + @contextlib.contextmanager + def _raise_on_error(self): + """ + A context manager that can be used to wrap calls that do I/O from + SecureTransport. If any of the I/O callbacks hit an exception, this + context manager will correctly propagate the exception after the fact. + This avoids silently swallowing those exceptions. + + It also correctly forces the socket closed. + """ + self._exception = None + + # We explicitly don't catch around this yield because in the unlikely + # event that an exception was hit in the block we don't want to swallow + # it. + yield + if self._exception is not None: + exception, self._exception = self._exception, None + self.close() + raise exception + + def _set_ciphers(self): + """ + Sets up the allowed ciphers. By default this matches the set in + util.ssl_.DEFAULT_CIPHERS, at least as supported by macOS. This is done + custom and doesn't allow changing at this time, mostly because parsing + OpenSSL cipher strings is going to be a freaking nightmare. + """ + ciphers = (Security.SSLCipherSuite * len(CIPHER_SUITES))(*CIPHER_SUITES) + result = Security.SSLSetEnabledCiphers( + self.context, ciphers, len(CIPHER_SUITES) + ) + _assert_no_error(result) + + def _custom_validate(self, verify, trust_bundle): + """ + Called when we have set custom validation. We do this in two cases: + first, when cert validation is entirely disabled; and second, when + using a custom trust DB. + """ + # If we disabled cert validation, just say: cool. + if not verify: + return + + # We want data in memory, so load it up. + if os.path.isfile(trust_bundle): + with open(trust_bundle, "rb") as f: + trust_bundle = f.read() + + cert_array = None + trust = Security.SecTrustRef() + + try: + # Get a CFArray that contains the certs we want. + cert_array = _cert_array_from_pem(trust_bundle) + + # Ok, now the hard part. We want to get the SecTrustRef that ST has + # created for this connection, shove our CAs into it, tell ST to + # ignore everything else it knows, and then ask if it can build a + # chain. This is a buuuunch of code. + result = Security.SSLCopyPeerTrust(self.context, ctypes.byref(trust)) + _assert_no_error(result) + if not trust: + raise ssl.SSLError("Failed to copy trust reference") + + result = Security.SecTrustSetAnchorCertificates(trust, cert_array) + _assert_no_error(result) + + result = Security.SecTrustSetAnchorCertificatesOnly(trust, True) + _assert_no_error(result) + + trust_result = Security.SecTrustResultType() + result = Security.SecTrustEvaluate(trust, ctypes.byref(trust_result)) + _assert_no_error(result) + finally: + if trust: + CoreFoundation.CFRelease(trust) + + if cert_array is not None: + CoreFoundation.CFRelease(cert_array) + + # Ok, now we can look at what the result was. + successes = ( + SecurityConst.kSecTrustResultUnspecified, + SecurityConst.kSecTrustResultProceed, + ) + if trust_result.value not in successes: + raise ssl.SSLError( + "certificate verify failed, error code: %d" % trust_result.value + ) + + def handshake( + self, + server_hostname, + verify, + trust_bundle, + min_version, + max_version, + client_cert, + client_key, + client_key_passphrase, + ): + """ + Actually performs the TLS handshake. This is run automatically by + wrapped socket, and shouldn't be needed in user code. + """ + # First, we do the initial bits of connection setup. We need to create + # a context, set its I/O funcs, and set the connection reference. + self.context = Security.SSLCreateContext( + None, SecurityConst.kSSLClientSide, SecurityConst.kSSLStreamType + ) + result = Security.SSLSetIOFuncs( + self.context, _read_callback_pointer, _write_callback_pointer + ) + _assert_no_error(result) + + # Here we need to compute the handle to use. We do this by taking the + # id of self modulo 2**31 - 1. If this is already in the dictionary, we + # just keep incrementing by one until we find a free space. + with _connection_ref_lock: + handle = id(self) % 2147483647 + while handle in _connection_refs: + handle = (handle + 1) % 2147483647 + _connection_refs[handle] = self + + result = Security.SSLSetConnection(self.context, handle) + _assert_no_error(result) + + # If we have a server hostname, we should set that too. + if server_hostname: + if not isinstance(server_hostname, bytes): + server_hostname = server_hostname.encode("utf-8") + + result = Security.SSLSetPeerDomainName( + self.context, server_hostname, len(server_hostname) + ) + _assert_no_error(result) + + # Setup the ciphers. + self._set_ciphers() + + # Set the minimum and maximum TLS versions. + result = Security.SSLSetProtocolVersionMin(self.context, min_version) + _assert_no_error(result) + + # TLS 1.3 isn't necessarily enabled by the OS + # so we have to detect when we error out and try + # setting TLS 1.3 if it's allowed. kTLSProtocolMaxSupported + # was added in macOS 10.13 along with kTLSProtocol13. + result = Security.SSLSetProtocolVersionMax(self.context, max_version) + if result != 0 and max_version == SecurityConst.kTLSProtocolMaxSupported: + result = Security.SSLSetProtocolVersionMax( + self.context, SecurityConst.kTLSProtocol12 + ) + _assert_no_error(result) + + # If there's a trust DB, we need to use it. We do that by telling + # SecureTransport to break on server auth. We also do that if we don't + # want to validate the certs at all: we just won't actually do any + # authing in that case. + if not verify or trust_bundle is not None: + result = Security.SSLSetSessionOption( + self.context, SecurityConst.kSSLSessionOptionBreakOnServerAuth, True + ) + _assert_no_error(result) + + # If there's a client cert, we need to use it. + if client_cert: + self._keychain, self._keychain_dir = _temporary_keychain() + self._client_cert_chain = _load_client_cert_chain( + self._keychain, client_cert, client_key + ) + result = Security.SSLSetCertificate(self.context, self._client_cert_chain) + _assert_no_error(result) + + while True: + with self._raise_on_error(): + result = Security.SSLHandshake(self.context) + + if result == SecurityConst.errSSLWouldBlock: + raise socket.timeout("handshake timed out") + elif result == SecurityConst.errSSLServerAuthCompleted: + self._custom_validate(verify, trust_bundle) + continue + else: + _assert_no_error(result) + break + + def fileno(self): + return self.socket.fileno() + + # Copy-pasted from Python 3.5 source code + def _decref_socketios(self): + if self._makefile_refs > 0: + self._makefile_refs -= 1 + if self._closed: + self.close() + + def recv(self, bufsiz): + buffer = ctypes.create_string_buffer(bufsiz) + bytes_read = self.recv_into(buffer, bufsiz) + data = buffer[:bytes_read] + return data + + def recv_into(self, buffer, nbytes=None): + # Read short on EOF. + if self._closed: + return 0 + + if nbytes is None: + nbytes = len(buffer) + + buffer = (ctypes.c_char * nbytes).from_buffer(buffer) + processed_bytes = ctypes.c_size_t(0) + + with self._raise_on_error(): + result = Security.SSLRead( + self.context, buffer, nbytes, ctypes.byref(processed_bytes) + ) + + # There are some result codes that we want to treat as "not always + # errors". Specifically, those are errSSLWouldBlock, + # errSSLClosedGraceful, and errSSLClosedNoNotify. + if result == SecurityConst.errSSLWouldBlock: + # If we didn't process any bytes, then this was just a time out. + # However, we can get errSSLWouldBlock in situations when we *did* + # read some data, and in those cases we should just read "short" + # and return. + if processed_bytes.value == 0: + # Timed out, no data read. + raise socket.timeout("recv timed out") + elif result in ( + SecurityConst.errSSLClosedGraceful, + SecurityConst.errSSLClosedNoNotify, + ): + # The remote peer has closed this connection. We should do so as + # well. Note that we don't actually return here because in + # principle this could actually be fired along with return data. + # It's unlikely though. + self.close() + else: + _assert_no_error(result) + + # Ok, we read and probably succeeded. We should return whatever data + # was actually read. + return processed_bytes.value + + def settimeout(self, timeout): + self._timeout = timeout + + def gettimeout(self): + return self._timeout + + def send(self, data): + processed_bytes = ctypes.c_size_t(0) + + with self._raise_on_error(): + result = Security.SSLWrite( + self.context, data, len(data), ctypes.byref(processed_bytes) + ) + + if result == SecurityConst.errSSLWouldBlock and processed_bytes.value == 0: + # Timed out + raise socket.timeout("send timed out") + else: + _assert_no_error(result) + + # We sent, and probably succeeded. Tell them how much we sent. + return processed_bytes.value + + def sendall(self, data): + total_sent = 0 + while total_sent < len(data): + sent = self.send(data[total_sent : total_sent + SSL_WRITE_BLOCKSIZE]) + total_sent += sent + + def shutdown(self): + with self._raise_on_error(): + Security.SSLClose(self.context) + + def close(self): + # TODO: should I do clean shutdown here? Do I have to? + if self._makefile_refs < 1: + self._closed = True + if self.context: + CoreFoundation.CFRelease(self.context) + self.context = None + if self._client_cert_chain: + CoreFoundation.CFRelease(self._client_cert_chain) + self._client_cert_chain = None + if self._keychain: + Security.SecKeychainDelete(self._keychain) + CoreFoundation.CFRelease(self._keychain) + shutil.rmtree(self._keychain_dir) + self._keychain = self._keychain_dir = None + return self.socket.close() + else: + self._makefile_refs -= 1 + + def getpeercert(self, binary_form=False): + # Urgh, annoying. + # + # Here's how we do this: + # + # 1. Call SSLCopyPeerTrust to get hold of the trust object for this + # connection. + # 2. Call SecTrustGetCertificateAtIndex for index 0 to get the leaf. + # 3. To get the CN, call SecCertificateCopyCommonName and process that + # string so that it's of the appropriate type. + # 4. To get the SAN, we need to do something a bit more complex: + # a. Call SecCertificateCopyValues to get the data, requesting + # kSecOIDSubjectAltName. + # b. Mess about with this dictionary to try to get the SANs out. + # + # This is gross. Really gross. It's going to be a few hundred LoC extra + # just to repeat something that SecureTransport can *already do*. So my + # operating assumption at this time is that what we want to do is + # instead to just flag to urllib3 that it shouldn't do its own hostname + # validation when using SecureTransport. + if not binary_form: + raise ValueError("SecureTransport only supports dumping binary certs") + trust = Security.SecTrustRef() + certdata = None + der_bytes = None + + try: + # Grab the trust store. + result = Security.SSLCopyPeerTrust(self.context, ctypes.byref(trust)) + _assert_no_error(result) + if not trust: + # Probably we haven't done the handshake yet. No biggie. + return None + + cert_count = Security.SecTrustGetCertificateCount(trust) + if not cert_count: + # Also a case that might happen if we haven't handshaked. + # Handshook? Handshaken? + return None + + leaf = Security.SecTrustGetCertificateAtIndex(trust, 0) + assert leaf + + # Ok, now we want the DER bytes. + certdata = Security.SecCertificateCopyData(leaf) + assert certdata + + data_length = CoreFoundation.CFDataGetLength(certdata) + data_buffer = CoreFoundation.CFDataGetBytePtr(certdata) + der_bytes = ctypes.string_at(data_buffer, data_length) + finally: + if certdata: + CoreFoundation.CFRelease(certdata) + if trust: + CoreFoundation.CFRelease(trust) + + return der_bytes + + def version(self): + protocol = Security.SSLProtocol() + result = Security.SSLGetNegotiatedProtocolVersion( + self.context, ctypes.byref(protocol) + ) + _assert_no_error(result) + if protocol.value == SecurityConst.kTLSProtocol13: + return "TLSv1.3" + elif protocol.value == SecurityConst.kTLSProtocol12: + return "TLSv1.2" + elif protocol.value == SecurityConst.kTLSProtocol11: + return "TLSv1.1" + elif protocol.value == SecurityConst.kTLSProtocol1: + return "TLSv1" + elif protocol.value == SecurityConst.kSSLProtocol3: + return "SSLv3" + elif protocol.value == SecurityConst.kSSLProtocol2: + return "SSLv2" + else: + raise ssl.SSLError("Unknown TLS version: %r" % protocol) + + def _reuse(self): + self._makefile_refs += 1 + + def _drop(self): + if self._makefile_refs < 1: + self.close() + else: + self._makefile_refs -= 1 + + +if _fileobject: # Platform-specific: Python 2 + + def makefile(self, mode, bufsize=-1): + self._makefile_refs += 1 + return _fileobject(self, mode, bufsize, close=True) + + +else: # Platform-specific: Python 3 + + def makefile(self, mode="r", buffering=None, *args, **kwargs): + # We disable buffering with SecureTransport because it conflicts with + # the buffering that ST does internally (see issue #1153 for more). + buffering = 0 + return backport_makefile(self, mode, buffering, *args, **kwargs) + + +WrappedSocket.makefile = makefile + + +class SecureTransportContext(object): + """ + I am a wrapper class for the SecureTransport library, to translate the + interface of the standard library ``SSLContext`` object to calls into + SecureTransport. + """ + + def __init__(self, protocol): + self._min_version, self._max_version = _protocol_to_min_max[protocol] + self._options = 0 + self._verify = False + self._trust_bundle = None + self._client_cert = None + self._client_key = None + self._client_key_passphrase = None + + @property + def check_hostname(self): + """ + SecureTransport cannot have its hostname checking disabled. For more, + see the comment on getpeercert() in this file. + """ + return True + + @check_hostname.setter + def check_hostname(self, value): + """ + SecureTransport cannot have its hostname checking disabled. For more, + see the comment on getpeercert() in this file. + """ + pass + + @property + def options(self): + # TODO: Well, crap. + # + # So this is the bit of the code that is the most likely to cause us + # trouble. Essentially we need to enumerate all of the SSL options that + # users might want to use and try to see if we can sensibly translate + # them, or whether we should just ignore them. + return self._options + + @options.setter + def options(self, value): + # TODO: Update in line with above. + self._options = value + + @property + def verify_mode(self): + return ssl.CERT_REQUIRED if self._verify else ssl.CERT_NONE + + @verify_mode.setter + def verify_mode(self, value): + self._verify = True if value == ssl.CERT_REQUIRED else False + + def set_default_verify_paths(self): + # So, this has to do something a bit weird. Specifically, what it does + # is nothing. + # + # This means that, if we had previously had load_verify_locations + # called, this does not undo that. We need to do that because it turns + # out that the rest of the urllib3 code will attempt to load the + # default verify paths if it hasn't been told about any paths, even if + # the context itself was sometime earlier. We resolve that by just + # ignoring it. + pass + + def load_default_certs(self): + return self.set_default_verify_paths() + + def set_ciphers(self, ciphers): + # For now, we just require the default cipher string. + if ciphers != util.ssl_.DEFAULT_CIPHERS: + raise ValueError("SecureTransport doesn't support custom cipher strings") + + def load_verify_locations(self, cafile=None, capath=None, cadata=None): + # OK, we only really support cadata and cafile. + if capath is not None: + raise ValueError("SecureTransport does not support cert directories") + + self._trust_bundle = cafile or cadata + + def load_cert_chain(self, certfile, keyfile=None, password=None): + self._client_cert = certfile + self._client_key = keyfile + self._client_cert_passphrase = password + + def wrap_socket( + self, + sock, + server_side=False, + do_handshake_on_connect=True, + suppress_ragged_eofs=True, + server_hostname=None, + ): + # So, what do we do here? Firstly, we assert some properties. This is a + # stripped down shim, so there is some functionality we don't support. + # See PEP 543 for the real deal. + assert not server_side + assert do_handshake_on_connect + assert suppress_ragged_eofs + + # Ok, we're good to go. Now we want to create the wrapped socket object + # and store it in the appropriate place. + wrapped_socket = WrappedSocket(sock) + + # Now we can handshake + wrapped_socket.handshake( + server_hostname, + self._verify, + self._trust_bundle, + self._min_version, + self._max_version, + self._client_cert, + self._client_key, + self._client_key_passphrase, + ) + return wrapped_socket diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/socks.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/socks.py index bb152cfe1dfa585f1b06d0b0b2409f1bd15e67a1..9e97f7aa98f4ccf380af4b9fc32999d01be8af8c 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/socks.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/contrib/socks.py @@ -1,3 +1,210 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9f30cc80320525656e6ca1eabc89f6f922823bdd618492273fdd968070a11b30 -size 7036 +# -*- coding: utf-8 -*- +""" +This module contains provisional support for SOCKS proxies from within +urllib3. This module supports SOCKS4, SOCKS4A (an extension of SOCKS4), and +SOCKS5. To enable its functionality, either install PySocks or install this +module with the ``socks`` extra. + +The SOCKS implementation supports the full range of urllib3 features. It also +supports the following SOCKS features: + +- SOCKS4A (``proxy_url='socks4a://...``) +- SOCKS4 (``proxy_url='socks4://...``) +- SOCKS5 with remote DNS (``proxy_url='socks5h://...``) +- SOCKS5 with local DNS (``proxy_url='socks5://...``) +- Usernames and passwords for the SOCKS proxy + + .. note:: + It is recommended to use ``socks5h://`` or ``socks4a://`` schemes in + your ``proxy_url`` to ensure that DNS resolution is done from the remote + server instead of client-side when connecting to a domain name. + +SOCKS4 supports IPv4 and domain names with the SOCKS4A extension. SOCKS5 +supports IPv4, IPv6, and domain names. + +When connecting to a SOCKS4 proxy the ``username`` portion of the ``proxy_url`` +will be sent as the ``userid`` section of the SOCKS request:: + + proxy_url="socks4a://@proxy-host" + +When connecting to a SOCKS5 proxy the ``username`` and ``password`` portion +of the ``proxy_url`` will be sent as the username/password to authenticate +with the proxy:: + + proxy_url="socks5h://:@proxy-host" + +""" +from __future__ import absolute_import + +try: + import socks +except ImportError: + import warnings + from ..exceptions import DependencyWarning + + warnings.warn( + ( + "SOCKS support in urllib3 requires the installation of optional " + "dependencies: specifically, PySocks. For more information, see " + "https://urllib3.readthedocs.io/en/latest/contrib.html#socks-proxies" + ), + DependencyWarning, + ) + raise + +from socket import error as SocketError, timeout as SocketTimeout + +from ..connection import HTTPConnection, HTTPSConnection +from ..connectionpool import HTTPConnectionPool, HTTPSConnectionPool +from ..exceptions import ConnectTimeoutError, NewConnectionError +from ..poolmanager import PoolManager +from ..util.url import parse_url + +try: + import ssl +except ImportError: + ssl = None + + +class SOCKSConnection(HTTPConnection): + """ + A plain-text HTTP connection that connects via a SOCKS proxy. + """ + + def __init__(self, *args, **kwargs): + self._socks_options = kwargs.pop("_socks_options") + super(SOCKSConnection, self).__init__(*args, **kwargs) + + def _new_conn(self): + """ + Establish a new connection via the SOCKS proxy. + """ + extra_kw = {} + if self.source_address: + extra_kw["source_address"] = self.source_address + + if self.socket_options: + extra_kw["socket_options"] = self.socket_options + + try: + conn = socks.create_connection( + (self.host, self.port), + proxy_type=self._socks_options["socks_version"], + proxy_addr=self._socks_options["proxy_host"], + proxy_port=self._socks_options["proxy_port"], + proxy_username=self._socks_options["username"], + proxy_password=self._socks_options["password"], + proxy_rdns=self._socks_options["rdns"], + timeout=self.timeout, + **extra_kw + ) + + except SocketTimeout: + raise ConnectTimeoutError( + self, + "Connection to %s timed out. (connect timeout=%s)" + % (self.host, self.timeout), + ) + + except socks.ProxyError as e: + # This is fragile as hell, but it seems to be the only way to raise + # useful errors here. + if e.socket_err: + error = e.socket_err + if isinstance(error, SocketTimeout): + raise ConnectTimeoutError( + self, + "Connection to %s timed out. (connect timeout=%s)" + % (self.host, self.timeout), + ) + else: + raise NewConnectionError( + self, "Failed to establish a new connection: %s" % error + ) + else: + raise NewConnectionError( + self, "Failed to establish a new connection: %s" % e + ) + + except SocketError as e: # Defensive: PySocks should catch all these. + raise NewConnectionError( + self, "Failed to establish a new connection: %s" % e + ) + + return conn + + +# We don't need to duplicate the Verified/Unverified distinction from +# urllib3/connection.py here because the HTTPSConnection will already have been +# correctly set to either the Verified or Unverified form by that module. This +# means the SOCKSHTTPSConnection will automatically be the correct type. +class SOCKSHTTPSConnection(SOCKSConnection, HTTPSConnection): + pass + + +class SOCKSHTTPConnectionPool(HTTPConnectionPool): + ConnectionCls = SOCKSConnection + + +class SOCKSHTTPSConnectionPool(HTTPSConnectionPool): + ConnectionCls = SOCKSHTTPSConnection + + +class SOCKSProxyManager(PoolManager): + """ + A version of the urllib3 ProxyManager that routes connections via the + defined SOCKS proxy. + """ + + pool_classes_by_scheme = { + "http": SOCKSHTTPConnectionPool, + "https": SOCKSHTTPSConnectionPool, + } + + def __init__( + self, + proxy_url, + username=None, + password=None, + num_pools=10, + headers=None, + **connection_pool_kw + ): + parsed = parse_url(proxy_url) + + if username is None and password is None and parsed.auth is not None: + split = parsed.auth.split(":") + if len(split) == 2: + username, password = split + if parsed.scheme == "socks5": + socks_version = socks.PROXY_TYPE_SOCKS5 + rdns = False + elif parsed.scheme == "socks5h": + socks_version = socks.PROXY_TYPE_SOCKS5 + rdns = True + elif parsed.scheme == "socks4": + socks_version = socks.PROXY_TYPE_SOCKS4 + rdns = False + elif parsed.scheme == "socks4a": + socks_version = socks.PROXY_TYPE_SOCKS4 + rdns = True + else: + raise ValueError("Unable to determine SOCKS version from %s" % proxy_url) + + self.proxy_url = proxy_url + + socks_options = { + "socks_version": socks_version, + "proxy_host": parsed.host, + "proxy_port": parsed.port, + "username": username, + "password": password, + "rdns": rdns, + } + connection_pool_kw["_socks_options"] = socks_options + + super(SOCKSProxyManager, self).__init__( + num_pools, headers, **connection_pool_kw + ) + + self.pool_classes_by_scheme = SOCKSProxyManager.pool_classes_by_scheme diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/exceptions.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/exceptions.py index c7dc50a338e89036217b0c83533072c20579ae1f..93d93fba7d1d479c77bc00bb24b26a8f35e5f1f8 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/exceptions.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/exceptions.py @@ -1,3 +1,255 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fed8929b0610f1e9ba392af918f3b98696c21bcab40d322e27617b34c1320f27 -size 6610 +from __future__ import absolute_import +from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead + +# Base Exceptions + + +class HTTPError(Exception): + "Base exception used by this module." + pass + + +class HTTPWarning(Warning): + "Base warning used by this module." + pass + + +class PoolError(HTTPError): + "Base exception for errors caused within a pool." + + def __init__(self, pool, message): + self.pool = pool + HTTPError.__init__(self, "%s: %s" % (pool, message)) + + def __reduce__(self): + # For pickling purposes. + return self.__class__, (None, None) + + +class RequestError(PoolError): + "Base exception for PoolErrors that have associated URLs." + + def __init__(self, pool, url, message): + self.url = url + PoolError.__init__(self, pool, message) + + def __reduce__(self): + # For pickling purposes. + return self.__class__, (None, self.url, None) + + +class SSLError(HTTPError): + "Raised when SSL certificate fails in an HTTPS connection." + pass + + +class ProxyError(HTTPError): + "Raised when the connection to a proxy fails." + pass + + +class DecodeError(HTTPError): + "Raised when automatic decoding based on Content-Type fails." + pass + + +class ProtocolError(HTTPError): + "Raised when something unexpected happens mid-request/response." + pass + + +#: Renamed to ProtocolError but aliased for backwards compatibility. +ConnectionError = ProtocolError + + +# Leaf Exceptions + + +class MaxRetryError(RequestError): + """Raised when the maximum number of retries is exceeded. + + :param pool: The connection pool + :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool` + :param string url: The requested Url + :param exceptions.Exception reason: The underlying error + + """ + + def __init__(self, pool, url, reason=None): + self.reason = reason + + message = "Max retries exceeded with url: %s (Caused by %r)" % (url, reason) + + RequestError.__init__(self, pool, url, message) + + +class HostChangedError(RequestError): + "Raised when an existing pool gets a request for a foreign host." + + def __init__(self, pool, url, retries=3): + message = "Tried to open a foreign host with url: %s" % url + RequestError.__init__(self, pool, url, message) + self.retries = retries + + +class TimeoutStateError(HTTPError): + """ Raised when passing an invalid state to a timeout """ + + pass + + +class TimeoutError(HTTPError): + """ Raised when a socket timeout error occurs. + + Catching this error will catch both :exc:`ReadTimeoutErrors + ` and :exc:`ConnectTimeoutErrors `. + """ + + pass + + +class ReadTimeoutError(TimeoutError, RequestError): + "Raised when a socket timeout occurs while receiving data from a server" + pass + + +# This timeout error does not have a URL attached and needs to inherit from the +# base HTTPError +class ConnectTimeoutError(TimeoutError): + "Raised when a socket timeout occurs while connecting to a server" + pass + + +class NewConnectionError(ConnectTimeoutError, PoolError): + "Raised when we fail to establish a new connection. Usually ECONNREFUSED." + pass + + +class EmptyPoolError(PoolError): + "Raised when a pool runs out of connections and no more are allowed." + pass + + +class ClosedPoolError(PoolError): + "Raised when a request enters a pool after the pool has been closed." + pass + + +class LocationValueError(ValueError, HTTPError): + "Raised when there is something wrong with a given URL input." + pass + + +class LocationParseError(LocationValueError): + "Raised when get_host or similar fails to parse the URL input." + + def __init__(self, location): + message = "Failed to parse: %s" % location + HTTPError.__init__(self, message) + + self.location = location + + +class ResponseError(HTTPError): + "Used as a container for an error reason supplied in a MaxRetryError." + GENERIC_ERROR = "too many error responses" + SPECIFIC_ERROR = "too many {status_code} error responses" + + +class SecurityWarning(HTTPWarning): + "Warned when performing security reducing actions" + pass + + +class SubjectAltNameWarning(SecurityWarning): + "Warned when connecting to a host with a certificate missing a SAN." + pass + + +class InsecureRequestWarning(SecurityWarning): + "Warned when making an unverified HTTPS request." + pass + + +class SystemTimeWarning(SecurityWarning): + "Warned when system time is suspected to be wrong" + pass + + +class InsecurePlatformWarning(SecurityWarning): + "Warned when certain SSL configuration is not available on a platform." + pass + + +class SNIMissingWarning(HTTPWarning): + "Warned when making a HTTPS request without SNI available." + pass + + +class DependencyWarning(HTTPWarning): + """ + Warned when an attempt is made to import a module with missing optional + dependencies. + """ + + pass + + +class ResponseNotChunked(ProtocolError, ValueError): + "Response needs to be chunked in order to read it as chunks." + pass + + +class BodyNotHttplibCompatible(HTTPError): + """ + Body should be httplib.HTTPResponse like (have an fp attribute which + returns raw chunks) for read_chunked(). + """ + + pass + + +class IncompleteRead(HTTPError, httplib_IncompleteRead): + """ + Response length doesn't match expected Content-Length + + Subclass of http_client.IncompleteRead to allow int value + for `partial` to avoid creating large objects on streamed + reads. + """ + + def __init__(self, partial, expected): + super(IncompleteRead, self).__init__(partial, expected) + + def __repr__(self): + return "IncompleteRead(%i bytes read, " "%i more expected)" % ( + self.partial, + self.expected, + ) + + +class InvalidHeader(HTTPError): + "The header provided was somehow invalid." + pass + + +class ProxySchemeUnknown(AssertionError, ValueError): + "ProxyManager does not support the supplied scheme" + # TODO(t-8ch): Stop inheriting from AssertionError in v2.0. + + def __init__(self, scheme): + message = "Not supported proxy scheme %s" % scheme + super(ProxySchemeUnknown, self).__init__(message) + + +class HeaderParsingError(HTTPError): + "Raised by assert_header_parsing, but we convert it to a log.warning statement." + + def __init__(self, defects, unparsed_data): + message = "%s, unparsed data: %r" % (defects or "Unknown", unparsed_data) + super(HeaderParsingError, self).__init__(message) + + +class UnrewindableBodyError(HTTPError): + "urllib3 encountered an error when trying to rewind a body" + pass diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/fields.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/fields.py index 09795d38eb99852fd01680a5eba56cba92a3e7df..8715b2202b0fcc8da2dc0f0e13f2eb0a95373de5 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/fields.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/fields.py @@ -1,3 +1,273 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:92ba03efa40af867471d6edffc050de17c430b73903c8d8516b4bd7922f8042b -size 8553 +from __future__ import absolute_import +import email.utils +import mimetypes +import re + +from .packages import six + + +def guess_content_type(filename, default="application/octet-stream"): + """ + Guess the "Content-Type" of a file. + + :param filename: + The filename to guess the "Content-Type" of using :mod:`mimetypes`. + :param default: + If no "Content-Type" can be guessed, default to `default`. + """ + if filename: + return mimetypes.guess_type(filename)[0] or default + return default + + +def format_header_param_rfc2231(name, value): + """ + Helper function to format and quote a single header parameter using the + strategy defined in RFC 2231. + + Particularly useful for header parameters which might contain + non-ASCII values, like file names. This follows RFC 2388 Section 4.4. + + :param name: + The name of the parameter, a string expected to be ASCII only. + :param value: + The value of the parameter, provided as ``bytes`` or `str``. + :ret: + An RFC-2231-formatted unicode string. + """ + if isinstance(value, six.binary_type): + value = value.decode("utf-8") + + if not any(ch in value for ch in '"\\\r\n'): + result = u'%s="%s"' % (name, value) + try: + result.encode("ascii") + except (UnicodeEncodeError, UnicodeDecodeError): + pass + else: + return result + + if six.PY2: # Python 2: + value = value.encode("utf-8") + + # encode_rfc2231 accepts an encoded string and returns an ascii-encoded + # string in Python 2 but accepts and returns unicode strings in Python 3 + value = email.utils.encode_rfc2231(value, "utf-8") + value = "%s*=%s" % (name, value) + + if six.PY2: # Python 2: + value = value.decode("utf-8") + + return value + + +_HTML5_REPLACEMENTS = { + u"\u0022": u"%22", + # Replace "\" with "\\". + u"\u005C": u"\u005C\u005C", + u"\u005C": u"\u005C\u005C", +} + +# All control characters from 0x00 to 0x1F *except* 0x1B. +_HTML5_REPLACEMENTS.update( + { + six.unichr(cc): u"%{:02X}".format(cc) + for cc in range(0x00, 0x1F + 1) + if cc not in (0x1B,) + } +) + + +def _replace_multiple(value, needles_and_replacements): + def replacer(match): + return needles_and_replacements[match.group(0)] + + pattern = re.compile( + r"|".join([re.escape(needle) for needle in needles_and_replacements.keys()]) + ) + + result = pattern.sub(replacer, value) + + return result + + +def format_header_param_html5(name, value): + """ + Helper function to format and quote a single header parameter using the + HTML5 strategy. + + Particularly useful for header parameters which might contain + non-ASCII values, like file names. This follows the `HTML5 Working Draft + Section 4.10.22.7`_ and matches the behavior of curl and modern browsers. + + .. _HTML5 Working Draft Section 4.10.22.7: + https://w3c.github.io/html/sec-forms.html#multipart-form-data + + :param name: + The name of the parameter, a string expected to be ASCII only. + :param value: + The value of the parameter, provided as ``bytes`` or `str``. + :ret: + A unicode string, stripped of troublesome characters. + """ + if isinstance(value, six.binary_type): + value = value.decode("utf-8") + + value = _replace_multiple(value, _HTML5_REPLACEMENTS) + + return u'%s="%s"' % (name, value) + + +# For backwards-compatibility. +format_header_param = format_header_param_html5 + + +class RequestField(object): + """ + A data container for request body parameters. + + :param name: + The name of this request field. Must be unicode. + :param data: + The data/value body. + :param filename: + An optional filename of the request field. Must be unicode. + :param headers: + An optional dict-like object of headers to initially use for the field. + :param header_formatter: + An optional callable that is used to encode and format the headers. By + default, this is :func:`format_header_param_html5`. + """ + + def __init__( + self, + name, + data, + filename=None, + headers=None, + header_formatter=format_header_param_html5, + ): + self._name = name + self._filename = filename + self.data = data + self.headers = {} + if headers: + self.headers = dict(headers) + self.header_formatter = header_formatter + + @classmethod + def from_tuples(cls, fieldname, value, header_formatter=format_header_param_html5): + """ + A :class:`~urllib3.fields.RequestField` factory from old-style tuple parameters. + + Supports constructing :class:`~urllib3.fields.RequestField` from + parameter of key/value strings AND key/filetuple. A filetuple is a + (filename, data, MIME type) tuple where the MIME type is optional. + For example:: + + 'foo': 'bar', + 'fakefile': ('foofile.txt', 'contents of foofile'), + 'realfile': ('barfile.txt', open('realfile').read()), + 'typedfile': ('bazfile.bin', open('bazfile').read(), 'image/jpeg'), + 'nonamefile': 'contents of nonamefile field', + + Field names and filenames must be unicode. + """ + if isinstance(value, tuple): + if len(value) == 3: + filename, data, content_type = value + else: + filename, data = value + content_type = guess_content_type(filename) + else: + filename = None + content_type = None + data = value + + request_param = cls( + fieldname, data, filename=filename, header_formatter=header_formatter + ) + request_param.make_multipart(content_type=content_type) + + return request_param + + def _render_part(self, name, value): + """ + Overridable helper function to format a single header parameter. By + default, this calls ``self.header_formatter``. + + :param name: + The name of the parameter, a string expected to be ASCII only. + :param value: + The value of the parameter, provided as a unicode string. + """ + + return self.header_formatter(name, value) + + def _render_parts(self, header_parts): + """ + Helper function to format and quote a single header. + + Useful for single headers that are composed of multiple items. E.g., + 'Content-Disposition' fields. + + :param header_parts: + A sequence of (k, v) tuples or a :class:`dict` of (k, v) to format + as `k1="v1"; k2="v2"; ...`. + """ + parts = [] + iterable = header_parts + if isinstance(header_parts, dict): + iterable = header_parts.items() + + for name, value in iterable: + if value is not None: + parts.append(self._render_part(name, value)) + + return u"; ".join(parts) + + def render_headers(self): + """ + Renders the headers for this request field. + """ + lines = [] + + sort_keys = ["Content-Disposition", "Content-Type", "Content-Location"] + for sort_key in sort_keys: + if self.headers.get(sort_key, False): + lines.append(u"%s: %s" % (sort_key, self.headers[sort_key])) + + for header_name, header_value in self.headers.items(): + if header_name not in sort_keys: + if header_value: + lines.append(u"%s: %s" % (header_name, header_value)) + + lines.append(u"\r\n") + return u"\r\n".join(lines) + + def make_multipart( + self, content_disposition=None, content_type=None, content_location=None + ): + """ + Makes this request field into a multipart request field. + + This method overrides "Content-Disposition", "Content-Type" and + "Content-Location" headers to the request parameter. + + :param content_type: + The 'Content-Type' of the request body. + :param content_location: + The 'Content-Location' of the request body. + + """ + self.headers["Content-Disposition"] = content_disposition or u"form-data" + self.headers["Content-Disposition"] += u"; ".join( + [ + u"", + self._render_parts( + ((u"name", self._name), (u"filename", self._filename)) + ), + ] + ) + self.headers["Content-Type"] = content_type + self.headers["Content-Location"] = content_location diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/filepost.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/filepost.py index 2ba6b93e0da03eeac05a979cd1f10997461ad759..b7b00992c652af19b101335a116317139c6cb996 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/filepost.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/filepost.py @@ -1,3 +1,98 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:be3d2a6eba53d40173bef5b84ae0bc3399098b0ef07ed1dc4abfbb6fc5293e9c -size 2440 +from __future__ import absolute_import +import binascii +import codecs +import os + +from io import BytesIO + +from .packages import six +from .packages.six import b +from .fields import RequestField + +writer = codecs.lookup("utf-8")[3] + + +def choose_boundary(): + """ + Our embarrassingly-simple replacement for mimetools.choose_boundary. + """ + boundary = binascii.hexlify(os.urandom(16)) + if not six.PY2: + boundary = boundary.decode("ascii") + return boundary + + +def iter_field_objects(fields): + """ + Iterate over fields. + + Supports list of (k, v) tuples and dicts, and lists of + :class:`~urllib3.fields.RequestField`. + + """ + if isinstance(fields, dict): + i = six.iteritems(fields) + else: + i = iter(fields) + + for field in i: + if isinstance(field, RequestField): + yield field + else: + yield RequestField.from_tuples(*field) + + +def iter_fields(fields): + """ + .. deprecated:: 1.6 + + Iterate over fields. + + The addition of :class:`~urllib3.fields.RequestField` makes this function + obsolete. Instead, use :func:`iter_field_objects`, which returns + :class:`~urllib3.fields.RequestField` objects. + + Supports list of (k, v) tuples and dicts. + """ + if isinstance(fields, dict): + return ((k, v) for k, v in six.iteritems(fields)) + + return ((k, v) for k, v in fields) + + +def encode_multipart_formdata(fields, boundary=None): + """ + Encode a dictionary of ``fields`` using the multipart/form-data MIME format. + + :param fields: + Dictionary of fields or list of (key, :class:`~urllib3.fields.RequestField`). + + :param boundary: + If not specified, then a random boundary will be generated using + :func:`urllib3.filepost.choose_boundary`. + """ + body = BytesIO() + if boundary is None: + boundary = choose_boundary() + + for field in iter_field_objects(fields): + body.write(b("--%s\r\n" % (boundary))) + + writer(body).write(field.render_headers()) + data = field.data + + if isinstance(data, int): + data = str(data) # Backwards compatibility + + if isinstance(data, six.text_type): + writer(body).write(data) + else: + body.write(data) + + body.write(b"\r\n") + + body.write(b("--%s--\r\n" % (boundary))) + + content_type = str("multipart/form-data; boundary=%s" % boundary) + + return body.getvalue(), content_type diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/__init__.py index 22ea7c07c3babc7b7e31c49abca695d911dc36d1..fce4caa65d2eeba92acc20ab31097cb606d6c412 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/__init__.py @@ -1,3 +1,5 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:87804b843e2d2da071d5a75a0ed2977eea6c82a634c162d76ff7f5ff256557a0 -size 108 +from __future__ import absolute_import + +from . import ssl_match_hostname + +__all__ = ("ssl_match_hostname",) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/backports/makefile.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/backports/makefile.py index df07d3f08b80a981767d91d2007c2b321fe5cf7e..a3156a69c08d635f9969df59cdd9b3d898882c73 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/backports/makefile.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/backports/makefile.py @@ -1,3 +1,52 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d34e70aef1fefe95929d316a436b1dcf3878cd50ad414510e26476632c707340 -size 1418 +# -*- coding: utf-8 -*- +""" +backports.makefile +~~~~~~~~~~~~~~~~~~ + +Backports the Python 3 ``socket.makefile`` method for use with anything that +wants to create a "fake" socket object. +""" +import io + +from socket import SocketIO + + +def backport_makefile( + self, mode="r", buffering=None, encoding=None, errors=None, newline=None +): + """ + Backport of ``socket.makefile`` from Python 3.5. + """ + if not set(mode) <= {"r", "w", "b"}: + raise ValueError("invalid mode %r (only r, w, b allowed)" % (mode,)) + writing = "w" in mode + reading = "r" in mode or not writing + assert reading or writing + binary = "b" in mode + rawmode = "" + if reading: + rawmode += "r" + if writing: + rawmode += "w" + raw = SocketIO(self, rawmode) + self._makefile_refs += 1 + if buffering is None: + buffering = -1 + if buffering < 0: + buffering = io.DEFAULT_BUFFER_SIZE + if buffering == 0: + if not binary: + raise ValueError("unbuffered streams must be binary") + return raw + if reading and writing: + buffer = io.BufferedRWPair(raw, raw, buffering) + elif reading: + buffer = io.BufferedReader(raw, buffering) + else: + assert writing + buffer = io.BufferedWriter(raw, buffering) + if binary: + return buffer + text = io.TextIOWrapper(buffer, encoding, errors, newline) + text.mode = mode + return text diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/six.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/six.py index 3da5455f28a24dbe23bff06d6c7cc75656577f5c..314424099f6240c4679d3b62685e4a38fe900449 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/six.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/six.py @@ -1,3 +1,1021 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:69dc78cfe78cfc3d15beed0822a573140090feec7d97ae32ec391211f6f1083b -size 32536 +# Copyright (c) 2010-2019 Benjamin Peterson +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. + +"""Utilities for writing code that runs on Python 2 and 3""" + +from __future__ import absolute_import + +import functools +import itertools +import operator +import sys +import types + +__author__ = "Benjamin Peterson " +__version__ = "1.12.0" + + +# Useful for very coarse version differentiation. +PY2 = sys.version_info[0] == 2 +PY3 = sys.version_info[0] == 3 +PY34 = sys.version_info[0:2] >= (3, 4) + +if PY3: + string_types = (str,) + integer_types = (int,) + class_types = (type,) + text_type = str + binary_type = bytes + + MAXSIZE = sys.maxsize +else: + string_types = (basestring,) + integer_types = (int, long) + class_types = (type, types.ClassType) + text_type = unicode + binary_type = str + + if sys.platform.startswith("java"): + # Jython always uses 32 bits. + MAXSIZE = int((1 << 31) - 1) + else: + # It's possible to have sizeof(long) != sizeof(Py_ssize_t). + class X(object): + def __len__(self): + return 1 << 31 + + try: + len(X()) + except OverflowError: + # 32-bit + MAXSIZE = int((1 << 31) - 1) + else: + # 64-bit + MAXSIZE = int((1 << 63) - 1) + del X + + +def _add_doc(func, doc): + """Add documentation to a function.""" + func.__doc__ = doc + + +def _import_module(name): + """Import module, returning the module after the last dot.""" + __import__(name) + return sys.modules[name] + + +class _LazyDescr(object): + def __init__(self, name): + self.name = name + + def __get__(self, obj, tp): + result = self._resolve() + setattr(obj, self.name, result) # Invokes __set__. + try: + # This is a bit ugly, but it avoids running this again by + # removing this descriptor. + delattr(obj.__class__, self.name) + except AttributeError: + pass + return result + + +class MovedModule(_LazyDescr): + def __init__(self, name, old, new=None): + super(MovedModule, self).__init__(name) + if PY3: + if new is None: + new = name + self.mod = new + else: + self.mod = old + + def _resolve(self): + return _import_module(self.mod) + + def __getattr__(self, attr): + _module = self._resolve() + value = getattr(_module, attr) + setattr(self, attr, value) + return value + + +class _LazyModule(types.ModuleType): + def __init__(self, name): + super(_LazyModule, self).__init__(name) + self.__doc__ = self.__class__.__doc__ + + def __dir__(self): + attrs = ["__doc__", "__name__"] + attrs += [attr.name for attr in self._moved_attributes] + return attrs + + # Subclasses should override this + _moved_attributes = [] + + +class MovedAttribute(_LazyDescr): + def __init__(self, name, old_mod, new_mod, old_attr=None, new_attr=None): + super(MovedAttribute, self).__init__(name) + if PY3: + if new_mod is None: + new_mod = name + self.mod = new_mod + if new_attr is None: + if old_attr is None: + new_attr = name + else: + new_attr = old_attr + self.attr = new_attr + else: + self.mod = old_mod + if old_attr is None: + old_attr = name + self.attr = old_attr + + def _resolve(self): + module = _import_module(self.mod) + return getattr(module, self.attr) + + +class _SixMetaPathImporter(object): + + """ + A meta path importer to import six.moves and its submodules. + + This class implements a PEP302 finder and loader. It should be compatible + with Python 2.5 and all existing versions of Python3 + """ + + def __init__(self, six_module_name): + self.name = six_module_name + self.known_modules = {} + + def _add_module(self, mod, *fullnames): + for fullname in fullnames: + self.known_modules[self.name + "." + fullname] = mod + + def _get_module(self, fullname): + return self.known_modules[self.name + "." + fullname] + + def find_module(self, fullname, path=None): + if fullname in self.known_modules: + return self + return None + + def __get_module(self, fullname): + try: + return self.known_modules[fullname] + except KeyError: + raise ImportError("This loader does not know module " + fullname) + + def load_module(self, fullname): + try: + # in case of a reload + return sys.modules[fullname] + except KeyError: + pass + mod = self.__get_module(fullname) + if isinstance(mod, MovedModule): + mod = mod._resolve() + else: + mod.__loader__ = self + sys.modules[fullname] = mod + return mod + + def is_package(self, fullname): + """ + Return true, if the named module is a package. + + We need this method to get correct spec objects with + Python 3.4 (see PEP451) + """ + return hasattr(self.__get_module(fullname), "__path__") + + def get_code(self, fullname): + """Return None + + Required, if is_package is implemented""" + self.__get_module(fullname) # eventually raises ImportError + return None + + get_source = get_code # same as get_code + + +_importer = _SixMetaPathImporter(__name__) + + +class _MovedItems(_LazyModule): + + """Lazy loading of moved objects""" + + __path__ = [] # mark as package + + +_moved_attributes = [ + MovedAttribute("cStringIO", "cStringIO", "io", "StringIO"), + MovedAttribute("filter", "itertools", "builtins", "ifilter", "filter"), + MovedAttribute( + "filterfalse", "itertools", "itertools", "ifilterfalse", "filterfalse" + ), + MovedAttribute("input", "__builtin__", "builtins", "raw_input", "input"), + MovedAttribute("intern", "__builtin__", "sys"), + MovedAttribute("map", "itertools", "builtins", "imap", "map"), + MovedAttribute("getcwd", "os", "os", "getcwdu", "getcwd"), + MovedAttribute("getcwdb", "os", "os", "getcwd", "getcwdb"), + MovedAttribute("getoutput", "commands", "subprocess"), + MovedAttribute("range", "__builtin__", "builtins", "xrange", "range"), + MovedAttribute( + "reload_module", "__builtin__", "importlib" if PY34 else "imp", "reload" + ), + MovedAttribute("reduce", "__builtin__", "functools"), + MovedAttribute("shlex_quote", "pipes", "shlex", "quote"), + MovedAttribute("StringIO", "StringIO", "io"), + MovedAttribute("UserDict", "UserDict", "collections"), + MovedAttribute("UserList", "UserList", "collections"), + MovedAttribute("UserString", "UserString", "collections"), + MovedAttribute("xrange", "__builtin__", "builtins", "xrange", "range"), + MovedAttribute("zip", "itertools", "builtins", "izip", "zip"), + MovedAttribute( + "zip_longest", "itertools", "itertools", "izip_longest", "zip_longest" + ), + MovedModule("builtins", "__builtin__"), + MovedModule("configparser", "ConfigParser"), + MovedModule("copyreg", "copy_reg"), + MovedModule("dbm_gnu", "gdbm", "dbm.gnu"), + MovedModule("_dummy_thread", "dummy_thread", "_dummy_thread"), + MovedModule("http_cookiejar", "cookielib", "http.cookiejar"), + MovedModule("http_cookies", "Cookie", "http.cookies"), + MovedModule("html_entities", "htmlentitydefs", "html.entities"), + MovedModule("html_parser", "HTMLParser", "html.parser"), + MovedModule("http_client", "httplib", "http.client"), + MovedModule("email_mime_base", "email.MIMEBase", "email.mime.base"), + MovedModule("email_mime_image", "email.MIMEImage", "email.mime.image"), + MovedModule("email_mime_multipart", "email.MIMEMultipart", "email.mime.multipart"), + MovedModule( + "email_mime_nonmultipart", "email.MIMENonMultipart", "email.mime.nonmultipart" + ), + MovedModule("email_mime_text", "email.MIMEText", "email.mime.text"), + MovedModule("BaseHTTPServer", "BaseHTTPServer", "http.server"), + MovedModule("CGIHTTPServer", "CGIHTTPServer", "http.server"), + MovedModule("SimpleHTTPServer", "SimpleHTTPServer", "http.server"), + MovedModule("cPickle", "cPickle", "pickle"), + MovedModule("queue", "Queue"), + MovedModule("reprlib", "repr"), + MovedModule("socketserver", "SocketServer"), + MovedModule("_thread", "thread", "_thread"), + MovedModule("tkinter", "Tkinter"), + MovedModule("tkinter_dialog", "Dialog", "tkinter.dialog"), + MovedModule("tkinter_filedialog", "FileDialog", "tkinter.filedialog"), + MovedModule("tkinter_scrolledtext", "ScrolledText", "tkinter.scrolledtext"), + MovedModule("tkinter_simpledialog", "SimpleDialog", "tkinter.simpledialog"), + MovedModule("tkinter_tix", "Tix", "tkinter.tix"), + MovedModule("tkinter_ttk", "ttk", "tkinter.ttk"), + MovedModule("tkinter_constants", "Tkconstants", "tkinter.constants"), + MovedModule("tkinter_dnd", "Tkdnd", "tkinter.dnd"), + MovedModule("tkinter_colorchooser", "tkColorChooser", "tkinter.colorchooser"), + MovedModule("tkinter_commondialog", "tkCommonDialog", "tkinter.commondialog"), + MovedModule("tkinter_tkfiledialog", "tkFileDialog", "tkinter.filedialog"), + MovedModule("tkinter_font", "tkFont", "tkinter.font"), + MovedModule("tkinter_messagebox", "tkMessageBox", "tkinter.messagebox"), + MovedModule("tkinter_tksimpledialog", "tkSimpleDialog", "tkinter.simpledialog"), + MovedModule("urllib_parse", __name__ + ".moves.urllib_parse", "urllib.parse"), + MovedModule("urllib_error", __name__ + ".moves.urllib_error", "urllib.error"), + MovedModule("urllib", __name__ + ".moves.urllib", __name__ + ".moves.urllib"), + MovedModule("urllib_robotparser", "robotparser", "urllib.robotparser"), + MovedModule("xmlrpc_client", "xmlrpclib", "xmlrpc.client"), + MovedModule("xmlrpc_server", "SimpleXMLRPCServer", "xmlrpc.server"), +] +# Add windows specific modules. +if sys.platform == "win32": + _moved_attributes += [MovedModule("winreg", "_winreg")] + +for attr in _moved_attributes: + setattr(_MovedItems, attr.name, attr) + if isinstance(attr, MovedModule): + _importer._add_module(attr, "moves." + attr.name) +del attr + +_MovedItems._moved_attributes = _moved_attributes + +moves = _MovedItems(__name__ + ".moves") +_importer._add_module(moves, "moves") + + +class Module_six_moves_urllib_parse(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_parse""" + + +_urllib_parse_moved_attributes = [ + MovedAttribute("ParseResult", "urlparse", "urllib.parse"), + MovedAttribute("SplitResult", "urlparse", "urllib.parse"), + MovedAttribute("parse_qs", "urlparse", "urllib.parse"), + MovedAttribute("parse_qsl", "urlparse", "urllib.parse"), + MovedAttribute("urldefrag", "urlparse", "urllib.parse"), + MovedAttribute("urljoin", "urlparse", "urllib.parse"), + MovedAttribute("urlparse", "urlparse", "urllib.parse"), + MovedAttribute("urlsplit", "urlparse", "urllib.parse"), + MovedAttribute("urlunparse", "urlparse", "urllib.parse"), + MovedAttribute("urlunsplit", "urlparse", "urllib.parse"), + MovedAttribute("quote", "urllib", "urllib.parse"), + MovedAttribute("quote_plus", "urllib", "urllib.parse"), + MovedAttribute("unquote", "urllib", "urllib.parse"), + MovedAttribute("unquote_plus", "urllib", "urllib.parse"), + MovedAttribute( + "unquote_to_bytes", "urllib", "urllib.parse", "unquote", "unquote_to_bytes" + ), + MovedAttribute("urlencode", "urllib", "urllib.parse"), + MovedAttribute("splitquery", "urllib", "urllib.parse"), + MovedAttribute("splittag", "urllib", "urllib.parse"), + MovedAttribute("splituser", "urllib", "urllib.parse"), + MovedAttribute("splitvalue", "urllib", "urllib.parse"), + MovedAttribute("uses_fragment", "urlparse", "urllib.parse"), + MovedAttribute("uses_netloc", "urlparse", "urllib.parse"), + MovedAttribute("uses_params", "urlparse", "urllib.parse"), + MovedAttribute("uses_query", "urlparse", "urllib.parse"), + MovedAttribute("uses_relative", "urlparse", "urllib.parse"), +] +for attr in _urllib_parse_moved_attributes: + setattr(Module_six_moves_urllib_parse, attr.name, attr) +del attr + +Module_six_moves_urllib_parse._moved_attributes = _urllib_parse_moved_attributes + +_importer._add_module( + Module_six_moves_urllib_parse(__name__ + ".moves.urllib_parse"), + "moves.urllib_parse", + "moves.urllib.parse", +) + + +class Module_six_moves_urllib_error(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_error""" + + +_urllib_error_moved_attributes = [ + MovedAttribute("URLError", "urllib2", "urllib.error"), + MovedAttribute("HTTPError", "urllib2", "urllib.error"), + MovedAttribute("ContentTooShortError", "urllib", "urllib.error"), +] +for attr in _urllib_error_moved_attributes: + setattr(Module_six_moves_urllib_error, attr.name, attr) +del attr + +Module_six_moves_urllib_error._moved_attributes = _urllib_error_moved_attributes + +_importer._add_module( + Module_six_moves_urllib_error(__name__ + ".moves.urllib.error"), + "moves.urllib_error", + "moves.urllib.error", +) + + +class Module_six_moves_urllib_request(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_request""" + + +_urllib_request_moved_attributes = [ + MovedAttribute("urlopen", "urllib2", "urllib.request"), + MovedAttribute("install_opener", "urllib2", "urllib.request"), + MovedAttribute("build_opener", "urllib2", "urllib.request"), + MovedAttribute("pathname2url", "urllib", "urllib.request"), + MovedAttribute("url2pathname", "urllib", "urllib.request"), + MovedAttribute("getproxies", "urllib", "urllib.request"), + MovedAttribute("Request", "urllib2", "urllib.request"), + MovedAttribute("OpenerDirector", "urllib2", "urllib.request"), + MovedAttribute("HTTPDefaultErrorHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPRedirectHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPCookieProcessor", "urllib2", "urllib.request"), + MovedAttribute("ProxyHandler", "urllib2", "urllib.request"), + MovedAttribute("BaseHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPPasswordMgr", "urllib2", "urllib.request"), + MovedAttribute("HTTPPasswordMgrWithDefaultRealm", "urllib2", "urllib.request"), + MovedAttribute("AbstractBasicAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPBasicAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("ProxyBasicAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("AbstractDigestAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPDigestAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("ProxyDigestAuthHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPSHandler", "urllib2", "urllib.request"), + MovedAttribute("FileHandler", "urllib2", "urllib.request"), + MovedAttribute("FTPHandler", "urllib2", "urllib.request"), + MovedAttribute("CacheFTPHandler", "urllib2", "urllib.request"), + MovedAttribute("UnknownHandler", "urllib2", "urllib.request"), + MovedAttribute("HTTPErrorProcessor", "urllib2", "urllib.request"), + MovedAttribute("urlretrieve", "urllib", "urllib.request"), + MovedAttribute("urlcleanup", "urllib", "urllib.request"), + MovedAttribute("URLopener", "urllib", "urllib.request"), + MovedAttribute("FancyURLopener", "urllib", "urllib.request"), + MovedAttribute("proxy_bypass", "urllib", "urllib.request"), + MovedAttribute("parse_http_list", "urllib2", "urllib.request"), + MovedAttribute("parse_keqv_list", "urllib2", "urllib.request"), +] +for attr in _urllib_request_moved_attributes: + setattr(Module_six_moves_urllib_request, attr.name, attr) +del attr + +Module_six_moves_urllib_request._moved_attributes = _urllib_request_moved_attributes + +_importer._add_module( + Module_six_moves_urllib_request(__name__ + ".moves.urllib.request"), + "moves.urllib_request", + "moves.urllib.request", +) + + +class Module_six_moves_urllib_response(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_response""" + + +_urllib_response_moved_attributes = [ + MovedAttribute("addbase", "urllib", "urllib.response"), + MovedAttribute("addclosehook", "urllib", "urllib.response"), + MovedAttribute("addinfo", "urllib", "urllib.response"), + MovedAttribute("addinfourl", "urllib", "urllib.response"), +] +for attr in _urllib_response_moved_attributes: + setattr(Module_six_moves_urllib_response, attr.name, attr) +del attr + +Module_six_moves_urllib_response._moved_attributes = _urllib_response_moved_attributes + +_importer._add_module( + Module_six_moves_urllib_response(__name__ + ".moves.urllib.response"), + "moves.urllib_response", + "moves.urllib.response", +) + + +class Module_six_moves_urllib_robotparser(_LazyModule): + + """Lazy loading of moved objects in six.moves.urllib_robotparser""" + + +_urllib_robotparser_moved_attributes = [ + MovedAttribute("RobotFileParser", "robotparser", "urllib.robotparser") +] +for attr in _urllib_robotparser_moved_attributes: + setattr(Module_six_moves_urllib_robotparser, attr.name, attr) +del attr + +Module_six_moves_urllib_robotparser._moved_attributes = ( + _urllib_robotparser_moved_attributes +) + +_importer._add_module( + Module_six_moves_urllib_robotparser(__name__ + ".moves.urllib.robotparser"), + "moves.urllib_robotparser", + "moves.urllib.robotparser", +) + + +class Module_six_moves_urllib(types.ModuleType): + + """Create a six.moves.urllib namespace that resembles the Python 3 namespace""" + + __path__ = [] # mark as package + parse = _importer._get_module("moves.urllib_parse") + error = _importer._get_module("moves.urllib_error") + request = _importer._get_module("moves.urllib_request") + response = _importer._get_module("moves.urllib_response") + robotparser = _importer._get_module("moves.urllib_robotparser") + + def __dir__(self): + return ["parse", "error", "request", "response", "robotparser"] + + +_importer._add_module( + Module_six_moves_urllib(__name__ + ".moves.urllib"), "moves.urllib" +) + + +def add_move(move): + """Add an item to six.moves.""" + setattr(_MovedItems, move.name, move) + + +def remove_move(name): + """Remove item from six.moves.""" + try: + delattr(_MovedItems, name) + except AttributeError: + try: + del moves.__dict__[name] + except KeyError: + raise AttributeError("no such move, %r" % (name,)) + + +if PY3: + _meth_func = "__func__" + _meth_self = "__self__" + + _func_closure = "__closure__" + _func_code = "__code__" + _func_defaults = "__defaults__" + _func_globals = "__globals__" +else: + _meth_func = "im_func" + _meth_self = "im_self" + + _func_closure = "func_closure" + _func_code = "func_code" + _func_defaults = "func_defaults" + _func_globals = "func_globals" + + +try: + advance_iterator = next +except NameError: + + def advance_iterator(it): + return it.next() + + +next = advance_iterator + + +try: + callable = callable +except NameError: + + def callable(obj): + return any("__call__" in klass.__dict__ for klass in type(obj).__mro__) + + +if PY3: + + def get_unbound_function(unbound): + return unbound + + create_bound_method = types.MethodType + + def create_unbound_method(func, cls): + return func + + Iterator = object +else: + + def get_unbound_function(unbound): + return unbound.im_func + + def create_bound_method(func, obj): + return types.MethodType(func, obj, obj.__class__) + + def create_unbound_method(func, cls): + return types.MethodType(func, None, cls) + + class Iterator(object): + def next(self): + return type(self).__next__(self) + + callable = callable +_add_doc( + get_unbound_function, """Get the function out of a possibly unbound function""" +) + + +get_method_function = operator.attrgetter(_meth_func) +get_method_self = operator.attrgetter(_meth_self) +get_function_closure = operator.attrgetter(_func_closure) +get_function_code = operator.attrgetter(_func_code) +get_function_defaults = operator.attrgetter(_func_defaults) +get_function_globals = operator.attrgetter(_func_globals) + + +if PY3: + + def iterkeys(d, **kw): + return iter(d.keys(**kw)) + + def itervalues(d, **kw): + return iter(d.values(**kw)) + + def iteritems(d, **kw): + return iter(d.items(**kw)) + + def iterlists(d, **kw): + return iter(d.lists(**kw)) + + viewkeys = operator.methodcaller("keys") + + viewvalues = operator.methodcaller("values") + + viewitems = operator.methodcaller("items") +else: + + def iterkeys(d, **kw): + return d.iterkeys(**kw) + + def itervalues(d, **kw): + return d.itervalues(**kw) + + def iteritems(d, **kw): + return d.iteritems(**kw) + + def iterlists(d, **kw): + return d.iterlists(**kw) + + viewkeys = operator.methodcaller("viewkeys") + + viewvalues = operator.methodcaller("viewvalues") + + viewitems = operator.methodcaller("viewitems") + +_add_doc(iterkeys, "Return an iterator over the keys of a dictionary.") +_add_doc(itervalues, "Return an iterator over the values of a dictionary.") +_add_doc(iteritems, "Return an iterator over the (key, value) pairs of a dictionary.") +_add_doc( + iterlists, "Return an iterator over the (key, [values]) pairs of a dictionary." +) + + +if PY3: + + def b(s): + return s.encode("latin-1") + + def u(s): + return s + + unichr = chr + import struct + + int2byte = struct.Struct(">B").pack + del struct + byte2int = operator.itemgetter(0) + indexbytes = operator.getitem + iterbytes = iter + import io + + StringIO = io.StringIO + BytesIO = io.BytesIO + del io + _assertCountEqual = "assertCountEqual" + if sys.version_info[1] <= 1: + _assertRaisesRegex = "assertRaisesRegexp" + _assertRegex = "assertRegexpMatches" + else: + _assertRaisesRegex = "assertRaisesRegex" + _assertRegex = "assertRegex" +else: + + def b(s): + return s + + # Workaround for standalone backslash + + def u(s): + return unicode(s.replace(r"\\", r"\\\\"), "unicode_escape") + + unichr = unichr + int2byte = chr + + def byte2int(bs): + return ord(bs[0]) + + def indexbytes(buf, i): + return ord(buf[i]) + + iterbytes = functools.partial(itertools.imap, ord) + import StringIO + + StringIO = BytesIO = StringIO.StringIO + _assertCountEqual = "assertItemsEqual" + _assertRaisesRegex = "assertRaisesRegexp" + _assertRegex = "assertRegexpMatches" +_add_doc(b, """Byte literal""") +_add_doc(u, """Text literal""") + + +def assertCountEqual(self, *args, **kwargs): + return getattr(self, _assertCountEqual)(*args, **kwargs) + + +def assertRaisesRegex(self, *args, **kwargs): + return getattr(self, _assertRaisesRegex)(*args, **kwargs) + + +def assertRegex(self, *args, **kwargs): + return getattr(self, _assertRegex)(*args, **kwargs) + + +if PY3: + exec_ = getattr(moves.builtins, "exec") + + def reraise(tp, value, tb=None): + try: + if value is None: + value = tp() + if value.__traceback__ is not tb: + raise value.with_traceback(tb) + raise value + finally: + value = None + tb = None + + +else: + + def exec_(_code_, _globs_=None, _locs_=None): + """Execute code in a namespace.""" + if _globs_ is None: + frame = sys._getframe(1) + _globs_ = frame.f_globals + if _locs_ is None: + _locs_ = frame.f_locals + del frame + elif _locs_ is None: + _locs_ = _globs_ + exec("""exec _code_ in _globs_, _locs_""") + + exec_( + """def reraise(tp, value, tb=None): + try: + raise tp, value, tb + finally: + tb = None +""" + ) + + +if sys.version_info[:2] == (3, 2): + exec_( + """def raise_from(value, from_value): + try: + if from_value is None: + raise value + raise value from from_value + finally: + value = None +""" + ) +elif sys.version_info[:2] > (3, 2): + exec_( + """def raise_from(value, from_value): + try: + raise value from from_value + finally: + value = None +""" + ) +else: + + def raise_from(value, from_value): + raise value + + +print_ = getattr(moves.builtins, "print", None) +if print_ is None: + + def print_(*args, **kwargs): + """The new-style print function for Python 2.4 and 2.5.""" + fp = kwargs.pop("file", sys.stdout) + if fp is None: + return + + def write(data): + if not isinstance(data, basestring): + data = str(data) + # If the file has an encoding, encode unicode with it. + if ( + isinstance(fp, file) + and isinstance(data, unicode) + and fp.encoding is not None + ): + errors = getattr(fp, "errors", None) + if errors is None: + errors = "strict" + data = data.encode(fp.encoding, errors) + fp.write(data) + + want_unicode = False + sep = kwargs.pop("sep", None) + if sep is not None: + if isinstance(sep, unicode): + want_unicode = True + elif not isinstance(sep, str): + raise TypeError("sep must be None or a string") + end = kwargs.pop("end", None) + if end is not None: + if isinstance(end, unicode): + want_unicode = True + elif not isinstance(end, str): + raise TypeError("end must be None or a string") + if kwargs: + raise TypeError("invalid keyword arguments to print()") + if not want_unicode: + for arg in args: + if isinstance(arg, unicode): + want_unicode = True + break + if want_unicode: + newline = unicode("\n") + space = unicode(" ") + else: + newline = "\n" + space = " " + if sep is None: + sep = space + if end is None: + end = newline + for i, arg in enumerate(args): + if i: + write(sep) + write(arg) + write(end) + + +if sys.version_info[:2] < (3, 3): + _print = print_ + + def print_(*args, **kwargs): + fp = kwargs.get("file", sys.stdout) + flush = kwargs.pop("flush", False) + _print(*args, **kwargs) + if flush and fp is not None: + fp.flush() + + +_add_doc(reraise, """Reraise an exception.""") + +if sys.version_info[0:2] < (3, 4): + + def wraps( + wrapped, + assigned=functools.WRAPPER_ASSIGNMENTS, + updated=functools.WRAPPER_UPDATES, + ): + def wrapper(f): + f = functools.wraps(wrapped, assigned, updated)(f) + f.__wrapped__ = wrapped + return f + + return wrapper + + +else: + wraps = functools.wraps + + +def with_metaclass(meta, *bases): + """Create a base class with a metaclass.""" + # This requires a bit of explanation: the basic idea is to make a dummy + # metaclass for one level of class instantiation that replaces itself with + # the actual metaclass. + class metaclass(type): + def __new__(cls, name, this_bases, d): + return meta(name, bases, d) + + @classmethod + def __prepare__(cls, name, this_bases): + return meta.__prepare__(name, bases) + + return type.__new__(metaclass, "temporary_class", (), {}) + + +def add_metaclass(metaclass): + """Class decorator for creating a class with a metaclass.""" + + def wrapper(cls): + orig_vars = cls.__dict__.copy() + slots = orig_vars.get("__slots__") + if slots is not None: + if isinstance(slots, str): + slots = [slots] + for slots_var in slots: + orig_vars.pop(slots_var) + orig_vars.pop("__dict__", None) + orig_vars.pop("__weakref__", None) + if hasattr(cls, "__qualname__"): + orig_vars["__qualname__"] = cls.__qualname__ + return metaclass(cls.__name__, cls.__bases__, orig_vars) + + return wrapper + + +def ensure_binary(s, encoding="utf-8", errors="strict"): + """Coerce **s** to six.binary_type. + + For Python 2: + - `unicode` -> encoded to `str` + - `str` -> `str` + + For Python 3: + - `str` -> encoded to `bytes` + - `bytes` -> `bytes` + """ + if isinstance(s, text_type): + return s.encode(encoding, errors) + elif isinstance(s, binary_type): + return s + else: + raise TypeError("not expecting type '%s'" % type(s)) + + +def ensure_str(s, encoding="utf-8", errors="strict"): + """Coerce *s* to `str`. + + For Python 2: + - `unicode` -> encoded to `str` + - `str` -> `str` + + For Python 3: + - `str` -> `str` + - `bytes` -> decoded to `str` + """ + if not isinstance(s, (text_type, binary_type)): + raise TypeError("not expecting type '%s'" % type(s)) + if PY2 and isinstance(s, text_type): + s = s.encode(encoding, errors) + elif PY3 and isinstance(s, binary_type): + s = s.decode(encoding, errors) + return s + + +def ensure_text(s, encoding="utf-8", errors="strict"): + """Coerce *s* to six.text_type. + + For Python 2: + - `unicode` -> `unicode` + - `str` -> `unicode` + + For Python 3: + - `str` -> `str` + - `bytes` -> decoded to `str` + """ + if isinstance(s, binary_type): + return s.decode(encoding, errors) + elif isinstance(s, text_type): + return s + else: + raise TypeError("not expecting type '%s'" % type(s)) + + +def python_2_unicode_compatible(klass): + """ + A decorator that defines __unicode__ and __str__ methods under Python 2. + Under Python 3 it does nothing. + + To support Python 2 and 3 with a single code base, define a __str__ method + returning text and apply this decorator to the class. + """ + if PY2: + if "__str__" not in klass.__dict__: + raise ValueError( + "@python_2_unicode_compatible cannot be applied " + "to %s because it doesn't define __str__()." % klass.__name__ + ) + klass.__unicode__ = klass.__str__ + klass.__str__ = lambda self: self.__unicode__().encode("utf-8") + return klass + + +# Complete the moves implementation. +# This code is at the end of this module to speed up module loading. +# Turn this module into a package. +__path__ = [] # required for PEP 302 and PEP 451 +__package__ = __name__ # see PEP 366 @ReservedAssignment +if globals().get("__spec__") is not None: + __spec__.submodule_search_locations = [] # PEP 451 @UndefinedVariable +# Remove other six meta path importers, since they cause problems. This can +# happen if six is removed from sys.modules and then reloaded. (Setuptools does +# this for some reason.) +if sys.meta_path: + for i, importer in enumerate(sys.meta_path): + # Here's some real nastiness: Another "instance" of the six module might + # be floating around. Therefore, we can't use isinstance() to check for + # the six meta path importer, since the other six instance will have + # inserted an importer with different class. + if ( + type(importer).__name__ == "_SixMetaPathImporter" + and importer.name == __name__ + ): + del sys.meta_path[i] + break + del i, importer +# Finally, add the importer to the meta path import hook. +sys.meta_path.append(_importer) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/ssl_match_hostname/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/ssl_match_hostname/__init__.py index 005c4187507360d19c7760caacc4eb841f808fe8..75b6bb1cf0d4f0925410dbaf04f3b2cabd8ade2f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/ssl_match_hostname/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/ssl_match_hostname/__init__.py @@ -1,3 +1,19 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cb080a32d7c78b5f83ad79733df540873b0bcf3a9c2bb193e9e2e076875ed458 -size 688 +import sys + +try: + # Our match_hostname function is the same as 3.5's, so we only want to + # import the match_hostname function if it's at least that good. + if sys.version_info < (3, 5): + raise ImportError("Fallback to vendored code") + + from ssl import CertificateError, match_hostname +except ImportError: + try: + # Backport of the function from a pypi module + from backports.ssl_match_hostname import CertificateError, match_hostname + except ImportError: + # Our vendored copy + from ._implementation import CertificateError, match_hostname + +# Not needed, but documenting what we provide. +__all__ = ("CertificateError", "match_hostname") diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/ssl_match_hostname/_implementation.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/ssl_match_hostname/_implementation.py index ea58a9afb493dd38580898e1eaa41e292a54e65f..2d8e7a17c937630e25e26e0df2216b0416ba8d03 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/ssl_match_hostname/_implementation.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/packages/ssl_match_hostname/_implementation.py @@ -1,3 +1,162 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b35041b898a286d3643a373e9763ff8627023b3e86a1fdc5c2ae2476d26ec49 -size 5707 +"""The match_hostname() function from Python 3.3.3, essential when using SSL.""" + +# Note: This file is under the PSF license as the code comes from the python +# stdlib. http://docs.python.org/3/license.html + +import re +import sys + +# ipaddress has been backported to 2.6+ in pypi. If it is installed on the +# system, use it to handle IPAddress ServerAltnames (this was added in +# python-3.5) otherwise only do DNS matching. This allows +# backports.ssl_match_hostname to continue to be used in Python 2.7. +try: + import ipaddress +except ImportError: + ipaddress = None + +__version__ = "3.5.0.1" + + +class CertificateError(ValueError): + pass + + +def _dnsname_match(dn, hostname, max_wildcards=1): + """Matching according to RFC 6125, section 6.4.3 + + http://tools.ietf.org/html/rfc6125#section-6.4.3 + """ + pats = [] + if not dn: + return False + + # Ported from python3-syntax: + # leftmost, *remainder = dn.split(r'.') + parts = dn.split(r".") + leftmost = parts[0] + remainder = parts[1:] + + wildcards = leftmost.count("*") + if wildcards > max_wildcards: + # Issue #17980: avoid denials of service by refusing more + # than one wildcard per fragment. A survey of established + # policy among SSL implementations showed it to be a + # reasonable choice. + raise CertificateError( + "too many wildcards in certificate DNS name: " + repr(dn) + ) + + # speed up common case w/o wildcards + if not wildcards: + return dn.lower() == hostname.lower() + + # RFC 6125, section 6.4.3, subitem 1. + # The client SHOULD NOT attempt to match a presented identifier in which + # the wildcard character comprises a label other than the left-most label. + if leftmost == "*": + # When '*' is a fragment by itself, it matches a non-empty dotless + # fragment. + pats.append("[^.]+") + elif leftmost.startswith("xn--") or hostname.startswith("xn--"): + # RFC 6125, section 6.4.3, subitem 3. + # The client SHOULD NOT attempt to match a presented identifier + # where the wildcard character is embedded within an A-label or + # U-label of an internationalized domain name. + pats.append(re.escape(leftmost)) + else: + # Otherwise, '*' matches any dotless string, e.g. www* + pats.append(re.escape(leftmost).replace(r"\*", "[^.]*")) + + # add the remaining fragments, ignore any wildcards + for frag in remainder: + pats.append(re.escape(frag)) + + pat = re.compile(r"\A" + r"\.".join(pats) + r"\Z", re.IGNORECASE) + return pat.match(hostname) + + +def _to_unicode(obj): + if isinstance(obj, str) and sys.version_info < (3,): + obj = unicode(obj, encoding="ascii", errors="strict") + return obj + + +def _ipaddress_match(ipname, host_ip): + """Exact matching of IP addresses. + + RFC 6125 explicitly doesn't define an algorithm for this + (section 1.7.2 - "Out of Scope"). + """ + # OpenSSL may add a trailing newline to a subjectAltName's IP address + # Divergence from upstream: ipaddress can't handle byte str + ip = ipaddress.ip_address(_to_unicode(ipname).rstrip()) + return ip == host_ip + + +def match_hostname(cert, hostname): + """Verify that *cert* (in decoded format as returned by + SSLSocket.getpeercert()) matches the *hostname*. RFC 2818 and RFC 6125 + rules are followed, but IP addresses are not accepted for *hostname*. + + CertificateError is raised on failure. On success, the function + returns nothing. + """ + if not cert: + raise ValueError( + "empty or no certificate, match_hostname needs a " + "SSL socket or SSL context with either " + "CERT_OPTIONAL or CERT_REQUIRED" + ) + try: + # Divergence from upstream: ipaddress can't handle byte str + host_ip = ipaddress.ip_address(_to_unicode(hostname)) + except ValueError: + # Not an IP address (common case) + host_ip = None + except UnicodeError: + # Divergence from upstream: Have to deal with ipaddress not taking + # byte strings. addresses should be all ascii, so we consider it not + # an ipaddress in this case + host_ip = None + except AttributeError: + # Divergence from upstream: Make ipaddress library optional + if ipaddress is None: + host_ip = None + else: + raise + dnsnames = [] + san = cert.get("subjectAltName", ()) + for key, value in san: + if key == "DNS": + if host_ip is None and _dnsname_match(value, hostname): + return + dnsnames.append(value) + elif key == "IP Address": + if host_ip is not None and _ipaddress_match(value, host_ip): + return + dnsnames.append(value) + if not dnsnames: + # The subject is only checked when there is no dNSName entry + # in subjectAltName + for sub in cert.get("subject", ()): + for key, value in sub: + # XXX according to RFC 2818, the most specific Common Name + # must be used. + if key == "commonName": + if _dnsname_match(value, hostname): + return + dnsnames.append(value) + if len(dnsnames) > 1: + raise CertificateError( + "hostname %r " + "doesn't match either of %s" % (hostname, ", ".join(map(repr, dnsnames))) + ) + elif len(dnsnames) == 1: + raise CertificateError( + "hostname %r " "doesn't match %r" % (hostname, dnsnames[0]) + ) + else: + raise CertificateError( + "no appropriate commonName or " "subjectAltName fields were found" + ) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/poolmanager.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/poolmanager.py index 62b3e2db7beaaa7e9a8edfad5003e17e9bbf8450..242a2f8203fb56c428a63a5ee2726fff68649e57 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/poolmanager.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/poolmanager.py @@ -1,3 +1,470 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2585320543772221249d476367b549ae9090afa48feef8b45b04a776b9fc5e91 -size 17053 +from __future__ import absolute_import +import collections +import functools +import logging + +from ._collections import RecentlyUsedContainer +from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool +from .connectionpool import port_by_scheme +from .exceptions import LocationValueError, MaxRetryError, ProxySchemeUnknown +from .packages import six +from .packages.six.moves.urllib.parse import urljoin +from .request import RequestMethods +from .util.url import parse_url +from .util.retry import Retry + + +__all__ = ["PoolManager", "ProxyManager", "proxy_from_url"] + + +log = logging.getLogger(__name__) + +SSL_KEYWORDS = ( + "key_file", + "cert_file", + "cert_reqs", + "ca_certs", + "ssl_version", + "ca_cert_dir", + "ssl_context", + "key_password", +) + +# All known keyword arguments that could be provided to the pool manager, its +# pools, or the underlying connections. This is used to construct a pool key. +_key_fields = ( + "key_scheme", # str + "key_host", # str + "key_port", # int + "key_timeout", # int or float or Timeout + "key_retries", # int or Retry + "key_strict", # bool + "key_block", # bool + "key_source_address", # str + "key_key_file", # str + "key_key_password", # str + "key_cert_file", # str + "key_cert_reqs", # str + "key_ca_certs", # str + "key_ssl_version", # str + "key_ca_cert_dir", # str + "key_ssl_context", # instance of ssl.SSLContext or urllib3.util.ssl_.SSLContext + "key_maxsize", # int + "key_headers", # dict + "key__proxy", # parsed proxy url + "key__proxy_headers", # dict + "key_socket_options", # list of (level (int), optname (int), value (int or str)) tuples + "key__socks_options", # dict + "key_assert_hostname", # bool or string + "key_assert_fingerprint", # str + "key_server_hostname", # str +) + +#: The namedtuple class used to construct keys for the connection pool. +#: All custom key schemes should include the fields in this key at a minimum. +PoolKey = collections.namedtuple("PoolKey", _key_fields) + + +def _default_key_normalizer(key_class, request_context): + """ + Create a pool key out of a request context dictionary. + + According to RFC 3986, both the scheme and host are case-insensitive. + Therefore, this function normalizes both before constructing the pool + key for an HTTPS request. If you wish to change this behaviour, provide + alternate callables to ``key_fn_by_scheme``. + + :param key_class: + The class to use when constructing the key. This should be a namedtuple + with the ``scheme`` and ``host`` keys at a minimum. + :type key_class: namedtuple + :param request_context: + A dictionary-like object that contain the context for a request. + :type request_context: dict + + :return: A namedtuple that can be used as a connection pool key. + :rtype: PoolKey + """ + # Since we mutate the dictionary, make a copy first + context = request_context.copy() + context["scheme"] = context["scheme"].lower() + context["host"] = context["host"].lower() + + # These are both dictionaries and need to be transformed into frozensets + for key in ("headers", "_proxy_headers", "_socks_options"): + if key in context and context[key] is not None: + context[key] = frozenset(context[key].items()) + + # The socket_options key may be a list and needs to be transformed into a + # tuple. + socket_opts = context.get("socket_options") + if socket_opts is not None: + context["socket_options"] = tuple(socket_opts) + + # Map the kwargs to the names in the namedtuple - this is necessary since + # namedtuples can't have fields starting with '_'. + for key in list(context.keys()): + context["key_" + key] = context.pop(key) + + # Default to ``None`` for keys missing from the context + for field in key_class._fields: + if field not in context: + context[field] = None + + return key_class(**context) + + +#: A dictionary that maps a scheme to a callable that creates a pool key. +#: This can be used to alter the way pool keys are constructed, if desired. +#: Each PoolManager makes a copy of this dictionary so they can be configured +#: globally here, or individually on the instance. +key_fn_by_scheme = { + "http": functools.partial(_default_key_normalizer, PoolKey), + "https": functools.partial(_default_key_normalizer, PoolKey), +} + +pool_classes_by_scheme = {"http": HTTPConnectionPool, "https": HTTPSConnectionPool} + + +class PoolManager(RequestMethods): + """ + Allows for arbitrary requests while transparently keeping track of + necessary connection pools for you. + + :param num_pools: + Number of connection pools to cache before discarding the least + recently used pool. + + :param headers: + Headers to include with all requests, unless other headers are given + explicitly. + + :param \\**connection_pool_kw: + Additional parameters are used to create fresh + :class:`urllib3.connectionpool.ConnectionPool` instances. + + Example:: + + >>> manager = PoolManager(num_pools=2) + >>> r = manager.request('GET', 'http://google.com/') + >>> r = manager.request('GET', 'http://google.com/mail') + >>> r = manager.request('GET', 'http://yahoo.com/') + >>> len(manager.pools) + 2 + + """ + + proxy = None + + def __init__(self, num_pools=10, headers=None, **connection_pool_kw): + RequestMethods.__init__(self, headers) + self.connection_pool_kw = connection_pool_kw + self.pools = RecentlyUsedContainer(num_pools, dispose_func=lambda p: p.close()) + + # Locally set the pool classes and keys so other PoolManagers can + # override them. + self.pool_classes_by_scheme = pool_classes_by_scheme + self.key_fn_by_scheme = key_fn_by_scheme.copy() + + def __enter__(self): + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + self.clear() + # Return False to re-raise any potential exceptions + return False + + def _new_pool(self, scheme, host, port, request_context=None): + """ + Create a new :class:`ConnectionPool` based on host, port, scheme, and + any additional pool keyword arguments. + + If ``request_context`` is provided, it is provided as keyword arguments + to the pool class used. This method is used to actually create the + connection pools handed out by :meth:`connection_from_url` and + companion methods. It is intended to be overridden for customization. + """ + pool_cls = self.pool_classes_by_scheme[scheme] + if request_context is None: + request_context = self.connection_pool_kw.copy() + + # Although the context has everything necessary to create the pool, + # this function has historically only used the scheme, host, and port + # in the positional args. When an API change is acceptable these can + # be removed. + for key in ("scheme", "host", "port"): + request_context.pop(key, None) + + if scheme == "http": + for kw in SSL_KEYWORDS: + request_context.pop(kw, None) + + return pool_cls(host, port, **request_context) + + def clear(self): + """ + Empty our store of pools and direct them all to close. + + This will not affect in-flight connections, but they will not be + re-used after completion. + """ + self.pools.clear() + + def connection_from_host(self, host, port=None, scheme="http", pool_kwargs=None): + """ + Get a :class:`ConnectionPool` based on the host, port, and scheme. + + If ``port`` isn't given, it will be derived from the ``scheme`` using + ``urllib3.connectionpool.port_by_scheme``. If ``pool_kwargs`` is + provided, it is merged with the instance's ``connection_pool_kw`` + variable and used to create the new connection pool, if one is + needed. + """ + + if not host: + raise LocationValueError("No host specified.") + + request_context = self._merge_pool_kwargs(pool_kwargs) + request_context["scheme"] = scheme or "http" + if not port: + port = port_by_scheme.get(request_context["scheme"].lower(), 80) + request_context["port"] = port + request_context["host"] = host + + return self.connection_from_context(request_context) + + def connection_from_context(self, request_context): + """ + Get a :class:`ConnectionPool` based on the request context. + + ``request_context`` must at least contain the ``scheme`` key and its + value must be a key in ``key_fn_by_scheme`` instance variable. + """ + scheme = request_context["scheme"].lower() + pool_key_constructor = self.key_fn_by_scheme[scheme] + pool_key = pool_key_constructor(request_context) + + return self.connection_from_pool_key(pool_key, request_context=request_context) + + def connection_from_pool_key(self, pool_key, request_context=None): + """ + Get a :class:`ConnectionPool` based on the provided pool key. + + ``pool_key`` should be a namedtuple that only contains immutable + objects. At a minimum it must have the ``scheme``, ``host``, and + ``port`` fields. + """ + with self.pools.lock: + # If the scheme, host, or port doesn't match existing open + # connections, open a new ConnectionPool. + pool = self.pools.get(pool_key) + if pool: + return pool + + # Make a fresh ConnectionPool of the desired type + scheme = request_context["scheme"] + host = request_context["host"] + port = request_context["port"] + pool = self._new_pool(scheme, host, port, request_context=request_context) + self.pools[pool_key] = pool + + return pool + + def connection_from_url(self, url, pool_kwargs=None): + """ + Similar to :func:`urllib3.connectionpool.connection_from_url`. + + If ``pool_kwargs`` is not provided and a new pool needs to be + constructed, ``self.connection_pool_kw`` is used to initialize + the :class:`urllib3.connectionpool.ConnectionPool`. If ``pool_kwargs`` + is provided, it is used instead. Note that if a new pool does not + need to be created for the request, the provided ``pool_kwargs`` are + not used. + """ + u = parse_url(url) + return self.connection_from_host( + u.host, port=u.port, scheme=u.scheme, pool_kwargs=pool_kwargs + ) + + def _merge_pool_kwargs(self, override): + """ + Merge a dictionary of override values for self.connection_pool_kw. + + This does not modify self.connection_pool_kw and returns a new dict. + Any keys in the override dictionary with a value of ``None`` are + removed from the merged dictionary. + """ + base_pool_kwargs = self.connection_pool_kw.copy() + if override: + for key, value in override.items(): + if value is None: + try: + del base_pool_kwargs[key] + except KeyError: + pass + else: + base_pool_kwargs[key] = value + return base_pool_kwargs + + def urlopen(self, method, url, redirect=True, **kw): + """ + Same as :meth:`urllib3.connectionpool.HTTPConnectionPool.urlopen` + with custom cross-host redirect logic and only sends the request-uri + portion of the ``url``. + + The given ``url`` parameter must be absolute, such that an appropriate + :class:`urllib3.connectionpool.ConnectionPool` can be chosen for it. + """ + u = parse_url(url) + conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme) + + kw["assert_same_host"] = False + kw["redirect"] = False + + if "headers" not in kw: + kw["headers"] = self.headers.copy() + + if self.proxy is not None and u.scheme == "http": + response = conn.urlopen(method, url, **kw) + else: + response = conn.urlopen(method, u.request_uri, **kw) + + redirect_location = redirect and response.get_redirect_location() + if not redirect_location: + return response + + # Support relative URLs for redirecting. + redirect_location = urljoin(url, redirect_location) + + # RFC 7231, Section 6.4.4 + if response.status == 303: + method = "GET" + + retries = kw.get("retries") + if not isinstance(retries, Retry): + retries = Retry.from_int(retries, redirect=redirect) + + # Strip headers marked as unsafe to forward to the redirected location. + # Check remove_headers_on_redirect to avoid a potential network call within + # conn.is_same_host() which may use socket.gethostbyname() in the future. + if retries.remove_headers_on_redirect and not conn.is_same_host( + redirect_location + ): + headers = list(six.iterkeys(kw["headers"])) + for header in headers: + if header.lower() in retries.remove_headers_on_redirect: + kw["headers"].pop(header, None) + + try: + retries = retries.increment(method, url, response=response, _pool=conn) + except MaxRetryError: + if retries.raise_on_redirect: + raise + return response + + kw["retries"] = retries + kw["redirect"] = redirect + + log.info("Redirecting %s -> %s", url, redirect_location) + return self.urlopen(method, redirect_location, **kw) + + +class ProxyManager(PoolManager): + """ + Behaves just like :class:`PoolManager`, but sends all requests through + the defined proxy, using the CONNECT method for HTTPS URLs. + + :param proxy_url: + The URL of the proxy to be used. + + :param proxy_headers: + A dictionary containing headers that will be sent to the proxy. In case + of HTTP they are being sent with each request, while in the + HTTPS/CONNECT case they are sent only once. Could be used for proxy + authentication. + + Example: + >>> proxy = urllib3.ProxyManager('http://localhost:3128/') + >>> r1 = proxy.request('GET', 'http://google.com/') + >>> r2 = proxy.request('GET', 'http://httpbin.org/') + >>> len(proxy.pools) + 1 + >>> r3 = proxy.request('GET', 'https://httpbin.org/') + >>> r4 = proxy.request('GET', 'https://twitter.com/') + >>> len(proxy.pools) + 3 + + """ + + def __init__( + self, + proxy_url, + num_pools=10, + headers=None, + proxy_headers=None, + **connection_pool_kw + ): + + if isinstance(proxy_url, HTTPConnectionPool): + proxy_url = "%s://%s:%i" % ( + proxy_url.scheme, + proxy_url.host, + proxy_url.port, + ) + proxy = parse_url(proxy_url) + if not proxy.port: + port = port_by_scheme.get(proxy.scheme, 80) + proxy = proxy._replace(port=port) + + if proxy.scheme not in ("http", "https"): + raise ProxySchemeUnknown(proxy.scheme) + + self.proxy = proxy + self.proxy_headers = proxy_headers or {} + + connection_pool_kw["_proxy"] = self.proxy + connection_pool_kw["_proxy_headers"] = self.proxy_headers + + super(ProxyManager, self).__init__(num_pools, headers, **connection_pool_kw) + + def connection_from_host(self, host, port=None, scheme="http", pool_kwargs=None): + if scheme == "https": + return super(ProxyManager, self).connection_from_host( + host, port, scheme, pool_kwargs=pool_kwargs + ) + + return super(ProxyManager, self).connection_from_host( + self.proxy.host, self.proxy.port, self.proxy.scheme, pool_kwargs=pool_kwargs + ) + + def _set_proxy_headers(self, url, headers=None): + """ + Sets headers needed by proxies: specifically, the Accept and Host + headers. Only sets headers not provided by the user. + """ + headers_ = {"Accept": "*/*"} + + netloc = parse_url(url).netloc + if netloc: + headers_["Host"] = netloc + + if headers: + headers_.update(headers) + return headers_ + + def urlopen(self, method, url, redirect=True, **kw): + "Same as HTTP(S)ConnectionPool.urlopen, ``url`` must be absolute." + u = parse_url(url) + + if u.scheme == "http": + # For proxied HTTPS requests, httplib sets the necessary headers + # on the CONNECT to the proxy. For HTTP, we'll definitely + # need to set 'Host' at the very least. + headers = kw.get("headers", self.headers) + kw["headers"] = self._set_proxy_headers(url, headers) + + return super(ProxyManager, self).urlopen(method, url, redirect=redirect, **kw) + + +def proxy_from_url(url, **kw): + return ProxyManager(proxy_url=url, **kw) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/request.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/request.py index 562185fe7217666157fed784dec5c4f3d8950982..55f160bbf10f6856ce8909fc57532618118272f3 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/request.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/request.py @@ -1,3 +1,171 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:861a07bc411ab7277d4e7e446c68d0d1e9a7f8434c0b2639f75c8d5939de20d0 -size 6018 +from __future__ import absolute_import + +from .filepost import encode_multipart_formdata +from .packages.six.moves.urllib.parse import urlencode + + +__all__ = ["RequestMethods"] + + +class RequestMethods(object): + """ + Convenience mixin for classes who implement a :meth:`urlopen` method, such + as :class:`~urllib3.connectionpool.HTTPConnectionPool` and + :class:`~urllib3.poolmanager.PoolManager`. + + Provides behavior for making common types of HTTP request methods and + decides which type of request field encoding to use. + + Specifically, + + :meth:`.request_encode_url` is for sending requests whose fields are + encoded in the URL (such as GET, HEAD, DELETE). + + :meth:`.request_encode_body` is for sending requests whose fields are + encoded in the *body* of the request using multipart or www-form-urlencoded + (such as for POST, PUT, PATCH). + + :meth:`.request` is for making any kind of request, it will look up the + appropriate encoding format and use one of the above two methods to make + the request. + + Initializer parameters: + + :param headers: + Headers to include with all requests, unless other headers are given + explicitly. + """ + + _encode_url_methods = {"DELETE", "GET", "HEAD", "OPTIONS"} + + def __init__(self, headers=None): + self.headers = headers or {} + + def urlopen( + self, + method, + url, + body=None, + headers=None, + encode_multipart=True, + multipart_boundary=None, + **kw + ): # Abstract + raise NotImplementedError( + "Classes extending RequestMethods must implement " + "their own ``urlopen`` method." + ) + + def request(self, method, url, fields=None, headers=None, **urlopen_kw): + """ + Make a request using :meth:`urlopen` with the appropriate encoding of + ``fields`` based on the ``method`` used. + + This is a convenience method that requires the least amount of manual + effort. It can be used in most situations, while still having the + option to drop down to more specific methods when necessary, such as + :meth:`request_encode_url`, :meth:`request_encode_body`, + or even the lowest level :meth:`urlopen`. + """ + method = method.upper() + + urlopen_kw["request_url"] = url + + if method in self._encode_url_methods: + return self.request_encode_url( + method, url, fields=fields, headers=headers, **urlopen_kw + ) + else: + return self.request_encode_body( + method, url, fields=fields, headers=headers, **urlopen_kw + ) + + def request_encode_url(self, method, url, fields=None, headers=None, **urlopen_kw): + """ + Make a request using :meth:`urlopen` with the ``fields`` encoded in + the url. This is useful for request methods like GET, HEAD, DELETE, etc. + """ + if headers is None: + headers = self.headers + + extra_kw = {"headers": headers} + extra_kw.update(urlopen_kw) + + if fields: + url += "?" + urlencode(fields) + + return self.urlopen(method, url, **extra_kw) + + def request_encode_body( + self, + method, + url, + fields=None, + headers=None, + encode_multipart=True, + multipart_boundary=None, + **urlopen_kw + ): + """ + Make a request using :meth:`urlopen` with the ``fields`` encoded in + the body. This is useful for request methods like POST, PUT, PATCH, etc. + + When ``encode_multipart=True`` (default), then + :meth:`urllib3.filepost.encode_multipart_formdata` is used to encode + the payload with the appropriate content type. Otherwise + :meth:`urllib.urlencode` is used with the + 'application/x-www-form-urlencoded' content type. + + Multipart encoding must be used when posting files, and it's reasonably + safe to use it in other times too. However, it may break request + signing, such as with OAuth. + + Supports an optional ``fields`` parameter of key/value strings AND + key/filetuple. A filetuple is a (filename, data, MIME type) tuple where + the MIME type is optional. For example:: + + fields = { + 'foo': 'bar', + 'fakefile': ('foofile.txt', 'contents of foofile'), + 'realfile': ('barfile.txt', open('realfile').read()), + 'typedfile': ('bazfile.bin', open('bazfile').read(), + 'image/jpeg'), + 'nonamefile': 'contents of nonamefile field', + } + + When uploading a file, providing a filename (the first parameter of the + tuple) is optional but recommended to best mimic behavior of browsers. + + Note that if ``headers`` are supplied, the 'Content-Type' header will + be overwritten because it depends on the dynamic random boundary string + which is used to compose the body of the request. The random boundary + string can be explicitly set with the ``multipart_boundary`` parameter. + """ + if headers is None: + headers = self.headers + + extra_kw = {"headers": {}} + + if fields: + if "body" in urlopen_kw: + raise TypeError( + "request got values for both 'fields' and 'body', can only specify one." + ) + + if encode_multipart: + body, content_type = encode_multipart_formdata( + fields, boundary=multipart_boundary + ) + else: + body, content_type = ( + urlencode(fields), + "application/x-www-form-urlencoded", + ) + + extra_kw["body"] = body + extra_kw["headers"] = {"Content-Type": content_type} + + extra_kw["headers"].update(headers) + extra_kw.update(urlopen_kw) + + return self.urlopen(method, url, **extra_kw) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/response.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/response.py index 02cd3144c52376925ab07f230c140cba1a7c4f91..adc321e713b49b1f7f694771b442a46562bfd12e 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/response.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/response.py @@ -1,3 +1,809 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b60d5cc17963b3cb164367c934103154dc65b58d65e4fdbd37992d0ed726f1b -size 27836 +from __future__ import absolute_import +from contextlib import contextmanager +import zlib +import io +import logging +from socket import timeout as SocketTimeout +from socket import error as SocketError + +try: + import brotli +except ImportError: + brotli = None + +from ._collections import HTTPHeaderDict +from .exceptions import ( + BodyNotHttplibCompatible, + ProtocolError, + DecodeError, + ReadTimeoutError, + ResponseNotChunked, + IncompleteRead, + InvalidHeader, +) +from .packages.six import string_types as basestring, PY3 +from .packages.six.moves import http_client as httplib +from .connection import HTTPException, BaseSSLError +from .util.response import is_fp_closed, is_response_to_head + +log = logging.getLogger(__name__) + + +class DeflateDecoder(object): + def __init__(self): + self._first_try = True + self._data = b"" + self._obj = zlib.decompressobj() + + def __getattr__(self, name): + return getattr(self._obj, name) + + def decompress(self, data): + if not data: + return data + + if not self._first_try: + return self._obj.decompress(data) + + self._data += data + try: + decompressed = self._obj.decompress(data) + if decompressed: + self._first_try = False + self._data = None + return decompressed + except zlib.error: + self._first_try = False + self._obj = zlib.decompressobj(-zlib.MAX_WBITS) + try: + return self.decompress(self._data) + finally: + self._data = None + + +class GzipDecoderState(object): + + FIRST_MEMBER = 0 + OTHER_MEMBERS = 1 + SWALLOW_DATA = 2 + + +class GzipDecoder(object): + def __init__(self): + self._obj = zlib.decompressobj(16 + zlib.MAX_WBITS) + self._state = GzipDecoderState.FIRST_MEMBER + + def __getattr__(self, name): + return getattr(self._obj, name) + + def decompress(self, data): + ret = bytearray() + if self._state == GzipDecoderState.SWALLOW_DATA or not data: + return bytes(ret) + while True: + try: + ret += self._obj.decompress(data) + except zlib.error: + previous_state = self._state + # Ignore data after the first error + self._state = GzipDecoderState.SWALLOW_DATA + if previous_state == GzipDecoderState.OTHER_MEMBERS: + # Allow trailing garbage acceptable in other gzip clients + return bytes(ret) + raise + data = self._obj.unused_data + if not data: + return bytes(ret) + self._state = GzipDecoderState.OTHER_MEMBERS + self._obj = zlib.decompressobj(16 + zlib.MAX_WBITS) + + +if brotli is not None: + + class BrotliDecoder(object): + # Supports both 'brotlipy' and 'Brotli' packages + # since they share an import name. The top branches + # are for 'brotlipy' and bottom branches for 'Brotli' + def __init__(self): + self._obj = brotli.Decompressor() + + def decompress(self, data): + if hasattr(self._obj, "decompress"): + return self._obj.decompress(data) + return self._obj.process(data) + + def flush(self): + if hasattr(self._obj, "flush"): + return self._obj.flush() + return b"" + + +class MultiDecoder(object): + """ + From RFC7231: + If one or more encodings have been applied to a representation, the + sender that applied the encodings MUST generate a Content-Encoding + header field that lists the content codings in the order in which + they were applied. + """ + + def __init__(self, modes): + self._decoders = [_get_decoder(m.strip()) for m in modes.split(",")] + + def flush(self): + return self._decoders[0].flush() + + def decompress(self, data): + for d in reversed(self._decoders): + data = d.decompress(data) + return data + + +def _get_decoder(mode): + if "," in mode: + return MultiDecoder(mode) + + if mode == "gzip": + return GzipDecoder() + + if brotli is not None and mode == "br": + return BrotliDecoder() + + return DeflateDecoder() + + +class HTTPResponse(io.IOBase): + """ + HTTP Response container. + + Backwards-compatible to httplib's HTTPResponse but the response ``body`` is + loaded and decoded on-demand when the ``data`` property is accessed. This + class is also compatible with the Python standard library's :mod:`io` + module, and can hence be treated as a readable object in the context of that + framework. + + Extra parameters for behaviour not present in httplib.HTTPResponse: + + :param preload_content: + If True, the response's body will be preloaded during construction. + + :param decode_content: + If True, will attempt to decode the body based on the + 'content-encoding' header. + + :param original_response: + When this HTTPResponse wrapper is generated from an httplib.HTTPResponse + object, it's convenient to include the original for debug purposes. It's + otherwise unused. + + :param retries: + The retries contains the last :class:`~urllib3.util.retry.Retry` that + was used during the request. + + :param enforce_content_length: + Enforce content length checking. Body returned by server must match + value of Content-Length header, if present. Otherwise, raise error. + """ + + CONTENT_DECODERS = ["gzip", "deflate"] + if brotli is not None: + CONTENT_DECODERS += ["br"] + REDIRECT_STATUSES = [301, 302, 303, 307, 308] + + def __init__( + self, + body="", + headers=None, + status=0, + version=0, + reason=None, + strict=0, + preload_content=True, + decode_content=True, + original_response=None, + pool=None, + connection=None, + msg=None, + retries=None, + enforce_content_length=False, + request_method=None, + request_url=None, + auto_close=True, + ): + + if isinstance(headers, HTTPHeaderDict): + self.headers = headers + else: + self.headers = HTTPHeaderDict(headers) + self.status = status + self.version = version + self.reason = reason + self.strict = strict + self.decode_content = decode_content + self.retries = retries + self.enforce_content_length = enforce_content_length + self.auto_close = auto_close + + self._decoder = None + self._body = None + self._fp = None + self._original_response = original_response + self._fp_bytes_read = 0 + self.msg = msg + self._request_url = request_url + + if body and isinstance(body, (basestring, bytes)): + self._body = body + + self._pool = pool + self._connection = connection + + if hasattr(body, "read"): + self._fp = body + + # Are we using the chunked-style of transfer encoding? + self.chunked = False + self.chunk_left = None + tr_enc = self.headers.get("transfer-encoding", "").lower() + # Don't incur the penalty of creating a list and then discarding it + encodings = (enc.strip() for enc in tr_enc.split(",")) + if "chunked" in encodings: + self.chunked = True + + # Determine length of response + self.length_remaining = self._init_length(request_method) + + # If requested, preload the body. + if preload_content and not self._body: + self._body = self.read(decode_content=decode_content) + + def get_redirect_location(self): + """ + Should we redirect and where to? + + :returns: Truthy redirect location string if we got a redirect status + code and valid location. ``None`` if redirect status and no + location. ``False`` if not a redirect status code. + """ + if self.status in self.REDIRECT_STATUSES: + return self.headers.get("location") + + return False + + def release_conn(self): + if not self._pool or not self._connection: + return + + self._pool._put_conn(self._connection) + self._connection = None + + @property + def data(self): + # For backwords-compat with earlier urllib3 0.4 and earlier. + if self._body: + return self._body + + if self._fp: + return self.read(cache_content=True) + + @property + def connection(self): + return self._connection + + def isclosed(self): + return is_fp_closed(self._fp) + + def tell(self): + """ + Obtain the number of bytes pulled over the wire so far. May differ from + the amount of content returned by :meth:``HTTPResponse.read`` if bytes + are encoded on the wire (e.g, compressed). + """ + return self._fp_bytes_read + + def _init_length(self, request_method): + """ + Set initial length value for Response content if available. + """ + length = self.headers.get("content-length") + + if length is not None: + if self.chunked: + # This Response will fail with an IncompleteRead if it can't be + # received as chunked. This method falls back to attempt reading + # the response before raising an exception. + log.warning( + "Received response with both Content-Length and " + "Transfer-Encoding set. This is expressly forbidden " + "by RFC 7230 sec 3.3.2. Ignoring Content-Length and " + "attempting to process response as Transfer-Encoding: " + "chunked." + ) + return None + + try: + # RFC 7230 section 3.3.2 specifies multiple content lengths can + # be sent in a single Content-Length header + # (e.g. Content-Length: 42, 42). This line ensures the values + # are all valid ints and that as long as the `set` length is 1, + # all values are the same. Otherwise, the header is invalid. + lengths = set([int(val) for val in length.split(",")]) + if len(lengths) > 1: + raise InvalidHeader( + "Content-Length contained multiple " + "unmatching values (%s)" % length + ) + length = lengths.pop() + except ValueError: + length = None + else: + if length < 0: + length = None + + # Convert status to int for comparison + # In some cases, httplib returns a status of "_UNKNOWN" + try: + status = int(self.status) + except ValueError: + status = 0 + + # Check for responses that shouldn't include a body + if status in (204, 304) or 100 <= status < 200 or request_method == "HEAD": + length = 0 + + return length + + def _init_decoder(self): + """ + Set-up the _decoder attribute if necessary. + """ + # Note: content-encoding value should be case-insensitive, per RFC 7230 + # Section 3.2 + content_encoding = self.headers.get("content-encoding", "").lower() + if self._decoder is None: + if content_encoding in self.CONTENT_DECODERS: + self._decoder = _get_decoder(content_encoding) + elif "," in content_encoding: + encodings = [ + e.strip() + for e in content_encoding.split(",") + if e.strip() in self.CONTENT_DECODERS + ] + if len(encodings): + self._decoder = _get_decoder(content_encoding) + + DECODER_ERROR_CLASSES = (IOError, zlib.error) + if brotli is not None: + DECODER_ERROR_CLASSES += (brotli.error,) + + def _decode(self, data, decode_content, flush_decoder): + """ + Decode the data passed in and potentially flush the decoder. + """ + if not decode_content: + return data + + try: + if self._decoder: + data = self._decoder.decompress(data) + except self.DECODER_ERROR_CLASSES as e: + content_encoding = self.headers.get("content-encoding", "").lower() + raise DecodeError( + "Received response with content-encoding: %s, but " + "failed to decode it." % content_encoding, + e, + ) + if flush_decoder: + data += self._flush_decoder() + + return data + + def _flush_decoder(self): + """ + Flushes the decoder. Should only be called if the decoder is actually + being used. + """ + if self._decoder: + buf = self._decoder.decompress(b"") + return buf + self._decoder.flush() + + return b"" + + @contextmanager + def _error_catcher(self): + """ + Catch low-level python exceptions, instead re-raising urllib3 + variants, so that low-level exceptions are not leaked in the + high-level api. + + On exit, release the connection back to the pool. + """ + clean_exit = False + + try: + try: + yield + + except SocketTimeout: + # FIXME: Ideally we'd like to include the url in the ReadTimeoutError but + # there is yet no clean way to get at it from this context. + raise ReadTimeoutError(self._pool, None, "Read timed out.") + + except BaseSSLError as e: + # FIXME: Is there a better way to differentiate between SSLErrors? + if "read operation timed out" not in str(e): # Defensive: + # This shouldn't happen but just in case we're missing an edge + # case, let's avoid swallowing SSL errors. + raise + + raise ReadTimeoutError(self._pool, None, "Read timed out.") + + except (HTTPException, SocketError) as e: + # This includes IncompleteRead. + raise ProtocolError("Connection broken: %r" % e, e) + + # If no exception is thrown, we should avoid cleaning up + # unnecessarily. + clean_exit = True + finally: + # If we didn't terminate cleanly, we need to throw away our + # connection. + if not clean_exit: + # The response may not be closed but we're not going to use it + # anymore so close it now to ensure that the connection is + # released back to the pool. + if self._original_response: + self._original_response.close() + + # Closing the response may not actually be sufficient to close + # everything, so if we have a hold of the connection close that + # too. + if self._connection: + self._connection.close() + + # If we hold the original response but it's closed now, we should + # return the connection back to the pool. + if self._original_response and self._original_response.isclosed(): + self.release_conn() + + def read(self, amt=None, decode_content=None, cache_content=False): + """ + Similar to :meth:`httplib.HTTPResponse.read`, but with two additional + parameters: ``decode_content`` and ``cache_content``. + + :param amt: + How much of the content to read. If specified, caching is skipped + because it doesn't make sense to cache partial content as the full + response. + + :param decode_content: + If True, will attempt to decode the body based on the + 'content-encoding' header. + + :param cache_content: + If True, will save the returned data such that the same result is + returned despite of the state of the underlying file object. This + is useful if you want the ``.data`` property to continue working + after having ``.read()`` the file object. (Overridden if ``amt`` is + set.) + """ + self._init_decoder() + if decode_content is None: + decode_content = self.decode_content + + if self._fp is None: + return + + flush_decoder = False + fp_closed = getattr(self._fp, "closed", False) + + with self._error_catcher(): + if amt is None: + # cStringIO doesn't like amt=None + data = self._fp.read() if not fp_closed else b"" + flush_decoder = True + else: + cache_content = False + data = self._fp.read(amt) if not fp_closed else b"" + if ( + amt != 0 and not data + ): # Platform-specific: Buggy versions of Python. + # Close the connection when no data is returned + # + # This is redundant to what httplib/http.client _should_ + # already do. However, versions of python released before + # December 15, 2012 (http://bugs.python.org/issue16298) do + # not properly close the connection in all cases. There is + # no harm in redundantly calling close. + self._fp.close() + flush_decoder = True + if self.enforce_content_length and self.length_remaining not in ( + 0, + None, + ): + # This is an edge case that httplib failed to cover due + # to concerns of backward compatibility. We're + # addressing it here to make sure IncompleteRead is + # raised during streaming, so all calls with incorrect + # Content-Length are caught. + raise IncompleteRead(self._fp_bytes_read, self.length_remaining) + + if data: + self._fp_bytes_read += len(data) + if self.length_remaining is not None: + self.length_remaining -= len(data) + + data = self._decode(data, decode_content, flush_decoder) + + if cache_content: + self._body = data + + return data + + def stream(self, amt=2 ** 16, decode_content=None): + """ + A generator wrapper for the read() method. A call will block until + ``amt`` bytes have been read from the connection or until the + connection is closed. + + :param amt: + How much of the content to read. The generator will return up to + much data per iteration, but may return less. This is particularly + likely when using compressed data. However, the empty string will + never be returned. + + :param decode_content: + If True, will attempt to decode the body based on the + 'content-encoding' header. + """ + if self.chunked and self.supports_chunked_reads(): + for line in self.read_chunked(amt, decode_content=decode_content): + yield line + else: + while not is_fp_closed(self._fp): + data = self.read(amt=amt, decode_content=decode_content) + + if data: + yield data + + @classmethod + def from_httplib(ResponseCls, r, **response_kw): + """ + Given an :class:`httplib.HTTPResponse` instance ``r``, return a + corresponding :class:`urllib3.response.HTTPResponse` object. + + Remaining parameters are passed to the HTTPResponse constructor, along + with ``original_response=r``. + """ + headers = r.msg + + if not isinstance(headers, HTTPHeaderDict): + if PY3: + headers = HTTPHeaderDict(headers.items()) + else: + # Python 2.7 + headers = HTTPHeaderDict.from_httplib(headers) + + # HTTPResponse objects in Python 3 don't have a .strict attribute + strict = getattr(r, "strict", 0) + resp = ResponseCls( + body=r, + headers=headers, + status=r.status, + version=r.version, + reason=r.reason, + strict=strict, + original_response=r, + **response_kw + ) + return resp + + # Backwards-compatibility methods for httplib.HTTPResponse + def getheaders(self): + return self.headers + + def getheader(self, name, default=None): + return self.headers.get(name, default) + + # Backwards compatibility for http.cookiejar + def info(self): + return self.headers + + # Overrides from io.IOBase + def close(self): + if not self.closed: + self._fp.close() + + if self._connection: + self._connection.close() + + if not self.auto_close: + io.IOBase.close(self) + + @property + def closed(self): + if not self.auto_close: + return io.IOBase.closed.__get__(self) + elif self._fp is None: + return True + elif hasattr(self._fp, "isclosed"): + return self._fp.isclosed() + elif hasattr(self._fp, "closed"): + return self._fp.closed + else: + return True + + def fileno(self): + if self._fp is None: + raise IOError("HTTPResponse has no file to get a fileno from") + elif hasattr(self._fp, "fileno"): + return self._fp.fileno() + else: + raise IOError( + "The file-like object this HTTPResponse is wrapped " + "around has no file descriptor" + ) + + def flush(self): + if ( + self._fp is not None + and hasattr(self._fp, "flush") + and not getattr(self._fp, "closed", False) + ): + return self._fp.flush() + + def readable(self): + # This method is required for `io` module compatibility. + return True + + def readinto(self, b): + # This method is required for `io` module compatibility. + temp = self.read(len(b)) + if len(temp) == 0: + return 0 + else: + b[: len(temp)] = temp + return len(temp) + + def supports_chunked_reads(self): + """ + Checks if the underlying file-like object looks like a + httplib.HTTPResponse object. We do this by testing for the fp + attribute. If it is present we assume it returns raw chunks as + processed by read_chunked(). + """ + return hasattr(self._fp, "fp") + + def _update_chunk_length(self): + # First, we'll figure out length of a chunk and then + # we'll try to read it from socket. + if self.chunk_left is not None: + return + line = self._fp.fp.readline() + line = line.split(b";", 1)[0] + try: + self.chunk_left = int(line, 16) + except ValueError: + # Invalid chunked protocol response, abort. + self.close() + raise httplib.IncompleteRead(line) + + def _handle_chunk(self, amt): + returned_chunk = None + if amt is None: + chunk = self._fp._safe_read(self.chunk_left) + returned_chunk = chunk + self._fp._safe_read(2) # Toss the CRLF at the end of the chunk. + self.chunk_left = None + elif amt < self.chunk_left: + value = self._fp._safe_read(amt) + self.chunk_left = self.chunk_left - amt + returned_chunk = value + elif amt == self.chunk_left: + value = self._fp._safe_read(amt) + self._fp._safe_read(2) # Toss the CRLF at the end of the chunk. + self.chunk_left = None + returned_chunk = value + else: # amt > self.chunk_left + returned_chunk = self._fp._safe_read(self.chunk_left) + self._fp._safe_read(2) # Toss the CRLF at the end of the chunk. + self.chunk_left = None + return returned_chunk + + def read_chunked(self, amt=None, decode_content=None): + """ + Similar to :meth:`HTTPResponse.read`, but with an additional + parameter: ``decode_content``. + + :param amt: + How much of the content to read. If specified, caching is skipped + because it doesn't make sense to cache partial content as the full + response. + + :param decode_content: + If True, will attempt to decode the body based on the + 'content-encoding' header. + """ + self._init_decoder() + # FIXME: Rewrite this method and make it a class with a better structured logic. + if not self.chunked: + raise ResponseNotChunked( + "Response is not chunked. " + "Header 'transfer-encoding: chunked' is missing." + ) + if not self.supports_chunked_reads(): + raise BodyNotHttplibCompatible( + "Body should be httplib.HTTPResponse like. " + "It should have have an fp attribute which returns raw chunks." + ) + + with self._error_catcher(): + # Don't bother reading the body of a HEAD request. + if self._original_response and is_response_to_head(self._original_response): + self._original_response.close() + return + + # If a response is already read and closed + # then return immediately. + if self._fp.fp is None: + return + + while True: + self._update_chunk_length() + if self.chunk_left == 0: + break + chunk = self._handle_chunk(amt) + decoded = self._decode( + chunk, decode_content=decode_content, flush_decoder=False + ) + if decoded: + yield decoded + + if decode_content: + # On CPython and PyPy, we should never need to flush the + # decoder. However, on Jython we *might* need to, so + # lets defensively do it anyway. + decoded = self._flush_decoder() + if decoded: # Platform-specific: Jython. + yield decoded + + # Chunk content ends with \r\n: discard it. + while True: + line = self._fp.fp.readline() + if not line: + # Some sites may not end with '\r\n'. + break + if line == b"\r\n": + break + + # We read everything; close the "file". + if self._original_response: + self._original_response.close() + + def geturl(self): + """ + Returns the URL that was the source of this response. + If the request that generated this response redirected, this method + will return the final redirect location. + """ + if self.retries is not None and len(self.retries.history): + return self.retries.history[-1].redirect_location + else: + return self._request_url + + def __iter__(self): + buffer = [b""] + for chunk in self.stream(decode_content=True): + if b"\n" in chunk: + chunk = chunk.split(b"\n") + yield b"".join(buffer) + chunk[0] + b"\n" + for x in chunk[1:-1]: + yield x + b"\n" + if chunk[-1]: + buffer = [chunk[-1]] + else: + buffer = [] + else: + buffer.append(chunk) + if buffer: + yield b"".join(buffer) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/__init__.py index 0963c19cc181555c35e4db8c2871f57d8a49634c..a96c73a9d85187af6923d548a5cc517f1517e205 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/__init__.py @@ -1,3 +1,46 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6d635a6affce4fed4befeb319b9f5c19be7dac339195b85bff89e876e3399b45 -size 1038 +from __future__ import absolute_import + +# For backwards compatibility, provide imports that used to be here. +from .connection import is_connection_dropped +from .request import make_headers +from .response import is_fp_closed +from .ssl_ import ( + SSLContext, + HAS_SNI, + IS_PYOPENSSL, + IS_SECURETRANSPORT, + assert_fingerprint, + resolve_cert_reqs, + resolve_ssl_version, + ssl_wrap_socket, + PROTOCOL_TLS, +) +from .timeout import current_time, Timeout + +from .retry import Retry +from .url import get_host, parse_url, split_first, Url +from .wait import wait_for_read, wait_for_write + +__all__ = ( + "HAS_SNI", + "IS_PYOPENSSL", + "IS_SECURETRANSPORT", + "SSLContext", + "PROTOCOL_TLS", + "Retry", + "Timeout", + "Url", + "assert_fingerprint", + "current_time", + "is_connection_dropped", + "is_fp_closed", + "get_host", + "parse_url", + "make_headers", + "resolve_cert_reqs", + "resolve_ssl_version", + "split_first", + "ssl_wrap_socket", + "wait_for_read", + "wait_for_write", +) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/connection.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/connection.py index 87f02fe596e5130bdfd23a2280e6c3426a261640..0e1112628e58da5c6a74aaeca0054017e8b63b8a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/connection.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/connection.py @@ -1,3 +1,138 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7ce5c0436f3c28769799d4e50efe5daf049c0e4f6d690f58cd3e36c5e831cd38 -size 4636 +from __future__ import absolute_import +import socket +from .wait import NoWayToWaitForSocketError, wait_for_read +from ..contrib import _appengine_environ + + +def is_connection_dropped(conn): # Platform-specific + """ + Returns True if the connection is dropped and should be closed. + + :param conn: + :class:`httplib.HTTPConnection` object. + + Note: For platforms like AppEngine, this will always return ``False`` to + let the platform handle connection recycling transparently for us. + """ + sock = getattr(conn, "sock", False) + if sock is False: # Platform-specific: AppEngine + return False + if sock is None: # Connection already closed (such as by httplib). + return True + try: + # Returns True if readable, which here means it's been dropped + return wait_for_read(sock, timeout=0.0) + except NoWayToWaitForSocketError: # Platform-specific: AppEngine + return False + + +# This function is copied from socket.py in the Python 2.7 standard +# library test suite. Added to its signature is only `socket_options`. +# One additional modification is that we avoid binding to IPv6 servers +# discovered in DNS if the system doesn't have IPv6 functionality. +def create_connection( + address, + timeout=socket._GLOBAL_DEFAULT_TIMEOUT, + source_address=None, + socket_options=None, +): + """Connect to *address* and return the socket object. + + Convenience function. Connect to *address* (a 2-tuple ``(host, + port)``) and return the socket object. Passing the optional + *timeout* parameter will set the timeout on the socket instance + before attempting to connect. If no *timeout* is supplied, the + global default timeout setting returned by :func:`getdefaulttimeout` + is used. If *source_address* is set it must be a tuple of (host, port) + for the socket to bind as a source address before making the connection. + An host of '' or port 0 tells the OS to use the default. + """ + + host, port = address + if host.startswith("["): + host = host.strip("[]") + err = None + + # Using the value from allowed_gai_family() in the context of getaddrinfo lets + # us select whether to work with IPv4 DNS records, IPv6 records, or both. + # The original create_connection function always returns all records. + family = allowed_gai_family() + + for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): + af, socktype, proto, canonname, sa = res + sock = None + try: + sock = socket.socket(af, socktype, proto) + + # If provided, set socket level options before connecting. + _set_socket_options(sock, socket_options) + + if timeout is not socket._GLOBAL_DEFAULT_TIMEOUT: + sock.settimeout(timeout) + if source_address: + sock.bind(source_address) + sock.connect(sa) + return sock + + except socket.error as e: + err = e + if sock is not None: + sock.close() + sock = None + + if err is not None: + raise err + + raise socket.error("getaddrinfo returns an empty list") + + +def _set_socket_options(sock, options): + if options is None: + return + + for opt in options: + sock.setsockopt(*opt) + + +def allowed_gai_family(): + """This function is designed to work in the context of + getaddrinfo, where family=socket.AF_UNSPEC is the default and + will perform a DNS search for both IPv6 and IPv4 records.""" + + family = socket.AF_INET + if HAS_IPV6: + family = socket.AF_UNSPEC + return family + + +def _has_ipv6(host): + """ Returns True if the system can bind an IPv6 address. """ + sock = None + has_ipv6 = False + + # App Engine doesn't support IPV6 sockets and actually has a quota on the + # number of sockets that can be used, so just early out here instead of + # creating a socket needlessly. + # See https://github.com/urllib3/urllib3/issues/1446 + if _appengine_environ.is_appengine_sandbox(): + return False + + if socket.has_ipv6: + # has_ipv6 returns true if cPython was compiled with IPv6 support. + # It does not tell us if the system has IPv6 support enabled. To + # determine that we must bind to an IPv6 address. + # https://github.com/shazow/urllib3/pull/611 + # https://bugs.python.org/issue658327 + try: + sock = socket.socket(socket.AF_INET6) + sock.bind((host, 0)) + has_ipv6 = True + except Exception: + pass + + if sock: + sock.close() + return has_ipv6 + + +HAS_IPV6 = _has_ipv6("::1") diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/queue.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/queue.py index 1b9cfde310ff658d0e1e0b2b3878ae146cbda180..d3d379a19997b0c76c820a82e10b8fd36db9bea4 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/queue.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/queue.py @@ -1,3 +1,21 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b24d7dc90c79ed8252903417f76fa75ab071feb85f96e7dbf319242215d01f2 -size 497 +import collections +from ..packages import six +from ..packages.six.moves import queue + +if six.PY2: + # Queue is imported for side effects on MS Windows. See issue #229. + import Queue as _unused_module_Queue # noqa: F401 + + +class LifoQueue(queue.Queue): + def _init(self, _): + self.queue = collections.deque() + + def _qsize(self, len=len): + return len(self.queue) + + def _put(self, item): + self.queue.append(item) + + def _get(self): + return self.queue.pop() diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/request.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/request.py index 9c40b3248d4e87455d3be62c39d2f0b04147226b..262a6d61854a264946b48e8ef480fa9e88fa8837 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/request.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/request.py @@ -1,3 +1,135 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fcb24fa905d3600ffd734b328a33fc0668fbd8178a34ef4f5c193ada833b1d06 -size 3821 +from __future__ import absolute_import +from base64 import b64encode + +from ..packages.six import b, integer_types +from ..exceptions import UnrewindableBodyError + +ACCEPT_ENCODING = "gzip,deflate" +try: + import brotli as _unused_module_brotli # noqa: F401 +except ImportError: + pass +else: + ACCEPT_ENCODING += ",br" + +_FAILEDTELL = object() + + +def make_headers( + keep_alive=None, + accept_encoding=None, + user_agent=None, + basic_auth=None, + proxy_basic_auth=None, + disable_cache=None, +): + """ + Shortcuts for generating request headers. + + :param keep_alive: + If ``True``, adds 'connection: keep-alive' header. + + :param accept_encoding: + Can be a boolean, list, or string. + ``True`` translates to 'gzip,deflate'. + List will get joined by comma. + String will be used as provided. + + :param user_agent: + String representing the user-agent you want, such as + "python-urllib3/0.6" + + :param basic_auth: + Colon-separated username:password string for 'authorization: basic ...' + auth header. + + :param proxy_basic_auth: + Colon-separated username:password string for 'proxy-authorization: basic ...' + auth header. + + :param disable_cache: + If ``True``, adds 'cache-control: no-cache' header. + + Example:: + + >>> make_headers(keep_alive=True, user_agent="Batman/1.0") + {'connection': 'keep-alive', 'user-agent': 'Batman/1.0'} + >>> make_headers(accept_encoding=True) + {'accept-encoding': 'gzip,deflate'} + """ + headers = {} + if accept_encoding: + if isinstance(accept_encoding, str): + pass + elif isinstance(accept_encoding, list): + accept_encoding = ",".join(accept_encoding) + else: + accept_encoding = ACCEPT_ENCODING + headers["accept-encoding"] = accept_encoding + + if user_agent: + headers["user-agent"] = user_agent + + if keep_alive: + headers["connection"] = "keep-alive" + + if basic_auth: + headers["authorization"] = "Basic " + b64encode(b(basic_auth)).decode("utf-8") + + if proxy_basic_auth: + headers["proxy-authorization"] = "Basic " + b64encode( + b(proxy_basic_auth) + ).decode("utf-8") + + if disable_cache: + headers["cache-control"] = "no-cache" + + return headers + + +def set_file_position(body, pos): + """ + If a position is provided, move file to that point. + Otherwise, we'll attempt to record a position for future use. + """ + if pos is not None: + rewind_body(body, pos) + elif getattr(body, "tell", None) is not None: + try: + pos = body.tell() + except (IOError, OSError): + # This differentiates from None, allowing us to catch + # a failed `tell()` later when trying to rewind the body. + pos = _FAILEDTELL + + return pos + + +def rewind_body(body, body_pos): + """ + Attempt to rewind body to a certain position. + Primarily used for request redirects and retries. + + :param body: + File-like object that supports seek. + + :param int pos: + Position to seek to in file. + """ + body_seek = getattr(body, "seek", None) + if body_seek is not None and isinstance(body_pos, integer_types): + try: + body_seek(body_pos) + except (IOError, OSError): + raise UnrewindableBodyError( + "An error occurred when rewinding request " "body for redirect/retry." + ) + elif body_pos is _FAILEDTELL: + raise UnrewindableBodyError( + "Unable to record file position for rewinding " + "request body during a redirect/retry." + ) + else: + raise ValueError( + "body_pos must be of type integer, " "instead it was %s." % type(body_pos) + ) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/response.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/response.py index 66c254b6455ceaa5132ac92626bd3d6943a571d4..715868dd1000e9afd52839d0b5f94e5be42b79f3 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/response.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/response.py @@ -1,3 +1,86 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fd66d342bf31450b89b98dab4c867155d243ea69c43ad42ea6368afdb17f563f -size 2573 +from __future__ import absolute_import +from ..packages.six.moves import http_client as httplib + +from ..exceptions import HeaderParsingError + + +def is_fp_closed(obj): + """ + Checks whether a given file-like object is closed. + + :param obj: + The file-like object to check. + """ + + try: + # Check `isclosed()` first, in case Python3 doesn't set `closed`. + # GH Issue #928 + return obj.isclosed() + except AttributeError: + pass + + try: + # Check via the official file-like-object way. + return obj.closed + except AttributeError: + pass + + try: + # Check if the object is a container for another file-like object that + # gets released on exhaustion (e.g. HTTPResponse). + return obj.fp is None + except AttributeError: + pass + + raise ValueError("Unable to determine whether fp is closed.") + + +def assert_header_parsing(headers): + """ + Asserts whether all headers have been successfully parsed. + Extracts encountered errors from the result of parsing headers. + + Only works on Python 3. + + :param headers: Headers to verify. + :type headers: `httplib.HTTPMessage`. + + :raises urllib3.exceptions.HeaderParsingError: + If parsing errors are found. + """ + + # This will fail silently if we pass in the wrong kind of parameter. + # To make debugging easier add an explicit check. + if not isinstance(headers, httplib.HTTPMessage): + raise TypeError("expected httplib.Message, got {0}.".format(type(headers))) + + defects = getattr(headers, "defects", None) + get_payload = getattr(headers, "get_payload", None) + + unparsed_data = None + if get_payload: + # get_payload is actually email.message.Message.get_payload; + # we're only interested in the result if it's not a multipart message + if not headers.is_multipart(): + payload = get_payload() + + if isinstance(payload, (bytes, str)): + unparsed_data = payload + + if defects or unparsed_data: + raise HeaderParsingError(defects=defects, unparsed_data=unparsed_data) + + +def is_response_to_head(response): + """ + Checks whether the request of a response has been a HEAD-request. + Handles the quirks of AppEngine. + + :param conn: + :type conn: :class:`httplib.HTTPResponse` + """ + # FIXME: Can we do this somehow without accessing private httplib _method? + method = response._method + if isinstance(method, int): # Platform-specific: Appengine + return method == 3 + return method.upper() == "HEAD" diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/retry.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/retry.py index a4f6e92be55ac164d605990f5a2a43d2664ce6da..5a049fe65e0f33d80b81388b467811cbed89c758 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/retry.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/retry.py @@ -1,3 +1,450 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:522ef8878e202c8216900c53f522b7036984beee79fa8756809330dcb8943469 -size 15450 +from __future__ import absolute_import +import time +import logging +from collections import namedtuple +from itertools import takewhile +import email +import re + +from ..exceptions import ( + ConnectTimeoutError, + MaxRetryError, + ProtocolError, + ReadTimeoutError, + ResponseError, + InvalidHeader, +) +from ..packages import six + + +log = logging.getLogger(__name__) + + +# Data structure for representing the metadata of requests that result in a retry. +RequestHistory = namedtuple( + "RequestHistory", ["method", "url", "error", "status", "redirect_location"] +) + + +class Retry(object): + """ Retry configuration. + + Each retry attempt will create a new Retry object with updated values, so + they can be safely reused. + + Retries can be defined as a default for a pool:: + + retries = Retry(connect=5, read=2, redirect=5) + http = PoolManager(retries=retries) + response = http.request('GET', 'http://example.com/') + + Or per-request (which overrides the default for the pool):: + + response = http.request('GET', 'http://example.com/', retries=Retry(10)) + + Retries can be disabled by passing ``False``:: + + response = http.request('GET', 'http://example.com/', retries=False) + + Errors will be wrapped in :class:`~urllib3.exceptions.MaxRetryError` unless + retries are disabled, in which case the causing exception will be raised. + + :param int total: + Total number of retries to allow. Takes precedence over other counts. + + Set to ``None`` to remove this constraint and fall back on other + counts. It's a good idea to set this to some sensibly-high value to + account for unexpected edge cases and avoid infinite retry loops. + + Set to ``0`` to fail on the first retry. + + Set to ``False`` to disable and imply ``raise_on_redirect=False``. + + :param int connect: + How many connection-related errors to retry on. + + These are errors raised before the request is sent to the remote server, + which we assume has not triggered the server to process the request. + + Set to ``0`` to fail on the first retry of this type. + + :param int read: + How many times to retry on read errors. + + These errors are raised after the request was sent to the server, so the + request may have side-effects. + + Set to ``0`` to fail on the first retry of this type. + + :param int redirect: + How many redirects to perform. Limit this to avoid infinite redirect + loops. + + A redirect is a HTTP response with a status code 301, 302, 303, 307 or + 308. + + Set to ``0`` to fail on the first retry of this type. + + Set to ``False`` to disable and imply ``raise_on_redirect=False``. + + :param int status: + How many times to retry on bad status codes. + + These are retries made on responses, where status code matches + ``status_forcelist``. + + Set to ``0`` to fail on the first retry of this type. + + :param iterable method_whitelist: + Set of uppercased HTTP method verbs that we should retry on. + + By default, we only retry on methods which are considered to be + idempotent (multiple requests with the same parameters end with the + same state). See :attr:`Retry.DEFAULT_METHOD_WHITELIST`. + + Set to a ``False`` value to retry on any verb. + + :param iterable status_forcelist: + A set of integer HTTP status codes that we should force a retry on. + A retry is initiated if the request method is in ``method_whitelist`` + and the response status code is in ``status_forcelist``. + + By default, this is disabled with ``None``. + + :param float backoff_factor: + A backoff factor to apply between attempts after the second try + (most errors are resolved immediately by a second try without a + delay). urllib3 will sleep for:: + + {backoff factor} * (2 ** ({number of total retries} - 1)) + + seconds. If the backoff_factor is 0.1, then :func:`.sleep` will sleep + for [0.0s, 0.2s, 0.4s, ...] between retries. It will never be longer + than :attr:`Retry.BACKOFF_MAX`. + + By default, backoff is disabled (set to 0). + + :param bool raise_on_redirect: Whether, if the number of redirects is + exhausted, to raise a MaxRetryError, or to return a response with a + response code in the 3xx range. + + :param bool raise_on_status: Similar meaning to ``raise_on_redirect``: + whether we should raise an exception, or return a response, + if status falls in ``status_forcelist`` range and retries have + been exhausted. + + :param tuple history: The history of the request encountered during + each call to :meth:`~Retry.increment`. The list is in the order + the requests occurred. Each list item is of class :class:`RequestHistory`. + + :param bool respect_retry_after_header: + Whether to respect Retry-After header on status codes defined as + :attr:`Retry.RETRY_AFTER_STATUS_CODES` or not. + + :param iterable remove_headers_on_redirect: + Sequence of headers to remove from the request when a response + indicating a redirect is returned before firing off the redirected + request. + """ + + DEFAULT_METHOD_WHITELIST = frozenset( + ["HEAD", "GET", "PUT", "DELETE", "OPTIONS", "TRACE"] + ) + + RETRY_AFTER_STATUS_CODES = frozenset([413, 429, 503]) + + DEFAULT_REDIRECT_HEADERS_BLACKLIST = frozenset(["Authorization"]) + + #: Maximum backoff time. + BACKOFF_MAX = 120 + + def __init__( + self, + total=10, + connect=None, + read=None, + redirect=None, + status=None, + method_whitelist=DEFAULT_METHOD_WHITELIST, + status_forcelist=None, + backoff_factor=0, + raise_on_redirect=True, + raise_on_status=True, + history=None, + respect_retry_after_header=True, + remove_headers_on_redirect=DEFAULT_REDIRECT_HEADERS_BLACKLIST, + ): + + self.total = total + self.connect = connect + self.read = read + self.status = status + + if redirect is False or total is False: + redirect = 0 + raise_on_redirect = False + + self.redirect = redirect + self.status_forcelist = status_forcelist or set() + self.method_whitelist = method_whitelist + self.backoff_factor = backoff_factor + self.raise_on_redirect = raise_on_redirect + self.raise_on_status = raise_on_status + self.history = history or tuple() + self.respect_retry_after_header = respect_retry_after_header + self.remove_headers_on_redirect = frozenset( + [h.lower() for h in remove_headers_on_redirect] + ) + + def new(self, **kw): + params = dict( + total=self.total, + connect=self.connect, + read=self.read, + redirect=self.redirect, + status=self.status, + method_whitelist=self.method_whitelist, + status_forcelist=self.status_forcelist, + backoff_factor=self.backoff_factor, + raise_on_redirect=self.raise_on_redirect, + raise_on_status=self.raise_on_status, + history=self.history, + remove_headers_on_redirect=self.remove_headers_on_redirect, + respect_retry_after_header=self.respect_retry_after_header, + ) + params.update(kw) + return type(self)(**params) + + @classmethod + def from_int(cls, retries, redirect=True, default=None): + """ Backwards-compatibility for the old retries format.""" + if retries is None: + retries = default if default is not None else cls.DEFAULT + + if isinstance(retries, Retry): + return retries + + redirect = bool(redirect) and None + new_retries = cls(retries, redirect=redirect) + log.debug("Converted retries value: %r -> %r", retries, new_retries) + return new_retries + + def get_backoff_time(self): + """ Formula for computing the current backoff + + :rtype: float + """ + # We want to consider only the last consecutive errors sequence (Ignore redirects). + consecutive_errors_len = len( + list( + takewhile(lambda x: x.redirect_location is None, reversed(self.history)) + ) + ) + if consecutive_errors_len <= 1: + return 0 + + backoff_value = self.backoff_factor * (2 ** (consecutive_errors_len - 1)) + return min(self.BACKOFF_MAX, backoff_value) + + def parse_retry_after(self, retry_after): + # Whitespace: https://tools.ietf.org/html/rfc7230#section-3.2.4 + if re.match(r"^\s*[0-9]+\s*$", retry_after): + seconds = int(retry_after) + else: + retry_date_tuple = email.utils.parsedate(retry_after) + if retry_date_tuple is None: + raise InvalidHeader("Invalid Retry-After header: %s" % retry_after) + retry_date = time.mktime(retry_date_tuple) + seconds = retry_date - time.time() + + if seconds < 0: + seconds = 0 + + return seconds + + def get_retry_after(self, response): + """ Get the value of Retry-After in seconds. """ + + retry_after = response.getheader("Retry-After") + + if retry_after is None: + return None + + return self.parse_retry_after(retry_after) + + def sleep_for_retry(self, response=None): + retry_after = self.get_retry_after(response) + if retry_after: + time.sleep(retry_after) + return True + + return False + + def _sleep_backoff(self): + backoff = self.get_backoff_time() + if backoff <= 0: + return + time.sleep(backoff) + + def sleep(self, response=None): + """ Sleep between retry attempts. + + This method will respect a server's ``Retry-After`` response header + and sleep the duration of the time requested. If that is not present, it + will use an exponential backoff. By default, the backoff factor is 0 and + this method will return immediately. + """ + + if self.respect_retry_after_header and response: + slept = self.sleep_for_retry(response) + if slept: + return + + self._sleep_backoff() + + def _is_connection_error(self, err): + """ Errors when we're fairly sure that the server did not receive the + request, so it should be safe to retry. + """ + return isinstance(err, ConnectTimeoutError) + + def _is_read_error(self, err): + """ Errors that occur after the request has been started, so we should + assume that the server began processing it. + """ + return isinstance(err, (ReadTimeoutError, ProtocolError)) + + def _is_method_retryable(self, method): + """ Checks if a given HTTP method should be retried upon, depending if + it is included on the method whitelist. + """ + if self.method_whitelist and method.upper() not in self.method_whitelist: + return False + + return True + + def is_retry(self, method, status_code, has_retry_after=False): + """ Is this method/status code retryable? (Based on whitelists and control + variables such as the number of total retries to allow, whether to + respect the Retry-After header, whether this header is present, and + whether the returned status code is on the list of status codes to + be retried upon on the presence of the aforementioned header) + """ + if not self._is_method_retryable(method): + return False + + if self.status_forcelist and status_code in self.status_forcelist: + return True + + return ( + self.total + and self.respect_retry_after_header + and has_retry_after + and (status_code in self.RETRY_AFTER_STATUS_CODES) + ) + + def is_exhausted(self): + """ Are we out of retries? """ + retry_counts = (self.total, self.connect, self.read, self.redirect, self.status) + retry_counts = list(filter(None, retry_counts)) + if not retry_counts: + return False + + return min(retry_counts) < 0 + + def increment( + self, + method=None, + url=None, + response=None, + error=None, + _pool=None, + _stacktrace=None, + ): + """ Return a new Retry object with incremented retry counters. + + :param response: A response object, or None, if the server did not + return a response. + :type response: :class:`~urllib3.response.HTTPResponse` + :param Exception error: An error encountered during the request, or + None if the response was received successfully. + + :return: A new ``Retry`` object. + """ + if self.total is False and error: + # Disabled, indicate to re-raise the error. + raise six.reraise(type(error), error, _stacktrace) + + total = self.total + if total is not None: + total -= 1 + + connect = self.connect + read = self.read + redirect = self.redirect + status_count = self.status + cause = "unknown" + status = None + redirect_location = None + + if error and self._is_connection_error(error): + # Connect retry? + if connect is False: + raise six.reraise(type(error), error, _stacktrace) + elif connect is not None: + connect -= 1 + + elif error and self._is_read_error(error): + # Read retry? + if read is False or not self._is_method_retryable(method): + raise six.reraise(type(error), error, _stacktrace) + elif read is not None: + read -= 1 + + elif response and response.get_redirect_location(): + # Redirect retry? + if redirect is not None: + redirect -= 1 + cause = "too many redirects" + redirect_location = response.get_redirect_location() + status = response.status + + else: + # Incrementing because of a server error like a 500 in + # status_forcelist and a the given method is in the whitelist + cause = ResponseError.GENERIC_ERROR + if response and response.status: + if status_count is not None: + status_count -= 1 + cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) + status = response.status + + history = self.history + ( + RequestHistory(method, url, error, status, redirect_location), + ) + + new_retry = self.new( + total=total, + connect=connect, + read=read, + redirect=redirect, + status=status_count, + history=history, + ) + + if new_retry.is_exhausted(): + raise MaxRetryError(_pool, url, error or ResponseError(cause)) + + log.debug("Incremented Retry for (url='%s'): %r", url, new_retry) + + return new_retry + + def __repr__(self): + return ( + "{cls.__name__}(total={self.total}, connect={self.connect}, " + "read={self.read}, redirect={self.redirect}, status={self.status})" + ).format(cls=type(self), self=self) + + +# For backwards compatibility (equivalent to pre-v1.9): +Retry.DEFAULT = Retry(3) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/ssl_.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/ssl_.py index 15073ecdaecc763cc4207e53ffe870395c28da85..8495b7753dd28b8ffce8351d16ebca3fd358d5df 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/ssl_.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/ssl_.py @@ -1,3 +1,407 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a781cf75243dcf60010f768a9d0e73275ad513e78f4c6b69cd4d626201646d7 -size 14151 +from __future__ import absolute_import +import errno +import warnings +import hmac +import sys + +from binascii import hexlify, unhexlify +from hashlib import md5, sha1, sha256 + +from .url import IPV4_RE, BRACELESS_IPV6_ADDRZ_RE +from ..exceptions import SSLError, InsecurePlatformWarning, SNIMissingWarning +from ..packages import six + + +SSLContext = None +HAS_SNI = False +IS_PYOPENSSL = False +IS_SECURETRANSPORT = False + +# Maps the length of a digest to a possible hash function producing this digest +HASHFUNC_MAP = {32: md5, 40: sha1, 64: sha256} + + +def _const_compare_digest_backport(a, b): + """ + Compare two digests of equal length in constant time. + + The digests must be of type str/bytes. + Returns True if the digests match, and False otherwise. + """ + result = abs(len(a) - len(b)) + for l, r in zip(bytearray(a), bytearray(b)): + result |= l ^ r + return result == 0 + + +_const_compare_digest = getattr(hmac, "compare_digest", _const_compare_digest_backport) + +try: # Test for SSL features + import ssl + from ssl import wrap_socket, CERT_REQUIRED + from ssl import HAS_SNI # Has SNI? +except ImportError: + pass + +try: # Platform-specific: Python 3.6 + from ssl import PROTOCOL_TLS + + PROTOCOL_SSLv23 = PROTOCOL_TLS +except ImportError: + try: + from ssl import PROTOCOL_SSLv23 as PROTOCOL_TLS + + PROTOCOL_SSLv23 = PROTOCOL_TLS + except ImportError: + PROTOCOL_SSLv23 = PROTOCOL_TLS = 2 + + +try: + from ssl import OP_NO_SSLv2, OP_NO_SSLv3, OP_NO_COMPRESSION +except ImportError: + OP_NO_SSLv2, OP_NO_SSLv3 = 0x1000000, 0x2000000 + OP_NO_COMPRESSION = 0x20000 + + +# A secure default. +# Sources for more information on TLS ciphers: +# +# - https://wiki.mozilla.org/Security/Server_Side_TLS +# - https://www.ssllabs.com/projects/best-practices/index.html +# - https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/ +# +# The general intent is: +# - prefer cipher suites that offer perfect forward secrecy (DHE/ECDHE), +# - prefer ECDHE over DHE for better performance, +# - prefer any AES-GCM and ChaCha20 over any AES-CBC for better performance and +# security, +# - prefer AES-GCM over ChaCha20 because hardware-accelerated AES is common, +# - disable NULL authentication, MD5 MACs, DSS, and other +# insecure ciphers for security reasons. +# - NOTE: TLS 1.3 cipher suites are managed through a different interface +# not exposed by CPython (yet!) and are enabled by default if they're available. +DEFAULT_CIPHERS = ":".join( + [ + "ECDHE+AESGCM", + "ECDHE+CHACHA20", + "DHE+AESGCM", + "DHE+CHACHA20", + "ECDH+AESGCM", + "DH+AESGCM", + "ECDH+AES", + "DH+AES", + "RSA+AESGCM", + "RSA+AES", + "!aNULL", + "!eNULL", + "!MD5", + "!DSS", + ] +) + +try: + from ssl import SSLContext # Modern SSL? +except ImportError: + + class SSLContext(object): # Platform-specific: Python 2 + def __init__(self, protocol_version): + self.protocol = protocol_version + # Use default values from a real SSLContext + self.check_hostname = False + self.verify_mode = ssl.CERT_NONE + self.ca_certs = None + self.options = 0 + self.certfile = None + self.keyfile = None + self.ciphers = None + + def load_cert_chain(self, certfile, keyfile): + self.certfile = certfile + self.keyfile = keyfile + + def load_verify_locations(self, cafile=None, capath=None): + self.ca_certs = cafile + + if capath is not None: + raise SSLError("CA directories not supported in older Pythons") + + def set_ciphers(self, cipher_suite): + self.ciphers = cipher_suite + + def wrap_socket(self, socket, server_hostname=None, server_side=False): + warnings.warn( + "A true SSLContext object is not available. This prevents " + "urllib3 from configuring SSL appropriately and may cause " + "certain SSL connections to fail. You can upgrade to a newer " + "version of Python to solve this. For more information, see " + "https://urllib3.readthedocs.io/en/latest/advanced-usage.html" + "#ssl-warnings", + InsecurePlatformWarning, + ) + kwargs = { + "keyfile": self.keyfile, + "certfile": self.certfile, + "ca_certs": self.ca_certs, + "cert_reqs": self.verify_mode, + "ssl_version": self.protocol, + "server_side": server_side, + } + return wrap_socket(socket, ciphers=self.ciphers, **kwargs) + + +def assert_fingerprint(cert, fingerprint): + """ + Checks if given fingerprint matches the supplied certificate. + + :param cert: + Certificate as bytes object. + :param fingerprint: + Fingerprint as string of hexdigits, can be interspersed by colons. + """ + + fingerprint = fingerprint.replace(":", "").lower() + digest_length = len(fingerprint) + hashfunc = HASHFUNC_MAP.get(digest_length) + if not hashfunc: + raise SSLError("Fingerprint of invalid length: {0}".format(fingerprint)) + + # We need encode() here for py32; works on py2 and p33. + fingerprint_bytes = unhexlify(fingerprint.encode()) + + cert_digest = hashfunc(cert).digest() + + if not _const_compare_digest(cert_digest, fingerprint_bytes): + raise SSLError( + 'Fingerprints did not match. Expected "{0}", got "{1}".'.format( + fingerprint, hexlify(cert_digest) + ) + ) + + +def resolve_cert_reqs(candidate): + """ + Resolves the argument to a numeric constant, which can be passed to + the wrap_socket function/method from the ssl module. + Defaults to :data:`ssl.CERT_NONE`. + If given a string it is assumed to be the name of the constant in the + :mod:`ssl` module or its abbreviation. + (So you can specify `REQUIRED` instead of `CERT_REQUIRED`. + If it's neither `None` nor a string we assume it is already the numeric + constant which can directly be passed to wrap_socket. + """ + if candidate is None: + return CERT_REQUIRED + + if isinstance(candidate, str): + res = getattr(ssl, candidate, None) + if res is None: + res = getattr(ssl, "CERT_" + candidate) + return res + + return candidate + + +def resolve_ssl_version(candidate): + """ + like resolve_cert_reqs + """ + if candidate is None: + return PROTOCOL_TLS + + if isinstance(candidate, str): + res = getattr(ssl, candidate, None) + if res is None: + res = getattr(ssl, "PROTOCOL_" + candidate) + return res + + return candidate + + +def create_urllib3_context( + ssl_version=None, cert_reqs=None, options=None, ciphers=None +): + """All arguments have the same meaning as ``ssl_wrap_socket``. + + By default, this function does a lot of the same work that + ``ssl.create_default_context`` does on Python 3.4+. It: + + - Disables SSLv2, SSLv3, and compression + - Sets a restricted set of server ciphers + + If you wish to enable SSLv3, you can do:: + + from urllib3.util import ssl_ + context = ssl_.create_urllib3_context() + context.options &= ~ssl_.OP_NO_SSLv3 + + You can do the same to enable compression (substituting ``COMPRESSION`` + for ``SSLv3`` in the last line above). + + :param ssl_version: + The desired protocol version to use. This will default to + PROTOCOL_SSLv23 which will negotiate the highest protocol that both + the server and your installation of OpenSSL support. + :param cert_reqs: + Whether to require the certificate verification. This defaults to + ``ssl.CERT_REQUIRED``. + :param options: + Specific OpenSSL options. These default to ``ssl.OP_NO_SSLv2``, + ``ssl.OP_NO_SSLv3``, ``ssl.OP_NO_COMPRESSION``. + :param ciphers: + Which cipher suites to allow the server to select. + :returns: + Constructed SSLContext object with specified options + :rtype: SSLContext + """ + context = SSLContext(ssl_version or PROTOCOL_TLS) + + context.set_ciphers(ciphers or DEFAULT_CIPHERS) + + # Setting the default here, as we may have no ssl module on import + cert_reqs = ssl.CERT_REQUIRED if cert_reqs is None else cert_reqs + + if options is None: + options = 0 + # SSLv2 is easily broken and is considered harmful and dangerous + options |= OP_NO_SSLv2 + # SSLv3 has several problems and is now dangerous + options |= OP_NO_SSLv3 + # Disable compression to prevent CRIME attacks for OpenSSL 1.0+ + # (issue #309) + options |= OP_NO_COMPRESSION + + context.options |= options + + # Enable post-handshake authentication for TLS 1.3, see GH #1634. PHA is + # necessary for conditional client cert authentication with TLS 1.3. + # The attribute is None for OpenSSL <= 1.1.0 or does not exist in older + # versions of Python. We only enable on Python 3.7.4+ or if certificate + # verification is enabled to work around Python issue #37428 + # See: https://bugs.python.org/issue37428 + if (cert_reqs == ssl.CERT_REQUIRED or sys.version_info >= (3, 7, 4)) and getattr( + context, "post_handshake_auth", None + ) is not None: + context.post_handshake_auth = True + + context.verify_mode = cert_reqs + if ( + getattr(context, "check_hostname", None) is not None + ): # Platform-specific: Python 3.2 + # We do our own verification, including fingerprints and alternative + # hostnames. So disable it here + context.check_hostname = False + return context + + +def ssl_wrap_socket( + sock, + keyfile=None, + certfile=None, + cert_reqs=None, + ca_certs=None, + server_hostname=None, + ssl_version=None, + ciphers=None, + ssl_context=None, + ca_cert_dir=None, + key_password=None, +): + """ + All arguments except for server_hostname, ssl_context, and ca_cert_dir have + the same meaning as they do when using :func:`ssl.wrap_socket`. + + :param server_hostname: + When SNI is supported, the expected hostname of the certificate + :param ssl_context: + A pre-made :class:`SSLContext` object. If none is provided, one will + be created using :func:`create_urllib3_context`. + :param ciphers: + A string of ciphers we wish the client to support. + :param ca_cert_dir: + A directory containing CA certificates in multiple separate files, as + supported by OpenSSL's -CApath flag or the capath argument to + SSLContext.load_verify_locations(). + :param key_password: + Optional password if the keyfile is encrypted. + """ + context = ssl_context + if context is None: + # Note: This branch of code and all the variables in it are no longer + # used by urllib3 itself. We should consider deprecating and removing + # this code. + context = create_urllib3_context(ssl_version, cert_reqs, ciphers=ciphers) + + if ca_certs or ca_cert_dir: + try: + context.load_verify_locations(ca_certs, ca_cert_dir) + except IOError as e: # Platform-specific: Python 2.7 + raise SSLError(e) + # Py33 raises FileNotFoundError which subclasses OSError + # These are not equivalent unless we check the errno attribute + except OSError as e: # Platform-specific: Python 3.3 and beyond + if e.errno == errno.ENOENT: + raise SSLError(e) + raise + + elif ssl_context is None and hasattr(context, "load_default_certs"): + # try to load OS default certs; works well on Windows (require Python3.4+) + context.load_default_certs() + + # Attempt to detect if we get the goofy behavior of the + # keyfile being encrypted and OpenSSL asking for the + # passphrase via the terminal and instead error out. + if keyfile and key_password is None and _is_key_file_encrypted(keyfile): + raise SSLError("Client private key is encrypted, password is required") + + if certfile: + if key_password is None: + context.load_cert_chain(certfile, keyfile) + else: + context.load_cert_chain(certfile, keyfile, key_password) + + # If we detect server_hostname is an IP address then the SNI + # extension should not be used according to RFC3546 Section 3.1 + # We shouldn't warn the user if SNI isn't available but we would + # not be using SNI anyways due to IP address for server_hostname. + if ( + server_hostname is not None and not is_ipaddress(server_hostname) + ) or IS_SECURETRANSPORT: + if HAS_SNI and server_hostname is not None: + return context.wrap_socket(sock, server_hostname=server_hostname) + + warnings.warn( + "An HTTPS request has been made, but the SNI (Server Name " + "Indication) extension to TLS is not available on this platform. " + "This may cause the server to present an incorrect TLS " + "certificate, which can cause validation failures. You can upgrade to " + "a newer version of Python to solve this. For more information, see " + "https://urllib3.readthedocs.io/en/latest/advanced-usage.html" + "#ssl-warnings", + SNIMissingWarning, + ) + + return context.wrap_socket(sock) + + +def is_ipaddress(hostname): + """Detects whether the hostname given is an IPv4 or IPv6 address. + Also detects IPv6 addresses with Zone IDs. + + :param str hostname: Hostname to examine. + :return: True if the hostname is an IP address, False otherwise. + """ + if not six.PY2 and isinstance(hostname, bytes): + # IDN A-label bytes are ASCII compatible. + hostname = hostname.decode("ascii") + return bool(IPV4_RE.match(hostname) or BRACELESS_IPV6_ADDRZ_RE.match(hostname)) + + +def _is_key_file_encrypted(key_file): + """Detects if a key file is encrypted or not.""" + with open(key_file, "r") as f: + for line in f: + # Look for Proc-Type: 4,ENCRYPTED + if "ENCRYPTED" in line: + return True + + return False diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/timeout.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/timeout.py index 253cefd0de1f472be1a3dbd5a9f2c25e2fda37cb..c1dc1e971269e911947e0cc8793e8512209c5087 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/timeout.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/timeout.py @@ -1,3 +1,258 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da0dfdbbbad4ebc8a539c1a13f5b15cf24a6e325836e26352f10a3b2b0ab324f -size 9874 +from __future__ import absolute_import + +# The default socket timeout, used by httplib to indicate that no timeout was +# specified by the user +from socket import _GLOBAL_DEFAULT_TIMEOUT +import time + +from ..exceptions import TimeoutStateError + +# A sentinel value to indicate that no timeout was specified by the user in +# urllib3 +_Default = object() + + +# Use time.monotonic if available. +current_time = getattr(time, "monotonic", time.time) + + +class Timeout(object): + """ Timeout configuration. + + Timeouts can be defined as a default for a pool:: + + timeout = Timeout(connect=2.0, read=7.0) + http = PoolManager(timeout=timeout) + response = http.request('GET', 'http://example.com/') + + Or per-request (which overrides the default for the pool):: + + response = http.request('GET', 'http://example.com/', timeout=Timeout(10)) + + Timeouts can be disabled by setting all the parameters to ``None``:: + + no_timeout = Timeout(connect=None, read=None) + response = http.request('GET', 'http://example.com/, timeout=no_timeout) + + + :param total: + This combines the connect and read timeouts into one; the read timeout + will be set to the time leftover from the connect attempt. In the + event that both a connect timeout and a total are specified, or a read + timeout and a total are specified, the shorter timeout will be applied. + + Defaults to None. + + :type total: integer, float, or None + + :param connect: + The maximum amount of time (in seconds) to wait for a connection + attempt to a server to succeed. Omitting the parameter will default the + connect timeout to the system default, probably `the global default + timeout in socket.py + `_. + None will set an infinite timeout for connection attempts. + + :type connect: integer, float, or None + + :param read: + The maximum amount of time (in seconds) to wait between consecutive + read operations for a response from the server. Omitting the parameter + will default the read timeout to the system default, probably `the + global default timeout in socket.py + `_. + None will set an infinite timeout. + + :type read: integer, float, or None + + .. note:: + + Many factors can affect the total amount of time for urllib3 to return + an HTTP response. + + For example, Python's DNS resolver does not obey the timeout specified + on the socket. Other factors that can affect total request time include + high CPU load, high swap, the program running at a low priority level, + or other behaviors. + + In addition, the read and total timeouts only measure the time between + read operations on the socket connecting the client and the server, + not the total amount of time for the request to return a complete + response. For most requests, the timeout is raised because the server + has not sent the first byte in the specified time. This is not always + the case; if a server streams one byte every fifteen seconds, a timeout + of 20 seconds will not trigger, even though the request will take + several minutes to complete. + + If your goal is to cut off any request after a set amount of wall clock + time, consider having a second "watcher" thread to cut off a slow + request. + """ + + #: A sentinel object representing the default timeout value + DEFAULT_TIMEOUT = _GLOBAL_DEFAULT_TIMEOUT + + def __init__(self, total=None, connect=_Default, read=_Default): + self._connect = self._validate_timeout(connect, "connect") + self._read = self._validate_timeout(read, "read") + self.total = self._validate_timeout(total, "total") + self._start_connect = None + + def __str__(self): + return "%s(connect=%r, read=%r, total=%r)" % ( + type(self).__name__, + self._connect, + self._read, + self.total, + ) + + @classmethod + def _validate_timeout(cls, value, name): + """ Check that a timeout attribute is valid. + + :param value: The timeout value to validate + :param name: The name of the timeout attribute to validate. This is + used to specify in error messages. + :return: The validated and casted version of the given value. + :raises ValueError: If it is a numeric value less than or equal to + zero, or the type is not an integer, float, or None. + """ + if value is _Default: + return cls.DEFAULT_TIMEOUT + + if value is None or value is cls.DEFAULT_TIMEOUT: + return value + + if isinstance(value, bool): + raise ValueError( + "Timeout cannot be a boolean value. It must " + "be an int, float or None." + ) + try: + float(value) + except (TypeError, ValueError): + raise ValueError( + "Timeout value %s was %s, but it must be an " + "int, float or None." % (name, value) + ) + + try: + if value <= 0: + raise ValueError( + "Attempted to set %s timeout to %s, but the " + "timeout cannot be set to a value less " + "than or equal to 0." % (name, value) + ) + except TypeError: + # Python 3 + raise ValueError( + "Timeout value %s was %s, but it must be an " + "int, float or None." % (name, value) + ) + + return value + + @classmethod + def from_float(cls, timeout): + """ Create a new Timeout from a legacy timeout value. + + The timeout value used by httplib.py sets the same timeout on the + connect(), and recv() socket requests. This creates a :class:`Timeout` + object that sets the individual timeouts to the ``timeout`` value + passed to this function. + + :param timeout: The legacy timeout value. + :type timeout: integer, float, sentinel default object, or None + :return: Timeout object + :rtype: :class:`Timeout` + """ + return Timeout(read=timeout, connect=timeout) + + def clone(self): + """ Create a copy of the timeout object + + Timeout properties are stored per-pool but each request needs a fresh + Timeout object to ensure each one has its own start/stop configured. + + :return: a copy of the timeout object + :rtype: :class:`Timeout` + """ + # We can't use copy.deepcopy because that will also create a new object + # for _GLOBAL_DEFAULT_TIMEOUT, which socket.py uses as a sentinel to + # detect the user default. + return Timeout(connect=self._connect, read=self._read, total=self.total) + + def start_connect(self): + """ Start the timeout clock, used during a connect() attempt + + :raises urllib3.exceptions.TimeoutStateError: if you attempt + to start a timer that has been started already. + """ + if self._start_connect is not None: + raise TimeoutStateError("Timeout timer has already been started.") + self._start_connect = current_time() + return self._start_connect + + def get_connect_duration(self): + """ Gets the time elapsed since the call to :meth:`start_connect`. + + :return: Elapsed time in seconds. + :rtype: float + :raises urllib3.exceptions.TimeoutStateError: if you attempt + to get duration for a timer that hasn't been started. + """ + if self._start_connect is None: + raise TimeoutStateError( + "Can't get connect duration for timer " "that has not started." + ) + return current_time() - self._start_connect + + @property + def connect_timeout(self): + """ Get the value to use when setting a connection timeout. + + This will be a positive float or integer, the value None + (never timeout), or the default system timeout. + + :return: Connect timeout. + :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None + """ + if self.total is None: + return self._connect + + if self._connect is None or self._connect is self.DEFAULT_TIMEOUT: + return self.total + + return min(self._connect, self.total) + + @property + def read_timeout(self): + """ Get the value for the read timeout. + + This assumes some time has elapsed in the connection timeout and + computes the read timeout appropriately. + + If self.total is set, the read timeout is dependent on the amount of + time taken by the connect timeout. If the connection time has not been + established, a :exc:`~urllib3.exceptions.TimeoutStateError` will be + raised. + + :return: Value to use for the read timeout. + :rtype: int, float, :attr:`Timeout.DEFAULT_TIMEOUT` or None + :raises urllib3.exceptions.TimeoutStateError: If :meth:`start_connect` + has not yet been called on this object. + """ + if ( + self.total is not None + and self.total is not self.DEFAULT_TIMEOUT + and self._read is not None + and self._read is not self.DEFAULT_TIMEOUT + ): + # In case the connect timeout has not yet been established. + if self._start_connect is None: + return self._read + return max(0, min(self.total - self.get_connect_duration(), self._read)) + elif self.total is not None and self.total is not self.DEFAULT_TIMEOUT: + return max(0, self.total - self.get_connect_duration()) + else: + return self._read diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/url.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/url.py index 9da22e704b9941c08b0c22dbcdbf4b1c8df89880..eba42058cbb7730814f8133ca13527f4a63ded8a 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/url.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/url.py @@ -1,3 +1,438 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:48a5c93a2bec4c4cf9ddd02c500fce2d682199a3b1d0898274d3fd0b4759c04c -size 14192 +from __future__ import absolute_import +import re +from collections import namedtuple + +from ..exceptions import LocationParseError +from ..packages import six + + +url_attrs = ["scheme", "auth", "host", "port", "path", "query", "fragment"] + +# We only want to normalize urls with an HTTP(S) scheme. +# urllib3 infers URLs without a scheme (None) to be http. +NORMALIZABLE_SCHEMES = ("http", "https", None) + +# Almost all of these patterns were derived from the +# 'rfc3986' module: https://github.com/python-hyper/rfc3986 +PERCENT_RE = re.compile(r"%[a-fA-F0-9]{2}") +SCHEME_RE = re.compile(r"^(?:[a-zA-Z][a-zA-Z0-9+-]*:|/)") +URI_RE = re.compile( + r"^(?:([a-zA-Z][a-zA-Z0-9+.-]*):)?" + r"(?://([^/?#]*))?" + r"([^?#]*)" + r"(?:\?([^#]*))?" + r"(?:#(.*))?$", + re.UNICODE | re.DOTALL, +) + +IPV4_PAT = r"(?:[0-9]{1,3}\.){3}[0-9]{1,3}" +HEX_PAT = "[0-9A-Fa-f]{1,4}" +LS32_PAT = "(?:{hex}:{hex}|{ipv4})".format(hex=HEX_PAT, ipv4=IPV4_PAT) +_subs = {"hex": HEX_PAT, "ls32": LS32_PAT} +_variations = [ + # 6( h16 ":" ) ls32 + "(?:%(hex)s:){6}%(ls32)s", + # "::" 5( h16 ":" ) ls32 + "::(?:%(hex)s:){5}%(ls32)s", + # [ h16 ] "::" 4( h16 ":" ) ls32 + "(?:%(hex)s)?::(?:%(hex)s:){4}%(ls32)s", + # [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32 + "(?:(?:%(hex)s:)?%(hex)s)?::(?:%(hex)s:){3}%(ls32)s", + # [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32 + "(?:(?:%(hex)s:){0,2}%(hex)s)?::(?:%(hex)s:){2}%(ls32)s", + # [ *3( h16 ":" ) h16 ] "::" h16 ":" ls32 + "(?:(?:%(hex)s:){0,3}%(hex)s)?::%(hex)s:%(ls32)s", + # [ *4( h16 ":" ) h16 ] "::" ls32 + "(?:(?:%(hex)s:){0,4}%(hex)s)?::%(ls32)s", + # [ *5( h16 ":" ) h16 ] "::" h16 + "(?:(?:%(hex)s:){0,5}%(hex)s)?::%(hex)s", + # [ *6( h16 ":" ) h16 ] "::" + "(?:(?:%(hex)s:){0,6}%(hex)s)?::", +] + +UNRESERVED_PAT = r"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._!\-" +IPV6_PAT = "(?:" + "|".join([x % _subs for x in _variations]) + ")" +ZONE_ID_PAT = "(?:%25|%)(?:[" + UNRESERVED_PAT + "]|%[a-fA-F0-9]{2})+" +IPV6_ADDRZ_PAT = r"\[" + IPV6_PAT + r"(?:" + ZONE_ID_PAT + r")?\]" +REG_NAME_PAT = r"(?:[^\[\]%:/?#]|%[a-fA-F0-9]{2})*" +TARGET_RE = re.compile(r"^(/[^?]*)(?:\?([^#]+))?(?:#(.*))?$") + +IPV4_RE = re.compile("^" + IPV4_PAT + "$") +IPV6_RE = re.compile("^" + IPV6_PAT + "$") +IPV6_ADDRZ_RE = re.compile("^" + IPV6_ADDRZ_PAT + "$") +BRACELESS_IPV6_ADDRZ_RE = re.compile("^" + IPV6_ADDRZ_PAT[2:-2] + "$") +ZONE_ID_RE = re.compile("(" + ZONE_ID_PAT + r")\]$") + +SUBAUTHORITY_PAT = (u"^(?:(.*)@)?" u"(%s|%s|%s)" u"(?::([0-9]{0,5}))?$") % ( + REG_NAME_PAT, + IPV4_PAT, + IPV6_ADDRZ_PAT, +) +SUBAUTHORITY_RE = re.compile(SUBAUTHORITY_PAT, re.UNICODE | re.DOTALL) + +ZONE_ID_CHARS = set( + "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789._!-" +) +USERINFO_CHARS = ZONE_ID_CHARS | set("$&'()*+,;=:") +PATH_CHARS = USERINFO_CHARS | {"@", "/"} +QUERY_CHARS = FRAGMENT_CHARS = PATH_CHARS | {"?"} + + +class Url(namedtuple("Url", url_attrs)): + """ + Data structure for representing an HTTP URL. Used as a return value for + :func:`parse_url`. Both the scheme and host are normalized as they are + both case-insensitive according to RFC 3986. + """ + + __slots__ = () + + def __new__( + cls, + scheme=None, + auth=None, + host=None, + port=None, + path=None, + query=None, + fragment=None, + ): + if path and not path.startswith("/"): + path = "/" + path + if scheme is not None: + scheme = scheme.lower() + return super(Url, cls).__new__( + cls, scheme, auth, host, port, path, query, fragment + ) + + @property + def hostname(self): + """For backwards-compatibility with urlparse. We're nice like that.""" + return self.host + + @property + def request_uri(self): + """Absolute path including the query string.""" + uri = self.path or "/" + + if self.query is not None: + uri += "?" + self.query + + return uri + + @property + def netloc(self): + """Network location including host and port""" + if self.port: + return "%s:%d" % (self.host, self.port) + return self.host + + @property + def url(self): + """ + Convert self into a url + + This function should more or less round-trip with :func:`.parse_url`. The + returned url may not be exactly the same as the url inputted to + :func:`.parse_url`, but it should be equivalent by the RFC (e.g., urls + with a blank port will have : removed). + + Example: :: + + >>> U = parse_url('http://google.com/mail/') + >>> U.url + 'http://google.com/mail/' + >>> Url('http', 'username:password', 'host.com', 80, + ... '/path', 'query', 'fragment').url + 'http://username:password@host.com:80/path?query#fragment' + """ + scheme, auth, host, port, path, query, fragment = self + url = u"" + + # We use "is not None" we want things to happen with empty strings (or 0 port) + if scheme is not None: + url += scheme + u"://" + if auth is not None: + url += auth + u"@" + if host is not None: + url += host + if port is not None: + url += u":" + str(port) + if path is not None: + url += path + if query is not None: + url += u"?" + query + if fragment is not None: + url += u"#" + fragment + + return url + + def __str__(self): + return self.url + + +def split_first(s, delims): + """ + .. deprecated:: 1.25 + + Given a string and an iterable of delimiters, split on the first found + delimiter. Return two split parts and the matched delimiter. + + If not found, then the first part is the full input string. + + Example:: + + >>> split_first('foo/bar?baz', '?/=') + ('foo', 'bar?baz', '/') + >>> split_first('foo/bar?baz', '123') + ('foo/bar?baz', '', None) + + Scales linearly with number of delims. Not ideal for large number of delims. + """ + min_idx = None + min_delim = None + for d in delims: + idx = s.find(d) + if idx < 0: + continue + + if min_idx is None or idx < min_idx: + min_idx = idx + min_delim = d + + if min_idx is None or min_idx < 0: + return s, "", None + + return s[:min_idx], s[min_idx + 1 :], min_delim + + +def _encode_invalid_chars(component, allowed_chars, encoding="utf-8"): + """Percent-encodes a URI component without reapplying + onto an already percent-encoded component. + """ + if component is None: + return component + + component = six.ensure_text(component) + + # Try to see if the component we're encoding is already percent-encoded + # so we can skip all '%' characters but still encode all others. + percent_encodings = PERCENT_RE.findall(component) + + # Normalize existing percent-encoded bytes. + for enc in percent_encodings: + if not enc.isupper(): + component = component.replace(enc, enc.upper()) + + uri_bytes = component.encode("utf-8", "surrogatepass") + is_percent_encoded = len(percent_encodings) == uri_bytes.count(b"%") + + encoded_component = bytearray() + + for i in range(0, len(uri_bytes)): + # Will return a single character bytestring on both Python 2 & 3 + byte = uri_bytes[i : i + 1] + byte_ord = ord(byte) + if (is_percent_encoded and byte == b"%") or ( + byte_ord < 128 and byte.decode() in allowed_chars + ): + encoded_component.extend(byte) + continue + encoded_component.extend(b"%" + (hex(byte_ord)[2:].encode().zfill(2).upper())) + + return encoded_component.decode(encoding) + + +def _remove_path_dot_segments(path): + # See http://tools.ietf.org/html/rfc3986#section-5.2.4 for pseudo-code + segments = path.split("/") # Turn the path into a list of segments + output = [] # Initialize the variable to use to store output + + for segment in segments: + # '.' is the current directory, so ignore it, it is superfluous + if segment == ".": + continue + # Anything other than '..', should be appended to the output + elif segment != "..": + output.append(segment) + # In this case segment == '..', if we can, we should pop the last + # element + elif output: + output.pop() + + # If the path starts with '/' and the output is empty or the first string + # is non-empty + if path.startswith("/") and (not output or output[0]): + output.insert(0, "") + + # If the path starts with '/.' or '/..' ensure we add one more empty + # string to add a trailing '/' + if path.endswith(("/.", "/..")): + output.append("") + + return "/".join(output) + + +def _normalize_host(host, scheme): + if host: + if isinstance(host, six.binary_type): + host = six.ensure_str(host) + + if scheme in NORMALIZABLE_SCHEMES: + is_ipv6 = IPV6_ADDRZ_RE.match(host) + if is_ipv6: + match = ZONE_ID_RE.search(host) + if match: + start, end = match.span(1) + zone_id = host[start:end] + + if zone_id.startswith("%25") and zone_id != "%25": + zone_id = zone_id[3:] + else: + zone_id = zone_id[1:] + zone_id = "%" + _encode_invalid_chars(zone_id, ZONE_ID_CHARS) + return host[:start].lower() + zone_id + host[end:] + else: + return host.lower() + elif not IPV4_RE.match(host): + return six.ensure_str( + b".".join([_idna_encode(label) for label in host.split(".")]) + ) + return host + + +def _idna_encode(name): + if name and any([ord(x) > 128 for x in name]): + try: + import idna + except ImportError: + six.raise_from( + LocationParseError("Unable to parse URL without the 'idna' module"), + None, + ) + try: + return idna.encode(name.lower(), strict=True, std3_rules=True) + except idna.IDNAError: + six.raise_from( + LocationParseError(u"Name '%s' is not a valid IDNA label" % name), None + ) + return name.lower().encode("ascii") + + +def _encode_target(target): + """Percent-encodes a request target so that there are no invalid characters""" + if not target.startswith("/"): + return target + + path, query, fragment = TARGET_RE.match(target).groups() + target = _encode_invalid_chars(path, PATH_CHARS) + query = _encode_invalid_chars(query, QUERY_CHARS) + fragment = _encode_invalid_chars(fragment, FRAGMENT_CHARS) + if query is not None: + target += "?" + query + if fragment is not None: + target += "#" + target + return target + + +def parse_url(url): + """ + Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is + performed to parse incomplete urls. Fields not provided will be None. + This parser is RFC 3986 compliant. + + The parser logic and helper functions are based heavily on + work done in the ``rfc3986`` module. + + :param str url: URL to parse into a :class:`.Url` namedtuple. + + Partly backwards-compatible with :mod:`urlparse`. + + Example:: + + >>> parse_url('http://google.com/mail/') + Url(scheme='http', host='google.com', port=None, path='/mail/', ...) + >>> parse_url('google.com:80') + Url(scheme=None, host='google.com', port=80, path=None, ...) + >>> parse_url('/foo?bar') + Url(scheme=None, host=None, port=None, path='/foo', query='bar', ...) + """ + if not url: + # Empty + return Url() + + source_url = url + if not SCHEME_RE.search(url): + url = "//" + url + + try: + scheme, authority, path, query, fragment = URI_RE.match(url).groups() + normalize_uri = scheme is None or scheme.lower() in NORMALIZABLE_SCHEMES + + if scheme: + scheme = scheme.lower() + + if authority: + auth, host, port = SUBAUTHORITY_RE.match(authority).groups() + if auth and normalize_uri: + auth = _encode_invalid_chars(auth, USERINFO_CHARS) + if port == "": + port = None + else: + auth, host, port = None, None, None + + if port is not None: + port = int(port) + if not (0 <= port <= 65535): + raise LocationParseError(url) + + host = _normalize_host(host, scheme) + + if normalize_uri and path: + path = _remove_path_dot_segments(path) + path = _encode_invalid_chars(path, PATH_CHARS) + if normalize_uri and query: + query = _encode_invalid_chars(query, QUERY_CHARS) + if normalize_uri and fragment: + fragment = _encode_invalid_chars(fragment, FRAGMENT_CHARS) + + except (ValueError, AttributeError): + return six.raise_from(LocationParseError(source_url), None) + + # For the sake of backwards compatibility we put empty + # string values for path if there are any defined values + # beyond the path in the URL. + # TODO: Remove this when we break backwards compatibility. + if not path: + if query is not None or fragment is not None: + path = "" + else: + path = None + + # Ensure that each part of the URL is a `str` for + # backwards compatibility. + if isinstance(url, six.text_type): + ensure_func = six.ensure_text + else: + ensure_func = six.ensure_str + + def ensure_type(x): + return x if x is None else ensure_func(x) + + return Url( + scheme=ensure_type(scheme), + auth=ensure_type(auth), + host=ensure_type(host), + port=port, + path=ensure_type(path), + query=ensure_type(query), + fragment=ensure_type(fragment), + ) + + +def get_host(url): + """ + Deprecated. Use :func:`parse_url` instead. + """ + p = parse_url(url) + return p.scheme or "http", p.hostname, p.port diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/wait.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/wait.py index 18d8399e715299bd49dcc3f878bd99cacf036359..d71d2fd722bedb03a45d1f70cdc41d028ffa7d69 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/wait.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/urllib3/util/wait.py @@ -1,3 +1,153 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:938e8acea218bb7567ce56b9616dc4bed22736553f432705a900208483b1a008 -size 5406 +import errno +from functools import partial +import select +import sys + +try: + from time import monotonic +except ImportError: + from time import time as monotonic + +__all__ = ["NoWayToWaitForSocketError", "wait_for_read", "wait_for_write"] + + +class NoWayToWaitForSocketError(Exception): + pass + + +# How should we wait on sockets? +# +# There are two types of APIs you can use for waiting on sockets: the fancy +# modern stateful APIs like epoll/kqueue, and the older stateless APIs like +# select/poll. The stateful APIs are more efficient when you have a lots of +# sockets to keep track of, because you can set them up once and then use them +# lots of times. But we only ever want to wait on a single socket at a time +# and don't want to keep track of state, so the stateless APIs are actually +# more efficient. So we want to use select() or poll(). +# +# Now, how do we choose between select() and poll()? On traditional Unixes, +# select() has a strange calling convention that makes it slow, or fail +# altogether, for high-numbered file descriptors. The point of poll() is to fix +# that, so on Unixes, we prefer poll(). +# +# On Windows, there is no poll() (or at least Python doesn't provide a wrapper +# for it), but that's OK, because on Windows, select() doesn't have this +# strange calling convention; plain select() works fine. +# +# So: on Windows we use select(), and everywhere else we use poll(). We also +# fall back to select() in case poll() is somehow broken or missing. + +if sys.version_info >= (3, 5): + # Modern Python, that retries syscalls by default + def _retry_on_intr(fn, timeout): + return fn(timeout) + + +else: + # Old and broken Pythons. + def _retry_on_intr(fn, timeout): + if timeout is None: + deadline = float("inf") + else: + deadline = monotonic() + timeout + + while True: + try: + return fn(timeout) + # OSError for 3 <= pyver < 3.5, select.error for pyver <= 2.7 + except (OSError, select.error) as e: + # 'e.args[0]' incantation works for both OSError and select.error + if e.args[0] != errno.EINTR: + raise + else: + timeout = deadline - monotonic() + if timeout < 0: + timeout = 0 + if timeout == float("inf"): + timeout = None + continue + + +def select_wait_for_socket(sock, read=False, write=False, timeout=None): + if not read and not write: + raise RuntimeError("must specify at least one of read=True, write=True") + rcheck = [] + wcheck = [] + if read: + rcheck.append(sock) + if write: + wcheck.append(sock) + # When doing a non-blocking connect, most systems signal success by + # marking the socket writable. Windows, though, signals success by marked + # it as "exceptional". We paper over the difference by checking the write + # sockets for both conditions. (The stdlib selectors module does the same + # thing.) + fn = partial(select.select, rcheck, wcheck, wcheck) + rready, wready, xready = _retry_on_intr(fn, timeout) + return bool(rready or wready or xready) + + +def poll_wait_for_socket(sock, read=False, write=False, timeout=None): + if not read and not write: + raise RuntimeError("must specify at least one of read=True, write=True") + mask = 0 + if read: + mask |= select.POLLIN + if write: + mask |= select.POLLOUT + poll_obj = select.poll() + poll_obj.register(sock, mask) + + # For some reason, poll() takes timeout in milliseconds + def do_poll(t): + if t is not None: + t *= 1000 + return poll_obj.poll(t) + + return bool(_retry_on_intr(do_poll, timeout)) + + +def null_wait_for_socket(*args, **kwargs): + raise NoWayToWaitForSocketError("no select-equivalent available") + + +def _have_working_poll(): + # Apparently some systems have a select.poll that fails as soon as you try + # to use it, either due to strange configuration or broken monkeypatching + # from libraries like eventlet/greenlet. + try: + poll_obj = select.poll() + _retry_on_intr(poll_obj.poll, 0) + except (AttributeError, OSError): + return False + else: + return True + + +def wait_for_socket(*args, **kwargs): + # We delay choosing which implementation to use until the first time we're + # called. We could do it at import time, but then we might make the wrong + # decision if someone goes wild with monkeypatching select.poll after + # we're imported. + global wait_for_socket + if _have_working_poll(): + wait_for_socket = poll_wait_for_socket + elif hasattr(select, "select"): + wait_for_socket = select_wait_for_socket + else: # Platform-specific: Appengine. + wait_for_socket = null_wait_for_socket + return wait_for_socket(*args, **kwargs) + + +def wait_for_read(sock, timeout=None): + """ Waits for reading to be available on a given socket. + Returns True if the socket is readable, or False if the timeout expired. + """ + return wait_for_socket(sock, read=True, timeout=timeout) + + +def wait_for_write(sock, timeout=None): + """ Waits for writing to be available on a given socket. + Returns True if the socket is readable, or False if the timeout expired. + """ + return wait_for_socket(sock, write=True, timeout=timeout) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/var.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/var.py index 7cf9dcb21c9ac33bc0d5c8c827dd74833da3acc8..f19696ccb8734f678fbd159b6d89274fee040f81 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/var.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/var.py @@ -1,3 +1 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e3358dd79584407047c71bd532c04ce62ec9a28726a97afed2401d4c57bc26d -size 41 +#Dummy Module for the Flowchart Variables \ No newline at end of file diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/__init__.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/__init__.py index 46eeaa36360b6f6fc957f2f57241381ceae67e39..5154bfa1d084dd958af15e03b5bbd3b5db09cd93 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/__init__.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/__init__.py @@ -1,3 +1,14 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1f8a3f0e46e355b3d68995159af6bc13b90ffb07bb59e52eec2ff3a015cf31fa -size 298 +# encoding:utf-8 +from .auth import WeiboOauth2 +from .exceptions import WeiboAPIError, WeiboOauth2Error, WeiboRequestError +from .weibo import WeiboClient + +__all__ = [ + "WeiboOauth2", + "WeiboClient", + "WeiboAPIError", + "WeiboOauth2Error", + "WeiboRequestError" +] + +__version__ = '0.1.2' diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/auth.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/auth.py index 5c2d802971f1313101ab90cea75b60cdfb8f7c26..ba72a16ae9b633316f1af81b4867159bd01ad27b 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/auth.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/auth.py @@ -1,3 +1,234 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:528e300fe483f3a17e1a52fd0ac3f1e3aab955e266a13036f545a429c59fae5f -size 9669 +# encoding:utf-8 +from urllib.parse import urlencode + +import requests + +from .exceptions import WeiboOauth2Error, WeiboRequestError +from .weibo import filter_params + + +class WeiboOauth2(object): + """ + weibo OAuth2 + """ + site_url = "https://api.weibo.com/oauth2/" + mobile_url = "https://open.weibo.cn/oauth2/" + + def __init__(self, client_id, client_secret, redirect_url, **kwargs): + """ + 必选 类型及范围 说明 + client_id true string 申请应用时分配的AppKey。 + redirect_ur true string 授权回调地址,站外应用需与设置的回调地址一致,站内应用需填写canvas page的地址。 + scope false string 申请scope权限所需参数,可一次申请多个scope权限,用逗号分隔。使用文档 + state false string 用于保持请求和回调的状态,在回调时,会在Query Parameter中回传该参数。 + 开发者可以用这个参数验证请求有效性,也可以记录用户请求授权页前的位置。 + 这个参数可用于防止跨站请求伪造(CSRF)攻击 + + display false string 授权页面的终端类型,取值见下面的说明。 + forcelogin false boolean 是否强制用户重新登录,true:是,false:否。默认false。 + language false string 授权页语言,缺省为中文简体版,en为英文版。英文版测试中,开发者任何意见可反馈至 @微博API + + + sco : all 请求下列所有 + email 用户的联系邮箱 + direct_messages_write 私信发送接口 + direct_messages_read 私信读取接口 + invitation_write 邀请发送接口 + friendships_groups_read 好友分组读取接口组 + friendships_groups_write 好友分组写入接口组 + statuses_to_me_read 定向微博读取接口组 + follow_app_official_microblog 关注应用官方微博, 只需在应用控制台填写官方帐号即可 + + display: + 参数取值 类型说明 + default 默认的授权页面,适用于web浏览器。 + mobile 移动终端的授权页面,适用于支持html5的手机。注:使用此版授权页请用 https://open.weibo.cn/oauth2/authorize 授权接口 + wap wap版授权页面,适用于非智能手机。 + client 客户端版本授权页面,适用于PC桌面应用。 + apponweibo 默认的站内应用授权页,授权后不返回access_token,只刷新站内应用父框架。 + + :param client_id: (required) str, + :param client_secret: (required) str, + :param redirect_url: (required) str, + :param scope: (optional) str, + :param state: (optional) str, + :param display: (optional) str, [default,mobile,wap,client,apponweibo] + :param force_login: (optional) bool, default: false + :param language: (optional) str + """ + self.client_id = client_id + self.client_secret = client_secret + self.redirect_url = redirect_url + + self.oauth2_params = kwargs + + self.session = requests.Session() + + @property + def authorize_url(self): + """ + authorization url + request weibo authorization url + :return: + code string 用于第二步调用oauth2/access_token接口,获取授权后的access token。 + state string 如果传递参数,会回传该参数 + """ + + if self.oauth2_params and self.oauth2_params.get("display") == "mobile": + auth_url = self.mobile_url + "authorize" + else: + auth_url = self.site_url + "authorize" + + params = { + 'client_id': self.client_id, + 'redirect_uri': self.redirect_url, + } + params.update(self.oauth2_params) + + params = filter_params(params) + + return "{auth_url}?{params}".format(auth_url=auth_url, params=urlencode(params)) + + def request(self, method, suffix, data): + """ + :param method: str, http method ["GET","POST","PUT"] + :param suffix: the url suffix + :param data: + :return: + """ + url = self.site_url + suffix + response = self.session.request(method, url, data=data) + + if response.status_code == 200: + json_obj = response.json() + + if isinstance(json_obj, dict) and json_obj.get("error_code"): + + raise WeiboOauth2Error( + json_obj.get("error_code"), + json_obj.get("error"), + json_obj.get('error_description') + ) + else: + return json_obj + else: + raise WeiboRequestError( + "Weibo API request error: status code: {code} url:{url} ->" + " method:{method}: data={data}".format( + code=response.status_code, + url=response.url, + method=method, + data=data + ) + ) + + def auth_access(self, auth_code): + """ + verify the fist authorization response url code + + response data + 返回值字段 字段类型 字段说明 + access_token string 用户授权的唯一票据,用于调用微博的开放接口,同时也是第三方应用验证微博用户登录的唯一票据, + 第三方应用应该用该票据和自己应用内的用户建立唯一影射关系,来识别登录状态,不能使用本返回值里的UID + 字段来做登录识别。 + + expires_in string access_token的生命周期,单位是秒数。 + remind_in string access_token的生命周期(该参数即将废弃,开发者请使用expires_in)。 + uid string 授权用户的UID,本字段只是为了方便开发者,减少一次user/show接口调用而返回的,第三方应用不能用此字段作为用户 + 登录状态的识别,只有access_token才是用户授权的唯一票据。 + + :param auth_code: authorize_url response code + :return: + + normal: + { + "access_token": "ACCESS_TOKEN", + "expires_in": 1234, + "remind_in":"798114", + "uid":"12341234" + } + mobile: + { + "access_token": "SlAV32hkKG", + "remind_in": 3600, + "expires_in": 3600 + "refresh_token": "QXBK19xm62" + } + + """ + data = { + 'client_id': self.client_id, + 'client_secret': self.client_secret, + 'grant_type': 'authorization_code', + 'code': auth_code, + 'redirect_uri': self.redirect_url + } + return self.request("post", "access_token", data=data) + + def revoke_auth_access(self, access_token): + """ + 授权回收接口,帮助开发者主动取消用户的授权。 + + 应用下线时,清空所有用户的授权 + 应用新上线了功能,需要取得用户scope权限,可以回收后重新引导用户授权 + 开发者调试应用,需要反复调试授权功能 + 应用内实现类似登出微博帐号的功能 + + 并传递给你以下参数,source:应用appkey,uid :取消授权的用户,auth_end :取消授权的时间 + + :param access_token: + :return: bool + """ + result = self.request("post", "revokeoauth2", data={"access_token": access_token}) + return bool(result.get("result")) + + def refresh_token(self, refresh_token): + """ + + only for mobile + 授权有效期内重新授权 + Refresh Token 也是有有效期的,Refresh Token 的有效期目前为30天,在有效期内随时可以刷新。 + + :param refresh_token: + :return: + + { + "access_token": "SlAV32hkKG", + "expires_in": 3600 + } + + """ + data = { + "client_id": self.client_id, + "client_secret": self.client_secret, + "grant_type": "refresh_token", + "redirect_url": self.redirect_url, + "refresh_token": refresh_token + } + return self.request("post", "access_token", data=data) + + def get_token_info(self, access_token): + """ + 查询用户access_token的授权相关信息,包括授权时间,过期时间和scope权限。 + + response: + + 返回值字段 字段类型 字段说明 + uid string 授权用户的uid。 + appkey string access_token所属的应用appkey。 + scope string 用户授权的scope权限。 + create_at string access_token的创建时间,从1970年到创建时间的秒数。 + expire_in string access_token的剩余时间,单位是秒数。 + + :param access_token: + :return: + + { + "uid": 1073880650, + "appkey": 1352222456, + "scope": null, + "create_at": 1352267591, + "expire_in": 157679471 + } + """ + return self.request("post", "get_token_info", data={"access_token": access_token}) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/exceptions.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/exceptions.py index be5b553cb160ba873cf4533601b3473d1880997f..507f71b89f1cb322f475ca627251ffd5cba60f10 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/exceptions.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/exceptions.py @@ -1,3 +1,236 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:218cfa4f98bbbba3831315d34621ce183aa90a595c9b51f0c9edb4274b54dbd9 -size 18636 +# encoding:utf-8 + +""" + +Oauth2 + +错误编号 错误码 错误描述 +(error_code) (error) (error_description) + +21322 redirect_uri_mismatch 重定向地址不匹配 +21323 invalid_request 请求不合法 +21324 invalid_client client_id或client_secret参数无效 +21325 invalid_grant 提供的Access Grant是无效的、过期的或已撤销的 +21326 unauthorized_client 客户端没有权限 +21327 expired_token token过期 +21328 unsupported_grant_type 不支持的 GrantType +21329 unsupported_response_type 不支持的 ResponseType +21330 access_denied 用户或授权服务器拒绝授予数据访问权限 +21331 temporarily_unavailable 服务暂时无法访问 +21337 appkey permission denied 应用权限不足 + +Scope: + +10014 Insufficient app permissions 第三方应用访问api接口权限受限制 应用没有接口的权限,需要在应用控制台接口管理那在线申请 +10032 access_denied 用户或授权服务器拒绝授予数据访问权限 重新向用户申请scope权限 + +############################################################################# + +Weibo API + +系统级错误代码 + +错误代码 错误信息 详细描述 + +10001 System error 系统错误 +10002 Service unavailable 服务暂停 +10003 Remote service error 远程服务错误 +10004 IP limit IP限制不能请求该资源 +10005 Permission denied, need a high level appkey 该资源需要appkey拥有授权 +10006 Source paramter (appkey) is missing 缺少source (appkey) 参数 +10007 Unsupport mediatype (%s) 不支持的MediaType (%s) +10008 Param error, see doc for more info 参数错误,请参考API文档 +10009 Too many pending tasks, system is busy 任务过多,系统繁忙 +10010 Job expired 任务超时 +10011 RPC error RPC错误 +10012 Illegal request 非法请求 +10013 Invalid weibo user 不合法的微博用户 +10014 Insufficient app permissions 应用的接口访问权限受限 +10016 Miss required parameter (%s) , see doc for more info 缺失必选参数 (%s),请参考API文档 +10017 Parameter (%s)'s value invalid, expect (%s) , but get (%s) , see doc for more info + 参数值非法,需为 (%s),实际为 (%s),请参考API文档 +10018 Request body length over limit 请求长度超过限制 +10020 Request api not found 接口不存在 +10021 HTTP method is not suported for this request 请求的HTTP METHOD不支持,请检查是否选择了正确的POST/GET方式 +10022 IP requests out of rate limit IP请求频次超过上限 +10023 User requests out of rate limit 用户请求频次超过上限 +10024 User requests for (%s) out of rate limit 用户请求特殊接口 (%s) 频次超过上限 + + +服务级错误代码 + +错误代码 错误信息 详细描述 +20001 IDs is null IDs参数为空 +20002 Uid parameter is null Uid参数为空 +20003 User does not exists 用户不存在 +20005 Unsupported image type, only suport JPG, GIF, PNG 不支持的图片类型,仅仅支持JPG、GIF、PNG +20006 Image size too large 图片太大 +20007 Does multipart has image 请确保使用multpart上传图片 +20008 Content is null 内容为空 +20009 IDs is too many IDs参数太长了 +20012 Text too long, please input text less than 140 characters 输入文字太长,请确认不超过140个字符 +20013 Text too long, please input text less than 300 characters 输入文字太长,请确认不超过300个字符 +20014 Param is error, please try again 安全检查参数有误,请再调用一次 +20015 Account or ip or app is illgal, can not continue 账号、IP或应用非法,暂时无法完成此操作 +20016 Out of limit 发布内容过于频繁 +20017 Repeat content 提交相似的信息 +20018 Contain illegal website 包含非法网址 +20019 Repeat conetnt 提交相同的信息 +20020 Contain advertising 包含广告信息 +20021 Content is illegal 包含非法内容 +20022 Your ip's behave in a comic boisterous or unruly manner 此IP地址上的行为异常 +20031 Test and verify 需要验证码 +20032 Update success, while server slow now, please wait 1-2 minutes 发布成功,目前服务器可能会有延迟,请耐心等待1-2分钟 +20101 Target weibo does not exist 不存在的微博 +20102 Not your own weibo 不是你发布的微博 +20103 Can't repost yourself weibo 不能转发自己的微博 +20104 Illegal weibo 不合法的微博 +20109 Weibo id is null 微博ID为空 +20111 Repeated weibo text 不能发布相同的微博 +20201 Target weibo comment does not exist 不存在的微博评论 +20202 Illegal comment 不合法的评论 +20203 Not your own comment 不是你发布的评论 +20204 Comment id is null 评论ID为空 +20301 Can't send direct message to user who is not your follower 不能给不是你粉丝的人发私信 +20302 Illegal direct message 不合法的私信 +20303 Not your own direct message 不是属于你的私信 +20305 Direct message does not exist 不存在的私信 +20306 Repeated direct message text 不能发布相同的私信 +20307 Illegal direct message id 非法的私信ID +20401 Domain not exist 域名不存在 +20402 Wrong verifier Verifier错误 +20501 Source_user or target_user does not exists 参数source_user或者target_user的用户不存在 +20502 Please input right target user id or screen_name 必须输入目标用户id或者screen_name +20503 Need you follow user_id 参数user_id必须是你关注的用户 +20504 Can not follow yourself 你不能关注自己 +20505 Social graph updates out of rate limit 加关注请求超过上限 +20506 Already followed 已经关注此用户 +20507 Verification code is needed 需要输入验证码 +20508 According to user privacy settings,you can not do this 根据对方的设置,你不能进行此操作 +20509 Private friend count is out of limit 悄悄关注个数到达上限 +20510 Not private friend 不是悄悄关注人 +20511 Already followed privately 已经悄悄关注此用户 +20512 Please delete the user from you blacklist before you follow the user 你已经把此用户加入黑名单,加关注前请先解除 +20513 Friend count is out of limit! 你的关注人数已达上限 +20521 Hi Superman, you have concerned a lot of people, have a think of how to make other people concern about you! ! If you have any questions, please contact Sina customer service: 400 690 0000 + hi 超人,你今天已经关注很多喽,接下来的时间想想如何让大家都来关注你吧!如有问题,请联系新浪客服:400 690 0000 +20522 Not followed 还未关注此用户 +20523 Not followers 还不是粉丝 +20524 Hi Superman, you have cancelled concerning a lot of people, have a think of how to make other people concern about you! ! If you have any questions, please contact Sina customer service: 400 690 0000 + hi 超人,你今天已经取消关注很多喽,接下来的时间想想如何让大家都来关注你吧!如有问题,请联系新浪客服:400 690 0000 +20601 List name too long, please input text less than 10 characters 列表名太长,请确保输入的文本不超过10个字符 +20602 List description too long, please input text less than 70 characters 列表描叙太长,请确保输入的文本不超过70个字符 +20603 List does not exists 列表不存在 +20604 Only the owner has the authority 不是列表的所属者 +20605 Illegal list name or list description 列表名或描叙不合法 +20606 Object already exists 记录已存在 +20607 DB error, please contact the administator 数据库错误,请联系系统管理员 +20608 List name duplicate 列表名冲突 +20610 Does not support private list 目前不支持私有分组 +20611 Create list error 创建列表失败 +20612 Only support private list 目前只支持私有分组 +20613 You hava subscriber too many lists 订阅列表达到上限 +20614 Too many lists, see doc for more info 创建列表达到上限,请参考API文档 +20615 Too many members, see doc for more info 列表成员上限,请参考API文档 +20701 Repeated tag text 不能提交相同的收藏标签 +20702 Tags is too many 最多两个收藏标签 +20703 Illegal tag name 收藏标签名不合法 +20801 Trend_name is null 参数trend_name是空值 +20802 Trend_id is null 参数trend_id是空值 +20901 Error: in blacklist 错误:已经添加了黑名单 +20902 Error: Blacklist limit has been reached. 错误:已达到黑名单上限 +20903 Error: System administrators can not be added to the blacklist. 错误:不能添加系统管理员为黑名单 +20904 Error: Can not add yourself to the blacklist. 错误:不能添加自己为黑名单 +20905 Error: not in blacklist 错误:不在黑名单中 +21001 Tags parameter is null 标签参数为空 +21002 Tags name too long 标签名太长,请确保每个标签名不超过14个字符 +21101 Domain parameter is error 参数domain错误 +21102 The phone number has been used 该手机号已经被使用 +21103 The account has bean bind phone 该用户已经绑定手机 +21104 Wrong verifier Verifier错误 +21301 Auth faild 认证失败 +21302 Username or password error 用户名或密码不正确 +21303 Username and pwd auth out of rate limit 用户名密码认证超过请求限制 +21304 Version rejected 版本号错误 +21305 Parameter absent 缺少必要的参数 +21306 Parameter rejected OAuth参数被拒绝 +21307 Timestamp refused 时间戳不正确 +21308 Nonce used 参数nonce已经被使用 +21309 Signature method rejected 签名算法不支持 +21310 Signature invalid 签名值不合法 +21311 Consumer key unknown 参数consumer_key不存在 +21312 Consumer key refused 参数consumer_key不合法 +21313 Miss consumer key 参数consumer_key缺失 +21314 Token used Token已经被使用 +21315 Token expired Token已经过期 +21316 Token revoked Token不合法 +21317 Token rejected Token不合法 +21318 Verifier fail Pin码认证失败 +21319 Accessor was revoked 授权关系已经被解除 +21320 OAuth2 must use https 使用OAuth2必须使用https +21321 Applications over the unaudited use restrictions 未审核的应用使用人数超过限制 +21327 Expired token token过期 +21335 Request uid's value must be the current user uid 参数仅允许传入当前授权用户uid +21501 Urls is null 参数urls是空的 +21502 Urls is too many 参数urls太多了 +21503 IP is null IP是空值 +21504 Url is null 参数url是空值 +21601 Manage notice error, need auth 需要系统管理员的权限 +21602 Contains forbid world 含有敏感词 +21603 Applications send notice over the restrictions 通知发送达到限制 +21701 Manage remind error, need auth 提醒失败,需要权限 +21702 Invalid category 无效分类 +21703 Invalid status 无效状态码 +21901 Geo code input error 地理信息输入错误 +""" + + +class WeiboRequestError(Exception): + """ + """ + pass + + +class WeiboOauth2Error(Exception): + """ + error: 错误码 + error_code: 错误的内部编号 + error_description: 错误的描述信息 + error_url: 可读的网页URI,带有关于错误的信息,用于为终端用户提供与错误有关的额外信息。 + { + "error": "unsupported_response_type", + "error_code": 21329, + "error_description": "不支持的ResponseType." + } + """ + + def __init__(self, error_code, error, description): + self.error_code = error_code + self.error = error + self.description = description + + super(WeiboOauth2Error, self).__init__(error_code, error, description) + + def __str__(self): + return '{0.error_code}: ({0.error}) {0.description}'.format(self) + + +class WeiboAPIError(Exception): + """ + { + "request" : "/statuses/home_timeline.json", + "error_code" : "20502", + "error" : "Need you follow uid." + } + """ + + def __init__(self, request_url, error_code, error): + """ + """ + self.request_url = request_url + self.error_code = error_code + self.error = error + super(WeiboAPIError, self).__init__(request_url, error_code, error) + + def __str__(self): + return '{0.request_url}: ({0.error_code}) {0.error}'.format(self) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/weibo.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/weibo.py index ef8940470b40e2c19014e793e198d94c068da677..aaf579c40d5ab979f1923e57d75d0648ea514a29 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/weibo.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/weibopy/weibo.py @@ -1,3 +1,92 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3abe246d686b28b57c230f37368cf3449adf900a603309929bc9724323dbe1fe -size 2563 +# encoding:utf-8 +import copy + +import requests + +from .exceptions import WeiboAPIError, WeiboRequestError + + +def filter_params(params): + """ + convert dict value if value is bool type, + False -> "false" + True -> "true" + """ + if params is not None: + new_params = copy.deepcopy(params) + new_params = dict((k, v) for k, v in new_params.items() if v is not None) + for key, value in new_params.items(): + if isinstance(value, bool): + new_params[key] = "true" if value else "false" + return new_params + + +class WeiboClient(object): + """ + weibo client base + """ + base = "https://api.weibo.com/2/" + + def __init__(self, access_token): + """ + """ + self.access_token = access_token + self.session = requests.Session() + self.session.headers.update({"Authorization": "OAuth2 " + access_token}) + + def _handler_response(self, response, data=None): + """ + error code response: + { + "request": "/statuses/home_timeline.json", + "error_code": "20502", + "error": "Need you follow uid." + } + :param response: + :return: + """ + if response.status_code == 200: + data = response.json() + if isinstance(data, dict) and data.get("error_code"): + + raise WeiboAPIError(data.get("request"), data.get("error_code"), data.get("error")) + else: + return data + else: + raise WeiboRequestError( + "Weibo API request error: status code: {code} url:{url} ->" + " method:{method}: data={data}".format( + code=response.status_code, + url=response.url, + method=response.request.method, + data=data + ) + ) + + def get(self, suffix, params=None): + """ + request weibo api + :param suffix: str, + :param params: dict, url query parameters + :return: + + """ + + url = self.base + suffix + params = filter_params(params) + + response = self.session.get(url=url, params=params) + + return self._handler_response(response) + + def post(self, suffix, params=None, data=None, files=None): + """ + :return: + """ + + url = self.base + suffix + params = filter_params(params) + + response = self.session.post(url=url, params=params, data=data, files=files) + + return self._handler_response(response, data=data) diff --git a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/zeroconf.py b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/zeroconf.py index 2172f0a47e5450a7d867bac7bc2aac2fd900c701..961f1214302ae73b2da6a673196dd3f62f645538 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/zeroconf.py +++ b/Proteus 8 Professional/DATA/VSM Studio/drivers/RaspberryPi/zeroconf.py @@ -1,3 +1,29 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ab355a070bb2c86bd7864ce8841ff2071437ad43c1b5879b83f7fdb85ba27f9 -size 1115 +import os + +AVAHI_DAEMON = "/etc/init.d/avahi-daemon" +AVAHI_SERVICE = "/etc/avahi/services/iotbuilder.service" + +def registerService(title, type, domain, port): + try: + # Create the avahi-service descriptor file + file = open(AVAHI_SERVICE, "w") + file.write("\n") + file.write("\n") + file.write("\n") + file.write(" "+title+" on %h\n") + file.write(" \n") + file.write(" "+type+"\n") + file.write(" "+str(port)+"\n") ## Could choose arbitrary/free port here + file.write(" \n") + file.write("\n") + file.close(); + os.chmod(AVAHI_SERVICE, 0o644) # mark as non-executable + # Publish the Service: + os.system(AVAHI_DAEMON + " restart") + except: + pass + +def deregisterService(): + os.remove(AVAHI_SERVICE) # remove configuration file + # Unpublish the Service: + os.system(AVAHI_DAEMON + " restart") diff --git a/Proteus 8 Professional/DATA/VSM Studio/programmers/avrdude.xml b/Proteus 8 Professional/DATA/VSM Studio/programmers/avrdude.xml index a00d2597062c2132cd1b819b0cf34bd45876c389..01842cc6852bc09bd3e639b38bee36d07c71337d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/programmers/avrdude.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/programmers/avrdude.xml @@ -1,3 +1,577 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5de035c658e6dda24d9f9e001c42f9a00bacca05c001146ad23b484d75140610 -size 21779 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/programmers/esp8266.xml b/Proteus 8 Professional/DATA/VSM Studio/programmers/esp8266.xml index 1199897c7b5bcc6980ed900c0c1ee0f15395f47d..a7d7d833717fb89428ce17be8cb2df0a2b8c53af 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/programmers/esp8266.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/programmers/esp8266.xml @@ -1,3 +1,100 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c7d2e065e1c86b539a129b0a5127ad6d7e5d980899a5ded97485fdd61270539d -size 6175 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/programmers/leodude.xml b/Proteus 8 Professional/DATA/VSM Studio/programmers/leodude.xml index e59b729d87505a7af788b8abc01b1b58c4af98d1..eb9b854a341a6c0d377b896a52c18755c80a4260 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/programmers/leodude.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/programmers/leodude.xml @@ -1,3 +1,80 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1e75798b3a43cfd73e0bb55b54e691dddf95fb7827fd21aa70f680da12584a24 -size 5178 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/programmers/rpirtp.xml b/Proteus 8 Professional/DATA/VSM Studio/programmers/rpirtp.xml index 48fe99487f7ea8bce60cca1bc4acf2cebea86951..0829bc4c429bcb1c34a77d75024fe866c9b42d8f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/programmers/rpirtp.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/programmers/rpirtp.xml @@ -1,3 +1,53 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:724847bb150655db199f5e6b206aac9cfeac245bffcff971feeeeb7b650e1f11 -size 3464 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/programmers/st-link.xml b/Proteus 8 Professional/DATA/VSM Studio/programmers/st-link.xml index 05e9e51d86049ca5b84847a51f8b54ee45e81023..be0c292f45a71555c5ccc648740de34116c0d4f1 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/programmers/st-link.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/programmers/st-link.xml @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:535a05fd6bbc236f11ea9cf0e1059d4b2e04cdd5c5b9caf949f30811e0760c2e -size 500 + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/programmers/yunrtp.xml b/Proteus 8 Professional/DATA/VSM Studio/programmers/yunrtp.xml index 0cb5f9ad1aafc31b2a9a67fd611c4cea6adffe88..64710fe2070161c1f08cf6df789be5919058c466 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/programmers/yunrtp.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/programmers/yunrtp.xml @@ -1,3 +1,62 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5dc6b46f0be273c3b4c4938da9a039f6b5515ecca18e4f3eed2368113f2dab0f -size 3990 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/8086.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/8086.xml index b55725ffcbe4d7053dce25d3389dd7d585ed4cf8..af33587a678835271a7cca6ed24a0192d366737b 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/8086.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/8086.xml @@ -1,3 +1,11 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b58528676a7f6cb2816a24b72abc09fdd91dc341229cb903f781f8d2d34d02a -size 470 + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/arduino.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/arduino.xml index 9b83f8e8ed08f52cd15cf9dafabb5af5569301e0..ae575256c3ee407f396f3bad592741401f55e819 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/arduino.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/arduino.xml @@ -1,3 +1,291 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d013e341098b4b54e79d2173e27af8bcb3c68017889849410aec687b518ace96 -size 14357 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/arm7.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/arm7.xml index e0da4dbca54ed4212fb1e02d67193d179edc4ea3..361768752f703bc6858de9e3d882e73727161f2d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/arm7.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/arm7.xml @@ -1,3 +1,92 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ccd3b50bd69438a86534e54a9149df3728c096c1f25925af955a06274104b0f1 -size 4159 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/avr2.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/avr2.xml index 356216a7b1068ba84234bd53e4de7691347bdc7e..0d124b9f08b445659621110aa72fe0d2cbd4e334 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/avr2.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/avr2.xml @@ -1,3 +1,332 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b920363d55387052f337dd3cfc7abbd24f726e45566885d8e74308233f1e68e -size 14389 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/cm0.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/cm0.xml index 374d1e6a5a25b55e40e0573a8bcff410e2638cf7..9b67ac6f9902d2f0da520b0428f659bb803dd51b 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/cm0.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/cm0.xml @@ -1,3 +1,132 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1802968f4d49f47211b5e44c4f67f42f82595952afbf2032a07e66da45cca16b -size 5462 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/cm3.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/cm3.xml index f6edfe4e267c2ebbb80a5ea588424388c58c0f88..a24f3dadda57ac8c475a15f2eb3162c6a81a2dec 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/cm3.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/cm3.xml @@ -1,3 +1,126 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d80ef279cb669f5fbb214f696acc29e86288cb47dd075d6f6445df65b31a5a87 -size 4644 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/cm4.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/cm4.xml index 69032f6e47880d287865af887358360d1f339b96..186489e7cb378cba95d3aef48e1d0f283334945e 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/cm4.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/cm4.xml @@ -1,3 +1,78 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:40ff5f4f35e82b281be46b014ec55bef30aacaeab84d95fea30ae75270b768c0 -size 3466 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/mcs8051.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/mcs8051.xml index b625d5cf08073bcc37fff35e89778fe17c71d7b7..e78e16c5e413f78fba63a311e7cbbb7379d09c80 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/mcs8051.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/mcs8051.xml @@ -1,3 +1,186 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a9dbdd13ab41e0c3e1f4b9093c881178067c37fd22bb0c0c6eb9f40fa3356ec5 -size 6432 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/msp430.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/msp430.xml index 1e252fc8234f61a63d15b07ac131a1784f9791cd..60de5285e3007a0bf3fa9bf48c157b28940f3b69 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/msp430.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/msp430.xml @@ -1,3 +1,227 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:85c57c1b8d1c8ba71bc14c1a654c0c794572c1550fafcddb8243b5b5129e222b -size 9443 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/picaxe.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/picaxe.xml index 8a23ee23a0498f6b53849c5f99eb0a6dbcc3d7b9..510aebcaa7717c75f053c141edb84c9d1d44f328 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/picaxe.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/picaxe.xml @@ -1,3 +1,134 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:138593890fdb4b4db5408c242d4f8562336b46cd23c9dcaa1f81225926a7b287 -size 5254 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/piccolo.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/piccolo.xml index d13900823c4585a8cda59b79e6940c16b54a3722..12cc8fa02f81cca91a75418db94a85e7f9780d5d 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/piccolo.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/piccolo.xml @@ -1,3 +1,77 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0a5a8c8cfa09f7c346babfa7ad1e3f369381cf89441f6c6e5b88a386db6dab55 -size 3464 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/picmicro.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/picmicro.xml index 4f779da0668aed76bdd94944dda80e1dd1fdaf29..e4c27c05b2edceba0d37c9818b95842538cad82f 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/picmicro.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/picmicro.xml @@ -1,3 +1,1855 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4673213db68955187459cbc71a60c01c53b1cac5b7d7b81b663ddf13a7f01a0f -size 77760 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DATA/VSM Studio/simulator/raspberrypi.xml b/Proteus 8 Professional/DATA/VSM Studio/simulator/raspberrypi.xml index 922fc8f8ea510aaefaf687e7ac14b8938e937be9..962f5928cec1a4ef3fcdd066c9377ed697c90dcb 100644 --- a/Proteus 8 Professional/DATA/VSM Studio/simulator/raspberrypi.xml +++ b/Proteus 8 Professional/DATA/VSM Studio/simulator/raspberrypi.xml @@ -1,3 +1,294 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:de992d94a66054db7df83bdc7fc8228f00e415958bba2c95d462c9d342776ec2 -size 15846 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Proteus 8 Professional/DRIVERS/VDM Drivers/VDMPROXY.dll b/Proteus 8 Professional/DRIVERS/VDM Drivers/VDMPROXY.dll index 43c0824686f020d430f55a33d1786489386b6e58..85349c5ff3deaaee2c6f84327f1eae8363f704cc 100644 Binary files a/Proteus 8 Professional/DRIVERS/VDM Drivers/VDMPROXY.dll and b/Proteus 8 Professional/DRIVERS/VDM Drivers/VDMPROXY.dll differ diff --git a/Proteus 8 Professional/HELP/8086.chm b/Proteus 8 Professional/HELP/8086.chm index d2bf75b6d5b8fe24d24d2872059a1fc62c1a2977..95c9b645500dc5d09c0b8a0db3e48a478a25a9dd 100644 Binary files a/Proteus 8 Professional/HELP/8086.chm and b/Proteus 8 Professional/HELP/8086.chm differ diff --git a/Proteus 8 Professional/HELP/ATA.chm b/Proteus 8 Professional/HELP/ATA.chm index 8452cd80305e56aa1ad5241574f9e916ebd03344..d85bb4c999c91d53680bfe17b1ffa837c69b78ee 100644 Binary files a/Proteus 8 Professional/HELP/ATA.chm and b/Proteus 8 Professional/HELP/ATA.chm differ diff --git a/Proteus 8 Professional/HELP/BSTAMP.chm b/Proteus 8 Professional/HELP/BSTAMP.chm index 9fbe346b4efb41709cd19b59708babd632b3c66b..027e656803892503629bd4d6465f4346b5f75661 100644 Binary files a/Proteus 8 Professional/HELP/BSTAMP.chm and b/Proteus 8 Professional/HELP/BSTAMP.chm differ diff --git a/Proteus 8 Professional/HELP/COMPIM.chm b/Proteus 8 Professional/HELP/COMPIM.chm index 580bf4c64075e55fe7cf59dae0f77fd19fba1b74..7de97ff13823f7aae3bc6481ace99516811516a6 100644 Binary files a/Proteus 8 Professional/HELP/COMPIM.chm and b/Proteus 8 Professional/HELP/COMPIM.chm differ diff --git a/Proteus 8 Professional/HELP/DISPLAYS.chm b/Proteus 8 Professional/HELP/DISPLAYS.chm index 2753c31d3fed9bc6c4ceb78835404b7b078fb901..d6c28b0758d3745fd9ac40c94ffbfecba9bcaa1e 100644 Binary files a/Proteus 8 Professional/HELP/DISPLAYS.chm and b/Proteus 8 Professional/HELP/DISPLAYS.chm differ diff --git a/Proteus 8 Professional/HELP/HC11.chm b/Proteus 8 Professional/HELP/HC11.chm index d3b7c2708c45c85c42ee01d798425e057607ea84..460449b32bdd4cb91f679f9f9ce345f39fed6307 100644 Binary files a/Proteus 8 Professional/HELP/HC11.chm and b/Proteus 8 Professional/HELP/HC11.chm differ diff --git a/Proteus 8 Professional/HELP/KEYPAD.chm b/Proteus 8 Professional/HELP/KEYPAD.chm index bf0d3f055de2ac1b4d58bc6df16f2a8aaafc24e0..2b10dfff08199f8af88dc2a59989f8373ff57be3 100644 Binary files a/Proteus 8 Professional/HELP/KEYPAD.chm and b/Proteus 8 Professional/HELP/KEYPAD.chm differ diff --git a/Proteus 8 Professional/HELP/MSP430.chm b/Proteus 8 Professional/HELP/MSP430.chm index de47307ef0dc3ba9f2611982834960b14303c515..8755f052d829798145ec3eda87d4c9fe09dfade3 100644 Binary files a/Proteus 8 Professional/HELP/MSP430.chm and b/Proteus 8 Professional/HELP/MSP430.chm differ diff --git a/Proteus 8 Professional/HELP/PICCOLO.chm b/Proteus 8 Professional/HELP/PICCOLO.chm index a66e8d6c00b7a8a8424e976c3ef9ff08b51b88d5..3489e68aa6e21b54aed8bc1e049eb597bbcbc78a 100644 Binary files a/Proteus 8 Professional/HELP/PICCOLO.chm and b/Proteus 8 Professional/HELP/PICCOLO.chm differ diff --git a/Proteus 8 Professional/HELP/SPEAKER.chm b/Proteus 8 Professional/HELP/SPEAKER.chm index 0f9e4535e89d1fcd4a5bc2deb69f3ed06d7169bb..9f17a077ea0ebbf44d97dedde80a89555fdc5c93 100644 Binary files a/Proteus 8 Professional/HELP/SPEAKER.chm and b/Proteus 8 Professional/HELP/SPEAKER.chm differ diff --git a/Proteus 8 Professional/HELP/VDMAGDI.chm b/Proteus 8 Professional/HELP/VDMAGDI.chm index 7efd3bd6eb96205fbda697fe3fe103f769a5c969..ee402cbc2b7f093cd931ec1b2167c2093554526b 100644 Binary files a/Proteus 8 Professional/HELP/VDMAGDI.chm and b/Proteus 8 Professional/HELP/VDMAGDI.chm differ diff --git a/Proteus 8 Professional/HELP/VDMCSPY.chm b/Proteus 8 Professional/HELP/VDMCSPY.chm index 71b0fc4af1d58dea0d88fe0096b4142964e8688b..14d3bafded124d82c3dc366ed64cf085466368a0 100644 Binary files a/Proteus 8 Professional/HELP/VDMCSPY.chm and b/Proteus 8 Professional/HELP/VDMCSPY.chm differ diff --git a/Proteus 8 Professional/HELP/VSMSDK.chm b/Proteus 8 Professional/HELP/VSMSDK.chm index e421f28ca29d703ddc51a0f0720f83a752f3d1a6..0f64c538dadaaee3299254d458ee9d4afdca2fa3 100644 Binary files a/Proteus 8 Professional/HELP/VSMSDK.chm and b/Proteus 8 Professional/HELP/VSMSDK.chm differ diff --git a/Proteus 8 Professional/LICENCE/GPL 2.txt b/Proteus 8 Professional/LICENCE/GPL 2.txt index 5b54e51b481b79bd75887f1ba8cd3a999704a8be..623b6258a134210f0b0ada106fdaab7f0370d9c5 100644 --- a/Proteus 8 Professional/LICENCE/GPL 2.txt +++ b/Proteus 8 Professional/LICENCE/GPL 2.txt @@ -1,3 +1,340 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c -size 18002 + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/Proteus 8 Professional/LICENCE/Scintilla_Licence.txt b/Proteus 8 Professional/LICENCE/Scintilla_Licence.txt index d93cbadce6ffe488cf710bef79c848be323077fc..eed791bb23286f5015aaa8e36db5fb26e4d09c55 100644 --- a/Proteus 8 Professional/LICENCE/Scintilla_Licence.txt +++ b/Proteus 8 Professional/LICENCE/Scintilla_Licence.txt @@ -1,3 +1,20 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3348bdf31113f04b9e1cc876daabd8c6918e8fa4b688f7447de6b20f2b678a8d -size 887 +License for Scintilla and SciTE + +Copyright 1998-2002 by Neil Hodgson + +All Rights Reserved + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation. + +NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS +SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY +SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE +OR PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/Proteus 8 Professional/LICENCE/epl-v10.html b/Proteus 8 Professional/LICENCE/epl-v10.html index cb0ee0617b3d242853adae140cfd0ca619ffdf4a..95c1a191d6d93b8430024f9fa9cc6b0bd4971dcd 100644 --- a/Proteus 8 Professional/LICENCE/epl-v10.html +++ b/Proteus 8 Professional/LICENCE/epl-v10.html @@ -1,3 +1,258 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3431a8d3dfc358acfb4873266244a55831dfe9fe7600dc415842cb63e95028c3 -size 12745 + + + + + + + +Eclipse Public License - Version 1.0 + + + + +

Eclipse Public License - v 1.0

+ +

THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE +PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR +DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS +AGREEMENT.

+ +

1. DEFINITIONS

+ +

"Contribution" means:

+ +

a) in the case of the initial Contributor, the initial +code and documentation distributed under this Agreement, and

+

b) in the case of each subsequent Contributor:

+

i) changes to the Program, and

+

ii) additions to the Program;

+

where such changes and/or additions to the Program +originate from and are distributed by that particular Contributor. A +Contribution 'originates' from a Contributor if it was added to the +Program by such Contributor itself or anyone acting on such +Contributor's behalf. Contributions do not include additions to the +Program which: (i) are separate modules of software distributed in +conjunction with the Program under their own license agreement, and (ii) +are not derivative works of the Program.

+ +

"Contributor" means any person or entity that distributes +the Program.

+ +

"Licensed Patents" mean patent claims licensable by a +Contributor which are necessarily infringed by the use or sale of its +Contribution alone or when combined with the Program.

+ +

"Program" means the Contributions distributed in accordance +with this Agreement.

+ +

"Recipient" means anyone who receives the Program under +this Agreement, including all Contributors.

+ +

2. GRANT OF RIGHTS

+ +

a) Subject to the terms of this Agreement, each +Contributor hereby grants Recipient a non-exclusive, worldwide, +royalty-free copyright license to reproduce, prepare derivative works +of, publicly display, publicly perform, distribute and sublicense the +Contribution of such Contributor, if any, and such derivative works, in +source code and object code form.

+ +

b) Subject to the terms of this Agreement, each +Contributor hereby grants Recipient a non-exclusive, worldwide, +royalty-free patent license under Licensed Patents to make, use, sell, +offer to sell, import and otherwise transfer the Contribution of such +Contributor, if any, in source code and object code form. This patent +license shall apply to the combination of the Contribution and the +Program if, at the time the Contribution is added by the Contributor, +such addition of the Contribution causes such combination to be covered +by the Licensed Patents. The patent license shall not apply to any other +combinations which include the Contribution. No hardware per se is +licensed hereunder.

+ +

c) Recipient understands that although each Contributor +grants the licenses to its Contributions set forth herein, no assurances +are provided by any Contributor that the Program does not infringe the +patent or other intellectual property rights of any other entity. Each +Contributor disclaims any liability to Recipient for claims brought by +any other entity based on infringement of intellectual property rights +or otherwise. As a condition to exercising the rights and licenses +granted hereunder, each Recipient hereby assumes sole responsibility to +secure any other intellectual property rights needed, if any. For +example, if a third party patent license is required to allow Recipient +to distribute the Program, it is Recipient's responsibility to acquire +that license before distributing the Program.

+ +

d) Each Contributor represents that to its knowledge it +has sufficient copyright rights in its Contribution, if any, to grant +the copyright license set forth in this Agreement.

+ +

3. REQUIREMENTS

+ +

A Contributor may choose to distribute the Program in object code +form under its own license agreement, provided that:

+ +

a) it complies with the terms and conditions of this +Agreement; and

+ +

b) its license agreement:

+ +

i) effectively disclaims on behalf of all Contributors +all warranties and conditions, express and implied, including warranties +or conditions of title and non-infringement, and implied warranties or +conditions of merchantability and fitness for a particular purpose;

+ +

ii) effectively excludes on behalf of all Contributors +all liability for damages, including direct, indirect, special, +incidental and consequential damages, such as lost profits;

+ +

iii) states that any provisions which differ from this +Agreement are offered by that Contributor alone and not by any other +party; and

+ +

iv) states that source code for the Program is available +from such Contributor, and informs licensees how to obtain it in a +reasonable manner on or through a medium customarily used for software +exchange.

+ +

When the Program is made available in source code form:

+ +

a) it must be made available under this Agreement; and

+ +

b) a copy of this Agreement must be included with each +copy of the Program.

+ +

Contributors may not remove or alter any copyright notices contained +within the Program.

+ +

Each Contributor must identify itself as the originator of its +Contribution, if any, in a manner that reasonably allows subsequent +Recipients to identify the originator of the Contribution.

+ +

4. COMMERCIAL DISTRIBUTION

+ +

Commercial distributors of software may accept certain +responsibilities with respect to end users, business partners and the +like. While this license is intended to facilitate the commercial use of +the Program, the Contributor who includes the Program in a commercial +product offering should do so in a manner which does not create +potential liability for other Contributors. Therefore, if a Contributor +includes the Program in a commercial product offering, such Contributor +("Commercial Contributor") hereby agrees to defend and +indemnify every other Contributor ("Indemnified Contributor") +against any losses, damages and costs (collectively "Losses") +arising from claims, lawsuits and other legal actions brought by a third +party against the Indemnified Contributor to the extent caused by the +acts or omissions of such Commercial Contributor in connection with its +distribution of the Program in a commercial product offering. The +obligations in this section do not apply to any claims or Losses +relating to any actual or alleged intellectual property infringement. In +order to qualify, an Indemnified Contributor must: a) promptly notify +the Commercial Contributor in writing of such claim, and b) allow the +Commercial Contributor to control, and cooperate with the Commercial +Contributor in, the defense and any related settlement negotiations. The +Indemnified Contributor may participate in any such claim at its own +expense.

+ +

For example, a Contributor might include the Program in a commercial +product offering, Product X. That Contributor is then a Commercial +Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance +claims and warranties are such Commercial Contributor's responsibility +alone. Under this section, the Commercial Contributor would have to +defend claims against the other Contributors related to those +performance claims and warranties, and if a court requires any other +Contributor to pay any damages as a result, the Commercial Contributor +must pay those damages.

+ +

5. NO WARRANTY

+ +

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS +PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS +OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, +ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY +OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely +responsible for determining the appropriateness of using and +distributing the Program and assumes all risks associated with its +exercise of rights under this Agreement , including but not limited to +the risks and costs of program errors, compliance with applicable laws, +damage to or loss of data, programs or equipment, and unavailability or +interruption of operations.

+ +

6. DISCLAIMER OF LIABILITY

+ +

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT +NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING +WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR +DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED +HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

+ +

7. GENERAL

+ +

If any provision of this Agreement is invalid or unenforceable under +applicable law, it shall not affect the validity or enforceability of +the remainder of the terms of this Agreement, and without further action +by the parties hereto, such provision shall be reformed to the minimum +extent necessary to make such provision valid and enforceable.

+ +

If Recipient institutes patent litigation against any entity +(including a cross-claim or counterclaim in a lawsuit) alleging that the +Program itself (excluding combinations of the Program with other +software or hardware) infringes such Recipient's patent(s), then such +Recipient's rights granted under Section 2(b) shall terminate as of the +date such litigation is filed.

+ +

All Recipient's rights under this Agreement shall terminate if it +fails to comply with any of the material terms or conditions of this +Agreement and does not cure such failure in a reasonable period of time +after becoming aware of such noncompliance. If all Recipient's rights +under this Agreement terminate, Recipient agrees to cease use and +distribution of the Program as soon as reasonably practicable. However, +Recipient's obligations under this Agreement and any licenses granted by +Recipient relating to the Program shall continue and survive.

+ +

Everyone is permitted to copy and distribute copies of this +Agreement, but in order to avoid inconsistency the Agreement is +copyrighted and may only be modified in the following manner. The +Agreement Steward reserves the right to publish new versions (including +revisions) of this Agreement from time to time. No one other than the +Agreement Steward has the right to modify this Agreement. The Eclipse +Foundation is the initial Agreement Steward. The Eclipse Foundation may +assign the responsibility to serve as the Agreement Steward to a +suitable separate entity. Each new version of the Agreement will be +given a distinguishing version number. The Program (including +Contributions) may always be distributed subject to the version of the +Agreement under which it was received. In addition, after a new version +of the Agreement is published, Contributor may elect to distribute the +Program (including its Contributions) under the new version. Except as +expressly stated in Sections 2(a) and 2(b) above, Recipient receives no +rights or licenses to the intellectual property of any Contributor under +this Agreement, whether expressly, by implication, estoppel or +otherwise. All rights in the Program not expressly granted under this +Agreement are reserved.

+ +

This Agreement is governed by the laws of the State of New York and +the intellectual property laws of the United States of America. No party +to this Agreement will bring a legal action under this Agreement more +than one year after the cause of action arose. Each party waives its +rights to a jury trial in any resulting litigation.

+ + \ No newline at end of file diff --git a/Proteus 8 Professional/LICENCE/freeimage-license.txt b/Proteus 8 Professional/LICENCE/freeimage-license.txt index 0cc8e88e6974dbaad2c00d56a2d5f166cd813520..479fb4d5119ebd8ed67e5bef01391ac695dafb3c 100644 --- a/Proteus 8 Professional/LICENCE/freeimage-license.txt +++ b/Proteus 8 Professional/LICENCE/freeimage-license.txt @@ -1,3 +1,142 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:37f80b2998523e0e780cbab2774e1ee7eb4b7945f1ff232f5ece22ce037b6282 -size 17436 +FreeImage Public License - Version 1.0 +--------------------------------------------- + +1. Definitions. + +1.1. "Contributor" means each entity that creates or contributes to the creation of Modifications. + +1.2. "Contributor Version" means the combination of the Original Code, prior Modifications used by a Contributor, and the Modifications made by that particular Contributor. + +1.3. "Covered Code" means the Original Code or Modifications or the combination of the Original Code and Modifications, in each case including portions thereof. + +1.4. "Electronic Distribution Mechanism" means a mechanism generally accepted in the software development community for the electronic transfer of data. + +1.5. "Executable" means Covered Code in any form other than Source Code. + +1.6. "Initial Developer" means the individual or entity identified as the Initial Developer in the Source Code notice required by Exhibit A. + +1.7. "Larger Work" means a work which combines Covered Code or portions thereof with code not governed by the terms of this License. + +1.8. "License" means this document. + +1.9. "Modifications" means any addition to or deletion from the substance or structure of either the Original Code or any previous Modifications. When Covered Code is released as a series of files, a +Modification is: + +A. Any addition to or deletion from the contents of a file containing Original Code or previous Modifications. + +B. Any new file that contains any part of the Original Code or previous Modifications. + +1.10. "Original Code" means Source Code of computer software code which is described in the Source Code notice required by Exhibit A as Original Code, and which, at the time of its release under this License is not already Covered Code governed by this License. + +1.11. "Source Code" means the preferred form of the Covered Code for making modifications to it, including all modules it contains, plus any associated interface definition files, scripts used to control +compilation and installation of an Executable, or a list of source code differential comparisons against either the Original Code or another well known, available Covered Code of the Contributor's choice. The Source Code can be in a compressed or archival form, provided the appropriate decompression or de-archiving software is widely available for no charge. + +1.12. "You" means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License or a future version of this License issued under Section 6.1. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the +direction or management of such entity, whether by contract or otherwise, or (b) ownership of fifty percent (50%) or more of the outstanding shares or beneficial ownership of such entity. + +2. Source Code License. + +2.1. The Initial Developer Grant. +The Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims: + +(a) to use, reproduce, modify, display, perform, sublicense and distribute the Original Code (or portions thereof) with or without Modifications, or as part of a Larger Work; and + +(b) under patents now or hereafter owned or controlled by Initial Developer, to make, have made, use and sell ("Utilize") the Original Code (or portions thereof), but solely to the extent that +any such patent is reasonably necessary to enable You to Utilize the Original Code (or portions thereof) and not to any greater extent that may be necessary to Utilize further Modifications or +combinations. + +2.2. Contributor Grant. +Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license, subject to third party intellectual property claims: + +(a) to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof) either on an unmodified basis, with other Modifications, as Covered Code or as part of a Larger Work; and + +(b) under patents now or hereafter owned or controlled by Contributor, to Utilize the Contributor Version (or portions thereof), but solely to the extent that any such patent is reasonably necessary to enable You to Utilize the Contributor Version (or portions thereof), and not to any greater extent that +may be necessary to Utilize further Modifications or combinations. + +3. Distribution Obligations. + +3.1. Application of License. +The Modifications which You create or to which You contribute are governed by the terms of this License, including without limitation Section 2.2. The Source Code version of Covered Code may be distributed only under the terms of this License or a future version of this License released under Section 6.1, and You must include a copy of this License with every copy of the Source Code You distribute. You may not offer or impose any terms on any Source Code version that alters or +restricts the applicable version of this License or the recipients' rights hereunder. However, You may include an additional document offering the additional rights described in Section 3.5. + +3.2. Availability of Source Code. +Any Modification which You create or to which You contribute must be made available in Source Code form under the terms of this License either on the same media as an Executable version or via an accepted Electronic Distribution Mechanism to anyone to whom you made an Executable version available; and if made available via Electronic Distribution Mechanism, must remain available for at least twelve (12) months after the date it initially became available, or at least six (6) months after a subsequent version of that particular Modification has been made available to such recipients. You are responsible for ensuring that the Source Code version remains available even if the Electronic Distribution Mechanism is maintained by a third party. + +3.3. Description of Modifications. +You must cause all Covered Code to which you contribute to contain a file documenting the changes You made to create that Covered Code and the date of any change. You must include a prominent statement that the Modification is derived, directly or indirectly, from Original Code provided by the Initial Developer and including the name of the Initial Developer in (a) the Source Code, and (b) in any notice in an Executable version or related documentation in which You describe the origin or ownership of the Covered Code. + +3.4. Intellectual Property Matters + +(a) Third Party Claims. +If You have knowledge that a party claims an intellectual property right in particular functionality or code (or its utilization under this License), you must include a text file with the source code distribution titled "LEGAL" which describes the claim and the party making the claim in sufficient detail that a recipient will know whom to contact. If you obtain such knowledge after You make Your Modification available as described in Section 3.2, You shall promptly modify the LEGAL file in all copies You make +available thereafter and shall take other steps (such as notifying appropriate mailing lists or newsgroups) reasonably calculated to inform those who received the Covered Code that new knowledge has been obtained. + +(b) Contributor APIs. +If Your Modification is an application programming interface and You own or control patents which are reasonably necessary to implement that API, you must also include this information in the LEGAL file. + +3.5. Required Notices. +You must duplicate the notice in Exhibit A in each file of the Source Code, and this License in any documentation for the Source Code, where You describe recipients' rights relating to Covered Code. If You created one or more Modification(s), You may add your name as a Contributor to the notice described in Exhibit A. If it is not possible to put such notice in a particular Source Code file due to its +structure, then you must include such notice in a location (such as a relevant directory file) where a user would be likely to look for such a notice. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Code. However, You may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear than any such warranty, support, indemnity or +liability obligation is offered by You alone, and You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of +warranty, support, indemnity or liability terms You offer. + +3.6. Distribution of Executable Versions. +You may distribute Covered Code in Executable form only if the requirements of Section 3.1-3.5 have been met for that Covered Code, and if You include a notice stating that the Source Code version of the Covered Code is available under the terms of this License, including a description of how and where You have fulfilled the obligations of Section 3.2. The notice must be conspicuously included in any notice in an Executable version, related documentation or collateral in which You +describe recipients' rights relating to the Covered Code. You may distribute the Executable version of Covered Code under a license of Your choice, which may contain terms different from this License, +provided that You are in compliance with the terms of this License and that the license for the Executable version does not attempt to limit or alter the recipient's rights in the Source Code version from the rights set forth in this License. If You distribute the Executable version under a different license You must make it absolutely clear that any terms which differ from this License are offered by You alone, not by the Initial Developer or any Contributor. You hereby agree to indemnify the Initial Developer and every Contributor for any liability incurred by the Initial Developer or such Contributor as a result of any such terms You offer. + +3.7. Larger Works. +You may create a Larger Work by combining Covered Code with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Code. + +4. Inability to Comply Due to Statute or Regulation. + +If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Code due to statute or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be included in the LEGAL file described in Section 3.4 and must be included with all distributions of the Source Code. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it. + +5. Application of this License. + +This License applies to code to which the Initial Developer has attached the notice in Exhibit A, and to related Covered Code. + +6. Versions of the License. + +6.1. New Versions. +Floris van den Berg may publish revised and/or new versions of the License from time to time. Each version will be given a distinguishing version number. + +6.2. Effect of New Versions. +Once Covered Code has been published under a particular version of the License, You may always continue to use it under the terms of that version. You may also choose to use such Covered Code under the terms of any subsequent version of the License published by Floris van den Berg +No one other than Floris van den Berg has the right to modify the terms applicable to Covered Code created under this License. + +6.3. Derivative Works. +If you create or use a modified version of this License (which you may only do in order to apply it to code which is not already Covered Code governed by this License), you must (a) rename Your license so that the phrases "FreeImage", `FreeImage Public License", "FIPL", or any confusingly similar phrase do not appear anywhere in your license and (b) otherwise make it clear that your version of the license contains terms which differ from the FreeImage Public License. (Filling in the name of the Initial Developer, Original Code or Contributor in the notice described in Exhibit A shall not of themselves be deemed to be modifications of this License.) + +7. DISCLAIMER OF WARRANTY. + +COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. + +8. TERMINATION. + +This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses to the Covered Code which are properly granted shall survive any termination of this License. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive. + +9. LIMITATION OF LIABILITY. + +UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE +EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THAT EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. + +10. U.S. GOVERNMENT END USERS. + +The Covered Code is a "commercial item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" and "commercial computer software documentation," as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Code with only those rights set forth herein. + +11. MISCELLANEOUS. + +This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by Dutch law provisions (except to the extent applicable law, if any, provides otherwise), excluding its conflict-of-law provisions. With respect to disputes in which at least one party is a citizen of, or an entity chartered or registered to do business in, the The Netherlands: (a) unless otherwise agreed in writing, all disputes relating to this License (excepting any dispute relating to intellectual property rights) shall be subject to final and binding arbitration, with the losing party paying all costs of arbitration; (b) any arbitration relating to this Agreement shall be held in Almelo, The Netherlands; and (c) any litigation relating to this Agreement shall be subject to the jurisdiction of the court of Almelo, The Netherlands with the losing party responsible for costs, including without limitation, court costs and reasonable attorneys fees and expenses. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not apply to this License. + +12. RESPONSIBILITY FOR CLAIMS. + +Except in cases where another Contributor has failed to comply with Section 3.4, You are responsible for damages arising, directly or indirectly, out of Your utilization of rights under this License, based +on the number of copies of Covered Code you made available, the revenues you received from utilizing such rights, and other relevant factors. You agree to work with affected parties to distribute +responsibility on an equitable basis. + +EXHIBIT A. + +"The contents of this file are subject to the FreeImage Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://home.wxs.nl/~flvdberg/freeimage-license.txt + +Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. \ No newline at end of file diff --git a/Proteus 8 Professional/LICENCE/lgpl-2.1.txt b/Proteus 8 Professional/LICENCE/lgpl-2.1.txt index 763a1914614a6c0b4eca97426e3004baddb24cd7..4362b49151d7b34ef83b3067a8f9c9f877d72a0e 100644 --- a/Proteus 8 Professional/LICENCE/lgpl-2.1.txt +++ b/Proteus 8 Professional/LICENCE/lgpl-2.1.txt @@ -1,3 +1,502 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 -size 26530 + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/Proteus 8 Professional/LICENCE/licence.rtf b/Proteus 8 Professional/LICENCE/licence.rtf index 90014056c67a1ae76130e2fe50ee1dda54560a2e..af74b0c32affe9f2e4f31b20303603f61eb28fd0 100644 --- a/Proteus 8 Professional/LICENCE/licence.rtf +++ b/Proteus 8 Professional/LICENCE/licence.rtf @@ -1,3 +1,5255 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4a63a6e719a05d19b16ed92c55c2addfc335a78f502bfc2f5c268ae87f53a56 -size 713582 +{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff38\deff0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang2057\deflangfe2057\themelang2057\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fbidi \fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} +{\f13\fbidi \fnil\fcharset134\fprq2{\*\panose 02010600030101010101}SimSun{\*\falt ???????????\'a1\'ec??????};}{\f24\fbidi \froman\fcharset1\fprq2{\*\panose 00000400000000000000}Mangal{\*\falt Courier New};} +{\f34\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria Math;}{\f38\fbidi \fswiss\fcharset0\fprq2{\*\panose 020b0604030504040204}Tahoma{\*\falt Tahoma};}{\f39\fbidi \fnil\fcharset134\fprq2{\*\panose 02010600030101010101}@SimSun;} +{\flomajor\f31500\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fdbmajor\f31501\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;} +{\fhimajor\f31502\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria;}{\fbimajor\f31503\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;} +{\flominor\f31504\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fdbminor\f31505\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;} +{\fhiminor\f31506\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}{\fbiminor\f31507\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f232\fbidi \froman\fcharset238\fprq2 Times New Roman CE;} +{\f233\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\f235\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\f236\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\f237\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);} +{\f238\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f239\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\f240\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f242\fbidi \fswiss\fcharset238\fprq2 Arial CE;} +{\f243\fbidi \fswiss\fcharset204\fprq2 Arial Cyr;}{\f245\fbidi \fswiss\fcharset161\fprq2 Arial Greek;}{\f246\fbidi \fswiss\fcharset162\fprq2 Arial Tur;}{\f247\fbidi \fswiss\fcharset177\fprq2 Arial (Hebrew);} +{\f248\fbidi \fswiss\fcharset178\fprq2 Arial (Arabic);}{\f249\fbidi \fswiss\fcharset186\fprq2 Arial Baltic;}{\f250\fbidi \fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\f364\fbidi \fnil\fcharset0\fprq2 SimSun Western{\*\falt ???????????\'a1\'ec??????};} +{\f572\fbidi \froman\fcharset238\fprq2 Cambria Math CE;}{\f573\fbidi \froman\fcharset204\fprq2 Cambria Math Cyr;}{\f575\fbidi \froman\fcharset161\fprq2 Cambria Math Greek;}{\f576\fbidi \froman\fcharset162\fprq2 Cambria Math Tur;} +{\f579\fbidi \froman\fcharset186\fprq2 Cambria Math Baltic;}{\f580\fbidi \froman\fcharset163\fprq2 Cambria Math (Vietnamese);}{\f612\fbidi \fswiss\fcharset238\fprq2 Tahoma CE{\*\falt Tahoma};} +{\f613\fbidi \fswiss\fcharset204\fprq2 Tahoma Cyr{\*\falt Tahoma};}{\f615\fbidi \fswiss\fcharset161\fprq2 Tahoma Greek{\*\falt Tahoma};}{\f616\fbidi \fswiss\fcharset162\fprq2 Tahoma Tur{\*\falt Tahoma};} +{\f617\fbidi \fswiss\fcharset177\fprq2 Tahoma (Hebrew){\*\falt Tahoma};}{\f618\fbidi \fswiss\fcharset178\fprq2 Tahoma (Arabic){\*\falt Tahoma};}{\f619\fbidi \fswiss\fcharset186\fprq2 Tahoma Baltic{\*\falt Tahoma};} +{\f620\fbidi \fswiss\fcharset163\fprq2 Tahoma (Vietnamese){\*\falt Tahoma};}{\f621\fbidi \fswiss\fcharset222\fprq2 Tahoma (Thai){\*\falt Tahoma};}{\f624\fbidi \fnil\fcharset0\fprq2 @SimSun Western;} +{\flomajor\f31508\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\flomajor\f31509\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\flomajor\f31511\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;} +{\flomajor\f31512\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\flomajor\f31513\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\flomajor\f31514\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);} +{\flomajor\f31515\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\flomajor\f31516\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fdbmajor\f31518\fbidi \froman\fcharset238\fprq2 Times New Roman CE;} +{\fdbmajor\f31519\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fdbmajor\f31521\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fdbmajor\f31522\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;} +{\fdbmajor\f31523\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fdbmajor\f31524\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fdbmajor\f31525\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;} +{\fdbmajor\f31526\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fhimajor\f31528\fbidi \froman\fcharset238\fprq2 Cambria CE;}{\fhimajor\f31529\fbidi \froman\fcharset204\fprq2 Cambria Cyr;} +{\fhimajor\f31531\fbidi \froman\fcharset161\fprq2 Cambria Greek;}{\fhimajor\f31532\fbidi \froman\fcharset162\fprq2 Cambria Tur;}{\fhimajor\f31535\fbidi \froman\fcharset186\fprq2 Cambria Baltic;} +{\fhimajor\f31536\fbidi \froman\fcharset163\fprq2 Cambria (Vietnamese);}{\fbimajor\f31538\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fbimajor\f31539\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;} +{\fbimajor\f31541\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fbimajor\f31542\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fbimajor\f31543\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);} +{\fbimajor\f31544\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fbimajor\f31545\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fbimajor\f31546\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);} +{\flominor\f31548\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\flominor\f31549\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\flominor\f31551\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;} +{\flominor\f31552\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\flominor\f31553\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\flominor\f31554\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);} +{\flominor\f31555\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\flominor\f31556\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fdbminor\f31558\fbidi \froman\fcharset238\fprq2 Times New Roman CE;} +{\fdbminor\f31559\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fdbminor\f31561\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fdbminor\f31562\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;} +{\fdbminor\f31563\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fdbminor\f31564\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fdbminor\f31565\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;} +{\fdbminor\f31566\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fhiminor\f31568\fbidi \fswiss\fcharset238\fprq2 Calibri CE;}{\fhiminor\f31569\fbidi \fswiss\fcharset204\fprq2 Calibri Cyr;} +{\fhiminor\f31571\fbidi \fswiss\fcharset161\fprq2 Calibri Greek;}{\fhiminor\f31572\fbidi \fswiss\fcharset162\fprq2 Calibri Tur;}{\fhiminor\f31573\fbidi \fswiss\fcharset177\fprq2 Calibri (Hebrew);} +{\fhiminor\f31574\fbidi \fswiss\fcharset178\fprq2 Calibri (Arabic);}{\fhiminor\f31575\fbidi \fswiss\fcharset186\fprq2 Calibri Baltic;}{\fhiminor\f31576\fbidi \fswiss\fcharset163\fprq2 Calibri (Vietnamese);} +{\fbiminor\f31578\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fbiminor\f31579\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fbiminor\f31581\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;} +{\fbiminor\f31582\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fbiminor\f31583\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fbiminor\f31584\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);} +{\fbiminor\f31585\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fbiminor\f31586\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0; +\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128; +\red192\green192\blue192;}{\*\defchp \fs22 }{\*\defpap \ql \li0\ri0\sa200\sl276\slmult1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 }\noqfpromote {\stylesheet{ +\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af38\afs24\alang1081 \ltrch\fcs0 \fs24\lang2057\langfe2052\loch\f0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 \snext0 \sqformat \spriority0 Normal;}{\*\cs10 \additive +\ssemihidden Default Paragraph Font;}{\*\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trcfpat1\tblind0\tblindtype3\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv +\ql \li0\ri0\sa200\sl276\slmult1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs22\alang1025 \ltrch\fcs0 \fs22\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \snext11 \ssemihidden \sunhideused +Normal Table;}{\s15\ql \li0\ri0\sb240\sa120\keepn\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs28\alang1081 \ltrch\fcs0 \f1\fs28\lang2057\langfe2052\cgrid\langnp2057\langfenp2052 \sbasedon0 \snext16 Heading;}{ +\s16\ql \li0\ri0\sa120\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af38\afs24\alang1081 \ltrch\fcs0 \fs24\lang2057\langfe2052\loch\f0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 \sbasedon0 \snext16 \slink17 Body Text;}{\* +\cs17 \additive \rtlch\fcs1 \af24\afs21\alang1081 \ltrch\fcs0 \fs21\lang0\langfe2052\dbch\af13\langnp0\langfenp2052 \sbasedon10 \slink16 \slocked \ssemihidden Body Text Char;}{\s18\ql \li0\ri0\sa120\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 +\rtlch\fcs1 \af38\afs24\alang1081 \ltrch\fcs0 \fs24\lang2057\langfe2052\loch\f0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 \sbasedon16 \snext18 List;}{\s19\ql \li0\ri0\sb120\sa120\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 \rtlch\fcs1 +\ai\af38\afs24\alang1081 \ltrch\fcs0 \i\fs24\lang2057\langfe2052\loch\f0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 \sbasedon0 \snext19 \sqformat caption;}{\s20\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 \rtlch\fcs1 +\af38\afs24\alang1081 \ltrch\fcs0 \fs24\lang2057\langfe2052\loch\f0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 \sbasedon0 \snext20 Index;}{\s21\ql \li0\ri0\nowidctlpar\tqc\tx4513\tqr\tx9026\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 \rtlch\fcs1 +\af24\afs21\alang1081 \ltrch\fcs0 \fs24\lang2057\langfe2052\loch\f0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 \sbasedon0 \snext21 \slink22 \styrsid2184557 header;}{\*\cs22 \additive \rtlch\fcs1 \af24\afs21\alang1081 \ltrch\fcs0 +\fs21\lang0\langfe2052\dbch\af13\langnp0\langfenp2052 \sbasedon10 \slink21 \slocked \styrsid2184557 Header Char;}{\s23\ql \li0\ri0\nowidctlpar\tqc\tx4513\tqr\tx9026\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af24\afs21\alang1081 \ltrch\fcs0 +\fs24\lang2057\langfe2052\loch\f0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 \sbasedon0 \snext23 \slink24 \styrsid2184557 footer;}{\*\cs24 \additive \rtlch\fcs1 \af24\afs21\alang1081 \ltrch\fcs0 \fs21\lang0\langfe2052\dbch\af13\langnp0\langfenp2052 +\sbasedon10 \slink23 \slocked \styrsid2184557 Footer Char;}}{\*\listtable{\list\listtemplateid-1585282488\listhybrid{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\leveltext +\leveltemplateid134807575\'02\'00);}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li720\lin720 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext +\leveltemplateid134807577\'02\'01.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li1440\lin1440 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext +\leveltemplateid134807579\'02\'02.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li2160\lin2160 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext +\leveltemplateid134807567\'02\'03.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li2880\lin2880 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext +\leveltemplateid134807577\'02\'04.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li3600\lin3600 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext +\leveltemplateid134807579\'02\'05.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li4320\lin4320 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext +\leveltemplateid134807567\'02\'06.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li5040\lin5040 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext +\leveltemplateid134807577\'02\'07.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li5760\lin5760 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext +\leveltemplateid134807579\'02\'08.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li6480\lin6480 }{\listname ;}\listid94054417}{\list\listtemplateid-1540188498\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0 +\levelstartat1\levelspace360\levelindent0{\leveltext\leveltemplateid134807567\'02\'00.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li360\jclisttab\tx360\lin360 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1 +\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid134807577\'02\'01.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li1080\jclisttab\tx1080\lin1080 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1 +\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid134807579\'02\'02.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li1800\jclisttab\tx1800\lin1800 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1 +\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid134807567\'02\'03.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li2520\jclisttab\tx2520\lin2520 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1 +\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid134807577\'02\'04.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li3240\jclisttab\tx3240\lin3240 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1 +\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid134807579\'02\'05.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li3960\jclisttab\tx3960\lin3960 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1 +\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid134807567\'02\'06.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li4680\jclisttab\tx4680\lin4680 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1 +\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid134807577\'02\'07.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li5400\jclisttab\tx5400\lin5400 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1 +\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid134807579\'02\'08.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li6120\jclisttab\tx6120\lin6120 }{\listname ;}\listid681054895}{\list\listtemplateid256262594\listhybrid +{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace0\levelindent0{\leveltext\leveltemplateid134807575\'02\'00);}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fbias0 \fi-360\li720\lin720 }{\listlevel\levelnfc4 +\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid134807577\'02\'01.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li1440\lin1440 }{\listlevel\levelnfc2\levelnfcn2 +\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid134807579\'02\'02.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li2160\lin2160 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0 +\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid134807567\'02\'03.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li2880\lin2880 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0 +\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid134807577\'02\'04.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li3600\lin3600 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1 +\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid134807579\'02\'05.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li4320\lin4320 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative +\levelspace0\levelindent0{\leveltext\leveltemplateid134807567\'02\'06.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li5040\lin5040 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0 +\levelindent0{\leveltext\leveltemplateid134807577\'02\'07.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li5760\lin5760 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0 +{\leveltext\leveltemplateid134807579\'02\'08.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li6480\lin6480 }{\listname ;}\listid996304883}}{\*\listoverridetable{\listoverride\listid681054895\listoverridecount0\ls1} +{\listoverride\listid996304883\listoverridecount0\ls2}{\listoverride\listid94054417\listoverridecount0\ls3}}{\*\pgptbl {\pgp\ipgp0\itap0\li0\ri0\sb0\sa0}}{\*\rsidtbl \rsid338069\rsid354387\rsid471974\rsid592412\rsid924766\rsid943320\rsid1332617 +\rsid1377699\rsid1402283\rsid1588038\rsid1725008\rsid1840256\rsid1967333\rsid2184557\rsid2755292\rsid3425956\rsid4214157\rsid4331896\rsid6376840\rsid6833364\rsid7344764\rsid7821327\rsid7947439\rsid8325636\rsid8522710\rsid8529668\rsid8612060\rsid8719511 +\rsid9397200\rsid9581771\rsid9796446\rsid11757339\rsid12208863\rsid12324810\rsid12653122\rsid12667346\rsid13046715\rsid13840563\rsid14184258\rsid14686644\rsid14756765\rsid14825906\rsid15143816\rsid15629780\rsid15729248\rsid16542082}{\mmathPr\mmathFont34 +\mbrkBin0\mbrkBinSub0\msmallFrac0\mdispDef1\mlMargin0\mrMargin0\mdefJc1\mwrapIndent1440\mintLim0\mnaryLim1}{\info{\author Tom Sellers}{\operator Iain R. Cliffe}{\creatim\yr2010\mo6\dy30\hr16\min3}{\revtim\yr2017\mo10\dy4\hr11\min3} +{\printim\yr2015\mo6\dy11\hr10\min37}{\version33}{\edmins315}{\nofpages3}{\nofwords1611}{\nofchars9185}{\nofcharsws10775}{\vern49167}}{\*\xmlnstbl {\xmlns1 http://schemas.microsoft.com/office/word/2003/wordml}} +\paperw11906\paperh16838\margl1134\margr1134\margt851\margb1134\gutter0\ltrsect +\deftab709\widowctrl\ftnbj\aenddoc\trackmoves0\trackformatting1\donotembedsysfont0\relyonvml0\donotembedlingdata1\grfdocevents0\validatexml0\showplaceholdtext0\ignoremixedcontent0\saveinvalidxml0\showxmlerrors0\horzdoc\dghspace120\dgvspace120 +\dghorigin1701\dgvorigin1984\dghshow0\dgvshow3\jcompress\viewkind1\viewscale100\rsidroot471974 \fet0{\*\wgrffmtfilter 013f}\ilfomacatclnup0{\*\ftnsep \ltrpar \pard\plain \ltrpar +\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid2184557 \rtlch\fcs1 \af38\afs24\alang1081 \ltrch\fcs0 \fs24\lang2057\langfe2052\loch\af0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 {\rtlch\fcs1 \af38 \ltrch\fcs0 +\insrsid6833364 \chftnsep +\par }}{\*\ftnsepc \ltrpar \pard\plain \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid2184557 \rtlch\fcs1 \af38\afs24\alang1081 \ltrch\fcs0 +\fs24\lang2057\langfe2052\loch\af0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid6833364 \chftnsepc +\par }}{\*\aftnsep \ltrpar \pard\plain \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid2184557 \rtlch\fcs1 \af38\afs24\alang1081 \ltrch\fcs0 +\fs24\lang2057\langfe2052\loch\af0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid6833364 \chftnsep +\par }}{\*\aftnsepc \ltrpar \pard\plain \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid2184557 \rtlch\fcs1 \af38\afs24\alang1081 \ltrch\fcs0 +\fs24\lang2057\langfe2052\loch\af0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid6833364 \chftnsepc +\par }}\ltrpar \sectd \ltrsect\sbknone\linex0\sectdefaultcl\sectrsid2184557\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang +{\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7 +\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}\pard\plain \ltrpar +\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af38\afs24\alang1081 \ltrch\fcs0 \fs24\lang2057\langfe2052\loch\af0\hich\af0\dbch\af13\cgrid\langnp2057\langfenp2052 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid9397200 +{\*\shppict{\pict{\*\picprop\shplid1025{\sp{\sn shapeType}{\sv 75}}{\sp{\sn fFlipH}{\sv 0}}{\sp{\sn fFlipV}{\sv 0}}{\sp{\sn pibFlags}{\sv 2}}{\sp{\sn fLine}{\sv 0}}{\sp{\sn fLayoutInCell}{\sv 1}}{\sp{\sn fLayoutInCell}{\sv 1}}} +\picscalex80\picscaley80\piccropl0\piccropr0\piccropt0\piccropb0\picw21011\pich3122\picwgoal11912\pichgoal1770\pngblip\bliptag-1378778455{\*\blipuid add182a9efe8f0439699494afa53f730} +89504e470d0a1a0a0000000d494844520000031a000000760802000000c0fc72b90000002c744558744372656174696f6e2054696d6500547565203132204665 +6220323031332031363a30303a3337202d30303030da84b30d0000000774494d4507de0a0a0a1a0e9bef7d30000000097048597300000ec300000ec301c76fa8 +640000000467414d410000b18f0bfc610500006d9f4944415478daecbd079c56c5bd3f3c73e6d4a7b77db6b1051656baa05401952282353d8aa82996146fdedc +fc4312f34972df7feecdc737e15e93dc10359a9b04c305d38cbd808a050415298222b0bbc0eeb27d9fde4e7f67ce7976d97d9e671b2c2ee8f9f200e799336766 +ce3ca77ce757e195dffd0db060c182050b162c58b070a6a0c67a00162c58b060c182050b17362c3a65c182050b162c58b07056b0e894050b162c58b060c1c259 +c1a253162c58b060c182050b67058b4e59b060c182050b162c9c152c3a65c182050b162c58b07056b0e894050b162c58b060c1c259c1a253162c58b060c18205 +0b67058b4e59b060c182050b162c9c152c3a65c182050b162c58b07056a0c77a00040c826e0eea3a48c8baa8e8633d1c0b162c58b060c1828511608ce954ad2d +3adbd97cac3995082b6959633097a239cd5d9ee04b52cac75672e611d46a5fb2848b6b22684f3bea12eea434d663b260c182050b162c9c29c68c4e31509be768 +be745c72eb9e54382ed9180da8aaaeaa4015a9ae646930020255f521fb58cfcf28c3ef54af98d834c5df4ec525a95b6d4928e94e6da120c4859277c5498a36d6 +e3b360c182050b162c8c1c6343a7184aabb5c76b1cf1cece782c056884000519a8334877f29a0dc91e6707ed852235b1b98b19eb291a354caf8acf9bd4312118 +b6c9b22aab61a04a19c5cda845bc18d7320945fc909ea16a96aed382050b162c58b8c03036748a05f244ed48b9537df13d59d550891bda3940511022cac6ea3e +875e5622d94bbb99a8d012aad63e16329b22a77ce9a4f0a471298ed2008454807672a8c6813a4f296ddd4aa92333cdd1aea6856360bc6af90758b060c182050b +1714c6804ed194eea14526d3e5a199780a051d5a894b1a5f05ec4e1d429da2745e8076176204a9428a94d933cd717eac67691430bfa6757c30c6321250305fd2 +a00d723ca059a8ab2096d26515f879655caab1118e4b034eb74454162c58b060c1c2858331a0530cd402745293b463ad8abbb4867778eca001a49a5c5c86a789 +7f1f52284aa481c6b875768ab7bb395e3ed6b374b670d24a8db7db21a7615403aa0c0c23293c036a440412c5f82776c96e21795ccd74b96c4951675500c77ac8 +162c58b060c18285e1620ce814041a4fc91e3b54e54c60c26c8df526ba394fbc2d1c0db1b4cee00f4f2101229ee579aacc1902e082a753c5284ac725454dabb2 +9a8c89e1989c16755a53690d2a7c45c2373b0d7d21918974d7f96ddd21e052c7dae3d282050b162c58b0307c8cc16b5bd3a9b48a045e76d899a8bb58856c449a +a44aefd79de84c243208614645d938e073a8ee009d6652633d45a300a71e693b2976a9a964520c87336ddd99a4a8d918e0f1fbed1327a86c290519c53d31938c +95d269a468c052f659b060c182050b170ec6804ec93ad5a508d1749af155020820847697b7b9b3acaea3a1ad2da5a800529a838741a71af04869cf98c7c61a05 +404d3c5897888523918494caa8a2246352c9b3c08fb852aa94872cafeb2cc77b054da339fde31b70cb82050b163e2180a50b367ec7bb69ddf35b87ac096aff7d +fd9cc6fb373fdcfa5177dda7fe9c8a7e65a12df76f7e049c413b23a87ff687173ca4702108dcb9eea6ca9736fc68df28cc70418c015551751855f818651fef20 +9227af438ea55142189741ce9412d2f06e089212d51a064288724f72526e05d2cc851b41406011d4c1f1b654249449899a28eb9a0a31637209a098b3f10e3f26 +5002834445acf482bdb24fd12d3a65c182050b163e4ad4df97c76360e9473a02bd75f76debc67a1ace026323f99101db484dbb84da8ff44c6db976b899534ac6 +171779bb5b1bbb129836519881300c408253b717736a1ad0488250bdd00815e6850c05fc3c9548b9a219d49d44aa8a2f1985a574174fd59673536a028acd6607 +5d1ce511c5f68a2261abe8502d3a65c182050b1f53f41505eddc7c5a5852b972cdf6e93e532c648aa9fad4cc161a72ac958b484996fd903a6bbd8da0665130db +e08ff7d5febb71d4bdeb578375cf6f1bec9002146ac061e7b59337c23d95bdfdde1f5edba78b6da7ab0d386c3c0f7da54af9e73e71d59a4796e3f9014d2f3f76 +db0b5d838db3e0e977d4ef3cc7bfecd8d02949a78f48554d9d4d365f7d245ced15e2a98cbbb6a6420e9f48d547d2124210f83c42e5d409eab809b168b43b14e6 +797b1a30da85e3f286b9140d4190d3c3dd5d94bfdae53e9a8a86e3298d85bad706675781a953c6858a2e064ab8ca5ed79aaca810dfde9d9e9e01cc85461a2d58 +b060c1c2b040544e6be7346ede70db3e831fac583071dfee7ab2c7b7086c5dbaee289cbdfa95efac3e61f280ef646b92c2b50b5e595fb76cddcaca971f5bfa42 +172959b7a061bd716cb0066cdeb0d4acb66241cdbedd3fbedf67f2926d44c335d82123187681767246e8bb93302aa3dfd2056b7b47d5a71a39e50186dd330f66 +7779e7be09fc6479f8be759b0d663677e50b03b2401d1c1df0f4d78073caa8c64c109256e98d2d57c2c8a1c6362dc089ba9a4e955d55553b7dbc1f025d51112f +fb2737f0b3d2a21c0804268caf92d2095e8e53ba7641f0290a021602a796e80e474bcacafc8140d1d4cb90238020b4b3f0dad9fa1716319e922ad5334993a550 +580d2bf64cacfd1d385ff918588a59b060c1828542d041d7c3ebb312a9fa030d4d41ef84ec9ed096ad47c9fffbded9d25173f96c004a7d951d7bfe64d4d4f73d +bf145390d2898b83f59b4cc1ccbefa9dc109cbb2cab8fad74d62d416eed3a081210f398d9a7bd7dfb3bdf7b36ec1c421dbc91f61bf067bbae853adfe853dc31b +765ecbada14640a6c550080edbb8aadfb0f1c49edb1f772c5fde8a061e6d9a75b9c75e2326bc7625159199e0f4605538c42b49dff48c3b0864b539928e67e472 +bfeba2da9a13271a512a046c1e85a2cfe7409708021ba56ae918e06d5555e5bc4da86b0d253382a3668eaeeeae645aca3835c15d7acabe00a45a2739da45cddf +dd11db2edd78c19a8759b060c18285e162e5edf7dc3bdddcec6520e11386820ff3ad131da0126f95782b4038ef50427aeecd6e6386311c0cf39042b65383b753 +788479e8572dd4381c4e93d73291396dae7965cd3ddbd7007068ebd28d47873bd71de186e1563d5b8cb12c44d3e13b471bed6cd1a5d55424a9441c13e3d52e91 +0f5190367f4a55d3236925d916a9f2d92a2bc775757647a231cee69629fafc344e6729600392944afa8b8adc2e573c2d1d6fea94144dd775e82ab1cfbeb6b3fd +c84b9d6d95811a9571b299b6ce8cdccc4e3ed8d62a6b96c994050b162c7c9c615a2011f5d3c62ed354a8678fb7ba1400621d15a836cc8988cca64003b9a46718 +d6e26770c8f0da01054798877e27e2ab0c82a15960a17327622a5375b8be6625383a5c019521f7aa3bb3331e21c6fe159e12a5b628e84e2aaaa6a5152d18088c +2b2906f0f4c030139164f56477329290bc3e5f6971119492b49442e0bc4be6c7428d91938a94091617bbdceed648aa25921265553784693aa4749a03259399e9 +372845d3d3d110ab67245b794b382d5d7066f6162c58b06061a428f55582acfae9aa957d6313f86e5e594bfe9f3df7e6a0a1056b0d3506e77c693629c3c4ebd1 +f5abaf6aaddbd151b37655a0b764e590dd9dc121c36f277f84858f3d5dad66d59c451d0daf0c190f22afe5bb56add97e7b6dcf049ec9b08d893d8b1f6e18187b +4b1dcc348e9dea76f2814a3f26174a38453905d66de7a3c9cce93a00888ad69910d3921c70d9c69532ed9d2120a720cd2b70ec4f019886e79a8ce40ccd20bfbf +98e184c6ae3861527922b4d2601123b0d19452c4cb0e4e6f12dd6da1ae33ead382050b162c9ccfe8ab2033fdd7766f3a748f59b873f3d69dd36b7a7686768239 +dbd7af341dd90cd18b69526da8b78c6389bfdbfaad95eb6fdabe1cf4562b6c4c4c68c44da66bdb23c33ca4ff50cd1e7fdc96ddd641577e3bf923dcd61aa836fb +bdffb4aa4eef57adfebe75bbebc0103e657a5ecb8fec0b80753719f3939d8a4126f9c7fb0a9d7e47fdce736c3b05affcee6fce6d0fc319040413cb8aaa8a784d +a7e2298528f852626347186fe5d44410d87926e8e27559ee0e87531959a5798d66c7d6940a8f0aa9125245bbc03b5d2e8da24349299116f307e51038bf9d839a +c6734cb19793a44c7da7d2114d8ce5e82d58b060c182050b6787f342b483c9506b2866e759b79d45485755c9c9d3a53e57536724a7a6aa837846c6f5bd36c6e3 +7653543c914a035dd3687e38840a3362e21ba82b5053812ae39e745dc3ad418a82880634a343a453b40ee1f0f9194d014aced0bae274d86d0e87a88248229d92 +9402bd431070d9a022e371d86cbca4b39d293994888df5f45bb060c182050b16ce0ae7059dc248a4c5b6508c4694c0320a862cbb6dace8717444722537bac1a8 +544df308acc3e9a2282a914c4bb20e596120db741a025d4a69621a689a8a899466d0294d21744a330e8210d32988588010857995f195e2ec3acd6983122b9602 +404eb35075bb9cac604f4a6a2c2de1d115ac5c1ef030409334d56eb7712c174f673a23c97c099c050b162c58b060e1c2c2f942a730ba6249bbc0715e9a611849 +265cc76be763293123c9f9955392aae99293438260a7208c1346954134a7f6d1c9e27228673431a96b0a905250ca6036a51006a50122942200e44f36e3308494 +01483668060869c8f290a22167d3a80213450395924506ea1eb79be16db18c12498903d123978de3a0964aa6785eb00b82a428a158329aca000b162c58b060c1 +c2058ef3884e6122128ea7ec3cebc2a48a6593a914263f7ea7d012920b4a8832b2aa288a93671c360742281a4f48b246b3824292fe01a48aba9406621249094d +51307dd20cbd1ef968aa863731a90226a50226a932fe870630a99250264de176598eb239012320c1a142747ae2748592d30c0d7d5e2fe26ca1a48899df40a22c +1a51760646c2619ee79d4e3b6e3514898712e9b19e720b162c58b060c1c22800555f76cd588fe134d2924c51d0ce730c42989a60b684b764551707509f69004a +2afe07da6d024753523a6d8a9d00263ae9a89e8c4055c20d52146e0da81ad400a5938f61c7044cf6641029480168502d6048ac88004bc3f44e51f15f45135340 +4ad13469043124090cd2145a49b2140cf8fd8c60ef8a67a2297110a5a08ba5b44c8a46c8eff3da6db60451f325e21969ace7db82050b162c58b0300a38bfe814 +46469221518df134a264459125196fa725451e408986490ce65b98fad8059e6750b4bb8b56453d1102aac23034cdd09845e14335dde44f843011f113de86b808 +122245612e45c16c082e534e9595586168aa4a6459985e651240ce2056c08c8d51523445054b8a01cdb647d3831323074bd9a182db707b3c2e974355f5b670bc +3b911aeb99b660c182050b162c8c0ece23659f094c8c62a94c3499f6386c4ebb5d96954c2653e6164e742715ad30a3d2743d2112419213cab4260159263c8ae3 +3459d2309922dcc8fc57a728a891e0e33ae6529846e13f982819fc4a37358410132fa099122ad2348424e932a64292a8a914a383745b33c72199e3c74d9c880b +da23c9742127be5eb0882a1560382ef30e97cfed4208b58523e144ea7c4e92331c043dcef125be9cc2fad6aeae6872ac8766612ce11138c4d069514a89f2d9b7 +36087c4e1b5e0375c5ceedb244e0181bc7e23555386999395ab8f060e4fd35435be5c7465f60e6091ebcb060b5a1fb25b9876faa7c299b9d7020908cc8cb7bde +23234a1d735ee2bca35318d164864614cf311c43bb9c8e5038929144bf9ded4c8ada00ce7b982d25a3e15057b3c7e9e00441879828690ca2641da88448210055 +4021d35eca38001f410133ae3ad98686fa4fd1897514247a3fbccb50fd194a40b2a9e8aaa68b8cc089a90c92c5ae10260eac3268a21b9a82a576d41d4b20962b +0ef86886892692d14446522e786fbec5d327fccb8d4b720afff3efaf3cfbd607633d340b63039e46dffed4e557ceae65193a9916b7bf7bf8c1e776a5cfc1a5be +7852f9edd72c1a5f16a0003cd911daf8dcce570f0f2f77d9484001fdeeabe7af5e38c361e35545d975a8e1be7fbc9a3ec71cd18285510461426bbc5beedff070 +abc1abd62d6858bfdb4cb7d243b3eacfb28bb301e152331aee5cb7b9ae877e3dba2a74db0b177050ebf3914e6184136944456a4a032cc3d86cf6783cce521a8f +a8b4aee6cb75302d5213917447230d81c02299e210dee0403a23a9443045e908732285f8f74133ad8e06544ca00cbf3e6235c56439962a03dde05b1422222b4d +35ab101005216663ba2ca6181a2992da79e2185b520d59db407c0a51d027d0c96412b71408f81986d134ad3d9a8ca5c5b19edd5180aca8c32cb4f009c1773f73 +c5f2b953cd6d4c41ae5f321b2f7e7ef5cc9ba3db4b89cbfe6f5fba8e6619f36b7589ffdfbe72c3899ffff9445774743b5abbf4922fac98676ee385d092d917e1 +1bffde475f38b79368c1c228a2c45b7168cfc36646977df53bd7d498d9eb8c04cca12d9bf72c5ee31d517b86a42a9b18c788f06e94acf536829a454122fdda66 +64245c048c10e44635dcd7daf6c74c924438dc8af09debcda8e8b55f5a0eb6dc9fa57724eafaa63d8b57fa00e8ca6d73b04e4f17829e7c883dbd7b1b376d263c +b2b7b0508ee7d1c5d8e7ec2b08fc208e24d28d1d61cc629c76013fce341df8058aa672074c41a8a7a352a895d8a0433aad02a86976014932e63c98431193764d +91744504aa0454056052852913cd01d60e7817641dc4768a62881d15e248392d00c442c4404caab251172034b710a3ab863fa12ca51231b1ed849629acdbc2a3 +c29c8e564555d56c0e97d36e43886a68eb0e5bde7c163e8e983eaea8974bf5e2fac5b3aa03aed1ede8ced50b7ab9542fbe7edda2d1eda5d46dbba5874bf562c1 +8c89f327968f6e47162c9c3b909cc1bdeab3d9358b3ac20dc6e6d68d1b96aedbfc48dbc85a2302a4b5731a37e36337dcf97268d18a0513cd1dc11af0122ec45c +2a70e73a23bbf3ba0dcb5e0226d7d9f65e7dc58c8966cdab66d6ec7c29cb9f8cf1f44bdea7b7eebead77b47ddb1cacd30dcb36d79b85b050effd0a37837bd7f5 +1c7e6e709e4aa73024458d26d39104ef7108455e4f7b574896a5623bea48ea7d1306eba9a81a0f332c8f2824a622d153ed0c02a8bc569224121e41d34c773de2 +f1973d408740018a4af47a144d6cd431cd8214ae4a18932643dd388668fd4c1375c392ca904e61429649466d02af683462585596b4b4822916c932d307987cf1 +342ce2f47852626df6f2920042a8b53b1a4f0fa8acb49083f141afdfe3c8298c2633c74e758ef5d02ce402df23dfccd3fc625088fae6f58bd7fdf1b9d1ea6866 +5570d99c29f9e5f3a64dc044e7adba53a3d5d1ddd75cc6e691368caf5fbf78cf2fff62c9602d5c5820129a35353b376fa81b56f5dce47da64e50075d0fafdf90 +fd7ea0a169b97742565968246cc6289db83898cdee0cf6bdb365454d657663e5b2d2ddf5adb5974faf7f7d639f563b4275bdc3eb2340dad6a7cda13b6d0b3705 +8dc2dcde57e60da97ee79a397824754326603e539cbf740a2325caada19843e0301df17a5ca1700493249f8d09a514c970f48399949e4e02c284744acbc8f10e +196f08364cbc485804d3a45cef892a6538f711ab73c3ec5cc7cc499501e2748a36e32590cc321449424319fc4ba720d490aeab66f40408c85314e90a9463aa4a +337c10215a94294194114ff58df3c921e8e3403295410c575a5c442194ca64ba62a981c23d58c84799c7fe1f77de985378f078ebb71ef8c7580fcd422eae9e55 +3bb9baace0ae3953272c9c346ed7b1e651e9e81bd72f1970d78d97bffbcb2da362a935b33278c525930beeaa2a2bfad4c269ffd8f5fea89c8e050b1f014c0d5d +e3e621acc2fba09f52cc3445efdd67280ab3d50a1cda2300eb05e643af1c043fb938f04849cda243f53feabb2fe89b68281f7570f447eb8ee674d41743743a70 +ef06fab2c3d0e85b59f6c1794da7301f8aa7c593ede1ea121fcfb176bb4dd3349ea130b709a76455127531a564d200531c352d46dbd3a2c2b1accd1354140dd3 +2d4c9bc807987f282332826eea377592b9cfb0c2522508a0219a22bb31198314390492c8e906efa228336ebaf10d22ce01d4a8244a743ac6202fc3306222c96a +34ed706886429070291e51baa253c8efc7c3e6f091cd5dd19428e917ba3bdf47887d273b9219c9ceb37d0b254539d3f62e18700c6dc6f130a1a8ea799e864860 +d057ae59384885bbae5ffcf62fffa29ef5c5bfeae2891755950eb4b7b2c47fc3bc698fef1e05a2f38deb170fb2f7f6ab17bcb4ff58346d058db37001c03039cf +5aa39f6d53860c8928ce36760d487d0c41518e0cacfe4003583bf1cee29a9def3d7fbab48f2dd7d9763a68ef1f81c9542fce53dba95ee0774928916aea08630a +e5b4db7881c4a30aba6c1e1b4b65124a2aae11fb715557655d931d761b2db84492da582581383555cfc2b025efb584323f1052e65f435b41ecd3b3f111b2ae7f +667874486457a61195f197e1d21a876b6962827032c4e81a90a25d4a9258c2b288f23b38bf93640fb4d91d6ea7031f73bc2d14498aaaa5e61b1120c8a7111f6f +3aba604af5c3dffee2a6efdffabf3f38fdf9cce28bc77a5c43e0a6cb671579073390aa2e0ddc386fcab0db2b0c7cdb7ff9dacb06af73dbd50b3c3c33bcf606c4 +ca8b275c3480a4cd84d32edcb662ee59f662c1c247801ecfbecd67cfa5084a7d9520ab38bb6a65d636bc1f5aeb7674d4ac5d1520dbb3e7de1cec530ee6dc3cbd +473d67400747fff4b2f7def5ab579a43356ca42acea0d3c17bef538867e3d19eeece11ce6be994095951bb62491bcf16b91d6e873d91483234f23b79b11b6608 +8b522082b46077095598fba452a224ca249f31098b60e8e87aa9103063221861a8486004834a66232218c2a76c547422d132f618e2aa9e6375222c8384423136 +3b2b3040a4280a7fa110af66142d19e3059b43106cc8606234ebf77928449dea8a76c552aa765e0b18ce43c09ec0f59f1c781db649e54539858efef2b9f30dc5 +2edb17975e3a64b5db562d78f9bdbab391e8dc72e5aca07708ab76b743f8f2d259bf7cfe9d33ee4560e9bbae5b3264b51b17cd7ceacd8327bb63673e71162c9c +7bd45c3ca102f86efece3d37670bce4a4ea3b7eede74e81e5371b673f3d69dd36b722b80ae47d66fad5c7fd3f6e5866f5dc7e9f2570e8616837772baae7b61f3 +b2f6d5aff46ae20e6d5dba9e98a2c391745ab8f7437bb67478730b410833cb732aa682577ef737e7b2fd511a2504768e1d5fe277085c2611c3ec4454d47422d1 +7eaa391e09332ccd0b02cbf3ba2cc66389743a830916cb703d4c88d2214511d99411ccd308759eb59532147a845e11eb7333a59fa1d9ebcdbda7f7c210771111 +934eccde599ea26942bffc332929a5c69b69247b8b026ebf9f8114cd71bccde6b4db42f1d489f6b0f4710c1f70fd82e9dff9ec953985f73db66debbb4746a57d +3bcf6ebef736978def5bf8eeb1a6ef3efce4589ffab9c292e9137e7a7b6e8a82df3dfbe663afee1deba10d887fbb79c595039819e5e0c937f6ffeaa91d67d64b +89dbfea7efade5d8a1254faaaadef19f9b4e74c5cfaca3af2e9bbd76f5b09c04dffea0e1fba367626fc1c2c718a67b1dd8344a42b2e1f47846a147cf1e178074 +0a185a9e44466a0dc52a835e9e41b2a4cabacaf0bc2f18c4fc46cc90e8039a2c2b928c1062582693c9001d320c4b4ccb0d073d6219854916a14b1a3478163423 +7c66357e48d754a0a9a69c0a64157ea6cacf700a34445724c59f29f7128a74871fa4423ac5013d0d11c30b344b53baa2caa423d911105219a9a53bfab1e452c3 +c79471459525fe21abe1b96aee8a1e6feb1ebc9a28297e3b7ff1c4710cd3efba1545f9647be8784738a73e26df13cb02c55ee7206de29f75c7fb0da99e344141 +275f5b516cb709838f249e489f680fb584b3afede95525e5459e9c3a98fce101cf9f5c85503f953aeeaba93d74a233627e2d723b2e9934ce68a48061d0b4aa92 +abe79ce62ba2acbc71b0c11476e20b73d2b8e28a220f8d0653d92baad61e8a1d6b6a177bd4cd974cc48375e6d4d97ee0185e534c290f94057dbd0dee7cff7862 +e03069332b8205b9949649537cee045e77d98c27df3c78fc8ca243ddbd7a413e97d20deb468850df427cfbdf7ded65f76e7cf10c7a2971095f583627bf5c1425 +8ecb9511ce9b3a61c1a471bb47c9c4de82858f2bb2f1420f6d5d7a8eb9541ff740f01108a20ae2c2a05326ba62499e65822e9ea720cda24846b6395df81511ea +e8506591d2555951298a6219469664495228c4508836831d00233aa791b00f98422ba2c9a3b281cf7b94802a7947e9a64dba21a722e9fcf03ed5f8a6e1d610c3 +90cab4a0334eddce02c6a9a5e3f8edebf6f0acc0e9bace409d67285151db23f144e6931e43f9cb57cd993bb5669895dffae0f8cffef2723c3560360faf43f8af +bb6eac2a2b2ab04fd777ecfbf017ff782dde93f367e5cc0977dd70b9dfed0043e1ff79f0f1f71a5af0c617174ef9d2358b799e1bce68317bffeb2b7b7effd21e +60884f7ef0c5153915b6bd79a0aa3c585bd07a5ad35ede7be4e77fdf2eabda4515c1fc637bb178fa04fc39dda9a2def8e1efd3a2e67708fff7f66ba6550f689a +9d83a6968e1f6f7af164276133d32a825fb9265706f3e18996af2c9fb36cfef4be855fbd7fcb2074eaeb854cb6bbc2f19ffdf9d99fddf9699bd06f1a31d1f9da +f58bce40a233ada2e8ca4b0b985efdf9c5b79219f1eb9fbe32a77cc1f449736b0ebc533fc2a03af864af9ecb72b93fbdaa283f7ce49fdffedcf28a9240ceaeaf +194113948fb7419f050b670712fb6ab81e8567d791e11e38b6277bbe9ba2e7e05477a43b124f2baa2e675c0c4561fac2091ebf9f665863b14aec9bf0229be178 +8a662555d77a4e9044a0223e529aaa539a0e3552d30898ae13959f61b74e78954692f9211d527a6f1a6423c31f59d8438a225e5798b021284641b21bcf9e8a70 +ffaccb6d432c4d0ca6108de9146777744612ed914f7af63a4c2edd4efbf0ebcf9f3afe079fbd62900a53aa4a0a732940e4888b2f9972f7aa05e6b74abfebde5b +560d874b01123a98886a2a02eeaf7d66f930b91406c3d0b75cbd60f23862f1f8e68727e3c9dc00ad57cd9f5e3b90271a452d9f33e55bd711dbea11852293d5ac +87dc5756ce1b3e9722675716fce60d979bdb2f1fa8cf31f3971475cdf2b9395c0a6310ff8915336b268f2f60b2bde5953dfb9bba1e7fbd808272ded409f36a06 +b3f2ce075edd7ce3ba02a42d964cff65c781bfed3ad41929a0d7fbda758bc95d3d124c29f3ae983733bffce9370fee3dd9f9e7970ad863559506ae3f6b137b0b +162c7c6c7081d129fc2e693c5e1f4b4b6959a134c5c122444186175c5eaf66901e5325072896e66c98362952465715c3e8c90ce9a9e986bf9f4ae81424df88dd +39d431c7c2140ad224b094194e816807298d5863680a09832e135917c5503407181b51f9a9b22ec63920fa3c0cc35000f10871baa2411a2514d012b2cc54819d +a3ab8b7da974baa9adb3dfa7b5a3b1b5a3b5a33b3f72c4c21993ca3c8371a08e70bcaea50b7f4eb687f2f7ae9837d52310bdccca4b2703aac0b57da23d641e6e +7edac371ccb06bcb0925ba74e2b8fcfa6a26133a7e32547f1c7fa4680145d56553abf1bf2949e9cccfc58b503c95313b6a68ed56d45cb5efea85333c362e144f +f60e26bffd503cd577c0871bdb311382105e3ca932bf72a2bd2354d780871a692c10d072c6f8528f2131121555eb3ff30c42d7cc9f36fc5fd646a3bb0bb19c93 +ad5d4f19491bb7bc76a0bb10d1b9fbfa2568242e062b674d9a3aa14020f23fbfb81bcf393e89ff797667fede09e34a6e5c3002a2831f0bdfbca180057a3c91da +68481f5fda5f77f4444b7e85db562d709ddfbe02162c58f8c8702129fb80a1a5931291530d6265cd244a4334905d2c15d12885e56d4eb714ea96894e8e351cfa +344cb5a47402f31bc4d08032c3f94043bd078de09c867e8f08a2307f52b3a13a49a96208a4882e90f02f150310db7386d7295aa36d8066695ac087300806d96e +5a13358838dea78b490444cd5686dff496060090ac85d4cf363d77e0447b345d58e979cb9517df716dbfd7189ef589e5452d9144c1fa7862bff1df7f4df5a8f3 +7e7aebaa2533fbe50ce038b6c8e78e9cea9c9a27b9c13fefffb779ebd6fdc7fa16e24ba3c4e734095cd0e7ceeff1c1cdcf3dfbde0973bbc66fffd5badb69be9f +757c498f6156bef3a6a4a8dffeeddf1b3ab236529f5938fd5f3e7365bff941685e6d251ed29dbf7c0c7f5d3ebbf6476b72dd789f78f360be68c469e3bd8e5ce3 +a4b6a696affffaaf19256b56f59d1b2e5bb1ac5f38289e633d2e7b242d222a97d18cd489f2a62b66050a59a43df0e4eba6f22b252b0f3fb3f3deb5ab722a4c28 +2fba71fe94c7770f2b4f36266d5fbda640708413ad5d4ff4c4977a717fdd6717b54cca0b6df0e55597bd7ca03e9e1956a0b2e533c64fab29404f37beb02b62e8 +3a7508373cfdc67fffcb17732a781cb6afac9833ea7909470bc401c78c413c5490117cab6a3df23cebd965c1c299e102a35394225298efc8527b7b6751c0cf43 +95a1809ba5bb5584781bef90a3f13491362912fecbe0470442e94c86d3598631121b1b165466fc739d480b34e32b8066b9a6ea9a62444aa04c577d22cad234c8 +0880759260e90841ccbf54558312c3300127de8e6b80e2059f9e4eb0aca63145279ac3f06c63df7c4c10cfc8af1f26b6ba3e3b9f6fcccb20aadc5f80c1f83d03 +5a8eb785e3bd5c0ae3542111a0cf69c3ff0a793a3b4c6e767e7832a75051d5e6ce48b361155e9052b4b4756798ecc88f24d584aae7189cf74a9c60def1b2a2b6 +f511599decb13def8b401f75242c348282a382bdae127d10ebe88c401af45c7b87e3ca80065903a0b1adebafafef6fee2652253b472f9c5c4d17ea3de8b21534 +d97efbfd86b7eb4f8b70b61ea8fbf4e296fc68e9b75dbd60dbbe63717168b3c2cf0f10d1eaa1a7de50fa9cff6f9f78f557df5e9353c7e5b0dfb6ec92df3ef7f6 +90bdf03455303842e3a9f6a7defea0d76bfb6063e7f6770f2fcdb3e2ba6ef1c54fee7effcc4ceccf351c3cf78b3baeb71b22c91ffccfd3a7061ee4a717cdb8f1 +b21978e395fdc7fef8e25b633d700b162e485c60742ada768a53658a63421d5d784d15f0d815a072b4eee550b7c601973b939192a9349052886635006986d635 +56965508299a360813d4084f225a3e92a70f189228951846d180524dd3744d37d3d3188140110d694e833459d26b80986301883429e0661052894d3c2da8c988 +5d4000d94e75a65219cdc3217550bb934f0eae9c5e75fbcaf9657e0fc3e4d2a9812422f681b527a8bffe0e1552e799a4245f8d88cb058e4966060c7d547051ae +8999de172ab137d2877554b6478332f67ea569945fa7aff0842acc9c862b3882fdc563ba3a3297524c377ffc87671ac3a7e5826f1e3e4917fa91ee5c55c8cf4e +d57e97a7777be8e91dbffa972fe414ba1db62fadb8f437cfee1e7c3c41a7ede66505225aedf9e0784e6ebe03a742dbf71c5a3a27d7f0eb534b2e796af7fb4da1 +214c18bfb0787ab1df935ffec0b33b65bddfe93ff2fcee453326e6e4f22326f6d75df6fd3f3d0fce3fe0abbdc8edf0b988fd22c70cf6a8a7111a172093e073d8 +cef5a8ae9d3ff5f34b66e18dbfef38f0cc6844b1b7f01163e2aa358f2cf765bf1cda7a3acbf259e30c021c8c554c848238efe8143464d4f82d848046010d6a2a +2051111459262650623cc6d91945c18487eaee08b3bce0b2b14a3ac9f3824f60423a70793d99445c26565024f51e664614c360b624e37721a5210a816c223fdc +183142e9c9e44752f899fa3e937019af27bc80a629c6aee1595295ac2d0e6e5595049e653988108320af6444068a1a14ba4289eece84910027e3753178654f42 +aa33f84985891ad2295a35f81a6e5fd174ed132052aff03bffedf6eb477ad459a6e219c54c3e3ad1192dbc319136a91fa2690777dedd2fbd28ab2cffd9ca8bb3 +222e4d2b1b5f39a2c31b3bc27db994897cb7b5a9e3022be64ecd3ffca937df6be8cc157e1c68ec7875ef87f9c1146e583cfba95def9f0c0d161deaaed50bf225 +9a787df3c033058ca51e7ee1ed45336b59b65f7d9aa6bf7eed653ffcf3b6417a297609372d9f975ffed6fb756f1dcb35966a8d26fff1eabb37af5c90533e6f5a +cddc9ab277ea5b0a76b16cd6a4224306d9dc15d9f9fef109a5feb9b5e4a7c133fbd4ae83f8a9f6a94533789651893d9b6ed6995816b874528559e7c9370fe2f2 +4f2d9a89f9902413faddd0daf5ced1a6a995c5330c5700fc58fce7cef70496b97ec1f4b73e3c71bcad9f4d616f9ed08ca4f89cb6eb164c43304bf1d3928c39f4 +bb471b4f76847b1f475ecc62975e829f59b8afb670ecb5f7488ab4d935e3268d2b4214e4194225f192128f0aaf2e96ce9a64e730bdc40b554a9489a34f7d4be7 +9e63cde629e3364f75452e1a572cabc4e7da1cf6eab953af9d37adaa98bc8caf9d37b5c8e5488ad25f5fdb874f79564d39ee179f087e3ee3d1e206f1e9b486e2 +d7cf9f2a702ca6861f9c6cbd6452055e446ddb7b2414ef67aa585b1e9839811cceb3f8b94bb2b56e3f70ac2d14bb62e6447cd6f8198cd7bee630c289f4cbfb8e +e2d99b5a558207dc1a8ad59607f154e049ae6be92c0f783c0e4194143cf21def3780612f663e39205c6a46c39deb36d765034addf4e8aad06d668ee1b386deba +fbb675637d866781b17f3d5010e25b8087ba2a656449cce68721e6e4248213499a0721c3d02e9793e7b8ae961648f308df37982169a8b5a5432f0d78ecf64432 +6173381d0c546c767f5959fba9168d702ecd081ba52208883939c0bc88314453249294d10b85491245214cad74ccdf20263d2cb1c8c27b558d6204bc8fd8c4e0 +7688cdbe460408bac632a8a8c841330c848226cb408a316e67775c6d698ba8902176560c5f5d5da1a8c4805d9248d006bca1eb123e11fc48a20cb66868141144 +b40ae9b442ac83c7fa77187d2ce9e3e17f21023f4a2f5a38e7ecdbf968602f0e5e7655f08c0fcf48c30aea714f8f7b605f2492e98d2f158e45fef0f3bb164eaf +c99166d134fafaf58b7fb0714089ce8c8aa2e50549db8e03c70be94cdba2a9bf6cdf73ebd5b986560b675e74e984f7de6d681fa8a33b56cd17fa1bc3012316e8 +034fbd51b0fea6d7f6af9c372d5f1ffdb5eb16effdefbf15cc4b58e6737d753531623bd0d082a9d2e797cc5a3537ab313c74a2b5a53bfa8deb16ef38547fb961 +0578e838a9f399c53357f79cfec1e32dede1d8d7af5bb4ef58d36c8363bdf9c171cc4b6e5936e7b269e3cd3a6f1d3e492378f7b597ed3e7c22b7fb1e3e8019c3 +8cead2ebe74f8f198148f07371bc11102e2dca9ff9e91f4ca20608732aaf29f307dd4ed3eeea177f7df97063dbfd5ffb94b9b72b9ac44cc52970078fb72e9c5c +f5f92b66e3427c6c249909f67890acb9efd199e3cb4cd5a1b92be0b29badfdbf8f3e37aba6ac2a984dbb5659e4f539ed9dd1c4b6773ffccfbb6e74db89396077 +2c890993c7300d6c689dfad5fb1f5b71c94526714c8b926030ecc38ded7de95489d7b9e19ecf615287b7238934e6883c83ba6289e9d525eb3e4f82616b9ade15 +4bf68e109f3b26675fbb8ec40a49a4322949e9ddd51e8ebb6cbcc091cbf5deff797a779e79c0271c10d47e6939d872ff6e332f1e8939be69cfe295981c1b09f5 +d67a1b41cda22089bdbecdc8bb6ce684d9d9937db957acd5f4f2632603cb29e915356d3bdd5abf164e0797eaa8df09bc8d9bf6541abddcbb7e35e8d76936fe3b +1ca09d738431a0533405391a12e1139139498aa2eaa22e92209b10afc0189b8057993ccfb11c87890e5ef228aa2a291a5e84256499d8862b0ac2379e8e890e52 +34aab33b8e398acbee4cc4a21cc7db21d4ed4e7f71b0aba5433373f551b81ddc292bcba22aa90821834e11cb4b12c813b32ed6ae213b990a33e627914b2914c3 +5288c1048bcac64bd08c58ea90a16169111e25beab1daa2cc34cd8e975b586a5a6b6b84e21fc4791c53444ed719141148d9915be3911c46b23d3fe57d3f00a49 +c1240b435548aa4104641bb1bac53d518a0e5540c93a25a923729f3f4f61ae4173f0d79776bdb8f798994cf18a8b277d657841a8cf5b984fde0b051435e06a1b +0ec31c7dc5cc9a29858223fcf1855de154e1f054ad91e4df5ed9b376556e8ee4f9d36be6d494efa93f55f0a8bbaf2f1c1ce18fdb064c20b3e5b5fd57cf9912f4 +e76648fde68d97dff1abbf15bc9ba696fb56cc9d9e5ffed48ebd8d03a808f1abf7f7cfbef9fd5baece299f302e78e3bcc98fbf7538ff90e7f77c78eb55f3581a +5504dcf8dff280bb2b9a306de6a65404ed1cd3168efdfa89d7e74fa9c64fbf121fa95319f4856249534937adaac4c1b34d1de1fffac7ab1bbf770b7e4a54043c +b84e89cf892985692938b5b2183f309a3b23270ab9bb9ab073ecdebae6ffd8fc227e12e147115e907eeddacbf01d8a2fe0ea62afd843a75e3b588f29d4bc8b2a +7f7ec70d46efa75d3a9e78f3e0affff91ade6068c433f4e79664b349def3db7f1c3bd5f9af9fb9f2868564328b3c8e8e1e579227771d7ae0e91d575d52fbc39b +898fc59cdaaafb1e7be9cb2be7df7615497af88f1d07fe60d86915b91d3683273577456efdf926bcf1f84fbee275dafc2e324b8d1d11934e459399cddbf7e207 +6928d14f3455ea779b5c6a7f7df3bf3ef4043035fb2cfdf51ee7d3879eddf9b7d7f7e3e1fdabe10b8279642feffcdb8e038f6e7be737dffcecf4ea52fca2f9f2 +7f6e2ef3bb7eff1d92946562799145a77231bb665147c39ffa04e424f2a48d3d5f823560f386a5fbb209f81a376fb86d9f4198562c98b86f777de9829f2c0fdf +b76eb3417ae6ae7c81b09fdc92be7df5b6367bf52b660b467475920e19132f121d143482a33fbedf97656098697da74fa7eb1634acdf5d5fa89dba619fee48f1 +11d129fca866698a47ba46f8930255123953873a7e82789c0e9b4d403409e984390b5e82e005532aa369990cbe2b34432f46fec55024bc704c25e32e01218d01 +92ae309e645a6e3b754a0d06bc4e672a1a663981a5389bc31528d1bb5a9a350d024d21422948e45024b8a7a2e0478911648a4437001403689ec2ff12a328926f +06d33bfcd241a6bb9f194982a4589670ff90a28a4bdc0c4bebd0a34919204602c5fee6e6f693a7c2a24673825d03101f8e182a91914db91a117e5124f23a950d +1faad310e08791dd656389318da975543369025d96790ca8891aa6555081b4a8c10bd7064b100ac4167f766f5d6367d684bc257cbe87e6da75f8045eef0e5201 +2fd3c77a8c59e055fe9ea34d83d7890d1c227548f034fa6aa124c427dbb2c11106c296d70fac9a3f3ddf13f0ebd72fbeeb577fc997ca2e9f3161daf802c1111e +7d71776c60d3b7b4acfdfeb99d3fbcf5ba9cf2f165c5d7cda97dea9d5cf30e7cdf7dfdfa0216e8b144f28fdbde1de4745ed87fecc6453327e7b98edeba6ae1d6 +03f589bc1176c7926da1286648981e2d985c65e7b9c75edd7bcf8d44c8875942b1d7d5d811c6c4a8b53b5a5de2f7bb6c0ba754db3866cbab7bcdd80d984e053d +cec6cef0a9ee682896c264a5c4e75a30a50a3f1bfff2ea5e3392eacc09986dc023cd1d830c3b254a575d72d1b73e95152ee2656a7fd3c32c9936b338647a1c3e +f073b7f7f9d3d113f942565443b3972dbfe9ca4bf0399adac96c5b3dacddbcde24256bd52719f67cbdbcbdd7c1d48864831fe8c865e3bf71fd624c98bc064d34 +9e9086ff8f81df3cf9c69b1f1ccf3fb5de1024f11e4e8f976aa93c5f07b96718f8f1dbbbae481bd564e3acf1b9e391283de775a13e76cf353a42261de91385dc +1047191b6692631d743dbc7e8359bdfe4043d372ef04bcd11a6a04732e9f0db6eecb6af4607e49bf9e7a5226b7859b82460ba5131707b3e990c1be77b6ace8ef +075deaabecd8f353e390fa17f6ec5c3e6759a941a7f2dab980e9144d01066894ae211d22c3a29be7199bcdceb22c3434eef8228f2b8008a00c1b7023558c5ad8 +ba4892f1431013a27038e274ba580aca148beff67834a42a122829b6b15c3a95408cc2b06edea1bafdbe487708b315481e1d144448673959d125806812dc9ca8 +f68859b9a203446cd5754cbc342d9bc54f550094b271d3554ca71496a18a8a5c0c4341362025929492f4791daddd99138d1da98c82788722cbc0d051d246ba40 +351b2931f77d811f1629896225734c249b20430cda79372f40f2eca014498a6b093c0a166a2c040ad4159d9275a85e70f77721dd074d9fbee4188446d0daf0ec +a2cc6774bea845d787385a2ff4fcfced536f9cfaa89cb686231fea196a011c6e6cffc55f5f3e77c3fbc29299258562493cf4f44e65d0894dc90a263a3fb8a540 +d084ebe64e7ef29d0ffb167288baab10696b6eeb7e7228b3e56d078e7f7a71f394f1b9f1c3bebc6ae12befd527c47e77e28a8b274caf29909f7ee38bbbe2e210 +e1151e7cea8d5f7f2bd7c4dee3b0ddbeecd2df3eb72bbffefb27db309dc21b6b97cf116579fb816377ac5ec8b3cce48ae22995258fef3880777dd0d886e914be +066e5e7a09a602661dbcda9c5a558a9f187f7b7d3fae73b8a91dd32986466b97cde98ea55e7dafee6bd72dc2875c32a9426099df3f4fbac687983c29dd5f7b8b +abcdee89acf6f3bfbcbcf3fd867ffdec954b2f9e04726ed3fe3749df6f0379454cae086222124da631a1c78fcf5832d3eb81618ee4745c0ea339aa87c69dce8c +dac360f09c605a861f89ef35b4e0bd61430ad5db6faf08adef6966881dc5e993042384d908cce6ca80a63d46c1a9b09045d037d16024661472533d57b0e2cadb +efb9372bfc25ac06d7fff1e69a57d6dcb37d4dd6803dbf64e8de3bc20d03ed2af15680de3c63a1c68ea11b1b759c2b3a85af4f0612136e0474cca8f055cb30b4 +c0f388a6310192f15d27e1ab55c5cc4932d63aea30acb3f14a09df43987fc593194d870ccd71361a1f8a3fc958b40de8c19232ccd1c45402c81a6d0ff24ed926 +2991500813144472ed91e4301061060664436e648444d765fcdc21c96410841afe8f0c85985269e6dd696445d63996f6fbed76879de24b32f11894121e9f1056 +1c274e352752122650842b1a02374cd5700386a5556190e63535d363224ae814b169a738061901d73581e11c2e4c3b81aac8a2284a32510ae20e640d532ba48c +2cdaf358a2207fd1fa38a051fac82cc67222402a850ccecce575beae143f255579b0d764412fb622b7e39cd2a9be53244a058687170f05864a15a05ea6de6770 +6473298d1cc52edb4dcbe6e697bffbe1f1dd4389c480111dead34bda2eaa2cc929fff2eacb5e3d581fed938b69cd15b38205fdec9edea10c3972081f7c666781 +e8502ee7edcb2fed1b348143f0ce6b0b68991bdb3a9fd87d784803e4f79a3a5edf7fe4f25917e5947f6ac9aca7771f6acc33b13fd0d062da424d1a177c65ffd1 +509c247cc45ccacc2679a081683c0f1e6fbb661e89a47a5145f14b7b8f60b674bc0dd7099a663d078fb798ff5e3ea3c66c0793b08e48a2b92b5251e42df5b97a +eb7cff8bcb67d710daf49ddf3d419260169a345c1e4f8b743f5ad34b68e8de7f01f1f883bd64a8f702c3cf29fc1ceecd44b9fe6fafecefa3b425b61c3d5e849a +de9b5a22fb0301220aca5ed2bdd59c36cee458ddd1e457efdfd2db9441cb4e9f40df6bfe9e1b972c9e464c33ffcfc34ff4d22c7b8fe61d3f5431bfecfd194dce +c4d0a76df07b9f0f7a9f11ead98cf7d9a32e5cb5c039c4befa9d6b6a8614f098822ba295dbd8d5976f9909678cbd352bc1d1ad7925db861cc020e2a5b6709f27 +91af32081a3ff2e93927748a980d91b04f3a0d75cc15388e63595683142604f8c929295a32238ab23a62ef365d23a407d1baaac492491aca3493c63de1458522 +cb915044d6a892221f7e2faae9a8a621c40704978209492c124d4b2a8538c3dc1c1203295d23925d951845a9985511db7792924f23a22823563a499c4c5cf3f0 +1ffc6cf1fb7897c709d88098486be998d7cd2465783ccac4d3ba86f7d31cc41f868506972267366c97107c638b9a22ca2061e861f05bdfceb39ce12c832886e5 +11cbaa2403a12851989bea1a3e7f05d2f94123cf43c412057479f8c5b6fd60836618a92dbd78e2881a9c5a19bc71eee4ee34d1a73010ce9f5c9553015f501d61 +a2496c0dc5a656f57b79d308dd73c3e2373e38de57c8872fce39356578d1ffcc3b1fca85c8d6bf5c7bd9e657f78a851eac90e4002e7abfb1fdd5f74f8033f528 +64fb444f28982f65f1d4eae6ae686fe37e3b6fe7d827771f52d5dc0b606a65c91d2b2efdb02d5cb023274b4f2b2ffacd73bb44b5f09533f8f8ef5cbd40c80b60 +812fc2079eda31cc337de089d7f3253a6ea7edd6e573363c9b95e8049db62f2e2f40dade79bf61d730481b30a243bdf4f6c115f366e4947ffaf24b9fdafd4153 +286bd3f3c525338bfd0596d40f3ef5ba36bc3bf777cfee9a3f7542be89fd376e58fc83bca009c74e75f66e1f6e2476f1752d5d984e01435175d248dd7da4f9b4 +bdbca9b63b76aa03d329739e4f18753e6c3a5de7683369b3bea50bd329bc91488b2d068d1b67f8a601c3c209d388224f36cb135ead35768400201464c33d9feb +8c268a7b0ceaed24dd68f6c75d366bd2c535e5bdbb3e38d9fe615336fbe167975cbc64460dbe4e1c02fbdd879f3cd5190653aa71f92fbff6e9b670567d8f2f4e +cc877ad58841c344ccd193bdf1a2f2224c89cc19c0f8c215b3af983911af547ff1d797c3f164b1d755ea773df57fef488ae4068700b68562df7ee8f1713dc9c5 +fdaed319ab3083344fd365e31b5abbf092139fef25932a1effc957f082cac631bf7ee2f50f4eb65d67c4fabffbdacb3e75d98c60cf499d6c0fdb7a8897d3c6e3 +21790d2b781bc7621ed94b25cbfc05629e7dc2a183a37f7a79ce2386ddf75690b591aa30844ffd50eaab0459addc552bb315883d53f11e2282227b41c19221d0 +5ab7a3e3a6b5ab025b71cbb3e7de1c045bfaed0d3506577e69f6ee1fed0335abe6646dbc4690886b1430fa74cac6d22ca6261a5166711c8928a05394a4c35446 +c14b22bcda3e73192a8498304124404aa5344556f44c324e421128485330e510536207a646e34a8b744517232d8cdf8e1995d3a749b21a8bcb928c4814042851 +867b1dd12daa0a790353a67f1fe1589aaa9210c888312ce389088b6328af0bb93d769d0928194d89777add9c86d8864e2aa2db541d519c8312ec90e100450454 +b845a2c33a53075bccc462c40240c48b427c63e3db9ea319c4522ca67562064832051486a144cc4dd5f39d51e1f7417ee195b327e3cfe033008c756d3edbe679 +eedb5f182c38257ec4b71ab13df71f6b5a3ebb3667eff23953f027ffa80327c90ba3becf3baf17132a8a7f74ebea417a7cef4fcf026335cce68595d2fb0bc90a +f215d39bc9c471e2ae94c1cff7be15a65697fdb47f24cc97defd3029291dddd19c9a780cb75cbd100c8ca68e90f434663f85adf1f0ca7e20d9d5f47181e5730a +f8d93db3f3407e70840127aaa9e3d57d47ae9c5d40a2f3cceef74f74935fedae55f3f3235a69aaf6d07323083bfefb17df5a72f1453941161042775fbbf04746 +d0848083bbb92069fba06ef7b1e15ac2b544127fdbfeeedaab738326cc2f1434e1785be8d7ff7c8d374e6dc72162fdf3e49b074da927fec94df39dc68ec86f9e +789d3504366f1c240a8da777bfdf624c4b389e4a19265998423df0f40e93acbc7394acbdfffec6812306afea88c44d13a2cdafbc5b6208ab30176119f4fbe777 +9b924c7cd4a697df6ded8e3b316b60902cabc7dbbaab0de73e4cc5ea5a3a7ff7ec9bc650bb27960570654c4adac3b157dfabc7d7edb71f7c7c4a650966671c4d +9e8ac4ecbd2bba71db3b4d5d51dc18bef2999e8b1f1f1549a4f7d535999e77ed06cdc2676a369eca88b8e5b78f34fef08fcf54057d3411c9d3f81e39d0d0f2c3 +3f3c73696d252ee1f1d3ad47dd86c922ee6edbde233b0e9109e9ec932ce1f19def999682f87ec70fcc7b36fc1db340b2746789e816b789491bee1d0fd5e7b4e3 +e1e14162ca8587178a275fde776c4a65d01c52634718d7c7add9798ea4b6472823c9e6ae8ec860813c3eb1a87b61f3b2f6d5afacbfe75ef3fba1ad4bd713255d +df379edeba7bd3a17bee35eaecdcbc75e7742252ad7f61eb9675376d5f4f0c9e766ede40d8587ec9a05d1347c2f55b2bd7dfb47d39ee77cf960e634564702cd3 +b3cf304b375487c49c6b77dd471ee8025ef9dddf8c6e8bd5454e299d521445e039c472b20663690913a9b3f755d3c5745b63872e4b106834263ff8ee800e9576 +402501c43051fa698066d98aaa7101972d15eec68483f6d52aba26265ac2ddd1640a3f9989771d3e12523445933bd99078b10061f60448b80412bf8031b4fd14 +20011aa0d781bc5e3b108a1549d7224d0e81169cb6135d72873e5ea104ad752fe67834ef8408e1d688b48b73d83df60a674c1d611cc581809f05f85527d09800 +cae9645c14255e1018bba72d3a9676dcd72f98fe9dcf5e995378df63dbb6be7ba4f7abd7c6fecfbf7ec1ebf10cd44877288409b7c3de4f4bf5d8ab7bf1e3accc +e7fadf7b6fcba97fb2a5735cb10f0d6c71f5933f3ef3c60727f0869d41bff9c667c68f2b1eceb97ceb817f1c3cdeeae49847ffcfcd1eefc896a477dcbfa5beb5 +dbc6b34ffedb97693a970adcf68bff6deacc8a8b3ebfe4e26fe42586c3ef891f6f7caef7eb2d57cebee3da215c1d1fddfad61fb7bdf3d985d3eef9ccd2110db5 +b7af2915c107f20445f886fdec4fff184b1770d0dbf0b54f4dabc935488a27d3b7fefccfd1f480b6e1f928f7d8fff8bd5b99bc7892bb0ed6fdf0d1172697051e +f8f64df94acc6776ecffaf27872b0333f195e5b36f5d55601abffbc0dfde3dde7eefe72e5f393f37db31be5beff8cf4d27ba46f006b531f4c6efad0de4a5983c +71aae3abbffeaba529b260e1dce1bc8aded98b51964ee1d546b1c7d9465cf014c470d18c1a4d66945192a310359fbd5c4b45a092923523b39e9a46ac17da8b21 +c9c267b8ff41d8d21ae36d4ec1e953239d62b889f2d632f6520fde833209cca8149518a1432239200d024821ce50ef19ba3d335b1f51d661ba053d4ee0f308c0 +562269362574d861a3799e3e15a33aa29ae273433545b2ff015ad131d781c44990b5414f31f03af5ccc1d19a52bca88a286a9aa19d1ca2180e643278f11674db +c6964e0d07e194f49d871ebfe39a25532794e70465c6b3d6dcd1bde1f1573ebd78d6cc9aac1b976ef8514e0eba18086a4b7c2dddd11c61c9affff9fa2555c1e5 +0b669ad7138d5f8246ca2040dc4d227f7be3c0ae0fb3eaf2a4acae7bf8c99b57ccbbb4b682a107bbc8f135d365ac7ae3a2fcbddf3ff9c5e5f36a2b82141c566a +705156baa20908f46965feb64832c756175f4773c797347786f0087944cdaa2ecd37c32af1b9bc4e5bb82788ceffbeba0f2f8e975f32d9631706ba678eb41011 +fa3f771dc29d2dbb748acb2e80e1e17d430887ef143c87f9738b477b7175c91b87733dc3899f5d4d81e4d09bb6bd3d222e85712a92fcfbf6776f5e393fa77ce1 +8c8973aa4b3e7bc5ec7c2e954ca5ff3070708481b0e5f503ab892f61aee1fced2be78bcfbc9ecfa5309edeb97f445c0a1826f67f786ee7f7d6e4064da82e0f5e +37e7a2a7de3932a2d62c58b03038faf8126284b6dcbff9bce25260d4a55315459ea995c5ad1d5dd1783c22ea09511d4d2b1f1d9c6a27e1a628290ae40454453d +1d52b9a02ef861ba4dd74c2f5c683a674c9b5e4da562d1704c473c7055213dae24dbc271259aa135c3738f04e724b6df8c612da119e9fb28834b91013334f2bb +80dfcd037b6946e6e5ce2336067803beae0cd5702a2142bbeaa8d56327a954336405c83a30d181bc13b88b74a7974f85cac1b092bc8e083405054aa355d16eb7 +fb7cfe43cd9d63189c6a38d2a95ed83886cda5533ae6d9c64991f3ea55844162124ea5540d139afca0886635e232604e884e6257687d7615c4e01e73f0b45fd1 +e912303c3ad5dbab9d41e942a6801c8d4459c6cdd1c445819694026e9ec42323ef1ee93dc781fb1cd6d9e51f88cf8ea3e982165478b499fe06643c8d36aebb25 +e8cb95d835b7777ff9bf1e3b03b5bd8da5fffcbdb53e77ae44471425a2e6cb3b97079f78edaf3bcf6465b26a76cdf7d714d0d24a9294133c1d18467eb7afdf1c +192074d620c093f9bb6f7d615245ae10341a4fdef68b4db1ccb022a35ab060e1e381e1bd36860da7809f8accf871a515a5c5768133027c8c9afa129afa38c401 +47297057ebb6628d712b00a93aa3d26e1d093ac5ab9053745ad299fd874e512e9fd3e753320939542f43af375031ae88750ac4240a500c647840f31a116f503a +64740a418a26de6610214af73bd4ca00ef2a9a90d13ce9d6c32c905d1e471270754d31e206632f05340dc40864ed50f0015b00782780a2c9c05dac2bb296089f +fdc9e680b84622c8f37c717985c3e5b6d9ec3435cabfddb9434a94238974df8fc9a500093903328a2eaac0fc64549050084b54cc8815fd611ea2f67c954946a0 +7ebb0a421f14f98cd4c8903d3cf41c9294d542e3d5313b318567f83f5156f22b28aa5670bda10edde7b0ce2eff403c9e8c52b8f94c9e31fe17975c9ccfa50031 +d9de716626904618cc02596288a953de83a2b1b5ebf137cf50cafbe2beba23270bc408cde7528044b4da75065cca9ccc079f2c103fddedb4dfb6ec8289a76fc1 +828551c128bf928f3477128b48086d023fadaab4a6c4eb1458344a9c8a3cbf5591288a1007791fe59b088aa642d649b2f1f1c5100914cd2396471cfe57c075f6 +7ed0493b9c9e229f2ea7c55043b7e8b679aac617693c43d6e69a1125c178a39a39fa90a1ac21c1473c0e7a5ab5db5d3ebd3dc1259bdf1390e20d7825da7ee068 +08401a732f602fd11419a819ca5b0583336060b2e6086a0869b24e8b19278c8de2941a069294cfc14f2a2f9a58511cf0b98b4b4b921951fa38e6a5b170fe20e0 +14be588813ec3d7ce2cde1f9d915c40bfb8e1e3b392c8bef479edd39747084018089ce6f9f7c7d38351b5b3b9f7cfbc3e1d42c887d27db5edb5be0f01b97ccaa +f23b47de9e050b162e548c329dc24bed96ae306654dd91687b573790c569e302332afd1e1b8346439ac2093ca6423ae229ce06199e765720c101e4842ef841f1 +0ce0abd56d251a8d0916c2a7a6caca9e83ad0e8fc7575caca6a2b1f6e38d3187cc8cabf6646c2c301df7349d48a734233202319b8294d7a6cd1e0f5447c5b136 +3579ea434e4f1715fb58a7fbc07111706edd5e22fb6768a2aa751da3580eda0280736814d28d48559a224229e9768d2c3ae520a029e863d48b7c74a5974f46c3 +271b1a4ed41f4fc5d3addd91b36f7cd491162dedc6c707775e5d203802be531e7a766486e13920129da7770e596def8727761c3973d28671b0a9fbb5bd43ebdc +1f7cfa8db38ce5f6fbe777e747d9a06974d735978dda83c082050be73d463f50c2074d9d8844f2e0a38954673c138ea76c36bed46df373a994a8a53426262a67 +6cf41308d8338dddb4ee65684e5189fd38c539694922d98e6937c5d9a1ee972451571512e25c9580947cfbb83eb34cf0073d1deddde910d3ed9fe0735335545d +5dd89112497029c3dc8ac44a8014f2f0e9490135ca5edc117124db8ff05aaca8d8ab0845ef864ab5200d285aa76855a1353901e5305d3913dabd448d824f0751 +c4123e9940e94ec8a7ceecec4eff2a887231c00e538aa2292aea08c555127c08d86d36a7d3d9d6d51d1a34f3c958e1734b662d9c3a7eac47616114c05270f925 +17e5973fb7ebbd63ed674be5f79d6cdbb1ffe8e259b50355c077d283cf0c4db986c443cfed5a387d6241059f89b7dfafdb7dac65244d16407324f18fd7f6deb4 +625e4ef96533276dfc5e9166652bb900d1118e3dfbd607dbdfab3ffba63e4e30fce9485ebcde44c20379d819e51376dcbff9e1d6014b0a7741eccde7340e5aad +60a7e783afdfe8d32959510f377757079d456e6731a2a3b1782a9349eb3a89498e6807a5d911242ee5349b149594a8884648f4e10e1789c819340298cb50a700 +6ed65e4cc9b2966a07769fa290b078ba8648a403c4e98887ac5d02f407096d929b0b286a5b57670609914085cb268f872df5526d8672e2a52985581dd12eed54 +959090dc53bb456faab39e53ba4b8add9ab3fc50bc4ca2ed984b4144cb3ad053512dd182f0339a7303c898d6d1782c6a3286523156e0813ee238da88822c8202 +0d39a8492251e4614218d349ec075d9310a2ec82e074390162c369b12b218e3802ea47829913ca8cf461163e9e8827cfc4cfae201e7cf6cd79d326b04ce1e7cf +d33bdfab6b1f0503c4b668faefafbebb6665e1705c9aa63df4ec2890368c3f6fdfbb72eed47c13fbf222cf19b567618c5151e4bdb4b68adef4dcb6030d67dfda +c70c8bd6ac5eb96f08d6a2b7eefee9cb131e5959fb704fea98ab56121ef6f039cb714a9231af1be399392751d1d3927cbc23d611cb54073dc5c18028caf14432 +994a4998f7183c4053154ed7ec14e038a092f08184ffc83a4c2b20ade8830456d03485e56daa0e305b8240d525d18842ae2be9a41ce9d6392745a28993bf2499 +090575c86a144a02549fe1aabc7431686c0db7c7bb19cd572ef04c007685989224b0639ae2816d55a85b774e0d6925898e3a26d95a5ae254dcd547d2e3321487 +d919a029050085584aab30de4c574e8782dbcc47a5e1134aa5f54c86a381c028c3992206513ca533009fad2c4af80c7455d39200644828455dd3cdd00dc404cd +e170309c00293aa568e1441ab3d5d10a3c61c1c288b069eb5be1e4992751ee8b9648e21fafeebdf9aa79f9bb12c9f49f5e1a1dd246c6fceabeabe74ef57b0b64 +1b7c6ac7dee39da313aad134b1cf0f9a60e182c63d9f5e6ad1a93cd4dfb719dc7b7bedd6a152ec99713bff63f6d11fed0370f6ea7bc1d6a5864ccb147155984d +99d1d571c95a6f23a85914c425a7258224eb1f20b9fc48fcf4e524eb65d3cb8fdd66a64006e0f29e9c803b0d6959af746a5bbfd69edfd63f55f339955d9d2bef +b08ca484e3e9bad6d0d153a15052146c423010081615f93c6e81e3341d644409b32b559155595224519632ba94a195b44dcf38a1e8a6440f925d946487b20015 +8ed2799a32fd041d9c48710e4d4e88a9442623cb92a4330ec0085aec2450249d449562758a813485183b45db20c569904eeace76aa8a291a5fec65f45467229e +4e51c52ceb08c2068196dda0a3846ed1ed5521ad3419ea64c4aef21287ec9d58a756c78143a7698d22a98c65196a5202c44ed24e37b407cc7292e94954f4541c +2922cf680e261b0eca48c647b194ce62c6a8899c9a16d4a4a0c43929c664a2201192e2e1743c9649255549d464499344299dc25055c526d8024581e29252af2f +40b1425cd2da136257329312e5f33f18ba858f259a3a42ff1c2a09f188b0e9d5bdddd1447ef9a398b49d919f5d41a465ed7f9e2f10543d91c2a46def289e0e31 +b16f6c1bc5062d8c39861fd4ed93857dcfdf0756fec7ec216a9120e69bf654ae59bd12139a35e0be8d66f0f4da7f37d4854bd76db8f365efbdeb1664138d056b +c04bb8f0f9deb47d984bad6d7f0c7329cc937eb23c7cdfba0dcbeedf0396cf5d99dd5f03de238d2cdb5cbf68c582dc6c65a75b0bdcb9cec81e486a82d3dd9d1b +9cab14c8c0c813124d66e2293196a2c31cc3d088a3914be0789e7728aa468288ab49421f7ab3e212eb23607c8c9c943a07553ba3b96c3acb5009894fc820a968 +829eb069515d93551aaa348799930a1889613289a4a88764dd8f48d0224a470c80b419b1d34c9d1b51ec901e17f48352d4d2126d4ba22ac655e1806d15ca314a +4d3bfce33aa5927834c9a45ac60505c55379422d8b6a8269a14ea4458a82d269a8c428b185af9a85588d81514a913055a2d438c544112db3bac8a5495c470834 +04014f6b4e56b13399d4ffdfde9900d9559d89f96c777dfbebbd5bdd42ea468090c1d832780cc1016c4538533533a9710d5691e0a91abb2a15aa526317354562 +2799a99964aa4891a442a512db95c115063c9578cc38630fa061894148808c582416a16ea1d6d2eae575bfedae67cbb9f775b75abd8084d4ea96385f35e8f67b +7739f7bef7fa7eef9cfffc7f209b310a05a1d09032e98012697754ebcc896198a6e5e672b66d7190d41625c4e012041c50255a8cc75c688bd2ac2dfffd6f5ea4 +1735cf991fb3477fb9e7bbdf38ab4767746ceac98b2a6d8a5ffefaf06f7ef1faad9bcf2a0bf6174fbd7cbe69483f9a642ee1cf5ffccff77ffde2365eb386fc9f +e75fbdf09d5c91ecfef133b73f940cf97d74d1e274c86fd70f1fdad1aa2193d0531e98d8ff276937d5f053fbf7dcb5fdce9e7d697fd4f0af0e9cd97060c7ae6f +8067ee6875448d4d8f82edb7df049e39303b9c0717ae7f7ae6785a17f9ec30b7b9677b866eeb9cad1e98d66f4e0e7764d5061c5751a75a286ff023aa7e94d298 +843443d354628592f24f8e65942c2bcb585adc4570ce684c23459cc40e01ced53611837e246326823892025a0018485a6a97ca491056ee2101e110735bc69851 +31ce5113264913a190466235ca84e672558ba48ca0644690cf62cb316156e44b960b4b169f912243da0a668347284aa40f85d5da38a6d5f6547dd2587520b984 +3c123842b980c013283c4900479c2249b10811a4309dda8785340920adcc1094fb8c32c8a218f854aa3fde22491caa64298124658ed56f9818eac2a85f93927f +9cc95079662c629a4495b1f55aabc234f4a4a54f0bb5baf7a3bfdb7b21c91156e217af1fee2ee6eebeedb3e59cabbe61bcfdc1e87ff9d90b1757da1410e13ffe +cbdddffd27b7df7cfdd5c9e9349abfd877f0a72fbf73ee1950cf91378f8dfffbbf7cfa0feefe8d659375692e2382307ae9e0f00f9edebfd60d59a7ccd642be6f +cbee8f1b3c1b7e73e4f85d336754a9bbd40fe6c322a7472796dda87c6be7f471501e02e0487aacef3f3ef8dcaeb418dfc164ecef3c1b3bf8e07c854175c4d5bc +2cabae53f3c834936194ce28563a651bd8b54ddb34922ce610598661db0ec808ce9480b034049bcba4038b3569a2595c1153802c01b0848811255258fda56cc5 +64631b390e709462a5b9a4d24a7c22fd7f72e4e4d849b6aab483474066664a79279f8db36e35a88e47cd0644d026b0cbcc052ef75166a62640d8288134ae22f9 +9babfe8352f9839deecd2d485e071ca67b4d7b9810492acc08253f8c27350195f8251d645c9a5c38ca99889b489a8370e24f4a9f8c449fd45f792e0097800318 +49e945228c13916442aecf48f3851c383cfaf04f5f58eb5668561df566dc7b7064fa22854c2d427dd5f9d173afff64efa18e42567df047a7ce7b0ec73932510f +fee8d1a7afead8e798f864a5510fe94577a916bbdff860cfa1a3dd6df9f5fa3d68fde2aaefa21832f505f89c5f9ab41e33883faee3dec400c3e50b27c0a43c19 +88255c34d9bc190453f5f5387b7afd908646edf856f779c6969d9e59f0b5ac3cd00996f39be9271e7bfcc31df77ff3a67dad2984f2c0dfdd71a035e96f700738 +bcfb1c8f35d7d2d50e999ae7d2e9d44292b0eb48fdcca6292218652cd3b513cd488c0359487d0090fa1840537dbe388d28a75cfa018db8193114c7020a945419 +414400c293d1bc56b58e188a502998fa6440620188419ae83c952a98fef5560b2806928614c95a583911544e8e9f3c09b1d1bf79b334320dd25513e5181681a3 +3e7d3c197c942cd1329016fd4004a6e547d4e3c9f09f50d29784a72bb33392687a0a114d46170d6198d03681918c3a428200c6ea1f83024255c32554cd8b2460 +9447314d14334d01be262fc42766647c66e462ccbdd2689a41d40c2e5ab0d447f0e1e46ae9da427cca464e4f5f820369346b481a1a359206959f4f3a89b1e9d1 +ce1d2d4f1adcb9fdd6899147c700e85966c5f9f1c4919dbb7ed8b53fe994ea290f9cc7915a873bf2d2c43df7ee6c7fe6a9a94b9049616d746a118c8b9a1faa1f +9076042509a0103408ca98386f816c126e84b169664dd751124369e84751c499c40258129942a2c46c58c4e340c67e5aef030ae24a647164b50ac824415449dc +3d4cb26daafdbb491a85a9f131eaf9b57a884c5cab790c06a2a33f6046c470225f49f2831830b5afb9180b257946321111258e26952721acf69ca81c821c2785 +fe0ccb84194b5a1626441d3509b912348a939e35e1d13899b798c6865d76fea4d168341acd3cb3d910ee4a96cf255f14688ddc3d5cfef177d291bba4df68df11 +00e04a6b3e3ef8dc7d5beefc713243f0f9879218f4560cd6b9772c27cef7d033030fddf37cd2c855af9a7c914b20af2a084282814da063604c4c422c0a324c98 +1872653c94462c08581409a559caae9457414b285f84a99d2104677722d44f2e6b76958d5387df3e71b2e2357d64e70cc4fafaba4b3d579d9e513b42009b32f1 +9e164c2223790db9fad7c4cc23ae63aa05a2248f988e694bdf10010730e620c963c0d41e041590cb8f2acdabd168341a8de6ca605df44e9d2342ca988198c97a +a89488d938a850779cb60be260130a11f1fa14f01b12100205ab8f223b8fedbc45809d846a218b408b7017d54c36d3f482d74f867e3540a65dea72a4103e334f +54e20a9bc938a090754394f762832653ea580c3073bbb92071200531603c89ed1e135b02c258428787ddfebb397f5262334666cce7fde94a16a9ce62f66b376f +6d2d1b4459e5ec1b4959ed63cfee0fe2c5c9b7b60f6dd83697e1f36f5f393455f3d6fa0c2e276e1ada70f335493fb7fa08fce4f9d71b9764684ca3d16834e7ce +e5a4530bb1302022ea26271136c7793f96081b166debe3392f3a79c44345690ec0600a08de340b2090c4760cdbcec189129bc6ccaff28e99a81be162dea1fd7d +0e63ac320e63d856134e313ce906633e9415d619080cb36d30d3ae6c2bedd80a503c65f65da5967d0c21011689dbfca33d2e37acb2ef3511601c91734ff27ef9 +8231ba6f2e0723e3626c7a362ac52264f7afdfff70627158555f67697efdd7de1f5d139dfafcd5fdbff7e5d96429dffff12f237a4e0957d7031bda8b5fbe2149 +98c285f8d99eb7b44e69341acd7ae3b2d4298c20e649aa848eb66c16867c7a628a76453419cd33ac0cdc70831154d9d86190dd28c28a6c9e80761b8f44810d97 +8d5318c4d361713a34109f2ee4f1d6abbb9f3d7d0dc4e81f6c7ae383d15a338ea64917c051164e601754d050836781c7010db0ac908d1b252f41030807080210 +17edd5f7ad606a1aa372c6765c57fa5e06c1864057bc4fa589dc416b0ace5fbdf0fa8f9eda37ff1459aed6b51f9ec9f1c3c5f253716ebda67f63773b07206327 +c93428e35ebad5876353afbe3fbaec7c9f5bb6f40ff6b40b08b3b6a90c2f7948ca97de1e3e74fcac09b804e36fdcf1b92f6c19f8cca6d9a0c77ff93b5fae7949 +8af99fbc70c08f16e71ffad23503fddd6d6ae1f8f874e007376e196012bc3972f2eda38be3023a0b995bb70d9a04138cb28ea51e6986314bd3aaed3d38726266 +71d26dc7243bbfb055adaf96a766ea035d65d334d469aa964cd69acfbff9c1b283c3956ae317af24d998a490d10a75a66fb9baefaade4eb5a09a41f0ec4bf0ea +7bc70e0c9f5cba72773177dbb64d1863d7324b3927635badc79f7eed9d575721218246a3d15cf15c7e3a8520cc41ca392b144b8d98579aa72d51cd0a3a157526 +73e888610114d92563f00b329866e3549082086bddd6890ed3e3d298ace19946489c4657095eb5a9f4c2f890900884f2d568d32d1b3f1c39ee554ebc57c90e88 +5c674e4e74208a647703e6485b17b087920c9c39203280370044a0aff9be15cd08758713bc11d29c894dd302715cb2c974788567dd5ce8369f1dec53b2d25a8e +62f6b397dffee8f597e5fa81ae3ffd83df6a2d1f3c7c6cb4ea0de49d6dd7ce1654fed6438f1d99585c79f74b5b37fdd9efffe3d6f2db474e4ca665a1d5db6353 +67e99de3e37241c0a23a7a474149da99777b39e75a06511233175377169f19ecbbe78ecfab05c939c458a6b9c7fefac53796ead4777ee7f65bae1f4cd6f4fd17 +0e9f5007fddd6bfb899d64d4b8e3b35bfec523ff7b911e458cddf7d59b555bd4b2e787fbde3ba61a70eb5cf5baad7d1d8ffc629914deca02efb9737b6bf9f9b7 +8e34c2c5fef7f9a10d7ffeeddf6e2dbf7bf4d458daf96740b0a9a3f8c6f0097976eca63afa7fbdff77db0b19b5fcf23b47df3b3e3199ae5fcc3a3a0db446a3d1 +7c322e3f9d2a1a220ee36c26c311f682a4230083a0888e433873aa9a0f9b36c056926f2a999b87a53d0004efb3c6db8c880b383119547dc3cababdedb89c652f +3efb72ccf74a6402b3d834f37babf91b379a18f54f1d1fad832e90efcac9d31d96246eae616580fa029f85ea82090f2087f54dbd6b053380cf0e187911358895 +b71de5798cc525d79df12f66cee5f5cc505f476fdb6c4db49a1f2eab531f4bd782cc873f7fedbd83c7c7afefef9ad72927b9cd2fd6a981ce526ba111447ff883 +bfe16799cb5902a1b4e9e19fbef0b59bb73ef0f53b5b8ffcf95ffd7db5b9625e99c65cbe6ce5527ff6c4ee3d87462c82cde57add5cd76d2d1c3a70e84f9e7c45 +2dfcab7bbef2d5cf5f0b52639b4dcfb1002140d50b5a3af5da91137ffa449242e58f7eefae9ddbaf530b375cddbf7c7bc2d91e29c697cfa9b1b9b77d7ef9df3e +f6f4647de158ea625f742db3e5528af67ce69a0d9dad65b5ef247dae46a3d168ce9fcb4ca70a0688c3c0342dd3766a11f767073e248271c1ae23c08e578b924b +a00c09a224e914367ac9a132aef0389a6c38f500db26ecedced8b9c2eba76d3f5f84663e49cc102663430133de19655bba11dad83fe5e79a50ddc251263c5142 +ef13339e421be5b800416c13d443462cda50a236df302965dd8f31b40ab97cbd566334706dc70f3f1546f5f3bd07ffdbff7de90277b2308ddeefeffc8d9831f5 +fbc85805243a2083e5aee4fcbd5f6d8b31e2ec635420639bf3cb8e6954c18a3a35df97a60c63fffba34144831586d8d8dc7b00cec9d67c7ec8952a55cfdb0d9e +5b737e78348c970fe7fad8bebd858e85f1c724acf7fdb0526bb415726a79cb86ce2d1bce3cb5a1bdf8c25be7934546a3d168342997934e390612b187102a978b +33016b8674c15d441915cbd9cd8d653e13b67b71929c1c02d86d8c16d0388fbc69bea12971bee87777bb30df7d5cf4c832b2dc4826915010f0cea41301420fd0 +e190f6e727bbada812200ff4494633de585e0a1e88aab9a98cea593e61093fcded7916ead65b0b6204cd5c3e5fafd74c1ec698b02bb4d6de7ce094a29475d46d +b8b56c121404d1d89248f385d1f9cb87ea2f1082479fdefbeae113c99ae9834a3bfc7099e06b346721ae650c7414c7d38312f53ee062d9606db1a0eba53def36 +43f562012561cd155409a4e9fb2d938095e3e65dd3985dc8387947e91a2c5ab39fa985638b8bf639bbb4c49256d2a6f96b433012cb5dbd856fb30de59c974683 +c1a42213a834172734af47f11fffafa737f5b6cf07b1fde6cd5baf1de84e2fe9aae40ad768349a2b9ecb46a7d48dc460a1ba01747576d4235e0fe22511cd492e +cdace51b788239f6582dd76d1ccfc129167933b4db431d1d6d5147ce88ac8e31d61308079b00134ba6a3316998334cef5a5219d54962f418a7fb8cfa94e73479 +2f04c2f54e9785cc8186610222fd95722050c695514160ba8e1b0441d184535768a182bc65cccf8cbb6ddbe62f5dbf69ee65c2fffa7ffeed529dca99647efd72 +3ad4b588778f8d1d1d9bea6b2faa4bfbcf7febf6fb1674474531fdeeff78325e52e764cfa1917f74d3960d9d25a521fff1dbbf1db6ea1741f817cfbcf2cbd7de +5d7a887def1cfddacdd76fe8480ef1effee9dd942b8f06ffe9af5fd8f7deb1456b9a04b75aabdc25ef58e34b22cae779f9ad0ffa3b8a18e3ee2d833ffcc30d6a +cf05db54db722e76ef7f7769d631a52bf3a596329609930683826bb71e5172e61838a08bbbd9dcb9aba7da53cad893b5e6a2155e7df7e8079fdb32d0dba196bf +77efced6a5506fea275f7ce3895fbdb968e58e42f6c15d3b4e4c56d9dc27a89875d5fec3983eb9e7ad5578b368349a4f0b69f2f1ed0ba316f63cfec8f70eacf8 +f8ec5637ddfddcaec174f14c4d98a19dbb7e785779d18360f153004cecffd643493ad0163beebbff41b04c69bf4b9015fdf248e3a96e0c59c44514140a79683a +53cd30a22b8fec40758b228d1acfc8291afbd528ef19439d45a3ec864dee8ed30e4fe424426921be24d1796b133977a024713a9079ec75cb31236e547cab11b2 +1c3beac29a6139c8c90ad3fd88dc9c6a0f8e69b4674c167ac94dd570a7bdf8cacb819e31b0edd8f3a78ce07c5c919cac794b35a2e858d89875771ad34618c925 +313d0482522e23d2fe1bbca09b445dc5c95a432e970b57c95339e78ad4b651dab7a38e5c6978748581bfc5eb43305df3a2252b1733f6fc905918c5decadd57f3 +2bab9d19e9263429e80db8e0d566b86c038a59a7d50da52e59a5de8410b515dc56ef927ab6d6f4a3253d9aa5ac33df151745f14add696df924226afe5228ea9e +af4e6fd16a06c183dd6dcd05f3199392984228a3ba34c55e341acd95ca226b99ff75f7a2c7932cea3bc019d3dafc529a513df1aaafcc283d1a4e040bb42c6a68 +bececc1cca996e7feb8c8d9d75f47b4ba3a034fad8e2fcec9f9622331f8dba376489106160d936b19c297573631f3582a6ee6928aae6a11f86413d3423a37743 +3b293a6135344f07598fab9b7f9844562515fd106049811800e6cafac104f5785364a77147af15f5e006414ec3ef25514d08cf141c4b29cccc4a7e94567ae68d +88b765737eb32e789473ac4670a5199547b947cf23775455dda7cfba552fe3464c82b363a8c147af0fd2d1c09537f9e4eb57cfa7e2ef79adac1a5069f8679d97 +9413d58f69d24cf39c3a392be77629946bbe7762e25cd6d468349a0b22a99ab7e3aa2555f9666bc87ce58b4307f60d7797fa0fee9fb59f03c37b760d6e06e048 +5af6b8c5f09b23c7bf93143f9e53b1f6ab3aa7474f2f73b4c11b3783b79f7914ecf83737b6ff606cea129f2bbaf05dac6efb20b4b024228608170a857ac894ac +aca4264a840894306a72bf1e0649f8b2c4f90d9d566fd193d20f694c809fc14d13f8908780078085804590aa1f0a598c79ec802007ab45395e9227099f093933 +70d495f5caae540de08c8581cf9a3330f2d0ca49cfd517fd6618070c6432592058c648228a56a780bd46a3d16834eb959ea1db26f62f5fc84f99536749999354 +e634dff374d3e0ad13332367afa824a9ffe0f0825ea5a416f26ddfb9fff987d4cfdd3be61e8560cb37ef022fbd39a5f40b7c6668e8929febbaee9d4a06501034 +258d63562c9562891a215d29e778327027056201532e15c5524acbce7694f3e542d08c69c844c662b619506147dc8a795a117976c805ce0ebe2060236aa18080 +00ca2899b82740130107c75d19dae476a3110bcea3303445050381cc8c92ac655ba35a3951f7fb4a994cc6a58ce62d322324bd42c3d2351a8d46a39963f0c187 +ee7f70feb789fdca6cce65c2703202b86b70cfe38fcc0742cdc5540dff870716c442f594073ac14b0f3fa22c2d19077ce08b23add829a56207f77f6f4cede7c8 +4be09e6fdeb46fe968e0aab2ae750a4368422ee2c8721cd3713f9cac89955d8a00866848bd5a1453e5528ee394dbf2999c51f1633f6e65eb1118308c025b1994 +b1f251cf761e268027955119b9621148d1687a42f0288a4c396de424b23202e265dbc4383f5df57a8b0e113c8b41c8d499c02b6cc84fa3d168349ab3391339de +8a915266f3fdd31fb34d2b567df4f1b322a2643ae4974497dfb7e599b91e2c39b6ef9f3d305b8763f8a9fd7beeda7e67cfbe2363e0ab370c826d83cf3f34d75d +75c31670e030b884ac479d6a853125d3bc01472c921065b3d9b199e6ca2e250da95c2a888366da2f0572b96c369f2f140aa7ea71c82ed461d4617dae9a42f2c5 +926a8cdf6c2855a2712c1b3316681915597a8424888af1462472844451a88cca712802540ac9240ab8117022a41e02d468341acd958904877f7570c7edcb3e97 +8eeb3d9a2ea6bd50a527d20ea7a5ec7e6bf8c11b3ee640cac6eeddb648e3b67fbb070c28457bf8f1e5471b2f36eb28760a4260415a76829e62d09b0bfa9c661b +6a084633d95c2460b042864394b81425d4a741330a232531f97caed49670bc1a07f4e2f407256ec4415d186ded1d997cc120443597d138ac4dcba08e780c970b +a592496cb50f4d3767d22e3271c7860fefd9fceed7371cdad975f83a77cc664db5e15a5f758d46a3d1685605a535b76f5b266c7c765cefef9341baa45f2a71a9 +b3a46768e7aee71ff8e2501a78feadaf0c1e1f9f3eb3ed4d77b79e520ceedc7eebc4c873636910fab3afcdc757a51a57beed46303a514e73ea01d05dea5f1295 +75914f769d244a804018505e4d46ffe18d13575dc5408d4663f4ade3f6cbf5ad56fbc6e1c9e60a5b494bc638f67c3f88e2a45faa582c14cba56cae303cd1588d +91350461bb0daad3d3a1d788e3581913c2c8c9e4909ba7d85e761302f8d7fbdfdd3e50c99503af0a9927038fef7d1fbf7cd4a6b99ea06d48427c9eadd068341a +8d66ddf109f24e9d95442a61b6932919e3db963e7070711ea9334fa52bef4efba216f542cd66467878e6ded9e34e3fb1cadd54eb45a7f2f194e38f6f2e05b7dc +1c0df4846c82c693f15453bc3c9c3d146ff68a9b976e8220b07920c26632878f5284503e9f6feb6817d83a555dc5ec991082a20162bfe9d5aa611426f57111b4 +2c87648bc2ca2c55b84dd1a1cf75cedc705de014221e13dce4d4137bdf232fbc8fa59191b9b2df76dd5a5f7e8d46a3d168349f1c7cd597beb6d66d00393a63d7 +8e7738b2b714f76c88b316ad9f0a4f4f80a313e8d983a10d18c99528b2166e4210346893fa753f081963989042a1d0d6de3eedb19970d527d045025a06b62d4b +70c639974272ce008d0884d0b4170a1561a1181f1e9b6c8866d06ef24c3b4096a1da5ef5e1b109590fa5099969206ae43f7163341a8d46a3d1ac2d6b1f3b9584 +9c578f39206afa81e3d26c1e026cb9ae39e3074fbf3e53f3441434e5b157166e92c1d2a675e637023f14429896552e97caeded5381080492ab3f7b4e1dc2e338 +04245b2cbb990cc6c941298da3661578d304ce36004a41a68f204e47c6e5ff7b979e3835cd956f155d5422a512ecca13b54a1486a272ecc29aa3d168341a8d66 +2d59fb997d6e3c23e330904c89959503b691242708281a9b91956698758ddea2d195a76fc930844970520631193603df0fc348c9896ddb8542decae4267d11b3 +4b978740004093097dc8ce150184a1e7712192e97eb26e72413279864ca55db87e2a9280203a5963fb3f2c953693defe106058ccc9728645113765d8e1580c0a +2ad75e6d351a8d46a3d17c02d65ea7c0d407847b42ca922bb2064654f286183dc98627487f7b7e633b68cfd403e527b2c1b06d319f7a5e1cc75114218c1ddb76 +5c57606b269411bbd4493225800c608990e1e494c729271482334aa5a8631a9b6e469819c2fd3816442695e846c6c0a1433483e262595a503a32564f52c89b11 +3211a75ceb9446a3d1683497256baf53d09f8e7928059758342b46c30195d3f4adf769a5ca89099ba13021c304142c11f8b528f0c32816421062b819979816c3 +1613988ab549382e934a7350121bdbc24a8afb465226cd13912f3933edc8b03231adc73145524c5682570ec8bc44db064118c8d8e796e48689219048e79fd268 +341a8de6b265ed75aaa36c4d8e371acd48c9c9a91371b5828e8dd153934c0228b98c63285d6302f6571b340a6910511256b05b366d0b990ec52603788d54ea0c +1c20693810228c889452d0c0e67e53e4006735a32397659405be4f19632727f9de83a056273d394800cf58a09803ededf003a9732568341a8d4673b9b2f63a95 +e9e8157e250ef9e6b2281b2008611c0b2ea56b02cb44762657777a4f46ed7e8d5abc5ec28cd926b72c683a31320520eba4688b8018121b428c2184cd9848d101 +266768be8132d8eab44b465f7112b03066206272b28e2cc3b15d7ac7b53e714c91750f057aa44fa3d168349acb95b5d7a949dc775de77bdd59b32d476ad0b5ad +e8eaee7a475e329cadc1aeba2c4eb06248c336714a286131cd86d52db14389bbdeb25f26e5908905214252d21066e2b136540d05a9c39269b95d8ed565cc7458 +7529221f668eb10e53c637759c82d9dcafc321b14eac50a3d168341acdf9b3f679a77c610eb88d4d9df67bb5f2af673a9991eb2c5b6ded3999dd701a6e9a8a2c +e04f668157247ee4747b762f235961b800add7ee1c8421b1243202942d801a625e06d350a0495a643853cc1a3d6532c13b0ed5baa642dbe3a667f6eef7b76a9d +d268341a8de6f265ed7ba7a40487e436cbac364dc6b068107c0c75879151a9a3666d1a049512f688e98c5937086c092b2be17a15a9f9335246e51480e94e3411 +10b5217c5486b12783312f5fa103fd512c008c258e786698b78fc7ed94af758b351a8d46a3d15c006baf538a4aec8c31c32af09c08ea943726a4a091887d239a +70456ddab996997960e70536d7baa5e74ad2d9840d90ef9286f3419875e168998f57180c04385ab120c64248c340d8cc50e8ac7563351a8d46a3d15c10eb42a7 +14c7ea1846811fd1388a441420e65b06f2adde26da64e4db04b62efc106b0084d02da89fc8769bcd2e1935008d7cca10314ccb02087b3187010368bdbc0a1a8d +46a3d1683e01ebe546ee31640a2ca350041e631c11db700b385304c46697795c916abe744b865be2cd0aad4f13c1108492ab739496e378daa5341a8d46a3b9cc +592ff7722165485cd4e63a9c26bf6243c8a4900bb8cc5deacc090200b36d66b60d4380054d32aa23e25d2967a7d168341acda799f5a2532d12854246b274e57a +069780c32bfc1c351a8d46a3f954b1de67c969341a8d46a3d1ac73b44e69341a8d46a3d15c105aa7341a8d46a3d1682e08ad531a8d46a3d168341784d6298d46 +a3d168349a0b42eb9446a3d168341acd05a1754aa3d168341a8de682d03aa5d168341a8d467341689dd268341a8d46a3b920fe3f78cfb40b6c4c441f0000000049454e44ae426082}}{\nonshppict{\pict\picscalex80\picscaley80\piccropl0\piccropr0\piccropt0\piccropb0 +\picw21011\pich3122\picwgoal11912\pichgoal1770\wmetafile8\bliptag-1378778455\blipupi95{\*\blipuid add182a9efe8f0439699494afa53f730} +010009000003ba25020000009125020000000400000003010800050000000b0200000000050000000c0277001b03030000001e00040000000701040004000000 +0701040091250200410b2000cc0076001a030000000076001a0300000000280000001a030000760000000100180000000000e04a040000000000000000000000 +000000000000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b428c734294734a94734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b428c7342947b4a947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947b42 +8c734a7b63427363426b5a39735a397b6b42947b4a947b429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a846b427363426b5a39736342735a427b6b4a8c734a9c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b5284734a846b4a736339735a39635a396b634a7363427b63428c73429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342846b42735a396b5a426352396b5a396b5239736342 +736342846b428c7342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b42948c6b948c6b84735284734a846b4a7b6b4a73634a5a63524a5a527b6b4a846b429473 +4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42846b427b6b425a5a4a4a5a +5a5a5a426b5a427363427b63427363427b6b4a8473529c84529473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b428c7b527b948c73735a7b63427b735a7b84737b7b6384 +735a6b634a635a4a525a5a5a63637b6b428c734a947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +73427b63427363424a5a63525a525a52426b5a427363426b73636b736373634a6b5a397b6b4a8c7b529c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342638484528c9c +6373736b63426b736b528494528c9c63848c847b637b6b4a63634a5a5a52526363736b528c734a8c73429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473428c73427b634263635a525a525a6352635a42736342636b5a5a7b8c4284a55a7b846b634a6b6352526b6b6b8484947b4a9c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473428c7b5a426b84396b7b39738c4a7b8c42738c31739431637b426b7b526b6b6b6b5a7363427363425a5a4a635a52636352846b4a846b42947342 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b428c7342846b427363425a5a52525a4a5a5a4a6b5a396b63425263634a6b7b397394317394397384527373 +4a6b733184ad428ca573847b9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b426b7b6b425a6331424a396373317394397394315a6b314a52314a5239525a425a63636b6b73634a7b63 +42635a426363526b634a7b6b4a8c734a947b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a8c7342846b42735a4263634a5a5a4a6b5a42735a3963634a525a4a425a +63315263315263314a5a31637b397394397394296b8c397b944a848c9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342526363394a4a394242314a4a39738439738c396373314a5231 +4a4a314a4a315263315a735a63637b6b527b6b4a735a39635a42736342846b4a8c734a947b4a9473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342947b428c6b42846b42736339735a42635a4273 +5a39735a396b5a4a4a5252394a4a313939313939293131295263316b8c317ba529638431424a314a5a4a6b7394734a947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b424a524a4a5252424a52 +425a6b428c9c4aadc64294b539637b39424a395252395a6331637b39637b84846b84734a846b4a7363397b63427b634284734a8c734a947b52947b4a9c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a8c734a +846b4a736342736342735a39736339736339846b4a525252424a4a393939394242313939395252317b9c39a5ce3194bd316b84293942314a4a425252947b5294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b42947342635a52525252525a524a636352a5ad4abdce52b5ce4a8ca5425a63394a4a396373396b84426b7b7b7352947b4a8c734a846b4a7b6342736339 +736339846b4a84734a947b52947b4a9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b42947342947b4a8c734a846b42735a397363396b5a317363397b63398c734a8c7342425252424a4a424242393939424a52427b8c4aadc642bdce42adc6 +396b843942393139394252528c7b4a9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b4284734a635a525a5a525a635a5a9c9c5aced652c6d652adc6396b843139313942394a6363426b7b947b +4a9473429c7b42947b4a8c73527b63427b6342736339846b4a8c73529c845a9c7b4a9c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b42947342947b4a8c734a846b4a735a39736339735a397b6342846b42947b4a947342947b424a524a5252524242393942 +3942637352adbd52c6d652c6d64aa5bd5273844a4a39424a424a5a5a9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b426363526363635a635a5a8c9c52c6c65aced64aa5ce39 +7b9c3142424239314a4a4252524a9473429c7b42947342947b42947b4a8c73527b6342736339735a397b6b4284734a9c8463947b4a9c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b42947342947b4a8c734a7b6b42735a39735a396b5a397b6342846b42947b4a94734294 +7b429473426b634a5252524a4239394a4a318ca542bdce5aced652bdce529cb552636b5252425252425a5a4a947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473428c735263635a +6b73735a848c5abdbd4ac6d64aa5c64284ad4a7b944242425a5a5284734a9c7b429473429c7b429473429c7b42947b428c734a7b6b427b6342735a397b634284 +734a9c8c63947b4a9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342947b528c73527b6b42735a39736339735a39 +7b6342846b429c7b4a9473429c7b429473429c7b428c73425a5a524a5a5a4a7b9442a5c64ac6d64abdce52b5d6528c9c525a5a524a42635a527b6b4a9c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b429473428473526b635a637b7b5aadb552ced64aadce4a9cce428cb5526b7b73634a9c7b42947342947b429473429c7b42947342947b42 +9473428c734a7b6b4a7b6342735a397b6342846b4a9c84639c845a9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b528473 +4a7b6342735a39735a396b5a397b63428c6b429c7b42947342947b429473429c7b42947342947b426b6b635a8c9c4aadc64abdce4ab5ce4aadce429cc64a7b94 +4a524a5a5a526b634a947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342947b4a737b6b63adb55acece5ac6d652a5c65a8c9c84735aa5946b9473429c7b +429473429c7b429473429c7b429473429c7b42947342947b4a846b4a7b6b4a7363397b6339846b4a9c8463a58c6b9c7b4a9473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c845a846b4a7b6342735a39736339735a39846b4a8c73429c7b429473429c7b429473429c7b429473429c7b42947342947b4a6b949c5ab5 +d64ac6de52bdd64aadce4aa5ce4a738c5a5a526b634a947b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d6944affffe7ffffffffffffffffffffffff9cadce947342 +d6944affffe7ffffffffffffffffffffffff9cadce9473429c7b42f7bd63ffffffffffffffffffffffffe7ffff94738c9c7b42ffd68cffffffffffffc6deff94 +73429c7b429473429c7b42947342ffde8cffffffffffffdeffff9c7b8cbd7342f7ffce9494ad9c7b429473429c7b42947342d69442deffe7d6948cffffe7ffff +ffefffff9c94ad9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b4a8c7b528c8c5a8c845a8c +8463847b5a8c7352947b5aa58c5a9473429c7b42947342947b429473429c7b42947342947b42947342947b4a846b4a7b6b42735a397363397b6b4294845aa58c +639c7b4a947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c845a846b42736342735a39735a39735a39846b428c7342947b42947342947b429473429c7b4294734294 +7b429473429c7b42a58c63948c6b7b8473739c9c5aa5b5639cb563949c7b847b84734a9473429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42ce8c42e7ffe79473 +849c7b42947342bd7b42efffc69c94adce8c42e7ffe79473849c7b42947342bd7b42ffffc69cadce947342ce9442efffe79c94ad947342947b429473429c7b42 +efbd63ceefff947363ad7b42ffefa5adc6e79473429c7b42947342e7ad42ceefff9c7b6b947342f7c66bceefff9c7b6befbd63adc6e79473429c7b4294734294 +7b42ffd684bdc6e7ffefa594adce947342e7ad42ceefff947b6b9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b528c7352947b529c8c639c84529473429c7b429473429c7b429473429c7b429473429c7b42947342947b4a84 +734a846b4a7363397b6339846b4a947b5a9c8c639c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947b4a947b5a846b4a7b6342735a397363397363398c734a9473429c7b4a947342 +9c7b429473429c7b429473429c7b429473429c7b4aa5845aa58c6b94845a9c846394845a8c845a8c7b5a94845a947b4a9c7b4a9473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b42947342d69442deffe79c7b8c9473429c7b42947342ffde8c94adc6d69442deffe79c7b8c9473429c7b42947342e7ad4aceefff9c7b6b947342e7ad +4af7ffff9c94ad9473429c7b429473429c7b429473429c7b42947342e7ad42bdd6ff9c7b429473429c7b429473429c7b429473429c7b42bd7342f7ffce9494ad +d69442deffe79c7b8c9473429c7b42bd7342f7ffcebd94adf7ffce948cad9c7b42ce9442e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b528c734a947b5aa58c639c7b429473429c7b42947342947b42 +9473429c7b42947342947b42947342947b4a846b427b6b42735a397363397b6342947b5a9c84639c8452947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947b4a947b5a7b6b42736339735a39735a39735a +398c73429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947b4aa58c639484639c8c63947b4a9c7b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b42ce8c42e7ffe7947384947b42947342bd7b42ffffc694adcece8c42e7ffe7947384947b429473429c +7b42bd7342e7ffce9473849c7b42947342ce9442ffffe79cadce947342947b429473429c7b42947342947b42ffd684bddeff947342947b429473429c7b429473 +42947b42947342bd7b42efffc69494ad947342ffde8cffffffffffffffffffffffffbdd6ff947b429473429c7b42947342ce9442deffe79c7b8c947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947b4a947b528c734a9c8c +63a58c5a9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b42947342947b4a8c734a846b4a7363397b63398463399c7b529c845a9c8452947b42 +9c7b429c7342ad7b39ad7331b57331b56b29b57331b56b29bd7331b57329bd7331b57329b57b39ad7b39a57b429c73429c7b429473429c7b4a947b4a947b5a84 +6b4a736339735a397363397b63428c73429473429c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429c7b4aa58c639c8c639c8c639c845a9c7b +4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d6944affffe7ffffffffffffffffffffffffd6efff947363 +d6944adeffe79c7b8c9473429c7b42947342bd7b42deffc69c7b8c9473429c7b42947342c67b4affffc69cadce9473429c7b42947342e7ad42ffffffe7ffff94 +738c9c7b429473429c7b42ce9442f7ffef948cad9c7b42f7bd63d6efff9473639c7b42dead42bddeff947342ad7b4affefad9cadce9473429c7b429473429c7b +42ce8c42e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947b4a947b528c734aa58c639c7b529c7b429473429c7b42947342947b429473429c7b42947342947b42947342947b4a846b427b6b427363 +397b5a398c5a29ad7342a5845aa57b52a56b31b56b29bd6b21c66b21c66318ce6b18ce6b18ce6b18ce6b18d66b18ce6b18d67321ce7321ce7b29bd7329bd7b31 +b57331a57b42947b529c7b529c6b397b63396b5a397363397363398c73429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342a5 +8c5a9c8c6394845a9c845a9c7b4a9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42ce8c42e7ffe79473 +849c7b42947342ce9442bdd6e79c7b42ce8c42e7ffe79473849c7b42947342947b42bd7342e7ffce947384947b429473429c7b42947342e7ad42ceefff9c7b6b +947342947b429473429c7b42efbd63bdd6ff9473429c7b42947342bd7b42efefc6ffffe7ffffffe7ffff9473849c7b42947342bd7b42efffc69c94adce8c42ce +efe79473639c7b42947342947b42947342d69442deffe7947b8c9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b4a947b528c7b52947b52a58c639c7b4a9c7b4a9473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b4a8c7342846b4a736339845a31a55a21b57b42ad7b52b57b42bd6b21ce6b21ce6b18d67321d66b18d67321d67318de7318d67318de73 +21d67318de7b21d67318de7b21d67b18ce7b31ad7b4aa57b52a56b39a56b29735a397b63427b63428c734a9473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429c7b42a58452a58c639c846394845aa584529473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b42947342d69442deffe79c7b8c9473429c7b42ad7342f7f7ad9494add69442deffe79c7b8c9473429c7b42947342e7ad4aceefff9c7b6bdea542c6de +ff9473429c7b42bd7342e7ffce94738c9c7b429473429c7b42947342d69442deffe79c7b8c9473429c7b42ad7342f7f7ad9494ad9c7b429473429c7b42947342 +9c7b42947342f7c66badbde7f7c66badbde79c7b429473429c7b429473429c7b42ce9442e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734a8c734a94845aa58c63947b42947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b4a946331846b427363398c5a31ad5a21b57339a57b4ab57b42c67321d67318d67318de +7318d67318de7b18d67318de7b18d67318de7b18d67b18de7b18d67b18ce7b29ad7b42a57b4aad6b31ad6329845a317b63427b63428c73429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b429473429c7b4a9c845a9c845a947b529c845a9473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473429c7b4a +9c8452a5845a9c8452a5845aa58452a58c5aa58452a58c5a9473429c7b42947342947b429473429c7b429473429c84529c8452a5845a9c84529c84529473429c +7b42947342947b429473429c7b42947342947b4a9c8452a5845aa58452a58c5aa5845aa58c5aa5845aa5845a9473429c7b42947342947b429473429c7b429473 +42947b42947342a5845a9c8452a58c5aa5845aa58c5aa5845a9c7b4a9473429c7b42947342947b429473429c7b42947342947b42947342a5845a9c8452a58c5a +a5845aa58c5a947b42947b429473429c7b42947342947b42947342a584529c8452a584529c84529c8452947342947b429473429c7b42947342947b429473429c +7b42947342947b429c8452a5845a9c8452a58c5aa5845aa58c5a9c84529c84529473429c7b42947342947b429473429c7b429473429c7b429c8452a5845a9c84 +52a5845a9473429c7b4a9c8452a584529c8452a58c5a947342947b429473429c7b42947342947b42947342a584529c8452a584529c84529c8452947342947b42 +9473429c7b42947342947b429473429c7b429c8452a58452a5845aa58c5aa5845aa58c5a9c7b4a9c7b42947342947b429473429c7b429473429c7b4aad946bad +8c63a58c5aa58c63a58c5aa58c5a9c84529c84529473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b42ce8c42e7ffe7947384947b42947342d69442deffe7947b8cce8c42e7ffe7947384947b42947342bd +7b42ffffc694adce947342d69442efffe79494ad947342e7ad42ceefff947b6bdea542e7ffff947384947b42efbd63bddeff947342947b429473429c7b42ffd6 +8494adce9473429c7b42947342947b429473429c7b42ce8c42e7efe7efefc69c94ad947342947b429473429c7b42947342ce9442deffe79c7b8c947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +4a8c73528c7b52a58c63a58c5a9c7b429c7b429473429c7b429473429c7b429473429c7b42947342a57339ad7331bd63219463318c6b427b6339946331ad5a21 +ad6b31a5734abd7b42ce7b29de7b21d67b18de7b21d67318de7b21d67318de7b18d67318de7b18d67318ce7b29ad7b42ad7b4aad6b31b56b299463317b63428c +6b39a573399c7b399c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a9c845a9c8c63947b5a9c845a9473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42a58c63ffffffffffffffffffffffffffffffffffffffffffffffffb5a57b9473429c7b429473429c7b429473429c7b42c6ad94 +ffffffffffffffffffb59c7b9c7b429473429c7b429473429c7b42947342a58c5aefefe7fffffffffffffffff7f7efe7f7f7eff7efeff7f7efefefe7a5845a94 +73429c7b429473429c7b429473429c7b42a58c5af7efe7fffffffffffffff7f7fff7eff7f7effff7f7bdad8c9c7b429473429c7b429473429c7b429473429c7b +42a5845af7efe7fffffffffffff7f7effff7eff7f7efbda57b9473429c7b429473429c7b429473429c7b42cebda5ffffffffffffffffffad946b9c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b42c6b5a5fffffffffffffffffff7f7effff7effffffffffffffffff7d6c6ad9473429c7b429473429c7b4294 +73429c7b42947342f7efe7ffffffffffffe7dece9c7b4a947b42e7ded6ffffffffffffefefe79c7b4a9473429c7b429473429c7b429473429c7b42cebda5ffff +ffffffffffffffad946b9c7b429473429c7b429473429c7b42947342a58c63efe7defffffffffffffffff7f7f7effff7eff7f7efcebda59473429c7b42947342 +9c7b429473429c7b42a5845afff7efe7decee7decee7decee7decef7f7effffffffff7f7c6b5949473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d6944affffe7ffffffffffffffffffffffff9cadce947342 +d6944affffe7ffffffffffffffffffffffff9cadce9473429c7b42947342e7ad42ffffffffffffdeffff9c7b8c9473429c7b42f7bd63ffffffffffffe7ffff94 +738c9c7b429473429c7b42947342f7c66bffffffffffffffffffd6efff9473639c7b429473429c7b42ffd68cc6deff9473429c7b429473429c7b429473429c7b +42ce8c42e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b4a8c734a8c7b52a58c63a5845a947342947b429473429c7b429473429c7b42947339a57339b56321bd6318bd5a +18bd63189c63318c6b427b63399c63299c5218945a299c6b42b58442ce7b21ce7318c66b10ce6b18ce6310ce6310ce6310ce6b18c66310c66b21ad7342a57342 +b56329b56b299463317b63428c6b39ad7329ce7318bd7b319c73399c7b429473429c7b42947342947b429473429c7b429473429c7b4a9c8452a58c638c7b5294 +7b52947b429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342a5845affffffffffffffffffded6c6a58c5aa58c63a58c5aad94639c845a947b429473 +429c7b42947342947b42947342bdad8cffffffffffffffffffad946b947342947b429473429c7b42947342947b42b5a584ffffffffffffffffffbda584a58452 +9c7b529c84529c7b4aa58452947342947b429473429c7b42947342947b42947342cebd9cffffffffffffffffffad946b9c7b4a9c84529c84529c845294734294 +7b429473429c7b42947342947b42947342c6b59cffffffffffffffffffb59c739c7b4a9c84529c7b4a9c7b42947342947b429473429c7b42947342cebd9cffff +ffffffffffffffa58c5a9473429c7b42947342947b429473429c7b42947342947b42947342efe7deffffffffffffd6d6de9c84529c7b4ae7deceffffffffffff +f7f7ef9c7b429473429c7b42947342947b429473429c7b42f7efe7ffffffffffffe7dec6947342947b42decebdffffffffffffefe7d69473429c7b4294734294 +7b429473429c7b42947342cebd9cffffffffffffffffffa5845a9473429c7b42947342947b429473429c7b42c6ad8cffffffffffffffffffad94739c84529c7b +4aa584529c8452947b429473429c7b42947342947b429473429c7b42ad946bc6b594bdad8cc6b594bdad8cefe7deffffffffffffefefde947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b528c734a947b5aa58c63a584529473429c7b429473429c7b429c +7342ad7339b55a10c66318c66310ce6318ce6310ce6b189c63298c6b427b63398c5a298442188c52219c6b39ad7b42b55a18ad5210b55210b55a109c5210a552 +18ad5a10a563219c734aa56b39ad6321b56b29946331846b428c6b39b57b31ce8418d68418c67318ce7b21a57b399c7b429473429c7b429473429c7b42947342 +9c7b4a9c8452a58c6b947b5a947b529c7b4a9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42a58452ffffffffffffffffffd6c6ad9c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b42bdad8cffffffffffffffffffad946b9c7b429473429c7b429473429c7b42947342bdad +84fffffffffffffffffffff7eff7efe7f7efe7efefdef7efe7efefe7ad946b9473429c7b429473429c7b429473429c7b42c6b594fffffffffffffffff79c7b4a +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6b59cffffffffffffffffffa58c5a9c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b42cebd9cffffffffffffffffff9c84529c7b429473429c7b429473429c7b429473429c7b429473429c7b42e7ded6ffffffffffffd6ce +de9473429c7b42decebdfffffffffffff7f7ef9473429c7b429473429c7b429473429c7b42947342f7efe7ffffffffffffded6c69c7b42947342ded6c6ffffff +ffffffefe7d69c7b429473429c7b429473429c7b429473429c7b42cebd9cffffffffffffffffffa5845a9c7b429473429c7b429473429c7b42947342ceb59cff +ffffffffffffffffa58c5a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b52fff7f7ffffffffffffffffffffffffffffffffff +fffffffff7efe79473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342947b528c734a9c845a +9c845a9c84529473429c7b429c7339ad7331b55a10c66318c66310ce6b18c66310c66318c66310c66318945a29846b427b63397b52297b421094522194633994 +734a6b42107342107342108c4a10944a10a55a18a57b4a9c6b397b4a219452219463318463428c6b39b57329d68418de8c21d69418de9c21d68c18d69c21ad84 +399c7b429473429c7b429473429c7b429c8452a58c63947b52947b529c7b529c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342a5845a +fffffffffffffffffffffffff7f7effff7f7f7f7eff7efe79473429c7b42947342947b429473429c7b42947342bdad8cffffffffffffffffffad946b9473429c +7b42947342947b429473429c7b42bda584ffffffffffffffffffbda584a58c5abda584ffffffffffffffffffad946b9c7b42947342947b429473429c7b429473 +42cebd9cfffffffffffffff7f79c7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6ad8cffffffffffffffffffa58452 +9473429c7b42947342947b429473429c7b42947342947b42947342cebd9cffffffffffffffffffbdad8c9c7b4a9c84529c84529c7b42947342947b429473429c +7b42947342efe7d6ffffffffffffcec6d6947b42947342ded6bdfffffffffffff7efef9c7b42947342947b429473429c7b42947342947b42efefe7ffffffffff +ffded6c69473429c7b42d6ceb5ffffffffffffefefde947342947b429473429c7b42947342947b42947342cebd9cffffffffffffffffffa58c5a947342947b42 +9473429c7b42947342947b42c6b594ffffffffffffffffff9c84529c7b42947342947b429473429c7b42947342947b429473429c7b42947342a58c5affffffff +ffffffffffefe7deded6c6e7deceded6c6e7d6c6b5a5849c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b42947b42947b528c734aa58c63a5845a9c7b4a9c7339bd7b31d66b18d67321d67b29de7b29d67b18de7b21c67318ad5a18b55a10ad52108c5a29 +846b428463428c5a318c4a189c5a21946331ad8c5ad67318de7318d66b10ce6b21a58452a56b397b4a21a55a21946331846b42946b39ad6b29b56318d67b21d6 +8418de8c21d68c18de9c21de8c18de9421ad84399c7b429473429c7b429c7b4aa58c6394845a947b5a947b529c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42a58452ffffffffffffffffffefe7d6cebda5cebd9ccebd9cc6b5949c7b4a9473429c7b429473429c7b429473429c7b42bdad8c +ffffffffffffffffffad946b9c7b429473429c7b429473429c7b42947342b59c73ffffffffffffffffffe7deded6ceb5e7dedeffffffffffffffffffad946b94 +73429c7b429473429c7b429473429c7b42b5a57bffffffffffffffffffe7ded6e7d6c6ded6c6e7d6c6bdad8c9c7b4a9473429c7b429473429c7b429c7b4adece +bdefe7deffffffffffffffffffe7decee7d6c6decebda584529473429c7b429473429c7b429473429c7b42cec6adffffffffffffffffffffffffffffffffffff +d6ceb59473429c7b429473429c7b429473429c7b42ded6ceffffffffffffffffffded6c6e7d6c6ffffffffffffffffffefefde947b429c7b429473429c7b4294 +73429c7b42947b42fffff7fffffffffffffff7f7ded6c6ded6c6ffffffffffffffffffd6c6ad9c7b429473429c7b429473429c7b429473429c7b42cec6adffff +ffffffffffffffa58c5a9c7b429473429c7b429473429c7b42947342b59c7bffffffffffffffffffefe7deded6c6e7d6c6ded6c6c6b59c9473429c7b42947342 +9c7b429473429c7b429c8452fff7f7ffffffffffffe7d6c6cebda5cebda5cebda5d6c6adc6ad8c9473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342947b528c734aa58c6bad8c5ac67b39d67321de7321d67318de7b29d67318c673189c52 +10bd6318a55210a55210b55a10bd6318a563218c6b42846342946331a552189c52219c6329ad8c5ad66b10d67318a58452a56331a55a21b56321946331846b42 +946b31bd7321ce6b10d66b18c66310b56b18ce8418de8421d68421de9421d69418de9421ad7b399c7b42947b4aa58c5a9c845a947b52947b4a9c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342a5845affffffffffffffffffd6c6ad947342947b429473429c7b42947342947b429473 +429c7b42947342947b42947342bdad8cffffffffffffffffffad946b947342947b429473429c7b42947342947b42947342b5a584c6b59cceb59ccebda5d6c6ad +cebda5ceb59cc6b59cb59c7b947342947b429473429c7b42947342947b429473429c7b42b59c73ceb59cc6b59cd6c6adcebda5d6c6adcebdadad947394734294 +7b429473429c7b429473429c7b4acebd9cefe7d6ffffffffffffffffffdecebdcebda5cebda59c7b4a9c7b42947342947b429473429c7b42947342b59c7bc6b5 +9ccebd9cb59c7bad9473cebda5cebda5ad946b947b429473429c7b42947342947b42947342a58c5ac6ad94ceb59cc6b59cd6c6adcebda5cebd9cc6b59cc6b59c +a5845a947b429473429c7b42947342947b429473429c7b4ac6ad94ceb59cc6b59cbda58ccebda5d6c6adcebd9ccebd9cbda584947b429473429c7b4294734294 +7b429473429c7b42947342b5a57bc6b59ccebda5c6b59c9c84529473429c7b42947342947b429473429c7b42947342b59c7bc6b59ccebd9ccebda5d6c6adcec6 +add6c6adad9473947b429473429c7b42947342947b429473429c7b42a5845ac6b59cc6b59ccebda5d6c6b5ded6c6ded6bdded6c6b59c73947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947b4a947b52947b52bd7b42d67321de7b29d6 +7b29de8429ce7b21ad6318b55a10b55a189c5210b55a18bd5a10c66318c66318d67321b56b299473428c6b42a56b31ad5a189c5a21946331a57b529c734a9c63 +31ad6321bd63299c6331846b42946331ad6321ad6318c67318d67b18d67318ce6b18ce7318b56b18de8421d68421de8c21de8c21d69429ad8439a58c639c8463 +947b5a947b529c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42a58c5afffffffffffffffffffffffff7f7eff7 +efe7f7f7eff7f7efad94639473429c7b429473429c7b429473429c7b42c6b594ffffffffffffffffffad946b9c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42b59c73e7ded6e7deceefded69c7b4a9c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad8cfff7eff7f7eff7f7efa584529c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473429c7b42 +947b4ab57b39ce6b21d67321d67b21d67b21bd6b18b56321b55a18b56321945218a55a21b56321b56b29b56b29b57b39b57b39b5844aa57b52947b5a94734a8c +63426b52316b5a316b5a396b5a426b52317b5a318c63398c734a94734aad7b4aad7339ad7339a56b31ad7331c67b29ce7b29c66b18ce7321b56318d67b21d67b +21d68429d68421d68c29a57b428c73528c734a9c7b4a947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342a58c5a +cebda5cebda5cebda5d6c6add6c6add6c6b5d6c6adcec6ad9c7b4a9c7b42947342947b429473429c7b42947342b59c7bcebda5cebda5cebda5a5845a9473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342b59c73cebda5d6c6adcebda59c8452947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b4a9c7b529c845aa5845aad9463b58c5abd8c5ab58c5ab58c63ad8452a57b529c734aa573529c734a946b4a946b429c734a9c6b42a5734a9c7342 +a5734a9c734aa5734a9c734aa5845aa594737b6b5a635239634a316b4a316b52397b6b52a584639c734a9c73429c7342a573429c6b429c6b42946b39a56b399c +6b399c6b39a56b399c6b42a57342ad7b4aad7b4ab58452b58c52ad8c639c8c63a58c63a5845aa5845a947b529c7b52947b429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4a947b429c +844a9c8452a58c6b9c8c73a59473a5946bad946ba58c63a58c6b947b5a947b5a947352a57b52a57b52ad7b52a5734a9c734a946b428c6b4a8463428c63429463 +429c6b429c6b39a56b39a56b39ad7339ad6b39b57339ad6b39b57339b57b42a5846373634a6b5a4a4a39315a4239736352736352a5734ab57339b57331bd7339 +b56b31b56b31ad6b31a56b39a56331a56b31ad6b31b57339ad6b31ad7339ad6b39ad7342a56b39ad7342a57342a573429c7342a57b4aa57b52a5845aa58c63ad +946ba58c6ba5946b9484639c8c6394845a9c8452947b4a9c7b4a9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42ce8c42e7ffe79473849c7b42947342947b42efbd63e7ffff947384bd7b42efffc69c94ad947342947b429473 +429c7b42947342ce9442deffe79c7b8c947342947b42947342d69442ffffe7ffffffdeffff9c7b8c947342ce9442deffe79c7b8c947342bd7b42efffc69c94ad +947342e7ad42bdd6ffad7b42ffefa5ffffffffffff9cadce947342ce9442deffe79c7b8c947342ce9442deffe79c7b8cce8c42e7ffe7947384d69442deffe794 +7b8c9473429c7b42bd7342ffffcefffffff7ffff948ca5947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a9c8452 +a58c5aa58c63ad946bad9463ad946bad946bad9c73a59473a5947b9c8c6ba5946b9c8463a5845aa57b52a57b52a5734aad734aad7342b57b4ab57342b57b42b5 +7342ad734aa57342a573429c6b42ad734aad7342b57b42ad7342b57b4ab57342b57b42ad7342b57b4ab57b42ad7b4a9c845a94846b736b5a5a52425a52428473 +638c7b63a57b52b57b42bd7b42b57b39b57b42ad7339ad7b42ad7339ad7342ad7339b57b39b57339b57b39ad7339b57339ad6b39ad7339a56b31a57339a56b39 +a57342946b429c734a94734a9c7b5a94845a9c84639c84639c8c6b9c8c6ba59473a58c63a58c63a58c5aad8c63a58c5aa58c5a9c84529c8452947b429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d69442deffe79c7b8c9473429c7b42ce8c42ffffefdeffff9c7b8c94 +73429c7b429473429c7b429473429c7b429473429c7b42ce8c42e7ffef94738c9c7b42947342c67b4affffc69cadce947342f7c66bceefff9c7b6bce8c42e7ff +ef94738c9c7b42bd7342f7ffce9494adbd7b42deffc69c7b8cf7bd63bddeff947342d6944adeffe79c7b8cce8c42e7ffef94738c9c7b42ce8c42e7ffef94738c +d69442deffe79c7b8cce9442e7ffef94738c9c7b42ad7342ffefadadbde79c7b42ce9442e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4a9c7b +4aa5845aa58c5aad8c63a58c63ad946bad946bad9c73a58c6ba58c6b9c8c63a58c639c84639c8463947b5a947b5a8c73528c73528c734a94735294734a9c734a +9c73429c734a9c73429c734a9c7342a57b4a9c73429c734a9c734a9c734a9473429c734a94734a9c734a94734294734a94734a94734a946b429c7b52a5845aad +946bad94739c8c738c7b638c846b9c8c73ad9473a58c63a58c6394734a9473428c6b429473428c6b42947342947342947342946b429473428c6b429473428c6b +42946b428c6b42946b428c6b429473428c6b428c6b42846b42846b4a846b4a847352846b4a84734a84734a8c73528c7352947b5a947b529c845a9c845aa58c63 +a58c63a58c639c845aa58c5aa5845aa5845a9c7b4a9c7b4a9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342ad8c63 +c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6 +b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad +8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594 +c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6 +b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad +8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594 +c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6 +b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8cc6b594c6ad8cc6b594bdad8c9c84529473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b429473429c8452a58c63a58c63947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42a58c63ad946b9c7b4a9c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429c7b4aad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad +9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c +63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63 +a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad +9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c +63ad8c63a58c63ad9463a58c63ad8c63a58c6ba59473a58c6bad946ba58c6bad946ba58c6bad946ba58c6bad946ba58c6bad946ba58c6bad946ba58c6bad946b +a58c6bad946ba58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad8c63a58c63ad9463a58c63ad946ba58c6bad946ba58c6bad946ba58c6bad +946ba58c6bad946ba58c6bad9463a58c63ad8c63a58c63ad9463a58c63a5845a9473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42ce8c42e7ffe7947384947b42 +ad7342f7efadcea5a5e7ffe79473849c7b42947342947b429473429c7b42947342947b42947342d69442deffe7947b8c9473429c7b42ce8c42ceefe79473639c +7b42bd7342f7ffce948ca5d69442deffe7947b8c947342bd7b42efffc69494adffd6849cadce947342947b429473429c7b42bd7342e7ffce947384d69442deff +e7947b8c947342d69442deffe7947b8cce8c42e7ffe7947384ce9442deffe79c7b8c947342ce9442deffe79c7b8c947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +7b429c7b4a9c8452ad8c63a58c63ad946bad946bad9c73a5946bad946ba58c6ba58c6b9c846394845a8c73528c7b528c734a8c735284735a84846b84846b847b +6384735a8c7b5a84735a84735a846b4a8c735284734a8c734a8c734a94734a846b428c6b399463319c6b399c6b39a57339a56b31a57339a56b31a57339a56b31 +a57339a56b399c734a8c73529c7352ad7b4ac6945ab58c63a594739c8c6bc6a573c6945abd8c5a9c7b52947b5a9c7342ad7339a57331a57331a57331ad7339a5 +6b31a56b399463318463399c7339a573399c73399c73429473428c734a846b428c734a846b4a846b4a7b6b5284735a84735284735a736b5a737363736b5a736b +52736342846b4a846b4a8c734a8c7352947b5a947b5294845a9c845aa58c63a58c63a58c63a5845aa58c5a9c84529c8452947b429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42c6b594ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f7f7c6ad9494 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b42947342cebdadf7f7efffffffffffffe7ded6a58c639c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342a58c5ade +d6cefffffffffffffffff7cebdad9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42bda584fff7f7ffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffded6c69c7b4a9c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +42947342d6944adeffe79c7b8c947342f7c66bbdd6ffd69442deffe79c7b8c9473429c7b429473429c7b429473429c7b429473429c7b42ce9442e7ffef94738c +9c7b42947342e7ad42ceefff9c7b6b947342ad7b42efefad9c94adce9442e7ffef94738c9c7b42bd7342ffffceefefffd6f7ef9473639c7b42947342e7ad4aff +ffffffffffbdd6ff9c7b42ce9442e7ffef94738c9c7b42ce9442e7ffef94738cd6944adeffe79c7b8cce8c42e7ffef94738c9c7b42ce8c42ffffefffffffffff +fffffffff7ffff9494ad9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c844a9c8452a58c5aa58c63ad9c73ad9473ad9473a5946ba5946b94845a947b5a8c7b52947b528c73528c7b528c734a8c735284734a8c +7352847352847b637b846b848c7b8c846b8c84638473528c734a946b42947342946b399c6b399c6b39a573399c63318c5a29a55a21bd6321bd6318c66b21c66b +21ce7321ce6b18ce7321ce7321d67321ce7321c67b31a5734a8c6b4a8c5229b56b29b57339a57b4a9c7342947342ad8452ce8442bd7331946339947352b58c52 +ce8429de7b21d67b18de7b21d67318d67318c66b18bd63188c4a18bd7321ce7b21ce8429bd7329bd7b31ad6b31a56b39946b31946b42846b428c734a846b4a84 +734a847352847b63737b6b737363736b527b6b527b6b4a846b4a7b6b42846b4a7b63427b63427b6342846b4a846b4a947b5a947b5a9c845a94845aa58c639c84 +5aa5845a9c7b529c7b4a947b429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342c6b594ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffb59c7b9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342bdad94fffffffffffffffffffffffffffffff7efe7947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b42947342947342e7ded6ffffffffffffffffffffffffffffffbdad949c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42ad9473ffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffcec6ad9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42ce8c42e7ffe7947384bd7b42deffc6947b8cce8c42e7ffe7947384947b429473429c7b42947342947b429473 +429c7b42947342f7c66bffffff9cadce947342947b42ce8c42d6efe7947363947b42bd7342f7ffce948ca5ce9442deffe79c7b8c947342bd7b42efffc6f7dece +bdd6ff947b42947342bd7b42ffffc694adce9473429c7b42947342ce9442deffe79c7b8c947342ce9442deffe79c7b8cce8c42e7ffe7947384d69442deffe794 +7b8c947342d69442deffe7947b8c947342bd7b42efffc69494ad9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b4a9c8452a58c5aad946bb59c7bad9c73ad9c73a5946b9c8c63947b5a9c845a94845a9c845a947b5294845a947b5a +947b5a8c7b52947b528c7b52947b52947b52947b52947b4a947b4a947b4a9c7b4a9c7b4a9c7b4aa57339c67331bd7329bd6b29b56318bd6b21ad63189c52188c +4a18bd6318bd6318c66b21c66b18c67321c66b21ce7321c66b18ce7321ce7321c67b31a57b4a8c6b4a8c5229ad6b31b573319c73429c6b39c67329b56b299c7b +4aad7b52ce8442ad6b31946339947352b58452ce7b29de7b21d67b18d67b21d67b18de7b18c66310ad5a189c5a18d67b21d67b21de8421d67b18d67b18c66318 +bd6318b56b29a57b429473429c7b42947b429c7b4a947b4a947b4a8c7342947b4a8c734a8c734a84734a8c734a846b4a8c734a846b4a847352846b4a846b4a7b +6b42846b4a7b6342846b4a8c73529c84639c8463a58c6b9c8463a5845a9c7b4a9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffefefe79c7b4a9473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c8452f7f7efffffffffffffffffffff +ffffffffffffffffc6b59c9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b42bdad8cffffffffffffffffffffffffffffffffffffffffff9c84529c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +7342efefe7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffff9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d69442deffe79c7b8cffd68c9cadce947342d6944adeffe79c7b8c94 +73429c7b429473429c7b429473429c7b42947342d69442deffe7c67b8cdeffc69c7b8c947342c67b4affffc69cadce947342f7c66bceefff9c7b6bce8c42ffff +ef94adc69c7b42bd7342f7ffce9494adffde8cadbde79c7b42ce9442e7ffef94738cd6944adeffe79c7b8cce8c42ffffef94adc69c7b42dea542d6f7ff947363 +d69442deffe79c7b8cce9442ffffef94a5c69c7b42ad7342ffefadadbde79c7b42dead42d6efff9473639c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b429473429c7b4a9c8452b59c7bb5a57bb59c7ba58c6b9c8c63947b5a94845a947b5a94845a9484 +639c84639c845a9c845a947b5a9c845a9484529c8452947342947b429473429c7b42947342947b429473429c7b42947342947b42947342b56b31b56b29c67331 +c67329bd6b29b56321a55a218c4a18b55a18bd6310bd6b18bd6318c66b21bd6318bd6b18bd6318c66b21c66b18bd7329a5734a846b4a7b52299c6329b573319c +73428c6331bd6b29c66b18ce7321b56b298c7352ad7b52c684429c6331845a398c7352b58452c67329d67321d67318de7b21d67318d66b18c663108c4a18b56b +18d67b21d67b18de7b21d67b18ce7318bd6310bd6b21a57331947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473429c7b4a +947b4a947b528c73528c734a846b4a8c734a846b4284734a846b4a84734a7b6b42846b4a8c73529c84639c8463a58c63a5845a9c844a947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6b594 +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbdad94947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +cebda5fffffffffffffffffffffffffffffffffffffffffff7f7f79c8452947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947b4af7f7f7ffffffffffffffffffffffffffffffffffffffff +ffcec6b59473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b42947342bdad8cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42ce8c42e7ffe7dea584bdd6ff +9473429c7b42ce8c42e7ffe79473849c7b42947342947b429473429c7b42947342ad7b42ffefa59cadce947342e7ad42bdd6ff9c7b42947342ce9442ffffe7ff +ffffdeffff947b8c947342d69442deefe7ffefcedeffffbd7b8cefffc69494ad947342ffde8cbdd6ff947b42efbd63ffffffffffffadc6e7947342d69442deff +e7ffd6ceffffffffffff94a5c6947b42ce8c42e7ffe7947384ce9442deefe7ffefcedeffff947b8cbd7342ffffceffffffe7ffff9473849c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c844aa5946bbda584ad9c7ba5946b9c845a9c8c639c +84639c8c639c845a9c84639c8463a58c639c84529c8452947b429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b4aa56329b56b29bd7329c67331c66b29c67329a55a219c5a21c66b21c66b21bd6318bd6b21bd6318bd6b21b56318bd6b21bd6321bd6b299c7b4a +8c6b4a7b52319c6331b573399c734a7b634aa56329ad6318b56321b56318bd6b219c6331847352ad8452c684429c63318463428c7352ad8452c67321d67b21d6 +7321de7b21d67318ce6b18ad5a10945218c66b18de7b21d67b18de7b21d67b18ce7318b56318b573319473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a9c7b4a9c845a94845a947b5a8c73528c7b528c73528c735284734a8c7352947b5a +a58c6ba58c6ba58c5a947b429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42c6ad8cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffff9c84529c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42a5845affffffffffffffffffffffffffffffffffffffffffffffffffffffd6c6b59c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342cebdadffffffffffffff +ffffffffffffffffffffffffffffffffffffffffa5946b9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c8452f7f7f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbda58c9c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +42947342d6944affffe7e7ffff94738c9c7b42947342d69442deffe79c7b8c9473429c7b429473429c7b429473429c7b42efbd63c6deff9473429c7b42947342 +ffde8c94adc69c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42bd7342f7ffce948cad9c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b42ce9442e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473429c7b4aad9473b5a58c +a594739c8c639c845aa58c6ba58c6b9c8c6b94845a9c8452947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b429c73398c5a21b56329c67331bd6b29c67329a56321945a21ad5a18c66b21bd6b21c67329b56318b56321ad63 +18ad63219c52189c5a219473528c6b4a735231945a31ad6b319c734a73634a845229844a188c5221844a188c52218c5221945221845a3184735aad8452bd7b42 +945a317b5a398c7352ad845abd6b21c67321c66b18ce7321ce6b18c66318844a10b56b21ce7318d67b21d67318de7b18d67318c67318a563219c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473429c7b4a947b +529484638c7b5a947b5a8c7b528c7b528c73529c8463a58c6ba58c63947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342c6b594ffffffffffffffffffffffffffffffffffffe7ded6decebdd6ceb5decebdd6ce +b5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebd +d6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5de +cebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ce +b5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebd +d6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5de +cebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ce +b5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5decebdd6ceb5ded6c6 +ffffffffffffffffffffffffffffffffffffffffffd6cebd947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342ded6ceffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa58c +639c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342a5845affffffffffffffffffffffffffffffffffffffffffffffffffffffffffffded6ce947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42cebda5ffffffffffffffffffffffffffffffffff +ffffffffefefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7 +efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7 +efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efef +e7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7 +efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7 +efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efef +e7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7f7efe7efefe7e7ded6 +b5a584947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42ce8c42ffffe794a5c69c7b42947342947b42ce8c42e7ffe7947384947b429473429c7b42947342947b42ce8c +42f7ffe7948ca5947b429473429c7b42ce8c42f7ffe7948ca59c7b42947342947b429473429c7b42947342947b429473429c7b42947342bd7b42efffc69c94ad +947342947b429473429c7b42947342947b429473429c7b42947342ce9442deffe79c7b8c947342947b429473429c7b42ce8c42e7ffe79473849c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b42ad9473c6b594ad9c73ad9473a58c6bb5a584ad94739c8452947b429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c6331a55a21bd6b29bd7329bd7329bd6b299c63298c5218b56321b5 +6321ad63299c5a21945a218c52218c5221844a218452219c7b5a9473527352398c5a31ad6b399c735273634a845229844a218c5221844a18845221844a188c52 +218452218c5221845a3184846bad8c63b57b428c5a3984634294735aa58463945a219c5a21a56321c66b21c663189c52188c5218c67321d67318de7b21d67318 +de7b21ce7b18bd7329a57b429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b4a947b52a59473ad94739c8c6b947b5a9c8463b59c7ba5845a9473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffff +ffffbda5849473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42947342decebdffffffffffffffffffffffffffffffffffffffffffad946b9473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342b59c7bffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffe7ded69473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b42d6cec6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffad9c7b9c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42a5845affffffff +ffffffffffffffffffffffffffffffffffded6ce9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b42947342c6ad8cc6ad8cbdad8cbda584ad94739c7b4a9c7b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b428c5221a56321ad6321b56b29 +b56b21a563218c52189c52189c52188c5221844a218452218452218c5221844a188c52219c7b528c7352735239845a39ad6b39a57b5a7b6b4a7b52297b4a1884 +5221844a18845221844a18845221844a18845221844a21845221845a31948463b58c63b57b42845a318463428c73529c7b528c5218945221945221ce7318bd63 +108c4a18ad6318ce7321d67318de7b18d67b18de8421c67321a56b319473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342a5845aad946bb5a57bb5a57bc6ad84ad946b9c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6b594 +ffffffffffffffffffffffffffffffffffffbda584947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429c8452ffffffffffffffffffffffffffffffffffffffffffe7d6ce9c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342947b42e7e7deffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb59c849473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42a5946bffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffefefe7947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342ded6c6ffffffffffffffffffffffffffffffffffffffffffa58c639473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342b59c73c6ad94c6b594b59c7ba58c639c7b4a9c7b4a9473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c6329a56321ad63299c6321945a29734a218452219452188c52217b4a218452217b4a218452217b4a218452219c7b529473527b5a42846342a56b42 +a57b5a846b4a845a31844a21845221845221845221844a218c52218452218452218452218c52218452218452297b5a398c7b5aad845ab57b4a845a3984634a94 +735aa57b528c5221945a29b56318c66b188c4a189452219c5a18ad6321c66b18de7b21de8421d68421ad6b219c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947b42 +9c84529c845aad946ba5946bbda57b9c7b4a9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42c6ad8cffffffffffffffffffffffffffffffffffffc6ad8c9473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42cebda5ffffffffffffffffffff +ffffffffffffffffffffffb59c7b9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b42bdad8cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffefefe79c7b4a9473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342efe7deffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffc6b59c9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b42947342b59c73ffffffffffffffffffffffffffffffffffffffffffd6c6b59473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42a58c5abdad8ca5946b9c8c63 +9c7b4a9c7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42945a219c5a218c5221845229734a216b42297b4a21945a21734a21734a21734a217b4a21734a217b4a29947b +528c73527b5a42846342a56b429c734a7b63427b5a317b4a218452217b4a187b4a217b4a218452217b4a188452217b4a218452217b4a188452217b4a21845229 +845a318c734aa57b4aad7b42845a3984634a947b5a9c734a8c52219c5a18bd6318a55a18844a188c5218945218a55a21ad6318c67321d67b18c67b2994734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b528c73529c8463ad946b9c7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342c6b594ffffffffffffffffffffffffffffffffffffbdad849c7b42947342947b429473 +429c7b42947342947b429c7b4aa584529c8452a584529c8452a584529c7b4a947b429473429c7b4a947b4a947b4a947b4a9c7b4a94734a9c7b529473429c7b4a +9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342947b4a9473429c7b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342947b429473429c7b429473429c7b429473 +429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a9473429c7b429473429c7b429473429c7b42 +9473429c7b4a9473429c7b429473429c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342947b429473429c7b429473429c +7b429473429c7b429473429c7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473429c7b429473429c7b429473429c7b429473 +429c7b429473429c7b429473429c7b42947342947b429473429c7b4a9473429c7b429473429c7b429473429c7b429473429c7b4a947342947b429473429c7b42 +9473429c7b4af7efeffffffffffffffffffffffffffffffffffffff7efe79473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947b4af7f7f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffc6ad94947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342bdad8c +fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f7f79c8452947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42efe7defffffffffffffffffffffffffffffffffffffff7f79c7b +4a9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b4aad9c7ba58c6394845aa58c6b9c84529c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429463298452217b5229734a29734a296b4a298c52298c5a2973522973 +4a21734a21734a217352298c6b4a8c735273634a846342a573429c734a7b63397b5a31734a21734a21734221734a21734a217b52217b4a218452217b4a218452 +297b4a218452217b4a21845229844a21845229845a398c7352a57b4ab57b4a8463428c6b528c735a9c6b428c5221c66b21b563218c5221844a18945a21945221 +9c5a219c5a18bd7321c684299c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b4aa5845a947b528c7352947b5aad9c739473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffff +ffffc6ad8c9473429c7b429473429c7b42947342a58c63ded6c6fffff7fffffffffffffffff7ffffffffffffffffffefe7dead9473d6cec6f7f7f7f7f7eff7f7 +f7f7f7eff7f7f7ded6d69c7b4ab5a584f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7b59c7bc6b5a5f7f7eff7efe7f7f7eff7efeff7f7eff7efe7f7f7efe7ded6 +b5a57b9473429c7b429473429c7b429c7b52d6ceb5efefe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7efa58c5a9c7b4294 +7342ad946bded6bdf7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7efe79c84529c7b42ad9c73f7f7 +eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7efbdad949c7b4a9473429c7b4aded6c6f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7efe79c84529c7b42947342 +9c7b42947342c6b59cefe7def7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7efb5a57b9c7b42947342c6b59cefe7def7f7eff7efe7f7f7eff7 +efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7eff7efe7cebd9c9473429c7b4ac6b59cf7f7eff7efe7f7f7eff7efe7f7f7eff7efe7f7f7 +efb5a5849c7b429473429c7b429473429c7b42947342bdad8cffffffffffffffffffffffffffffffffffffffffffc6b59c9473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342cebdadffffffffffffffffffffffffffffffffffffffffffb59c7bde +d6ceffffffffffffffffffffffffffffffffffffffffff9c84529c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c8452f7f7efffffffffffffffffffffffffffffffffffffefe7dea5946bffffffffffffffffffffffffffffffffffffffffffcec6b5 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42bda58cffffffffffffffffffff +ffffffffffffffffffffffbdad949c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342c67b4affffc6fffffffffffff7ffff9494ad9c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b42947342a58c6394845a94845a9c8463a58c63a58c5a9c84529473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473428c7342735229734a296b4a21735229 +634a29734a297b4a21734a296342216342215a3918634a218463428c735a73634a7b634a9c734a9c734a7b63397352316b4221734a216b42186b42216b422173 +4a21734218734a217342217b4a21734a21734a217342217b4a21734a217b4a217b4a218452297b5a318c734aa5734aa5734a8463428c6b5294735a946339ad63 +21bd6321844a188452218c5221945a218c5221945a219c5a18ad6b29947b429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4a9c7b52a5845a9c845a947b52846b4a947b529c845a9c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6b594 +ffffffffffffffffffffffffffffffffffffbda584947b429473429c7b429473429c8452f7f7efffffffffffffffffffffffffffffffffffffffffffffffffff +ffffefefeffffff7ffffffffffffffffffffffffffffffd6c6ad947342a58c5affffffffffffffffffffffffffffffffffffefe7e7ffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffbda584947342947b42947b4aefefe7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffb59c739473429c8452f7efefffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffad94639473429c844affffffffffffffffffffffffffffffffffffffffffad8c63947342947b42947342c6b59cffffffffffffffffffffffffffff +ffffffffded6c69c7b42947342947b42947342cebda5ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcebda5947342c6b594 +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffded6c69c7b42947342ad946bffffffff +ffffffffffffffffffffffffffffffffff9c84529473429c7b42947342947b429473429c7b42947342e7e7defffffffffffffffffffffffffffffffffffff7f7 +f79c84529473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342a58c5affffffffffffffffffffffff +ffffffffffffffffffded6ce947342ad946bffffffffffffffffffffffffffffffffffffffffffd6cebd947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42c6b5a5ffffffffffffffffffffffffffffffffffffffffffad9473947b42d6cebdffffffffff +ffffffffffffffffffffffffffffffffa58c639c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9c7b4afff7f7ffffffffffffffffffffffffffffffffffffefe7e79c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42ce8c +42e7ffe79473849c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b4a9c8452947b529c845a9c845aa58c6ba58c63ad9463a5 +84529c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +428c6b426b5229634a29634a315a4a29634a297b4a21845229634a29634a295a42215a4229735a398c735a7b6b5273634a94734a9c734a846b426b5231634221 +6b42216b4221734a216b4221734a29734a21734a216b4221734a21734a21734a21734a21734a21734221734a21734a217b4a217b4a217b52297b5a398c73529c +734aa5734a84634294735a947b5a9c6331ad63188c4a217342188452218452218c5a298c52218c52218c5a219c7b4a9473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a9c7b4aa58c5aa58c5aa58c639c845a +94845a8c7352947b52947b4a9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42c6ad8cffffffffffffffffffffffffffffffffffffc6ad8c9473429c7b429473429c7b42bdad94ffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffceb59c9c7b429c7b4afffff7ffffffffffffffffffffffffff +fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7efe79c7b4a947342c6b594ffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffbdad8c9c7b42b5a584ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffb5a57b9c7b42947b42f7efe7ffffffffffffffffffffffffffffffffffff9c84529c7b429473429c7b42b5 +9c7bffffffffffffffffffffffffffffffffffffd6ceb59473429c7b429473429c8452fffff7ffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffdecebd9c7b42efe7deffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +f7f7ef9473429c7b42a58452fffffffffffffffffffffffffffffffffffff7efe79473429c7b429473429c7b429473429c7b429473429c7b42ad946bffffffff +ffffffffffffffffffffffffffffffffffd6c6b59c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +42ded6c6ffffffffffffffffffffffffffffffffffffffffffa58c639c7b42947342decec6ffffffffffffffffffffffffffffffffffffffffffad946b947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c845affffffffffffffffffffffffffffffffffffffffffde +d6c69c7b42947342a5845affffffffffffffffffffffffffffffffffffffffffe7ded69473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42947342cebdadffffffffffffffffffffffffffffffffffffffffffb59c7b9473429c7b429473429c7b429473429c7b42c6b594 +cebd9cceb59ca58c5a947342ad946bceb59ccebd9cbdad8c9c7b429473429c7b4ac6b594cebd9cceb59ca58c5a947342ad946bceb59ccebd9cbdad8c9c7b4294 +73429c7b4ac6b594cebd9cceb59ca5845a947342b59c73ceb59ccebd9cbda5849c7b42947342bdad84c6b59ccebd9c9c84529c844ac6b59ccebd9cceb59cad8c +639c7b4ac6b594ceb59ccebda5c6b59cbda57bceb59ccebd9cad9463b59c73ceb59ccebd9cb59c7bcebda5cebda5cebd9cbda5849c7b4a947342b59c73c6b59c +cebda5cebda5d6c6adcebda5a584529c7b4ac6b594c6b59ccebda5cebda5d6c6adcebda5cebda59c7b4abda57bc6b59ccebd9cbda5849c7b42b59c73cebd9cce +b59cc6b594947b429c7b42b5a57bcebd9ccebd9cd6c6adcebda59c8452a58c63cebd9ccebd9cd6c6a5cebda5d6c6adcebda5bdad84947342c6b594ceb59ccebd +9cb59c739c7b429473429c7b42b5a57bcebd9cceb59ca58c5a947342ad946bc6b59ccebda5cebda5d6c6adcebda5ad8c63947b42c6ad8cceb59ccebda5cebda5 +cebda5ceb59cc6ad8c947b42b59c73ceb59ccebd9cb5a57b9c7b4ac6ad94cebd9cc6b59ca58c5aad8c63cebd9cc6b59cbdad8c9473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b42947342e7ad42ffffffffffffffffffbddeff9473429c7b42ce9442e7ffef94738c9c7b42947342ffde8cffffffffffffbdadc6e7ffce94738c +ad7b4affefadffffffffffff9cadce947342ad7b42ffefadffffffffffff9cadce947342d6944adeffe79c7b8cce8c42e7ffef94738c9c7b42ce8c42e7ffef94 +738c9c7b42bd7342ffffceffffffd6deffefefad9c94adad7342ffefaddeffff9c7b8cce9442ffffefffffffe7ffff94738c9c7b42ce8c42e7ffef94738c9c7b +42ce8c42e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947b42947b4a +947b4a947b52947b5a9c8c639c8c63a58c63a58c5aa58c5a9c84529c7b4a9473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473428c7342634a295a4a295a42295a42295a42298c5a31845a316352315a4229634a31735a398473527b6b527b6b528c6b +4a9c7b52846b426b52395a42216342216342216b4a29734a217b5229734a21734a21734a21734a216b4218734a217342217b4a21734a21734a216b4218734a21 +6b4218734a21734a217352297b5a398c734a9c734a9c734a8463428c735a947352a56b317b4a186b42186b42187b52217b52218452218452218c5a2994734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4a9c7b4aa5845aa584 +5aa58c639c84639c8c6394845a947b5a8c734a947b4a94734a9c7b4a947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342c6b594ffffffffffffffffffffffffffffffffffffbdad849c7b42947342947b429473 +42d6cebdffffffffffffffffffffffffffffffffffffdecec6bda584b5a57bbda584ded6ceffffffffffffffffffffffffffffffffffffcebd9c9473429c8452 +f7f7f7ffffffffffffffffffffffffffffffffffffc6ad94b5a57bbda584b5a584f7efe7ffffffffffffffffffffffffffffffffffffa58c5a9c7b42decebdff +ffffffffffffffffffffffffffffffffffded6c6b5a57bbda584b5a57bbda584b5a57bbda584d6c6b5c6ad94947342cebdadffffffffffffffffffffffffffff +ffffffffefe7debda584b5a57bbda584b5a57bbda584b5a57bbda584b5a57bbda584cebdadbda584947342947b42efe7deffffffffffffffffffffffffffffff +fff7f79c84529473429c7b42947342b5a57bffffffffffffffffffffffffffffffffffffc6b59c947b429473429c7b42ad946bffffffffffffffffffffffffff +ffffffffffefe7deb5a57bbda584b5a57bbda584bdad8cc6b59c9c7b4afffff7ffffffffffffffffffffffffffffffffffffc6bda5bda584b5a57bbda584b5a5 +7bbda584b5a57bbda584b5a57bbdad8ccec6b59c7b4a947342a58c5affffffffffffffffffffffffffffffffffffe7e7d69c7b42947342947b429473429c7b42 +947342947b429473429c7b42d6cebdffffffffffffffffffffffffffffffffffffffffffa58c63947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b42ad946bffffffffffffffffffffffffffffffffffffffffffcec6ad9c7b42947342947b429c8452ffffffffffffffffffffff +ffffffffffffffffffffded6ce9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342d6cebdffffffffffff +ffffffffffffffffffffffffffffffa58c639473429c7b42947342c6bda5ffffffffffffffffffffffffffffffffffffffffffb59c7b9473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342a58c5affffffffffffffffffffffffffffffffffffffffffe7dece947342947b429473 +429c7b42947342947b42a58c63ffffffffffffffffffc6b5949c7b42d6ceb5ffffffffffffffffff9c7b4a947b42a58c63ffffffffffffffffffc6b5949c7b42 +d6c6b5ffffffffffffffffff9c7b4a947b42ad946bffffffffffffffffffbdad8c9c7b42ded6bdffffffffffffffffff947342947b42efe7deffffffffffffad +946b947342ffffffffffffffffffa58c5ad6c6adfffffffffffffffffff7f7efffffffffffffffffffb59c73c6b594fffffffffffffffffff7efe7ffffffffff +ffffffffbdad8cad8c63fffffffffffffffffff7f7eff7efefffffffad946bd6c6adfffffffffffffffffff7f7eff7efeff7f7eff7f7f7a5845ad6c6adffffff +ffffffdeceb5947342c6b594ffffffffffffe7e7d69c7b42b59c73fffffffffffffffffff7efeffffff7b59c7bf7f7effffffffffffffff7f7f7f7eff7efe7f7 +f7efe7ded6947b42e7e7d6ffffffffffffc6ad8c947342947b42947342e7ded6ffffffffffffad9c739c8452fffffffffffffffffffff7f7f7efeffffff7bda5 +84c6ad8cfffffffffffffffffff7f7efffffffffffffffffffc6ad8cb59c7bffffffffffffd6c6ad947342f7efe7ffffffffffff9c7b4aad946bffffffffffff +d6c6b5947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342f7c66bdeffff9c7b8c947342ad7b42ffefa5e7ffff947384ce9442deffe79c7b8c947342ce9442deff +e79c7b8c947342ffd68cdeffff9c7b8cefbd63bdd6ff947342d69442deffe7947b8cefbd63bddeff947342ce9442deffe79c7b8cce8c42e7ffe7947384d69442 +deffe7947b8c947342d69442deffe7947b8cad7342ffefada5bde7947b42dea542f7ffff948ca5ce9442deffe79c7b8cbd7342ffffce94a5c69c7b42efbd63ce +efff947363d69442deffe7947b8c947342d69442deffe7947b8c9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42947b429c7b4a947b4a947b52947b5294845a94845aa58c6ba58c6ba58c6ba58c5aa58c5aa5845aa584529c7b4a9c7b4a947b42 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b428c6b426352315a42295a4a316352396b52428c63398c6339634a316352316b +5a398c7b5a84735a846b5a8c7352a5845a8c734a736342634a29634a31634a316b52316b52317b5231734a297b52297352297b5229735229734a29734a217b52 +29734a217b5229734a21734a296b4a21734a216b4221734a216b42217352297b63398c7352a57b529c734a8c6b4a947b639c7b52845a316339186b4221734a21 +7b52217b52218c5a298c5a299c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a9c7b4a9c84529c +8452a58c5aa5845aad8c63a58c63a5946b9c8c639c8463947b52947b5a947b52947b4a947b429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffff +ffffc6ad8c9473429c7b429473429c7b42ded6c6ffffffffffffffffffffffffffffffffffffad94639473429c7b42947342c6ad94ffffffffffffffffffffff +ffffffffffffffcebd9c9c7b429c7b4afffff7ffffffffffffffffffffffffffffffefe7d69473429c7b429473429c7b42cec6adffffffffffffffffffffffff +ffffffffffffb5a57b947342efe7deffffffffffffffffffffffffffffffffffff9c84529c7b429473429c7b429473429c7b429473429c7b429473429c7b42ce +c6adffffffffffffffffffffffffffffffffffffb59c739473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342f7ef +e7ffffffffffffffffffffffffffffffffffff9c84529c7b429473429c7b42b59c7bffffffffffffffffffffffffffffffffffffcebd9c9473429c7b42947342 +bdad84ffffffffffffffffffffffffffffffffffffcebd9c9c7b429473429c7b429473429c7b42947342a5845affffffffffffffffffffffffffffffffffffef +e7d69c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42a5845affffffffffffffffffffffffffffffffffffefe7 +de9473429c7b429473429c7b429473429c7b429473429c7b42947342a58c5affffffffffffffffffffffffffffffffffffffffffe7ded69473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342efefdefffffffffffffffffffffffffffffffffffff7f7f79c84529473429c7b4294 +73429c7b42cebda5ffffffffffffffffffffffffffffffffffffffffffb59c7b9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +42947342ad9c73ffffffffffffffffffffffffffffffffffffffffffcec6b59473429c7b429473429c7b42947b4af7f7efffffffffffffffffffffffffffffff +ffffffefefe79c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42ded6c6ffffffffffffffffffffffffffffffff +ffffffffffa58c639c7b429473429c7b429473429c7b42947342c6ad8cffffffffffffffffffe7d6c6947342efefdeffffffffffffffffffad946b947342c6ad +8cffffffffffffffffffded6c6947342efefdeffffffffffffffffffb59c73947342cebd9cffffffffffffffffffd6ceb5947342f7f7efffffffffffffffffff +ad8c63947342e7d6c6fff7f7fffff7ad8c639c7b42f7efefffffffffffffa58c5ae7d6c6ffffffffffffb5946b947342e7deceffffffffffffad946bc6ad8cff +ffffffffffdecebd9c7b42b59c7bffffffffffffdecebdbdad8cffffffffffffd6ceb59473429c7b429c7b429c7b4ae7deceffffffffffffb59c739473429c7b +429473429c7b42947b42d6c6adffffffffffffcebd9c9c7b42bda584ffffffffffffdeceb5947342cebda5ffffffffffffd6c6ad9c7b42947342ad9463ffffff +fffffff7efef9c7b429473429c7b429473429c7b4a947342ded6bdffffffffffffb59c739c7b429473429c7b42d6ceb5fffff7fff7f7ad946bad946bffffffff +ffffefe7d69473429c7b42947b42a58452d6ceb5ffffffffffffcebd9c947342c6b594ffffffffffffd6c6adb59c73ffffffffffffc6b59c9c7b42e7ded6ffff +ffffffff9c7b4aad8c63ffffffffffffcebd9c9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342bd7b42deffc69c7b8c9473429c7b42947342d6944adeffe79c7b8cce +8c42e7ffef94738c9c7b42bd7342ffffceadbde79c7b42ce8c42e7ffef94738c9c7b429473429c7b42bd7342e7ffce94738c9c7b429473429c7b42bd7342e7ff +ce94738cd69442deffe79c7b8cce9442e7ffef94738c9c7b42ce9442e7ffef94738cd6944adeffe79c7b8c947342ad7b4af7efad9c94adce8c42e7ffef94738c +d69442ceefe79c7b6b947342bd7b42efffc69c94adce9442e7ffef94738c9c7b42ce9442e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b4a94734a947b52947b52947b52947b529c8c63a58c +63a5946b9c8c63a58c639c845aa5845a9c8452a584529c7b4a9c7b4a9473429c7b42947342947b429473429c7b429473428c73425a4a295a4a295a4a31735a4a +6b52398c6331845a316352316b5a398c735a8c735a84735a8c735a9c7b5a8c734a7b6342634a31634a31634a316b5239634a316352316342296b4a296b4a2973 +5231734a297b5229734a297b52297b52297b5229734a29735229734a21735229734a297b5229734a21734a296b4a217352297b63428c73529c7b52947352846b +4a947b638c6b4a6b4a29633918734a21734a218452297b52218c63319473429c7b42947342947b429473429c7b42947342947b429473429c7b4a947b4a9c8452 +9c8452a5845a9c8452a58c5a9c8c5aa58c6b9c8c63a5946b9c8463947b5a8c7b52947b5a947b52947b5294734a947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6b594 +ffffffffffffffffffffffffffffffffffffbda584947b429473429c7b42947342e7d6c6ffffffffffffffffffffffffffffffffffffa58c63947b429473429c +7b42bdad8cffffffffffffffffffffffffffffffffffffcebda59473429c844afff7f7ffffffffffffffffffffffffffffffe7dece947b429473429c7b429473 +42d6c6adffffffffffffffffffffffffffffffffffffb59c7b947b42efe7deffffffffffffffffffffffffffffffffffffa584529473429c7b42947342947b42 +9473429c7b42947342947b42947342d6c6adffffffffffffffffffffffffffffffffffffa58c5a9c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42efe7defffffffffffffffffffffffffffffffffff7a58452947342947b42947342b5a57bffffffffffffffffffffffffffff +ffffffffc6b5949c7b42947342947b42bdad8cffffffffffffffffffffffffffffffffffffcebda59473429c7b42947342947b429473429c7b429c7b4affffff +ffffffffffffffffffffffffffffffe7d6c6947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342a58c5affffffff +ffffffffffffffffffffffffffffe7e7d6947b429473429c7b42947342947b429473429c7b42947342947b42947342cebda5ffffffffffffffffffffffffffff +ffffffffffffffb59c7b947342947b429473429c7b42947342947b429473429c7b42947342947b42947342bdad8cffffffffffffffffffffffffffffffffffff +ffffffc6ad94947342947b429473429c7b429473429c7b4af7efeffffffffffffffffffffffffffffffffffffff7efe79473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947342e7ded6fffffffffffffffffffffffffffffffffffff7f7f7947b4a9c7b42947342947b429473429c7b42b5a5 +84ffffffffffffffffffffffffffffffffffffffffffbdad94947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42ad946bffffff +ffffffffffffffffffffffffffffffffffffcebdad947b429473429c7b42947342947b429473429c7b42d6ceb5ffffffffffffefefdee7e7d6a58452ffffffff +fffff7efeff7f7efc6b59c9c7b42d6ceb5ffffffffffffefe7dee7e7d6a58452fffffffffffff7efeffff7f7c6b59c9c7b42ded6c6ffffffffffffefefdee7de +cea58c5afffffffffffff7efe7fff7f7bdad8c9c7b42947b429c7b4a9c7b4a9c7b42947342f7f7efffffffffffff9c8452e7d6c6ffffffffffffbdad8c9c8452 +ded6bdffffffffffffad946bbdad8cffffffffffffd6ceb5947342b59c73ffffffffffffd6c6b5c6ad8cffffffffffffc6b59c9c7b42947342947b42947342e7 +decefffffffffffff7efe7f7efe7e7e7d6efe7d6e7decead9463cebda5ffffffffffffcebda5947342bda584ffffffffffffd6c6ad947b42cebda5ffffffffff +ffcebda59473429c7b429c7b52ffffffffffffffffffefe7def7efe7e7ded6efe7d6ded6bd947b42decebdffffffffffffb59c739473429c7b429473429c7b4a +9c7b4a9c844a947342b59c73ffffffffffffded6c6947b429473429c7b42947342deceb5ffffffffffffc6b594947b42bdad8cffffffffffffd6ceb5b59c73ff +ffffffffffcebd9c947342efe7d6ffffffffffff9c7b4aad9463ffffffffffffc6b59c9c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42dea542d6efff947363947b42 +9473429c7b42ce8c42e7ffe7947384d69442deffe7947b8c9473429c7b42947342ffd68cffffffffffffdeffff947b8c947342e7ad42ffffffffffffbdd6ff9c +7b42947342e7ad42ffffffffffffbdd6ff947b42ce8c42e7ffe7947384ce9442deffe79c7b8c947342ce9442deffe79c7b8cce8c42ceefe79473639c7b42a573 +42f7efad948ca5d69442deffe7947b8cdea542d6efff947363947b42ad7342f7efad948ca5ce9442deffe79c7b8c947342ce9442deffe79c7b8c947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a9c +7b4a9c8452947b4a947b528c734a947b528c7352947b5a9c845aa58c6ba58c6bad9473a5946ba58c639c8452a584529c8452a584529c7b4aa584529c7b4a9c7b +4a947342635231634a3173634a735a427b5a39845a31846339735a428c7b5a94846b8c73638c7b639c8463947b52846b4a634a316b5231634a316b52396b5231 +6b52315a4a29634a31634a31634a31634a296b52316b4a297b5a317b52297b5a317b52297b5a317b52297b52297b5229845a31845a29845a317b52297b5a3173 +52297b5231846b4a947b529c7b529c7352846b529c846b84634a734a29734a21845229845229845229845a299c7b4a9c7b429c7b4a9c7b4aa584529c844aa584 +529c8452a584529c8452a58c63a58c63ad9473a5946bad946ba58c639c8c63947b528c7b52947b529c845a947b52947b52947b4a9c7b4a9473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42c6ad8cffffffffffffffffffffffffffffffffffffc6ad8c9473429c7b429473429c7b42ded6c6ffffffffffffffffffffffff +ffffffffffffad8c639473429c7b42947342bdad8cffffffffffffffffffffffffffffffffffffcebd9c9c7b429c7b4affffffffffffffffffffffffffffffff +ffffefded69473429c7b429473429c7b42d6c6adffffffffffffffffffffffffffffffffffffbda57b947342efefdeffffffffffffffffffffffffffffffffff +ffa584529c7b429473429c7b429473429c7b429473429c7b429473429c7b42d6c6adffffffffffffffffffffffffffffffffffffe7decedecebdded6bddecebd +ded6bddecebdded6bddecebdded6bddecebdded6bdbdad8c9c7b42947342f7efe7ffffffffffffffffffffffffffffffffffff9c84529c7b429473429c7b42b5 +9c7bffffffffffffffffffffffffffffffffffffcebd9c9473429c7b42947342c6ad8cffffffffffffffffffffffffffffffffffffcebda59c7b429473429c7b +429473429c7b42947342a58452fffff7fffffffffffffffffffffffffffffff7f7efded6bddecebdded6bddecebdded6bddecebdded6bddecebdded6bddecebd +ded6bda584529c7b42a5845affffffffffffffffffffffffffffffffffffefe7de9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c +7b4af7f7efffffffffffffffffffffffffffffffffffffefefe79c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c8452f7f7efffff +fffffffffffffffffffffffffffffffff7efe79473429c7b429473429c7b429473429c7b42947342bdad8cffffffffffffffffffffffffffffffffffffffffff +c6b59c9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42b5a584ffffffffffffffffffffffffffffffffffffffffffbdad949c7b4294 +73429c7b429473429c7b42947342947b42e7ded6fffffffffffffffffffffffffffffffffffffffff79c7b4a9c7b429473429c7b429473429c7b429473429c7b +429473429c7b42947342efe7defffffffffffffffffffffffffffffffffffffff7f79c84529473429c7b429473429c7b429473429c7b42947342f7efe7ffffff +ffffffbda584f7efe7c6b594ffffffffffffe7d6c6d6c6ade7dece947342f7efe7ffffffffffffbda584f7efe7c6b594ffffffffffffe7d6c6d6c6ade7dece94 +7342fff7f7ffffffffffffbda584f7efe7c6b59cffffffffffffdecebdd6ceb5e7d6c69473429c7b429473429c7b429473429c7b4af7efefffffffffffffa584 +5ac6b594ffffffffffffffffffffffffffffffffffffffffffad946bc6b594ffffffffffffd6ceb59c7b42b59c73ffffffffffffdecebdbdad8cffffffffffff +cebda59473429c7b429473429c7b42e7d6c6ffffffffffffe7d6c6d6c6adf7f7efffffffffffffb59c73cebda5ffffffffffffcebd9c9c7b42bda584ffffffff +ffffd6ceb5947342d6c6adffffffffffffcebda59c7b42947342a58452fffffffffffffffff7d6c6b5d6c6adffffffffffffffffff947342ded6bdffffffffff +ffb5a57b9c7b429473429c7b429473429c7b429473429c7b42ad946bffffffffffffe7dece9473429c7b429473429c7b42d6ceb5ffffffffffffcebd9c947342 +c6b594ffffffffffffd6c6b5b5a57bffffffffffffc6b5949c7b42e7ded6fffffffffff79c7b4aad8c63ffffffffffffcebda59473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +42947342e7ad4abdd6ff9c7b42947342c67b4affffc6ffffffdeffff9c7b8cce9442e7ffef94738c9c7b429473429c7b429473429c7b42ce9442e7ffef94738c +c67b4affffc69cadce9473429c7b42947342bd7b42ffffc69cadce9473429c7b42947342d6944adeffe79c7b8cce8c42e7ffef94738c9c7b42ce8c42e7ffef94 +738cd69442deffe79c7b8c947342ad7b42efefad9c94adce9442e7ffef94738cd6944aceefe79c7b6b947342c67b4af7ffc69c94adce8c42e7ffef94738c9c7b +42ce8c42e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b429473429c7b4a947b4a947b528c734a8c734a846b4a8c734a84734a8c73528c7b529c845a9c8463a5 +946ba5946bad946ba58c63a58c639c845a9c845a634a29735a397b634a8463427b5a31845a39846342947b5a9484638c7b63947b63948463947b52846b4a6b52 +316b5231634a316b52316b52316b52315a4a29634a31634a316352315a4a29634a31634a29634a316b4a297352297352297b52297b52297b52297b52297b5229 +7b5229845a31845229845a317b52298452297b5229845a31846b4a947b529c73529c7352846b52947b638c6b428452297b52298c5a29845221845a319c7b4aa5 +845a9c845aa58c63a58c63ad946ba5946bad946ba58c6ba58c639c845a94845a8c7b52947b5a8c7b52947b528c7b52947b5a947b529c7b52947b4a947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342c6b594ffffffffffffffffffffffffffffffffffffbdad849c7b42947342947b429473 +42decebdffffffffffffffffffffffffffffffffffffc6bdada58c63a58c5aa58c63c6b59cffffffffffffffffffffffffffffffffffffcebd9c9473429c8452 +f7f7f7ffffffffffffffffffffffffffffffe7dece9c7b42947342947b42947342d6c6adffffffffffffffffffffffffffffffffffffb59c7b9c7b42efe7d6ff +ffffffffffffffffffffffffffffffffffa58c5a947342947b429473429c7b42947342947b429473429c7b42947342d6c6adffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7d6c6947342947b42efe7deffffffffffffffffffffffffffffff +fff7f79c84529473429c7b42947342b5a57bffffffffffffffffffffffffffffffffffffc6b594947b429473429c7b42bda584ffffffffffffffffffffffffff +ffffffffffcebda5947342947b429473429c7b42947342947b429c7b4affffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffad9463947342a58c5affffffffffffffffffffffffffffffffffffefe7d69c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b42b5a584ffffffffffffffffffffffffffffffffffffffffffbdad949c7b42947342947b429473429c7b4294734294 +7b429473429c7b42c6b5a5ffffffffffffffffffffffffffffffffffffffffffad9473947b429473429c7b42947342947b429473429c7b42947342efe7deffff +fffffffffffffffffffffffffffffffff7f7f79c84529473429c7b42947342947b429473429c7b42947342947b42947b4af7f7efffffffffffffffffffffffff +ffffffffffffefe7de9c7b42947342947b429473429c7b42947342947b42947342ad946bffffffffffffffffffffffffffffffffffffffffffcec6b594734294 +7b429473429c7b42947342947b429473429c7b42947342bdad8cffffffffffffffffffffffffffffffffffffffffffc6ad949473429c7b42947342947b429473 +429c7b42947342a58452fffffffffffff7f7ef9c7b4ae7ded6fff7f7ffffffffffffc6b594b59c7bf7efe7a58452fffffffffffff7f7ef9c7b4aefe7d6fff7f7 +ffffffffffffc6b594b59c7befefe7a58c5affffffffffffefefe79c7b4aefe7defff7f7ffffffffffffbda584bdad8cefefe7947b429473429c7b4294734294 +7b42947342f7f7efffffffffffffa58c5a9c8452ad946bb59c73b59c73bda57befefe7ffffffffffffad946bbdad8cffffffffffffdecebd947342b59c7bffff +ffffffffd6ceb5c6ad8cffffffffffffd6c6ad947b429473429c7b4a9c7b4ae7deceffffffffffffad8c63947b42d6c6b5ffffffffffffb59c73c6b59cffffff +ffffffd6c6ad947342bdad8cffffffffffffd6ceb59c7b42cebda5ffffffffffffcec6a5947342947b42a58452fffffffffffff7efe79473429c7b42f7f7efff +fffffff7f79c7b42d6ceb5fffffffffffff7f7efc6b59ccebda5a58c5a9c7b42947342947b42947342b59c73ffffffffffffe7ded69c7b429473429c7b429c7b +4adecebdffffffffffffc6b5949c7b42bdad8cffffffffffffd6c6adad9473ffffffffffffcebda5947342efe7d6ffffffffffff9c7b4aad9463ffffffffffff +c6b59c947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42dea542ceefff9473639c7b42947342947b429473429c7b42947342ce9442ffffe79cadce947342ad7b42ffef +a59cadce947342f7c66bceefff9c7b6bce8c42e7ffe7947384d69442deffe7947b8cce8c42e7ffe7947384ce9442deffe79c7b8cce8c42e7ffe7947384d69442 +ffffe794adce947342e7ad42ceefff947b6bad7342ffefada5bde7947b42dea542f7ffff948ca5ce9442deffe79c7b8cbd7342ffffce94a5c69c7b42efbd63ce +efff947363d69442ffffe794adce947342e7ad42ceefff947b6b9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c844a947b52 +947b5284734a8c734a846b42846b4a846b428c734a84734a8c73528c73529c845a9c84636b5231735a397b634a735a427b63427b5a39947b5a9c84638c7b639c +846b9c846b947b528c73526b52316b52396352316b52396352316352395a4a316352316352316b52396352316b5239634a316b52316352316b5231634a316b52 +316b52317352317352297b52317352297b52317352297b52317352297b52317352297b5a317b52297b5a398c734a947b5a9c7b529c7b5a846b5294846394734a +845a31845a298c5a31846339a5946b9c8c639c8c6394845a947b5a8c73528c7b528c7352947b528c7b52947b5a8c7b52947b5a947b529c84529c7b4a9c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffff +ffffc6ad8c9473429c7b429473429c7b42c6b59cffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffcebd9c9c7b429c7b4afffff7ffffffffffffffffffffffffffffffefe7d69473429c7b429473429c7b42d6c6adffffffffffffffffffffffff +ffffffffffffbda57b947342efe7deffffffffffffffffffffffffffffffffffffa584529c7b429473429c7b429473429c7b429473429c7b429473429c7b42ce +c6adffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdecebd9c7b42947342f7ef +e7ffffffffffffffffffffffffffffffffffff9c84529c7b429473429c7b42b59c7bffffffffffffffffffffffffffffffffffffcebd9c9473429c7b42947342 +c6ad8cffffffffffffffffffffffffffffffffffffcebda59c7b429473429c7b429473429c7b42947342a58452fffff7ffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa58c639c7b42a5845affffffffffffffffffffffffffffffffffffefe7 +de9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42efe7deffffffffffffffffffffffffffffffffffffffffff9c8452 +9c7b429473429c7b429473429c7b429473429c7b42a5845affffffffffffffffffffffffffffffffffffffffffded6ce9c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b42ad946bffffffffffffffffffffffffffffffffffffffffffd6c6b59c7b429473429c7b429473429c7b429473429c7b42947342cebd +adffffffffffffffffffffffffffffffffffffffffffb59c7b9473429c7b429473429c7b429473429c7b429473429c7b42947342ded6c6ffffffffffffffffff +ffffffffffffffffffffffffa58c639473429c7b429473429c7b429473429c7b429473429c8452f7f7efffffffffffffffffffffffffffffffffffffefefe794 +73429c7b429473429c7b429473429c7b429473429c7b42cebd9cffffffffffffefe7d6947342ded6bdffffffffffffffffffb59c739c8452ffffffded6c6ffff +ffffffffefe7de947342ded6bdffffffffffffffffffb59c739c8452ffffffe7ded6ffffffffffffe7dece947342e7deceffffffffffffffffffad8c63a58c63 +ffffffa58c639c7b429473429c7b429473429c7b4af7f7efffffffffffffa58c5abda584fff7f7efefdef7efe7efefe7ffffffffffffffffff9c7b4ac6b594ff +fffffffffffffffff7f7efffffffffffffffffffc6ad8ca58c63fffffffffffffffffff7f7effff7f7ffffffb59c73d6c6adfffffffffffffffffff7f7efffff +ffffffffffffffa58c5adeceb5fffffffffffffffffffff7f7ffffffffffffffffffbdad84decebdfffffffffffffffffffffffffff7efefe7d6a5845afff7f7 +fffffffffffffffff7fff7f7fffffffffffff7efe7947342efe7deffffffffffffffffffffffffffffffb59c739473429c7b429473429c7b42a58c5affffffff +fffffffffffff7f7fff7effff7f7c6b594bdad8cfffffffffffffffffff7f7efffffffffffffffffffbdad8cbda584fffffffffffffffff7fff7efffffffffff +fffffffffff7efffffffffffffffffffbda57b9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342bd7b42efffc69c94ad9473429c7b42947342d6944abdd6e79c7b42ce +8c42e7f7efffefc6e7ffff94738cd6944affffe7ffffffffffff9cadce9473429c7b42efbd63ffffffffffffadc6ef9473429c7b42f7bd63ffffffffffffadc6 +ef947342d69442deffe79c7b8cce9442e7efefffefc6ffffffffffff9cadce9473429c7b42bd7342ffffceffffffe7f7fff7efc6bd94adffffc6ffffffdeffff +9c7b8cce8c42ffffefffffffe7ffff94738c9c7b42ce9442e7efefffefc6ffffffffffff9cadce9473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b429473429c7b42947342947b4a94734a947b4a8c734a8c734a846b42846b42634a296b5a426b5a42735a42 +735a39947b5a9484638c7b6b94846b9c8c6b947b5a8c73526b52396b52316b52316b52396352316b5239634a29634a316352316b52396352396b52396352316b +52396352316b52316b52316b52316b52316b52316b52316b52316b4a296b5231634a296b4a297352297b52297352297b52317352297b52317352297b63398473 +4a947b52947b5294735a84735a94846394734a8c5a31845a29846339846b4284734a846b4a8c73528c7352947b52947b4a9c7b52947b4a9c7b4a947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6b594 +ffffffffffffffffffffffffffffffffffffbda584947b429473429c7b42947342a58c63ffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffcebda59473429c844afff7f7ffffffffffffffffffffffffffffffe7dece947b429473429c7b429473 +42d6c6adffffffffffffffffffffffffffffffffffffb59c73947b42efe7d6ffffffffffffffffffffffffffffffffffffa5845a9473429c7b42947342947b42 +9473429c7b42947342947b42947342d6c6adffffffffffffffffffffffffffffffffffffcec6dec6bdcec6bdc6c6bdcecec6ceffffffffffffffffffffffffff +ffffffffffdecebd9473429c7b42efe7defffffffffffffffffffffffffffffffffff7a58452947342947b42947342b5a57bffffffffffffffffffffffffffff +ffffffffc6b5949c7b42947342947b42bdad84ffffffffffffffffffffffffffffffffffffcebda59473429c7b42947342947b429473429c7b429c7b4affffff +ffffffffffffffffffffffffffffffefefffc6bdc6c6bdcec6bdc6c6bdcededee7ffffffffffffffffffffffffffffffffffffad9463947342a58c5affffffff +ffffffffffffffffffffffffffffefe7de947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342ad946bffffffffffffffff +ffffffffffffffffffffffffffd6c6b59473429c7b42947342947b429473429c7b42947342ded6c6ffffffffffffffffffffffffffffffffffffffffffa58c63 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42d6cebdffffffffffffffffffffffffffffffffffffffffffa58c63947b429473429c +7b42947342947b42947342a58c5affffffffffffffffffffffffffffffffffffffffffded6ce947342947b429473429c7b42947342947b429473429c7b429473 +42947b429c845affffffffffffffffffffffffffffffffffffffffffded6ce9c7b42947342947b429473429c7b42947342947b42cebda5ffffffffffffffffff +ffffffffffffffffffffffffad9c739c7b42947342947b429473429c7b42947342947b42947342bdad84c6b594ceb59cb5a57b9c7b42a58c63ceb59cc6b59cce +bd9c947b4a9c7b42c6b594cebda5c6b59cceb59cb5a57b9c7b42a58c63ceb59cc6b59ccebd9c947b429c7b4ac6b594cebda5c6b594ceb59cb59c739c7b42ad94 +6bceb59cc6b59cc6b59c9473429c844ac6b59cad9463947342947b429473429c7b42947342f7f7efffffffffffffa5845aa58452cebd9ccebda5cebda5cebda5 +c6b59cc6b594a58c5a947b42c6b594ffffffffffffe7decec6b59ccebda5c6b594bda5849473429c7b42ad9473ceb59cc6b59ccebda5cebda5cebda59c84529c +8452bdad8cceb59ccebd9ccebda5c6b59cceb59cb59c739c7b42bda584ceb59cc6b594bda57bcebda5cebda5c6b59cb59c7b947342c6ad8cefe7d6ffffffffff +ffefe7decebda5cebd9c947342ad946bc6b594cebd9ccebda5cebda5c6b59cc6b594a5845a9c7b42bdad8ccebd9cbdad8cad9463c6b594cebd9c9c8452947b42 +9473429c7b42947342947b42ad9463c6b59cc6b59ccebda5cebda5cebda5a58c5a9c7b4abda584cebd9cc6b59ccebda5cebd9ccebd9cbda5849c7b42ad946bce +bd9cc6b594bda57bcebda5cebd9cc6b594b59c73c6ad8ccebda5c6b594bda5849473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342f7c66bceefff947b6b +947342ad7b42ffefa5adc6e79473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b42947342d69442deffe7947b8c9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473427b5a396b5a3973634a735a398c735294846394846b9484739c8c73947b5a947b5a7b6342735a396352316b5a396b52396b5a39634a31634a31635231 +6b5a426b52396b5a396b52396b5a396b52396b52396b52316b5a396b5231735a396b52316b52396b52316b52316b4a316b5231634a296b5231735229845a317b +5231845a317b5229845a317b5a318c734a8c7352947b5a9c7b5a947b5a947b63a58c639c73429c6b39947b4a9c7b4a9473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42c6ad8cffffffffffffffffffffffffffffffffffffc6ad8c9473429c7b429473429c7b42947342bda584efefe7ffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcebd9c9c7b429c7b4affffffffffffffffffffffffffffffff +ffffefded69473429c7b429473429c7b42d6c6adffffffffffffffffffffffffffffffffffffbda57b947342efefdeffffffffffffffffffffffffffffffffff +ffa584529c7b429473429c7b429473429c7b429473429c7b429473429c7b42d6c6adffffffffffffffffffffffffffffffffffff9c847b9473429c7b42947342 +9c7b42fff7f7ffffffffffffffffffffffffffffffdecebd9c7b42947342f7efe7ffffffffffffffffffffffffffffffffffff9c84529c7b429473429c7b42b5 +9c7bffffffffffffffffffffffffffffffffffffcebd9c9473429c7b42947342c6ad8cffffffffffffffffffffffffffffffffffffcebda59c7b429473429c7b +429473429c7b42947342a58452fffff7ffffffffffffffffffffffffffffffd6cede9c7b429473429c7b42947342c6b594ffffffffffffffffffffffffffffff +ffffffad8c639c7b42a5845affffffffffffffffffffffffffffffffffffffffffa584639c7b429473429c7b429473429c7b42947b429c7b429473429c7b4294 +73429c7b42947342ded6c6ffffffffffffffffffffffffffffffffffffffffffad946b9473429c7b429473429c7b42947342ad9c73ffffffffffffffffffffff +ffffffffffffffffffffd6c6b59473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342a5845affffffffffffffffffffffffffffff +ffffffffffffe7ded69473429c7b429473429c7b429473429c7b42d6cec6ffffffffffffffffffffffffffffffffffffffffffa58c639c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b42c6b5a5ffffffffffffffffffffffffffffffffffffffffffb59c7b9c7b429473429c7b429473429c7b +42a5845affffffffffffffffffffffffffffffffffffffffffded6ce9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4af7f7efffffffffffffad94 +6b9473429c7b429473429c7b429473429c7b429473429c7b42947342cebd9cffffffffffffd6ceb59c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b42947342c6b594f7efe7f7efe7c6ad8c9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b42947342f7c66bffffffffffffffffffbddeff9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d6944adeffe79c7b8c9473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b42ce9442e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b428c73426b5a426b5a428c73529484639c8c739484739c8c73947b5a8c7b527b6b4a7b5a39735a31735a396b52 +396b5a39634a315a4a31634a316b52396352396b5a396b5239735a396b52396b52396352396b52396352316b52396b52316b5239634a31635231634a316b5231 +634a316b5231634a296b52317352297b52317b5231845a317b5231845a398463399473528c7352947b529c7b5a9c7b5a9c7b63a58c639473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342c6b594ffffffffffffffffffffffffffffffffffffbdad849c7b42947342947b429473 +429c7b42947342947b429c8452a58c5aa5845aa58c5aa5845aa58c5aa5845aa58c63d6ceb5ffffffffffffffffffffffffffffffffffffc6b5949473429c8452 +f7f7f7ffffffffffffffffffffffffffffffe7dece9c7b42947342947b42947342d6c6adffffffffffffffffffffffffffffffffffffb59c7b9c7b42efe7d6ff +ffffffffffffffffffffffffffffffffff9c8452947342947b429473429c7b42947342947b429473429c7b42947342d6c6adffffffffffffffffffffffffffff +ffffffff9c847b947b429473429c7b42947342fffff7ffffffffffffffffffffffffffffffded6bd947342947b42efe7deffffffffffffffffffffffffffffff +fff7f79c844a9473429c7b42947342b59c73ffffffffffffffffffffffffffffffffffffc6b59c947b429473429c7b42bda584ffffffffffffffffffffffffff +ffffffffffcebda5947342947b429473429c7b42947342947b429c7b4affffffffffffffffffffffffffffffffffffd6d6de9473429c7b42947342947b42c6b5 +94ffffffffffffffffffffffffffffffffffffad8c63947342a58c5afffffffffffffffffffffffffffffffffffffffffff7efe7bdad8cb59c73ad9473b5a57b +d6c6b5ad94639473429c7b42947342947b429473429c7b429c8452ffffffffffffffffffffffffffffffffffffffffffded6ce947b429473429c7b4294734294 +7b42e7e7defffffffffffffffffffffffffffffffffffffff7f79c7b4a9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +42cebda5ffffffffffffffffffffffffffffffffffffffffffb59c7b947342947b429473429c7b42a58c6bffffffffffffffffffffffffffffffffffffffffff +cebdad947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473429c7b4af7efefffffffffffffffffffffffffffffffffffffef +efe79473429c7b42947342947b42947342ded6c6ffffffffffffffffffffffffffffffffffffffffffa58c63947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429c7b4aefe7deefefe7f7efe7a58c5a9c7b42947342947b429473429c7b42947342947b429473429c7b42c6b594f7efe7f7efe7cec6a5947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b426b5a397b6b4a9c8c6ba58c739c8c73a594739c846394845a84 +6b52736342735a39736342735a39735a396b52316352316352396b5a426b5a39735a426b5a39735a42735a39735a426b5a39735a426b5a39735a396b5239735a +396b52396b5a396352316b52396352316b52396352316b5231634a296b52316b5231735a397b5a318463398c63398c63398c63399c7b52947b52947b5aad845a +a584638c7b63ad946b947b429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffff +ffffc6ad8c9473429c7b429473429c7b429c7b52b5a5849c7b529c7b429473429c7b429473429c7b429473429c7b42947342cebda5ffffffffffffffffffffff +ffffffffffffffb5a5849c7b429c7b4afffff7fffffffffffffffffffffffffffffff7efe79c7b4a9c7b429473429c7b42ded6c6ffffffffffffffffffffffff +ffffffffffffad946b947342efe7d6ffffffffffffffffffffffffffffffffffffbda58c9c7b429473429c7b429473429c7b429c7b42ad9463b59c7b9c7b42ce +c6adffffffffffffffffffffffffffffffffffffb5a59c8c734a94734a94734a9c8c73ffffffffffffffffffffffffffffffffffffdecebd9c7b42947342f7ef +e7ffffffffffffffffffffffffffffffffffffa58c639c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffffffffbdad8c9473429c7b42947342 +bdad8cffffffffffffffffffffffffffffffffffffcebda59c7b429473429c7b429473429c7b42947342a58452ffffffffffffffffffffffffffffffffffffe7 +e7ef947b5294734a94734a8c734acec6c6ffffffffffffffffffffffffffffffffffffa58c639c7b42a5845affffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffa58c639c7b429473429c7b429473429c7b429473429c7b42cebda5ffffffffffffffffffffffffffffffffffff +ffffffad9c7b9c7b429473429c7b42bda58cffffffffffffffffffffffffffffffffffffffffffbdad949c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429c7b4af7f7f7ffffffffffffffffffffffffffffffffffffefefe79c7b4a9473429c7b42947342efe7e7ffffffffff +fffffffffffffffffffffffffff7f7f79c84529473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342bda58cffffff +ffffffffffffffffffffffffffffffffffffc6b59c9473429c7b42947342ad9c73ffffffffffffffffffffffffffffffffffffffffffd6c6b59473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b4a947b429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a94 +73429c7b4a947b429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342846b429c84639c8c73 +9c8c7ba594739c84639c845a8c735273634a6b5a39735a426b5a39735a426b52316b52316b5231735a396b5a39735a396b5239735a426b5a39735a426b5a3973 +5a426b5239735a396b5239735a396b52316b52396b52316b5239634a31635231634a316b5231634a31634a315a4229635231634a317352397352317b5a39845a +318c6331ad7339a57b528c73529c7b5a9c7b5a947b63948463ad94639473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6b594 +ffffffffffffffffffffffffffffffffffffbda584947b429473429c7b429473429c7b4affffffffffffefe7e7efefe7efefe7efefe7efe7e7efefe7efe7e7f7 +efefffffffffffffffffffffffffffffffffffffffffffa58c5a9473429c844afff7f7fffffffffffffffffffffffffffffffffffff7f7efefe7def7efe7efef +e7ffffffffffffffffffffffffffffffffffffffffff9c7b52947b42cebda5ffffffffffffffffffffffffffffffffffffffffffefefe7f7efe7efe7deefefde +efe7def7f7efffffffd6c6b5947342c6b594ffffffffffffffffffffffffffffffffffffffffffe7e7f7dedeefe7e7f7f7f7ffffffffffffffffffffffffffff +ffffffffffcebda59473429c7b42efe7defffffffffffffffffffffffffffffffffffffffff7efe7deefefdeefe7deffffffffffffffffffffffffffffffffff +ffffffff9c7b52ad946befe7deefefdef7efeffffffffffffffffffffffffffffffffffffffff7f7efe7def7efe7efe7deefefdee7dece9c7b4a947342f7efef +ffffffffffffffffffffffffffffffffffffefeff7e7def7dedeefefe7f7ffffffffffffffffffffffffffffffffffffffffff9c8452947342a58452ffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffad9463947342947b429473429c7b42947342947b429473429c7b4af7ef +effffffffffffffffffffffffffffffffffffff7efe7947342947b429c7b4af7f7f7ffffffffffffffffffffffffffffffffffffefe7de9c7b4a947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42bda58cffffffffffffffffffffffffffffffffffffffffffbdad949c +7b42947342bdad8cffffffffffffffffffffffffffffffffffffffffffbdad949473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947339e7e7defffffffffffffffffffffffffffffffffffff7f7f79c8452947342947b42e7dedeffffffffffffffffffffffffffffff +fffffffffff79c7b4a947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b4aa58c63a594739c8c7ba5947b9c8c6b9c84638c7b5a7b6b4a73634a7363426b5a42735a426b5a396b52396b52317b6342735a397363426b5a39 +735a42735a427363426b5a427363426b5a42735a426b5a39735a426b5a396b5a396352396b5a396b52396b52396352316b52396352316b523963523163523163 +4a316b52316352316b52397b5a318c63399c6b31bd7b399c6b399473528c7b529c845a94846394846bad9473ad8c639473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42c6ad8cffffffffffffffffffffffffffffffffffffc6ad8c9473429c7b429473429c7b42947342efefe7ffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7dece9473429c7b429c7b4affffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6c6b59c7b42947342ad8c63ffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffbdad8c9c7b42a58c63ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffad946b9c7b429c7b4affffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffd6c6b59c7b42b5a57bffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffff9c7b4a9c7b42d6ceb5ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +e7ded69473429c7b42a58c5affffffffffffffffffffffffffffffffffffdecebdffffffffffffffffffffffffffffffffffffad8c639c7b429473429c7b4294 +73429c7b429473429c7b42947342bdad8cffffffffffffffffffffffffffffffffffffffffffc6b59c947342cebdadffffffffffffffffffffffffffffffffff +ffffffffb59c7b9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4ae7e7deffffffffffff +ffffffffffffffffffffffffffffff9c7b4a9c7b42f7f7efffffffffffffffffffffffffffffffffffffefefe79473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b42a5946bffffffffffffffffffffffffffffffffffffffffffd6c6b59c7b42bda58cffff +ffffffffffffffffffffffffffffffffffffffc6ad949c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42a58c5aad9c73a5947ba5947b9c8c6ba58c638c7b5a7b6b4a735a4273634a6b5a4273634a6b5a42635239634a +316b5a396b5a39735a39735a39735a42735a39735a426b5a42735a426b5a42735a426b5a396b5a426b5a39735a426b52396b52396352396b5239635231635239 +634a316b52396352316352395a4a315a4a315a4a296b5231634a318c63319c6b319c6b39ad6b319463398463428c73528c7b52947b5a947b5a9c8c6bad9473a5 +8c5a9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342c6b594ffffffffffffffffffffffffffffffffffffbdad849c7b42947342947b429473 +429c7b42ded6ceffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7dece9c7b4a947b429473429c8452 +f7f7f7ffffffffffffffffffffffffffffffefe7d6efefe7ffffffffffffffffffffffffffffffffffffffffffffffffd6cec69c7b529473429c7b42947342bd +a58cf7f7efffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb59c73947342947b42bdad9cffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcebda59c7b42947342bda58cffffffffffffffffffffffffffffffffffff +d6c6bdefe7deffffffffffffffffffffffffffffffffffffffffffffffffd6cebd9c7b4a947342bda584ffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffff9c7b4a947342a5845ae7ded6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffefefe7a58c5a947b42947342cebda5ffffffffffffffffffffffffffffffffffffa5845adecec6ffffffffffffffffffffffff +ffffffad94639473429c7b42947342947b429473429c7b42947342947b42947342efe7defffffffffffffffffffffffffffffffffffff7efefad9473fff7f7ff +ffffffffffffffffffffffffffffffffffe7dece947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342ad946bffffffffffffffffffffffffffffffffffffffffffcebda5c6ad94ffffffffffffffffffffffffffffffffffffffffffad9c739c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42d6cebdffffffffffffffffffffffffff +ffffffffffffffffad9473efefe7ffffffffffffffffffffffffffffffffffffefe7e79c7b4a9473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42a58452b59c7bad9c7bad947ba58c6ba58c6b947b5a7b6b4a735a427b6b4a7b +6b4a73634a6b5a426b5a42634a316b5a396b5a39735a426b5a39736342735a427363426b5a4273634a6b5a426b63426b5a426b5a426b5a42735a426b5a396b5a +426352396b52396352396b52396352316b52396352316b5239634a316352315a4a31634a315a4a316b52397b5a31946b39845a39a56b399463397b5a397b6342 +8c7352947b5a9c84639c8463b5a57bad94739c84529473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffff +ffffc6ad8c9473429c7b429473429c7b42947342ad946bbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cb5a57bad94 +6b9473429c7b429473429c7b429c7b4afffff7ffffffffffffffffffffffffffffffe7dece9c8452bdad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cbdad84a58c63 +9c7b429473429c7b429473429c7b42947342a58452b59c73c6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8c9c7b4a9c7b4294 +73429c7b429c845abda584bdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cbda584a5845a9c7b429473429c7b42ad946bc6ad +8cbdad8cc6ad8cbdad8cc6ad8cbdad8ca58c5a9c7b4ac6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cbda584a58c639c7b429473429c7b42a58452c6ad8cbdad8c +decebdffffffffffffffffffffffffffffffffffffe7d6c6c6ad8cbdad8cc6ad8cbdad8cbdad84947b429c7b429473429c7b42ad946bc6ad8cbdad8cc6ad8cbd +ad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbdad8cc6ad8cbda584b59c73947b4a9c7b429473429c7b42b59c73c6ad8cbdad8cc6ad8cbdad8cc6ad8cbda5849c7b +4a947342ad946bbda584c6ad8cbdad8cc6ad8c9c7b4a9c7b429473429c7b429473429c7b429473429c7b429473429c7b42ad9473ffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa58c639c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b42947342ded6c6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffded6ce9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +a58c5affffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb59c7b9473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b42dea542ffffffbdd6ff9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +bd7b42ffffc6fffffffffffff7ffff948cad9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429c7b4ab59c73b59c7bad9473a58c6ba58c6b +94845a7b6b4a6352396b5a4273634a84735273634a6b5a426352316352396b52396b5a426b5a39735a426b5a39735a426b5a426b5a426b5a426b5a426b5a426b +5a426b52396b5a426b52396b5a396352396352396352396b5239634a31635239634a31635239634a31634a315a4a315a4a315a42295a4a31634a316b52396b52 +316b5a399c6b39946339735231735a39846b4a9c845a94845aa58c63ad946bb5a57ba58c639c7b4a9473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6b594 +ffffffffffffffffffffffffffffffffffffbda584947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b429473429c844afff7f7ffffffffffffffffffffffffffffffe7dece947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b42b5a57bffffffffffffffffffffffffffffffffffffcebd9c9473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b42decec6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcec6b5947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429c845affffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffa58c63947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b42947342cebdadffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe7dece +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42a57342f7efad948ca59c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b42ce8c42e7ffe7947384947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b4aad94 +6bb59c7bb59c7ba58c6bad9c7ba5946b8c7352735a426b5a426b5a4273634a6b5a426b634a6352396352396b5a427363426b5a42735a426b5a42735a426b5a42 +735a426b5a426b5a426b5a426b5a426b5a426b5a426b52396b5a426352396b52396352396b52396352396b52396352316b5239635231635239634a316352315a +4a31634a315a4a315a4a315a4a31524a396352399c6b428c6339735a39736339947b4a9c8452a58c6ba59473a58c63ad9c73bda57ba58c639c7b4a9473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42c6ad8cffffffffffffffffffffffffffffffffffffc6ad8c9473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b4affffffffffffffffffffffffffffffff +ffffefded69473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342c6b594ffffffffffffffffffffffffffffffffffffcebda59c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b42947342a58c5afffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f79c84 +529473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42cebda5 +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcec6bd9473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b4afff7f7ffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffa58c639c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42f7bd63ffffffffffffffffffff +ffffe7ffff94738c9c7b429473429c7b42ce8c42e7ffef94738c9c7b429473429c7b42947342d69442deffe79c7b8c9473429c7b42947342d6944adeffe79c7b +8c947342ffde8cffffffffffffbda5c6e7ffce94738cd69442deffe79c7b8c9473429c7b42bd7342ffffceffffffe7efffffefc69cadce9473429c7b42efbd63 +adc6ef9473429c7b429473429c7b429473429c7b42dea542ffffffffffffffffffbdd6ff9c7b42947342d69442deffe79c7b8c9473429c7b42ffd68cffffffff +ffffbdadcedeffc69c7b8cce9442e7ffef94738c9c7b42ce9442e7ffef94738c9c7b42bd7342ffffceffffffd6defff7efad9c94ad947342c67b4affffc6ffff +ffefffff9c94ad9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947b42a58c5ab59c7bb5a57ba58c63a58c6ba5946ba5845a846b42735a426b5a396b5a425a52394a4a394a42315a4a316352397363426b5a +42735a426b5a39735a426b5a39735a426b5a396b5a426b5a396b5a426352396b5a426352396b5a396352396b52396352396b5239634a316b52396352316b5239 +634a31635231634a316352315a4a29634a315a4a31634a314a42294a39214a3929635239946339846339735a398c6b429473429c7b4a9c845aa59473947b5a9c +8463b59c73b5a57b9c84529c7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342c6b594ffffffffffffffffffffffffffffffffffffbdad849c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c844a +f7f7f7ffffffffffffffffffffffffffffffe7dece9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42b59c7befefdef7f7effff7f7f7f7efff +f7f7f7f7efcebd9c947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342cebda5ffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffc6ad949473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b4af7efeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff79c7b52947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42b5a584ffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffcec6ad9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342ce9442efffe79c94ad947342947b429473429c7b42947342947b42947342d69442deffe7947b8c9473429c7b42947342947b42ce8c42e7ffe794738494 +7b429473429c7b42ce8c42e7ffe7947384d69442deffe7947b8c947342ffde8cdeffff947b8cce8c42e7ffe7947384947b42ad7342ffefada5bde7947b42dea5 +42ffffff94a5c6947b42ad7342ffefaddeffff947b8c9473429c7b42947342947b42efbd63e7ffff947384947b42ad7342ffefaddeffff947b8cce8c42e7ffe7 +947384947b42ce8c42e7ffe7947384947b42ffd684e7ffff947384ce9442deffe79c7b8c947342ce9442deffe79c7b8ca57342ffefadadbde79c7b42dea542f7 +ffff948ca5ad7b42ffefa5adc6e7947342d69442deffe7947b8c9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429c7b42a58c5ab59c7bbda584ad946ba58c639c8c63a58c5a9c7b4a94734a8463427b6342735a426b5a424a +4a394a42294a42316b634a73634a73634a735a427363426b5a427363426b5a42735a426b5a42735a426b5a426b5a426352396b5a426b52396b5a396352396b5a +396b52396b52396352316b5239635231635239634a31635239634a31634a315a4a316352395a4a314a4a394239215a4a31635239946b428463398c6b42947342 +9c7b429473429c7b4a9c845a9c8463947b52ad946bb59c7bb5a57b9c84529c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffff +ffffc6ad8c9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429c7b4affffffffffffffffffffffffffffffffffffefe7d69473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c844a9c7b4a9c844a9c7b4a9c844a9c7b429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b4afff7f7ffffff +fffffffffffffffffffffffffffffffffffffffffffffffff7efe79473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342bdad8cffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffc6ad949c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b42efe7defffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f7a584529473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b42947342e7ad4af7ffff9c94ad9473429c7b429473429c7b429473429c7b42ce9442e7ffef94738c9c7b42947342 +9c7b42947342d6944adeffe79c7b8c9473429c7b42947342d69442deffe79c7b8cbd7342ffffceadbde79c7b42ce9442e7ffef94738cd6944adeffe79c7b8c94 +7342d6944adeffe79c7b8c947342ad7b4affefad9cadce947342d6944aceefe7ffdead94a5c69c7b429473429c7b42bd7342e7ffce94738c9c7b429473429c7b +42ce9442e7ffef94738cd6944adeffe79c7b8c947342c67b4affffc6adc6ef947342d6944adeffe79c7b8cce8c42e7ffef94738c9c7b42ce8c42e7ffef94738c +d69442deffe79c7b8c947342ad7b42efefad9c94adce9442e7ffef94738c9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342a58452b59c73bda57bad9473a58c6394845a9c845a947342947b42 +9473428c73427b6342736342735a426b5a424242314a4231524a39736b4a7363427363426b5a42735a426b5a396b5a426b5a396b5a426352396b5a426b52396b +5a39635239735a396b52396b5a396352316b5239635231635239634a31635231634a316352315a4a315a4a315a4a31634a315a4a314a42314a4231524229634a +316b5a39845a31946b428c7342947b429473429c7b429473429c7b4a94845a947b5a947b52ad9c73b59c7bb59c739c7b4a9c7b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6b594 +ffffffffffffffffffffffffffffffffffffbda584947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342b59c7bffffffffffffffffffffffffffffffffffffe7ded6947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42bda58cffffffffffffffffffffffffffffffffffffffffffffffffffffffb59c7b9c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342efe7deffffffffffffffffffff +ffffffffffffffffffffffffffffefe7e7947b4a9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342ad9473ffffffffffffffffffffffffffffffffffffffffffffffffffffffc6b59c947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342ce9442ffffe79cadce947342947b429473429c7b429473 +42ce9442deffe79c7b8c947342947b429473429c7b42ce8c42e7ffe79473849c7b42947342947b42ce8c42e7ffe7947384947b42947342ffde8cffffffffffff +deffff9c7b8cce8c42e7ffe79473849c7b42ce8c42ceefe79473639c7b42a57342ffefad94a5c69c7b42efbd63adc6e7dea542bddeff947342947b42947342e7 +ad42ceefff947b6b9473429c7b42947342ce9442deffe79c7b8cce8c42e7ffe79473849c7b42947342947b42ffd684ffffffffffffe7ffff947384d69442deff +e7947b8c947342d69442deffe7947b8cce8c42d6efe7947363947b42ad7342f7efad948ca5ce9442ffffe7ffffffffffffffffffefffff9c94ad947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c8452ad946bbda584b59c7ba58c +639c845a9c8c63947b4a9c7b429473429c7b429473428c73427363427b63426b5a39635239524a395a52427b6b52736b4a73634273634a735a427363426b5a42 +735a426b5a426b5a426b52396b5a426b5a39735a396b5a396b5a396b52396b5239635231635239635231635239634a316352395a4a31634a315a4a3163523163 +4a316352314a42295a4a395a4a316352316352398c6b429473429c7b429473429c7b429473429c7b429473429c8452948463947b5a9c845ab5a57bb5a57bad94 +639c7b4a9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42c6ad8cffffffffffffffffffffffffffffffffffffc6ad8c9473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42a58c63b5a57bb59c73b5a57bb59c73b5a57bb5 +9c73ad946b9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b42e7e7deffffffffffffffffffffffffffffffffffffffffffded6ce9c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b42ad9473ffffffffffffffffffffffffffffffffffffffffffffffffb59c7b9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342ded6c6ffffffffffffffffffffffffffffffffff +fffffffff7efe79473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342c67b4aff +ffc69cadce9473429c7b429473429c7b42ce8c42e7ffef94738c9c7b429473429c7b42947342d69442ffffe7ffffffffffffffffffffffffffffffdeffff9c7b +8c9473429c7b429473429c7b42ce8c42e7ffef94738cd69442deffe79c7b8c947342d69442deffe79c7b8c947342ad7b42ffefad9cadcead7342f7efad948cad +c67b4adeffc69c7b8c9473429c7b42dead42bddeff9473429c7b42bd7342ffffceffffffe7ffff94738cd69442deffe79c7b8c9473429c7b429473429c7b4294 +7342d69442deffe79c7b8cce9442e7ffef94738c9c7b42ce9442e7ffef94738cd6944adeffe79c7b8c947342ad7b4af7efad9c94adce8c42e7ffef94738c9c7b +42bd7342f7ffce9494ad9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473429c +7b4aa58c5abda57bb59c7ba58c639c845a9c8463947342947b429473429c7b42947342947b429473428c73426b52396352396b52397b6b4a7b6b4a847b5a7b6b +527b6b4a7b63427b6342735a42735a426b5a396b5a426b52396b5a426b5a39735a39735a39735a396b5231735a396b52316b52396352316b5231635231635231 +5a4a315a4a315a4a315a4a315a4a31634a31634a31635231634a316352315a4a316b5a398c6b39947b429473429c7b42947342947b429473429c7b429473429c +7b4a947b5a947b529c845ab59c7bb59c7ba58c5a947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b42947342c6b594ffffffffffffffffffffffffffffffffffffbdad849c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342ad9473ffffffffffffffffffffffffffffffff +ffffffffffa58c63947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b42d6cebdffffffffffffffffffffffffffffffffffffe7dece9473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429c845aff +ffffffffffffffffffffffffffffffffffffffffad9c73947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342e7ad42ceefff9c7b6b947342947b42947342d69442deffe7947b8c9473429c7b42947342947b42ce8c42e7ffe794738494 +7b429473429c7b42ce8c42e7ffe7947384ad7b42ffefa594adce947342f7c66bceefff947b6bce8c42ffffe794a5c6947b42ad7342ffefada5bde7947b42dea5 +42ffffff94a5c6e7ad42ceefff9c7b6b947342ffd68c94a5c69c7b42947342e7ad42ceefff9c7b6b947342947b429473429c7b42947342947b42ce8c42ffffe7 +94a5c6947b42ad7342ffefad94a5c6947b42efbd63d6efff947363ce9442ffffe79cadce947342e7ad42ceefff9c7b6ba57342ffefadadbde79c7b42dea542f7 +ffff948ca5ad7b42ffefa5adc6e7947342e7ad42ceefff947b6b9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b4aa5845abda584b5a57bad94739c8463a58c639c7b4a9c7b429473429c7b429473429c7b429473429c7b429473428c6b4263 +52316b5a427b6b52847352846b5284735a7b6b527b6b4a7b63427b634a7363427363426b5a39735a426b5a396b5a426352396b5a426352396b5a396b52396b5a +396352316352395a4a31635239634a31634a315a4a31634a315a4a31634a315a4a316352396352316b5a396b5231735a428c73429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b42947b429c845a947b52947b52ad946bbda57bb59c7ba58c5a9473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42c6ad94ffffffffffffffffffffffffffffffff +ffffc6ad8c9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +ded6c6ffffffffffffffffffffffffffffffd6c6b59473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342a58c5affffffffffffffffffffffffffffffffffffa58c639c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b42c6b5a5ffffffffffffffffffffffffffffffded6ce9c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b42dea542c6deff9473429c7b42bd7342e7ffce94738c9c7b42ffd68cf7ffffceadade7ffef94738c9c7b42947342 +9c7b42947342d6944adeffe79c7b8c9473429c7b42947342d69442deffe79c7b8c947342d69442ffffe7ffffffffffff9cadce947342d6944adeefe7ffefcede +ffff9c7b8cbd7342ffffceffffffe7f7ffffefc69cadceffd68cadc6ef9473429c7b42dea542d6f7ff9473639c7b42bd7342f7ffce9494ad9c7b429473429c7b +42ce9442bddeef947342d6944adeefe7ffefcedeffff9c7b8cce9442ffffefffffffffffff94adc69c7b42ce8c42e7f7efffefc6ffffffffffff9cadce947342 +9c7b42bd7342ffffceffffffe7efffefefc69c94ad947342bd7b42ffffc6ffffffdeffff9c7b8c9473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429c8452b59c73b59c7bb59c739c8c639c8c639c84529c7b429473429c7b42947342947b42 +9473429c7b42947342947b429473428c6b426b52317b634a7b6b4a7b6b527b634a7b6b5273634a73634a735a42735a426b5a426b5a426b52396b5a396b52396b +5a396352396352396352316b5239635231635239634a316352315a4a315a4a315a4a315a4a315a4a295a4a315a4a315a4a315a4a31735a396352396b5a428c73 +4a9c7b4a9473429c7b42947342947b429473429c7b42947342947b429473429c7b429473429c84638c73529c845aad9473b5a57bad946b9c8452947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342c6b594 +ffffffffffffffffffffffffffffffffffffbdad8c947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b42947b4adecebdfffffffffffffff7f7d6c6b5947b4a947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342b59c84efe7deff +fffffffffff7efe7b59c849c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b42947342947b42cebdadfffff7ffffffffffffdecec69c7b4a9473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342d69442efffe79494ad947342e7ad42ceefff947b6b9473429c7b42dea5 +42ffffffdeffff9c7b8c947342947b429473429c7b42ce8c42e7ffe79473849c7b42947342947b42ce8c42e7ffe7947384947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42a57342ffefad94a5c69c7b42947342947b429473429c7b42947342947b429473429c +7b42efbd63ceefff9473639c7b42a57342ffefadadbde79c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c8452b59c73b5a57bb5a57ba58c63a58c63a58c639c7b +4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b4a947b5a73634273634a73634a846b5273634a7b6b4a73634a73634a6b5a42 +735a426b5a42735a426b5a396b5a426352396b5a396352396b52396352396b52396352316352395a4a316352315a4a316352315a4a316352315a4a3163523963 +52316b5a39735a397b63427b6342a58c6ba58c639c84529473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947b4a9c8c6b8c7b52a58c +63b59c73bda57ba58c639c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b42a5845abda57bb59c7bbda57bb59c7bbda57bb59c7ba58c5a9473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342a58452a584529c84529473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b42a58452a58c5a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b4aa58c5a9c84529c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342e7ad42ffffffffffffde +ffff9c7b8c9473429c7b429473429c7b42ce8c42e7ffef94738c9c7b429473429c7b42947342d69442deffe79c7b8c9473429c7b42947342d6944adeffe79c7b +8c9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342ad7b42ffefad9cadce9473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b42efbd63ffffffffffffffffffbdd6ff9c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947b42ad8c63b59c7bb5 +a57ba5946ba58c6ba58c639c7b4a9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947b4aa58c6394845a7b6b427b63427363427363 +427b6b4a73634a73634a735a42735a426b5a396b5a426b52396b5a39635239635239635239635239635231635239634a316352395a4a31634a315a4a31634a31 +5a4a31634a315a4a316352316352316b5a39735a398c73428c734284734a84734aa58c63a58c639c7b4a9473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947b4a947b5a8c7b52a58c6bad9c73b59c73a5845a9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b42947342ad8c63b59c7bbda584ad9473ad946ba5946ba584529473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a9c8452a58c6394 +845a8c73528c734a94734a8c6b42846b4a73634273634a6b634a73634a6b5a426b5a426b5a396b5a426b52396b5a39635239635239635239635239634a316352 +395a4a316352395a4a31635239634a31635231634a316b5239635239735a42846b42947342947b429c7b429473428c734a8c734a9c8c63a58c63a58452947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b52947b5a947b5aad9473b59c7bb59c739c84529c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b42947342a58452ad946bbda584b59c73ad946ba58c63a58c5a9473429c7b42947342947b429473429c7b42947342947b42 +947342947b4a947b529c8c63947b5a8c734a8c6b42947b4a9473429c7b428c7342846b427b634273634a6b5a426b5a42635a426b5a4263523963523963523963 +52395a4a316352395a4a316352395a4a316352315a4a31635239634a316352396352396b5a426b5a397b6b42846b42947b4a947342947b429473429c7b428c73 +428c734a8c734a9c8c63a58c639c84529473429c7b42947342947b429473429c7b42947342947b429473429c7b4a9c845a947b529c845ab59c73b59c7bad9463 +9c7b4a9c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4aad9463bda584b59c7bb59c73ad946bad946b9c7b4a9c7b429473429c7b +429473429c7b429473429c7b429473429c844a9c845a9c8c63947b5a8c73528c73429c7b4a9473429c7b429473429c7b4294734294734a846b42846b4a736342 +73634a6b5a426b5a426352396b5a426352396352396352396b52396352396352396352396b5a426b5a396b5a426b5a42846b4a846b428c73429473429c7b4294 +73429c7b429473429c7b429473429c7b42947342947b4a8c73529c8463a58c63a58c5a9c7b429c7b429473429c7b429473429c7b429473429c7b42947342a584 +52a58c639c8463a58c63b59c7bb59c73a58c639473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42a5845ab59c7bb5a57bb59c7bad946bad +9473a584529c7b42947342947b429473429c7b42947342947b429473429c7b4a9c845a9c8c638c7b528c734a8c6b42947b429473429c7b42947342947b429473 +429c7b42947342947b429473428c734a846b42846b427b63427b63427363427363426b5a42735a426b5a39735a42735a427b63427b6342846b427b6b42846b42 +8c73429c7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473428c734a8c734a9c84639c8c63a5845a947b4a9c7b4294734294 +7b429473429c7b42947342947b42947342ad8c63a58c63a58c63a5946bbda57bad946b9c84529473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c844a +b59c73bda584bda57bad9c73b59c73a58c5a9c7b429473429c7b429473429c7b429473429c7b429473429c8452a58c639c8c638c7b528c734a8c73429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a94734294734a846b428c734a846b42846b4a846b428c73 +4a8c7342947b4a9473429c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947b42947b4a8c734a +94845a9c8c63a58c639c7b4a9c7b429473429c7b429473429c7b429473429c7b42947b42ad9463a58c63a58c6bad9c73bda57bad94639c7b4a9473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342ad946bb5a584b5ad84ad9c73b59c73a58c639c7b4a947342947b429473429c7b42947342947b429473429c8452a58c639c8c63 +8c73528c734a8c7342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b4294734294734a84734a947b5a9c8463a58c639c7b4a9c7b42947342947b429473429c7b42947342947b429c7b4aa58c639c8463ad946b +ad9c84ad9c7b9c8452947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b42947342a58452b5a584b5bda5b5ad8cb5a57bad946ba584529473429c7b429473429c7b429473429c7b +42947b429c845aa58c6ba58c6b8c73528c734a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342947b4a8c734a8c7b529c8c63ad946b9c84529c7b4a9473429c7b429473429c7b +429473429c7b42a58c5aad946bad946ba59c8494a594b59c7b9c7b4a9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d69442ffffe7ffffffffffffffff +ffffffff9cadce947342ffde8cffffffffffffbdadc6e7ffce94738cc67b4af7ffc6f7decefffffff7ffff9494ad9c7b42947342d6944affffe7ffffffffffff +9cadce947342bd7b42ffffc6fffffff7ffff9c94ad947342d6944adeffe79c7b8c947342d6944adeffe79c7b8cad7342fff7addeffff9c7b8cbd7342ffffceff +fffff7ffff948cad9c7b42ce9442e7ffef94738c9c7b429473429c7b42ce8c42ffffefffffffffffffffffffffffffffffff9cadcece8c42e7ffef94738c9c7b +42bd7342ffffcefffffff7ffff948cad9c7b42947342d69442ffffe7ffffffffffff9cadcead7342fff7addeffffd6948cdeffe79c7b8c9473429c7b42ce8c42 +ffffefffffffe7ffff94738c9c7b42ce9442e7ffef94738c9c7b42ce9442e7ffef94738cd6944adeffe79c7b8c947342d6944affffe7ffffffffffff9cadcead +7342ffefadffffffffffff94adc69c7b429473429c7b42ce9442ffffefffffffffffffffffffffffff94a5c6ad7b4affefade7ffff94738cc67b4affffc6ffff +ffdeeffffff7ce94adc69c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42ad9c73b5c6b5b5ad94b5a57bb59c7bad8c6394734294 +7b429473429c7b42947342947b42947b4aa58c5aa58c639c846384734a8c734a947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b4a8c734a8c73529c8463ad +946b9c84529c7b4a947342947b429473429c7b429473429473429c8c63ad9c7b9c8c73949c8c9ca58cad8c63947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b42ce8c42e7ffe7947384947b429473429c7b42947342ce9442deffe79c7b8c947342ffd68cdeffff9c7b8cbd7342ffffcebdd6ff9c7b42dea542e7ffff9473 +84bd7b42ffffc694adce947342d69442deffe7ad7b8cffefa5adc6e7947342ce9442deffe79c7b8cce8c42e7ffe79473849c7b42ce8c42e7ffe7947384d69442 +deffe7947b8cad7342ffefada5bde7947b42ce8c42e7ffe7947384ce9442deffe79c7b8c947342947b42947342d69442deffe7947b8c9473429c7b4294734294 +7b42947342d69442deffe7947b8cad7342ffefada5bde7947b42ce8c42e7ffe7947384bd7b42ffffc69cadce947342ce9442deffe7d6948cdeffe7947b8cce8c +42e7ffe7947384947b42bd7342ffffce94a5c6947b42efbd63d6efff947363ce9442deffe79c7b8c947342ce9442deffe79c7b8cce8c42e7ffe7947384bd7b42 +ffffc694adce947342d69442deffe7f7c6adbdd6ff9c7b42ce8c42e7ffe79473849c7b42947342ce9442deffe79c7b8c947342947b429473429c7b42ce8c42e7 +ffe7947384ad7b42ffefa5adc6e7947342e7ad42ffffff94adce9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429c7b4ab5ad94b5cec6 +bdb59cb5a584a5946b947342947b429473429c7b429473429c7b4a9c7b4aa5946ba5946b94845a846b4a947b4a947b429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b4a947b528c73529c845aad9473a58c639c7b4a9473429c7b42947342947342635a42526363848484b5a5849c9484849c9cb59c7b9c7b4a94 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b42947342d6944adeffe79c7b8c9473429c7b429473429c7b42bd7342ffffceadbde79c7b42ce8c42e7ffef94738cbd7b42ef +ffc69c94ad947342ad7b42ffefad9cadcece9442d6efef9473639c7b429473429c7b42ce8c42e7ffef94738c9c7b429473429c7b42947342d69442deffe79c7b +8c947342d69442deffe79c7b8cce9442e7ffef94738cd6944adeffe79c7b8c9473429c7b429473429c7b42ce8c42e7ffef94738c9c7b429473429c7b42ce9442 +e7ffef94738c9c7b429473429c7b429473429c7b42ce9442e7ffef94738cd6944adeffe79c7b8c9473429c7b429473429c7b42ce8c42d6f7ef9473639c7b4294 +73429c7b42ce9442e7ffef94738cd6944adeffe79c7b8c947342d6944aceefe79c7b6b947342c67b4af7ffc69c94adce8c42e7ffef94738c9c7b42ce8c42e7ff +ef94738cd69442deffe79c7b8cce9442d6efef9473639c7b429473429c7b429473429c7b42947342bd7b42deffc69c7b8c9473429c7b42ce8c42e7ffef94738c +9c7b429473429c7b42947342d69442deffe79c7b8cce9442e7ffef94738c9c7b42ad7342ffefad94a5c69c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b42947342bda584a5c6bdadbdadb5ad8c949c94526b7352524a7b6339947b429473429c7b429c7b52ad9473a5946b8c7352846b42947b4a947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b42947b4a8473528c7352a5946bad94739c84529473427b6b42424231294a5a2173a55a9cbd +a5a58ca5a58c84a5ad94ada59c9473947b4a947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42ce8c42e7ffe79473849c7b42947342947b429473429c7b42947342ffd68c +ffffffffffffdeffff947b8cbd7342e7ffce947384947b42947342ffde8c94a5c6e7ad42ceefff9c7b6b947342947b42947342d69442ffffe7ffffffffffffff +ffffefffff9494adce8c42e7ffe7947384947b42ce8c42e7ffe7947384ce9442deffe79c7b8cce8c42ffffe7fffffffffffffffffff7ffff948ca5d69442deff +e7947b8c9473429c7b42947342ce9442deffe79c7b8c947342947b429473429c7b42947342ce9442deffe79c7b8cce8c42ffffe7fffffffffffffffffff7ffff +948ca5e7ad42ceefff947b6b9473429c7b42947342ce9442deffe79c7b8cce8c42e7ffe79473849c7b42dea542ceefff9473639c7b42a57342f7efad948ca5d6 +9442deffe7947b8c947342d69442deffe7947b8cce8c42e7ffe7947384e7ad42ceefff9c7b6b947342947b429473429c7b42dea542ffffffffffffbddeff9473 +42947b42947342d69442deffe7947b8c9473429c7b42947342947b42ce8c42e7ffe7947384ce9442ceefe79c7b6b947342ad7b42ffefa59cadce947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b42947b426b9ca5adad9cadceceb5b594c6b5946b848c315263293131394239635a4a9c7b4a9c8c63ad9c73a5946b8473 +4a84734a9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4a947b4a8c7b5a846b4aa5946bad9c739484 +63424239313131293139296b8c3194c6739cb5bdad84a5a58c7b9ca5ada58c427b9c9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d69442deffe79c7b8c9473429c7b +429473429c7b429473429c7b429473429c7b42ce9442e7ffef94738cc67b4af7ffc69c94ad947342ad7b4affefad9cadcece8c42d6f7ef9473639c7b42947342 +9c7b42ce9442e7ffef94738c9c7b42bd7342f7ffce948cadd6944adeffe79c7b8c947342d6944adeffe79c7b8cce8c42e7ffef94738cd69442deffe79c7b8c94 +7342bd7b42efffc69c94adce9442e7ffef94738c9c7b429473429c7b42ce8c42ffffefffffffffffffffffffffffffceefff9c7b6bce8c42e7ffef94738cd694 +42deffe79c7b8c947342bd7b42efffc69c94adce9442d6efef9473639c7b429473429c7b42ce8c42e7ffef94738cd69442deffe79c7b8c947342d69442ceefe7 +9c7b6b947342bd7b42efffc69c94adce9442e7ffef94738c9c7b42ce9442e7ffef94738cd6944adeffe79c7b8cce8c42d6f7ef9473639c7b429473429c7b42bd +7342ffffce94a5c69c7b429473429c7b429473429c7b42ce9442e7ffef94738c9c7b429473429c7b42947342d6944adeffe79c7b8cce8c42e7ffef94738c9c7b +42ad7342fff7ad94adc69c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b42947b4a5a94ad8ca59cb5cebdadc6b5bdb59c738c94395a6b29393931313129313939 +4a5263736ba5946b947b5a84734a8c734a947b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b42947342948463846b4a9c846352524a313939292921293131293939295a734a849c9c9c8ca5a58484b5b59ca5945a8ca55a737b947b4a947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b42ce8c42e7ffe7947384947b429473429c7b42947342ad7b42ffefa59cadce947342f7c66bceefff9c7b6bbd7342ffffcebdd6ff9c7b42dea542e7ffff9473 +84bd7b42ffffc694adce947342e7ad42ceefffad7b6bffefa5adc6e7947342e7ad42ceefff9c7b6bce8c42ffffe794a5c69c7b42dea542ceefff947363d69442 +deffe7947b8cad7342ffefada5bde7947b42dea542d6efff947363ce9442ffffe79cadce947342947b42947342d69442deffe7947b8c9473429c7b4294734294 +7b42947342d69442deffe7947b8cad7342ffefada5bde7947b42dea542d6efff947363bd7b42ffffc69cadce947342e7ad42ceefffd6946bdeffe7947b8cce8c +42ffffe794a5c6947b42bd7342ffffce94a5c6947b42efbd63d6efff947363ce9442ffffe79cadce947342e7ad42ceefff9c7b6bce8c42e7ffe7947384bd7b42 +ffffc694adce947342e7ad42ceefffce946bdeffe79c7b8cce8c42e7ffe79473849c7b42947342ce9442deffe79c7b8c947342947b429473429c7b42ce8c42e7 +ffe7947384ad7b42ffefa5adc6e7947342e7ad42ffffff94adce9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734a73847342adc6b5b59cb5d6cebdc6a5b5ad94 +5a73732942422939312931313139392939394a4a4a8473528c734a947b4a9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b4a947b4a9c8c637b7b6b4a4a4231312931312929292929313129393931526363848cbdad8cadad94bdb59c94 +94843184b58c7b4a9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b42947342d6944adeffe79c7b8c9473429c7b429473429c7b42947342d6944affffe7ffffffffffff9cadce947342bd7b42ef +ffc6f7decefffffff7ffff948cad9c7b42947342d69442ffffe7fffffff7ffff9c94ad947342c67b4affffc6ffffffdeffff9c7b8c947342d69442deefe7fff7 +ceffffffffffff94a5c6c67b4affffc6ffffffdeffff9c7b8cbd7342ffffceffffffe7ffff94738c9c7b42ce8c42e7f7efffefc6e7ffff94738c9c7b42ce9442 +e7ffef94738c9c7b429473429c7b429473429c7b42ce9442e7ffef94738c9c7b42bd7342ffffceffffffe7ffff94738c9c7b42947342d6944affffe7ffffffef +ffffc694adffffc6ffffffdeffffd6948cdeefe7ffefcedeffff9c7b8cce9442ffffefffffffe7ffff94738c9c7b42ce8c42e7f7efffefc6ffffffffffff9cad +ce947342d69442deffe79c7b8c947342d69442ffffe7fffffff7ffff9c94ad947342f7c66bffffffffffffadbde79c7b429473429c7b42ce8c42e7ffef94738c +9c7b429473429c7b42bd7342ffffceffffffe7ffff94738cbd7b42ffffc6ffffffdeefffffefce94a5c69c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473428c7b52427b +8c52a5c6bdad94c6bda5bdb5949494844a5a5a2939422931392939422931393131393139426b63529473429c7b4a947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947b4a6b7b7b394a4a313942293131313131292929293131 +293139526363ad9c7bbdad84bdad8cad9c84216b94847b639473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42ce8c42e7ffe79473849c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b42bd7342f7ffce948ca5947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342ce9442deffe79c7b8c947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342ce9442deffe79c7b8c947342947b429473429c7b42947342ce9442deffe79c7b8c947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342ce9442deffe79c7b8c947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b42947342d69442deffe7947b8c9473429c7b42947342947b42ce8c42e7ffe7947384947b429473429c7b42947342ad7b42ffefa59cadce947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b4a847b5a4284a55a9cb5c6b59cc6b594c6b5947b8c84425a6329394a29394a293942314a5229526b3963845a73739c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b426b7b734a6b +73395263314a5231424a29424229394229424a4a5a5a9c947bbdad7bc6ad8cb59c84295a7b6b847b947b4a9473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d69442deffe79c7b8c9473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b42947342c67b4af7ffc69c94ad9473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42ce8c42e7ffef94738c9c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b42ce8c42ffffeffffffffffffffffffffffffff7ffff9c94adce8c42e7ffef94738c9c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42ce8c42e7ffef94738c9c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342d6944adeffe79c7b8c9473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b42ce9442e7ffef94738c9c7b429473429c7b42947342d6944adeffe79c7b8c9473429c7b429473429c7b +42ad7342fff7ad94adc69c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b4294734a7b84734284ad4a94bdbdad94c6b594ad9c84638ca5316b8c296384296384316b8c296b9431 +7bad398cb563949c947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342737b73528c9c4a8ca5397b94396b84315a6b31526329526b426b7b7b8c84bdad84bda584ad9c7b294a636b7b848c734a947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342947b5273847b4a84ad4284a5ada58cb5a58c8c948c4a84a5 +3184b53184bd318cc63194c6319cce39a5ce4ab5ce6ba5a59c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b42847b6363adbd52b5ce52b5ce4aa5bd4a9cb5428ca5428cad428cad6394ada5a594b5a58c84 +8c7b396373737b6b947b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947b4a7b84734273 +944a8cad737b73848c845a84944294ad39a5c642adce39a5ce42b5ce42bdce4ac6d652b5bd7b948c9473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947342947b5263b5ad5aced65acece52ced652c6ce52c6d6 +4abdce4ab5ce4a9cbd7394a57b8c8c63849c426b84847b5a9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b4a8c7b5a4a7b9c52a5ce5a6b6b526b7352848c4a9cad52adbd4aadb552adbd4ab5c652c6d652ced66bbdb58c845a9c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473427bad +946bd6c663e7d65aded65ad6d65ad6d65ad6d652c6ce52a5bd4a849c4a84ad4a8cad5a7b8c8c734a9c7b4a9473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b4a5a84945a9cbd526b735a635a5a6b735a7b7b52737b5a7b84527b8c528c9c4aa5b55a +bdc673ad949c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b428c84527bbda563d6c663ded65ad6ce5aced652bdc652adbd528ca5527b944284a552849c73736b947b4a947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947b428c8c736b94a5638c9c5a635a6363635a6363 +5a6b6b526363527373526b7b5a848c6b9c8c948c639473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b428c946b73bdad63d6c65ad6d652b5ce529cc64a7b9c4a7b944a84a552849c6b +736b9c7b4a9473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +427b847b6b9cad636b6b5a5a525a6363525a5a525a5a525a5252635a6b73638c8c6b947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429484527bad945abdbd5aadc6 +529cbd528ca54a6b7b5a7b8c6b7b7b9c7b4a947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473428c846b6b8c9c63737b5a6b6b5a6b635a635a63635a7b735a9c7b529473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429484528494737b9c8c7b948c8c8c73947b4a9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42947b429c845a947b529c7b4a9473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294734200009473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42 +947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4294734294 +7b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473 +429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b4200009c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473420000947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b429473 +42947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b42 +9473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c7b42947342947b429473429c +7b42947342947b429473429c7b42947342947b4200009c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b42947342 +9c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b4294 +73429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b +429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473429c7b429473420000040000002701ffff030000000000}}}{\rtlch\fcs1 +\ab\af38\afs22 \ltrch\fcs0 \b\fs22\insrsid2184557 +\par +\par }{\rtlch\fcs1 \ab\af38\afs22 \ltrch\fcs0 \b\fs22\insrsid471974\charrsid471974 \hich\af0\dbch\af13\loch\f0 PROTEUS PROFESSIONAL}{\rtlch\fcs1 \ab\af38\afs22 \ltrch\fcs0 \b\fs22\insrsid471974 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \ab\af38\afs22 +\ltrch\fcs0 \b\fs22\insrsid9581771 \hich\af0\dbch\af13\loch\f0 LICENCE AGREEMENT +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid9581771 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid9581771 {\rtlch\fcs1 \af38 \ltrch\fcs0 \fs22\insrsid9581771 \hich\af0\dbch\af13\loch\f0 +This End-User License Agreement ("EULA") is a legal agreement between you (either an individual or a single entity) and Labcenter Electronics}{\rtlch\fcs1 \af38 \ltrch\fcs0 \fs22\insrsid14825906 \hich\af0\dbch\af13\loch\f0 Ltd}{\rtlch\fcs1 \af38 +\ltrch\fcs0 \fs22\insrsid14686644 \hich\af0\dbch\af13\loch\f0 \hich\f0 (\'93\loch\f0 \hich\f0 Labcenter\'94\loch\f0 )}{\rtlch\fcs1 \af38 \ltrch\fcs0 \fs22\insrsid14825906 .}{\rtlch\fcs1 \af38 \ltrch\fcs0 \fs22\insrsid9581771 \hich\af0\dbch\af13\loch\f0 + The SOFTWARE(s) i\hich\af0\dbch\af13\loch\f0 dentified above, which includes the Documentation, any associated SOFTWARE components, any media, any printed materi}{\rtlch\fcs1 \af38 \ltrch\fcs0 \fs22\insrsid15729248 \hich\af0\dbch\af13\loch\f0 +als, is referred to as "Software}{\rtlch\fcs1 \af38 \ltrch\fcs0 \fs22\insrsid9581771 \hich\af0\dbch\af13\loch\f0 ". By installing, copying, or otherwise using the S}{\rtlch\fcs1 \af38 \ltrch\fcs0 \fs22\insrsid15729248 \hich\af0\dbch\af13\loch\f0 oftware}{ +\rtlch\fcs1 \af38 \ltrch\fcs0 \fs22\insrsid9581771 \hich\af0\dbch\af13\loch\f0 , you agree to be bound by the terms of this EULA.\hich\af0\dbch\af13\loch\f0 If you do not agree to the terms of this EULA, do not install or use the S}{\rtlch\fcs1 \af38 +\ltrch\fcs0 \fs22\insrsid15729248 \hich\af0\dbch\af13\loch\f0 oftware}{\rtlch\fcs1 \af38 \ltrch\fcs0 \fs22\insrsid9581771 \hich\af0\dbch\af13\loch\f0 . }{\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid9581771 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs22\alang1081 \ltrch\fcs0 \b\fs22\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid1840256\charrsid1840256 \hich\af0\dbch\af13\loch\f0 1.\tab}}\pard \ltrpar\ql \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid1840256 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid1840256\charrsid1840256 \hich\af0\dbch\af13\loch\f0 LICENC}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\b\fs22\ul\insrsid1725008 \hich\af0\dbch\af13\loch\f0 ING}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid1840256\charrsid1840256 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid1840256 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid9581771 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 \hich\af0\dbch\af13\loch\f0 You have purchased }{\rtlch\fcs1 \af38\afs22 +\ltrch\fcs0 \fs22\insrsid1725008 \hich\af0\dbch\af13\loch\f0 one or more }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 \hich\af0\dbch\af13\loch\f0 licence}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1725008 +\hich\af0\dbch\af13\loch\f0 s}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 \hich\af0\dbch\af13\loch\f0 to use the PROTEUS }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{ +\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1725008 \hich\af0\dbch\af13\loch\f0 . The maximum number of users for the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 +\ltrch\fcs0 \fs22\insrsid1725008 \hich\af0\dbch\af13\loch\f0 is stored in the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14756765 \hich\af0\dbch\af13\loch\f0 L}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1725008 \hich\af0\dbch\af13\loch\f0 +icence }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14756765 \hich\af0\dbch\af13\loch\f0 K}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1725008 \hich\af0\dbch\af13\loch\f0 ey }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14686644 +\hich\af0\dbch\af13\loch\f0 file }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1725008 \hich\af0\dbch\af13\loch\f0 and can be viewed at any time }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14686644 \hich\af0\dbch\af13\loch\f0 by opening the }{ +\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid3425956 \hich\af0\dbch\af13\loch\f0 L}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14686644 \hich\af0\dbch\af13\loch\f0 icence }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid3425956 +\hich\af0\dbch\af13\loch\f0 K}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14686644 \hich\af0\dbch\af13\loch\f0 ey file }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1725008 \hich\af0\dbch\af13\loch\f0 +via the Licence Manager utility. You are not permitted to exceed the maximum number of users, although you may increase the number of users by paying an additional licence fee to Labcenter.}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8522710 +\hich\af0\dbch\af13\loch\f0 Depe\hich\af0\dbch\af13\loch\f0 nding on the number of users specified in the licence key one of the following sub-clauses will apply.\line }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1725008 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs22\alang1081 \ltrch\fcs0 \fs22\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid8522710\charrsid8522710 \hich\af0\dbch\af13\loch\f0 a)\tab}}\pard \ltrpar +\qj \fi-360\li720\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\ls2\rin0\lin720\itap0\pararsid9581771 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8522710\charrsid8522710 \hich\af0\dbch\af13\loch\f0 +You have purchased a single user licence. This entitles you to run the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 S}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8522710\charrsid8522710 +\hich\af0\dbch\af13\loch\f0 oftware on a single computer at any one time. You may install the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 S}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid8522710\charrsid8522710 \hich\af0\dbch\af13\loch\f0 oftware on\hich\af0\dbch\af13\loch\f0 + a maximum of two machines, but you cannot run both copies at the same time. Installation or use of this licence in a virtual environment requires explicit permission from Labcenter Electronics Ltd.}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid8522710 \line \line }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1588038\charrsid8522710 \hich\af0\dbch\af13\loch\f0 The }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 S}{\rtlch\fcs1 \af38\afs22 +\ltrch\fcs0 \fs22\insrsid1588038\charrsid8522710 \hich\af0\dbch\af13\loch\f0 oftware must be installed either in a single geogra\hich\af0\dbch\af13\loch\f0 +phic location or in two locations for use by a single person (e.g. home computer and office computer). For the avoidance of doubt, it is not permissible to install a single user license in two site offices.}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid8522710 \line }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1588038 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs22\alang1081 \ltrch\fcs0 \fs22\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid8522710\charrsid15143816 \hich\af0\dbch\af13\loch\f0 b)\tab}}\pard \ltrpar +\qj \fi-360\li720\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\ls2\rin0\lin720\itap0\pararsid15143816 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8522710\charrsid15143816 \hich\af0\dbch\af13\loch\f0 You have purchased a multi-user licence.}{ +\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid15143816\charrsid15143816 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid15143816 \hich\af0\dbch\af13\loch\f0 This }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid15143816\charrsid15143816 +\hich\af0\dbch\af13\loch\f0 allows as many persons employed or hired as contractors (so long as such contractors have entered into an appropriate form of confidentiality agreement) by You to simultaneously use the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid15143816 \hich\af0\dbch\af13\loch\f0 Software }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid15143816\charrsid15143816 \hich\af0\dbch\af13\loch\f0 as are }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid15143816 +\hich\af0\dbch\af13\loch\f0 specified in the Licence key file.\line \line }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8529668 \hich\af0\dbch\af13\loch\f0 In a multi-us\hich\af0\dbch\af13\loch\f0 +er license the Software may be installed on as many computers as desired on a single LAN subnet. }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8522710\charrsid15143816 \hich\af0\dbch\af13\loch\f0 +The multi-user license is not a distributed license (sometimes known as a WAN license) for multiple sites or office networks and it is not permitted to use it \hich\af0\dbch\af13\loch\f0 across different geographic locations.}{\rtlch\fcs1 \af38\afs22 +\ltrch\fcs0 \fs22\insrsid354387 \line \line \hich\af0\dbch\af13\loch\f0 Some multi-user licensing options}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid6376840 \hich\af0\dbch\af13\loch\f0 + include server based licensing. In all such cases a separate EULA governing the licensing technology must also be accepted.}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8522710\charrsid15143816 \line \line \hich\af0\dbch\af13\loch\f0 +Educationally, a Departmental licence is bound to a singl\hich\af0\dbch\af13\loch\f0 +e department of the educational establishment only (not a faculty or an institute). Students are not to be given the licence keys or direct download details for the professional version.\line +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid8522710 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid8522710\charrsid8522710 \hich\af0\dbch\af13\loch\f0 +Labcenter reserves the right to remotely verify user status and comp\hich\af0\dbch\af13\loch\f0 liance with }{\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid7821327 \hich\af0\dbch\af13\loch\f0 these usage restrictions}{\rtlch\fcs1 \af38 \ltrch\fcs0 +\insrsid8522710\charrsid8522710 .}{\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid13046715 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid1588038\charrsid8522710 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid1840256 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs22\alang1081 \ltrch\fcs0 \b\fs22\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid1840256\charrsid338069 \hich\af0\dbch\af13\loch\f0 2.\tab}}\pard \ltrpar\ql \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid338069 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid1840256\charrsid338069 \hich\af0\dbch\af13\loch\f0 COPYRIGHT +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid1840256 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid8719511 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 \hich\af0\dbch\af13\loch\f0 +All title and copyright in all parts of the Package shall remain the proper}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256 \hich\af0\dbch\af13\loch\f0 ty of Labcenter Electronics Ltd }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid338069 +\hich\af0\dbch\af13\loch\f0 \hich\f0 and its suppliers, or the original copyright holders. The Qt GUI Toolkit is copyright \'a9\loch\f0 201}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8612060 \hich\af0\dbch\af13\loch\f0 4}{\rtlch\fcs1 \af38\afs22 +\ltrch\fcs0 \fs22\insrsid338069 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid12653122\charrsid12653122 \hich\af0\dbch\af13\loch\f0 Digia Plc and/or its subsidiary(-ies)}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid12653122 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid338069 \hich\af0\dbch\af13\loch\f0 and licensed under the LGPL version 2.1. }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1402283 +{\*\bkmkstart copyright}{\*\bkmkend copyright}\hich\af0\dbch\af13\loch\f0 QJson is}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1402283\charrsid1402283 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1402283 +\hich\af0\dbch\af13\loch\f0 c}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1402283\charrsid1402283 \hich\af0\dbch\af13\loch\f0 opyright }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1402283 \loch\af0\dbch\af13\hich\f0 \'a9\loch\f0 }{ +\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1402283\charrsid1402283 \hich\af0\dbch\af13\loch\f0 2010 Flavio Castelli}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1402283 \hich\af0\dbch\af13\loch\f0 and }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid1402283\charrsid1402283 \hich\af0\dbch\af13\loch\f0 licensed under the LGPL 2.1 }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid338069 \hich\af0\dbch\af13\loch\f0 \hich\f0 Some icons are copyright \'a9\hich\af0\dbch\af13\loch\f0 \hich\f0 + 2010 The Eclipse Foundation licensed under the Eclipse Public Licence version 1.0. Some executables are from binutils and are copyright \'a9\loch\f0 2010 The GNU Project, licensed under the GPL 2.}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid14184258 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid4214157 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13840563\charrsid8719511 \hich\af0\dbch\af13\loch\f0 +Portions of this software are copyright }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13840563 \loch\af0\dbch\af13\hich\f0 \'a9\loch\f0 2014 OpenCascade. }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8719511\charrsid8719511 +\hich\af0\dbch\af13\loch\f0 Portio\hich\af0\dbch\af13\loch\f0 ns of this software are copyright }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8719511 \loch\af0\dbch\af13\hich\f0 \'a9\loch\f0 2014}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid8719511\charrsid8719511 \hich\af0\dbch\af13\loch\f0 The FreeType Project (www.freetype.org). All rights reserved.}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8719511 \hich\af0\dbch\af13\loch\f0 + FreeType is licensed under the FreeType Licence.}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13840563 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13840563\charrsid8719511 \hich\af0\dbch\af13\loch\f0 +Portions of this }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13840563 \hich\af0\dbch\af13\loch\f0 software use}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8719511\charrsid8719511 \hich\af0\dbch\af13\loch\f0 + the FreeImage open source image library}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13840563 \hich\af0\dbch\af13\loch\f0 licensed under the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13840563\charrsid8719511 \hich\af0\dbch\af13\loch\f0 +FIPL}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13840563 \hich\af0\dbch\af13\loch\f0 , versio\hich\af0\dbch\af13\loch\f0 n 1.0}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8719511\charrsid8719511 \hich\af0\dbch\af13\loch\f0 +. See freeimage.sourceforge.net for details.}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13840563 \hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid12324810 \hich\af0\dbch\af13\loch\f0 Bonjour is }{\rtlch\fcs1 \af38 +\ltrch\fcs0 \insrsid12324810 \hich\af0\dbch\af13\loch\f0 Copyright (c) 2003-2004, Apple Computer, Inc. All rights reserve}{\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid12324810 \hich\af0\dbch\af13\loch\f0 d}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid8719511\charrsid8719511 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid1840256 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid338069 +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs22\alang1081 \ltrch\fcs0 \b\fs22\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid1840256\charrsid338069 \hich\af0\dbch\af13\loch\f0 3.\tab}}\pard \ltrpar\ql \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid338069 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid1840256\charrsid338069 \hich\af0\dbch\af13\loch\f0 LIMITED }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\b\fs22\ul\insrsid14825906 \hich\af0\dbch\af13\loch\f0 REMEDY AND DISCLAIMER}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid1840256\charrsid338069 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid1840256 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256\charrsid1840256 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid4331896 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 \hich\f0 +The licensed materials provided hereunder are provided \'93\loch\f0 \hich\f0 as is\'94\loch\f0 without warranty of any kind, either express, implied or statutory, including without limitation, any warr\hich\af0\dbch\af13\loch\f0 anty with respect to non} +{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 -}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 infringement, merchantability or fitness for a particular purpose.}{\rtlch\fcs1 +\af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 +\par \hich\af0\dbch\af13\loch\f0 Labcenter\hich\f0 \rquote \loch\f0 s sole liability and Your exclusive remedy with respect to any failure of the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 \hich\af0\dbch\af13\loch\f0 Software }{\rtlch\fcs1 +\af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 to perform in accordance with their specifications during the firs\hich\af0\dbch\af13\loch\f0 +t (90) days after receipt by You will be limited to error correction or replacement, or if neither is in Labcenter\hich\f0 \rquote \loch\f0 +s opinion commercially feasible, termination of this EULA and refund of any license fee received by Labcenter from You in respect of the rel\hich\af0\dbch\af13\loch\f0 e\hich\af0\dbch\af13\loch\f0 vant }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid14825906 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 . }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 +\par +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 In the event of failure of any of the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 \hich\af0\dbch\af13\loch\f0 Software }{\rtlch\fcs1 +\af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 +to perform in accordance with their specifications after said ninety (90) day period, Labcenter shall have no obligation to replace or refund Your monies in connection therewith. Labcenter does not warrant that the functions contained in any of the }{ +\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 \hich\af0\dbch\af13\loch\f0 Softwar\hich\af0\dbch\af13\loch\f0 e }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 +will meet Your requirements, or that the operation of the Licensed Materials will be uninterrupted or error free, or that defects in the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 \hich\af0\dbch\af13\loch\f0 Software }{\rtlch\fcs1 +\af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 will be corrected. Furthermore, Labcenter does not warrant or make any representations regarding Your use or\hich\af0\dbch\af13\loch\f0 + the results of Your use of the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 \hich\af0\dbch\af13\loch\f0 Software }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 +in terms of correctness, accuracy, reliability or otherwise.}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1840256 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid14825906 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs22\alang1081 \ltrch\fcs0 \b\fs22\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 4.\tab}}\pard \ltrpar\ql \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid14825906 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid14825906\charrsid14825906 \hich\af0\dbch\af13\loch\f0 LIMITATION OF LIABILITY +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid4331896 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid14825906 +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid11757339 \hich\af0\dbch\af13\loch\f0 The entire liability of Labcenter in respect of any breach of its contractual obligations arising under this EULA and any rep +\hich\af0\dbch\af13\loch\f0 resentation, statement or }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid4331896 \hich\af0\dbch\af13\loch\f0 torti}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid4331896\charrsid11757339 \hich\af0\dbch\af13\loch\f0 ous}{ +\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid11757339 \hich\af0\dbch\af13\loch\f0 act or omission, including negligence or intentional conduct arising under or in connection with this }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid4331896 \hich\af0\dbch\af13\loch\f0 EULA}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid11757339 \hich\af0\dbch\af13\loch\f0 \hich\f0 (together an \'93\loch\f0 \hich\f0 event of default\'94\loch\f0 +) shall be limited to damages in an amount equal to all fees paid by you to Labcent\hich\af0\dbch\af13\loch\f0 er in the preceding twelve (12) months for the applicable }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid11757339\charrsid11757339 +\hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid11757339 \hich\af0\dbch\af13\loch\f0 . +\par +\par \hich\af0\dbch\af13\loch\f0 Notwithstanding the foregoing, Labcenter will not be liable to you with respect to any event of default for loss of data, profits, goodwill or any type of special, indirect, exemplary or\hich\af0\dbch\af13\loch\f0 + consequential damages (including loss or damage suffered by you as a result of any action brought by a third party) even if such damage was reasonably foreseeable or Labcenter had been advised of the possibility of your incurring the same, and regardless +\hich\af0\dbch\af13\loch\f0 \hich\af0\dbch\af13\loch\f0 of whether such event of default is styled as being based upon contract, tort, statutory or other law. +\par +\par \hich\af0\dbch\af13\loch\f0 This limitation shall apply notwithstanding the failure of the essential purpose of any limited remedies herein, to the extent permitted by law. Nothin\hich\af0\dbch\af13\loch\f0 +g in this section will confer any right or remedy upon you to which you would not otherwise be legally entitled. You acknowledge that except as set forth herein, no promise, representation, warranty or undertaking has been made by Labcenter to you or to a +\hich\af0\dbch\af13\loch\f0 n\hich\af0\dbch\af13\loch\f0 y person on your behalf as to the profitability or any other consequences or benefits to be obtained from use of the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid11757339\charrsid11757339 +\hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid11757339 \hich\af0\dbch\af13\loch\f0 . You have relied solely upon your own skill and judgment in acquiring the licensed materials.}{\rtlch\fcs1 +\af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906 +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid15629780 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs22\alang1081 \ltrch\fcs0 \b\fs22\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid15629780\charrsid15629780 \hich\af0\dbch\af13\loch\f0 5.\tab}}\pard \ltrpar\ql \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid15629780 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid15629780\charrsid15629780 \hich\af0\dbch\af13\loch\f0 INDEMNIFICATION FOR SPECIFIC APP\hich\af0\dbch\af13\loch\f0 +LIANCES}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid15629780 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid15629780 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid15629780 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid15629780 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid15629780\charrsid15629780 \hich\af0\dbch\af13\loch\f0 +In the event that You use the Software in connection with one or more of the following applications: the operation of weapons, weapons systems, nuclear installations, means of mass tran\hich\af0\dbch\af13\loch\f0 +sportation, aviation, life-support computers or equipment (including resuscitation equipment and surgical implants), pollution control, hazardous substances management, or for any other application in which the failure of the Licensed User Products could +\hich\af0\dbch\af13\loch\f0 c\hich\af0\dbch\af13\loch\f0 +reate a situation where personal injury or death may occur, You shall indemnify, defend and hold Labcenter and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, expenses, and reasonable attorn +\hich\af0\dbch\af13\loch\f0 e\hich\af0\dbch\af13\loch\f0 +y fees arising out of, directly or indirectly, any claim of personal injury, death, or other damages associated with such unintended or unauthorized use, even if such claim alleges that Labcenter was negligent regarding the design of the Software. +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid14825906\charrsid1840256 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \ab\af0\afs22\alang1081 \ltrch\fcs0 \b\fs22\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid924766 \hich\af0\dbch\af13\loch\f0 6.\tab}}\pard \ltrpar\ql \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid16542082 {\rtlch\fcs1 \ab\af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid924766 \hich\af0\dbch\af13\loch\f0 VALIDATION}{\rtlch\fcs1 \ab\af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid9581771 + +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid16542082 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid16542082 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid9796446 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid16542082 \hich\af0\dbch\af13\loch\f0 +The Proteus professional software communicates periodically with Labcenter servers to check and provide feedback on updates and new releases of the software. This data is also used to provide access to internet based services such as component +\hich\af0\dbch\af13\loch\f0 PDF downloads. The information transmitted includes the license key and the version of the software in use}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1332617 .}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid16542082 +\hich\af0\dbch\af13\loch\f0 }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1332617 \hich\af0\dbch\af13\loch\f0 It may also contain usage data on specific features of the software that can be used to help }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Labcenter}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1332617 \hich\af0\dbch\af13\loch\f0 better target product development. }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 +\hich\af0\dbch\af13\loch\f0 I}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid1332617 \hich\af0\dbch\af13\loch\f0 t}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid16542082 \hich\af0\dbch\af13\loch\f0 does no\hich\af0\dbch\af13\loch\f0 +t contain any personal information or data. By using the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid16542082 \hich\af0\dbch\af13\loch\f0 +, you consent to the transmission of this information. +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid4331896 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid16542082 +\par \hich\af0\dbch\af13\loch\f0 If in the course of transmission it is determined that the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid16542082 +\hich\af0\dbch\af13\loch\f0 is pirated or otherwise not fully licensed then the functionality o\hich\af0\dbch\af13\loch\f0 r experience of using the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{ +\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid16542082 \hich\af0\dbch\af13\loch\f0 may be affected.}{\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid16542082 +\par }\pard \ltrpar\ql \li360\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin360\itap0\pararsid16542082 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid16542082 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \ab\af0\afs22\alang1081 \ltrch\fcs0 \b\fs22\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid9581771 \hich\af0\dbch\af13\loch\f0 7.\tab}}\pard \ltrpar\qj \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid924766 {\rtlch\fcs1 \ab\af38\afs22 \ltrch\fcs0 \b\fs22\ul\insrsid9581771 \hich\af0\dbch\af13\loch\f0 RESTRICTIONS +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid924766 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid924766 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid4331896 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 The }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 + is licensed, not sold. This agreement only gives you some rights to use the features included in the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 edition you licensed. Labcenter reserves all other rights. Unle\hich\af0\dbch\af13\loch\f0 ss applicable law gives you more rights despite this limitation, you may use the }{\rtlch\fcs1 +\af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 + only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 that only allow you to use it in certain wa\hich\af0\dbch\af13\loch\f0 ys. You may not +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid7947439 \hich\af0\dbch\af13\loch\f0 7}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 .1 Work around any technical limitations in the }{\rtlch\fcs1 +\af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 ; +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid7947439 \hich\af0\dbch\af13\loch\f0 7}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 .2 Reverse engineer, decompile or disassemble the }{\rtlch\fcs1 +\af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 +, except and only to the extent that applicable law expressly permits, despite this limitation; +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid7947439 \hich\af0\dbch\af13\loch\f0 7}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 .3 Make more copies of\hich\af0\dbch\af13\loch\f0 the }{ +\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 + than specified in this agreement or allowed by applicable law, despite this limitation; +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid7947439 \hich\af0\dbch\af13\loch\f0 7}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 .4 Publish the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 for others to copy; +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid7947439 \hich\af0\dbch\af13\loch\f0 7}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 .5 Use the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 in any way that is against the law; +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid7947439 \hich\af0\dbch\af13\loch\f0 7}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 .6 Rent, lease or lend the }{\rtlch\fcs1 \af38\afs22 +\ltrch\fcs0 \fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 ; or +\par }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid7947439 \hich\af0\dbch\af13\loch\f0 7}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 .7 Use the }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 +\fs22\insrsid13046715 \hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 for commercial }{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid13046715 +\hich\af0\dbch\af13\loch\f0 Software}{\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid924766\charrsid11757339 \hich\af0\dbch\af13\loch\f0 hosting services. +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid924766 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid2755292 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\alang1081 \ltrch\fcs0 \b\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid8325636 \hich\af0\dbch\af13\loch\f0 8.\tab}}\pard \ltrpar\ql \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid8325636 {\rtlch\fcs1 \af38 \ltrch\fcs0 \b\ul\insrsid8325636 \hich\af0\dbch\af13\loch\f0 WAIVER}{\rtlch\fcs1 \af38 \ltrch\fcs0 \b\insrsid8325636\charrsid1967333 \tab }{\rtlch\fcs1 +\af38 \ltrch\fcs0 \b\insrsid8325636 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid8325636 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid8325636 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid4331896 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid8325636\charrsid11757339 \hich\af0\dbch\af13\loch\f0 +The failure of a party to exercise or enforce any right under this Agreement shall not be deemed to be a waiver of that right\hich\af0\dbch\af13\loch\f0 , nor operate to bar the exercise or enforcement of it at any time or times thereafter. +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid2755292 {\rtlch\fcs1 \af38 \ltrch\fcs0 \b\insrsid8325636 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\alang1081 \ltrch\fcs0 \b\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid8325636 \hich\af0\dbch\af13\loch\f0 9.\tab}}\pard \ltrpar\ql \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid8325636 {\rtlch\fcs1 \af38 \ltrch\fcs0 \b\ul\insrsid8325636 \hich\af0\dbch\af13\loch\f0 SEVERABILITY +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid8325636 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid8325636 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid4331896 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid8325636\charrsid8325636 \hich\af0\dbch\af13\loch\f0 +If any part of this Agreement becomes invalid, illegal or unenforceable, the parties shall negotiate in good faith in order to agree the terms of a mu\hich\af0\dbch\af13\loch\f0 +tually satisfactory provision to be substituted for the invalid, illegal or unenforceable provision which as nearly as possible validly gives effect to their intentions as expressed in this Agreement. Failure to agree on such a provision within six months +\hich\af0\dbch\af13\loch\f0 \hich\af0\dbch\af13\loch\f0 +of commencement of those negotiations shall result in automatic termination of this Agreement. The obligations of the parties under any invalid, illegal or unenforceable provision of the agreement shall be suspended during such a negotiation.}{ +\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid8325636 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid2755292 {\rtlch\fcs1 \af38 \ltrch\fcs0 \b\insrsid8325636 +\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\alang1081 \ltrch\fcs0 \b\lang2057\langfe2052\dbch\af13\langfenp2052\insrsid8325636\charrsid8325636 \hich\af0\dbch\af13\loch\f0 10.\tab}}\pard \ltrpar\ql \fi-360\li360\ri0\nowidctlpar +\jclisttab\tx360\wrapdefault\aspalpha\faauto\ls1\rin0\lin360\itap0\pararsid8325636 {\rtlch\fcs1 \af38 \ltrch\fcs0 \b\ul\insrsid8325636\charrsid8325636 \hich\af0\dbch\af13\loch\f0 GOVERNIN\hich\af0\dbch\af13\loch\f0 G LAW AND JURISDICTION}{\rtlch\fcs1 +\af38 \ltrch\fcs0 \b\insrsid2755292\charrsid1967333 \tab }{\rtlch\fcs1 \af38 \ltrch\fcs0 \b\insrsid8325636 +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid8325636 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid8325636 +\par }\pard \ltrpar\qj \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid4331896 {\rtlch\fcs1 \af38\afs22 \ltrch\fcs0 \fs22\insrsid2755292\charrsid11757339 \hich\af0\dbch\af13\loch\f0 +This Agreement shall be governed by and construed in accordance with English law and each party hereby irrevocably submits to the jurisdiction of the English Courts. +\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\aspalpha\faauto\rin0\lin0\itap0\pararsid924766 {\rtlch\fcs1 \af38 \ltrch\fcs0 \insrsid2755292\charrsid924766 +\par }{\*\themedata 504b030414000600080000002100e9de0fbfff0000001c020000130000005b436f6e74656e745f54797065735d2e786d6cac91cb4ec3301045f748fc83e52d4a +9cb2400825e982c78ec7a27cc0c8992416c9d8b2a755fbf74cd25442a820166c2cd933f79e3be372bd1f07b5c3989ca74aaff2422b24eb1b475da5df374fd9ad +5689811a183c61a50f98f4babebc2837878049899a52a57be670674cb23d8e90721f90a4d2fa3802cb35762680fd800ecd7551dc18eb899138e3c943d7e503b6 +b01d583deee5f99824e290b4ba3f364eac4a430883b3c092d4eca8f946c916422ecab927f52ea42b89a1cd59c254f919b0e85e6535d135a8de20f20b8c12c3b0 +0c895fcf6720192de6bf3b9e89ecdbd6596cbcdd8eb28e7c365ecc4ec1ff1460f53fe813d3cc7f5b7f020000ffff0300504b030414000600080000002100a5d6 +a7e7c0000000360100000b0000005f72656c732f2e72656c73848fcf6ac3300c87ef85bd83d17d51d2c31825762fa590432fa37d00e1287f68221bdb1bebdb4f +c7060abb0884a4eff7a93dfeae8bf9e194e720169aaa06c3e2433fcb68e1763dbf7f82c985a4a725085b787086a37bdbb55fbc50d1a33ccd311ba548b6309512 +0f88d94fbc52ae4264d1c910d24a45db3462247fa791715fd71f989e19e0364cd3f51652d73760ae8fa8c9ffb3c330cc9e4fc17faf2ce545046e37944c69e462 +a1a82fe353bd90a865aad41ed0b5b8f9d6fd010000ffff0300504b0304140006000800000021006b799616830000008a0000001c0000007468656d652f746865 +6d652f7468656d654d616e616765722e786d6c0ccc4d0ac3201040e17da17790d93763bb284562b2cbaebbf600439c1a41c7a0d29fdbd7e5e38337cedf14d59b +4b0d592c9c070d8a65cd2e88b7f07c2ca71ba8da481cc52c6ce1c715e6e97818c9b48d13df49c873517d23d59085adb5dd20d6b52bd521ef2cdd5eb9246a3d8b +4757e8d3f729e245eb2b260a0238fd010000ffff0300504b03041400060008000000210030dd4329a8060000a41b0000160000007468656d652f7468656d652f +7468656d65312e786d6cec594f6fdb3614bf0fd87720746f6327761a07758ad8b19b2d4d1bc46e871e698996d850a240d2497d1bdae38001c3ba618715d86d87 +615b8116d8a5fb34d93a6c1dd0afb0475292c5585e9236d88aad3e2412f9e3fbff1e1fa9abd7eec70c1d1221294fda5efd72cd4324f1794093b0eddd1ef62fad +79482a9c0498f184b4bd2991deb58df7dfbb8ad755446282607d22d771db8b944ad79796a40fc3585ee62949606ecc458c15bc8a702910f808e8c66c69b9565b +5d8a314d3c94e018c8de1a8fa94fd05093f43672e23d06af89927ac06762a049136785c10607758d9053d965021d62d6f6804fc08f86e4bef210c352c144dbab +999fb7b4717509af678b985ab0b6b4ae6f7ed9ba6c4170b06c788a705430adf71bad2b5b057d03606a1ed7ebf5babd7a41cf00b0ef83a6569632cd467faddec9 +699640f6719e76b7d6ac355c7c89feca9cccad4ea7d36c65b258a206641f1b73f8b5da6a6373d9c11b90c537e7f08dce66b7bbeae00dc8e257e7f0fd2badd586 +8b37a088d1e4600ead1ddaef67d40bc898b3ed4af81ac0d76a197c86826828a24bb318f3442d8ab518dfe3a20f000d6458d104a9694ac6d88728eee2782428d6 +0cf03ac1a5193be4cbb921cd0b495fd054b5bd0f530c1931a3f7eaf9f7af9e3f45c70f9e1d3ff8e9f8e1c3e3073f5a42ceaa6d9c84e5552fbffdeccfc71fa33f +9e7ef3f2d117d57859c6fffac327bffcfc793510d26726ce8b2f9ffcf6ecc98baf3efdfdbb4715f04d814765f890c644a29be408edf3181433567125272371be +15c308d3f28acd249438c19a4b05fd9e8a1cf4cd296699771c393ac4b5e01d01e5a30a787d72cf1178108989a2159c77a2d801ee72ce3a5c545a6147f32a9979 +3849c26ae66252c6ed637c58c5bb8b13c7bfbd490a75330f4b47f16e441c31f7184e140e494214d273fc80900aedee52ead87597fa824b3e56e82e451d4c2b4d +32a423279a668bb6690c7e9956e90cfe766cb37b077538abd27a8b1cba48c80acc2a841f12e698f13a9e281c57911ce298950d7e03aba84ac8c154f8655c4f2a +f074481847bd804859b5e696007d4b4edfc150b12addbecba6b18b148a1e54d1bc81392f23b7f84137c2715a851dd0242a633f900710a218ed715505dfe56e86 +e877f0034e16bafb0e258ebb4faf06b769e888340b103d331115bebc4eb813bf83291b63624a0d1475a756c734f9bbc2cd28546ecbe1e20a3794ca175f3fae90 +fb6d2dd99bb07b55e5ccf68942bd0877b23c77b908e8db5f9db7f024d9239010f35bd4bbe2fcae387bfff9e2bc289f2fbe24cfaa301468dd8bd846dbb4ddf1c2 +ae7b4c191ba8292337a469bc25ec3d411f06f53a73e224c5292c8de0516732307070a1c0660d125c7d44553488700a4d7bddd3444299910e254ab984c3a219ae +a4adf1d0f82b7bd46cea4388ad1c12ab5d1ed8e1153d9c9f350a3246aad01c6873462b9ac05999ad5cc988826eafc3acae853a33b7ba11cd1445875ba1b236b1 +399483c90bd560b0b0263435085a21b0f22a9cf9356b38ec6046026d77eba3dc2dc60b17e92219e180643ed27acffba86e9c94c7ca9c225a0f1b0cfae0788ad5 +4adc5a9aec1b703b8b93caec1a0bd8e5de7b132fe5113cf312503b998e2c2927274bd051db6b35979b1ef271daf6c6704e86c73805af4bdd476216c26593af84 +0dfb5393d964f9cc9bad5c313709ea70f561ed3ea7b053075221d51696910d0d339585004b34272bff7213cc7a510a5454a3b349b1b206c1f0af490176745d4b +c663e2abb2b34b23da76f6352ba57ca2881844c1111ab189d8c7e07e1daaa04f40255c77988aa05fe06e4e5bdb4cb9c5394bbaf28d98c1d971ccd20867e556a7 +689ec9166e0a522183792b8907ba55ca6e943bbf2a26e52f48957218ffcf54d1fb09dc3eac04da033e5c0d0b8c74a6b43d2e54c4a10aa511f5fb021a07533b20 +5ae07e17a621a8e082dafc17e450ffb739676998b48643a4daa7211214f623150942f6a02c99e83b85583ddbbb2c4996113211551257a656ec1139246ca86be0 +aadedb3d1441a89b6a929501833b197fee7b9641a3503739e57c732a59b1f7da1cf8a73b1f9bcca0945b874d4393dbbf10b1680f66bbaa5d6f96e77b6f59113d +316bb31a795600b3d256d0cad2fe354538e7566b2bd69cc6cbcd5c38f0e2bcc63058344429dc2121fd07f63f2a7c66bf76e80d75c8f7a1b622f878a18941d840 +545fb28d07d205d20e8ea071b283369834296bdaac75d256cb37eb0bee740bbe278cad253b8bbfcf69eca23973d939b97891c6ce2cecd8da8e2d343578f6648a +c2d0383fc818c798cf64e52f597c740f1cbd05df0c264c49134cf09d4a60e8a107260f20f92d47b374e32f000000ffff0300504b030414000600080000002100 +0dd1909fb60000001b010000270000007468656d652f7468656d652f5f72656c732f7468656d654d616e616765722e786d6c2e72656c73848f4d0ac2301484f7 +8277086f6fd3ba109126dd88d0add40384e4350d363f2451eced0dae2c082e8761be9969bb979dc9136332de3168aa1a083ae995719ac16db8ec8e4052164e89 +d93b64b060828e6f37ed1567914b284d262452282e3198720e274a939cd08a54f980ae38a38f56e422a3a641c8bbd048f7757da0f19b017cc524bd62107bd500 +1996509affb3fd381a89672f1f165dfe514173d9850528a2c6cce0239baa4c04ca5bbabac4df000000ffff0300504b01022d0014000600080000002100e9de0f +bfff0000001c0200001300000000000000000000000000000000005b436f6e74656e745f54797065735d2e786d6c504b01022d0014000600080000002100a5d6 +a7e7c0000000360100000b00000000000000000000000000300100005f72656c732f2e72656c73504b01022d00140006000800000021006b799616830000008a +0000001c00000000000000000000000000190200007468656d652f7468656d652f7468656d654d616e616765722e786d6c504b01022d00140006000800000021 +0030dd4329a8060000a41b00001600000000000000000000000000d60200007468656d652f7468656d652f7468656d65312e786d6c504b01022d001400060008 +00000021000dd1909fb60000001b0100002700000000000000000000000000b20900007468656d652f7468656d652f5f72656c732f7468656d654d616e616765722e786d6c2e72656c73504b050600000000050005005d010000ad0a00000000} +{\*\colorschememapping 3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d3822207374616e64616c6f6e653d22796573223f3e0d0a3c613a636c724d +617020786d6c6e733a613d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f72672f64726177696e676d6c2f323030362f6d6169 +6e22206267313d226c743122207478313d22646b3122206267323d226c743222207478323d22646b322220616363656e74313d22616363656e74312220616363 +656e74323d22616363656e74322220616363656e74333d22616363656e74332220616363656e74343d22616363656e74342220616363656e74353d22616363656e74352220616363656e74363d22616363656e74362220686c696e6b3d22686c696e6b2220666f6c486c696e6b3d22666f6c486c696e6b222f3e} +{\*\latentstyles\lsdstimax267\lsdlockeddef0\lsdsemihiddendef1\lsdunhideuseddef1\lsdqformatdef0\lsdprioritydef99{\lsdlockedexcept \lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority0 Normal; +\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority0 heading 1;\lsdqformat1 \lsdpriority0 heading 2;\lsdqformat1 \lsdpriority0 heading 3;\lsdqformat1 \lsdpriority0 heading 4;\lsdqformat1 \lsdpriority0 heading 5;\lsdqformat1 \lsdpriority0 heading 6; +\lsdqformat1 \lsdpriority0 heading 7;\lsdqformat1 \lsdpriority0 heading 8;\lsdqformat1 \lsdpriority0 heading 9;\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 toc 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 toc 2; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 toc 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 toc 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 toc 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 toc 6; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 toc 7;\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 toc 8;\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 toc 9;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority0 caption; +\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority0 Title;\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 Default Paragraph Font;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority0 Subtitle; +\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority0 Strong;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority0 Emphasis;\lsdsemihidden0 \lsdunhideused0 \lsdpriority0 Table Grid;\lsdunhideused0 \lsdlocked0 Placeholder Text; +\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority1 \lsdlocked0 No Spacing;\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading;\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid;\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading;\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 1; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 1; +\lsdunhideused0 \lsdlocked0 Revision;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority34 \lsdlocked0 List Paragraph;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority29 \lsdlocked0 Quote; +\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority30 \lsdlocked0 Intense Quote;\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 1; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 1; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 1;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 1; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 2; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 2; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 2; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 2; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 2;\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 3; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 3; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 3; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 3; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 3; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 3;\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 4; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 4; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 4; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 4; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 4;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 4; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 5; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 5; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 5; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 5; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 5;\lsdsemihidden0 \lsdunhideused0 \lsdpriority60 \lsdlocked0 Light Shading Accent 6; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority61 \lsdlocked0 Light List Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority62 \lsdlocked0 Light Grid Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 6; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority65 \lsdlocked0 Medium List 1 Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority66 \lsdlocked0 Medium List 2 Accent 6; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 6; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority70 \lsdlocked0 Dark List Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority71 \lsdlocked0 Colorful Shading Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdpriority72 \lsdlocked0 Colorful List Accent 6; +\lsdsemihidden0 \lsdunhideused0 \lsdpriority73 \lsdlocked0 Colorful Grid Accent 6;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority19 \lsdlocked0 Subtle Emphasis; +\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority21 \lsdlocked0 Intense Emphasis;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority31 \lsdlocked0 Subtle Reference; +\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority32 \lsdlocked0 Intense Reference;\lsdsemihidden0 \lsdunhideused0 \lsdqformat1 \lsdpriority33 \lsdlocked0 Book Title;\lsdpriority37 \lsdlocked0 Bibliography; +\lsdqformat1 \lsdpriority39 \lsdlocked0 TOC Heading;}}{\*\datastore 0105000002000000180000004d73786d6c322e534158584d4c5265616465722e362e3000000000000000000000060000 +d0cf11e0a1b11ae1000000000000000000000000000000003e000300feff090006000000000000000000000001000000010000000000000000100000feffffff00000000feffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +fffffffffffffffffdfffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffff52006f006f007400200045006e00740072007900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000500ffffffffffffffffffffffff0c6ad98892f1d411a65f0040963251e5000000000000000000000000005a +a3f8f73cd301feffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000 +00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000 +000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000105000000000000}} \ No newline at end of file diff --git a/Proteus 8 Professional/Licence.lxk b/Proteus 8 Professional/Licence.lxk index 126350a5cca7d48fbfd837ae2e8ba30f9696211c..9df4ee8e1277bd690c78adcd7230935e2485c74b 100644 --- a/Proteus 8 Professional/Licence.lxk +++ b/Proteus 8 Professional/Licence.lxk @@ -1,3 +1,28 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:78bc0c4f2a41639bdb580fb964199ad7dd96a16b70f113d741ebc4799c028237 -size 960 +;LABCENTER LICENCE KEY FILE 1.1 +;Created on Fri Feb 03 01:06:08 2017 + +CUSTOMER=12-11083-810 +TSTAMP=20120103010608 +USERS=1 +NAME=DOWNLOADLY.IR +COMPANY=WwW.DownLoadLy.iR +FAMILY=Professional +EXPIRY=01/01/2020 +KEY=8900950205004F2B08D0DB0BFA500C6278690101A0E104004706B542719A8ED6 +KEY=321E214527E6A5CBDE35F56CE16C8C201FAECFC7CBD019C06823800FA87C75E1 +KEY=7DF6CB8E3978BF1C94A8005F4474AE3027E3EB87FEB113C29395477E7700DCE0 +KEY=A03F8B8DA36F55D0315691A60F2F4E28F9C8575E0C6FFDC5B1579C8062CA5E54 +KEY=2BFE2BD7BFB8E415AB0D9AE405A4F5136FFC434559C079D1 + + +PRODUCT=12-11083-810 +TSTAMP=20120103010609 +CODE=00000505 +DESC=All Design Tools +ORDER=02-20933 +KEY=8900950205004F2B08D161D3D7208CABEFEF0101EE2004000F1CA84E8F746AA2 +KEY=54B6ED50E53089260809F4C15E60A19A21A6914D2A47C37DB7E331A026F3E2DB +KEY=7E56E34CA361458BFC0A4F5631BD3F1BD3BB67DC6D4F29864F1D7D972785162B +KEY=1538048BF1AEC170E6B61D4C3C0609AF1B1B373E5BFBEB3842C80920CC133BF1 +KEY=0D9E082AD0FDE22C5849349384C72ECE6745015B121BD85C + diff --git a/Proteus 8 Professional/MODELS/LCDALPHA.DLL b/Proteus 8 Professional/MODELS/LCDALPHA.DLL index 0e542e88317aa6c6cbcbde455fbfe168ab62d65d..e10609ed4e43de6441cd3c7b0c5b6d64ee24ff02 100644 Binary files a/Proteus 8 Professional/MODELS/LCDALPHA.DLL and b/Proteus 8 Professional/MODELS/LCDALPHA.DLL differ diff --git a/Proteus 8 Professional/MODELS/LEDMPX.DLL b/Proteus 8 Professional/MODELS/LEDMPX.DLL index c11009d180852fa24757a0b67e345e0759c02190..be0eab0282fb38033f7fa63f7744d2aabaeb3008 100644 Binary files a/Proteus 8 Professional/MODELS/LEDMPX.DLL and b/Proteus 8 Professional/MODELS/LEDMPX.DLL differ diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/AdafruitCircuitPlayground.cat b/Proteus 8 Professional/Tools/ARDUINO/drivers/AdafruitCircuitPlayground.cat index 22607ca866f90604a1bdebe4b1732d841d079075..4bc53bc907e18250ea18f6a3720dc0151eee3ee1 100644 Binary files a/Proteus 8 Professional/Tools/ARDUINO/drivers/AdafruitCircuitPlayground.cat and b/Proteus 8 Professional/Tools/ARDUINO/drivers/AdafruitCircuitPlayground.cat differ diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/AdafruitCircuitPlayground.inf b/Proteus 8 Professional/Tools/ARDUINO/drivers/AdafruitCircuitPlayground.inf index cfa2b12b3242bd05ba065f4b84ab98a5a92d37c8..cb8b836f94d40b6be378e957533cabbc414e2bd9 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/drivers/AdafruitCircuitPlayground.inf +++ b/Proteus 8 Professional/Tools/ARDUINO/drivers/AdafruitCircuitPlayground.inf @@ -1,3 +1,109 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:dba0fd3e61857c7f712b3cbd97c59c07b4170c1664b3f44542c15eb7f26d378c -size 3719 +;************************************************************ +; Windows USB CDC ACM Setup File +; Copyright (c) 2000 Microsoft Corporation +; For Adafruit Circuit Playground Board by Adafruit Industries LLC 2016 + +[Version] +Signature="$Windows NT$" +Class=Ports +ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} +Provider=%MFGNAME% +LayoutFile=layout.inf +CatalogFile=%MFGFILENAME%.cat +DriverVer=02/25/2016,6.2.2600.0 + +[Manufacturer] +%MFGNAME%=DeviceList, NTamd64 + +[DestinationDirs] +DefaultDestDir=12 + +[DefaultInstall] +CopyINF="AdafruitCircuitPlayground.inf" + +;------------------------------------------------------------------------------ +; Windows 2000/XP/Vista/Win7/Win8/Win8.1/Win10 32 bit Sections +;------------------------------------------------------------------------------ + +[DriverInstall.nt] +include=mdmcpq.inf +CopyFiles=DriverCopyFiles.nt +AddReg=DriverInstall.nt.AddReg + +[DriverCopyFiles.nt] +usbser.sys,,,0x20 + +[DriverInstall.nt.AddReg] +HKR,,DevLoader,,*ntkern +HKR,,NTMPDriver,,%DRIVERFILENAME%.sys +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" + +[DriverInstall.nt.Services] +AddService=usbser, 0x00000002, DriverService.nt + +[DriverService.nt] +DisplayName=%SERVICE% +ServiceType=1 +StartType=3 +ErrorControl=1 +ServiceBinary=%12%\%DRIVERFILENAME%.sys + +;------------------------------------------------------------------------------ +; Vista/Win7/Win8/Win8.1/Win10 64 bit Sections +;------------------------------------------------------------------------------ + +[DriverInstall.NTamd64] +include=mdmcpq.inf +CopyFiles=DriverCopyFiles.NTamd64 +AddReg=DriverInstall.NTamd64.AddReg + +[DriverCopyFiles.NTamd64] +%DRIVERFILENAME%.sys,,,0x20 + +[DriverInstall.NTamd64.AddReg] +HKR,,DevLoader,,*ntkern +HKR,,NTMPDriver,,%DRIVERFILENAME%.sys +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" + +[DriverInstall.NTamd64.Services] +AddService=usbser, 0x00000002, DriverService.NTamd64 + +[DriverService.NTamd64] +DisplayName=%SERVICE% +ServiceType=1 +StartType=3 +ErrorControl=1 +ServiceBinary=%12%\%DRIVERFILENAME%.sys + +;------------------------------------------------------------------------------ +; Vendor and Product ID Definitions +;------------------------------------------------------------------------------ +; When developing your USB device, the VID and PID used in the PC side +; application program and the firmware on the microcontroller must match. +; Modify the below line to use your VID and PID. Use the format as shown below. +; Note: One INF file can be used for multiple devices with different VID and PIDs. +; For each supported device, append ",USB\VID_xxxx&PID_yyyy" to the end of the line. +;------------------------------------------------------------------------------ +[SourceDisksFiles] +[SourceDisksNames] +[DeviceList] +%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_0011 +%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_8011&MI_00 + +[DeviceList.NTamd64] +%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_0011 +%DESCRIPTION%=DriverInstall, USB\VID_239A&PID_8011&MI_00 + +;------------------------------------------------------------------------------ +; String Definitions +;------------------------------------------------------------------------------ +; Modify these strings to customize your device +; NOTE: Do not put spaces in %MFGFILENAME% to maintain Windows 7 compatibility +;------------------------------------------------------------------------------ +[Strings] +MFGFILENAME="AdafruitCircuitPlayground" +DRIVERFILENAME ="usbser" +MFGNAME="Adafruit Industries LLC" +INSTDISK="Circuit Playground Board Driver Installer" +DESCRIPTION="Adafruit Circuit Playground" +SERVICE="USB RS-232 Emulation Driver" \ No newline at end of file diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino-org.cat b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino-org.cat index a8c0b9c7a51859390d24fe73dd58f15fb3cf44bc..ade6926c5b9950372052f7db7e3c991601a05587 100644 Binary files a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino-org.cat and b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino-org.cat differ diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino-org.inf b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino-org.inf index c5261a21591f6e6fe04b0378429e3e232fb1b7e6..522cbbdee034cabb79b2112ae5c9fb3a0c6c32a4 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino-org.inf +++ b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino-org.inf @@ -1,3 +1,224 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb6d1ed883daf79b185d1adaeb1ed8bfc5d419016f7aa2cfc04e8a5ad315af7b -size 10293 +; Copyright 2012 Blacklabel Development, Inc. + +[Strings] +DriverPackageDisplayName="Arduino USB Driver" +ManufacturerName="Arduino Srl (www.arduino.org)" +ServiceName="USB RS-232 Emulation Driver" + +due.bossa.name="Bossa Program Port" +due.programming_port.name="Arduino Due Programming Port" +due.sketch.name="Arduino Due" +esplora.bootloader.name="Arduino Esplora bootloader" +esplora.sketch.name="Arduino Esplora" +leonardo.bootloader.name="Arduino Leonardo bootloader" +leonardo.sketch.name="Arduino Leonardo" +leonardoeth.bootloader.name="Arduino Leonardo ETH bootloader" +leonardoeth.sketch.name="Arduino Leonardo ETH" +lilypadUSB.bootloader.name="Arduino LilyPad USB bootloader" +lilypadUSB.sketch.name="Arduino LilyPad USB" +mega2560.name="Arduino Mega 2560" +mega2560rev3.name="Arduino Mega 2560" +megaADK.name="Arduino Mega ADK" +megaADKrev3.name="Arduino Mega ADK" +micro.bootloader.name="Arduino Micro bootloader" +micro.sketch.name="Arduino Micro" +unoR3.name="Arduino Uno" +unowifi.name="Arduino Uno WiFi" +usbserial.name="Arduino USB Serial Light Adapter" +robotControl.bootloader.name="Arduino Robot Control bootloader" +robotControl.sketch.name="Arduino Robot" +robotMotor.bootloader.name="Arduino Robot Motor bootloader" +robotMotor.sketch.name="Arduino Robot" +yun.bootloader.name="Arduino Yun bootloader" +yun.sketch.name="Arduino Yun" +yunmini.bootloader.name="Arduino Yun Mini bootloader" +yunmini.sketch.name="Arduino Yun Mini" +industrial101.bootloader.name="Arduino Industrial 101 bootloader" +industrial101.sketch.name="Arduino Industrial 101" + +zero_pro.edbg.name="Atmel Corp. EDBG USB Port" +zero_pro.usbport.name="Arduino Zero PRO Native Port" +zero_pro_boot.usbport.name="Arduino Zero PRO (Bootloader Mode) Native Port" +m0_pro.edbg.name="Atmel Corp. EDBG USB Port" +m0_pro.usbport.name="Arduino M0 PRO Native Port" +m0_pro_boot.usbport.name="Arduino M0 PRO (Bootloader Mode) Native Port" + +m0.usbport.name="Arduino M0 Native Port" +m0_boot.usbport.name="Arduino M0 (Bootloader Mode) Native Port" + +microADK.bootloader.name="Arduino Micro ADK bootloader" +microADK.sketch.name="Arduino Micro ADK" + +[DefaultInstall] +CopyINF=arduino-org.inf + +[Version] +Class=Ports +ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} +Signature="$Windows NT$" +Provider=%ManufacturerName% +DriverPackageDisplayName=%DriverPackageDisplayName% +CatalogFile=arduino-org.cat +DriverVer=03/19/2015,1.1.1.0 + +[Manufacturer] +%ManufacturerName%=DeviceList, NTamd64, NTia64 + +[DestinationDirs] +FakeModemCopyFileSection=12 +DefaultDestDir=12 + +[DeviceList] +%due.bossa.name%=DriverInstall, USB\VID_03EB&PID_6124 +%due.programming_port.name%=DriverInstall, USB\VID_2A03&PID_003D +%due.sketch.name%=DriverInstall, USB\VID_2A03&PID_003E&MI_00 +%esplora.bootloader.name%=DriverInstall, USB\VID_2A03&PID_003C +%esplora.sketch.name%=DriverInstall, USB\VID_2A03&PID_803C&MI_00 +%leonardo.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0036 +%leonardo.sketch.name%=DriverInstall, USB\VID_2A03&PID_8036&MI_00 +%leonardoeth.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0040 +%leonardoeth.sketch.name%=DriverInstall, USB\VID_2A03&PID_8040&MI_00 +%lilypadUSB.bootloader.name%=DriverInstall, USB\VID_1B4F&PID_9207 +%lilypadUSB.sketch.name%=DriverInstall, USB\VID_1B4F&PID_9208&MI_00 +%mega2560rev3.name%=DriverInstall, USB\VID_2A03&PID_0042 +%mega2560.name%=DriverInstall, USB\VID_2A03&PID_0010 +%megaADK.name%=DriverInstall, USB\VID_2A03&PID_002F +%megaADKrev3.name%=DriverInstall, USB\VID_2A03&PID_0044 +%micro.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0037 +%micro.sketch.name%=DriverInstall, USB\VID_2A03&PID_8037&MI_00 +%unoR3.name%=DriverInstall, USB\VID_2A03&PID_0043 +%unowifi.name%=DriverInstall, USB\VID_2A03&PID_0057 +%usbserial.name%=DriverInstall, USB\VID_2A03&PID_003B +%robotControl.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0038 +%robotControl.sketch.name%=DriverInstall, USB\VID_2A03&PID_8038&MI_00 +%robotMotor.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0039 +%robotMotor.sketch.name%=DriverInstall, USB\VID_2A03&PID_8039&MI_00 +%yun.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0041 +%yun.sketch.name%=DriverInstall, USB\VID_2A03&PID_8041&MI_00 +%yunmini.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0050 +%yunmini.sketch.name%=DriverInstall, USB\VID_2A03&PID_8050&MI_00 +%industrial101.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0056 +%industrial101.sketch.name%=DriverInstall, USB\VID_2A03&PID_8056&MI_00 + +%zero_pro.edbg.name%=DriverInstall, USB\VID_03EB&PID_2111&MI_01 +%zero_pro.usbport.name%=DriverInstall, USB\VID_2A03&PID_804D +%zero_pro_boot.usbport.name%=DriverInstall, USB\VID_2A03&PID_004D +%m0_pro.edbg.name%=DriverInstall, USB\VID_03EB&PID_2111&MI_01 +%m0_pro.usbport.name%=DriverInstall, USB\VID_2A03&PID_804F +%m0_pro_boot.usbport.name%=DriverInstall, USB\VID_2A03&PID_004F + +%m0.usbport.name%=DriverInstall, USB\VID_2A03&PID_804E +%m0_boot.usbport.name%=DriverInstall, USB\VID_2A03&PID_004E + +%microADK.bootloader.name%=DriverInstall, USB\VID_2A03&PID_003A +%microADK.sketch.name%=DriverInstall, USB\VID_2A03&PID_803A&MI_00 + +[DeviceList.NTamd64] +%due.bossa.name%=DriverInstall, USB\VID_03EB&PID_6124 +%due.programming_port.name%=DriverInstall, USB\VID_2A03&PID_003D +%due.sketch.name%=DriverInstall, USB\VID_2A03&PID_003E&MI_00 +%esplora.bootloader.name%=DriverInstall, USB\VID_2A03&PID_003C +%esplora.sketch.name%=DriverInstall, USB\VID_2A03&PID_803C&MI_00 +%leonardo.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0036 +%leonardo.sketch.name%=DriverInstall, USB\VID_2A03&PID_8036&MI_00 +%leonardoeth.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0040 +%leonardoeth.sketch.name%=DriverInstall, USB\VID_2A03&PID_8040&MI_00 +%lilypadUSB.bootloader.name%=DriverInstall, USB\VID_1B4F&PID_9207 +%lilypadUSB.sketch.name%=DriverInstall, USB\VID_1B4F&PID_9208&MI_00 +%mega2560rev3.name%=DriverInstall, USB\VID_2A03&PID_0042 +%mega2560.name%=DriverInstall, USB\VID_2A03&PID_0010 +%megaADK.name%=DriverInstall, USB\VID_2A03&PID_002F +%megaADKrev3.name%=DriverInstall, USB\VID_2A03&PID_0044 +%micro.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0037 +%micro.sketch.name%=DriverInstall, USB\VID_2A03&PID_8037&MI_00 +%unoR3.name%=DriverInstall, USB\VID_2A03&PID_0043 +%unowifi.name%=DriverInstall, USB\VID_2A03&PID_0057 +%usbserial.name%=DriverInstall, USB\VID_2A03&PID_003B +%robotControl.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0038 +%robotControl.sketch.name%=DriverInstall, USB\VID_2A03&PID_8038&MI_00 +%robotMotor.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0039 +%robotMotor.sketch.name%=DriverInstall, USB\VID_2A03&PID_8039&MI_00 +%yun.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0041 +%yun.sketch.name%=DriverInstall, USB\VID_2A03&PID_8041&MI_00 +%yunmini.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0050 +%yunmini.sketch.name%=DriverInstall, USB\VID_2A03&PID_8050&MI_00 +%industrial101.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0056 +%industrial101.sketch.name%=DriverInstall, USB\VID_2A03&PID_8056&MI_00 + +%zero_pro.edbg.name%=DriverInstall, USB\VID_03EB&PID_2111&MI_01 +%zero_pro_boot.usbport.name%=DriverInstall, USB\VID_2A03&PID_004D +%zero_pro.usbport.name%=DriverInstall, USB\VID_2A03&PID_804D +%m0_pro.edbg.name%=DriverInstall, USB\VID_03EB&PID_2111&MI_01 +%m0_pro.usbport.name%=DriverInstall, USB\VID_2A03&PID_804F +%m0_pro_boot.usbport.name%=DriverInstall, USB\VID_2A03&PID_004F + +%m0.usbport.name%=DriverInstall, USB\VID_2A03&PID_804E +%m0_boot.usbport.name%=DriverInstall, USB\VID_2A03&PID_004E + +%microADK.bootloader.name%=DriverInstall, USB\VID_2A03&PID_003A +%microADK.sketch.name%=DriverInstall, USB\VID_2A03&PID_803A&MI_00 + +[DeviceList.NTia64] +%esplora.bootloader.name%=DriverInstall, USB\VID_2A03&PID_003C +%esplora.sketch.name%=DriverInstall, USB\VID_2A03&PID_803C&MI_00 +%leonardo.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0036 +%leonardo.sketch.name%=DriverInstall, USB\VID_2A03&PID_8036&MI_00 +%leonardoeth.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0040 +%leonardoeth.sketch.name%=DriverInstall, USB\VID_2A03&PID_8040&MI_00 +%lilypadUSB.bootloader.name%=DriverInstall, USB\VID_1B4F&PID_9207 +%lilypadUSB.sketch.name%=DriverInstall, USB\VID_1B4F&PID_9208&MI_00 +%mega2560rev3.name%=DriverInstall, USB\VID_2A03&PID_0042 +%mega2560.name%=DriverInstall, USB\VID_2A03&PID_0010 +%megaADK.name%=DriverInstall, USB\VID_2A03&PID_002F +%megaADKrev3.name%=DriverInstall, USB\VID_2A03&PID_0044 +%micro.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0037 +%micro.sketch.name%=DriverInstall, USB\VID_2A03&PID_8037&MI_00 +%unoR3.name%=DriverInstall, USB\VID_2A03&PID_0043 +%unowifi.name%=DriverInstall, USB\VID_2A03&PID_0057 +%usbserial.name%=DriverInstall, USB\VID_2A03&PID_003B +%robotControl.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0038 +%robotControl.sketch.name%=DriverInstall, USB\VID_2A03&PID_8038&MI_00 +%robotMotor.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0039 +%robotMotor.sketch.name%=DriverInstall, USB\VID_2A03&PID_8039&MI_00 +%yun.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0041 +%yun.sketch.name%=DriverInstall, USB\VID_2A03&PID_8041&MI_00 +%yunmini.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0050 +%yunmini.sketch.name%=DriverInstall, USB\VID_2A03&PID_8050&MI_00 +%industrial101.bootloader.name%=DriverInstall, USB\VID_2A03&PID_0056 +%industrial101.sketch.name%=DriverInstall, USB\VID_2A03&PID_8056&MI_00 + +%zero_pro.edbg.name%=DriverInstall, USB\VID_03EB&PID_2111&MI_01 +%zero_pro_boot.usbport.name%=DriverInstall, USB\VID_2A03&PID_004D +%zero_pro.usbport.name%=DriverInstall, USB\VID_2A03&PID_804D + +%m0_pro.edbg.name%=DriverInstall, USB\VID_03EB&PID_2111&MI_01 +%m0_pro.usbport.name%=DriverInstall, USB\VID_2A03&PID_804F +%m0_pro_boot.usbport.name%=DriverInstall, USB\VID_2A03&PID_004F + +%m0.usbport.name%=DriverInstall, USB\VID_2A03&PID_804E +%m0_boot.usbport.name%=DriverInstall, USB\VID_2A03&PID_004E + +%microADK.bootloader.name%=DriverInstall, USB\VID_2A03&PID_003A +%microADK.sketch.name%=DriverInstall, USB\VID_2A03&PID_803A&MI_00 + +[DriverInstall] +include=mdmcpq.inf,usb.inf +CopyFiles = FakeModemCopyFileSection +AddReg=DriverAddReg + +[DriverAddReg] +HKR,,DevLoader,,*ntkern +HKR,,NTMPDriver,,usbser.sys +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" + +[DriverInstall.Services] +include=mdmcpq.inf +AddService=usbser, 0x00000002, DriverService + +[DriverService] +DisplayName=%ServiceName% +ServiceType=1 +StartType=3 +ErrorControl=1 +ServiceBinary=%12%\usbser.sys +LoadOrderGroup=Base \ No newline at end of file diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino.cat b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino.cat index e35192366329087ffa57589b74390ded7bf05e1a..ac2cf8053fd9294f75555277a6b5c8aa1788c196 100644 Binary files a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino.cat and b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino.cat differ diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino.inf b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino.inf index 30aca025c577c87bef9d8f3bc73b4b938e4afaed..fa44edbde95ea195dc7e9ece5edc318ca0272589 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino.inf +++ b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino.inf @@ -1,3 +1,205 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3b7abac3fe17607bc6504d9254dfc702505e2a88ce8fa718eb0d6417f71cc9d4 -size 9628 +; +; Copyright 2015 Arduino LLC (http://www.arduino.cc/) +; +; Developed by Zach Eveland, Blacklabel Development, Inc. +; +; Arduino is free software; you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation; either version 2 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program; if not, write to the Free Software +; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +; +; As a special exception, you may use this file as part of a free software +; library without restriction. Specifically, if other files instantiate +; templates or use macros or inline functions from this file, or you compile +; this file and link it with other files to produce an executable, this +; file does not by itself cause the resulting executable to be covered by +; the GNU General Public License. This exception does not however +; invalidate any other reasons why the executable file might be covered by +; the GNU General Public License. +; + +[Strings] +DriverPackageDisplayName="Arduino USB Driver" +ManufacturerName="Arduino LLC (www.arduino.cc)" +ServiceName="USB RS-232 Emulation Driver" +bossa.name="Bossa Program Port" +due.programming_port.name="Arduino Due Programming Port" +due.sketch.name="Arduino Due" +esplora.bootloader.name="Arduino Esplora bootloader" +esplora.sketch.name="Arduino Esplora" +leonardo.bootloader.name="Arduino Leonardo bootloader" +leonardo.sketch.name="Arduino Leonardo" +lilypadUSB.bootloader.name="Arduino LilyPad USB bootloader" +lilypadUSB.sketch.name="Arduino LilyPad USB" +mega2560.name="Arduino Mega 2560" +mega2560rev3.name="Arduino Mega 2560" +megaADK.name="Arduino Mega ADK" +megaADKrev3.name="Arduino Mega ADK" +micro.bootloader.name="Arduino Micro bootloader" +micro.sketch.name="Arduino Micro" +mkr1000.sketch.name="Arduino MKR1000" +mkr1000.bootloader.name="Arduino MKR1000 bootloader" +robotControl.bootloader.name="Arduino Robot Control bootloader" +robotControl.sketch.name="Arduino Robot" +robotMotor.bootloader.name="Arduino Robot Motor bootloader" +robotMotor.sketch.name="Arduino Robot" +uno.name="Arduino Uno" +unoR3.name="Arduino Uno" +usbserial.name="Arduino USB Serial Light Adapter" +yun.bootloader.name="Arduino Yun bootloader" +yun.sketch.name="Arduino Yun" +zero.edbg.name="Atmel Corp. EDBG CMSIS-DAP" +zero.sketch.name="Arduino Zero" +zero.bootloader.name="Arduino Zero bootloader" +sme_fox.sketch.name="SmartEverything Fox" +sme_fox.bootloader.name="SmartEverything Fox bootloader" + +[DefaultInstall] +CopyINF=arduino.inf + +[Version] +Class=Ports +ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} +Signature="$Windows NT$" +Provider=%ManufacturerName% +DriverPackageDisplayName=%DriverPackageDisplayName% +CatalogFile=arduino.cat +DriverVer=11/24/2015,1.2.3.0 + +[Manufacturer] +%ManufacturerName%=DeviceList, NTamd64, NTia64 + +[DestinationDirs] +FakeModemCopyFileSection=12 +DefaultDestDir=12 + +[DeviceList] +%bossa.name%=DriverInstall, USB\VID_03EB&PID_6124 +%due.programming_port.name%=DriverInstall, USB\VID_2341&PID_003D +%due.sketch.name%=DriverInstall, USB\VID_2341&PID_003E&MI_00 +%esplora.bootloader.name%=DriverInstall, USB\VID_2341&PID_003C +%esplora.sketch.name%=DriverInstall, USB\VID_2341&PID_803C&MI_00 +%leonardo.bootloader.name%=DriverInstall, USB\VID_2341&PID_0036 +%leonardo.sketch.name%=DriverInstall, USB\VID_2341&PID_8036&MI_00 +%lilypadUSB.bootloader.name%=DriverInstall, USB\VID_1B4F&PID_9207 +%lilypadUSB.sketch.name%=DriverInstall, USB\VID_1B4F&PID_9208&MI_00 +%mega2560rev3.name%=DriverInstall, USB\VID_2341&PID_0042 +%mega2560.name%=DriverInstall, USB\VID_2341&PID_0010 +%megaADK.name%=DriverInstall, USB\VID_2341&PID_003F +%megaADKrev3.name%=DriverInstall, USB\VID_2341&PID_0044 +%micro.bootloader.name%=DriverInstall, USB\VID_2341&PID_0037 +%micro.sketch.name%=DriverInstall, USB\VID_2341&PID_8037&MI_00 +%mkr1000.sketch.name%=DriverInstall, USB\VID_2341&PID_804E&MI_00 +%mkr1000.bootloader.name%=DriverInstall, USB\VID_2341&PID_004E +%robotControl.bootloader.name%=DriverInstall, USB\VID_2341&PID_0038 +%robotControl.sketch.name%=DriverInstall, USB\VID_2341&PID_8038&MI_00 +%robotMotor.bootloader.name%=DriverInstall, USB\VID_2341&PID_0039 +%robotMotor.sketch.name%=DriverInstall, USB\VID_2341&PID_8039&MI_00 +%uno.name%=DriverInstall, USB\VID_2341&PID_0001 +%unoR3.name%=DriverInstall, USB\VID_2341&PID_0043 +%usbserial.name%=DriverInstall, USB\VID_2341&PID_003B +%yun.bootloader.name%=DriverInstall, USB\VID_2341&PID_0041 +%yun.sketch.name%=DriverInstall, USB\VID_2341&PID_8041&MI_00 +%zero.edbg.name%=DriverInstall, USB\VID_03EB&PID_2157&MI_01 +%zero.sketch.name%=DriverInstall, USB\VID_2341&PID_804D&MI_00 +%zero.bootloader.name%=DriverInstall, USB\VID_2341&PID_004D +%sme_fox.sketch.name%=DriverInstall, USB\VID_2341&PID_E002&MI_00 +%sme_fox.bootloader.name%=DriverInstall, USB\VID_2341&PID_E001 + +[DeviceList.NTamd64] +%bossa.name%=DriverInstall, USB\VID_03EB&PID_6124 +%due.programming_port.name%=DriverInstall, USB\VID_2341&PID_003D +%due.sketch.name%=DriverInstall, USB\VID_2341&PID_003E&MI_00 +%esplora.bootloader.name%=DriverInstall, USB\VID_2341&PID_003C +%esplora.sketch.name%=DriverInstall, USB\VID_2341&PID_803C&MI_00 +%leonardo.bootloader.name%=DriverInstall, USB\VID_2341&PID_0036 +%leonardo.sketch.name%=DriverInstall, USB\VID_2341&PID_8036&MI_00 +%lilypadUSB.bootloader.name%=DriverInstall, USB\VID_1B4F&PID_9207 +%lilypadUSB.sketch.name%=DriverInstall, USB\VID_1B4F&PID_9208&MI_00 +%mega2560rev3.name%=DriverInstall, USB\VID_2341&PID_0042 +%mega2560.name%=DriverInstall, USB\VID_2341&PID_0010 +%megaADK.name%=DriverInstall, USB\VID_2341&PID_003F +%megaADKrev3.name%=DriverInstall, USB\VID_2341&PID_0044 +%micro.bootloader.name%=DriverInstall, USB\VID_2341&PID_0037 +%micro.sketch.name%=DriverInstall, USB\VID_2341&PID_8037&MI_00 +%mkr1000.sketch.name%=DriverInstall, USB\VID_2341&PID_804E&MI_00 +%mkr1000.bootloader.name%=DriverInstall, USB\VID_2341&PID_004E +%uno.name%=DriverInstall, USB\VID_2341&PID_0001 +%unoR3.name%=DriverInstall, USB\VID_2341&PID_0043 +%usbserial.name%=DriverInstall, USB\VID_2341&PID_003B +%robotControl.bootloader.name%=DriverInstall, USB\VID_2341&PID_0038 +%robotControl.sketch.name%=DriverInstall, USB\VID_2341&PID_8038&MI_00 +%robotMotor.bootloader.name%=DriverInstall, USB\VID_2341&PID_0039 +%robotMotor.sketch.name%=DriverInstall, USB\VID_2341&PID_8039&MI_00 +%yun.bootloader.name%=DriverInstall, USB\VID_2341&PID_0041 +%yun.sketch.name%=DriverInstall, USB\VID_2341&PID_8041&MI_00 +%zero.edbg.name%=DriverInstall, USB\VID_03EB&PID_2157&MI_01 +%zero.sketch.name%=DriverInstall, USB\VID_2341&PID_804D&MI_00 +%zero.bootloader.name%=DriverInstall, USB\VID_2341&PID_004D +%sme_fox.sketch.name%=DriverInstall, USB\VID_2341&PID_E002&MI_00 +%sme_fox.bootloader.name%=DriverInstall, USB\VID_2341&PID_E001 + +[DeviceList.NTia64] +%bossa.name%=DriverInstall, USB\VID_03EB&PID_6124 +%due.programming_port.name%=DriverInstall, USB\VID_2341&PID_003D +%due.sketch.name%=DriverInstall, USB\VID_2341&PID_003E&MI_00 +%esplora.bootloader.name%=DriverInstall, USB\VID_2341&PID_003C +%esplora.sketch.name%=DriverInstall, USB\VID_2341&PID_803C&MI_00 +%leonardo.bootloader.name%=DriverInstall, USB\VID_2341&PID_0036 +%leonardo.sketch.name%=DriverInstall, USB\VID_2341&PID_8036&MI_00 +%lilypadUSB.bootloader.name%=DriverInstall, USB\VID_1B4F&PID_9207 +%lilypadUSB.sketch.name%=DriverInstall, USB\VID_1B4F&PID_9208&MI_00 +%mega2560rev3.name%=DriverInstall, USB\VID_2341&PID_0042 +%mega2560.name%=DriverInstall, USB\VID_2341&PID_0010 +%megaADK.name%=DriverInstall, USB\VID_2341&PID_003F +%megaADKrev3.name%=DriverInstall, USB\VID_2341&PID_0044 +%micro.bootloader.name%=DriverInstall, USB\VID_2341&PID_0037 +%micro.sketch.name%=DriverInstall, USB\VID_2341&PID_8037&MI_00 +%mkr1000.sketch.name%=DriverInstall, USB\VID_2341&PID_804E&MI_00 +%mkr1000.bootloader.name%=DriverInstall, USB\VID_2341&PID_004E +%uno.name%=DriverInstall, USB\VID_2341&PID_0001 +%unoR3.name%=DriverInstall, USB\VID_2341&PID_0043 +%usbserial.name%=DriverInstall, USB\VID_2341&PID_003B +%robotControl.bootloader.name%=DriverInstall, USB\VID_2341&PID_0038 +%robotControl.sketch.name%=DriverInstall, USB\VID_2341&PID_8038&MI_00 +%robotMotor.bootloader.name%=DriverInstall, USB\VID_2341&PID_0039 +%robotMotor.sketch.name%=DriverInstall, USB\VID_2341&PID_8039&MI_00 +%yun.bootloader.name%=DriverInstall, USB\VID_2341&PID_0041 +%yun.sketch.name%=DriverInstall, USB\VID_2341&PID_8041&MI_00 +%zero.edbg.name%=DriverInstall, USB\VID_03EB&PID_2157&MI_01 +%zero.sketch.name%=DriverInstall, USB\VID_2341&PID_804D&MI_00 +%zero.bootloader.name%=DriverInstall, USB\VID_2341&PID_004D +%sme_fox.sketch.name%=DriverInstall, USB\VID_2341&PID_E002&MI_00 +%sme_fox.bootloader.name%=DriverInstall, USB\VID_2341&PID_E001 + +[DriverInstall] +include=mdmcpq.inf,usb.inf +CopyFiles = FakeModemCopyFileSection +AddReg=DriverAddReg + +[DriverAddReg] +HKR,,DevLoader,,*ntkern +HKR,,NTMPDriver,,usbser.sys +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" + +[DriverInstall.Services] +include=mdmcpq.inf +AddService=usbser, 0x00000002, DriverService + +[DriverService] +DisplayName=%ServiceName% +ServiceType=1 +StartType=3 +ErrorControl=1 +ServiceBinary=%12%\usbser.sys +LoadOrderGroup=Base + diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino_gemma.cat b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino_gemma.cat index cf860a71e7f55ffa4b05f7c4dae4129ccb3facda..0b327b6339751bfa7f8de0e498c244f6956bda78 100644 Binary files a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino_gemma.cat and b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino_gemma.cat differ diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino_gemma.inf b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino_gemma.inf index dae15358a0b2464e185b50aedb77caa8d38e3c56..91976882ea1b9d8c493f3318a329bc68accaf967 100644 Binary files a/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino_gemma.inf and b/Proteus 8 Professional/Tools/ARDUINO/drivers/arduino_gemma.inf differ diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/genuino.cat b/Proteus 8 Professional/Tools/ARDUINO/drivers/genuino.cat index f40622db95692e873333cb08e69ea87cb61e58d3..cd84ce298b986a414a31e9834f6b143499543c79 100644 Binary files a/Proteus 8 Professional/Tools/ARDUINO/drivers/genuino.cat and b/Proteus 8 Professional/Tools/ARDUINO/drivers/genuino.cat differ diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/genuino.inf b/Proteus 8 Professional/Tools/ARDUINO/drivers/genuino.inf index ed14f1e6383be7644daf63575d0d47de72276cdf..bcf3184f29e8470575c53c910336f2e5f33d3e9c 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/drivers/genuino.inf +++ b/Proteus 8 Professional/Tools/ARDUINO/drivers/genuino.inf @@ -1,3 +1,114 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:eb4de6cced98bd37138b7581d9e0073ade228f80f082662cfc6931c295c2132e -size 4328 +; +; Copyright 2016 Arduino LLC (http://www.arduino.cc/) +; +; Developed by Zach Eveland, Blacklabel Development, Inc. +; +; Arduino is free software; you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation; either version 2 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program; if not, write to the Free Software +; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +; +; As a special exception, you may use this file as part of a free software +; library without restriction. Specifically, if other files instantiate +; templates or use macros or inline functions from this file, or you compile +; this file and link it with other files to produce an executable, this +; file does not by itself cause the resulting executable to be covered by +; the GNU General Public License. This exception does not however +; invalidate any other reasons why the executable file might be covered by +; the GNU General Public License. +; + +[Strings] +DriverPackageDisplayName="Genuino USB Driver" +ManufacturerName="Arduino LLC (www.arduino.cc)" +ServiceName="USB RS-232 Emulation Driver" +unoR3.name="Genuino Uno" +mega2560rev3.name="Genuino Mega 2560" +micro.bootloader.name="Genuino Micro bootloader" +micro.sketch.name="Genuino Micro" +mkr1000.sketch.name="Genuino MKR1000" +mkr1000.bootloader.name="Genuino MKR1000 bootloader" +zero.sketch.name="Genuino Zero" +zero.bootloader.name="Genuino Zero bootloader" + +[DefaultInstall] +CopyINF=genuino.inf + +[Version] +Class=Ports +ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} +Signature="$Windows NT$" +Provider=%ManufacturerName% +DriverPackageDisplayName=%DriverPackageDisplayName% +CatalogFile=genuino.cat +; DriverVer date is MM/DD/YYYY +DriverVer=01/07/2016,1.0.3.0 + +[Manufacturer] +%ManufacturerName%=DeviceList, NTamd64, NTia64 + +[DestinationDirs] +FakeModemCopyFileSection=12 +DefaultDestDir=12 + +[DeviceList] +%mega2560rev3.name%=DriverInstall, USB\VID_2341&PID_0242 +%micro.bootloader.name%=DriverInstall, USB\VID_2341&PID_0237 +%micro.sketch.name%=DriverInstall, USB\VID_2341&PID_8237&MI_00 +%mkr1000.sketch.name%=DriverInstall, USB\VID_2341&PID_824E&MI_00 +%mkr1000.bootloader.name%=DriverInstall, USB\VID_2341&PID_024E +%unoR3.name%=DriverInstall, USB\VID_2341&PID_0243 +%zero.sketch.name%=DriverInstall, USB\VID_2341&PID_824D&MI_00 +%zero.bootloader.name%=DriverInstall, USB\VID_2341&PID_024D + +[DeviceList.NTamd64] +%mega2560rev3.name%=DriverInstall, USB\VID_2341&PID_0242 +%micro.bootloader.name%=DriverInstall, USB\VID_2341&PID_0237 +%micro.sketch.name%=DriverInstall, USB\VID_2341&PID_8237&MI_00 +%mkr1000.sketch.name%=DriverInstall, USB\VID_2341&PID_824E&MI_00 +%mkr1000.bootloader.name%=DriverInstall, USB\VID_2341&PID_024E +%unoR3.name%=DriverInstall, USB\VID_2341&PID_0243 +%zero.sketch.name%=DriverInstall, USB\VID_2341&PID_824D&MI_00 +%zero.bootloader.name%=DriverInstall, USB\VID_2341&PID_024D + +[DeviceList.NTia64] +%mega2560rev3.name%=DriverInstall, USB\VID_2341&PID_0242 +%micro.bootloader.name%=DriverInstall, USB\VID_2341&PID_0237 +%micro.sketch.name%=DriverInstall, USB\VID_2341&PID_8237&MI_00 +%mkr1000.sketch.name%=DriverInstall, USB\VID_2341&PID_824E&MI_00 +%mkr1000.bootloader.name%=DriverInstall, USB\VID_2341&PID_024E +%unoR3.name%=DriverInstall, USB\VID_2341&PID_0243 +%zero.sketch.name%=DriverInstall, USB\VID_2341&PID_824D&MI_00 +%zero.bootloader.name%=DriverInstall, USB\VID_2341&PID_024D + +[DriverInstall] +include=mdmcpq.inf,usb.inf +CopyFiles = FakeModemCopyFileSection +AddReg=DriverAddReg + +[DriverAddReg] +HKR,,DevLoader,,*ntkern +HKR,,NTMPDriver,,usbser.sys +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" + +[DriverInstall.Services] +include=mdmcpq.inf +AddService=usbser, 0x00000002, DriverService + +[DriverService] +DisplayName=%ServiceName% +ServiceType=1 +StartType=3 +ErrorControl=1 +ServiceBinary=%12%\usbser.sys +LoadOrderGroup=Base + diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/linino-boards_amd64.cat b/Proteus 8 Professional/Tools/ARDUINO/drivers/linino-boards_amd64.cat index 44c92f86bd27476071526915f6b473e737b685e4..08164c7325b4858e176a5f4bfc94f46c01032d39 100644 Binary files a/Proteus 8 Professional/Tools/ARDUINO/drivers/linino-boards_amd64.cat and b/Proteus 8 Professional/Tools/ARDUINO/drivers/linino-boards_amd64.cat differ diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/linino-boards_x86.cat b/Proteus 8 Professional/Tools/ARDUINO/drivers/linino-boards_x86.cat index 72bcfa297680891eea5c5b6d15a34131dd6b4f82..991ad60fa87238627f36224ecd80c8ef2574dc61 100644 Binary files a/Proteus 8 Professional/Tools/ARDUINO/drivers/linino-boards_x86.cat and b/Proteus 8 Professional/Tools/ARDUINO/drivers/linino-boards_x86.cat differ diff --git a/Proteus 8 Professional/Tools/ARDUINO/drivers/linino.inf b/Proteus 8 Professional/Tools/ARDUINO/drivers/linino.inf index 1862e63bc0fe10e2f64e70c800b7ac8e39e12f28..dbb6f6883967f55925bdb53ee3cb2a8754264a5b 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/drivers/linino.inf +++ b/Proteus 8 Professional/Tools/ARDUINO/drivers/linino.inf @@ -1,3 +1,110 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0f69e152b8ee9977ed711ea3283ad6ec63d08f593cfd7767421c66ff86a29df1 -size 3431 +;************************************************************ +; Windows USB CDC ACM Setup File +; Copyright (c) 2000 Microsoft Corporation + + +[Version] +Signature="$Windows NT$" +Class=Ports +ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} +Provider=%MFGNAME% +CatalogFile=%MFGFILENAME%.cat +CatalogFile.NTx86=%MFGFILENAME%_x86.cat +CatalogFile.NTIA64=%MFGFILENAME%_ia64.cat +CatalogFile.NTAMD64=%MFGFILENAME%_amd64.cat +DriverVer=01/13/2014,1.0.0.0 + +[Manufacturer] +%MFGNAME%=DeviceList, NTamd64 + +[DestinationDirs] +FakeModemCopyFileSection=12 +DefaultDestDir=12 + +;------------------------------------------------------------------------------ +; Windows 2000/XP/Vista-32bit Sections +;------------------------------------------------------------------------------ + +[DriverInstall.nt] +include=mdmcpq.inf +CopyFiles=FakeModemCopyFileSection +AddReg=DriverInstall.nt.AddReg + +;;[DriverCopyFiles.nt] +;;usbser.sys,,,0x20 + +[DriverInstall.nt.AddReg] +HKR,,DevLoader,,*ntkern +HKR,,NTMPDriver,,%DRIVERFILENAME%.sys +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" + +[DriverInstall.nt.Services] +AddService=usbser, 0x00000002, DriverService.nt + +[DriverService.nt] +DisplayName=%SERVICE% +ServiceType=1 +StartType=3 +ErrorControl=1 +ServiceBinary=%12%\%DRIVERFILENAME%.sys + +;------------------------------------------------------------------------------ +; Vista-64bit Sections +;------------------------------------------------------------------------------ + +[DriverInstall.NTamd64] +include=mdmcpq.inf +CopyFiles=FakeModemCopyFileSection +AddReg=DriverInstall.NTamd64.AddReg + +[DriverCopyFiles.NTamd64] +%DRIVERFILENAME%.sys,,,0x20 + +[DriverInstall.NTamd64.AddReg] +HKR,,DevLoader,,*ntkern +HKR,,NTMPDriver,,%DRIVERFILENAME%.sys +HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" + +[DriverInstall.NTamd64.Services] +AddService=usbser, 0x00000002, DriverService.NTamd64 + +[DriverService.NTamd64] +DisplayName=%SERVICE% +ServiceType=1 +StartType=3 +ErrorControl=1 +ServiceBinary=%12%\%DRIVERFILENAME%.sys + + +;------------------------------------------------------------------------------ +; Vendor and Product ID Definitions +;------------------------------------------------------------------------------ +; When developing your USB device, the VID and PID used in the PC side +; application program and the firmware on the microcontroller must match. +; Modify the below line to use your VID and PID. Use the format as shown below. +; Note: One INF file can be used for multiple devices with different VID and PIDs. +; For each supported device, append ",USB\VID_xxxx&PID_yyyy" to the end of the line. +;------------------------------------------------------------------------------ +[SourceDisksFiles] +[SourceDisksNames] +[DeviceList] +%DESCRIPTION%=DriverInstall, USB\VID_2A03&PID_0001 +%DESCRIPTION%=DriverInstall, USB\VID_2A03&PID_8001&MI_00 + +[DeviceList.NTamd64] +%DESCRIPTION%=DriverInstall, USB\VID_2A03&PID_0001 +%DESCRIPTION%=DriverInstall, USB\VID_2A03&PID_0001&MI_00 + +;------------------------------------------------------------------------------ +; String Definitions +;------------------------------------------------------------------------------ +;Modify these strings to customize your device +;------------------------------------------------------------------------------ +[Strings] +MFGFILENAME="Linino-Boards" +DRIVERFILENAME ="usbser" +MFGNAME="Linino" +INSTDISK="Linino Driver Installer" +DESCRIPTION="Linino ONE" +SERVICE="USB RS-232 Emulation Driver" + diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/boards.txt b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/boards.txt index 056148b53b6fe04a0223bffe2c4c9718875d7b75..cf435c8a57cde89490eb4ab7153cc9e8728cdbd5 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/boards.txt +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/boards.txt @@ -1,3 +1,1051 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:01fae6deed381985b54a834a1696aea316dca20a2b981d2e845d760b96c7f361 -size 31544 +# See: http://code.google.com/p/arduino/wiki/Platforms + +menu.cpu=Processor + +############################################################## + +yun.name=Arduino Yún +yun.upload.via_ssh=true + +yun.vid.0=0x2341 +yun.pid.0=0x0041 +yun.vid.1=0x2341 +yun.pid.1=0x8041 +yun.vid.2=0x2A03 +yun.pid.2=0x0041 +yun.vid.3=0x2A03 +yun.pid.3=0x8041 + +yun.upload.tool=avrdude +yun.upload.protocol=avr109 +yun.upload.maximum_size=28672 +yun.upload.maximum_data_size=2560 +yun.upload.speed=57600 +yun.upload.disable_flushing=true +yun.upload.use_1200bps_touch=true +yun.upload.wait_for_upload_port=true + +yun.bootloader.tool=avrdude +yun.bootloader.low_fuses=0xff +yun.bootloader.high_fuses=0xd8 +yun.bootloader.extended_fuses=0xfb +yun.bootloader.file=caterina/Caterina-Yun.hex +yun.bootloader.noblink=caterina/Caterina-Yun-noblink.hex +yun.bootloader.unlock_bits=0x3F +yun.bootloader.lock_bits=0x2F + +yun.build.mcu=atmega32u4 +yun.build.f_cpu=16000000L +yun.build.vid=0x2341 +yun.build.pid=0x8041 +yun.build.usb_product="Arduino Yun" +yun.build.board=AVR_YUN +yun.build.core=arduino +yun.build.variant=yun +yun.build.extra_flags={build.usb_flags} + +############################################################## + +uno.name=Arduino/Genuino Uno + +uno.vid.0=0x2341 +uno.pid.0=0x0043 +uno.vid.1=0x2341 +uno.pid.1=0x0001 +uno.vid.2=0x2A03 +uno.pid.2=0x0043 +uno.vid.3=0x2341 +uno.pid.3=0x0243 + +uno.upload.tool=avrdude +uno.upload.protocol=arduino +uno.upload.maximum_size=32256 +uno.upload.maximum_data_size=2048 +uno.upload.speed=115200 + +uno.bootloader.tool=avrdude +uno.bootloader.low_fuses=0xFF +uno.bootloader.high_fuses=0xDE +uno.bootloader.extended_fuses=0x05 +uno.bootloader.unlock_bits=0x3F +uno.bootloader.lock_bits=0x0F +uno.bootloader.file=optiboot/optiboot_atmega328.hex + +uno.build.mcu=atmega328p +uno.build.f_cpu=16000000L +uno.build.board=AVR_UNO +uno.build.core=arduino +uno.build.variant=standard + +############################################################## + +diecimila.name=Arduino Duemilanove or Diecimila + +diecimila.upload.tool=avrdude +diecimila.upload.protocol=arduino + +diecimila.bootloader.tool=avrdude +diecimila.bootloader.low_fuses=0xFF +diecimila.bootloader.unlock_bits=0x3F +diecimila.bootloader.lock_bits=0x0F + +diecimila.build.f_cpu=16000000L +diecimila.build.board=AVR_DUEMILANOVE +diecimila.build.core=arduino +diecimila.build.variant=standard + +## Arduino Duemilanove or Diecimila w/ ATmega328 +## --------------------------------------------- +diecimila.menu.cpu.atmega328=ATmega328 + +diecimila.menu.cpu.atmega328.upload.maximum_size=30720 +diecimila.menu.cpu.atmega328.upload.maximum_data_size=2048 +diecimila.menu.cpu.atmega328.upload.speed=57600 + +diecimila.menu.cpu.atmega328.bootloader.high_fuses=0xDA +diecimila.menu.cpu.atmega328.bootloader.extended_fuses=0x05 +diecimila.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex + +diecimila.menu.cpu.atmega328.build.mcu=atmega328p + +## Arduino Duemilanove or Diecimila w/ ATmega168 +## --------------------------------------------- +diecimila.menu.cpu.atmega168=ATmega168 + +diecimila.menu.cpu.atmega168.upload.maximum_size=14336 +diecimila.menu.cpu.atmega168.upload.maximum_data_size=1024 +diecimila.menu.cpu.atmega168.upload.speed=19200 + +diecimila.menu.cpu.atmega168.bootloader.high_fuses=0xdd +diecimila.menu.cpu.atmega168.bootloader.extended_fuses=0x00 +diecimila.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex + +diecimila.menu.cpu.atmega168.build.mcu=atmega168 + +############################################################## + +nano.name=Arduino Nano + +nano.upload.tool=avrdude +nano.upload.protocol=arduino + +nano.bootloader.tool=avrdude +nano.bootloader.unlock_bits=0x3F +nano.bootloader.lock_bits=0x0F + +nano.build.f_cpu=16000000L +nano.build.board=AVR_NANO +nano.build.core=arduino +nano.build.variant=eightanaloginputs + +## Arduino Nano w/ ATmega328 +## ------------------------- +nano.menu.cpu.atmega328=ATmega328 + +nano.menu.cpu.atmega328.upload.maximum_size=30720 +nano.menu.cpu.atmega328.upload.maximum_data_size=2048 +nano.menu.cpu.atmega328.upload.speed=57600 + +nano.menu.cpu.atmega328.bootloader.low_fuses=0xFF +nano.menu.cpu.atmega328.bootloader.high_fuses=0xDA +nano.menu.cpu.atmega328.bootloader.extended_fuses=0x05 +nano.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex + +nano.menu.cpu.atmega328.build.mcu=atmega328p + +## Arduino Nano w/ ATmega168 +## ------------------------- +nano.menu.cpu.atmega168=ATmega168 + +nano.menu.cpu.atmega168.upload.maximum_size=14336 +nano.menu.cpu.atmega168.upload.maximum_data_size=1024 +nano.menu.cpu.atmega168.upload.speed=19200 + +nano.menu.cpu.atmega168.bootloader.low_fuses=0xff +nano.menu.cpu.atmega168.bootloader.high_fuses=0xdd +nano.menu.cpu.atmega168.bootloader.extended_fuses=0x00 +nano.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex + +nano.menu.cpu.atmega168.build.mcu=atmega168 + +############################################################## + +mega.name=Arduino/Genuino Mega or Mega 2560 + +mega.vid.0=0x2341 +mega.pid.0=0x0010 +mega.vid.1=0x2341 +mega.pid.1=0x0042 +mega.vid.2=0x2A03 +mega.pid.2=0x0010 +mega.vid.3=0x2A03 +mega.pid.3=0x0042 +mega.vid.4=0x2341 +mega.pid.4=0x0210 +mega.vid.5=0x2341 +mega.pid.5=0x0242 + +mega.upload.tool=avrdude +mega.upload.maximum_data_size=8192 + +mega.bootloader.tool=avrdude +mega.bootloader.low_fuses=0xFF +mega.bootloader.unlock_bits=0x3F +mega.bootloader.lock_bits=0x0F + +mega.build.f_cpu=16000000L +mega.build.core=arduino +mega.build.variant=mega +# default board may be overridden by the cpu menu +mega.build.board=AVR_MEGA2560 + +## Arduino/Genuino Mega w/ ATmega2560 +## ------------------------- +mega.menu.cpu.atmega2560=ATmega2560 (Mega 2560) + +mega.menu.cpu.atmega2560.upload.protocol=wiring +mega.menu.cpu.atmega2560.upload.maximum_size=253952 +mega.menu.cpu.atmega2560.upload.speed=115200 + +mega.menu.cpu.atmega2560.bootloader.high_fuses=0xD8 +mega.menu.cpu.atmega2560.bootloader.extended_fuses=0xFD +mega.menu.cpu.atmega2560.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex + +mega.menu.cpu.atmega2560.build.mcu=atmega2560 +mega.menu.cpu.atmega2560.build.board=AVR_MEGA2560 + +## Arduino Mega w/ ATmega1280 +## ------------------------- +mega.menu.cpu.atmega1280=ATmega1280 + +mega.menu.cpu.atmega1280.upload.protocol=arduino +mega.menu.cpu.atmega1280.upload.maximum_size=126976 +mega.menu.cpu.atmega1280.upload.speed=57600 + +mega.menu.cpu.atmega1280.bootloader.high_fuses=0xDA +mega.menu.cpu.atmega1280.bootloader.extended_fuses=0xF5 +mega.menu.cpu.atmega1280.bootloader.file=atmega/ATmegaBOOT_168_atmega1280.hex + +mega.menu.cpu.atmega1280.build.mcu=atmega1280 +mega.menu.cpu.atmega1280.build.board=AVR_MEGA + +############################################################## + +megaADK.name=Arduino Mega ADK + +megaADK.vid.0=0x2341 +megaADK.pid.0=0x003f +megaADK.vid.1=0x2341 +megaADK.pid.1=0x0044 +megaADK.vid.2=0x2A03 +megaADK.pid.2=0x003f +megaADK.vid.3=0x2A03 +megaADK.pid.3=0x0044 + +megaADK.upload.tool=avrdude +megaADK.upload.protocol=wiring +megaADK.upload.maximum_size=253952 +megaADK.upload.maximum_data_size=8192 +megaADK.upload.speed=115200 + +megaADK.bootloader.tool=avrdude +megaADK.bootloader.low_fuses=0xFF +megaADK.bootloader.high_fuses=0xD8 +megaADK.bootloader.extended_fuses=0xFD +megaADK.bootloader.file=stk500v2/stk500boot_v2_mega2560.hex +megaADK.bootloader.unlock_bits=0x3F +megaADK.bootloader.lock_bits=0x0F + +megaADK.build.mcu=atmega2560 +megaADK.build.f_cpu=16000000L +megaADK.build.board=AVR_ADK +megaADK.build.core=arduino +megaADK.build.variant=mega + +############################################################## + +leonardo.name=Arduino Leonardo +leonardo.vid.0=0x2341 +leonardo.pid.0=0x0036 +leonardo.vid.1=0x2341 +leonardo.pid.1=0x8036 +leonardo.vid.2=0x2A03 +leonardo.pid.2=0x0036 +leonardo.vid.3=0x2A03 +leonardo.pid.3=0x8036 + +leonardo.upload.tool=avrdude +leonardo.upload.protocol=avr109 +leonardo.upload.maximum_size=28672 +leonardo.upload.maximum_data_size=2560 +leonardo.upload.speed=57600 +leonardo.upload.disable_flushing=true +leonardo.upload.use_1200bps_touch=true +leonardo.upload.wait_for_upload_port=true + +leonardo.bootloader.tool=avrdude +leonardo.bootloader.low_fuses=0xff +leonardo.bootloader.high_fuses=0xd8 +leonardo.bootloader.extended_fuses=0xcb +leonardo.bootloader.file=caterina/Caterina-Leonardo.hex +leonardo.bootloader.unlock_bits=0x3F +leonardo.bootloader.lock_bits=0x2F + +leonardo.build.mcu=atmega32u4 +leonardo.build.f_cpu=16000000L +leonardo.build.vid=0x2341 +leonardo.build.pid=0x8036 +leonardo.build.usb_product="Arduino Leonardo" +leonardo.build.board=AVR_LEONARDO +leonardo.build.core=arduino +leonardo.build.variant=leonardo +leonardo.build.extra_flags={build.usb_flags} + +############################################################## + +leonardoeth.name=Arduino Leonardo ETH +leonardoeth.vid.0=0x2a03 +leonardoeth.pid.0=0x0040 +leonardoeth.vid.1=0x2a03 +leonardoeth.pid.1=0x8040 + +leonardoeth.upload.tool=avrdude +leonardoeth.upload.protocol=avr109 +leonardoeth.upload.maximum_size=28672 +leonardoeth.upload.maximum_data_size=2560 +leonardoeth.upload.speed=57600 +leonardoeth.upload.disable_flushing=true +leonardoeth.upload.use_1200bps_touch=true +leonardoeth.upload.wait_for_upload_port=true + +leonardoeth.bootloader.tool=avrdude +leonardoeth.bootloader.low_fuses=0xff +leonardoeth.bootloader.high_fuses=0xd8 +leonardoeth.bootloader.extended_fuses=0xcb +leonardoeth.bootloader.file=caterina/Caterina-LeonardoEthernet.hex +leonardoeth.bootloader.unlock_bits=0x3F +leonardoeth.bootloader.lock_bits=0x2F + +leonardoeth.build.mcu=atmega32u4 +leonardoeth.build.f_cpu=16000000L +leonardoeth.build.vid=0x2a03 +leonardoeth.build.pid=0x8040 +leonardoeth.build.usb_product="Arduino Leonardo ETH" +leonardoeth.build.board=AVR_LEONARDO_ETH +leonardoeth.build.core=arduino +leonardoeth.build.variant=leonardo +leonardoeth.build.extra_flags={build.usb_flags} + +############################################################## + +micro.name=Arduino/Genuino Micro + +micro.vid.0=0x2341 +micro.pid.0=0x0037 +micro.vid.1=0x2341 +micro.pid.1=0x8037 +micro.vid.2=0x2A03 +micro.pid.2=0x0037 +micro.vid.3=0x2A03 +micro.pid.3=0x8037 + +micro.vid.4=0x2341 +micro.pid.4=0x0237 +# If the board is a 2341:0237 use 2341:8237 for build and set +# other parameters as well +micro.vid.4.build.vid=0x2341 +micro.vid.4.build.pid=0x8237 +micro.vid.4.build.usb_product="Genuino Micro" +micro.vid.4.bootloader.file=caterina/Caterina-Genuino-Micro.hex + +micro.vid.5=0x2341 +micro.pid.5=0x8237 +# If the board is a 2341:8237 use 2341:8237 for build and set +# other paramters as well +micro.vid.5.build.vid=0x2341 +micro.vid.5.build.pid=0x8237 +micro.vid.5.build.usb_product="Genuino Micro" +micro.vid.5.bootloader.file=caterina/Caterina-Genuino-Micro.hex + +micro.upload.tool=avrdude +micro.upload.protocol=avr109 +micro.upload.maximum_size=28672 +micro.upload.maximum_data_size=2560 +micro.upload.speed=57600 +micro.upload.disable_flushing=true +micro.upload.use_1200bps_touch=true +micro.upload.wait_for_upload_port=true + +micro.bootloader.tool=avrdude +micro.bootloader.low_fuses=0xff +micro.bootloader.high_fuses=0xd8 +micro.bootloader.extended_fuses=0xcb +micro.bootloader.file=caterina/Caterina-Micro.hex +micro.bootloader.unlock_bits=0x3F +micro.bootloader.lock_bits=0x2F + +micro.build.mcu=atmega32u4 +micro.build.f_cpu=16000000L +micro.build.vid=0x2341 +micro.build.pid=0x8037 +micro.build.usb_product="Arduino Micro" +micro.build.board=AVR_MICRO +micro.build.core=arduino +micro.build.variant=micro +micro.build.extra_flags={build.usb_flags} + +############################################################## + +esplora.name=Arduino Esplora +esplora.vid.0=0x2341 +esplora.pid.0=0x003C +esplora.vid.1=0x2341 +esplora.pid.1=0x803C +esplora.vid.2=0x2A03 +esplora.pid.2=0x003C +esplora.vid.3=0x2A03 +esplora.pid.3=0x803C + +esplora.upload.tool=avrdude +esplora.upload.protocol=avr109 +esplora.upload.maximum_size=28672 +esplora.upload.maximum_data_size=2560 +esplora.upload.speed=57600 +esplora.upload.disable_flushing=true +esplora.upload.use_1200bps_touch=true +esplora.upload.wait_for_upload_port=true + +esplora.bootloader.tool=avrdude +esplora.bootloader.low_fuses=0xff +esplora.bootloader.high_fuses=0xd8 +esplora.bootloader.extended_fuses=0xcb +esplora.bootloader.file=caterina/Caterina-Esplora.hex +esplora.bootloader.unlock_bits=0x3F +esplora.bootloader.lock_bits=0x2F + +esplora.build.mcu=atmega32u4 +esplora.build.f_cpu=16000000L +esplora.build.vid=0x2341 +esplora.build.pid=0x803c +esplora.build.usb_product="Arduino Esplora" +esplora.build.board=AVR_ESPLORA +esplora.build.core=arduino +esplora.build.variant=leonardo +esplora.build.extra_flags={build.usb_flags} + +############################################################## + +mini.name=Arduino Mini + +mini.upload.tool=avrdude +mini.upload.protocol=arduino + +mini.bootloader.tool=avrdude +mini.bootloader.low_fuses=0xff +mini.bootloader.unlock_bits=0x3F +mini.bootloader.lock_bits=0x0F + +mini.build.f_cpu=16000000L +mini.build.board=AVR_MINI +mini.build.core=arduino +mini.build.variant=eightanaloginputs + +## Arduino Mini w/ ATmega328 +## ------------------------- +mini.menu.cpu.atmega328=ATmega328 + +mini.menu.cpu.atmega328.upload.maximum_size=28672 +mini.menu.cpu.atmega328.upload.maximum_data_size=2048 +mini.menu.cpu.atmega328.upload.speed=115200 + +mini.menu.cpu.atmega328.bootloader.high_fuses=0xd8 +mini.menu.cpu.atmega328.bootloader.extended_fuses=0x05 +mini.menu.cpu.atmega328.bootloader.file=optiboot/optiboot_atmega328-Mini.hex + +mini.menu.cpu.atmega328.build.mcu=atmega328p + +## Arduino Mini w/ ATmega168 +## ------------------------- +mini.menu.cpu.atmega168=ATmega168 + +mini.menu.cpu.atmega168.upload.maximum_size=14336 +mini.menu.cpu.atmega168.upload.maximum_data_size=1024 +mini.menu.cpu.atmega168.upload.speed=19200 + +mini.menu.cpu.atmega168.bootloader.high_fuses=0xdd +mini.menu.cpu.atmega168.bootloader.extended_fuses=0x00 +mini.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_ng.hex + +mini.menu.cpu.atmega168.build.mcu=atmega168 + +############################################################## + +ethernet.name=Arduino Ethernet + +ethernet.upload.tool=avrdude +ethernet.upload.protocol=arduino +ethernet.upload.maximum_size=32256 +ethernet.upload.maximum_data_size=2048 +ethernet.upload.speed=115200 + +ethernet.bootloader.tool=avrdude +ethernet.bootloader.low_fuses=0xff +ethernet.bootloader.high_fuses=0xde +ethernet.bootloader.extended_fuses=0x05 +ethernet.bootloader.file=optiboot/optiboot_atmega328.hex +ethernet.bootloader.unlock_bits=0x3F +ethernet.bootloader.lock_bits=0x0F + +ethernet.build.variant=ethernet +ethernet.build.mcu=atmega328p +ethernet.build.f_cpu=16000000L +ethernet.build.board=AVR_ETHERNET +ethernet.build.core=arduino + +############################################################## + +fio.name=Arduino Fio + +fio.upload.tool=avrdude +fio.upload.protocol=arduino +fio.upload.maximum_size=30720 +fio.upload.maximum_data_size=2048 +fio.upload.speed=57600 + +fio.bootloader.tool=avrdude +fio.bootloader.low_fuses=0xFF +fio.bootloader.high_fuses=0xDA +fio.bootloader.extended_fuses=0x05 +fio.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex +fio.bootloader.unlock_bits=0x3F +fio.bootloader.lock_bits=0x0F + +fio.build.mcu=atmega328p +fio.build.f_cpu=8000000L +fio.build.board=AVR_FIO +fio.build.core=arduino +fio.build.variant=eightanaloginputs + +############################################################## + +bt.name=Arduino BT + +bt.upload.tool=avrdude +bt.upload.protocol=arduino +bt.upload.speed=19200 +bt.upload.disable_flushing=true + +bt.bootloader.tool=avrdude +bt.bootloader.low_fuses=0xff +bt.bootloader.unlock_bits=0x3F +bt.bootloader.lock_bits=0x0F + +bt.build.f_cpu=16000000L +bt.build.board=AVR_BT +bt.build.core=arduino +bt.build.variant=eightanaloginputs + +## Arduino BT w/ ATmega328 +## ----------------------- +bt.menu.cpu.atmega328=ATmega328 +bt.menu.cpu.atmega328.upload.maximum_size=28672 +bt.menu.cpu.atmega328.upload.maximum_data_size=2048 + +bt.menu.cpu.atmega328.bootloader.high_fuses=0xd8 +bt.menu.cpu.atmega328.bootloader.extended_fuses=0x05 +bt.menu.cpu.atmega328.bootloader.file=bt/ATmegaBOOT_168_atmega328_bt.hex + +bt.menu.cpu.atmega328.build.mcu=atmega328p + +## Arduino BT w/ ATmega168 +## ----------------------- +bt.menu.cpu.atmega168=ATmega168 +bt.menu.cpu.atmega168.upload.maximum_size=14336 +bt.menu.cpu.atmega168.upload.maximum_data_size=1024 + +bt.menu.cpu.atmega168.bootloader.high_fuses=0xdd +bt.menu.cpu.atmega168.bootloader.extended_fuses=0x00 +bt.menu.cpu.atmega168.bootloader.file=bt/ATmegaBOOT_168.hex + +bt.menu.cpu.atmega168.build.mcu=atmega168 + +############################################################## + +LilyPadUSB.name=LilyPad Arduino USB +LilyPadUSB.vid.0=0x1B4F +LilyPadUSB.pid.0=0x9207 +LilyPadUSB.vid.1=0x1B4F +LilyPadUSB.pid.1=0x9208 + +LilyPadUSB.upload.tool=avrdude +LilyPadUSB.upload.protocol=avr109 +LilyPadUSB.upload.maximum_size=28672 +LilyPadUSB.upload.maximum_data_size=2560 +LilyPadUSB.upload.speed=57600 +LilyPadUSB.upload.disable_flushing=true +LilyPadUSB.upload.use_1200bps_touch=true +LilyPadUSB.upload.wait_for_upload_port=true + +LilyPadUSB.bootloader.tool=avrdude +LilyPadUSB.bootloader.low_fuses=0xff +LilyPadUSB.bootloader.high_fuses=0xd8 +LilyPadUSB.bootloader.extended_fuses=0xce +LilyPadUSB.bootloader.file=caterina-LilyPadUSB/Caterina-LilyPadUSB.hex +LilyPadUSB.bootloader.unlock_bits=0x3F +LilyPadUSB.bootloader.lock_bits=0x2F + +LilyPadUSB.build.mcu=atmega32u4 +LilyPadUSB.build.f_cpu=8000000L +LilyPadUSB.build.vid=0x1B4F +LilyPadUSB.build.pid=0x9208 +LilyPadUSB.build.usb_product="LilyPad USB" +LilyPadUSB.build.board=AVR_LILYPAD_USB +LilyPadUSB.build.core=arduino +LilyPadUSB.build.variant=leonardo +LilyPadUSB.build.extra_flags={build.usb_flags} + +############################################################## + +lilypad.name=LilyPad Arduino + +lilypad.upload.tool=avrdude +lilypad.upload.protocol=arduino + +lilypad.bootloader.tool=avrdude +lilypad.bootloader.unlock_bits=0x3F +lilypad.bootloader.lock_bits=0x0F + +lilypad.build.f_cpu=8000000L +lilypad.build.board=AVR_LILYPAD +lilypad.build.core=arduino +lilypad.build.variant=standard + +## LilyPad Arduino w/ ATmega328 +## ---------------------------- +lilypad.menu.cpu.atmega328=ATmega328 + +lilypad.menu.cpu.atmega328.upload.maximum_size=30720 +lilypad.menu.cpu.atmega328.upload.maximum_data_size=2048 +lilypad.menu.cpu.atmega328.upload.speed=57600 + +lilypad.menu.cpu.atmega328.bootloader.low_fuses=0xFF +lilypad.menu.cpu.atmega328.bootloader.high_fuses=0xDA +lilypad.menu.cpu.atmega328.bootloader.extended_fuses=0x05 +lilypad.menu.cpu.atmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex + +lilypad.menu.cpu.atmega328.build.mcu=atmega328p + +## LilyPad Arduino w/ ATmega168 +## ---------------------------- +lilypad.menu.cpu.atmega168=ATmega168 + +lilypad.menu.cpu.atmega168.upload.maximum_size=14336 +lilypad.menu.cpu.atmega168.upload.maximum_data_size=1024 +lilypad.menu.cpu.atmega168.upload.speed=19200 + +lilypad.menu.cpu.atmega168.bootloader.low_fuses=0xe2 +lilypad.menu.cpu.atmega168.bootloader.high_fuses=0xdd +lilypad.menu.cpu.atmega168.bootloader.extended_fuses=0x00 +lilypad.menu.cpu.atmega168.bootloader.file=lilypad/LilyPadBOOT_168.hex + +lilypad.menu.cpu.atmega168.build.mcu=atmega168 + +############################################################## + +pro.name=Arduino Pro or Pro Mini + +pro.upload.tool=avrdude +pro.upload.protocol=arduino + +pro.bootloader.tool=avrdude +pro.bootloader.unlock_bits=0x3F +pro.bootloader.lock_bits=0x0F + +pro.build.board=AVR_PRO +pro.build.core=arduino +pro.build.variant=eightanaloginputs + +## Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328 +## ------------------------------------------------- +pro.menu.cpu.16MHzatmega328=ATmega328 (5V, 16 MHz) + +pro.menu.cpu.16MHzatmega328.upload.maximum_size=30720 +pro.menu.cpu.16MHzatmega328.upload.maximum_data_size=2048 +pro.menu.cpu.16MHzatmega328.upload.speed=57600 + +pro.menu.cpu.16MHzatmega328.bootloader.low_fuses=0xFF +pro.menu.cpu.16MHzatmega328.bootloader.high_fuses=0xDA +pro.menu.cpu.16MHzatmega328.bootloader.extended_fuses=0x05 +pro.menu.cpu.16MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328.hex + +pro.menu.cpu.16MHzatmega328.build.mcu=atmega328p +pro.menu.cpu.16MHzatmega328.build.f_cpu=16000000L + +## Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328 +## -------------------------------------------------- +pro.menu.cpu.8MHzatmega328=ATmega328 (3.3V, 8 MHz) + +pro.menu.cpu.8MHzatmega328.upload.maximum_size=30720 +pro.menu.cpu.8MHzatmega328.upload.maximum_data_size=2048 +pro.menu.cpu.8MHzatmega328.upload.speed=57600 + +pro.menu.cpu.8MHzatmega328.bootloader.low_fuses=0xFF +pro.menu.cpu.8MHzatmega328.bootloader.high_fuses=0xDA +pro.menu.cpu.8MHzatmega328.bootloader.extended_fuses=0x05 +pro.menu.cpu.8MHzatmega328.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex + +pro.menu.cpu.8MHzatmega328.build.mcu=atmega328p +pro.menu.cpu.8MHzatmega328.build.f_cpu=8000000L + +## Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega168 +## ------------------------------------------------- +pro.menu.cpu.16MHzatmega168=ATmega168 (5V, 16 MHz) + +pro.menu.cpu.16MHzatmega168.upload.maximum_size=14336 +pro.menu.cpu.16MHzatmega168.upload.maximum_data_size=1024 +pro.menu.cpu.16MHzatmega168.upload.speed=19200 + +pro.menu.cpu.16MHzatmega168.bootloader.low_fuses=0xff +pro.menu.cpu.16MHzatmega168.bootloader.high_fuses=0xdd +pro.menu.cpu.16MHzatmega168.bootloader.extended_fuses=0x00 +pro.menu.cpu.16MHzatmega168.bootloader.file=atmega/ATmegaBOOT_168_diecimila.hex + +pro.menu.cpu.16MHzatmega168.build.mcu=atmega168 +pro.menu.cpu.16MHzatmega168.build.f_cpu=16000000L + +## Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega168 +## -------------------------------------------------- +pro.menu.cpu.8MHzatmega168=ATmega168 (3.3V, 8 MHz) + +pro.menu.cpu.8MHzatmega168.upload.maximum_size=14336 +pro.menu.cpu.8MHzatmega168.upload.maximum_data_size=1024 +pro.menu.cpu.8MHzatmega168.upload.speed=19200 + +pro.menu.cpu.8MHzatmega168.bootloader.low_fuses=0xc6 +pro.menu.cpu.8MHzatmega168.bootloader.high_fuses=0xdd +pro.menu.cpu.8MHzatmega168.bootloader.extended_fuses=0x00 +pro.menu.cpu.8MHzatmega168.bootloader.file=atmega/ATmegaBOOT_168_pro_8MHz.hex + +pro.menu.cpu.8MHzatmega168.build.mcu=atmega168 +pro.menu.cpu.8MHzatmega168.build.f_cpu=8000000L + +############################################################## + +atmegang.name=Arduino NG or older + +atmegang.upload.tool=avrdude +atmegang.upload.protocol=arduino +atmegang.upload.speed=19200 + +atmegang.bootloader.tool=avrdude +atmegang.bootloader.unlock_bits=0x3F +atmegang.bootloader.lock_bits=0x0F + +atmegang.build.mcu=atmegang +atmegang.build.f_cpu=16000000L +atmegang.build.board=AVR_NG +atmegang.build.core=arduino +atmegang.build.variant=standard + +## Arduino NG or older w/ ATmega168 +## -------------------------------- +atmegang.menu.cpu.atmega168=ATmega168 + +atmegang.menu.cpu.atmega168.upload.maximum_size=14336 +atmegang.menu.cpu.atmega168.upload.maximum_data_size=1024 + +atmegang.menu.cpu.atmega168.bootloader.low_fuses=0xff +atmegang.menu.cpu.atmega168.bootloader.high_fuses=0xdd +atmegang.menu.cpu.atmega168.bootloader.extended_fuses=0x00 +atmegang.menu.cpu.atmega168.bootloader.file=atmega/ATmegaBOOT_168_ng.hex + +atmegang.menu.cpu.atmega168.build.mcu=atmega168 + +## Arduino NG or older w/ ATmega8 +## ------------------------------ +atmegang.menu.cpu.atmega8=ATmega8 + +atmegang.menu.cpu.atmega8.upload.maximum_size=7168 +atmegang.menu.cpu.atmega8.upload.maximum_data_size=1024 + +atmegang.menu.cpu.atmega8.bootloader.low_fuses=0xdf +atmegang.menu.cpu.atmega8.bootloader.high_fuses=0xca +atmegang.menu.cpu.atmega8.bootloader.extended_fuses= +atmegang.menu.cpu.atmega8.bootloader.file=atmega8/ATmegaBOOT-prod-firmware-2009-11-07.hex + +atmegang.menu.cpu.atmega8.build.mcu=atmega8 + +############################################################## + +robotControl.name=Arduino Robot Control +robotControl.vid.0=0x2341 +robotControl.pid.0=0x0038 +robotControl.vid.1=0x2341 +robotControl.pid.1=0x8038 +robotControl.vid.2=0x2A03 +robotControl.pid.2=0x0038 +robotControl.vid.3=0x2A03 +robotControl.pid.3=0x8038 + +robotControl.upload.tool=avrdude +robotControl.upload.protocol=avr109 +robotControl.upload.maximum_size=28672 +robotControl.upload.maximum_data_size=2560 +robotControl.upload.speed=57600 +robotControl.upload.disable_flushing=true +robotControl.upload.use_1200bps_touch=true +robotControl.upload.wait_for_upload_port=true + +robotControl.bootloader.tool=avrdude +robotControl.bootloader.low_fuses=0xff +robotControl.bootloader.high_fuses=0xd8 +robotControl.bootloader.extended_fuses=0xcb +robotControl.bootloader.file=caterina-Arduino_Robot/Caterina-Robot-Control.hex +robotControl.bootloader.unlock_bits=0x3F +robotControl.bootloader.lock_bits=0x2F + +robotControl.build.mcu=atmega32u4 +robotControl.build.f_cpu=16000000L +robotControl.build.vid=0x2341 +robotControl.build.pid=0x8038 +robotControl.build.usb_product="Robot Control" +robotControl.build.board=AVR_ROBOT_CONTROL +robotControl.build.core=arduino +robotControl.build.variant=robot_control +robotControl.build.extra_flags={build.usb_flags} + +############################################################## + +robotMotor.name=Arduino Robot Motor +robotMotor.vid.0=0x2341 +robotMotor.pid.0=0x0039 +robotMotor.vid.1=0x2341 +robotMotor.pid.1=0x8039 +robotMotor.vid.2=0x2A03 +robotMotor.pid.2=0x0039 +robotMotor.vid.3=0x2A03 +robotMotor.pid.3=0x8039 + +robotMotor.upload.tool=avrdude +robotMotor.upload.protocol=avr109 +robotMotor.upload.maximum_size=28672 +robotMotor.upload.maximum_data_size=2560 +robotMotor.upload.speed=57600 +robotMotor.upload.disable_flushing=true +robotMotor.upload.use_1200bps_touch=true +robotMotor.upload.wait_for_upload_port=true + +robotMotor.bootloader.tool=avrdude +robotMotor.bootloader.low_fuses=0xff +robotMotor.bootloader.high_fuses=0xd8 +robotMotor.bootloader.extended_fuses=0xcb +robotMotor.bootloader.file=caterina-Arduino_Robot/Caterina-Robot-Motor.hex +robotMotor.bootloader.unlock_bits=0x3F +robotMotor.bootloader.lock_bits=0x2F + +robotMotor.build.mcu=atmega32u4 +robotMotor.build.f_cpu=16000000L +robotMotor.build.vid=0x2341 +robotMotor.build.pid=0x8039 +robotMotor.build.usb_product="Robot Motor" +robotMotor.build.board=AVR_ROBOT_MOTOR +robotMotor.build.core=arduino +robotMotor.build.variant=robot_motor +robotMotor.build.extra_flags={build.usb_flags} + +############################################################## + +gemma.vid.0=0x2341 +gemma.pid.0=0x0c9f + +gemma.name=Arduino Gemma + +gemma.bootloader.low_fuses=0xF1 +gemma.bootloader.high_fuses=0xD5 +gemma.bootloader.extended_fuses=0xFE +gemma.bootloader.tool=avrdude +gemma.bootloader.lock_bits= +gemma.bootloader.unlock_bits= +gemma.bootloader.file=gemma/gemma_v1.hex + +gemma.build.mcu=attiny85 +gemma.build.f_cpu=8000000L +gemma.build.core=arduino +gemma.build.variant=gemma +gemma.build.board=AVR_GEMMA + +gemma.upload.tool=avrdude +gemma.upload.maximum_size=5310 + +############################################################## + +# Adafruit Circuit Playground 32u4 w/Caterina Configuration +circuitplay32u4cat.name=Adafruit Circuit Playground +circuitplay32u4cat.bootloader.low_fuses=0xff +circuitplay32u4cat.bootloader.high_fuses=0xd8 +circuitplay32u4cat.bootloader.extended_fuses=0xcb +circuitplay32u4cat.bootloader.file=caterina/Caterina-Circuitplay32u4.hex +circuitplay32u4cat.bootloader.unlock_bits=0x3F +circuitplay32u4cat.bootloader.lock_bits=0x2F +circuitplay32u4cat.bootloader.tool=avrdude +circuitplay32u4cat.build.mcu=atmega32u4 +circuitplay32u4cat.build.f_cpu=8000000L +circuitplay32u4cat.build.vid=0x239A +circuitplay32u4cat.build.pid=0x8011 +circuitplay32u4cat.build.core=arduino +circuitplay32u4cat.build.variant=circuitplay32u4 +circuitplay32u4cat.build.board=AVR_CIRCUITPLAY +circuitplay32u4cat.build.usb_product="Circuit Playground" +circuitplay32u4cat.build.usb_manufacturer="Adafruit" +circuitplay32u4cat.build.extra_flags={build.usb_flags} +circuitplay32u4cat.upload.protocol=avr109 +circuitplay32u4cat.upload.maximum_size=28672 +circuitplay32u4cat.upload.speed=57600 +circuitplay32u4cat.upload.disable_flushing=true +circuitplay32u4cat.upload.use_1200bps_touch=true +circuitplay32u4cat.upload.wait_for_upload_port=true +circuitplay32u4cat.upload.tool=avrdude +circuitplay32u4cat.vid.0=0x239A +circuitplay32u4cat.pid.0=0x8011 + +############################################################## + +yunmini.name=Arduino Yún Mini +yunmini.upload.via_ssh=true + +yunmini.vid.0=0x2a03 +yunmini.pid.0=0x0050 +yunmini.vid.1=0x2a03 +yunmini.pid.1=0x8050 + +yunmini.upload.tool=avrdude +yunmini.upload.protocol=avr109 +yunmini.upload.maximum_size=28672 +yunmini.upload.maximum_data_size=2560 +yunmini.upload.speed=57600 +yunmini.upload.disable_flushing=true +yunmini.upload.use_1200bps_touch=true +yunmini.upload.wait_for_upload_port=true + +yunmini.bootloader.tool=avrdude +yunmini.bootloader.low_fuses=0xff +yunmini.bootloader.high_fuses=0xd8 +yunmini.bootloader.extended_fuses=0xfb +yunmini.bootloader.file=caterina/Caterina-Yunmini.hex +yunmini.bootloader.unlock_bits=0x3F +yunmini.bootloader.lock_bits=0x2F + +yunmini.build.mcu=atmega32u4 +yunmini.build.f_cpu=16000000L +yunmini.build.vid=0x2a03 +yunmini.build.pid=0x8050 +yunmini.build.usb_product="Arduino Yún Mini" +yunmini.build.board=AVR_YUNMINI +yunmini.build.core=arduino +yunmini.build.variant=yun +yunmini.build.extra_flags={build.usb_flags} + +############################################################## + +chiwawa.name=Arduino Industrial 101 +chiwawa.upload.via_ssh=true + +chiwawa.vid.0=0x2a03 +chiwawa.pid.0=0x0056 +chiwawa.vid.1=0x2a03 +chiwawa.pid.1=0x8056 + +chiwawa.upload.tool=avrdude +chiwawa.upload.protocol=avr109 +chiwawa.upload.maximum_size=28672 +chiwawa.upload.maximum_data_size=2560 +chiwawa.upload.speed=57600 +chiwawa.upload.disable_flushing=true +chiwawa.upload.use_1200bps_touch=true +chiwawa.upload.wait_for_upload_port=true + +chiwawa.bootloader.tool=avrdude +chiwawa.bootloader.low_fuses=0xff +chiwawa.bootloader.high_fuses=0xd8 +chiwawa.bootloader.extended_fuses=0xfb +chiwawa.bootloader.file=caterina/Caterina-Industrial101.hex +chiwawa.bootloader.unlock_bits=0x3F +chiwawa.bootloader.lock_bits=0x2F + +chiwawa.build.mcu=atmega32u4 +chiwawa.build.f_cpu=16000000L +chiwawa.build.vid=0x2a03 +chiwawa.build.pid=0x8056 +chiwawa.build.usb_product="Arduino Industrial 101" +chiwawa.build.board=AVR_INDUSTRIAL101 +chiwawa.build.core=arduino +chiwawa.build.variant=yun +chiwawa.build.extra_flags={build.usb_flags} + +############################################################## + +one.name=Linino One +one.upload.via_ssh=true + +one.vid.0=0x2a03 +one.pid.0=0x0001 +one.vid.1=0x2a03 +one.pid.1=0x8001 + +one.upload.tool=avrdude +one.upload.protocol=avr109 +one.upload.maximum_size=28672 +one.upload.maximum_data_size=2560 +one.upload.speed=57600 +one.upload.disable_flushing=true +one.upload.use_1200bps_touch=true +one.upload.wait_for_upload_port=true + +one.bootloader.tool=avrdude +one.bootloader.low_fuses=0xff +one.bootloader.high_fuses=0xd8 +one.bootloader.extended_fuses=0xfb +one.bootloader.file=caterina/Caterina-LininoOne.hex +one.bootloader.unlock_bits=0x3F +one.bootloader.lock_bits=0x2F + +one.build.mcu=atmega32u4 +one.build.f_cpu=16000000L +one.build.vid=0x2a03 +one.build.pid=0x8001 +one.build.usb_product="Linino One" +one.build.board=AVR_LININO_ONE +one.build.core=arduino +one.build.variant=yun +one.build.extra_flags={build.usb_flags} + +############################################################## + +unowifi.name=Arduino Uno WiFi +unowifi.vid.0=0x2A03 +unowifi.pid.0=0x0057 + +unowifi.upload.tool=avrdude +unowifi.upload.protocol=arduino +unowifi.upload.maximum_size=32256 +unowifi.upload.maximum_data_size=2048 +unowifi.upload.speed=115200 +unowifi.upload.network.endpoint_upload=/pgm/upload +unowifi.upload.network.endpoint_sync=/pgm/sync +unowifi.upload.network.sync_return=204:SYNC +unowifi.upload.network.endpoint_reset=/log/reset +unowifi.upload.network.port=80 + +unowifi.bootloader.tool=avrdude +unowifi.bootloader.low_fuses=0xFF +unowifi.bootloader.high_fuses=0xDE +unowifi.bootloader.extended_fuses=0x05 +unowifi.bootloader.unlock_bits=0x3F +unowifi.bootloader.lock_bits=0x0F +unowifi.bootloader.file=optiboot/optiboot_atmega328.hex + +unowifi.build.mcu=atmega328p +unowifi.build.f_cpu=16000000L +unowifi.build.board=AVR_UNO_WIFI +unowifi.build.core=arduino +unowifi.build.variant=standard diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Arduino.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Arduino.h index 9fa40966ab42bc2d53613274b5242a6ffa468cd5..09c14489506ad45e55cc1cf624253d3e4d420074 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Arduino.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Arduino.h @@ -1,3 +1,259 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0bf22cd2e6cf96e006fd2e328ce3cad36832beb0620158b8ae0dfd5a2263887c -size 7483 +/* + Arduino.h - Main include file for the Arduino SDK + Copyright (c) 2005-2013 Arduino Team. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef Arduino_h +#define Arduino_h + +#include +#include +#include +#include + +#include +#include +#include + +#include "binary.h" + +#ifdef __cplusplus +extern "C"{ +#endif + +void yield(void); + +#define HIGH 0x1 +#define LOW 0x0 + +#define INPUT 0x0 +#define OUTPUT 0x1 +#define INPUT_PULLUP 0x2 + +#define PI 3.1415926535897932384626433832795 +#define HALF_PI 1.5707963267948966192313216916398 +#define TWO_PI 6.283185307179586476925286766559 +#define DEG_TO_RAD 0.017453292519943295769236907684886 +#define RAD_TO_DEG 57.295779513082320876798154814105 +#define EULER 2.718281828459045235360287471352 + +#define SERIAL 0x0 +#define DISPLAY 0x1 + +#define LSBFIRST 0 +#define MSBFIRST 1 + +#define CHANGE 1 +#define FALLING 2 +#define RISING 3 + +#if defined(__AVR_ATtiny24__) || defined(__AVR_ATtiny44__) || defined(__AVR_ATtiny84__) + #define DEFAULT 0 + #define EXTERNAL 1 + #define INTERNAL1V1 2 + #define INTERNAL INTERNAL1V1 +#elif defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__) + #define DEFAULT 0 + #define EXTERNAL 4 + #define INTERNAL1V1 8 + #define INTERNAL INTERNAL1V1 + #define INTERNAL2V56 9 + #define INTERNAL2V56_EXTCAP 13 +#else +#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega644__) || defined(__AVR_ATmega644A__) || defined(__AVR_ATmega644P__) || defined(__AVR_ATmega644PA__) +#define INTERNAL1V1 2 +#define INTERNAL2V56 3 +#else +#define INTERNAL 3 +#endif +#define DEFAULT 1 +#define EXTERNAL 0 +#endif + +// undefine stdlib's abs if encountered +#ifdef abs +#undef abs +#endif + +#define min(a,b) ((a)<(b)?(a):(b)) +#define max(a,b) ((a)>(b)?(a):(b)) +#define abs(x) ((x)>0?(x):-(x)) +#define constrain(amt,low,high) ((amt)<(low)?(low):((amt)>(high)?(high):(amt))) +#define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5)) +#define radians(deg) ((deg)*DEG_TO_RAD) +#define degrees(rad) ((rad)*RAD_TO_DEG) +#define sq(x) ((x)*(x)) + +#define interrupts() sei() +#define noInterrupts() cli() + +#define clockCyclesPerMicrosecond() ( F_CPU / 1000000L ) +#define clockCyclesToMicroseconds(a) ( (a) / clockCyclesPerMicrosecond() ) +#define microsecondsToClockCycles(a) ( (a) * clockCyclesPerMicrosecond() ) + +#define lowByte(w) ((uint8_t) ((w) & 0xff)) +#define highByte(w) ((uint8_t) ((w) >> 8)) + +#define bitRead(value, bit) (((value) >> (bit)) & 0x01) +#define bitSet(value, bit) ((value) |= (1UL << (bit))) +#define bitClear(value, bit) ((value) &= ~(1UL << (bit))) +#define bitWrite(value, bit, bitvalue) (bitvalue ? bitSet(value, bit) : bitClear(value, bit)) + +// avr-libc defines _NOP() since 1.6.2 +#ifndef _NOP +#define _NOP() do { __asm__ volatile ("nop"); } while (0) +#endif + +typedef unsigned int word; + +#define bit(b) (1UL << (b)) + +typedef bool boolean; +typedef uint8_t byte; + +void init(void); +void initVariant(void); + +int atexit(void (*func)()) __attribute__((weak)); + +void pinMode(uint8_t, uint8_t); +void digitalWrite(uint8_t, uint8_t); +int digitalRead(uint8_t); +int analogRead(uint8_t); +void analogReference(uint8_t mode); +void analogWrite(uint8_t, int); + +unsigned long millis(void); +unsigned long micros(void); +void delay(unsigned long); +void delayMicroseconds(unsigned int us); +unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout); +unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout); + +void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val); +uint8_t shiftIn(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder); + +void attachInterrupt(uint8_t, void (*)(void), int mode); +void detachInterrupt(uint8_t); + +void setup(void); +void loop(void); + +// Get the bit location within the hardware port of the given virtual pin. +// This comes from the pins_*.c file for the active board configuration. + +#define analogInPinToBit(P) (P) + +// On the ATmega1280, the addresses of some of the port registers are +// greater than 255, so we can't store them in uint8_t's. +extern const uint16_t PROGMEM port_to_mode_PGM[]; +extern const uint16_t PROGMEM port_to_input_PGM[]; +extern const uint16_t PROGMEM port_to_output_PGM[]; + +extern const uint8_t PROGMEM digital_pin_to_port_PGM[]; +// extern const uint8_t PROGMEM digital_pin_to_bit_PGM[]; +extern const uint8_t PROGMEM digital_pin_to_bit_mask_PGM[]; +extern const uint8_t PROGMEM digital_pin_to_timer_PGM[]; + +// Get the bit location within the hardware port of the given virtual pin. +// This comes from the pins_*.c file for the active board configuration. +// +// These perform slightly better as macros compared to inline functions +// +#define digitalPinToPort(P) ( pgm_read_byte( digital_pin_to_port_PGM + (P) ) ) +#define digitalPinToBitMask(P) ( pgm_read_byte( digital_pin_to_bit_mask_PGM + (P) ) ) +#define digitalPinToTimer(P) ( pgm_read_byte( digital_pin_to_timer_PGM + (P) ) ) +#define analogInPinToBit(P) (P) +#define portOutputRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_output_PGM + (P))) ) +#define portInputRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_input_PGM + (P))) ) +#define portModeRegister(P) ( (volatile uint8_t *)( pgm_read_word( port_to_mode_PGM + (P))) ) + +#define NOT_A_PIN 0 +#define NOT_A_PORT 0 + +#define NOT_AN_INTERRUPT -1 + +#ifdef ARDUINO_MAIN +#define PA 1 +#define PB 2 +#define PC 3 +#define PD 4 +#define PE 5 +#define PF 6 +#define PG 7 +#define PH 8 +#define PJ 10 +#define PK 11 +#define PL 12 +#endif + +#define NOT_ON_TIMER 0 +#define TIMER0A 1 +#define TIMER0B 2 +#define TIMER1A 3 +#define TIMER1B 4 +#define TIMER1C 5 +#define TIMER2 6 +#define TIMER2A 7 +#define TIMER2B 8 + +#define TIMER3A 9 +#define TIMER3B 10 +#define TIMER3C 11 +#define TIMER4A 12 +#define TIMER4B 13 +#define TIMER4C 14 +#define TIMER4D 15 +#define TIMER5A 16 +#define TIMER5B 17 +#define TIMER5C 18 + +#ifdef __cplusplus +} // extern "C" +#endif + +#ifdef __cplusplus +#include "WCharacter.h" +#include "WString.h" +#include "HardwareSerial.h" +#include "USBAPI.h" +#if defined(HAVE_HWSERIAL0) && defined(HAVE_CDCSERIAL) +#error "Targets with both UART0 and CDC serial not supported" +#endif + +uint16_t makeWord(uint16_t w); +uint16_t makeWord(byte h, byte l); + +#define word(...) makeWord(__VA_ARGS__) + +unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L); +unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout = 1000000L); + +void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0); +void noTone(uint8_t _pin); + +// WMath prototypes +long random(long); +long random(long, long); +void randomSeed(unsigned long); +long map(long, long, long, long, long); + +#endif + +#include "pins_arduino.h" + +#endif diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/CDC.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/CDC.cpp index 4d9d7bc8904d88c45fbdd8f62f48b5616d07b278..0a743e1ea954d232f4112916e85ed5be39808642 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/CDC.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/CDC.cpp @@ -1,3 +1,294 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e7cc707a39801dc52eae4635b5863724b6542b22e4d72f529fd2846cad00aab5 -size 8078 + + +/* Copyright (c) 2011, Peter Barrett +** +** Permission to use, copy, modify, and/or distribute this software for +** any purpose with or without fee is hereby granted, provided that the +** above copyright notice and this permission notice appear in all copies. +** +** THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL +** WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED +** WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR +** BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES +** OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +** WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, +** ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS +** SOFTWARE. +*/ + +#include "USBAPI.h" +#include +#include + +#if defined(USBCON) + +typedef struct +{ + u32 dwDTERate; + u8 bCharFormat; + u8 bParityType; + u8 bDataBits; + u8 lineState; +} LineInfo; + +static volatile LineInfo _usbLineInfo = { 57600, 0x00, 0x00, 0x00, 0x00 }; +static volatile int32_t breakValue = -1; + +bool _updatedLUFAbootloader = false; + +#define WEAK __attribute__ ((weak)) + +extern const CDCDescriptor _cdcInterface PROGMEM; +const CDCDescriptor _cdcInterface = +{ + D_IAD(0,2,CDC_COMMUNICATION_INTERFACE_CLASS,CDC_ABSTRACT_CONTROL_MODEL,1), + + // CDC communication interface + D_INTERFACE(CDC_ACM_INTERFACE,1,CDC_COMMUNICATION_INTERFACE_CLASS,CDC_ABSTRACT_CONTROL_MODEL,0), + D_CDCCS(CDC_HEADER,0x10,0x01), // Header (1.10 bcd) + D_CDCCS(CDC_CALL_MANAGEMENT,1,1), // Device handles call management (not) + D_CDCCS4(CDC_ABSTRACT_CONTROL_MANAGEMENT,6), // SET_LINE_CODING, GET_LINE_CODING, SET_CONTROL_LINE_STATE supported + D_CDCCS(CDC_UNION,CDC_ACM_INTERFACE,CDC_DATA_INTERFACE), // Communication interface is master, data interface is slave 0 + D_ENDPOINT(USB_ENDPOINT_IN (CDC_ENDPOINT_ACM),USB_ENDPOINT_TYPE_INTERRUPT,0x10,0x40), + + // CDC data interface + D_INTERFACE(CDC_DATA_INTERFACE,2,CDC_DATA_INTERFACE_CLASS,0,0), + D_ENDPOINT(USB_ENDPOINT_OUT(CDC_ENDPOINT_OUT),USB_ENDPOINT_TYPE_BULK,USB_EP_SIZE,0), + D_ENDPOINT(USB_ENDPOINT_IN (CDC_ENDPOINT_IN ),USB_ENDPOINT_TYPE_BULK,USB_EP_SIZE,0) +}; + +int CDC_GetInterface(u8* interfaceNum) +{ + interfaceNum[0] += 2; // uses 2 + return USB_SendControl(TRANSFER_PGM,&_cdcInterface,sizeof(_cdcInterface)); +} + +bool CDC_Setup(USBSetup& setup) +{ + u8 r = setup.bRequest; + u8 requestType = setup.bmRequestType; + + if (REQUEST_DEVICETOHOST_CLASS_INTERFACE == requestType) + { + if (CDC_GET_LINE_CODING == r) + { + USB_SendControl(0,(void*)&_usbLineInfo,7); + return true; + } + } + + if (REQUEST_HOSTTODEVICE_CLASS_INTERFACE == requestType) + { + if (CDC_SEND_BREAK == r) + { + breakValue = ((uint16_t)setup.wValueH << 8) | setup.wValueL; + } + + if (CDC_SET_LINE_CODING == r) + { + USB_RecvControl((void*)&_usbLineInfo,7); + } + + if (CDC_SET_CONTROL_LINE_STATE == r) + { + _usbLineInfo.lineState = setup.wValueL; + } + + if (CDC_SET_LINE_CODING == r || CDC_SET_CONTROL_LINE_STATE == r) + { + // auto-reset into the bootloader is triggered when the port, already + // open at 1200 bps, is closed. this is the signal to start the watchdog + // with a relatively long period so it can finish housekeeping tasks + // like servicing endpoints before the sketch ends + + uint16_t magic_key_pos = MAGIC_KEY_POS; + +// If we don't use the new RAMEND directly, check manually if we have a newer bootloader. +// This is used to keep compatible with the old leonardo bootloaders. +// You are still able to set the magic key position manually to RAMEND-1 to save a few bytes for this check. +#if MAGIC_KEY_POS != (RAMEND-1) + // For future boards save the key in the inproblematic RAMEND + // Which is reserved for the main() return value (which will never return) + if (_updatedLUFAbootloader) { + // horray, we got a new bootloader! + magic_key_pos = (RAMEND-1); + } +#endif + + // We check DTR state to determine if host port is open (bit 0 of lineState). + if (1200 == _usbLineInfo.dwDTERate && (_usbLineInfo.lineState & 0x01) == 0) + { +#if MAGIC_KEY_POS != (RAMEND-1) + // Backup ram value if its not a newer bootloader. + // This should avoid memory corruption at least a bit, not fully + if (magic_key_pos != (RAMEND-1)) { + *(uint16_t *)(RAMEND-1) = *(uint16_t *)magic_key_pos; + } +#endif + // Store boot key + *(uint16_t *)magic_key_pos = MAGIC_KEY; + wdt_enable(WDTO_120MS); + } + else + { + // Most OSs do some intermediate steps when configuring ports and DTR can + // twiggle more than once before stabilizing. + // To avoid spurious resets we set the watchdog to 250ms and eventually + // cancel if DTR goes back high. + + wdt_disable(); + wdt_reset(); +#if MAGIC_KEY_POS != (RAMEND-1) + // Restore backed up (old bootloader) magic key data + if (magic_key_pos != (RAMEND-1)) { + *(uint16_t *)magic_key_pos = *(uint16_t *)(RAMEND-1); + } else +#endif + { + // Clean up RAMEND key + *(uint16_t *)magic_key_pos = 0x0000; + } + } + } + return true; + } + return false; +} + + +void Serial_::begin(unsigned long /* baud_count */) +{ + peek_buffer = -1; +} + +void Serial_::begin(unsigned long /* baud_count */, byte /* config */) +{ + peek_buffer = -1; +} + +void Serial_::end(void) +{ +} + +int Serial_::available(void) +{ + if (peek_buffer >= 0) { + return 1 + USB_Available(CDC_RX); + } + return USB_Available(CDC_RX); +} + +int Serial_::peek(void) +{ + if (peek_buffer < 0) + peek_buffer = USB_Recv(CDC_RX); + return peek_buffer; +} + +int Serial_::read(void) +{ + if (peek_buffer >= 0) { + int c = peek_buffer; + peek_buffer = -1; + return c; + } + return USB_Recv(CDC_RX); +} + +int Serial_::availableForWrite(void) +{ + return USB_SendSpace(CDC_TX); +} + +void Serial_::flush(void) +{ + USB_Flush(CDC_TX); +} + +size_t Serial_::write(uint8_t c) +{ + return write(&c, 1); +} + +size_t Serial_::write(const uint8_t *buffer, size_t size) +{ + /* only try to send bytes if the high-level CDC connection itself + is open (not just the pipe) - the OS should set lineState when the port + is opened and clear lineState when the port is closed. + bytes sent before the user opens the connection or after + the connection is closed are lost - just like with a UART. */ + + // TODO - ZE - check behavior on different OSes and test what happens if an + // open connection isn't broken cleanly (cable is yanked out, host dies + // or locks up, or host virtual serial port hangs) + if (_usbLineInfo.lineState > 0) { + int r = USB_Send(CDC_TX,buffer,size); + if (r > 0) { + return r; + } else { + setWriteError(); + return 0; + } + } + setWriteError(); + return 0; +} + +// This operator is a convenient way for a sketch to check whether the +// port has actually been configured and opened by the host (as opposed +// to just being connected to the host). It can be used, for example, in +// setup() before printing to ensure that an application on the host is +// actually ready to receive and display the data. +// We add a short delay before returning to fix a bug observed by Federico +// where the port is configured (lineState != 0) but not quite opened. +Serial_::operator bool() { + bool result = false; + if (_usbLineInfo.lineState > 0) + result = true; + delay(10); + return result; +} + +unsigned long Serial_::baud() { + // Disable interrupts while reading a multi-byte value + uint32_t baudrate; + ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { + baudrate = _usbLineInfo.dwDTERate; + } + return baudrate; +} + +uint8_t Serial_::stopbits() { + return _usbLineInfo.bCharFormat; +} + +uint8_t Serial_::paritytype() { + return _usbLineInfo.bParityType; +} + +uint8_t Serial_::numbits() { + return _usbLineInfo.bDataBits; +} + +bool Serial_::dtr() { + return _usbLineInfo.lineState & 0x1; +} + +bool Serial_::rts() { + return _usbLineInfo.lineState & 0x2; +} + +int32_t Serial_::readBreak() { + int32_t ret; + // Disable IRQs while reading and clearing breakValue to make + // sure we don't overwrite a value just set by the ISR. + ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { + ret = breakValue; + breakValue = -1; + } + return ret; +} + +Serial_ Serial; + +#endif /* if defined(USBCON) */ diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Client.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Client.h index bed527d243f0aa4451a665dd761520e29e7b5d5a..b8e5d935f2a4d4dec9aad8ac6d849c2a8daf667d 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Client.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Client.h @@ -1,3 +1,45 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0619cd22b5f07c705d1c19db2c868bf5e2441ce3278f3fba11e71104ee2636bd -size 1529 +/* + Client.h - Base class that provides Client + Copyright (c) 2011 Adrian McEwen. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef client_h +#define client_h +#include "Print.h" +#include "Stream.h" +#include "IPAddress.h" + +class Client : public Stream { + +public: + virtual int connect(IPAddress ip, uint16_t port) =0; + virtual int connect(const char *host, uint16_t port) =0; + virtual size_t write(uint8_t) =0; + virtual size_t write(const uint8_t *buf, size_t size) =0; + virtual int available() = 0; + virtual int read() = 0; + virtual int read(uint8_t *buf, size_t size) = 0; + virtual int peek() = 0; + virtual void flush() = 0; + virtual void stop() = 0; + virtual uint8_t connected() = 0; + virtual operator bool() = 0; +protected: + uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); }; +}; + +#endif diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp index e615194f4eb61cb7e1e885f7111692d90eb5ebe1..5cd89e5e66489828ba41326b4132f17e458f0d6d 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial.cpp @@ -1,3 +1,250 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b379d1cf0ba1babedda02e205bfcd3cb1575777e01a1da19ae2340f1f636a55b -size 7743 +/* + HardwareSerial.cpp - Hardware serial library for Wiring + Copyright (c) 2006 Nicholas Zambetti. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Modified 23 November 2006 by David A. Mellis + Modified 28 September 2010 by Mark Sproul + Modified 14 August 2012 by Alarus + Modified 3 December 2013 by Matthijs Kooijman +*/ + +#include +#include +#include +#include +#include "Arduino.h" + +#include "HardwareSerial.h" +#include "HardwareSerial_private.h" + +// this next line disables the entire HardwareSerial.cpp, +// this is so I can support Attiny series and any other chip without a uart +#if defined(HAVE_HWSERIAL0) || defined(HAVE_HWSERIAL1) || defined(HAVE_HWSERIAL2) || defined(HAVE_HWSERIAL3) + +// SerialEvent functions are weak, so when the user doesn't define them, +// the linker just sets their address to 0 (which is checked below). +// The Serialx_available is just a wrapper around Serialx.available(), +// but we can refer to it weakly so we don't pull in the entire +// HardwareSerial instance if the user doesn't also refer to it. +#if defined(HAVE_HWSERIAL0) + void serialEvent() __attribute__((weak)); + bool Serial0_available() __attribute__((weak)); +#endif + +#if defined(HAVE_HWSERIAL1) + void serialEvent1() __attribute__((weak)); + bool Serial1_available() __attribute__((weak)); +#endif + +#if defined(HAVE_HWSERIAL2) + void serialEvent2() __attribute__((weak)); + bool Serial2_available() __attribute__((weak)); +#endif + +#if defined(HAVE_HWSERIAL3) + void serialEvent3() __attribute__((weak)); + bool Serial3_available() __attribute__((weak)); +#endif + +void serialEventRun(void) +{ +#if defined(HAVE_HWSERIAL0) + if (Serial0_available && serialEvent && Serial0_available()) serialEvent(); +#endif +#if defined(HAVE_HWSERIAL1) + if (Serial1_available && serialEvent1 && Serial1_available()) serialEvent1(); +#endif +#if defined(HAVE_HWSERIAL2) + if (Serial2_available && serialEvent2 && Serial2_available()) serialEvent2(); +#endif +#if defined(HAVE_HWSERIAL3) + if (Serial3_available && serialEvent3 && Serial3_available()) serialEvent3(); +#endif +} + +// Actual interrupt handlers ////////////////////////////////////////////////////////////// + +void HardwareSerial::_tx_udr_empty_irq(void) +{ + // If interrupts are enabled, there must be more data in the output + // buffer. Send the next byte + unsigned char c = _tx_buffer[_tx_buffer_tail]; + _tx_buffer_tail = (_tx_buffer_tail + 1) % SERIAL_TX_BUFFER_SIZE; + + *_udr = c; + + // clear the TXC bit -- "can be cleared by writing a one to its bit + // location". This makes sure flush() won't return until the bytes + // actually got written + sbi(*_ucsra, TXC0); + + if (_tx_buffer_head == _tx_buffer_tail) { + // Buffer empty, so disable interrupts + cbi(*_ucsrb, UDRIE0); + } +} + +// Public Methods ////////////////////////////////////////////////////////////// + +void HardwareSerial::begin(unsigned long baud, byte config) +{ + // Try u2x mode first + uint16_t baud_setting = (F_CPU / 4 / baud - 1) / 2; + *_ucsra = 1 << U2X0; + + // hardcoded exception for 57600 for compatibility with the bootloader + // shipped with the Duemilanove and previous boards and the firmware + // on the 8U2 on the Uno and Mega 2560. Also, The baud_setting cannot + // be > 4095, so switch back to non-u2x mode if the baud rate is too + // low. + if (((F_CPU == 16000000UL) && (baud == 57600)) || (baud_setting >4095)) + { + *_ucsra = 0; + baud_setting = (F_CPU / 8 / baud - 1) / 2; + } + + // assign the baud_setting, a.k.a. ubrr (USART Baud Rate Register) + *_ubrrh = baud_setting >> 8; + *_ubrrl = baud_setting; + + _written = false; + + //set the data bits, parity, and stop bits +#if defined(__AVR_ATmega8__) + config |= 0x80; // select UCSRC register (shared with UBRRH) +#endif + *_ucsrc = config; + + sbi(*_ucsrb, RXEN0); + sbi(*_ucsrb, TXEN0); + sbi(*_ucsrb, RXCIE0); + cbi(*_ucsrb, UDRIE0); +} + +void HardwareSerial::end() +{ + // wait for transmission of outgoing data + flush(); + + cbi(*_ucsrb, RXEN0); + cbi(*_ucsrb, TXEN0); + cbi(*_ucsrb, RXCIE0); + cbi(*_ucsrb, UDRIE0); + + // clear any received data + _rx_buffer_head = _rx_buffer_tail; +} + +int HardwareSerial::available(void) +{ + return ((unsigned int)(SERIAL_RX_BUFFER_SIZE + _rx_buffer_head - _rx_buffer_tail)) % SERIAL_RX_BUFFER_SIZE; +} + +int HardwareSerial::peek(void) +{ + if (_rx_buffer_head == _rx_buffer_tail) { + return -1; + } else { + return _rx_buffer[_rx_buffer_tail]; + } +} + +int HardwareSerial::read(void) +{ + // if the head isn't ahead of the tail, we don't have any characters + if (_rx_buffer_head == _rx_buffer_tail) { + return -1; + } else { + unsigned char c = _rx_buffer[_rx_buffer_tail]; + _rx_buffer_tail = (rx_buffer_index_t)(_rx_buffer_tail + 1) % SERIAL_RX_BUFFER_SIZE; + return c; + } +} + +int HardwareSerial::availableForWrite(void) +{ +#if (SERIAL_TX_BUFFER_SIZE>256) + uint8_t oldSREG = SREG; + cli(); +#endif + tx_buffer_index_t head = _tx_buffer_head; + tx_buffer_index_t tail = _tx_buffer_tail; +#if (SERIAL_TX_BUFFER_SIZE>256) + SREG = oldSREG; +#endif + if (head >= tail) return SERIAL_TX_BUFFER_SIZE - 1 - head + tail; + return tail - head - 1; +} + +void HardwareSerial::flush() +{ + // If we have never written a byte, no need to flush. This special + // case is needed since there is no way to force the TXC (transmit + // complete) bit to 1 during initialization + if (!_written) + return; + + while (bit_is_set(*_ucsrb, UDRIE0) || bit_is_clear(*_ucsra, TXC0)) { + if (bit_is_clear(SREG, SREG_I) && bit_is_set(*_ucsrb, UDRIE0)) + // Interrupts are globally disabled, but the DR empty + // interrupt should be enabled, so poll the DR empty flag to + // prevent deadlock + if (bit_is_set(*_ucsra, UDRE0)) + _tx_udr_empty_irq(); + } + // If we get here, nothing is queued anymore (DRIE is disabled) and + // the hardware finished tranmission (TXC is set). +} + +size_t HardwareSerial::write(uint8_t c) +{ + _written = true; + // If the buffer and the data register is empty, just write the byte + // to the data register and be done. This shortcut helps + // significantly improve the effective datarate at high (> + // 500kbit/s) bitrates, where interrupt overhead becomes a slowdown. + if (_tx_buffer_head == _tx_buffer_tail && bit_is_set(*_ucsra, UDRE0)) { + *_udr = c; + sbi(*_ucsra, TXC0); + return 1; + } + tx_buffer_index_t i = (_tx_buffer_head + 1) % SERIAL_TX_BUFFER_SIZE; + + // If the output buffer is full, there's nothing for it other than to + // wait for the interrupt handler to empty it a bit + while (i == _tx_buffer_tail) { + if (bit_is_clear(SREG, SREG_I)) { + // Interrupts are disabled, so we'll have to poll the data + // register empty flag ourselves. If it is set, pretend an + // interrupt has happened and call the handler to free up + // space for us. + if(bit_is_set(*_ucsra, UDRE0)) + _tx_udr_empty_irq(); + } else { + // nop, the interrupt handler will free up space for us + } + } + + _tx_buffer[_tx_buffer_head] = c; + _tx_buffer_head = i; + + sbi(*_ucsrb, UDRIE0); + + return 1; +} + +#endif // whole file diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial.h index ba4650e04fd15d00479c585109a7af98af4a4489..8a5bf95e6600494ba31b857c474f95636f9d8c2e 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial.h @@ -1,3 +1,161 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c99f65f3901e265d8001f6814b78323ce0a929a766504712ba1cc7a0042d87cb -size 5254 +/* + HardwareSerial.h - Hardware serial library for Wiring + Copyright (c) 2006 Nicholas Zambetti. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Modified 28 September 2010 by Mark Sproul + Modified 14 August 2012 by Alarus + Modified 3 December 2013 by Matthijs Kooijman +*/ + +#ifndef HardwareSerial_h +#define HardwareSerial_h + +#include + +#include "Stream.h" + +// Define constants and variables for buffering incoming serial data. We're +// using a ring buffer (I think), in which head is the index of the location +// to which to write the next incoming character and tail is the index of the +// location from which to read. +// NOTE: a "power of 2" buffer size is reccomended to dramatically +// optimize all the modulo operations for ring buffers. +// WARNING: When buffer sizes are increased to > 256, the buffer index +// variables are automatically increased in size, but the extra +// atomicity guards needed for that are not implemented. This will +// often work, but occasionally a race condition can occur that makes +// Serial behave erratically. See https://github.com/arduino/Arduino/issues/2405 +#if !defined(SERIAL_TX_BUFFER_SIZE) +#if ((RAMEND - RAMSTART) < 1023) +#define SERIAL_TX_BUFFER_SIZE 16 +#else +#define SERIAL_TX_BUFFER_SIZE 64 +#endif +#endif +#if !defined(SERIAL_RX_BUFFER_SIZE) +#if ((RAMEND - RAMSTART) < 1023) +#define SERIAL_RX_BUFFER_SIZE 16 +#else +#define SERIAL_RX_BUFFER_SIZE 64 +#endif +#endif +#if (SERIAL_TX_BUFFER_SIZE>256) +typedef uint16_t tx_buffer_index_t; +#else +typedef uint8_t tx_buffer_index_t; +#endif +#if (SERIAL_RX_BUFFER_SIZE>256) +typedef uint16_t rx_buffer_index_t; +#else +typedef uint8_t rx_buffer_index_t; +#endif + +// Define config for Serial.begin(baud, config); +#define SERIAL_5N1 0x00 +#define SERIAL_6N1 0x02 +#define SERIAL_7N1 0x04 +#define SERIAL_8N1 0x06 +#define SERIAL_5N2 0x08 +#define SERIAL_6N2 0x0A +#define SERIAL_7N2 0x0C +#define SERIAL_8N2 0x0E +#define SERIAL_5E1 0x20 +#define SERIAL_6E1 0x22 +#define SERIAL_7E1 0x24 +#define SERIAL_8E1 0x26 +#define SERIAL_5E2 0x28 +#define SERIAL_6E2 0x2A +#define SERIAL_7E2 0x2C +#define SERIAL_8E2 0x2E +#define SERIAL_5O1 0x30 +#define SERIAL_6O1 0x32 +#define SERIAL_7O1 0x34 +#define SERIAL_8O1 0x36 +#define SERIAL_5O2 0x38 +#define SERIAL_6O2 0x3A +#define SERIAL_7O2 0x3C +#define SERIAL_8O2 0x3E + +class HardwareSerial : public Stream +{ + protected: + volatile uint8_t * const _ubrrh; + volatile uint8_t * const _ubrrl; + volatile uint8_t * const _ucsra; + volatile uint8_t * const _ucsrb; + volatile uint8_t * const _ucsrc; + volatile uint8_t * const _udr; + // Has any byte been written to the UART since begin() + bool _written; + + volatile rx_buffer_index_t _rx_buffer_head; + volatile rx_buffer_index_t _rx_buffer_tail; + volatile tx_buffer_index_t _tx_buffer_head; + volatile tx_buffer_index_t _tx_buffer_tail; + + // Don't put any members after these buffers, since only the first + // 32 bytes of this struct can be accessed quickly using the ldd + // instruction. + unsigned char _rx_buffer[SERIAL_RX_BUFFER_SIZE]; + unsigned char _tx_buffer[SERIAL_TX_BUFFER_SIZE]; + + public: + inline HardwareSerial( + volatile uint8_t *ubrrh, volatile uint8_t *ubrrl, + volatile uint8_t *ucsra, volatile uint8_t *ucsrb, + volatile uint8_t *ucsrc, volatile uint8_t *udr); + void begin(unsigned long baud) { begin(baud, SERIAL_8N1); } + void begin(unsigned long, uint8_t); + void end(); + virtual int available(void); + virtual int peek(void); + virtual int read(void); + int availableForWrite(void); + virtual void flush(void); + virtual size_t write(uint8_t); + inline size_t write(unsigned long n) { return write((uint8_t)n); } + inline size_t write(long n) { return write((uint8_t)n); } + inline size_t write(unsigned int n) { return write((uint8_t)n); } + inline size_t write(int n) { return write((uint8_t)n); } + using Print::write; // pull in write(str) and write(buf, size) from Print + operator bool() { return true; } + + // Interrupt handlers - Not intended to be called externally + inline void _rx_complete_irq(void); + void _tx_udr_empty_irq(void); +}; + +#if defined(UBRRH) || defined(UBRR0H) + extern HardwareSerial Serial; + #define HAVE_HWSERIAL0 +#endif +#if defined(UBRR1H) + extern HardwareSerial Serial1; + #define HAVE_HWSERIAL1 +#endif +#if defined(UBRR2H) + extern HardwareSerial Serial2; + #define HAVE_HWSERIAL2 +#endif +#if defined(UBRR3H) + extern HardwareSerial Serial3; + #define HAVE_HWSERIAL3 +#endif + +extern void serialEventRun(void) __attribute__((weak)); + +#endif diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp index 90f4b018d7ac9a61a2e314b3467de8ea05c0fcc8..1146eebab629f392bbeff5d5e78b2d9f16dcf289 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial0.cpp @@ -1,3 +1,79 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e40a49e883a7205cdc818ad7f95297d8517e765b350ed8ab84ab69563417573b -size 2605 +/* + HardwareSerial0.cpp - Hardware serial library for Wiring + Copyright (c) 2006 Nicholas Zambetti. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Modified 23 November 2006 by David A. Mellis + Modified 28 September 2010 by Mark Sproul + Modified 14 August 2012 by Alarus + Modified 3 December 2013 by Matthijs Kooijman +*/ + +#include "Arduino.h" +#include "HardwareSerial.h" +#include "HardwareSerial_private.h" + +// Each HardwareSerial is defined in its own file, sine the linker pulls +// in the entire file when any element inside is used. --gc-sections can +// additionally cause unused symbols to be dropped, but ISRs have the +// "used" attribute so are never dropped and they keep the +// HardwareSerial instance in as well. Putting each instance in its own +// file prevents the linker from pulling in any unused instances in the +// first place. + +#if defined(HAVE_HWSERIAL0) + +#if defined(USART_RX_vect) + ISR(USART_RX_vect) +#elif defined(USART0_RX_vect) + ISR(USART0_RX_vect) +#elif defined(USART_RXC_vect) + ISR(USART_RXC_vect) // ATmega8 +#else + #error "Don't know what the Data Received vector is called for Serial" +#endif + { + Serial._rx_complete_irq(); + } + +#if defined(UART0_UDRE_vect) +ISR(UART0_UDRE_vect) +#elif defined(UART_UDRE_vect) +ISR(UART_UDRE_vect) +#elif defined(USART0_UDRE_vect) +ISR(USART0_UDRE_vect) +#elif defined(USART_UDRE_vect) +ISR(USART_UDRE_vect) +#else + #error "Don't know what the Data Register Empty vector is called for Serial" +#endif +{ + Serial._tx_udr_empty_irq(); +} + +#if defined(UBRRH) && defined(UBRRL) + HardwareSerial Serial(&UBRRH, &UBRRL, &UCSRA, &UCSRB, &UCSRC, &UDR); +#else + HardwareSerial Serial(&UBRR0H, &UBRR0L, &UCSR0A, &UCSR0B, &UCSR0C, &UDR0); +#endif + +// Function that can be weakly referenced by serialEventRun to prevent +// pulling in this file if it's not otherwise used. +bool Serial0_available() { + return Serial.available(); +} + +#endif // HAVE_HWSERIAL0 diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp index 5381d9a9f33eab0ed81ddcc6d639dacf6d474a9f..19625e235d8e26dad94574bbbb3775d7f0925407 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial1.cpp @@ -1,3 +1,69 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ffdad9bc65b72f3b0d9fb173dd689d22cfb7194179bfaba2567a48ecbab5b489 -size 2315 +/* + HardwareSerial1.cpp - Hardware serial library for Wiring + Copyright (c) 2006 Nicholas Zambetti. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Modified 23 November 2006 by David A. Mellis + Modified 28 September 2010 by Mark Sproul + Modified 14 August 2012 by Alarus + Modified 3 December 2013 by Matthijs Kooijman +*/ + +#include "Arduino.h" +#include "HardwareSerial.h" +#include "HardwareSerial_private.h" + +// Each HardwareSerial is defined in its own file, sine the linker pulls +// in the entire file when any element inside is used. --gc-sections can +// additionally cause unused symbols to be dropped, but ISRs have the +// "used" attribute so are never dropped and they keep the +// HardwareSerial instance in as well. Putting each instance in its own +// file prevents the linker from pulling in any unused instances in the +// first place. + +#if defined(HAVE_HWSERIAL1) + +#if defined(UART1_RX_vect) +ISR(UART1_RX_vect) +#elif defined(USART1_RX_vect) +ISR(USART1_RX_vect) +#else +#error "Don't know what the Data Register Empty vector is called for Serial1" +#endif +{ + Serial1._rx_complete_irq(); +} + +#if defined(UART1_UDRE_vect) +ISR(UART1_UDRE_vect) +#elif defined(USART1_UDRE_vect) +ISR(USART1_UDRE_vect) +#else +#error "Don't know what the Data Register Empty vector is called for Serial1" +#endif +{ + Serial1._tx_udr_empty_irq(); +} + +HardwareSerial Serial1(&UBRR1H, &UBRR1L, &UCSR1A, &UCSR1B, &UCSR1C, &UDR1); + +// Function that can be weakly referenced by serialEventRun to prevent +// pulling in this file if it's not otherwise used. +bool Serial1_available() { + return Serial1.available(); +} + +#endif // HAVE_HWSERIAL1 diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp index 68a857a4bf256f01e4d8074010f55781277f917a..fd334ae15b066f41cdab545587826f70d83371cf 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial2.cpp @@ -1,3 +1,57 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da0c6e268055516118f3a5db6e39e3ddc78d819fc8d55f7140ca68cc7ca22b79 -size 1975 +/* + HardwareSerial2.cpp - Hardware serial library for Wiring + Copyright (c) 2006 Nicholas Zambetti. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Modified 23 November 2006 by David A. Mellis + Modified 28 September 2010 by Mark Sproul + Modified 14 August 2012 by Alarus + Modified 3 December 2013 by Matthijs Kooijman +*/ + +#include "Arduino.h" +#include "HardwareSerial.h" +#include "HardwareSerial_private.h" + +// Each HardwareSerial is defined in its own file, sine the linker pulls +// in the entire file when any element inside is used. --gc-sections can +// additionally cause unused symbols to be dropped, but ISRs have the +// "used" attribute so are never dropped and they keep the +// HardwareSerial instance in as well. Putting each instance in its own +// file prevents the linker from pulling in any unused instances in the +// first place. + +#if defined(HAVE_HWSERIAL2) + +ISR(USART2_RX_vect) +{ + Serial2._rx_complete_irq(); +} + +ISR(USART2_UDRE_vect) +{ + Serial2._tx_udr_empty_irq(); +} + +HardwareSerial Serial2(&UBRR2H, &UBRR2L, &UCSR2A, &UCSR2B, &UCSR2C, &UDR2); + +// Function that can be weakly referenced by serialEventRun to prevent +// pulling in this file if it's not otherwise used. +bool Serial2_available() { + return Serial2.available(); +} + +#endif // HAVE_HWSERIAL2 diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp index 47f301262ae1a6b6e55145892fce00a90193653e..a68095b37cb5811a6074a9583bef5babe7223369 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial3.cpp @@ -1,3 +1,57 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:461fdbefdd2e02f8bcfdebd08f7e676d5d0afa9254acf1db3eea6ff2932f1a5e -size 1975 +/* + HardwareSerial3.cpp - Hardware serial library for Wiring + Copyright (c) 2006 Nicholas Zambetti. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Modified 23 November 2006 by David A. Mellis + Modified 28 September 2010 by Mark Sproul + Modified 14 August 2012 by Alarus + Modified 3 December 2013 by Matthijs Kooijman +*/ + +#include "Arduino.h" +#include "HardwareSerial.h" +#include "HardwareSerial_private.h" + +// Each HardwareSerial is defined in its own file, sine the linker pulls +// in the entire file when any element inside is used. --gc-sections can +// additionally cause unused symbols to be dropped, but ISRs have the +// "used" attribute so are never dropped and they keep the +// HardwareSerial instance in as well. Putting each instance in its own +// file prevents the linker from pulling in any unused instances in the +// first place. + +#if defined(HAVE_HWSERIAL3) + +ISR(USART3_RX_vect) +{ + Serial3._rx_complete_irq(); +} + +ISR(USART3_UDRE_vect) +{ + Serial3._tx_udr_empty_irq(); +} + +HardwareSerial Serial3(&UBRR3H, &UBRR3L, &UCSR3A, &UCSR3B, &UCSR3C, &UDR3); + +// Function that can be weakly referenced by serialEventRun to prevent +// pulling in this file if it's not otherwise used. +bool Serial3_available() { + return Serial3.available(); +} + +#endif // HAVE_HWSERIAL3 diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial_private.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial_private.h index b669c9a386e1d78c621a17b484e0bda63be76be0..761a5e559cd09fede288d691b158aec4e70ee41a 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial_private.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/HardwareSerial_private.h @@ -1,3 +1,123 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b72f4ad3b3ad10797bfb4a72a7f44b9cf16ad7e497424c81abb9cea761eeaae7 -size 4469 +/* + HardwareSerial_private.h - Hardware serial library for Wiring + Copyright (c) 2006 Nicholas Zambetti. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Modified 23 November 2006 by David A. Mellis + Modified 28 September 2010 by Mark Sproul + Modified 14 August 2012 by Alarus +*/ + +#include "wiring_private.h" + +// this next line disables the entire HardwareSerial.cpp, +// this is so I can support Attiny series and any other chip without a uart +#if defined(HAVE_HWSERIAL0) || defined(HAVE_HWSERIAL1) || defined(HAVE_HWSERIAL2) || defined(HAVE_HWSERIAL3) + +// Ensure that the various bit positions we use are available with a 0 +// postfix, so we can always use the values for UART0 for all UARTs. The +// alternative, passing the various values for each UART to the +// HardwareSerial constructor also works, but makes the code bigger and +// slower. +#if !defined(TXC0) +#if defined(TXC) +// Some chips like ATmega8 don't have UPE, only PE. The other bits are +// named as expected. +#if !defined(UPE) && defined(PE) +#define UPE PE +#endif +// On ATmega8, the uart and its bits are not numbered, so there is no TXC0 etc. +#define TXC0 TXC +#define RXEN0 RXEN +#define TXEN0 TXEN +#define RXCIE0 RXCIE +#define UDRIE0 UDRIE +#define U2X0 U2X +#define UPE0 UPE +#define UDRE0 UDRE +#elif defined(TXC1) +// Some devices have uart1 but no uart0 +#define TXC0 TXC1 +#define RXEN0 RXEN1 +#define TXEN0 TXEN1 +#define RXCIE0 RXCIE1 +#define UDRIE0 UDRIE1 +#define U2X0 U2X1 +#define UPE0 UPE1 +#define UDRE0 UDRE1 +#else +#error No UART found in HardwareSerial.cpp +#endif +#endif // !defined TXC0 + +// Check at compiletime that it is really ok to use the bit positions of +// UART0 for the other UARTs as well, in case these values ever get +// changed for future hardware. +#if defined(TXC1) && (TXC1 != TXC0 || RXEN1 != RXEN0 || RXCIE1 != RXCIE0 || \ + UDRIE1 != UDRIE0 || U2X1 != U2X0 || UPE1 != UPE0 || \ + UDRE1 != UDRE0) +#error "Not all bit positions for UART1 are the same as for UART0" +#endif +#if defined(TXC2) && (TXC2 != TXC0 || RXEN2 != RXEN0 || RXCIE2 != RXCIE0 || \ + UDRIE2 != UDRIE0 || U2X2 != U2X0 || UPE2 != UPE0 || \ + UDRE2 != UDRE0) +#error "Not all bit positions for UART2 are the same as for UART0" +#endif +#if defined(TXC3) && (TXC3 != TXC0 || RXEN3 != RXEN0 || RXCIE3 != RXCIE0 || \ + UDRIE3 != UDRIE0 || U3X3 != U3X0 || UPE3 != UPE0 || \ + UDRE3 != UDRE0) +#error "Not all bit positions for UART3 are the same as for UART0" +#endif + +// Constructors //////////////////////////////////////////////////////////////// + +HardwareSerial::HardwareSerial( + volatile uint8_t *ubrrh, volatile uint8_t *ubrrl, + volatile uint8_t *ucsra, volatile uint8_t *ucsrb, + volatile uint8_t *ucsrc, volatile uint8_t *udr) : + _ubrrh(ubrrh), _ubrrl(ubrrl), + _ucsra(ucsra), _ucsrb(ucsrb), _ucsrc(ucsrc), + _udr(udr), + _rx_buffer_head(0), _rx_buffer_tail(0), + _tx_buffer_head(0), _tx_buffer_tail(0) +{ +} + +// Actual interrupt handlers ////////////////////////////////////////////////////////////// + +void HardwareSerial::_rx_complete_irq(void) +{ + if (bit_is_clear(*_ucsra, UPE0)) { + // No Parity error, read byte and store it in the buffer if there is + // room + unsigned char c = *_udr; + rx_buffer_index_t i = (unsigned int)(_rx_buffer_head + 1) % SERIAL_RX_BUFFER_SIZE; + + // if we should be storing the received character into the location + // just before the tail (meaning that the head would advance to the + // current location of the tail), we're about to overflow the buffer + // and so we don't write the character or advance the head. + if (i != _rx_buffer_tail) { + _rx_buffer[_rx_buffer_head] = c; + _rx_buffer_head = i; + } + } else { + // Parity error, read byte but discard it + *_udr; + }; +} + +#endif // whole file diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/IPAddress.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/IPAddress.cpp index 9605fc3b456c84acec1969f2a23801ae818b12ba..d9fe5be1d3e64844e149ce03ea77a2c8f226ffd8 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/IPAddress.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/IPAddress.cpp @@ -1,3 +1,114 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e423a28f833614ff4e1cf1e5b841181e8e0c727f4ca3ae81ee66afa84cf75f63 -size 2851 +/* + IPAddress.cpp - Base class that provides IPAddress + Copyright (c) 2011 Adrian McEwen. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include +#include + +IPAddress::IPAddress() +{ + _address.dword = 0; +} + +IPAddress::IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet) +{ + _address.bytes[0] = first_octet; + _address.bytes[1] = second_octet; + _address.bytes[2] = third_octet; + _address.bytes[3] = fourth_octet; +} + +IPAddress::IPAddress(uint32_t address) +{ + _address.dword = address; +} + +IPAddress::IPAddress(const uint8_t *address) +{ + memcpy(_address.bytes, address, sizeof(_address.bytes)); +} + +bool IPAddress::fromString(const char *address) +{ + uint16_t acc = 0; // Accumulator + uint8_t dots = 0; + + while (*address) + { + char c = *address++; + if (c >= '0' && c <= '9') + { + acc = acc * 10 + (c - '0'); + if (acc > 255) { + // Value out of [0..255] range + return false; + } + } + else if (c == '.') + { + if (dots == 3) { + // Too much dots (there must be 3 dots) + return false; + } + _address.bytes[dots++] = acc; + acc = 0; + } + else + { + // Invalid char + return false; + } + } + + if (dots != 3) { + // Too few dots (there must be 3 dots) + return false; + } + _address.bytes[3] = acc; + return true; +} + +IPAddress& IPAddress::operator=(const uint8_t *address) +{ + memcpy(_address.bytes, address, sizeof(_address.bytes)); + return *this; +} + +IPAddress& IPAddress::operator=(uint32_t address) +{ + _address.dword = address; + return *this; +} + +bool IPAddress::operator==(const uint8_t* addr) const +{ + return memcmp(addr, _address.bytes, sizeof(_address.bytes)) == 0; +} + +size_t IPAddress::printTo(Print& p) const +{ + size_t n = 0; + for (int i =0; i < 3; i++) + { + n += p.print(_address.bytes[i], DEC); + n += p.print('.'); + } + n += p.print(_address.bytes[3], DEC); + return n; +} + diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/IPAddress.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/IPAddress.h index c3ce85ecf741fd94a019ec97ad5ca28c5aa49034..d762f2c02b505288430370b011da0aa1ae2697a3 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/IPAddress.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/IPAddress.h @@ -1,3 +1,78 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7703aef6f91a385729cf8f16ed561b0f8c7eb823698c80af3a33f9e0de3b4e72 -size 2861 +/* + IPAddress.h - Base class that provides IPAddress + Copyright (c) 2011 Adrian McEwen. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef IPAddress_h +#define IPAddress_h + +#include +#include "Printable.h" +#include "WString.h" + +// A class to make it easier to handle and pass around IP addresses + +class IPAddress : public Printable { +private: + union { + uint8_t bytes[4]; // IPv4 address + uint32_t dword; + } _address; + + // Access the raw byte array containing the address. Because this returns a pointer + // to the internal structure rather than a copy of the address this function should only + // be used when you know that the usage of the returned uint8_t* will be transient and not + // stored. + uint8_t* raw_address() { return _address.bytes; }; + +public: + // Constructors + IPAddress(); + IPAddress(uint8_t first_octet, uint8_t second_octet, uint8_t third_octet, uint8_t fourth_octet); + IPAddress(uint32_t address); + IPAddress(const uint8_t *address); + + bool fromString(const char *address); + bool fromString(const String &address) { return fromString(address.c_str()); } + + // Overloaded cast operator to allow IPAddress objects to be used where a pointer + // to a four-byte uint8_t array is expected + operator uint32_t() const { return _address.dword; }; + bool operator==(const IPAddress& addr) const { return _address.dword == addr._address.dword; }; + bool operator==(const uint8_t* addr) const; + + // Overloaded index operator to allow getting and setting individual octets of the address + uint8_t operator[](int index) const { return _address.bytes[index]; }; + uint8_t& operator[](int index) { return _address.bytes[index]; }; + + // Overloaded copy operators to allow initialisation of IPAddress objects from other types + IPAddress& operator=(const uint8_t *address); + IPAddress& operator=(uint32_t address); + + virtual size_t printTo(Print& p) const; + + friend class EthernetClass; + friend class UDP; + friend class Client; + friend class Server; + friend class DhcpClass; + friend class DNSClient; +}; + +const IPAddress INADDR_NONE(0,0,0,0); + +#endif diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp index 501522b32d9eae2faf45d7e1fad9903839e4ba09..c489d9f1af2c9ceb148977f1c1a0c22e87395cda 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/PluggableUSB.cpp @@ -1,3 +1,115 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c39d37902d2819007ef6b82c132ba89c821b134e143d59d33c99a46765e2a62 -size 2725 +/* + PluggableUSB.cpp + Copyright (c) 2015 Arduino LLC + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include "USBAPI.h" +#include "PluggableUSB.h" + +#if defined(USBCON) +#ifdef PLUGGABLE_USB_ENABLED + +extern uint8_t _initEndpoints[]; + +int PluggableUSB_::getInterface(uint8_t* interfaceCount) +{ + int sent = 0; + PluggableUSBModule* node; + for (node = rootNode; node; node = node->next) { + int res = node->getInterface(interfaceCount); + if (res < 0) + return -1; + sent += res; + } + return sent; +} + +int PluggableUSB_::getDescriptor(USBSetup& setup) +{ + PluggableUSBModule* node; + for (node = rootNode; node; node = node->next) { + int ret = node->getDescriptor(setup); + // ret!=0 -> request has been processed + if (ret) + return ret; + } + return 0; +} + +void PluggableUSB_::getShortName(char *iSerialNum) +{ + PluggableUSBModule* node; + for (node = rootNode; node; node = node->next) { + iSerialNum += node->getShortName(iSerialNum); + } + *iSerialNum = 0; +} + +bool PluggableUSB_::setup(USBSetup& setup) +{ + PluggableUSBModule* node; + for (node = rootNode; node; node = node->next) { + if (node->setup(setup)) { + return true; + } + } + return false; +} + +bool PluggableUSB_::plug(PluggableUSBModule *node) +{ + if ((lastEp + node->numEndpoints) > USB_ENDPOINTS) { + return false; + } + + if (!rootNode) { + rootNode = node; + } else { + PluggableUSBModule *current = rootNode; + while (current->next) { + current = current->next; + } + current->next = node; + } + + node->pluggedInterface = lastIf; + node->pluggedEndpoint = lastEp; + lastIf += node->numInterfaces; + for (uint8_t i = 0; i < node->numEndpoints; i++) { + _initEndpoints[lastEp] = node->endpointType[i]; + lastEp++; + } + return true; + // restart USB layer??? +} + +PluggableUSB_& PluggableUSB() +{ + static PluggableUSB_ obj; + return obj; +} + +PluggableUSB_::PluggableUSB_() : lastIf(CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT), + lastEp(CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT), + rootNode(NULL) +{ + // Empty +} + +#endif + +#endif /* if defined(USBCON) */ diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/PluggableUSB.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/PluggableUSB.h index 883f342186b76a115b321c105c54c2648213741c..507f0df9b35657f0f154ae088eda37487289abc3 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/PluggableUSB.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/PluggableUSB.h @@ -1,3 +1,74 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:555ba172a3004d809a10a8c6bc5ae93154a0148eb5a5a62e9855ad1b57535704 -size 2063 +/* + PluggableUSB.h + Copyright (c) 2015 Arduino LLC + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef PUSB_h +#define PUSB_h + +#include "USBAPI.h" +#include + +#if defined(USBCON) + +class PluggableUSBModule { +public: + PluggableUSBModule(uint8_t numEps, uint8_t numIfs, uint8_t *epType) : + numEndpoints(numEps), numInterfaces(numIfs), endpointType(epType) + { } + +protected: + virtual bool setup(USBSetup& setup) = 0; + virtual int getInterface(uint8_t* interfaceCount) = 0; + virtual int getDescriptor(USBSetup& setup) = 0; + virtual uint8_t getShortName(char *name) { name[0] = 'A'+pluggedInterface; return 1; } + + uint8_t pluggedInterface; + uint8_t pluggedEndpoint; + + const uint8_t numEndpoints; + const uint8_t numInterfaces; + const uint8_t *endpointType; + + PluggableUSBModule *next = NULL; + + friend class PluggableUSB_; +}; + +class PluggableUSB_ { +public: + PluggableUSB_(); + bool plug(PluggableUSBModule *node); + int getInterface(uint8_t* interfaceCount); + int getDescriptor(USBSetup& setup); + bool setup(USBSetup& setup); + void getShortName(char *iSerialNum); + +private: + uint8_t lastIf; + uint8_t lastEp; + PluggableUSBModule* rootNode; +}; + +// Replacement for global singleton. +// This function prevents static-initialization-order-fiasco +// https://isocpp.org/wiki/faq/ctors#static-init-order-on-first-use +PluggableUSB_& PluggableUSB(); + +#endif + +#endif diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Print.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Print.cpp index 01a0eb530d32fa62d0655b1a2483bb492c6f9b1b..1e4c99a655242bcdd1485a88135ddeca31fe04b0 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Print.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Print.cpp @@ -1,3 +1,266 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e5077fe1dff0b2f506f23bb2a7dea251f739aa9aab2ad285f71ad6434161e26 -size 5442 +/* + Print.cpp - Base class that provides print() and println() + Copyright (c) 2008 David A. Mellis. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + Modified 23 November 2006 by David A. Mellis + Modified 03 August 2015 by Chuck Todd + */ + +#include +#include +#include +#include +#include "Arduino.h" + +#include "Print.h" + +// Public Methods ////////////////////////////////////////////////////////////// + +/* default implementation: may be overridden */ +size_t Print::write(const uint8_t *buffer, size_t size) +{ + size_t n = 0; + while (size--) { + if (write(*buffer++)) n++; + else break; + } + return n; +} + +size_t Print::print(const __FlashStringHelper *ifsh) +{ + PGM_P p = reinterpret_cast(ifsh); + size_t n = 0; + while (1) { + unsigned char c = pgm_read_byte(p++); + if (c == 0) break; + if (write(c)) n++; + else break; + } + return n; +} + +size_t Print::print(const String &s) +{ + return write(s.c_str(), s.length()); +} + +size_t Print::print(const char str[]) +{ + return write(str); +} + +size_t Print::print(char c) +{ + return write(c); +} + +size_t Print::print(unsigned char b, int base) +{ + return print((unsigned long) b, base); +} + +size_t Print::print(int n, int base) +{ + return print((long) n, base); +} + +size_t Print::print(unsigned int n, int base) +{ + return print((unsigned long) n, base); +} + +size_t Print::print(long n, int base) +{ + if (base == 0) { + return write(n); + } else if (base == 10) { + if (n < 0) { + int t = print('-'); + n = -n; + return printNumber(n, 10) + t; + } + return printNumber(n, 10); + } else { + return printNumber(n, base); + } +} + +size_t Print::print(unsigned long n, int base) +{ + if (base == 0) return write(n); + else return printNumber(n, base); +} + +size_t Print::print(double n, int digits) +{ + return printFloat(n, digits); +} + +size_t Print::println(const __FlashStringHelper *ifsh) +{ + size_t n = print(ifsh); + n += println(); + return n; +} + +size_t Print::print(const Printable& x) +{ + return x.printTo(*this); +} + +size_t Print::println(void) +{ + return write("\r\n"); +} + +size_t Print::println(const String &s) +{ + size_t n = print(s); + n += println(); + return n; +} + +size_t Print::println(const char c[]) +{ + size_t n = print(c); + n += println(); + return n; +} + +size_t Print::println(char c) +{ + size_t n = print(c); + n += println(); + return n; +} + +size_t Print::println(unsigned char b, int base) +{ + size_t n = print(b, base); + n += println(); + return n; +} + +size_t Print::println(int num, int base) +{ + size_t n = print(num, base); + n += println(); + return n; +} + +size_t Print::println(unsigned int num, int base) +{ + size_t n = print(num, base); + n += println(); + return n; +} + +size_t Print::println(long num, int base) +{ + size_t n = print(num, base); + n += println(); + return n; +} + +size_t Print::println(unsigned long num, int base) +{ + size_t n = print(num, base); + n += println(); + return n; +} + +size_t Print::println(double num, int digits) +{ + size_t n = print(num, digits); + n += println(); + return n; +} + +size_t Print::println(const Printable& x) +{ + size_t n = print(x); + n += println(); + return n; +} + +// Private Methods ///////////////////////////////////////////////////////////// + +size_t Print::printNumber(unsigned long n, uint8_t base) +{ + char buf[8 * sizeof(long) + 1]; // Assumes 8-bit chars plus zero byte. + char *str = &buf[sizeof(buf) - 1]; + + *str = '\0'; + + // prevent crash if called with base == 1 + if (base < 2) base = 10; + + do { + char c = n % base; + n /= base; + + *--str = c < 10 ? c + '0' : c + 'A' - 10; + } while(n); + + return write(str); +} + +size_t Print::printFloat(double number, uint8_t digits) +{ + size_t n = 0; + + if (isnan(number)) return print("nan"); + if (isinf(number)) return print("inf"); + if (number > 4294967040.0) return print ("ovf"); // constant determined empirically + if (number <-4294967040.0) return print ("ovf"); // constant determined empirically + + // Handle negative numbers + if (number < 0.0) + { + n += print('-'); + number = -number; + } + + // Round correctly so that print(1.999, 2) prints as "2.00" + double rounding = 0.5; + for (uint8_t i=0; i 0) { + n += print('.'); + } + + // Extract digits from the remainder one at a time + while (digits-- > 0) + { + remainder *= 10.0; + unsigned int toPrint = (unsigned int)(remainder); + n += print(toPrint); + remainder -= toPrint; + } + + return n; +} diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Print.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Print.h index 8b23bffb2c3ebdf309794f706ea9be319a6d477e..7b53aa4d17ef689bc77ccf1cdbd8e8bfa0a7ae73 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Print.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Print.h @@ -1,3 +1,84 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:87acf3a449e19302be399e98a28f95ac27063985481d2c3dee1f06933ec3262e -size 2614 +/* + Print.h - Base class that provides print() and println() + Copyright (c) 2008 David A. Mellis. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef Print_h +#define Print_h + +#include +#include // for size_t + +#include "WString.h" +#include "Printable.h" + +#define DEC 10 +#define HEX 16 +#define OCT 8 +#define BIN 2 + +class Print +{ + private: + int write_error; + size_t printNumber(unsigned long, uint8_t); + size_t printFloat(double, uint8_t); + protected: + void setWriteError(int err = 1) { write_error = err; } + public: + Print() : write_error(0) {} + + int getWriteError() { return write_error; } + void clearWriteError() { setWriteError(0); } + + virtual size_t write(uint8_t) = 0; + size_t write(const char *str) { + if (str == NULL) return 0; + return write((const uint8_t *)str, strlen(str)); + } + virtual size_t write(const uint8_t *buffer, size_t size); + size_t write(const char *buffer, size_t size) { + return write((const uint8_t *)buffer, size); + } + + size_t print(const __FlashStringHelper *); + size_t print(const String &); + size_t print(const char[]); + size_t print(char); + size_t print(unsigned char, int = DEC); + size_t print(int, int = DEC); + size_t print(unsigned int, int = DEC); + size_t print(long, int = DEC); + size_t print(unsigned long, int = DEC); + size_t print(double, int = 2); + size_t print(const Printable&); + + size_t println(const __FlashStringHelper *); + size_t println(const String &s); + size_t println(const char[]); + size_t println(char); + size_t println(unsigned char, int = DEC); + size_t println(int, int = DEC); + size_t println(unsigned int, int = DEC); + size_t println(long, int = DEC); + size_t println(unsigned long, int = DEC); + size_t println(double, int = 2); + size_t println(const Printable&); + size_t println(void); +}; + +#endif diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Printable.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Printable.h index 380597b7da920f3dce44e7421651a32f9fb8057a..2a1b2e9f2c83f4109838b8b4b828bb2d94dc9eaf 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Printable.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/Printable.h @@ -1,3 +1,40 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ba6be49c4ef46aa03fa7b78cc444e72f811805cf33dfdddf26bd062cdbc14a0b -size 1335 +/* + Printable.h - Interface class that allows printing of complex types + Copyright (c) 2011 Adrian McEwen. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef Printable_h +#define Printable_h + +#include + +class Print; + +/** The Printable class provides a way for new classes to allow themselves to be printed. + By deriving from Printable and implementing the printTo method, it will then be possible + for users to print out instances of this class by passing them into the usual + Print::print and Print::println methods. +*/ + +class Printable +{ + public: + virtual size_t printTo(Print& p) const = 0; +}; + +#endif + diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/abi.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/abi.cpp index fab3dc87cc7b974b184f3a44f8d0796455ff5d89..8d719b8e644fe0778abce48dfb1ae1ee90d90c3b 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/abi.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/abi.cpp @@ -1,3 +1,35 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a37a4db55565fff2f574b44671bf683de1ae4971d0061611e2fa2631f25b2e8c -size 1222 +/* + Copyright (c) 2014 Arduino. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +extern "C" void __cxa_pure_virtual(void) __attribute__ ((__noreturn__)); +extern "C" void __cxa_deleted_virtual(void) __attribute__ ((__noreturn__)); + +void __cxa_pure_virtual(void) { + // We might want to write some diagnostics to uart in this case + //std::terminate(); + abort(); +} + +void __cxa_deleted_virtual(void) { + // We might want to write some diagnostics to uart in this case + //std::terminate(); + abort(); +} + diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/binary.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/binary.h index db3aea9634dc58151855312526a8ebcae6bb3842..aec4c733d4c0a944d371b10ce42a1e1a9de4e016 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/binary.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/binary.h @@ -1,3 +1,534 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cf4471358657a38f744807fe2b6eb7ab5dd13bab402e77d3dd38e78635c02755 -size 11214 +/* + binary.h - Definitions for binary constants + Copyright (c) 2006 David A. Mellis. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef Binary_h +#define Binary_h + +#define B0 0 +#define B00 0 +#define B000 0 +#define B0000 0 +#define B00000 0 +#define B000000 0 +#define B0000000 0 +#define B00000000 0 +#define B1 1 +#define B01 1 +#define B001 1 +#define B0001 1 +#define B00001 1 +#define B000001 1 +#define B0000001 1 +#define B00000001 1 +#define B10 2 +#define B010 2 +#define B0010 2 +#define B00010 2 +#define B000010 2 +#define B0000010 2 +#define B00000010 2 +#define B11 3 +#define B011 3 +#define B0011 3 +#define B00011 3 +#define B000011 3 +#define B0000011 3 +#define B00000011 3 +#define B100 4 +#define B0100 4 +#define B00100 4 +#define B000100 4 +#define B0000100 4 +#define B00000100 4 +#define B101 5 +#define B0101 5 +#define B00101 5 +#define B000101 5 +#define B0000101 5 +#define B00000101 5 +#define B110 6 +#define B0110 6 +#define B00110 6 +#define B000110 6 +#define B0000110 6 +#define B00000110 6 +#define B111 7 +#define B0111 7 +#define B00111 7 +#define B000111 7 +#define B0000111 7 +#define B00000111 7 +#define B1000 8 +#define B01000 8 +#define B001000 8 +#define B0001000 8 +#define B00001000 8 +#define B1001 9 +#define B01001 9 +#define B001001 9 +#define B0001001 9 +#define B00001001 9 +#define B1010 10 +#define B01010 10 +#define B001010 10 +#define B0001010 10 +#define B00001010 10 +#define B1011 11 +#define B01011 11 +#define B001011 11 +#define B0001011 11 +#define B00001011 11 +#define B1100 12 +#define B01100 12 +#define B001100 12 +#define B0001100 12 +#define B00001100 12 +#define B1101 13 +#define B01101 13 +#define B001101 13 +#define B0001101 13 +#define B00001101 13 +#define B1110 14 +#define B01110 14 +#define B001110 14 +#define B0001110 14 +#define B00001110 14 +#define B1111 15 +#define B01111 15 +#define B001111 15 +#define B0001111 15 +#define B00001111 15 +#define B10000 16 +#define B010000 16 +#define B0010000 16 +#define B00010000 16 +#define B10001 17 +#define B010001 17 +#define B0010001 17 +#define B00010001 17 +#define B10010 18 +#define B010010 18 +#define B0010010 18 +#define B00010010 18 +#define B10011 19 +#define B010011 19 +#define B0010011 19 +#define B00010011 19 +#define B10100 20 +#define B010100 20 +#define B0010100 20 +#define B00010100 20 +#define B10101 21 +#define B010101 21 +#define B0010101 21 +#define B00010101 21 +#define B10110 22 +#define B010110 22 +#define B0010110 22 +#define B00010110 22 +#define B10111 23 +#define B010111 23 +#define B0010111 23 +#define B00010111 23 +#define B11000 24 +#define B011000 24 +#define B0011000 24 +#define B00011000 24 +#define B11001 25 +#define B011001 25 +#define B0011001 25 +#define B00011001 25 +#define B11010 26 +#define B011010 26 +#define B0011010 26 +#define B00011010 26 +#define B11011 27 +#define B011011 27 +#define B0011011 27 +#define B00011011 27 +#define B11100 28 +#define B011100 28 +#define B0011100 28 +#define B00011100 28 +#define B11101 29 +#define B011101 29 +#define B0011101 29 +#define B00011101 29 +#define B11110 30 +#define B011110 30 +#define B0011110 30 +#define B00011110 30 +#define B11111 31 +#define B011111 31 +#define B0011111 31 +#define B00011111 31 +#define B100000 32 +#define B0100000 32 +#define B00100000 32 +#define B100001 33 +#define B0100001 33 +#define B00100001 33 +#define B100010 34 +#define B0100010 34 +#define B00100010 34 +#define B100011 35 +#define B0100011 35 +#define B00100011 35 +#define B100100 36 +#define B0100100 36 +#define B00100100 36 +#define B100101 37 +#define B0100101 37 +#define B00100101 37 +#define B100110 38 +#define B0100110 38 +#define B00100110 38 +#define B100111 39 +#define B0100111 39 +#define B00100111 39 +#define B101000 40 +#define B0101000 40 +#define B00101000 40 +#define B101001 41 +#define B0101001 41 +#define B00101001 41 +#define B101010 42 +#define B0101010 42 +#define B00101010 42 +#define B101011 43 +#define B0101011 43 +#define B00101011 43 +#define B101100 44 +#define B0101100 44 +#define B00101100 44 +#define B101101 45 +#define B0101101 45 +#define B00101101 45 +#define B101110 46 +#define B0101110 46 +#define B00101110 46 +#define B101111 47 +#define B0101111 47 +#define B00101111 47 +#define B110000 48 +#define B0110000 48 +#define B00110000 48 +#define B110001 49 +#define B0110001 49 +#define B00110001 49 +#define B110010 50 +#define B0110010 50 +#define B00110010 50 +#define B110011 51 +#define B0110011 51 +#define B00110011 51 +#define B110100 52 +#define B0110100 52 +#define B00110100 52 +#define B110101 53 +#define B0110101 53 +#define B00110101 53 +#define B110110 54 +#define B0110110 54 +#define B00110110 54 +#define B110111 55 +#define B0110111 55 +#define B00110111 55 +#define B111000 56 +#define B0111000 56 +#define B00111000 56 +#define B111001 57 +#define B0111001 57 +#define B00111001 57 +#define B111010 58 +#define B0111010 58 +#define B00111010 58 +#define B111011 59 +#define B0111011 59 +#define B00111011 59 +#define B111100 60 +#define B0111100 60 +#define B00111100 60 +#define B111101 61 +#define B0111101 61 +#define B00111101 61 +#define B111110 62 +#define B0111110 62 +#define B00111110 62 +#define B111111 63 +#define B0111111 63 +#define B00111111 63 +#define B1000000 64 +#define B01000000 64 +#define B1000001 65 +#define B01000001 65 +#define B1000010 66 +#define B01000010 66 +#define B1000011 67 +#define B01000011 67 +#define B1000100 68 +#define B01000100 68 +#define B1000101 69 +#define B01000101 69 +#define B1000110 70 +#define B01000110 70 +#define B1000111 71 +#define B01000111 71 +#define B1001000 72 +#define B01001000 72 +#define B1001001 73 +#define B01001001 73 +#define B1001010 74 +#define B01001010 74 +#define B1001011 75 +#define B01001011 75 +#define B1001100 76 +#define B01001100 76 +#define B1001101 77 +#define B01001101 77 +#define B1001110 78 +#define B01001110 78 +#define B1001111 79 +#define B01001111 79 +#define B1010000 80 +#define B01010000 80 +#define B1010001 81 +#define B01010001 81 +#define B1010010 82 +#define B01010010 82 +#define B1010011 83 +#define B01010011 83 +#define B1010100 84 +#define B01010100 84 +#define B1010101 85 +#define B01010101 85 +#define B1010110 86 +#define B01010110 86 +#define B1010111 87 +#define B01010111 87 +#define B1011000 88 +#define B01011000 88 +#define B1011001 89 +#define B01011001 89 +#define B1011010 90 +#define B01011010 90 +#define B1011011 91 +#define B01011011 91 +#define B1011100 92 +#define B01011100 92 +#define B1011101 93 +#define B01011101 93 +#define B1011110 94 +#define B01011110 94 +#define B1011111 95 +#define B01011111 95 +#define B1100000 96 +#define B01100000 96 +#define B1100001 97 +#define B01100001 97 +#define B1100010 98 +#define B01100010 98 +#define B1100011 99 +#define B01100011 99 +#define B1100100 100 +#define B01100100 100 +#define B1100101 101 +#define B01100101 101 +#define B1100110 102 +#define B01100110 102 +#define B1100111 103 +#define B01100111 103 +#define B1101000 104 +#define B01101000 104 +#define B1101001 105 +#define B01101001 105 +#define B1101010 106 +#define B01101010 106 +#define B1101011 107 +#define B01101011 107 +#define B1101100 108 +#define B01101100 108 +#define B1101101 109 +#define B01101101 109 +#define B1101110 110 +#define B01101110 110 +#define B1101111 111 +#define B01101111 111 +#define B1110000 112 +#define B01110000 112 +#define B1110001 113 +#define B01110001 113 +#define B1110010 114 +#define B01110010 114 +#define B1110011 115 +#define B01110011 115 +#define B1110100 116 +#define B01110100 116 +#define B1110101 117 +#define B01110101 117 +#define B1110110 118 +#define B01110110 118 +#define B1110111 119 +#define B01110111 119 +#define B1111000 120 +#define B01111000 120 +#define B1111001 121 +#define B01111001 121 +#define B1111010 122 +#define B01111010 122 +#define B1111011 123 +#define B01111011 123 +#define B1111100 124 +#define B01111100 124 +#define B1111101 125 +#define B01111101 125 +#define B1111110 126 +#define B01111110 126 +#define B1111111 127 +#define B01111111 127 +#define B10000000 128 +#define B10000001 129 +#define B10000010 130 +#define B10000011 131 +#define B10000100 132 +#define B10000101 133 +#define B10000110 134 +#define B10000111 135 +#define B10001000 136 +#define B10001001 137 +#define B10001010 138 +#define B10001011 139 +#define B10001100 140 +#define B10001101 141 +#define B10001110 142 +#define B10001111 143 +#define B10010000 144 +#define B10010001 145 +#define B10010010 146 +#define B10010011 147 +#define B10010100 148 +#define B10010101 149 +#define B10010110 150 +#define B10010111 151 +#define B10011000 152 +#define B10011001 153 +#define B10011010 154 +#define B10011011 155 +#define B10011100 156 +#define B10011101 157 +#define B10011110 158 +#define B10011111 159 +#define B10100000 160 +#define B10100001 161 +#define B10100010 162 +#define B10100011 163 +#define B10100100 164 +#define B10100101 165 +#define B10100110 166 +#define B10100111 167 +#define B10101000 168 +#define B10101001 169 +#define B10101010 170 +#define B10101011 171 +#define B10101100 172 +#define B10101101 173 +#define B10101110 174 +#define B10101111 175 +#define B10110000 176 +#define B10110001 177 +#define B10110010 178 +#define B10110011 179 +#define B10110100 180 +#define B10110101 181 +#define B10110110 182 +#define B10110111 183 +#define B10111000 184 +#define B10111001 185 +#define B10111010 186 +#define B10111011 187 +#define B10111100 188 +#define B10111101 189 +#define B10111110 190 +#define B10111111 191 +#define B11000000 192 +#define B11000001 193 +#define B11000010 194 +#define B11000011 195 +#define B11000100 196 +#define B11000101 197 +#define B11000110 198 +#define B11000111 199 +#define B11001000 200 +#define B11001001 201 +#define B11001010 202 +#define B11001011 203 +#define B11001100 204 +#define B11001101 205 +#define B11001110 206 +#define B11001111 207 +#define B11010000 208 +#define B11010001 209 +#define B11010010 210 +#define B11010011 211 +#define B11010100 212 +#define B11010101 213 +#define B11010110 214 +#define B11010111 215 +#define B11011000 216 +#define B11011001 217 +#define B11011010 218 +#define B11011011 219 +#define B11011100 220 +#define B11011101 221 +#define B11011110 222 +#define B11011111 223 +#define B11100000 224 +#define B11100001 225 +#define B11100010 226 +#define B11100011 227 +#define B11100100 228 +#define B11100101 229 +#define B11100110 230 +#define B11100111 231 +#define B11101000 232 +#define B11101001 233 +#define B11101010 234 +#define B11101011 235 +#define B11101100 236 +#define B11101101 237 +#define B11101110 238 +#define B11101111 239 +#define B11110000 240 +#define B11110001 241 +#define B11110010 242 +#define B11110011 243 +#define B11110100 244 +#define B11110101 245 +#define B11110110 246 +#define B11110111 247 +#define B11111000 248 +#define B11111001 249 +#define B11111010 250 +#define B11111011 251 +#define B11111100 252 +#define B11111101 253 +#define B11111110 254 +#define B11111111 255 + +#endif diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/hooks.c b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/hooks.c index bfa48cfc46e256cd10ac7bbea2bb17c521eec5f3..641eabc7376b59e2ebbf4a90a338e3c7a9d797a4 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/hooks.c +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/hooks.c @@ -1,3 +1,31 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:525370afcb26502a965376f05b00b4aafc89644e6bc3c693718d56533ca38771 -size 1142 +/* + Copyright (c) 2012 Arduino. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +/** + * Empty yield() hook. + * + * This function is intended to be used by library writers to build + * libraries or sketches that supports cooperative threads. + * + * Its defined as a weak symbol and it can be redefined to implement a + * real cooperative scheduler. + */ +static void __empty() { + // Empty +} +void yield(void) __attribute__ ((weak, alias("__empty"))); diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/main.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/main.cpp index 18e3685d93bc125f916ac679ff98887a8aca7b00..434cd403c0dc41f1459d5205f397502f7df8f956 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/main.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/main.cpp @@ -1,3 +1,52 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a2d7d7d72e5259b0212f6682be0ded139f854481fad2c6e742d2f6264924402b -size 1372 +/* + main.cpp - Main loop for Arduino sketches + Copyright (c) 2005-2013 Arduino Team. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +// Declared weak in Arduino.h to allow user redefinitions. +int atexit(void (* /*func*/ )()) { return 0; } + +// Weak empty variant initialization function. +// May be redefined by variant files. +void initVariant() __attribute__((weak)); +void initVariant() { } + +void setupUSB() __attribute__((weak)); +void setupUSB() { } + +int main(void) +{ + init(); + + initVariant(); + +#if defined(USBCON) + USBDevice.attach(); +#endif + + setup(); + + for (;;) { + loop(); + if (serialEventRun) serialEventRun(); + } + + return 0; +} + diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/new.cpp b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/new.cpp index 40c805545db45e4410d085875089283dea5acc2a..cf6f89c17861be36d55f5a1203beb8a02316b760 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/new.cpp +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/new.cpp @@ -1,3 +1,36 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9dcb30087ffa75146f61d266b9b70594a00fd2818d31e90c8f95d66a984d9122 -size 1027 +/* + Copyright (c) 2014 Arduino. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#include + +void *operator new(size_t size) { + return malloc(size); +} + +void *operator new[](size_t size) { + return malloc(size); +} + +void operator delete(void * ptr) { + free(ptr); +} + +void operator delete[](void * ptr) { + free(ptr); +} + diff --git a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/new.h b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/new.h index 97dd1f153c62264479080da7f9c3e867a1778954..6e1b68f0daf6764939a427714b98a471de70766a 100644 --- a/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/new.h +++ b/Proteus 8 Professional/Tools/ARDUINO/hardware/arduino/avr/cores/arduino/new.h @@ -1,3 +1,30 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f06d298546341561a8b98467c8dad7587a3e74124f2146e9a302e4a1ab4edaab -size 979 +/* + Copyright (c) 2014 Arduino. All right reserved. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +#ifndef NEW_H +#define NEW_H + +#include + +void * operator new(size_t size); +void * operator new[](size_t size); +void operator delete(void * ptr); +void operator delete[](void * ptr); + +#endif + diff --git a/Proteus 8 Professional/proteus.ini b/Proteus 8 Professional/proteus.ini index 22ee47a23349b674fa783a9d8550940288ab997c..11ecf71f44d1e3c84d456b0a51e5a9c19d0d42f8 100644 --- a/Proteus 8 Professional/proteus.ini +++ b/Proteus 8 Professional/proteus.ini @@ -1,3 +1,2 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:693b66d9e3de10237e885159c45a668010deb59d7b5e356c2cca4b5661cff179 -size 42 +[Settings] +Program=Proteus Professional