فهرست منبع

release v0.3.0

Harlan Iverson 1 سال پیش
والد
کامیت
86be25d728
67فایلهای تغییر یافته به همراه1306 افزوده شده و 2756 حذف شده
  1. 1 1
      README.md
  2. 52 0
      docs/dev/architecture.md
  3. 61 0
      docs/dev/syndication_taxonomy.md
  4. 3 3
      extensions/mastodon_facade.py
  5. 7 7
      extensions/twitter_archive_facade.py
  6. 7 0
      extensions/twitter_v2_facade/__init__.py
  7. 207 0
      extensions/twitter_v2_facade/content_source.py
  8. 90 359
      extensions/twitter_v2_facade/facade.py
  9. 0 0
      extensions/twitter_v2_facade/oauth2_login.py
  10. 303 0
      extensions/twitter_v2_facade/view_model.py
  11. 10 0
      hogumathi_app/__init__.py
  12. 76 9
      hogumathi_app/__main__.py
  13. 163 0
      hogumathi_app/content_system.py
  14. 112 3
      hogumathi_app/item_collections.py
  15. 0 0
      hogumathi_app/static/fake-tweet-activity.png
  16. 0 0
      hogumathi_app/static/htmx.js
  17. 0 0
      hogumathi_app/static/img/brand/ispoogedaily_logo.jpg
  18. 0 0
      hogumathi_app/static/sweetalert2.js
  19. 0 0
      hogumathi_app/static/tachyons.min.css
  20. 0 0
      hogumathi_app/static/theme/base.css
  21. 0 0
      hogumathi_app/static/theme/user-14520320.css
  22. 0 0
      hogumathi_app/static/tweets-ui.js
  23. 0 0
      hogumathi_app/templates/base.html
  24. 0 0
      hogumathi_app/templates/brand-page.html
  25. 0 0
      hogumathi_app/templates/conversations.html
  26. 0 0
      hogumathi_app/templates/dual-collection.html
  27. 0 0
      hogumathi_app/templates/followers.html
  28. 0 0
      hogumathi_app/templates/following.html
  29. 0 0
      hogumathi_app/templates/login.html
  30. 0 0
      hogumathi_app/templates/partial/brand-info-bs.html
  31. 0 0
      hogumathi_app/templates/partial/brand-info.html
  32. 0 0
      hogumathi_app/templates/partial/compose-form.html
  33. 0 0
      hogumathi_app/templates/partial/media-upload-form.html
  34. 0 0
      hogumathi_app/templates/partial/page-nav-bs.html
  35. 0 0
      hogumathi_app/templates/partial/page-nav.html
  36. 12 5
      hogumathi_app/templates/partial/timeline-tweet-bs.html
  37. 14 5
      hogumathi_app/templates/partial/timeline-tweet.html
  38. 0 0
      hogumathi_app/templates/partial/tweet-thread-children.html
  39. 0 0
      hogumathi_app/templates/partial/tweet-thread-item.html
  40. 0 0
      hogumathi_app/templates/partial/tweets-carousel.html
  41. 0 0
      hogumathi_app/templates/partial/tweets-timeline-bs.html
  42. 0 0
      hogumathi_app/templates/partial/tweets-timeline.html
  43. 2 2
      hogumathi_app/templates/partial/user-card-bs.html
  44. 0 0
      hogumathi_app/templates/partial/user-card.html
  45. 0 0
      hogumathi_app/templates/partial/user-picker.html
  46. 0 0
      hogumathi_app/templates/partial/users-list.html
  47. 0 0
      hogumathi_app/templates/search.html
  48. 0 0
      hogumathi_app/templates/tweet-collection.html
  49. 0 0
      hogumathi_app/templates/tweet-thread.html
  50. 0 0
      hogumathi_app/templates/user-profile.html
  51. 0 0
      hogumathi_app/templates/youtube-channel.html
  52. 32 1
      hogumathi_app/view_model.py
  53. 1 1
      lib/mastodon_v2/api.py
  54. 0 0
      lib/mastodon_v2/types.py
  55. 22 106
      lib/twitter_v2/api.py
  56. 108 0
      lib/twitter_v2/archive.py
  57. 22 0
      lib/twitter_v2/types.py
  58. 0 25
      sample-env.txt
  59. 0 2018
      static/bootstrap-icons.css
  60. BIN
      static/bootstrap-icons.woff2
  61. 0 5
      static/bootstrap.bundle.min.js
  62. 0 4
      static/bootstrap.min.css
  63. 0 16
      static/theme/base-bs.css
  64. 0 111
      templates/base-bs.html
  65. 0 15
      templates/tweet-collection-bs.html
  66. 0 59
      templates/user-profile-bs.html
  67. 1 1
      test/unit/twitter_v2_facade_test/test_tweet_source.py

+ 1 - 1
README.md

@@ -129,7 +129,7 @@ Ensure that the Twitter API is configured to allow access to your project name.
 
 For local deployment, use Python:
 
-* `python hogumathi_app.py` or `python3 hogumathi_app.py`
+* `python -m hogumathi_app` or `python3 -m hogumathi_app`
 
 ## Contributing
 

+ 52 - 0
docs/dev/architecture.md

@@ -0,0 +1,52 @@
+
+
+
+## Edge Case Debates
+
+* Is an email Inbox/conversation more like a collection or a feed?
+
+
+## Content System
+
+Content sources can be registered to handle IDs. The first to be registered for a pattern will be used.
+
+It should take into account things like connectivity, availability, etc.
+
+Live API, Offline cache, Archive sources.
+
+If the live API only has 7 days of data, we may fall back cached or exported archive.
+
+## Testing
+
+Unit and E2E tests run offline, except integration portions.
+
+We can use the cached responses and responses module to accomplish this.
+
+## Provider template
+
+Twitter is the furthest along, but each has some distinct features.
+
+I was learning Python as I built this project.
+
+## Extensibility
+
+We rely as much as possible on the constituent parts that we rely on.
+
+Trac is an inspiration but invents everything from scratch which is over-engineering for us at this point.
+
+We'll vet the pieces that we use well and rely on them. Trac for the HTTP routing and themes.
+
+Dataclasses for the serialization.
+
+https://stackoverflow.com/questions/7505988/importing-from-a-relative-path-in-python
+
+https://www.geeksforgeeks.org/absolute-and-relative-imports-in-python/
+
+https://stackoverflow.com/questions/40892104/how-to-organize-one-blueprint-with-multiple-routes-files
+
+### Content
+
+### Themes
+
+### Routes
+

+ 61 - 0
docs/dev/syndication_taxonomy.md

@@ -0,0 +1,61 @@
+# Syndication Taxonomy
+
+These items are implemented as Dataclasses and are network serializable.
+
+They are designed as a ViewModel.
+
+The Hogumathi feed syndication will be the real test of whether this is a viable approach...
+
+Strictly the network should have a different ValueObject.
+
+"Actions" will be tricky. I think they're a map currently, and require regular expressions.
+
+## FeedItem
+
+Presently this is implemented as a ViewModel.
+
+## FeedItemMedia
+
+Media item attached to a FeedItem
+
+## User
+
+## Feed
+
+FeedItems - chronologically ordered
+
+## Collection
+
+CollectionItem - ordered by 'user'
+
+
+## CollectionItem
+
+(presently implemented as FeedItem. Could end up nesting FeedItem)
+
+Think of Search and Playlist as a user, maybe read only access
+
+## List
+
+ListMembers - ordered
+
+## ListMember
+
+User
+
+## Conversation
+
+Ordered collection of Messages
+
+## Message
+
+From User. (Participant?)
+
+To Users.
+
+FeedItems can be attached.
+
+
+## CollectionPage
+
+A page of ViewModel collection items with a next_token.

+ 3 - 3
mastodon_facade.py → extensions/mastodon_facade.py

@@ -17,10 +17,10 @@ import dateutil.tz
 
 import requests
 
-from mastodon_source import MastodonAPSource
-from mastodon_v2_types import Status
+from mastodon_v2.api import MastodonAPSource
+from mastodon_v2.types import Status
 
-from view_model import FeedItem, FeedItemAction, PublicMetrics
+from hogumathi_app.view_model import FeedItem, FeedItemAction, PublicMetrics
 
 DATA_DIR='.data'
 

+ 7 - 7
twitter_archive_facade.py → extensions/twitter_archive_facade.py

@@ -21,12 +21,12 @@ import dateutil.tz
 import requests
 
 
-from tweet_source import ArchiveTweetSource
+from twitter_v2.archive import ArchiveTweetSource
 
-from view_model import FeedItem, PublicMetrics
+from hogumathi_app.view_model import FeedItem, PublicMetrics
 
 ARCHIVE_TWEETS_PATH=os.environ.get('ARCHIVE_TWEETS_PATH', '.data/tweets.json')
