Created
June 4, 2019 03:48
-
-
Save nhosoya/fb7b13585625ae7814783311116c338e to your computer and use it in GitHub Desktop.
Sign In with Apple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Copyright (c) 2019 Apple Inc. All rights reserved. | |
| * | |
| * # Sign In with Apple License | |
| * | |
| * **IMPORTANT:** This Sign In with Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, reproduction, or installation of this Apple software constitutes acceptance of these terms. If you do not agree with these terms, please do not use, reproduce or install this Apple software. | |
| * | |
| * This software is licensed to you only for use with Sign In with Apple that you are authorized or legally permitted to embed or display on your website. | |
| * | |
| * The Sign In with Apple software is only licensed and intended for the purposes set forth above and may not be used for other purposes or in other contexts without Apple's prior written permission. For the sake of clarity, you may not and agree not to or enable others to, modify or create derivative works of the Sign In with Apple software. | |
| * | |
| * You may only use the Sign In with Apple software if you are enrolled in the Apple Developer Program. | |
| * | |
| * Neither the name, trademarks, service marks or logos of Apple Inc. may be used to endorse or promote products, services without specific prior written permission from Apple. Except as expressly stated in this notice, no other rights or licenses, express or implied, are granted by Apple herein. | |
| * | |
| * The Sign In with Apple software software is provided by Apple on an "AS IS" basis. APPLE MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE SIGN IN WITH APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS, SYSTEMS, OR SERVICES. APPLE DOES NOT WARRANT THAT THE SIGN IN WITH APPLE SOFTWARE WILL MEET YOUR REQUIREMENTS, THAT THE OPERATION OF THE SIGN IN WITH APPLE SOFTWARE WILL BE UNINTERRUPTED OR ERROR-FREE, THAT DEFECTS IN THE SIGN IN WITH APPLE SOFTWARE WILL BE CORRECTED, OR THAT THE SIGN IN WITH APPLE SOFTWARE WILL BE COMPATIBLE WITH FUTURE APPLE PRODUCTS, SOFTWARE OR SERVICES. NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY APPLE OR AN APPLE AUTHORIZED REPRESENTATIVE WILL CREATE A WARRANTY. | |
| * | |
| * IN NO EVENT SHALL APPLE BE LIABLE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) RELATING TO OR ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, OR INSTALLATION, OF THE SIGN IN WITH APPLE SOFTWARE BY YOU OR OTHERS, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOME JURISDICTIONS DO NOT ALLOW THE LIMITATION OF LIABILITY FOR PERSONAL INJURY, OR OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS LIMITATION MAY NOT APPLY TO YOU. In no event shall Apple's total liability to you for all damages (other than as may be required by applicable law in cases involving personal injury) exceed the amount of fifty dollars ($50.00). The foregoing limitations will apply even if the above stated remedy fails of its essential purpose. | |
| * | |
| * **ACKNOWLEDGEMENTS:** | |
| * https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/acknowledgements.txt | |
| * | |
| * v1.0.0 | |
| */ | |
| ! function(Q, L) { | |
| "object" == typeof exports && "undefined" != typeof module ? L(exports) : "function" == typeof define && define.amd ? define(["exports"], L) : L((Q = Q || self).AppleID = {}) | |
| }(this, function(Q) { | |
| "use strict"; | |
| const L = ({ | |
| id: Q = "appleid-button", | |
| locale: L = "en-US", | |
| color: e = "black", | |
| type: t = "continue", | |
| border: n = !1 | |
| } = {}) => { | |
| ((Q, L) => { | |
| var e = document.getElementById(Q); | |
| if (null !== e) e.innerHTML = L | |
| })(Q, (({ | |
| locale: Q = "en-US", | |
| color: L = "black", | |
| type: e = "continue", | |
| border: t = !1 | |
| }) => { | |
| const n = ((Q, L, e = "black") => { | |
| let t = ""; | |
| return "continue" === Q && (t = ' <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 155.9453125 32" fill="#000"> <g transform="scale(0.8) translate(0, -7)"> <path d="M8.02 16.23c-.73 0-1.86-.83-3.05-.8-1.57.02-3.01.91-3.82 2.32-1.63 2.83-.42 7.01 1.17 9.31.78 1.12 1.7 2.38 2.92 2.34 1.17-.05 1.61-.76 3.03-.76 1.41 0 1.81.76 3.05.73 1.26-.02 2.06-1.14 2.83-2.27.89-1.3 1.26-2.56 1.28-2.63-.03-.01-2.45-.94-2.48-3.74-.02-2.34 1.91-3.46 2-3.51-1.1-1.61-2.79-1.79-3.38-1.83-1.54-.12-2.83.84-3.55.84zm2.6-2.36c.65-.78 1.08-1.87.96-2.95-.93.04-2.05.62-2.72 1.4-.6.69-1.12 1.8-.98 2.86 1.03.08 2.09-.53 2.74-1.31"/> </g> <g transform="translate(15, 3.6)"> <path d="M5.23 13.56L5.23 13.56Q4.22 13.56 3.42 13.20Q2.62 12.84 2.05 12.17Q1.48 11.50 1.18 10.54Q0.88 9.59 0.88 8.40L0.88 8.40Q0.88 7.21 1.18 6.25Q1.48 5.30 2.04 4.62Q2.61 3.95 3.41 3.59Q4.22 3.23 5.22 3.23L5.22 3.23Q6.00 3.23 6.68 3.47Q7.36 3.70 7.89 4.13Q8.42 4.55 8.76 5.14Q9.11 5.73 9.21 6.44L9.21 6.44L7.96 6.44Q7.80 5.80 7.41 5.34Q7.02 4.87 6.46 4.62Q5.91 4.37 5.22 4.37L5.22 4.37Q4.28 4.37 3.59 4.86Q2.89 5.35 2.52 6.26Q2.14 7.16 2.14 8.40L2.14 8.40Q2.14 9.64 2.52 10.54Q2.89 11.44 3.59 11.94Q4.28 12.43 5.23 12.43L5.23 12.43Q5.92 12.43 6.48 12.21Q7.04 11.98 7.42 11.57Q7.81 11.16 7.96 10.58L7.96 10.58L9.21 10.58Q9.05 11.48 8.50 12.15Q7.96 12.82 7.12 13.19Q6.28 13.56 5.23 13.56ZM14.16 13.46L14.16 13.46Q13.11 13.46 12.35 13.00Q11.59 12.54 11.17 11.68Q10.76 10.83 10.76 9.65L10.76 9.65Q10.76 8.46 11.17 7.60Q11.59 6.75 12.35 6.29Q13.11 5.83 14.16 5.83L14.16 5.83Q15.20 5.83 15.97 6.29Q16.73 6.75 17.14 7.60Q17.55 8.46 17.55 9.65L17.55 9.65Q17.55 10.83 17.14 11.68Q16.73 12.54 15.97 13.00Q15.20 13.46 14.16 13.46ZM14.16 12.40L14.16 12.40Q15.20 12.40 15.77 11.68Q16.34 10.95 16.34 9.65L16.34 9.65Q16.34 8.33 15.77 7.61Q15.20 6.89 14.16 6.89L14.16 6.89Q13.11 6.89 12.54 7.61Q11.98 8.33 11.98 9.65L11.98 9.65Q11.98 10.95 12.54 11.68Q13.11 12.40 14.16 12.40ZM20.58 13.33L19.40 13.33L19.40 5.96L20.52 5.96L20.52 7.12L20.63 7.12Q20.90 6.51 21.45 6.17Q22.00 5.83 22.85 5.83L22.85 5.83Q24.09 5.83 24.76 6.54Q25.42 7.25 25.42 8.56L25.42 8.56L25.42 13.33L24.25 13.33L24.25 8.85Q24.25 7.85 23.82 7.37Q23.39 6.89 22.51 6.89L22.51 6.89Q21.92 6.89 21.49 7.14Q21.05 7.39 20.82 7.86Q20.58 8.33 20.58 8.97L20.58 8.97L20.58 13.33ZM28.06 5.96L28.06 4.05L29.24 4.05L29.24 5.96L30.88 5.96L30.88 6.95L29.24 6.95L29.24 11.12Q29.24 11.76 29.50 12.06Q29.76 12.35 30.33 12.35L30.33 12.35Q30.49 12.35 30.60 12.35Q30.71 12.34 30.88 12.33L30.88 12.33L30.88 13.32Q30.70 13.34 30.53 13.36Q30.36 13.38 30.19 13.38L30.19 13.38Q29.43 13.38 28.96 13.19Q28.49 12.99 28.28 12.55Q28.06 12.12 28.06 11.42L28.06 11.42L28.06 6.95L26.87 6.95L26.87 5.96L28.06 5.96ZM33.86 13.33L32.68 13.33L32.68 5.96L33.86 5.96L33.86 13.33ZM33.27 4.54L33.27 4.54Q33.04 4.54 32.86 4.43Q32.67 4.32 32.56 4.13Q32.45 3.94 32.45 3.72L32.45 3.72Q32.45 3.49 32.56 3.31Q32.67 3.12 32.86 3.01Q33.04 2.90 33.27 2.90L33.27 2.90Q33.50 2.90 33.68 3.01Q33.87 3.12 33.98 3.31Q34.09 3.49 34.09 3.72L34.09 3.72Q34.09 3.94 33.98 4.13Q33.87 4.32 33.68 4.43Q33.50 4.54 33.27 4.54ZM37.28 13.33L36.10 13.33L36.10 5.96L37.22 5.96L37.22 7.12L37.33 7.12Q37.60 6.51 38.15 6.17Q38.70 5.83 39.55 5.83L39.55 5.83Q40.79 5.83 41.46 6.54Q42.12 7.25 42.12 8.56L42.12 8.56L42.12 13.33L40.95 13.33L40.95 8.85Q40.95 7.85 40.52 7.37Q40.09 6.89 39.21 6.89L39.21 6.89Q38.62 6.89 38.19 7.14Q37.75 7.39 37.52 7.86Q37.28 8.33 37.28 8.97L37.28 8.97L37.28 13.33ZM49.05 5.96L50.23 5.96L50.23 13.33L49.11 13.33L49.11 12.17L49 12.17Q48.73 12.79 48.15 13.13Q47.56 13.46 46.72 13.46L46.72 13.46Q45.47 13.46 44.84 12.75Q44.20 12.04 44.20 10.73L44.20 10.73L44.20 5.96L45.38 5.96L45.38 10.45Q45.38 11.44 45.77 11.92Q46.16 12.39 47.04 12.39L47.04 12.39Q48.02 12.39 48.54 11.84Q49.05 11.29 49.05 10.32L49.05 10.32L49.05 5.96ZM55.38 6.87L55.38 6.87Q54.80 6.87 54.34 7.14Q53.89 7.41 53.62 7.90Q53.35 8.38 53.30 9.04L53.30 9.04L57.36 9.04Q57.35 8.38 57.10 7.90Q56.85 7.41 56.41 7.14Q55.97 6.87 55.38 6.87ZM57.33 11.42L57.33 11.42L58.50 11.42Q58.33 12.05 57.90 12.51Q57.48 12.97 56.84 13.21Q56.21 13.46 55.40 13.46L55.40 13.46Q54.37 13.46 53.63 13.00Q52.88 12.53 52.48 11.67Q52.08 10.81 52.08 9.65L52.08 9.65Q52.08 8.78 52.31 8.08Q52.54 7.38 52.98 6.87Q53.42 6.37 54.03 6.10Q54.64 5.83 55.40 5.83L55.40 5.83Q56.40 5.83 57.11 6.28Q57.83 6.73 58.21 7.56Q58.60 8.39 58.60 9.54L58.60 9.54L58.60 9.99L53.30 9.99L53.30 10.04Q53.33 10.77 53.60 11.31Q53.87 11.84 54.33 12.13Q54.80 12.42 55.43 12.42L55.43 12.42Q56.14 12.42 56.62 12.16Q57.09 11.91 57.33 11.42ZM72.48 5.96L73.66 5.96L71.60 13.33L70.40 13.33L68.76 7.63L68.65 7.63L67.01 13.33L65.82 13.33L63.75 5.96L64.94 5.96L66.39 11.85L66.50 11.85L68.15 5.96L69.28 5.96L70.92 11.85L71.03 11.85L72.48 5.96ZM76.44 13.33L75.26 13.33L75.26 5.96L76.44 5.96L76.44 13.33ZM75.85 4.54L75.85 4.54Q75.63 4.54 75.44 4.43Q75.25 4.32 75.14 4.13Q75.03 3.94 75.03 3.72L75.03 3.72Q75.03 3.49 75.14 3.31Q75.25 3.12 75.44 3.01Q75.63 2.90 75.85 2.90L75.85 2.90Q76.08 2.90 76.27 3.01Q76.45 3.12 76.56 3.31Q76.67 3.49 76.67 3.72L76.67 3.72Q76.67 3.94 76.56 4.13Q76.45 4.32 76.27 4.43Q76.08 4.54 75.85 4.54ZM79.17 5.96L79.17 4.05L80.35 4.05L80.35 5.96L81.99 5.96L81.99 6.95L80.35 6.95L80.35 11.12Q80.35 11.76 80.61 12.06Q80.87 12.35 81.44 12.35L81.44 12.35Q81.60 12.35 81.71 12.35Q81.83 12.34 81.99 12.33L81.99 12.33L81.99 13.32Q81.81 13.34 81.64 13.36Q81.47 13.38 81.30 13.38L81.30 13.38Q80.54 13.38 80.07 13.19Q79.60 12.99 79.39 12.55Q79.17 12.12 79.17 11.42L79.17 11.42L79.17 6.95L77.98 6.95L77.98 5.96L79.17 5.96ZM85.01 13.33L83.84 13.33L83.84 3.04L85.01 3.04L85.01 7.12L85.12 7.12Q85.39 6.51 85.97 6.17Q86.54 5.83 87.39 5.83L87.39 5.83Q88.17 5.83 88.74 6.15Q89.31 6.47 89.62 7.09Q89.93 7.70 89.93 8.56L89.93 8.56L89.93 13.33L88.76 13.33L88.76 8.85Q88.76 7.87 88.32 7.38Q87.89 6.89 87.06 6.89L87.06 6.89Q86.39 6.89 85.94 7.15Q85.48 7.41 85.25 7.88Q85.01 8.35 85.01 8.97L85.01 8.97L85.01 13.33ZM103.89 13.33L102.59 13.33L101.60 10.51L97.68 10.51L96.69 13.33L95.40 13.33L99.03 3.47L100.25 3.47L103.89 13.33ZM99.70 5.06L99.59 5.06L98.04 9.46L101.24 9.46L99.70 5.06ZM109.05 5.83L109.05 5.83Q109.99 5.83 110.69 6.30Q111.38 6.77 111.77 7.63Q112.15 8.49 112.15 9.65L112.15 9.65Q112.15 10.51 111.93 11.21Q111.71 11.92 111.31 12.42Q110.90 12.92 110.33 13.19Q109.76 13.46 109.05 13.46L109.05 13.46Q108.27 13.46 107.66 13.14Q107.05 12.81 106.75 12.22L106.75 12.22L106.64 12.22L106.64 15.79L105.46 15.79L105.46 5.96L106.59 5.96L106.59 7.19L106.70 7.19Q107.05 6.56 107.68 6.19Q108.30 5.83 109.05 5.83ZM108.77 12.40L108.77 12.40Q109.45 12.40 109.93 12.07Q110.41 11.74 110.67 11.13Q110.93 10.51 110.93 9.65L110.93 9.65Q110.93 8.78 110.68 8.17Q110.42 7.55 109.94 7.22Q109.46 6.89 108.78 6.89L108.78 6.89Q108.12 6.89 107.63 7.23Q107.14 7.56 106.87 8.18Q106.61 8.80 106.61 9.65L106.61 9.65Q106.61 10.49 106.87 11.10Q107.14 11.72 107.63 12.06Q108.11 12.40 108.77 12.40ZM117.58 5.83L117.58 5.83Q118.52 5.83 119.22 6.30Q119.92 6.77 120.30 7.63Q120.68 8.49 120.68 9.65L120.68 9.65Q120.68 10.51 120.46 11.21Q120.24 11.92 119.84 12.42Q119.43 12.92 118.86 13.19Q118.29 13.46 117.58 13.46L117.58 13.46Q116.80 13.46 116.19 13.14Q115.58 12.81 115.28 12.22L115.28 12.22L115.17 12.22L115.17 15.79L114.00 15.79L114.00 5.96L115.12 5.96L115.12 7.19L115.23 7.19Q115.58 6.56 116.21 6.19Q116.83 5.83 117.58 5.83ZM117.30 12.40L117.30 12.40Q117.98 12.40 118.46 12.07Q118.95 11.74 119.21 11.13Q119.46 10.51 119.46 9.65L119.46 9.65Q119.46 8.78 119.21 8.17Q118.95 7.55 118.47 7.22Q117.99 6.89 117.31 6.89L117.31 6.89Q116.65 6.89 116.16 7.23Q115.67 7.56 115.40 8.18Q115.14 8.80 115.14 9.65L115.14 9.65Q115.14 10.49 115.40 11.10Q115.67 11.72 116.16 12.06Q116.64 12.40 117.30 12.40ZM123.77 13.33L122.60 13.33L122.60 3.04L123.77 3.04L123.77 13.33ZM128.99 6.87L128.99 6.87Q128.41 6.87 127.95 7.14Q127.50 7.41 127.23 7.90Q126.96 8.38 126.91 9.04L126.91 9.04L130.97 9.04Q130.96 8.38 130.71 7.90Q130.46 7.41 130.02 7.14Q129.58 6.87 128.99 6.87ZM130.94 11.42L130.94 11.42L132.11 11.42Q131.94 12.05 131.51 12.51Q131.09 12.97 130.45 13.21Q129.81 13.46 129.01 13.46L129.01 13.46Q127.98 13.46 127.24 13.00Q126.49 12.53 126.09 11.67Q125.69 10.81 125.69 9.65L125.69 9.65Q125.69 8.78 125.92 8.08Q126.15 7.38 126.59 6.87Q127.03 6.37 127.64 6.10Q128.25 5.83 129.01 5.83L129.01 5.83Q130.01 5.83 130.72 6.28Q131.43 6.73 131.82 7.56Q132.21 8.39 132.21 9.54L132.21 9.54L132.21 9.99L126.91 9.99L126.91 10.04Q126.94 10.77 127.21 11.31Q127.48 11.84 127.94 12.13Q128.41 12.42 129.04 12.42L129.04 12.42Q129.75 12.42 130.22 12.16Q130.70 11.91 130.94 11.42Z"/> </g> </svg> '), "sign in" === Q && (t = ' <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 141.2412109375 32" fill="#000"> <g transform="scale(0.8) translate(0, -7)"> <path d="M8.02 16.23c-.73 0-1.86-.83-3.05-.8-1.57.02-3.01.91-3.82 2.32-1.63 2.83-.42 7.01 1.17 9.31.78 1.12 1.7 2.38 2.92 2.34 1.17-.05 1.61-.76 3.03-.76 1.41 0 1.81.76 3.05.73 1.26-.02 2.06-1.14 2.83-2.27.89-1.3 1.26-2.56 1.28-2.63-.03-.01-2.45-.94-2.48-3.74-.02-2.34 1.91-3.46 2-3.51-1.1-1.61-2.79-1.79-3.38-1.83-1.54-.12-2.83.84-3.55.84zm2.6-2.36c.65-.78 1.08-1.87.96-2.95-.93.04-2.05.62-2.72 1.4-.6.69-1.12 1.8-.98 2.86 1.03.08 2.09-.53 2.74-1.31"/> </g> <g transform="translate(15, 3.6)"> <path d="M0.79 10.75L0.79 10.75L2.03 10.75Q2.11 11.27 2.44 11.65Q2.78 12.02 3.32 12.23Q3.87 12.44 4.57 12.44L4.57 12.44Q5.23 12.44 5.75 12.22Q6.27 12.00 6.57 11.62Q6.87 11.24 6.87 10.75L6.87 10.75Q6.87 10.12 6.39 9.70Q5.91 9.28 4.89 9.03L4.89 9.03L3.63 8.70Q2.29 8.37 1.68 7.73Q1.07 7.10 1.07 6.04L1.07 6.04Q1.07 5.41 1.32 4.90Q1.57 4.38 2.03 4.01Q2.50 3.64 3.14 3.44Q3.78 3.23 4.56 3.23L4.56 3.23Q5.28 3.23 5.89 3.44Q6.49 3.64 6.95 4.00Q7.41 4.37 7.68 4.87Q7.95 5.37 7.99 5.96L7.99 5.96L6.75 5.96Q6.62 5.20 6.03 4.77Q5.44 4.35 4.52 4.35L4.52 4.35Q3.86 4.35 3.37 4.55Q2.88 4.76 2.61 5.13Q2.34 5.50 2.34 6.00L2.34 6.00Q2.34 6.58 2.78 6.95Q3.22 7.31 4.24 7.57L4.24 7.57L5.27 7.84Q6.29 8.09 6.92 8.46Q7.55 8.83 7.84 9.35Q8.13 9.87 8.13 10.60L8.13 10.60Q8.13 11.50 7.68 12.16Q7.23 12.83 6.41 13.20Q5.58 13.56 4.45 13.56L4.45 13.56Q3.40 13.56 2.60 13.21Q1.80 12.87 1.32 12.24Q0.85 11.61 0.79 10.75ZM11.23 13.33L10.06 13.33L10.06 5.96L11.23 5.96L11.23 13.33ZM10.64 4.54L10.64 4.54Q10.42 4.54 10.23 4.43Q10.04 4.32 9.93 4.13Q9.82 3.94 9.82 3.72L9.82 3.72Q9.82 3.49 9.93 3.31Q10.04 3.12 10.23 3.01Q10.42 2.90 10.64 2.90L10.64 2.90Q10.87 2.90 11.06 3.01Q11.25 3.12 11.35 3.31Q11.46 3.49 11.46 3.72L11.46 3.72Q11.46 3.94 11.35 4.13Q11.25 4.32 11.06 4.43Q10.87 4.54 10.64 4.54ZM16.45 12.18L16.45 12.18Q17.14 12.18 17.63 11.85Q18.12 11.53 18.38 10.93Q18.64 10.34 18.64 9.54L18.64 9.54Q18.64 8.74 18.38 8.14Q18.12 7.55 17.63 7.22Q17.14 6.89 16.45 6.89L16.45 6.89Q15.77 6.89 15.30 7.22Q14.82 7.55 14.57 8.14Q14.32 8.74 14.32 9.54L14.32 9.54Q14.32 10.34 14.57 10.93Q14.82 11.53 15.30 11.85Q15.77 12.18 16.45 12.18ZM16.51 16.16L16.51 16.16Q15.62 16.16 14.96 15.91Q14.29 15.66 13.90 15.21Q13.51 14.75 13.42 14.14L13.42 14.14L14.66 14.14Q14.76 14.59 15.24 14.86Q15.72 15.13 16.51 15.13L16.51 15.13Q17.50 15.13 18.06 14.67Q18.61 14.21 18.61 13.40L18.61 13.40L18.61 11.95L18.50 11.95Q18.16 12.56 17.55 12.89Q16.95 13.22 16.19 13.22L16.19 13.22Q15.24 13.22 14.55 12.76Q13.86 12.30 13.48 11.47Q13.10 10.64 13.10 9.54L13.10 9.54Q13.10 8.71 13.32 8.03Q13.54 7.35 13.94 6.86Q14.34 6.36 14.91 6.10Q15.48 5.83 16.19 5.83L16.19 5.83Q16.71 5.83 17.17 5.99Q17.63 6.15 17.99 6.44Q18.35 6.73 18.56 7.13L18.56 7.13L18.67 7.13L18.67 5.96L19.79 5.96L19.79 13.46Q19.79 14.29 19.39 14.89Q18.98 15.50 18.25 15.83Q17.51 16.16 16.51 16.16ZM23.18 13.33L22.00 13.33L22.00 5.96L23.13 5.96L23.13 7.12L23.24 7.12Q23.51 6.51 24.06 6.17Q24.60 5.83 25.45 5.83L25.45 5.83Q26.69 5.83 27.36 6.54Q28.03 7.25 28.03 8.56L28.03 8.56L28.03 13.33L26.85 13.33L26.85 8.85Q26.85 7.85 26.42 7.37Q26.00 6.89 25.12 6.89L25.12 6.89Q24.53 6.89 24.09 7.14Q23.66 7.39 23.42 7.86Q23.18 8.33 23.18 8.97L23.18 8.97L23.18 13.33ZM35.33 13.33L34.15 13.33L34.15 5.96L35.33 5.96L35.33 13.33ZM34.74 4.54L34.74 4.54Q34.51 4.54 34.33 4.43Q34.14 4.32 34.03 4.13Q33.92 3.94 33.92 3.72L33.92 3.72Q33.92 3.49 34.03 3.31Q34.14 3.12 34.33 3.01Q34.51 2.90 34.74 2.90L34.74 2.90Q34.97 2.90 35.15 3.01Q35.34 3.12 35.45 3.31Q35.56 3.49 35.56 3.72L35.56 3.72Q35.56 3.94 35.45 4.13Q35.34 4.32 35.15 4.43Q34.97 4.54 34.74 4.54ZM38.75 13.33L37.57 13.33L37.57 5.96L38.69 5.96L38.69 7.12L38.80 7.12Q39.07 6.51 39.62 6.17Q40.17 5.83 41.02 5.83L41.02 5.83Q42.26 5.83 42.93 6.54Q43.59 7.25 43.59 8.56L43.59 8.56L43.59 13.33L42.42 13.33L42.42 8.85Q42.42 7.85 41.99 7.37Q41.56 6.89 40.68 6.89L40.68 6.89Q40.09 6.89 39.66 7.14Q39.22 7.39 38.99 7.86Q38.75 8.33 38.75 8.97L38.75 8.97L38.75 13.33ZM57.78 5.96L58.96 5.96L56.90 13.33L55.70 13.33L54.05 7.63L53.94 7.63L52.30 13.33L51.11 13.33L49.05 5.96L50.24 5.96L51.69 11.85L51.80 11.85L53.44 5.96L54.57 5.96L56.22 11.85L56.33 11.85L57.78 5.96ZM61.74 13.33L60.56 13.33L60.56 5.96L61.74 5.96L61.74 13.33ZM61.15 4.54L61.15 4.54Q60.92 4.54 60.73 4.43Q60.55 4.32 60.44 4.13Q60.33 3.94 60.33 3.72L60.33 3.72Q60.33 3.49 60.44 3.31Q60.55 3.12 60.73 3.01Q60.92 2.90 61.15 2.90L61.15 2.90Q61.37 2.90 61.56 3.01Q61.75 3.12 61.86 3.31Q61.97 3.49 61.97 3.72L61.97 3.72Q61.97 3.94 61.86 4.13Q61.75 4.32 61.56 4.43Q61.37 4.54 61.15 4.54ZM64.47 5.96L64.47 4.05L65.65 4.05L65.65 5.96L67.29 5.96L67.29 6.95L65.65 6.95L65.65 11.12Q65.65 11.76 65.91 12.06Q66.17 12.35 66.74 12.35L66.74 12.35Q66.90 12.35 67.01 12.35Q67.12 12.34 67.29 12.33L67.29 12.33L67.29 13.32Q67.11 13.34 66.94 13.36Q66.77 13.38 66.60 13.38L66.60 13.38Q65.84 13.38 65.37 13.19Q64.90 12.99 64.69 12.55Q64.47 12.12 64.47 11.42L64.47 11.42L64.47 6.95L63.28 6.95L63.28 5.96L64.47 5.96ZM70.31 13.33L69.13 13.33L69.13 3.04L70.31 3.04L70.31 7.12L70.42 7.12Q70.69 6.51 71.26 6.17Q71.84 5.83 72.69 5.83L72.69 5.83Q73.47 5.83 74.04 6.15Q74.61 6.47 74.92 7.09Q75.23 7.70 75.23 8.56L75.23 8.56L75.23 13.33L74.05 13.33L74.05 8.85Q74.05 7.87 73.62 7.38Q73.19 6.89 72.35 6.89L72.35 6.89Q71.69 6.89 71.23 7.15Q70.78 7.41 70.54 7.88Q70.31 8.35 70.31 8.97L70.31 8.97L70.31 13.33ZM89.18 13.33L87.89 13.33L86.90 10.51L82.97 10.51L81.98 13.33L80.69 13.33L84.33 3.47L85.54 3.47L89.18 13.33ZM84.99 5.06L84.88 5.06L83.34 9.46L86.54 9.46L84.99 5.06ZM94.35 5.83L94.35 5.83Q95.29 5.83 95.98 6.30Q96.68 6.77 97.06 7.63Q97.45 8.49 97.45 9.65L97.45 9.65Q97.45 10.51 97.23 11.21Q97.01 11.92 96.60 12.42Q96.20 12.92 95.62 13.19Q95.05 13.46 94.35 13.46L94.35 13.46Q93.56 13.46 92.96 13.14Q92.35 12.81 92.05 12.22L92.05 12.22L91.94 12.22L91.94 15.79L90.76 15.79L90.76 5.96L91.88 5.96L91.88 7.19L91.99 7.19Q92.35 6.56 92.97 6.19Q93.60 5.83 94.35 5.83ZM94.07 12.40L94.07 12.40Q94.75 12.40 95.23 12.07Q95.71 11.74 95.97 11.13Q96.23 10.51 96.23 9.65L96.23 9.65Q96.23 8.78 95.97 8.17Q95.72 7.55 95.23 7.22Q94.75 6.89 94.08 6.89L94.08 6.89Q93.41 6.89 92.92 7.23Q92.44 7.56 92.17 8.18Q91.90 8.80 91.90 9.65L91.90 9.65Q91.90 10.49 92.17 11.10Q92.44 11.72 92.92 12.06Q93.41 12.40 94.07 12.40ZM102.88 5.83L102.88 5.83Q103.82 5.83 104.51 6.30Q105.21 6.77 105.59 7.63Q105.98 8.49 105.98 9.65L105.98 9.65Q105.98 10.51 105.76 11.21Q105.54 11.92 105.13 12.42Q104.73 12.92 104.16 13.19Q103.58 13.46 102.88 13.46L102.88 13.46Q102.09 13.46 101.49 13.14Q100.88 12.81 100.58 12.22L100.58 12.22L100.47 12.22L100.47 15.79L99.29 15.79L99.29 5.96L100.41 5.96L100.41 7.19L100.52 7.19Q100.88 6.56 101.50 6.19Q102.13 5.83 102.88 5.83ZM102.60 12.40L102.60 12.40Q103.28 12.40 103.76 12.07Q104.24 11.74 104.50 11.13Q104.76 10.51 104.76 9.65L104.76 9.65Q104.76 8.78 104.50 8.17Q104.25 7.55 103.77 7.22Q103.28 6.89 102.61 6.89L102.61 6.89Q101.94 6.89 101.46 7.23Q100.97 7.56 100.70 8.18Q100.43 8.80 100.43 9.65L100.43 9.65Q100.43 10.49 100.70 11.10Q100.97 11.72 101.45 12.06Q101.94 12.40 102.60 12.40ZM109.07 13.33L107.89 13.33L107.89 3.04L109.07 3.04L109.07 13.33ZM114.29 6.87L114.29 6.87Q113.70 6.87 113.25 7.14Q112.79 7.41 112.52 7.90Q112.25 8.38 112.21 9.04L112.21 9.04L116.27 9.04Q116.25 8.38 116.00 7.90Q115.75 7.41 115.32 7.14Q114.88 6.87 114.29 6.87ZM116.23 11.42L116.23 11.42L117.41 11.42Q117.24 12.05 116.81 12.51Q116.38 12.97 115.75 13.21Q115.11 13.46 114.30 13.46L114.30 13.46Q113.28 13.46 112.53 13.00Q111.79 12.53 111.38 11.67Q110.98 10.81 110.98 9.65L110.98 9.65Q110.98 8.78 111.21 8.08Q111.45 7.38 111.88 6.87Q112.32 6.37 112.93 6.10Q113.54 5.83 114.30 5.83L114.30 5.83Q115.30 5.83 116.02 6.28Q116.73 6.73 117.12 7.56Q117.50 8.39 117.50 9.54L117.50 9.54L117.50 9.99L112.21 9.99L112.21 10.04Q112.24 10.77 112.51 11.31Q112.77 11.84 113.24 12.13Q113.70 12.42 114.33 12.42L114.33 12.42Q115.04 12.42 115.52 12.16Q116.00 11.91 116.23 11.42Z"/> </g> </svg> '), "sign up" === Q && (t = ' <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 146.333984375 32" fill="#000"> <g transform="scale(0.8) translate(0, -7)"> <path d="M8.02 16.23c-.73 0-1.86-.83-3.05-.8-1.57.02-3.01.91-3.82 2.32-1.63 2.83-.42 7.01 1.17 9.31.78 1.12 1.7 2.38 2.92 2.34 1.17-.05 1.61-.76 3.03-.76 1.41 0 1.81.76 3.05.73 1.26-.02 2.06-1.14 2.83-2.27.89-1.3 1.26-2.56 1.28-2.63-.03-.01-2.45-.94-2.48-3.74-.02-2.34 1.91-3.46 2-3.51-1.1-1.61-2.79-1.79-3.38-1.83-1.54-.12-2.83.84-3.55.84zm2.6-2.36c.65-.78 1.08-1.87.96-2.95-.93.04-2.05.62-2.72 1.4-.6.69-1.12 1.8-.98 2.86 1.03.08 2.09-.53 2.74-1.31"/> </g> <g transform="translate(15, 3.6)"> <path d="M0.79 10.75L0.79 10.75L2.03 10.75Q2.11 11.27 2.44 11.65Q2.78 12.02 3.32 12.23Q3.87 12.44 4.57 12.44L4.57 12.44Q5.23 12.44 5.75 12.22Q6.27 12.00 6.57 11.62Q6.87 11.24 6.87 10.75L6.87 10.75Q6.87 10.12 6.39 9.70Q5.91 9.28 4.89 9.03L4.89 9.03L3.63 8.70Q2.29 8.37 1.68 7.73Q1.07 7.10 1.07 6.04L1.07 6.04Q1.07 5.41 1.32 4.90Q1.57 4.38 2.03 4.01Q2.50 3.64 3.14 3.44Q3.78 3.23 4.56 3.23L4.56 3.23Q5.28 3.23 5.89 3.44Q6.49 3.64 6.95 4.00Q7.41 4.37 7.68 4.87Q7.95 5.37 7.99 5.96L7.99 5.96L6.75 5.96Q6.62 5.20 6.03 4.77Q5.44 4.35 4.52 4.35L4.52 4.35Q3.86 4.35 3.37 4.55Q2.88 4.76 2.61 5.13Q2.34 5.50 2.34 6.00L2.34 6.00Q2.34 6.58 2.78 6.95Q3.22 7.31 4.24 7.57L4.24 7.57L5.27 7.84Q6.29 8.09 6.92 8.46Q7.55 8.83 7.84 9.35Q8.13 9.87 8.13 10.60L8.13 10.60Q8.13 11.50 7.68 12.16Q7.23 12.83 6.41 13.20Q5.58 13.56 4.45 13.56L4.45 13.56Q3.40 13.56 2.60 13.21Q1.80 12.87 1.32 12.24Q0.85 11.61 0.79 10.75ZM11.23 13.33L10.06 13.33L10.06 5.96L11.23 5.96L11.23 13.33ZM10.64 4.54L10.64 4.54Q10.42 4.54 10.23 4.43Q10.04 4.32 9.93 4.13Q9.82 3.94 9.82 3.72L9.82 3.72Q9.82 3.49 9.93 3.31Q10.04 3.12 10.23 3.01Q10.42 2.90 10.64 2.90L10.64 2.90Q10.87 2.90 11.06 3.01Q11.25 3.12 11.35 3.31Q11.46 3.49 11.46 3.72L11.46 3.72Q11.46 3.94 11.35 4.13Q11.25 4.32 11.06 4.43Q10.87 4.54 10.64 4.54ZM16.45 12.18L16.45 12.18Q17.14 12.18 17.63 11.85Q18.12 11.53 18.38 10.93Q18.64 10.34 18.64 9.54L18.64 9.54Q18.64 8.74 18.38 8.14Q18.12 7.55 17.63 7.22Q17.14 6.89 16.45 6.89L16.45 6.89Q15.77 6.89 15.30 7.22Q14.82 7.55 14.57 8.14Q14.32 8.74 14.32 9.54L14.32 9.54Q14.32 10.34 14.57 10.93Q14.82 11.53 15.30 11.85Q15.77 12.18 16.45 12.18ZM16.51 16.16L16.51 16.16Q15.62 16.16 14.96 15.91Q14.29 15.66 13.90 15.21Q13.51 14.75 13.42 14.14L13.42 14.14L14.66 14.14Q14.76 14.59 15.24 14.86Q15.72 15.13 16.51 15.13L16.51 15.13Q17.50 15.13 18.06 14.67Q18.61 14.21 18.61 13.40L18.61 13.40L18.61 11.95L18.50 11.95Q18.16 12.56 17.55 12.89Q16.95 13.22 16.19 13.22L16.19 13.22Q15.24 13.22 14.55 12.76Q13.86 12.30 13.48 11.47Q13.10 10.64 13.10 9.54L13.10 9.54Q13.10 8.71 13.32 8.03Q13.54 7.35 13.94 6.86Q14.34 6.36 14.91 6.10Q15.48 5.83 16.19 5.83L16.19 5.83Q16.71 5.83 17.17 5.99Q17.63 6.15 17.99 6.44Q18.35 6.73 18.56 7.13L18.56 7.13L18.67 7.13L18.67 5.96L19.79 5.96L19.79 13.46Q19.79 14.29 19.39 14.89Q18.98 15.50 18.25 15.83Q17.51 16.16 16.51 16.16ZM23.18 13.33L22.00 13.33L22.00 5.96L23.13 5.96L23.13 7.12L23.24 7.12Q23.51 6.51 24.06 6.17Q24.60 5.83 25.45 5.83L25.45 5.83Q26.69 5.83 27.36 6.54Q28.03 7.25 28.03 8.56L28.03 8.56L28.03 13.33L26.85 13.33L26.85 8.85Q26.85 7.85 26.42 7.37Q26.00 6.89 25.12 6.89L25.12 6.89Q24.53 6.89 24.09 7.14Q23.66 7.39 23.42 7.86Q23.18 8.33 23.18 8.97L23.18 8.97L23.18 13.33ZM38.91 5.96L40.09 5.96L40.09 13.33L38.96 13.33L38.96 12.17L38.86 12.17Q38.58 12.79 38.00 13.13Q37.42 13.46 36.57 13.46L36.57 13.46Q35.33 13.46 34.69 12.75Q34.06 12.04 34.06 10.73L34.06 10.73L34.06 5.96L35.23 5.96L35.23 10.45Q35.23 11.44 35.63 11.92Q36.02 12.39 36.90 12.39L36.90 12.39Q37.87 12.39 38.39 11.84Q38.91 11.29 38.91 10.32L38.91 10.32L38.91 5.96ZM45.89 5.83L45.89 5.83Q46.83 5.83 47.52 6.30Q48.22 6.77 48.60 7.63Q48.99 8.49 48.99 9.65L48.99 9.65Q48.99 10.51 48.77 11.21Q48.55 11.92 48.14 12.42Q47.74 12.92 47.16 13.19Q46.59 13.46 45.89 13.46L45.89 13.46Q45.10 13.46 44.50 13.14Q43.89 12.81 43.59 12.22L43.59 12.22L43.48 12.22L43.48 15.79L42.30 15.79L42.30 5.96L43.42 5.96L43.42 7.19L43.53 7.19Q43.89 6.56 44.51 6.19Q45.14 5.83 45.89 5.83ZM45.61 12.40L45.61 12.40Q46.29 12.40 46.77 12.07Q47.25 11.74 47.51 11.13Q47.77 10.51 47.77 9.65L47.77 9.65Q47.77 8.78 47.51 8.17Q47.26 7.55 46.77 7.22Q46.29 6.89 45.62 6.89L45.62 6.89Q44.95 6.89 44.46 7.23Q43.98 7.56 43.71 8.18Q43.44 8.80 43.44 9.65L43.44 9.65Q43.44 10.49 43.71 11.10Q43.98 11.72 44.46 12.06Q44.95 12.40 45.61 12.40ZM62.87 5.96L64.05 5.96L61.99 13.33L60.79 13.33L59.14 7.63L59.04 7.63L57.39 13.33L56.21 13.33L54.14 5.96L55.33 5.96L56.78 11.85L56.89 11.85L58.54 5.96L59.66 5.96L61.31 11.85L61.42 11.85L62.87 5.96ZM66.83 13.33L65.65 13.33L65.65 5.96L66.83 5.96L66.83 13.33ZM66.24 4.54L66.24 4.54Q66.01 4.54 65.83 4.43Q65.64 4.32 65.53 4.13Q65.42 3.94 65.42 3.72L65.42 3.72Q65.42 3.49 65.53 3.31Q65.64 3.12 65.83 3.01Q66.01 2.90 66.24 2.90L66.24 2.90Q66.47 2.90 66.65 3.01Q66.84 3.12 66.95 3.31Q67.06 3.49 67.06 3.72L67.06 3.72Q67.06 3.94 66.95 4.13Q66.84 4.32 66.65 4.43Q66.47 4.54 66.24 4.54ZM69.56 5.96L69.56 4.05L70.74 4.05L70.74 5.96L72.38 5.96L72.38 6.95L70.74 6.95L70.74 11.12Q70.74 11.76 71.00 12.06Q71.26 12.35 71.83 12.35L71.83 12.35Q71.99 12.35 72.10 12.35Q72.21 12.34 72.38 12.33L72.38 12.33L72.38 13.32Q72.20 13.34 72.03 13.36Q71.86 13.38 71.69 13.38L71.69 13.38Q70.93 13.38 70.46 13.19Q69.99 12.99 69.78 12.55Q69.56 12.12 69.56 11.42L69.56 11.42L69.56 6.95L68.37 6.95L68.37 5.96L69.56 5.96ZM75.40 13.33L74.22 13.33L74.22 3.04L75.40 3.04L75.40 7.12L75.51 7.12Q75.78 6.51 76.36 6.17Q76.93 5.83 77.78 5.83L77.78 5.83Q78.56 5.83 79.13 6.15Q79.70 6.47 80.01 7.09Q80.32 7.70 80.32 8.56L80.32 8.56L80.32 13.33L79.15 13.33L79.15 8.85Q79.15 7.87 78.71 7.38Q78.28 6.89 77.44 6.89L77.44 6.89Q76.78 6.89 76.33 7.15Q75.87 7.41 75.64 7.88Q75.40 8.35 75.40 8.97L75.40 8.97L75.40 13.33ZM94.27 13.33L92.98 13.33L91.99 10.51L88.07 10.51L87.08 13.33L85.78 13.33L89.42 3.47L90.64 3.47L94.27 13.33ZM90.08 5.06L89.97 5.06L88.43 9.46L91.63 9.46L90.08 5.06ZM99.44 5.83L99.44 5.83Q100.38 5.83 101.08 6.30Q101.77 6.77 102.16 7.63Q102.54 8.49 102.54 9.65L102.54 9.65Q102.54 10.51 102.32 11.21Q102.10 11.92 101.69 12.42Q101.29 12.92 100.72 13.19Q100.15 13.46 99.44 13.46L99.44 13.46Q98.66 13.46 98.05 13.14Q97.44 12.81 97.14 12.22L97.14 12.22L97.03 12.22L97.03 15.79L95.85 15.79L95.85 5.96L96.97 5.96L96.97 7.19L97.08 7.19Q97.44 6.56 98.06 6.19Q98.69 5.83 99.44 5.83ZM99.16 12.40L99.16 12.40Q99.84 12.40 100.32 12.07Q100.80 11.74 101.06 11.13Q101.32 10.51 101.32 9.65L101.32 9.65Q101.32 8.78 101.07 8.17Q100.81 7.55 100.33 7.22Q99.85 6.89 99.17 6.89L99.17 6.89Q98.51 6.89 98.02 7.23Q97.53 7.56 97.26 8.18Q97.00 8.80 97.00 9.65L97.00 9.65Q97.00 10.49 97.26 11.10Q97.53 11.72 98.01 12.06Q98.50 12.40 99.16 12.40ZM107.97 5.83L107.97 5.83Q108.91 5.83 109.61 6.30Q110.30 6.77 110.69 7.63Q111.07 8.49 111.07 9.65L111.07 9.65Q111.07 10.51 110.85 11.21Q110.63 11.92 110.23 12.42Q109.82 12.92 109.25 13.19Q108.68 13.46 107.97 13.46L107.97 13.46Q107.19 13.46 106.58 13.14Q105.97 12.81 105.67 12.22L105.67 12.22L105.56 12.22L105.56 15.79L104.38 15.79L104.38 5.96L105.51 5.96L105.51 7.19L105.62 7.19Q105.97 6.56 106.60 6.19Q107.22 5.83 107.97 5.83ZM107.69 12.40L107.69 12.40Q108.37 12.40 108.85 12.07Q109.33 11.74 109.59 11.13Q109.85 10.51 109.85 9.65L109.85 9.65Q109.85 8.78 109.60 8.17Q109.34 7.55 108.86 7.22Q108.38 6.89 107.70 6.89L107.70 6.89Q107.04 6.89 106.55 7.23Q106.06 7.56 105.79 8.18Q105.53 8.80 105.53 9.65L105.53 9.65Q105.53 10.49 105.79 11.10Q106.06 11.72 106.54 12.06Q107.03 12.40 107.69 12.40ZM114.16 13.33L112.98 13.33L112.98 3.04L114.16 3.04L114.16 13.33ZM119.38 6.87L119.38 6.87Q118.79 6.87 118.34 7.14Q117.89 7.41 117.62 7.90Q117.35 8.38 117.30 9.04L117.30 9.04L121.36 9.04Q121.34 8.38 121.10 7.90Q120.85 7.41 120.41 7.14Q119.97 6.87 119.38 6.87ZM121.32 11.42L121.32 11.42L122.50 11.42Q122.33 12.05 121.90 12.51Q121.47 12.97 120.84 13.21Q120.20 13.46 119.40 13.46L119.40 13.46Q118.37 13.46 117.63 13.00Q116.88 12.53 116.48 11.67Q116.07 10.81 116.07 9.65L116.07 9.65Q116.07 8.78 116.31 8.08Q116.54 7.38 116.98 6.87Q117.41 6.37 118.03 6.10Q118.64 5.83 119.40 5.83L119.40 5.83Q120.39 5.83 121.11 6.28Q121.82 6.73 122.21 7.56Q122.60 8.39 122.60 9.54L122.60 9.54L122.60 9.99L117.30 9.99L117.30 10.04Q117.33 10.77 117.60 11.31Q117.87 11.84 118.33 12.13Q118.79 12.42 119.42 12.42L119.42 12.42Q120.13 12.42 120.61 12.16Q121.09 11.91 121.32 11.42Z"/> </g> </svg> '), "apple" === Q && (t = ' <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="-4 -4 61.021484375 32" fill="#000"> <g transform="scale(0.8) translate(0, -7)"> <path d="M8.02 16.23c-.73 0-1.86-.83-3.05-.8-1.57.02-3.01.91-3.82 2.32-1.63 2.83-.42 7.01 1.17 9.31.78 1.12 1.7 2.38 2.92 2.34 1.17-.05 1.61-.76 3.03-.76 1.41 0 1.81.76 3.05.73 1.26-.02 2.06-1.14 2.83-2.27.89-1.3 1.26-2.56 1.28-2.63-.03-.01-2.45-.94-2.48-3.74-.02-2.34 1.91-3.46 2-3.51-1.1-1.61-2.79-1.79-3.38-1.83-1.54-.12-2.83.84-3.55.84zm2.6-2.36c.65-.78 1.08-1.87.96-2.95-.93.04-2.05.62-2.72 1.4-.6.69-1.12 1.8-.98 2.86 1.03.08 2.09-.53 2.74-1.31"/> </g> <g transform="translate(15, 3.6)"> <path d="M8.96 13.33L7.67 13.33L6.68 10.51L2.75 10.51L1.76 13.33L0.47 13.33L4.11 3.47L5.33 3.47L8.96 13.33ZM4.77 5.06L4.66 5.06L3.12 9.46L6.32 9.46L4.77 5.06ZM14.13 5.83L14.13 5.83Q15.07 5.83 15.76 6.30Q16.46 6.77 16.84 7.63Q17.23 8.49 17.23 9.65L17.23 9.65Q17.23 10.51 17.01 11.21Q16.79 11.92 16.38 12.42Q15.98 12.92 15.40 13.19Q14.83 13.46 14.13 13.46L14.13 13.46Q13.34 13.46 12.74 13.14Q12.13 12.81 11.83 12.22L11.83 12.22L11.72 12.22L11.72 15.79L10.54 15.79L10.54 5.96L11.66 5.96L11.66 7.19L11.77 7.19Q12.13 6.56 12.75 6.19Q13.38 5.83 14.13 5.83ZM13.85 12.40L13.85 12.40Q14.53 12.40 15.01 12.07Q15.49 11.74 15.75 11.13Q16.01 10.51 16.01 9.65L16.01 9.65Q16.01 8.78 15.75 8.17Q15.50 7.55 15.02 7.22Q14.53 6.89 13.86 6.89L13.86 6.89Q13.19 6.89 12.70 7.23Q12.22 7.56 11.95 8.18Q11.68 8.80 11.68 9.65L11.68 9.65Q11.68 10.49 11.95 11.10Q12.22 11.72 12.70 12.06Q13.19 12.40 13.85 12.40ZM22.66 5.83L22.66 5.83Q23.60 5.83 24.29 6.30Q24.99 6.77 25.38 7.63Q25.76 8.49 25.76 9.65L25.76 9.65Q25.76 10.51 25.54 11.21Q25.32 11.92 24.91 12.42Q24.51 12.92 23.94 13.19Q23.37 13.46 22.66 13.46L22.66 13.46Q21.88 13.46 21.27 13.14Q20.66 12.81 20.36 12.22L20.36 12.22L20.25 12.22L20.25 15.79L19.07 15.79L19.07 5.96L20.19 5.96L20.19 7.19L20.30 7.19Q20.66 6.56 21.28 6.19Q21.91 5.83 22.66 5.83ZM22.38 12.40L22.38 12.40Q23.06 12.40 23.54 12.07Q24.02 11.74 24.28 11.13Q24.54 10.51 24.54 9.65L24.54 9.65Q24.54 8.78 24.28 8.17Q24.03 7.55 23.55 7.22Q23.06 6.89 22.39 6.89L22.39 6.89Q21.72 6.89 21.24 7.23Q20.75 7.56 20.48 8.18Q20.21 8.80 20.21 9.65L20.21 9.65Q20.21 10.49 20.48 11.10Q20.75 11.72 21.23 12.06Q21.72 12.40 22.38 12.40ZM28.85 13.33L27.67 13.33L27.67 3.04L28.85 3.04L28.85 13.33ZM34.07 6.87L34.07 6.87Q33.48 6.87 33.03 7.14Q32.57 7.41 32.30 7.90Q32.03 8.38 31.99 9.04L31.99 9.04L36.05 9.04Q36.03 8.38 35.78 7.90Q35.53 7.41 35.10 7.14Q34.66 6.87 34.07 6.87ZM36.01 11.42L36.01 11.42L37.19 11.42Q37.02 12.05 36.59 12.51Q36.16 12.97 35.53 13.21Q34.89 13.46 34.08 13.46L34.08 13.46Q33.06 13.46 32.31 13.00Q31.57 12.53 31.17 11.67Q30.76 10.81 30.76 9.65L30.76 9.65Q30.76 8.78 30.99 8.08Q31.23 7.38 31.66 6.87Q32.10 6.37 32.71 6.10Q33.33 5.83 34.08 5.83L34.08 5.83Q35.08 5.83 35.80 6.28Q36.51 6.73 36.90 7.56Q37.28 8.39 37.28 9.54L37.28 9.54L37.28 9.99L31.99 9.99L31.99 10.04Q32.02 10.77 32.29 11.31Q32.55 11.84 33.02 12.13Q33.48 12.42 34.11 12.42L34.11 12.42Q34.82 12.42 35.30 12.16Q35.78 11.91 36.01 11.42Z"/> </g> </svg> '), "black" === e && (t = t.replace('fill="#000"', 'fill="#fff"')), t | |
| })(e, 0, L); | |
| return ((Q, L, e = "") => { | |
| e || (e = ""); | |
| var t = ""; | |
| for (var n in L) L.hasOwnProperty(n) && (t += " " + n + '="' + L[n] + '"'); | |
| return "<" + Q + t + ">" + e + "</" + Q + ">" | |
| })("div", { | |
| style: (Q => { | |
| var L = ""; | |
| for (var e in Q) Q[e] && Q.hasOwnProperty(e) && (L += " " + e + ": " + Q[e] + ";"); | |
| return L | |
| })({ | |
| display: "inline-flex", | |
| "box-sizing": "border-box", | |
| width: "100%", | |
| height: "100%", | |
| "min-width": "200px", | |
| "min-height": "32px", | |
| "max-height": "64px", | |
| "border-radius": "5px", | |
| "background-color": "black" === L ? "black" : "white", | |
| color: "black" === L ? "white" : "black", | |
| border: t ? ".5px solid black" : null | |
| }) | |
| }, n) | |
| })({ | |
| locale: L, | |
| color: e, | |
| type: t, | |
| border: n | |
| })) | |
| }; | |
| const e = { | |
| isInit: !1, | |
| init() { | |
| const Q = document.getElementById("appleid-signin"); | |
| if (Q && !e.isInit) { | |
| const t = Q.dataset; | |
| let n = "black", | |
| i = !0, | |
| r = "continue"; | |
| null != t && (t.color && (n = t.color), t.border && (i = "false" !== t.border), t.type && (r = t.type)), L({ | |
| id: "appleid-signin", | |
| color: n, | |
| border: i, | |
| type: r | |
| }), Q.addEventListener("click", function() { | |
| S.signIn() | |
| }), e.isInit = !0 | |
| } | |
| } | |
| }; | |
| e.init(); | |
| const t = { | |
| baseURI: "https://appleid.apple.com", | |
| path: "/auth/authorize", | |
| originURI: "", | |
| env: "prod", | |
| uxMode: "redirect", | |
| responseType: "code id_token", | |
| responseMode: "form_post", | |
| client: { | |
| clientId: "", | |
| scope: "", | |
| redirectURI: "", | |
| state: "" | |
| } | |
| }, | |
| n = "user_trigger_new_signin_flow", | |
| i = "popup_closed_by_user", | |
| r = "popup_blocked_by_browser", | |
| o = {}; | |
| let s = t.baseURI; | |
| window.addEventListener("message", Q => { | |
| try { | |
| if (Q.origin !== s) return; | |
| const L = JSON.parse(Q.data); | |
| L.method in o && o[L.method](L.data) | |
| } catch (Q) {} | |
| }, !1); | |
| var c, l = Q => { | |
| "dev" === Q.env && (s = Q.baseURI) | |
| }, | |
| d = (Q, L) => { | |
| o[Q] = L | |
| }; | |
| let a; | |
| ! function(Q) { | |
| Q.ClientId = "appleid-signin-client-id", Q.Scope = "appleid-signin-scope", Q.RedirectURI = "appleid-signin-redirect-uri", Q.State = "appleid-signin-state", Q.DEV_URI = "appleid-signin-dev-uri", Q.DEV_ENV = "appleid-signin-dev-env", Q.DEV_PATH = "appleid-signin-dev-path" | |
| }(c || (c = {})); | |
| const p = () => { | |
| if (!a) { | |
| a = {}; | |
| const Q = (() => { | |
| const Q = {}; | |
| return Object.keys(c).forEach(L => Q[c[L]] = !0), Q | |
| })(), | |
| L = document.getElementsByTagName("meta"); | |
| let e = ""; | |
| for (let t = 0; t < L.length; t++) Q[e = L[t].getAttribute("name")] && (a[e] = L[t].getAttribute("content")) | |
| } | |
| return a | |
| }, | |
| M = Q => { | |
| let L = `${Q.baseURI}${Q.path}?client_id=` + encodeURIComponent(Q.client.clientId) + "&redirect_uri=" + encodeURIComponent(Q.client.redirectURI) + "&response_type=" + encodeURIComponent(Q.responseType); | |
| return Q.client.state && (L = L + "&state=" + encodeURIComponent(Q.client.state)), Q.client.scope && (L = L + "&scope=" + encodeURIComponent(Q.client.scope)), L = (L = L + "&response_mode=" + encodeURIComponent(Q.responseMode)) + "&frame_id=" + (() => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(Q) { | |
| var L = 16 * Math.random() | 0; | |
| return ("x" == Q ? L : 3 & L | 8).toString(16) | |
| }))() | |
| }, | |
| g = {}, | |
| h = {}, | |
| u = Q => (h[Q] || (h[Q] = []), h[Q]), | |
| w = (Q, L) => { | |
| u(Q).forEach(Q => Q(L)) | |
| }, | |
| Z = (Q, L) => { | |
| const e = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width, | |
| t = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; | |
| return { | |
| left: e / 2 - Q / 2 + window.screenLeft, | |
| top: t / 2 - L / 2 + window.screenTop | |
| } | |
| }, | |
| f = { | |
| strWindowFeatures: `width=700,height=700,left=${Z(700,700).left},top=${Z(700,700).top},resizable=no,location=no,menubar=no`, | |
| windowName: "Apple authentication" | |
| }, | |
| m = Q => ((Q, L, e) => { | |
| let t = window.open(Q, L, e); | |
| if (t) { | |
| g[L] = t; | |
| const Q = setInterval(() => { | |
| t.closed && (g[L] && (g[L] = null), w(L, "closed"), clearInterval(Q)) | |
| }, 300) | |
| } | |
| return t | |
| })(Q, f.windowName, f.strWindowFeatures), | |
| x = () => (Q => { | |
| g[Q] && (g[Q].close(), g[Q] = null) | |
| })(f.windowName), | |
| I = [], | |
| b = [], | |
| v = Q => { | |
| const L = I.indexOf(Q); | |
| I.splice(L, 1), b.splice(L, 1) | |
| }, | |
| y = Q => { | |
| const L = I.indexOf(Q); | |
| return b[L] | |
| }, | |
| R = Q => -1 !== I.indexOf(Q), | |
| U = () => { | |
| let Q, L, e; | |
| return ((Q, L) => { | |
| I.push(Q), b.push(L) | |
| })(Q = new Promise((Q, t) => { | |
| e = Q, L = t | |
| }), { | |
| reject: L, | |
| resolve: e | |
| }), Q | |
| }, | |
| E = (Q, L) => { | |
| R(Q) && (y(Q).reject(L), v(Q)) | |
| }; | |
| let _ = null; | |
| (Q => ((Q, L) => { | |
| u(Q).push(L) | |
| })(f.windowName, Q))(Q => { | |
| R(_) && "closed" === Q && E(_, { | |
| error: i | |
| }) | |
| }), d("oauthDone", Q => { | |
| R(_) && ("error" in Q ? E(_, Q) : ((Q, L) => { | |
| R(Q) && (y(Q).resolve(L), v(Q)) | |
| })(_, Q)), x() | |
| }); | |
| const k = Q => { | |
| R(_) && E(_, { | |
| error: n | |
| }); | |
| const L = M(Q); | |
| if ("popup" === Q.uxMode) { | |
| if (!(() => !!window.Promise)()) throw new Error("Promise is required to use popup, please use polyfill."); | |
| if (m(L)) return _ = U(); | |
| Promise.reject({ | |
| error: r | |
| }) | |
| } else(Q => window.location.assign(Q))(L) | |
| }; | |
| let T = !1; | |
| const O = Q => { | |
| if (!Q.clientId || "string" != typeof Q.clientId) throw new Error('The "clientId" should be a string.'); | |
| if (t.client.clientId = Q.clientId, !Q.redirectURI || "string" != typeof Q.redirectURI) throw new Error('The "redirectURI" should be a string.'); | |
| t.client.redirectURI = Q.redirectURI, j(Q), e.isInit || e.init(), T = !0 | |
| }, | |
| j = (Q, L = t) => { | |
| if (Q.scope) { | |
| if ("string" != typeof Q.scope) throw new Error('The "scope" should be a string.'); | |
| L.client.scope = Q.scope | |
| } | |
| if (Q.state) { | |
| if ("string" != typeof Q.state) throw new Error('The "state" should be a string.'); | |
| L.client.state = Q.state | |
| } | |
| }, | |
| C = Q => { | |
| const L = Object.create(t); | |
| return L.client = Object.create(t.client), Q.scope && "string" == typeof Q.scope && (L.client.scope = Q.scope), Q.redirectURI && "string" == typeof Q.redirectURI && (L.client.redirectURI = Q.redirectURI), L | |
| }; | |
| (() => { | |
| const Q = p(); | |
| return Object.keys(Q).length > 0 | |
| })() && O((() => { | |
| const Q = { | |
| clientId: "", | |
| scope: "", | |
| redirectURI: "", | |
| state: "" | |
| }, | |
| L = p(); | |
| L[c.ClientId] && (Q.clientId = L[c.ClientId]), L[c.Scope] && (Q.scope = L[c.Scope]), L[c.RedirectURI] && (Q.redirectURI = L[c.RedirectURI]), L[c.State] && (Q.state = L[c.State]); | |
| const e = L[c.DEV_ENV], | |
| n = L[c.DEV_PATH], | |
| i = L[c.DEV_URI]; | |
| return (e || n || i) && (e && (t.env = e), n && (t.path = n), i && (t.baseURI = i, l(t))), Q | |
| })()); | |
| const S = { | |
| init: O, | |
| signIn: (Q = null) => { | |
| let L = t; | |
| if (!T) throw new Error('The "init" function must be called first.'); | |
| if (Q) { | |
| if (!(Q instanceof Object) || Array.isArray(Q)) throw new Error('The "signinConfig" must be "object".'); | |
| L = C(Q), j(Q, L) | |
| } | |
| return k(L) | |
| } | |
| }; | |
| Q.auth = S, Object.defineProperty(Q, "__esModule", { | |
| value: !0 | |
| }) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment