
    ,hl(                     :   U d dl Z d dlmZmZmZ d dlmZ d dlmZ d dl	m
Z
mZ dddddd	Ze
eeef    ed
      f   ed<   dddddddde
e ed      f   de
e ed      f   de
e ed      f   de
e ed      f   de
e ed      f   de
ee    ed      f   de
eeeef       ed      f   de
eeeef       ed      f   d efd!Zd"ddd#de
e ed$      f   de
e ed      f   d%e
e ed&      f   d'e
e ed      f   d(e
e ed)      f   d efd*Zd efd+Zy),    N)AnyDictOptional)jsonable_encoderHTMLResponse)	AnnotatedDocz#swagger-ui
BaseLayoutT)dom_idlayoutdeepLinkingshowExtensionsshowCommonExtensionsz
        Default configurations for Swagger UI.

        You can use it as a template to add any other configurations needed.
        swagger_ui_default_parameterszChttps://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui-bundle.jsz=https://cdn.jsdelivr.net/npm/swagger-ui-dist@5/swagger-ui.cssz,https://fastapi.tiangolo.com/img/favicon.png)swagger_js_urlswagger_css_urlswagger_favicon_urloauth2_redirect_url
init_oauthswagger_ui_parametersopenapi_urlz
            The OpenAPI URL that Swagger UI should load and use.

            This is normally done automatically by FastAPI using the default URL
            `/openapi.json`.
            titlezX
            The HTML `<title>` content, normally shown in the browser tab.
            r   zy
            The URL to use to load the Swagger UI JavaScript.

            It is normally set to a CDN URL.
            r   zr
            The URL to use to load the Swagger UI CSS.

            It is normally set to a CDN URL.
            r   za
            The URL of the favicon to use. It is normally shown in the browser tab.
            r   zc
            The OAuth2 redirect URL, it is normally automatically handled by FastAPI.
            r   z\
            A dictionary with Swagger UI OAuth2 initialization configurations.
            r   z
            Configuration parameters for Swagger UI.

            It defaults to [swagger_ui_default_parameters][fastapi.openapi.docs.swagger_ui_default_parameters].
            returnc                    t         j                         }|r|j                  |       d| d| d| d| d|  d}	|j                         D ]?  \  }
}|	t	        j
                  |
       dt	        j
                  t        |             dz  }	A |r	|	d	| d
z  }	|	dz  }	|r%|	dt	        j
                  t        |             dz  }	|	dz  }	t        |	      S )a)  
    Generate and return the HTML  that loads Swagger UI for the interactive
    API docs (normally served at `/docs`).

    You would only call this function yourself if you needed to override some parts,
    for example the URLs to use to load Swagger UI's JavaScript and CSS.

    Read more about it in the
    [FastAPI docs for Configure Swagger UI](https://fastapi.tiangolo.com/how-to/configure-swagger-ui/)
    and the [FastAPI docs for Custom Docs UI Static Assets (Self-Hosting)](https://fastapi.tiangolo.com/how-to/custom-docs-ui-assets/).
    z\
    <!DOCTYPE html>
    <html>
    <head>
    <link type="text/css" rel="stylesheet" href="z'">
    <link rel="shortcut icon" href="z">
    <title>zV</title>
    </head>
    <body>
    <div id="swagger-ui">
    </div>
    <script src="z"></script>
    <!-- `SwaggerUIBundle` is now available on the page -->
    <script>
    const ui = SwaggerUIBundle({
        url: 'z',
    z: z,
z-oauth2RedirectUrl: window.location.origin + 'z',zy
    presets: [
        SwaggerUIBundle.presets.apis,
        SwaggerUIBundle.SwaggerUIStandalonePreset
        ],
    })z
        ui.initOAuth(z
)
        z+
    </script>
    </body>
    </html>
    )r   copyupdateitemsjsondumpsr   r   )r   r   r   r   r   r   r   r   current_swagger_ui_parametershtmlkeyvalues               V/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/fastapi/openapi/docs.pyget_swagger_ui_htmlr&      s=   n %B$F$F$H!%,,-BC2 3B1B C%%8$9 :7 
 !! " m D$ 499; O
U4::c?#2djj1A%1H&I%J#NNO ?@S?TTVWW 
 