-
+TWEET_DB_PATH=os.environ.get('TWEET_DB_PATH', '.data/tweet.db')
 
 twitter_app = Blueprint('twitter_archive_facade', 'twitter_archive_facade',
     static_folder='static',
@@ -146,11 +146,11 @@ def get_timeline ():
 
 @twitter_app.route('/tweets/compressed', methods=['POST'])
 def post_tweets_compressed ():
-  db_exists = os.path.exists("tweets.db")
+  db_exists = os.path.exists(TWEET_DB_PATH)
   
   
   if not db_exists:
-    db = sqlite3.connect("tweets.db")
+    db = sqlite3.connect(TWEET_DB_PATH)
     db.execute("create table tweet (id, full_text_length, date, reply)")
     populate_tweetsdb_from_compressed_json(db, ".data/tweet-items.json")
     db.commit()
@@ -396,7 +396,7 @@ def get_tweets_search (response_format='json'):
     
     in_reply_to_user_id = int(request.args.get('in_reply_to_user_id', 0))
     
-    db = sqlite3.connect('.data/tweet.db')
+    db = sqlite3.connect(TWEET_DB_PATH)
     
     sql = """
 select
@@ -479,7 +479,7 @@ def post_tweets ():
     tweets_file = open(tweets_path, 'rt', encoding='utf-8')
     tweets_data = json_stream.load(tweets_file)
     
-    db = sqlite3.connect('.data/tweet.db')
+    db = sqlite3.connect(TWEET_DB_PATH)
     
     db.execute('create table tweet (id integer, created_at, retweeted, favorited, retweet_count integer, favorite_count integer, full_text, in_reply_to_status_id_str integer, in_reply_to_user_id, in_reply_to_screen_name)')
     db.commit()

+ 7 - 0
extensions/twitter_v2_facade/__init__.py

@@ -0,0 +1,7 @@
+from . import content_source
+
+from .facade import twitter_app
+
+
+def register_content_sources ():
+    content_source.register_content_sources()

+ 207 - 0
extensions/twitter_v2_facade/content_source.py

@@ -0,0 +1,207 @@
+"""
+This translates from the Tweet Source and Twitter v2 types
+
+Into ViewModel types such as FeedItem
+
+And the rest of the Taxonomy.
+
+"""
+
+from dataclasses import asdict
+import os
+from flask import session, g, request
+import time
+import json
+
+from twitter_v2.api import ApiV2TweetSource, TwitterApiV2SocialGraph, ApiV2ConversationSource
+
+from hogumathi_app.view_model import CollectionPage, cleandict
+from .view_model import tweet_model_dc_vm, user_model_dc
+
+from hogumathi_app.content_system import register_content_source, get_content, register_hook
+
+DATA_DIR='.data'
+
+def get_tweet_item (tweet_id, me=None):
+    
+    
+    if me:
+        twitter_user = session.get(me)
+        token = twitter_user['access_token']
+    else:
+        token = os.environ.get('BEARER_TOKEN')
+    
+    tweet_source = ApiV2TweetSource(token)
+    tweets_response = tweet_source.get_tweet(tweet_id, return_dataclass=True)
+
+    
+    #print(response_json)
+    if tweets_response.errors:
+        # types:
+        # https://api.twitter.com/2/problems/not-authorized-for-resource (blocked or suspended)
+        # https://api.twitter.com/2/problems/resource-not-found (deleted)
+        #print(response_json.get('errors'))
+        for err in tweets_response.errors:
+            if not 'type' in err:
+                print('unknown error type: ' + str(err))
+            elif err['type'] == 'https://api.twitter.com/2/problems/not-authorized-for-resource':
+                print('blocked or suspended tweet: ' + err['value'])
+            elif err['type'] == 'https://api.twitter.com/2/problems/resource-not-found':
+                print('deleted tweet: ' + err['value'])
+            else:
+                print('unknown error')
+            
+            print(json.dumps(err, indent=2))
+    
+    
+    includes = tweets_response.includes
+    tweets = list(map(lambda t: tweet_model_dc_vm(includes, t, me), tweets_response.data))
+    
+    collection_page = CollectionPage(
+        id = tweet_id,
+        items = tweets,
+        next_token = None # Fixme
+        )
+    
+    return collection_page
+
+
+def get_bookmarks_feed (user_id, pagination_token=None, max_results=10, me=None):
+    
+    if not me:
+        me = g.get('me') or request.args.get('me')
+        
+    
+    print(f'get_bookmarks_feed. me={me}')
+    
+    twitter_user = session.get( me )
+    
+    if not twitter_user:
+        return None
+        
+    token = twitter_user['access_token']
+    
+    tweet_source = ApiV2TweetSource(token)
+    response_tweets = tweet_source.get_bookmarks(user_id,
+                        pagination_token = pagination_token,
+                        return_dataclass=True,
+                        max_results=max_results
+                        )
+    
+    #print(response_json)
+    
+    includes = response_tweets.includes
+    tweets = list(map(lambda t: tweet_model_dc_vm(includes, t, me), response_tweets.data))
+    next_token = response_tweets.meta.next_token
+    
+    query = {}
+    
+    if next_token:
+        query = {
+            **query,
+
+        }
+    
+    user = {
+            'id': user_id
+        }
+    
+    ts = int(time.time() * 1000)
+    with open(f'{DATA_DIR}/cache/bookmarks_{user_id}_{ts}_{pagination_token}.json', 'wt') as f:
+        f.write(json.dumps(cleandict(asdict(response_tweets))))
+    
+    collection_page = CollectionPage(
+        id = user_id, # FIXME this should perhaps be the unresolved id
+        items = tweets,
+        next_token = next_token
+    )
+    
+    return collection_page
+
+def get_user_feed (user_id, pagination_token=None, me=None, exclude_replies=False, exclude_retweets=True, format=None):
+    
+    if not me and 'me' in g:
+        me = g.me
+    
+    if 'twitter_user' in g and g.twitter_user:
+        token = g.twitter_user['access_token']
+        # issue: retweets don't come back if we request non_public_metrics
+        is_me = False and user_id == g.twitter_user['id']
+    else:
+        token = os.environ.get('BEARER_TOKEN')
+        is_me = False
+    
+    
+    tweet_source = ApiV2TweetSource(token)
+    tweets_response = tweet_source.get_user_timeline(user_id,
+                        exclude_replies = exclude_replies,
+                        exclude_retweets = exclude_retweets,
+                        pagination_token = pagination_token,
+                        non_public_metrics = False,
+                        return_dataclass=True)
+    
+    tweets = None
+    if not tweets_response:
+        print('no response_json')
+        
+    if tweets_response.meta.result_count == 0:
+        print('no results')
+    
+    if not tweets_response.includes:
+        print(tweets_response)
+        print('no tweets_response.includes')
+    
+    if tweets_response.errors:
+        print('profile get_user_timeline errors:')
+        print(tweets_response.errors)
+    
+    ts = int(time.time() * 1000)
+    with open(f'{DATA_DIR}/cache/tl_{user_id}_{ts}_{pagination_token}.json', 'wt') as f:
+        f.write(json.dumps(cleandict(asdict(tweets_response))))
+    
+    if tweets_response.data:
+        tweets = list(map(lambda t: tweet_model_dc_vm(tweets_response.includes, t, me), tweets_response.data))
+    
+    next_token = tweets_response.meta.next_token
+    
+    collection_page = CollectionPage(
+        id = user_id,
+        items = tweets,
+        next_token = next_token
+    )
+    
+    return collection_page
+
+def get_tweets_collection (tweet_ids, pagination_token=None, max_results=None):
+    """
+    We might be able to have a generalizer in the content system as well...
+    If a source exposes a get many interface then use it. We want to avoid many singular fetches.
+    """
+    return []
+    
+def get_user (user_id, me=None):
+    
+    if me:
+        twitter_user = session.get(me)
+        token = twitter_user['access_token']
+    else:
+        token = os.environ.get('BEARER_TOKEN')
+    
+    social_graph = TwitterApiV2SocialGraph(token)
+    users_response = social_graph.get_user(user_id, return_dataclass=True)
+    
+    print(users_response)
+    
+    if not len(users_response.data):
+        return
+    
+    user = user_model_dc(users_response.data[0])
+    
+    return user
+
+def register_content_sources ():
+    register_content_source('twitter:tweets', get_tweets_collection)
+    register_content_source('twitter:tweet:', get_tweet_item, id_pattern='(?P<tweet_id>\d+)')
+    register_content_source('twitter:bookmarks:', get_bookmarks_feed, id_pattern='(?P<user_id>\d+)')
+    register_content_source('twitter:feed:user:', get_user_feed, id_pattern='(?P<user_id>\d+)')
+    register_content_source('twitter:user:', get_user, id_pattern='(?P<user_id>\d+)')

+ 90 - 359
twitter_v2_facade.py → extensions/twitter_v2_facade/facade.py

@@ -31,15 +31,20 @@ from flask import json, Response, render_template, request, send_from_directory,
 
 from flask_cors import CORS
 
-from tweet_source import ApiV2TweetSource, TwitterApiV2SocialGraph, ApiV2ConversationSource
-from twitter_v2_types import Tweet, TweetExpansions
+from twitter_v2.api import ApiV2TweetSource, TwitterApiV2SocialGraph, ApiV2ConversationSource
+from twitter_v2.types import Tweet, TweetExpansions
 
-from view_model import FeedItem, FeedServiceUser, ThreadItem, FeedItemAction, MediaItem, Card, PublicMetrics, NonPublicMetrics, UnrepliedSection, cleandict
+from hogumathi_app.view_model import FeedItem, FeedServiceUser, ThreadItem, FeedItemAction, MediaItem, Card, PublicMetrics, NonPublicMetrics, UnrepliedSection, CollectionPage, cleandict
 
-import oauth2_login
+from .view_model import user_model_dc, tweet_model_dc_vm
 
-if find_spec('brands'):
-    from brands import find_brand_by_account, fetch_brand_info
+from . import content_source
+
+from . import oauth2_login
+
+theme_variant = ''
+if find_spec('theme_bootstrap5'): # FIXME use g.
+    theme_variant = '-bs'
 
 DATA_DIR='.data'
 
@@ -55,9 +60,6 @@ twitter_app.before_request(oauth2_login.add_me)
 url_for = oauth2_login.url_for_with_me
 
 
-
-
-
 def run_script(script_name, script_vars):
     script_path = './{}.py'.format(script_name)
     if (os.path.exists(script_path)):
@@ -442,7 +444,7 @@ def get_tweet_html (tweet_id):
             )
             return render_template('tweet-thread.html', user = user, root = root, query = query, page_nav=page_nav, skip_embed_replies=skip_embed_replies, opengraph_info=opengraph_info)
         else:
-            return render_template('tweet-collection-bs.html', user = user, tweets = tweets, query = query, page_nav=page_nav, skip_embed_replies=skip_embed_replies, opengraph_info=opengraph_info)
+            return render_template(f'tweet-collection{theme_variant}.html', user = user, tweets = tweets, query = query, page_nav=page_nav, skip_embed_replies=skip_embed_replies, opengraph_info=opengraph_info)
 
 
 
@@ -465,7 +467,6 @@ def get_followers_html (user_id):
     else:
         response_json = social_source.get_followers(user_id, max_results=1000, return_dataclass=True)
     
-    if not use_cache:
         ts = int(time.time() * 1000)
         
         print(f'followers cache for {user_id}: {ts}')
@@ -517,292 +518,6 @@ def get_following_html (user_id):
 # ---------------------------------------------------------------------------------------------------------
 
 
-def user_model (user):
-    
-    fsu = FeedServiceUser(
-        id = user['id'],
-        name = user['name'],
-        username = user['username'],
-        created_at = user['created_at'],
-        description = '', # user['description'],
-        preview_image_url = '', # user['profile_image_url'],
-        
-        url = url_for('.get_profile_html', user_id=user['id'])
-    )
-    
-    return fsu
-
-
-def user_model_dc (user):
-    
-    fsu = FeedServiceUser(
-        id = user.id,
-        name = user.name,
-        username = user.username,
-        created_at = user.created_at,
-        description = user.description,
-        preview_image_url = user.profile_image_url,
-        website = user.url,
-        
-        
-        url = url_for('.get_profile_html', user_id=user.id),
-        source_url = f'https://twitter.com/{user.username}'
-    )
-    
-    return fsu
-
-def tweet_model_dc_vm (includes: TweetExpansions, tweet: Tweet, me, my_url_for=url_for, reply_depth=0, expand_path=None) -> FeedItem:
-    
-    # retweeted_by, avi_icon_url, display_name, handle, created_at, text
-    
-    
-    user = list(filter(lambda u: u.id == tweet.author_id, includes.users))[0]
-    
-    
-    url = my_url_for('twitter_v2_facade.get_tweet_html', tweet_id=tweet.id, view='tweet')
-    source_url = 'https://twitter.com/{}/status/{}'.format(user.username, tweet.id)
-    
-    avi_icon_url = user.profile_image_url
-    
-    retweet_of = None
-    quoted = None
-    replied_to = None
-    
-    if tweet.referenced_tweets:
-        retweet_of = list(filter(lambda r: r.type == 'retweeted', tweet.referenced_tweets))
-        quoted = list(filter(lambda r: r.type == 'quoted', tweet.referenced_tweets))
-        replied_to = list(filter(lambda r: r.type == 'replied_to', tweet.referenced_tweets))
-    
-    if reply_depth:
-        if expand_path:
-            expand_path += f',{tweet.id}'
-        else:
-            expand_path = tweet.id
-    
-    actions = {
-        'view_replies': FeedItemAction('twitter_v2_facade.get_tweet_html', {'tweet_id': tweet.conversation_id, 'view': 'replies', 'expand': expand_path}),
-        
-        'view_thread': FeedItemAction('twitter_v2_facade.get_tweet_html', {'tweet_id': tweet.conversation_id, 'view': 'thread'}),
-        'view_conversation': FeedItemAction('twitter_v2_facade.get_tweet_html', {'tweet_id': tweet.conversation_id, 'view': 'conversation'}),
-    }
-    
-    if reply_depth:
-        vr = actions['view_replies']
-        url = url_for(vr.route, **vr.route_params)
-    
-    if g.get('twitter_user'):
-        actions.update(
-            bookmark = FeedItemAction('twitter_v2_facade.post_tweet_bookmark', {'tweet_id': tweet.id}),
-            delete_bookmark = FeedItemAction('twitter_v2_facade.delete_tweet_bookmark', {'tweet_id': tweet.id}),
-            
-            retweet = FeedItemAction('twitter_v2_facade.post_tweet_retweet', {'tweet_id': tweet.id})
-            )
-    
-    if g.twitter_live_enabled:
-        actions.update(
-            view_activity = FeedItemAction('twitter_v2_live_facade.get_tweet_activity_html', {'tweet_id': tweet.id})
-            )
-    
-    t = FeedItem(
-        id = tweet.id,
-        text = tweet.text,
-        created_at = tweet.created_at,
-        author_is_verified = user.verified,
-        url = url,
-        
-        conversation_id = tweet.conversation_id,
-        
-        avi_icon_url = avi_icon_url,
-        
-        display_name = user.name,
-        handle = user.username,
-        
-        author_url = my_url_for('twitter_v2_facade.get_profile_html', user_id=user.id),
-        author_id = user.id,
-        
-        source_url = source_url,
-        source_author_url = 'https://twitter.com/{}'.format(user.username),
-        #'is_edited': len(tweet['edit_history_tweet_ids']) > 1
-        
-        actions = actions,
-    )
-    
-    if reply_depth:
-        t = replace(t, reply_depth = reply_depth)
-    
-    # HACK we should not refer to the request directly...
-    if request and request.args.get('marked_reply') == str(t.id):
-        t = replace(t, is_marked = True)
-    
-    # This is where we should put "is_bookmark", "is_liked", "is_in_collection", etc...
-    
-    if tweet.entities:
-        if tweet.entities.urls:
-            urls = list(filter(lambda u: u.title and u.description, tweet.entities.urls))
-            
-            if len(urls):
-                url = urls[0]
-                card = Card(
-                    display_url = url.display_url.split('/')[0],
-                    source_url = url.unwound_url,
-                    content = url.description,
-                    title = url.title
-                )
-                t = replace(t, card = card)
-    
-    if tweet.public_metrics:
-        public_metrics = PublicMetrics(
-            reply_count = tweet.public_metrics.reply_count,
-            quote_count = tweet.public_metrics.quote_count,
-            retweet_count = tweet.public_metrics.retweet_count,
-            like_count = tweet.public_metrics.like_count
-            )
-        
-        t = replace(t, public_metrics = public_metrics)
-    
-    if tweet.non_public_metrics:
-        non_public_metrics = NonPublicMetrics(
-            impression_count = tweet.non_public_metrics.impression_count,
-            user_profile_clicks = tweet.non_public_metrics.user_profile_clicks,
-            url_link_clicks = tweet.non_public_metrics.url_link_clicks
-            )
-        
-        t = replace(t, non_public_metrics = non_public_metrics)
-    
-    if retweet_of and len(retweet_of):
-        print('found retweet_of')
-        t = replace(t, retweeted_tweet_id = retweet_of[0].id)
-        
-        retweeted_tweet:Tweet = list(filter(lambda t: t.id == retweet_of[0].id, includes.tweets))[0]
-        
-        rt = tweet_model_dc_vm(includes, retweeted_tweet, me)
-        
-        t = replace(rt,
-            retweeted_tweet_id = retweet_of[0].id,
-            source_retweeted_by_url = 'https://twitter.com/{}'.format(user.username),
-            retweeted_by = user.name,
-            retweeted_by_url = url_for('.get_profile_html', user_id=user.id)
-            )
-    
-    
-    try:
-        if tweet.attachments and tweet.attachments.media_keys and includes.media:
-            
-            media_keys = tweet.attachments.media_keys
-            
-            def first_media (mk):
-                medias = list(filter(lambda m: m.media_key == mk, includes.media))
-                if len(medias):
-                    return medias[0]
-                return None
-            
-            media = list(filter(lambda m: m != None, map(first_media, media_keys)))
-            
-            photos = filter(lambda m: m.type == 'photo', media)
-            videos = filter(lambda m: m.type == 'video', media)
-            
-            photo_media = map(lambda p: MediaItem(media_key = p.media_key, type = 'photo', preview_image_url = p.url + '?name=tiny&format=webp', url = p.url, width = p.width, height = p.height), photos)
-            
-            def video_to_mi (v):
-                use_hls = False # mainly iOS
-                max_bitrate = 100000000
-                
-                if use_hls:
-                    variants = list(filter(lambda var: var.content_type == 'application/x-mpegURL'))
-                else:
-                    
-                    variants = list(filter(lambda var: var.content_type != 'application/x-mpegURL' and var.bit_rate <= max_bitrate, v.variants))
-                
-                variants.sort(key=lambda v: v.bit_rate, reverse=True)
-                
-                url = None
-                content_type = None
-                size = None
-                if len(variants):
-                    if len(variants) > 1:
-                        print('multiple qualifying variants (using first):')
-                        print(variants)
-                    variant = variants[0]
-                    
-                    url = variant.url
-                    content_type = variant.content_type
-                    size = int(v.duration_ms / 1000 * variant.bit_rate)
-                
-                public_metrics = None
-                if v.public_metrics and v.public_metrics.view_count:
-                    public_metrics = PublicMetrics(
-                        view_count = v.public_metrics.view_count
-                    )
-                
-                mi = MediaItem(
-                    media_key = v.media_key,
-                    type = 'video',
-                    preview_image_url = v.preview_image_url + '?name=tiny&format=webp',
-                    image_url = v.preview_image_url,
-                    width = v.width,
-                    height = v.height,
-                    url=url,
-                    content_type = content_type,
-                    duration_ms = v.duration_ms,
-                    size = size,
-                    public_metrics = public_metrics
-                    )
-                
-                return mi
-            
-            video_media = map(video_to_mi, videos)
-            
-            
-            
-            t = replace(t,
-                photos = list(photo_media),
-                videos = list(video_media)
-                )
-                
-        elif tweet.attachments and tweet.attachments.media_keys and not includes.media:
-            print('tweet had attachments and media keys, but no expansion media content was given')
-            print(tweet.attachments.media_keys)
-        
-    except:
-        # it seems like this comes when we have a retweeted tweet with media on it.
-        print('exception adding attachments to tweet:')
-        print(tweet)
-        print('view tweet:')
-        print(t)
-        print('included media:')
-        print(includes.media)
-        
-        raise 'exception adding attachments to tweet'
-        
-    
-    
-    try:
-        if quoted and len(quoted):
-            t = replace(t, quoted_tweet_id = quoted[0].id)
-            
-            quoted_tweets = list(filter(lambda t: t.id == quoted[0].id, includes.tweets))
-            
-            if len(quoted_tweets):
-                t = replace(t, quoted_tweet = tweet_model_dc_vm(includes, quoted_tweets[0], me))
-    except:
-        raise 'error adding quoted tweet'
-        
-    try:
-        if replied_to and len(replied_to) and includes.tweets:
-            t = replace(t, replied_tweet_id = replied_to[0].id)
-            
-            if reply_depth < 1:
-                
-                replied_tweets = list(filter(lambda t: t.id == replied_to[0].id, includes.tweets))
-                if len(replied_tweets):
-                    t = replace(t, replied_tweet = tweet_model_dc_vm(includes, replied_tweets[0], me, reply_depth=reply_depth + 1))
-                else:
-                    print("No replied tweet found (t={}, rep={})".format(t.id, t.replied_tweet_id))
-    except:
-        raise 'error adding replied_to tweet'
-    
-    return t
-
 def tweet_paginated_timeline ():
     return
 
@@ -929,10 +644,42 @@ def get_timeline_home_html (variant = "reverse_chronological", pagination_token=
 
 
 
-
-
 @twitter_app.route('/bookmarks.html', methods=['GET'])
-def get_bookmarks_html ():
+def get_bookmarks2_html ():
+    
+    user_id = g.twitter_user['id']
+    token = g.twitter_user['access_token']
+    
+    pagination_token = request.args.get('pagination_token')
+    max_results = int(request.args.get('limit', 10))
+    
+    collection_page = get_content(f'twitter:bookmarks:{user_id}', pagination_token=pagination_token, max_results=max_results)
+    tweets = collection_page.items
+    
+    next_token = collection_page.next_token
+    
+    query = {}
+    
+    if next_token:
+        query = {
+            **query,
+            
+            'next_data_url': url_for('.get_bookmarks2_html', user_id=user_id, pagination_token=next_token, limit=max_results),
+            'next_page_url': url_for('.get_bookmarks2_html', user_id=user_id, pagination_token=next_token, limit=max_results)
+        }
+    
+    user = {
+            'id': user_id
+        }
+    
+    
+    if 'HX-Request' in request.headers:
+        return render_template(f'partial/tweets-timeline{theme_variant}.html', user = user, tweets = tweets, query = query)
+    else:
+        return render_template(f'tweet-collection{theme_variant}.html', user = user, tweets = tweets, query = query)
+        
+#@twitter_app.route('/bookmarks.html', methods=['GET'])
+def get_bookmarks_old_html ():
     
     user_id = g.twitter_user['id']
     token = g.twitter_user['access_token']
@@ -972,18 +719,19 @@ def get_bookmarks_html ():
     
     
     if 'HX-Request' in request.headers:
-        return render_template('partial/tweets-timeline-bs.html', user = user, tweets = tweets, query = query)
+        return render_template(f'partial/tweets-timeline{theme_variant}.html', user = user, tweets = tweets, query = query)
     else:
-        return render_template('tweet-collection-bs.html', user = user, tweets = tweets, query = query)
-
-
+        return render_template(f'tweet-collection{theme_variant}.html', user = user, tweets = tweets, query = query)
 
+from hogumathi_app.content_system import get_content
 
 
 
 @twitter_app.route('/profile/<user_id>.html', methods=['GET'])
 def get_profile_html (user_id):
 
+    me = g.get('me')
+    
     if g.twitter_user:
         token = g.twitter_user['access_token']
         # issue: retweets don't come back if we request non_public_metrics
@@ -1000,39 +748,6 @@ def get_profile_html (user_id):
     
     
     
-    tweet_source = ApiV2TweetSource(token)
-    response_json = tweet_source.get_user_timeline(user_id,
-                                                    exclude_replies = exclude_replies == '1',
-                                                    exclude_retweets = exclude_retweets == '1',
-                                                    pagination_token = pagination_token,
-                                                    non_public_metrics = is_me,
-                                                    return_dataclass=True)
-    
-    if not response_json:
-        print('no response_json')
-        
-    if response_json.meta.result_count == 0:
-        print('no results')
-    
-    if not response_json.includes:
-        print(response_json)
-        print('no response_json.includes')
-    
-    if response_json.errors:
-        print('profile get_user_timeline errors:')
-        print(response_json.errors)
-    
-    ts = int(time.time() * 1000)
-    with open(f'{DATA_DIR}/cache/tl_{user_id}_{ts}_{pagination_token}.json', 'wt') as f:
-        f.write(json.dumps(cleandict(asdict(response_json))))
-    
-    if response_json.data:
-        tweets = list(map(lambda t: tweet_model_dc_vm(response_json.includes, t, g.me), response_json.data))
-    else:
-        tweets = []
-    
-    next_token = response_json.meta.next_token
-    
     query = cleandict({
         'pagination_token': pagination_token,
         'exclude_replies': exclude_replies,
@@ -1040,6 +755,11 @@ def get_profile_html (user_id):
         'format': output_format
     })
     
+    collection_page = get_content(f'twitter:feed:user:{user_id}', me=me, **query)
+    
+    tweets = collection_page.items
+    next_token = collection_page.next_token
+    
     if next_token:
         query = {
             **query,
@@ -1060,43 +780,45 @@ def get_profile_html (user_id):
         profile_user = {
             'id': user_id
         }
-        return render_template('partial/tweets-timeline-bs.html', user = profile_user, tweets = tweets, query = query)
+        return render_template(f'partial/tweets-timeline{theme_variant}.html', user = profile_user, tweets = tweets, query = query)
     else:
         # FIXME the user is probably present in the tweet expansions info.
         
-        social_graph = TwitterApiV2SocialGraph(token)
-        users_response = social_graph.get_user(user_id)
+        #social_graph = TwitterApiV2SocialGraph(token)
+        #users_response = social_graph.get_user(user_id)
+        
+        #print(users_response)
         
-        print(users_response)
+        #user = users_response['data'][0]
         
-        user = users_response['data'][0]
+        user = get_content(f'twitter:user:{user_id}', me=me)
         
-        title = f'{user["name"]} ({user["username"]})'
+        title = f'{user.name} ({user.username})'
         
         # FIXME official Twitter or owner's instance?
-        source_url = f'https://www.twitter.com/{user["username"]}'
+        source_url = f'https://www.twitter.com/{user.username}'
         
         opengraph_info = dict(
             type = 'webpage', # threads might be article
             url = source_url,
             title = title,
-            description = user['description'],
-            image = user['profile_image_url']
+            description = user.description,
+            image = user.avatar_image_url
         )
 
         page_nav = [
             dict(
-                href = url_for('twitter_v2_facade.get_profile_html', user_id=user['id']),
+                href = url_for('twitter_v2_facade.get_profile_html', user_id=user.id),
                 label = 'Timeline',
                 order = 10,
             ),
             dict (
-                href = url_for('twitter_v2_facade.get_following_html', user_id=user['id']),
+                href = url_for('twitter_v2_facade.get_following_html', user_id=user.id),
                 label = 'Following',
                 order = 40,
             ),
             dict (
-                href = url_for('twitter_v2_facade.get_followers_html', user_id=user['id']),
+                href = url_for('twitter_v2_facade.get_followers_html', user_id=user.id),
                 label = 'Followers',
                 order = 50,
             )
@@ -1116,17 +838,17 @@ def get_profile_html (user_id):
         if g.twitter_live_enabled:
             page_nav += [
                 dict(
-                    href = url_for('twitter_v2_live_facade.get_likes_html', user_id=user['id']),
+                    href = url_for('twitter_v2_live_facade.get_likes_html', user_id=user.id),
                     label = 'Likes',
                     order = 20,
                 ),
                 dict (
-                    href = url_for('twitter_v2_live_facade.get_mentions_html', user_id=user['id']),
+                    href = url_for('twitter_v2_live_facade.get_mentions_html', user_id=user.id),
                     label = 'Mentions',
                     order = 30,
                 ),
                 dict (
-                    href = url_for('twitter_v2_live_facade.get_user_activity_html', user_id=user['id']),
+                    href = url_for('twitter_v2_live_facade.get_user_activity_html', user_id=user.id),
                     label = 'Activity',
                     order = 60,
                 )
@@ -1134,9 +856,10 @@ def get_profile_html (user_id):
             
         top8 = get_top8(user_id)
         
+        brand = None
         brand_info = {}
         if g.twitter_live_enabled:
-            brand = find_brand_by_account(f'twitter:{user_id}')
+            brand = get_content(f'brand:search:account:twitter:{user_id}', expand=False)
             
             if brand:
                 page_nav += [
@@ -1146,11 +869,19 @@ def get_profile_html (user_id):
                         order = 5000,
                     )
                 ]
-               
-                brand_info = fetch_brand_info(brand)
-                brand_info.update({'brand': brand, 'twitter': None})
-        
-        return render_template('user-profile-bs.html', user = user, tweets = tweets, query = query, opengraph_info=opengraph_info, page_nav = page_nav, top8=top8, **brand_info)
+                brand_info = brand.get('expanded', {})
+        
+        return render_template(f'user-profile{theme_variant}.html',
+            user = user.raw_user,
+            user_dc = user,
+            tweets = tweets,
+            query = query,
+            opengraph_info=opengraph_info,
+            page_nav = page_nav,
+            top8=top8,
+            brand=brand,
+            **brand_info
+            )
 
 
 
@@ -1263,7 +994,7 @@ def get_nav_items ():
             order = 0
             ),
         dict (
-            href = url_for('twitter_v2_facade.get_bookmarks_html'),
+            href = url_for('twitter_v2_facade.get_bookmarks2_html'),
             label = 'Bookmarks',
             order = 100
         ),

+ 0 - 0
oauth2_login.py → extensions/twitter_v2_facade/oauth2_login.py


+ 303 - 0
extensions/twitter_v2_facade/view_model.py

@@ -0,0 +1,303 @@
+from dataclasses import replace
+
+from flask import g, request
+
+from twitter_v2.types import Tweet, TweetExpansions
+
+from hogumathi_app.view_model import FeedServiceUser, FeedItem, FeedItemAction, CollectionPage, PublicMetrics, Card, MediaItem
+
+from . import oauth2_login
+
+url_for = oauth2_login.url_for_with_me
+
+def user_model_dc (user):
+    
+    fsu = FeedServiceUser(
+        id = user.id,
+        name = user.name,
+        username = user.username,
+        created_at = user.created_at,
+        description = user.description,
+        preview_image_url = user.profile_image_url,
+        website = user.url,
+        is_verified = user.verified,
+        is_protected = user.protected,
+        location = user.location,
+        
+        url = url_for('twitter_v2_facade.get_profile_html', user_id=user.id),
+        source_url = f'https://twitter.com/{user.username}',
+        
+        raw_user = user
+    )
+    
+    return fsu
+
+
+def tweet_model_dc_vm (includes: TweetExpansions, tweet: Tweet, me, my_url_for=url_for, reply_depth=0, expand_path=None) -> FeedItem:
+    
+    # retweeted_by, avi_icon_url, display_name, handle, created_at, text
+    
+    
+    user = list(filter(lambda u: u.id == tweet.author_id, includes.users))[0]
+    
+    published_by = user_model_dc(user)
+    
+    url = my_url_for('twitter_v2_facade.get_tweet_html', tweet_id=tweet.id, view='tweet')
+    source_url = 'https://twitter.com/{}/status/{}'.format(user.username, tweet.id)
+    
+    avi_icon_url = url_for('get_image', url=user.profile_image_url)
+    
+    retweet_of = None
+    quoted = None
+    replied_to = None
+    
+    if tweet.referenced_tweets:
+        retweet_of = list(filter(lambda r: r.type == 'retweeted', tweet.referenced_tweets))
+        quoted = list(filter(lambda r: r.type == 'quoted', tweet.referenced_tweets))
+        replied_to = list(filter(lambda r: r.type == 'replied_to', tweet.referenced_tweets))
+    
+    if reply_depth:
+        if expand_path:
+            expand_path += f',{tweet.id}'
+        else:
+            expand_path = tweet.id
+    
+    actions = {
+        'view_replies': FeedItemAction('twitter_v2_facade.get_tweet_html', {'tweet_id': tweet.conversation_id, 'view': 'replies', 'expand': expand_path}),
+        
+        'view_thread': FeedItemAction('twitter_v2_facade.get_tweet_html', {'tweet_id': tweet.conversation_id, 'view': 'thread'}),
+        'view_conversation': FeedItemAction('twitter_v2_facade.get_tweet_html', {'tweet_id': tweet.conversation_id, 'view': 'conversation'}),
+    }
+    
+    if reply_depth:
+        vr = actions['view_replies']
+        url = url_for(vr.route, **vr.route_params)
+    
+    if g.get('twitter_user'):
+        actions.update(
+            bookmark = FeedItemAction('twitter_v2_facade.post_tweet_bookmark', {'tweet_id': tweet.id}),
+            delete_bookmark = FeedItemAction('twitter_v2_facade.delete_tweet_bookmark', {'tweet_id': tweet.id}),
+            
+            retweet = FeedItemAction('twitter_v2_facade.post_tweet_retweet', {'tweet_id': tweet.id})
+            )
+    
+    if g.twitter_live_enabled:
+        actions.update(
+            view_activity = FeedItemAction('twitter_v2_live_facade.get_tweet_activity_html', {'tweet_id': tweet.id})
+            )
+    
+    t = FeedItem(
+        id = tweet.id,
+        text = tweet.text,
+        created_at = tweet.created_at,
+        published_by = published_by,
+        author_is_verified = user.verified,
+        url = url,
+        
+        conversation_id = tweet.conversation_id,
+        
+        avi_icon_url = avi_icon_url,
+        
+        display_name = user.name,
+        handle = user.username,
+        
+        author_url = my_url_for('twitter_v2_facade.get_profile_html', user_id=user.id),
+        author_id = user.id,
+        
+        source_url = source_url,
+        source_author_url = 'https://twitter.com/{}'.format(user.username),
+        #'is_edited': len(tweet['edit_history_tweet_ids']) > 1
+        
+        actions = actions,
+    )
+    
+    if reply_depth:
+        t = replace(t, reply_depth = reply_depth)
+    
+    # HACK we should not refer to the request directly...
+    if request and request.args.get('marked_reply') == str(t.id):
+        t = replace(t, is_marked = True)
+    
+    # This is where we should put "is_bookmark", "is_liked", "is_in_collection", etc...
+    
+    if tweet.entities:
+        if tweet.entities.urls:
+            urls = list(filter(lambda u: u.title and u.description, tweet.entities.urls))
+            
+            if len(urls):
+                url = urls[0]
+                card = Card(
+                    display_url = url.display_url.split('/')[0],
+                    source_url = url.unwound_url,
+                    content = url.description,
+                    title = url.title
+                )
+                
+                if url.images:
+                    print(url.images)
+                    card = replace(card, 
+                        preview_image_url = url_for('get_image', url=url.images[1].url),
+                        image_url = url_for('get_image', url=url.images[0].url)
+                        )
+                
+                t = replace(t, card = card)
+    
+    if tweet.public_metrics:
+        public_metrics = PublicMetrics(
+            reply_count = tweet.public_metrics.reply_count,
+            quote_count = tweet.public_metrics.quote_count,
+            retweet_count = tweet.public_metrics.retweet_count,
+            like_count = tweet.public_metrics.like_count
+            )
+        
+        t = replace(t, public_metrics = public_metrics)
+    
+    if tweet.non_public_metrics:
+        non_public_metrics = NonPublicMetrics(
+            impression_count = tweet.non_public_metrics.impression_count,
+            user_profile_clicks = tweet.non_public_metrics.user_profile_clicks,
+            url_link_clicks = tweet.non_public_metrics.url_link_clicks
+            )
+        
+        t = replace(t, non_public_metrics = non_public_metrics)
+    
+    if retweet_of and len(retweet_of):
+        print('found retweet_of')
+        t = replace(t, retweeted_tweet_id = retweet_of[0].id)
+        
+        retweeted_tweet:Tweet = list(filter(lambda t: t.id == retweet_of[0].id, includes.tweets))[0]
+        
+        rt = tweet_model_dc_vm(includes, retweeted_tweet, me)
+        
+        t = replace(rt,
+            retweeted_tweet_id = retweet_of[0].id,
+            source_retweeted_by_url = 'https://twitter.com/{}'.format(user.username),
+            retweeted_by = user.name,
+            retweeted_by_url = url_for('.get_profile_html', user_id=user.id)
+            )
+    
+    
+    try:
+        if tweet.attachments and tweet.attachments.media_keys and includes.media:
+            
+            media_keys = tweet.attachments.media_keys
+            
+            def first_media (mk):
+                medias = list(filter(lambda m: m.media_key == mk, includes.media))
+                if len(medias):
+                    return medias[0]
+                return None
+            
+            media = list(filter(lambda m: m != None, map(first_media, media_keys)))
+            
+            photos = filter(lambda m: m.type == 'photo', media)
+            videos = filter(lambda m: m.type == 'video', media)
+            
+            photo_media = map(lambda p: MediaItem(
+                media_key = p.media_key,
+                type = 'photo',
+                preview_image_url = url_for('get_image', url=p.url + '?name=tiny&format=webp'),
+                url = url_for('get_image', url=p.url),
+                width = p.width, 
+                height = p.height
+                ), photos)
+            
+            def video_to_mi (v):
+                use_hls = False # mainly iOS
+                max_bitrate = 100000000
+                
+                if use_hls:
+                    variants = list(filter(lambda var: var.content_type == 'application/x-mpegURL'))
+                else:
+                    
+                    variants = list(filter(lambda var: var.content_type != 'application/x-mpegURL' and var.bit_rate <= max_bitrate, v.variants))
+                
+                variants.sort(key=lambda v: v.bit_rate, reverse=True)
+                
+                url = None
+                content_type = None
+                size = None
+                if len(variants):
+                    if len(variants) > 1:
+                        print('multiple qualifying variants (using first):')
+                        print(variants)
+                    variant = variants[0]
+                    
+                    url = url_for('get_image', url=variant.url)
+                    content_type = variant.content_type
+                    size = int(v.duration_ms / 1000 * variant.bit_rate)
+                
+                public_metrics = None
+                if v.public_metrics and v.public_metrics.view_count:
+                    public_metrics = PublicMetrics(
+                        view_count = v.public_metrics.view_count
+                    )
+                
+                mi = MediaItem(
+                    media_key = v.media_key,
+                    type = 'video',
+                    preview_image_url = url_for('get_image', url=v.preview_image_url + '?name=tiny&format=webp'),
+                    image_url = url_for('get_image', url=v.preview_image_url),
+                    width = v.width,
+                    height = v.height,
+                    url=url,
+                    content_type = content_type,
+                    duration_ms = v.duration_ms,
+                    size = size,
+                    public_metrics = public_metrics
+                    )
+                
+                return mi
+            
+            video_media = map(video_to_mi, videos)
+            
+            
+            
+            t = replace(t,
+                photos = list(photo_media),
+                videos = list(video_media)
+                )
+                
+        elif tweet.attachments and tweet.attachments.media_keys and not includes.media:
+            print('tweet had attachments and media keys, but no expansion media content was given')
+            print(tweet.attachments.media_keys)
+        
+    except:
+        # it seems like this comes when we have a retweeted tweet with media on it.
+        print('exception adding attachments to tweet:')
+        print(tweet)
+        print('view tweet:')
+        print(t)
+        print('included media:')
+        print(includes.media)
+        
+        raise 'exception adding attachments to tweet'
+        
+    
+    
+    try:
+        if quoted and len(quoted):
+            t = replace(t, quoted_tweet_id = quoted[0].id)
+            
+            quoted_tweets = list(filter(lambda t: t.id == quoted[0].id, includes.tweets))
+            
+            if len(quoted_tweets):
+                t = replace(t, quoted_tweet = tweet_model_dc_vm(includes, quoted_tweets[0], me))
+    except:
+        raise 'error adding quoted tweet'
+        
+    try:
+        if replied_to and len(replied_to) and includes.tweets:
+            t = replace(t, replied_tweet_id = replied_to[0].id)
+            
+            if reply_depth < 1:
+                
+                replied_tweets = list(filter(lambda t: t.id == replied_to[0].id, includes.tweets))
+                if len(replied_tweets):
+                    t = replace(t, replied_tweet = tweet_model_dc_vm(includes, replied_tweets[0], me, reply_depth=reply_depth + 1))
+                else:
+                    print("No replied tweet found (t={}, rep={})".format(t.id, t.replied_tweet_id))
+    except:
+        raise 'error adding replied_to tweet'
+    
+    return t

+ 10 - 0
hogumathi_app/__init__.py

@@ -0,0 +1,10 @@
+import sys
+
+from dotenv import load_dotenv
+
+load_dotenv()
+
+sys.path.append('.data/lib')
+sys.path.append('./lib')
+sys.path.append('.data/extensions')
+sys.path.append('./extensions')

+ 76 - 9
hogumathi_app.py → hogumathi_app/__main__.py

@@ -2,20 +2,27 @@ import os
 import sys
 from importlib.util import find_spec
 from configparser import ConfigParser
+from hashlib import sha256
+import json
 
-from flask import Flask, g, redirect, url_for, render_template, jsonify
-from flask_cors import CORS
-
-from dotenv import load_dotenv
+import requests
 
-load_dotenv()
+from flask import Flask, g, redirect, url_for, render_template, jsonify, request, send_from_directory
+from flask_cors import CORS
 
-sys.path.append('.data/extensions')
+from .content_system import get_content
+from .item_collections import item_collections_bp
 
+theme_bootstrap5_enabled = False
+if find_spec('theme_bootstrap5'):
+    from theme_bootstrap5 import hogumathi_theme_bootstrap5_bp
+    theme_bootstrap5_enabled = True
+    
 if find_spec('twitter_v2_facade'):
     # FIXME get_brand needs a refactor
+    import twitter_v2_facade
     from twitter_v2_facade import twitter_app as twitter_v2
-    import oauth2_login
+    from twitter_v2_facade import oauth2_login
     twitter_enabled = True
     
 else:
@@ -24,9 +31,9 @@ else:
 
 if find_spec('twitter_v2_live_facade'):
     from twitter_v2_live_facade import twitter_app as twitter_v2_live
-    import oauth2_login
     
-    from item_collections import item_collections_bp
+    
+    import brands
     from brands import brands_bp, get_brand
     
     twitter_live_enabled = True
@@ -157,6 +164,9 @@ if __name__ == '__main__':
             g.videos_app_url = videos_app_url
         if messages_app_url:
             g.messages_app_url = messages_app_url
+            
+        if theme_bootstrap5_enabled:
+            g.theme_bootstrap5_enabled = theme_bootstrap5_enabled
     
     
     @api.context_processor
@@ -176,6 +186,8 @@ if __name__ == '__main__':
         
         config['videojs_enabled'] = videojs_enabled
         config['visjs_enabled'] = visjs_enabled
+        
+        config['theme_bootstrap5_enabled'] = theme_bootstrap5_enabled
 
         if notes_app_url:
             config['notes_app_url'] = notes_app_url
@@ -217,12 +229,16 @@ if __name__ == '__main__':
     
     api.config['TEMPLATES_AUTO_RELOAD'] = True
     
+    if theme_bootstrap5_enabled:
+        api.register_blueprint(hogumathi_theme_bootstrap5_bp)
+    
     if videojs_enabled:
         api.register_blueprint(videojs_bp, url_prefix='/lib/videojs')
         
     if visjs_enabled:
         api.register_blueprint(visjs_bp, url_prefix='/lib/visjs')
 
+    twitter_v2_facade.register_content_sources()
     api.register_blueprint(twitter_v2, url_prefix='/twitter')
     
     if archive_enabled:
@@ -244,6 +260,8 @@ if __name__ == '__main__':
         api.register_blueprint(messages, url_prefix='/messages')
         
     if twitter_live_enabled:
+        brands.register_content_sources()
+        
         api.register_blueprint(twitter_v2_live, url_prefix='/twitter-live')
         api.register_blueprint(item_collections_bp, url_prefix='/collections')
         api.register_blueprint(brands_bp, url_prefix='/')
@@ -265,5 +283,54 @@ if __name__ == '__main__':
     def index ():
         return redirect(url_for('.get_login_html'))
     
+    @api.get('/img')
+    def get_image ():
+        url = request.args['url']
+        url_hash = sha256(url.encode('utf-8')).hexdigest()
+        path = f'.data/cache/media/{url_hash}'
+        
+        if not os.path.exists(path):
+            resp = requests.get(url)
+            if resp.status_code >= 200 and resp.status_code < 300:
+                with open(path, 'wb') as f:
+                    f.write(resp.content)
+                with open(f'{path}.meta', 'w') as f:
+                    headers = dict(resp.headers)
+                    json.dump(headers, f)
+            else:
+                return 'not found.', 404
+                
+        with open(f'{path}.meta', 'r') as f: 
+            headers = json.load(f)
+        
+        #print(url)
+        #print(url_hash)
+        #print(headers)
         
+        # not sure why some responses use lower case.
+        mimetype = headers.get('Content-Type') or headers.get('content-type')
+        
+        return send_from_directory('.data/cache/media', url_hash, mimetype=mimetype)
+    
+    @api.get('/content/abc123.html')
+    def get_abc123_html ():
+
+        return 'abc123'
+    
+    @api.get('/content/<content_id>.html')
+    def get_content_html (content_id, content_kwargs=None):
+        
+        if not content_kwargs:
+            content_kwargs = filter(lambda e: e[0].startswith('content:'), request.args.items())
+            content_kwargs = dict(map(lambda e: [e[0][len('content:'):], e[1]], content_kwargs))
+        
+        content = get_content(content_id, **content_kwargs)
+        
+        return jsonify(content)
+    
+    @api.get('/content/def456.html')
+    def get_def456_html ():
+
+        return get_content_html('brand:ispoogedaily')
+    
     api.run(port=PORT, host=HOST)

+ 163 - 0
hogumathi_app/content_system.py

@@ -0,0 +1,163 @@
+"""
+
+A registry for content sources that work in terms of the View Model (view_model.py).
+
+Generally a source returns a CollectionPage or individual items.
+
+At present many sources return a List of Maps because the design is being discovered and solidified as it makes sense rather than big design up front.
+
+May end up similar to Android's ContentProvider, found later. I was 
+thinking about using content:// URI scheme.
+
+https://developer.android.com/reference/android/content/ContentProvider
+
+Could also be similar to a Coccoon Generator
+
+https://cocoon.apache.org/1363_1_1.html
+
+Later processing in Python:
+
+https://www.innuy.com/blog/build-data-pipeline-python/
+
+https://www.bonobo-project.org/
+
+"""
+
+import re
+import inspect
+
+content_sources = {}
+
+hooks = {}
+
+def register_content_source (id_prefix, content_source_fn, id_pattern='(\d+)', source_id=None):
+    if not source_id:
+        source_id=f'{inspect.getmodule(content_source_fn).__name__}:{content_source_fn.__name__}'
+    
+    print(f'register_content_source: {id_prefix}: {source_id} with ID pattern {id_pattern}')
+
+    content_sources[ id_prefix ] = [content_source_fn, id_pattern, source_id]
+
+
+def find_content_id_args (id_pattern, content_id):
+    id_args = re.fullmatch(id_pattern, content_id)
+    if not id_args:
+        return [], {}
+    
+    args = []
+    kwargs = id_args.groupdict()
+    if not kwargs:
+        args = id_args.groups()
+    
+    return args, kwargs
+    
+def get_content (content_id, *extra_args, **extra_kwargs):
+    id_prefixes = list(content_sources.keys())
+    id_prefixes.sort(key=lambda id_prefix: len(id_prefix), reverse=True)
+    
+    for id_prefix in id_prefixes:
+        [content_source_fn, id_pattern, source_id] = content_sources[ id_prefix ]
+        if not content_id.startswith(id_prefix):
+            continue
+        
+        source_content_id = content_id[len(id_prefix):]
+        
+        print(f'get_content {content_id} from source {source_id}, resolves to {source_content_id}')
+        
+        args, kwargs = find_content_id_args(id_pattern, source_content_id)
+        
+        if id_prefix.endswith(':') and not args and not kwargs:
+            continue
+        
+        if extra_args:
+            args += extra_args
+        
+        if extra_kwargs:
+            kwargs = {**extra_kwargs, **kwargs}
+        
+        content = content_source_fn(*args, **kwargs)
+        
+        if content:
+            invoke_hooks('got_content', content_id, content)
+            
+            return content
+
+def get_all_content (content_ids):
+    """
+    Get content from all sources, using a grouping call if possible.
+    
+    Returns a map of source_id to to result; the caller needs
+    to have the intelligence to merge and paginate.
+    
+    Native implementation is to juse make one call to get_content per ID,
+    but we need to figure out a way to pass a list of IDs and pagination
+    per source; for exampe a list of 100+ Tweet IDs and 100+ YT videos
+    from a Swipe file.
+    """
+    
+    return get_all_content2(content_ids)
+    
+def get_all_content2 (content_collection_ids, content_args = None, max_results = None):
+    """
+    Takes a list of collection IDs and content_args is a map of (args, kwargs) keyed by collection ID.
+    
+    We could just use keys from content_args with empty values but that's a little confusing.
+    
+    Interleaving the next page of a source into existing results is a problem.
+    
+    Gracefully degraded could simply get the next page at the end of all pages and then
+    view older content.
+    
+    We also need intelligence about content types, meaning perhaps some lambdas pass in.
+    Eg. CollectionPage.
+    
+    See feeds facade for an example of merging one page.
+    
+    Seems like keeping feed items in a DB is becoming the way to go, serving things in order.
+    
+    Client side content merging might work to insert nodes above, eg. HTMx.
+    
+    Might be jarring to reader, so make optional. Append all new or merge.
+    
+    Cache feed between requests on disk, merge in memory, send merge/append result.
+    
+    """
+    
+    result = {}
+    
+    for content_id in content_collection_ids:
+        if content_args and content_id in content_args:
+            extra_args, extra_kwargs = content_args[content_id]
+            
+        result[ content_id ] = get_content(content_id, *extra_args, **extra_kwargs)
+    
+    return result
+
+def register_hook (hook_type, hook_fn, *extra_args, **extra_kwargs):
+    if not hook_type in hooks:
+        hooks[hook_type] = []
+    
+    hooks[hook_type].append([hook_fn, extra_args, extra_kwargs])
+
+
+def invoke_hooks (hook_type, *args, **kwargs):
+    if not hook_type in hooks:
+        return
+    
+    for hook, extra_args, extra_kwargs in hooks[hook_type]:
+        hook_args = args
+        hook_kwargs = kwargs
+        if extra_args:
+            hook_args = args + extra_args
+        if extra_kwargs:
+            hook_kwargs = {**extra_kwargs, **hook_kwargs}
+            
+        hook(*hook_args, **hook_kwargs)
+        
+        #try:
+        #    hook(*args, **kwargs)
+        #except TypeError as e:
+        #    print ('tried to call a hook with wrong args. no problem')
+        #    continue
+            
+            

+ 112 - 3
item_collections.py → hogumathi_app/item_collections.py

@@ -8,12 +8,14 @@ import json
 
 from flask import request, g, jsonify, render_template,  Blueprint, url_for, session
 
-from tweet_source import ApiV2TweetSource
-from view_model import FeedItem, cleandict
+from twitter_v2.api import ApiV2TweetSource
+from .view_model import FeedItem, cleandict
+
+from .content_system import get_all_content, register_content_source
 
 twitter_enabled = False
 if find_spec('twitter_v2_facade'):
-    from twitter_v2_facade import tweet_model_dc_vm
+    from twitter_v2_facade.view_model import tweet_model_dc_vm
     twitter_enabled = True
     
 youtube_enabled = False
@@ -267,3 +269,110 @@ def post_data_collection_create_from_cards ():
     }
     
     return jsonify(collection)
+
+
+
+def expand_item2 (item, me, tweet_contents = None, includes = None, youtube_contents = None):
+    if 'id' in item:
+        tweets_response = tweet_contents[ 'twitter:tweet:' + item['id'] ]
+        tweets = tweets_response.items
+        
+        t = list(filter(lambda t: item['id'] == t.id, tweets))
+        
+        if not len(t):
+            print("no tweet for item: " + item['id'])
+            feed_item = FeedItem(
+                id = item['id'],
+                text = "(Deleted, suspended or blocked)",
+                created_at = "",
+                handle = "error",
+                display_name = "Error"
+            )
+            # FIXME 1) put this in relative order to the collection
+            # FIXME 2) we can use the tweet link to get the user ID...
+            
+        else:
+            feed_item = t[0]
+
+            note = item.get('note')
+            feed_item = replace(feed_item, note = note)
+            
+    elif 'yt_id' in item:
+        yt_id = item['yt_id']
+        
+        yt_videos = youtube_contents[ 'youtube:video:' + yt_id ]
+        
+        feed_item = list(filter(lambda v: v['id'] == yt_id, yt_videos))[0]
+        
+        note = item.get('note')
+        feed_item.update({'note': note})
+    
+        
+    
+    return feed_item
+
+
+def get_collection (collection_id, pagination_token=None, max_results=10):
+    collection = get_tweet_collection(collection_id)
+    
+    return collection
+
+register_content_source("collection:", get_collection, id_pattern="([^:]+)")
+
+# pagination token is the next tweet_ID
+@item_collections_bp.get('/collection2/<collection_id>.html')
+def get_collection2_html (collection_id):
+    me = request.args.get('me')
+    acct = session.get(me)
+    
+    max_results = int(request.args.get('max_results', 10))
+    
+    pagination_token = int(request.args.get('pagination_token', 0))
+    
+    #collection = get_tweet_collection(collection_id)
+    collection = get_content(f'collection:{collection_id}',
+        pagination_token=pagination_token,
+        max_results=max_results)
+    
+    if 'authorized_users' in collection and (not acct or not me in collection['authorized_users']):
+        return 'access denied.', 403
+    
+    items = collection['items'][pagination_token:(pagination_token + max_results)]
+    
+    if not len(items):
+        return 'no tweets', 404
+    
+    tweet_ids = filter(lambda i: 'id' in i, items)
+    tweet_ids = list(map(lambda item: 'twitter:tweet:' + item['id'], tweet_ids))
+    
+    tweet_contents = get_all_content( tweet_ids )
+    
+    
+    yt_ids = filter(lambda i: 'yt_id' in i, items)
+    yt_ids = list(map(lambda item: 'youtube:video:' + item['yt_id'], yt_ids))
+    
+    youtube_contents = get_all_content( yt_ids )
+    
+    
+    includes = None
+    
+    feed_items = list(map(lambda item: expand_item2(item, me, tweet_contents, includes, youtube_contents), items))
+    
+    if request.args.get('format') == 'json':
+        return jsonify({'ids': tweet_ids,
+                       'tweets': cleandict(asdict(tweets_response)),
+                       'feed_items': feed_items,
+                       'items': items,
+                       'pagination_token': pagination_token})
+    else:
+        query = {}
+        
+        if pagination_token:
+            query['next_data_url'] = url_for('.get_collection_html', collection_id=collection_id, pagination_token=pagination_token)
+        
+        if 'HX-Request' in request.headers:
+            return render_template('partial/tweets-timeline.html', tweets = feed_items, user = {}, query = query)
+        else:
+            if pagination_token:
+                query['next_page_url'] = url_for('.get_collection_html', collection_id=collection_id, pagination_token=pagination_token)
+            return render_template('tweet-collection.html', tweets = feed_items, user = {}, query = query)

+ 0 - 0
static/fake-tweet-activity.png → hogumathi_app/static/fake-tweet-activity.png


+ 0 - 0
static/htmx.js → hogumathi_app/static/htmx.js


+ 0 - 0
static/img/brand/ispoogedaily_logo.jpg → hogumathi_app/static/img/brand/ispoogedaily_logo.jpg


+ 0 - 0
static/sweetalert2.js → hogumathi_app/static/sweetalert2.js


+ 0 - 0
static/tachyons.min.css → hogumathi_app/static/tachyons.min.css


+ 0 - 0
static/theme/base.css → hogumathi_app/static/theme/base.css


+ 0 - 0
static/theme/user-14520320.css → hogumathi_app/static/theme/user-14520320.css


+ 0 - 0
static/tweets-ui.js → hogumathi_app/static/tweets-ui.js


+ 0 - 0
templates/base.html → hogumathi_app/templates/base.html


+ 0 - 0
templates/brand-page.html → hogumathi_app/templates/brand-page.html


+ 0 - 0
templates/conversations.html → hogumathi_app/templates/conversations.html


+ 0 - 0
templates/dual-collection.html → hogumathi_app/templates/dual-collection.html


+ 0 - 0
templates/followers.html → hogumathi_app/templates/followers.html


+ 0 - 0
templates/following.html → hogumathi_app/templates/following.html


+ 0 - 0
templates/login.html → hogumathi_app/templates/login.html


+ 0 - 0
templates/partial/brand-info-bs.html → hogumathi_app/templates/partial/brand-info-bs.html


+ 0 - 0
templates/partial/brand-info.html → hogumathi_app/templates/partial/brand-info.html


+ 0 - 0
templates/partial/compose-form.html → hogumathi_app/templates/partial/compose-form.html


+ 0 - 0
templates/partial/media-upload-form.html → hogumathi_app/templates/partial/media-upload-form.html


+ 0 - 0
templates/partial/page-nav-bs.html → hogumathi_app/templates/partial/page-nav-bs.html


+ 0 - 0
templates/partial/page-nav.html → hogumathi_app/templates/partial/page-nav.html


+ 12 - 5
templates/partial/timeline-tweet-bs.html → hogumathi_app/templates/partial/timeline-tweet-bs.html

@@ -115,11 +115,18 @@
 		{% if tweet.card %}
 		
 
-		<div class="card-box">
-		
-			<p><a href="{{ tweet.card.source_url }}">{{ tweet.card.display_url }}</a></p>
-			<p><strong>{{ tweet.card.title }}</strong></p>
-			<p>{{ tweet.card.content }}</p>
+		<div class="card-box d-flex">
+			{% if tweet.card.preview_image_url %}
+			<img
+				class="me-1"
+				style=" max-height: 150px; max-width: 150px;"
+				src="{{ tweet.card.preview_image_url }}">
+			{% endif %}
+			<div class="d-flex flex-column">
+				<span><a href="{{ tweet.card.source_url }}">{{ tweet.card.display_url }}</a></span>
+				<span><strong>{{ tweet.card.title }}</strong></span>
+				<p>{{ tweet.card.content }}</p>
+			</div>
 		</div>
 		{% endif %}
 		

+ 14 - 5
templates/partial/timeline-tweet.html → hogumathi_app/templates/partial/timeline-tweet.html

@@ -69,7 +69,7 @@
 	<p class="w-100">
 		<ul>
 		{% for photo in tweet.photos %}
-			<li><img loading="lazy" class="w-100" src="{{ photo.preview_image_url }}" crossorigin="" referrerpolicy="no-referrer" onclick="this.src='{{ photo.url }}'"></li>
+			<li><img loading="lazy" class="w-100" src="{{ photo.preview_image_url }}" crossorigin="" referrerpolicy="no-referrer" onclick="this.src='{{ photo.url }}'" style="max-height: {{ photo.height }};""></li>
 		{% endfor %}
 		</ul>
 
@@ -92,6 +92,8 @@
 				   {% if video.url %}
 				   ondblclick="swapVideoPlayer(this, '{{ video.url }}', '{{ video.content_type }}')"
 				   {% endif %}
+				   
+				   style="max-height: {{ video.height }};"
 				   >
 				   
 				   <dl>
@@ -122,10 +124,17 @@
 		
 
 		<div class="card-box w-100">
-		
-			<p><a href="{{ tweet.card.source_url }}">{{ tweet.card.display_url }}</a></p>
-			<p><strong>{{ tweet.card.title }}</strong></p>
-			<p>{{ tweet.card.content }}</p>
+			<div style="display: flex; flex-direction: row;">
+				{% if tweet.card.preview_image_url %}
+				<img style="margin-right: 4px; max-height: 150px; max-width: 150px;" src="{{ tweet.card.preview_image_url }}">
+				{% endif %}
+				
+				<div style="display: flex; flex-direction: column">
+					<span><a href="{{ tweet.card.source_url }}">{{ tweet.card.display_url }}</a></span>
+					<span><strong>{{ tweet.card.title }}</strong></span>
+					<p>{{ tweet.card.content }}</p>
+				</div>
+			</div>
 		</div>
 		{% endif %}
 		

+ 0 - 0
templates/partial/tweet-thread-children.html → hogumathi_app/templates/partial/tweet-thread-children.html


+ 0 - 0
templates/partial/tweet-thread-item.html → hogumathi_app/templates/partial/tweet-thread-item.html


+ 0 - 0
templates/partial/tweets-carousel.html → hogumathi_app/templates/partial/tweets-carousel.html


+ 0 - 0
templates/partial/tweets-timeline-bs.html → hogumathi_app/templates/partial/tweets-timeline-bs.html


+ 0 - 0
templates/partial/tweets-timeline.html → hogumathi_app/templates/partial/tweets-timeline.html


+ 2 - 2
templates/partial/user-card-bs.html → hogumathi_app/templates/partial/user-card-bs.html

@@ -58,9 +58,9 @@
 		<dd>{{ user.created_at }}</dd>
 		{% endif %}
 		
-		{% if user.website %}
+		{% if user_dc and user_dc.website %}
 		<dt>Website</dt>
-		<dd><a href="{{ user.website }}">{{ user.website }}</a></dd>
+		<dd><a href="{{ user_dc.website }}">{{ user_dc.website }}</a></dd>
 		{% endif %}
 		
 		{% if user.location %}

+ 0 - 0
templates/partial/user-card.html → hogumathi_app/templates/partial/user-card.html


+ 0 - 0
templates/partial/user-picker.html → hogumathi_app/templates/partial/user-picker.html


+ 0 - 0
templates/partial/users-list.html → hogumathi_app/templates/partial/users-list.html


+ 0 - 0
templates/search.html → hogumathi_app/templates/search.html


+ 0 - 0
templates/tweet-collection.html → hogumathi_app/templates/tweet-collection.html


+ 0 - 0
templates/tweet-thread.html → hogumathi_app/templates/tweet-thread.html


+ 0 - 0
templates/user-profile.html → hogumathi_app/templates/user-profile.html


+ 0 - 0
templates/youtube-channel.html → hogumathi_app/templates/youtube-channel.html


+ 32 - 1
view_model.py → hogumathi_app/view_model.py

@@ -1,3 +1,7 @@
+"""
+    Implementation of the syndication taxonomy in architecture.md
+"""
+
 from dataclasses import dataclass, asdict, replace
 from typing import List, Dict, Optional, Tuple
 
@@ -49,6 +53,8 @@ class Card:
     source_url: Optional[str] = None
     content: Optional[str] = None
     title: Optional[str] = None
+    preview_image_url: Optional[str] = None
+    image_url: Optional[str] = None
 
 
 @dataclass
@@ -92,6 +98,8 @@ class FeedItem:
     display_name: str
     handle: str
     
+    published_by: Optional['FeedServiceUser'] = None
+    
     text: Optional[str] = None
     html: Optional[str] = None
     
@@ -167,15 +175,22 @@ class FeedServiceUser:
     name: str # display_name
     username: str # handle
     
+    is_verified: Optional[bool] = None
+    is_protected: Optional[bool] = None
+    
     created_at: Optional[str] = None
     description: Optional[str] = None
-    preview_image_url: Optional[str] = None
+    preview_image_url: Optional[str] = None # deprecated... rename to avatar_image_url
+    poster_image_url: Optional[str] = None
     website: Optional[str] = None
+    location: Optional[str] = None
     
     actions: Optional[Dict[str, FeedItemAction]] = None 
     
     source_url: Optional[str] = None
     
+    raw_user: Optional = None
+    
     @property
     def display_name (self) -> str:
         return self.name
@@ -183,6 +198,22 @@ class FeedServiceUser:
     @property
     def handle (self) -> str:
         return self.username
+        
+    @property
+    def avatar_image_url (self) -> str:
+        return self.preview_image_url
+
+
+@dataclass
+class CollectionPage:
+    """
+    Feed is a collection.
+    """
+    
+    id: str
+    items: Optional[List[FeedServiceUser|FeedItem|ThreadItem]] = None
+    next_token: Optional[str] = None
+    last_dt: Optional[str] = None
 
 def cleandict(d):
     if isinstance(d, dict):

+ 1 - 1
mastodon_source.py → lib/mastodon_v2/api.py

@@ -6,7 +6,7 @@ import json
 
 import requests
 
-from mastodon_v2_types import Status, Conversation, Context
+from mastodon_v2.types import Status, Conversation, Context
 
 # https://github.com/mastodon/documentation/blob/master/content/en/api/guidelines.md#paginating-through-api-responses-pagination
 class MastodonAPSource:

+ 0 - 0
mastodon_v2_types.py → lib/mastodon_v2/types.py


+ 22 - 106
tweet_source.py → lib/twitter_v2/api.py

@@ -6,106 +6,7 @@ import json
 import requests
 import sqlite3
 
-from twitter_v2_types import TweetSearchResponse, DMEventsResponse, UserSearchResponse
-
-class ArchiveTweetSource:
-    """
-    id, created_at, retweeted, favorited, retweet_count, favorite_count, full_text, in_reply_to_status_id_str, in_reply_to_user_id, in_reply_to_screen_nam
-    """
-    def __init__ (self, archive_path, db_path = ".data/tweet.db", archive_user_id = None):
-        self.archive_path = archive_path
-        self.user_id = archive_user_id
-        self.db_path = db_path
-        return
-    
-    def get_db (self):
-        db = sqlite3.connect(self.db_path)
-        
-        return db
-
-    def get_user_timeline (self,
-                         author_id = None, max_results = 10, since_id = None):
-    
-        if max_results == None:
-            max_results = -1
-            
-        
-        sql_params = []
-        where_sql = []
-        
-        # if the ID is not stored as a number (eg. string) then this could be a problem
-        if since_id:
-            where_sql.append("cast(id as integer) > ?")
-            sql_params.append(since_id)
-            
-        #if author_id:
-        #    where_sql.append("author_id = ?")
-        #    sql_params.append(author_id)
-        
-        where_sql = " and ".join(where_sql)
-        
-        sql_cols = "id, created_at, retweeted, favorited, retweet_count, favorite_count, full_text, in_reply_to_status_id_str, in_reply_to_user_id, in_reply_to_screen_name"
-        
-        if author_id:
-            sql_cols += ", '{}' as author_id".format(author_id)
-        
-        if where_sql:
-            where_sql = "where {}".format(where_sql)
-        
-        sql = "select {} from tweet {} order by cast(id as integer) asc limit ?".format(sql_cols, where_sql)
-        sql_params.append(max_results)
-        
-        
-        db = self.get_db()
-        
-        cur = db.cursor()
-        cur.row_factory = sqlite3.Row
-        
-        print(sql)
-        print(sql_params)
-        
-        results = list(map(dict, cur.execute(sql, sql_params).fetchall()))
-        
-        return results
-    
-    def get_tweet (self, id_):
-        tweets = self.get_tweets([id_])
-        if len(tweets):
-            return tweets[0]
-    
-    def get_tweets (self,
-                    ids):
-                    
-        sql_params = []
-        where_sql = []
-        
-        ids_in_list_sql = "id in ({})".format( ','.join(['?'] * len(ids)))
-        where_sql.append(ids_in_list_sql)
-        sql_params += ids
-    
-        where_sql = " and ".join(where_sql)
-        
-        sql = "select * from tweet where {}".format(where_sql)
-        
-        db = self.get_db()
-        
-        cur = db.cursor()
-        cur.row_factory = sqlite3.Row
-        
-        results = list(map(dict, cur.execute(sql, sql_params).fetchall()))
-        
-        results.sort(key=lambda t: ids.index(t['id']))
-        
-        return results
-    
-    def search_tweets (self,
-                       query,
-                       since_id = None,
-                       max_results = 10,
-                       sort_order = None
-                       ):
-        
-        return
+from twitter_v2.types import TweetSearchResponse, DMEventsResponse, UserSearchResponse
 
 # https://developer.twitter.com/en/docs/twitter-api/v1/tweets/curate-a-collection/api-reference/get-collections-entries
 # we can perhaps steal a token from the TweetDeck Console, otherwise we need to apply for Standard v1.1 / Elevated
@@ -129,12 +30,12 @@ class TwitterApiV2SocialGraph:
     def __init__ (self, token):
         self.token = token
         
-    def get_user (self, user_id, is_username=False):
+    def get_user (self, user_id, is_username=False, return_dataclass=False):
         # GET /2/users/:id
         # GET /2/users/by/:username
-        return self.get_users([user_id], is_username)
+        return self.get_users([user_id], is_username, return_dataclass=return_dataclass)
     
-    def get_users (self, user_ids, are_usernames=False):
+    def get_users (self, user_ids, are_usernames=False, return_dataclass=False):
         # GET /2/users/by?usernames=
         # GET /2/users?ids=
         
@@ -162,6 +63,13 @@ class TwitterApiV2SocialGraph:
         response = requests.get(url, params=params, headers=headers)
         result = json.loads(response.text)
         
+        typed_result = from_dict(data_class=UserSearchResponse, data=result)
+        
+        if return_dataclass:
+            return typed_result
+        
+        result = cleandict(asdict(typed_result))
+        
         return result
         
     def get_following (self, user_id, 
@@ -255,12 +163,18 @@ class ApiV2ConversationSource:
 
         # https://developer.twitter.com/en/docs/twitter-api/direct-messages/lookup/api-reference/get-dm_events
         url = "https://api.twitter.com/2/dm_events"
+        
+        tweet_fields = ["created_at", "conversation_id",  "referenced_tweets", "text", "public_metrics", "entities", "attachments"]
+        media_fields = ["alt_text", "type", "preview_image_url", "public_metrics", "url", "media_key", "duration_ms", "width", "height", "variants"]
+        user_fields = ["created_at", "name", "username", "location", "profile_image_url", "verified"]
 
         params = {
             "dm_event.fields": "id,event_type,text,created_at,dm_conversation_id,sender_id,participant_ids,referenced_tweets,attachments",
-            "expansions": ",".join(["sender_id", "participant_ids"]),
+            "expansions": ",".join(["sender_id", "participant_ids", "referenced_tweets.id", "attachments.media_keys"]),
             
-            "user.fields": ",".join(["id", "created_at", "name", "username", "location", "profile_image_url", "url", "verified"])
+            "user.fields": ",".join(user_fields),
+            "tweet.fields": ",".join(tweet_fields),
+            "media.fields": ",".join(media_fields)
         }
         
         if max_results:
@@ -274,6 +188,8 @@ class ApiV2ConversationSource:
         response = requests.get(url, params=params, headers=headers)
         response_json = json.loads(response.text)
         
+        #print(response_json)
+        
         typed_resp = from_dict(data=response_json, data_class=DMEventsResponse)
         
         return typed_resp
@@ -485,7 +401,7 @@ class ApiV2TweetSource:
         response_json = json.loads(response.text)
         
         try:
-            #print(json.dumps(response_json, indent = 2))
+            print(json.dumps(response_json, indent = 2))
             typed_resp = from_dict(data=response_json, data_class=TweetSearchResponse)
         except:
             print('error converting response to dataclass')

+ 108 - 0
lib/twitter_v2/archive.py

@@ -0,0 +1,108 @@
+from dataclasses import asdict
+from typing import List
+from dacite import from_dict
+
+import json
+import requests
+import sqlite3
+
+from twitter_v2.types import TweetSearchResponse, DMEventsResponse, UserSearchResponse
+
+class ArchiveTweetSource:
+    """
+    id, created_at, retweeted, favorited, retweet_count, favorite_count, full_text, in_reply_to_status_id_str, in_reply_to_user_id, in_reply_to_screen_nam
+    """
+    def __init__ (self, archive_path, db_path = ".data/tweet.db", archive_user_id = None):
+        self.archive_path = archive_path
+        self.user_id = archive_user_id
+        self.db_path = db_path
+        return
+    
+    def get_db (self):
+        db = sqlite3.connect(self.db_path)
+        
+        return db
+
+    def get_user_timeline (self,
+                         author_id = None, max_results = 10, since_id = None):
+    
+        if max_results == None:
+            max_results = -1
+            
+        
+        sql_params = []
+        where_sql = []
+        
+        # if the ID is not stored as a number (eg. string) then this could be a problem
+        if since_id:
+            where_sql.append("cast(id as integer) > ?")
+            sql_params.append(since_id)
+            
+        #if author_id:
+        #    where_sql.append("author_id = ?")
+        #    sql_params.append(author_id)
+        
+        where_sql = " and ".join(where_sql)
+        
+        sql_cols = "id, created_at, retweeted, favorited, retweet_count, favorite_count, full_text, in_reply_to_status_id_str, in_reply_to_user_id, in_reply_to_screen_name"
+        
+        if author_id:
+            sql_cols += ", '{}' as author_id".format(author_id)
+        
+        if where_sql:
+            where_sql = "where {}".format(where_sql)
+        
+        sql = "select {} from tweet {} order by cast(id as integer) asc limit ?".format(sql_cols, where_sql)
+        sql_params.append(max_results)
+        
+        
+        db = self.get_db()
+        
+        cur = db.cursor()
+        cur.row_factory = sqlite3.Row
+        
+        print(sql)
+        print(sql_params)
+        
+        results = list(map(dict, cur.execute(sql, sql_params).fetchall()))
+        
+        return results
+    
+    def get_tweet (self, id_):
+        tweets = self.get_tweets([id_])
+        if len(tweets):
+            return tweets[0]
+    
+    def get_tweets (self,
+                    ids):
+                    
+        sql_params = []
+        where_sql = []
+        
+        ids_in_list_sql = "id in ({})".format( ','.join(['?'] * len(ids)))
+        where_sql.append(ids_in_list_sql)
+        sql_params += ids
+    
+        where_sql = " and ".join(where_sql)
+        
+        sql = "select * from tweet where {}".format(where_sql)
+        
+        db = self.get_db()
+        
+        cur = db.cursor()
+        cur.row_factory = sqlite3.Row
+        
+        results = list(map(dict, cur.execute(sql, sql_params).fetchall()))
+        
+        results.sort(key=lambda t: ids.index(t['id']))
+        
+        return results
+    
+    def search_tweets (self,
+                       query,
+                       since_id = None,
+                       max_results = 10,
+                       sort_order = None
+                       ):
+        
+        return

+ 22 - 0
twitter_v2_types.py → lib/twitter_v2/types.py

@@ -13,6 +13,14 @@ MediaKey = str
 
 Error = Dict
 
+@dataclass
+class UserPublicMetrics:
+    tweet_count: Optional[int] = None
+    followers_count: Optional[int] = None
+    following_count: Optional[int] = None
+    listed_count: Optional[int] = None
+
+
 @dataclass
 class User:
     id: UserId
@@ -21,9 +29,15 @@ class User:
     created_at: Optional[Date] = None
     name: Optional[str] = None
     verified: Optional[bool] = None
+    protected: Optional[bool] = None
     profile_image_url: Optional[Url] = None
     description: Optional[str] = None
     url: Optional[str] = None
+    location: Optional[str] = None
+    
+    pinned_tweet_id: Optional[TweetId] = None
+    
+    public_metrics: Optional[UserPublicMetrics] = None
 
 @dataclass
 class PublicMetrics:
@@ -86,6 +100,12 @@ class MentionEntity:
     id: UserId
     username: str
 
+@dataclass
+class UrlEntityImage:
+    url: Url
+    width: int
+    height: int
+
 @dataclass
 class UrlEntity:
     start: int
@@ -98,6 +118,7 @@ class UrlEntity:
     title: Optional[str] = None
     unwound_url: Optional[Url] = None
     status: Optional[int] = None
+    images: Optional[List[UrlEntityImage]] = None
 
 @dataclass
 class TweetEntities:
@@ -159,6 +180,7 @@ class DMEvent:
 class DMCMessageCreate(DMEvent):
     sender_id: UserId
     text: str
+    referenced_tweet_id: Optional[TweetId] = None
     attachments: Optional[TweetAttachments] = None
 
 @dataclass

+ 0 - 25
sample-env.txt

@@ -1,25 +0,0 @@
-FLASK_SECRET=
-
-NOTES_APP_URL=
-
-
-MASTODON_CLIENT_NAME=Hogumathi (Local Dev)
-
-# Twitter App Token cache
-BEARER_TOKEN=
-
-TWITTER_CLIENT_ID=
-TWITTER_CLIENT_SECRET=
-
-TWITTER_CONSUMER_KEY=
-TWITTER_CONSUMER_SECRET=
-
-# Path to tweet.js converted into json (barely works, bolting these two things together)
-ARCHIVE_TWEETS_PATH=
-
-# API key for the app to use if the user has not logged in.
-GOOGLE_DEVELOPER_KEY=
-
-# For development on localhost set value to 1
-#OAUTHLIB_INSECURE_TRANSPORT=1
-#PORT=5004

+ 0 - 2018
static/bootstrap-icons.css

@@ -1,2018 +0,0 @@
-@font-face {
-  font-display: block;
-  font-family: "bootstrap-icons";
-  src: url("./bootstrap-icons.woff2?24e3eb84d0bcaf83d77f904c78ac1f47") format("woff2"),
-url("./bootstrap-icons.woff?24e3eb84d0bcaf83d77f904c78ac1f47") format("woff");
-}
-
-.bi::before,
-[class^="bi-"]::before,
-[class*=" bi-"]::before {
-  display: inline-block;
-  font-family: bootstrap-icons !important;
-  font-style: normal;
-  font-weight: normal !important;
-  font-variant: normal;
-  text-transform: none;
-  line-height: 1;
-  vertical-align: -.125em;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-.bi-123::before { content: "\f67f"; }
-.bi-alarm-fill::before { content: "\f101"; }
-.bi-alarm::before { content: "\f102"; }
-.bi-align-bottom::before { content: "\f103"; }
-.bi-align-center::before { content: "\f104"; }
-.bi-align-end::before { content: "\f105"; }
-.bi-align-middle::before { content: "\f106"; }
-.bi-align-start::before { content: "\f107"; }
-.bi-align-top::before { content: "\f108"; }
-.bi-alt::before { content: "\f109"; }
-.bi-app-indicator::before { content: "\f10a"; }
-.bi-app::before { content: "\f10b"; }
-.bi-archive-fill::before { content: "\f10c"; }
-.bi-archive::before { content: "\f10d"; }
-.bi-arrow-90deg-down::before { content: "\f10e"; }
-.bi-arrow-90deg-left::before { content: "\f10f"; }
-.bi-arrow-90deg-right::before { content: "\f110"; }
-.bi-arrow-90deg-up::before { content: "\f111"; }
-.bi-arrow-bar-down::before { content: "\f112"; }
-.bi-arrow-bar-left::before { content: "\f113"; }
-.bi-arrow-bar-right::before { content: "\f114"; }
-.bi-arrow-bar-up::before { content: "\f115"; }
-.bi-arrow-clockwise::before { content: "\f116"; }
-.bi-arrow-counterclockwise::before { content: "\f117"; }
-.bi-arrow-down-circle-fill::before { content: "\f118"; }
-.bi-arrow-down-circle::before { content: "\f119"; }
-.bi-arrow-down-left-circle-fill::before { content: "\f11a"; }
-.bi-arrow-down-left-circle::before { content: "\f11b"; }
-.bi-arrow-down-left-square-fill::before { content: "\f11c"; }
-.bi-arrow-down-left-square::before { content: "\f11d"; }
-.bi-arrow-down-left::before { content: "\f11e"; }
-.bi-arrow-down-right-circle-fill::before { content: "\f11f"; }
-.bi-arrow-down-right-circle::before { content: "\f120"; }
-.bi-arrow-down-right-square-fill::before { content: "\f121"; }
-.bi-arrow-down-right-square::before { content: "\f122"; }
-.bi-arrow-down-right::before { content: "\f123"; }
-.bi-arrow-down-short::before { content: "\f124"; }
-.bi-arrow-down-square-fill::before { content: "\f125"; }
-.bi-arrow-down-square::before { content: "\f126"; }
-.bi-arrow-down-up::before { content: "\f127"; }
-.bi-arrow-down::before { content: "\f128"; }
-.bi-arrow-left-circle-fill::before { content: "\f129"; }
-.bi-arrow-left-circle::before { content: "\f12a"; }
-.bi-arrow-left-right::before { content: "\f12b"; }
-.bi-arrow-left-short::before { content: "\f12c"; }
-.bi-arrow-left-square-fill::before { content: "\f12d"; }
-.bi-arrow-left-square::before { content: "\f12e"; }
-.bi-arrow-left::before { content: "\f12f"; }
-.bi-arrow-repeat::before { content: "\f130"; }
-.bi-arrow-return-left::before { content: "\f131"; }
-.bi-arrow-return-right::before { content: "\f132"; }
-.bi-arrow-right-circle-fill::before { content: "\f133"; }
-.bi-arrow-right-circle::before { content: "\f134"; }
-.bi-arrow-right-short::before { content: "\f135"; }
-.bi-arrow-right-square-fill::before { content: "\f136"; }
-.bi-arrow-right-square::before { content: "\f137"; }
-.bi-arrow-right::before { content: "\f138"; }
-.bi-arrow-up-circle-fill::before { content: "\f139"; }
-.bi-arrow-up-circle::before { content: "\f13a"; }
-.bi-arrow-up-left-circle-fill::before { content: "\f13b"; }
-.bi-arrow-up-left-circle::before { content: "\f13c"; }
-.bi-arrow-up-left-square-fill::before { content: "\f13d"; }
-.bi-arrow-up-left-square::before { content: "\f13e"; }
-.bi-arrow-up-left::before { content: "\f13f"; }
-.bi-arrow-up-right-circle-fill::before { content: "\f140"; }
-.bi-arrow-up-right-circle::before { content: "\f141"; }
-.bi-arrow-up-right-square-fill::before { content: "\f142"; }
-.bi-arrow-up-right-square::before { content: "\f143"; }
-.bi-arrow-up-right::before { content: "\f144"; }
-.bi-arrow-up-short::before { content: "\f145"; }
-.bi-arrow-up-square-fill::before { content: "\f146"; }
-.bi-arrow-up-square::before { content: "\f147"; }
-.bi-arrow-up::before { content: "\f148"; }
-.bi-arrows-angle-contract::before { content: "\f149"; }
-.bi-arrows-angle-expand::before { content: "\f14a"; }
-.bi-arrows-collapse::before { content: "\f14b"; }
-.bi-arrows-expand::before { content: "\f14c"; }
-.bi-arrows-fullscreen::before { content: "\f14d"; }
-.bi-arrows-move::before { content: "\f14e"; }
-.bi-aspect-ratio-fill::before { content: "\f14f"; }
-.bi-aspect-ratio::before { content: "\f150"; }
-.bi-asterisk::before { content: "\f151"; }
-.bi-at::before { content: "\f152"; }
-.bi-award-fill::before { content: "\f153"; }
-.bi-award::before { content: "\f154"; }
-.bi-back::before { content: "\f155"; }
-.bi-backspace-fill::before { content: "\f156"; }
-.bi-backspace-reverse-fill::before { content: "\f157"; }
-.bi-backspace-reverse::before { content: "\f158"; }
-.bi-backspace::before { content: "\f159"; }
-.bi-badge-3d-fill::before { content: "\f15a"; }
-.bi-badge-3d::before { content: "\f15b"; }
-.bi-badge-4k-fill::before { content: "\f15c"; }
-.bi-badge-4k::before { content: "\f15d"; }
-.bi-badge-8k-fill::before { content: "\f15e"; }
-.bi-badge-8k::before { content: "\f15f"; }
-.bi-badge-ad-fill::before { content: "\f160"; }
-.bi-badge-ad::before { content: "\f161"; }
-.bi-badge-ar-fill::before { content: "\f162"; }
-.bi-badge-ar::before { content: "\f163"; }
-.bi-badge-cc-fill::before { content: "\f164"; }
-.bi-badge-cc::before { content: "\f165"; }
-.bi-badge-hd-fill::before { content: "\f166"; }
-.bi-badge-hd::before { content: "\f167"; }
-.bi-badge-tm-fill::before { content: "\f168"; }
-.bi-badge-tm::before { content: "\f169"; }
-.bi-badge-vo-fill::before { content: "\f16a"; }
-.bi-badge-vo::before { content: "\f16b"; }
-.bi-badge-vr-fill::before { content: "\f16c"; }
-.bi-badge-vr::before { content: "\f16d"; }
-.bi-badge-wc-fill::before { content: "\f16e"; }
-.bi-badge-wc::before { content: "\f16f"; }
-.bi-bag-check-fill::before { content: "\f170"; }
-.bi-bag-check::before { content: "\f171"; }
-.bi-bag-dash-fill::before { content: "\f172"; }
-.bi-bag-dash::before { content: "\f173"; }
-.bi-bag-fill::before { content: "\f174"; }
-.bi-bag-plus-fill::before { content: "\f175"; }
-.bi-bag-plus::before { content: "\f176"; }
-.bi-bag-x-fill::before { content: "\f177"; }
-.bi-bag-x::before { content: "\f178"; }
-.bi-bag::before { content: "\f179"; }
-.bi-bar-chart-fill::before { content: "\f17a"; }
-.bi-bar-chart-line-fill::before { content: "\f17b"; }
-.bi-bar-chart-line::before { content: "\f17c"; }
-.bi-bar-chart-steps::before { content: "\f17d"; }
-.bi-bar-chart::before { content: "\f17e"; }
-.bi-basket-fill::before { content: "\f17f"; }
-.bi-basket::before { content: "\f180"; }
-.bi-basket2-fill::before { content: "\f181"; }
-.bi-basket2::before { content: "\f182"; }
-.bi-basket3-fill::before { content: "\f183"; }
-.bi-basket3::before { content: "\f184"; }
-.bi-battery-charging::before { content: "\f185"; }
-.bi-battery-full::before { content: "\f186"; }
-.bi-battery-half::before { content: "\f187"; }
-.bi-battery::before { content: "\f188"; }
-.bi-bell-fill::before { content: "\f189"; }
-.bi-bell::before { content: "\f18a"; }
-.bi-bezier::before { content: "\f18b"; }
-.bi-bezier2::before { content: "\f18c"; }
-.bi-bicycle::before { content: "\f18d"; }
-.bi-binoculars-fill::before { content: "\f18e"; }
-.bi-binoculars::before { content: "\f18f"; }
-.bi-blockquote-left::before { content: "\f190"; }
-.bi-blockquote-right::before { content: "\f191"; }
-.bi-book-fill::before { content: "\f192"; }
-.bi-book-half::before { content: "\f193"; }
-.bi-book::before { content: "\f194"; }
-.bi-bookmark-check-fill::before { content: "\f195"; }
-.bi-bookmark-check::before { content: "\f196"; }
-.bi-bookmark-dash-fill::before { content: "\f197"; }
-.bi-bookmark-dash::before { content: "\f198"; }
-.bi-bookmark-fill::before { content: "\f199"; }
-.bi-bookmark-heart-fill::before { content: "\f19a"; }
-.bi-bookmark-heart::before { content: "\f19b"; }
-.bi-bookmark-plus-fill::before { content: "\f19c"; }
-.bi-bookmark-plus::before { content: "\f19d"; }
-.bi-bookmark-star-fill::before { content: "\f19e"; }
-.bi-bookmark-star::before { content: "\f19f"; }
-.bi-bookmark-x-fill::before { content: "\f1a0"; }
-.bi-bookmark-x::before { content: "\f1a1"; }
-.bi-bookmark::before { content: "\f1a2"; }
-.bi-bookmarks-fill::before { content: "\f1a3"; }
-.bi-bookmarks::before { content: "\f1a4"; }
-.bi-bookshelf::before { content: "\f1a5"; }
-.bi-bootstrap-fill::before { content: "\f1a6"; }
-.bi-bootstrap-reboot::before { content: "\f1a7"; }
-.bi-bootstrap::before { content: "\f1a8"; }
-.bi-border-all::before { content: "\f1a9"; }
-.bi-border-bottom::before { content: "\f1aa"; }
-.bi-border-center::before { content: "\f1ab"; }
-.bi-border-inner::before { content: "\f1ac"; }
-.bi-border-left::before { content: "\f1ad"; }
-.bi-border-middle::before { content: "\f1ae"; }
-.bi-border-outer::before { content: "\f1af"; }
-.bi-border-right::before { content: "\f1b0"; }
-.bi-border-style::before { content: "\f1b1"; }
-.bi-border-top::before { content: "\f1b2"; }
-.bi-border-width::before { content: "\f1b3"; }
-.bi-border::before { content: "\f1b4"; }
-.bi-bounding-box-circles::before { content: "\f1b5"; }
-.bi-bounding-box::before { content: "\f1b6"; }
-.bi-box-arrow-down-left::before { content: "\f1b7"; }
-.bi-box-arrow-down-right::before { content: "\f1b8"; }
-.bi-box-arrow-down::before { content: "\f1b9"; }
-.bi-box-arrow-in-down-left::before { content: "\f1ba"; }
-.bi-box-arrow-in-down-right::before { content: "\f1bb"; }
-.bi-box-arrow-in-down::before { content: "\f1bc"; }
-.bi-box-arrow-in-left::before { content: "\f1bd"; }
-.bi-box-arrow-in-right::before { content: "\f1be"; }
-.bi-box-arrow-in-up-left::before { content: "\f1bf"; }
-.bi-box-arrow-in-up-right::before { content: "\f1c0"; }
-.bi-box-arrow-in-up::before { content: "\f1c1"; }
-.bi-box-arrow-left::before { content: "\f1c2"; }
-.bi-box-arrow-right::before { content: "\f1c3"; }
-.bi-box-arrow-up-left::before { content: "\f1c4"; }
-.bi-box-arrow-up-right::before { content: "\f1c5"; }
-.bi-box-arrow-up::before { content: "\f1c6"; }
-.bi-box-seam::before { content: "\f1c7"; }
-.bi-box::before { content: "\f1c8"; }
-.bi-braces::before { content: "\f1c9"; }
-.bi-bricks::before { content: "\f1ca"; }
-.bi-briefcase-fill::before { content: "\f1cb"; }
-.bi-briefcase::before { content: "\f1cc"; }
-.bi-brightness-alt-high-fill::before { content: "\f1cd"; }
-.bi-brightness-alt-high::before { content: "\f1ce"; }
-.bi-brightness-alt-low-fill::before { content: "\f1cf"; }
-.bi-brightness-alt-low::before { content: "\f1d0"; }
-.bi-brightness-high-fill::before { content: "\f1d1"; }
-.bi-brightness-high::before { content: "\f1d2"; }
-.bi-brightness-low-fill::before { content: "\f1d3"; }
-.bi-brightness-low::before { content: "\f1d4"; }
-.bi-broadcast-pin::before { content: "\f1d5"; }
-.bi-broadcast::before { content: "\f1d6"; }
-.bi-brush-fill::before { content: "\f1d7"; }
-.bi-brush::before { content: "\f1d8"; }
-.bi-bucket-fill::before { content: "\f1d9"; }
-.bi-bucket::before { content: "\f1da"; }
-.bi-bug-fill::before { content: "\f1db"; }
-.bi-bug::before { content: "\f1dc"; }
-.bi-building::before { content: "\f1dd"; }
-.bi-bullseye::before { content: "\f1de"; }
-.bi-calculator-fill::before { content: "\f1df"; }
-.bi-calculator::before { content: "\f1e0"; }
-.bi-calendar-check-fill::before { content: "\f1e1"; }
-.bi-calendar-check::before { content: "\f1e2"; }
-.bi-calendar-date-fill::before { content: "\f1e3"; }
-.bi-calendar-date::before { content: "\f1e4"; }
-.bi-calendar-day-fill::before { content: "\f1e5"; }
-.bi-calendar-day::before { content: "\f1e6"; }
-.bi-calendar-event-fill::before { content: "\f1e7"; }
-.bi-calendar-event::before { content: "\f1e8"; }
-.bi-calendar-fill::before { content: "\f1e9"; }
-.bi-calendar-minus-fill::before { content: "\f1ea"; }
-.bi-calendar-minus::before { content: "\f1eb"; }
-.bi-calendar-month-fill::before { content: "\f1ec"; }
-.bi-calendar-month::before { content: "\f1ed"; }
-.bi-calendar-plus-fill::before { content: "\f1ee"; }
-.bi-calendar-plus::before { content: "\f1ef"; }
-.bi-calendar-range-fill::before { content: "\f1f0"; }
-.bi-calendar-range::before { content: "\f1f1"; }
-.bi-calendar-week-fill::before { content: "\f1f2"; }
-.bi-calendar-week::before { content: "\f1f3"; }
-.bi-calendar-x-fill::before { content: "\f1f4"; }
-.bi-calendar-x::before { content: "\f1f5"; }
-.bi-calendar::before { content: "\f1f6"; }
-.bi-calendar2-check-fill::before { content: "\f1f7"; }
-.bi-calendar2-check::before { content: "\f1f8"; }
-.bi-calendar2-date-fill::before { content: "\f1f9"; }
-.bi-calendar2-date::before { content: "\f1fa"; }
-.bi-calendar2-day-fill::before { content: "\f1fb"; }
-.bi-calendar2-day::before { content: "\f1fc"; }
-.bi-calendar2-event-fill::before { content: "\f1fd"; }
-.bi-calendar2-event::before { content: "\f1fe"; }
-.bi-calendar2-fill::before { content: "\f1ff"; }
-.bi-calendar2-minus-fill::before { content: "\f200"; }
-.bi-calendar2-minus::before { content: "\f201"; }
-.bi-calendar2-month-fill::before { content: "\f202"; }
-.bi-calendar2-month::before { content: "\f203"; }
-.bi-calendar2-plus-fill::before { content: "\f204"; }
-.bi-calendar2-plus::before { content: "\f205"; }
-.bi-calendar2-range-fill::before { content: "\f206"; }
-.bi-calendar2-range::before { content: "\f207"; }
-.bi-calendar2-week-fill::before { content: "\f208"; }
-.bi-calendar2-week::before { content: "\f209"; }
-.bi-calendar2-x-fill::before { content: "\f20a"; }
-.bi-calendar2-x::before { content: "\f20b"; }
-.bi-calendar2::before { content: "\f20c"; }
-.bi-calendar3-event-fill::before { content: "\f20d"; }
-.bi-calendar3-event::before { content: "\f20e"; }
-.bi-calendar3-fill::before { content: "\f20f"; }
-.bi-calendar3-range-fill::before { content: "\f210"; }
-.bi-calendar3-range::before { content: "\f211"; }
-.bi-calendar3-week-fill::before { content: "\f212"; }
-.bi-calendar3-week::before { content: "\f213"; }
-.bi-calendar3::before { content: "\f214"; }
-.bi-calendar4-event::before { content: "\f215"; }
-.bi-calendar4-range::before { content: "\f216"; }
-.bi-calendar4-week::before { content: "\f217"; }
-.bi-calendar4::before { content: "\f218"; }
-.bi-camera-fill::before { content: "\f219"; }
-.bi-camera-reels-fill::before { content: "\f21a"; }
-.bi-camera-reels::before { content: "\f21b"; }
-.bi-camera-video-fill::before { content: "\f21c"; }
-.bi-camera-video-off-fill::before { content: "\f21d"; }
-.bi-camera-video-off::before { content: "\f21e"; }
-.bi-camera-video::before { content: "\f21f"; }
-.bi-camera::before { content: "\f220"; }
-.bi-camera2::before { content: "\f221"; }
-.bi-capslock-fill::before { content: "\f222"; }
-.bi-capslock::before { content: "\f223"; }
-.bi-card-checklist::before { content: "\f224"; }
-.bi-card-heading::before { content: "\f225"; }
-.bi-card-image::before { content: "\f226"; }
-.bi-card-list::before { content: "\f227"; }
-.bi-card-text::before { content: "\f228"; }
-.bi-caret-down-fill::before { content: "\f229"; }
-.bi-caret-down-square-fill::before { content: "\f22a"; }
-.bi-caret-down-square::before { content: "\f22b"; }
-.bi-caret-down::before { content: "\f22c"; }
-.bi-caret-left-fill::before { content: "\f22d"; }
-.bi-caret-left-square-fill::before { content: "\f22e"; }
-.bi-caret-left-square::before { content: "\f22f"; }
-.bi-caret-left::before { content: "\f230"; }
-.bi-caret-right-fill::before { content: "\f231"; }
-.bi-caret-right-square-fill::before { content: "\f232"; }
-.bi-caret-right-square::before { content: "\f233"; }
-.bi-caret-right::before { content: "\f234"; }
-.bi-caret-up-fill::before { content: "\f235"; }
-.bi-caret-up-square-fill::before { content: "\f236"; }
-.bi-caret-up-square::before { content: "\f237"; }
-.bi-caret-up::before { content: "\f238"; }
-.bi-cart-check-fill::before { content: "\f239"; }
-.bi-cart-check::before { content: "\f23a"; }
-.bi-cart-dash-fill::before { content: "\f23b"; }
-.bi-cart-dash::before { content: "\f23c"; }
-.bi-cart-fill::before { content: "\f23d"; }
-.bi-cart-plus-fill::before { content: "\f23e"; }
-.bi-cart-plus::before { content: "\f23f"; }
-.bi-cart-x-fill::before { content: "\f240"; }
-.bi-cart-x::before { content: "\f241"; }
-.bi-cart::before { content: "\f242"; }
-.bi-cart2::before { content: "\f243"; }
-.bi-cart3::before { content: "\f244"; }
-.bi-cart4::before { content: "\f245"; }
-.bi-cash-stack::before { content: "\f246"; }
-.bi-cash::before { content: "\f247"; }
-.bi-cast::before { content: "\f248"; }
-.bi-chat-dots-fill::before { content: "\f249"; }
-.bi-chat-dots::before { content: "\f24a"; }
-.bi-chat-fill::before { content: "\f24b"; }
-.bi-chat-left-dots-fill::before { content: "\f24c"; }
-.bi-chat-left-dots::before { content: "\f24d"; }
-.bi-chat-left-fill::before { content: "\f24e"; }
-.bi-chat-left-quote-fill::before { content: "\f24f"; }
-.bi-chat-left-quote::before { content: "\f250"; }
-.bi-chat-left-text-fill::before { content: "\f251"; }
-.bi-chat-left-text::before { content: "\f252"; }
-.bi-chat-left::before { content: "\f253"; }
-.bi-chat-quote-fill::before { content: "\f254"; }
-.bi-chat-quote::before { content: "\f255"; }
-.bi-chat-right-dots-fill::before { content: "\f256"; }
-.bi-chat-right-dots::before { content: "\f257"; }
-.bi-chat-right-fill::before { content: "\f258"; }
-.bi-chat-right-quote-fill::before { content: "\f259"; }
-.bi-chat-right-quote::before { content: "\f25a"; }
-.bi-chat-right-text-fill::before { content: "\f25b"; }
-.bi-chat-right-text::before { content: "\f25c"; }
-.bi-chat-right::before { content: "\f25d"; }
-.bi-chat-square-dots-fill::before { content: "\f25e"; }
-.bi-chat-square-dots::before { content: "\f25f"; }
-.bi-chat-square-fill::before { content: "\f260"; }
-.bi-chat-square-quote-fill::before { content: "\f261"; }
-.bi-chat-square-quote::before { content: "\f262"; }
-.bi-chat-square-text-fill::before { content: "\f263"; }
-.bi-chat-square-text::before { content: "\f264"; }
-.bi-chat-square::before { content: "\f265"; }
-.bi-chat-text-fill::before { content: "\f266"; }
-.bi-chat-text::before { content: "\f267"; }
-.bi-chat::before { content: "\f268"; }
-.bi-check-all::before { content: "\f269"; }
-.bi-check-circle-fill::before { content: "\f26a"; }
-.bi-check-circle::before { content: "\f26b"; }
-.bi-check-square-fill::before { content: "\f26c"; }
-.bi-check-square::before { content: "\f26d"; }
-.bi-check::before { content: "\f26e"; }
-.bi-check2-all::before { content: "\f26f"; }
-.bi-check2-circle::before { content: "\f270"; }
-.bi-check2-square::before { content: "\f271"; }
-.bi-check2::before { content: "\f272"; }
-.bi-chevron-bar-contract::before { content: "\f273"; }
-.bi-chevron-bar-down::before { content: "\f274"; }
-.bi-chevron-bar-expand::before { content: "\f275"; }
-.bi-chevron-bar-left::before { content: "\f276"; }
-.bi-chevron-bar-right::before { content: "\f277"; }
-.bi-chevron-bar-up::before { content: "\f278"; }
-.bi-chevron-compact-down::before { content: "\f279"; }
-.bi-chevron-compact-left::before { content: "\f27a"; }
-.bi-chevron-compact-right::before { content: "\f27b"; }
-.bi-chevron-compact-up::before { content: "\f27c"; }
-.bi-chevron-contract::before { content: "\f27d"; }
-.bi-chevron-double-down::before { content: "\f27e"; }
-.bi-chevron-double-left::before { content: "\f27f"; }
-.bi-chevron-double-right::before { content: "\f280"; }
-.bi-chevron-double-up::before { content: "\f281"; }
-.bi-chevron-down::before { content: "\f282"; }
-.bi-chevron-expand::before { content: "\f283"; }
-.bi-chevron-left::before { content: "\f284"; }
-.bi-chevron-right::before { content: "\f285"; }
-.bi-chevron-up::before { content: "\f286"; }
-.bi-circle-fill::before { content: "\f287"; }
-.bi-circle-half::before { content: "\f288"; }
-.bi-circle-square::before { content: "\f289"; }
-.bi-circle::before { content: "\f28a"; }
-.bi-clipboard-check::before { content: "\f28b"; }
-.bi-clipboard-data::before { content: "\f28c"; }
-.bi-clipboard-minus::before { content: "\f28d"; }
-.bi-clipboard-plus::before { content: "\f28e"; }
-.bi-clipboard-x::before { content: "\f28f"; }
-.bi-clipboard::before { content: "\f290"; }
-.bi-clock-fill::before { content: "\f291"; }
-.bi-clock-history::before { content: "\f292"; }
-.bi-clock::before { content: "\f293"; }
-.bi-cloud-arrow-down-fill::before { content: "\f294"; }
-.bi-cloud-arrow-down::before { content: "\f295"; }
-.bi-cloud-arrow-up-fill::before { content: "\f296"; }
-.bi-cloud-arrow-up::before { content: "\f297"; }
-.bi-cloud-check-fill::before { content: "\f298"; }
-.bi-cloud-check::before { content: "\f299"; }
-.bi-cloud-download-fill::before { content: "\f29a"; }
-.bi-cloud-download::before { content: "\f29b"; }
-.bi-cloud-drizzle-fill::before { content: "\f29c"; }
-.bi-cloud-drizzle::before { content: "\f29d"; }
-.bi-cloud-fill::before { content: "\f29e"; }
-.bi-cloud-fog-fill::before { content: "\f29f"; }
-.bi-cloud-fog::before { content: "\f2a0"; }
-.bi-cloud-fog2-fill::before { content: "\f2a1"; }
-.bi-cloud-fog2::before { content: "\f2a2"; }
-.bi-cloud-hail-fill::before { content: "\f2a3"; }
-.bi-cloud-hail::before { content: "\f2a4"; }
-.bi-cloud-haze-1::before { content: "\f2a5"; }
-.bi-cloud-haze-fill::before { content: "\f2a6"; }
-.bi-cloud-haze::before { content: "\f2a7"; }
-.bi-cloud-haze2-fill::before { content: "\f2a8"; }
-.bi-cloud-lightning-fill::before { content: "\f2a9"; }
-.bi-cloud-lightning-rain-fill::before { content: "\f2aa"; }
-.bi-cloud-lightning-rain::before { content: "\f2ab"; }
-.bi-cloud-lightning::before { content: "\f2ac"; }
-.bi-cloud-minus-fill::before { content: "\f2ad"; }
-.bi-cloud-minus::before { content: "\f2ae"; }
-.bi-cloud-moon-fill::before { content: "\f2af"; }
-.bi-cloud-moon::before { content: "\f2b0"; }
-.bi-cloud-plus-fill::before { content: "\f2b1"; }
-.bi-cloud-plus::before { content: "\f2b2"; }
-.bi-cloud-rain-fill::before { content: "\f2b3"; }
-.bi-cloud-rain-heavy-fill::before { content: "\f2b4"; }
-.bi-cloud-rain-heavy::before { content: "\f2b5"; }
-.bi-cloud-rain::before { content: "\f2b6"; }
-.bi-cloud-slash-fill::before { content: "\f2b7"; }
-.bi-cloud-slash::before { content: "\f2b8"; }
-.bi-cloud-sleet-fill::before { content: "\f2b9"; }
-.bi-cloud-sleet::before { content: "\f2ba"; }
-.bi-cloud-snow-fill::before { content: "\f2bb"; }
-.bi-cloud-snow::before { content: "\f2bc"; }
-.bi-cloud-sun-fill::before { content: "\f2bd"; }
-.bi-cloud-sun::before { content: "\f2be"; }
-.bi-cloud-upload-fill::before { content: "\f2bf"; }
-.bi-cloud-upload::before { content: "\f2c0"; }
-.bi-cloud::before { content: "\f2c1"; }
-.bi-clouds-fill::before { content: "\f2c2"; }
-.bi-clouds::before { content: "\f2c3"; }
-.bi-cloudy-fill::before { content: "\f2c4"; }
-.bi-cloudy::before { content: "\f2c5"; }
-.bi-code-slash::before { content: "\f2c6"; }
-.bi-code-square::before { content: "\f2c7"; }
-.bi-code::before { content: "\f2c8"; }
-.bi-collection-fill::before { content: "\f2c9"; }
-.bi-collection-play-fill::before { content: "\f2ca"; }
-.bi-collection-play::before { content: "\f2cb"; }
-.bi-collection::before { content: "\f2cc"; }
-.bi-columns-gap::before { content: "\f2cd"; }
-.bi-columns::before { content: "\f2ce"; }
-.bi-command::before { content: "\f2cf"; }
-.bi-compass-fill::before { content: "\f2d0"; }
-.bi-compass::before { content: "\f2d1"; }
-.bi-cone-striped::before { content: "\f2d2"; }
-.bi-cone::before { content: "\f2d3"; }
-.bi-controller::before { content: "\f2d4"; }
-.bi-cpu-fill::before { content: "\f2d5"; }
-.bi-cpu::before { content: "\f2d6"; }
-.bi-credit-card-2-back-fill::before { content: "\f2d7"; }
-.bi-credit-card-2-back::before { content: "\f2d8"; }
-.bi-credit-card-2-front-fill::before { content: "\f2d9"; }
-.bi-credit-card-2-front::before { content: "\f2da"; }
-.bi-credit-card-fill::before { content: "\f2db"; }
-.bi-credit-card::before { content: "\f2dc"; }
-.bi-crop::before { content: "\f2dd"; }
-.bi-cup-fill::before { content: "\f2de"; }
-.bi-cup-straw::before { content: "\f2df"; }
-.bi-cup::before { content: "\f2e0"; }
-.bi-cursor-fill::before { content: "\f2e1"; }
-.bi-cursor-text::before { content: "\f2e2"; }
-.bi-cursor::before { content: "\f2e3"; }
-.bi-dash-circle-dotted::before { content: "\f2e4"; }
-.bi-dash-circle-fill::before { content: "\f2e5"; }
-.bi-dash-circle::before { content: "\f2e6"; }
-.bi-dash-square-dotted::before { content: "\f2e7"; }
-.bi-dash-square-fill::before { content: "\f2e8"; }
-.bi-dash-square::before { content: "\f2e9"; }
-.bi-dash::before { content: "\f2ea"; }
-.bi-diagram-2-fill::before { content: "\f2eb"; }
-.bi-diagram-2::before { content: "\f2ec"; }
-.bi-diagram-3-fill::before { content: "\f2ed"; }
-.bi-diagram-3::before { content: "\f2ee"; }
-.bi-diamond-fill::before { content: "\f2ef"; }
-.bi-diamond-half::before { content: "\f2f0"; }
-.bi-diamond::before { content: "\f2f1"; }
-.bi-dice-1-fill::before { content: "\f2f2"; }
-.bi-dice-1::before { content: "\f2f3"; }
-.bi-dice-2-fill::before { content: "\f2f4"; }
-.bi-dice-2::before { content: "\f2f5"; }
-.bi-dice-3-fill::before { content: "\f2f6"; }
-.bi-dice-3::before { content: "\f2f7"; }
-.bi-dice-4-fill::before { content: "\f2f8"; }
-.bi-dice-4::before { content: "\f2f9"; }
-.bi-dice-5-fill::before { content: "\f2fa"; }
-.bi-dice-5::before { content: "\f2fb"; }
-.bi-dice-6-fill::before { content: "\f2fc"; }
-.bi-dice-6::before { content: "\f2fd"; }
-.bi-disc-fill::before { content: "\f2fe"; }
-.bi-disc::before { content: "\f2ff"; }
-.bi-discord::before { content: "\f300"; }
-.bi-display-fill::before { content: "\f301"; }
-.bi-display::before { content: "\f302"; }
-.bi-distribute-horizontal::before { content: "\f303"; }
-.bi-distribute-vertical::before { content: "\f304"; }
-.bi-door-closed-fill::before { content: "\f305"; }
-.bi-door-closed::before { content: "\f306"; }
-.bi-door-open-fill::before { content: "\f307"; }
-.bi-door-open::before { content: "\f308"; }
-.bi-dot::before { content: "\f309"; }
-.bi-download::before { content: "\f30a"; }
-.bi-droplet-fill::before { content: "\f30b"; }
-.bi-droplet-half::before { content: "\f30c"; }
-.bi-droplet::before { content: "\f30d"; }
-.bi-earbuds::before { content: "\f30e"; }
-.bi-easel-fill::before { content: "\f30f"; }
-.bi-easel::before { content: "\f310"; }
-.bi-egg-fill::before { content: "\f311"; }
-.bi-egg-fried::before { content: "\f312"; }
-.bi-egg::before { content: "\f313"; }
-.bi-eject-fill::before { content: "\f314"; }
-.bi-eject::before { content: "\f315"; }
-.bi-emoji-angry-fill::before { content: "\f316"; }
-.bi-emoji-angry::before { content: "\f317"; }
-.bi-emoji-dizzy-fill::before { content: "\f318"; }
-.bi-emoji-dizzy::before { content: "\f319"; }
-.bi-emoji-expressionless-fill::before { content: "\f31a"; }
-.bi-emoji-expressionless::before { content: "\f31b"; }
-.bi-emoji-frown-fill::before { content: "\f31c"; }
-.bi-emoji-frown::before { content: "\f31d"; }
-.bi-emoji-heart-eyes-fill::before { content: "\f31e"; }
-.bi-emoji-heart-eyes::before { content: "\f31f"; }
-.bi-emoji-laughing-fill::before { content: "\f320"; }
-.bi-emoji-laughing::before { content: "\f321"; }
-.bi-emoji-neutral-fill::before { content: "\f322"; }
-.bi-emoji-neutral::before { content: "\f323"; }
-.bi-emoji-smile-fill::before { content: "\f324"; }
-.bi-emoji-smile-upside-down-fill::before { content: "\f325"; }
-.bi-emoji-smile-upside-down::before { content: "\f326"; }
-.bi-emoji-smile::before { content: "\f327"; }
-.bi-emoji-sunglasses-fill::before { content: "\f328"; }
-.bi-emoji-sunglasses::before { content: "\f329"; }
-.bi-emoji-wink-fill::before { content: "\f32a"; }
-.bi-emoji-wink::before { content: "\f32b"; }
-.bi-envelope-fill::before { content: "\f32c"; }
-.bi-envelope-open-fill::before { content: "\f32d"; }
-.bi-envelope-open::before { content: "\f32e"; }
-.bi-envelope::before { content: "\f32f"; }
-.bi-eraser-fill::before { content: "\f330"; }
-.bi-eraser::before { content: "\f331"; }
-.bi-exclamation-circle-fill::before { content: "\f332"; }
-.bi-exclamation-circle::before { content: "\f333"; }
-.bi-exclamation-diamond-fill::before { content: "\f334"; }
-.bi-exclamation-diamond::before { content: "\f335"; }
-.bi-exclamation-octagon-fill::before { content: "\f336"; }
-.bi-exclamation-octagon::before { content: "\f337"; }
-.bi-exclamation-square-fill::before { content: "\f338"; }
-.bi-exclamation-square::before { content: "\f339"; }
-.bi-exclamation-triangle-fill::before { content: "\f33a"; }
-.bi-exclamation-triangle::before { content: "\f33b"; }
-.bi-exclamation::before { content: "\f33c"; }
-.bi-exclude::before { content: "\f33d"; }
-.bi-eye-fill::before { content: "\f33e"; }
-.bi-eye-slash-fill::before { content: "\f33f"; }
-.bi-eye-slash::before { content: "\f340"; }
-.bi-eye::before { content: "\f341"; }
-.bi-eyedropper::before { content: "\f342"; }
-.bi-eyeglasses::before { content: "\f343"; }
-.bi-facebook::before { content: "\f344"; }
-.bi-file-arrow-down-fill::before { content: "\f345"; }
-.bi-file-arrow-down::before { content: "\f346"; }
-.bi-file-arrow-up-fill::before { content: "\f347"; }
-.bi-file-arrow-up::before { content: "\f348"; }
-.bi-file-bar-graph-fill::before { content: "\f349"; }
-.bi-file-bar-graph::before { content: "\f34a"; }
-.bi-file-binary-fill::before { content: "\f34b"; }
-.bi-file-binary::before { content: "\f34c"; }
-.bi-file-break-fill::before { content: "\f34d"; }
-.bi-file-break::before { content: "\f34e"; }
-.bi-file-check-fill::before { content: "\f34f"; }
-.bi-file-check::before { content: "\f350"; }
-.bi-file-code-fill::before { content: "\f351"; }
-.bi-file-code::before { content: "\f352"; }
-.bi-file-diff-fill::before { content: "\f353"; }
-.bi-file-diff::before { content: "\f354"; }
-.bi-file-earmark-arrow-down-fill::before { content: "\f355"; }
-.bi-file-earmark-arrow-down::before { content: "\f356"; }
-.bi-file-earmark-arrow-up-fill::before { content: "\f357"; }
-.bi-file-earmark-arrow-up::before { content: "\f358"; }
-.bi-file-earmark-bar-graph-fill::before { content: "\f359"; }
-.bi-file-earmark-bar-graph::before { content: "\f35a"; }
-.bi-file-earmark-binary-fill::before { content: "\f35b"; }
-.bi-file-earmark-binary::before { content: "\f35c"; }
-.bi-file-earmark-break-fill::before { content: "\f35d"; }
-.bi-file-earmark-break::before { content: "\f35e"; }
-.bi-file-earmark-check-fill::before { content: "\f35f"; }
-.bi-file-earmark-check::before { content: "\f360"; }
-.bi-file-earmark-code-fill::before { content: "\f361"; }
-.bi-file-earmark-code::before { content: "\f362"; }
-.bi-file-earmark-diff-fill::before { content: "\f363"; }
-.bi-file-earmark-diff::before { content: "\f364"; }
-.bi-file-earmark-easel-fill::before { content: "\f365"; }
-.bi-file-earmark-easel::before { content: "\f366"; }
-.bi-file-earmark-excel-fill::before { content: "\f367"; }
-.bi-file-earmark-excel::before { content: "\f368"; }
-.bi-file-earmark-fill::before { content: "\f369"; }
-.bi-file-earmark-font-fill::before { content: "\f36a"; }
-.bi-file-earmark-font::before { content: "\f36b"; }
-.bi-file-earmark-image-fill::before { content: "\f36c"; }
-.bi-file-earmark-image::before { content: "\f36d"; }
-.bi-file-earmark-lock-fill::before { content: "\f36e"; }
-.bi-file-earmark-lock::before { content: "\f36f"; }
-.bi-file-earmark-lock2-fill::before { content: "\f370"; }
-.bi-file-earmark-lock2::before { content: "\f371"; }
-.bi-file-earmark-medical-fill::before { content: "\f372"; }
-.bi-file-earmark-medical::before { content: "\f373"; }
-.bi-file-earmark-minus-fill::before { content: "\f374"; }
-.bi-file-earmark-minus::before { content: "\f375"; }
-.bi-file-earmark-music-fill::before { content: "\f376"; }
-.bi-file-earmark-music::before { content: "\f377"; }
-.bi-file-earmark-person-fill::before { content: "\f378"; }
-.bi-file-earmark-person::before { content: "\f379"; }
-.bi-file-earmark-play-fill::before { content: "\f37a"; }
-.bi-file-earmark-play::before { content: "\f37b"; }
-.bi-file-earmark-plus-fill::before { content: "\f37c"; }
-.bi-file-earmark-plus::before { content: "\f37d"; }
-.bi-file-earmark-post-fill::before { content: "\f37e"; }
-.bi-file-earmark-post::before { content: "\f37f"; }
-.bi-file-earmark-ppt-fill::before { content: "\f380"; }
-.bi-file-earmark-ppt::before { content: "\f381"; }
-.bi-file-earmark-richtext-fill::before { content: "\f382"; }
-.bi-file-earmark-richtext::before { content: "\f383"; }
-.bi-file-earmark-ruled-fill::before { content: "\f384"; }
-.bi-file-earmark-ruled::before { content: "\f385"; }
-.bi-file-earmark-slides-fill::before { content: "\f386"; }
-.bi-file-earmark-slides::before { content: "\f387"; }
-.bi-file-earmark-spreadsheet-fill::before { content: "\f388"; }
-.bi-file-earmark-spreadsheet::before { content: "\f389"; }
-.bi-file-earmark-text-fill::before { content: "\f38a"; }
-.bi-file-earmark-text::before { content: "\f38b"; }
-.bi-file-earmark-word-fill::before { content: "\f38c"; }
-.bi-file-earmark-word::before { content: "\f38d"; }
-.bi-file-earmark-x-fill::before { content: "\f38e"; }
-.bi-file-earmark-x::before { content: "\f38f"; }
-.bi-file-earmark-zip-fill::before { content: "\f390"; }
-.bi-file-earmark-zip::before { content: "\f391"; }
-.bi-file-earmark::before { content: "\f392"; }
-.bi-file-easel-fill::before { content: "\f393"; }
-.bi-file-easel::before { content: "\f394"; }
-.bi-file-excel-fill::before { content: "\f395"; }
-.bi-file-excel::before { content: "\f396"; }
-.bi-file-fill::before { content: "\f397"; }
-.bi-file-font-fill::before { content: "\f398"; }
-.bi-file-font::before { content: "\f399"; }
-.bi-file-image-fill::before { content: "\f39a"; }
-.bi-file-image::before { content: "\f39b"; }
-.bi-file-lock-fill::before { content: "\f39c"; }
-.bi-file-lock::before { content: "\f39d"; }
-.bi-file-lock2-fill::before { content: "\f39e"; }
-.bi-file-lock2::before { content: "\f39f"; }
-.bi-file-medical-fill::before { content: "\f3a0"; }
-.bi-file-medical::before { content: "\f3a1"; }
-.bi-file-minus-fill::before { content: "\f3a2"; }
-.bi-file-minus::before { content: "\f3a3"; }
-.bi-file-music-fill::before { content: "\f3a4"; }
-.bi-file-music::before { content: "\f3a5"; }
-.bi-file-person-fill::before { content: "\f3a6"; }
-.bi-file-person::before { content: "\f3a7"; }
-.bi-file-play-fill::before { content: "\f3a8"; }
-.bi-file-play::before { content: "\f3a9"; }
-.bi-file-plus-fill::before { content: "\f3aa"; }
-.bi-file-plus::before { content: "\f3ab"; }
-.bi-file-post-fill::before { content: "\f3ac"; }
-.bi-file-post::before { content: "\f3ad"; }
-.bi-file-ppt-fill::before { content: "\f3ae"; }
-.bi-file-ppt::before { content: "\f3af"; }
-.bi-file-richtext-fill::before { content: "\f3b0"; }
-.bi-file-richtext::before { content: "\f3b1"; }
-.bi-file-ruled-fill::before { content: "\f3b2"; }
-.bi-file-ruled::before { content: "\f3b3"; }
-.bi-file-slides-fill::before { content: "\f3b4"; }
-.bi-file-slides::before { content: "\f3b5"; }
-.bi-file-spreadsheet-fill::before { content: "\f3b6"; }
-.bi-file-spreadsheet::before { content: "\f3b7"; }
-.bi-file-text-fill::before { content: "\f3b8"; }
-.bi-file-text::before { content: "\f3b9"; }
-.bi-file-word-fill::before { content: "\f3ba"; }
-.bi-file-word::before { content: "\f3bb"; }
-.bi-file-x-fill::before { content: "\f3bc"; }
-.bi-file-x::before { content: "\f3bd"; }
-.bi-file-zip-fill::before { content: "\f3be"; }
-.bi-file-zip::before { content: "\f3bf"; }
-.bi-file::before { content: "\f3c0"; }
-.bi-files-alt::before { content: "\f3c1"; }
-.bi-files::before { content: "\f3c2"; }
-.bi-film::before { content: "\f3c3"; }
-.bi-filter-circle-fill::before { content: "\f3c4"; }
-.bi-filter-circle::before { content: "\f3c5"; }
-.bi-filter-left::before { content: "\f3c6"; }
-.bi-filter-right::before { content: "\f3c7"; }
-.bi-filter-square-fill::before { content: "\f3c8"; }
-.bi-filter-square::before { content: "\f3c9"; }
-.bi-filter::before { content: "\f3ca"; }
-.bi-flag-fill::before { content: "\f3cb"; }
-.bi-flag::before { content: "\f3cc"; }
-.bi-flower1::before { content: "\f3cd"; }
-.bi-flower2::before { content: "\f3ce"; }
-.bi-flower3::before { content: "\f3cf"; }
-.bi-folder-check::before { content: "\f3d0"; }
-.bi-folder-fill::before { content: "\f3d1"; }
-.bi-folder-minus::before { content: "\f3d2"; }
-.bi-folder-plus::before { content: "\f3d3"; }
-.bi-folder-symlink-fill::before { content: "\f3d4"; }
-.bi-folder-symlink::before { content: "\f3d5"; }
-.bi-folder-x::before { content: "\f3d6"; }
-.bi-folder::before { content: "\f3d7"; }
-.bi-folder2-open::before { content: "\f3d8"; }
-.bi-folder2::before { content: "\f3d9"; }
-.bi-fonts::before { content: "\f3da"; }
-.bi-forward-fill::before { content: "\f3db"; }
-.bi-forward::before { content: "\f3dc"; }
-.bi-front::before { content: "\f3dd"; }
-.bi-fullscreen-exit::before { content: "\f3de"; }
-.bi-fullscreen::before { content: "\f3df"; }
-.bi-funnel-fill::before { content: "\f3e0"; }
-.bi-funnel::before { content: "\f3e1"; }
-.bi-gear-fill::before { content: "\f3e2"; }
-.bi-gear-wide-connected::before { content: "\f3e3"; }
-.bi-gear-wide::before { content: "\f3e4"; }
-.bi-gear::before { content: "\f3e5"; }
-.bi-gem::before { content: "\f3e6"; }
-.bi-geo-alt-fill::before { content: "\f3e7"; }
-.bi-geo-alt::before { content: "\f3e8"; }
-.bi-geo-fill::before { content: "\f3e9"; }
-.bi-geo::before { content: "\f3ea"; }
-.bi-gift-fill::before { content: "\f3eb"; }
-.bi-gift::before { content: "\f3ec"; }
-.bi-github::before { content: "\f3ed"; }
-.bi-globe::before { content: "\f3ee"; }
-.bi-globe2::before { content: "\f3ef"; }
-.bi-google::before { content: "\f3f0"; }
-.bi-graph-down::before { content: "\f3f1"; }
-.bi-graph-up::before { content: "\f3f2"; }
-.bi-grid-1x2-fill::before { content: "\f3f3"; }
-.bi-grid-1x2::before { content: "\f3f4"; }
-.bi-grid-3x2-gap-fill::before { content: "\f3f5"; }
-.bi-grid-3x2-gap::before { content: "\f3f6"; }
-.bi-grid-3x2::before { content: "\f3f7"; }
-.bi-grid-3x3-gap-fill::before { content: "\f3f8"; }
-.bi-grid-3x3-gap::before { content: "\f3f9"; }
-.bi-grid-3x3::before { content: "\f3fa"; }
-.bi-grid-fill::before { content: "\f3fb"; }
-.bi-grid::before { content: "\f3fc"; }
-.bi-grip-horizontal::before { content: "\f3fd"; }
-.bi-grip-vertical::before { content: "\f3fe"; }
-.bi-hammer::before { content: "\f3ff"; }
-.bi-hand-index-fill::before { content: "\f400"; }
-.bi-hand-index-thumb-fill::before { content: "\f401"; }
-.bi-hand-index-thumb::before { content: "\f402"; }
-.bi-hand-index::before { content: "\f403"; }
-.bi-hand-thumbs-down-fill::before { content: "\f404"; }
-.bi-hand-thumbs-down::before { content: "\f405"; }
-.bi-hand-thumbs-up-fill::before { content: "\f406"; }
-.bi-hand-thumbs-up::before { content: "\f407"; }
-.bi-handbag-fill::before { content: "\f408"; }
-.bi-handbag::before { content: "\f409"; }
-.bi-hash::before { content: "\f40a"; }
-.bi-hdd-fill::before { content: "\f40b"; }
-.bi-hdd-network-fill::before { content: "\f40c"; }
-.bi-hdd-network::before { content: "\f40d"; }
-.bi-hdd-rack-fill::before { content: "\f40e"; }
-.bi-hdd-rack::before { content: "\f40f"; }
-.bi-hdd-stack-fill::before { content: "\f410"; }
-.bi-hdd-stack::before { content: "\f411"; }
-.bi-hdd::before { content: "\f412"; }
-.bi-headphones::before { content: "\f413"; }
-.bi-headset::before { content: "\f414"; }
-.bi-heart-fill::before { content: "\f415"; }
-.bi-heart-half::before { content: "\f416"; }
-.bi-heart::before { content: "\f417"; }
-.bi-heptagon-fill::before { content: "\f418"; }
-.bi-heptagon-half::before { content: "\f419"; }
-.bi-heptagon::before { content: "\f41a"; }
-.bi-hexagon-fill::before { content: "\f41b"; }
-.bi-hexagon-half::before { content: "\f41c"; }
-.bi-hexagon::before { content: "\f41d"; }
-.bi-hourglass-bottom::before { content: "\f41e"; }
-.bi-hourglass-split::before { content: "\f41f"; }
-.bi-hourglass-top::before { content: "\f420"; }
-.bi-hourglass::before { content: "\f421"; }
-.bi-house-door-fill::before { content: "\f422"; }
-.bi-house-door::before { content: "\f423"; }
-.bi-house-fill::before { content: "\f424"; }
-.bi-house::before { content: "\f425"; }
-.bi-hr::before { content: "\f426"; }
-.bi-hurricane::before { content: "\f427"; }
-.bi-image-alt::before { content: "\f428"; }
-.bi-image-fill::before { content: "\f429"; }
-.bi-image::before { content: "\f42a"; }
-.bi-images::before { content: "\f42b"; }
-.bi-inbox-fill::before { content: "\f42c"; }
-.bi-inbox::before { content: "\f42d"; }
-.bi-inboxes-fill::before { content: "\f42e"; }
-.bi-inboxes::before { content: "\f42f"; }
-.bi-info-circle-fill::before { content: "\f430"; }
-.bi-info-circle::before { content: "\f431"; }
-.bi-info-square-fill::before { content: "\f432"; }
-.bi-info-square::before { content: "\f433"; }
-.bi-info::before { content: "\f434"; }
-.bi-input-cursor-text::before { content: "\f435"; }
-.bi-input-cursor::before { content: "\f436"; }
-.bi-instagram::before { content: "\f437"; }
-.bi-intersect::before { content: "\f438"; }
-.bi-journal-album::before { content: "\f439"; }
-.bi-journal-arrow-down::before { content: "\f43a"; }
-.bi-journal-arrow-up::before { content: "\f43b"; }
-.bi-journal-bookmark-fill::before { content: "\f43c"; }
-.bi-journal-bookmark::before { content: "\f43d"; }
-.bi-journal-check::before { content: "\f43e"; }
-.bi-journal-code::before { content: "\f43f"; }
-.bi-journal-medical::before { content: "\f440"; }
-.bi-journal-minus::before { content: "\f441"; }
-.bi-journal-plus::before { content: "\f442"; }
-.bi-journal-richtext::before { content: "\f443"; }
-.bi-journal-text::before { content: "\f444"; }
-.bi-journal-x::before { content: "\f445"; }
-.bi-journal::before { content: "\f446"; }
-.bi-journals::before { content: "\f447"; }
-.bi-joystick::before { content: "\f448"; }
-.bi-justify-left::before { content: "\f449"; }
-.bi-justify-right::before { content: "\f44a"; }
-.bi-justify::before { content: "\f44b"; }
-.bi-kanban-fill::before { content: "\f44c"; }
-.bi-kanban::before { content: "\f44d"; }
-.bi-key-fill::before { content: "\f44e"; }
-.bi-key::before { content: "\f44f"; }
-.bi-keyboard-fill::before { content: "\f450"; }
-.bi-keyboard::before { content: "\f451"; }
-.bi-ladder::before { content: "\f452"; }
-.bi-lamp-fill::before { content: "\f453"; }
-.bi-lamp::before { content: "\f454"; }
-.bi-laptop-fill::before { content: "\f455"; }
-.bi-laptop::before { content: "\f456"; }
-.bi-layer-backward::before { content: "\f457"; }
-.bi-layer-forward::before { content: "\f458"; }
-.bi-layers-fill::before { content: "\f459"; }
-.bi-layers-half::before { content: "\f45a"; }
-.bi-layers::before { content: "\f45b"; }
-.bi-layout-sidebar-inset-reverse::before { content: "\f45c"; }
-.bi-layout-sidebar-inset::before { content: "\f45d"; }
-.bi-layout-sidebar-reverse::before { content: "\f45e"; }
-.bi-layout-sidebar::before { content: "\f45f"; }
-.bi-layout-split::before { content: "\f460"; }
-.bi-layout-text-sidebar-reverse::before { content: "\f461"; }
-.bi-layout-text-sidebar::before { content: "\f462"; }
-.bi-layout-text-window-reverse::before { content: "\f463"; }
-.bi-layout-text-window::before { content: "\f464"; }
-.bi-layout-three-columns::before { content: "\f465"; }
-.bi-layout-wtf::before { content: "\f466"; }
-.bi-life-preserver::before { content: "\f467"; }
-.bi-lightbulb-fill::before { content: "\f468"; }
-.bi-lightbulb-off-fill::before { content: "\f469"; }
-.bi-lightbulb-off::before { content: "\f46a"; }
-.bi-lightbulb::before { content: "\f46b"; }
-.bi-lightning-charge-fill::before { content: "\f46c"; }
-.bi-lightning-charge::before { content: "\f46d"; }
-.bi-lightning-fill::before { content: "\f46e"; }
-.bi-lightning::before { content: "\f46f"; }
-.bi-link-45deg::before { content: "\f470"; }
-.bi-link::before { content: "\f471"; }
-.bi-linkedin::before { content: "\f472"; }
-.bi-list-check::before { content: "\f473"; }
-.bi-list-nested::before { content: "\f474"; }
-.bi-list-ol::before { content: "\f475"; }
-.bi-list-stars::before { content: "\f476"; }
-.bi-list-task::before { content: "\f477"; }
-.bi-list-ul::before { content: "\f478"; }
-.bi-list::before { content: "\f479"; }
-.bi-lock-fill::before { content: "\f47a"; }
-.bi-lock::before { content: "\f47b"; }
-.bi-mailbox::before { content: "\f47c"; }
-.bi-mailbox2::before { content: "\f47d"; }
-.bi-map-fill::before { content: "\f47e"; }
-.bi-map::before { content: "\f47f"; }
-.bi-markdown-fill::before { content: "\f480"; }
-.bi-markdown::before { content: "\f481"; }
-.bi-mask::before { content: "\f482"; }
-.bi-megaphone-fill::before { content: "\f483"; }
-.bi-megaphone::before { content: "\f484"; }
-.bi-menu-app-fill::before { content: "\f485"; }
-.bi-menu-app::before { content: "\f486"; }
-.bi-menu-button-fill::before { content: "\f487"; }
-.bi-menu-button-wide-fill::before { content: "\f488"; }
-.bi-menu-button-wide::before { content: "\f489"; }
-.bi-menu-button::before { content: "\f48a"; }
-.bi-menu-down::before { content: "\f48b"; }
-.bi-menu-up::before { content: "\f48c"; }
-.bi-mic-fill::before { content: "\f48d"; }
-.bi-mic-mute-fill::before { content: "\f48e"; }
-.bi-mic-mute::before { content: "\f48f"; }
-.bi-mic::before { content: "\f490"; }
-.bi-minecart-loaded::before { content: "\f491"; }
-.bi-minecart::before { content: "\f492"; }
-.bi-moisture::before { content: "\f493"; }
-.bi-moon-fill::before { content: "\f494"; }
-.bi-moon-stars-fill::before { content: "\f495"; }
-.bi-moon-stars::before { content: "\f496"; }
-.bi-moon::before { content: "\f497"; }
-.bi-mouse-fill::before { content: "\f498"; }
-.bi-mouse::before { content: "\f499"; }
-.bi-mouse2-fill::before { content: "\f49a"; }
-.bi-mouse2::before { content: "\f49b"; }
-.bi-mouse3-fill::before { content: "\f49c"; }
-.bi-mouse3::before { content: "\f49d"; }
-.bi-music-note-beamed::before { content: "\f49e"; }
-.bi-music-note-list::before { content: "\f49f"; }
-.bi-music-note::before { content: "\f4a0"; }
-.bi-music-player-fill::before { content: "\f4a1"; }
-.bi-music-player::before { content: "\f4a2"; }
-.bi-newspaper::before { content: "\f4a3"; }
-.bi-node-minus-fill::before { content: "\f4a4"; }
-.bi-node-minus::before { content: "\f4a5"; }
-.bi-node-plus-fill::before { content: "\f4a6"; }
-.bi-node-plus::before { content: "\f4a7"; }
-.bi-nut-fill::before { content: "\f4a8"; }
-.bi-nut::before { content: "\f4a9"; }
-.bi-octagon-fill::before { content: "\f4aa"; }
-.bi-octagon-half::before { content: "\f4ab"; }
-.bi-octagon::before { content: "\f4ac"; }
-.bi-option::before { content: "\f4ad"; }
-.bi-outlet::before { content: "\f4ae"; }
-.bi-paint-bucket::before { content: "\f4af"; }
-.bi-palette-fill::before { content: "\f4b0"; }
-.bi-palette::before { content: "\f4b1"; }
-.bi-palette2::before { content: "\f4b2"; }
-.bi-paperclip::before { content: "\f4b3"; }
-.bi-paragraph::before { content: "\f4b4"; }
-.bi-patch-check-fill::before { content: "\f4b5"; }
-.bi-patch-check::before { content: "\f4b6"; }
-.bi-patch-exclamation-fill::before { content: "\f4b7"; }
-.bi-patch-exclamation::before { content: "\f4b8"; }
-.bi-patch-minus-fill::before { content: "\f4b9"; }
-.bi-patch-minus::before { content: "\f4ba"; }
-.bi-patch-plus-fill::before { content: "\f4bb"; }
-.bi-patch-plus::before { content: "\f4bc"; }
-.bi-patch-question-fill::before { content: "\f4bd"; }
-.bi-patch-question::before { content: "\f4be"; }
-.bi-pause-btn-fill::before { content: "\f4bf"; }
-.bi-pause-btn::before { content: "\f4c0"; }
-.bi-pause-circle-fill::before { content: "\f4c1"; }
-.bi-pause-circle::before { content: "\f4c2"; }
-.bi-pause-fill::before { content: "\f4c3"; }
-.bi-pause::before { content: "\f4c4"; }
-.bi-peace-fill::before { content: "\f4c5"; }
-.bi-peace::before { content: "\f4c6"; }
-.bi-pen-fill::before { content: "\f4c7"; }
-.bi-pen::before { content: "\f4c8"; }
-.bi-pencil-fill::before { content: "\f4c9"; }
-.bi-pencil-square::before { content: "\f4ca"; }
-.bi-pencil::before { content: "\f4cb"; }
-.bi-pentagon-fill::before { content: "\f4cc"; }
-.bi-pentagon-half::before { content: "\f4cd"; }
-.bi-pentagon::before { content: "\f4ce"; }
-.bi-people-fill::before { content: "\f4cf"; }
-.bi-people::before { content: "\f4d0"; }
-.bi-percent::before { content: "\f4d1"; }
-.bi-person-badge-fill::before { content: "\f4d2"; }
-.bi-person-badge::before { content: "\f4d3"; }
-.bi-person-bounding-box::before { content: "\f4d4"; }
-.bi-person-check-fill::before { content: "\f4d5"; }
-.bi-person-check::before { content: "\f4d6"; }
-.bi-person-circle::before { content: "\f4d7"; }
-.bi-person-dash-fill::before { content: "\f4d8"; }
-.bi-person-dash::before { content: "\f4d9"; }
-.bi-person-fill::before { content: "\f4da"; }
-.bi-person-lines-fill::before { content: "\f4db"; }
-.bi-person-plus-fill::before { content: "\f4dc"; }
-.bi-person-plus::before { content: "\f4dd"; }
-.bi-person-square::before { content: "\f4de"; }
-.bi-person-x-fill::before { content: "\f4df"; }
-.bi-person-x::before { content: "\f4e0"; }
-.bi-person::before { content: "\f4e1"; }
-.bi-phone-fill::before { content: "\f4e2"; }
-.bi-phone-landscape-fill::before { content: "\f4e3"; }
-.bi-phone-landscape::before { content: "\f4e4"; }
-.bi-phone-vibrate-fill::before { content: "\f4e5"; }
-.bi-phone-vibrate::before { content: "\f4e6"; }
-.bi-phone::before { content: "\f4e7"; }
-.bi-pie-chart-fill::before { content: "\f4e8"; }
-.bi-pie-chart::before { content: "\f4e9"; }
-.bi-pin-angle-fill::before { content: "\f4ea"; }
-.bi-pin-angle::before { content: "\f4eb"; }
-.bi-pin-fill::before { content: "\f4ec"; }
-.bi-pin::before { content: "\f4ed"; }
-.bi-pip-fill::before { content: "\f4ee"; }
-.bi-pip::before { content: "\f4ef"; }
-.bi-play-btn-fill::before { content: "\f4f0"; }
-.bi-play-btn::before { content: "\f4f1"; }
-.bi-play-circle-fill::before { content: "\f4f2"; }
-.bi-play-circle::before { content: "\f4f3"; }
-.bi-play-fill::before { content: "\f4f4"; }
-.bi-play::before { content: "\f4f5"; }
-.bi-plug-fill::before { content: "\f4f6"; }
-.bi-plug::before { content: "\f4f7"; }
-.bi-plus-circle-dotted::before { content: "\f4f8"; }
-.bi-plus-circle-fill::before { content: "\f4f9"; }
-.bi-plus-circle::before { content: "\f4fa"; }
-.bi-plus-square-dotted::before { content: "\f4fb"; }
-.bi-plus-square-fill::before { content: "\f4fc"; }
-.bi-plus-square::before { content: "\f4fd"; }
-.bi-plus::before { content: "\f4fe"; }
-.bi-power::before { content: "\f4ff"; }
-.bi-printer-fill::before { content: "\f500"; }
-.bi-printer::before { content: "\f501"; }
-.bi-puzzle-fill::before { content: "\f502"; }
-.bi-puzzle::before { content: "\f503"; }
-.bi-question-circle-fill::before { content: "\f504"; }
-.bi-question-circle::before { content: "\f505"; }
-.bi-question-diamond-fill::before { content: "\f506"; }
-.bi-question-diamond::before { content: "\f507"; }
-.bi-question-octagon-fill::before { content: "\f508"; }
-.bi-question-octagon::before { content: "\f509"; }
-.bi-question-square-fill::before { content: "\f50a"; }
-.bi-question-square::before { content: "\f50b"; }
-.bi-question::before { content: "\f50c"; }
-.bi-rainbow::before { content: "\f50d"; }
-.bi-receipt-cutoff::before { content: "\f50e"; }
-.bi-receipt::before { content: "\f50f"; }
-.bi-reception-0::before { content: "\f510"; }
-.bi-reception-1::before { content: "\f511"; }
-.bi-reception-2::before { content: "\f512"; }
-.bi-reception-3::before { content: "\f513"; }
-.bi-reception-4::before { content: "\f514"; }
-.bi-record-btn-fill::before { content: "\f515"; }
-.bi-record-btn::before { content: "\f516"; }
-.bi-record-circle-fill::before { content: "\f517"; }
-.bi-record-circle::before { content: "\f518"; }
-.bi-record-fill::before { content: "\f519"; }
-.bi-record::before { content: "\f51a"; }
-.bi-record2-fill::before { content: "\f51b"; }
-.bi-record2::before { content: "\f51c"; }
-.bi-reply-all-fill::before { content: "\f51d"; }
-.bi-reply-all::before { content: "\f51e"; }
-.bi-reply-fill::before { content: "\f51f"; }
-.bi-reply::before { content: "\f520"; }
-.bi-rss-fill::before { content: "\f521"; }
-.bi-rss::before { content: "\f522"; }
-.bi-rulers::before { content: "\f523"; }
-.bi-save-fill::before { content: "\f524"; }
-.bi-save::before { content: "\f525"; }
-.bi-save2-fill::before { content: "\f526"; }
-.bi-save2::before { content: "\f527"; }
-.bi-scissors::before { content: "\f528"; }
-.bi-screwdriver::before { content: "\f529"; }
-.bi-search::before { content: "\f52a"; }
-.bi-segmented-nav::before { content: "\f52b"; }
-.bi-server::before { content: "\f52c"; }
-.bi-share-fill::before { content: "\f52d"; }
-.bi-share::before { content: "\f52e"; }
-.bi-shield-check::before { content: "\f52f"; }
-.bi-shield-exclamation::before { content: "\f530"; }
-.bi-shield-fill-check::before { content: "\f531"; }
-.bi-shield-fill-exclamation::before { content: "\f532"; }
-.bi-shield-fill-minus::before { content: "\f533"; }
-.bi-shield-fill-plus::before { content: "\f534"; }
-.bi-shield-fill-x::before { content: "\f535"; }
-.bi-shield-fill::before { content: "\f536"; }
-.bi-shield-lock-fill::before { content: "\f537"; }
-.bi-shield-lock::before { content: "\f538"; }
-.bi-shield-minus::before { content: "\f539"; }
-.bi-shield-plus::before { content: "\f53a"; }
-.bi-shield-shaded::before { content: "\f53b"; }
-.bi-shield-slash-fill::before { content: "\f53c"; }
-.bi-shield-slash::before { content: "\f53d"; }
-.bi-shield-x::before { content: "\f53e"; }
-.bi-shield::before { content: "\f53f"; }
-.bi-shift-fill::before { content: "\f540"; }
-.bi-shift::before { content: "\f541"; }
-.bi-shop-window::before { content: "\f542"; }
-.bi-shop::before { content: "\f543"; }
-.bi-shuffle::before { content: "\f544"; }
-.bi-signpost-2-fill::before { content: "\f545"; }
-.bi-signpost-2::before { content: "\f546"; }
-.bi-signpost-fill::before { content: "\f547"; }
-.bi-signpost-split-fill::before { content: "\f548"; }
-.bi-signpost-split::before { content: "\f549"; }
-.bi-signpost::before { content: "\f54a"; }
-.bi-sim-fill::before { content: "\f54b"; }
-.bi-sim::before { content: "\f54c"; }
-.bi-skip-backward-btn-fill::before { content: "\f54d"; }
-.bi-skip-backward-btn::before { content: "\f54e"; }
-.bi-skip-backward-circle-fill::before { content: "\f54f"; }
-.bi-skip-backward-circle::before { content: "\f550"; }
-.bi-skip-backward-fill::before { content: "\f551"; }
-.bi-skip-backward::before { content: "\f552"; }
-.bi-skip-end-btn-fill::before { content: "\f553"; }
-.bi-skip-end-btn::before { content: "\f554"; }
-.bi-skip-end-circle-fill::before { content: "\f555"; }
-.bi-skip-end-circle::before { content: "\f556"; }
-.bi-skip-end-fill::before { content: "\f557"; }
-.bi-skip-end::before { content: "\f558"; }
-.bi-skip-forward-btn-fill::before { content: "\f559"; }
-.bi-skip-forward-btn::before { content: "\f55a"; }
-.bi-skip-forward-circle-fill::before { content: "\f55b"; }
-.bi-skip-forward-circle::before { content: "\f55c"; }
-.bi-skip-forward-fill::before { content: "\f55d"; }
-.bi-skip-forward::before { content: "\f55e"; }
-.bi-skip-start-btn-fill::before { content: "\f55f"; }
-.bi-skip-start-btn::before { content: "\f560"; }
-.bi-skip-start-circle-fill::before { content: "\f561"; }
-.bi-skip-start-circle::before { content: "\f562"; }
-.bi-skip-start-fill::before { content: "\f563"; }
-.bi-skip-start::before { content: "\f564"; }
-.bi-slack::before { content: "\f565"; }
-.bi-slash-circle-fill::before { content: "\f566"; }
-.bi-slash-circle::before { content: "\f567"; }
-.bi-slash-square-fill::before { content: "\f568"; }
-.bi-slash-square::before { content: "\f569"; }
-.bi-slash::before { content: "\f56a"; }
-.bi-sliders::before { content: "\f56b"; }
-.bi-smartwatch::before { content: "\f56c"; }
-.bi-snow::before { content: "\f56d"; }
-.bi-snow2::before { content: "\f56e"; }
-.bi-snow3::before { content: "\f56f"; }
-.bi-sort-alpha-down-alt::before { content: "\f570"; }
-.bi-sort-alpha-down::before { content: "\f571"; }
-.bi-sort-alpha-up-alt::before { content: "\f572"; }
-.bi-sort-alpha-up::before { content: "\f573"; }
-.bi-sort-down-alt::before { content: "\f574"; }
-.bi-sort-down::before { content: "\f575"; }
-.bi-sort-numeric-down-alt::before { content: "\f576"; }
-.bi-sort-numeric-down::before { content: "\f577"; }
-.bi-sort-numeric-up-alt::before { content: "\f578"; }
-.bi-sort-numeric-up::before { content: "\f579"; }
-.bi-sort-up-alt::before { content: "\f57a"; }
-.bi-sort-up::before { content: "\f57b"; }
-.bi-soundwave::before { content: "\f57c"; }
-.bi-speaker-fill::before { content: "\f57d"; }
-.bi-speaker::before { content: "\f57e"; }
-.bi-speedometer::before { content: "\f57f"; }
-.bi-speedometer2::before { content: "\f580"; }
-.bi-spellcheck::before { content: "\f581"; }
-.bi-square-fill::before { content: "\f582"; }
-.bi-square-half::before { content: "\f583"; }
-.bi-square::before { content: "\f584"; }
-.bi-stack::before { content: "\f585"; }
-.bi-star-fill::before { content: "\f586"; }
-.bi-star-half::before { content: "\f587"; }
-.bi-star::before { content: "\f588"; }
-.bi-stars::before { content: "\f589"; }
-.bi-stickies-fill::before { content: "\f58a"; }
-.bi-stickies::before { content: "\f58b"; }
-.bi-sticky-fill::before { content: "\f58c"; }
-.bi-sticky::before { content: "\f58d"; }
-.bi-stop-btn-fill::before { content: "\f58e"; }
-.bi-stop-btn::before { content: "\f58f"; }
-.bi-stop-circle-fill::before { content: "\f590"; }
-.bi-stop-circle::before { content: "\f591"; }
-.bi-stop-fill::before { content: "\f592"; }
-.bi-stop::before { content: "\f593"; }
-.bi-stoplights-fill::before { content: "\f594"; }
-.bi-stoplights::before { content: "\f595"; }
-.bi-stopwatch-fill::before { content: "\f596"; }
-.bi-stopwatch::before { content: "\f597"; }
-.bi-subtract::before { content: "\f598"; }
-.bi-suit-club-fill::before { content: "\f599"; }
-.bi-suit-club::before { content: "\f59a"; }
-.bi-suit-diamond-fill::before { content: "\f59b"; }
-.bi-suit-diamond::before { content: "\f59c"; }
-.bi-suit-heart-fill::before { content: "\f59d"; }
-.bi-suit-heart::before { content: "\f59e"; }
-.bi-suit-spade-fill::before { content: "\f59f"; }
-.bi-suit-spade::before { content: "\f5a0"; }
-.bi-sun-fill::before { content: "\f5a1"; }
-.bi-sun::before { content: "\f5a2"; }
-.bi-sunglasses::before { content: "\f5a3"; }
-.bi-sunrise-fill::before { content: "\f5a4"; }
-.bi-sunrise::before { content: "\f5a5"; }
-.bi-sunset-fill::before { content: "\f5a6"; }
-.bi-sunset::before { content: "\f5a7"; }
-.bi-symmetry-horizontal::before { content: "\f5a8"; }
-.bi-symmetry-vertical::before { content: "\f5a9"; }
-.bi-table::before { content: "\f5aa"; }
-.bi-tablet-fill::before { content: "\f5ab"; }
-.bi-tablet-landscape-fill::before { content: "\f5ac"; }
-.bi-tablet-landscape::before { content: "\f5ad"; }
-.bi-tablet::before { content: "\f5ae"; }
-.bi-tag-fill::before { content: "\f5af"; }
-.bi-tag::before { content: "\f5b0"; }
-.bi-tags-fill::before { content: "\f5b1"; }
-.bi-tags::before { content: "\f5b2"; }
-.bi-telegram::before { content: "\f5b3"; }
-.bi-telephone-fill::before { content: "\f5b4"; }
-.bi-telephone-forward-fill::before { content: "\f5b5"; }
-.bi-telephone-forward::before { content: "\f5b6"; }
-.bi-telephone-inbound-fill::before { content: "\f5b7"; }
-.bi-telephone-inbound::before { content: "\f5b8"; }
-.bi-telephone-minus-fill::before { content: "\f5b9"; }
-.bi-telephone-minus::before { content: "\f5ba"; }
-.bi-telephone-outbound-fill::before { content: "\f5bb"; }
-.bi-telephone-outbound::before { content: "\f5bc"; }
-.bi-telephone-plus-fill::before { content: "\f5bd"; }
-.bi-telephone-plus::before { content: "\f5be"; }
-.bi-telephone-x-fill::before { content: "\f5bf"; }
-.bi-telephone-x::before { content: "\f5c0"; }
-.bi-telephone::before { content: "\f5c1"; }
-.bi-terminal-fill::before { content: "\f5c2"; }
-.bi-terminal::before { content: "\f5c3"; }
-.bi-text-center::before { content: "\f5c4"; }
-.bi-text-indent-left::before { content: "\f5c5"; }
-.bi-text-indent-right::before { content: "\f5c6"; }
-.bi-text-left::before { content: "\f5c7"; }
-.bi-text-paragraph::before { content: "\f5c8"; }
-.bi-text-right::before { content: "\f5c9"; }
-.bi-textarea-resize::before { content: "\f5ca"; }
-.bi-textarea-t::before { content: "\f5cb"; }
-.bi-textarea::before { content: "\f5cc"; }
-.bi-thermometer-half::before { content: "\f5cd"; }
-.bi-thermometer-high::before { content: "\f5ce"; }
-.bi-thermometer-low::before { content: "\f5cf"; }
-.bi-thermometer-snow::before { content: "\f5d0"; }
-.bi-thermometer-sun::before { content: "\f5d1"; }
-.bi-thermometer::before { content: "\f5d2"; }
-.bi-three-dots-vertical::before { content: "\f5d3"; }
-.bi-three-dots::before { content: "\f5d4"; }
-.bi-toggle-off::before { content: "\f5d5"; }
-.bi-toggle-on::before { content: "\f5d6"; }
-.bi-toggle2-off::before { content: "\f5d7"; }
-.bi-toggle2-on::before { content: "\f5d8"; }
-.bi-toggles::before { content: "\f5d9"; }
-.bi-toggles2::before { content: "\f5da"; }
-.bi-tools::before { content: "\f5db"; }
-.bi-tornado::before { content: "\f5dc"; }
-.bi-trash-fill::before { content: "\f5dd"; }
-.bi-trash::before { content: "\f5de"; }
-.bi-trash2-fill::before { content: "\f5df"; }
-.bi-trash2::before { content: "\f5e0"; }
-.bi-tree-fill::before { content: "\f5e1"; }
-.bi-tree::before { content: "\f5e2"; }
-.bi-triangle-fill::before { content: "\f5e3"; }
-.bi-triangle-half::before { content: "\f5e4"; }
-.bi-triangle::before { content: "\f5e5"; }
-.bi-trophy-fill::before { content: "\f5e6"; }
-.bi-trophy::before { content: "\f5e7"; }
-.bi-tropical-storm::before { content: "\f5e8"; }
-.bi-truck-flatbed::before { content: "\f5e9"; }
-.bi-truck::before { content: "\f5ea"; }
-.bi-tsunami::before { content: "\f5eb"; }
-.bi-tv-fill::before { content: "\f5ec"; }
-.bi-tv::before { content: "\f5ed"; }
-.bi-twitch::before { content: "\f5ee"; }
-.bi-twitter::before { content: "\f5ef"; }
-.bi-type-bold::before { content: "\f5f0"; }
-.bi-type-h1::before { content: "\f5f1"; }
-.bi-type-h2::before { content: "\f5f2"; }
-.bi-type-h3::before { content: "\f5f3"; }
-.bi-type-italic::before { content: "\f5f4"; }
-.bi-type-strikethrough::before { content: "\f5f5"; }
-.bi-type-underline::before { content: "\f5f6"; }
-.bi-type::before { content: "\f5f7"; }
-.bi-ui-checks-grid::before { content: "\f5f8"; }
-.bi-ui-checks::before { content: "\f5f9"; }
-.bi-ui-radios-grid::before { content: "\f5fa"; }
-.bi-ui-radios::before { content: "\f5fb"; }
-.bi-umbrella-fill::before { content: "\f5fc"; }
-.bi-umbrella::before { content: "\f5fd"; }
-.bi-union::before { content: "\f5fe"; }
-.bi-unlock-fill::before { content: "\f5ff"; }
-.bi-unlock::before { content: "\f600"; }
-.bi-upc-scan::before { content: "\f601"; }
-.bi-upc::before { content: "\f602"; }
-.bi-upload::before { content: "\f603"; }
-.bi-vector-pen::before { content: "\f604"; }
-.bi-view-list::before { content: "\f605"; }
-.bi-view-stacked::before { content: "\f606"; }
-.bi-vinyl-fill::before { content: "\f607"; }
-.bi-vinyl::before { content: "\f608"; }
-.bi-voicemail::before { content: "\f609"; }
-.bi-volume-down-fill::before { content: "\f60a"; }
-.bi-volume-down::before { content: "\f60b"; }
-.bi-volume-mute-fill::before { content: "\f60c"; }
-.bi-volume-mute::before { content: "\f60d"; }
-.bi-volume-off-fill::before { content: "\f60e"; }
-.bi-volume-off::before { content: "\f60f"; }
-.bi-volume-up-fill::before { content: "\f610"; }
-.bi-volume-up::before { content: "\f611"; }
-.bi-vr::before { content: "\f612"; }
-.bi-wallet-fill::before { content: "\f613"; }
-.bi-wallet::before { content: "\f614"; }
-.bi-wallet2::before { content: "\f615"; }
-.bi-watch::before { content: "\f616"; }
-.bi-water::before { content: "\f617"; }
-.bi-whatsapp::before { content: "\f618"; }
-.bi-wifi-1::before { content: "\f619"; }
-.bi-wifi-2::before { content: "\f61a"; }
-.bi-wifi-off::before { content: "\f61b"; }
-.bi-wifi::before { content: "\f61c"; }
-.bi-wind::before { content: "\f61d"; }
-.bi-window-dock::before { content: "\f61e"; }
-.bi-window-sidebar::before { content: "\f61f"; }
-.bi-window::before { content: "\f620"; }
-.bi-wrench::before { content: "\f621"; }
-.bi-x-circle-fill::before { content: "\f622"; }
-.bi-x-circle::before { content: "\f623"; }
-.bi-x-diamond-fill::before { content: "\f624"; }
-.bi-x-diamond::before { content: "\f625"; }
-.bi-x-octagon-fill::before { content: "\f626"; }
-.bi-x-octagon::before { content: "\f627"; }
-.bi-x-square-fill::before { content: "\f628"; }
-.bi-x-square::before { content: "\f629"; }
-.bi-x::before { content: "\f62a"; }
-.bi-youtube::before { content: "\f62b"; }
-.bi-zoom-in::before { content: "\f62c"; }
-.bi-zoom-out::before { content: "\f62d"; }
-.bi-bank::before { content: "\f62e"; }
-.bi-bank2::before { content: "\f62f"; }
-.bi-bell-slash-fill::before { content: "\f630"; }
-.bi-bell-slash::before { content: "\f631"; }
-.bi-cash-coin::before { content: "\f632"; }
-.bi-check-lg::before { content: "\f633"; }
-.bi-coin::before { content: "\f634"; }
-.bi-currency-bitcoin::before { content: "\f635"; }
-.bi-currency-dollar::before { content: "\f636"; }
-.bi-currency-euro::before { content: "\f637"; }
-.bi-currency-exchange::before { content: "\f638"; }
-.bi-currency-pound::before { content: "\f639"; }
-.bi-currency-yen::before { content: "\f63a"; }
-.bi-dash-lg::before { content: "\f63b"; }
-.bi-exclamation-lg::before { content: "\f63c"; }
-.bi-file-earmark-pdf-fill::before { content: "\f63d"; }
-.bi-file-earmark-pdf::before { content: "\f63e"; }
-.bi-file-pdf-fill::before { content: "\f63f"; }
-.bi-file-pdf::before { content: "\f640"; }
-.bi-gender-ambiguous::before { content: "\f641"; }
-.bi-gender-female::before { content: "\f642"; }
-.bi-gender-male::before { content: "\f643"; }
-.bi-gender-trans::before { content: "\f644"; }
-.bi-headset-vr::before { content: "\f645"; }
-.bi-info-lg::before { content: "\f646"; }
-.bi-mastodon::before { content: "\f647"; }
-.bi-messenger::before { content: "\f648"; }
-.bi-piggy-bank-fill::before { content: "\f649"; }
-.bi-piggy-bank::before { content: "\f64a"; }
-.bi-pin-map-fill::before { content: "\f64b"; }
-.bi-pin-map::before { content: "\f64c"; }
-.bi-plus-lg::before { content: "\f64d"; }
-.bi-question-lg::before { content: "\f64e"; }
-.bi-recycle::before { content: "\f64f"; }
-.bi-reddit::before { content: "\f650"; }
-.bi-safe-fill::before { content: "\f651"; }
-.bi-safe2-fill::before { content: "\f652"; }
-.bi-safe2::before { content: "\f653"; }
-.bi-sd-card-fill::before { content: "\f654"; }
-.bi-sd-card::before { content: "\f655"; }
-.bi-skype::before { content: "\f656"; }
-.bi-slash-lg::before { content: "\f657"; }
-.bi-translate::before { content: "\f658"; }
-.bi-x-lg::before { content: "\f659"; }
-.bi-safe::before { content: "\f65a"; }
-.bi-apple::before { content: "\f65b"; }
-.bi-microsoft::before { content: "\f65d"; }
-.bi-windows::before { content: "\f65e"; }
-.bi-behance::before { content: "\f65c"; }
-.bi-dribbble::before { content: "\f65f"; }
-.bi-line::before { content: "\f660"; }
-.bi-medium::before { content: "\f661"; }
-.bi-paypal::before { content: "\f662"; }
-.bi-pinterest::before { content: "\f663"; }
-.bi-signal::before { content: "\f664"; }
-.bi-snapchat::before { content: "\f665"; }
-.bi-spotify::before { content: "\f666"; }
-.bi-stack-overflow::before { content: "\f667"; }
-.bi-strava::before { content: "\f668"; }
-.bi-wordpress::before { content: "\f669"; }
-.bi-vimeo::before { content: "\f66a"; }
-.bi-activity::before { content: "\f66b"; }
-.bi-easel2-fill::before { content: "\f66c"; }
-.bi-easel2::before { content: "\f66d"; }
-.bi-easel3-fill::before { content: "\f66e"; }
-.bi-easel3::before { content: "\f66f"; }
-.bi-fan::before { content: "\f670"; }
-.bi-fingerprint::before { content: "\f671"; }
-.bi-graph-down-arrow::before { content: "\f672"; }
-.bi-graph-up-arrow::before { content: "\f673"; }
-.bi-hypnotize::before { content: "\f674"; }
-.bi-magic::before { content: "\f675"; }
-.bi-person-rolodex::before { content: "\f676"; }
-.bi-person-video::before { content: "\f677"; }
-.bi-person-video2::before { content: "\f678"; }
-.bi-person-video3::before { content: "\f679"; }
-.bi-person-workspace::before { content: "\f67a"; }
-.bi-radioactive::before { content: "\f67b"; }
-.bi-webcam-fill::before { content: "\f67c"; }
-.bi-webcam::before { content: "\f67d"; }
-.bi-yin-yang::before { content: "\f67e"; }
-.bi-bandaid-fill::before { content: "\f680"; }
-.bi-bandaid::before { content: "\f681"; }
-.bi-bluetooth::before { content: "\f682"; }
-.bi-body-text::before { content: "\f683"; }
-.bi-boombox::before { content: "\f684"; }
-.bi-boxes::before { content: "\f685"; }
-.bi-dpad-fill::before { content: "\f686"; }
-.bi-dpad::before { content: "\f687"; }
-.bi-ear-fill::before { content: "\f688"; }
-.bi-ear::before { content: "\f689"; }
-.bi-envelope-check-1::before { content: "\f68a"; }
-.bi-envelope-check-fill::before { content: "\f68b"; }
-.bi-envelope-check::before { content: "\f68c"; }
-.bi-envelope-dash-1::before { content: "\f68d"; }
-.bi-envelope-dash-fill::before { content: "\f68e"; }
-.bi-envelope-dash::before { content: "\f68f"; }
-.bi-envelope-exclamation-1::before { content: "\f690"; }
-.bi-envelope-exclamation-fill::before { content: "\f691"; }
-.bi-envelope-exclamation::before { content: "\f692"; }
-.bi-envelope-plus-fill::before { content: "\f693"; }
-.bi-envelope-plus::before { content: "\f694"; }
-.bi-envelope-slash-1::before { content: "\f695"; }
-.bi-envelope-slash-fill::before { content: "\f696"; }
-.bi-envelope-slash::before { content: "\f697"; }
-.bi-envelope-x-1::before { content: "\f698"; }
-.bi-envelope-x-fill::before { content: "\f699"; }
-.bi-envelope-x::before { content: "\f69a"; }
-.bi-explicit-fill::before { content: "\f69b"; }
-.bi-explicit::before { content: "\f69c"; }
-.bi-git::before { content: "\f69d"; }
-.bi-infinity::before { content: "\f69e"; }
-.bi-list-columns-reverse::before { content: "\f69f"; }
-.bi-list-columns::before { content: "\f6a0"; }
-.bi-meta::before { content: "\f6a1"; }
-.bi-mortorboard-fill::before { content: "\f6a2"; }
-.bi-mortorboard::before { content: "\f6a3"; }
-.bi-nintendo-switch::before { content: "\f6a4"; }
-.bi-pc-display-horizontal::before { content: "\f6a5"; }
-.bi-pc-display::before { content: "\f6a6"; }
-.bi-pc-horizontal::before { content: "\f6a7"; }
-.bi-pc::before { content: "\f6a8"; }
-.bi-playstation::before { content: "\f6a9"; }
-.bi-plus-slash-minus::before { content: "\f6aa"; }
-.bi-projector-fill::before { content: "\f6ab"; }
-.bi-projector::before { content: "\f6ac"; }
-.bi-qr-code-scan::before { content: "\f6ad"; }
-.bi-qr-code::before { content: "\f6ae"; }
-.bi-quora::before { content: "\f6af"; }
-.bi-quote::before { content: "\f6b0"; }
-.bi-robot::before { content: "\f6b1"; }
-.bi-send-check-fill::before { content: "\f6b2"; }
-.bi-send-check::before { content: "\f6b3"; }
-.bi-send-dash-fill::before { content: "\f6b4"; }
-.bi-send-dash::before { content: "\f6b5"; }
-.bi-send-exclamation-1::before { content: "\f6b6"; }
-.bi-send-exclamation-fill::before { content: "\f6b7"; }
-.bi-send-exclamation::before { content: "\f6b8"; }
-.bi-send-fill::before { content: "\f6b9"; }
-.bi-send-plus-fill::before { content: "\f6ba"; }
-.bi-send-plus::before { content: "\f6bb"; }
-.bi-send-slash-fill::before { content: "\f6bc"; }
-.bi-send-slash::before { content: "\f6bd"; }
-.bi-send-x-fill::before { content: "\f6be"; }
-.bi-send-x::before { content: "\f6bf"; }
-.bi-send::before { content: "\f6c0"; }
-.bi-steam::before { content: "\f6c1"; }
-.bi-terminal-dash-1::before { content: "\f6c2"; }
-.bi-terminal-dash::before { content: "\f6c3"; }
-.bi-terminal-plus::before { content: "\f6c4"; }
-.bi-terminal-split::before { content: "\f6c5"; }
-.bi-ticket-detailed-fill::before { content: "\f6c6"; }
-.bi-ticket-detailed::before { content: "\f6c7"; }
-.bi-ticket-fill::before { content: "\f6c8"; }
-.bi-ticket-perforated-fill::before { content: "\f6c9"; }
-.bi-ticket-perforated::before { content: "\f6ca"; }
-.bi-ticket::before { content: "\f6cb"; }
-.bi-tiktok::before { content: "\f6cc"; }
-.bi-window-dash::before { content: "\f6cd"; }
-.bi-window-desktop::before { content: "\f6ce"; }
-.bi-window-fullscreen::before { content: "\f6cf"; }
-.bi-window-plus::before { content: "\f6d0"; }
-.bi-window-split::before { content: "\f6d1"; }
-.bi-window-stack::before { content: "\f6d2"; }
-.bi-window-x::before { content: "\f6d3"; }
-.bi-xbox::before { content: "\f6d4"; }
-.bi-ethernet::before { content: "\f6d5"; }
-.bi-hdmi-fill::before { content: "\f6d6"; }
-.bi-hdmi::before { content: "\f6d7"; }
-.bi-usb-c-fill::before { content: "\f6d8"; }
-.bi-usb-c::before { content: "\f6d9"; }
-.bi-usb-fill::before { content: "\f6da"; }
-.bi-usb-plug-fill::before { content: "\f6db"; }
-.bi-usb-plug::before { content: "\f6dc"; }
-.bi-usb-symbol::before { content: "\f6dd"; }
-.bi-usb::before { content: "\f6de"; }
-.bi-boombox-fill::before { content: "\f6df"; }
-.bi-displayport-1::before { content: "\f6e0"; }
-.bi-displayport::before { content: "\f6e1"; }
-.bi-gpu-card::before { content: "\f6e2"; }
-.bi-memory::before { content: "\f6e3"; }
-.bi-modem-fill::before { content: "\f6e4"; }
-.bi-modem::before { content: "\f6e5"; }
-.bi-motherboard-fill::before { content: "\f6e6"; }
-.bi-motherboard::before { content: "\f6e7"; }
-.bi-optical-audio-fill::before { content: "\f6e8"; }
-.bi-optical-audio::before { content: "\f6e9"; }
-.bi-pci-card::before { content: "\f6ea"; }
-.bi-router-fill::before { content: "\f6eb"; }
-.bi-router::before { content: "\f6ec"; }
-.bi-ssd-fill::before { content: "\f6ed"; }
-.bi-ssd::before { content: "\f6ee"; }
-.bi-thunderbolt-fill::before { content: "\f6ef"; }
-.bi-thunderbolt::before { content: "\f6f0"; }
-.bi-usb-drive-fill::before { content: "\f6f1"; }
-.bi-usb-drive::before { content: "\f6f2"; }
-.bi-usb-micro-fill::before { content: "\f6f3"; }
-.bi-usb-micro::before { content: "\f6f4"; }
-.bi-usb-mini-fill::before { content: "\f6f5"; }
-.bi-usb-mini::before { content: "\f6f6"; }
-.bi-cloud-haze2::before { content: "\f6f7"; }
-.bi-device-hdd-fill::before { content: "\f6f8"; }
-.bi-device-hdd::before { content: "\f6f9"; }
-.bi-device-ssd-fill::before { content: "\f6fa"; }
-.bi-device-ssd::before { content: "\f6fb"; }
-.bi-displayport-fill::before { content: "\f6fc"; }
-.bi-mortarboard-fill::before { content: "\f6fd"; }
-.bi-mortarboard::before { content: "\f6fe"; }
-.bi-terminal-x::before { content: "\f6ff"; }
-.bi-arrow-through-heart-fill::before { content: "\f700"; }
-.bi-arrow-through-heart::before { content: "\f701"; }
-.bi-badge-sd-fill::before { content: "\f702"; }
-.bi-badge-sd::before { content: "\f703"; }
-.bi-bag-heart-fill::before { content: "\f704"; }
-.bi-bag-heart::before { content: "\f705"; }
-.bi-balloon-fill::before { content: "\f706"; }
-.bi-balloon-heart-fill::before { content: "\f707"; }
-.bi-balloon-heart::before { content: "\f708"; }
-.bi-balloon::before { content: "\f709"; }
-.bi-box2-fill::before { content: "\f70a"; }
-.bi-box2-heart-fill::before { content: "\f70b"; }
-.bi-box2-heart::before { content: "\f70c"; }
-.bi-box2::before { content: "\f70d"; }
-.bi-braces-asterisk::before { content: "\f70e"; }
-.bi-calendar-heart-fill::before { content: "\f70f"; }
-.bi-calendar-heart::before { content: "\f710"; }
-.bi-calendar2-heart-fill::before { content: "\f711"; }
-.bi-calendar2-heart::before { content: "\f712"; }
-.bi-chat-heart-fill::before { content: "\f713"; }
-.bi-chat-heart::before { content: "\f714"; }
-.bi-chat-left-heart-fill::before { content: "\f715"; }
-.bi-chat-left-heart::before { content: "\f716"; }
-.bi-chat-right-heart-fill::before { content: "\f717"; }
-.bi-chat-right-heart::before { content: "\f718"; }
-.bi-chat-square-heart-fill::before { content: "\f719"; }
-.bi-chat-square-heart::before { content: "\f71a"; }
-.bi-clipboard-check-fill::before { content: "\f71b"; }
-.bi-clipboard-data-fill::before { content: "\f71c"; }
-.bi-clipboard-fill::before { content: "\f71d"; }
-.bi-clipboard-heart-fill::before { content: "\f71e"; }
-.bi-clipboard-heart::before { content: "\f71f"; }
-.bi-clipboard-minus-fill::before { content: "\f720"; }
-.bi-clipboard-plus-fill::before { content: "\f721"; }
-.bi-clipboard-pulse::before { content: "\f722"; }
-.bi-clipboard-x-fill::before { content: "\f723"; }
-.bi-clipboard2-check-fill::before { content: "\f724"; }
-.bi-clipboard2-check::before { content: "\f725"; }
-.bi-clipboard2-data-fill::before { content: "\f726"; }
-.bi-clipboard2-data::before { content: "\f727"; }
-.bi-clipboard2-fill::before { content: "\f728"; }
-.bi-clipboard2-heart-fill::before { content: "\f729"; }
-.bi-clipboard2-heart::before { content: "\f72a"; }
-.bi-clipboard2-minus-fill::before { content: "\f72b"; }
-.bi-clipboard2-minus::before { content: "\f72c"; }
-.bi-clipboard2-plus-fill::before { content: "\f72d"; }
-.bi-clipboard2-plus::before { content: "\f72e"; }
-.bi-clipboard2-pulse-fill::before { content: "\f72f"; }
-.bi-clipboard2-pulse::before { content: "\f730"; }
-.bi-clipboard2-x-fill::before { content: "\f731"; }
-.bi-clipboard2-x::before { content: "\f732"; }
-.bi-clipboard2::before { content: "\f733"; }
-.bi-emoji-kiss-fill::before { content: "\f734"; }
-.bi-emoji-kiss::before { content: "\f735"; }
-.bi-envelope-heart-fill::before { content: "\f736"; }
-.bi-envelope-heart::before { content: "\f737"; }
-.bi-envelope-open-heart-fill::before { content: "\f738"; }
-.bi-envelope-open-heart::before { content: "\f739"; }
-.bi-envelope-paper-fill::before { content: "\f73a"; }
-.bi-envelope-paper-heart-fill::before { content: "\f73b"; }
-.bi-envelope-paper-heart::before { content: "\f73c"; }
-.bi-envelope-paper::before { content: "\f73d"; }
-.bi-filetype-aac::before { content: "\f73e"; }
-.bi-filetype-ai::before { content: "\f73f"; }
-.bi-filetype-bmp::before { content: "\f740"; }
-.bi-filetype-cs::before { content: "\f741"; }
-.bi-filetype-css::before { content: "\f742"; }
-.bi-filetype-csv::before { content: "\f743"; }
-.bi-filetype-doc::before { content: "\f744"; }
-.bi-filetype-docx::before { content: "\f745"; }
-.bi-filetype-exe::before { content: "\f746"; }
-.bi-filetype-gif::before { content: "\f747"; }
-.bi-filetype-heic::before { content: "\f748"; }
-.bi-filetype-html::before { content: "\f749"; }
-.bi-filetype-java::before { content: "\f74a"; }
-.bi-filetype-jpg::before { content: "\f74b"; }
-.bi-filetype-js::before { content: "\f74c"; }
-.bi-filetype-jsx::before { content: "\f74d"; }
-.bi-filetype-key::before { content: "\f74e"; }
-.bi-filetype-m4p::before { content: "\f74f"; }
-.bi-filetype-md::before { content: "\f750"; }
-.bi-filetype-mdx::before { content: "\f751"; }
-.bi-filetype-mov::before { content: "\f752"; }
-.bi-filetype-mp3::before { content: "\f753"; }
-.bi-filetype-mp4::before { content: "\f754"; }
-.bi-filetype-otf::before { content: "\f755"; }
-.bi-filetype-pdf::before { content: "\f756"; }
-.bi-filetype-php::before { content: "\f757"; }
-.bi-filetype-png::before { content: "\f758"; }
-.bi-filetype-ppt-1::before { content: "\f759"; }
-.bi-filetype-ppt::before { content: "\f75a"; }
-.bi-filetype-psd::before { content: "\f75b"; }
-.bi-filetype-py::before { content: "\f75c"; }
-.bi-filetype-raw::before { content: "\f75d"; }
-.bi-filetype-rb::before { content: "\f75e"; }
-.bi-filetype-sass::before { content: "\f75f"; }
-.bi-filetype-scss::before { content: "\f760"; }
-.bi-filetype-sh::before { content: "\f761"; }
-.bi-filetype-svg::before { content: "\f762"; }
-.bi-filetype-tiff::before { content: "\f763"; }
-.bi-filetype-tsx::before { content: "\f764"; }
-.bi-filetype-ttf::before { content: "\f765"; }
-.bi-filetype-txt::before { content: "\f766"; }
-.bi-filetype-wav::before { content: "\f767"; }
-.bi-filetype-woff::before { content: "\f768"; }
-.bi-filetype-xls-1::before { content: "\f769"; }
-.bi-filetype-xls::before { content: "\f76a"; }
-.bi-filetype-xml::before { content: "\f76b"; }
-.bi-filetype-yml::before { content: "\f76c"; }
-.bi-heart-arrow::before { content: "\f76d"; }
-.bi-heart-pulse-fill::before { content: "\f76e"; }
-.bi-heart-pulse::before { content: "\f76f"; }
-.bi-heartbreak-fill::before { content: "\f770"; }
-.bi-heartbreak::before { content: "\f771"; }
-.bi-hearts::before { content: "\f772"; }
-.bi-hospital-fill::before { content: "\f773"; }
-.bi-hospital::before { content: "\f774"; }
-.bi-house-heart-fill::before { content: "\f775"; }
-.bi-house-heart::before { content: "\f776"; }
-.bi-incognito::before { content: "\f777"; }
-.bi-magnet-fill::before { content: "\f778"; }
-.bi-magnet::before { content: "\f779"; }
-.bi-person-heart::before { content: "\f77a"; }
-.bi-person-hearts::before { content: "\f77b"; }
-.bi-phone-flip::before { content: "\f77c"; }
-.bi-plugin::before { content: "\f77d"; }
-.bi-postage-fill::before { content: "\f77e"; }
-.bi-postage-heart-fill::before { content: "\f77f"; }
-.bi-postage-heart::before { content: "\f780"; }
-.bi-postage::before { content: "\f781"; }
-.bi-postcard-fill::before { content: "\f782"; }
-.bi-postcard-heart-fill::before { content: "\f783"; }
-.bi-postcard-heart::before { content: "\f784"; }
-.bi-postcard::before { content: "\f785"; }
-.bi-search-heart-fill::before { content: "\f786"; }
-.bi-search-heart::before { content: "\f787"; }
-.bi-sliders2-vertical::before { content: "\f788"; }
-.bi-sliders2::before { content: "\f789"; }
-.bi-trash3-fill::before { content: "\f78a"; }
-.bi-trash3::before { content: "\f78b"; }
-.bi-valentine::before { content: "\f78c"; }
-.bi-valentine2::before { content: "\f78d"; }
-.bi-wrench-adjustable-circle-fill::before { content: "\f78e"; }
-.bi-wrench-adjustable-circle::before { content: "\f78f"; }
-.bi-wrench-adjustable::before { content: "\f790"; }
-.bi-filetype-json::before { content: "\f791"; }
-.bi-filetype-pptx::before { content: "\f792"; }
-.bi-filetype-xlsx::before { content: "\f793"; }
-.bi-1-circle-1::before { content: "\f794"; }
-.bi-1-circle-fill-1::before { content: "\f795"; }
-.bi-1-circle-fill::before { content: "\f796"; }
-.bi-1-circle::before { content: "\f797"; }
-.bi-1-square-fill::before { content: "\f798"; }
-.bi-1-square::before { content: "\f799"; }
-.bi-2-circle-1::before { content: "\f79a"; }
-.bi-2-circle-fill-1::before { content: "\f79b"; }
-.bi-2-circle-fill::before { content: "\f79c"; }
-.bi-2-circle::before { content: "\f79d"; }
-.bi-2-square-fill::before { content: "\f79e"; }
-.bi-2-square::before { content: "\f79f"; }
-.bi-3-circle-1::before { content: "\f7a0"; }
-.bi-3-circle-fill-1::before { content: "\f7a1"; }
-.bi-3-circle-fill::before { content: "\f7a2"; }
-.bi-3-circle::before { content: "\f7a3"; }
-.bi-3-square-fill::before { content: "\f7a4"; }
-.bi-3-square::before { content: "\f7a5"; }
-.bi-4-circle-1::before { content: "\f7a6"; }
-.bi-4-circle-fill-1::before { content: "\f7a7"; }
-.bi-4-circle-fill::before { content: "\f7a8"; }
-.bi-4-circle::before { content: "\f7a9"; }
-.bi-4-square-fill::before { content: "\f7aa"; }
-.bi-4-square::before { content: "\f7ab"; }
-.bi-5-circle-1::before { content: "\f7ac"; }
-.bi-5-circle-fill-1::before { content: "\f7ad"; }
-.bi-5-circle-fill::before { content: "\f7ae"; }
-.bi-5-circle::before { content: "\f7af"; }
-.bi-5-square-fill::before { content: "\f7b0"; }
-.bi-5-square::before { content: "\f7b1"; }
-.bi-6-circle-1::before { content: "\f7b2"; }
-.bi-6-circle-fill-1::before { content: "\f7b3"; }
-.bi-6-circle-fill::before { content: "\f7b4"; }
-.bi-6-circle::before { content: "\f7b5"; }
-.bi-6-square-fill::before { content: "\f7b6"; }
-.bi-6-square::before { content: "\f7b7"; }
-.bi-7-circle-1::before { content: "\f7b8"; }
-.bi-7-circle-fill-1::before { content: "\f7b9"; }
-.bi-7-circle-fill::before { content: "\f7ba"; }
-.bi-7-circle::before { content: "\f7bb"; }
-.bi-7-square-fill::before { content: "\f7bc"; }
-.bi-7-square::before { content: "\f7bd"; }
-.bi-8-circle-1::before { content: "\f7be"; }
-.bi-8-circle-fill-1::before { content: "\f7bf"; }
-.bi-8-circle-fill::before { content: "\f7c0"; }
-.bi-8-circle::before { content: "\f7c1"; }
-.bi-8-square-fill::before { content: "\f7c2"; }
-.bi-8-square::before { content: "\f7c3"; }
-.bi-9-circle-1::before { content: "\f7c4"; }
-.bi-9-circle-fill-1::before { content: "\f7c5"; }
-.bi-9-circle-fill::before { content: "\f7c6"; }
-.bi-9-circle::before { content: "\f7c7"; }
-.bi-9-square-fill::before { content: "\f7c8"; }
-.bi-9-square::before { content: "\f7c9"; }
-.bi-airplane-engines-fill::before { content: "\f7ca"; }
-.bi-airplane-engines::before { content: "\f7cb"; }
-.bi-airplane-fill::before { content: "\f7cc"; }
-.bi-airplane::before { content: "\f7cd"; }
-.bi-alexa::before { content: "\f7ce"; }
-.bi-alipay::before { content: "\f7cf"; }
-.bi-android::before { content: "\f7d0"; }
-.bi-android2::before { content: "\f7d1"; }
-.bi-box-fill::before { content: "\f7d2"; }
-.bi-box-seam-fill::before { content: "\f7d3"; }
-.bi-browser-chrome::before { content: "\f7d4"; }
-.bi-browser-edge::before { content: "\f7d5"; }
-.bi-browser-firefox::before { content: "\f7d6"; }
-.bi-browser-safari::before { content: "\f7d7"; }
-.bi-c-circle-1::before { content: "\f7d8"; }
-.bi-c-circle-fill-1::before { content: "\f7d9"; }
-.bi-c-circle-fill::before { content: "\f7da"; }
-.bi-c-circle::before { content: "\f7db"; }
-.bi-c-square-fill::before { content: "\f7dc"; }
-.bi-c-square::before { content: "\f7dd"; }
-.bi-capsule-pill::before { content: "\f7de"; }
-.bi-capsule::before { content: "\f7df"; }
-.bi-car-front-fill::before { content: "\f7e0"; }
-.bi-car-front::before { content: "\f7e1"; }
-.bi-cassette-fill::before { content: "\f7e2"; }
-.bi-cassette::before { content: "\f7e3"; }
-.bi-cc-circle-1::before { content: "\f7e4"; }
-.bi-cc-circle-fill-1::before { content: "\f7e5"; }
-.bi-cc-circle-fill::before { content: "\f7e6"; }
-.bi-cc-circle::before { content: "\f7e7"; }
-.bi-cc-square-fill::before { content: "\f7e8"; }
-.bi-cc-square::before { content: "\f7e9"; }
-.bi-cup-hot-fill::before { content: "\f7ea"; }
-.bi-cup-hot::before { content: "\f7eb"; }
-.bi-currency-rupee::before { content: "\f7ec"; }
-.bi-dropbox::before { content: "\f7ed"; }
-.bi-escape::before { content: "\f7ee"; }
-.bi-fast-forward-btn-fill::before { content: "\f7ef"; }
-.bi-fast-forward-btn::before { content: "\f7f0"; }
-.bi-fast-forward-circle-fill::before { content: "\f7f1"; }
-.bi-fast-forward-circle::before { content: "\f7f2"; }
-.bi-fast-forward-fill::before { content: "\f7f3"; }
-.bi-fast-forward::before { content: "\f7f4"; }
-.bi-filetype-sql::before { content: "\f7f5"; }
-.bi-fire::before { content: "\f7f6"; }
-.bi-google-play::before { content: "\f7f7"; }
-.bi-h-circle-1::before { content: "\f7f8"; }
-.bi-h-circle-fill-1::before { content: "\f7f9"; }
-.bi-h-circle-fill::before { content: "\f7fa"; }
-.bi-h-circle::before { content: "\f7fb"; }
-.bi-h-square-fill::before { content: "\f7fc"; }
-.bi-h-square::before { content: "\f7fd"; }
-.bi-indent::before { content: "\f7fe"; }
-.bi-lungs-fill::before { content: "\f7ff"; }
-.bi-lungs::before { content: "\f800"; }
-.bi-microsoft-teams::before { content: "\f801"; }
-.bi-p-circle-1::before { content: "\f802"; }
-.bi-p-circle-fill-1::before { content: "\f803"; }
-.bi-p-circle-fill::before { content: "\f804"; }
-.bi-p-circle::before { content: "\f805"; }
-.bi-p-square-fill::before { content: "\f806"; }
-.bi-p-square::before { content: "\f807"; }
-.bi-pass-fill::before { content: "\f808"; }
-.bi-pass::before { content: "\f809"; }
-.bi-prescription::before { content: "\f80a"; }
-.bi-prescription2::before { content: "\f80b"; }
-.bi-r-circle-1::before { content: "\f80c"; }
-.bi-r-circle-fill-1::before { content: "\f80d"; }
-.bi-r-circle-fill::before { content: "\f80e"; }
-.bi-r-circle::before { content: "\f80f"; }
-.bi-r-square-fill::before { content: "\f810"; }
-.bi-r-square::before { content: "\f811"; }
-.bi-repeat-1::before { content: "\f812"; }
-.bi-repeat::before { content: "\f813"; }
-.bi-rewind-btn-fill::before { content: "\f814"; }
-.bi-rewind-btn::before { content: "\f815"; }
-.bi-rewind-circle-fill::before { content: "\f816"; }
-.bi-rewind-circle::before { content: "\f817"; }
-.bi-rewind-fill::before { content: "\f818"; }
-.bi-rewind::before { content: "\f819"; }
-.bi-train-freight-front-fill::before { content: "\f81a"; }
-.bi-train-freight-front::before { content: "\f81b"; }
-.bi-train-front-fill::before { content: "\f81c"; }
-.bi-train-front::before { content: "\f81d"; }
-.bi-train-lightrail-front-fill::before { content: "\f81e"; }
-.bi-train-lightrail-front::before { content: "\f81f"; }
-.bi-truck-front-fill::before { content: "\f820"; }
-.bi-truck-front::before { content: "\f821"; }
-.bi-ubuntu::before { content: "\f822"; }
-.bi-unindent::before { content: "\f823"; }
-.bi-unity::before { content: "\f824"; }
-.bi-universal-access-circle::before { content: "\f825"; }
-.bi-universal-access::before { content: "\f826"; }
-.bi-virus::before { content: "\f827"; }
-.bi-virus2::before { content: "\f828"; }
-.bi-wechat::before { content: "\f829"; }
-.bi-yelp::before { content: "\f82a"; }
-.bi-sign-stop-fill::before { content: "\f82b"; }
-.bi-sign-stop-lights-fill::before { content: "\f82c"; }
-.bi-sign-stop-lights::before { content: "\f82d"; }
-.bi-sign-stop::before { content: "\f82e"; }
-.bi-sign-turn-left-fill::before { content: "\f82f"; }
-.bi-sign-turn-left::before { content: "\f830"; }
-.bi-sign-turn-right-fill::before { content: "\f831"; }
-.bi-sign-turn-right::before { content: "\f832"; }
-.bi-sign-turn-slight-left-fill::before { content: "\f833"; }
-.bi-sign-turn-slight-left::before { content: "\f834"; }
-.bi-sign-turn-slight-right-fill::before { content: "\f835"; }
-.bi-sign-turn-slight-right::before { content: "\f836"; }
-.bi-sign-yield-fill::before { content: "\f837"; }
-.bi-sign-yield::before { content: "\f838"; }
-.bi-ev-station-fill::before { content: "\f839"; }
-.bi-ev-station::before { content: "\f83a"; }
-.bi-fuel-pump-diesel-fill::before { content: "\f83b"; }
-.bi-fuel-pump-diesel::before { content: "\f83c"; }
-.bi-fuel-pump-fill::before { content: "\f83d"; }
-.bi-fuel-pump::before { content: "\f83e"; }
-.bi-0-circle-fill::before { content: "\f83f"; }
-.bi-0-circle::before { content: "\f840"; }
-.bi-0-square-fill::before { content: "\f841"; }
-.bi-0-square::before { content: "\f842"; }
-.bi-rocket-fill::before { content: "\f843"; }
-.bi-rocket-takeoff-fill::before { content: "\f844"; }
-.bi-rocket-takeoff::before { content: "\f845"; }
-.bi-rocket::before { content: "\f846"; }
-.bi-stripe::before { content: "\f847"; }
-.bi-subscript::before { content: "\f848"; }
-.bi-superscript::before { content: "\f849"; }
-.bi-trello::before { content: "\f84a"; }
-.bi-envelope-at-fill::before { content: "\f84b"; }
-.bi-envelope-at::before { content: "\f84c"; }
-.bi-regex::before { content: "\f84d"; }
-.bi-text-wrap::before { content: "\f84e"; }
-.bi-sign-dead-end-fill::before { content: "\f84f"; }
-.bi-sign-dead-end::before { content: "\f850"; }
-.bi-sign-do-not-enter-fill::before { content: "\f851"; }
-.bi-sign-do-not-enter::before { content: "\f852"; }
-.bi-sign-intersection-fill::before { content: "\f853"; }
-.bi-sign-intersection-side-fill::before { content: "\f854"; }
-.bi-sign-intersection-side::before { content: "\f855"; }
-.bi-sign-intersection-t-fill::before { content: "\f856"; }
-.bi-sign-intersection-t::before { content: "\f857"; }
-.bi-sign-intersection-y-fill::before { content: "\f858"; }
-.bi-sign-intersection-y::before { content: "\f859"; }
-.bi-sign-intersection::before { content: "\f85a"; }
-.bi-sign-merge-left-fill::before { content: "\f85b"; }
-.bi-sign-merge-left::before { content: "\f85c"; }
-.bi-sign-merge-right-fill::before { content: "\f85d"; }
-.bi-sign-merge-right::before { content: "\f85e"; }
-.bi-sign-no-left-turn-fill::before { content: "\f85f"; }
-.bi-sign-no-left-turn::before { content: "\f860"; }
-.bi-sign-no-parking-fill::before { content: "\f861"; }
-.bi-sign-no-parking::before { content: "\f862"; }
-.bi-sign-no-right-turn-fill::before { content: "\f863"; }
-.bi-sign-no-right-turn::before { content: "\f864"; }
-.bi-sign-railroad-fill::before { content: "\f865"; }
-.bi-sign-railroad::before { content: "\f866"; }
-.bi-building-add::before { content: "\f867"; }
-.bi-building-check::before { content: "\f868"; }
-.bi-building-dash::before { content: "\f869"; }
-.bi-building-down::before { content: "\f86a"; }
-.bi-building-exclamation::before { content: "\f86b"; }
-.bi-building-fill-add::before { content: "\f86c"; }
-.bi-building-fill-check::before { content: "\f86d"; }
-.bi-building-fill-dash::before { content: "\f86e"; }
-.bi-building-fill-down::before { content: "\f86f"; }
-.bi-building-fill-exclamation::before { content: "\f870"; }
-.bi-building-fill-gear::before { content: "\f871"; }
-.bi-building-fill-lock::before { content: "\f872"; }
-.bi-building-fill-slash::before { content: "\f873"; }
-.bi-building-fill-up::before { content: "\f874"; }
-.bi-building-fill-x::before { content: "\f875"; }
-.bi-building-fill::before { content: "\f876"; }
-.bi-building-gear::before { content: "\f877"; }
-.bi-building-lock::before { content: "\f878"; }
-.bi-building-slash::before { content: "\f879"; }
-.bi-building-up::before { content: "\f87a"; }
-.bi-building-x::before { content: "\f87b"; }
-.bi-buildings-fill::before { content: "\f87c"; }
-.bi-buildings::before { content: "\f87d"; }
-.bi-bus-front-fill::before { content: "\f87e"; }
-.bi-bus-front::before { content: "\f87f"; }
-.bi-ev-front-fill::before { content: "\f880"; }
-.bi-ev-front::before { content: "\f881"; }
-.bi-globe-americas::before { content: "\f882"; }
-.bi-globe-asia-australia::before { content: "\f883"; }
-.bi-globe-central-south-asia::before { content: "\f884"; }
-.bi-globe-europe-africa::before { content: "\f885"; }
-.bi-house-add-fill::before { content: "\f886"; }
-.bi-house-add::before { content: "\f887"; }
-.bi-house-check-fill::before { content: "\f888"; }
-.bi-house-check::before { content: "\f889"; }
-.bi-house-dash-fill::before { content: "\f88a"; }
-.bi-house-dash::before { content: "\f88b"; }
-.bi-house-down-fill::before { content: "\f88c"; }
-.bi-house-down::before { content: "\f88d"; }
-.bi-house-exclamation-fill::before { content: "\f88e"; }
-.bi-house-exclamation::before { content: "\f88f"; }
-.bi-house-gear-fill::before { content: "\f890"; }
-.bi-house-gear::before { content: "\f891"; }
-.bi-house-lock-fill::before { content: "\f892"; }
-.bi-house-lock::before { content: "\f893"; }
-.bi-house-slash-fill::before { content: "\f894"; }
-.bi-house-slash::before { content: "\f895"; }
-.bi-house-up-fill::before { content: "\f896"; }
-.bi-house-up::before { content: "\f897"; }
-.bi-house-x-fill::before { content: "\f898"; }
-.bi-house-x::before { content: "\f899"; }
-.bi-person-add::before { content: "\f89a"; }
-.bi-person-down::before { content: "\f89b"; }
-.bi-person-exclamation::before { content: "\f89c"; }
-.bi-person-fill-add::before { content: "\f89d"; }
-.bi-person-fill-check::before { content: "\f89e"; }
-.bi-person-fill-dash::before { content: "\f89f"; }
-.bi-person-fill-down::before { content: "\f8a0"; }
-.bi-person-fill-exclamation::before { content: "\f8a1"; }
-.bi-person-fill-gear::before { content: "\f8a2"; }
-.bi-person-fill-lock::before { content: "\f8a3"; }
-.bi-person-fill-slash::before { content: "\f8a4"; }
-.bi-person-fill-up::before { content: "\f8a5"; }
-.bi-person-fill-x::before { content: "\f8a6"; }
-.bi-person-gear::before { content: "\f8a7"; }
-.bi-person-lock::before { content: "\f8a8"; }
-.bi-person-slash::before { content: "\f8a9"; }
-.bi-person-up::before { content: "\f8aa"; }
-.bi-scooter::before { content: "\f8ab"; }
-.bi-taxi-front-fill::before { content: "\f8ac"; }
-.bi-taxi-front::before { content: "\f8ad"; }
-.bi-amd::before { content: "\f8ae"; }
-.bi-database-add::before { content: "\f8af"; }
-.bi-database-check::before { content: "\f8b0"; }
-.bi-database-dash::before { content: "\f8b1"; }
-.bi-database-down::before { content: "\f8b2"; }
-.bi-database-exclamation::before { content: "\f8b3"; }
-.bi-database-fill-add::before { content: "\f8b4"; }
-.bi-database-fill-check::before { content: "\f8b5"; }
-.bi-database-fill-dash::before { content: "\f8b6"; }
-.bi-database-fill-down::before { content: "\f8b7"; }
-.bi-database-fill-exclamation::before { content: "\f8b8"; }
-.bi-database-fill-gear::before { content: "\f8b9"; }
-.bi-database-fill-lock::before { content: "\f8ba"; }
-.bi-database-fill-slash::before { content: "\f8bb"; }
-.bi-database-fill-up::before { content: "\f8bc"; }
-.bi-database-fill-x::before { content: "\f8bd"; }
-.bi-database-fill::before { content: "\f8be"; }
-.bi-database-gear::before { content: "\f8bf"; }
-.bi-database-lock::before { content: "\f8c0"; }
-.bi-database-slash::before { content: "\f8c1"; }
-.bi-database-up::before { content: "\f8c2"; }
-.bi-database-x::before { content: "\f8c3"; }
-.bi-database::before { content: "\f8c4"; }
-.bi-houses-fill::before { content: "\f8c5"; }
-.bi-houses::before { content: "\f8c6"; }
-.bi-nvidia::before { content: "\f8c7"; }
-.bi-person-vcard-fill::before { content: "\f8c8"; }
-.bi-person-vcard::before { content: "\f8c9"; }
-.bi-sina-weibo::before { content: "\f8ca"; }
-.bi-tencent-qq::before { content: "\f8cb"; }
-.bi-wikipedia::before { content: "\f8cc"; }

BIN
static/bootstrap-icons.woff2


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 5
static/bootstrap.bundle.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 4
static/bootstrap.min.css


+ 0 - 16
static/theme/base-bs.css

@@ -1,16 +0,0 @@
-
-.qt-box, .card-box {
-	padding: 4px;
-	border: 1px solid black;
-}
-
-
-#tweets .tweet.marked {
-	background-color: powderblue;
-}
-
-
-
-.theme a:visited {
-	color: orange;
-}

+ 0 - 111
templates/base-bs.html

@@ -1,111 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" data-bs-theme="dark">
-<head>
-	<meta charset="utf-8">
-	<meta name="viewport" content="width=device-width, initial-scale=1">
-
-	
-    <link href="{{ url_for('static', filename='bootstrap.min.css') }}" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
-	<script src="{{ url_for('static', filename='bootstrap.bundle.min.js') }}" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
-	
-	<link rel="stylesheet" href="{{ url_for('static', filename='bootstrap-icons.css') }}">
-
-	<link rel="stylesheet" href="{{ url_for('static', filename='theme/base-bs.css') }}">
-
-	{% if visjs_enabled %}
-	
-	<script src="{{ url_for('visjs.static', filename='vis-timeline-graph2d.min.js') }}"></script>
-	<link href="{{ url_for('visjs.static', filename='vis-timeline-graph2d.min.css') }}" rel="stylesheet" type="text/css" />
-	
-	{% endif %}
-
-	<script src="{{ url_for('static', filename='htmx.js') }}"></script>
-
-	{% block head %}
-	<title>{{ title | default('No Title') }}</title>
-	{% endblock %}
-	
-
-	
-	{% if opengraph_info %}
-	{% for prop, content in opengraph_info.items() %}
-	<meta property="og:{{prop}}" content="{{content}}" />
-	{% endfor %}
-	{% endif %}
-	
-<script>
-const Toast = Swal.mixin({
-  toast: true,
-  position: 'top-end',
-  showConfirmButton: false,
-  timer: 3000,
-  timerProgressBar: true,
-  didOpen: (toast) => {
-    toast.addEventListener('mouseenter', Swal.stopTimer)
-    toast.addEventListener('mouseleave', Swal.resumeTimer)
-  }
-})
-</script>
-
-</head>
-<body>
-
-<div class="container">
-
-<div class="row">
-
-<div class="col-lg-3 fixed-lg p-lg-4">
-<h1>Hogumathi</h1>
-
-<ul>
-	{% if nav_items %}
-		{% for nav_item in nav_items|sort(attribute='order') %}
-		<li><a href="{{ nav_item.href }}">{{ nav_item.label }}</a></li>
-		{% endfor %}
-	{% endif %}
-	
-	<!--
-	<li><a href="javascript:document.body.classList.toggle('theme-dark')">Toggle Dark Mode</a></li>
-	<li><a href="javascript:document.location.reload()">Refresh</a></li>
-	-->
-</ul>
-
-
-{% if twitter_user or mastodon_user %}
-
-{% include "partial/compose-form.html" %}
-
-{% endif %}
-
-
-{% if False %}
-<!--
-{% include "partial/media-upload-form.html" %}
--->
-{% endif %}
-
-
-
-<h2>Accounts</h2>
-
-{% include "partial/user-picker.html" %}
-
-{% if add_account_enabled %}
-<a href="{{ url_for('get_login_html') }}">Add account</a>
-{% endif %}
-
-
-</div>
-
-<div class="col-lg-9">
-
-{% block content %}{% endblock %}
-
-</div>
-
-</div>
-
-</div>
-
-</body>
-</html>

+ 0 - 15
templates/tweet-collection-bs.html

@@ -1,15 +0,0 @@
-{% extends "base-bs.html" %}
-
-{% block head %}
-	<title>Tweet Library: {{ user.id }}</title>
-{% endblock %}
-
-
-{% block content %}
-
-	{% include "partial/page-nav-bs.html" %}
-	
-	
-	{% include "partial/tweets-timeline-bs.html" %}
-	
-{% endblock %}

+ 0 - 59
templates/user-profile-bs.html

@@ -1,59 +0,0 @@
-{% extends "base-bs.html" %}
-
-{% block head %}
-	<title>Profile: {{ user.id }}</title>
-
-
-	
-{% endblock %}
-
-{% block content %}
-
-
-
-	<div class="w-100">
-		
-		{% include "partial/user-card-bs.html" %}
-		
-		{% if False %}
-		
-		{% if brand %}
-		{% include "partial/brand-info.html" %}
-		{% endif %}
-		{% endif %}
-		
-		<div class="w-100" style="height: 80px;">
-
-			{% include "partial/page-nav-bs.html" %}
-
-			{% if False %}
-			<div class="w-100">
-			<form action="{{ url_for('twitter_v2_facade.get_profile_html', user_id=user.id) }}" method="GET">
-			
-			<input type="hidden" name="me" value="{{ me }}">
-			<input type="hidden" name="user_id" value="{{ user.id }}">
-			
-			<input type="checkbox" name="exclude_replies" value="1" {% if request.args.exclude_replies %}checked{% endif %}> No replies 
-			|
-			<input type="checkbox" name="only_media" value="1" {%if request.args.only_media %}checked{% endif %}> Only media
-			<br>
-			<button type="submit">Filter</button>
-			</form>
-			</div>
-			{% endif %}
-		</div>
-		
-		
-
-
-
-	
-		{% with show_thread_controls=True %}
-		
-		{% include "partial/tweets-timeline-bs.html" %}
-		
-		{% endwith %}
-		
-
-	</div>
-{% endblock %}

+ 1 - 1
test/unit/twitter_v2_facade_test/test_tweet_source.py

@@ -1,6 +1,6 @@
 import responses
 
-from tweet_source import ApiV2TweetSource
+from twitter_v2.api import ApiV2TweetSource
 
 @responses.activate
 def test_create_tweet ():

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است