D  jj!1*!=>? @	 	 	  D
     zChttps://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js)redoc_js_urlredoc_favicon_urlwith_google_fontsz
            The OpenAPI URL that ReDoc should load and use.

            This is normally done automatically by FastAPI using the default URL
            `/openapi.json`.
            r(   zt
            The URL to use to load the ReDoc JavaScript.

            It is normally set to a CDN URL.
            r)   r*   z4
            Load and use Google Fonts.
            c                 P    d| d}|r|dz  }|d| d|  d| dz  }t        |      S )a  
    Generate and return the HTML response that loads ReDoc for the alternative
    API docs (normally served at `/redoc`).

    You would only call this function yourself if you needed to override some parts,
    for example the URLs to use to load ReDoc's JavaScript and CSS.

    Read more about it in the
    [FastAPI docs for Custom Docs UI Static Assets (Self-Hosting)](https://fastapi.tiangolo.com/how-to/custom-docs-ui-assets/).
    z6
    <!DOCTYPE html>
    <html>
    <head>
    <title>z</title>
    <!-- needed for adaptive design -->
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    zz
    <link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
    z%
    <link rel="shortcut icon" href="a<  ">
    <!--
    ReDoc doesn't change outer page styles
    -->
    <style>
      body {
        margin: 0;
        padding: 0;
      }
    </style>
    </head>
    <body>
    <noscript>
        ReDoc requires Javascript to function. Please enable it to browse the documentation.
    </noscript>
    <redoc spec-url="z"></redoc>
    <script src="z)"> </script>
    </body>
    </html>
    r   )r   r   r(   r)   r*   r"   s         r%   get_redoc_htmlr,      ss    t 7 	D   	 	 %%6$7 8 "] #  # D* r'   c                      d} t        |       S )z
    Generate the HTML response with the OAuth2 redirection for Swagger UI.

    You normally don't need to use or change this.
    a  
    <!doctype html>
    <html lang="en-US">
    <head>
        <title>Swagger UI: OAuth2 Redirect</title>
    </head>
    <body>
    <script>
        'use strict';
        function run () {
            var oauth2 = window.opener.swaggerUIRedirectOauth2;
            var sentState = oauth2.state;
            var redirectUrl = oauth2.redirectUrl;
            var isValid, qp, arr;

            if (/code|token|error/.test(window.location.hash)) {
                qp = window.location.hash.substring(1).replace('?', '&');
            } else {
                qp = location.search.substring(1);
            }

            arr = qp.split("&");
            arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';});
            qp = qp ? JSON.parse('{' + arr.join() + '}',
                    function (key, value) {
                        return key === "" ? value : decodeURIComponent(value);
                    }
            ) : {};

            isValid = qp.state === sentState;

            if ((
              oauth2.auth.schema.get("flow") === "accessCode" ||
              oauth2.auth.schema.get("flow") === "authorizationCode" ||
              oauth2.auth.schema.get("flow") === "authorization_code"
            ) && !oauth2.auth.code) {
                if (!isValid) {
                    oauth2.errCb({
                        authId: oauth2.auth.name,
                        source: "auth",
                        level: "warning",
                        message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
                    });
                }

                if (qp.code) {
                    delete oauth2.state;
                    oauth2.auth.code = qp.code;
                    oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
                } else {
                    let oauthErrorMsg;
                    if (qp.error) {
                        oauthErrorMsg = "["+qp.error+"]: " +
                            (qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
                            (qp.error_uri ? "More info: "+qp.error_uri : "");
                    }

                    oauth2.errCb({
                        authId: oauth2.auth.name,
                        source: "auth",
                        level: "error",
                        message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server."
                    });
                }
            } else {
                oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
            }
            window.close();
        }

        if (document.readyState !== 'loading') {
            run();
        } else {
            document.addEventListener('DOMContentLoaded', function () {
                run();
            });
        }
    </script>
    </body>
    </html>
        )contentr   )r"   s    r%   #get_swagger_ui_oauth2_redirect_htmlr/      s    PDb %%r'   )r   typingr   r   r   fastapi.encodersr   starlette.responsesr   typing_extensionsr	   r
   r   str__annotations__r&   boolr,   r/    r'   r%   <module>r8      s    & & - , ,   ycN		  ` 	N 	H 	7 	 	 	UD	
	
D 	
	D* 	
		+D> 	
		?DR #	
	SDb #	
	cDr c3h 	
	sDB %c3h 	
		CDV WDJ 	N 	7 	]\	
	
\ 	
	\* 	
		+\> !	
	?\N !	
	O\^ _\~X&\ X&r'   