text
stringlengths 2
104M
| meta
dict |
---|---|
# Single page isomorphic example
This is a minimal example of Miso's Isomorphic feature. This example is focused on answering the questions:
- What is isomorphism?
- How do I get it to work with Miso?
There's a more expanded example available [here](https://github.com/Tehnix/miso-isomorphic-stack), it uses stack to build the project instead of nix, and it shows how to set up a developer environment.
## About isomorphism
Chances are that you happen to know what the mathematical definition of *isomorphism* is. If you do, forget that definition *right now* and treat it as a new term altogether. That'll be easier.
[Isomorphic Javascript](https://en.wikipedia.org/wiki/Isomorphic_JavaScript) is the idea of having a web application "run" on both client *and* the server. The goal is to make single page javascript applications load faster. In frameworks *without* isomorphism, the server sends an html page with a mostly empty body, along with a big javascript file that fills in the body upon loading. This means that the app user won't see the app until the big javascript file is downloaded and run.
In applications *with* isomorphism, the body of the html page is rendered on the server, by running a minimal part of the app serverside. This way, app users will see a page even before the big javascript file loads. The big javascript file, once loaded, takes over the rendering and adds interactivity.
## Required reading
- [The Miso framework](https://haskell-miso.org/) - The awesome framework of which this is an example.
- [The Elm Architecture](https://guide.elm-lang.org/architecture/) - Miso uses the same architectural concepts. If you're not familiar yet, the linked page should quickly get you up to speed about the core idea.
- [Servant](http://haskell-servant.readthedocs.io/en/stable/) - A Haskell web DSL. Used extensively in this example. Specifically, the introduction and first two sections of the tutorial should cover most of the usage in this example.
## The example explained
This example consists of a server, running the app on port `3003`, and a ghcjs client. Three Haskell files define both:
- [`Common.hs`](common/Common.hs) Contains code used by *both* client and server
- [`client/Main.hs`](client/Main.hs) Defines the client
- [`server/Main.hs`](server/Main.hs) Defines the server
For quick overview, here's which parts of the application are defined where:
| Server | Client | Common |
| ------------- | ------------- | ------------- |
| Top level Html | Update function(s) | `Model` data type |
| Servant routes | subscriptions | Initial model |
| | | `Action` data type |
| | | `View` functions |
| | | Servant routes |
Many important parts of the application are common to both client and server. It's more interesting, though, to look at what *isn't* common: The `update` function(s) and subscriptions live clientside only. This means that the server *cannot* add interactivity to the app. It can only render the actual Html page, using the initial model and the `View` functions. Any `Action`s referred to in the `View` functions are ignored by the server.
So basically it renders the initial Html page, sends it off to the client which then adds interactivity.
Note that "Servant routes" is listed both in `Common` and in `Server`. The routes in `Common` are linked to pages in the app itself, in this example just the top level `/` home route. The routes in `Server` include those defined in `Common`, but also define other routes, in our case the `/static/` route which serves the `all.js` of the clientside app.
## Running the example
Using nix:
```bash
cd $(nix-build) && bin/server
```
**Note**: The current working directory is important when running the server. The server won't be able to find the clientside part of the app when running the server from some place *other* than the folder with `bin` and `static`. This will prevent the javascript from loading and make the buttons not work. In other news, that's a great way of looking at the part of the app sent by the server.
## Developing the project
You can work on the different sub-projects (`client`, `common` and `server`) using `nix-shell` and `cabal`.
`common`:
```bash
cd common
nix-shell
cabal build
...
exit
```
`client`:
```bash
cd client
nix-shell
cabal build --ghcjs
...
exit
```
After the client has been built, you can make a reference to it in the server. The server will need to know where to find the compiled client in order to serve it:
```bash
cd server
mkdir static
ln -sf ../$(find ../client -name all.js) static/
```
Lastly, building and running the server:
```bash
cd server
nix-shell
cabal build
cabal run server
...
exit
```
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}
module Main where
import qualified Common
import Data.Proxy
import qualified Lucid as L
import qualified Lucid.Base as L
import qualified Network.HTTP.Types as HTTP
import qualified Network.Wai as Wai
import qualified Network.Wai.Handler.Warp as Wai
import qualified Network.Wai.Middleware.Gzip as Wai
import qualified Network.Wai.Middleware.RequestLogger as Wai
import qualified Servant
import Servant ( (:>), (:<|>)(..) )
import qualified System.IO as IO
import qualified Miso
import Miso ( View )
main :: IO ()
main = do
IO.hPutStrLn IO.stderr "Running on port 3003..."
Wai.run 3003 $ Wai.logStdout $ compress app
where
compress :: Wai.Middleware
compress = Wai.gzip Wai.def { Wai.gzipFiles = Wai.GzipCompress }
app :: Wai.Application
app =
Servant.serve (Proxy @ServerAPI)
( static
:<|> serverHandlers
:<|> Servant.Tagged page404
)
where
static :: Servant.Server StaticAPI
static = Servant.serveDirectoryFileServer "static"
serverHandlers :: Servant.Server ServerRoutes
serverHandlers = homeServer :<|> flippedServer
-- Alternative type:
-- Servant.Server (ToServerRoutes Common.Home HtmlPage Common.Action)
-- Handles the route for the home page, rendering Common.homeView.
homeServer :: Servant.Handler (HtmlPage (View Common.Action))
homeServer =
pure $ HtmlPage $
Common.viewModel $
Common.initialModel Common.homeLink
-- Alternative type:
-- Servant.Server (ToServerRoutes Common.Flipped HtmlPage Common.Action)
-- Renders the /flipped page.
flippedServer :: Servant.Handler (HtmlPage (View Common.Action))
flippedServer =
pure $ HtmlPage $
Common.viewModel $
Common.initialModel Common.flippedLink
-- The 404 page is a Wai application because the endpoint is Raw.
-- It just renders the page404View and sends it to the client.
page404 :: Wai.Application
page404 _ respond = respond $ Wai.responseLBS
HTTP.status404 [("Content-Type", "text/html")] $
L.renderBS $ L.toHtml Common.page404View
-- | Represents the top level Html code. Its value represents the body of the
-- page.
newtype HtmlPage a = HtmlPage a
deriving (Show, Eq)
instance L.ToHtml a => L.ToHtml (HtmlPage a) where
toHtmlRaw = L.toHtml
toHtml (HtmlPage x) = do
L.doctype_
L.head_ $ do
L.title_ "Miso isomorphic example"
L.meta_ [L.charset_ "utf-8"]
L.with (L.script_ mempty)
[ L.makeAttribute "src" "/static/all.js"
, L.makeAttribute "async" mempty
, L.makeAttribute "defer" mempty
]
L.body_ (L.toHtml x)
-- Converts the ClientRoutes (which are a servant tree of routes leading to
-- some `View action`) to lead to `Get '[Html] (HtmlPage (View Common.Action))`
type ServerRoutes
= Miso.ToServerRoutes Common.ViewRoutes HtmlPage Common.Action
-- The server serves static files besides the ServerRoutes, among which is the
-- javascript file of the client.
type ServerAPI =
StaticAPI
:<|> (ServerRoutes
:<|> Servant.Raw) -- This will show the 404 page for any unknown route
type StaticAPI = "static" :> Servant.Raw
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
{ pkgs ? import ../nixpkgs.nix }:
let
server = pkgs.haskell.packages.ghc.callCabal2nix "server" ./. {
common = pkgs.haskell.packages.ghc.callCabal2nix "common" ../common {};
};
in
if pkgs.lib.inNixShell then server.env else server
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
name: server
version: 0.1.0.0
build-type: Simple
cabal-version: >=1.10
license: PublicDomain
executable server
if impl(ghcjs)
buildable: False
main-is: Main.hs
ghc-options: -O2 -threaded -Wall
default-language: Haskell2010
build-depends: aeson,
base < 5,
common,
containers,
http-types,
lens,
lucid,
miso,
mtl,
network-uri,
servant,
servant-lucid,
servant-server,
wai,
wai-extra,
warp
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}
module Main where
import qualified Common
import Data.Proxy ( Proxy(..) )
import Control.Lens ( (^.), (+=), (-=), (.=), makeLenses )
import qualified Servant.API as Servant
import Servant.API ( (:<|>)(..) )
#if MIN_VERSION_servant(0,10,0)
import qualified Servant.Links as Servant
#endif
import qualified Miso
import Miso ( View, App(..) )
import qualified Miso.String as Miso
main :: IO ()
main =
Miso.miso $ \currentURI -> App
{ initialAction = Common.NoOp
, model = Common.initialModel currentURI
, update = Miso.fromTransition . updateModel
, view = Common.viewModel
, events = Miso.defaultEvents
, subs = [ Miso.uriSub Common.HandleURIChange ]
, mountPoint = Nothing
}
updateModel
:: Common.Action
-> Miso.Transition Common.Action Common.Model ()
updateModel action =
case action of
Common.NoOp -> pure ()
Common.AddOne -> Common.counterValue += 1
Common.SubtractOne -> Common.counterValue -= 1
Common.ChangeURI uri ->
Miso.scheduleIO $ do
Miso.pushURI uri
pure Common.NoOp
Common.HandleURIChange uri -> Common.uri .= uri
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
compiler: ghcjs
packages:
./.
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
{ pkgs ? import ../nixpkgs.nix }:
let
client = pkgs.haskell.packages.ghcjs.callCabal2nix "client" ./. {
common = pkgs.haskell.packages.ghcjs.callCabal2nix "common" ../common {};
};
client_pkg = pkgs.stdenv.mkDerivation {
name = "client";
src = ./.;
installPhase = ''
mkdir -p $out/static
${pkgs.closurecompiler}/bin/closure-compiler ${client}/bin/client.jsexe/all.js > $out/static/all.js
'';
};
in
if pkgs.lib.inNixShell then client.env else client_pkg
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
name: client
version: 0.1.0.0
build-type: Simple
cabal-version: >=1.10
license: PublicDomain
executable client
if !impl(ghcjs)
buildable: False
main-is: Main.hs
ghcjs-options: -dedupe
default-language: Haskell2010
build-depends: aeson,
base < 5,
common,
containers,
lens,
miso,
network-uri,
servant
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
{ pkgs ? import ../nixpkgs.nix }:
let
common = pkgs.haskellPackages.callCabal2nix "common" ./. {};
in
if pkgs.lib.inNixShell then common.env else common
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
name: common
version: 0.1.0.0
build-type: Simple
cabal-version: >=1.10
license: PublicDomain
library
exposed-modules: Common
ghc-options: -Wall
default-language: Haskell2010
build-depends: aeson,
base < 5,
containers,
lens,
miso,
network-uri,
servant
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE CPP #-}
module Common where
import Control.Lens
import Data.Proxy ( Proxy(..) )
import qualified Servant.API as Servant
import Servant.API ( (:<|>)(..), (:>) )
#if MIN_VERSION_servant(0,10,0)
import qualified Servant.Links as Servant
#endif
import qualified Miso
import Miso ( View )
import Miso.Html
import qualified Miso.String as Miso
import qualified Network.URI as Network
data Model
= Model
{ _uri :: !Network.URI
, _counterValue :: !Int
}
deriving (Eq, Show)
initialModel :: Network.URI -> Model
initialModel uri =
Model
{ _uri = uri
, _counterValue = 0
}
data Action
= NoOp
| AddOne
| SubtractOne
| ChangeURI !Network.URI
| HandleURIChange !Network.URI
deriving (Show, Eq)
-- Holds a servant route tree of `View action`
type ViewRoutes = Home :<|> Flipped
-- Home route, contains two buttons and a field
type Home = View Action
-- Flipped route, same as Home, but with the buttons flipped
type Flipped = "flipped" :> View Action
makeLenses ''Model
-- Checks which URI is open and shows the appropriate view
viewModel :: Model -> View Action
viewModel m =
case Miso.runRoute (Proxy @ViewRoutes) viewTree _uri m of
Left _routingError -> page404View
Right v -> v
-- Servant tree of view functions
-- Should follow the structure of ViewRoutes
viewTree
:: (Model -> View Action)
:<|> (Model -> View Action)
viewTree = homeView :<|> flippedView
-- View function of the Home route
homeView :: Model -> View Action
homeView m =
div_ []
[ div_
[]
[ button_ [ onClick SubtractOne ] [ text "-" ]
, text $ Miso.ms $ show $ _counterValue m
, button_ [ onClick AddOne ] [ text "+" ]
]
, button_ [ onClick $ ChangeURI flippedLink ] [ text "Go to /flipped" ]
]
-- View function of the Home route
flippedView :: Model -> View Action
flippedView m =
div_ []
[ div_
[]
[ button_ [ onClick AddOne ] [ text "+" ]
, text $ Miso.ms $ show $ _counterValue m
, button_ [ onClick SubtractOne ] [ text "-" ]
]
, button_ [ onClick $ ChangeURI homeLink ] [ text "Go to /" ]
]
page404View :: View Action
page404View =
text "Yo, 404, page unknown. Go to / or /flipped. Shoo!"
-- Network.URI that points to the home route
homeLink :: Network.URI
homeLink =
#if MIN_VERSION_servant(0,10,0)
Servant.linkURI $ Servant.safeLink (Proxy @ViewRoutes) (Proxy @Home)
#else
safeLink (Proxy @ViewRoutes) (Proxy @Home)
#endif
-- Network.URI that points to the flipped route
flippedLink :: Network.URI
flippedLink =
#if MIN_VERSION_servant(0,10,0)
Servant.linkURI $ Servant.safeLink (Proxy @ViewRoutes) (Proxy @Flipped)
#else
safeLink (Proxy @ViewRoutes) (Proxy @Flipped)
#endif
| {
"repo_name": "FPtje/miso-isomorphic-example",
"stars": "92",
"repo_language": "Haskell",
"file_name": "Common.hs",
"mime_type": "text/plain"
} |
# Awesome Gift
这个仓库主要是收集日常生活中那些美好的礼物以及这些礼物背后的故事,主要面向选择困难症以及不解风情症。有这个想法已经很久了,因为本仓库之前([haoflynet/show_LOVE](程序员专属/网页.md))本身就是一个选择礼物的仓库,只不过当时只收集了一些程序员表白的网页。谈了很多年恋爱了,这次我打算把自己送过的礼物以及我的一些小故事分享出来。请Star、Pull Request或者通过issues给我推荐优秀的礼物或者你们自己的小故事,希望能帮助到其他人。
**说明**
与其他awesome-list不同,我直接使用emoji来做简单的tag功能,因为emoji能够在网页内进行搜索。
价格表示: 🆓 🙂 😎 💰(由少到多)
年龄表示: 👶 👦 👧 👨 👩 👴 👵
性别表示: 🚺 🚹
## 目录
- [程序员专属](#程序员专属)
- [电子数码](#电子数码)
- [家居家电](#家居家电)
- [衣服鞋帽](#衣服鞋帽)
- [精品饰品](#精品饰品)
## 程序员专属
* [网页](程序员专属/网页.md): 表白,就给她做一个网页吧,如果一个不行就做999个。 🆓👨
* [键盘](程序员专属/键盘.md): 没错,键盘真的会让那群人高潮。 😎👨
## 电子数码
* [iphone](电子数码/iphone.md): 给果粉最好的礼物。 💰👦👧👨👩👴👵
* [macbook](电子数码/macbook.md): 设计师和程序员的最佳工作工具。 💰👨👩
## 家居家电
* []()
## 衣服鞋帽
* []()
## 精品饰品
* [手工纸花](精品饰品/手工纸花): 用心做的花永远不会凋谢。 🙂👧👨
* [存钱罐](精品饰品/存钱罐): 为了未来一起努力存钱。 🙂👦👧👨👩
* [愚人节iphone手机盒](精品饰品/愚人节iphone手机盒): 愚人节的时候来一个惊喜。🙂👩
* [生肖吉祥物](精品饰品/生肖吉祥物): 吉祥物用来祝贺新年再好不过了。🙂👶👦👧👨👩👴👵 | {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |
# 收集广大程序员show love的网页,程序员表白专用
以下部分网站可能由于其他原因未联系到作者本人,如有不愿意我的收集,可以立马发送邮件到本人邮箱,我会尽快删除
<http://love.haofly.net>:我很早以前做的,使用SAE的数据库实现了其中部分的动态内容,当然,现在我已经有女朋友了,留着它只是做纪念而已

<https://github.com/phodal/valentine>: 全栈大神phodal做的一个表白神器,网页端只是一个铺垫,重点还是它的硬件

<http://angusme.github.io/>:

<http://liumeijun.com/>: 这位大神直接为该网页用了一个顶级域名,而且利用地图的方式,十分有创意

<http://netcan.zzilcc.com/>:[v2ex](https://v2ex.com/t/256107#reply96)上的用户使用的表白程序,据说现在已脱单

| {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |

## 键盘
适用对象: 程序员
送礼时机: 任何时候,无论他有没有
------
| {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |

## iphone
适用对象: 已经在用苹果的男生和对手机没有要求的女生(如果男生本来用安卓一定要先问问是否对苹果有感)
送礼时机: 任何时候
------
和她在一起一年多的时候。其实早就像给她买一部iphone手机了,她原本的vivo手机没买一两年,卡得已经不像话了。一方面实在受不了她的手机,另一方面我也开始拿工资了,以前就答应过她要让她过上好日子,所以用招商银行12期免息给她买了一部iphone se,知道现在用着都很爽,她也很开心的。
—— haoflynet | {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |

## 网页
适用对象: `不懂技术的妹子`
送礼时机: 任何想表白的日子
------

[网页源码](love.haofly.net)
大概是大二的圣诞节,我做了这么一个网页,想给暗恋已久的她表白。当时还跑到[V2EX](https://www.v2ex.com/t/157281#reply173)上面发帖求点赞,因为我的网页里面还包含了一个点赞按钮,后台能查看实时统计数据,最后大概总共有1000多个UV,成就感还是满满的。网页背景音乐是《夜的钢琴曲五》,不知道为什么,每次在冬天听到这首歌就特别的暖。不过最后的最后我没有把这个给她看。不要觉得遗憾,有些人,错过了就错过了,没什么好遗憾的,都是人生中的一道风景。毕竟,我现在已经有了命中注定的那个她。
—— haoflynet
------

[网页源码](https://github.com/phodal/valentine)
全栈大神phodal做的一个表白神器,网页端只是一个铺垫,重点是他还顺便做了一个漂亮的硬件。用心做的东西,哪个妹子看了不喜欢。
------

[网页源码](https://github.com/Angusme/angusme.github.io)
网上著名的新型表白,背景音乐好听
------

[网页源码](https://github.com/iammapping/wedding)
一个想[在婚礼上搞点事儿](https://www.v2ex.com/t/399784#reply68)的程序员,一个将弹幕与抽奖融合进婚礼请柬的网站,这个创意我给满分。
------

[网页地址](liyang.io/lovestory)
用非常有爱的照片叙述两个人在一起的点点滴滴,右下角的桃心,很一个颗粒代表一张图片,也是很有创意的
------ | {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |

## 键盘
适用对象: 程序员
送礼时机: 任何时候,无论他有没有
------
| {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>LoveYou</title>
<link rel="stylesheet" href="css/fullPage-2.5.2/jquery.fullPage.css" />
<link rel="stylesheet" href="css/Snowfall-1.7/styles.css"></script>
<script src="js/jquery-2.1.3/jquery-2.1.3.min.js" ></script>
<script src="js/fullPage-2.5.2/jquery.fullPage.min.js"></script>
<script src="js/Snowfall-1.7/snowfall.min.jquery.js"></script>
<script src="js/fullPage-2.5.2/jquery.easings.min.js"></script>
<!--全屏滚动效果-->
<script>
$(document).ready(function() {
$('#fullpage').fullpage({
scrollingSpeed: 400,
afterRender: function(){
$(document).snowfall('clear');
$(document).snowfall({
image: "image/huaban.png",
flakeCount:30,
minSize: 5,
maxSize: 22
});
},
afterLoad: function(anchorLink, index){
if(index == 1){
$(document).snowfall('clear');
$(document).snowfall({
image: "image/huaban.png",
flakeCount:30,
minSize: 5,
maxSize: 22
});
}
if(index == 2){
$(document).snowfall('clear');
$(document).snowfall({
image: "image/flake.png",
flakeCount: 30,
minSize: 5,
maxSize: 22
});
$('.sec2').find('div.words').delay(500).animate({
left: '+=500px'
}, 1500);
}
if(index == 4){ // 心形
$(document).snowfall('clear');
$(document).snowfall({
image: "image/huaban.png",
flakeCount:30,
minSize: 5,
maxSize: 22
});
}
}
});
});
</script>
<!--内部元素样式-->
<style>
.words {
position: absolute;
left: 0;
top: 8%;
width: 100%;
padding-left: 8%;
padding-right: 8%;
line-height: 20px;
font-size: 21px;
color: #FFF;
}
.words .left{
left: 500px;
}
.words .right{
right: 100px;
}
.words .bottom{
bottom: 100px;
}
.words .black{
color: #000000;
}
.fuzzy {
-moz-filter: blur(5px);
-webkit-filter: blur(5px);
-o-filter: blur(5px);
-ms-filter: blur(5px);
filter: blur(5px)
}
.down {
position: absolute;
bottom: 10px;
left: 50%;
width: 30px;
margin-left: -15px;
height: 26px;
-webkit-animation: opa_btm 1.5s ease-in-out;
animation: opa_btm 1.5s ease-in-out
}
.down samp {
display: inline-block;
width: 30px;
height: 26px;
-moz-animation: start 1.5s infinite ease-in-out;
-webkit-animation: start 1.5s infinite ease-in-out;
-o-animation: start 1.5s infinite ease-in-out;
-ms-animation: start 1.5s infinite ease-in-out;
animation: start 1.5s infinite ease-in-out;
background: url(http://p3.ucai.cn/static//i3/special/c2/down.gif)center no-repeat
}
@-webkit-keyframes opa_btm{
0%, 25%{
opacity: 0;
-webkit-transform: translate(0, 20px);
}
}
@keyframes opa_btm{
0%, 25%{
opacity: 0;
transform: translate(0, 20px);
}
}
@-webkit-keyframes start {
0%, 30%{
opacity: 0;
-webkit-transform: rotate(180deg) trnaslate(0, -10px)
}
60%{
opacity: 1;
-webkit-transform: rotate(180deg) translate(0, 0)
}
100%{
opacity: 0;
-webkit-transform: rotate(180deg) translate(0, 5px);
}
}
@keyframes start{
0%, 30%{
opacity: 0;
transform: rotate(180deg) translate(0, -10px)
}
60%{
opacity: 1;
transform: rotate(180deg) translate(0, 0)
}
100%{
opacity: 0;
transform: rotate(180deg) translate(0, 5px)
}
}
img {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
vertical-align: middle;
}
</style>
</head>
<body>
<audio src="music/beautiful.mp3" autoplay="autoplay"></audio>
<div id="fullpage">
<div class="section sec1">
<img class="fuzzy" src="image/meigui.jpg"/>
<div class="words">
<p>虽然</p>
<p>每次说喜欢你的时候</p>
<p>你总是拒绝我</p>
<p>从未问过你为什么</p>
<p>我知道,你是怕我没有用真心</p>
<p>连表白都只能用玩笑的语气说出</p>
<p>那是年少时的我</P>
</div>
<div class="down"><samp></samp></div>
</div>
<div class="section sec2">
<img class="fuzzy" src="image/maidou.jpg"/>
<div class="words">
<p>每次和你聊天</p>
<p>我都不知所措</p>
<p>在喜欢的人面前</p>
<p>我总是有点木讷</p>
</div>
<div class="down"><samp></samp></div>
</div>
<div class="section">
<img class="" src="image/mao.jpg"/>
<div class="words">
<p>有人说</p>
<p>我是彻底的宅</p>
<p>其实</p>
<p>我是在用所有的时间</p>
<p>去做一个改变世界的梦</p>
<p>而我的世界</p>
<p>不过就是你的心</p>
</div>
<div class="down"><samp></samp></div>
</div>
<div class="section">
<img src="image/xin.jpg" />
<div class="words">
<div class="black">
<p>虽然我现在</p>
<p>没车,没房</p>
<p>虽然我...</p>
<p>确实很矮</p>
<p>可我有一颗爱你的心</p>
<p>以后,请让我继续为你努力</p>
</div>
</div>
<div class="down"><samp></samp></div>
</div>
<div class="section">
<img class="fuzzy" src="image/lufei1.jpg" />
<div class="words">
<p>我在等那么一天</p>
<p>等我足够优秀</p>
<p>足够勇敢的时候</p>
<p>坚定地站在你面前</p>
<p>那是你从未见过的我</p>>
</div>
<div class="down"><samp></samp></div>
</div>
<div class="section">
<img class="fuzzy" src="image/yejing.jpg" />
<div class="words">
<p>一直希望</p>
<p>能有一个人陪着我</p>
<p>陪我逛街 陪我吃饭</p>
<p>陪我看电影 陪我过每一个情人节、刷卡节</p>
<p>陪我走过每一段时光</p>
</div>
<div class="down"><samp></samp></div>
</div>
<div class="section">
<img class="fuzzy" src="image/hangzhou.jpg" />
<div class="words">
<p>明年</p>
<p>我想去你在的城市</p>
<p>去看看这些年你一个人欣赏过的风景</p>
<p>去走走这些年你一个人散步过的街道</p>
<p>去吃吃这些年你一个人品尝过的美食</p>
</div>
<div class="down"><samp></samp></div>
</div>
<div class="section">
<img class="fuzzy" src="image/jiewen.jpg" />
<div class="words">
<p>终有一天</p>
<p>我会成为一个配得上你的男人</p>
<p>这句话</p>
<p>我只对你一个人说过</p>
</div>
<div class="down"><samp></samp></div>
</div>
<div class="section">
<img class="fuzzy" src="image/xingkong.jpg" />
<div class="words">
<p>虽然我知道</p>
<p>你可能还是会笑着拒绝我</p>
<p>但是今年,以后</p>
<p>我都不会再怯弱了</p>
<p>未来的路,让我陪你,可好</p>
</div>
<div class="down"><samp></samp></div>
</div>
</div>
</body>
</html> | {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |
html,body{padding:0; margin:0;}
.darkBg{background:#2d0f0f url(images/smashing.jpg) top center;background-repeat:no-repeat;}
.lightBg{background : url(images/snow.jpg) #b1dde0 top center no-repeat;}
.collectonme{margin:120px auto; background: red; width:50%; text-align:center; font-size:1.2em; color:#fff;} | {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |
/**
* fullPage 2.4.6
* https://github.com/alvarotrigo/fullPage.js
* MIT licensed
*
* Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
*/
html, body {
margin: 0;
padding: 0;
overflow:hidden;
/*Avoid flicker on slides transitions for mobile phones #336 */
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
#superContainer {
height: 100%;
position: relative;
/* Touch detection for Windows 8 */
-ms-touch-action: none;
/* IE 11 on Windows Phone 8.1*/
touch-action: none;
}
.fp-section {
position: relative;
-webkit-box-sizing: border-box; /* Safari<=5 Android<=3 */
-moz-box-sizing: border-box; /* <=28 */
box-sizing: border-box;
}
.fp-slide {
float: left;
}
.fp-slide, .fp-slidesContainer {
height: 100%;
display: block;
}
.fp-slides {
z-index:1;
height: 100%;
overflow: hidden;
position: relative;
-webkit-transition: all 0.3s ease-out; /* Safari<=6 Android<=4.3 */
transition: all 0.3s ease-out;
}
.fp-section.fp-table, .fp-slide.fp-table {
display: table;
table-layout:fixed;
width: 100%;
}
.fp-tableCell {
display: table-cell;
vertical-align: middle;
width: 100%;
height: 100%;
}
.fp-slidesContainer {
float: left;
position: relative;
}
.fp-controlArrow {
position: absolute;
z-index: 4;
top: 50%;
cursor: pointer;
width: 0;
height: 0;
border-style: solid;
margin-top: -38px;
}
.fp-controlArrow.fp-prev {
left: 15px;
width: 0;
border-width: 38.5px 34px 38.5px 0;
border-color: transparent #fff transparent transparent;
}
.fp-controlArrow.fp-next {
right: 15px;
border-width: 38.5px 0 38.5px 34px;
border-color: transparent transparent transparent #fff;
}
.fp-scrollable {
overflow: scroll;
}
.fp-notransition {
-webkit-transition: none !important;
transition: none !important;
}
#fp-nav {
position: fixed;
z-index: 100;
margin-top: -32px;
top: 50%;
opacity: 1;
}
#fp-nav.right {
right: 17px;
}
#fp-nav.left {
left: 17px;
}
.fp-slidesNav{
position: absolute;
z-index: 4;
left: 50%;
opacity: 1;
}
.fp-slidesNav.bottom {
bottom: 17px;
}
.fp-slidesNav.top {
top: 17px;
}
#fp-nav ul,
.fp-slidesNav ul {
margin: 0;
padding: 0;
}
#fp-nav ul li,
.fp-slidesNav ul li {
display: block;
width: 14px;
height: 13px;
margin: 7px;
position:relative;
}
.fp-slidesNav ul li {
display: inline-block;
}
#fp-nav ul li a,
.fp-slidesNav ul li a {
display: block;
position: relative;
z-index: 1;
width: 100%;
height: 100%;
cursor: pointer;
text-decoration: none;
}
#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span {
background: #333;
}
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
top: 2px;
left: 2px;
width: 8px;
height: 8px;
border: 1px solid #000;
background: rgba(0, 0, 0, 0);
border-radius: 50%;
position: absolute;
z-index: 1;
}
#fp-nav ul li .fp-tooltip {
position: absolute;
top: -2px;
color: #fff;
font-size: 14px;
font-family: arial, helvetica, sans-serif;
white-space: nowrap;
max-width: 220px;
overflow: hidden;
display: block;
opacity: 0;
width: 0;
}
#fp-nav ul li:hover .fp-tooltip {
-webkit-transition: opacity 0.2s ease-in;
transition: opacity 0.2s ease-in;
width: auto;
opacity: 1;
}
#fp-nav ul li .fp-tooltip.right {
right: 20px;
}
#fp-nav ul li .fp-tooltip.left {
left: 20px;
}
| {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |
/**
* fullPage 2.5.2
* https://github.com/alvarotrigo/fullPage.js
* MIT licensed
*
* Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
*/
(function($) {
$.fn.fullpage = function(options) {
// Create some defaults, extending them with any options that were provided
options = $.extend({
//navigation
'menu': false,
'anchors':[],
'navigation': false,
'navigationPosition': 'right',
'navigationColor': '#000',
'navigationTooltips': [],
'slidesNavigation': false,
'slidesNavPosition': 'bottom',
'scrollBar': false,
//scrolling
'css3': true,
'scrollingSpeed': 700,
'autoScrolling': true,
'easing': 'easeInQuart',
'easingcss3': 'ease',
'loopBottom': false,
'loopTop': false,
'loopHorizontal': true,
'continuousVertical': false,
'normalScrollElements': null,
'scrollOverflow': false,
'touchSensitivity': 5,
'normalScrollElementTouchThreshold': 5,
//Accessibility
'keyboardScrolling': true,
'animateAnchor': true,
//design
'controlArrows': true,
'controlArrowColor': '#fff',
"verticalCentered": true,
'resize': true,
'sectionsColor' : [],
'paddingTop': 0,
'paddingBottom': 0,
'fixedElements': null,
'responsive': 0,
//Custom selectors
'sectionSelector': '.section',
'slideSelector': '.slide',
//events
'afterLoad': null,
'onLeave': null,
'afterRender': null,
'afterResize': null,
'afterReBuild': null,
'afterSlideLoad': null,
'onSlideLeave': null
}, options);
displayWarnings();
//easeInQuart animation included in the plugin
$.extend($.easing,{ easeInQuart: function (x, t, b, c, d) { return c*(t/=d)*t*t*t + b; }});
//Defines the delay to take place before being able to scroll to the next section
//BE CAREFUL! Not recommened to change it under 400 for a good behavior in laptops and
//Apple devices (laptops, mouses...)
var scrollDelay = 600;
$.fn.fullpage.setAutoScrolling = function(value){
options.autoScrolling = value;
var element = $('.fp-section.active');
if(options.autoScrolling && !options.scrollBar){
$('html, body').css({
'overflow' : 'hidden',
'height' : '100%'
});
//for IE touch devices
container.css({
'-ms-touch-action': 'none',
'touch-action': 'none'
});
if(element.length){
//moving the container up
silentScroll(element.position().top);
}
}else{
$('html, body').css({
'overflow' : 'visible',
'height' : 'initial'
});
//for IE touch devices
container.css({
'-ms-touch-action': '',
'touch-action': ''
});
silentScroll(0);
//scrolling the page to the section with no animation
$('html, body').scrollTop(element.position().top);
}
};
/**
* Defines the scrolling speed
*/
$.fn.fullpage.setScrollingSpeed = function(value){
options.scrollingSpeed = value;
};
/**
* Adds or remove the possiblity of scrolling through sections by using the mouse wheel or the trackpad.
*/
$.fn.fullpage.setMouseWheelScrolling = function (value){
if(value){
addMouseWheelHandler();
}else{
removeMouseWheelHandler();
}
};
/**
* Adds or remove the possiblity of scrolling through sections by using the mouse wheel/trackpad or touch gestures.
* Optionally a second parameter can be used to specify the direction for which the action will be applied.
*
* @param directions string containing the direction or directions separated by comma.
*/
$.fn.fullpage.setAllowScrolling = function (value, directions){
if(typeof directions != 'undefined'){
directions = directions.replace(' ', '').split(',');
$.each(directions, function (index, direction){
setIsScrollable(value, direction);
});
}
else if(value){
$.fn.fullpage.setMouseWheelScrolling(true);
addTouchHandler();
}else{
$.fn.fullpage.setMouseWheelScrolling(false);
removeTouchHandler();
}
};
/**
* Adds or remove the possiblity of scrolling through sections by using the keyboard arrow keys
*/
$.fn.fullpage.setKeyboardScrolling = function (value){
options.keyboardScrolling = value;
};
$.fn.fullpage.moveSectionUp = function(){
var prev = $('.fp-section.active').prev('.fp-section');
//looping to the bottom if there's no more sections above
if (!prev.length && (options.loopTop || options.continuousVertical)) {
prev = $('.fp-section').last();
}
if (prev.length) {
scrollPage(prev, null, true);
}
};
$.fn.fullpage.moveSectionDown = function (){
var next = $('.fp-section.active').next('.fp-section');
//looping to the top if there's no more sections below
if(!next.length &&
(options.loopBottom || options.continuousVertical)){
next = $('.fp-section').first();
}
if(next.length){
scrollPage(next, null, false);
}
};
$.fn.fullpage.moveTo = function (section, slide){
var destiny = '';
if(isNaN(section)){
destiny = $('[data-anchor="'+section+'"]');
}else{
destiny = $('.fp-section').eq( (section -1) );
}
if (typeof slide !== 'undefined'){
scrollPageAndSlide(section, slide);
}else if(destiny.length > 0){
scrollPage(destiny);
}
};
$.fn.fullpage.moveSlideRight = function(){
moveSlide('next');
};
$.fn.fullpage.moveSlideLeft = function(){
moveSlide('prev');
};
/**
* When resizing is finished, we adjust the slides sizes and positions
*/
$.fn.fullpage.reBuild = function(resizing){
isResizing = true;
var windowsWidth = $(window).width();
windowsHeight = $(window).height(); //updating global var
//text and images resizing
if (options.resize) {
resizeMe(windowsHeight, windowsWidth);
}
$('.fp-section').each(function(){
var scrollHeight = windowsHeight - parseInt($(this).css('padding-bottom')) - parseInt($(this).css('padding-top'));
//adjusting the height of the table-cell for IE and Firefox
if(options.verticalCentered){
$(this).find('.fp-tableCell').css('height', getTableHeight($(this)) + 'px');
}
$(this).css('height', windowsHeight + 'px');
//resizing the scrolling divs
if(options.scrollOverflow){
var slides = $(this).find('.fp-slide');
if(slides.length){
slides.each(function(){
createSlimScrolling($(this));
});
}else{
createSlimScrolling($(this));
}
}
//adjusting the position fo the FULL WIDTH slides...
var slides = $(this).find('.fp-slides');
if (slides.length) {
landscapeScroll(slides, slides.find('.fp-slide.active'));
}
});
//adjusting the position for the current section
var destinyPos = $('.fp-section.active').position();
var activeSection = $('.fp-section.active');
//isn't it the first section?
if(activeSection.index('.fp-section')){
scrollPage(activeSection);
}
isResizing = false;
$.isFunction( options.afterResize ) && resizing && options.afterResize.call( this )
$.isFunction( options.afterReBuild ) && !resizing && options.afterReBuild.call( this );
}
//flag to avoid very fast sliding for landscape sliders
var slideMoving = false;
var isTouchDevice = navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|Windows Phone|Tizen|Bada)/);
var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints));
var container = $(this);
var windowsHeight = $(window).height();
var isMoving = false;
var isResizing = false;
var lastScrolledDestiny;
var lastScrolledSlide;
var nav;
var wrapperSelector = 'fullpage-wrapper';
var isScrollAllowed = { 'up':true, 'down':true, 'left':true, 'right':true };
$.fn.fullpage.setAllowScrolling(true);
//if css3 is not supported, it will use jQuery animations
if(options.css3){
options.css3 = support3d();
}
if($(this).length){
container.css({
'height': '100%',
'position': 'relative'
});
//adding a class to recognize the container internally in the code
container.addClass(wrapperSelector);
}
//trying to use fullpage without a selector?
else{
showError('error', "Error! Fullpage.js needs to be initialized with a selector. For example: $('#myContainer').fullpage();");
}
//adding internal class names to void problem with common ones
$(options.sectionSelector).each(function(){
$(this).addClass('fp-section');
});
$(options.slideSelector).each(function(){
$(this).addClass('fp-slide');
});
//creating the navigation dots
if (options.navigation) {
addVerticalNavigation();
}
$('.fp-section').each(function(index){
var that = $(this);
var slides = $(this).find('.fp-slide');
var numSlides = slides.length;
//if no active section is defined, the 1st one will be the default one
if(!index && $('.fp-section.active').length === 0) {
$(this).addClass('active');
}
$(this).css('height', windowsHeight + 'px');
if(options.paddingTop || options.paddingBottom){
$(this).css('padding', options.paddingTop + ' 0 ' + options.paddingBottom + ' 0');
}
if (typeof options.sectionsColor[index] !== 'undefined') {
$(this).css('background-color', options.sectionsColor[index]);
}
if (typeof options.anchors[index] !== 'undefined') {
$(this).attr('data-anchor', options.anchors[index]);
}
// if there's any slide
if (numSlides > 1) {
var sliderWidth = numSlides * 100;
var slideWidth = 100 / numSlides;
slides.wrapAll('<div class="fp-slidesContainer" />');
slides.parent().wrap('<div class="fp-slides" />');
$(this).find('.fp-slidesContainer').css('width', sliderWidth + '%');
if(options.controlArrows){
createSlideArrows($(this));
}
if(options.slidesNavigation){
addSlidesNavigation($(this), numSlides);
}
slides.each(function(index) {
$(this).css('width', slideWidth + '%');
if(options.verticalCentered){
addTableClass($(this));
}
});
var startingSlide = that.find('.fp-slide.active');
//if the slide won#t be an starting point, the default will be the first one
if(startingSlide.length == 0){
slides.eq(0).addClass('active');
}
//is there a starting point for a non-starting section?
else{
silentLandscapeScroll(startingSlide);
}
}else{
if(options.verticalCentered){
addTableClass($(this));
}
}
}).promise().done(function(){
$.fn.fullpage.setAutoScrolling(options.autoScrolling);
//the starting point is a slide?
var activeSlide = $('.fp-section.active').find('.fp-slide.active');
//the active section isn't the first one? Is not the first slide of the first section? Then we load that section/slide by default.
if( activeSlide.length && ($('.fp-section.active').index('.fp-section') != 0 || ($('.fp-section.active').index('.fp-section') == 0 && activeSlide.index() != 0))){
silentLandscapeScroll(activeSlide);
}
//fixed elements need to be moved out of the plugin container due to problems with CSS3.
if(options.fixedElements && options.css3){
$(options.fixedElements).appendTo('body');
}
//vertical centered of the navigation + first bullet active
if(options.navigation){
nav.css('margin-top', '-' + (nav.height()/2) + 'px');
nav.find('li').eq($('.fp-section.active').index('.fp-section')).find('a').addClass('active');
}
//moving the menu outside the main container if it is inside (avoid problems with fixed positions when using CSS3 tranforms)
if(options.menu && options.css3 && $(options.menu).closest('.fullpage-wrapper').length){
$(options.menu).appendTo('body');
}
if(options.scrollOverflow){
if(document.readyState === "complete"){
createSlimScrollingHandler();
}
//after DOM and images are loaded
$(window).on('load', createSlimScrollingHandler);
}else{
$.isFunction( options.afterRender ) && options.afterRender.call( this);
}
responsive();
//getting the anchor link in the URL and deleting the `#`
var value = window.location.hash.replace('#', '').split('/');
var destiny = value[0];
if(destiny.length){
var section = $('[data-anchor="'+destiny+'"]');
if(!options.animateAnchor && section.length){
if(options.autoScrolling){
silentScroll(section.position().top);
}
else{
silentScroll(0);
setBodyClass(destiny);
//scrolling the page to the section with no animation
$('html, body').scrollTop(section.position().top);
}
activateMenuAndNav(destiny, null);
$.isFunction( options.afterLoad ) && options.afterLoad.call( this, destiny, (section.index('.fp-section') + 1));
//updating the active class
section.addClass('active').siblings().removeClass('active');
}
}
$(window).on('load', function() {
scrollToAnchor();
});
});
/**
* Creates the control arrows for the given section
*/
function createSlideArrows(section){
section.find('.fp-slides').after('<div class="fp-controlArrow fp-prev"></div><div class="fp-controlArrow fp-next"></div>');
if(options.controlArrowColor!='#fff'){
section.find('.fp-controlArrow.fp-next').css('border-color', 'transparent transparent transparent '+options.controlArrowColor);
section.find('.fp-controlArrow.fp-prev').css('border-color', 'transparent '+ options.controlArrowColor + ' transparent transparent');
}
if(!options.loopHorizontal){
section.find('.fp-controlArrow.fp-prev').hide();
}
}
/**
* Creates a vertical navigation bar.
*/
function addVerticalNavigation(){
$('body').append('<div id="fp-nav"><ul></ul></div>');
nav = $('#fp-nav');
nav.css('color', options.navigationColor);
nav.addClass(options.navigationPosition);
for (var i = 0; i < $('.fp-section').length; i++) {
var link = '';
if (options.anchors.length) {
link = options.anchors[i];
}
var li = '<li><a href="#' + link + '"><span></span></a>';
// Only add tooltip if needed (defined by user)
var tooltip = options.navigationTooltips[i];
if (tooltip != undefined && tooltip != '') {
li += '<div class="fp-tooltip ' + options.navigationPosition + '">' + tooltip + '</div>';
}
li += '</li>';
nav.find('ul').append(li);
}
}
function createSlimScrollingHandler(){
$('.fp-section').each(function(){
var slides = $(this).find('.fp-slide');
if(slides.length){
slides.each(function(){
createSlimScrolling($(this));
});
}else{
createSlimScrolling($(this));
}
});
$.isFunction( options.afterRender ) && options.afterRender.call( this);
}
var scrollId;
var scrollId2;
var isScrolling = false;
//when scrolling...
$(window).on('scroll', scrollHandler);
function scrollHandler(){
if(!options.autoScrolling || options.scrollBar){
var currentScroll = $(window).scrollTop();
var visibleSectionIndex = 0;
var initial = Math.abs(currentScroll - $('.fp-section').first().offset().top);
//taking the section which is showing more content in the viewport
$('.fp-section').each(function(index){
var current = Math.abs(currentScroll - $(this).offset().top);
if(current < initial){
visibleSectionIndex = index;
initial = current;
}
});
//geting the last one, the current one on the screen
var currentSection = $('.fp-section').eq(visibleSectionIndex);
}
if(!options.autoScrolling){
//executing only once the first time we reach the section
if(!currentSection.hasClass('active')){
isScrolling = true;
var leavingSection = $('.fp-section.active').index('.fp-section') + 1;
var yMovement = getYmovement(currentSection);
var anchorLink = currentSection.data('anchor');
currentSection.addClass('active').siblings().removeClass('active');
if(!isMoving){
$.isFunction( options.onLeave ) && options.onLeave.call( this, leavingSection, (currentSection.index('.fp-section') + 1), yMovement);
$.isFunction( options.afterLoad ) && options.afterLoad.call( this, anchorLink, (currentSection.index('.fp-section') + 1));
}
activateMenuAndNav(anchorLink, 0);
if(options.anchors.length && !isMoving){
//needed to enter in hashChange event when using the menu with anchor links
lastScrolledDestiny = anchorLink;
location.hash = anchorLink;
}
//small timeout in order to avoid entering in hashChange event when scrolling is not finished yet
clearTimeout(scrollId);
scrollId = setTimeout(function(){
isScrolling = false;
}, 100);
}
}
if(options.scrollBar){
//for the auto adjust of the viewport to fit a whole section
clearTimeout(scrollId2);
scrollId2 = setTimeout(function(){
if(!isMoving){
scrollPage(currentSection);
}
}, 1000);
}
}
/**
* Determines whether the active section or slide is scrollable through and scrolling bar
*/
function isScrollable(activeSection){
//if there are landscape slides, we check if the scrolling bar is in the current one or not
if(activeSection.find('.fp-slides').length){
scrollable= activeSection.find('.fp-slide.active').find('.fp-scrollable');
}else{
scrollable = activeSection.find('.fp-scrollable');
}
return scrollable;
}
/**
* Determines the way of scrolling up or down:
* by 'automatically' scrolling a section or by using the default and normal scrolling.
*/
function scrolling(type, scrollable){
if (!isScrollAllowed[type]){
return;
}
if(type == 'down'){
var check = 'bottom';
var scrollSection = $.fn.fullpage.moveSectionDown;
}else{
var check = 'top';
var scrollSection = $.fn.fullpage.moveSectionUp;
}
if(scrollable.length > 0 ){
//is the scrollbar at the start/end of the scroll?
if(isScrolled(check, scrollable)){
scrollSection();
}else{
return true;
}
}else{
// moved up/down
scrollSection();
}
}
var touchStartY = 0;
var touchStartX = 0;
var touchEndY = 0;
var touchEndX = 0;
/* Detecting touch events
* As we are changing the top property of the page on scrolling, we can not use the traditional way to detect it.
* This way, the touchstart and the touch moves shows an small difference between them which is the
* used one to determine the direction.
*/
function touchMoveHandler(event){
var e = event.originalEvent;
// additional: if one of the normalScrollElements isn't within options.normalScrollElementTouchThreshold hops up the DOM chain
if (!checkParentForNormalScrollElement(event.target)) {
if(options.autoScrolling && !options.scrollBar){
//preventing the easing on iOS devices
event.preventDefault();
}
var activeSection = $('.fp-section.active');
var scrollable = isScrollable(activeSection);
if (!isMoving && !slideMoving) { //if theres any #
var touchEvents = getEventsPage(e);
touchEndY = touchEvents['y'];
touchEndX = touchEvents['x'];
//if movement in the X axys is greater than in the Y and the currect section has slides...
if (activeSection.find('.fp-slides').length && Math.abs(touchStartX - touchEndX) > (Math.abs(touchStartY - touchEndY))) {
//is the movement greater than the minimum resistance to scroll?
if (Math.abs(touchStartX - touchEndX) > ($(window).width() / 100 * options.touchSensitivity)) {
if (touchStartX > touchEndX) {
if(isScrollAllowed.right){
$.fn.fullpage.moveSlideRight(); //next
}
} else {
if(isScrollAllowed.left){
$.fn.fullpage.moveSlideLeft(); //prev
}
}
}
}
//vertical scrolling (only when autoScrolling is enabled)
else if(options.autoScrolling && !options.scrollBar){
//is the movement greater than the minimum resistance to scroll?
if (Math.abs(touchStartY - touchEndY) > ($(window).height() / 100 * options.touchSensitivity)) {
if (touchStartY > touchEndY) {
scrolling('down', scrollable);
} else if (touchEndY > touchStartY) {
scrolling('up', scrollable);
}
}
}
}
}
}
/**
* recursive function to loop up the parent nodes to check if one of them exists in options.normalScrollElements
* Currently works well for iOS - Android might need some testing
* @param {Element} el target element / jquery selector (in subsequent nodes)
* @param {int} hop current hop compared to options.normalScrollElementTouchThreshold
* @return {boolean} true if there is a match to options.normalScrollElements
*/
function checkParentForNormalScrollElement (el, hop) {
hop = hop || 0;
var parent = $(el).parent();
if (hop < options.normalScrollElementTouchThreshold &&
parent.is(options.normalScrollElements) ) {
return true;
} else if (hop == options.normalScrollElementTouchThreshold) {
return false;
} else {
return checkParentForNormalScrollElement(parent, ++hop);
}
}
function touchStartHandler(event){
var e = event.originalEvent;
var touchEvents = getEventsPage(e);
touchStartY = touchEvents['y'];
touchStartX = touchEvents['x'];
}
/**
* Detecting mousewheel scrolling
*
* http://blogs.sitepointstatic.com/examples/tech/mouse-wheel/index.html
* http://www.sitepoint.com/html5-javascript-mouse-wheel/
*/
function MouseWheelHandler(e) {
if(options.autoScrolling){
// cross-browser wheel delta
e = window.event || e;
var delta = Math.max(-1, Math.min(1,
(e.wheelDelta || -e.deltaY || -e.detail)));
//preventing to scroll the site on mouse wheel when scrollbar is present
if(options.scrollBar){
e.preventDefault ? e.preventDefault() : e.returnValue = false;
}
var activeSection = $('.fp-section.active');
var scrollable = isScrollable(activeSection);
if (!isMoving) { //if theres any #
//scrolling down?
if (delta < 0) {
scrolling('down', scrollable);
//scrolling up?
}else {
scrolling('up', scrollable);
}
}
return false;
}
}
function moveSlide(direction){
var activeSection = $('.fp-section.active');
var slides = activeSection.find('.fp-slides');
// more than one slide needed and nothing should be sliding
if (!slides.length || slideMoving) {
return;
}
var currentSlide = slides.find('.fp-slide.active');
var destiny = null;
if(direction === 'prev'){
destiny = currentSlide.prev('.fp-slide');
}else{
destiny = currentSlide.next('.fp-slide');
}
//isn't there a next slide in the secuence?
if(!destiny.length){
//respect loopHorizontal settin
if (!options.loopHorizontal) return;
if(direction === 'prev'){
destiny = currentSlide.siblings(':last');
}else{
destiny = currentSlide.siblings(':first');
}
}
slideMoving = true;
landscapeScroll(slides, destiny);
}
/**
* Maintains the active slides in the viewport
* (Because he `scroll` animation might get lost with some actions, such as when using continuousVertical)
*/
function keepSlidesPosition(){
$('.fp-slide.active').each(function(){
silentLandscapeScroll($(this));
});
}
/**
* Scrolls the site to the given element and scrolls to the slide if a callback is given.
*/
function scrollPage(element, callback, isMovementUp){
var dest = element.position();
if(typeof dest === "undefined"){ return; } //there's no element to scroll, leaving the function
//local variables
var v = {
element: element,
callback: callback,
isMovementUp: isMovementUp,
dest: dest,
dtop: dest.top,
yMovement: getYmovement(element),
anchorLink: element.data('anchor'),
sectionIndex: element.index('.fp-section'),
activeSlide: element.find('.fp-slide.active'),
activeSection: $('.fp-section.active'),
leavingSection: $('.fp-section.active').index('.fp-section') + 1,
//caching the value of isResizing at the momment the function is called
//because it will be checked later inside a setTimeout and the value might change
localIsResizing: isResizing
};
//quiting when destination scroll is the same as the current one
if((v.activeSection.is(element) && !isResizing) || (options.scrollBar && $(window).scrollTop() === v.dtop)){ return; }
if(v.activeSlide.length){
var slideAnchorLink = v.activeSlide.data('anchor');
var slideIndex = v.activeSlide.index();
}
// If continuousVertical && we need to wrap around
if (options.autoScrolling && options.continuousVertical && typeof (v.isMovementUp) !== "undefined" &&
((!v.isMovementUp && v.yMovement == 'up') || // Intending to scroll down but about to go up or
(v.isMovementUp && v.yMovement == 'down'))) { // intending to scroll up but about to go down
v = createInfiniteSections(v);
}
element.addClass('active').siblings().removeClass('active');
//preventing from activating the MouseWheelHandler event
//more than once if the page is scrolling
isMoving = true;
setURLHash(slideIndex, slideAnchorLink, v.anchorLink, v.sectionIndex);
//callback (onLeave) if the site is not just resizing and readjusting the slides
$.isFunction(options.onLeave) && !v.localIsResizing && options.onLeave.call(this, v.leavingSection, (v.sectionIndex + 1), v.yMovement);
performMovement(v);
//flag to avoid callingn `scrollPage()` twice in case of using anchor links
lastScrolledDestiny = v.anchorLink;
//avoid firing it twice (as it does also on scroll)
if(options.autoScrolling){
activateMenuAndNav(v.anchorLink, v.sectionIndex)
}
}
/**
* Performs the movement (by CSS3 or by jQuery)
*/
function performMovement(v){
// using CSS3 translate functionality
if (options.css3 && options.autoScrolling && !options.scrollBar) {
var translate3d = 'translate3d(0px, -' + v.dtop + 'px, 0px)';
transformContainer(translate3d, true);
setTimeout(function () {
afterSectionLoads(v);
}, options.scrollingSpeed);
}
// using jQuery animate
else{
var scrollSettings = getScrollSettings(v);
$(scrollSettings.element).animate(
scrollSettings.options
, options.scrollingSpeed, options.easing).promise().done(function () { //only one single callback in case of animating `html, body`
afterSectionLoads(v);
});
}
}
/**
* Gets the scrolling settings depending on the plugin autoScrolling option
*/
function getScrollSettings(v){
var scroll = {};
if(options.autoScrolling && !options.scrollBar){
scroll.options = { 'top': -v.dtop};
scroll.element = '.'+wrapperSelector;
}else{
scroll.options = { 'scrollTop': v.dtop};
scroll.element = 'html, body';
}
return scroll;
}
/**
* Adds sections before or after the current one to create the infinite effect.
*/
function createInfiniteSections(v){
// Scrolling down
if (!v.isMovementUp) {
// Move all previous sections to after the active section
$(".fp-section.active").after(v.activeSection.prevAll(".fp-section").get().reverse());
}
else { // Scrolling up
// Move all next sections to before the active section
$(".fp-section.active").before(v.activeSection.nextAll(".fp-section"));
}
// Maintain the displayed position (now that we changed the element order)
silentScroll($('.fp-section.active').position().top);
// Maintain the active slides visible in the viewport
keepSlidesPosition();
// save for later the elements that still need to be reordered
v.wrapAroundElements = v.activeSection;
// Recalculate animation variables
v.dest = v.element.position();
v.dtop = v.dest.top;
v.yMovement = getYmovement(v.element);
return v;
}
/**
* Fix section order after continuousVertical changes have been animated
*/
function continuousVerticalFixSectionOrder (v) {
// If continuousVertical is in effect (and autoScrolling would also be in effect then),
// finish moving the elements around so the direct navigation will function more simply
if (!v.wrapAroundElements || !v.wrapAroundElements.length) {
return;
}
if (v.isMovementUp) {
$('.fp-section:first').before(v.wrapAroundElements);
}
else {
$('.fp-section:last').after(v.wrapAroundElements);
}
silentScroll($('.fp-section.active').position().top);
// Maintain the active slides visible in the viewport
keepSlidesPosition();
};
/**
* Actions to do once the section is loaded
*/
function afterSectionLoads (v){
continuousVerticalFixSectionOrder(v);
//callback (afterLoad) if the site is not just resizing and readjusting the slides
$.isFunction(options.afterLoad) && !v.localIsResizing && options.afterLoad.call(this, v.anchorLink, (v.sectionIndex + 1));
setTimeout(function () {
isMoving = false;
$.isFunction(v.callback) && v.callback.call(this);
}, scrollDelay);
}
/**
* Scrolls to the anchor in the URL when loading the site
*/
function scrollToAnchor(){
//getting the anchor link in the URL and deleting the `#`
var value = window.location.hash.replace('#', '').split('/');
var section = value[0];
var slide = value[1];
if(section){ //if theres any #
scrollPageAndSlide(section, slide);
}
}
//detecting any change on the URL to scroll to the given anchor link
//(a way to detect back history button as we play with the hashes on the URL)
$(window).on('hashchange', hashChangeHandler);
function hashChangeHandler(){
if(!isScrolling){
var value = window.location.hash.replace('#', '').split('/');
var section = value[0];
var slide = value[1];
if(section.length){
//when moving to a slide in the first section for the first time (first time to add an anchor to the URL)
var isFirstSlideMove = (typeof lastScrolledDestiny === 'undefined');
var isFirstScrollMove = (typeof lastScrolledDestiny === 'undefined' && typeof slide === 'undefined' && !slideMoving);
/*in order to call scrollpage() only once for each destination at a time
It is called twice for each scroll otherwise, as in case of using anchorlinks `hashChange`
event is fired on every scroll too.*/
if ((section && section !== lastScrolledDestiny) && !isFirstSlideMove || isFirstScrollMove || (!slideMoving && lastScrolledSlide != slide )) {
scrollPageAndSlide(section, slide);
}
}
}
}
/**
* Sliding with arrow keys, both, vertical and horizontal
*/
$(document).keydown(function(e) {
//Moving the main page with the keyboard arrows if keyboard scrolling is enabled
if (options.keyboardScrolling && options.autoScrolling) {
//preventing the scroll with arrow keys
if(e.which == 40 || e.which == 38){
e.preventDefault();
}
if(!isMoving){
switch (e.which) {
//up
case 38:
case 33:
$.fn.fullpage.moveSectionUp();
break;
//down
case 40:
case 34:
$.fn.fullpage.moveSectionDown();
break;
//Home
case 36:
$.fn.fullpage.moveTo(1);
break;
//End
case 35:
$.fn.fullpage.moveTo( $('.fp-section').length );
break;
//left
case 37:
$.fn.fullpage.moveSlideLeft();
break;
//right
case 39:
$.fn.fullpage.moveSlideRight();
break;
default:
return; // exit this handler for other keys
}
}
}
});
/**
* Scrolls to the section when clicking the navigation bullet
*/
$(document).on('click touchstart', '#fp-nav a', function(e){
e.preventDefault();
var index = $(this).parent().index();
scrollPage($('.fp-section').eq(index));
});
/**
* Scrolls the slider to the given slide destination for the given section
*/
$(document).on('click touchstart', '.fp-slidesNav a', function(e){
e.preventDefault();
var slides = $(this).closest('.fp-section').find('.fp-slides');
var destiny = slides.find('.fp-slide').eq($(this).closest('li').index());
landscapeScroll(slides, destiny);
});
if(options.normalScrollElements){
$(document).on('mouseenter', options.normalScrollElements, function () {
$.fn.fullpage.setMouseWheelScrolling(false);
});
$(document).on('mouseleave', options.normalScrollElements, function(){
$.fn.fullpage.setMouseWheelScrolling(true);
});
}
/**
* Scrolling horizontally when clicking on the slider controls.
*/
$('.fp-section').on('click touchstart', '.fp-controlArrow', function() {
if ($(this).hasClass('fp-prev')) {
$.fn.fullpage.moveSlideLeft();
} else {
$.fn.fullpage.moveSlideRight();
}
});
/**
* Scrolls horizontal sliders.
*/
function landscapeScroll(slides, destiny){
var destinyPos = destiny.position();
var slidesContainer = slides.find('.fp-slidesContainer').parent();
var slideIndex = destiny.index();
var section = slides.closest('.fp-section');
var sectionIndex = section.index('.fp-section');
var anchorLink = section.data('anchor');
var slidesNav = section.find('.fp-slidesNav');
var slideAnchor = destiny.data('anchor');
//caching the value of isResizing at the momment the function is called
//because it will be checked later inside a setTimeout and the value might change
var localIsResizing = isResizing;
if(options.onSlideLeave){
var prevSlideIndex = section.find('.fp-slide.active').index();
var xMovement = getXmovement(prevSlideIndex, slideIndex);
//if the site is not just resizing and readjusting the slides
if(!localIsResizing && xMovement!=='none'){
$.isFunction( options.onSlideLeave ) && options.onSlideLeave.call( this, anchorLink, (sectionIndex + 1), prevSlideIndex, xMovement);
}
}
destiny.addClass('active').siblings().removeClass('active');
if(typeof slideAnchor === 'undefined'){
slideAnchor = slideIndex;
}
if(!options.loopHorizontal && options.controlArrows){
//hidding it for the fist slide, showing for the rest
section.find('.fp-controlArrow.fp-prev').toggle(slideIndex!=0);
//hidding it for the last slide, showing for the rest
section.find('.fp-controlArrow.fp-next').toggle(!destiny.is(':last-child'));
}
//only changing the URL if the slides are in the current section (not for resize re-adjusting)
if(section.hasClass('active')){
setURLHash(slideIndex, slideAnchor, anchorLink, sectionIndex);
}
var afterSlideLoads = function(){
//if the site is not just resizing and readjusting the slides
if(!localIsResizing){
$.isFunction( options.afterSlideLoad ) && options.afterSlideLoad.call( this, anchorLink, (sectionIndex + 1), slideAnchor, slideIndex);
}
//letting them slide again
slideMoving = false;
};
if(options.css3){
var translate3d = 'translate3d(-' + destinyPos.left + 'px, 0px, 0px)';
addAnimation(slides.find('.fp-slidesContainer'), options.scrollingSpeed>0).css(getTransforms(translate3d));
setTimeout(function(){
afterSlideLoads();
}, options.scrollingSpeed, options.easing);
}else{
slidesContainer.animate({
scrollLeft : destinyPos.left
}, options.scrollingSpeed, options.easing, function() {
afterSlideLoads();
});
}
slidesNav.find('.active').removeClass('active');
slidesNav.find('li').eq(slideIndex).find('a').addClass('active');
}
//when resizing the site, we adjust the heights of the sections, slimScroll...
$(window).resize(resizeHandler);
var previousHeight = windowsHeight;
var resizeId;
function resizeHandler(){
//checking if it needs to get responsive
responsive();
// rebuild immediately on touch devices
if (isTouchDevice) {
//if the keyboard is visible
if ($(document.activeElement).attr('type') !== 'text') {
var currentHeight = $(window).height();
//making sure the change in the viewport size is enough to force a rebuild. (20 % of the window to avoid problems when hidding scroll bars)
if( Math.abs(currentHeight - previousHeight) > (20 * Math.max(previousHeight, currentHeight) / 100) ){
$.fn.fullpage.reBuild(true);
previousHeight = currentHeight;
}
}
}else{
//in order to call the functions only when the resize is finished
//http://stackoverflow.com/questions/4298612/jquery-how-to-call-resize-event-only-once-its-finished-resizing
clearTimeout(resizeId);
resizeId = setTimeout(function(){
$.fn.fullpage.reBuild(true);
}, 500);
}
}
/**
* Checks if the site needs to get responsive and disables autoScrolling if so.
* A class `fp-responsive` is added to the plugin's container in case the user wants to use it for his own responsive CSS.
*/
function responsive(){
if(options.responsive){
var isResponsive = container.hasClass('fp-responsive');
if ($(window).width() < options.responsive ){
if(!isResponsive){
$.fn.fullpage.setAutoScrolling(false);
$('#fp-nav').hide();
container.addClass('fp-responsive');
}
}else if(isResponsive){
$.fn.fullpage.setAutoScrolling(true);
$('#fp-nav').show();
container.removeClass('fp-responsive');
}
}
}
/**
* Adds transition animations for the given element
*/
function addAnimation(element){
var transition = 'all ' + options.scrollingSpeed + 'ms ' + options.easingcss3;
element.removeClass('fp-notransition');
return element.css({
'-webkit-transition': transition,
'transition': transition
});
}
/**
* Remove transition animations for the given element
*/
function removeAnimation(element){
return element.addClass('fp-notransition');
}
/**
* Resizing of the font size depending on the window size as well as some of the images on the site.
*/
function resizeMe(displayHeight, displayWidth) {
//Standard dimensions, for which the body font size is correct
var preferredHeight = 825;
var preferredWidth = 900;
if (displayHeight < preferredHeight || displayWidth < preferredWidth) {
var heightPercentage = (displayHeight * 100) / preferredHeight;
var widthPercentage = (displayWidth * 100) / preferredWidth;
var percentage = Math.min(heightPercentage, widthPercentage);
var newFontSize = percentage.toFixed(2);
$("body").css("font-size", newFontSize + '%');
} else {
$("body").css("font-size", '100%');
}
}
/**
* Activating the website navigation dots according to the given slide name.
*/
function activateNavDots(name, sectionIndex){
if(options.navigation){
$('#fp-nav').find('.active').removeClass('active');
if(name){
$('#fp-nav').find('a[href="#' + name + '"]').addClass('active');
}else{
$('#fp-nav').find('li').eq(sectionIndex).find('a').addClass('active');
}
}
}
/**
* Activating the website main menu elements according to the given slide name.
*/
function activateMenuElement(name){
if(options.menu){
$(options.menu).find('.active').removeClass('active');
$(options.menu).find('[data-menuanchor="'+name+'"]').addClass('active');
}
}
function activateMenuAndNav(anchor, index){
activateMenuElement(anchor);
activateNavDots(anchor, index);
}
/**
* Return a boolean depending on whether the scrollable element is at the end or at the start of the scrolling
* depending on the given type.
*/
function isScrolled(type, scrollable){
if(type === 'top'){
return !scrollable.scrollTop();
}else if(type === 'bottom'){
return scrollable.scrollTop() + 1 + scrollable.innerHeight() >= scrollable[0].scrollHeight;
}
}
/**
* Retuns `up` or `down` depending on the scrolling movement to reach its destination
* from the current section.
*/
function getYmovement(destiny){
var fromIndex = $('.fp-section.active').index('.fp-section');
var toIndex = destiny.index('.fp-section');
if( fromIndex == toIndex){
return 'none'
}
if(fromIndex > toIndex){
return 'up';
}
return 'down';
}
/**
* Retuns `right` or `left` depending on the scrolling movement to reach its destination
* from the current slide.
*/
function getXmovement(fromIndex, toIndex){
if( fromIndex == toIndex){
return 'none'
}
if(fromIndex > toIndex){
return 'left';
}
return 'right';
}
function createSlimScrolling(element){
//needed to make `scrollHeight` work under Opera 12
element.css('overflow', 'hidden');
//in case element is a slide
var section = element.closest('.fp-section');
var scrollable = element.find('.fp-scrollable');
//if there was scroll, the contentHeight will be the one in the scrollable section
if(scrollable.length){
var contentHeight = scrollable.get(0).scrollHeight;
}else{
var contentHeight = element.get(0).scrollHeight;
if(options.verticalCentered){
contentHeight = element.find('.fp-tableCell').get(0).scrollHeight;
}
}
var scrollHeight = windowsHeight - parseInt(section.css('padding-bottom')) - parseInt(section.css('padding-top'));
//needs scroll?
if ( contentHeight > scrollHeight) {
//was there already an scroll ? Updating it
if(scrollable.length){
scrollable.css('height', scrollHeight + 'px').parent().css('height', scrollHeight + 'px');
}
//creating the scrolling
else{
if(options.verticalCentered){
element.find('.fp-tableCell').wrapInner('<div class="fp-scrollable" />');
}else{
element.wrapInner('<div class="fp-scrollable" />');
}
element.find('.fp-scrollable').slimScroll({
allowPageScroll: true,
height: scrollHeight + 'px',
size: '10px',
alwaysVisible: true
});
}
}
//removing the scrolling when it is not necessary anymore
else{
removeSlimScroll(element);
}
//undo
element.css('overflow', '');
}
function removeSlimScroll(element){
element.find('.fp-scrollable').children().first().unwrap().unwrap();
element.find('.slimScrollBar').remove();
element.find('.slimScrollRail').remove();
}
function addTableClass(element){
element.addClass('fp-table').wrapInner('<div class="fp-tableCell" style="height:' + getTableHeight(element) + 'px;" />');
}
function getTableHeight(element){
var sectionHeight = windowsHeight;
if(options.paddingTop || options.paddingBottom){
var section = element;
if(!section.hasClass('fp-section')){
section = element.closest('.fp-section');
}
var paddings = parseInt(section.css('padding-top')) + parseInt(section.css('padding-bottom'));
sectionHeight = (windowsHeight - paddings);
}
return sectionHeight;
}
/**
* Adds a css3 transform property to the container class with or without animation depending on the animated param.
*/
function transformContainer(translate3d, animated){
if(animated){
addAnimation(container);
}else{
removeAnimation(container);
}
container.css(getTransforms(translate3d));
//syncronously removing the class after the animation has been applied.
setTimeout(function(){
container.removeClass('fp-notransition');
},10)
}
/**
* Scrolls to the given section and slide
*/
function scrollPageAndSlide(destiny, slide){
if (typeof slide === 'undefined') {
slide = 0;
}
if(isNaN(destiny)){
var section = $('[data-anchor="'+destiny+'"]');
}else{
var section = $('.fp-section').eq( (destiny -1) );
}
//we need to scroll to the section and then to the slide
if (destiny !== lastScrolledDestiny && !section.hasClass('active')){
scrollPage(section, function(){
scrollSlider(section, slide)
});
}
//if we were already in the section
else{
scrollSlider(section, slide);
}
}
/**
* Scrolls the slider to the given slide destination for the given section
*/
function scrollSlider(section, slide){
if(typeof slide != 'undefined'){
var slides = section.find('.fp-slides');
var destiny = slides.find('[data-anchor="'+slide+'"]');
if(!destiny.length){
destiny = slides.find('.fp-slide').eq(slide);
}
if(destiny.length){
landscapeScroll(slides, destiny);
}
}
}
/**
* Creates a landscape navigation bar with dots for horizontal sliders.
*/
function addSlidesNavigation(section, numSlides){
section.append('<div class="fp-slidesNav"><ul></ul></div>');
var nav = section.find('.fp-slidesNav');
//top or bottom
nav.addClass(options.slidesNavPosition);
for(var i=0; i< numSlides; i++){
nav.find('ul').append('<li><a href="#"><span></span></a></li>');
}
//centering it
nav.css('margin-left', '-' + (nav.width()/2) + 'px');
nav.find('li').first().find('a').addClass('active');
}
/**
* Sets the URL hash for a section with slides
*/
function setURLHash(slideIndex, slideAnchor, anchorLink, sectionIndex){
var sectionHash = '';
if(options.anchors.length){
//isn't it the first slide?
if(slideIndex){
if(typeof anchorLink !== 'undefined'){
sectionHash = anchorLink;
}
//slide without anchor link? We take the index instead.
if(typeof slideAnchor === 'undefined'){
slideAnchor = slideIndex;
}
lastScrolledSlide = slideAnchor;
location.hash = sectionHash + '/' + slideAnchor;
//first slide won't have slide anchor, just the section one
}else if(typeof slideIndex !== 'undefined'){
lastScrolledSlide = slideAnchor;
location.hash = anchorLink;
}
//section without slides
else{
location.hash = anchorLink;
}
setBodyClass(location.hash);
}
else if(typeof slideIndex !== 'undefined'){
setBodyClass(sectionIndex + '-' + slideIndex);
}
else{
setBodyClass(String(sectionIndex));
}
}
/**
* Sets a class for the body of the page depending on the active section / slide
*/
function setBodyClass(text){
//changing slash for dash to make it a valid CSS style
text = text.replace('/', '-').replace('#','');
//removing previous anchor classes
$("body")[0].className = $("body")[0].className.replace(/\b\s?fp-viewing-[^\s]+\b/g, '');
//adding the current anchor
$("body").addClass("fp-viewing-" + text);
}
/**
* Checks for translate3d support
* @return boolean
* http://stackoverflow.com/questions/5661671/detecting-transform-translate3d-support
*/
function support3d() {
var el = document.createElement('p'),
has3d,
transforms = {
'webkitTransform':'-webkit-transform',
'OTransform':'-o-transform',
'msTransform':'-ms-transform',
'MozTransform':'-moz-transform',
'transform':'transform'
};
// Add it to the body to get the computed style.
document.body.insertBefore(el, null);
for (var t in transforms) {
if (el.style[t] !== undefined) {
el.style[t] = "translate3d(1px,1px,1px)";
has3d = window.getComputedStyle(el).getPropertyValue(transforms[t]);
}
}
document.body.removeChild(el);
return (has3d !== undefined && has3d.length > 0 && has3d !== "none");
}
/**
* Removes the auto scrolling action fired by the mouse wheel and trackpad.
* After this function is called, the mousewheel and trackpad movements won't scroll through sections.
*/
function removeMouseWheelHandler(){
if (document.addEventListener) {
document.removeEventListener('mousewheel', MouseWheelHandler, false); //IE9, Chrome, Safari, Oper
document.removeEventListener('wheel', MouseWheelHandler, false); //Firefox
} else {
document.detachEvent("onmousewheel", MouseWheelHandler); //IE 6/7/8
}
}
/**
* Adds the auto scrolling action for the mouse wheel and trackpad.
* After this function is called, the mousewheel and trackpad movements will scroll through sections
*/
function addMouseWheelHandler(){
if (document.addEventListener) {
document.addEventListener("mousewheel", MouseWheelHandler, false); //IE9, Chrome, Safari, Oper
document.addEventListener("wheel", MouseWheelHandler, false); //Firefox
} else {
document.attachEvent("onmousewheel", MouseWheelHandler); //IE 6/7/8
}
}
/**
* Adds the possibility to auto scroll through sections on touch devices.
*/
function addTouchHandler(){
if(isTouchDevice || isTouch){
//Microsoft pointers
MSPointer = getMSPointer();
$(document).off('touchstart ' + MSPointer.down).on('touchstart ' + MSPointer.down, touchStartHandler);
$(document).off('touchmove ' + MSPointer.move).on('touchmove ' + MSPointer.move, touchMoveHandler);
}
}
/**
* Removes the auto scrolling for touch devices.
*/
function removeTouchHandler(){
if(isTouchDevice || isTouch){
//Microsoft pointers
MSPointer = getMSPointer();
$(document).off('touchstart ' + MSPointer.down);
$(document).off('touchmove ' + MSPointer.move);
}
}
/*
* Returns and object with Microsoft pointers (for IE<11 and for IE >= 11)
* http://msdn.microsoft.com/en-us/library/ie/dn304886(v=vs.85).aspx
*/
function getMSPointer(){
var pointer;
//IE >= 11 & rest of browsers
if(window.PointerEvent){
pointer = { down: "pointerdown", move: "pointermove"};
}
//IE < 11
else{
pointer = { down: "MSPointerDown", move: "MSPointerMove"};
}
return pointer;
}
/**
* Gets the pageX and pageY properties depending on the browser.
* https://github.com/alvarotrigo/fullPage.js/issues/194#issuecomment-34069854
*/
function getEventsPage(e){
var events = new Array();
events['y'] = (typeof e.pageY !== 'undefined' && (e.pageY || e.pageX) ? e.pageY : e.touches[0].pageY);
events['x'] = (typeof e.pageX !== 'undefined' && (e.pageY || e.pageX) ? e.pageX : e.touches[0].pageX);
return events;
}
function silentLandscapeScroll(activeSlide){
var prevScrollingSpeepd = options.scrollingSpeed;
$.fn.fullpage.setScrollingSpeed (0);
landscapeScroll(activeSlide.closest('.fp-slides'), activeSlide);
$.fn.fullpage.setScrollingSpeed(prevScrollingSpeepd);
}
function silentScroll(top){
if(options.scrollBar){
container.scrollTop(top);
}
else if (options.css3) {
var translate3d = 'translate3d(0px, -' + top + 'px, 0px)';
transformContainer(translate3d, false);
}
else {
container.css("top", -top);
}
}
function getTransforms(translate3d){
return {
'-webkit-transform': translate3d,
'-moz-transform': translate3d,
'-ms-transform':translate3d,
'transform': translate3d
};
}
function setIsScrollable(value, direction){
switch (direction){
case 'up': isScrollAllowed.up = value; break;
case 'down': isScrollAllowed.down = value; break;
case 'left': isScrollAllowed.left = value; break;
case 'right': isScrollAllowed.right = value; break;
case 'all': $.fn.fullpage.setAllowScrolling(value);
}
console.log(isScrollAllowed);
}
/*
* Destroys fullpage.js plugin events and optinally its html markup and styles
*/
$.fn.fullpage.destroy = function(all){
$.fn.fullpage.setAutoScrolling(false);
$.fn.fullpage.setAllowScrolling(false);
$.fn.fullpage.setKeyboardScrolling(false);
$(window)
.off('scroll', scrollHandler)
.off('hashchange', hashChangeHandler)
.off('resize', resizeHandler);
$(document)
.off('click', '#fp-nav a')
.off('mouseenter', '#fp-nav li')
.off('mouseleave', '#fp-nav li')
.off('click', '.fp-slidesNav a')
.off('mouseover', options.normalScrollElements)
.off('mouseout', options.normalScrollElements);
$('.fp-section')
.off('click', '.fp-controlArrow');
//lets make a mess!
if(all){
destroyStructure();
}
};
/*
* Removes inline styles added by fullpage.js
*/
function destroyStructure(){
//reseting the `top` or `translate` properties to 0
silentScroll(0);
$('#fp-nav, .fp-slidesNav, .fp-controlArrow').remove();
//removing inline styles
$('.fp-section').css( {
'height': '',
'background-color' : '',
'padding': ''
});
$('.fp-slide').css( {
'width': ''
});
container.css({
'height': '',
'position': '',
'-ms-touch-action': '',
'touch-action': ''
});
//removing added classes
$('.fp-section, .fp-slide').each(function(){
removeSlimScroll($(this));
$(this).removeClass('fp-table active');
});
removeAnimation(container);
removeAnimation(container.find('.fp-easing'));
//Unwrapping content
container.find('.fp-tableCell, .fp-slidesContainer, .fp-slides').each(function(){
//unwrap not being use in case there's no child element inside and its just text
$(this).replaceWith(this.childNodes);
});
//scrolling the page to the top with no animation
$('html, body').scrollTop(0);
}
/**
* Displays warnings
*/
function displayWarnings(){
// Disable mutually exclusive settings
if (options.continuousVertical &&
(options.loopTop || options.loopBottom)) {
options.continuousVertical = false;
showError('warn', "Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled");
}
if(options.continuousVertical && options.scrollBar){
options.continuousVertical = false;
showError('warn', "Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled");
}
//anchors can not have the same value as any element ID or NAME
$.each(options.anchors, function(index, name){
if($('#' + name).length || $('[name="'+name+'"]').length ){
showError('error', "data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE).");
}
});
}
function showError(type, text){
console && console[type] && console[type]('fullPage: ' + text);
}
};
})(jQuery);
| {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |

## 手工纸花
适用对象: 爱人
送礼时机: 热恋期
------
17年情人节,为了在最后一天赶完这朵花,折到凌晨三点多。刚过完春节,还没回暖,租的房子没有烤火炉,手都冻僵了。不过还好,女朋友非常高兴。PS: 大半年过去了,这束花还在我们新家里。
—— haoflynet
| {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |

## 生肖吉祥物
适用对象: 家人
送礼时机: 春节
------
我跟你说这件礼物要怎么送。本来送一个吉祥物娃娃很普通的,但是17年春节我想到一个特别好的点子。我哥现在有一儿一女,所以我送了他们一家四个娃娃,并且是大小年龄性别正好对应他们一家四口的娃娃。
—— haoflynet
| {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |

## 愚人节iphone手机盒
适用对象: 爱人、朋友
送礼时机: 愚人节
------
看似比较适合的愚人节礼物,一定要掌握时机,而这个时机就是你一定要在真的给她买了手机才能送这样的礼物,可以在之前买,也可以在当场她刚表示失落的时候买,不然的话,她先是有惊喜,后面就只有失落了。。。
—— haoflynet
| {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |

## 存钱罐
适用对象: 爱人、小孩儿
送礼时机: 任何时候
------
终于有了我们自己的家,给家里添新家具的时候送给她这个礼物,表明以后的路大家一起走。
—— haoflynet
| {
"repo_name": "haoflynet/awesome-gift",
"stars": "38",
"repo_language": "JavaScript",
"file_name": "存钱罐.md",
"mime_type": "text/plain"
} |
import sqlite3
from datetime import datetime
from sqlite3 import Error
class DB:
def __init__(self):
self.openDB()
self.createDB()
self.initLastUpdate()
def openDB(self):
"""
Open SQLlite DB
"""
self.conn = None
try:
self.conn = sqlite3.connect("./sw-util.db")
except Error as e:
print(e)
def createDB(self):
"""
Create new table to contain switch info & port utilization data
"""
sw_info_table = """ CREATE TABLE IF NOT EXISTS switches (
name text NOT NULL,
serial text DEFAULT "Not Polled Yet",
model text DEFAULT "N/A",
sw_ver text DEFAULT "N/A",
mgmt_ip text NOT NULL PRIMARY KEY,
last_check boolean DEFAULT False,
total_port integer DEFAULT 0,
up_port integer DEFAULT 0,
down_port integer DEFAULT 0,
disabled_port integer DEFAULT 0,
intop10m integer DEFAULT 0,
intop100m integer DEFAULT 0,
intop1g integer DEFAULT 0,
intop10g integer DEFAULT 0,
intop25g integer DEFAULT 0,
intop40g integer DEFAULT 0,
intop100g integer DEFAULT 0,
intmedcop integer DEFAULT 0,
intmedsfp integer DEFAULT 0,
intmedvirt integer DEFAULT 0
); """
last_update_table = """ CREATE TABLE IF NOT EXISTS last_update (
id integer NOT NULL PRIMARY KEY,
lastrun text NOT NULL
); """
interface_detail_table = """ CREATE TABLE IF NOT EXISTS interface_detailed (
sw_name text NOT NULL,
mgmt_ip text NOT NULL,
int_name text NOT NULL,
oper_status text NOT NULL,
description text DEFAULT "N/A",
phys_address text NOT NULL PRIMARY KEY,
serial text NOT NULL,
oper_speed text NOT NULL,
oper_duplex text NOT NULL
); """
cur = self.conn.cursor()
cur.execute(sw_info_table)
cur.execute(last_update_table)
cur.execute(interface_detail_table)
def addSwitch(self, name, mgmt_ip):
"""
Insert new switch into DB
"""
sql = """ INSERT INTO switches(name,mgmt_ip) values(?,?); """
cur = self.conn.cursor()
try:
cur.execute(sql, (name, mgmt_ip))
self.conn.commit()
except sqlite3.IntegrityError:
print(f"Switch {name} with IP: {mgmt_ip} already exists in DB.")
def updateSysInfo(self, name, mgmt_ip, sysinfo):
"""
Update switch system info:
Model number, software version, and serial number
"""
sql = """ UPDATE switches
SET serial = ?,
model = ?,
sw_ver = ?
WHERE name = ?
AND mgmt_ip = ?;
"""
cur = self.conn.cursor()
cur.execute(
sql, (sysinfo["serial"], sysinfo["model"], sysinfo["sw_ver"], name, mgmt_ip)
)
self.conn.commit()
return
def updatePorts(self, name, mgmt_ip, portinfo):
"""
Update port count information
"""
sql = """ UPDATE switches
SET
total_port = ?,
up_port = ?,
down_port = ?,
disabled_port = ?,
intop10m = ?,
intop100m = ?,
intop1g = ?,
intop10g = ?,
intop25g = ?,
intop40g = ?,
intop100g = ?,
intmedcop = ?,
intmedsfp = ?,
intmedvirt = ?
WHERE name = ?
AND mgmt_ip = ?;
"""
cur = self.conn.cursor()
cur.execute(
sql,
(
portinfo["total_port"],
portinfo["up_port"],
portinfo["down_port"],
portinfo["disabled_port"],
portinfo["intop10m"],
portinfo["intop100m"],
portinfo["intop1g"],
portinfo["intop10g"],
portinfo["intop25g"],
portinfo["intop40g"],
portinfo["intop100g"],
portinfo["intmedcop"],
portinfo["intmedsfp"],
portinfo["intmedvirtual"],
name,
mgmt_ip,
),
)
self.conn.commit()
return
def updateInterfaceDetails(self, name, mgmt_ip, sysinfo, portdetails):
"""
Update interface detailed status per switch:
Interface name, operational status, description, and physical address
"""
sql = """ INSERT INTO interface_detailed(
int_name,
oper_status,
description,
phys_address,
oper_speed,
oper_duplex,
sw_name,
mgmt_ip,
serial
)
VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT(phys_address) DO UPDATE
SET int_name = ?,
oper_status = ?,
description = ?,
phys_address = ?,
oper_speed = ?,
oper_duplex = ?,
serial = ?
WHERE sw_name = ?
AND mgmt_ip = ?;
"""
cur = self.conn.cursor()
for interface in portdetails:
cur.execute(
sql,
(
interface,
portdetails[interface]["oper_status"],
portdetails[interface]["description"],
portdetails[interface]["phys_addr"],
portdetails[interface]["oper_speed"],
portdetails[interface]["oper_duplex"],
name,
mgmt_ip,
sysinfo["serial"],
interface,
portdetails[interface]["oper_status"],
portdetails[interface]["description"],
portdetails[interface]["phys_addr"],
portdetails[interface]["oper_speed"],
portdetails[interface]["oper_duplex"],
sysinfo["serial"],
name,
mgmt_ip,
),
)
self.conn.commit()
return
def getSwitch(self, name, mgmt_ip):
"""
Retrieve switch information
"""
sql = """ SELECT * FROM switches
WHERE name = ? AND mgmt_ip = ?; """
cur = self.conn.cursor()
cur.execute(sql, (name, mgmt_ip))
result = cur.fetchall()
return result
def deleteSwitch(self, mgmt_ip):
"""
Remove switch from database
"""
sql = """ DELETE FROM switches
WHERE mgmt_ip = ?; """
cur = self.conn.cursor()
cur.execute(sql, [mgmt_ip])
result = cur.fetchall()
return result
def getNetworkWideStats(self):
"""
Retrieve network-wide port count information
"""
sql = """ SELECT model, sw_ver, total_port, up_port, down_port,
disabled_port, intop10m, intop100m, intop1g, intop10g,
intop25g, intop40g, intop100g,intmedcop, intmedsfp,
intmedvirt FROM switches; """
cur = self.conn.cursor()
cur.execute(sql)
result = cur.fetchall()
return result
def getAllSummary(self):
"""
Retrieve info from ALL switches in DB.
"""
sql = """ SELECT name, serial, sw_ver, mgmt_ip, last_check,
total_port, up_port, down_port, disabled_port
FROM switches; """
cur = self.conn.cursor()
cur.execute(sql)
result = cur.fetchall()
return result
def getSwitchDetail(self, serial):
"""
Retrieve info from ALL switches in DB.
"""
sql = """ SELECT * FROM switches WHERE serial = ?; """
cur = self.conn.cursor()
cur.execute(sql, [serial])
result = cur.fetchall()
return result
def getInterfaceDetail(self, serial):
"""
Retrieve interface detailed info
"""
sql = """ SELECT int_name, description, phys_address, oper_status,
oper_speed, oper_duplex
FROM interface_detailed WHERE serial = ? """
cur = self.conn.cursor()
cur.execute(sql, [serial])
result = cur.fetchall()
return result
def updateStatus(self, name, mgmt_ip, status):
"""
Update only the last_check column with
whether or not the last polling succeeded
"""
sql = """ UPDATE switches SET last_check = ?
WHERE name = ? AND mgmt_ip = ?; """
cur = self.conn.cursor()
cur.execute(sql, (status, name, mgmt_ip))
self.conn.commit()
print("DB Update completed")
return
def updateLastRun(self):
"""
Updates single entry that contains last run time
"""
sql = """ UPDATE last_update
SET lastrun = ?
WHERE id = 1;
"""
now = datetime.now()
timestamp = now.strftime("%B, %d, %Y %H:%M:%S")
cur = self.conn.cursor()
cur.execute(sql, [timestamp])
self.conn.commit()
return
def getLastUpdate(self):
"""
Return last runtime
"""
sql = """ SELECT lastrun from last_update WHERE id = 1;
"""
cur = self.conn.cursor()
cur.execute(sql)
result = cur.fetchall()
try:
lastupdate = result[0][0]
except:
lastupdate = None
return lastupdate
def initLastUpdate(self):
"""
Initialize data in last_update table
"""
sql = """ INSERT INTO last_update(lastrun) values(?); """
if not self.getLastUpdate():
cur = self.conn.cursor()
cur.execute(sql, ["Never"])
self.conn.commit()
def close(self):
self.conn.close()
| {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
Devices:
iosxe-test-01:
type: ios-xe
address: 192.168.1.1
username: admin
password: admin
nxos-test-01:
type: nx-os
address: 172.16.1.1
username: admin
password: admin | {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
flask = "*"
requests = "*"
flask-bootstrap = "*"
scrapli = {extras = ["genie"], version = "*"}
[requires]
python_version = "3.7"
| {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
# Switchport Capacity Dashboard
The purpose of this project was to build a simple dashboard to display current switch port capacity/availablity within a network. For example, maybe a network admin needs to onboard a handful of new users - using this dashboard, they could quickly look across their network for a switch that has enough available ports.
The current state of the dashboard:
- Collect version/hardware/port info from IOS-XE/NX-OS devices
- Display summary dashboard
- Individual switch detail page, reachable by clicking on switch hostname
- Network-wide aggregate statistics (Total ports, port types, top 5 hardware/software versions, etc)
The web dashboard is built on top of scrapli, Cisco Genie, flask, and bootstrap.
More details can be found in my blog post: [here](https://0x2142.com/web-dashboard-flask-and-bootstrap).
*As a note: This is just a side project of mine & is not neccessarily ready for production use. Feel free to use / modify / etc at your own risk*
## Primary components
`data_collector.py` - This script handles connecting out to IOS-XE / NX-OS devices and collecting inventory & switchport information. One the data is collected and processed, it is inserted into a sqlite database.
`config.yml` - Configuration file that will hold all of the target devices to be monitored.
`switchdb.py` - This module contains all logic related to the sqlite database management.
`switchport_web.py` - This contains all code for the frontend Flask dashboard. Handles inbound user requests, pulling information from the database, and rendering the HTML templates to return.
`/templates/` - This folder holds all of the HTML / Jinja2 templates that are used with Flask to render web pages.
`/static/` - This folder holds static CSS and image files.
## Installation
1. Clone repo
2. Install requirements: `pipenv install`
3. Edit `config.yml` to add target devices to monitor
4. Set up cron to run `data_collector.py` at your preferred interval
5. Run `switchport_web.py` for the web portion
## Screenshots
Example of the main dashboard page:
<p align="center">
<img src="https://github.com/0x2142/switchport-web-dashboard/blob/main/screenshots/dashboard-example.PNG?raw=true"></img>
</p>
Example of the switch detail page:
<p align="center">
<img src="https://github.com/0x2142/switchport-web-dashboard/blob/main/screenshots/dashboard-detail-example.PNG"></img>
</p>
Example of the network-wide aggregate stats:
<p align="center">
<img src="https://github.com/0x2142/switchport-web-dashboard/blob/main/screenshots/dashboard-aggregate-example.PNG"></img>
</p>
| {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
import os
import yaml
from scrapli.driver.core import IOSXEDriver, NXOSDriver
import switchdb
def loadDevices():
"""
Load device inventory from config.yml
"""
print("Loading devices from config file...")
with open("config.yml", "r") as config:
devicelist = yaml.full_load(config)
return devicelist["Devices"]
def connectToDevice(deviceconfig):
"""
Parse device config data & open SSH connection
"""
print("Loading device configuration...")
device = {}
device["host"] = deviceconfig["address"]
device["auth_username"] = deviceconfig["username"]
device["auth_password"] = deviceconfig["password"]
device["auth_strict_key"] = False
device["timeout_socket"] = 10
device["timeout_ops"] = 10
try:
device["port"] = deviceconfig["port"]
except KeyError:
pass
if deviceconfig["type"] == "ios-xe":
conn = IOSXEDriver(**device)
elif deviceconfig["type"] == "nx-os":
conn = NXOSDriver(**device)
try:
print(f"Attempting connection to {device['host']}")
conn.open()
print(f"Successfully connected to {device['host']}")
except Exception as e:
print(f"Failed connection to {device['host']}")
print("Error message is: %s" % e)
return None
return conn
def getInterfaceInfo(device):
"""
Issue 'Show Interfaces' command to device
Process data & populate dict with interface status
"""
# Send command to device
if type(device) == IOSXEDriver:
resp = device.send_command("show interfaces")
if type(device) == NXOSDriver:
resp = device.send_command("show interface")
# Save a copy of the raw output
save_raw_output(resp)
# Parse raw CLI using Genie
intdata = resp.genie_parse_output()
interfaceStats = {
"total_port": 0,
"up_port": 0,
"down_port": 0,
"disabled_port": 0,
"intop10m": 0,
"intop100m": 0,
"intop1g": 0,
"intop10g": 0,
"intop25g": 0,
"intop40g": 0,
"intop100g": 0,
"intmedcop": 0,
"intmedsfp": 0,
"intmedvirtual": 0,
}
# Init dict for detailed interface operational stat collection
intDetailed = {}
# Process each interface
for iface in intdata:
# Skip VLAN / PortChannel Interfaces
if "Ethernet" not in iface:
print(f"found non-ethernet interface: {iface}")
continue
if "GigabitEthernet0/0" in iface:
print(f"found management interface: {iface}")
continue
print(f"Working on interface {iface}")
# Collect detailed interface stats (name, oper status, description, MAC)
intDetailed[iface] = {}
intDetailed[iface]["oper_status"] = intdata[iface]["oper_status"]
try:
intDetailed[iface]["description"] = intdata[iface]["description"]
except:
intDetailed[iface]["description"] = "N/A"
intDetailed[iface]["phys_addr"] = intdata[iface]["phys_address"]
intDetailed[iface]["oper_speed"] = intdata[iface]["port_speed"]
intDetailed[iface]["oper_duplex"] = intdata[iface]["duplex_mode"]
# Count all Ethernet interfaces
interfaceStats["total_port"] += 1
# Count admin-down interfaces
if not intdata[iface]["enabled"]:
interfaceStats["disabled_port"] += 1
# Count 'not connected' interfaces
elif intdata[iface]["enabled"] and intdata[iface]["oper_status"] == "down":
interfaceStats["down_port"] += 1
# Count up / connected interfaces - Then collect current speeds
elif intdata[iface]["enabled"] and intdata[iface]["oper_status"] == "up":
interfaceStats["up_port"] += 1
speed = intdata[iface]["bandwidth"]
if speed == 10_000:
interfaceStats["intop10m"] += 1
if speed == 100_000:
interfaceStats["intop100m"] += 1
if speed == 1_000_000:
interfaceStats["intop1g"] += 1
if speed == 10_000_000:
interfaceStats["intop10g"] += 1
if speed == 25_000_000:
interfaceStats["intop25g"] += 1
if speed == 40_000_000:
interfaceStats["intop40g"] += 1
if speed == 100_000_000:
interfaceStats["intop100g"] += 1
# Count number of interfaces by media type
try:
media = intdata[iface]["media_type"]
if "1000BaseTX" in media:
interfaceStats["intmedcop"] += 1
elif "Virtual" in media:
interfaceStats["intmedvirtual"] += 1
else:
interfaceStats["intmedsfp"] += 1
except KeyError:
interfaceStats["intmedsfp"] += 1
# When complete - return int stats list
return interfaceStats, intDetailed
def save_raw_output(data):
"""
Creates a local working directory where all raw CLI
output is stored.
"""
# Create local directory to store raw output
if not os.path.exists("raw_output"):
os.makedirs("raw_output")
# Dump port information to file
with open(f"raw_output/{system_serial}.txt", "w") as a:
a.write(data.result)
def getSystemInfoXE(device):
"""
-- FOR IOS-XE DEVICES --
Issue 'Show Version' command to device
Return serial number, model, current software version
"""
resp = device.send_command("show version")
parsed = resp.genie_parse_output()
sysinfo = {}
sysinfo["serial"] = parsed["version"]["chassis_sn"]
sysinfo["model"] = parsed["version"]["chassis"]
sysinfo["sw_ver"] = parsed["version"]["version"]
global system_serial
system_serial = sysinfo["serial"]
return sysinfo
def getSystemInfoNX(device):
"""
-- FOR NX-OS DEVICES --
Issue 'Show Version' command to device
Return serial number, model, current software version
"""
resp = device.send_command("show version")
parsed = resp.genie_parse_output()
sysinfo = {}
sysinfo["serial"] = parsed["platform"]["hardware"]["processor_board_id"]
sysinfo["model"] = parsed["platform"]["hardware"]["model"]
sysinfo["sw_ver"] = parsed["platform"]["software"]["system_version"]
global system_serial
system_serial = sysinfo["serial"]
return sysinfo
def addDeviceToDB(devicelist):
"""
Update DB entries for each switch from the config file
"""
print("Opening DB connection...")
swDB = switchdb.DB()
# Get a list of current switches in the database
# Compare between new config file - see what should be added/removed
curswitches = swDB.getAllSummary()
currentSwitches = [row[3] for row in curswitches]
newSwitches = [devicelist[switch]["address"] for switch in devicelist]
swRemove = set(currentSwitches).difference(newSwitches)
swAdd = set(newSwitches).difference(currentSwitches)
# If switches to remove, purge from the database
if len(swRemove) > 0:
print(f"Found {len(swRemove)} switches no longer in config file")
for switchIP in swRemove:
print(f"Removing switch ({switchIP}) from DB...")
swDB.deleteSwitch(switchIP)
print("Adding devices to DB...")
for switch in devicelist:
switchIP = devicelist[switch]["address"]
if switchIP in swAdd:
print(f"Adding switch ({switch} / {switchIP}) to DB...")
swDB.addSwitch(str(switch), str(switchIP))
else:
print(f"Switch ({switch} / {switchIP}) already in DB. Skipping...")
swDB.close()
def updateDB(device, ip, sysinfo, portinfo, detailedinfo):
"""
Insert new system & port information
into the database
"""
swDB = switchdb.DB()
print(f"Updating system info for {device} in DB...")
swDB.updateSysInfo(device, ip, sysinfo)
print(f"Updating port info for {device} in DB...")
swDB.updatePorts(device, ip, portinfo)
print(f"Updating detailed port info for {device} in DB...")
swDB.updateInterfaceDetails(device, ip, sysinfo, detailedinfo)
swDB.close()
def updateLastRun():
"""
Call to DB - update last run time
"""
swDB = switchdb.DB()
print("Updating last run time in DB...")
swDB.updateLastRun()
swDB.close()
def updateCheckStatus(device, ip, status):
"""
Update the last_check database field,
which indicates if the check passed or failed
"""
swDB = switchdb.DB()
print(f"Updating check status for {device} to {status}")
swDB.updateStatus(device, ip, status)
swDB.close()
def run():
"""
Primay function to manage device data collection
"""
# Load all of our devices from config, then add to DB
devicelist = loadDevices()
addDeviceToDB(devicelist)
# Iterate through each device for processing
for device in devicelist:
dev = device
ip = devicelist[device]["address"]
# Open device connection
devcon = connectToDevice(devicelist[device])
if devcon:
try:
# Query device for system & port info
if type(devcon) == IOSXEDriver:
sysinfo = getSystemInfoXE(devcon)
if type(devcon) == NXOSDriver:
sysinfo = getSystemInfoNX(devcon)
portinfo, detailedinfo = getInterfaceInfo(devcon)
except Exception as e:
print(f"ERROR: {e}")
updateCheckStatus(device, ip, False)
continue
# Update database with new info
updateDB(dev, ip, sysinfo, portinfo, detailedinfo)
# Update database with interface detail info
# Update if check succeeeded
updateCheckStatus(dev, ip, True)
else:
# Update DB if last check failed
updateCheckStatus(device, ip, False)
# Finally, update the last-run time!
updateLastRun()
if __name__ == "__main__":
run()
| {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
from collections import Counter
from flask import Flask, render_template
from flask_bootstrap import Bootstrap
import switchdb
app = Flask(__name__)
@app.route("/", methods=["GET"])
def switch_inventory():
"""
Main web page, displays summary statistics of all switches
"""
lastupdate = getLastUpdate()
switchdata = getSwitchInfo()
return render_template("main.html", switches=switchdata, lastupdate=lastupdate)
@app.route("/<serial>", methods=["GET"])
def switch_info(serial):
"""
This page shows detailed stats on an individual switch
queried by serial number
"""
detail = getSwitchDetail(serial)
intdetail = getInterfaceDetail(serial)
try:
raw_data = open(f"raw_output/{serial}.txt", "r").read().splitlines()
except:
raw_data = "None collected yet"
return render_template(
"detail.html",
title=serial,
switch=detail,
interfaces=intdetail,
raw_data=raw_data,
)
@app.route("/network-wide", methods=["GET"])
def network_wide():
"""
This page shows a summary of all port counts, etc
across the entire network
"""
network = getNetworkWide()
return render_template("network-wide.html", network=network)
@app.route("/lastupdate", methods=["GET"])
def getLastUpdate():
"""
Check DB for last runtime of backend script
This is published on the main page to see when stats were last updated
"""
swDB = switchdb.DB()
lastupdate = swDB.getLastUpdate()
swDB.close()
return lastupdate
def getSwitchInfo():
"""
Query DB for summary info on all
switches currently monitored
"""
swDB = switchdb.DB()
raw_info = swDB.getAllSummary()
switchList = []
for row in raw_info:
row = list(row)
switch = {}
switch["name"] = row[0]
switch["serial"] = row[1]
switch["swver"] = row[2]
switch["ip"] = row[3]
switch["check"] = row[4]
switch["total"] = row[5]
switch["up"] = row[6]
switch["down"] = row[7]
switch["disabled"] = row[8]
if switch["total"] == 0:
switch["capacity"] = 0
else:
switch["capacity"] = (switch["up"] / switch["total"]) * 100
switchList.append(switch)
swDB.close()
return switchList
def getSwitchDetail(serial):
"""
Query DB for details on one specific device
by serial number
"""
swDB = switchdb.DB()
raw_info = swDB.getSwitchDetail(serial)
switch = {}
for row in raw_info:
switch["name"] = row[0]
switch["serial"] = row[1]
switch["model"] = row[2]
switch["swver"] = row[3]
switch["ip"] = row[4]
switch["check"] = row[5]
switch["total"] = row[6]
switch["up"] = row[7]
switch["down"] = row[8]
switch["disabled"] = row[9]
switch["int10m"] = row[10]
switch["int100m"] = row[11]
switch["int1g"] = row[12]
switch["int10g"] = row[13]
switch["int25g"] = row[14]
switch["int40g"] = row[15]
switch["int100g"] = row[16]
switch["copper"] = row[17]
switch["sfp"] = row[18]
switch["virtual"] = row[19]
if switch["total"] == 0:
switch["capacity"] = 0
else:
switch["capacity"] = int((switch["up"] / switch["total"]) * 100)
swDB.close()
return switch
def getInterfaceDetail(serial):
"""
Query DB for interface details on one specific device
by management IP
"""
swDB = switchdb.DB()
raw_info = swDB.getInterfaceDetail(serial)
interfaceList = []
for row in raw_info:
row = list(row)
interface = {}
interface["name"] = row[0]
interface["description"] = row[1]
interface["physical_address"] = row[2]
interface["oper_status"] = row[3]
interface["oper_speed"] = row[4]
interface["oper_duplex"] = row[5]
interfaceList.append(interface)
return interfaceList
def getNetworkWide():
"""
Query DB for all switch statistcs,
then tally results & return to web page
"""
swDB = switchdb.DB()
result = swDB.getNetworkWideStats()
swDB.close()
network = {
"models": [],
"swvers": [],
"total": 0,
"up": 0,
"down": 0,
"disabled": 0,
"int10m": 0,
"int100m": 0,
"int1g": 0,
"int10g": 0,
"int25g": 0,
"int40g": 0,
"int100g": 0,
"copper": 0,
"sfp": 0,
"virtual": 0,
}
modellist = []
swlist = []
for row in result:
if "N/A" not in row[0]:
modellist.append(row[0])
if "N/A" not in row[1]:
swlist.append(row[1])
network["total"] += row[2]
network["up"] += row[3]
network["down"] += row[4]
network["disabled"] += row[5]
network["int10m"] += row[6]
network["int100m"] += row[7]
network["int1g"] += row[8]
network["int10g"] += row[9]
network["int25g"] += row[10]
network["int40g"] += row[11]
network["int100g"] += row[12]
network["copper"] += row[13]
network["sfp"] += row[14]
network["virtual"] += row[15]
# Get 5 most common models / software versions
network["models"] = Counter(modellist).most_common(5)
network["swvers"] = Counter(swlist).most_common(5)
return network
def deleteDevice(serial):
"""
Call to DB to delete a device by serial number
"""
swDB = switchdb.DB()
swDB.deleteBySerial(serial)
swDB.close()
if __name__ == "__main__":
Bootstrap(app)
app.run(debug=True)
| {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
/*!
* Bootswatch v4.5.2
* Homepage: https://bootswatch.com
* Copyright 2012-2020 Thomas Park
* Licensed under MIT
* Based on Bootstrap
*/
/*!
* Bootstrap v4.5.2 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors
* Copyright 2011-2020 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&display=swap");
:root {
--blue: #007bff;
--indigo: #6610f2;
--purple: #6f42c1;
--pink: #e83e8c;
--red: #d9534f;
--orange: #fd7e14;
--yellow: #f0ad4e;
--green: #4bbf73;
--teal: #20c997;
--cyan: #1f9bcf;
--white: #fff;
--gray: #919aa1;
--gray-dark: #343a40;
--primary: #1a1a1a;
--secondary: #fff;
--success: #4bbf73;
--info: #1f9bcf;
--warning: #f0ad4e;
--danger: #d9534f;
--light: #fff;
--dark: #343a40;
--breakpoint-xs: 0;
--breakpoint-sm: 576px;
--breakpoint-md: 768px;
--breakpoint-lg: 992px;
--breakpoint-xl: 1200px;
--font-family-sans-serif: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
*,
*::before,
*::after {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
display: block;
}
body {
margin: 0;
font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1.25rem;
font-weight: 400;
line-height: 1.5;
color: #55595c;
text-align: left;
background-color: #fff;
}
[tabindex="-1"]:focus:not(:focus-visible) {
outline: 0 !important;
}
hr {
-webkit-box-sizing: content-box;
box-sizing: content-box;
height: 0;
overflow: visible;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 0.5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
text-decoration-skip-ink: none;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: .5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
b,
strong {
font-weight: bolder;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -.25em;
}
sup {
top: -.5em;
}
a {
color: #1a1a1a;
text-decoration: none;
background-color: transparent;
}
a:hover {
color: black;
text-decoration: underline;
}
a:not([href]):not([class]) {
color: inherit;
text-decoration: none;
}
a:not([href]):not([class]):hover {
color: inherit;
text-decoration: none;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 1em;
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
-ms-overflow-style: scrollbar;
}
figure {
margin: 0 0 1rem;
}
img {
vertical-align: middle;
border-style: none;
}
svg {
overflow: hidden;
vertical-align: middle;
}
table {
border-collapse: collapse;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #919aa1;
text-align: left;
caption-side: bottom;
}
th {
text-align: inherit;
}
label {
display: inline-block;
margin-bottom: 0.5rem;
}
button {
border-radius: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
[role="button"] {
cursor: pointer;
}
select {
word-wrap: normal;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
cursor: pointer;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
padding: 0;
border-style: none;
}
input[type="radio"],
input[type="checkbox"] {
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
textarea {
overflow: auto;
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
max-width: 100%;
padding: 0;
margin-bottom: .5rem;
font-size: 1.5rem;
line-height: inherit;
color: inherit;
white-space: normal;
}
progress {
vertical-align: baseline;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
outline-offset: -2px;
-webkit-appearance: none;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
margin-bottom: 0.5rem;
font-weight: 600;
line-height: 1.2;
color: #1a1a1a;
}
h1, .h1 {
font-size: 2rem;
}
h2, .h2 {
font-size: 1.75rem;
}
h3, .h3 {
font-size: 1.5rem;
}
h4, .h4 {
font-size: 1.25rem;
}
h5, .h5 {
font-size: 1rem;
}
h6, .h6 {
font-size: 0.75rem;
}
.lead {
font-size: 1.09375rem;
font-weight: 300;
}
.display-1 {
font-size: 6rem;
font-weight: 300;
line-height: 1.2;
}
.display-2 {
font-size: 5.5rem;
font-weight: 300;
line-height: 1.2;
}
.display-3 {
font-size: 4.5rem;
font-weight: 300;
line-height: 1.2;
}
.display-4 {
font-size: 3.5rem;
font-weight: 300;
line-height: 1.2;
}
hr {
margin-top: 1rem;
margin-bottom: 1rem;
border: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
small,
.small {
font-size: 80%;
font-weight: 400;
}
mark,
.mark {
padding: 0.2em;
background-color: #fcf8e3;
}
.list-unstyled {
padding-left: 0;
list-style: none;
}
.list-inline {
padding-left: 0;
list-style: none;
}
.list-inline-item {
display: inline-block;
}
.list-inline-item:not(:last-child) {
margin-right: 0.5rem;
}
.initialism {
font-size: 90%;
text-transform: uppercase;
}
.blockquote {
margin-bottom: 1rem;
font-size: 1.09375rem;
}
.blockquote-footer {
display: block;
font-size: 80%;
color: #919aa1;
}
.blockquote-footer::before {
content: "\2014\00A0";
}
.img-fluid {
max-width: 100%;
height: auto;
}
.img-thumbnail {
padding: 0.25rem;
background-color: #fff;
border: 1px solid #eceeef;
max-width: 100%;
height: auto;
}
.figure {
display: inline-block;
}
.figure-img {
margin-bottom: 0.5rem;
line-height: 1;
}
.figure-caption {
font-size: 90%;
color: #919aa1;
}
code {
font-size: 87.5%;
color: #1a1a1a;
background-color: transparent;
word-wrap: break-word;
}
a > code {
color: inherit;
}
kbd {
padding: 0.2rem 0.4rem;
font-size: 87.5%;
color: #fff;
background-color: #1a1a1a;
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: 700;
}
pre {
display: block;
font-size: 87.5%;
color: #1a1a1a;
}
pre code {
font-size: inherit;
color: inherit;
word-break: normal;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
@media (min-width: 576px) {
.container, .container-sm {
max-width: 540px;
}
}
@media (min-width: 768px) {
.container, .container-sm, .container-md {
max-width: 720px;
}
}
@media (min-width: 992px) {
.container, .container-sm, .container-md, .container-lg {
max-width: 960px;
}
}
@media (min-width: 1200px) {
.container, .container-sm, .container-md, .container-lg, .container-xl {
max-width: 1140px;
}
}
.row {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -15px;
margin-left: -15px;
}
.no-gutters {
margin-right: 0;
margin-left: 0;
}
.no-gutters > .col,
.no-gutters > [class*="col-"] {
padding-right: 0;
padding-left: 0;
}
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col,
.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm,
.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md,
.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg,
.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl,
.col-xl-auto {
position: relative;
width: 100%;
padding-right: 15px;
padding-left: 15px;
}
.col {
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.row-cols-1 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.row-cols-2 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.row-cols-3 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.row-cols-4 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.row-cols-5 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 20%;
flex: 0 0 20%;
max-width: 20%;
}
.row-cols-6 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-auto {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.col-1 {
-webkit-box-flex: 0;
-ms-flex: 0 0 8.3333333333%;
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.col-2 {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-3 {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-4 {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.col-5 {
-webkit-box-flex: 0;
-ms-flex: 0 0 41.6666666667%;
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.col-6 {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-7 {
-webkit-box-flex: 0;
-ms-flex: 0 0 58.3333333333%;
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.col-8 {
-webkit-box-flex: 0;
-ms-flex: 0 0 66.6666666667%;
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.col-9 {
-webkit-box-flex: 0;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-10 {
-webkit-box-flex: 0;
-ms-flex: 0 0 83.3333333333%;
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.col-11 {
-webkit-box-flex: 0;
-ms-flex: 0 0 91.6666666667%;
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.col-12 {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.order-first {
-webkit-box-ordinal-group: 0;
-ms-flex-order: -1;
order: -1;
}
.order-last {
-webkit-box-ordinal-group: 14;
-ms-flex-order: 13;
order: 13;
}
.order-0 {
-webkit-box-ordinal-group: 1;
-ms-flex-order: 0;
order: 0;
}
.order-1 {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
}
.order-2 {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
}
.order-3 {
-webkit-box-ordinal-group: 4;
-ms-flex-order: 3;
order: 3;
}
.order-4 {
-webkit-box-ordinal-group: 5;
-ms-flex-order: 4;
order: 4;
}
.order-5 {
-webkit-box-ordinal-group: 6;
-ms-flex-order: 5;
order: 5;
}
.order-6 {
-webkit-box-ordinal-group: 7;
-ms-flex-order: 6;
order: 6;
}
.order-7 {
-webkit-box-ordinal-group: 8;
-ms-flex-order: 7;
order: 7;
}
.order-8 {
-webkit-box-ordinal-group: 9;
-ms-flex-order: 8;
order: 8;
}
.order-9 {
-webkit-box-ordinal-group: 10;
-ms-flex-order: 9;
order: 9;
}
.order-10 {
-webkit-box-ordinal-group: 11;
-ms-flex-order: 10;
order: 10;
}
.order-11 {
-webkit-box-ordinal-group: 12;
-ms-flex-order: 11;
order: 11;
}
.order-12 {
-webkit-box-ordinal-group: 13;
-ms-flex-order: 12;
order: 12;
}
.offset-1 {
margin-left: 8.3333333333%;
}
.offset-2 {
margin-left: 16.6666666667%;
}
.offset-3 {
margin-left: 25%;
}
.offset-4 {
margin-left: 33.3333333333%;
}
.offset-5 {
margin-left: 41.6666666667%;
}
.offset-6 {
margin-left: 50%;
}
.offset-7 {
margin-left: 58.3333333333%;
}
.offset-8 {
margin-left: 66.6666666667%;
}
.offset-9 {
margin-left: 75%;
}
.offset-10 {
margin-left: 83.3333333333%;
}
.offset-11 {
margin-left: 91.6666666667%;
}
@media (min-width: 576px) {
.col-sm {
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.row-cols-sm-1 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.row-cols-sm-2 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.row-cols-sm-3 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.row-cols-sm-4 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.row-cols-sm-5 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 20%;
flex: 0 0 20%;
max-width: 20%;
}
.row-cols-sm-6 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-sm-auto {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.col-sm-1 {
-webkit-box-flex: 0;
-ms-flex: 0 0 8.3333333333%;
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.col-sm-2 {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-sm-3 {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-sm-4 {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.col-sm-5 {
-webkit-box-flex: 0;
-ms-flex: 0 0 41.6666666667%;
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.col-sm-6 {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-sm-7 {
-webkit-box-flex: 0;
-ms-flex: 0 0 58.3333333333%;
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.col-sm-8 {
-webkit-box-flex: 0;
-ms-flex: 0 0 66.6666666667%;
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.col-sm-9 {
-webkit-box-flex: 0;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-sm-10 {
-webkit-box-flex: 0;
-ms-flex: 0 0 83.3333333333%;
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.col-sm-11 {
-webkit-box-flex: 0;
-ms-flex: 0 0 91.6666666667%;
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.col-sm-12 {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.order-sm-first {
-webkit-box-ordinal-group: 0;
-ms-flex-order: -1;
order: -1;
}
.order-sm-last {
-webkit-box-ordinal-group: 14;
-ms-flex-order: 13;
order: 13;
}
.order-sm-0 {
-webkit-box-ordinal-group: 1;
-ms-flex-order: 0;
order: 0;
}
.order-sm-1 {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
}
.order-sm-2 {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
}
.order-sm-3 {
-webkit-box-ordinal-group: 4;
-ms-flex-order: 3;
order: 3;
}
.order-sm-4 {
-webkit-box-ordinal-group: 5;
-ms-flex-order: 4;
order: 4;
}
.order-sm-5 {
-webkit-box-ordinal-group: 6;
-ms-flex-order: 5;
order: 5;
}
.order-sm-6 {
-webkit-box-ordinal-group: 7;
-ms-flex-order: 6;
order: 6;
}
.order-sm-7 {
-webkit-box-ordinal-group: 8;
-ms-flex-order: 7;
order: 7;
}
.order-sm-8 {
-webkit-box-ordinal-group: 9;
-ms-flex-order: 8;
order: 8;
}
.order-sm-9 {
-webkit-box-ordinal-group: 10;
-ms-flex-order: 9;
order: 9;
}
.order-sm-10 {
-webkit-box-ordinal-group: 11;
-ms-flex-order: 10;
order: 10;
}
.order-sm-11 {
-webkit-box-ordinal-group: 12;
-ms-flex-order: 11;
order: 11;
}
.order-sm-12 {
-webkit-box-ordinal-group: 13;
-ms-flex-order: 12;
order: 12;
}
.offset-sm-0 {
margin-left: 0;
}
.offset-sm-1 {
margin-left: 8.3333333333%;
}
.offset-sm-2 {
margin-left: 16.6666666667%;
}
.offset-sm-3 {
margin-left: 25%;
}
.offset-sm-4 {
margin-left: 33.3333333333%;
}
.offset-sm-5 {
margin-left: 41.6666666667%;
}
.offset-sm-6 {
margin-left: 50%;
}
.offset-sm-7 {
margin-left: 58.3333333333%;
}
.offset-sm-8 {
margin-left: 66.6666666667%;
}
.offset-sm-9 {
margin-left: 75%;
}
.offset-sm-10 {
margin-left: 83.3333333333%;
}
.offset-sm-11 {
margin-left: 91.6666666667%;
}
}
@media (min-width: 768px) {
.col-md {
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.row-cols-md-1 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.row-cols-md-2 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.row-cols-md-3 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.row-cols-md-4 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.row-cols-md-5 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 20%;
flex: 0 0 20%;
max-width: 20%;
}
.row-cols-md-6 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-md-auto {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.col-md-1 {
-webkit-box-flex: 0;
-ms-flex: 0 0 8.3333333333%;
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.col-md-2 {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-md-3 {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-md-4 {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.col-md-5 {
-webkit-box-flex: 0;
-ms-flex: 0 0 41.6666666667%;
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.col-md-6 {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-md-7 {
-webkit-box-flex: 0;
-ms-flex: 0 0 58.3333333333%;
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.col-md-8 {
-webkit-box-flex: 0;
-ms-flex: 0 0 66.6666666667%;
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.col-md-9 {
-webkit-box-flex: 0;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-md-10 {
-webkit-box-flex: 0;
-ms-flex: 0 0 83.3333333333%;
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.col-md-11 {
-webkit-box-flex: 0;
-ms-flex: 0 0 91.6666666667%;
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.col-md-12 {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.order-md-first {
-webkit-box-ordinal-group: 0;
-ms-flex-order: -1;
order: -1;
}
.order-md-last {
-webkit-box-ordinal-group: 14;
-ms-flex-order: 13;
order: 13;
}
.order-md-0 {
-webkit-box-ordinal-group: 1;
-ms-flex-order: 0;
order: 0;
}
.order-md-1 {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
}
.order-md-2 {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
}
.order-md-3 {
-webkit-box-ordinal-group: 4;
-ms-flex-order: 3;
order: 3;
}
.order-md-4 {
-webkit-box-ordinal-group: 5;
-ms-flex-order: 4;
order: 4;
}
.order-md-5 {
-webkit-box-ordinal-group: 6;
-ms-flex-order: 5;
order: 5;
}
.order-md-6 {
-webkit-box-ordinal-group: 7;
-ms-flex-order: 6;
order: 6;
}
.order-md-7 {
-webkit-box-ordinal-group: 8;
-ms-flex-order: 7;
order: 7;
}
.order-md-8 {
-webkit-box-ordinal-group: 9;
-ms-flex-order: 8;
order: 8;
}
.order-md-9 {
-webkit-box-ordinal-group: 10;
-ms-flex-order: 9;
order: 9;
}
.order-md-10 {
-webkit-box-ordinal-group: 11;
-ms-flex-order: 10;
order: 10;
}
.order-md-11 {
-webkit-box-ordinal-group: 12;
-ms-flex-order: 11;
order: 11;
}
.order-md-12 {
-webkit-box-ordinal-group: 13;
-ms-flex-order: 12;
order: 12;
}
.offset-md-0 {
margin-left: 0;
}
.offset-md-1 {
margin-left: 8.3333333333%;
}
.offset-md-2 {
margin-left: 16.6666666667%;
}
.offset-md-3 {
margin-left: 25%;
}
.offset-md-4 {
margin-left: 33.3333333333%;
}
.offset-md-5 {
margin-left: 41.6666666667%;
}
.offset-md-6 {
margin-left: 50%;
}
.offset-md-7 {
margin-left: 58.3333333333%;
}
.offset-md-8 {
margin-left: 66.6666666667%;
}
.offset-md-9 {
margin-left: 75%;
}
.offset-md-10 {
margin-left: 83.3333333333%;
}
.offset-md-11 {
margin-left: 91.6666666667%;
}
}
@media (min-width: 992px) {
.col-lg {
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.row-cols-lg-1 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.row-cols-lg-2 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.row-cols-lg-3 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.row-cols-lg-4 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.row-cols-lg-5 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 20%;
flex: 0 0 20%;
max-width: 20%;
}
.row-cols-lg-6 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-lg-auto {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.col-lg-1 {
-webkit-box-flex: 0;
-ms-flex: 0 0 8.3333333333%;
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.col-lg-2 {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-lg-3 {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-lg-4 {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.col-lg-5 {
-webkit-box-flex: 0;
-ms-flex: 0 0 41.6666666667%;
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.col-lg-6 {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-lg-7 {
-webkit-box-flex: 0;
-ms-flex: 0 0 58.3333333333%;
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.col-lg-8 {
-webkit-box-flex: 0;
-ms-flex: 0 0 66.6666666667%;
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.col-lg-9 {
-webkit-box-flex: 0;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-lg-10 {
-webkit-box-flex: 0;
-ms-flex: 0 0 83.3333333333%;
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.col-lg-11 {
-webkit-box-flex: 0;
-ms-flex: 0 0 91.6666666667%;
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.col-lg-12 {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.order-lg-first {
-webkit-box-ordinal-group: 0;
-ms-flex-order: -1;
order: -1;
}
.order-lg-last {
-webkit-box-ordinal-group: 14;
-ms-flex-order: 13;
order: 13;
}
.order-lg-0 {
-webkit-box-ordinal-group: 1;
-ms-flex-order: 0;
order: 0;
}
.order-lg-1 {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
}
.order-lg-2 {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
}
.order-lg-3 {
-webkit-box-ordinal-group: 4;
-ms-flex-order: 3;
order: 3;
}
.order-lg-4 {
-webkit-box-ordinal-group: 5;
-ms-flex-order: 4;
order: 4;
}
.order-lg-5 {
-webkit-box-ordinal-group: 6;
-ms-flex-order: 5;
order: 5;
}
.order-lg-6 {
-webkit-box-ordinal-group: 7;
-ms-flex-order: 6;
order: 6;
}
.order-lg-7 {
-webkit-box-ordinal-group: 8;
-ms-flex-order: 7;
order: 7;
}
.order-lg-8 {
-webkit-box-ordinal-group: 9;
-ms-flex-order: 8;
order: 8;
}
.order-lg-9 {
-webkit-box-ordinal-group: 10;
-ms-flex-order: 9;
order: 9;
}
.order-lg-10 {
-webkit-box-ordinal-group: 11;
-ms-flex-order: 10;
order: 10;
}
.order-lg-11 {
-webkit-box-ordinal-group: 12;
-ms-flex-order: 11;
order: 11;
}
.order-lg-12 {
-webkit-box-ordinal-group: 13;
-ms-flex-order: 12;
order: 12;
}
.offset-lg-0 {
margin-left: 0;
}
.offset-lg-1 {
margin-left: 8.3333333333%;
}
.offset-lg-2 {
margin-left: 16.6666666667%;
}
.offset-lg-3 {
margin-left: 25%;
}
.offset-lg-4 {
margin-left: 33.3333333333%;
}
.offset-lg-5 {
margin-left: 41.6666666667%;
}
.offset-lg-6 {
margin-left: 50%;
}
.offset-lg-7 {
margin-left: 58.3333333333%;
}
.offset-lg-8 {
margin-left: 66.6666666667%;
}
.offset-lg-9 {
margin-left: 75%;
}
.offset-lg-10 {
margin-left: 83.3333333333%;
}
.offset-lg-11 {
margin-left: 91.6666666667%;
}
}
@media (min-width: 1200px) {
.col-xl {
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-width: 100%;
}
.row-cols-xl-1 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.row-cols-xl-2 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.row-cols-xl-3 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.row-cols-xl-4 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.row-cols-xl-5 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 20%;
flex: 0 0 20%;
max-width: 20%;
}
.row-cols-xl-6 > * {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-xl-auto {
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
width: auto;
max-width: 100%;
}
.col-xl-1 {
-webkit-box-flex: 0;
-ms-flex: 0 0 8.3333333333%;
flex: 0 0 8.3333333333%;
max-width: 8.3333333333%;
}
.col-xl-2 {
-webkit-box-flex: 0;
-ms-flex: 0 0 16.6666666667%;
flex: 0 0 16.6666666667%;
max-width: 16.6666666667%;
}
.col-xl-3 {
-webkit-box-flex: 0;
-ms-flex: 0 0 25%;
flex: 0 0 25%;
max-width: 25%;
}
.col-xl-4 {
-webkit-box-flex: 0;
-ms-flex: 0 0 33.3333333333%;
flex: 0 0 33.3333333333%;
max-width: 33.3333333333%;
}
.col-xl-5 {
-webkit-box-flex: 0;
-ms-flex: 0 0 41.6666666667%;
flex: 0 0 41.6666666667%;
max-width: 41.6666666667%;
}
.col-xl-6 {
-webkit-box-flex: 0;
-ms-flex: 0 0 50%;
flex: 0 0 50%;
max-width: 50%;
}
.col-xl-7 {
-webkit-box-flex: 0;
-ms-flex: 0 0 58.3333333333%;
flex: 0 0 58.3333333333%;
max-width: 58.3333333333%;
}
.col-xl-8 {
-webkit-box-flex: 0;
-ms-flex: 0 0 66.6666666667%;
flex: 0 0 66.6666666667%;
max-width: 66.6666666667%;
}
.col-xl-9 {
-webkit-box-flex: 0;
-ms-flex: 0 0 75%;
flex: 0 0 75%;
max-width: 75%;
}
.col-xl-10 {
-webkit-box-flex: 0;
-ms-flex: 0 0 83.3333333333%;
flex: 0 0 83.3333333333%;
max-width: 83.3333333333%;
}
.col-xl-11 {
-webkit-box-flex: 0;
-ms-flex: 0 0 91.6666666667%;
flex: 0 0 91.6666666667%;
max-width: 91.6666666667%;
}
.col-xl-12 {
-webkit-box-flex: 0;
-ms-flex: 0 0 100%;
flex: 0 0 100%;
max-width: 100%;
}
.order-xl-first {
-webkit-box-ordinal-group: 0;
-ms-flex-order: -1;
order: -1;
}
.order-xl-last {
-webkit-box-ordinal-group: 14;
-ms-flex-order: 13;
order: 13;
}
.order-xl-0 {
-webkit-box-ordinal-group: 1;
-ms-flex-order: 0;
order: 0;
}
.order-xl-1 {
-webkit-box-ordinal-group: 2;
-ms-flex-order: 1;
order: 1;
}
.order-xl-2 {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
}
.order-xl-3 {
-webkit-box-ordinal-group: 4;
-ms-flex-order: 3;
order: 3;
}
.order-xl-4 {
-webkit-box-ordinal-group: 5;
-ms-flex-order: 4;
order: 4;
}
.order-xl-5 {
-webkit-box-ordinal-group: 6;
-ms-flex-order: 5;
order: 5;
}
.order-xl-6 {
-webkit-box-ordinal-group: 7;
-ms-flex-order: 6;
order: 6;
}
.order-xl-7 {
-webkit-box-ordinal-group: 8;
-ms-flex-order: 7;
order: 7;
}
.order-xl-8 {
-webkit-box-ordinal-group: 9;
-ms-flex-order: 8;
order: 8;
}
.order-xl-9 {
-webkit-box-ordinal-group: 10;
-ms-flex-order: 9;
order: 9;
}
.order-xl-10 {
-webkit-box-ordinal-group: 11;
-ms-flex-order: 10;
order: 10;
}
.order-xl-11 {
-webkit-box-ordinal-group: 12;
-ms-flex-order: 11;
order: 11;
}
.order-xl-12 {
-webkit-box-ordinal-group: 13;
-ms-flex-order: 12;
order: 12;
}
.offset-xl-0 {
margin-left: 0;
}
.offset-xl-1 {
margin-left: 8.3333333333%;
}
.offset-xl-2 {
margin-left: 16.6666666667%;
}
.offset-xl-3 {
margin-left: 25%;
}
.offset-xl-4 {
margin-left: 33.3333333333%;
}
.offset-xl-5 {
margin-left: 41.6666666667%;
}
.offset-xl-6 {
margin-left: 50%;
}
.offset-xl-7 {
margin-left: 58.3333333333%;
}
.offset-xl-8 {
margin-left: 66.6666666667%;
}
.offset-xl-9 {
margin-left: 75%;
}
.offset-xl-10 {
margin-left: 83.3333333333%;
}
.offset-xl-11 {
margin-left: 91.6666666667%;
}
}
.table {
width: 100%;
margin-bottom: 1rem;
color: #55595c;
}
.table th,
.table td {
padding: 0.75rem;
vertical-align: top;
border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.table thead th {
vertical-align: bottom;
border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}
.table tbody + tbody {
border-top: 2px solid rgba(0, 0, 0, 0.05);
}
.table-sm th,
.table-sm td {
padding: 0.3rem;
}
.table-bordered {
border: 1px solid rgba(0, 0, 0, 0.05);
}
.table-bordered th,
.table-bordered td {
border: 1px solid rgba(0, 0, 0, 0.05);
}
.table-bordered thead th,
.table-bordered thead td {
border-bottom-width: 2px;
}
.table-borderless th,
.table-borderless td,
.table-borderless thead th,
.table-borderless tbody + tbody {
border: 0;
}
.table-striped tbody tr:nth-of-type(odd) {
background-color: rgba(0, 0, 0, 0.05);
}
.table-hover tbody tr:hover {
color: #55595c;
background-color: rgba(0, 0, 0, 0.075);
}
.table-primary,
.table-primary > th,
.table-primary > td {
background-color: #bfbfbf;
}
.table-primary th,
.table-primary td,
.table-primary thead th,
.table-primary tbody + tbody {
border-color: #888888;
}
.table-hover .table-primary:hover {
background-color: #b2b2b2;
}
.table-hover .table-primary:hover > td,
.table-hover .table-primary:hover > th {
background-color: #b2b2b2;
}
.table-secondary,
.table-secondary > th,
.table-secondary > td {
background-color: white;
}
.table-secondary th,
.table-secondary td,
.table-secondary thead th,
.table-secondary tbody + tbody {
border-color: white;
}
.table-hover .table-secondary:hover {
background-color: #f2f2f2;
}
.table-hover .table-secondary:hover > td,
.table-hover .table-secondary:hover > th {
background-color: #f2f2f2;
}
.table-success,
.table-success > th,
.table-success > td {
background-color: #cdedd8;
}
.table-success th,
.table-success td,
.table-success thead th,
.table-success tbody + tbody {
border-color: #a1deb6;
}
.table-hover .table-success:hover {
background-color: #bae6c9;
}
.table-hover .table-success:hover > td,
.table-hover .table-success:hover > th {
background-color: #bae6c9;
}
.table-info,
.table-info > th,
.table-info > td {
background-color: #c0e3f2;
}
.table-info th,
.table-info td,
.table-info thead th,
.table-info tbody + tbody {
border-color: #8bcbe6;
}
.table-hover .table-info:hover {
background-color: #abdaee;
}
.table-hover .table-info:hover > td,
.table-hover .table-info:hover > th {
background-color: #abdaee;
}
.table-warning,
.table-warning > th,
.table-warning > td {
background-color: #fbe8cd;
}
.table-warning th,
.table-warning td,
.table-warning thead th,
.table-warning tbody + tbody {
border-color: #f7d4a3;
}
.table-hover .table-warning:hover {
background-color: #f9ddb5;
}
.table-hover .table-warning:hover > td,
.table-hover .table-warning:hover > th {
background-color: #f9ddb5;
}
.table-danger,
.table-danger > th,
.table-danger > td {
background-color: #f4cfce;
}
.table-danger th,
.table-danger td,
.table-danger thead th,
.table-danger tbody + tbody {
border-color: #eba6a3;
}
.table-hover .table-danger:hover {
background-color: #efbbb9;
}
.table-hover .table-danger:hover > td,
.table-hover .table-danger:hover > th {
background-color: #efbbb9;
}
.table-light,
.table-light > th,
.table-light > td {
background-color: white;
}
.table-light th,
.table-light td,
.table-light thead th,
.table-light tbody + tbody {
border-color: white;
}
.table-hover .table-light:hover {
background-color: #f2f2f2;
}
.table-hover .table-light:hover > td,
.table-hover .table-light:hover > th {
background-color: #f2f2f2;
}
.table-dark,
.table-dark > th,
.table-dark > td {
background-color: #c6c8ca;
}
.table-dark th,
.table-dark td,
.table-dark thead th,
.table-dark tbody + tbody {
border-color: #95999c;
}
.table-hover .table-dark:hover {
background-color: #b9bbbe;
}
.table-hover .table-dark:hover > td,
.table-hover .table-dark:hover > th {
background-color: #b9bbbe;
}
.table-active,
.table-active > th,
.table-active > td {
background-color: rgba(0, 0, 0, 0.075);
}
.table-hover .table-active:hover {
background-color: rgba(0, 0, 0, 0.075);
}
.table-hover .table-active:hover > td,
.table-hover .table-active:hover > th {
background-color: rgba(0, 0, 0, 0.075);
}
.table .thead-dark th {
color: #fff;
background-color: #343a40;
border-color: #454d55;
}
.table .thead-light th {
color: #55595c;
background-color: #f7f7f9;
border-color: rgba(0, 0, 0, 0.05);
}
.table-dark {
color: #fff;
background-color: #343a40;
}
.table-dark th,
.table-dark td,
.table-dark thead th {
border-color: #454d55;
}
.table-dark.table-bordered {
border: 0;
}
.table-dark.table-striped tbody tr:nth-of-type(odd) {
background-color: rgba(255, 255, 255, 0.05);
}
.table-dark.table-hover tbody tr:hover {
color: #fff;
background-color: rgba(255, 255, 255, 0.075);
}
@media (max-width: 575.98px) {
.table-responsive-sm {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.table-responsive-sm > .table-bordered {
border: 0;
}
}
@media (max-width: 767.98px) {
.table-responsive-md {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.table-responsive-md > .table-bordered {
border: 0;
}
}
@media (max-width: 991.98px) {
.table-responsive-lg {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.table-responsive-lg > .table-bordered {
border: 0;
}
}
@media (max-width: 1199.98px) {
.table-responsive-xl {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.table-responsive-xl > .table-bordered {
border: 0;
}
}
.table-responsive {
display: block;
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.table-responsive > .table-bordered {
border: 0;
}
.form-control {
display: block;
width: 100%;
height: calc(1.5em + 1.5rem + 0px);
padding: 0.75rem 1.5rem;
font-size: 0.875rem;
font-weight: 400;
line-height: 1.5;
color: #55595c;
background-color: #f7f7f9;
background-clip: padding-box;
border: 0px solid #ced4da;
border-radius: 0;
-webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
.form-control {
-webkit-transition: none;
transition: none;
}
}
.form-control::-ms-expand {
background-color: transparent;
border: 0;
}
.form-control:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #55595c;
}
.form-control:focus {
color: #55595c;
background-color: #f7f7f9;
border-color: #5a5a5a;
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}
.form-control::-webkit-input-placeholder {
color: #919aa1;
opacity: 1;
}
.form-control::-ms-input-placeholder {
color: #919aa1;
opacity: 1;
}
.form-control::placeholder {
color: #919aa1;
opacity: 1;
}
.form-control:disabled, .form-control[readonly] {
background-color: #eceeef;
opacity: 1;
}
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control,
input[type="month"].form-control {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
select.form-control:focus::-ms-value {
color: #55595c;
background-color: #f7f7f9;
}
.form-control-file,
.form-control-range {
display: block;
width: 100%;
}
.col-form-label {
padding-top: calc(0.75rem + 0px);
padding-bottom: calc(0.75rem + 0px);
margin-bottom: 0;
font-size: inherit;
line-height: 1.5;
}
.col-form-label-lg {
padding-top: calc(2rem + 0px);
padding-bottom: calc(2rem + 0px);
font-size: 1.09375rem;
line-height: 1.5;
}
.col-form-label-sm {
padding-top: calc(0.5rem + 0px);
padding-bottom: calc(0.5rem + 0px);
font-size: 0.765625rem;
line-height: 1.5;
}
.form-control-plaintext {
display: block;
width: 100%;
padding: 0.75rem 0;
margin-bottom: 0;
font-size: 0.875rem;
line-height: 1.5;
color: #55595c;
background-color: transparent;
border: solid transparent;
border-width: 0px 0;
}
.form-control-plaintext.form-control-sm, .form-control-plaintext.form-control-lg {
padding-right: 0;
padding-left: 0;
}
.form-control-sm {
height: calc(1.5em + 1rem + 0px);
padding: 0.5rem 1rem;
font-size: 0.765625rem;
line-height: 1.5;
}
.form-control-lg {
height: calc(1.5em + 4rem + 0px);
padding: 2rem 2rem;
font-size: 1.09375rem;
line-height: 1.5;
}
select.form-control[size], select.form-control[multiple] {
height: auto;
}
textarea.form-control {
height: auto;
}
.form-group {
margin-bottom: 1rem;
}
.form-text {
display: block;
margin-top: 0.25rem;
}
.form-row {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-right: -5px;
margin-left: -5px;
}
.form-row > .col,
.form-row > [class*="col-"] {
padding-right: 5px;
padding-left: 5px;
}
.form-check {
position: relative;
display: block;
padding-left: 1.25rem;
}
.form-check-input {
position: absolute;
margin-top: 0.3rem;
margin-left: -1.25rem;
}
.form-check-input[disabled] ~ .form-check-label,
.form-check-input:disabled ~ .form-check-label {
color: #919aa1;
}
.form-check-label {
margin-bottom: 0;
}
.form-check-inline {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding-left: 0;
margin-right: 0.75rem;
}
.form-check-inline .form-check-input {
position: static;
margin-top: 0;
margin-right: 0.3125rem;
margin-left: 0;
}
.valid-feedback {
display: none;
width: 100%;
margin-top: 0.25rem;
font-size: 80%;
color: #4bbf73;
}
.valid-tooltip {
position: absolute;
top: 100%;
left: 0;
z-index: 5;
display: none;
max-width: 100%;
padding: 0.25rem 0.5rem;
margin-top: .1rem;
font-size: 0.765625rem;
line-height: 1.5;
color: #fff;
background-color: rgba(75, 191, 115, 0.9);
}
.was-validated :valid ~ .valid-feedback,
.was-validated :valid ~ .valid-tooltip,
.is-valid ~ .valid-feedback,
.is-valid ~ .valid-tooltip {
display: block;
}
.was-validated .form-control:valid, .form-control.is-valid {
border-color: #4bbf73;
padding-right: calc(1.5em + 1.5rem);
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%234bbf73' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right calc(0.375em + 0.375rem) center;
background-size: calc(0.75em + 0.75rem) calc(0.75em + 0.75rem);
}
.was-validated .form-control:valid:focus, .form-control.is-valid:focus {
border-color: #4bbf73;
-webkit-box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.25);
box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.25);
}
.was-validated textarea.form-control:valid, textarea.form-control.is-valid {
padding-right: calc(1.5em + 1.5rem);
background-position: top calc(0.375em + 0.375rem) right calc(0.375em + 0.375rem);
}
.was-validated .custom-select:valid, .custom-select.is-valid {
border-color: #4bbf73;
padding-right: calc(0.75em + 3.625rem);
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 1.5rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%234bbf73' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #f7f7f9 no-repeat center right 2.5rem/calc(0.75em + 0.75rem) calc(0.75em + 0.75rem);
}
.was-validated .custom-select:valid:focus, .custom-select.is-valid:focus {
border-color: #4bbf73;
-webkit-box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.25);
box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.25);
}
.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label {
color: #4bbf73;
}
.was-validated .form-check-input:valid ~ .valid-feedback,
.was-validated .form-check-input:valid ~ .valid-tooltip, .form-check-input.is-valid ~ .valid-feedback,
.form-check-input.is-valid ~ .valid-tooltip {
display: block;
}
.was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label {
color: #4bbf73;
}
.was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before {
border-color: #4bbf73;
}
.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before {
border-color: #71cc90;
background-color: #71cc90;
}
.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before {
-webkit-box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.25);
box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.25);
}
.was-validated .custom-control-input:valid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.is-valid:focus:not(:checked) ~ .custom-control-label::before {
border-color: #4bbf73;
}
.was-validated .custom-file-input:valid ~ .custom-file-label, .custom-file-input.is-valid ~ .custom-file-label {
border-color: #4bbf73;
}
.was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label {
border-color: #4bbf73;
-webkit-box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.25);
box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.25);
}
.invalid-feedback {
display: none;
width: 100%;
margin-top: 0.25rem;
font-size: 80%;
color: #d9534f;
}
.invalid-tooltip {
position: absolute;
top: 100%;
left: 0;
z-index: 5;
display: none;
max-width: 100%;
padding: 0.25rem 0.5rem;
margin-top: .1rem;
font-size: 0.765625rem;
line-height: 1.5;
color: #fff;
background-color: rgba(217, 83, 79, 0.9);
}
.was-validated :invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-tooltip,
.is-invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-tooltip {
display: block;
}
.was-validated .form-control:invalid, .form-control.is-invalid {
border-color: #d9534f;
padding-right: calc(1.5em + 1.5rem);
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23d9534f' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23d9534f' stroke='none'/%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right calc(0.375em + 0.375rem) center;
background-size: calc(0.75em + 0.75rem) calc(0.75em + 0.75rem);
}
.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus {
border-color: #d9534f;
-webkit-box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
}
.was-validated textarea.form-control:invalid, textarea.form-control.is-invalid {
padding-right: calc(1.5em + 1.5rem);
background-position: top calc(0.375em + 0.375rem) right calc(0.375em + 0.375rem);
}
.was-validated .custom-select:invalid, .custom-select.is-invalid {
border-color: #d9534f;
padding-right: calc(0.75em + 3.625rem);
background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 1.5rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23d9534f' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23d9534f' stroke='none'/%3e%3c/svg%3e") #f7f7f9 no-repeat center right 2.5rem/calc(0.75em + 0.75rem) calc(0.75em + 0.75rem);
}
.was-validated .custom-select:invalid:focus, .custom-select.is-invalid:focus {
border-color: #d9534f;
-webkit-box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
}
.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label {
color: #d9534f;
}
.was-validated .form-check-input:invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-tooltip {
display: block;
}
.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label {
color: #d9534f;
}
.was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before {
border-color: #d9534f;
}
.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before {
border-color: #e27c79;
background-color: #e27c79;
}
.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before {
-webkit-box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
}
.was-validated .custom-control-input:invalid:focus:not(:checked) ~ .custom-control-label::before, .custom-control-input.is-invalid:focus:not(:checked) ~ .custom-control-label::before {
border-color: #d9534f;
}
.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label {
border-color: #d9534f;
}
.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label {
border-color: #d9534f;
-webkit-box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
}
.form-inline {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.form-inline .form-check {
width: 100%;
}
@media (min-width: 576px) {
.form-inline label {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
margin-bottom: 0;
}
.form-inline .form-group {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 0;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
margin-bottom: 0;
}
.form-inline .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.form-inline .form-control-plaintext {
display: inline-block;
}
.form-inline .input-group,
.form-inline .custom-select {
width: auto;
}
.form-inline .form-check {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
width: auto;
padding-left: 0;
}
.form-inline .form-check-input {
position: relative;
-ms-flex-negative: 0;
flex-shrink: 0;
margin-top: 0;
margin-right: 0.25rem;
margin-left: 0;
}
.form-inline .custom-control {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.form-inline .custom-control-label {
margin-bottom: 0;
}
}
.btn {
display: inline-block;
font-weight: 600;
color: #55595c;
text-align: center;
vertical-align: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-color: transparent;
border: 0px solid transparent;
padding: 0.75rem 1.5rem;
font-size: 0.875rem;
line-height: 1.5rem;
border-radius: 0;
-webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
.btn {
-webkit-transition: none;
transition: none;
}
}
.btn:hover {
color: #55595c;
text-decoration: none;
}
.btn:focus, .btn.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}
.btn.disabled, .btn:disabled {
opacity: 0.65;
}
.btn:not(:disabled):not(.disabled) {
cursor: pointer;
}
a.btn.disabled,
fieldset:disabled a.btn {
pointer-events: none;
}
.btn-primary {
color: #fff;
background-color: #1a1a1a;
border-color: #1a1a1a;
}
.btn-primary:hover {
color: #fff;
background-color: #070707;
border-color: #010000;
}
.btn-primary:focus, .btn-primary.focus {
color: #fff;
background-color: #070707;
border-color: #010000;
-webkit-box-shadow: 0 0 0 0.2rem rgba(60, 60, 60, 0.5);
box-shadow: 0 0 0 0.2rem rgba(60, 60, 60, 0.5);
}
.btn-primary.disabled, .btn-primary:disabled {
color: #fff;
background-color: #1a1a1a;
border-color: #1a1a1a;
}
.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
color: #fff;
background-color: #010000;
border-color: black;
}
.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(60, 60, 60, 0.5);
box-shadow: 0 0 0 0.2rem rgba(60, 60, 60, 0.5);
}
.btn-secondary {
color: #1a1a1a;
background-color: #fff;
border-color: #fff;
}
.btn-secondary:hover {
color: #1a1a1a;
background-color: #ececec;
border-color: #e6e5e5;
}
.btn-secondary:focus, .btn-secondary.focus {
color: #1a1a1a;
background-color: #ececec;
border-color: #e6e5e5;
-webkit-box-shadow: 0 0 0 0.2rem rgba(221, 221, 221, 0.5);
box-shadow: 0 0 0 0.2rem rgba(221, 221, 221, 0.5);
}
.btn-secondary.disabled, .btn-secondary:disabled {
color: #1a1a1a;
background-color: #fff;
border-color: #fff;
}
.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active,
.show > .btn-secondary.dropdown-toggle {
color: #1a1a1a;
background-color: #e6e5e5;
border-color: #dfdfdf;
}
.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus,
.show > .btn-secondary.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(221, 221, 221, 0.5);
box-shadow: 0 0 0 0.2rem rgba(221, 221, 221, 0.5);
}
.btn-success {
color: #fff;
background-color: #4bbf73;
border-color: #4bbf73;
}
.btn-success:hover {
color: #fff;
background-color: #3ca861;
border-color: #389f5c;
}
.btn-success:focus, .btn-success.focus {
color: #fff;
background-color: #3ca861;
border-color: #389f5c;
-webkit-box-shadow: 0 0 0 0.2rem rgba(102, 201, 136, 0.5);
box-shadow: 0 0 0 0.2rem rgba(102, 201, 136, 0.5);
}
.btn-success.disabled, .btn-success:disabled {
color: #fff;
background-color: #4bbf73;
border-color: #4bbf73;
}
.btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle {
color: #fff;
background-color: #389f5c;
border-color: #359556;
}
.btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus,
.show > .btn-success.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(102, 201, 136, 0.5);
box-shadow: 0 0 0 0.2rem rgba(102, 201, 136, 0.5);
}
.btn-info {
color: #fff;
background-color: #1f9bcf;
border-color: #1f9bcf;
}
.btn-info:hover {
color: #fff;
background-color: #1a82ae;
border-color: #187aa3;
}
.btn-info:focus, .btn-info.focus {
color: #fff;
background-color: #1a82ae;
border-color: #187aa3;
-webkit-box-shadow: 0 0 0 0.2rem rgba(65, 170, 214, 0.5);
box-shadow: 0 0 0 0.2rem rgba(65, 170, 214, 0.5);
}
.btn-info.disabled, .btn-info:disabled {
color: #fff;
background-color: #1f9bcf;
border-color: #1f9bcf;
}
.btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active,
.show > .btn-info.dropdown-toggle {
color: #fff;
background-color: #187aa3;
border-color: #177198;
}
.btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus,
.show > .btn-info.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(65, 170, 214, 0.5);
box-shadow: 0 0 0 0.2rem rgba(65, 170, 214, 0.5);
}
.btn-warning {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-warning:hover {
color: #fff;
background-color: #ed9d2b;
border-color: #ec971f;
}
.btn-warning:focus, .btn-warning.focus {
color: #fff;
background-color: #ed9d2b;
border-color: #ec971f;
-webkit-box-shadow: 0 0 0 0.2rem rgba(242, 185, 105, 0.5);
box-shadow: 0 0 0 0.2rem rgba(242, 185, 105, 0.5);
}
.btn-warning.disabled, .btn-warning:disabled {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active,
.show > .btn-warning.dropdown-toggle {
color: #fff;
background-color: #ec971f;
border-color: #ea9214;
}
.btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus,
.show > .btn-warning.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(242, 185, 105, 0.5);
box-shadow: 0 0 0 0.2rem rgba(242, 185, 105, 0.5);
}
.btn-danger {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-danger:hover {
color: #fff;
background-color: #d23430;
border-color: #c9302c;
}
.btn-danger:focus, .btn-danger.focus {
color: #fff;
background-color: #d23430;
border-color: #c9302c;
-webkit-box-shadow: 0 0 0 0.2rem rgba(223, 109, 105, 0.5);
box-shadow: 0 0 0 0.2rem rgba(223, 109, 105, 0.5);
}
.btn-danger.disabled, .btn-danger:disabled {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active,
.show > .btn-danger.dropdown-toggle {
color: #fff;
background-color: #c9302c;
border-color: #bf2e29;
}
.btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus,
.show > .btn-danger.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(223, 109, 105, 0.5);
box-shadow: 0 0 0 0.2rem rgba(223, 109, 105, 0.5);
}
.btn-light {
color: #1a1a1a;
background-color: #fff;
border-color: #fff;
}
.btn-light:hover {
color: #1a1a1a;
background-color: #ececec;
border-color: #e6e5e5;
}
.btn-light:focus, .btn-light.focus {
color: #1a1a1a;
background-color: #ececec;
border-color: #e6e5e5;
-webkit-box-shadow: 0 0 0 0.2rem rgba(221, 221, 221, 0.5);
box-shadow: 0 0 0 0.2rem rgba(221, 221, 221, 0.5);
}
.btn-light.disabled, .btn-light:disabled {
color: #1a1a1a;
background-color: #fff;
border-color: #fff;
}
.btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active,
.show > .btn-light.dropdown-toggle {
color: #1a1a1a;
background-color: #e6e5e5;
border-color: #dfdfdf;
}
.btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus,
.show > .btn-light.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(221, 221, 221, 0.5);
box-shadow: 0 0 0 0.2rem rgba(221, 221, 221, 0.5);
}
.btn-dark {
color: #fff;
background-color: #343a40;
border-color: #343a40;
}
.btn-dark:hover {
color: #fff;
background-color: #23272b;
border-color: #1d2124;
}
.btn-dark:focus, .btn-dark.focus {
color: #fff;
background-color: #23272b;
border-color: #1d2124;
-webkit-box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);
box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);
}
.btn-dark.disabled, .btn-dark:disabled {
color: #fff;
background-color: #343a40;
border-color: #343a40;
}
.btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active,
.show > .btn-dark.dropdown-toggle {
color: #fff;
background-color: #1d2124;
border-color: #171a1d;
}
.btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus,
.show > .btn-dark.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);
box-shadow: 0 0 0 0.2rem rgba(82, 88, 93, 0.5);
}
.btn-outline-primary {
color: #1a1a1a;
border-color: #1a1a1a;
}
.btn-outline-primary:hover {
color: #fff;
background-color: #1a1a1a;
border-color: #1a1a1a;
}
.btn-outline-primary:focus, .btn-outline-primary.focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.5);
box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.5);
}
.btn-outline-primary.disabled, .btn-outline-primary:disabled {
color: #1a1a1a;
background-color: transparent;
}
.btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active,
.show > .btn-outline-primary.dropdown-toggle {
color: #fff;
background-color: #1a1a1a;
border-color: #1a1a1a;
}
.btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-primary.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.5);
box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.5);
}
.btn-outline-secondary {
color: #fff;
border-color: #fff;
}
.btn-outline-secondary:hover {
color: #1a1a1a;
background-color: #fff;
border-color: #fff;
}
.btn-outline-secondary:focus, .btn-outline-secondary.focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}
.btn-outline-secondary.disabled, .btn-outline-secondary:disabled {
color: #fff;
background-color: transparent;
}
.btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled).active,
.show > .btn-outline-secondary.dropdown-toggle {
color: #1a1a1a;
background-color: #fff;
border-color: #fff;
}
.btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-secondary.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}
.btn-outline-success {
color: #4bbf73;
border-color: #4bbf73;
}
.btn-outline-success:hover {
color: #fff;
background-color: #4bbf73;
border-color: #4bbf73;
}
.btn-outline-success:focus, .btn-outline-success.focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.5);
box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.5);
}
.btn-outline-success.disabled, .btn-outline-success:disabled {
color: #4bbf73;
background-color: transparent;
}
.btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active,
.show > .btn-outline-success.dropdown-toggle {
color: #fff;
background-color: #4bbf73;
border-color: #4bbf73;
}
.btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-success.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.5);
box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.5);
}
.btn-outline-info {
color: #1f9bcf;
border-color: #1f9bcf;
}
.btn-outline-info:hover {
color: #fff;
background-color: #1f9bcf;
border-color: #1f9bcf;
}
.btn-outline-info:focus, .btn-outline-info.focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(31, 155, 207, 0.5);
box-shadow: 0 0 0 0.2rem rgba(31, 155, 207, 0.5);
}
.btn-outline-info.disabled, .btn-outline-info:disabled {
color: #1f9bcf;
background-color: transparent;
}
.btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active,
.show > .btn-outline-info.dropdown-toggle {
color: #fff;
background-color: #1f9bcf;
border-color: #1f9bcf;
}
.btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-info.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(31, 155, 207, 0.5);
box-shadow: 0 0 0 0.2rem rgba(31, 155, 207, 0.5);
}
.btn-outline-warning {
color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-outline-warning:hover {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-outline-warning:focus, .btn-outline-warning.focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.5);
box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.5);
}
.btn-outline-warning.disabled, .btn-outline-warning:disabled {
color: #f0ad4e;
background-color: transparent;
}
.btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning:not(:disabled):not(.disabled).active,
.show > .btn-outline-warning.dropdown-toggle {
color: #fff;
background-color: #f0ad4e;
border-color: #f0ad4e;
}
.btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-warning.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.5);
box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.5);
}
.btn-outline-danger {
color: #d9534f;
border-color: #d9534f;
}
.btn-outline-danger:hover {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-outline-danger:focus, .btn-outline-danger.focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.5);
box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.5);
}
.btn-outline-danger.disabled, .btn-outline-danger:disabled {
color: #d9534f;
background-color: transparent;
}
.btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger:not(:disabled):not(.disabled).active,
.show > .btn-outline-danger.dropdown-toggle {
color: #fff;
background-color: #d9534f;
border-color: #d9534f;
}
.btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-danger.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.5);
box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.5);
}
.btn-outline-light {
color: #fff;
border-color: #fff;
}
.btn-outline-light:hover {
color: #1a1a1a;
background-color: #fff;
border-color: #fff;
}
.btn-outline-light:focus, .btn-outline-light.focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}
.btn-outline-light.disabled, .btn-outline-light:disabled {
color: #fff;
background-color: transparent;
}
.btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light:not(:disabled):not(.disabled).active,
.show > .btn-outline-light.dropdown-toggle {
color: #1a1a1a;
background-color: #fff;
border-color: #fff;
}
.btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-light.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}
.btn-outline-dark {
color: #343a40;
border-color: #343a40;
}
.btn-outline-dark:hover {
color: #fff;
background-color: #343a40;
border-color: #343a40;
}
.btn-outline-dark:focus, .btn-outline-dark.focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);
box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);
}
.btn-outline-dark.disabled, .btn-outline-dark:disabled {
color: #343a40;
background-color: transparent;
}
.btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled).active,
.show > .btn-outline-dark.dropdown-toggle {
color: #fff;
background-color: #343a40;
border-color: #343a40;
}
.btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-dark.dropdown-toggle:focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);
box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);
}
.btn-link {
font-weight: 400;
color: #1a1a1a;
text-decoration: none;
}
.btn-link:hover {
color: black;
text-decoration: underline;
}
.btn-link:focus, .btn-link.focus {
text-decoration: underline;
}
.btn-link:disabled, .btn-link.disabled {
color: #919aa1;
pointer-events: none;
}
.btn-lg, .btn-group-lg > .btn {
padding: 2rem 2rem;
font-size: 1.09375rem;
line-height: 1.5;
border-radius: 0;
}
.btn-sm, .btn-group-sm > .btn {
padding: 0.5rem 1rem;
font-size: 0.765625rem;
line-height: 1.5;
border-radius: 0;
}
.btn-block {
display: block;
width: 100%;
}
.btn-block + .btn-block {
margin-top: 0.5rem;
}
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
width: 100%;
}
.fade {
-webkit-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
@media (prefers-reduced-motion: reduce) {
.fade {
-webkit-transition: none;
transition: none;
}
}
.fade:not(.show) {
opacity: 0;
}
.collapse:not(.show) {
display: none;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height 0.35s ease;
transition: height 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
.collapsing {
-webkit-transition: none;
transition: none;
}
}
.dropup,
.dropright,
.dropdown,
.dropleft {
position: relative;
}
.dropdown-toggle {
white-space: nowrap;
}
.dropdown-toggle::after {
display: inline-block;
margin-left: 0.255em;
vertical-align: 0.255em;
content: "";
border-top: 0.3em solid;
border-right: 0.3em solid transparent;
border-bottom: 0;
border-left: 0.3em solid transparent;
}
.dropdown-toggle:empty::after {
margin-left: 0;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 10rem;
padding: 0.5rem 0;
margin: 0.125rem 0 0;
font-size: 0.875rem;
color: #55595c;
text-align: left;
list-style: none;
background-color: #fff;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.15);
}
.dropdown-menu-left {
right: auto;
left: 0;
}
.dropdown-menu-right {
right: 0;
left: auto;
}
@media (min-width: 576px) {
.dropdown-menu-sm-left {
right: auto;
left: 0;
}
.dropdown-menu-sm-right {
right: 0;
left: auto;
}
}
@media (min-width: 768px) {
.dropdown-menu-md-left {
right: auto;
left: 0;
}
.dropdown-menu-md-right {
right: 0;
left: auto;
}
}
@media (min-width: 992px) {
.dropdown-menu-lg-left {
right: auto;
left: 0;
}
.dropdown-menu-lg-right {
right: 0;
left: auto;
}
}
@media (min-width: 1200px) {
.dropdown-menu-xl-left {
right: auto;
left: 0;
}
.dropdown-menu-xl-right {
right: 0;
left: auto;
}
}
.dropup .dropdown-menu {
top: auto;
bottom: 100%;
margin-top: 0;
margin-bottom: 0.125rem;
}
.dropup .dropdown-toggle::after {
display: inline-block;
margin-left: 0.255em;
vertical-align: 0.255em;
content: "";
border-top: 0;
border-right: 0.3em solid transparent;
border-bottom: 0.3em solid;
border-left: 0.3em solid transparent;
}
.dropup .dropdown-toggle:empty::after {
margin-left: 0;
}
.dropright .dropdown-menu {
top: 0;
right: auto;
left: 100%;
margin-top: 0;
margin-left: 0.125rem;
}
.dropright .dropdown-toggle::after {
display: inline-block;
margin-left: 0.255em;
vertical-align: 0.255em;
content: "";
border-top: 0.3em solid transparent;
border-right: 0;
border-bottom: 0.3em solid transparent;
border-left: 0.3em solid;
}
.dropright .dropdown-toggle:empty::after {
margin-left: 0;
}
.dropright .dropdown-toggle::after {
vertical-align: 0;
}
.dropleft .dropdown-menu {
top: 0;
right: 100%;
left: auto;
margin-top: 0;
margin-right: 0.125rem;
}
.dropleft .dropdown-toggle::after {
display: inline-block;
margin-left: 0.255em;
vertical-align: 0.255em;
content: "";
}
.dropleft .dropdown-toggle::after {
display: none;
}
.dropleft .dropdown-toggle::before {
display: inline-block;
margin-right: 0.255em;
vertical-align: 0.255em;
content: "";
border-top: 0.3em solid transparent;
border-right: 0.3em solid;
border-bottom: 0.3em solid transparent;
}
.dropleft .dropdown-toggle:empty::after {
margin-left: 0;
}
.dropleft .dropdown-toggle::before {
vertical-align: 0;
}
.dropdown-menu[x-placement^="top"], .dropdown-menu[x-placement^="right"], .dropdown-menu[x-placement^="bottom"], .dropdown-menu[x-placement^="left"] {
right: auto;
bottom: auto;
}
.dropdown-divider {
height: 0;
margin: 0.5rem 0;
overflow: hidden;
border-top: 1px solid #f7f7f9;
}
.dropdown-item {
display: block;
width: 100%;
padding: 0.25rem 1.5rem;
clear: both;
font-weight: 400;
color: #1a1a1a;
text-align: inherit;
white-space: nowrap;
background-color: transparent;
border: 0;
}
.dropdown-item:hover, .dropdown-item:focus {
color: #0d0d0d;
text-decoration: none;
background-color: #f8f9fa;
}
.dropdown-item.active, .dropdown-item:active {
color: #fff;
text-decoration: none;
background-color: #1a1a1a;
}
.dropdown-item.disabled, .dropdown-item:disabled {
color: #919aa1;
pointer-events: none;
background-color: transparent;
}
.dropdown-menu.show {
display: block;
}
.dropdown-header {
display: block;
padding: 0.5rem 1.5rem;
margin-bottom: 0;
font-size: 0.765625rem;
color: #919aa1;
white-space: nowrap;
}
.dropdown-item-text {
display: block;
padding: 0.25rem 1.5rem;
color: #1a1a1a;
}
.btn-group,
.btn-group-vertical {
position: relative;
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
vertical-align: middle;
}
.btn-group > .btn,
.btn-group-vertical > .btn {
position: relative;
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
}
.btn-group > .btn:hover,
.btn-group-vertical > .btn:hover {
z-index: 1;
}
.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active,
.btn-group-vertical > .btn:focus,
.btn-group-vertical > .btn:active,
.btn-group-vertical > .btn.active {
z-index: 1;
}
.btn-toolbar {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.btn-toolbar .input-group {
width: auto;
}
.btn-group > .btn:not(:first-child),
.btn-group > .btn-group:not(:first-child) {
margin-left: 0px;
}
.dropdown-toggle-split {
padding-right: 1.125rem;
padding-left: 1.125rem;
}
.dropdown-toggle-split::after,
.dropup .dropdown-toggle-split::after,
.dropright .dropdown-toggle-split::after {
margin-left: 0;
}
.dropleft .dropdown-toggle-split::before {
margin-right: 0;
}
.btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split {
padding-right: 0.75rem;
padding-left: 0.75rem;
}
.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split {
padding-right: 1.5rem;
padding-left: 1.5rem;
}
.btn-group-vertical {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.btn-group-vertical > .btn,
.btn-group-vertical > .btn-group {
width: 100%;
}
.btn-group-vertical > .btn:not(:first-child),
.btn-group-vertical > .btn-group:not(:first-child) {
margin-top: 0px;
}
.btn-group-toggle > .btn,
.btn-group-toggle > .btn-group > .btn {
margin-bottom: 0;
}
.btn-group-toggle > .btn input[type="radio"],
.btn-group-toggle > .btn input[type="checkbox"],
.btn-group-toggle > .btn-group > .btn input[type="radio"],
.btn-group-toggle > .btn-group > .btn input[type="checkbox"] {
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;
}
.input-group {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: stretch;
-ms-flex-align: stretch;
align-items: stretch;
width: 100%;
}
.input-group > .form-control,
.input-group > .form-control-plaintext,
.input-group > .custom-select,
.input-group > .custom-file {
position: relative;
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
width: 1%;
min-width: 0;
margin-bottom: 0;
}
.input-group > .form-control + .form-control,
.input-group > .form-control + .custom-select,
.input-group > .form-control + .custom-file,
.input-group > .form-control-plaintext + .form-control,
.input-group > .form-control-plaintext + .custom-select,
.input-group > .form-control-plaintext + .custom-file,
.input-group > .custom-select + .form-control,
.input-group > .custom-select + .custom-select,
.input-group > .custom-select + .custom-file,
.input-group > .custom-file + .form-control,
.input-group > .custom-file + .custom-select,
.input-group > .custom-file + .custom-file {
margin-left: 0px;
}
.input-group > .form-control:focus,
.input-group > .custom-select:focus,
.input-group > .custom-file .custom-file-input:focus ~ .custom-file-label {
z-index: 3;
}
.input-group > .custom-file .custom-file-input:focus {
z-index: 4;
}
.input-group > .custom-file {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.input-group-prepend,
.input-group-append {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.input-group-prepend .btn,
.input-group-append .btn {
position: relative;
z-index: 2;
}
.input-group-prepend .btn:focus,
.input-group-append .btn:focus {
z-index: 3;
}
.input-group-prepend .btn + .btn,
.input-group-prepend .btn + .input-group-text,
.input-group-prepend .input-group-text + .input-group-text,
.input-group-prepend .input-group-text + .btn,
.input-group-append .btn + .btn,
.input-group-append .btn + .input-group-text,
.input-group-append .input-group-text + .input-group-text,
.input-group-append .input-group-text + .btn {
margin-left: 0px;
}
.input-group-prepend {
margin-right: 0px;
}
.input-group-append {
margin-left: 0px;
}
.input-group-text {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 0.75rem 1.5rem;
margin-bottom: 0;
font-size: 0.875rem;
font-weight: 400;
line-height: 1.5;
color: #55595c;
text-align: center;
white-space: nowrap;
background-color: #eceeef;
border: 0px solid #ced4da;
}
.input-group-text input[type="radio"],
.input-group-text input[type="checkbox"] {
margin-top: 0;
}
.input-group-lg > .form-control:not(textarea),
.input-group-lg > .custom-select {
height: calc(1.5em + 4rem + 0px);
}
.input-group-lg > .form-control,
.input-group-lg > .custom-select,
.input-group-lg > .input-group-prepend > .input-group-text,
.input-group-lg > .input-group-append > .input-group-text,
.input-group-lg > .input-group-prepend > .btn,
.input-group-lg > .input-group-append > .btn {
padding: 2rem 2rem;
font-size: 1.09375rem;
line-height: 1.5;
}
.input-group-sm > .form-control:not(textarea),
.input-group-sm > .custom-select {
height: calc(1.5em + 1rem + 0px);
}
.input-group-sm > .form-control,
.input-group-sm > .custom-select,
.input-group-sm > .input-group-prepend > .input-group-text,
.input-group-sm > .input-group-append > .input-group-text,
.input-group-sm > .input-group-prepend > .btn,
.input-group-sm > .input-group-append > .btn {
padding: 0.5rem 1rem;
font-size: 0.765625rem;
line-height: 1.5;
}
.input-group-lg > .custom-select,
.input-group-sm > .custom-select {
padding-right: 2.5rem;
}
.custom-control {
position: relative;
z-index: 1;
display: block;
min-height: 1.3125rem;
padding-left: 1.5rem;
}
.custom-control-inline {
display: -webkit-inline-box;
display: -ms-inline-flexbox;
display: inline-flex;
margin-right: 1rem;
}
.custom-control-input {
position: absolute;
left: 0;
z-index: -1;
width: 1rem;
height: 1.15625rem;
opacity: 0;
}
.custom-control-input:checked ~ .custom-control-label::before {
color: #fff;
border-color: #1a1a1a;
background-color: #1a1a1a;
}
.custom-control-input:focus ~ .custom-control-label::before {
-webkit-box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}
.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
border-color: #5a5a5a;
}
.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
color: #fff;
background-color: #737373;
border-color: #737373;
}
.custom-control-input[disabled] ~ .custom-control-label, .custom-control-input:disabled ~ .custom-control-label {
color: #919aa1;
}
.custom-control-input[disabled] ~ .custom-control-label::before, .custom-control-input:disabled ~ .custom-control-label::before {
background-color: #eceeef;
}
.custom-control-label {
position: relative;
margin-bottom: 0;
vertical-align: top;
}
.custom-control-label::before {
position: absolute;
top: 0.15625rem;
left: -1.5rem;
display: block;
width: 1rem;
height: 1rem;
pointer-events: none;
content: "";
background-color: #f7f7f9;
border: #adb5bd solid 0px;
}
.custom-control-label::after {
position: absolute;
top: 0.15625rem;
left: -1.5rem;
display: block;
width: 1rem;
height: 1rem;
content: "";
background: no-repeat 50% / 50% 50%;
}
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before {
border-color: #1a1a1a;
background-color: #1a1a1a;
}
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e");
}
.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before {
background-color: rgba(26, 26, 26, 0.5);
}
.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before {
background-color: rgba(26, 26, 26, 0.5);
}
.custom-radio .custom-control-label::before {
border-radius: 50%;
}
.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before {
background-color: rgba(26, 26, 26, 0.5);
}
.custom-switch {
padding-left: 2.25rem;
}
.custom-switch .custom-control-label::before {
left: -2.25rem;
width: 1.75rem;
pointer-events: all;
border-radius: 0.5rem;
}
.custom-switch .custom-control-label::after {
top: calc(0.15625rem + 0px);
left: calc(-2.25rem + 0px);
width: calc(1rem - 0px);
height: calc(1rem - 0px);
background-color: #adb5bd;
border-radius: 0.5rem;
-webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
.custom-switch .custom-control-label::after {
-webkit-transition: none;
transition: none;
}
}
.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
background-color: #f7f7f9;
-webkit-transform: translateX(0.75rem);
transform: translateX(0.75rem);
}
.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before {
background-color: rgba(26, 26, 26, 0.5);
}
.custom-select {
display: inline-block;
width: 100%;
height: calc(1.5em + 1.5rem + 0px);
padding: 0.75rem 2.5rem 0.75rem 1.5rem;
font-size: 0.875rem;
font-weight: 400;
line-height: 1.5;
color: #55595c;
vertical-align: middle;
background: #f7f7f9 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 1.5rem center/8px 10px;
border: 0px solid #ced4da;
border-radius: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.custom-select:focus {
border-color: #5a5a5a;
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}
.custom-select:focus::-ms-value {
color: #55595c;
background-color: #f7f7f9;
}
.custom-select[multiple], .custom-select[size]:not([size="1"]) {
height: auto;
padding-right: 1.5rem;
background-image: none;
}
.custom-select:disabled {
color: #919aa1;
background-color: #f7f7f9;
}
.custom-select::-ms-expand {
display: none;
}
.custom-select:-moz-focusring {
color: transparent;
text-shadow: 0 0 0 #55595c;
}
.custom-select-sm {
height: calc(1.5em + 1rem + 0px);
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-left: 1rem;
font-size: 0.765625rem;
}
.custom-select-lg {
height: calc(1.5em + 4rem + 0px);
padding-top: 2rem;
padding-bottom: 2rem;
padding-left: 2rem;
font-size: 1.09375rem;
}
.custom-file {
position: relative;
display: inline-block;
width: 100%;
height: calc(1.5em + 1.5rem + 0px);
margin-bottom: 0;
}
.custom-file-input {
position: relative;
z-index: 2;
width: 100%;
height: calc(1.5em + 1.5rem + 0px);
margin: 0;
opacity: 0;
}
.custom-file-input:focus ~ .custom-file-label {
border-color: #5a5a5a;
-webkit-box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}
.custom-file-input[disabled] ~ .custom-file-label,
.custom-file-input:disabled ~ .custom-file-label {
background-color: #eceeef;
}
.custom-file-input:lang(en) ~ .custom-file-label::after {
content: "Browse";
}
.custom-file-input ~ .custom-file-label[data-browse]::after {
content: attr(data-browse);
}
.custom-file-label {
position: absolute;
top: 0;
right: 0;
left: 0;
z-index: 1;
height: calc(1.5em + 1.5rem + 0px);
padding: 0.75rem 1.5rem;
font-weight: 400;
line-height: 1.5;
color: #55595c;
background-color: #f7f7f9;
border: 0px solid #ced4da;
}
.custom-file-label::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
z-index: 3;
display: block;
height: calc(1.5em + 1.5rem);
padding: 0.75rem 1.5rem;
line-height: 1.5;
color: #55595c;
content: "Browse";
background-color: #eceeef;
border-left: inherit;
}
.custom-range {
width: 100%;
height: 1.4rem;
padding: 0;
background-color: transparent;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.custom-range:focus {
outline: none;
}
.custom-range:focus::-webkit-slider-thumb {
-webkit-box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}
.custom-range:focus::-moz-range-thumb {
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}
.custom-range:focus::-ms-thumb {
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}
.custom-range::-moz-focus-outer {
border: 0;
}
.custom-range::-webkit-slider-thumb {
width: 1rem;
height: 1rem;
margin-top: -0.25rem;
background-color: #1a1a1a;
border: 0;
-webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
-webkit-appearance: none;
appearance: none;
}
@media (prefers-reduced-motion: reduce) {
.custom-range::-webkit-slider-thumb {
-webkit-transition: none;
transition: none;
}
}
.custom-range::-webkit-slider-thumb:active {
background-color: #737373;
}
.custom-range::-webkit-slider-runnable-track {
width: 100%;
height: 0.5rem;
color: transparent;
cursor: pointer;
background-color: #eceeef;
border-color: transparent;
}
.custom-range::-moz-range-thumb {
width: 1rem;
height: 1rem;
background-color: #1a1a1a;
border: 0;
-webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
-moz-appearance: none;
appearance: none;
}
@media (prefers-reduced-motion: reduce) {
.custom-range::-moz-range-thumb {
-webkit-transition: none;
transition: none;
}
}
.custom-range::-moz-range-thumb:active {
background-color: #737373;
}
.custom-range::-moz-range-track {
width: 100%;
height: 0.5rem;
color: transparent;
cursor: pointer;
background-color: #eceeef;
border-color: transparent;
}
.custom-range::-ms-thumb {
width: 1rem;
height: 1rem;
margin-top: 0;
margin-right: 0.2rem;
margin-left: 0.2rem;
background-color: #1a1a1a;
border: 0;
-webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
appearance: none;
}
@media (prefers-reduced-motion: reduce) {
.custom-range::-ms-thumb {
-webkit-transition: none;
transition: none;
}
}
.custom-range::-ms-thumb:active {
background-color: #737373;
}
.custom-range::-ms-track {
width: 100%;
height: 0.5rem;
color: transparent;
cursor: pointer;
background-color: transparent;
border-color: transparent;
border-width: 0.5rem;
}
.custom-range::-ms-fill-lower {
background-color: #eceeef;
}
.custom-range::-ms-fill-upper {
margin-right: 15px;
background-color: #eceeef;
}
.custom-range:disabled::-webkit-slider-thumb {
background-color: #adb5bd;
}
.custom-range:disabled::-webkit-slider-runnable-track {
cursor: default;
}
.custom-range:disabled::-moz-range-thumb {
background-color: #adb5bd;
}
.custom-range:disabled::-moz-range-track {
cursor: default;
}
.custom-range:disabled::-ms-thumb {
background-color: #adb5bd;
}
.custom-control-label::before,
.custom-file-label,
.custom-select {
-webkit-transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
.custom-control-label::before,
.custom-file-label,
.custom-select {
-webkit-transition: none;
transition: none;
}
}
.nav {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.nav-link {
display: block;
padding: 0.5rem 1rem;
}
.nav-link:hover, .nav-link:focus {
text-decoration: none;
}
.nav-link.disabled {
color: #919aa1;
pointer-events: none;
cursor: default;
}
.nav-tabs {
border-bottom: 1px solid #eceeef;
}
.nav-tabs .nav-item {
margin-bottom: -1px;
}
.nav-tabs .nav-link {
border: 1px solid transparent;
}
.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus {
border-color: #f7f7f9 #f7f7f9 #eceeef;
}
.nav-tabs .nav-link.disabled {
color: #919aa1;
background-color: transparent;
border-color: transparent;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
color: #55595c;
background-color: #fff;
border-color: #eceeef #eceeef #fff;
}
.nav-tabs .dropdown-menu {
margin-top: -1px;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
color: #fff;
background-color: #1a1a1a;
}
.nav-fill > .nav-link,
.nav-fill .nav-item {
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
text-align: center;
}
.nav-justified > .nav-link,
.nav-justified .nav-item {
-ms-flex-preferred-size: 0;
flex-basis: 0;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
text-align: center;
}
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
.navbar {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
padding: 1.5rem 1rem;
}
.navbar .container,
.navbar .container-fluid, .navbar .container-sm, .navbar .container-md, .navbar .container-lg, .navbar .container-xl {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
}
.navbar-brand {
display: inline-block;
padding-top: 1rem;
padding-bottom: 1rem;
margin-right: 1rem;
font-size: 2rem;
line-height: inherit;
white-space: nowrap;
}
.navbar-brand:hover, .navbar-brand:focus {
text-decoration: none;
}
.navbar-nav {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}
.navbar-nav .nav-link {
padding-right: 0;
padding-left: 0;
}
.navbar-nav .dropdown-menu {
position: static;
float: none;
}
.navbar-text {
display: inline-block;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
.navbar-collapse {
-ms-flex-preferred-size: 100%;
flex-basis: 100%;
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.navbar-toggler {
padding: 0.25rem 0.75rem;
font-size: 1.09375rem;
line-height: 1;
background-color: transparent;
border: 1px solid transparent;
}
.navbar-toggler:hover, .navbar-toggler:focus {
text-decoration: none;
}
.navbar-toggler-icon {
display: inline-block;
width: 1.5em;
height: 1.5em;
vertical-align: middle;
content: "";
background: no-repeat center center;
background-size: 100% 100%;
}
@media (max-width: 575.98px) {
.navbar-expand-sm > .container,
.navbar-expand-sm > .container-fluid, .navbar-expand-sm > .container-sm, .navbar-expand-sm > .container-md, .navbar-expand-sm > .container-lg, .navbar-expand-sm > .container-xl {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 576px) {
.navbar-expand-sm {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.navbar-expand-sm .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-expand-sm .navbar-nav .dropdown-menu {
position: absolute;
}
.navbar-expand-sm .navbar-nav .nav-link {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.navbar-expand-sm > .container,
.navbar-expand-sm > .container-fluid, .navbar-expand-sm > .container-sm, .navbar-expand-sm > .container-md, .navbar-expand-sm > .container-lg, .navbar-expand-sm > .container-xl {
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.navbar-expand-sm .navbar-collapse {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
-ms-flex-preferred-size: auto;
flex-basis: auto;
}
.navbar-expand-sm .navbar-toggler {
display: none;
}
}
@media (max-width: 767.98px) {
.navbar-expand-md > .container,
.navbar-expand-md > .container-fluid, .navbar-expand-md > .container-sm, .navbar-expand-md > .container-md, .navbar-expand-md > .container-lg, .navbar-expand-md > .container-xl {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 768px) {
.navbar-expand-md {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.navbar-expand-md .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-expand-md .navbar-nav .dropdown-menu {
position: absolute;
}
.navbar-expand-md .navbar-nav .nav-link {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.navbar-expand-md > .container,
.navbar-expand-md > .container-fluid, .navbar-expand-md > .container-sm, .navbar-expand-md > .container-md, .navbar-expand-md > .container-lg, .navbar-expand-md > .container-xl {
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.navbar-expand-md .navbar-collapse {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
-ms-flex-preferred-size: auto;
flex-basis: auto;
}
.navbar-expand-md .navbar-toggler {
display: none;
}
}
@media (max-width: 991.98px) {
.navbar-expand-lg > .container,
.navbar-expand-lg > .container-fluid, .navbar-expand-lg > .container-sm, .navbar-expand-lg > .container-md, .navbar-expand-lg > .container-lg, .navbar-expand-lg > .container-xl {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 992px) {
.navbar-expand-lg {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.navbar-expand-lg .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-expand-lg .navbar-nav .dropdown-menu {
position: absolute;
}
.navbar-expand-lg .navbar-nav .nav-link {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.navbar-expand-lg > .container,
.navbar-expand-lg > .container-fluid, .navbar-expand-lg > .container-sm, .navbar-expand-lg > .container-md, .navbar-expand-lg > .container-lg, .navbar-expand-lg > .container-xl {
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.navbar-expand-lg .navbar-collapse {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
-ms-flex-preferred-size: auto;
flex-basis: auto;
}
.navbar-expand-lg .navbar-toggler {
display: none;
}
}
@media (max-width: 1199.98px) {
.navbar-expand-xl > .container,
.navbar-expand-xl > .container-fluid, .navbar-expand-xl > .container-sm, .navbar-expand-xl > .container-md, .navbar-expand-xl > .container-lg, .navbar-expand-xl > .container-xl {
padding-right: 0;
padding-left: 0;
}
}
@media (min-width: 1200px) {
.navbar-expand-xl {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.navbar-expand-xl .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-expand-xl .navbar-nav .dropdown-menu {
position: absolute;
}
.navbar-expand-xl .navbar-nav .nav-link {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.navbar-expand-xl > .container,
.navbar-expand-xl > .container-fluid, .navbar-expand-xl > .container-sm, .navbar-expand-xl > .container-md, .navbar-expand-xl > .container-lg, .navbar-expand-xl > .container-xl {
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.navbar-expand-xl .navbar-collapse {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
-ms-flex-preferred-size: auto;
flex-basis: auto;
}
.navbar-expand-xl .navbar-toggler {
display: none;
}
}
.navbar-expand {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row nowrap;
flex-flow: row nowrap;
-webkit-box-pack: start;
-ms-flex-pack: start;
justify-content: flex-start;
}
.navbar-expand > .container,
.navbar-expand > .container-fluid, .navbar-expand > .container-sm, .navbar-expand > .container-md, .navbar-expand > .container-lg, .navbar-expand > .container-xl {
padding-right: 0;
padding-left: 0;
}
.navbar-expand .navbar-nav {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.navbar-expand .navbar-nav .dropdown-menu {
position: absolute;
}
.navbar-expand .navbar-nav .nav-link {
padding-right: 0.5rem;
padding-left: 0.5rem;
}
.navbar-expand > .container,
.navbar-expand > .container-fluid, .navbar-expand > .container-sm, .navbar-expand > .container-md, .navbar-expand > .container-lg, .navbar-expand > .container-xl {
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
}
.navbar-expand .navbar-collapse {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
-ms-flex-preferred-size: auto;
flex-basis: auto;
}
.navbar-expand .navbar-toggler {
display: none;
}
.navbar-light .navbar-brand {
color: #1a1a1a;
}
.navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus {
color: #1a1a1a;
}
.navbar-light .navbar-nav .nav-link {
color: rgba(0, 0, 0, 0.3);
}
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
color: #1a1a1a;
}
.navbar-light .navbar-nav .nav-link.disabled {
color: rgba(0, 0, 0, 0.3);
}
.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
color: #1a1a1a;
}
.navbar-light .navbar-toggler {
color: rgba(0, 0, 0, 0.3);
border-color: rgba(0, 0, 0, 0.1);
}
.navbar-light .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.3%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-light .navbar-text {
color: rgba(0, 0, 0, 0.3);
}
.navbar-light .navbar-text a {
color: #1a1a1a;
}
.navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus {
color: #1a1a1a;
}
.navbar-dark .navbar-brand {
color: #fff;
}
.navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus {
color: #fff;
}
.navbar-dark .navbar-nav .nav-link {
color: rgba(255, 255, 255, 0.5);
}
.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus {
color: #fff;
}
.navbar-dark .navbar-nav .nav-link.disabled {
color: rgba(255, 255, 255, 0.25);
}
.navbar-dark .navbar-nav .show > .nav-link,
.navbar-dark .navbar-nav .active > .nav-link,
.navbar-dark .navbar-nav .nav-link.show,
.navbar-dark .navbar-nav .nav-link.active {
color: #fff;
}
.navbar-dark .navbar-toggler {
color: rgba(255, 255, 255, 0.5);
border-color: rgba(255, 255, 255, 0.1);
}
.navbar-dark .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-dark .navbar-text {
color: rgba(255, 255, 255, 0.5);
}
.navbar-dark .navbar-text a {
color: #fff;
}
.navbar-dark .navbar-text a:hover, .navbar-dark .navbar-text a:focus {
color: #fff;
}
.card {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid rgba(0, 0, 0, 0.125);
}
.card > hr {
margin-right: 0;
margin-left: 0;
}
.card > .list-group {
border-top: inherit;
border-bottom: inherit;
}
.card > .list-group:first-child {
border-top-width: 0;
}
.card > .list-group:last-child {
border-bottom-width: 0;
}
.card > .card-header + .list-group,
.card > .list-group + .card-footer {
border-top: 0;
}
.card-body {
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
min-height: 1px;
padding: 1.25rem;
}
.card-title {
margin-bottom: 0.75rem;
}
.card-subtitle {
margin-top: -0.375rem;
margin-bottom: 0;
}
.card-text:last-child {
margin-bottom: 0;
}
.card-link:hover {
text-decoration: none;
}
.card-link + .card-link {
margin-left: 1.25rem;
}
.card-header {
padding: 0.75rem 1.25rem;
margin-bottom: 0;
background-color: rgba(0, 0, 0, 0.03);
border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.card-footer {
padding: 0.75rem 1.25rem;
background-color: rgba(0, 0, 0, 0.03);
border-top: 1px solid rgba(0, 0, 0, 0.125);
}
.card-header-tabs {
margin-right: -0.625rem;
margin-bottom: -0.75rem;
margin-left: -0.625rem;
border-bottom: 0;
}
.card-header-pills {
margin-right: -0.625rem;
margin-left: -0.625rem;
}
.card-img-overlay {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: 1.25rem;
}
.card-img,
.card-img-top,
.card-img-bottom {
-ms-flex-negative: 0;
flex-shrink: 0;
width: 100%;
}
.card-deck .card {
margin-bottom: 15px;
}
@media (min-width: 576px) {
.card-deck {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
margin-right: -15px;
margin-left: -15px;
}
.card-deck .card {
-webkit-box-flex: 1;
-ms-flex: 1 0 0%;
flex: 1 0 0%;
margin-right: 15px;
margin-bottom: 0;
margin-left: 15px;
}
}
.card-group > .card {
margin-bottom: 15px;
}
@media (min-width: 576px) {
.card-group {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-flow: row wrap;
flex-flow: row wrap;
}
.card-group > .card {
-webkit-box-flex: 1;
-ms-flex: 1 0 0%;
flex: 1 0 0%;
margin-bottom: 0;
}
.card-group > .card + .card {
margin-left: 0;
border-left: 0;
}
}
.card-columns .card {
margin-bottom: 0.75rem;
}
@media (min-width: 576px) {
.card-columns {
-webkit-column-count: 3;
column-count: 3;
-webkit-column-gap: 1.25rem;
column-gap: 1.25rem;
orphans: 1;
widows: 1;
}
.card-columns .card {
display: inline-block;
width: 100%;
}
}
.accordion {
overflow-anchor: none;
}
.accordion > .card {
overflow: hidden;
}
.accordion > .card:not(:last-of-type) {
border-bottom: 0;
}
.accordion > .card > .card-header {
margin-bottom: -1px;
}
.breadcrumb {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
padding: 0.75rem 1rem;
margin-bottom: 1rem;
list-style: none;
background-color: transparent;
}
.breadcrumb-item {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.breadcrumb-item + .breadcrumb-item {
padding-left: 0.5rem;
}
.breadcrumb-item + .breadcrumb-item::before {
display: inline-block;
padding-right: 0.5rem;
color: #919aa1;
content: "/";
}
.breadcrumb-item + .breadcrumb-item:hover::before {
text-decoration: underline;
}
.breadcrumb-item + .breadcrumb-item:hover::before {
text-decoration: none;
}
.breadcrumb-item.active {
color: #919aa1;
}
.pagination {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
padding-left: 0;
list-style: none;
}
.page-link {
position: relative;
display: block;
padding: 0.5rem 0.75rem;
margin-left: -1px;
line-height: 1.25;
color: #1a1a1a;
background-color: #fff;
border: 1px solid transparent;
}
.page-link:hover {
z-index: 2;
color: black;
text-decoration: none;
background-color: #f7f7f9;
border-color: transparent;
}
.page-link:focus {
z-index: 3;
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.25);
}
.page-item:first-child .page-link {
margin-left: 0;
}
.page-item.active .page-link {
z-index: 3;
color: #fff;
background-color: #1a1a1a;
border-color: #1a1a1a;
}
.page-item.disabled .page-link {
color: #919aa1;
pointer-events: none;
cursor: auto;
background-color: #fff;
border-color: transparent;
}
.pagination-lg .page-link {
padding: 0.75rem 1.5rem;
font-size: 1.09375rem;
line-height: 1.5;
}
.pagination-sm .page-link {
padding: 0.25rem 0.5rem;
font-size: 0.765625rem;
line-height: 1.5;
}
.badge {
display: inline-block;
padding: 0.25em 0.4em;
font-size: 75%;
font-weight: 700;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
-webkit-transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
.badge {
-webkit-transition: none;
transition: none;
}
}
a.badge:hover, a.badge:focus {
text-decoration: none;
}
.badge:empty {
display: none;
}
.btn .badge {
position: relative;
top: -1px;
}
.badge-pill {
padding-right: 0.6em;
padding-left: 0.6em;
}
.badge-primary {
color: #fff;
background-color: #1a1a1a;
}
a.badge-primary:hover, a.badge-primary:focus {
color: #fff;
background-color: #010000;
}
a.badge-primary:focus, a.badge-primary.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.5);
box-shadow: 0 0 0 0.2rem rgba(26, 26, 26, 0.5);
}
.badge-secondary {
color: #1a1a1a;
background-color: #fff;
}
a.badge-secondary:hover, a.badge-secondary:focus {
color: #1a1a1a;
background-color: #e6e5e5;
}
a.badge-secondary:focus, a.badge-secondary.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}
.badge-success {
color: #fff;
background-color: #4bbf73;
}
a.badge-success:hover, a.badge-success:focus {
color: #fff;
background-color: #389f5c;
}
a.badge-success:focus, a.badge-success.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.5);
box-shadow: 0 0 0 0.2rem rgba(75, 191, 115, 0.5);
}
.badge-info {
color: #fff;
background-color: #1f9bcf;
}
a.badge-info:hover, a.badge-info:focus {
color: #fff;
background-color: #187aa3;
}
a.badge-info:focus, a.badge-info.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(31, 155, 207, 0.5);
box-shadow: 0 0 0 0.2rem rgba(31, 155, 207, 0.5);
}
.badge-warning {
color: #fff;
background-color: #f0ad4e;
}
a.badge-warning:hover, a.badge-warning:focus {
color: #fff;
background-color: #ec971f;
}
a.badge-warning:focus, a.badge-warning.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.5);
box-shadow: 0 0 0 0.2rem rgba(240, 173, 78, 0.5);
}
.badge-danger {
color: #fff;
background-color: #d9534f;
}
a.badge-danger:hover, a.badge-danger:focus {
color: #fff;
background-color: #c9302c;
}
a.badge-danger:focus, a.badge-danger.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.5);
box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.5);
}
.badge-light {
color: #1a1a1a;
background-color: #fff;
}
a.badge-light:hover, a.badge-light:focus {
color: #1a1a1a;
background-color: #e6e5e5;
}
a.badge-light:focus, a.badge-light.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}
.badge-dark {
color: #fff;
background-color: #343a40;
}
a.badge-dark:hover, a.badge-dark:focus {
color: #fff;
background-color: #1d2124;
}
a.badge-dark:focus, a.badge-dark.focus {
outline: 0;
-webkit-box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);
box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.5);
}
.jumbotron {
padding: 2rem 1rem;
margin-bottom: 2rem;
background-color: #f7f7f9;
}
@media (min-width: 576px) {
.jumbotron {
padding: 4rem 2rem;
}
}
.jumbotron-fluid {
padding-right: 0;
padding-left: 0;
}
.alert {
position: relative;
padding: 0.75rem 1.25rem;
margin-bottom: 1rem;
border: 1px solid transparent;
}
.alert-heading {
color: inherit;
}
.alert-link {
font-weight: 700;
}
.alert-dismissible {
padding-right: 3.8125rem;
}
.alert-dismissible .close {
position: absolute;
top: 0;
right: 0;
padding: 0.75rem 1.25rem;
color: inherit;
}
.alert-primary {
color: #0e0e0e;
background-color: #d1d1d1;
border-color: #bfbfbf;
}
.alert-primary hr {
border-top-color: #b2b2b2;
}
.alert-primary .alert-link {
color: black;
}
.alert-secondary {
color: #858585;
background-color: white;
border-color: white;
}
.alert-secondary hr {
border-top-color: #f2f2f2;
}
.alert-secondary .alert-link {
color: #6c6b6b;
}
.alert-success {
color: #27633c;
background-color: #dbf2e3;
border-color: #cdedd8;
}
.alert-success hr {
border-top-color: #bae6c9;
}
.alert-success .alert-link {
color: #193e26;
}
.alert-info {
color: #10516c;
background-color: #d2ebf5;
border-color: #c0e3f2;
}
.alert-info hr {
border-top-color: #abdaee;
}
.alert-info .alert-link {
color: #093040;
}
.alert-warning {
color: #7d5a29;
background-color: #fcefdc;
border-color: #fbe8cd;
}
.alert-warning hr {
border-top-color: #f9ddb5;
}
.alert-warning .alert-link {
color: #573e1c;
}
.alert-danger {
color: #712b29;
background-color: #f7dddc;
border-color: #f4cfce;
}
.alert-danger hr {
border-top-color: #efbbb9;
}
.alert-danger .alert-link {
color: #4c1d1b;
}
.alert-light {
color: #858585;
background-color: white;
border-color: white;
}
.alert-light hr {
border-top-color: #f2f2f2;
}
.alert-light .alert-link {
color: #6c6b6b;
}
.alert-dark {
color: #1b1e21;
background-color: #d6d8d9;
border-color: #c6c8ca;
}
.alert-dark hr {
border-top-color: #b9bbbe;
}
.alert-dark .alert-link {
color: #040505;
}
@-webkit-keyframes progress-bar-stripes {
from {
background-position: 1rem 0;
}
to {
background-position: 0 0;
}
}
@keyframes progress-bar-stripes {
from {
background-position: 1rem 0;
}
to {
background-position: 0 0;
}
}
.progress {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 1rem;
overflow: hidden;
line-height: 0;
font-size: 0.65625rem;
background-color: #f7f7f9;
}
.progress-bar {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
overflow: hidden;
color: #fff;
text-align: center;
white-space: nowrap;
background-color: #1a1a1a;
-webkit-transition: width 0.6s ease;
transition: width 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
.progress-bar {
-webkit-transition: none;
transition: none;
}
}
.progress-bar-striped {
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-size: 1rem 1rem;
}
.progress-bar-animated {
-webkit-animation: progress-bar-stripes 1s linear infinite;
animation: progress-bar-stripes 1s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.progress-bar-animated {
-webkit-animation: none;
animation: none;
}
}
.media {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
}
.media-body {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.list-group {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
padding-left: 0;
margin-bottom: 0;
}
.list-group-item-action {
width: 100%;
color: #55595c;
text-align: inherit;
}
.list-group-item-action:hover, .list-group-item-action:focus {
z-index: 1;
color: #55595c;
text-decoration: none;
background-color: #f8f9fa;
}
.list-group-item-action:active {
color: #55595c;
background-color: #f7f7f9;
}
.list-group-item {
position: relative;
display: block;
padding: 0.75rem 1.25rem;
background-color: #fff;
border: 1px solid rgba(0, 0, 0, 0.125);
}
.list-group-item.disabled, .list-group-item:disabled {
color: #919aa1;
pointer-events: none;
background-color: #fff;
}
.list-group-item.active {
z-index: 2;
color: #fff;
background-color: #1a1a1a;
border-color: #1a1a1a;
}
.list-group-item + .list-group-item {
border-top-width: 0;
}
.list-group-item + .list-group-item.active {
margin-top: -1px;
border-top-width: 1px;
}
.list-group-horizontal {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.list-group-horizontal > .list-group-item.active {
margin-top: 0;
}
.list-group-horizontal > .list-group-item + .list-group-item {
border-top-width: 1px;
border-left-width: 0;
}
.list-group-horizontal > .list-group-item + .list-group-item.active {
margin-left: -1px;
border-left-width: 1px;
}
@media (min-width: 576px) {
.list-group-horizontal-sm {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.list-group-horizontal-sm > .list-group-item.active {
margin-top: 0;
}
.list-group-horizontal-sm > .list-group-item + .list-group-item {
border-top-width: 1px;
border-left-width: 0;
}
.list-group-horizontal-sm > .list-group-item + .list-group-item.active {
margin-left: -1px;
border-left-width: 1px;
}
}
@media (min-width: 768px) {
.list-group-horizontal-md {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.list-group-horizontal-md > .list-group-item.active {
margin-top: 0;
}
.list-group-horizontal-md > .list-group-item + .list-group-item {
border-top-width: 1px;
border-left-width: 0;
}
.list-group-horizontal-md > .list-group-item + .list-group-item.active {
margin-left: -1px;
border-left-width: 1px;
}
}
@media (min-width: 992px) {
.list-group-horizontal-lg {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.list-group-horizontal-lg > .list-group-item.active {
margin-top: 0;
}
.list-group-horizontal-lg > .list-group-item + .list-group-item {
border-top-width: 1px;
border-left-width: 0;
}
.list-group-horizontal-lg > .list-group-item + .list-group-item.active {
margin-left: -1px;
border-left-width: 1px;
}
}
@media (min-width: 1200px) {
.list-group-horizontal-xl {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.list-group-horizontal-xl > .list-group-item.active {
margin-top: 0;
}
.list-group-horizontal-xl > .list-group-item + .list-group-item {
border-top-width: 1px;
border-left-width: 0;
}
.list-group-horizontal-xl > .list-group-item + .list-group-item.active {
margin-left: -1px;
border-left-width: 1px;
}
}
.list-group-flush > .list-group-item {
border-width: 0 0 1px;
}
.list-group-flush > .list-group-item:last-child {
border-bottom-width: 0;
}
.list-group-item-primary {
color: #0e0e0e;
background-color: #bfbfbf;
}
.list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus {
color: #0e0e0e;
background-color: #b2b2b2;
}
.list-group-item-primary.list-group-item-action.active {
color: #fff;
background-color: #0e0e0e;
border-color: #0e0e0e;
}
.list-group-item-secondary {
color: #858585;
background-color: white;
}
.list-group-item-secondary.list-group-item-action:hover, .list-group-item-secondary.list-group-item-action:focus {
color: #858585;
background-color: #f2f2f2;
}
.list-group-item-secondary.list-group-item-action.active {
color: #fff;
background-color: #858585;
border-color: #858585;
}
.list-group-item-success {
color: #27633c;
background-color: #cdedd8;
}
.list-group-item-success.list-group-item-action:hover, .list-group-item-success.list-group-item-action:focus {
color: #27633c;
background-color: #bae6c9;
}
.list-group-item-success.list-group-item-action.active {
color: #fff;
background-color: #27633c;
border-color: #27633c;
}
.list-group-item-info {
color: #10516c;
background-color: #c0e3f2;
}
.list-group-item-info.list-group-item-action:hover, .list-group-item-info.list-group-item-action:focus {
color: #10516c;
background-color: #abdaee;
}
.list-group-item-info.list-group-item-action.active {
color: #fff;
background-color: #10516c;
border-color: #10516c;
}
.list-group-item-warning {
color: #7d5a29;
background-color: #fbe8cd;
}
.list-group-item-warning.list-group-item-action:hover, .list-group-item-warning.list-group-item-action:focus {
color: #7d5a29;
background-color: #f9ddb5;
}
.list-group-item-warning.list-group-item-action.active {
color: #fff;
background-color: #7d5a29;
border-color: #7d5a29;
}
.list-group-item-danger {
color: #712b29;
background-color: #f4cfce;
}
.list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.list-group-item-action:focus {
color: #712b29;
background-color: #efbbb9;
}
.list-group-item-danger.list-group-item-action.active {
color: #fff;
background-color: #712b29;
border-color: #712b29;
}
.list-group-item-light {
color: #858585;
background-color: white;
}
.list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus {
color: #858585;
background-color: #f2f2f2;
}
.list-group-item-light.list-group-item-action.active {
color: #fff;
background-color: #858585;
border-color: #858585;
}
.list-group-item-dark {
color: #1b1e21;
background-color: #c6c8ca;
}
.list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.list-group-item-action:focus {
color: #1b1e21;
background-color: #b9bbbe;
}
.list-group-item-dark.list-group-item-action.active {
color: #fff;
background-color: #1b1e21;
border-color: #1b1e21;
}
.close {
float: right;
font-size: 1.3125rem;
font-weight: 700;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
opacity: .5;
}
.close:hover {
color: #000;
text-decoration: none;
}
.close:not(:disabled):not(.disabled):hover, .close:not(:disabled):not(.disabled):focus {
opacity: .75;
}
button.close {
padding: 0;
background-color: transparent;
border: 0;
}
a.close.disabled {
pointer-events: none;
}
.toast {
-ms-flex-preferred-size: 350px;
flex-basis: 350px;
max-width: 350px;
font-size: 0.875rem;
background-color: rgba(255, 255, 255, 0.85);
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.1);
-webkit-box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
opacity: 0;
}
.toast:not(:last-child) {
margin-bottom: 0.75rem;
}
.toast.showing {
opacity: 1;
}
.toast.show {
display: block;
opacity: 1;
}
.toast.hide {
display: none;
}
.toast-header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
padding: 0.25rem 0.75rem;
color: #919aa1;
background-color: rgba(255, 255, 255, 0.85);
background-clip: padding-box;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.toast-body {
padding: 0.75rem;
}
.modal-open {
overflow: hidden;
}
.modal-open .modal {
overflow-x: hidden;
overflow-y: auto;
}
.modal {
position: fixed;
top: 0;
left: 0;
z-index: 1050;
display: none;
width: 100%;
height: 100%;
overflow: hidden;
outline: 0;
}
.modal-dialog {
position: relative;
width: auto;
margin: 0.5rem;
pointer-events: none;
}
.modal.fade .modal-dialog {
-webkit-transition: -webkit-transform 0.3s ease-out;
transition: -webkit-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
-webkit-transform: translate(0, -50px);
transform: translate(0, -50px);
}
@media (prefers-reduced-motion: reduce) {
.modal.fade .modal-dialog {
-webkit-transition: none;
transition: none;
}
}
.modal.show .modal-dialog {
-webkit-transform: none;
transform: none;
}
.modal.modal-static .modal-dialog {
-webkit-transform: scale(1.02);
transform: scale(1.02);
}
.modal-dialog-scrollable {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
max-height: calc(100% - 1rem);
}
.modal-dialog-scrollable .modal-content {
max-height: calc(100vh - 1rem);
overflow: hidden;
}
.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
-ms-flex-negative: 0;
flex-shrink: 0;
}
.modal-dialog-scrollable .modal-body {
overflow-y: auto;
}
.modal-dialog-centered {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
min-height: calc(100% - 1rem);
}
.modal-dialog-centered::before {
display: block;
height: calc(100vh - 1rem);
height: -webkit-min-content;
height: -moz-min-content;
height: min-content;
content: "";
}
.modal-dialog-centered.modal-dialog-scrollable {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
height: 100%;
}
.modal-dialog-centered.modal-dialog-scrollable .modal-content {
max-height: none;
}
.modal-dialog-centered.modal-dialog-scrollable::before {
content: none;
}
.modal-content {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
width: 100%;
pointer-events: auto;
background-color: #fff;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.2);
outline: 0;
}
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
z-index: 1040;
width: 100vw;
height: 100vh;
background-color: #000;
}
.modal-backdrop.fade {
opacity: 0;
}
.modal-backdrop.show {
opacity: 0.5;
}
.modal-header {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: start;
-ms-flex-align: start;
align-items: flex-start;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
padding: 1rem 1rem;
border-bottom: 1px solid #eceeef;
}
.modal-header .close {
padding: 1rem 1rem;
margin: -1rem -1rem -1rem auto;
}
.modal-title {
margin-bottom: 0;
line-height: 1.5;
}
.modal-body {
position: relative;
-webkit-box-flex: 1;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
padding: 1rem;
}
.modal-footer {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: end;
-ms-flex-pack: end;
justify-content: flex-end;
padding: 0.75rem;
border-top: 1px solid #eceeef;
}
.modal-footer > * {
margin: 0.25rem;
}
.modal-scrollbar-measure {
position: absolute;
top: -9999px;
width: 50px;
height: 50px;
overflow: scroll;
}
@media (min-width: 576px) {
.modal-dialog {
max-width: 500px;
margin: 1.75rem auto;
}
.modal-dialog-scrollable {
max-height: calc(100% - 3.5rem);
}
.modal-dialog-scrollable .modal-content {
max-height: calc(100vh - 3.5rem);
}
.modal-dialog-centered {
min-height: calc(100% - 3.5rem);
}
.modal-dialog-centered::before {
height: calc(100vh - 3.5rem);
height: -webkit-min-content;
height: -moz-min-content;
height: min-content;
}
.modal-sm {
max-width: 300px;
}
}
@media (min-width: 992px) {
.modal-lg,
.modal-xl {
max-width: 800px;
}
}
@media (min-width: 1200px) {
.modal-xl {
max-width: 1140px;
}
}
.tooltip {
position: absolute;
z-index: 1070;
display: block;
margin: 0;
font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-style: normal;
font-weight: 400;
line-height: 1.5;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
letter-spacing: normal;
word-break: normal;
word-spacing: normal;
white-space: normal;
line-break: auto;
font-size: 0.765625rem;
word-wrap: break-word;
opacity: 0;
}
.tooltip.show {
opacity: 0.9;
}
.tooltip .arrow {
position: absolute;
display: block;
width: 0.8rem;
height: 0.4rem;
}
.tooltip .arrow::before {
position: absolute;
content: "";
border-color: transparent;
border-style: solid;
}
.bs-tooltip-top, .bs-tooltip-auto[x-placement^="top"] {
padding: 0.4rem 0;
}
.bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^="top"] .arrow {
bottom: 0;
}
.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before {
top: 0;
border-width: 0.4rem 0.4rem 0;
border-top-color: #000;
}
.bs-tooltip-right, .bs-tooltip-auto[x-placement^="right"] {
padding: 0 0.4rem;
}
.bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^="right"] .arrow {
left: 0;
width: 0.4rem;
height: 0.8rem;
}
.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before {
right: 0;
border-width: 0.4rem 0.4rem 0.4rem 0;
border-right-color: #000;
}
.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^="bottom"] {
padding: 0.4rem 0;
}
.bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^="bottom"] .arrow {
top: 0;
}
.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before {
bottom: 0;
border-width: 0 0.4rem 0.4rem;
border-bottom-color: #000;
}
.bs-tooltip-left, .bs-tooltip-auto[x-placement^="left"] {
padding: 0 0.4rem;
}
.bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^="left"] .arrow {
right: 0;
width: 0.4rem;
height: 0.8rem;
}
.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before {
left: 0;
border-width: 0.4rem 0 0.4rem 0.4rem;
border-left-color: #000;
}
.tooltip-inner {
max-width: 200px;
padding: 0.25rem 0.5rem;
color: #fff;
text-align: center;
background-color: #000;
}
.popover {
position: absolute;
top: 0;
left: 0;
z-index: 1060;
display: block;
max-width: 276px;
font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-style: normal;
font-weight: 400;
line-height: 1.5;
text-align: left;
text-align: start;
text-decoration: none;
text-shadow: none;
text-transform: none;
letter-spacing: normal;
word-break: normal;
word-spacing: normal;
white-space: normal;
line-break: auto;
font-size: 0.765625rem;
word-wrap: break-word;
background-color: #fff;
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.2);
}
.popover .arrow {
position: absolute;
display: block;
width: 1rem;
height: 0.5rem;
margin: 0 0.3rem;
}
.popover .arrow::before, .popover .arrow::after {
position: absolute;
display: block;
content: "";
border-color: transparent;
border-style: solid;
}
.bs-popover-top, .bs-popover-auto[x-placement^="top"] {
margin-bottom: 0.5rem;
}
.bs-popover-top > .arrow, .bs-popover-auto[x-placement^="top"] > .arrow {
bottom: calc(-0.5rem - 1px);
}
.bs-popover-top > .arrow::before, .bs-popover-auto[x-placement^="top"] > .arrow::before {
bottom: 0;
border-width: 0.5rem 0.5rem 0;
border-top-color: rgba(0, 0, 0, 0.25);
}
.bs-popover-top > .arrow::after, .bs-popover-auto[x-placement^="top"] > .arrow::after {
bottom: 1px;
border-width: 0.5rem 0.5rem 0;
border-top-color: #fff;
}
.bs-popover-right, .bs-popover-auto[x-placement^="right"] {
margin-left: 0.5rem;
}
.bs-popover-right > .arrow, .bs-popover-auto[x-placement^="right"] > .arrow {
left: calc(-0.5rem - 1px);
width: 0.5rem;
height: 1rem;
margin: 0.3rem 0;
}
.bs-popover-right > .arrow::before, .bs-popover-auto[x-placement^="right"] > .arrow::before {
left: 0;
border-width: 0.5rem 0.5rem 0.5rem 0;
border-right-color: rgba(0, 0, 0, 0.25);
}
.bs-popover-right > .arrow::after, .bs-popover-auto[x-placement^="right"] > .arrow::after {
left: 1px;
border-width: 0.5rem 0.5rem 0.5rem 0;
border-right-color: #fff;
}
.bs-popover-bottom, .bs-popover-auto[x-placement^="bottom"] {
margin-top: 0.5rem;
}
.bs-popover-bottom > .arrow, .bs-popover-auto[x-placement^="bottom"] > .arrow {
top: calc(-0.5rem - 1px);
}
.bs-popover-bottom > .arrow::before, .bs-popover-auto[x-placement^="bottom"] > .arrow::before {
top: 0;
border-width: 0 0.5rem 0.5rem 0.5rem;
border-bottom-color: rgba(0, 0, 0, 0.25);
}
.bs-popover-bottom > .arrow::after, .bs-popover-auto[x-placement^="bottom"] > .arrow::after {
top: 1px;
border-width: 0 0.5rem 0.5rem 0.5rem;
border-bottom-color: #fff;
}
.bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^="bottom"] .popover-header::before {
position: absolute;
top: 0;
left: 50%;
display: block;
width: 1rem;
margin-left: -0.5rem;
content: "";
border-bottom: 1px solid #f7f7f7;
}
.bs-popover-left, .bs-popover-auto[x-placement^="left"] {
margin-right: 0.5rem;
}
.bs-popover-left > .arrow, .bs-popover-auto[x-placement^="left"] > .arrow {
right: calc(-0.5rem - 1px);
width: 0.5rem;
height: 1rem;
margin: 0.3rem 0;
}
.bs-popover-left > .arrow::before, .bs-popover-auto[x-placement^="left"] > .arrow::before {
right: 0;
border-width: 0.5rem 0 0.5rem 0.5rem;
border-left-color: rgba(0, 0, 0, 0.25);
}
.bs-popover-left > .arrow::after, .bs-popover-auto[x-placement^="left"] > .arrow::after {
right: 1px;
border-width: 0.5rem 0 0.5rem 0.5rem;
border-left-color: #fff;
}
.popover-header {
padding: 0.5rem 0.75rem;
margin-bottom: 0;
font-size: 0.875rem;
color: #1a1a1a;
background-color: #f7f7f7;
border-bottom: 1px solid #ebebeb;
}
.popover-header:empty {
display: none;
}
.popover-body {
padding: 0.5rem 0.75rem;
color: #55595c;
}
.carousel {
position: relative;
}
.carousel.pointer-event {
-ms-touch-action: pan-y;
touch-action: pan-y;
}
.carousel-inner {
position: relative;
width: 100%;
overflow: hidden;
}
.carousel-inner::after {
display: block;
clear: both;
content: "";
}
.carousel-item {
position: relative;
display: none;
float: left;
width: 100%;
margin-right: -100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transition: -webkit-transform 0.6s ease-in-out;
transition: -webkit-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
.carousel-item {
-webkit-transition: none;
transition: none;
}
}
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
display: block;
}
.carousel-item-next:not(.carousel-item-left),
.active.carousel-item-right {
-webkit-transform: translateX(100%);
transform: translateX(100%);
}
.carousel-item-prev:not(.carousel-item-right),
.active.carousel-item-left {
-webkit-transform: translateX(-100%);
transform: translateX(-100%);
}
.carousel-fade .carousel-item {
opacity: 0;
-webkit-transition-property: opacity;
transition-property: opacity;
-webkit-transform: none;
transform: none;
}
.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right {
z-index: 1;
opacity: 1;
}
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
z-index: 0;
opacity: 0;
-webkit-transition: opacity 0s 0.6s;
transition: opacity 0s 0.6s;
}
@media (prefers-reduced-motion: reduce) {
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
-webkit-transition: none;
transition: none;
}
}
.carousel-control-prev,
.carousel-control-next {
position: absolute;
top: 0;
bottom: 0;
z-index: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
width: 15%;
color: #fff;
text-align: center;
opacity: 0.5;
-webkit-transition: opacity 0.15s ease;
transition: opacity 0.15s ease;
}
@media (prefers-reduced-motion: reduce) {
.carousel-control-prev,
.carousel-control-next {
-webkit-transition: none;
transition: none;
}
}
.carousel-control-prev:hover, .carousel-control-prev:focus,
.carousel-control-next:hover,
.carousel-control-next:focus {
color: #fff;
text-decoration: none;
outline: 0;
opacity: 0.9;
}
.carousel-control-prev {
left: 0;
}
.carousel-control-next {
right: 0;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
display: inline-block;
width: 20px;
height: 20px;
background: no-repeat 50% / 100% 100%;
}
.carousel-control-prev-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}
.carousel-indicators {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 15;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
padding-left: 0;
margin-right: 15%;
margin-left: 15%;
list-style: none;
}
.carousel-indicators li {
-webkit-box-sizing: content-box;
box-sizing: content-box;
-webkit-box-flex: 0;
-ms-flex: 0 1 auto;
flex: 0 1 auto;
width: 30px;
height: 3px;
margin-right: 3px;
margin-left: 3px;
text-indent: -999px;
cursor: pointer;
background-color: #fff;
background-clip: padding-box;
border-top: 10px solid transparent;
border-bottom: 10px solid transparent;
opacity: .5;
-webkit-transition: opacity 0.6s ease;
transition: opacity 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
.carousel-indicators li {
-webkit-transition: none;
transition: none;
}
}
.carousel-indicators .active {
opacity: 1;
}
.carousel-caption {
position: absolute;
right: 15%;
bottom: 20px;
left: 15%;
z-index: 10;
padding-top: 20px;
padding-bottom: 20px;
color: #fff;
text-align: center;
}
@-webkit-keyframes spinner-border {
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes spinner-border {
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.spinner-border {
display: inline-block;
width: 2rem;
height: 2rem;
vertical-align: text-bottom;
border: 0.25em solid currentColor;
border-right-color: transparent;
border-radius: 50%;
-webkit-animation: spinner-border .75s linear infinite;
animation: spinner-border .75s linear infinite;
}
.spinner-border-sm {
width: 1rem;
height: 1rem;
border-width: 0.2em;
}
@-webkit-keyframes spinner-grow {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
50% {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
@keyframes spinner-grow {
0% {
-webkit-transform: scale(0);
transform: scale(0);
}
50% {
opacity: 1;
-webkit-transform: none;
transform: none;
}
}
.spinner-grow {
display: inline-block;
width: 2rem;
height: 2rem;
vertical-align: text-bottom;
background-color: currentColor;
border-radius: 50%;
opacity: 0;
-webkit-animation: spinner-grow .75s linear infinite;
animation: spinner-grow .75s linear infinite;
}
.spinner-grow-sm {
width: 1rem;
height: 1rem;
}
.align-baseline {
vertical-align: baseline !important;
}
.align-top {
vertical-align: top !important;
}
.align-middle {
vertical-align: middle !important;
}
.align-bottom {
vertical-align: bottom !important;
}
.align-text-bottom {
vertical-align: text-bottom !important;
}
.align-text-top {
vertical-align: text-top !important;
}
.bg-primary {
background-color: #1a1a1a !important;
}
a.bg-primary:hover, a.bg-primary:focus,
button.bg-primary:hover,
button.bg-primary:focus {
background-color: #010000 !important;
}
.bg-secondary {
background-color: #fff !important;
}
a.bg-secondary:hover, a.bg-secondary:focus,
button.bg-secondary:hover,
button.bg-secondary:focus {
background-color: #e6e5e5 !important;
}
.bg-success {
background-color: #4bbf73 !important;
}
a.bg-success:hover, a.bg-success:focus,
button.bg-success:hover,
button.bg-success:focus {
background-color: #389f5c !important;
}
.bg-info {
background-color: #1f9bcf !important;
}
a.bg-info:hover, a.bg-info:focus,
button.bg-info:hover,
button.bg-info:focus {
background-color: #187aa3 !important;
}
.bg-warning {
background-color: #f0ad4e !important;
}
a.bg-warning:hover, a.bg-warning:focus,
button.bg-warning:hover,
button.bg-warning:focus {
background-color: #ec971f !important;
}
.bg-danger {
background-color: #d9534f !important;
}
a.bg-danger:hover, a.bg-danger:focus,
button.bg-danger:hover,
button.bg-danger:focus {
background-color: #c9302c !important;
}
.bg-light {
background-color: #fff !important;
}
a.bg-light:hover, a.bg-light:focus,
button.bg-light:hover,
button.bg-light:focus {
background-color: #e6e5e5 !important;
}
.bg-dark {
background-color: #343a40 !important;
}
a.bg-dark:hover, a.bg-dark:focus,
button.bg-dark:hover,
button.bg-dark:focus {
background-color: #1d2124 !important;
}
.bg-white {
background-color: #fff !important;
}
.bg-transparent {
background-color: transparent !important;
}
.border {
border: 1px solid #eceeef !important;
}
.border-top {
border-top: 1px solid #eceeef !important;
}
.border-right {
border-right: 1px solid #eceeef !important;
}
.border-bottom {
border-bottom: 1px solid #eceeef !important;
}
.border-left {
border-left: 1px solid #eceeef !important;
}
.border-0 {
border: 0 !important;
}
.border-top-0 {
border-top: 0 !important;
}
.border-right-0 {
border-right: 0 !important;
}
.border-bottom-0 {
border-bottom: 0 !important;
}
.border-left-0 {
border-left: 0 !important;
}
.border-primary {
border-color: #1a1a1a !important;
}
.border-secondary {
border-color: #fff !important;
}
.border-success {
border-color: #4bbf73 !important;
}
.border-info {
border-color: #1f9bcf !important;
}
.border-warning {
border-color: #f0ad4e !important;
}
.border-danger {
border-color: #d9534f !important;
}
.border-light {
border-color: #fff !important;
}
.border-dark {
border-color: #343a40 !important;
}
.border-white {
border-color: #fff !important;
}
.rounded-sm {
border-radius: 0.2rem !important;
}
.rounded {
border-radius: 0.25rem !important;
}
.rounded-top {
border-top-left-radius: 0.25rem !important;
border-top-right-radius: 0.25rem !important;
}
.rounded-right {
border-top-right-radius: 0.25rem !important;
border-bottom-right-radius: 0.25rem !important;
}
.rounded-bottom {
border-bottom-right-radius: 0.25rem !important;
border-bottom-left-radius: 0.25rem !important;
}
.rounded-left {
border-top-left-radius: 0.25rem !important;
border-bottom-left-radius: 0.25rem !important;
}
.rounded-lg {
border-radius: 0.3rem !important;
}
.rounded-circle {
border-radius: 50% !important;
}
.rounded-pill {
border-radius: 50rem !important;
}
.rounded-0 {
border-radius: 0 !important;
}
.clearfix::after {
display: block;
clear: both;
content: "";
}
.d-none {
display: none !important;
}
.d-inline {
display: inline !important;
}
.d-inline-block {
display: inline-block !important;
}
.d-block {
display: block !important;
}
.d-table {
display: table !important;
}
.d-table-row {
display: table-row !important;
}
.d-table-cell {
display: table-cell !important;
}
.d-flex {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-inline-flex {
display: -webkit-inline-box !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
@media (min-width: 576px) {
.d-sm-none {
display: none !important;
}
.d-sm-inline {
display: inline !important;
}
.d-sm-inline-block {
display: inline-block !important;
}
.d-sm-block {
display: block !important;
}
.d-sm-table {
display: table !important;
}
.d-sm-table-row {
display: table-row !important;
}
.d-sm-table-cell {
display: table-cell !important;
}
.d-sm-flex {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-sm-inline-flex {
display: -webkit-inline-box !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media (min-width: 768px) {
.d-md-none {
display: none !important;
}
.d-md-inline {
display: inline !important;
}
.d-md-inline-block {
display: inline-block !important;
}
.d-md-block {
display: block !important;
}
.d-md-table {
display: table !important;
}
.d-md-table-row {
display: table-row !important;
}
.d-md-table-cell {
display: table-cell !important;
}
.d-md-flex {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-md-inline-flex {
display: -webkit-inline-box !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media (min-width: 992px) {
.d-lg-none {
display: none !important;
}
.d-lg-inline {
display: inline !important;
}
.d-lg-inline-block {
display: inline-block !important;
}
.d-lg-block {
display: block !important;
}
.d-lg-table {
display: table !important;
}
.d-lg-table-row {
display: table-row !important;
}
.d-lg-table-cell {
display: table-cell !important;
}
.d-lg-flex {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-lg-inline-flex {
display: -webkit-inline-box !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media (min-width: 1200px) {
.d-xl-none {
display: none !important;
}
.d-xl-inline {
display: inline !important;
}
.d-xl-inline-block {
display: inline-block !important;
}
.d-xl-block {
display: block !important;
}
.d-xl-table {
display: table !important;
}
.d-xl-table-row {
display: table-row !important;
}
.d-xl-table-cell {
display: table-cell !important;
}
.d-xl-flex {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-xl-inline-flex {
display: -webkit-inline-box !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
@media print {
.d-print-none {
display: none !important;
}
.d-print-inline {
display: inline !important;
}
.d-print-inline-block {
display: inline-block !important;
}
.d-print-block {
display: block !important;
}
.d-print-table {
display: table !important;
}
.d-print-table-row {
display: table-row !important;
}
.d-print-table-cell {
display: table-cell !important;
}
.d-print-flex {
display: -webkit-box !important;
display: -ms-flexbox !important;
display: flex !important;
}
.d-print-inline-flex {
display: -webkit-inline-box !important;
display: -ms-inline-flexbox !important;
display: inline-flex !important;
}
}
.embed-responsive {
position: relative;
display: block;
width: 100%;
padding: 0;
overflow: hidden;
}
.embed-responsive::before {
display: block;
content: "";
}
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
.embed-responsive-21by9::before {
padding-top: 42.8571428571%;
}
.embed-responsive-16by9::before {
padding-top: 56.25%;
}
.embed-responsive-4by3::before {
padding-top: 75%;
}
.embed-responsive-1by1::before {
padding-top: 100%;
}
.flex-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-wrap {
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-nowrap {
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-wrap-reverse {
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.flex-fill {
-webkit-box-flex: 1 !important;
-ms-flex: 1 1 auto !important;
flex: 1 1 auto !important;
}
.flex-grow-0 {
-webkit-box-flex: 0 !important;
-ms-flex-positive: 0 !important;
flex-grow: 0 !important;
}
.flex-grow-1 {
-webkit-box-flex: 1 !important;
-ms-flex-positive: 1 !important;
flex-grow: 1 !important;
}
.flex-shrink-0 {
-ms-flex-negative: 0 !important;
flex-shrink: 0 !important;
}
.flex-shrink-1 {
-ms-flex-negative: 1 !important;
flex-shrink: 1 !important;
}
.justify-content-start {
-webkit-box-pack: start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-end {
-webkit-box-pack: end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-center {
-webkit-box-pack: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-between {
-webkit-box-pack: justify !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-around {
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-start {
-webkit-box-align: start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-end {
-webkit-box-align: end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-center {
-webkit-box-align: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-baseline {
-webkit-box-align: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-stretch {
-webkit-box-align: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-start {
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-end {
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-center {
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-between {
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-around {
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-stretch {
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-auto {
-ms-flex-item-align: auto !important;
align-self: auto !important;
}
.align-self-start {
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-end {
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-center {
-ms-flex-item-align: center !important;
align-self: center !important;
}
.align-self-baseline {
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-stretch {
-ms-flex-item-align: stretch !important;
align-self: stretch !important;
}
@media (min-width: 576px) {
.flex-sm-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-sm-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-sm-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-sm-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-sm-wrap {
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-sm-nowrap {
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-sm-wrap-reverse {
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.flex-sm-fill {
-webkit-box-flex: 1 !important;
-ms-flex: 1 1 auto !important;
flex: 1 1 auto !important;
}
.flex-sm-grow-0 {
-webkit-box-flex: 0 !important;
-ms-flex-positive: 0 !important;
flex-grow: 0 !important;
}
.flex-sm-grow-1 {
-webkit-box-flex: 1 !important;
-ms-flex-positive: 1 !important;
flex-grow: 1 !important;
}
.flex-sm-shrink-0 {
-ms-flex-negative: 0 !important;
flex-shrink: 0 !important;
}
.flex-sm-shrink-1 {
-ms-flex-negative: 1 !important;
flex-shrink: 1 !important;
}
.justify-content-sm-start {
-webkit-box-pack: start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-sm-end {
-webkit-box-pack: end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-sm-center {
-webkit-box-pack: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-sm-between {
-webkit-box-pack: justify !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-sm-around {
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-sm-start {
-webkit-box-align: start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-sm-end {
-webkit-box-align: end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-sm-center {
-webkit-box-align: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-sm-baseline {
-webkit-box-align: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-sm-stretch {
-webkit-box-align: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-sm-start {
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-sm-end {
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-sm-center {
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-sm-between {
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-sm-around {
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-sm-stretch {
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-sm-auto {
-ms-flex-item-align: auto !important;
align-self: auto !important;
}
.align-self-sm-start {
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-sm-end {
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-sm-center {
-ms-flex-item-align: center !important;
align-self: center !important;
}
.align-self-sm-baseline {
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-sm-stretch {
-ms-flex-item-align: stretch !important;
align-self: stretch !important;
}
}
@media (min-width: 768px) {
.flex-md-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-md-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-md-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-md-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-md-wrap {
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-md-nowrap {
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-md-wrap-reverse {
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.flex-md-fill {
-webkit-box-flex: 1 !important;
-ms-flex: 1 1 auto !important;
flex: 1 1 auto !important;
}
.flex-md-grow-0 {
-webkit-box-flex: 0 !important;
-ms-flex-positive: 0 !important;
flex-grow: 0 !important;
}
.flex-md-grow-1 {
-webkit-box-flex: 1 !important;
-ms-flex-positive: 1 !important;
flex-grow: 1 !important;
}
.flex-md-shrink-0 {
-ms-flex-negative: 0 !important;
flex-shrink: 0 !important;
}
.flex-md-shrink-1 {
-ms-flex-negative: 1 !important;
flex-shrink: 1 !important;
}
.justify-content-md-start {
-webkit-box-pack: start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-md-end {
-webkit-box-pack: end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-md-center {
-webkit-box-pack: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-md-between {
-webkit-box-pack: justify !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-md-around {
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-md-start {
-webkit-box-align: start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-md-end {
-webkit-box-align: end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-md-center {
-webkit-box-align: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-md-baseline {
-webkit-box-align: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-md-stretch {
-webkit-box-align: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-md-start {
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-md-end {
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-md-center {
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-md-between {
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-md-around {
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-md-stretch {
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-md-auto {
-ms-flex-item-align: auto !important;
align-self: auto !important;
}
.align-self-md-start {
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-md-end {
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-md-center {
-ms-flex-item-align: center !important;
align-self: center !important;
}
.align-self-md-baseline {
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-md-stretch {
-ms-flex-item-align: stretch !important;
align-self: stretch !important;
}
}
@media (min-width: 992px) {
.flex-lg-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-lg-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-lg-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-lg-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-lg-wrap {
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-lg-nowrap {
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-lg-wrap-reverse {
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.flex-lg-fill {
-webkit-box-flex: 1 !important;
-ms-flex: 1 1 auto !important;
flex: 1 1 auto !important;
}
.flex-lg-grow-0 {
-webkit-box-flex: 0 !important;
-ms-flex-positive: 0 !important;
flex-grow: 0 !important;
}
.flex-lg-grow-1 {
-webkit-box-flex: 1 !important;
-ms-flex-positive: 1 !important;
flex-grow: 1 !important;
}
.flex-lg-shrink-0 {
-ms-flex-negative: 0 !important;
flex-shrink: 0 !important;
}
.flex-lg-shrink-1 {
-ms-flex-negative: 1 !important;
flex-shrink: 1 !important;
}
.justify-content-lg-start {
-webkit-box-pack: start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-lg-end {
-webkit-box-pack: end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-lg-center {
-webkit-box-pack: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-lg-between {
-webkit-box-pack: justify !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-lg-around {
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-lg-start {
-webkit-box-align: start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-lg-end {
-webkit-box-align: end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-lg-center {
-webkit-box-align: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-lg-baseline {
-webkit-box-align: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-lg-stretch {
-webkit-box-align: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-lg-start {
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-lg-end {
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-lg-center {
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-lg-between {
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-lg-around {
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-lg-stretch {
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-lg-auto {
-ms-flex-item-align: auto !important;
align-self: auto !important;
}
.align-self-lg-start {
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-lg-end {
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-lg-center {
-ms-flex-item-align: center !important;
align-self: center !important;
}
.align-self-lg-baseline {
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-lg-stretch {
-ms-flex-item-align: stretch !important;
align-self: stretch !important;
}
}
@media (min-width: 1200px) {
.flex-xl-row {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: row !important;
flex-direction: row !important;
}
.flex-xl-column {
-webkit-box-orient: vertical !important;
-webkit-box-direction: normal !important;
-ms-flex-direction: column !important;
flex-direction: column !important;
}
.flex-xl-row-reverse {
-webkit-box-orient: horizontal !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: row-reverse !important;
flex-direction: row-reverse !important;
}
.flex-xl-column-reverse {
-webkit-box-orient: vertical !important;
-webkit-box-direction: reverse !important;
-ms-flex-direction: column-reverse !important;
flex-direction: column-reverse !important;
}
.flex-xl-wrap {
-ms-flex-wrap: wrap !important;
flex-wrap: wrap !important;
}
.flex-xl-nowrap {
-ms-flex-wrap: nowrap !important;
flex-wrap: nowrap !important;
}
.flex-xl-wrap-reverse {
-ms-flex-wrap: wrap-reverse !important;
flex-wrap: wrap-reverse !important;
}
.flex-xl-fill {
-webkit-box-flex: 1 !important;
-ms-flex: 1 1 auto !important;
flex: 1 1 auto !important;
}
.flex-xl-grow-0 {
-webkit-box-flex: 0 !important;
-ms-flex-positive: 0 !important;
flex-grow: 0 !important;
}
.flex-xl-grow-1 {
-webkit-box-flex: 1 !important;
-ms-flex-positive: 1 !important;
flex-grow: 1 !important;
}
.flex-xl-shrink-0 {
-ms-flex-negative: 0 !important;
flex-shrink: 0 !important;
}
.flex-xl-shrink-1 {
-ms-flex-negative: 1 !important;
flex-shrink: 1 !important;
}
.justify-content-xl-start {
-webkit-box-pack: start !important;
-ms-flex-pack: start !important;
justify-content: flex-start !important;
}
.justify-content-xl-end {
-webkit-box-pack: end !important;
-ms-flex-pack: end !important;
justify-content: flex-end !important;
}
.justify-content-xl-center {
-webkit-box-pack: center !important;
-ms-flex-pack: center !important;
justify-content: center !important;
}
.justify-content-xl-between {
-webkit-box-pack: justify !important;
-ms-flex-pack: justify !important;
justify-content: space-between !important;
}
.justify-content-xl-around {
-ms-flex-pack: distribute !important;
justify-content: space-around !important;
}
.align-items-xl-start {
-webkit-box-align: start !important;
-ms-flex-align: start !important;
align-items: flex-start !important;
}
.align-items-xl-end {
-webkit-box-align: end !important;
-ms-flex-align: end !important;
align-items: flex-end !important;
}
.align-items-xl-center {
-webkit-box-align: center !important;
-ms-flex-align: center !important;
align-items: center !important;
}
.align-items-xl-baseline {
-webkit-box-align: baseline !important;
-ms-flex-align: baseline !important;
align-items: baseline !important;
}
.align-items-xl-stretch {
-webkit-box-align: stretch !important;
-ms-flex-align: stretch !important;
align-items: stretch !important;
}
.align-content-xl-start {
-ms-flex-line-pack: start !important;
align-content: flex-start !important;
}
.align-content-xl-end {
-ms-flex-line-pack: end !important;
align-content: flex-end !important;
}
.align-content-xl-center {
-ms-flex-line-pack: center !important;
align-content: center !important;
}
.align-content-xl-between {
-ms-flex-line-pack: justify !important;
align-content: space-between !important;
}
.align-content-xl-around {
-ms-flex-line-pack: distribute !important;
align-content: space-around !important;
}
.align-content-xl-stretch {
-ms-flex-line-pack: stretch !important;
align-content: stretch !important;
}
.align-self-xl-auto {
-ms-flex-item-align: auto !important;
align-self: auto !important;
}
.align-self-xl-start {
-ms-flex-item-align: start !important;
align-self: flex-start !important;
}
.align-self-xl-end {
-ms-flex-item-align: end !important;
align-self: flex-end !important;
}
.align-self-xl-center {
-ms-flex-item-align: center !important;
align-self: center !important;
}
.align-self-xl-baseline {
-ms-flex-item-align: baseline !important;
align-self: baseline !important;
}
.align-self-xl-stretch {
-ms-flex-item-align: stretch !important;
align-self: stretch !important;
}
}
.float-left {
float: left !important;
}
.float-right {
float: right !important;
}
.float-none {
float: none !important;
}
@media (min-width: 576px) {
.float-sm-left {
float: left !important;
}
.float-sm-right {
float: right !important;
}
.float-sm-none {
float: none !important;
}
}
@media (min-width: 768px) {
.float-md-left {
float: left !important;
}
.float-md-right {
float: right !important;
}
.float-md-none {
float: none !important;
}
}
@media (min-width: 992px) {
.float-lg-left {
float: left !important;
}
.float-lg-right {
float: right !important;
}
.float-lg-none {
float: none !important;
}
}
@media (min-width: 1200px) {
.float-xl-left {
float: left !important;
}
.float-xl-right {
float: right !important;
}
.float-xl-none {
float: none !important;
}
}
.user-select-all {
-webkit-user-select: all !important;
-moz-user-select: all !important;
-ms-user-select: all !important;
user-select: all !important;
}
.user-select-auto {
-webkit-user-select: auto !important;
-moz-user-select: auto !important;
-ms-user-select: auto !important;
user-select: auto !important;
}
.user-select-none {
-webkit-user-select: none !important;
-moz-user-select: none !important;
-ms-user-select: none !important;
user-select: none !important;
}
.overflow-auto {
overflow: auto !important;
}
.overflow-hidden {
overflow: hidden !important;
}
.position-static {
position: static !important;
}
.position-relative {
position: relative !important;
}
.position-absolute {
position: absolute !important;
}
.position-fixed {
position: fixed !important;
}
.position-sticky {
position: -webkit-sticky !important;
position: sticky !important;
}
.fixed-top {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: 1030;
}
.fixed-bottom {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 1030;
}
@supports ((position: -webkit-sticky) or (position: sticky)) {
.sticky-top {
position: -webkit-sticky;
position: sticky;
top: 0;
z-index: 1020;
}
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.sr-only-focusable:active, .sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
overflow: visible;
clip: auto;
white-space: normal;
}
.shadow-sm {
-webkit-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
.shadow {
-webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.shadow-lg {
-webkit-box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
.shadow-none {
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
.w-25 {
width: 25% !important;
}
.w-50 {
width: 50% !important;
}
.w-75 {
width: 75% !important;
}
.w-100 {
width: 100% !important;
}
.w-auto {
width: auto !important;
}
.h-25 {
height: 25% !important;
}
.h-50 {
height: 50% !important;
}
.h-75 {
height: 75% !important;
}
.h-100 {
height: 100% !important;
}
.h-auto {
height: auto !important;
}
.mw-100 {
max-width: 100% !important;
}
.mh-100 {
max-height: 100% !important;
}
.min-vw-100 {
min-width: 100vw !important;
}
.min-vh-100 {
min-height: 100vh !important;
}
.vw-100 {
width: 100vw !important;
}
.vh-100 {
height: 100vh !important;
}
.m-0 {
margin: 0 !important;
}
.mt-0,
.my-0 {
margin-top: 0 !important;
}
.mr-0,
.mx-0 {
margin-right: 0 !important;
}
.mb-0,
.my-0 {
margin-bottom: 0 !important;
}
.ml-0,
.mx-0 {
margin-left: 0 !important;
}
.m-1 {
margin: 0.25rem !important;
}
.mt-1,
.my-1 {
margin-top: 0.25rem !important;
}
.mr-1,
.mx-1 {
margin-right: 0.25rem !important;
}
.mb-1,
.my-1 {
margin-bottom: 0.25rem !important;
}
.ml-1,
.mx-1 {
margin-left: 0.25rem !important;
}
.m-2 {
margin: 0.5rem !important;
}
.mt-2,
.my-2 {
margin-top: 0.5rem !important;
}
.mr-2,
.mx-2 {
margin-right: 0.5rem !important;
}
.mb-2,
.my-2 {
margin-bottom: 0.5rem !important;
}
.ml-2,
.mx-2 {
margin-left: 0.5rem !important;
}
.m-3 {
margin: 1rem !important;
}
.mt-3,
.my-3 {
margin-top: 1rem !important;
}
.mr-3,
.mx-3 {
margin-right: 1rem !important;
}
.mb-3,
.my-3 {
margin-bottom: 1rem !important;
}
.ml-3,
.mx-3 {
margin-left: 1rem !important;
}
.m-4 {
margin: 1.5rem !important;
}
.mt-4,
.my-4 {
margin-top: 1.5rem !important;
}
.mr-4,
.mx-4 {
margin-right: 1.5rem !important;
}
.mb-4,
.my-4 {
margin-bottom: 1.5rem !important;
}
.ml-4,
.mx-4 {
margin-left: 1.5rem !important;
}
.m-5 {
margin: 3rem !important;
}
.mt-5,
.my-5 {
margin-top: 3rem !important;
}
.mr-5,
.mx-5 {
margin-right: 3rem !important;
}
.mb-5,
.my-5 {
margin-bottom: 3rem !important;
}
.ml-5,
.mx-5 {
margin-left: 3rem !important;
}
.p-0 {
padding: 0 !important;
}
.pt-0,
.py-0 {
padding-top: 0 !important;
}
.pr-0,
.px-0 {
padding-right: 0 !important;
}
.pb-0,
.py-0 {
padding-bottom: 0 !important;
}
.pl-0,
.px-0 {
padding-left: 0 !important;
}
.p-1 {
padding: 0.25rem !important;
}
.pt-1,
.py-1 {
padding-top: 0.25rem !important;
}
.pr-1,
.px-1 {
padding-right: 0.25rem !important;
}
.pb-1,
.py-1 {
padding-bottom: 0.25rem !important;
}
.pl-1,
.px-1 {
padding-left: 0.25rem !important;
}
.p-2 {
padding: 0.5rem !important;
}
.pt-2,
.py-2 {
padding-top: 0.5rem !important;
}
.pr-2,
.px-2 {
padding-right: 0.5rem !important;
}
.pb-2,
.py-2 {
padding-bottom: 0.5rem !important;
}
.pl-2,
.px-2 {
padding-left: 0.5rem !important;
}
.p-3 {
padding: 1rem !important;
}
.pt-3,
.py-3 {
padding-top: 1rem !important;
}
.pr-3,
.px-3 {
padding-right: 1rem !important;
}
.pb-3,
.py-3 {
padding-bottom: 1rem !important;
}
.pl-3,
.px-3 {
padding-left: 1rem !important;
}
.p-4 {
padding: 1.5rem !important;
}
.pt-4,
.py-4 {
padding-top: 1.5rem !important;
}
.pr-4,
.px-4 {
padding-right: 1.5rem !important;
}
.pb-4,
.py-4 {
padding-bottom: 1.5rem !important;
}
.pl-4,
.px-4 {
padding-left: 1.5rem !important;
}
.p-5 {
padding: 3rem !important;
}
.pt-5,
.py-5 {
padding-top: 3rem !important;
}
.pr-5,
.px-5 {
padding-right: 3rem !important;
}
.pb-5,
.py-5 {
padding-bottom: 3rem !important;
}
.pl-5,
.px-5 {
padding-left: 3rem !important;
}
.m-n1 {
margin: -0.25rem !important;
}
.mt-n1,
.my-n1 {
margin-top: -0.25rem !important;
}
.mr-n1,
.mx-n1 {
margin-right: -0.25rem !important;
}
.mb-n1,
.my-n1 {
margin-bottom: -0.25rem !important;
}
.ml-n1,
.mx-n1 {
margin-left: -0.25rem !important;
}
.m-n2 {
margin: -0.5rem !important;
}
.mt-n2,
.my-n2 {
margin-top: -0.5rem !important;
}
.mr-n2,
.mx-n2 {
margin-right: -0.5rem !important;
}
.mb-n2,
.my-n2 {
margin-bottom: -0.5rem !important;
}
.ml-n2,
.mx-n2 {
margin-left: -0.5rem !important;
}
.m-n3 {
margin: -1rem !important;
}
.mt-n3,
.my-n3 {
margin-top: -1rem !important;
}
.mr-n3,
.mx-n3 {
margin-right: -1rem !important;
}
.mb-n3,
.my-n3 {
margin-bottom: -1rem !important;
}
.ml-n3,
.mx-n3 {
margin-left: -1rem !important;
}
.m-n4 {
margin: -1.5rem !important;
}
.mt-n4,
.my-n4 {
margin-top: -1.5rem !important;
}
.mr-n4,
.mx-n4 {
margin-right: -1.5rem !important;
}
.mb-n4,
.my-n4 {
margin-bottom: -1.5rem !important;
}
.ml-n4,
.mx-n4 {
margin-left: -1.5rem !important;
}
.m-n5 {
margin: -3rem !important;
}
.mt-n5,
.my-n5 {
margin-top: -3rem !important;
}
.mr-n5,
.mx-n5 {
margin-right: -3rem !important;
}
.mb-n5,
.my-n5 {
margin-bottom: -3rem !important;
}
.ml-n5,
.mx-n5 {
margin-left: -3rem !important;
}
.m-auto {
margin: auto !important;
}
.mt-auto,
.my-auto {
margin-top: auto !important;
}
.mr-auto,
.mx-auto {
margin-right: auto !important;
}
.mb-auto,
.my-auto {
margin-bottom: auto !important;
}
.ml-auto,
.mx-auto {
margin-left: auto !important;
}
@media (min-width: 576px) {
.m-sm-0 {
margin: 0 !important;
}
.mt-sm-0,
.my-sm-0 {
margin-top: 0 !important;
}
.mr-sm-0,
.mx-sm-0 {
margin-right: 0 !important;
}
.mb-sm-0,
.my-sm-0 {
margin-bottom: 0 !important;
}
.ml-sm-0,
.mx-sm-0 {
margin-left: 0 !important;
}
.m-sm-1 {
margin: 0.25rem !important;
}
.mt-sm-1,
.my-sm-1 {
margin-top: 0.25rem !important;
}
.mr-sm-1,
.mx-sm-1 {
margin-right: 0.25rem !important;
}
.mb-sm-1,
.my-sm-1 {
margin-bottom: 0.25rem !important;
}
.ml-sm-1,
.mx-sm-1 {
margin-left: 0.25rem !important;
}
.m-sm-2 {
margin: 0.5rem !important;
}
.mt-sm-2,
.my-sm-2 {
margin-top: 0.5rem !important;
}
.mr-sm-2,
.mx-sm-2 {
margin-right: 0.5rem !important;
}
.mb-sm-2,
.my-sm-2 {
margin-bottom: 0.5rem !important;
}
.ml-sm-2,
.mx-sm-2 {
margin-left: 0.5rem !important;
}
.m-sm-3 {
margin: 1rem !important;
}
.mt-sm-3,
.my-sm-3 {
margin-top: 1rem !important;
}
.mr-sm-3,
.mx-sm-3 {
margin-right: 1rem !important;
}
.mb-sm-3,
.my-sm-3 {
margin-bottom: 1rem !important;
}
.ml-sm-3,
.mx-sm-3 {
margin-left: 1rem !important;
}
.m-sm-4 {
margin: 1.5rem !important;
}
.mt-sm-4,
.my-sm-4 {
margin-top: 1.5rem !important;
}
.mr-sm-4,
.mx-sm-4 {
margin-right: 1.5rem !important;
}
.mb-sm-4,
.my-sm-4 {
margin-bottom: 1.5rem !important;
}
.ml-sm-4,
.mx-sm-4 {
margin-left: 1.5rem !important;
}
.m-sm-5 {
margin: 3rem !important;
}
.mt-sm-5,
.my-sm-5 {
margin-top: 3rem !important;
}
.mr-sm-5,
.mx-sm-5 {
margin-right: 3rem !important;
}
.mb-sm-5,
.my-sm-5 {
margin-bottom: 3rem !important;
}
.ml-sm-5,
.mx-sm-5 {
margin-left: 3rem !important;
}
.p-sm-0 {
padding: 0 !important;
}
.pt-sm-0,
.py-sm-0 {
padding-top: 0 !important;
}
.pr-sm-0,
.px-sm-0 {
padding-right: 0 !important;
}
.pb-sm-0,
.py-sm-0 {
padding-bottom: 0 !important;
}
.pl-sm-0,
.px-sm-0 {
padding-left: 0 !important;
}
.p-sm-1 {
padding: 0.25rem !important;
}
.pt-sm-1,
.py-sm-1 {
padding-top: 0.25rem !important;
}
.pr-sm-1,
.px-sm-1 {
padding-right: 0.25rem !important;
}
.pb-sm-1,
.py-sm-1 {
padding-bottom: 0.25rem !important;
}
.pl-sm-1,
.px-sm-1 {
padding-left: 0.25rem !important;
}
.p-sm-2 {
padding: 0.5rem !important;
}
.pt-sm-2,
.py-sm-2 {
padding-top: 0.5rem !important;
}
.pr-sm-2,
.px-sm-2 {
padding-right: 0.5rem !important;
}
.pb-sm-2,
.py-sm-2 {
padding-bottom: 0.5rem !important;
}
.pl-sm-2,
.px-sm-2 {
padding-left: 0.5rem !important;
}
.p-sm-3 {
padding: 1rem !important;
}
.pt-sm-3,
.py-sm-3 {
padding-top: 1rem !important;
}
.pr-sm-3,
.px-sm-3 {
padding-right: 1rem !important;
}
.pb-sm-3,
.py-sm-3 {
padding-bottom: 1rem !important;
}
.pl-sm-3,
.px-sm-3 {
padding-left: 1rem !important;
}
.p-sm-4 {
padding: 1.5rem !important;
}
.pt-sm-4,
.py-sm-4 {
padding-top: 1.5rem !important;
}
.pr-sm-4,
.px-sm-4 {
padding-right: 1.5rem !important;
}
.pb-sm-4,
.py-sm-4 {
padding-bottom: 1.5rem !important;
}
.pl-sm-4,
.px-sm-4 {
padding-left: 1.5rem !important;
}
.p-sm-5 {
padding: 3rem !important;
}
.pt-sm-5,
.py-sm-5 {
padding-top: 3rem !important;
}
.pr-sm-5,
.px-sm-5 {
padding-right: 3rem !important;
}
.pb-sm-5,
.py-sm-5 {
padding-bottom: 3rem !important;
}
.pl-sm-5,
.px-sm-5 {
padding-left: 3rem !important;
}
.m-sm-n1 {
margin: -0.25rem !important;
}
.mt-sm-n1,
.my-sm-n1 {
margin-top: -0.25rem !important;
}
.mr-sm-n1,
.mx-sm-n1 {
margin-right: -0.25rem !important;
}
.mb-sm-n1,
.my-sm-n1 {
margin-bottom: -0.25rem !important;
}
.ml-sm-n1,
.mx-sm-n1 {
margin-left: -0.25rem !important;
}
.m-sm-n2 {
margin: -0.5rem !important;
}
.mt-sm-n2,
.my-sm-n2 {
margin-top: -0.5rem !important;
}
.mr-sm-n2,
.mx-sm-n2 {
margin-right: -0.5rem !important;
}
.mb-sm-n2,
.my-sm-n2 {
margin-bottom: -0.5rem !important;
}
.ml-sm-n2,
.mx-sm-n2 {
margin-left: -0.5rem !important;
}
.m-sm-n3 {
margin: -1rem !important;
}
.mt-sm-n3,
.my-sm-n3 {
margin-top: -1rem !important;
}
.mr-sm-n3,
.mx-sm-n3 {
margin-right: -1rem !important;
}
.mb-sm-n3,
.my-sm-n3 {
margin-bottom: -1rem !important;
}
.ml-sm-n3,
.mx-sm-n3 {
margin-left: -1rem !important;
}
.m-sm-n4 {
margin: -1.5rem !important;
}
.mt-sm-n4,
.my-sm-n4 {
margin-top: -1.5rem !important;
}
.mr-sm-n4,
.mx-sm-n4 {
margin-right: -1.5rem !important;
}
.mb-sm-n4,
.my-sm-n4 {
margin-bottom: -1.5rem !important;
}
.ml-sm-n4,
.mx-sm-n4 {
margin-left: -1.5rem !important;
}
.m-sm-n5 {
margin: -3rem !important;
}
.mt-sm-n5,
.my-sm-n5 {
margin-top: -3rem !important;
}
.mr-sm-n5,
.mx-sm-n5 {
margin-right: -3rem !important;
}
.mb-sm-n5,
.my-sm-n5 {
margin-bottom: -3rem !important;
}
.ml-sm-n5,
.mx-sm-n5 {
margin-left: -3rem !important;
}
.m-sm-auto {
margin: auto !important;
}
.mt-sm-auto,
.my-sm-auto {
margin-top: auto !important;
}
.mr-sm-auto,
.mx-sm-auto {
margin-right: auto !important;
}
.mb-sm-auto,
.my-sm-auto {
margin-bottom: auto !important;
}
.ml-sm-auto,
.mx-sm-auto {
margin-left: auto !important;
}
}
@media (min-width: 768px) {
.m-md-0 {
margin: 0 !important;
}
.mt-md-0,
.my-md-0 {
margin-top: 0 !important;
}
.mr-md-0,
.mx-md-0 {
margin-right: 0 !important;
}
.mb-md-0,
.my-md-0 {
margin-bottom: 0 !important;
}
.ml-md-0,
.mx-md-0 {
margin-left: 0 !important;
}
.m-md-1 {
margin: 0.25rem !important;
}
.mt-md-1,
.my-md-1 {
margin-top: 0.25rem !important;
}
.mr-md-1,
.mx-md-1 {
margin-right: 0.25rem !important;
}
.mb-md-1,
.my-md-1 {
margin-bottom: 0.25rem !important;
}
.ml-md-1,
.mx-md-1 {
margin-left: 0.25rem !important;
}
.m-md-2 {
margin: 0.5rem !important;
}
.mt-md-2,
.my-md-2 {
margin-top: 0.5rem !important;
}
.mr-md-2,
.mx-md-2 {
margin-right: 0.5rem !important;
}
.mb-md-2,
.my-md-2 {
margin-bottom: 0.5rem !important;
}
.ml-md-2,
.mx-md-2 {
margin-left: 0.5rem !important;
}
.m-md-3 {
margin: 1rem !important;
}
.mt-md-3,
.my-md-3 {
margin-top: 1rem !important;
}
.mr-md-3,
.mx-md-3 {
margin-right: 1rem !important;
}
.mb-md-3,
.my-md-3 {
margin-bottom: 1rem !important;
}
.ml-md-3,
.mx-md-3 {
margin-left: 1rem !important;
}
.m-md-4 {
margin: 1.5rem !important;
}
.mt-md-4,
.my-md-4 {
margin-top: 1.5rem !important;
}
.mr-md-4,
.mx-md-4 {
margin-right: 1.5rem !important;
}
.mb-md-4,
.my-md-4 {
margin-bottom: 1.5rem !important;
}
.ml-md-4,
.mx-md-4 {
margin-left: 1.5rem !important;
}
.m-md-5 {
margin: 3rem !important;
}
.mt-md-5,
.my-md-5 {
margin-top: 3rem !important;
}
.mr-md-5,
.mx-md-5 {
margin-right: 3rem !important;
}
.mb-md-5,
.my-md-5 {
margin-bottom: 3rem !important;
}
.ml-md-5,
.mx-md-5 {
margin-left: 3rem !important;
}
.p-md-0 {
padding: 0 !important;
}
.pt-md-0,
.py-md-0 {
padding-top: 0 !important;
}
.pr-md-0,
.px-md-0 {
padding-right: 0 !important;
}
.pb-md-0,
.py-md-0 {
padding-bottom: 0 !important;
}
.pl-md-0,
.px-md-0 {
padding-left: 0 !important;
}
.p-md-1 {
padding: 0.25rem !important;
}
.pt-md-1,
.py-md-1 {
padding-top: 0.25rem !important;
}
.pr-md-1,
.px-md-1 {
padding-right: 0.25rem !important;
}
.pb-md-1,
.py-md-1 {
padding-bottom: 0.25rem !important;
}
.pl-md-1,
.px-md-1 {
padding-left: 0.25rem !important;
}
.p-md-2 {
padding: 0.5rem !important;
}
.pt-md-2,
.py-md-2 {
padding-top: 0.5rem !important;
}
.pr-md-2,
.px-md-2 {
padding-right: 0.5rem !important;
}
.pb-md-2,
.py-md-2 {
padding-bottom: 0.5rem !important;
}
.pl-md-2,
.px-md-2 {
padding-left: 0.5rem !important;
}
.p-md-3 {
padding: 1rem !important;
}
.pt-md-3,
.py-md-3 {
padding-top: 1rem !important;
}
.pr-md-3,
.px-md-3 {
padding-right: 1rem !important;
}
.pb-md-3,
.py-md-3 {
padding-bottom: 1rem !important;
}
.pl-md-3,
.px-md-3 {
padding-left: 1rem !important;
}
.p-md-4 {
padding: 1.5rem !important;
}
.pt-md-4,
.py-md-4 {
padding-top: 1.5rem !important;
}
.pr-md-4,
.px-md-4 {
padding-right: 1.5rem !important;
}
.pb-md-4,
.py-md-4 {
padding-bottom: 1.5rem !important;
}
.pl-md-4,
.px-md-4 {
padding-left: 1.5rem !important;
}
.p-md-5 {
padding: 3rem !important;
}
.pt-md-5,
.py-md-5 {
padding-top: 3rem !important;
}
.pr-md-5,
.px-md-5 {
padding-right: 3rem !important;
}
.pb-md-5,
.py-md-5 {
padding-bottom: 3rem !important;
}
.pl-md-5,
.px-md-5 {
padding-left: 3rem !important;
}
.m-md-n1 {
margin: -0.25rem !important;
}
.mt-md-n1,
.my-md-n1 {
margin-top: -0.25rem !important;
}
.mr-md-n1,
.mx-md-n1 {
margin-right: -0.25rem !important;
}
.mb-md-n1,
.my-md-n1 {
margin-bottom: -0.25rem !important;
}
.ml-md-n1,
.mx-md-n1 {
margin-left: -0.25rem !important;
}
.m-md-n2 {
margin: -0.5rem !important;
}
.mt-md-n2,
.my-md-n2 {
margin-top: -0.5rem !important;
}
.mr-md-n2,
.mx-md-n2 {
margin-right: -0.5rem !important;
}
.mb-md-n2,
.my-md-n2 {
margin-bottom: -0.5rem !important;
}
.ml-md-n2,
.mx-md-n2 {
margin-left: -0.5rem !important;
}
.m-md-n3 {
margin: -1rem !important;
}
.mt-md-n3,
.my-md-n3 {
margin-top: -1rem !important;
}
.mr-md-n3,
.mx-md-n3 {
margin-right: -1rem !important;
}
.mb-md-n3,
.my-md-n3 {
margin-bottom: -1rem !important;
}
.ml-md-n3,
.mx-md-n3 {
margin-left: -1rem !important;
}
.m-md-n4 {
margin: -1.5rem !important;
}
.mt-md-n4,
.my-md-n4 {
margin-top: -1.5rem !important;
}
.mr-md-n4,
.mx-md-n4 {
margin-right: -1.5rem !important;
}
.mb-md-n4,
.my-md-n4 {
margin-bottom: -1.5rem !important;
}
.ml-md-n4,
.mx-md-n4 {
margin-left: -1.5rem !important;
}
.m-md-n5 {
margin: -3rem !important;
}
.mt-md-n5,
.my-md-n5 {
margin-top: -3rem !important;
}
.mr-md-n5,
.mx-md-n5 {
margin-right: -3rem !important;
}
.mb-md-n5,
.my-md-n5 {
margin-bottom: -3rem !important;
}
.ml-md-n5,
.mx-md-n5 {
margin-left: -3rem !important;
}
.m-md-auto {
margin: auto !important;
}
.mt-md-auto,
.my-md-auto {
margin-top: auto !important;
}
.mr-md-auto,
.mx-md-auto {
margin-right: auto !important;
}
.mb-md-auto,
.my-md-auto {
margin-bottom: auto !important;
}
.ml-md-auto,
.mx-md-auto {
margin-left: auto !important;
}
}
@media (min-width: 992px) {
.m-lg-0 {
margin: 0 !important;
}
.mt-lg-0,
.my-lg-0 {
margin-top: 0 !important;
}
.mr-lg-0,
.mx-lg-0 {
margin-right: 0 !important;
}
.mb-lg-0,
.my-lg-0 {
margin-bottom: 0 !important;
}
.ml-lg-0,
.mx-lg-0 {
margin-left: 0 !important;
}
.m-lg-1 {
margin: 0.25rem !important;
}
.mt-lg-1,
.my-lg-1 {
margin-top: 0.25rem !important;
}
.mr-lg-1,
.mx-lg-1 {
margin-right: 0.25rem !important;
}
.mb-lg-1,
.my-lg-1 {
margin-bottom: 0.25rem !important;
}
.ml-lg-1,
.mx-lg-1 {
margin-left: 0.25rem !important;
}
.m-lg-2 {
margin: 0.5rem !important;
}
.mt-lg-2,
.my-lg-2 {
margin-top: 0.5rem !important;
}
.mr-lg-2,
.mx-lg-2 {
margin-right: 0.5rem !important;
}
.mb-lg-2,
.my-lg-2 {
margin-bottom: 0.5rem !important;
}
.ml-lg-2,
.mx-lg-2 {
margin-left: 0.5rem !important;
}
.m-lg-3 {
margin: 1rem !important;
}
.mt-lg-3,
.my-lg-3 {
margin-top: 1rem !important;
}
.mr-lg-3,
.mx-lg-3 {
margin-right: 1rem !important;
}
.mb-lg-3,
.my-lg-3 {
margin-bottom: 1rem !important;
}
.ml-lg-3,
.mx-lg-3 {
margin-left: 1rem !important;
}
.m-lg-4 {
margin: 1.5rem !important;
}
.mt-lg-4,
.my-lg-4 {
margin-top: 1.5rem !important;
}
.mr-lg-4,
.mx-lg-4 {
margin-right: 1.5rem !important;
}
.mb-lg-4,
.my-lg-4 {
margin-bottom: 1.5rem !important;
}
.ml-lg-4,
.mx-lg-4 {
margin-left: 1.5rem !important;
}
.m-lg-5 {
margin: 3rem !important;
}
.mt-lg-5,
.my-lg-5 {
margin-top: 3rem !important;
}
.mr-lg-5,
.mx-lg-5 {
margin-right: 3rem !important;
}
.mb-lg-5,
.my-lg-5 {
margin-bottom: 3rem !important;
}
.ml-lg-5,
.mx-lg-5 {
margin-left: 3rem !important;
}
.p-lg-0 {
padding: 0 !important;
}
.pt-lg-0,
.py-lg-0 {
padding-top: 0 !important;
}
.pr-lg-0,
.px-lg-0 {
padding-right: 0 !important;
}
.pb-lg-0,
.py-lg-0 {
padding-bottom: 0 !important;
}
.pl-lg-0,
.px-lg-0 {
padding-left: 0 !important;
}
.p-lg-1 {
padding: 0.25rem !important;
}
.pt-lg-1,
.py-lg-1 {
padding-top: 0.25rem !important;
}
.pr-lg-1,
.px-lg-1 {
padding-right: 0.25rem !important;
}
.pb-lg-1,
.py-lg-1 {
padding-bottom: 0.25rem !important;
}
.pl-lg-1,
.px-lg-1 {
padding-left: 0.25rem !important;
}
.p-lg-2 {
padding: 0.5rem !important;
}
.pt-lg-2,
.py-lg-2 {
padding-top: 0.5rem !important;
}
.pr-lg-2,
.px-lg-2 {
padding-right: 0.5rem !important;
}
.pb-lg-2,
.py-lg-2 {
padding-bottom: 0.5rem !important;
}
.pl-lg-2,
.px-lg-2 {
padding-left: 0.5rem !important;
}
.p-lg-3 {
padding: 1rem !important;
}
.pt-lg-3,
.py-lg-3 {
padding-top: 1rem !important;
}
.pr-lg-3,
.px-lg-3 {
padding-right: 1rem !important;
}
.pb-lg-3,
.py-lg-3 {
padding-bottom: 1rem !important;
}
.pl-lg-3,
.px-lg-3 {
padding-left: 1rem !important;
}
.p-lg-4 {
padding: 1.5rem !important;
}
.pt-lg-4,
.py-lg-4 {
padding-top: 1.5rem !important;
}
.pr-lg-4,
.px-lg-4 {
padding-right: 1.5rem !important;
}
.pb-lg-4,
.py-lg-4 {
padding-bottom: 1.5rem !important;
}
.pl-lg-4,
.px-lg-4 {
padding-left: 1.5rem !important;
}
.p-lg-5 {
padding: 3rem !important;
}
.pt-lg-5,
.py-lg-5 {
padding-top: 3rem !important;
}
.pr-lg-5,
.px-lg-5 {
padding-right: 3rem !important;
}
.pb-lg-5,
.py-lg-5 {
padding-bottom: 3rem !important;
}
.pl-lg-5,
.px-lg-5 {
padding-left: 3rem !important;
}
.m-lg-n1 {
margin: -0.25rem !important;
}
.mt-lg-n1,
.my-lg-n1 {
margin-top: -0.25rem !important;
}
.mr-lg-n1,
.mx-lg-n1 {
margin-right: -0.25rem !important;
}
.mb-lg-n1,
.my-lg-n1 {
margin-bottom: -0.25rem !important;
}
.ml-lg-n1,
.mx-lg-n1 {
margin-left: -0.25rem !important;
}
.m-lg-n2 {
margin: -0.5rem !important;
}
.mt-lg-n2,
.my-lg-n2 {
margin-top: -0.5rem !important;
}
.mr-lg-n2,
.mx-lg-n2 {
margin-right: -0.5rem !important;
}
.mb-lg-n2,
.my-lg-n2 {
margin-bottom: -0.5rem !important;
}
.ml-lg-n2,
.mx-lg-n2 {
margin-left: -0.5rem !important;
}
.m-lg-n3 {
margin: -1rem !important;
}
.mt-lg-n3,
.my-lg-n3 {
margin-top: -1rem !important;
}
.mr-lg-n3,
.mx-lg-n3 {
margin-right: -1rem !important;
}
.mb-lg-n3,
.my-lg-n3 {
margin-bottom: -1rem !important;
}
.ml-lg-n3,
.mx-lg-n3 {
margin-left: -1rem !important;
}
.m-lg-n4 {
margin: -1.5rem !important;
}
.mt-lg-n4,
.my-lg-n4 {
margin-top: -1.5rem !important;
}
.mr-lg-n4,
.mx-lg-n4 {
margin-right: -1.5rem !important;
}
.mb-lg-n4,
.my-lg-n4 {
margin-bottom: -1.5rem !important;
}
.ml-lg-n4,
.mx-lg-n4 {
margin-left: -1.5rem !important;
}
.m-lg-n5 {
margin: -3rem !important;
}
.mt-lg-n5,
.my-lg-n5 {
margin-top: -3rem !important;
}
.mr-lg-n5,
.mx-lg-n5 {
margin-right: -3rem !important;
}
.mb-lg-n5,
.my-lg-n5 {
margin-bottom: -3rem !important;
}
.ml-lg-n5,
.mx-lg-n5 {
margin-left: -3rem !important;
}
.m-lg-auto {
margin: auto !important;
}
.mt-lg-auto,
.my-lg-auto {
margin-top: auto !important;
}
.mr-lg-auto,
.mx-lg-auto {
margin-right: auto !important;
}
.mb-lg-auto,
.my-lg-auto {
margin-bottom: auto !important;
}
.ml-lg-auto,
.mx-lg-auto {
margin-left: auto !important;
}
}
@media (min-width: 1200px) {
.m-xl-0 {
margin: 0 !important;
}
.mt-xl-0,
.my-xl-0 {
margin-top: 0 !important;
}
.mr-xl-0,
.mx-xl-0 {
margin-right: 0 !important;
}
.mb-xl-0,
.my-xl-0 {
margin-bottom: 0 !important;
}
.ml-xl-0,
.mx-xl-0 {
margin-left: 0 !important;
}
.m-xl-1 {
margin: 0.25rem !important;
}
.mt-xl-1,
.my-xl-1 {
margin-top: 0.25rem !important;
}
.mr-xl-1,
.mx-xl-1 {
margin-right: 0.25rem !important;
}
.mb-xl-1,
.my-xl-1 {
margin-bottom: 0.25rem !important;
}
.ml-xl-1,
.mx-xl-1 {
margin-left: 0.25rem !important;
}
.m-xl-2 {
margin: 0.5rem !important;
}
.mt-xl-2,
.my-xl-2 {
margin-top: 0.5rem !important;
}
.mr-xl-2,
.mx-xl-2 {
margin-right: 0.5rem !important;
}
.mb-xl-2,
.my-xl-2 {
margin-bottom: 0.5rem !important;
}
.ml-xl-2,
.mx-xl-2 {
margin-left: 0.5rem !important;
}
.m-xl-3 {
margin: 1rem !important;
}
.mt-xl-3,
.my-xl-3 {
margin-top: 1rem !important;
}
.mr-xl-3,
.mx-xl-3 {
margin-right: 1rem !important;
}
.mb-xl-3,
.my-xl-3 {
margin-bottom: 1rem !important;
}
.ml-xl-3,
.mx-xl-3 {
margin-left: 1rem !important;
}
.m-xl-4 {
margin: 1.5rem !important;
}
.mt-xl-4,
.my-xl-4 {
margin-top: 1.5rem !important;
}
.mr-xl-4,
.mx-xl-4 {
margin-right: 1.5rem !important;
}
.mb-xl-4,
.my-xl-4 {
margin-bottom: 1.5rem !important;
}
.ml-xl-4,
.mx-xl-4 {
margin-left: 1.5rem !important;
}
.m-xl-5 {
margin: 3rem !important;
}
.mt-xl-5,
.my-xl-5 {
margin-top: 3rem !important;
}
.mr-xl-5,
.mx-xl-5 {
margin-right: 3rem !important;
}
.mb-xl-5,
.my-xl-5 {
margin-bottom: 3rem !important;
}
.ml-xl-5,
.mx-xl-5 {
margin-left: 3rem !important;
}
.p-xl-0 {
padding: 0 !important;
}
.pt-xl-0,
.py-xl-0 {
padding-top: 0 !important;
}
.pr-xl-0,
.px-xl-0 {
padding-right: 0 !important;
}
.pb-xl-0,
.py-xl-0 {
padding-bottom: 0 !important;
}
.pl-xl-0,
.px-xl-0 {
padding-left: 0 !important;
}
.p-xl-1 {
padding: 0.25rem !important;
}
.pt-xl-1,
.py-xl-1 {
padding-top: 0.25rem !important;
}
.pr-xl-1,
.px-xl-1 {
padding-right: 0.25rem !important;
}
.pb-xl-1,
.py-xl-1 {
padding-bottom: 0.25rem !important;
}
.pl-xl-1,
.px-xl-1 {
padding-left: 0.25rem !important;
}
.p-xl-2 {
padding: 0.5rem !important;
}
.pt-xl-2,
.py-xl-2 {
padding-top: 0.5rem !important;
}
.pr-xl-2,
.px-xl-2 {
padding-right: 0.5rem !important;
}
.pb-xl-2,
.py-xl-2 {
padding-bottom: 0.5rem !important;
}
.pl-xl-2,
.px-xl-2 {
padding-left: 0.5rem !important;
}
.p-xl-3 {
padding: 1rem !important;
}
.pt-xl-3,
.py-xl-3 {
padding-top: 1rem !important;
}
.pr-xl-3,
.px-xl-3 {
padding-right: 1rem !important;
}
.pb-xl-3,
.py-xl-3 {
padding-bottom: 1rem !important;
}
.pl-xl-3,
.px-xl-3 {
padding-left: 1rem !important;
}
.p-xl-4 {
padding: 1.5rem !important;
}
.pt-xl-4,
.py-xl-4 {
padding-top: 1.5rem !important;
}
.pr-xl-4,
.px-xl-4 {
padding-right: 1.5rem !important;
}
.pb-xl-4,
.py-xl-4 {
padding-bottom: 1.5rem !important;
}
.pl-xl-4,
.px-xl-4 {
padding-left: 1.5rem !important;
}
.p-xl-5 {
padding: 3rem !important;
}
.pt-xl-5,
.py-xl-5 {
padding-top: 3rem !important;
}
.pr-xl-5,
.px-xl-5 {
padding-right: 3rem !important;
}
.pb-xl-5,
.py-xl-5 {
padding-bottom: 3rem !important;
}
.pl-xl-5,
.px-xl-5 {
padding-left: 3rem !important;
}
.m-xl-n1 {
margin: -0.25rem !important;
}
.mt-xl-n1,
.my-xl-n1 {
margin-top: -0.25rem !important;
}
.mr-xl-n1,
.mx-xl-n1 {
margin-right: -0.25rem !important;
}
.mb-xl-n1,
.my-xl-n1 {
margin-bottom: -0.25rem !important;
}
.ml-xl-n1,
.mx-xl-n1 {
margin-left: -0.25rem !important;
}
.m-xl-n2 {
margin: -0.5rem !important;
}
.mt-xl-n2,
.my-xl-n2 {
margin-top: -0.5rem !important;
}
.mr-xl-n2,
.mx-xl-n2 {
margin-right: -0.5rem !important;
}
.mb-xl-n2,
.my-xl-n2 {
margin-bottom: -0.5rem !important;
}
.ml-xl-n2,
.mx-xl-n2 {
margin-left: -0.5rem !important;
}
.m-xl-n3 {
margin: -1rem !important;
}
.mt-xl-n3,
.my-xl-n3 {
margin-top: -1rem !important;
}
.mr-xl-n3,
.mx-xl-n3 {
margin-right: -1rem !important;
}
.mb-xl-n3,
.my-xl-n3 {
margin-bottom: -1rem !important;
}
.ml-xl-n3,
.mx-xl-n3 {
margin-left: -1rem !important;
}
.m-xl-n4 {
margin: -1.5rem !important;
}
.mt-xl-n4,
.my-xl-n4 {
margin-top: -1.5rem !important;
}
.mr-xl-n4,
.mx-xl-n4 {
margin-right: -1.5rem !important;
}
.mb-xl-n4,
.my-xl-n4 {
margin-bottom: -1.5rem !important;
}
.ml-xl-n4,
.mx-xl-n4 {
margin-left: -1.5rem !important;
}
.m-xl-n5 {
margin: -3rem !important;
}
.mt-xl-n5,
.my-xl-n5 {
margin-top: -3rem !important;
}
.mr-xl-n5,
.mx-xl-n5 {
margin-right: -3rem !important;
}
.mb-xl-n5,
.my-xl-n5 {
margin-bottom: -3rem !important;
}
.ml-xl-n5,
.mx-xl-n5 {
margin-left: -3rem !important;
}
.m-xl-auto {
margin: auto !important;
}
.mt-xl-auto,
.my-xl-auto {
margin-top: auto !important;
}
.mr-xl-auto,
.mx-xl-auto {
margin-right: auto !important;
}
.mb-xl-auto,
.my-xl-auto {
margin-bottom: auto !important;
}
.ml-xl-auto,
.mx-xl-auto {
margin-left: auto !important;
}
}
.stretched-link::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
pointer-events: auto;
content: "";
background-color: rgba(0, 0, 0, 0);
}
.text-monospace {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}
.text-justify {
text-align: justify !important;
}
.text-wrap {
white-space: normal !important;
}
.text-nowrap {
white-space: nowrap !important;
}
.text-truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.text-left {
text-align: left !important;
}
.text-right {
text-align: right !important;
}
.text-center {
text-align: center !important;
}
@media (min-width: 576px) {
.text-sm-left {
text-align: left !important;
}
.text-sm-right {
text-align: right !important;
}
.text-sm-center {
text-align: center !important;
}
}
@media (min-width: 768px) {
.text-md-left {
text-align: left !important;
}
.text-md-right {
text-align: right !important;
}
.text-md-center {
text-align: center !important;
}
}
@media (min-width: 992px) {
.text-lg-left {
text-align: left !important;
}
.text-lg-right {
text-align: right !important;
}
.text-lg-center {
text-align: center !important;
}
}
@media (min-width: 1200px) {
.text-xl-left {
text-align: left !important;
}
.text-xl-right {
text-align: right !important;
}
.text-xl-center {
text-align: center !important;
}
}
.text-lowercase {
text-transform: lowercase !important;
}
.text-uppercase {
text-transform: uppercase !important;
}
.text-capitalize {
text-transform: capitalize !important;
}
.font-weight-light {
font-weight: 300 !important;
}
.font-weight-lighter {
font-weight: lighter !important;
}
.font-weight-normal {
font-weight: 400 !important;
}
.font-weight-bold {
font-weight: 700 !important;
}
.font-weight-bolder {
font-weight: bolder !important;
}
.font-italic {
font-style: italic !important;
}
.text-white {
color: #fff !important;
}
.text-primary {
color: #1a1a1a !important;
}
a.text-primary:hover, a.text-primary:focus {
color: black !important;
}
.text-secondary {
color: #fff !important;
}
a.text-secondary:hover, a.text-secondary:focus {
color: #d9d9d9 !important;
}
.text-success {
color: #4bbf73 !important;
}
a.text-success:hover, a.text-success:focus {
color: #328c51 !important;
}
.text-info {
color: #1f9bcf !important;
}
a.text-info:hover, a.text-info:focus {
color: #15698c !important;
}
.text-warning {
color: #f0ad4e !important;
}
a.text-warning:hover, a.text-warning:focus {
color: #df8a13 !important;
}
.text-danger {
color: #d9534f !important;
}
a.text-danger:hover, a.text-danger:focus {
color: #b52b27 !important;
}
.text-light {
color: #fff !important;
}
a.text-light:hover, a.text-light:focus {
color: #d9d9d9 !important;
}
.text-dark {
color: #343a40 !important;
}
a.text-dark:hover, a.text-dark:focus {
color: #121416 !important;
}
.text-body {
color: #55595c !important;
}
.text-muted {
color: #919aa1 !important;
}
.text-black-50 {
color: rgba(0, 0, 0, 0.5) !important;
}
.text-white-50 {
color: rgba(255, 255, 255, 0.5) !important;
}
.text-hide {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.text-decoration-none {
text-decoration: none !important;
}
.text-break {
word-break: break-word !important;
overflow-wrap: break-word !important;
}
.text-reset {
color: inherit !important;
}
.visible {
visibility: visible !important;
}
.invisible {
visibility: hidden !important;
}
@media print {
*,
*::before,
*::after {
text-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
}
a:not(.btn) {
text-decoration: underline;
}
abbr[title]::after {
content: " (" attr(title) ")";
}
pre {
white-space: pre-wrap !important;
}
pre,
blockquote {
border: 1px solid #adb5bd;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
@page {
size: a3;
}
body {
min-width: 992px !important;
}
.container {
min-width: 992px !important;
}
.navbar {
display: none;
}
.badge {
border: 1px solid #000;
}
.table {
border-collapse: collapse !important;
}
.table td,
.table th {
background-color: #fff !important;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #eceeef !important;
}
.table-dark {
color: inherit;
}
.table-dark th,
.table-dark td,
.table-dark thead th,
.table-dark tbody + tbody {
border-color: rgba(0, 0, 0, 0.05);
}
.table .thead-dark th {
color: inherit;
border-color: rgba(0, 0, 0, 0.05);
}
}
.navbar {
font-size: 1.1rem;
text-transform: uppercase;
font-weight: 600;
}
.navbar-nav .nav-link {
padding-top: .715rem;
padding-bottom: .715rem;
}
.navbar-brand {
margin-right: 2rem;
}
.bg-primary {
background-color: #1a1a1a !important;
}
.bg-light {
border: 1px solid rgba(0, 0, 0, 0.1);
}
.bg-light.navbar-fixed-top {
border-width: 0 0 1px 0;
}
.bg-light.navbar-bottom-top {
border-width: 1px 0 0 0;
}
.nav-item {
margin-right: 2rem;
}
.btn {
font-size: 0.765625rem;
text-transform: uppercase;
}
.btn-sm, .btn-group-sm > .btn {
font-size: 10px;
}
.btn-warning, .btn-warning:hover, .btn-warning:not([disabled]):not(.disabled):active, .btn-warning:focus {
color: #fff;
}
.btn-outline-secondary {
border-color: #919aa1;
color: #919aa1;
}
.btn-outline-secondary:not([disabled]):not(.disabled):hover, .btn-outline-secondary:not([disabled]):not(.disabled):focus, .btn-outline-secondary:not([disabled]):not(.disabled):active {
background-color: #ced4da;
border-color: #ced4da;
color: #fff;
}
.btn-outline-secondary:not([disabled]):not(.disabled):focus {
-webkit-box-shadow: 0 0 0 0.2rem rgba(206, 212, 218, 0.5);
box-shadow: 0 0 0 0.2rem rgba(206, 212, 218, 0.5);
}
[class*="btn-outline-"] {
border-width: 2px;
}
.border-secondary {
border: 1px solid #ced4da !important;
}
body {
font-weight: 200;
letter-spacing: 1px;
}
h1, h2, h3, h4, h5, h6 {
text-transform: uppercase;
letter-spacing: 3px;
}
.text-secondary {
color: #55595c !important;
}
th {
font-size: 1rem;
text-transform: uppercase;
}
.table th,
.table td {
padding: 1.5rem;
}
.table-sm th,
.table-sm td {
padding: 0.75rem;
}
.custom-switch .custom-control-label::after {
top: calc(0.15625rem + 2px);
left: calc(-2.25rem + 2px);
width: calc(1rem - 4px);
height: calc(1rem - 4px);
}
.dropdown-menu {
font-size: 0.765625rem;
text-transform: none;
}
.badge {
padding-top: 0.28rem;
}
.badge-pill {
border-radius: 10rem;
}
.list-group-item h1, .list-group-item h2, .list-group-item h3, .list-group-item h4, .list-group-item h5, .list-group-item h6,
.list-group-item .h1, .list-group-item .h2, .list-group-item .h3, .list-group-item .h4, .list-group-item .h5, .list-group-item .h6 {
color: inherit;
}
.card-title, .card-header {
color: inherit;
}
| {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
{%- extends "base.html" %}
<body>
{% block content %}
<div class="container">
<div class="col-lg-12">
<div class="page-header">
<h1>Network-Wide Statistics</small></h1>
</div>
</div>
</div>
<div class="container">
<div class="jumbotron">
<div class="row">
<div class="col-lg-4">
<div class="card border-secondary mb-3" style="max-width: 40rem;">
<div class="card-header">Total Ports</div>
<div class="card-body">
<h4 class="card-title"></h4>
<p class="card-text">Total Ports: {{ network.total }}</p>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card border-secondary mb-3" style="max-width: 40rem;">
<div class="card-header">Operational Stats</div>
<div class="card-body">
<h4 class="card-title"></h4>
<p class="card-text">
All UP Ports: {{ network.up }} <br>
All DOWN Ports: {{ network.down }} <br>
All DISABLED Ports: {{ network.disabled }}
</p>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card border-secondary mb-3" style="max-width: 40rem;">
<div class="card-header">Operational Speeds</div>
<div class="card-body">
<h4 class="card-title"></h4>
<p class="card-text">
All Ports at 10M: {{ network.int10m }} <br>
All Ports at 100M: {{ network.int100m }} <br>
All Ports at 1G: {{ network.int1g }} <br>
All Ports at 10G: {{ network.int10g }} <br>
All Ports at 25G: {{ network.int25g }} <br>
All Ports at 40G: {{ network.int40g }} <br>
All Ports at 100G: {{ network.int100g }}
</p>
</p>
</p>
</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="card border-secondary mb-3" style="max-width: 40rem;">
<div class="card-header">Port Media</div>
<div class="card-body">
<h4 class="card-title"></h4>
<p class="card-text">
Total Copper Ports: {{ network.copper }} <br>
Total SFP Ports: {{ network.sfp }} <br>
Total Virtual Ports: {{ network.virtual }}
</p>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card border-secondary mb-3" style="max-width: 40rem;">
<div class="card-header">Hardware Models</div>
<div class="card-body">
<h4 class="card-title">Top 5</h4>
<p class="card-text">
{% for model, count in network.models %}
{{ model }}: {{ count }} <br>
{% endfor %}
</p>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="card border-secondary mb-3" style="max-width: 40rem;">
<div class="card-header">Software Versions</div>
<div class="card-body">
<h4 class="card-title">Top 5</h4>
<p class="card-text">
{% for swver, count in network.swvers %}
{{ swver }}: {{ count }} <br>
{% endfor %}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
</body> | {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
{%- extends "base.html" %}
<body>
{% block content %}
<div class="row justify-content-between align-items-right">
<div class="col-lg-auto"></div>
<div class="col-lg-auto"></div>
<div class="col-lg-auto">
<div class="alert alert-dismissible alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
Last updated: <strong>{{ lastupdate }}</strong>
</div>
</div>
</div>
<div class="container">
<div class="col-lg-12">
<div class="page-header">
<h1>Current SwitchPort Availability</h1>
</div>
</div>
</div>
<div class="container">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Switch Name</th>
<th scope="col">Serial Number</th>
<th scope="col">Software Version</th>
<th scope="col">Management IP</th>
<th scope="col">Last Check</th>
<th scope="col">Total Ports</th>
<th scope="col">Ports In Use</th>
<th scope="col">Ports Down</th>
<th scope="col">Ports Disabled</th>
<th scope="col">Capacity</th>
</tr>
</thead>
<tbody>
{% for switch in switches %}
<tr>
{% if switch.serial == "Not Polled Yet" %}
<td>⮞ <a href="#">{{ switch.name }}</a></td>
{% else %}
<td>⮞ <a href={{ switch.serial }}>{{ switch.name }}</a></td>
{% endif %}
<td>{{ switch.serial }}</td>
<td>{{ switch.swver }}</td>
<td>{{ switch.ip }}</td>
<td>
{% if switch.check == True %}
<span class="badge badge-pill badge-success">Success</span>
{% else %}
<span class="badge badge-pill badge-danger">Failed</span>
{% endif %}
</td>
<td>{{ switch.total }}</td>
<td>{{ switch.up }}</td>
<td>{{ switch.down }}</td>
<td>{{ switch.disabled }}</td>
<td>
<div class="progress" data-placement="left" data-toggle="tooltip" title="{{ switch.capacity }}%">
{% if switch.capacity < 50 %}
<div class="progress-bar bg-success" role="progressbar" style="width: {{ switch.capacity }}%" aria-valuenow={{ switch.up }} aria-valuemin="0" aria-valuemax={{ switch.total }}>
</div>
{% endif %}
{% if switch.capacity >= 50 and switch.capacity < 75 %}
<div class="progress-bar bg-warning" role="progressbar" style="width: {{ switch.capacity }}%" aria-valuenow={{ switch.up }} aria-valuemin="0" aria-valuemax={{ switch.total }}>
</div>
{% endif %}
{% if switch.capacity >= 75 %}
<div class="progress-bar bg-danger" role="progressbar" style="width: {{ switch.capacity }}%" aria-valuenow={{ switch.up }} aria-valuemin="0" aria-valuemax={{ switch.total }}></div>
{% endif %}
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
</body> | {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<img class="navbar-brand" href="/" src="static/cli.png"></img>
<div class="collapse navbar-collapse" id="navbarColor02">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="/network-wide">Network-Wide Stats</a>
</li>
</ul>
</div>
</nav> | {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
{%- extends "base.html" %}
<body>
{% block content %}
<div class="container">
<div class="col-lg-12">
<div class="page-header">
<h1>Switch Detail<small class="text-muted"> for {{ switch.name }} </small></h1>
</div>
</div>
</div>
<div class="container">
<div class="jumbotron">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#quickstats">Quick Stats</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#portdetail">Port Detail</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#rawoutput">Raw Output</a>
</li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane active" id="quickstats">
<br>
<p>Model: {{ switch.model}}</p>
<p>Serial Number: {{ switch.serial }}</p>
<p>Software Version: {{switch.swver }}</p>
<p>Management IP: {{switch.ip }}</p>
{% if switch.check == 1 %}
<p>Last Check Status: Success</p>
{% else %}
<p>Last Check Status: Failed</p>
{% endif %}
<br>
<p>Current Port Utilization: {{ switch.capacity }}%</p>
<br>
<br>
</div>
<div class="tab-pane" id="portdetail">
<div class="row">
<div class="col-lg-6">
<br>
<p>Total ports on switch: {{ switch.total }}</p>
<p>Ports in UP state: {{ switch.up }}</p>
<p>Ports in DOWN state: {{ switch.down }}</p>
<p>Ports in DISABLED state: {{ switch.disabled }}</p>
</div>
<div class="col-lg-6">
<br>
{% if switch.int10m %}
<p>Total Ports operating at 10M: {{ switch.int10m }}</p>
{% endif %}
{% if switch.int100m %}
<p>Total Ports operating at 100M: {{ switch.int100m }}</p>
{% endif %}
{% if switch.int1g %}
<p>Total Ports operating at 1G: {{ switch.int1g }}</p>
{% endif %}
{% if switch.int10g %}
<p>Total Ports operating at 10G: {{ switch.int10g }}</p>
{% endif %}
{% if switch.int25g %}
<p>Total Ports operating at 25G: {{ switch.int25g }}</p>
{% endif %}
{% if switch.int40g %}
<p>Total Ports operating at 40G: {{ switch.int40g }}</p>
{% endif %}
{% if switch.int100g %}
<p>Total Ports operating at 100G: {{ switch.int100g }}</p>
{% endif %}
<p></p>
<p>Copper Ports: {{ switch.copper }}</p>
<p>SFP-based Ports: {{ switch.sfp }}</p>
<p>Virtual Ports: {{ switch.virtual }}</p>
</div>
</div>
<div class="row">
<div class="form-inline">
<div class="page-header">
<h3>Detailed Port Information:</h3>
</div>
<table class="table table-hover">
<thead>
<tr>
<th scope="col">Interface Name</th>
<th scope="col">Description</th>
<th scope="col">MAC Address</th>
<th scope="col">State</th>
<th scope="col">Speed</th>
<th scope="col">Duplex</th>
</tr>
</thead>
<tbody>
{% for interface in interfaces %}
<tr>
<td>{{ interface.name }}</td>
<td>{{ interface.description }}</td>
<td>{{ interface.physical_address }}</td>
<td>
{% if interface.oper_status == 'up' %}
<p class="text-success">Up</span>
{% else %}
<p class="text-danger">Down</span>
{% endif %}
<td>{{ interface.oper_speed }}</td>
<td>{{ interface.oper_duplex }}</td>
</td>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<div class="tab-pane" id="rawoutput">
<code>
<br>
{% for line in raw_data %}
{{ line }}<br>
{% endfor %}
</code>
</div>
</div>
</div>
</div>
{% endblock %}
</body> | {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
{%- extends "bootstrap/base.html" %}
<head>
{% block styles %}
{{super()}}
<link rel="stylesheet"
href="{{url_for('static', filename='bootstrap.css')}}">
<link rel="icon"
type="image/png"
href="static/cli.png">
{% endblock %}
{% block title %}
{% if title %}
{{ title }}
{% else %}
Switch Port Utilization
{% endif %}
{% endblock %}
{% include 'nav.html' %}
</head> | {
"repo_name": "0x2142/switchport-web-dashboard",
"stars": "36",
"repo_language": "Python",
"file_name": "base.html",
"mime_type": "text/html"
} |
# Community Participation Guidelines
This repository is governed by Mozilla's code of conduct and etiquette guidelines.
For more details, please read the
[Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/).
## How to Report
For more information on how to report violations of the Community Participation Guidelines, please read our '[How to Report](https://www.mozilla.org/about/governance/policies/participation/reporting/)' page.
<!--
## Project Specific Etiquette
In some cases, there will be additional project etiquette i.e.: (https://bugzilla.mozilla.org/page.cgi?id=etiquette.html).
Please update for your project.
-->
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
# webassembly-examples
Code examples that accompany the MDN WebAssembly documentation — see https://developer.mozilla.org/en-US/docs/WebAssembly.
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
name: set-default-labels
on: [workflow_dispatch]
jobs:
set-default-labels:
uses: mdn/workflows/.github/workflows/set-default-labels.yml@main
with:
target-repo: "mdn/webassembly-examples"
should-delete-labels: true
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple template</title>
</head>
<body>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WASM Sobel Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
html {
font-family: sans-serif;
}
h1 {
font-size: 1.8rem;
text-align: center;
}
video {
position: absolute;
visibility: hidden;
}
body > div {
width: 600px;
margin: 0 auto;
}
div > div {
position: relative;
}
canvas {
border: 1px solid black;
}
button {
color: #fff;
background-color: #6496c8;
border: none;
border-radius: 5px;
display: inline-block;
min-width: 50px;
width: 80px;
padding: 5px 10px;
position: absolute;
top: 5px;
right: 5px;
cursor: pointer;
}
</style>
<script src="smoothie.js"></script>
<script src="sobel.js"></script>
</head>
<body>
<div>
<h1>Web Assembly JavaScript Sobel Example</h1>
<video id="vid"></video>
<div>
<canvas id="mycanvas" width="600"></canvas>
<button id="grey">Toggle JavaScript</button>
</div>
<p>Frame composition time in ms:
<output id="updatetime" name="updatetime"></output></p>
<canvas id="chart" width="600" height="100"></canvas>
<p>Use Performance Tab in Developer Tools to see Avg FPS</p>
</div>
<script type='text/javascript'>
var Module = {};
fetch('change.wasm')
.then(response => response.arrayBuffer())
.then(buffer => {
Module.wasmBinary = buffer;
var script = document.createElement('script');
script.src = 'change.js';
script.onload = function() {
console.log('Emscripten boilerplate loaded.');
}
document.body.appendChild(script);
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
// MIT License:
//
// Copyright (c) 2010-2013, Joe Walnes
// 2013-2014, Drew Noakes
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
/**
* Smoothie Charts - http://smoothiecharts.org/
* (c) 2010-2013, Joe Walnes
* 2013-2014, Drew Noakes
*
* v1.0: Main charting library, by Joe Walnes
* v1.1: Auto scaling of axis, by Neil Dunn
* v1.2: fps (frames per second) option, by Mathias Petterson
* v1.3: Fix for divide by zero, by Paul Nikitochkin
* v1.4: Set minimum, top-scale padding, remove timeseries, add optional timer to reset bounds, by Kelley Reynolds
* v1.5: Set default frames per second to 50... smoother.
* .start(), .stop() methods for conserving CPU, by Dmitry Vyal
* options.interpolation = 'bezier' or 'line', by Dmitry Vyal
* options.maxValue to fix scale, by Dmitry Vyal
* v1.6: minValue/maxValue will always get converted to floats, by Przemek Matylla
* v1.7: options.grid.fillStyle may be a transparent color, by Dmitry A. Shashkin
* Smooth rescaling, by Kostas Michalopoulos
* v1.8: Set max length to customize number of live points in the dataset with options.maxDataSetLength, by Krishna Narni
* v1.9: Display timestamps along the bottom, by Nick and Stev-io
* (https://groups.google.com/forum/?fromgroups#!topic/smoothie-charts/-Ywse8FCpKI%5B1-25%5D)
* Refactored by Krishna Narni, to support timestamp formatting function
* v1.10: Switch to requestAnimationFrame, removed the now obsoleted options.fps, by Gergely Imreh
* v1.11: options.grid.sharpLines option added, by @drewnoakes
* Addressed warning seen in Firefox when seriesOption.fillStyle undefined, by @drewnoakes
* v1.12: Support for horizontalLines added, by @drewnoakes
* Support for yRangeFunction callback added, by @drewnoakes
* v1.13: Fixed typo (#32), by @alnikitich
* v1.14: Timer cleared when last TimeSeries removed (#23), by @davidgaleano
* Fixed diagonal line on chart at start/end of data stream, by @drewnoakes
* v1.15: Support for npm package (#18), by @dominictarr
* Fixed broken removeTimeSeries function (#24) by @davidgaleano
* Minor performance and tidying, by @drewnoakes
* v1.16: Bug fix introduced in v1.14 relating to timer creation/clearance (#23), by @drewnoakes
* TimeSeries.append now deals with out-of-order timestamps, and can merge duplicates, by @zacwitte (#12)
* Documentation and some local variable renaming for clarity, by @drewnoakes
* v1.17: Allow control over font size (#10), by @drewnoakes
* Timestamp text won't overlap, by @drewnoakes
* v1.18: Allow control of max/min label precision, by @drewnoakes
* Added 'borderVisible' chart option, by @drewnoakes
* Allow drawing series with fill but no stroke (line), by @drewnoakes
* v1.19: Avoid unnecessary repaints, and fixed flicker in old browsers having multiple charts in document (#40), by @asbai
* v1.20: Add SmoothieChart.getTimeSeriesOptions and SmoothieChart.bringToFront functions, by @drewnoakes
* v1.21: Add 'step' interpolation mode, by @drewnoakes
* v1.22: Add support for different pixel ratios. Also add optional y limit formatters, by @copacetic
* v1.23: Fix bug introduced in v1.22 (#44), by @drewnoakes
* v1.24: Fix bug introduced in v1.23, re-adding parseFloat to y-axis formatter defaults, by @siggy_sf
* v1.25: Fix bug seen when adding a data point to TimeSeries which is older than the current data, by @Nking92
* Draw time labels on top of series, by @comolosabia
* Add TimeSeries.clear function, by @drewnoakes
* v1.26: Add support for resizing on high device pixel ratio screens, by @copacetic
* v1.27: Fix bug introduced in v1.26 for non whole number devicePixelRatio values, by @zmbush
* v1.28: Add 'minValueScale' option, by @megawac
* Fix 'labelPos' for different size of 'minValueString' 'maxValueString', by @henryn
*/
;(function(exports) {
var Util = {
extend: function() {
arguments[0] = arguments[0] || {};
for (var i = 1; i < arguments.length; i++)
{
for (var key in arguments[i])
{
if (arguments[i].hasOwnProperty(key))
{
if (typeof(arguments[i][key]) === 'object') {
if (arguments[i][key] instanceof Array) {
arguments[0][key] = arguments[i][key];
} else {
arguments[0][key] = Util.extend(arguments[0][key], arguments[i][key]);
}
} else {
arguments[0][key] = arguments[i][key];
}
}
}
}
return arguments[0];
}
};
/**
* Initialises a new <code>TimeSeries</code> with optional data options.
*
* Options are of the form (defaults shown):
*
* <pre>
* {
* resetBounds: true, // enables/disables automatic scaling of the y-axis
* resetBoundsInterval: 3000 // the period between scaling calculations, in millis
* }
* </pre>
*
* Presentation options for TimeSeries are specified as an argument to <code>SmoothieChart.addTimeSeries</code>.
*
* @constructor
*/
function TimeSeries(options) {
this.options = Util.extend({}, TimeSeries.defaultOptions, options);
this.clear();
}
TimeSeries.defaultOptions = {
resetBoundsInterval: 3000,
resetBounds: true
};
/**
* Clears all data and state from this TimeSeries object.
*/
TimeSeries.prototype.clear = function() {
this.data = [];
this.maxValue = Number.NaN; // The maximum value ever seen in this TimeSeries.
this.minValue = Number.NaN; // The minimum value ever seen in this TimeSeries.
};
/**
* Recalculate the min/max values for this <code>TimeSeries</code> object.
*
* This causes the graph to scale itself in the y-axis.
*/
TimeSeries.prototype.resetBounds = function() {
if (this.data.length) {
// Walk through all data points, finding the min/max value
this.maxValue = this.data[0][1];
this.minValue = this.data[0][1];
for (var i = 1; i < this.data.length; i++) {
var value = this.data[i][1];
if (value > this.maxValue) {
this.maxValue = value;
}
if (value < this.minValue) {
this.minValue = value;
}
}
} else {
// No data exists, so set min/max to NaN
this.maxValue = Number.NaN;
this.minValue = Number.NaN;
}
};
/**
* Adds a new data point to the <code>TimeSeries</code>, preserving chronological order.
*
* @param timestamp the position, in time, of this data point
* @param value the value of this data point
* @param sumRepeatedTimeStampValues if <code>timestamp</code> has an exact match in the series, this flag controls
* whether it is replaced, or the values summed (defaults to false.)
*/
TimeSeries.prototype.append = function(timestamp, value, sumRepeatedTimeStampValues) {
// Rewind until we hit an older timestamp
var i = this.data.length - 1;
while (i >= 0 && this.data[i][0] > timestamp) {
i--;
}
if (i === -1) {
// This new item is the oldest data
this.data.splice(0, 0, [timestamp, value]);
} else if (this.data.length > 0 && this.data[i][0] === timestamp) {
// Update existing values in the array
if (sumRepeatedTimeStampValues) {
// Sum this value into the existing 'bucket'
this.data[i][1] += value;
value = this.data[i][1];
} else {
// Replace the previous value
this.data[i][1] = value;
}
} else if (i < this.data.length - 1) {
// Splice into the correct position to keep timestamps in order
this.data.splice(i + 1, 0, [timestamp, value]);
} else {
// Add to the end of the array
this.data.push([timestamp, value]);
}
this.maxValue = isNaN(this.maxValue) ? value : Math.max(this.maxValue, value);
this.minValue = isNaN(this.minValue) ? value : Math.min(this.minValue, value);
};
TimeSeries.prototype.dropOldData = function(oldestValidTime, maxDataSetLength) {
// We must always keep one expired data point as we need this to draw the
// line that comes into the chart from the left, but any points prior to that can be removed.
var removeCount = 0;
while (this.data.length - removeCount >= maxDataSetLength && this.data[removeCount + 1][0] < oldestValidTime) {
removeCount++;
}
if (removeCount !== 0) {
this.data.splice(0, removeCount);
}
};
/**
* Initialises a new <code>SmoothieChart</code>.
*
* Options are optional, and should be of the form below. Just specify the values you
* need and the rest will be given sensible defaults as shown:
*
* <pre>
* {
* minValue: undefined, // specify to clamp the lower y-axis to a given value
* maxValue: undefined, // specify to clamp the upper y-axis to a given value
* maxValueScale: 1, // allows proportional padding to be added above the chart. for 10% padding, specify 1.1.
* minValueScale: 1, // allows proportional padding to be added below the chart. for 10% padding, specify 1.1.
* yRangeFunction: undefined, // function({min: , max: }) { return {min: , max: }; }
* scaleSmoothing: 0.125, // controls the rate at which y-value zoom animation occurs
* millisPerPixel: 20, // sets the speed at which the chart pans by
* enableDpiScaling: true, // support rendering at different DPI depending on the device
* yMinFormatter: function(min, precision) { // callback function that formats the min y value label
* return parseFloat(min).toFixed(precision);
* },
* yMaxFormatter: function(max, precision) { // callback function that formats the max y value label
* return parseFloat(max).toFixed(precision);
* },
* maxDataSetLength: 2,
* interpolation: 'bezier' // one of 'bezier', 'linear', or 'step'
* timestampFormatter: null, // optional function to format time stamps for bottom of chart
* // you may use SmoothieChart.timeFormatter, or your own: function(date) { return ''; }
* scrollBackwards: false, // reverse the scroll direction of the chart
* horizontalLines: [], // [ { value: 0, color: '#ffffff', lineWidth: 1 } ]
* grid:
* {
* fillStyle: '#000000', // the background colour of the chart
* lineWidth: 1, // the pixel width of grid lines
* strokeStyle: '#777777', // colour of grid lines
* millisPerLine: 1000, // distance between vertical grid lines
* sharpLines: false, // controls whether grid lines are 1px sharp, or softened
* verticalSections: 2, // number of vertical sections marked out by horizontal grid lines
* borderVisible: true // whether the grid lines trace the border of the chart or not
* },
* labels
* {
* disabled: false, // enables/disables labels showing the min/max values
* fillStyle: '#ffffff', // colour for text of labels,
* fontSize: 15,
* fontFamily: 'sans-serif',
* precision: 2
* }
* }
* </pre>
*
* @constructor
*/
function SmoothieChart(options) {
this.options = Util.extend({}, SmoothieChart.defaultChartOptions, options);
this.seriesSet = [];
this.currentValueRange = 1;
this.currentVisMinValue = 0;
this.lastRenderTimeMillis = 0;
}
SmoothieChart.defaultChartOptions = {
millisPerPixel: 20,
enableDpiScaling: true,
yMinFormatter: function(min, precision) {
return parseFloat(min).toFixed(precision);
},
yMaxFormatter: function(max, precision) {
return parseFloat(max).toFixed(precision);
},
maxValueScale: 1,
minValueScale: 1,
interpolation: 'bezier',
scaleSmoothing: 0.125,
maxDataSetLength: 2,
scrollBackwards: false,
grid: {
fillStyle: '#000000',
strokeStyle: '#777777',
lineWidth: 1,
sharpLines: false,
millisPerLine: 1000,
verticalSections: 2,
borderVisible: true
},
labels: {
fillStyle: '#ffffff',
disabled: false,
fontSize: 10,
fontFamily: 'monospace',
precision: 2
},
horizontalLines: []
};
// Based on http://inspirit.github.com/jsfeat/js/compatibility.js
SmoothieChart.AnimateCompatibility = (function() {
var requestAnimationFrame = function(callback, element) {
var requestAnimationFrame =
window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function(callback) {
return window.setTimeout(function() {
callback(new Date().getTime());
}, 16);
};
return requestAnimationFrame.call(window, callback, element);
},
cancelAnimationFrame = function(id) {
var cancelAnimationFrame =
window.cancelAnimationFrame ||
function(id) {
clearTimeout(id);
};
return cancelAnimationFrame.call(window, id);
};
return {
requestAnimationFrame: requestAnimationFrame,
cancelAnimationFrame: cancelAnimationFrame
};
})();
SmoothieChart.defaultSeriesPresentationOptions = {
lineWidth: 1,
strokeStyle: '#ffffff'
};
/**
* Adds a <code>TimeSeries</code> to this chart, with optional presentation options.
*
* Presentation options should be of the form (defaults shown):
*
* <pre>
* {
* lineWidth: 1,
* strokeStyle: '#ffffff',
* fillStyle: undefined
* }
* </pre>
*/
SmoothieChart.prototype.addTimeSeries = function(timeSeries, options) {
this.seriesSet.push({timeSeries: timeSeries, options: Util.extend({}, SmoothieChart.defaultSeriesPresentationOptions, options)});
if (timeSeries.options.resetBounds && timeSeries.options.resetBoundsInterval > 0) {
timeSeries.resetBoundsTimerId = setInterval(
function() {
timeSeries.resetBounds();
},
timeSeries.options.resetBoundsInterval
);
}
};
/**
* Removes the specified <code>TimeSeries</code> from the chart.
*/
SmoothieChart.prototype.removeTimeSeries = function(timeSeries) {
// Find the correct timeseries to remove, and remove it
var numSeries = this.seriesSet.length;
for (var i = 0; i < numSeries; i++) {
if (this.seriesSet[i].timeSeries === timeSeries) {
this.seriesSet.splice(i, 1);
break;
}
}
// If a timer was operating for that timeseries, remove it
if (timeSeries.resetBoundsTimerId) {
// Stop resetting the bounds, if we were
clearInterval(timeSeries.resetBoundsTimerId);
}
};
/**
* Gets render options for the specified <code>TimeSeries</code>.
*
* As you may use a single <code>TimeSeries</code> in multiple charts with different formatting in each usage,
* these settings are stored in the chart.
*/
SmoothieChart.prototype.getTimeSeriesOptions = function(timeSeries) {
// Find the correct timeseries to remove, and remove it
var numSeries = this.seriesSet.length;
for (var i = 0; i < numSeries; i++) {
if (this.seriesSet[i].timeSeries === timeSeries) {
return this.seriesSet[i].options;
}
}
};
/**
* Brings the specified <code>TimeSeries</code> to the top of the chart. It will be rendered last.
*/
SmoothieChart.prototype.bringToFront = function(timeSeries) {
// Find the correct timeseries to remove, and remove it
var numSeries = this.seriesSet.length;
for (var i = 0; i < numSeries; i++) {
if (this.seriesSet[i].timeSeries === timeSeries) {
var set = this.seriesSet.splice(i, 1);
this.seriesSet.push(set[0]);
break;
}
}
};
/**
* Instructs the <code>SmoothieChart</code> to start rendering to the provided canvas, with specified delay.
*
* @param canvas the target canvas element
* @param delayMillis an amount of time to wait before a data point is shown. This can prevent the end of the series
* from appearing on screen, with new values flashing into view, at the expense of some latency.
*/
SmoothieChart.prototype.streamTo = function(canvas, delayMillis) {
this.canvas = canvas;
this.delay = delayMillis;
this.start();
};
/**
* Make sure the canvas has the optimal resolution for the device's pixel ratio.
*/
SmoothieChart.prototype.resize = function() {
// TODO this function doesn't handle the value of enableDpiScaling changing during execution
if (!this.options.enableDpiScaling || !window || window.devicePixelRatio === 1)
return;
var dpr = window.devicePixelRatio;
var width = parseInt(this.canvas.getAttribute('width'));
var height = parseInt(this.canvas.getAttribute('height'));
if (!this.originalWidth || (Math.floor(this.originalWidth * dpr) !== width)) {
this.originalWidth = width;
this.canvas.setAttribute('width', (Math.floor(width * dpr)).toString());
this.canvas.style.width = width + 'px';
this.canvas.getContext('2d').scale(dpr, dpr);
}
if (!this.originalHeight || (Math.floor(this.originalHeight * dpr) !== height)) {
this.originalHeight = height;
this.canvas.setAttribute('height', (Math.floor(height * dpr)).toString());
this.canvas.style.height = height + 'px';
this.canvas.getContext('2d').scale(dpr, dpr);
}
};
/**
* Starts the animation of this chart.
*/
SmoothieChart.prototype.start = function() {
if (this.frame) {
// We're already running, so just return
return;
}
// Renders a frame, and queues the next frame for later rendering
var animate = function() {
this.frame = SmoothieChart.AnimateCompatibility.requestAnimationFrame(function() {
this.render();
animate();
}.bind(this));
}.bind(this);
animate();
};
/**
* Stops the animation of this chart.
*/
SmoothieChart.prototype.stop = function() {
if (this.frame) {
SmoothieChart.AnimateCompatibility.cancelAnimationFrame(this.frame);
delete this.frame;
}
};
SmoothieChart.prototype.updateValueRange = function() {
// Calculate the current scale of the chart, from all time series.
var chartOptions = this.options,
chartMaxValue = Number.NaN,
chartMinValue = Number.NaN;
for (var d = 0; d < this.seriesSet.length; d++) {
// TODO(ndunn): We could calculate / track these values as they stream in.
var timeSeries = this.seriesSet[d].timeSeries;
if (!isNaN(timeSeries.maxValue)) {
chartMaxValue = !isNaN(chartMaxValue) ? Math.max(chartMaxValue, timeSeries.maxValue) : timeSeries.maxValue;
}
if (!isNaN(timeSeries.minValue)) {
chartMinValue = !isNaN(chartMinValue) ? Math.min(chartMinValue, timeSeries.minValue) : timeSeries.minValue;
}
}
// Scale the chartMaxValue to add padding at the top if required
if (chartOptions.maxValue != null) {
chartMaxValue = chartOptions.maxValue;
} else {
chartMaxValue *= chartOptions.maxValueScale;
}
// Set the minimum if we've specified one
if (chartOptions.minValue != null) {
chartMinValue = chartOptions.minValue;
} else {
chartMinValue -= Math.abs(chartMinValue * chartOptions.minValueScale - chartMinValue);
}
// If a custom range function is set, call it
if (this.options.yRangeFunction) {
var range = this.options.yRangeFunction({min: chartMinValue, max: chartMaxValue});
chartMinValue = range.min;
chartMaxValue = range.max;
}
if (!isNaN(chartMaxValue) && !isNaN(chartMinValue)) {
var targetValueRange = chartMaxValue - chartMinValue;
var valueRangeDiff = (targetValueRange - this.currentValueRange);
var minValueDiff = (chartMinValue - this.currentVisMinValue);
this.isAnimatingScale = Math.abs(valueRangeDiff) > 0.1 || Math.abs(minValueDiff) > 0.1;
this.currentValueRange += chartOptions.scaleSmoothing * valueRangeDiff;
this.currentVisMinValue += chartOptions.scaleSmoothing * minValueDiff;
}
this.valueRange = { min: chartMinValue, max: chartMaxValue };
};
SmoothieChart.prototype.render = function(canvas, time) {
var nowMillis = new Date().getTime();
if (!this.isAnimatingScale) {
// We're not animating. We can use the last render time and the scroll speed to work out whether
// we actually need to paint anything yet. If not, we can return immediately.
// Render at least every 1/6th of a second. The canvas may be resized, which there is
// no reliable way to detect.
var maxIdleMillis = Math.min(1000/6, this.options.millisPerPixel);
if (nowMillis - this.lastRenderTimeMillis < maxIdleMillis) {
return;
}
}
this.resize();
this.lastRenderTimeMillis = nowMillis;
canvas = canvas || this.canvas;
time = time || nowMillis - (this.delay || 0);
// Round time down to pixel granularity, so motion appears smoother.
time -= time % this.options.millisPerPixel;
var context = canvas.getContext('2d'),
chartOptions = this.options,
dimensions = { top: 0, left: 0, width: canvas.clientWidth, height: canvas.clientHeight },
// Calculate the threshold time for the oldest data points.
oldestValidTime = time - (dimensions.width * chartOptions.millisPerPixel),
valueToYPixel = function(value) {
var offset = value - this.currentVisMinValue;
return this.currentValueRange === 0
? dimensions.height
: dimensions.height - (Math.round((offset / this.currentValueRange) * dimensions.height));
}.bind(this),
timeToXPixel = function(t) {
if(chartOptions.scrollBackwards) {
return Math.round((time - t) / chartOptions.millisPerPixel);
}
return Math.round(dimensions.width - ((time - t) / chartOptions.millisPerPixel));
};
this.updateValueRange();
context.font = chartOptions.labels.fontSize + 'px ' + chartOptions.labels.fontFamily;
// Save the state of the canvas context, any transformations applied in this method
// will get removed from the stack at the end of this method when .restore() is called.
context.save();
// Move the origin.
context.translate(dimensions.left, dimensions.top);
// Create a clipped rectangle - anything we draw will be constrained to this rectangle.
// This prevents the occasional pixels from curves near the edges overrunning and creating
// screen cheese (that phrase should need no explanation).
context.beginPath();
context.rect(0, 0, dimensions.width, dimensions.height);
context.clip();
// Clear the working area.
context.save();
context.fillStyle = chartOptions.grid.fillStyle;
context.clearRect(0, 0, dimensions.width, dimensions.height);
context.fillRect(0, 0, dimensions.width, dimensions.height);
context.restore();
// Grid lines...
context.save();
context.lineWidth = chartOptions.grid.lineWidth;
context.strokeStyle = chartOptions.grid.strokeStyle;
// Vertical (time) dividers.
if (chartOptions.grid.millisPerLine > 0) {
context.beginPath();
for (var t = time - (time % chartOptions.grid.millisPerLine);
t >= oldestValidTime;
t -= chartOptions.grid.millisPerLine) {
var gx = timeToXPixel(t);
if (chartOptions.grid.sharpLines) {
gx -= 0.5;
}
context.moveTo(gx, 0);
context.lineTo(gx, dimensions.height);
}
context.stroke();
context.closePath();
}
// Horizontal (value) dividers.
for (var v = 1; v < chartOptions.grid.verticalSections; v++) {
var gy = Math.round(v * dimensions.height / chartOptions.grid.verticalSections);
if (chartOptions.grid.sharpLines) {
gy -= 0.5;
}
context.beginPath();
context.moveTo(0, gy);
context.lineTo(dimensions.width, gy);
context.stroke();
context.closePath();
}
// Bounding rectangle.
if (chartOptions.grid.borderVisible) {
context.beginPath();
context.strokeRect(0, 0, dimensions.width, dimensions.height);
context.closePath();
}
context.restore();
// Draw any horizontal lines...
if (chartOptions.horizontalLines && chartOptions.horizontalLines.length) {
for (var hl = 0; hl < chartOptions.horizontalLines.length; hl++) {
var line = chartOptions.horizontalLines[hl],
hly = Math.round(valueToYPixel(line.value)) - 0.5;
context.strokeStyle = line.color || '#ffffff';
context.lineWidth = line.lineWidth || 1;
context.beginPath();
context.moveTo(0, hly);
context.lineTo(dimensions.width, hly);
context.stroke();
context.closePath();
}
}
// For each data set...
for (var d = 0; d < this.seriesSet.length; d++) {
context.save();
var timeSeries = this.seriesSet[d].timeSeries,
dataSet = timeSeries.data,
seriesOptions = this.seriesSet[d].options;
// Delete old data that's moved off the left of the chart.
timeSeries.dropOldData(oldestValidTime, chartOptions.maxDataSetLength);
// Set style for this dataSet.
context.lineWidth = seriesOptions.lineWidth;
context.strokeStyle = seriesOptions.strokeStyle;
// Draw the line...
context.beginPath();
// Retain lastX, lastY for calculating the control points of bezier curves.
var firstX = 0, lastX = 0, lastY = 0;
for (var i = 0; i < dataSet.length && dataSet.length !== 1; i++) {
var x = timeToXPixel(dataSet[i][0]),
y = valueToYPixel(dataSet[i][1]);
if (i === 0) {
firstX = x;
context.moveTo(x, y);
} else {
switch (chartOptions.interpolation) {
case "linear":
case "line": {
context.lineTo(x,y);
break;
}
case "bezier":
default: {
// Great explanation of Bezier curves: http://en.wikipedia.org/wiki/Bezier_curve#Quadratic_curves
//
// Assuming A was the last point in the line plotted and B is the new point,
// we draw a curve with control points P and Q as below.
//
// A---P
// |
// |
// |
// Q---B
//
// Importantly, A and P are at the same y coordinate, as are B and Q. This is
// so adjacent curves appear to flow as one.
//
context.bezierCurveTo( // startPoint (A) is implicit from last iteration of loop
Math.round((lastX + x) / 2), lastY, // controlPoint1 (P)
Math.round((lastX + x)) / 2, y, // controlPoint2 (Q)
x, y); // endPoint (B)
break;
}
case "step": {
context.lineTo(x,lastY);
context.lineTo(x,y);
break;
}
}
}
lastX = x; lastY = y;
}
if (dataSet.length > 1) {
if (seriesOptions.fillStyle) {
// Close up the fill region.
context.lineTo(dimensions.width + seriesOptions.lineWidth + 1, lastY);
context.lineTo(dimensions.width + seriesOptions.lineWidth + 1, dimensions.height + seriesOptions.lineWidth + 1);
context.lineTo(firstX, dimensions.height + seriesOptions.lineWidth);
context.fillStyle = seriesOptions.fillStyle;
context.fill();
}
if (seriesOptions.strokeStyle && seriesOptions.strokeStyle !== 'none') {
context.stroke();
}
context.closePath();
}
context.restore();
}
// Draw the axis values on the chart.
if (!chartOptions.labels.disabled && !isNaN(this.valueRange.min) && !isNaN(this.valueRange.max)) {
var maxValueString = chartOptions.yMaxFormatter(this.valueRange.max, chartOptions.labels.precision),
minValueString = chartOptions.yMinFormatter(this.valueRange.min, chartOptions.labels.precision),
maxLabelPos = chartOptions.scrollBackwards ? 0 : dimensions.width - context.measureText(maxValueString).width - 2,
minLabelPos = chartOptions.scrollBackwards ? 0 : dimensions.width - context.measureText(minValueString).width - 2;
context.fillStyle = chartOptions.labels.fillStyle;
context.fillText(maxValueString, maxLabelPos, chartOptions.labels.fontSize);
context.fillText(minValueString, minLabelPos, dimensions.height - 2);
}
// Display timestamps along x-axis at the bottom of the chart.
if (chartOptions.timestampFormatter && chartOptions.grid.millisPerLine > 0) {
var textUntilX = chartOptions.scrollBackwards
? context.measureText(minValueString).width
: dimensions.width - context.measureText(minValueString).width + 4;
for (var t = time - (time % chartOptions.grid.millisPerLine);
t >= oldestValidTime;
t -= chartOptions.grid.millisPerLine) {
var gx = timeToXPixel(t);
// Only draw the timestamp if it won't overlap with the previously drawn one.
if ((!chartOptions.scrollBackwards && gx < textUntilX) || (chartOptions.scrollBackwards && gx > textUntilX)) {
// Formats the timestamp based on user specified formatting function
// SmoothieChart.timeFormatter function above is one such formatting option
var tx = new Date(t),
ts = chartOptions.timestampFormatter(tx),
tsWidth = context.measureText(ts).width;
textUntilX = chartOptions.scrollBackwards
? gx + tsWidth + 2
: gx - tsWidth - 2;
context.fillStyle = chartOptions.labels.fillStyle;
if(chartOptions.scrollBackwards) {
context.fillText(ts, gx, dimensions.height - 2);
} else {
context.fillText(ts, gx - tsWidth, dimensions.height - 2);
}
}
}
}
context.restore(); // See .save() above.
};
// Sample timestamp formatting function
SmoothieChart.timeFormatter = function(date) {
function pad2(number) { return (number < 10 ? '0' : '') + number }
return pad2(date.getHours()) + ':' + pad2(date.getMinutes()) + ':' + pad2(date.getSeconds());
};
exports.TimeSeries = TimeSeries;
exports.SmoothieChart = SmoothieChart;
})(typeof exports === 'undefined' ? this : exports);
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
var vid;
var can;
var wid;
var hei;
var out;
var grey;
var lastjs = 0;
var lastwasm = 0;
var jst;
var wasmt;
(function() {
var dst = null;
window.addEventListener('DOMContentLoaded', function() {
var isStreaming = false;
vid = document.getElementById('vid');
can = document.getElementById('mycanvas');
grey = document.getElementById('grey');
out = document.getElementById('updatetime');
con = can.getContext('2d');
wid = 600;
hei = 480;
jsrender = false;
var constraints = {
audio: false,
video: {
width: wid,
height: hei
}
};
navigator.mediaDevices.getUserMedia(constraints)
.then(function(mediaStream) {
var vid = document.querySelector('video');
vid.srcObject = mediaStream;
vid.onloadedmetadata = function(e) {
vid.play();
};
})
.catch(function(err) {
console.log(err.message);
});
// Wait until the video stream can play
vid.addEventListener('canplay', function(e) {
if (!isStreaming) {
// videoWidth isn't always set correctly in all browsers
if (vid.videoWidth > 0) hei = vid.videoHeight / (vid.videoWidth / wid);
can.setAttribute('width', wid);
can.setAttribute('height', hei);
// Reverse the canvas image
con.translate(wid, 0);
con.scale(-1, 1);
isStreaming = true;
}
}, false);
// Wait for the video to start to play
vid.addEventListener('play', function() {
//Setup image memory
var id = con.getImageData(0, 0, can.width, can.height);
var d = id.data;
dst = _malloc(d.length);
//console.log("What " + d.length);
jst = new TimeSeries();
wasmt = new TimeSeries();
var smoothie = new SmoothieChart({
grid: {
strokeStyle: 'rgb(125, 0, 0)',
fillStyle: 'rgb(60, 0, 0)',
lineWidth: 1,
millisPerLine: 250,
verticalSections: 6
}
});
smoothie.addTimeSeries(jst, {
strokeStyle: 'rgb(0, 255, 0)',
fillStyle: 'rgba(0, 255, 0, 0.4)',
lineWidth: 3
});
smoothie.addTimeSeries(wasmt, {
strokeStyle: 'rgb(255, 0, 255)',
fillStyle: 'rgba(255, 0, 255, 0.3)',
lineWidth: 3
});
smoothie.streamTo(document.getElementById("chart"), 1000);
sFilter();
// When the grey button is clicked, toggle the greyness indicator
grey.addEventListener('click', function() {
jsrender = !jsrender;
grey.firstChild.data = grey.firstChild.data == "Toggle JavaScript" ? "Toggle WASM" : "Toggle JavaScript";
}, false);
});
});
function updateChart(jstime, wasmtime) {
if (jstime > 0) {
jst.append(new Date().getTime(), jstime);
lastjs = jstime;
} else {
jst.append(new Date().getTime(), lastjs);
}
if (wasmtime > 0) {
wasmt.append(new Date().getTime(), wasmtime);
lastwasm = wasmtime;
} else {
wasmt.append(new Date().getTime(), lastwasm);
}
}
//Request Animation Frame function
var sFilter = function() {
if (vid.paused || vid.ended) return;
var t0 = performance.now();
var t1;
con.fillRect(0, 0, wid, hei);
con.drawImage(vid, 0, 0, wid, hei);
var imageData = con.getImageData(0, 0, can.width, can.height);
var data = imageData.data;
//do it in JS
if (jsrender) {
var ids = nSobel(imageData);
t1 = performance.now();
imageData.data.set(ids);
con.putImageData(imageData, 0, 0);
//do it in WASM
} else {
HEAPU8.set(data, dst);
var result = Module.ccall('change', // name of C function
null, // return type
['number', 'number', 'number'], // argument types
[dst, wid, hei]); // arguments
t1 = performance.now();
var result = HEAPU8.subarray(dst, dst + data.length);
imageData.data.set(result);
con.putImageData(imageData, 0, 0);
}
out.value = (t1 - t0).toFixed(2);
if (jsrender) {
updateChart((t1 - t0).toFixed(2), 0);
} else {
updateChart(0, (t1 - t0).toFixed(2));
}
window.requestAnimationFrame(sFilter);
}
var nSobel = function(imageData) {
var width = imageData.width;
var height = imageData.height;
var grayData = new Int32Array(wid * hei);
function getPixel(x, y) {
if (x < 0 || y < 0) return 0;
if (x >= (wid) || y >= (hei)) return 0;
return (grayData[((wid * y) + x)]);
}
var data = imageData.data;
//Grayscale
for (var y = 0; y < height; y++) {
for (var x = 0; x < width; x++) {
var goffset = ((wid * y) + x) << 2; //multiply by 4
var r = data[goffset];
var g = data[goffset + 1];
var b = data[goffset + 2];
var avg = (r >> 2) + (g >> 1) + (b >> 3);
grayData[((wid * y) + x)] = avg;
var doffset = ((wid * y) + x) << 2;
data[doffset] = avg;
data[doffset + 1] = avg;
data[doffset + 2] = avg;
data[doffset + 3] = 255;
}
}
//Sobel
for (var y = 0; y < height; y++) {
for (var x = 0; x < width; x++) {
var newX;
var newY;
if ((x >= width - 1) || (y >= height - 1)) {
newX = 0;
newY = 0;
} else {
//sobel Filter use surrounding pixels and matrix multiply by sobel
newX = (
(-1 * getPixel(x - 1, y - 1)) +
(getPixel(x + 1, y - 1)) +
(-1 * (getPixel(x - 1, y) << 1)) +
(getPixel(x + 1, y) << 1) +
(-1 * getPixel(x - 1, y + 1)) +
(getPixel(x + 1, y + 1))
);
newY = (
(-1 * getPixel(x - 1, y - 1)) +
(-1 * (getPixel(x, y - 1) << 1)) +
(-1 * getPixel(x + 1, y - 1)) +
(getPixel(x - 1, y + 1)) +
(getPixel(x, y + 1) << 1) +
(getPixel(x + 1, y + 1))
);
var mag = Math.floor(Math.sqrt((newX * newX) + (newY * newY)) >>> 0);
if (mag > 255) mag = 255;
data[((wid * y) + x) * 4] = mag;
data[((wid * y) + x) * 4 + 1] = mag;
data[((wid * y) + x) * 4 + 2] = mag;
data[((wid * y) + x) * 4 + 3] = 255;
}
}
}
return data; //sobelData;
}
})(); | {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
// The Module object: Our interface to the outside world. We import
// and export values on it, and do the work to get that through
// closure compiler if necessary. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..generated code.. }
// 3. pre-run appended it, var Module = {}; ..generated code..
// 4. External script tag defines var Module.
// We need to do an eval in order to handle the closure compiler
// case, where this code here is minified but Module was defined
// elsewhere (e.g. case 4 above). We also need to check if Module
// already exists (e.g. case 3 above).
// Note that if you want to run closure, and also to use Module
// after the generated code, you will need to define var Module = {};
// before the code. Then that object will be used in the code, and you
// can continue to use Module afterwards as well.
var Module;
if (!Module) Module = (typeof Module !== 'undefined' ? Module : null) || {};
// Sometimes an existing Module object exists with properties
// meant to overwrite the default module functionality. Here
// we collect those properties and reapply _after_ we configure
// the current environment's defaults to avoid having to be so
// defensive during initialization.
var moduleOverrides = {};
for (var key in Module) {
if (Module.hasOwnProperty(key)) {
moduleOverrides[key] = Module[key];
}
}
// The environment setup code below is customized to use Module.
// *** Environment setup code ***
var ENVIRONMENT_IS_WEB = false;
var ENVIRONMENT_IS_WORKER = false;
var ENVIRONMENT_IS_NODE = false;
var ENVIRONMENT_IS_SHELL = false;
// Three configurations we can be running in:
// 1) We could be the application main() thread running in the main JS UI thread. (ENVIRONMENT_IS_WORKER == false and ENVIRONMENT_IS_PTHREAD == false)
// 2) We could be the application main() thread proxied to worker. (with Emscripten -s PROXY_TO_WORKER=1) (ENVIRONMENT_IS_WORKER == true, ENVIRONMENT_IS_PTHREAD == false)
// 3) We could be an application pthread running in a worker. (ENVIRONMENT_IS_WORKER == true and ENVIRONMENT_IS_PTHREAD == true)
if (Module['ENVIRONMENT']) {
if (Module['ENVIRONMENT'] === 'WEB') {
ENVIRONMENT_IS_WEB = true;
} else if (Module['ENVIRONMENT'] === 'WORKER') {
ENVIRONMENT_IS_WORKER = true;
} else if (Module['ENVIRONMENT'] === 'NODE') {
ENVIRONMENT_IS_NODE = true;
} else if (Module['ENVIRONMENT'] === 'SHELL') {
ENVIRONMENT_IS_SHELL = true;
} else {
throw new Error('The provided Module[\'ENVIRONMENT\'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.');
}
} else {
ENVIRONMENT_IS_WEB = typeof window === 'object';
ENVIRONMENT_IS_WORKER = typeof importScripts === 'function';
ENVIRONMENT_IS_NODE = typeof process === 'object' && typeof require === 'function' && !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_WORKER;
ENVIRONMENT_IS_SHELL = !ENVIRONMENT_IS_WEB && !ENVIRONMENT_IS_NODE && !ENVIRONMENT_IS_WORKER;
}
if (ENVIRONMENT_IS_NODE) {
// Expose functionality in the same simple way that the shells work
// Note that we pollute the global namespace here, otherwise we break in node
if (!Module['print']) Module['print'] = console.log;
if (!Module['printErr']) Module['printErr'] = console.warn;
var nodeFS;
var nodePath;
Module['read'] = function read(filename, binary) {
if (!nodeFS) nodeFS = require('fs');
if (!nodePath) nodePath = require('path');
filename = nodePath['normalize'](filename);
var ret = nodeFS['readFileSync'](filename);
return binary ? ret : ret.toString();
};
Module['readBinary'] = function readBinary(filename) {
var ret = Module['read'](filename, true);
if (!ret.buffer) {
ret = new Uint8Array(ret);
}
assert(ret.buffer);
return ret;
};
Module['load'] = function load(f) {
globalEval(read(f));
};
if (!Module['thisProgram']) {
if (process['argv'].length > 1) {
Module['thisProgram'] = process['argv'][1].replace(/\\/g, '/');
} else {
Module['thisProgram'] = 'unknown-program';
}
}
Module['arguments'] = process['argv'].slice(2);
if (typeof module !== 'undefined') {
module['exports'] = Module;
}
process['on']('uncaughtException', function(ex) {
// suppress ExitStatus exceptions from showing an error
if (!(ex instanceof ExitStatus)) {
throw ex;
}
});
Module['inspect'] = function () { return '[Emscripten Module object]'; };
}
else if (ENVIRONMENT_IS_SHELL) {
if (!Module['print']) Module['print'] = print;
if (typeof printErr != 'undefined') Module['printErr'] = printErr; // not present in v8 or older sm
if (typeof read != 'undefined') {
Module['read'] = read;
} else {
Module['read'] = function read() { throw 'no read() available' };
}
Module['readBinary'] = function readBinary(f) {
if (typeof readbuffer === 'function') {
return new Uint8Array(readbuffer(f));
}
var data = read(f, 'binary');
assert(typeof data === 'object');
return data;
};
if (typeof scriptArgs != 'undefined') {
Module['arguments'] = scriptArgs;
} else if (typeof arguments != 'undefined') {
Module['arguments'] = arguments;
}
}
else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
Module['read'] = function read(url) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, false);
xhr.send(null);
return xhr.responseText;
};
Module['readAsync'] = function readAsync(url, onload, onerror) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.responseType = 'arraybuffer';
xhr.onload = function xhr_onload() {
if (xhr.status == 200 || (xhr.status == 0 && xhr.response)) { // file URLs can return 0
onload(xhr.response);
} else {
onerror();
}
};
xhr.onerror = onerror;
xhr.send(null);
};
if (typeof arguments != 'undefined') {
Module['arguments'] = arguments;
}
if (typeof console !== 'undefined') {
if (!Module['print']) Module['print'] = function print(x) {
console.log(x);
};
if (!Module['printErr']) Module['printErr'] = function printErr(x) {
console.warn(x);
};
} else {
// Probably a worker, and without console.log. We can do very little here...
var TRY_USE_DUMP = false;
if (!Module['print']) Module['print'] = (TRY_USE_DUMP && (typeof(dump) !== "undefined") ? (function(x) {
dump(x);
}) : (function(x) {
// self.postMessage(x); // enable this if you want stdout to be sent as messages
}));
}
if (ENVIRONMENT_IS_WORKER) {
Module['load'] = importScripts;
}
if (typeof Module['setWindowTitle'] === 'undefined') {
Module['setWindowTitle'] = function(title) { document.title = title };
}
}
else {
// Unreachable because SHELL is dependant on the others
throw 'Unknown runtime environment. Where are we?';
}
function globalEval(x) {
eval.call(null, x);
}
if (!Module['load'] && Module['read']) {
Module['load'] = function load(f) {
globalEval(Module['read'](f));
};
}
if (!Module['print']) {
Module['print'] = function(){};
}
if (!Module['printErr']) {
Module['printErr'] = Module['print'];
}
if (!Module['arguments']) {
Module['arguments'] = [];
}
if (!Module['thisProgram']) {
Module['thisProgram'] = './this.program';
}
// *** Environment setup code ***
// Closure helpers
Module.print = Module['print'];
Module.printErr = Module['printErr'];
// Callbacks
Module['preRun'] = [];
Module['postRun'] = [];
// Merge back in the overrides
for (var key in moduleOverrides) {
if (moduleOverrides.hasOwnProperty(key)) {
Module[key] = moduleOverrides[key];
}
}
// Free the object hierarchy contained in the overrides, this lets the GC
// reclaim data used e.g. in memoryInitializerRequest, which is a large typed array.
moduleOverrides = undefined;
// {{PREAMBLE_ADDITIONS}}
// === Preamble library stuff ===
// Documentation for the public APIs defined in this file must be updated in:
// site/source/docs/api_reference/preamble.js.rst
// A prebuilt local version of the documentation is available at:
// site/build/text/docs/api_reference/preamble.js.txt
// You can also build docs locally as HTML or other formats in site/
// An online HTML version (which may be of a different version of Emscripten)
// is up at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html
//========================================
// Runtime code shared with compiler
//========================================
var Runtime = {
setTempRet0: function (value) {
tempRet0 = value;
},
getTempRet0: function () {
return tempRet0;
},
stackSave: function () {
return STACKTOP;
},
stackRestore: function (stackTop) {
STACKTOP = stackTop;
},
getNativeTypeSize: function (type) {
switch (type) {
case 'i1': case 'i8': return 1;
case 'i16': return 2;
case 'i32': return 4;
case 'i64': return 8;
case 'float': return 4;
case 'double': return 8;
default: {
if (type[type.length-1] === '*') {
return Runtime.QUANTUM_SIZE; // A pointer
} else if (type[0] === 'i') {
var bits = parseInt(type.substr(1));
assert(bits % 8 === 0);
return bits/8;
} else {
return 0;
}
}
}
},
getNativeFieldSize: function (type) {
return Math.max(Runtime.getNativeTypeSize(type), Runtime.QUANTUM_SIZE);
},
STACK_ALIGN: 16,
prepVararg: function (ptr, type) {
if (type === 'double' || type === 'i64') {
// move so the load is aligned
if (ptr & 7) {
assert((ptr & 7) === 4);
ptr += 4;
}
} else {
assert((ptr & 3) === 0);
}
return ptr;
},
getAlignSize: function (type, size, vararg) {
// we align i64s and doubles on 64-bit boundaries, unlike x86
if (!vararg && (type == 'i64' || type == 'double')) return 8;
if (!type) return Math.min(size, 8); // align structures internally to 64 bits
return Math.min(size || (type ? Runtime.getNativeFieldSize(type) : 0), Runtime.QUANTUM_SIZE);
},
dynCall: function (sig, ptr, args) {
if (args && args.length) {
return Module['dynCall_' + sig].apply(null, [ptr].concat(args));
} else {
return Module['dynCall_' + sig].call(null, ptr);
}
},
functionPointers: [],
addFunction: function (func) {
for (var i = 0; i < Runtime.functionPointers.length; i++) {
if (!Runtime.functionPointers[i]) {
Runtime.functionPointers[i] = func;
return 2*(1 + i);
}
}
throw 'Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS.';
},
removeFunction: function (index) {
Runtime.functionPointers[(index-2)/2] = null;
},
warnOnce: function (text) {
if (!Runtime.warnOnce.shown) Runtime.warnOnce.shown = {};
if (!Runtime.warnOnce.shown[text]) {
Runtime.warnOnce.shown[text] = 1;
Module.printErr(text);
}
},
funcWrappers: {},
getFuncWrapper: function (func, sig) {
assert(sig);
if (!Runtime.funcWrappers[sig]) {
Runtime.funcWrappers[sig] = {};
}
var sigCache = Runtime.funcWrappers[sig];
if (!sigCache[func]) {
// optimize away arguments usage in common cases
if (sig.length === 1) {
sigCache[func] = function dynCall_wrapper() {
return Runtime.dynCall(sig, func);
};
} else if (sig.length === 2) {
sigCache[func] = function dynCall_wrapper(arg) {
return Runtime.dynCall(sig, func, [arg]);
};
} else {
// general case
sigCache[func] = function dynCall_wrapper() {
return Runtime.dynCall(sig, func, Array.prototype.slice.call(arguments));
};
}
}
return sigCache[func];
},
getCompilerSetting: function (name) {
throw 'You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work';
},
stackAlloc: function (size) { var ret = STACKTOP;STACKTOP = (STACKTOP + size)|0;STACKTOP = (((STACKTOP)+15)&-16); return ret; },
staticAlloc: function (size) { var ret = STATICTOP;STATICTOP = (STATICTOP + size)|0;STATICTOP = (((STATICTOP)+15)&-16); return ret; },
dynamicAlloc: function (size) { var ret = HEAP32[DYNAMICTOP_PTR>>2];var end = (((ret + size + 15)|0) & -16);HEAP32[DYNAMICTOP_PTR>>2] = end;if (end >= TOTAL_MEMORY) {var success = enlargeMemory();if (!success) {HEAP32[DYNAMICTOP_PTR>>2] = ret;return 0;}}return ret;},
alignMemory: function (size,quantum) { var ret = size = Math.ceil((size)/(quantum ? quantum : 16))*(quantum ? quantum : 16); return ret; },
makeBigInt: function (low,high,unsigned) { var ret = (unsigned ? ((+((low>>>0)))+((+((high>>>0)))*4294967296.0)) : ((+((low>>>0)))+((+((high|0)))*4294967296.0))); return ret; },
GLOBAL_BASE: 1024,
QUANTUM_SIZE: 4,
__dummy__: 0
}
Module["Runtime"] = Runtime;
//========================================
// Runtime essentials
//========================================
var ABORT = 0; // whether we are quitting the application. no code should run after this. set in exit() and abort()
var EXITSTATUS = 0;
function assert(condition, text) {
if (!condition) {
abort('Assertion failed: ' + text);
}
}
var globalScope = this;
// Returns the C function with a specified identifier (for C++, you need to do manual name mangling)
function getCFunc(ident) {
var func = Module['_' + ident]; // closure exported function
if (!func) {
try { func = eval('_' + ident); } catch(e) {}
}
assert(func, 'Cannot call unknown function ' + ident + ' (perhaps LLVM optimizations or closure removed it?)');
return func;
}
var cwrap, ccall;
(function(){
var JSfuncs = {
// Helpers for cwrap -- it can't refer to Runtime directly because it might
// be renamed by closure, instead it calls JSfuncs['stackSave'].body to find
// out what the minified function name is.
'stackSave': function() {
Runtime.stackSave()
},
'stackRestore': function() {
Runtime.stackRestore()
},
// type conversion from js to c
'arrayToC' : function(arr) {
var ret = Runtime.stackAlloc(arr.length);
writeArrayToMemory(arr, ret);
return ret;
},
'stringToC' : function(str) {
var ret = 0;
if (str !== null && str !== undefined && str !== 0) { // null string
// at most 4 bytes per UTF-8 code point, +1 for the trailing '\0'
var len = (str.length << 2) + 1;
ret = Runtime.stackAlloc(len);
stringToUTF8(str, ret, len);
}
return ret;
}
};
// For fast lookup of conversion functions
var toC = {'string' : JSfuncs['stringToC'], 'array' : JSfuncs['arrayToC']};
// C calling interface.
ccall = function ccallFunc(ident, returnType, argTypes, args, opts) {
var func = getCFunc(ident);
var cArgs = [];
var stack = 0;
if (args) {
for (var i = 0; i < args.length; i++) {
var converter = toC[argTypes[i]];
if (converter) {
if (stack === 0) stack = Runtime.stackSave();
cArgs[i] = converter(args[i]);
} else {
cArgs[i] = args[i];
}
}
}
var ret = func.apply(null, cArgs);
if (returnType === 'string') ret = Pointer_stringify(ret);
if (stack !== 0) {
if (opts && opts.async) {
EmterpreterAsync.asyncFinalizers.push(function() {
Runtime.stackRestore(stack);
});
return;
}
Runtime.stackRestore(stack);
}
return ret;
}
var sourceRegex = /^function\s*[a-zA-Z$_0-9]*\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;
function parseJSFunc(jsfunc) {
// Match the body and the return value of a javascript function source
var parsed = jsfunc.toString().match(sourceRegex).slice(1);
return {arguments : parsed[0], body : parsed[1], returnValue: parsed[2]}
}
// sources of useful functions. we create this lazily as it can trigger a source decompression on this entire file
var JSsource = null;
function ensureJSsource() {
if (!JSsource) {
JSsource = {};
for (var fun in JSfuncs) {
if (JSfuncs.hasOwnProperty(fun)) {
// Elements of toCsource are arrays of three items:
// the code, and the return value
JSsource[fun] = parseJSFunc(JSfuncs[fun]);
}
}
}
}
cwrap = function cwrap(ident, returnType, argTypes) {
argTypes = argTypes || [];
var cfunc = getCFunc(ident);
// When the function takes numbers and returns a number, we can just return
// the original function
var numericArgs = argTypes.every(function(type){ return type === 'number'});
var numericRet = (returnType !== 'string');
if ( numericRet && numericArgs) {
return cfunc;
}
// Creation of the arguments list (["$1","$2",...,"$nargs"])
var argNames = argTypes.map(function(x,i){return '$'+i});
var funcstr = "(function(" + argNames.join(',') + ") {";
var nargs = argTypes.length;
if (!numericArgs) {
// Generate the code needed to convert the arguments from javascript
// values to pointers
ensureJSsource();
funcstr += 'var stack = ' + JSsource['stackSave'].body + ';';
for (var i = 0; i < nargs; i++) {
var arg = argNames[i], type = argTypes[i];
if (type === 'number') continue;
var convertCode = JSsource[type + 'ToC']; // [code, return]
funcstr += 'var ' + convertCode.arguments + ' = ' + arg + ';';
funcstr += convertCode.body + ';';
funcstr += arg + '=(' + convertCode.returnValue + ');';
}
}
// When the code is compressed, the name of cfunc is not literally 'cfunc' anymore
var cfuncname = parseJSFunc(function(){return cfunc}).returnValue;
// Call the function
funcstr += 'var ret = ' + cfuncname + '(' + argNames.join(',') + ');';
if (!numericRet) { // Return type can only by 'string' or 'number'
// Convert the result to a string
var strgfy = parseJSFunc(function(){return Pointer_stringify}).returnValue;
funcstr += 'ret = ' + strgfy + '(ret);';
}
if (!numericArgs) {
// If we had a stack, restore it
ensureJSsource();
funcstr += JSsource['stackRestore'].body.replace('()', '(stack)') + ';';
}
funcstr += 'return ret})';
return eval(funcstr);
};
})();
Module["ccall"] = ccall;
Module["cwrap"] = cwrap;
function setValue(ptr, value, type, noSafe) {
type = type || 'i8';
if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
switch(type) {
case 'i1': HEAP8[((ptr)>>0)]=value; break;
case 'i8': HEAP8[((ptr)>>0)]=value; break;
case 'i16': HEAP16[((ptr)>>1)]=value; break;
case 'i32': HEAP32[((ptr)>>2)]=value; break;
case 'i64': (tempI64 = [value>>>0,(tempDouble=value,(+(Math_abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? ((Math_min((+(Math_floor((tempDouble)/4294967296.0))), 4294967295.0))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)],HEAP32[((ptr)>>2)]=tempI64[0],HEAP32[(((ptr)+(4))>>2)]=tempI64[1]); break;
case 'float': HEAPF32[((ptr)>>2)]=value; break;
case 'double': HEAPF64[((ptr)>>3)]=value; break;
default: abort('invalid type for setValue: ' + type);
}
}
Module["setValue"] = setValue;
function getValue(ptr, type, noSafe) {
type = type || 'i8';
if (type.charAt(type.length-1) === '*') type = 'i32'; // pointers are 32-bit
switch(type) {
case 'i1': return HEAP8[((ptr)>>0)];
case 'i8': return HEAP8[((ptr)>>0)];
case 'i16': return HEAP16[((ptr)>>1)];
case 'i32': return HEAP32[((ptr)>>2)];
case 'i64': return HEAP32[((ptr)>>2)];
case 'float': return HEAPF32[((ptr)>>2)];
case 'double': return HEAPF64[((ptr)>>3)];
default: abort('invalid type for setValue: ' + type);
}
return null;
}
Module["getValue"] = getValue;
var ALLOC_NORMAL = 0; // Tries to use _malloc()
var ALLOC_STACK = 1; // Lives for the duration of the current function call
var ALLOC_STATIC = 2; // Cannot be freed
var ALLOC_DYNAMIC = 3; // Cannot be freed except through sbrk
var ALLOC_NONE = 4; // Do not allocate
Module["ALLOC_NORMAL"] = ALLOC_NORMAL;
Module["ALLOC_STACK"] = ALLOC_STACK;
Module["ALLOC_STATIC"] = ALLOC_STATIC;
Module["ALLOC_DYNAMIC"] = ALLOC_DYNAMIC;
Module["ALLOC_NONE"] = ALLOC_NONE;
// allocate(): This is for internal use. You can use it yourself as well, but the interface
// is a little tricky (see docs right below). The reason is that it is optimized
// for multiple syntaxes to save space in generated code. So you should
// normally not use allocate(), and instead allocate memory using _malloc(),
// initialize it with setValue(), and so forth.
// @slab: An array of data, or a number. If a number, then the size of the block to allocate,
// in *bytes* (note that this is sometimes confusing: the next parameter does not
// affect this!)
// @types: Either an array of types, one for each byte (or 0 if no type at that position),
// or a single type which is used for the entire block. This only matters if there
// is initial data - if @slab is a number, then this does not matter at all and is
// ignored.
// @allocator: How to allocate memory, see ALLOC_*
function allocate(slab, types, allocator, ptr) {
var zeroinit, size;
if (typeof slab === 'number') {
zeroinit = true;
size = slab;
} else {
zeroinit = false;
size = slab.length;
}
var singleType = typeof types === 'string' ? types : null;
var ret;
if (allocator == ALLOC_NONE) {
ret = ptr;
} else {
ret = [typeof _malloc === 'function' ? _malloc : Runtime.staticAlloc, Runtime.stackAlloc, Runtime.staticAlloc, Runtime.dynamicAlloc][allocator === undefined ? ALLOC_STATIC : allocator](Math.max(size, singleType ? 1 : types.length));
}
if (zeroinit) {
var ptr = ret, stop;
assert((ret & 3) == 0);
stop = ret + (size & ~3);
for (; ptr < stop; ptr += 4) {
HEAP32[((ptr)>>2)]=0;
}
stop = ret + size;
while (ptr < stop) {
HEAP8[((ptr++)>>0)]=0;
}
return ret;
}
if (singleType === 'i8') {
if (slab.subarray || slab.slice) {
HEAPU8.set(slab, ret);
} else {
HEAPU8.set(new Uint8Array(slab), ret);
}
return ret;
}
var i = 0, type, typeSize, previousType;
while (i < size) {
var curr = slab[i];
if (typeof curr === 'function') {
curr = Runtime.getFunctionIndex(curr);
}
type = singleType || types[i];
if (type === 0) {
i++;
continue;
}
if (type == 'i64') type = 'i32'; // special case: we have one i32 here, and one i32 later
setValue(ret+i, curr, type);
// no need to look up size unless type changes, so cache it
if (previousType !== type) {
typeSize = Runtime.getNativeTypeSize(type);
previousType = type;
}
i += typeSize;
}
return ret;
}
Module["allocate"] = allocate;
// Allocate memory during any stage of startup - static memory early on, dynamic memory later, malloc when ready
function getMemory(size) {
if (!staticSealed) return Runtime.staticAlloc(size);
if (!runtimeInitialized) return Runtime.dynamicAlloc(size);
return _malloc(size);
}
Module["getMemory"] = getMemory;
function Pointer_stringify(ptr, /* optional */ length) {
if (length === 0 || !ptr) return '';
// TODO: use TextDecoder
// Find the length, and check for UTF while doing so
var hasUtf = 0;
var t;
var i = 0;
while (1) {
t = HEAPU8[(((ptr)+(i))>>0)];
hasUtf |= t;
if (t == 0 && !length) break;
i++;
if (length && i == length) break;
}
if (!length) length = i;
var ret = '';
if (hasUtf < 128) {
var MAX_CHUNK = 1024; // split up into chunks, because .apply on a huge string can overflow the stack
var curr;
while (length > 0) {
curr = String.fromCharCode.apply(String, HEAPU8.subarray(ptr, ptr + Math.min(length, MAX_CHUNK)));
ret = ret ? ret + curr : curr;
ptr += MAX_CHUNK;
length -= MAX_CHUNK;
}
return ret;
}
return Module['UTF8ToString'](ptr);
}
Module["Pointer_stringify"] = Pointer_stringify;
// Given a pointer 'ptr' to a null-terminated ASCII-encoded string in the emscripten HEAP, returns
// a copy of that string as a Javascript String object.
function AsciiToString(ptr) {
var str = '';
while (1) {
var ch = HEAP8[((ptr++)>>0)];
if (!ch) return str;
str += String.fromCharCode(ch);
}
}
Module["AsciiToString"] = AsciiToString;
// Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
// null-terminated and encoded in ASCII form. The copy will require at most str.length+1 bytes of space in the HEAP.
function stringToAscii(str, outPtr) {
return writeAsciiToMemory(str, outPtr, false);
}
Module["stringToAscii"] = stringToAscii;
// Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the given array that contains uint8 values, returns
// a copy of that string as a Javascript String object.
var UTF8Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf8') : undefined;
function UTF8ArrayToString(u8Array, idx) {
var endPtr = idx;
// TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
// Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
while (u8Array[endPtr]) ++endPtr;
if (endPtr - idx > 16 && u8Array.subarray && UTF8Decoder) {
return UTF8Decoder.decode(u8Array.subarray(idx, endPtr));
} else {
var u0, u1, u2, u3, u4, u5;
var str = '';
while (1) {
// For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
u0 = u8Array[idx++];
if (!u0) return str;
if (!(u0 & 0x80)) { str += String.fromCharCode(u0); continue; }
u1 = u8Array[idx++] & 63;
if ((u0 & 0xE0) == 0xC0) { str += String.fromCharCode(((u0 & 31) << 6) | u1); continue; }
u2 = u8Array[idx++] & 63;
if ((u0 & 0xF0) == 0xE0) {
u0 = ((u0 & 15) << 12) | (u1 << 6) | u2;
} else {
u3 = u8Array[idx++] & 63;
if ((u0 & 0xF8) == 0xF0) {
u0 = ((u0 & 7) << 18) | (u1 << 12) | (u2 << 6) | u3;
} else {
u4 = u8Array[idx++] & 63;
if ((u0 & 0xFC) == 0xF8) {
u0 = ((u0 & 3) << 24) | (u1 << 18) | (u2 << 12) | (u3 << 6) | u4;
} else {
u5 = u8Array[idx++] & 63;
u0 = ((u0 & 1) << 30) | (u1 << 24) | (u2 << 18) | (u3 << 12) | (u4 << 6) | u5;
}
}
}
if (u0 < 0x10000) {
str += String.fromCharCode(u0);
} else {
var ch = u0 - 0x10000;
str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
}
}
}
}
Module["UTF8ArrayToString"] = UTF8ArrayToString;
// Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the emscripten HEAP, returns
// a copy of that string as a Javascript String object.
function UTF8ToString(ptr) {
return UTF8ArrayToString(HEAPU8,ptr);
}
Module["UTF8ToString"] = UTF8ToString;
// Copies the given Javascript String object 'str' to the given byte array at address 'outIdx',
// encoded in UTF8 form and null-terminated. The copy will require at most str.length*4+1 bytes of space in the HEAP.
// Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
// Parameters:
// str: the Javascript string to copy.
// outU8Array: the array to copy to. Each index in this array is assumed to be one 8-byte element.
// outIdx: The starting offset in the array to begin the copying.
// maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
// terminator, i.e. if maxBytesToWrite=1, only the null terminator will be written and nothing else.
// maxBytesToWrite=0 does not write any bytes to the output, not even the null terminator.
// Returns the number of bytes written, EXCLUDING the null terminator.
function stringToUTF8Array(str, outU8Array, outIdx, maxBytesToWrite) {
if (!(maxBytesToWrite > 0)) // Parameter maxBytesToWrite is not optional. Negative values, 0, null, undefined and false each don't write out any bytes.
return 0;
var startIdx = outIdx;
var endIdx = outIdx + maxBytesToWrite - 1; // -1 for string null terminator.
for (var i = 0; i < str.length; ++i) {
// Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
// See http://unicode.org/faq/utf_bom.html#utf16-3
// For UTF8 byte structure, see http://en.wikipedia.org/wiki/UTF-8#Description and https://www.ietf.org/rfc/rfc2279.txt and https://tools.ietf.org/html/rfc3629
var u = str.charCodeAt(i); // possibly a lead surrogate
if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
if (u <= 0x7F) {
if (outIdx >= endIdx) break;
outU8Array[outIdx++] = u;
} else if (u <= 0x7FF) {
if (outIdx + 1 >= endIdx) break;
outU8Array[outIdx++] = 0xC0 | (u >> 6);
outU8Array[outIdx++] = 0x80 | (u & 63);
} else if (u <= 0xFFFF) {
if (outIdx + 2 >= endIdx) break;
outU8Array[outIdx++] = 0xE0 | (u >> 12);
outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
outU8Array[outIdx++] = 0x80 | (u & 63);
} else if (u <= 0x1FFFFF) {
if (outIdx + 3 >= endIdx) break;
outU8Array[outIdx++] = 0xF0 | (u >> 18);
outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
outU8Array[outIdx++] = 0x80 | (u & 63);
} else if (u <= 0x3FFFFFF) {
if (outIdx + 4 >= endIdx) break;
outU8Array[outIdx++] = 0xF8 | (u >> 24);
outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
outU8Array[outIdx++] = 0x80 | (u & 63);
} else {
if (outIdx + 5 >= endIdx) break;
outU8Array[outIdx++] = 0xFC | (u >> 30);
outU8Array[outIdx++] = 0x80 | ((u >> 24) & 63);
outU8Array[outIdx++] = 0x80 | ((u >> 18) & 63);
outU8Array[outIdx++] = 0x80 | ((u >> 12) & 63);
outU8Array[outIdx++] = 0x80 | ((u >> 6) & 63);
outU8Array[outIdx++] = 0x80 | (u & 63);
}
}
// Null-terminate the pointer to the buffer.
outU8Array[outIdx] = 0;
return outIdx - startIdx;
}
Module["stringToUTF8Array"] = stringToUTF8Array;
// Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
// null-terminated and encoded in UTF8 form. The copy will require at most str.length*4+1 bytes of space in the HEAP.
// Use the function lengthBytesUTF8 to compute the exact number of bytes (excluding null terminator) that this function will write.
// Returns the number of bytes written, EXCLUDING the null terminator.
function stringToUTF8(str, outPtr, maxBytesToWrite) {
return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite);
}
Module["stringToUTF8"] = stringToUTF8;
// Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.
function lengthBytesUTF8(str) {
var len = 0;
for (var i = 0; i < str.length; ++i) {
// Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! So decode UTF16->UTF32->UTF8.
// See http://unicode.org/faq/utf_bom.html#utf16-3
var u = str.charCodeAt(i); // possibly a lead surrogate
if (u >= 0xD800 && u <= 0xDFFF) u = 0x10000 + ((u & 0x3FF) << 10) | (str.charCodeAt(++i) & 0x3FF);
if (u <= 0x7F) {
++len;
} else if (u <= 0x7FF) {
len += 2;
} else if (u <= 0xFFFF) {
len += 3;
} else if (u <= 0x1FFFFF) {
len += 4;
} else if (u <= 0x3FFFFFF) {
len += 5;
} else {
len += 6;
}
}
return len;
}
Module["lengthBytesUTF8"] = lengthBytesUTF8;
// Given a pointer 'ptr' to a null-terminated UTF16LE-encoded string in the emscripten HEAP, returns
// a copy of that string as a Javascript String object.
var UTF16Decoder = typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-16le') : undefined;
function UTF16ToString(ptr) {
var endPtr = ptr;
// TextDecoder needs to know the byte length in advance, it doesn't stop on null terminator by itself.
// Also, use the length info to avoid running tiny strings through TextDecoder, since .subarray() allocates garbage.
var idx = endPtr >> 1;
while (HEAP16[idx]) ++idx;
endPtr = idx << 1;
if (endPtr - ptr > 32 && UTF16Decoder) {
return UTF16Decoder.decode(HEAPU8.subarray(ptr, endPtr));
} else {
var i = 0;
var str = '';
while (1) {
var codeUnit = HEAP16[(((ptr)+(i*2))>>1)];
if (codeUnit == 0) return str;
++i;
// fromCharCode constructs a character from a UTF-16 code unit, so we can pass the UTF16 string right through.
str += String.fromCharCode(codeUnit);
}
}
}
// Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
// null-terminated and encoded in UTF16 form. The copy will require at most str.length*4+2 bytes of space in the HEAP.
// Use the function lengthBytesUTF16() to compute the exact number of bytes (excluding null terminator) that this function will write.
// Parameters:
// str: the Javascript string to copy.
// outPtr: Byte address in Emscripten HEAP where to write the string to.
// maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
// terminator, i.e. if maxBytesToWrite=2, only the null terminator will be written and nothing else.
// maxBytesToWrite<2 does not write any bytes to the output, not even the null terminator.
// Returns the number of bytes written, EXCLUDING the null terminator.
function stringToUTF16(str, outPtr, maxBytesToWrite) {
// Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
if (maxBytesToWrite === undefined) {
maxBytesToWrite = 0x7FFFFFFF;
}
if (maxBytesToWrite < 2) return 0;
maxBytesToWrite -= 2; // Null terminator.
var startPtr = outPtr;
var numCharsToWrite = (maxBytesToWrite < str.length*2) ? (maxBytesToWrite / 2) : str.length;
for (var i = 0; i < numCharsToWrite; ++i) {
// charCodeAt returns a UTF-16 encoded code unit, so it can be directly written to the HEAP.
var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
HEAP16[((outPtr)>>1)]=codeUnit;
outPtr += 2;
}
// Null-terminate the pointer to the HEAP.
HEAP16[((outPtr)>>1)]=0;
return outPtr - startPtr;
}
// Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
function lengthBytesUTF16(str) {
return str.length*2;
}
function UTF32ToString(ptr) {
var i = 0;
var str = '';
while (1) {
var utf32 = HEAP32[(((ptr)+(i*4))>>2)];
if (utf32 == 0)
return str;
++i;
// Gotcha: fromCharCode constructs a character from a UTF-16 encoded code (pair), not from a Unicode code point! So encode the code point to UTF-16 for constructing.
// See http://unicode.org/faq/utf_bom.html#utf16-3
if (utf32 >= 0x10000) {
var ch = utf32 - 0x10000;
str += String.fromCharCode(0xD800 | (ch >> 10), 0xDC00 | (ch & 0x3FF));
} else {
str += String.fromCharCode(utf32);
}
}
}
// Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',
// null-terminated and encoded in UTF32 form. The copy will require at most str.length*4+4 bytes of space in the HEAP.
// Use the function lengthBytesUTF32() to compute the exact number of bytes (excluding null terminator) that this function will write.
// Parameters:
// str: the Javascript string to copy.
// outPtr: Byte address in Emscripten HEAP where to write the string to.
// maxBytesToWrite: The maximum number of bytes this function can write to the array. This count should include the null
// terminator, i.e. if maxBytesToWrite=4, only the null terminator will be written and nothing else.
// maxBytesToWrite<4 does not write any bytes to the output, not even the null terminator.
// Returns the number of bytes written, EXCLUDING the null terminator.
function stringToUTF32(str, outPtr, maxBytesToWrite) {
// Backwards compatibility: if max bytes is not specified, assume unsafe unbounded write is allowed.
if (maxBytesToWrite === undefined) {
maxBytesToWrite = 0x7FFFFFFF;
}
if (maxBytesToWrite < 4) return 0;
var startPtr = outPtr;
var endPtr = startPtr + maxBytesToWrite - 4;
for (var i = 0; i < str.length; ++i) {
// Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
// See http://unicode.org/faq/utf_bom.html#utf16-3
var codeUnit = str.charCodeAt(i); // possibly a lead surrogate
if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) {
var trailSurrogate = str.charCodeAt(++i);
codeUnit = 0x10000 + ((codeUnit & 0x3FF) << 10) | (trailSurrogate & 0x3FF);
}
HEAP32[((outPtr)>>2)]=codeUnit;
outPtr += 4;
if (outPtr + 4 > endPtr) break;
}
// Null-terminate the pointer to the HEAP.
HEAP32[((outPtr)>>2)]=0;
return outPtr - startPtr;
}
// Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
function lengthBytesUTF32(str) {
var len = 0;
for (var i = 0; i < str.length; ++i) {
// Gotcha: charCodeAt returns a 16-bit word that is a UTF-16 encoded code unit, not a Unicode code point of the character! We must decode the string to UTF-32 to the heap.
// See http://unicode.org/faq/utf_bom.html#utf16-3
var codeUnit = str.charCodeAt(i);
if (codeUnit >= 0xD800 && codeUnit <= 0xDFFF) ++i; // possibly a lead surrogate, so skip over the tail surrogate.
len += 4;
}
return len;
}
function demangle(func) {
var __cxa_demangle_func = Module['___cxa_demangle'] || Module['__cxa_demangle'];
if (__cxa_demangle_func) {
try {
var s =
func.substr(1);
var len = lengthBytesUTF8(s)+1;
var buf = _malloc(len);
stringToUTF8(s, buf, len);
var status = _malloc(4);
var ret = __cxa_demangle_func(buf, 0, 0, status);
if (getValue(status, 'i32') === 0 && ret) {
return Pointer_stringify(ret);
}
// otherwise, libcxxabi failed
} catch(e) {
// ignore problems here
} finally {
if (buf) _free(buf);
if (status) _free(status);
if (ret) _free(ret);
}
// failure when using libcxxabi, don't demangle
return func;
}
Runtime.warnOnce('warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling');
return func;
}
function demangleAll(text) {
var regex =
/__Z[\w\d_]+/g;
return text.replace(regex,
function(x) {
var y = demangle(x);
return x === y ? x : (x + ' [' + y + ']');
});
}
function jsStackTrace() {
var err = new Error();
if (!err.stack) {
// IE10+ special cases: It does have callstack info, but it is only populated if an Error object is thrown,
// so try that as a special-case.
try {
throw new Error(0);
} catch(e) {
err = e;
}
if (!err.stack) {
return '(no stack trace available)';
}
}
return err.stack.toString();
}
function stackTrace() {
var js = jsStackTrace();
if (Module['extraStackTrace']) js += '\n' + Module['extraStackTrace']();
return demangleAll(js);
}
Module["stackTrace"] = stackTrace;
// Memory management
var PAGE_SIZE = 16384;
var WASM_PAGE_SIZE = 65536;
var ASMJS_PAGE_SIZE = 16777216;
var MIN_TOTAL_MEMORY = 16777216;
function alignUp(x, multiple) {
if (x % multiple > 0) {
x += multiple - (x % multiple);
}
return x;
}
var HEAP;
var buffer;
var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
function updateGlobalBuffer(buf) {
Module['buffer'] = buffer = buf;
}
function updateGlobalBufferViews() {
Module['HEAP8'] = HEAP8 = new Int8Array(buffer);
Module['HEAP16'] = HEAP16 = new Int16Array(buffer);
Module['HEAP32'] = HEAP32 = new Int32Array(buffer);
Module['HEAPU8'] = HEAPU8 = new Uint8Array(buffer);
Module['HEAPU16'] = HEAPU16 = new Uint16Array(buffer);
Module['HEAPU32'] = HEAPU32 = new Uint32Array(buffer);
Module['HEAPF32'] = HEAPF32 = new Float32Array(buffer);
Module['HEAPF64'] = HEAPF64 = new Float64Array(buffer);
}
var STATIC_BASE, STATICTOP, staticSealed; // static area
var STACK_BASE, STACKTOP, STACK_MAX; // stack area
var DYNAMIC_BASE, DYNAMICTOP_PTR; // dynamic area handled by sbrk
STATIC_BASE = STATICTOP = STACK_BASE = STACKTOP = STACK_MAX = DYNAMIC_BASE = DYNAMICTOP_PTR = 0;
staticSealed = false;
function abortOnCannotGrowMemory() {
abort('Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value ' + TOTAL_MEMORY + ', (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ');
}
function enlargeMemory() {
abortOnCannotGrowMemory();
}
var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 16777216;
if (TOTAL_MEMORY < TOTAL_STACK) Module.printErr('TOTAL_MEMORY should be larger than TOTAL_STACK, was ' + TOTAL_MEMORY + '! (TOTAL_STACK=' + TOTAL_STACK + ')');
// Initialize the runtime's memory
// Use a provided buffer, if there is one, or else allocate a new one
if (Module['buffer']) {
buffer = Module['buffer'];
} else {
// Use a WebAssembly memory where available
if (typeof WebAssembly === 'object' && typeof WebAssembly.Memory === 'function') {
Module['wasmMemory'] = new WebAssembly.Memory({ initial: TOTAL_MEMORY / WASM_PAGE_SIZE, maximum: TOTAL_MEMORY / WASM_PAGE_SIZE });
buffer = Module['wasmMemory'].buffer;
} else
{
buffer = new ArrayBuffer(TOTAL_MEMORY);
}
}
updateGlobalBufferViews();
function getTotalMemory() {
return TOTAL_MEMORY;
}
// Endianness check (note: assumes compiler arch was little-endian)
HEAP32[0] = 0x63736d65; /* 'emsc' */
HEAP16[1] = 0x6373;
if (HEAPU8[2] !== 0x73 || HEAPU8[3] !== 0x63) throw 'Runtime error: expected the system to be little-endian!';
Module['HEAP'] = HEAP;
Module['buffer'] = buffer;
Module['HEAP8'] = HEAP8;
Module['HEAP16'] = HEAP16;
Module['HEAP32'] = HEAP32;
Module['HEAPU8'] = HEAPU8;
Module['HEAPU16'] = HEAPU16;
Module['HEAPU32'] = HEAPU32;
Module['HEAPF32'] = HEAPF32;
Module['HEAPF64'] = HEAPF64;
function callRuntimeCallbacks(callbacks) {
while(callbacks.length > 0) {
var callback = callbacks.shift();
if (typeof callback == 'function') {
callback();
continue;
}
var func = callback.func;
if (typeof func === 'number') {
if (callback.arg === undefined) {
Module['dynCall_v'](func);
} else {
Module['dynCall_vi'](func, callback.arg);
}
} else {
func(callback.arg === undefined ? null : callback.arg);
}
}
}
var __ATPRERUN__ = []; // functions called before the runtime is initialized
var __ATINIT__ = []; // functions called during startup
var __ATMAIN__ = []; // functions called when main() is to be run
var __ATEXIT__ = []; // functions called during shutdown
var __ATPOSTRUN__ = []; // functions called after the runtime has exited
var runtimeInitialized = false;
var runtimeExited = false;
function preRun() {
// compatibility - merge in anything from Module['preRun'] at this time
if (Module['preRun']) {
if (typeof Module['preRun'] == 'function') Module['preRun'] = [Module['preRun']];
while (Module['preRun'].length) {
addOnPreRun(Module['preRun'].shift());
}
}
callRuntimeCallbacks(__ATPRERUN__);
}
function ensureInitRuntime() {
if (runtimeInitialized) return;
runtimeInitialized = true;
callRuntimeCallbacks(__ATINIT__);
}
function preMain() {
callRuntimeCallbacks(__ATMAIN__);
}
function exitRuntime() {
callRuntimeCallbacks(__ATEXIT__);
runtimeExited = true;
}
function postRun() {
// compatibility - merge in anything from Module['postRun'] at this time
if (Module['postRun']) {
if (typeof Module['postRun'] == 'function') Module['postRun'] = [Module['postRun']];
while (Module['postRun'].length) {
addOnPostRun(Module['postRun'].shift());
}
}
callRuntimeCallbacks(__ATPOSTRUN__);
}
function addOnPreRun(cb) {
__ATPRERUN__.unshift(cb);
}
Module["addOnPreRun"] = addOnPreRun;
function addOnInit(cb) {
__ATINIT__.unshift(cb);
}
Module["addOnInit"] = addOnInit;
function addOnPreMain(cb) {
__ATMAIN__.unshift(cb);
}
Module["addOnPreMain"] = addOnPreMain;
function addOnExit(cb) {
__ATEXIT__.unshift(cb);
}
Module["addOnExit"] = addOnExit;
function addOnPostRun(cb) {
__ATPOSTRUN__.unshift(cb);
}
Module["addOnPostRun"] = addOnPostRun;
// Tools
function intArrayFromString(stringy, dontAddNull, length /* optional */) {
var len = length > 0 ? length : lengthBytesUTF8(stringy)+1;
var u8array = new Array(len);
var numBytesWritten = stringToUTF8Array(stringy, u8array, 0, u8array.length);
if (dontAddNull) u8array.length = numBytesWritten;
return u8array;
}
Module["intArrayFromString"] = intArrayFromString;
function intArrayToString(array) {
var ret = [];
for (var i = 0; i < array.length; i++) {
var chr = array[i];
if (chr > 0xFF) {
chr &= 0xFF;
}
ret.push(String.fromCharCode(chr));
}
return ret.join('');
}
Module["intArrayToString"] = intArrayToString;
// Deprecated: This function should not be called because it is unsafe and does not provide
// a maximum length limit of how many bytes it is allowed to write. Prefer calling the
// function stringToUTF8Array() instead, which takes in a maximum length that can be used
// to be secure from out of bounds writes.
function writeStringToMemory(string, buffer, dontAddNull) {
Runtime.warnOnce('writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!');
var lastChar, end;
if (dontAddNull) {
// stringToUTF8Array always appends null. If we don't want to do that, remember the
// character that existed at the location where the null will be placed, and restore
// that after the write (below).
end = buffer + lengthBytesUTF8(string);
lastChar = HEAP8[end];
}
stringToUTF8(string, buffer, Infinity);
if (dontAddNull) HEAP8[end] = lastChar; // Restore the value under the null character.
}
Module["writeStringToMemory"] = writeStringToMemory;
function writeArrayToMemory(array, buffer) {
HEAP8.set(array, buffer);
}
Module["writeArrayToMemory"] = writeArrayToMemory;
function writeAsciiToMemory(str, buffer, dontAddNull) {
for (var i = 0; i < str.length; ++i) {
HEAP8[((buffer++)>>0)]=str.charCodeAt(i);
}
// Null-terminate the pointer to the HEAP.
if (!dontAddNull) HEAP8[((buffer)>>0)]=0;
}
Module["writeAsciiToMemory"] = writeAsciiToMemory;
function unSign(value, bits, ignore) {
if (value >= 0) {
return value;
}
return bits <= 32 ? 2*Math.abs(1 << (bits-1)) + value // Need some trickery, since if bits == 32, we are right at the limit of the bits JS uses in bitshifts
: Math.pow(2, bits) + value;
}
function reSign(value, bits, ignore) {
if (value <= 0) {
return value;
}
var half = bits <= 32 ? Math.abs(1 << (bits-1)) // abs is needed if bits == 32
: Math.pow(2, bits-1);
if (value >= half && (bits <= 32 || value > half)) { // for huge values, we can hit the precision limit and always get true here. so don't do that
// but, in general there is no perfect solution here. With 64-bit ints, we get rounding and errors
// TODO: In i64 mode 1, resign the two parts separately and safely
value = -2*half + value; // Cannot bitshift half, as it may be at the limit of the bits JS uses in bitshifts
}
return value;
}
// check for imul support, and also for correctness ( https://bugs.webkit.org/show_bug.cgi?id=126345 )
if (!Math['imul'] || Math['imul'](0xffffffff, 5) !== -5) Math['imul'] = function imul(a, b) {
var ah = a >>> 16;
var al = a & 0xffff;
var bh = b >>> 16;
var bl = b & 0xffff;
return (al*bl + ((ah*bl + al*bh) << 16))|0;
};
Math.imul = Math['imul'];
if (!Math['fround']) {
var froundBuffer = new Float32Array(1);
Math['fround'] = function(x) { froundBuffer[0] = x; return froundBuffer[0] };
}
Math.fround = Math['fround'];
if (!Math['clz32']) Math['clz32'] = function(x) {
x = x >>> 0;
for (var i = 0; i < 32; i++) {
if (x & (1 << (31 - i))) return i;
}
return 32;
};
Math.clz32 = Math['clz32']
if (!Math['trunc']) Math['trunc'] = function(x) {
return x < 0 ? Math.ceil(x) : Math.floor(x);
};
Math.trunc = Math['trunc'];
var Math_abs = Math.abs;
var Math_cos = Math.cos;
var Math_sin = Math.sin;
var Math_tan = Math.tan;
var Math_acos = Math.acos;
var Math_asin = Math.asin;
var Math_atan = Math.atan;
var Math_atan2 = Math.atan2;
var Math_exp = Math.exp;
var Math_log = Math.log;
var Math_sqrt = Math.sqrt;
var Math_ceil = Math.ceil;
var Math_floor = Math.floor;
var Math_pow = Math.pow;
var Math_imul = Math.imul;
var Math_fround = Math.fround;
var Math_round = Math.round;
var Math_min = Math.min;
var Math_clz32 = Math.clz32;
var Math_trunc = Math.trunc;
// A counter of dependencies for calling run(). If we need to
// do asynchronous work before running, increment this and
// decrement it. Incrementing must happen in a place like
// PRE_RUN_ADDITIONS (used by emcc to add file preloading).
// Note that you can add dependencies in preRun, even though
// it happens right before run - run will be postponed until
// the dependencies are met.
var runDependencies = 0;
var runDependencyWatcher = null;
var dependenciesFulfilled = null; // overridden to take different actions when all run dependencies are fulfilled
function getUniqueRunDependency(id) {
return id;
}
function addRunDependency(id) {
runDependencies++;
if (Module['monitorRunDependencies']) {
Module['monitorRunDependencies'](runDependencies);
}
}
Module["addRunDependency"] = addRunDependency;
function removeRunDependency(id) {
runDependencies--;
if (Module['monitorRunDependencies']) {
Module['monitorRunDependencies'](runDependencies);
}
if (runDependencies == 0) {
if (runDependencyWatcher !== null) {
clearInterval(runDependencyWatcher);
runDependencyWatcher = null;
}
if (dependenciesFulfilled) {
var callback = dependenciesFulfilled;
dependenciesFulfilled = null;
callback(); // can add another dependenciesFulfilled
}
}
}
Module["removeRunDependency"] = removeRunDependency;
Module["preloadedImages"] = {}; // maps url to image data
Module["preloadedAudios"] = {}; // maps url to audio data
var memoryInitializer = null;
function integrateWasmJS(Module) {
// wasm.js has several methods for creating the compiled code module here:
// * 'native-wasm' : use native WebAssembly support in the browser
// * 'interpret-s-expr': load s-expression code from a .wast and interpret
// * 'interpret-binary': load binary wasm and interpret
// * 'interpret-asm2wasm': load asm.js code, translate to wasm, and interpret
// * 'asmjs': no wasm, just load the asm.js code and use that (good for testing)
// The method can be set at compile time (BINARYEN_METHOD), or runtime by setting Module['wasmJSMethod'].
// The method can be a comma-separated list, in which case, we will try the
// options one by one. Some of them can fail gracefully, and then we can try
// the next.
// inputs
var method = Module['wasmJSMethod'] || 'native-wasm';
Module['wasmJSMethod'] = method;
var wasmTextFile = Module['wasmTextFile'] || 'change.wast';
var wasmBinaryFile = Module['wasmBinaryFile'] || 'change.wasm';
var asmjsCodeFile = Module['asmjsCodeFile'] || 'change.temp.asm.js';
// utilities
var wasmPageSize = 64*1024;
var asm2wasmImports = { // special asm2wasm imports
"f64-rem": function(x, y) {
return x % y;
},
"f64-to-int": function(x) {
return x | 0;
},
"i32s-div": function(x, y) {
return ((x | 0) / (y | 0)) | 0;
},
"i32u-div": function(x, y) {
return ((x >>> 0) / (y >>> 0)) >>> 0;
},
"i32s-rem": function(x, y) {
return ((x | 0) % (y | 0)) | 0;
},
"i32u-rem": function(x, y) {
return ((x >>> 0) % (y >>> 0)) >>> 0;
},
"debugger": function() {
debugger;
},
};
var info = {
'global': null,
'env': null,
'asm2wasm': asm2wasmImports,
'parent': Module // Module inside wasm-js.cpp refers to wasm-js.cpp; this allows access to the outside program.
};
var exports = null;
function lookupImport(mod, base) {
var lookup = info;
if (mod.indexOf('.') < 0) {
lookup = (lookup || {})[mod];
} else {
var parts = mod.split('.');
lookup = (lookup || {})[parts[0]];
lookup = (lookup || {})[parts[1]];
}
if (base) {
lookup = (lookup || {})[base];
}
if (lookup === undefined) {
abort('bad lookupImport to (' + mod + ').' + base);
}
return lookup;
}
function mergeMemory(newBuffer) {
// The wasm instance creates its memory. But static init code might have written to
// buffer already, including the mem init file, and we must copy it over in a proper merge.
// TODO: avoid this copy, by avoiding such static init writes
// TODO: in shorter term, just copy up to the last static init write
var oldBuffer = Module['buffer'];
if (newBuffer.byteLength < oldBuffer.byteLength) {
Module['printErr']('the new buffer in mergeMemory is smaller than the previous one. in native wasm, we should grow memory here');
}
var oldView = new Int8Array(oldBuffer);
var newView = new Int8Array(newBuffer);
// If we have a mem init file, do not trample it
if (!memoryInitializer) {
oldView.set(newView.subarray(Module['STATIC_BASE'], Module['STATIC_BASE'] + Module['STATIC_BUMP']), Module['STATIC_BASE']);
}
newView.set(oldView);
updateGlobalBuffer(newBuffer);
updateGlobalBufferViews();
}
var WasmTypes = {
none: 0,
i32: 1,
i64: 2,
f32: 3,
f64: 4
};
function fixImports(imports) {
if (!0) return imports;
var ret = {};
for (var i in imports) {
var fixed = i;
if (fixed[0] == '_') fixed = fixed.substr(1);
ret[fixed] = imports[i];
}
return ret;
}
function getBinary() {
var binary;
if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
binary = Module['wasmBinary'];
assert(binary, "on the web, we need the wasm binary to be preloaded and set on Module['wasmBinary']. emcc.py will do that for you when generating HTML (but not JS)");
binary = new Uint8Array(binary);
} else {
binary = Module['readBinary'](wasmBinaryFile);
}
return binary;
}
// do-method functions
function doJustAsm(global, env, providedBuffer) {
// if no Module.asm, or it's the method handler helper (see below), then apply
// the asmjs
if (typeof Module['asm'] !== 'function' || Module['asm'] === methodHandler) {
if (!Module['asmPreload']) {
// you can load the .asm.js file before this, to avoid this sync xhr and eval
eval(Module['read'](asmjsCodeFile)); // set Module.asm
} else {
Module['asm'] = Module['asmPreload'];
}
}
if (typeof Module['asm'] !== 'function') {
Module['printErr']('asm evalling did not set the module properly');
return false;
}
return Module['asm'](global, env, providedBuffer);
}
function doNativeWasm(global, env, providedBuffer) {
if (typeof WebAssembly !== 'object') {
Module['printErr']('no native wasm support detected');
return false;
}
// prepare memory import
if (!(Module['wasmMemory'] instanceof WebAssembly.Memory)) {
Module['printErr']('no native wasm Memory in use');
return false;
}
env['memory'] = Module['wasmMemory'];
// Load the wasm module and create an instance of using native support in the JS engine.
info['global'] = {
'NaN': NaN,
'Infinity': Infinity
};
info['global.Math'] = global.Math;
info['env'] = env;
// handle a generated wasm instance, receiving its exports and
// performing other necessary setup
function receiveInstance(instance) {
exports = instance.exports;
if (exports.memory) mergeMemory(exports.memory);
Module['asm'] = exports;
Module["usingWasm"] = true;
}
Module['printErr']('asynchronously preparing wasm');
addRunDependency('wasm-instantiate'); // we can't run yet
WebAssembly.instantiate(getBinary(), info).then(function(output) {
// receiveInstance() will swap in the exports (to Module.asm) so they can be called
receiveInstance(output.instance);
removeRunDependency('wasm-instantiate');
}).catch(function(reason) {
Module['printErr']('failed to asynchronously prepare wasm:\n ' + reason);
});
return {}; // no exports yet; we'll fill them in later
var instance;
try {
instance = new WebAssembly.Instance(new WebAssembly.Module(getBinary()), info)
} catch (e) {
Module['printErr']('failed to compile wasm module: ' + e);
if (e.toString().indexOf('imported Memory with incompatible size') >= 0) {
Module['printErr']('Memory size incompatibility issues may be due to changing TOTAL_MEMORY at runtime to something too large. Use ALLOW_MEMORY_GROWTH to allow any size memory (and also make sure not to set TOTAL_MEMORY at runtime to something smaller than it was at compile time).');
}
return false;
}
receiveInstance(instance);
return exports;
}
function doWasmPolyfill(global, env, providedBuffer, method) {
if (typeof WasmJS !== 'function') {
Module['printErr']('WasmJS not detected - polyfill not bundled?');
return false;
}
// Use wasm.js to polyfill and execute code in a wasm interpreter.
var wasmJS = WasmJS({});
// XXX don't be confused. Module here is in the outside program. wasmJS is the inner wasm-js.cpp.
wasmJS['outside'] = Module; // Inside wasm-js.cpp, Module['outside'] reaches the outside module.
// Information for the instance of the module.
wasmJS['info'] = info;
wasmJS['lookupImport'] = lookupImport;
assert(providedBuffer === Module['buffer']); // we should not even need to pass it as a 3rd arg for wasm, but that's the asm.js way.
info.global = global;
info.env = env;
// polyfill interpreter expects an ArrayBuffer
assert(providedBuffer === Module['buffer']);
env['memory'] = providedBuffer;
assert(env['memory'] instanceof ArrayBuffer);
wasmJS['providedTotalMemory'] = Module['buffer'].byteLength;
// Prepare to generate wasm, using either asm2wasm or s-exprs
var code;
if (method === 'interpret-binary') {
code = getBinary();
} else {
code = Module['read'](method == 'interpret-asm2wasm' ? asmjsCodeFile : wasmTextFile);
}
var temp;
if (method == 'interpret-asm2wasm') {
temp = wasmJS['_malloc'](code.length + 1);
wasmJS['writeAsciiToMemory'](code, temp);
wasmJS['_load_asm2wasm'](temp);
} else if (method === 'interpret-s-expr') {
temp = wasmJS['_malloc'](code.length + 1);
wasmJS['writeAsciiToMemory'](code, temp);
wasmJS['_load_s_expr2wasm'](temp);
} else if (method === 'interpret-binary') {
temp = wasmJS['_malloc'](code.length);
wasmJS['HEAPU8'].set(code, temp);
wasmJS['_load_binary2wasm'](temp, code.length);
} else {
throw 'what? ' + method;
}
wasmJS['_free'](temp);
wasmJS['_instantiate'](temp);
if (Module['newBuffer']) {
mergeMemory(Module['newBuffer']);
Module['newBuffer'] = null;
}
exports = wasmJS['asmExports'];
return exports;
}
// We may have a preloaded value in Module.asm, save it
Module['asmPreload'] = Module['asm'];
// Memory growth integration code
Module['reallocBuffer'] = function(size) {
var PAGE_MULTIPLE = Module["usingWasm"] ? WASM_PAGE_SIZE : ASMJS_PAGE_SIZE; // In wasm, heap size must be a multiple of 64KB. In asm.js, they need to be multiples of 16MB.
size = alignUp(size, PAGE_MULTIPLE); // round up to wasm page size
var old = Module['buffer'];
var oldSize = old.byteLength;
if (Module["usingWasm"]) {
try {
var result = Module['wasmMemory'].grow((size - oldSize) / wasmPageSize); // .grow() takes a delta compared to the previous size
if (result !== (-1 | 0)) {
// success in native wasm memory growth, get the buffer from the memory
return Module['buffer'] = Module['wasmMemory'].buffer;
} else {
return null;
}
} catch(e) {
return null;
}
} else {
// in interpreter, we replace Module.buffer if we allocate
return Module['buffer'] !== old ? Module['buffer'] : null; // if it was reallocated, it changed
}
};
// Provide an "asm.js function" for the application, called to "link" the asm.js module. We instantiate
// the wasm module at that time, and it receives imports and provides exports and so forth, the app
// doesn't need to care that it is wasm or olyfilled wasm or asm.js.
Module['asm'] = function(global, env, providedBuffer) {
global = fixImports(global);
env = fixImports(env);
// import table
if (!env['table']) {
var TABLE_SIZE = Module['wasmTableSize'];
if (TABLE_SIZE === undefined) TABLE_SIZE = 1024; // works in binaryen interpreter at least
var MAX_TABLE_SIZE = Module['wasmMaxTableSize'];
if (typeof WebAssembly === 'object' && typeof WebAssembly.Table === 'function') {
if (MAX_TABLE_SIZE !== undefined) {
env['table'] = new WebAssembly.Table({ initial: TABLE_SIZE, maximum: MAX_TABLE_SIZE, element: 'anyfunc' });
} else {
env['table'] = new WebAssembly.Table({ initial: TABLE_SIZE, element: 'anyfunc' });
}
} else {
env['table'] = new Array(TABLE_SIZE); // works in binaryen interpreter at least
}
Module['wasmTable'] = env['table'];
}
if (!env['memoryBase']) {
env['memoryBase'] = Module['STATIC_BASE']; // tell the memory segments where to place themselves
}
if (!env['tableBase']) {
env['tableBase'] = 0; // table starts at 0 by default, in dynamic linking this will change
}
// try the methods. each should return the exports if it succeeded
var exports;
var methods = method.split(',');
for (var i = 0; i < methods.length; i++) {
var curr = methods[i];
Module['printErr']('trying binaryen method: ' + curr);
if (curr === 'native-wasm') {
if (exports = doNativeWasm(global, env, providedBuffer)) break;
} else if (curr === 'asmjs') {
if (exports = doJustAsm(global, env, providedBuffer)) break;
} else if (curr === 'interpret-asm2wasm' || curr === 'interpret-s-expr' || curr === 'interpret-binary') {
if (exports = doWasmPolyfill(global, env, providedBuffer, curr)) break;
} else {
throw 'bad method: ' + curr;
}
}
if (!exports) throw 'no binaryen method succeeded. consider enabling more options, like interpreting, if you want that: https://github.com/kripken/emscripten/wiki/WebAssembly#binaryen-methods';
Module['printErr']('binaryen method succeeded.');
return exports;
};
var methodHandler = Module['asm']; // note our method handler, as we may modify Module['asm'] later
}
integrateWasmJS(Module);
// === Body ===
var ASM_CONSTS = [];
STATIC_BASE = 1024;
STATICTOP = STATIC_BASE + 1154720;
/* global initializers */ __ATINIT__.push();
memoryInitializer = Module["wasmJSMethod"].indexOf("asmjs") >= 0 || Module["wasmJSMethod"].indexOf("interpret-asm2wasm") >= 0 ? "change.js.mem" : null;
var STATIC_BUMP = 1154720;
Module["STATIC_BASE"] = STATIC_BASE;
Module["STATIC_BUMP"] = STATIC_BUMP;
/* no memory initializer */
var tempDoublePtr = STATICTOP; STATICTOP += 16;
function copyTempFloat(ptr) { // functions, because inlining this code increases code size too much
HEAP8[tempDoublePtr] = HEAP8[ptr];
HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
}
function copyTempDouble(ptr) {
HEAP8[tempDoublePtr] = HEAP8[ptr];
HEAP8[tempDoublePtr+1] = HEAP8[ptr+1];
HEAP8[tempDoublePtr+2] = HEAP8[ptr+2];
HEAP8[tempDoublePtr+3] = HEAP8[ptr+3];
HEAP8[tempDoublePtr+4] = HEAP8[ptr+4];
HEAP8[tempDoublePtr+5] = HEAP8[ptr+5];
HEAP8[tempDoublePtr+6] = HEAP8[ptr+6];
HEAP8[tempDoublePtr+7] = HEAP8[ptr+7];
}
// {{PRE_LIBRARY}}
function ___setErrNo(value) {
if (Module['___errno_location']) HEAP32[((Module['___errno_location']())>>2)]=value;
return value;
}
Module["_sbrk"] = _sbrk;
Module["_memset"] = _memset;
function _pthread_cleanup_push(routine, arg) {
__ATEXIT__.push(function() { Module['dynCall_vi'](routine, arg) })
_pthread_cleanup_push.level = __ATEXIT__.length;
}
function ___lock() {}
function _emscripten_memcpy_big(dest, src, num) {
HEAPU8.set(HEAPU8.subarray(src, src+num), dest);
return dest;
}
Module["_memcpy"] = _memcpy;
function _pthread_cleanup_pop() {
assert(_pthread_cleanup_push.level == __ATEXIT__.length, 'cannot pop if something else added meanwhile!');
__ATEXIT__.pop();
_pthread_cleanup_push.level = __ATEXIT__.length;
}
function _abort() {
Module['abort']();
}
Module["_pthread_self"] = _pthread_self;
var SYSCALLS={varargs:0,get:function (varargs) {
SYSCALLS.varargs += 4;
var ret = HEAP32[(((SYSCALLS.varargs)-(4))>>2)];
return ret;
},getStr:function () {
var ret = Pointer_stringify(SYSCALLS.get());
return ret;
},get64:function () {
var low = SYSCALLS.get(), high = SYSCALLS.get();
if (low >= 0) assert(high === 0);
else assert(high === -1);
return low;
},getZero:function () {
assert(SYSCALLS.get() === 0);
}};function ___syscall140(which, varargs) {SYSCALLS.varargs = varargs;
try {
// llseek
var stream = SYSCALLS.getStreamFromFD(), offset_high = SYSCALLS.get(), offset_low = SYSCALLS.get(), result = SYSCALLS.get(), whence = SYSCALLS.get();
var offset = offset_low;
assert(offset_high === 0);
FS.llseek(stream, offset, whence);
HEAP32[((result)>>2)]=stream.position;
if (stream.getdents && offset === 0 && whence === 0) stream.getdents = null; // reset readdir state
return 0;
} catch (e) {
if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
return -e.errno;
}
}
function ___syscall146(which, varargs) {SYSCALLS.varargs = varargs;
try {
// writev
// hack to support printf in NO_FILESYSTEM
var stream = SYSCALLS.get(), iov = SYSCALLS.get(), iovcnt = SYSCALLS.get();
var ret = 0;
if (!___syscall146.buffer) {
___syscall146.buffers = [null, [], []]; // 1 => stdout, 2 => stderr
___syscall146.printChar = function(stream, curr) {
var buffer = ___syscall146.buffers[stream];
assert(buffer);
if (curr === 0 || curr === 10) {
(stream === 1 ? Module['print'] : Module['printErr'])(UTF8ArrayToString(buffer, 0));
buffer.length = 0;
} else {
buffer.push(curr);
}
};
}
for (var i = 0; i < iovcnt; i++) {
var ptr = HEAP32[(((iov)+(i*8))>>2)];
var len = HEAP32[(((iov)+(i*8 + 4))>>2)];
for (var j = 0; j < len; j++) {
___syscall146.printChar(stream, HEAPU8[ptr+j]);
}
ret += len;
}
return ret;
} catch (e) {
if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
return -e.errno;
}
}
function ___syscall54(which, varargs) {SYSCALLS.varargs = varargs;
try {
// ioctl
return 0;
} catch (e) {
if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
return -e.errno;
}
}
function ___unlock() {}
function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
try {
// close
var stream = SYSCALLS.getStreamFromFD();
FS.close(stream);
return 0;
} catch (e) {
if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
return -e.errno;
}
}
/* flush anything remaining in the buffer during shutdown */ __ATEXIT__.push(function() { var fflush = Module["_fflush"]; if (fflush) fflush(0); var printChar = ___syscall146.printChar; if (!printChar) return; var buffers = ___syscall146.buffers; if (buffers[1].length) printChar(1, 10); if (buffers[2].length) printChar(2, 10); });;
DYNAMICTOP_PTR = allocate(1, "i32", ALLOC_STATIC);
STACK_BASE = STACKTOP = Runtime.alignMemory(STATICTOP);
STACK_MAX = STACK_BASE + TOTAL_STACK;
DYNAMIC_BASE = Runtime.alignMemory(STACK_MAX);
HEAP32[DYNAMICTOP_PTR>>2] = DYNAMIC_BASE;
staticSealed = true; // seal the static portion of memory
Module['wasmTableSize'] = 8;
Module['wasmMaxTableSize'] = 8;
function invoke_ii(index,a1) {
try {
return Module["dynCall_ii"](index,a1);
} catch(e) {
if (typeof e !== 'number' && e !== 'longjmp') throw e;
asm["setThrew"](1, 0);
}
}
function invoke_iiii(index,a1,a2,a3) {
try {
return Module["dynCall_iiii"](index,a1,a2,a3);
} catch(e) {
if (typeof e !== 'number' && e !== 'longjmp') throw e;
asm["setThrew"](1, 0);
}
}
function invoke_vi(index,a1) {
try {
Module["dynCall_vi"](index,a1);
} catch(e) {
if (typeof e !== 'number' && e !== 'longjmp') throw e;
asm["setThrew"](1, 0);
}
}
Module.asmGlobalArg = { "Math": Math, "Int8Array": Int8Array, "Int16Array": Int16Array, "Int32Array": Int32Array, "Uint8Array": Uint8Array, "Uint16Array": Uint16Array, "Uint32Array": Uint32Array, "Float32Array": Float32Array, "Float64Array": Float64Array, "NaN": NaN, "Infinity": Infinity };
Module.asmLibraryArg = { "abort": abort, "assert": assert, "enlargeMemory": enlargeMemory, "getTotalMemory": getTotalMemory, "abortOnCannotGrowMemory": abortOnCannotGrowMemory, "invoke_ii": invoke_ii, "invoke_iiii": invoke_iiii, "invoke_vi": invoke_vi, "_pthread_cleanup_pop": _pthread_cleanup_pop, "___lock": ___lock, "_abort": _abort, "___setErrNo": ___setErrNo, "___syscall6": ___syscall6, "___syscall140": ___syscall140, "_pthread_cleanup_push": _pthread_cleanup_push, "_emscripten_memcpy_big": _emscripten_memcpy_big, "___syscall54": ___syscall54, "___unlock": ___unlock, "___syscall146": ___syscall146, "DYNAMICTOP_PTR": DYNAMICTOP_PTR, "tempDoublePtr": tempDoublePtr, "ABORT": ABORT, "STACKTOP": STACKTOP, "STACK_MAX": STACK_MAX };
// EMSCRIPTEN_START_ASM
var asm =Module["asm"]// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg, Module.asmLibraryArg, buffer);
Module["asm"] = asm;
var _change = Module["_change"] = function() { return Module["asm"]["_change"].apply(null, arguments) };
var _fflush = Module["_fflush"] = function() { return Module["asm"]["_fflush"].apply(null, arguments) };
var runPostSets = Module["runPostSets"] = function() { return Module["asm"]["runPostSets"].apply(null, arguments) };
var _pthread_self = Module["_pthread_self"] = function() { return Module["asm"]["_pthread_self"].apply(null, arguments) };
var _memset = Module["_memset"] = function() { return Module["asm"]["_memset"].apply(null, arguments) };
var _malloc = Module["_malloc"] = function() { return Module["asm"]["_malloc"].apply(null, arguments) };
var _memcpy = Module["_memcpy"] = function() { return Module["asm"]["_memcpy"].apply(null, arguments) };
var _sbrk = Module["_sbrk"] = function() { return Module["asm"]["_sbrk"].apply(null, arguments) };
var _free = Module["_free"] = function() { return Module["asm"]["_free"].apply(null, arguments) };
var ___errno_location = Module["___errno_location"] = function() { return Module["asm"]["___errno_location"].apply(null, arguments) };
var dynCall_ii = Module["dynCall_ii"] = function() { return Module["asm"]["dynCall_ii"].apply(null, arguments) };
var dynCall_iiii = Module["dynCall_iiii"] = function() { return Module["asm"]["dynCall_iiii"].apply(null, arguments) };
var dynCall_vi = Module["dynCall_vi"] = function() { return Module["asm"]["dynCall_vi"].apply(null, arguments) };
;
Runtime.stackAlloc = asm['stackAlloc'];
Runtime.stackSave = asm['stackSave'];
Runtime.stackRestore = asm['stackRestore'];
Runtime.establishStackSpace = asm['establishStackSpace'];
Runtime.setTempRet0 = asm['setTempRet0'];
Runtime.getTempRet0 = asm['getTempRet0'];
// === Auto-generated postamble setup entry stuff ===
Module['asm'] = asm;
if (memoryInitializer) {
if (typeof Module['locateFile'] === 'function') {
memoryInitializer = Module['locateFile'](memoryInitializer);
} else if (Module['memoryInitializerPrefixURL']) {
memoryInitializer = Module['memoryInitializerPrefixURL'] + memoryInitializer;
}
if (ENVIRONMENT_IS_NODE || ENVIRONMENT_IS_SHELL) {
var data = Module['readBinary'](memoryInitializer);
HEAPU8.set(data, Runtime.GLOBAL_BASE);
} else {
addRunDependency('memory initializer');
var applyMemoryInitializer = function(data) {
if (data.byteLength) data = new Uint8Array(data);
HEAPU8.set(data, Runtime.GLOBAL_BASE);
// Delete the typed array that contains the large blob of the memory initializer request response so that
// we won't keep unnecessary memory lying around. However, keep the XHR object itself alive so that e.g.
// its .status field can still be accessed later.
if (Module['memoryInitializerRequest']) delete Module['memoryInitializerRequest'].response;
removeRunDependency('memory initializer');
}
function doBrowserLoad() {
Module['readAsync'](memoryInitializer, applyMemoryInitializer, function() {
throw 'could not load memory initializer ' + memoryInitializer;
});
}
if (Module['memoryInitializerRequest']) {
// a network request has already been created, just use that
function useRequest() {
var request = Module['memoryInitializerRequest'];
if (request.status !== 200 && request.status !== 0) {
// If you see this warning, the issue may be that you are using locateFile or memoryInitializerPrefixURL, and defining them in JS. That
// means that the HTML file doesn't know about them, and when it tries to create the mem init request early, does it to the wrong place.
// Look in your browser's devtools network console to see what's going on.
console.warn('a problem seems to have happened with Module.memoryInitializerRequest, status: ' + request.status + ', retrying ' + memoryInitializer);
doBrowserLoad();
return;
}
applyMemoryInitializer(request.response);
}
if (Module['memoryInitializerRequest'].response) {
setTimeout(useRequest, 0); // it's already here; but, apply it asynchronously
} else {
Module['memoryInitializerRequest'].addEventListener('load', useRequest); // wait for it
}
} else {
// fetch it from the network ourselves
doBrowserLoad();
}
}
}
function ExitStatus(status) {
this.name = "ExitStatus";
this.message = "Program terminated with exit(" + status + ")";
this.status = status;
};
ExitStatus.prototype = new Error();
ExitStatus.prototype.constructor = ExitStatus;
var initialStackTop;
var preloadStartTime = null;
var calledMain = false;
dependenciesFulfilled = function runCaller() {
// If run has never been called, and we should call run (INVOKE_RUN is true, and Module.noInitialRun is not false)
if (!Module['calledRun']) run();
if (!Module['calledRun']) dependenciesFulfilled = runCaller; // try this again later, after new deps are fulfilled
}
Module['callMain'] = Module.callMain = function callMain(args) {
args = args || [];
ensureInitRuntime();
var argc = args.length+1;
function pad() {
for (var i = 0; i < 4-1; i++) {
argv.push(0);
}
}
var argv = [allocate(intArrayFromString(Module['thisProgram']), 'i8', ALLOC_NORMAL) ];
pad();
for (var i = 0; i < argc-1; i = i + 1) {
argv.push(allocate(intArrayFromString(args[i]), 'i8', ALLOC_NORMAL));
pad();
}
argv.push(0);
argv = allocate(argv, 'i32', ALLOC_NORMAL);
try {
var ret = Module['_main'](argc, argv, 0);
// if we're not running an evented main loop, it's time to exit
exit(ret, /* implicit = */ true);
}
catch(e) {
if (e instanceof ExitStatus) {
// exit() throws this once it's done to make sure execution
// has been stopped completely
return;
} else if (e == 'SimulateInfiniteLoop') {
// running an evented main loop, don't immediately exit
Module['noExitRuntime'] = true;
return;
} else {
if (e && typeof e === 'object' && e.stack) Module.printErr('exception thrown: ' + [e, e.stack]);
throw e;
}
} finally {
calledMain = true;
}
}
function run(args) {
args = args || Module['arguments'];
if (preloadStartTime === null) preloadStartTime = Date.now();
if (runDependencies > 0) {
return;
}
preRun();
if (runDependencies > 0) return; // a preRun added a dependency, run will be called later
if (Module['calledRun']) return; // run may have just been called through dependencies being fulfilled just in this very frame
function doRun() {
if (Module['calledRun']) return; // run may have just been called while the async setStatus time below was happening
Module['calledRun'] = true;
if (ABORT) return;
ensureInitRuntime();
preMain();
if (Module['onRuntimeInitialized']) Module['onRuntimeInitialized']();
if (Module['_main'] && shouldRunNow) Module['callMain'](args);
postRun();
}
if (Module['setStatus']) {
Module['setStatus']('Running...');
setTimeout(function() {
setTimeout(function() {
Module['setStatus']('');
}, 1);
doRun();
}, 1);
} else {
doRun();
}
}
Module['run'] = Module.run = run;
function exit(status, implicit) {
if (implicit && Module['noExitRuntime']) {
return;
}
if (Module['noExitRuntime']) {
} else {
ABORT = true;
EXITSTATUS = status;
STACKTOP = initialStackTop;
exitRuntime();
if (Module['onExit']) Module['onExit'](status);
}
if (ENVIRONMENT_IS_NODE) {
process['exit'](status);
} else if (ENVIRONMENT_IS_SHELL && typeof quit === 'function') {
quit(status);
}
// if we reach here, we must throw an exception to halt the current execution
throw new ExitStatus(status);
}
Module['exit'] = Module.exit = exit;
var abortDecorators = [];
function abort(what) {
if (what !== undefined) {
Module.print(what);
Module.printErr(what);
what = JSON.stringify(what)
} else {
what = '';
}
ABORT = true;
EXITSTATUS = 1;
var extra = '\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.';
var output = 'abort(' + what + ') at ' + stackTrace() + extra;
if (abortDecorators) {
abortDecorators.forEach(function(decorator) {
output = decorator(output, what);
});
}
throw output;
}
Module['abort'] = Module.abort = abort;
// {{PRE_RUN_ADDITIONS}}
if (Module['preInit']) {
if (typeof Module['preInit'] == 'function') Module['preInit'] = [Module['preInit']];
while (Module['preInit'].length > 0) {
Module['preInit'].pop()();
}
}
// shouldRunNow refers to calling main(), not run().
var shouldRunNow = true;
if (Module['noInitialRun']) {
shouldRunNow = false;
}
run();
// {{POST_RUN_ADDITIONS}}
// {{MODULE_ADDITIONS}}
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
Module["asm"] = (function(global, env, buffer) {
'almost asm';
var HEAP8 = new global.Int8Array(buffer);
var HEAP16 = new global.Int16Array(buffer);
var HEAP32 = new global.Int32Array(buffer);
var HEAPU8 = new global.Uint8Array(buffer);
var HEAPU16 = new global.Uint16Array(buffer);
var HEAPU32 = new global.Uint32Array(buffer);
var HEAPF32 = new global.Float32Array(buffer);
var HEAPF64 = new global.Float64Array(buffer);
var DYNAMICTOP_PTR=env.DYNAMICTOP_PTR|0;
var tempDoublePtr=env.tempDoublePtr|0;
var ABORT=env.ABORT|0;
var STACKTOP=env.STACKTOP|0;
var STACK_MAX=env.STACK_MAX|0;
var __THREW__ = 0;
var threwValue = 0;
var setjmpId = 0;
var undef = 0;
var nan = global.NaN, inf = global.Infinity;
var tempInt = 0, tempBigInt = 0, tempBigIntP = 0, tempBigIntS = 0, tempBigIntR = 0.0, tempBigIntI = 0, tempBigIntD = 0, tempValue = 0, tempDouble = 0.0;
var tempRet0 = 0;
var Math_floor=global.Math.floor;
var Math_abs=global.Math.abs;
var Math_sqrt=global.Math.sqrt;
var Math_pow=global.Math.pow;
var Math_cos=global.Math.cos;
var Math_sin=global.Math.sin;
var Math_tan=global.Math.tan;
var Math_acos=global.Math.acos;
var Math_asin=global.Math.asin;
var Math_atan=global.Math.atan;
var Math_atan2=global.Math.atan2;
var Math_exp=global.Math.exp;
var Math_log=global.Math.log;
var Math_ceil=global.Math.ceil;
var Math_imul=global.Math.imul;
var Math_min=global.Math.min;
var Math_max=global.Math.max;
var Math_clz32=global.Math.clz32;
var Math_fround=global.Math.fround;
var abort=env.abort;
var assert=env.assert;
var enlargeMemory=env.enlargeMemory;
var getTotalMemory=env.getTotalMemory;
var abortOnCannotGrowMemory=env.abortOnCannotGrowMemory;
var invoke_ii=env.invoke_ii;
var invoke_iiii=env.invoke_iiii;
var invoke_vi=env.invoke_vi;
var _pthread_cleanup_pop=env._pthread_cleanup_pop;
var ___lock=env.___lock;
var _abort=env._abort;
var ___setErrNo=env.___setErrNo;
var ___syscall6=env.___syscall6;
var ___syscall140=env.___syscall140;
var _pthread_cleanup_push=env._pthread_cleanup_push;
var _emscripten_memcpy_big=env._emscripten_memcpy_big;
var ___syscall54=env.___syscall54;
var ___unlock=env.___unlock;
var ___syscall146=env.___syscall146;
var tempFloat = Math_fround(0);
const f0 = Math_fround(0);
// EMSCRIPTEN_START_FUNCS
function stackAlloc(size) {
size = size|0;
var ret = 0;
ret = STACKTOP;
STACKTOP = (STACKTOP + size)|0;
STACKTOP = (STACKTOP + 15)&-16;
return ret|0;
}
function stackSave() {
return STACKTOP|0;
}
function stackRestore(top) {
top = top|0;
STACKTOP = top;
}
function establishStackSpace(stackBase, stackMax) {
stackBase = stackBase|0;
stackMax = stackMax|0;
STACKTOP = stackBase;
STACK_MAX = stackMax;
}
function setThrew(threw, value) {
threw = threw|0;
value = value|0;
if ((__THREW__|0) == 0) {
__THREW__ = threw;
threwValue = value;
}
}
function setTempRet0(value) {
value = value|0;
tempRet0 = value;
}
function getTempRet0() {
return tempRet0|0;
}
function _sobel($0,$1,$2) {
$0 = $0|0;
$1 = $1|0;
$2 = $2|0;
var $$ = 0, $$0$i = 0, $$0$i123 = 0, $$0$i126 = 0, $$0$i129 = 0, $$0$i132 = 0, $$0$i135 = 0, $$0$i138 = 0, $$0$i141 = 0, $$0$i144 = 0, $$0$i147 = 0, $$0$i150 = 0, $$0$i153 = 0, $$0114 = 0, $$0115 = 0, $$0116159 = 0, $$0117160 = 0, $$0118163$us = 0, $$0166$us = 0, $$pre = 0;
var $$pre$phiZ2D = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0.0, $114 = 0.0, $115 = 0, $116 = 0;
var $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0;
var $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0;
var $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0;
var $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0, $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0;
var $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0, $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0;
var $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0, $99 = 0, $exitcond = 0, $exitcond179 = 0, $exitcond180 = 0, $exitcond181 = 0, $notlhs = 0, $notrhs = 0, $or$cond = 0, $or$cond$not = 0, $or$cond121 = 0, $or$cond167 = 0, $or$cond168 = 0, $or$cond169 = 0, $or$cond170 = 0;
var $or$cond171 = 0, $or$cond173 = 0, $or$cond176 = 0, $or$cond3$i = 0, $or$cond3$i125 = 0, $or$cond3$i134 = 0, $or$cond3$i140 = 0, $or$cond3$i143 = 0, $or$cond3$i146 = 0, $or$cond3$i149 = 0, $or$cond3$i152 = 0, $sum = 0, $tmp = 0, $tmp156 = 0, label = 0, sp = 0;
sp = STACKTOP;
$3 = ($2|0)>(0);
if (!($3)) {
return;
}
$4 = ($1|0)>(0);
if ($4) {
$$0166$us = 0;
while(1) {
$5 = ($$0166$us*600)|0;
$$0118163$us = 0;
while(1) {
$6 = (($$0118163$us) + ($5))|0;
$7 = $6 << 2;
$8 = (($0) + ($7)|0);
$9 = load1($8);
$10 = $9&255;
$11 = $7 | 1;
$12 = (($0) + ($11)|0);
$13 = load1($12);
$14 = $13&255;
$15 = $7 | 2;
$16 = (($0) + ($15)|0);
$17 = load1($16);
$18 = $17&255;
$19 = $10 >>> 2;
$20 = $14 >>> 1;
$21 = (($20) + ($19))|0;
$22 = $18 >>> 3;
$23 = (($21) + ($22))|0;
$24 = (1140 + ($6<<2)|0);
store4($24,$23);
$25 = $23&255;
store1($8,$25);
store1($12,$25);
store1($16,$25);
$26 = $7 | 3;
$27 = (($0) + ($26)|0);
store1($27,-1);
$28 = (($$0118163$us) + 1)|0;
$exitcond180 = ($28|0)==($1|0);
if ($exitcond180) {
break;
} else {
$$0118163$us = $28;
}
}
$29 = (($$0166$us) + 1)|0;
$exitcond181 = ($29|0)==($2|0);
if ($exitcond181) {
break;
} else {
$$0166$us = $29;
}
}
if (!($3)) {
return;
}
}
$30 = ($1|0)>(0);
$31 = (($1) + -1)|0;
$32 = (($2) + -1)|0;
$$0117160 = 0;
while(1) {
if ($30) {
$33 = ($$0117160*600)|0;
$notrhs = ($$0117160|0)>(0);
$34 = ($$0117160|0)<($32|0);
$35 = (($$0117160) + -1)|0;
$36 = (($$0117160) + 1)|0;
$37 = ($$0117160|0)>(478);
$38 = ($36*600)|0;
$39 = ($35|0)>(479);
$40 = ($35*600)|0;
$41 = ($$0117160|0)>(479);
$$0116159 = 0;
while(1) {
$42 = ($$0116159|0)<(1);
if ($42) {
$$0114 = 0;$$0115 = 0;
} else {
$notlhs = ($$0116159|0)<($31|0);
$or$cond$not = $notrhs & $notlhs;
$or$cond121 = $34 & $or$cond$not;
if ($or$cond121) {
$43 = (($$0116159) + -1)|0;
$44 = $43 | $35;
$45 = ($44|0)<(0);
$46 = ($43|0)>(599);
$or$cond3$i = $39 | $46;
$or$cond = $45 | $or$cond3$i;
if ($or$cond) {
$$0$i = 0;
} else {
$47 = (($43) + ($40))|0;
$48 = (1140 + ($47<<2)|0);
$49 = load4($48);
$$0$i = $49;
}
$50 = (($$0116159) + 1)|0;
$51 = $50 | $35;
$52 = ($51|0)<(0);
$53 = ($$0116159|0)>(598);
$or$cond3$i152 = $39 | $53;
$or$cond167 = $52 | $or$cond3$i152;
if ($or$cond167) {
$$0$i153 = 0;
} else {
$54 = (($50) + ($40))|0;
$55 = (1140 + ($54<<2)|0);
$56 = load4($55);
$$0$i153 = $56;
}
$57 = (($$0$i153) - ($$0$i))|0;
$58 = $43 | $$0117160;
$59 = ($58|0)<(0);
$or$cond3$i149 = $41 | $46;
$or$cond168 = $59 | $or$cond3$i149;
if ($or$cond168) {
$$0$i150 = 0;
} else {
$60 = (($43) + ($33))|0;
$61 = (1140 + ($60<<2)|0);
$62 = load4($61);
$$0$i150 = $62;
}
$63 = $$0$i150 << 1;
$64 = (($57) - ($63))|0;
$65 = $50 | $$0117160;
$66 = ($65|0)<(0);
$or$cond3$i146 = $41 | $53;
$or$cond169 = $66 | $or$cond3$i146;
if ($or$cond169) {
$$0$i147 = 0;
} else {
$67 = (($50) + ($33))|0;
$68 = (1140 + ($67<<2)|0);
$69 = load4($68);
$$0$i147 = $69;
}
$70 = $$0$i147 << 1;
$71 = (($64) + ($70))|0;
$72 = $43 | $36;
$73 = ($72|0)<(0);
$or$cond3$i143 = $37 | $46;
$or$cond170 = $73 | $or$cond3$i143;
if ($or$cond170) {
$$0$i144 = 0;
} else {
$74 = (($43) + ($38))|0;
$75 = (1140 + ($74<<2)|0);
$76 = load4($75);
$$0$i144 = $76;
}
$77 = (($71) - ($$0$i144))|0;
$78 = $50 | $36;
$79 = ($78|0)<(0);
$or$cond3$i140 = $37 | $53;
$or$cond171 = $79 | $or$cond3$i140;
if ($or$cond171) {
$$0$i141 = 0;
} else {
$80 = (($50) + ($38))|0;
$81 = (1140 + ($80<<2)|0);
$82 = load4($81);
$$0$i141 = $82;
}
$83 = (($77) + ($$0$i141))|0;
if ($or$cond) {
$$0$i138 = 0;
} else {
$84 = (($43) + ($40))|0;
$85 = (1140 + ($84<<2)|0);
$86 = load4($85);
$$0$i138 = $86;
}
$87 = $$0116159 | $35;
$88 = ($87|0)<(0);
$89 = ($$0116159|0)>(599);
$or$cond3$i134 = $39 | $89;
$or$cond173 = $88 | $or$cond3$i134;
if ($or$cond173) {
$$0$i135 = 0;
} else {
$90 = (($$0116159) + ($40))|0;
$91 = (1140 + ($90<<2)|0);
$92 = load4($91);
$$0$i135 = $92;
}
if ($or$cond167) {
$$0$i132 = 0;
} else {
$93 = (($50) + ($40))|0;
$94 = (1140 + ($93<<2)|0);
$95 = load4($94);
$$0$i132 = $95;
}
if ($or$cond170) {
$$0$i129 = 0;
} else {
$96 = (($43) + ($38))|0;
$97 = (1140 + ($96<<2)|0);
$98 = load4($97);
$$0$i129 = $98;
}
$99 = $$0116159 | $36;
$100 = ($99|0)<(0);
$or$cond3$i125 = $37 | $89;
$or$cond176 = $100 | $or$cond3$i125;
if ($or$cond176) {
$$0$i126 = 0;
} else {
$101 = (($$0116159) + ($38))|0;
$102 = (1140 + ($101<<2)|0);
$103 = load4($102);
$$0$i126 = $103;
}
if ($or$cond171) {
$$0$i123 = 0;
} else {
$104 = (($50) + ($38))|0;
$105 = (1140 + ($104<<2)|0);
$106 = load4($105);
$$0$i123 = $106;
}
$tmp = (($$0$i126) - ($$0$i135))|0;
$tmp156 = $tmp << 1;
$sum = (($$0$i132) + ($$0$i138))|0;
$107 = (($$0$i129) - ($sum))|0;
$108 = (($107) + ($$0$i123))|0;
$109 = (($108) + ($tmp156))|0;
$$0114 = $109;$$0115 = $83;
} else {
$$0114 = 0;$$0115 = 0;
}
}
$110 = Math_imul($$0115, $$0115)|0;
$111 = Math_imul($$0114, $$0114)|0;
$112 = (($111) + ($110))|0;
$113 = (+($112|0));
$114 = (+Math_sqrt((+$113)));
$115 = (~~(($114)));
$116 = ($115|0)>(255);
$$ = $116 ? 255 : $115;
$117 = (($$0116159) + ($33))|0;
$118 = $117 << 2;
$119 = (255 - ($$))|0;
$120 = $119&255;
$121 = (($0) + ($118)|0);
store1($121,$120);
$122 = $118 | 1;
$123 = (($0) + ($122)|0);
store1($123,$120);
$124 = $118 | 2;
$125 = (($0) + ($124)|0);
store1($125,$120);
$126 = $118 | 3;
$127 = (($0) + ($126)|0);
store1($127,-1);
$128 = (($$0116159) + 1)|0;
$exitcond = ($128|0)==($1|0);
if ($exitcond) {
$$pre$phiZ2D = $36;
break;
} else {
$$0116159 = $128;
}
}
} else {
$$pre = (($$0117160) + 1)|0;
$$pre$phiZ2D = $$pre;
}
$exitcond179 = ($$pre$phiZ2D|0)==($2|0);
if ($exitcond179) {
break;
} else {
$$0117160 = $$pre$phiZ2D;
}
}
return;
}
function _change($0,$1,$2) {
$0 = $0|0;
$1 = $1|0;
$2 = $2|0;
var label = 0, sp = 0;
sp = STACKTOP;
_sobel($0,$1,$2);
return;
}
function ___stdio_close($0) {
$0 = $0|0;
var $1 = 0, $2 = 0, $3 = 0, $4 = 0, $vararg_buffer = 0, label = 0, sp = 0;
sp = STACKTOP;
STACKTOP = STACKTOP + 16|0;
$vararg_buffer = sp;
$1 = ((($0)) + 60|0);
$2 = load4($1);
store4($vararg_buffer,$2);
$3 = (___syscall6(6,($vararg_buffer|0))|0);
$4 = (___syscall_ret($3)|0);
STACKTOP = sp;return ($4|0);
}
function ___stdio_write($0,$1,$2) {
$0 = $0|0;
$1 = $1|0;
$2 = $2|0;
var $$0 = 0, $$056 = 0, $$058 = 0, $$059 = 0, $$061 = 0, $$1 = 0, $$157 = 0, $$160 = 0, $$phi$trans$insert = 0, $$pre = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0;
var $20 = 0, $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $29 = 0, $3 = 0, $30 = 0, $31 = 0, $32 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0;
var $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0, $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $6 = 0, $7 = 0, $8 = 0;
var $9 = 0, $vararg_buffer = 0, $vararg_buffer3 = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, $vararg_ptr6 = 0, $vararg_ptr7 = 0, label = 0, sp = 0;
sp = STACKTOP;
STACKTOP = STACKTOP + 48|0;
$vararg_buffer3 = sp + 16|0;
$vararg_buffer = sp;
$3 = sp + 32|0;
$4 = ((($0)) + 28|0);
$5 = load4($4);
store4($3,$5);
$6 = ((($3)) + 4|0);
$7 = ((($0)) + 20|0);
$8 = load4($7);
$9 = (($8) - ($5))|0;
store4($6,$9);
$10 = ((($3)) + 8|0);
store4($10,$1);
$11 = ((($3)) + 12|0);
store4($11,$2);
$12 = (($9) + ($2))|0;
$13 = ((($0)) + 60|0);
$14 = ((($0)) + 44|0);
$$056 = 2;$$058 = $12;$$059 = $3;
while(1) {
$15 = load4(1153140);
$16 = ($15|0)==(0|0);
if ($16) {
$20 = load4($13);
store4($vararg_buffer3,$20);
$vararg_ptr6 = ((($vararg_buffer3)) + 4|0);
store4($vararg_ptr6,$$059);
$vararg_ptr7 = ((($vararg_buffer3)) + 8|0);
store4($vararg_ptr7,$$056);
$21 = (___syscall146(146,($vararg_buffer3|0))|0);
$22 = (___syscall_ret($21)|0);
$$0 = $22;
} else {
_pthread_cleanup_push((1|0),($0|0));
$17 = load4($13);
store4($vararg_buffer,$17);
$vararg_ptr1 = ((($vararg_buffer)) + 4|0);
store4($vararg_ptr1,$$059);
$vararg_ptr2 = ((($vararg_buffer)) + 8|0);
store4($vararg_ptr2,$$056);
$18 = (___syscall146(146,($vararg_buffer|0))|0);
$19 = (___syscall_ret($18)|0);
_pthread_cleanup_pop(0);
$$0 = $19;
}
$23 = ($$058|0)==($$0|0);
if ($23) {
label = 6;
break;
}
$30 = ($$0|0)<(0);
if ($30) {
label = 8;
break;
}
$38 = (($$058) - ($$0))|0;
$39 = ((($$059)) + 4|0);
$40 = load4($39);
$41 = ($$0>>>0)>($40>>>0);
if ($41) {
$42 = load4($14);
store4($4,$42);
store4($7,$42);
$43 = (($$0) - ($40))|0;
$44 = ((($$059)) + 8|0);
$45 = (($$056) + -1)|0;
$$phi$trans$insert = ((($$059)) + 12|0);
$$pre = load4($$phi$trans$insert);
$$1 = $43;$$157 = $45;$$160 = $44;$53 = $$pre;
} else {
$46 = ($$056|0)==(2);
if ($46) {
$47 = load4($4);
$48 = (($47) + ($$0)|0);
store4($4,$48);
$$1 = $$0;$$157 = 2;$$160 = $$059;$53 = $40;
} else {
$$1 = $$0;$$157 = $$056;$$160 = $$059;$53 = $40;
}
}
$49 = load4($$160);
$50 = (($49) + ($$1)|0);
store4($$160,$50);
$51 = ((($$160)) + 4|0);
$52 = (($53) - ($$1))|0;
store4($51,$52);
$$056 = $$157;$$058 = $38;$$059 = $$160;
}
if ((label|0) == 6) {
$24 = load4($14);
$25 = ((($0)) + 48|0);
$26 = load4($25);
$27 = (($24) + ($26)|0);
$28 = ((($0)) + 16|0);
store4($28,$27);
$29 = $24;
store4($4,$29);
store4($7,$29);
$$061 = $2;
}
else if ((label|0) == 8) {
$31 = ((($0)) + 16|0);
store4($31,0);
store4($4,0);
store4($7,0);
$32 = load4($0);
$33 = $32 | 32;
store4($0,$33);
$34 = ($$056|0)==(2);
if ($34) {
$$061 = 0;
} else {
$35 = ((($$059)) + 4|0);
$36 = load4($35);
$37 = (($2) - ($36))|0;
$$061 = $37;
}
}
STACKTOP = sp;return ($$061|0);
}
function ___stdio_seek($0,$1,$2) {
$0 = $0|0;
$1 = $1|0;
$2 = $2|0;
var $$pre = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, $vararg_ptr3 = 0, $vararg_ptr4 = 0, label = 0, sp = 0;
sp = STACKTOP;
STACKTOP = STACKTOP + 32|0;
$vararg_buffer = sp;
$3 = sp + 20|0;
$4 = ((($0)) + 60|0);
$5 = load4($4);
store4($vararg_buffer,$5);
$vararg_ptr1 = ((($vararg_buffer)) + 4|0);
store4($vararg_ptr1,0);
$vararg_ptr2 = ((($vararg_buffer)) + 8|0);
store4($vararg_ptr2,$1);
$vararg_ptr3 = ((($vararg_buffer)) + 12|0);
store4($vararg_ptr3,$3);
$vararg_ptr4 = ((($vararg_buffer)) + 16|0);
store4($vararg_ptr4,$2);
$6 = (___syscall140(140,($vararg_buffer|0))|0);
$7 = (___syscall_ret($6)|0);
$8 = ($7|0)<(0);
if ($8) {
store4($3,-1);
$9 = -1;
} else {
$$pre = load4($3);
$9 = $$pre;
}
STACKTOP = sp;return ($9|0);
}
function ___syscall_ret($0) {
$0 = $0|0;
var $$0 = 0, $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
sp = STACKTOP;
$1 = ($0>>>0)>(4294963200);
if ($1) {
$2 = (0 - ($0))|0;
$3 = (___errno_location()|0);
store4($3,$2);
$$0 = -1;
} else {
$$0 = $0;
}
return ($$0|0);
}
function ___errno_location() {
var $$0 = 0, $0 = 0, $1 = 0, $2 = 0, $3 = 0, $4 = 0, label = 0, sp = 0;
sp = STACKTOP;
$0 = load4(1153140);
$1 = ($0|0)==(0|0);
if ($1) {
$$0 = 1153184;
} else {
$2 = (_pthread_self()|0);
$3 = ((($2)) + 64|0);
$4 = load4($3);
$$0 = $4;
}
return ($$0|0);
}
function _cleanup_387($0) {
$0 = $0|0;
var $1 = 0, $2 = 0, $3 = 0, label = 0, sp = 0;
sp = STACKTOP;
$1 = ((($0)) + 68|0);
$2 = load4($1);
$3 = ($2|0)==(0);
if ($3) {
___unlockfile($0);
}
return;
}
function ___unlockfile($0) {
$0 = $0|0;
var label = 0, sp = 0;
sp = STACKTOP;
return;
}
function ___stdout_write($0,$1,$2) {
$0 = $0|0;
$1 = $1|0;
$2 = $2|0;
var $10 = 0, $11 = 0, $12 = 0, $13 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $vararg_buffer = 0, $vararg_ptr1 = 0, $vararg_ptr2 = 0, label = 0, sp = 0;
sp = STACKTOP;
STACKTOP = STACKTOP + 80|0;
$vararg_buffer = sp;
$3 = sp + 12|0;
$4 = ((($0)) + 36|0);
store4($4,3);
$5 = load4($0);
$6 = $5 & 64;
$7 = ($6|0)==(0);
if ($7) {
$8 = ((($0)) + 60|0);
$9 = load4($8);
store4($vararg_buffer,$9);
$vararg_ptr1 = ((($vararg_buffer)) + 4|0);
store4($vararg_ptr1,21505);
$vararg_ptr2 = ((($vararg_buffer)) + 8|0);
store4($vararg_ptr2,$3);
$10 = (___syscall54(54,($vararg_buffer|0))|0);
$11 = ($10|0)==(0);
if (!($11)) {
$12 = ((($0)) + 75|0);
store1($12,-1);
}
}
$13 = (___stdio_write($0,$1,$2)|0);
STACKTOP = sp;return ($13|0);
}
function ___lockfile($0) {
$0 = $0|0;
var label = 0, sp = 0;
sp = STACKTOP;
return 0;
}
function _fflush($0) {
$0 = $0|0;
var $$0 = 0, $$023 = 0, $$02325 = 0, $$02327 = 0, $$024$lcssa = 0, $$02426 = 0, $$1 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0;
var $21 = 0, $22 = 0, $23 = 0, $24 = 0, $25 = 0, $26 = 0, $27 = 0, $28 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $phitmp = 0, label = 0, sp = 0;
sp = STACKTOP;
$1 = ($0|0)==(0|0);
do {
if ($1) {
$8 = load4(1136);
$9 = ($8|0)==(0|0);
if ($9) {
$28 = 0;
} else {
$10 = load4(1136);
$11 = (_fflush($10)|0);
$28 = $11;
}
___lock(((1153168)|0));
$$02325 = load4((1153164));
$12 = ($$02325|0)==(0|0);
if ($12) {
$$024$lcssa = $28;
} else {
$$02327 = $$02325;$$02426 = $28;
while(1) {
$13 = ((($$02327)) + 76|0);
$14 = load4($13);
$15 = ($14|0)>(-1);
if ($15) {
$16 = (___lockfile($$02327)|0);
$25 = $16;
} else {
$25 = 0;
}
$17 = ((($$02327)) + 20|0);
$18 = load4($17);
$19 = ((($$02327)) + 28|0);
$20 = load4($19);
$21 = ($18>>>0)>($20>>>0);
if ($21) {
$22 = (___fflush_unlocked($$02327)|0);
$23 = $22 | $$02426;
$$1 = $23;
} else {
$$1 = $$02426;
}
$24 = ($25|0)==(0);
if (!($24)) {
___unlockfile($$02327);
}
$26 = ((($$02327)) + 56|0);
$$023 = load4($26);
$27 = ($$023|0)==(0|0);
if ($27) {
$$024$lcssa = $$1;
break;
} else {
$$02327 = $$023;$$02426 = $$1;
}
}
}
___unlock(((1153168)|0));
$$0 = $$024$lcssa;
} else {
$2 = ((($0)) + 76|0);
$3 = load4($2);
$4 = ($3|0)>(-1);
if (!($4)) {
$5 = (___fflush_unlocked($0)|0);
$$0 = $5;
break;
}
$6 = (___lockfile($0)|0);
$phitmp = ($6|0)==(0);
$7 = (___fflush_unlocked($0)|0);
if ($phitmp) {
$$0 = $7;
} else {
___unlockfile($0);
$$0 = $7;
}
}
} while(0);
return ($$0|0);
}
function ___fflush_unlocked($0) {
$0 = $0|0;
var $$0 = 0, $1 = 0, $10 = 0, $11 = 0, $12 = 0, $13 = 0, $14 = 0, $15 = 0, $16 = 0, $17 = 0, $18 = 0, $19 = 0, $2 = 0, $20 = 0, $3 = 0, $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0;
var $9 = 0, label = 0, sp = 0;
sp = STACKTOP;
$1 = ((($0)) + 20|0);
$2 = load4($1);
$3 = ((($0)) + 28|0);
$4 = load4($3);
$5 = ($2>>>0)>($4>>>0);
if ($5) {
$6 = ((($0)) + 36|0);
$7 = load4($6);
(FUNCTION_TABLE_iiii[$7 & 3]($0,0,0)|0);
$8 = load4($1);
$9 = ($8|0)==(0|0);
if ($9) {
$$0 = -1;
} else {
label = 3;
}
} else {
label = 3;
}
if ((label|0) == 3) {
$10 = ((($0)) + 4|0);
$11 = load4($10);
$12 = ((($0)) + 8|0);
$13 = load4($12);
$14 = ($11>>>0)<($13>>>0);
if ($14) {
$15 = ((($0)) + 40|0);
$16 = load4($15);
$17 = $11;
$18 = $13;
$19 = (($17) - ($18))|0;
(FUNCTION_TABLE_iiii[$16 & 3]($0,$19,1)|0);
}
$20 = ((($0)) + 16|0);
store4($20,0);
store4($3,0);
store4($1,0);
store4($12,0);
store4($10,0);
$$0 = 0;
}
return ($$0|0);
}
function _malloc($0) {
$0 = $0|0;
var $$$0190$i = 0, $$$0191$i = 0, $$$4349$i = 0, $$$i = 0, $$0 = 0, $$0$i$i = 0, $$0$i$i$i = 0, $$0$i17$i = 0, $$0$i18$i = 0, $$01$i$i = 0, $$0187$i = 0, $$0189$i = 0, $$0190$i = 0, $$0191$i = 0, $$0197 = 0, $$0199 = 0, $$0206$i$i = 0, $$0207$i$i = 0, $$0211$i$i = 0, $$0212$i$i = 0;
var $$024370$i = 0, $$0286$i$i = 0, $$0287$i$i = 0, $$0288$i$i = 0, $$0294$i$i = 0, $$0295$i$i = 0, $$0340$i = 0, $$0342$i = 0, $$0343$i = 0, $$0345$i = 0, $$0351$i = 0, $$0356$i = 0, $$0357$$i = 0, $$0357$i = 0, $$0359$i = 0, $$0360$i = 0, $$0366$i = 0, $$1194$i = 0, $$1196$i = 0, $$124469$i = 0;
var $$1290$i$i = 0, $$1292$i$i = 0, $$1341$i = 0, $$1346$i = 0, $$1361$i = 0, $$1368$i = 0, $$1372$i = 0, $$2247$ph$i = 0, $$2253$ph$i = 0, $$2353$i = 0, $$3$i = 0, $$3$i$i = 0, $$3$i201 = 0, $$3348$i = 0, $$3370$i = 0, $$4$lcssa$i = 0, $$413$i = 0, $$4349$lcssa$i = 0, $$434912$i = 0, $$4355$$4$i = 0;
var $$4355$ph$i = 0, $$435511$i = 0, $$5256$i = 0, $$723947$i = 0, $$748$i = 0, $$not$i = 0, $$pre = 0, $$pre$i = 0, $$pre$i$i = 0, $$pre$i19$i = 0, $$pre$i205 = 0, $$pre$i208 = 0, $$pre$phi$i$iZ2D = 0, $$pre$phi$i20$iZ2D = 0, $$pre$phi$i206Z2D = 0, $$pre$phi$iZ2D = 0, $$pre$phi10$i$iZ2D = 0, $$pre$phiZ2D = 0, $$pre9$i$i = 0, $1 = 0;
var $10 = 0, $100 = 0, $1000 = 0, $1001 = 0, $1002 = 0, $1003 = 0, $1004 = 0, $1005 = 0, $1006 = 0, $1007 = 0, $1008 = 0, $1009 = 0, $101 = 0, $1010 = 0, $1011 = 0, $1012 = 0, $1013 = 0, $1014 = 0, $1015 = 0, $1016 = 0;
var $1017 = 0, $1018 = 0, $1019 = 0, $102 = 0, $1020 = 0, $1021 = 0, $1022 = 0, $1023 = 0, $1024 = 0, $1025 = 0, $1026 = 0, $1027 = 0, $1028 = 0, $1029 = 0, $103 = 0, $1030 = 0, $1031 = 0, $1032 = 0, $1033 = 0, $1034 = 0;
var $1035 = 0, $1036 = 0, $1037 = 0, $1038 = 0, $1039 = 0, $104 = 0, $1040 = 0, $1041 = 0, $1042 = 0, $1043 = 0, $1044 = 0, $1045 = 0, $1046 = 0, $1047 = 0, $1048 = 0, $1049 = 0, $105 = 0, $1050 = 0, $1051 = 0, $1052 = 0;
var $1053 = 0, $1054 = 0, $1055 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0, $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0;
var $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0, $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0;
var $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0, $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0;
var $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0, $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0;
var $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0, $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0;
var $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0, $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0;
var $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0, $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0;
var $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0, $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0;
var $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0, $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0;
var $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0, $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0;
var $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0, $297 = 0, $298 = 0, $299 = 0, $3 = 0, $30 = 0, $300 = 0;
var $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0, $314 = 0, $315 = 0, $316 = 0, $317 = 0, $318 = 0, $319 = 0;
var $32 = 0, $320 = 0, $321 = 0, $322 = 0, $323 = 0, $324 = 0, $325 = 0, $326 = 0, $327 = 0, $328 = 0, $329 = 0, $33 = 0, $330 = 0, $331 = 0, $332 = 0, $333 = 0, $334 = 0, $335 = 0, $336 = 0, $337 = 0;
var $338 = 0, $339 = 0, $34 = 0, $340 = 0, $341 = 0, $342 = 0, $343 = 0, $344 = 0, $345 = 0, $346 = 0, $347 = 0, $348 = 0, $349 = 0, $35 = 0, $350 = 0, $351 = 0, $352 = 0, $353 = 0, $354 = 0, $355 = 0;
var $356 = 0, $357 = 0, $358 = 0, $359 = 0, $36 = 0, $360 = 0, $361 = 0, $362 = 0, $363 = 0, $364 = 0, $365 = 0, $366 = 0, $367 = 0, $368 = 0, $369 = 0, $37 = 0, $370 = 0, $371 = 0, $372 = 0, $373 = 0;
var $374 = 0, $375 = 0, $376 = 0, $377 = 0, $378 = 0, $379 = 0, $38 = 0, $380 = 0, $381 = 0, $382 = 0, $383 = 0, $384 = 0, $385 = 0, $386 = 0, $387 = 0, $388 = 0, $389 = 0, $39 = 0, $390 = 0, $391 = 0;
var $392 = 0, $393 = 0, $394 = 0, $395 = 0, $396 = 0, $397 = 0, $398 = 0, $399 = 0, $4 = 0, $40 = 0, $400 = 0, $401 = 0, $402 = 0, $403 = 0, $404 = 0, $405 = 0, $406 = 0, $407 = 0, $408 = 0, $409 = 0;
var $41 = 0, $410 = 0, $411 = 0, $412 = 0, $413 = 0, $414 = 0, $415 = 0, $416 = 0, $417 = 0, $418 = 0, $419 = 0, $42 = 0, $420 = 0, $421 = 0, $422 = 0, $423 = 0, $424 = 0, $425 = 0, $426 = 0, $427 = 0;
var $428 = 0, $429 = 0, $43 = 0, $430 = 0, $431 = 0, $432 = 0, $433 = 0, $434 = 0, $435 = 0, $436 = 0, $437 = 0, $438 = 0, $439 = 0, $44 = 0, $440 = 0, $441 = 0, $442 = 0, $443 = 0, $444 = 0, $445 = 0;
var $446 = 0, $447 = 0, $448 = 0, $449 = 0, $45 = 0, $450 = 0, $451 = 0, $452 = 0, $453 = 0, $454 = 0, $455 = 0, $456 = 0, $457 = 0, $458 = 0, $459 = 0, $46 = 0, $460 = 0, $461 = 0, $462 = 0, $463 = 0;
var $464 = 0, $465 = 0, $466 = 0, $467 = 0, $468 = 0, $469 = 0, $47 = 0, $470 = 0, $471 = 0, $472 = 0, $473 = 0, $474 = 0, $475 = 0, $476 = 0, $477 = 0, $478 = 0, $479 = 0, $48 = 0, $480 = 0, $481 = 0;
var $482 = 0, $483 = 0, $484 = 0, $485 = 0, $486 = 0, $487 = 0, $488 = 0, $489 = 0, $49 = 0, $490 = 0, $491 = 0, $492 = 0, $493 = 0, $494 = 0, $495 = 0, $496 = 0, $497 = 0, $498 = 0, $499 = 0, $5 = 0;
var $50 = 0, $500 = 0, $501 = 0, $502 = 0, $503 = 0, $504 = 0, $505 = 0, $506 = 0, $507 = 0, $508 = 0, $509 = 0, $51 = 0, $510 = 0, $511 = 0, $512 = 0, $513 = 0, $514 = 0, $515 = 0, $516 = 0, $517 = 0;
var $518 = 0, $519 = 0, $52 = 0, $520 = 0, $521 = 0, $522 = 0, $523 = 0, $524 = 0, $525 = 0, $526 = 0, $527 = 0, $528 = 0, $529 = 0, $53 = 0, $530 = 0, $531 = 0, $532 = 0, $533 = 0, $534 = 0, $535 = 0;
var $536 = 0, $537 = 0, $538 = 0, $539 = 0, $54 = 0, $540 = 0, $541 = 0, $542 = 0, $543 = 0, $544 = 0, $545 = 0, $546 = 0, $547 = 0, $548 = 0, $549 = 0, $55 = 0, $550 = 0, $551 = 0, $552 = 0, $553 = 0;
var $554 = 0, $555 = 0, $556 = 0, $557 = 0, $558 = 0, $559 = 0, $56 = 0, $560 = 0, $561 = 0, $562 = 0, $563 = 0, $564 = 0, $565 = 0, $566 = 0, $567 = 0, $568 = 0, $569 = 0, $57 = 0, $570 = 0, $571 = 0;
var $572 = 0, $573 = 0, $574 = 0, $575 = 0, $576 = 0, $577 = 0, $578 = 0, $579 = 0, $58 = 0, $580 = 0, $581 = 0, $582 = 0, $583 = 0, $584 = 0, $585 = 0, $586 = 0, $587 = 0, $588 = 0, $589 = 0, $59 = 0;
var $590 = 0, $591 = 0, $592 = 0, $593 = 0, $594 = 0, $595 = 0, $596 = 0, $597 = 0, $598 = 0, $599 = 0, $6 = 0, $60 = 0, $600 = 0, $601 = 0, $602 = 0, $603 = 0, $604 = 0, $605 = 0, $606 = 0, $607 = 0;
var $608 = 0, $609 = 0, $61 = 0, $610 = 0, $611 = 0, $612 = 0, $613 = 0, $614 = 0, $615 = 0, $616 = 0, $617 = 0, $618 = 0, $619 = 0, $62 = 0, $620 = 0, $621 = 0, $622 = 0, $623 = 0, $624 = 0, $625 = 0;
var $626 = 0, $627 = 0, $628 = 0, $629 = 0, $63 = 0, $630 = 0, $631 = 0, $632 = 0, $633 = 0, $634 = 0, $635 = 0, $636 = 0, $637 = 0, $638 = 0, $639 = 0, $64 = 0, $640 = 0, $641 = 0, $642 = 0, $643 = 0;
var $644 = 0, $645 = 0, $646 = 0, $647 = 0, $648 = 0, $649 = 0, $65 = 0, $650 = 0, $651 = 0, $652 = 0, $653 = 0, $654 = 0, $655 = 0, $656 = 0, $657 = 0, $658 = 0, $659 = 0, $66 = 0, $660 = 0, $661 = 0;
var $662 = 0, $663 = 0, $664 = 0, $665 = 0, $666 = 0, $667 = 0, $668 = 0, $669 = 0, $67 = 0, $670 = 0, $671 = 0, $672 = 0, $673 = 0, $674 = 0, $675 = 0, $676 = 0, $677 = 0, $678 = 0, $679 = 0, $68 = 0;
var $680 = 0, $681 = 0, $682 = 0, $683 = 0, $684 = 0, $685 = 0, $686 = 0, $687 = 0, $688 = 0, $689 = 0, $69 = 0, $690 = 0, $691 = 0, $692 = 0, $693 = 0, $694 = 0, $695 = 0, $696 = 0, $697 = 0, $698 = 0;
var $699 = 0, $7 = 0, $70 = 0, $700 = 0, $701 = 0, $702 = 0, $703 = 0, $704 = 0, $705 = 0, $706 = 0, $707 = 0, $708 = 0, $709 = 0, $71 = 0, $710 = 0, $711 = 0, $712 = 0, $713 = 0, $714 = 0, $715 = 0;
var $716 = 0, $717 = 0, $718 = 0, $719 = 0, $72 = 0, $720 = 0, $721 = 0, $722 = 0, $723 = 0, $724 = 0, $725 = 0, $726 = 0, $727 = 0, $728 = 0, $729 = 0, $73 = 0, $730 = 0, $731 = 0, $732 = 0, $733 = 0;
var $734 = 0, $735 = 0, $736 = 0, $737 = 0, $738 = 0, $739 = 0, $74 = 0, $740 = 0, $741 = 0, $742 = 0, $743 = 0, $744 = 0, $745 = 0, $746 = 0, $747 = 0, $748 = 0, $749 = 0, $75 = 0, $750 = 0, $751 = 0;
var $752 = 0, $753 = 0, $754 = 0, $755 = 0, $756 = 0, $757 = 0, $758 = 0, $759 = 0, $76 = 0, $760 = 0, $761 = 0, $762 = 0, $763 = 0, $764 = 0, $765 = 0, $766 = 0, $767 = 0, $768 = 0, $769 = 0, $77 = 0;
var $770 = 0, $771 = 0, $772 = 0, $773 = 0, $774 = 0, $775 = 0, $776 = 0, $777 = 0, $778 = 0, $779 = 0, $78 = 0, $780 = 0, $781 = 0, $782 = 0, $783 = 0, $784 = 0, $785 = 0, $786 = 0, $787 = 0, $788 = 0;
var $789 = 0, $79 = 0, $790 = 0, $791 = 0, $792 = 0, $793 = 0, $794 = 0, $795 = 0, $796 = 0, $797 = 0, $798 = 0, $799 = 0, $8 = 0, $80 = 0, $800 = 0, $801 = 0, $802 = 0, $803 = 0, $804 = 0, $805 = 0;
var $806 = 0, $807 = 0, $808 = 0, $809 = 0, $81 = 0, $810 = 0, $811 = 0, $812 = 0, $813 = 0, $814 = 0, $815 = 0, $816 = 0, $817 = 0, $818 = 0, $819 = 0, $82 = 0, $820 = 0, $821 = 0, $822 = 0, $823 = 0;
var $824 = 0, $825 = 0, $826 = 0, $827 = 0, $828 = 0, $829 = 0, $83 = 0, $830 = 0, $831 = 0, $832 = 0, $833 = 0, $834 = 0, $835 = 0, $836 = 0, $837 = 0, $838 = 0, $839 = 0, $84 = 0, $840 = 0, $841 = 0;
var $842 = 0, $843 = 0, $844 = 0, $845 = 0, $846 = 0, $847 = 0, $848 = 0, $849 = 0, $85 = 0, $850 = 0, $851 = 0, $852 = 0, $853 = 0, $854 = 0, $855 = 0, $856 = 0, $857 = 0, $858 = 0, $859 = 0, $86 = 0;
var $860 = 0, $861 = 0, $862 = 0, $863 = 0, $864 = 0, $865 = 0, $866 = 0, $867 = 0, $868 = 0, $869 = 0, $87 = 0, $870 = 0, $871 = 0, $872 = 0, $873 = 0, $874 = 0, $875 = 0, $876 = 0, $877 = 0, $878 = 0;
var $879 = 0, $88 = 0, $880 = 0, $881 = 0, $882 = 0, $883 = 0, $884 = 0, $885 = 0, $886 = 0, $887 = 0, $888 = 0, $889 = 0, $89 = 0, $890 = 0, $891 = 0, $892 = 0, $893 = 0, $894 = 0, $895 = 0, $896 = 0;
var $897 = 0, $898 = 0, $899 = 0, $9 = 0, $90 = 0, $900 = 0, $901 = 0, $902 = 0, $903 = 0, $904 = 0, $905 = 0, $906 = 0, $907 = 0, $908 = 0, $909 = 0, $91 = 0, $910 = 0, $911 = 0, $912 = 0, $913 = 0;
var $914 = 0, $915 = 0, $916 = 0, $917 = 0, $918 = 0, $919 = 0, $92 = 0, $920 = 0, $921 = 0, $922 = 0, $923 = 0, $924 = 0, $925 = 0, $926 = 0, $927 = 0, $928 = 0, $929 = 0, $93 = 0, $930 = 0, $931 = 0;
var $932 = 0, $933 = 0, $934 = 0, $935 = 0, $936 = 0, $937 = 0, $938 = 0, $939 = 0, $94 = 0, $940 = 0, $941 = 0, $942 = 0, $943 = 0, $944 = 0, $945 = 0, $946 = 0, $947 = 0, $948 = 0, $949 = 0, $95 = 0;
var $950 = 0, $951 = 0, $952 = 0, $953 = 0, $954 = 0, $955 = 0, $956 = 0, $957 = 0, $958 = 0, $959 = 0, $96 = 0, $960 = 0, $961 = 0, $962 = 0, $963 = 0, $964 = 0, $965 = 0, $966 = 0, $967 = 0, $968 = 0;
var $969 = 0, $97 = 0, $970 = 0, $971 = 0, $972 = 0, $973 = 0, $974 = 0, $975 = 0, $976 = 0, $977 = 0, $978 = 0, $979 = 0, $98 = 0, $980 = 0, $981 = 0, $982 = 0, $983 = 0, $984 = 0, $985 = 0, $986 = 0;
var $987 = 0, $988 = 0, $989 = 0, $99 = 0, $990 = 0, $991 = 0, $992 = 0, $993 = 0, $994 = 0, $995 = 0, $996 = 0, $997 = 0, $998 = 0, $999 = 0, $cond$i = 0, $cond$i$i = 0, $cond$i204 = 0, $exitcond$i$i = 0, $not$$i$i = 0, $not$$i22$i = 0;
var $not$7$i = 0, $or$cond$i = 0, $or$cond$i211 = 0, $or$cond1$i = 0, $or$cond1$i210 = 0, $or$cond10$i = 0, $or$cond11$i = 0, $or$cond12$i = 0, $or$cond2$i = 0, $or$cond5$i = 0, $or$cond50$i = 0, $or$cond7$i = 0, label = 0, sp = 0;
sp = STACKTOP;
STACKTOP = STACKTOP + 16|0;
$1 = sp;
$2 = ($0>>>0)<(245);
do {
if ($2) {
$3 = ($0>>>0)<(11);
$4 = (($0) + 11)|0;
$5 = $4 & -8;
$6 = $3 ? 16 : $5;
$7 = $6 >>> 3;
$8 = load4(1153188);
$9 = $8 >>> $7;
$10 = $9 & 3;
$11 = ($10|0)==(0);
if (!($11)) {
$12 = $9 & 1;
$13 = $12 ^ 1;
$14 = (($13) + ($7))|0;
$15 = $14 << 1;
$16 = (1153228 + ($15<<2)|0);
$17 = ((($16)) + 8|0);
$18 = load4($17);
$19 = ((($18)) + 8|0);
$20 = load4($19);
$21 = ($16|0)==($20|0);
do {
if ($21) {
$22 = 1 << $14;
$23 = $22 ^ -1;
$24 = $8 & $23;
store4(1153188,$24);
} else {
$25 = load4((1153204));
$26 = ($20>>>0)<($25>>>0);
if ($26) {
_abort();
// unreachable;
}
$27 = ((($20)) + 12|0);
$28 = load4($27);
$29 = ($28|0)==($18|0);
if ($29) {
store4($27,$16);
store4($17,$20);
break;
} else {
_abort();
// unreachable;
}
}
} while(0);
$30 = $14 << 3;
$31 = $30 | 3;
$32 = ((($18)) + 4|0);
store4($32,$31);
$33 = (($18) + ($30)|0);
$34 = ((($33)) + 4|0);
$35 = load4($34);
$36 = $35 | 1;
store4($34,$36);
$$0 = $19;
STACKTOP = sp;return ($$0|0);
}
$37 = load4((1153196));
$38 = ($6>>>0)>($37>>>0);
if ($38) {
$39 = ($9|0)==(0);
if (!($39)) {
$40 = $9 << $7;
$41 = 2 << $7;
$42 = (0 - ($41))|0;
$43 = $41 | $42;
$44 = $40 & $43;
$45 = (0 - ($44))|0;
$46 = $44 & $45;
$47 = (($46) + -1)|0;
$48 = $47 >>> 12;
$49 = $48 & 16;
$50 = $47 >>> $49;
$51 = $50 >>> 5;
$52 = $51 & 8;
$53 = $52 | $49;
$54 = $50 >>> $52;
$55 = $54 >>> 2;
$56 = $55 & 4;
$57 = $53 | $56;
$58 = $54 >>> $56;
$59 = $58 >>> 1;
$60 = $59 & 2;
$61 = $57 | $60;
$62 = $58 >>> $60;
$63 = $62 >>> 1;
$64 = $63 & 1;
$65 = $61 | $64;
$66 = $62 >>> $64;
$67 = (($65) + ($66))|0;
$68 = $67 << 1;
$69 = (1153228 + ($68<<2)|0);
$70 = ((($69)) + 8|0);
$71 = load4($70);
$72 = ((($71)) + 8|0);
$73 = load4($72);
$74 = ($69|0)==($73|0);
do {
if ($74) {
$75 = 1 << $67;
$76 = $75 ^ -1;
$77 = $8 & $76;
store4(1153188,$77);
$98 = $77;
} else {
$78 = load4((1153204));
$79 = ($73>>>0)<($78>>>0);
if ($79) {
_abort();
// unreachable;
}
$80 = ((($73)) + 12|0);
$81 = load4($80);
$82 = ($81|0)==($71|0);
if ($82) {
store4($80,$69);
store4($70,$73);
$98 = $8;
break;
} else {
_abort();
// unreachable;
}
}
} while(0);
$83 = $67 << 3;
$84 = (($83) - ($6))|0;
$85 = $6 | 3;
$86 = ((($71)) + 4|0);
store4($86,$85);
$87 = (($71) + ($6)|0);
$88 = $84 | 1;
$89 = ((($87)) + 4|0);
store4($89,$88);
$90 = (($87) + ($84)|0);
store4($90,$84);
$91 = ($37|0)==(0);
if (!($91)) {
$92 = load4((1153208));
$93 = $37 >>> 3;
$94 = $93 << 1;
$95 = (1153228 + ($94<<2)|0);
$96 = 1 << $93;
$97 = $98 & $96;
$99 = ($97|0)==(0);
if ($99) {
$100 = $98 | $96;
store4(1153188,$100);
$$pre = ((($95)) + 8|0);
$$0199 = $95;$$pre$phiZ2D = $$pre;
} else {
$101 = ((($95)) + 8|0);
$102 = load4($101);
$103 = load4((1153204));
$104 = ($102>>>0)<($103>>>0);
if ($104) {
_abort();
// unreachable;
} else {
$$0199 = $102;$$pre$phiZ2D = $101;
}
}
store4($$pre$phiZ2D,$92);
$105 = ((($$0199)) + 12|0);
store4($105,$92);
$106 = ((($92)) + 8|0);
store4($106,$$0199);
$107 = ((($92)) + 12|0);
store4($107,$95);
}
store4((1153196),$84);
store4((1153208),$87);
$$0 = $72;
STACKTOP = sp;return ($$0|0);
}
$108 = load4((1153192));
$109 = ($108|0)==(0);
if ($109) {
$$0197 = $6;
} else {
$110 = (0 - ($108))|0;
$111 = $108 & $110;
$112 = (($111) + -1)|0;
$113 = $112 >>> 12;
$114 = $113 & 16;
$115 = $112 >>> $114;
$116 = $115 >>> 5;
$117 = $116 & 8;
$118 = $117 | $114;
$119 = $115 >>> $117;
$120 = $119 >>> 2;
$121 = $120 & 4;
$122 = $118 | $121;
$123 = $119 >>> $121;
$124 = $123 >>> 1;
$125 = $124 & 2;
$126 = $122 | $125;
$127 = $123 >>> $125;
$128 = $127 >>> 1;
$129 = $128 & 1;
$130 = $126 | $129;
$131 = $127 >>> $129;
$132 = (($130) + ($131))|0;
$133 = (1153492 + ($132<<2)|0);
$134 = load4($133);
$135 = ((($134)) + 4|0);
$136 = load4($135);
$137 = $136 & -8;
$138 = (($137) - ($6))|0;
$$0189$i = $134;$$0190$i = $134;$$0191$i = $138;
while(1) {
$139 = ((($$0189$i)) + 16|0);
$140 = load4($139);
$141 = ($140|0)==(0|0);
if ($141) {
$142 = ((($$0189$i)) + 20|0);
$143 = load4($142);
$144 = ($143|0)==(0|0);
if ($144) {
break;
} else {
$146 = $143;
}
} else {
$146 = $140;
}
$145 = ((($146)) + 4|0);
$147 = load4($145);
$148 = $147 & -8;
$149 = (($148) - ($6))|0;
$150 = ($149>>>0)<($$0191$i>>>0);
$$$0191$i = $150 ? $149 : $$0191$i;
$$$0190$i = $150 ? $146 : $$0190$i;
$$0189$i = $146;$$0190$i = $$$0190$i;$$0191$i = $$$0191$i;
}
$151 = load4((1153204));
$152 = ($$0190$i>>>0)<($151>>>0);
if ($152) {
_abort();
// unreachable;
}
$153 = (($$0190$i) + ($6)|0);
$154 = ($$0190$i>>>0)<($153>>>0);
if (!($154)) {
_abort();
// unreachable;
}
$155 = ((($$0190$i)) + 24|0);
$156 = load4($155);
$157 = ((($$0190$i)) + 12|0);
$158 = load4($157);
$159 = ($158|0)==($$0190$i|0);
do {
if ($159) {
$169 = ((($$0190$i)) + 20|0);
$170 = load4($169);
$171 = ($170|0)==(0|0);
if ($171) {
$172 = ((($$0190$i)) + 16|0);
$173 = load4($172);
$174 = ($173|0)==(0|0);
if ($174) {
$$3$i = 0;
break;
} else {
$$1194$i = $173;$$1196$i = $172;
}
} else {
$$1194$i = $170;$$1196$i = $169;
}
while(1) {
$175 = ((($$1194$i)) + 20|0);
$176 = load4($175);
$177 = ($176|0)==(0|0);
if (!($177)) {
$$1194$i = $176;$$1196$i = $175;
continue;
}
$178 = ((($$1194$i)) + 16|0);
$179 = load4($178);
$180 = ($179|0)==(0|0);
if ($180) {
break;
} else {
$$1194$i = $179;$$1196$i = $178;
}
}
$181 = ($$1196$i>>>0)<($151>>>0);
if ($181) {
_abort();
// unreachable;
} else {
store4($$1196$i,0);
$$3$i = $$1194$i;
break;
}
} else {
$160 = ((($$0190$i)) + 8|0);
$161 = load4($160);
$162 = ($161>>>0)<($151>>>0);
if ($162) {
_abort();
// unreachable;
}
$163 = ((($161)) + 12|0);
$164 = load4($163);
$165 = ($164|0)==($$0190$i|0);
if (!($165)) {
_abort();
// unreachable;
}
$166 = ((($158)) + 8|0);
$167 = load4($166);
$168 = ($167|0)==($$0190$i|0);
if ($168) {
store4($163,$158);
store4($166,$161);
$$3$i = $158;
break;
} else {
_abort();
// unreachable;
}
}
} while(0);
$182 = ($156|0)==(0|0);
do {
if (!($182)) {
$183 = ((($$0190$i)) + 28|0);
$184 = load4($183);
$185 = (1153492 + ($184<<2)|0);
$186 = load4($185);
$187 = ($$0190$i|0)==($186|0);
if ($187) {
store4($185,$$3$i);
$cond$i = ($$3$i|0)==(0|0);
if ($cond$i) {
$188 = 1 << $184;
$189 = $188 ^ -1;
$190 = $108 & $189;
store4((1153192),$190);
break;
}
} else {
$191 = load4((1153204));
$192 = ($156>>>0)<($191>>>0);
if ($192) {
_abort();
// unreachable;
}
$193 = ((($156)) + 16|0);
$194 = load4($193);
$195 = ($194|0)==($$0190$i|0);
if ($195) {
store4($193,$$3$i);
} else {
$196 = ((($156)) + 20|0);
store4($196,$$3$i);
}
$197 = ($$3$i|0)==(0|0);
if ($197) {
break;
}
}
$198 = load4((1153204));
$199 = ($$3$i>>>0)<($198>>>0);
if ($199) {
_abort();
// unreachable;
}
$200 = ((($$3$i)) + 24|0);
store4($200,$156);
$201 = ((($$0190$i)) + 16|0);
$202 = load4($201);
$203 = ($202|0)==(0|0);
do {
if (!($203)) {
$204 = ($202>>>0)<($198>>>0);
if ($204) {
_abort();
// unreachable;
} else {
$205 = ((($$3$i)) + 16|0);
store4($205,$202);
$206 = ((($202)) + 24|0);
store4($206,$$3$i);
break;
}
}
} while(0);
$207 = ((($$0190$i)) + 20|0);
$208 = load4($207);
$209 = ($208|0)==(0|0);
if (!($209)) {
$210 = load4((1153204));
$211 = ($208>>>0)<($210>>>0);
if ($211) {
_abort();
// unreachable;
} else {
$212 = ((($$3$i)) + 20|0);
store4($212,$208);
$213 = ((($208)) + 24|0);
store4($213,$$3$i);
break;
}
}
}
} while(0);
$214 = ($$0191$i>>>0)<(16);
if ($214) {
$215 = (($$0191$i) + ($6))|0;
$216 = $215 | 3;
$217 = ((($$0190$i)) + 4|0);
store4($217,$216);
$218 = (($$0190$i) + ($215)|0);
$219 = ((($218)) + 4|0);
$220 = load4($219);
$221 = $220 | 1;
store4($219,$221);
} else {
$222 = $6 | 3;
$223 = ((($$0190$i)) + 4|0);
store4($223,$222);
$224 = $$0191$i | 1;
$225 = ((($153)) + 4|0);
store4($225,$224);
$226 = (($153) + ($$0191$i)|0);
store4($226,$$0191$i);
$227 = ($37|0)==(0);
if (!($227)) {
$228 = load4((1153208));
$229 = $37 >>> 3;
$230 = $229 << 1;
$231 = (1153228 + ($230<<2)|0);
$232 = 1 << $229;
$233 = $8 & $232;
$234 = ($233|0)==(0);
if ($234) {
$235 = $8 | $232;
store4(1153188,$235);
$$pre$i = ((($231)) + 8|0);
$$0187$i = $231;$$pre$phi$iZ2D = $$pre$i;
} else {
$236 = ((($231)) + 8|0);
$237 = load4($236);
$238 = load4((1153204));
$239 = ($237>>>0)<($238>>>0);
if ($239) {
_abort();
// unreachable;
} else {
$$0187$i = $237;$$pre$phi$iZ2D = $236;
}
}
store4($$pre$phi$iZ2D,$228);
$240 = ((($$0187$i)) + 12|0);
store4($240,$228);
$241 = ((($228)) + 8|0);
store4($241,$$0187$i);
$242 = ((($228)) + 12|0);
store4($242,$231);
}
store4((1153196),$$0191$i);
store4((1153208),$153);
}
$243 = ((($$0190$i)) + 8|0);
$$0 = $243;
STACKTOP = sp;return ($$0|0);
}
} else {
$$0197 = $6;
}
} else {
$244 = ($0>>>0)>(4294967231);
if ($244) {
$$0197 = -1;
} else {
$245 = (($0) + 11)|0;
$246 = $245 & -8;
$247 = load4((1153192));
$248 = ($247|0)==(0);
if ($248) {
$$0197 = $246;
} else {
$249 = (0 - ($246))|0;
$250 = $245 >>> 8;
$251 = ($250|0)==(0);
if ($251) {
$$0356$i = 0;
} else {
$252 = ($246>>>0)>(16777215);
if ($252) {
$$0356$i = 31;
} else {
$253 = (($250) + 1048320)|0;
$254 = $253 >>> 16;
$255 = $254 & 8;
$256 = $250 << $255;
$257 = (($256) + 520192)|0;
$258 = $257 >>> 16;
$259 = $258 & 4;
$260 = $259 | $255;
$261 = $256 << $259;
$262 = (($261) + 245760)|0;
$263 = $262 >>> 16;
$264 = $263 & 2;
$265 = $260 | $264;
$266 = (14 - ($265))|0;
$267 = $261 << $264;
$268 = $267 >>> 15;
$269 = (($266) + ($268))|0;
$270 = $269 << 1;
$271 = (($269) + 7)|0;
$272 = $246 >>> $271;
$273 = $272 & 1;
$274 = $273 | $270;
$$0356$i = $274;
}
}
$275 = (1153492 + ($$0356$i<<2)|0);
$276 = load4($275);
$277 = ($276|0)==(0|0);
L123: do {
if ($277) {
$$2353$i = 0;$$3$i201 = 0;$$3348$i = $249;
label = 86;
} else {
$278 = ($$0356$i|0)==(31);
$279 = $$0356$i >>> 1;
$280 = (25 - ($279))|0;
$281 = $278 ? 0 : $280;
$282 = $246 << $281;
$$0340$i = 0;$$0345$i = $249;$$0351$i = $276;$$0357$i = $282;$$0360$i = 0;
while(1) {
$283 = ((($$0351$i)) + 4|0);
$284 = load4($283);
$285 = $284 & -8;
$286 = (($285) - ($246))|0;
$287 = ($286>>>0)<($$0345$i>>>0);
if ($287) {
$288 = ($286|0)==(0);
if ($288) {
$$413$i = $$0351$i;$$434912$i = 0;$$435511$i = $$0351$i;
label = 90;
break L123;
} else {
$$1341$i = $$0351$i;$$1346$i = $286;
}
} else {
$$1341$i = $$0340$i;$$1346$i = $$0345$i;
}
$289 = ((($$0351$i)) + 20|0);
$290 = load4($289);
$291 = $$0357$i >>> 31;
$292 = (((($$0351$i)) + 16|0) + ($291<<2)|0);
$293 = load4($292);
$294 = ($290|0)==(0|0);
$295 = ($290|0)==($293|0);
$or$cond1$i = $294 | $295;
$$1361$i = $or$cond1$i ? $$0360$i : $290;
$296 = ($293|0)==(0|0);
$297 = $296&1;
$298 = $297 ^ 1;
$$0357$$i = $$0357$i << $298;
if ($296) {
$$2353$i = $$1361$i;$$3$i201 = $$1341$i;$$3348$i = $$1346$i;
label = 86;
break;
} else {
$$0340$i = $$1341$i;$$0345$i = $$1346$i;$$0351$i = $293;$$0357$i = $$0357$$i;$$0360$i = $$1361$i;
}
}
}
} while(0);
if ((label|0) == 86) {
$299 = ($$2353$i|0)==(0|0);
$300 = ($$3$i201|0)==(0|0);
$or$cond$i = $299 & $300;
if ($or$cond$i) {
$301 = 2 << $$0356$i;
$302 = (0 - ($301))|0;
$303 = $301 | $302;
$304 = $247 & $303;
$305 = ($304|0)==(0);
if ($305) {
$$0197 = $246;
break;
}
$306 = (0 - ($304))|0;
$307 = $304 & $306;
$308 = (($307) + -1)|0;
$309 = $308 >>> 12;
$310 = $309 & 16;
$311 = $308 >>> $310;
$312 = $311 >>> 5;
$313 = $312 & 8;
$314 = $313 | $310;
$315 = $311 >>> $313;
$316 = $315 >>> 2;
$317 = $316 & 4;
$318 = $314 | $317;
$319 = $315 >>> $317;
$320 = $319 >>> 1;
$321 = $320 & 2;
$322 = $318 | $321;
$323 = $319 >>> $321;
$324 = $323 >>> 1;
$325 = $324 & 1;
$326 = $322 | $325;
$327 = $323 >>> $325;
$328 = (($326) + ($327))|0;
$329 = (1153492 + ($328<<2)|0);
$330 = load4($329);
$$4355$ph$i = $330;
} else {
$$4355$ph$i = $$2353$i;
}
$331 = ($$4355$ph$i|0)==(0|0);
if ($331) {
$$4$lcssa$i = $$3$i201;$$4349$lcssa$i = $$3348$i;
} else {
$$413$i = $$3$i201;$$434912$i = $$3348$i;$$435511$i = $$4355$ph$i;
label = 90;
}
}
if ((label|0) == 90) {
while(1) {
label = 0;
$332 = ((($$435511$i)) + 4|0);
$333 = load4($332);
$334 = $333 & -8;
$335 = (($334) - ($246))|0;
$336 = ($335>>>0)<($$434912$i>>>0);
$$$4349$i = $336 ? $335 : $$434912$i;
$$4355$$4$i = $336 ? $$435511$i : $$413$i;
$337 = ((($$435511$i)) + 16|0);
$338 = load4($337);
$339 = ($338|0)==(0|0);
if (!($339)) {
$$413$i = $$4355$$4$i;$$434912$i = $$$4349$i;$$435511$i = $338;
label = 90;
continue;
}
$340 = ((($$435511$i)) + 20|0);
$341 = load4($340);
$342 = ($341|0)==(0|0);
if ($342) {
$$4$lcssa$i = $$4355$$4$i;$$4349$lcssa$i = $$$4349$i;
break;
} else {
$$413$i = $$4355$$4$i;$$434912$i = $$$4349$i;$$435511$i = $341;
label = 90;
}
}
}
$343 = ($$4$lcssa$i|0)==(0|0);
if ($343) {
$$0197 = $246;
} else {
$344 = load4((1153196));
$345 = (($344) - ($246))|0;
$346 = ($$4349$lcssa$i>>>0)<($345>>>0);
if ($346) {
$347 = load4((1153204));
$348 = ($$4$lcssa$i>>>0)<($347>>>0);
if ($348) {
_abort();
// unreachable;
}
$349 = (($$4$lcssa$i) + ($246)|0);
$350 = ($$4$lcssa$i>>>0)<($349>>>0);
if (!($350)) {
_abort();
// unreachable;
}
$351 = ((($$4$lcssa$i)) + 24|0);
$352 = load4($351);
$353 = ((($$4$lcssa$i)) + 12|0);
$354 = load4($353);
$355 = ($354|0)==($$4$lcssa$i|0);
do {
if ($355) {
$365 = ((($$4$lcssa$i)) + 20|0);
$366 = load4($365);
$367 = ($366|0)==(0|0);
if ($367) {
$368 = ((($$4$lcssa$i)) + 16|0);
$369 = load4($368);
$370 = ($369|0)==(0|0);
if ($370) {
$$3370$i = 0;
break;
} else {
$$1368$i = $369;$$1372$i = $368;
}
} else {
$$1368$i = $366;$$1372$i = $365;
}
while(1) {
$371 = ((($$1368$i)) + 20|0);
$372 = load4($371);
$373 = ($372|0)==(0|0);
if (!($373)) {
$$1368$i = $372;$$1372$i = $371;
continue;
}
$374 = ((($$1368$i)) + 16|0);
$375 = load4($374);
$376 = ($375|0)==(0|0);
if ($376) {
break;
} else {
$$1368$i = $375;$$1372$i = $374;
}
}
$377 = ($$1372$i>>>0)<($347>>>0);
if ($377) {
_abort();
// unreachable;
} else {
store4($$1372$i,0);
$$3370$i = $$1368$i;
break;
}
} else {
$356 = ((($$4$lcssa$i)) + 8|0);
$357 = load4($356);
$358 = ($357>>>0)<($347>>>0);
if ($358) {
_abort();
// unreachable;
}
$359 = ((($357)) + 12|0);
$360 = load4($359);
$361 = ($360|0)==($$4$lcssa$i|0);
if (!($361)) {
_abort();
// unreachable;
}
$362 = ((($354)) + 8|0);
$363 = load4($362);
$364 = ($363|0)==($$4$lcssa$i|0);
if ($364) {
store4($359,$354);
store4($362,$357);
$$3370$i = $354;
break;
} else {
_abort();
// unreachable;
}
}
} while(0);
$378 = ($352|0)==(0|0);
do {
if ($378) {
$470 = $247;
} else {
$379 = ((($$4$lcssa$i)) + 28|0);
$380 = load4($379);
$381 = (1153492 + ($380<<2)|0);
$382 = load4($381);
$383 = ($$4$lcssa$i|0)==($382|0);
if ($383) {
store4($381,$$3370$i);
$cond$i204 = ($$3370$i|0)==(0|0);
if ($cond$i204) {
$384 = 1 << $380;
$385 = $384 ^ -1;
$386 = $247 & $385;
store4((1153192),$386);
$470 = $386;
break;
}
} else {
$387 = load4((1153204));
$388 = ($352>>>0)<($387>>>0);
if ($388) {
_abort();
// unreachable;
}
$389 = ((($352)) + 16|0);
$390 = load4($389);
$391 = ($390|0)==($$4$lcssa$i|0);
if ($391) {
store4($389,$$3370$i);
} else {
$392 = ((($352)) + 20|0);
store4($392,$$3370$i);
}
$393 = ($$3370$i|0)==(0|0);
if ($393) {
$470 = $247;
break;
}
}
$394 = load4((1153204));
$395 = ($$3370$i>>>0)<($394>>>0);
if ($395) {
_abort();
// unreachable;
}
$396 = ((($$3370$i)) + 24|0);
store4($396,$352);
$397 = ((($$4$lcssa$i)) + 16|0);
$398 = load4($397);
$399 = ($398|0)==(0|0);
do {
if (!($399)) {
$400 = ($398>>>0)<($394>>>0);
if ($400) {
_abort();
// unreachable;
} else {
$401 = ((($$3370$i)) + 16|0);
store4($401,$398);
$402 = ((($398)) + 24|0);
store4($402,$$3370$i);
break;
}
}
} while(0);
$403 = ((($$4$lcssa$i)) + 20|0);
$404 = load4($403);
$405 = ($404|0)==(0|0);
if ($405) {
$470 = $247;
} else {
$406 = load4((1153204));
$407 = ($404>>>0)<($406>>>0);
if ($407) {
_abort();
// unreachable;
} else {
$408 = ((($$3370$i)) + 20|0);
store4($408,$404);
$409 = ((($404)) + 24|0);
store4($409,$$3370$i);
$470 = $247;
break;
}
}
}
} while(0);
$410 = ($$4349$lcssa$i>>>0)<(16);
do {
if ($410) {
$411 = (($$4349$lcssa$i) + ($246))|0;
$412 = $411 | 3;
$413 = ((($$4$lcssa$i)) + 4|0);
store4($413,$412);
$414 = (($$4$lcssa$i) + ($411)|0);
$415 = ((($414)) + 4|0);
$416 = load4($415);
$417 = $416 | 1;
store4($415,$417);
} else {
$418 = $246 | 3;
$419 = ((($$4$lcssa$i)) + 4|0);
store4($419,$418);
$420 = $$4349$lcssa$i | 1;
$421 = ((($349)) + 4|0);
store4($421,$420);
$422 = (($349) + ($$4349$lcssa$i)|0);
store4($422,$$4349$lcssa$i);
$423 = $$4349$lcssa$i >>> 3;
$424 = ($$4349$lcssa$i>>>0)<(256);
if ($424) {
$425 = $423 << 1;
$426 = (1153228 + ($425<<2)|0);
$427 = load4(1153188);
$428 = 1 << $423;
$429 = $427 & $428;
$430 = ($429|0)==(0);
if ($430) {
$431 = $427 | $428;
store4(1153188,$431);
$$pre$i205 = ((($426)) + 8|0);
$$0366$i = $426;$$pre$phi$i206Z2D = $$pre$i205;
} else {
$432 = ((($426)) + 8|0);
$433 = load4($432);
$434 = load4((1153204));
$435 = ($433>>>0)<($434>>>0);
if ($435) {
_abort();
// unreachable;
} else {
$$0366$i = $433;$$pre$phi$i206Z2D = $432;
}
}
store4($$pre$phi$i206Z2D,$349);
$436 = ((($$0366$i)) + 12|0);
store4($436,$349);
$437 = ((($349)) + 8|0);
store4($437,$$0366$i);
$438 = ((($349)) + 12|0);
store4($438,$426);
break;
}
$439 = $$4349$lcssa$i >>> 8;
$440 = ($439|0)==(0);
if ($440) {
$$0359$i = 0;
} else {
$441 = ($$4349$lcssa$i>>>0)>(16777215);
if ($441) {
$$0359$i = 31;
} else {
$442 = (($439) + 1048320)|0;
$443 = $442 >>> 16;
$444 = $443 & 8;
$445 = $439 << $444;
$446 = (($445) + 520192)|0;
$447 = $446 >>> 16;
$448 = $447 & 4;
$449 = $448 | $444;
$450 = $445 << $448;
$451 = (($450) + 245760)|0;
$452 = $451 >>> 16;
$453 = $452 & 2;
$454 = $449 | $453;
$455 = (14 - ($454))|0;
$456 = $450 << $453;
$457 = $456 >>> 15;
$458 = (($455) + ($457))|0;
$459 = $458 << 1;
$460 = (($458) + 7)|0;
$461 = $$4349$lcssa$i >>> $460;
$462 = $461 & 1;
$463 = $462 | $459;
$$0359$i = $463;
}
}
$464 = (1153492 + ($$0359$i<<2)|0);
$465 = ((($349)) + 28|0);
store4($465,$$0359$i);
$466 = ((($349)) + 16|0);
$467 = ((($466)) + 4|0);
store4($467,0);
store4($466,0);
$468 = 1 << $$0359$i;
$469 = $470 & $468;
$471 = ($469|0)==(0);
if ($471) {
$472 = $470 | $468;
store4((1153192),$472);
store4($464,$349);
$473 = ((($349)) + 24|0);
store4($473,$464);
$474 = ((($349)) + 12|0);
store4($474,$349);
$475 = ((($349)) + 8|0);
store4($475,$349);
break;
}
$476 = load4($464);
$477 = ($$0359$i|0)==(31);
$478 = $$0359$i >>> 1;
$479 = (25 - ($478))|0;
$480 = $477 ? 0 : $479;
$481 = $$4349$lcssa$i << $480;
$$0342$i = $481;$$0343$i = $476;
while(1) {
$482 = ((($$0343$i)) + 4|0);
$483 = load4($482);
$484 = $483 & -8;
$485 = ($484|0)==($$4349$lcssa$i|0);
if ($485) {
label = 148;
break;
}
$486 = $$0342$i >>> 31;
$487 = (((($$0343$i)) + 16|0) + ($486<<2)|0);
$488 = $$0342$i << 1;
$489 = load4($487);
$490 = ($489|0)==(0|0);
if ($490) {
label = 145;
break;
} else {
$$0342$i = $488;$$0343$i = $489;
}
}
if ((label|0) == 145) {
$491 = load4((1153204));
$492 = ($487>>>0)<($491>>>0);
if ($492) {
_abort();
// unreachable;
} else {
store4($487,$349);
$493 = ((($349)) + 24|0);
store4($493,$$0343$i);
$494 = ((($349)) + 12|0);
store4($494,$349);
$495 = ((($349)) + 8|0);
store4($495,$349);
break;
}
}
else if ((label|0) == 148) {
$496 = ((($$0343$i)) + 8|0);
$497 = load4($496);
$498 = load4((1153204));
$499 = ($497>>>0)>=($498>>>0);
$not$7$i = ($$0343$i>>>0)>=($498>>>0);
$500 = $499 & $not$7$i;
if ($500) {
$501 = ((($497)) + 12|0);
store4($501,$349);
store4($496,$349);
$502 = ((($349)) + 8|0);
store4($502,$497);
$503 = ((($349)) + 12|0);
store4($503,$$0343$i);
$504 = ((($349)) + 24|0);
store4($504,0);
break;
} else {
_abort();
// unreachable;
}
}
}
} while(0);
$505 = ((($$4$lcssa$i)) + 8|0);
$$0 = $505;
STACKTOP = sp;return ($$0|0);
} else {
$$0197 = $246;
}
}
}
}
}
} while(0);
$506 = load4((1153196));
$507 = ($506>>>0)<($$0197>>>0);
if (!($507)) {
$508 = (($506) - ($$0197))|0;
$509 = load4((1153208));
$510 = ($508>>>0)>(15);
if ($510) {
$511 = (($509) + ($$0197)|0);
store4((1153208),$511);
store4((1153196),$508);
$512 = $508 | 1;
$513 = ((($511)) + 4|0);
store4($513,$512);
$514 = (($511) + ($508)|0);
store4($514,$508);
$515 = $$0197 | 3;
$516 = ((($509)) + 4|0);
store4($516,$515);
} else {
store4((1153196),0);
store4((1153208),0);
$517 = $506 | 3;
$518 = ((($509)) + 4|0);
store4($518,$517);
$519 = (($509) + ($506)|0);
$520 = ((($519)) + 4|0);
$521 = load4($520);
$522 = $521 | 1;
store4($520,$522);
}
$523 = ((($509)) + 8|0);
$$0 = $523;
STACKTOP = sp;return ($$0|0);
}
$524 = load4((1153200));
$525 = ($524>>>0)>($$0197>>>0);
if ($525) {
$526 = (($524) - ($$0197))|0;
store4((1153200),$526);
$527 = load4((1153212));
$528 = (($527) + ($$0197)|0);
store4((1153212),$528);
$529 = $526 | 1;
$530 = ((($528)) + 4|0);
store4($530,$529);
$531 = $$0197 | 3;
$532 = ((($527)) + 4|0);
store4($532,$531);
$533 = ((($527)) + 8|0);
$$0 = $533;
STACKTOP = sp;return ($$0|0);
}
$534 = load4(1153660);
$535 = ($534|0)==(0);
if ($535) {
store4((1153668),4096);
store4((1153664),4096);
store4((1153672),-1);
store4((1153676),-1);
store4((1153680),0);
store4((1153632),0);
$536 = $1;
$537 = $536 & -16;
$538 = $537 ^ 1431655768;
store4($1,$538);
store4(1153660,$538);
$542 = 4096;
} else {
$$pre$i208 = load4((1153668));
$542 = $$pre$i208;
}
$539 = (($$0197) + 48)|0;
$540 = (($$0197) + 47)|0;
$541 = (($542) + ($540))|0;
$543 = (0 - ($542))|0;
$544 = $541 & $543;
$545 = ($544>>>0)>($$0197>>>0);
if (!($545)) {
$$0 = 0;
STACKTOP = sp;return ($$0|0);
}
$546 = load4((1153628));
$547 = ($546|0)==(0);
if (!($547)) {
$548 = load4((1153620));
$549 = (($548) + ($544))|0;
$550 = ($549>>>0)<=($548>>>0);
$551 = ($549>>>0)>($546>>>0);
$or$cond1$i210 = $550 | $551;
if ($or$cond1$i210) {
$$0 = 0;
STACKTOP = sp;return ($$0|0);
}
}
$552 = load4((1153632));
$553 = $552 & 4;
$554 = ($553|0)==(0);
L255: do {
if ($554) {
$555 = load4((1153212));
$556 = ($555|0)==(0|0);
L257: do {
if ($556) {
label = 172;
} else {
$$0$i17$i = (1153636);
while(1) {
$557 = load4($$0$i17$i);
$558 = ($557>>>0)>($555>>>0);
if (!($558)) {
$559 = ((($$0$i17$i)) + 4|0);
$560 = load4($559);
$561 = (($557) + ($560)|0);
$562 = ($561>>>0)>($555>>>0);
if ($562) {
break;
}
}
$563 = ((($$0$i17$i)) + 8|0);
$564 = load4($563);
$565 = ($564|0)==(0|0);
if ($565) {
label = 172;
break L257;
} else {
$$0$i17$i = $564;
}
}
$588 = (($541) - ($524))|0;
$589 = $588 & $543;
$590 = ($589>>>0)<(2147483647);
if ($590) {
$591 = (_sbrk(($589|0))|0);
$592 = load4($$0$i17$i);
$593 = load4($559);
$594 = (($592) + ($593)|0);
$595 = ($591|0)==($594|0);
if ($595) {
$596 = ($591|0)==((-1)|0);
if (!($596)) {
$$723947$i = $589;$$748$i = $591;
label = 190;
break L255;
}
} else {
$$2247$ph$i = $591;$$2253$ph$i = $589;
label = 180;
}
}
}
} while(0);
do {
if ((label|0) == 172) {
$566 = (_sbrk(0)|0);
$567 = ($566|0)==((-1)|0);
if (!($567)) {
$568 = $566;
$569 = load4((1153664));
$570 = (($569) + -1)|0;
$571 = $570 & $568;
$572 = ($571|0)==(0);
$573 = (($570) + ($568))|0;
$574 = (0 - ($569))|0;
$575 = $573 & $574;
$576 = (($575) - ($568))|0;
$577 = $572 ? 0 : $576;
$$$i = (($577) + ($544))|0;
$578 = load4((1153620));
$579 = (($$$i) + ($578))|0;
$580 = ($$$i>>>0)>($$0197>>>0);
$581 = ($$$i>>>0)<(2147483647);
$or$cond$i211 = $580 & $581;
if ($or$cond$i211) {
$582 = load4((1153628));
$583 = ($582|0)==(0);
if (!($583)) {
$584 = ($579>>>0)<=($578>>>0);
$585 = ($579>>>0)>($582>>>0);
$or$cond2$i = $584 | $585;
if ($or$cond2$i) {
break;
}
}
$586 = (_sbrk(($$$i|0))|0);
$587 = ($586|0)==($566|0);
if ($587) {
$$723947$i = $$$i;$$748$i = $566;
label = 190;
break L255;
} else {
$$2247$ph$i = $586;$$2253$ph$i = $$$i;
label = 180;
}
}
}
}
} while(0);
L274: do {
if ((label|0) == 180) {
$597 = (0 - ($$2253$ph$i))|0;
$598 = ($$2247$ph$i|0)!=((-1)|0);
$599 = ($$2253$ph$i>>>0)<(2147483647);
$or$cond7$i = $599 & $598;
$600 = ($539>>>0)>($$2253$ph$i>>>0);
$or$cond10$i = $600 & $or$cond7$i;
do {
if ($or$cond10$i) {
$601 = load4((1153668));
$602 = (($540) - ($$2253$ph$i))|0;
$603 = (($602) + ($601))|0;
$604 = (0 - ($601))|0;
$605 = $603 & $604;
$606 = ($605>>>0)<(2147483647);
if ($606) {
$607 = (_sbrk(($605|0))|0);
$608 = ($607|0)==((-1)|0);
if ($608) {
(_sbrk(($597|0))|0);
break L274;
} else {
$609 = (($605) + ($$2253$ph$i))|0;
$$5256$i = $609;
break;
}
} else {
$$5256$i = $$2253$ph$i;
}
} else {
$$5256$i = $$2253$ph$i;
}
} while(0);
$610 = ($$2247$ph$i|0)==((-1)|0);
if (!($610)) {
$$723947$i = $$5256$i;$$748$i = $$2247$ph$i;
label = 190;
break L255;
}
}
} while(0);
$611 = load4((1153632));
$612 = $611 | 4;
store4((1153632),$612);
label = 187;
} else {
label = 187;
}
} while(0);
if ((label|0) == 187) {
$613 = ($544>>>0)<(2147483647);
if ($613) {
$614 = (_sbrk(($544|0))|0);
$615 = (_sbrk(0)|0);
$616 = ($614|0)!=((-1)|0);
$617 = ($615|0)!=((-1)|0);
$or$cond5$i = $616 & $617;
$618 = ($614>>>0)<($615>>>0);
$or$cond11$i = $618 & $or$cond5$i;
if ($or$cond11$i) {
$619 = $615;
$620 = $614;
$621 = (($619) - ($620))|0;
$622 = (($$0197) + 40)|0;
$$not$i = ($621>>>0)>($622>>>0);
if ($$not$i) {
$$723947$i = $621;$$748$i = $614;
label = 190;
}
}
}
}
if ((label|0) == 190) {
$623 = load4((1153620));
$624 = (($623) + ($$723947$i))|0;
store4((1153620),$624);
$625 = load4((1153624));
$626 = ($624>>>0)>($625>>>0);
if ($626) {
store4((1153624),$624);
}
$627 = load4((1153212));
$628 = ($627|0)==(0|0);
do {
if ($628) {
$629 = load4((1153204));
$630 = ($629|0)==(0|0);
$631 = ($$748$i>>>0)<($629>>>0);
$or$cond12$i = $630 | $631;
if ($or$cond12$i) {
store4((1153204),$$748$i);
}
store4((1153636),$$748$i);
store4((1153640),$$723947$i);
store4((1153648),0);
$632 = load4(1153660);
store4((1153224),$632);
store4((1153220),-1);
$$01$i$i = 0;
while(1) {
$633 = $$01$i$i << 1;
$634 = (1153228 + ($633<<2)|0);
$635 = ((($634)) + 12|0);
store4($635,$634);
$636 = ((($634)) + 8|0);
store4($636,$634);
$637 = (($$01$i$i) + 1)|0;
$exitcond$i$i = ($637|0)==(32);
if ($exitcond$i$i) {
break;
} else {
$$01$i$i = $637;
}
}
$638 = (($$723947$i) + -40)|0;
$639 = ((($$748$i)) + 8|0);
$640 = $639;
$641 = $640 & 7;
$642 = ($641|0)==(0);
$643 = (0 - ($640))|0;
$644 = $643 & 7;
$645 = $642 ? 0 : $644;
$646 = (($$748$i) + ($645)|0);
$647 = (($638) - ($645))|0;
store4((1153212),$646);
store4((1153200),$647);
$648 = $647 | 1;
$649 = ((($646)) + 4|0);
store4($649,$648);
$650 = (($646) + ($647)|0);
$651 = ((($650)) + 4|0);
store4($651,40);
$652 = load4((1153676));
store4((1153216),$652);
} else {
$$024370$i = (1153636);
while(1) {
$653 = load4($$024370$i);
$654 = ((($$024370$i)) + 4|0);
$655 = load4($654);
$656 = (($653) + ($655)|0);
$657 = ($$748$i|0)==($656|0);
if ($657) {
label = 200;
break;
}
$658 = ((($$024370$i)) + 8|0);
$659 = load4($658);
$660 = ($659|0)==(0|0);
if ($660) {
break;
} else {
$$024370$i = $659;
}
}
if ((label|0) == 200) {
$661 = ((($$024370$i)) + 12|0);
$662 = load4($661);
$663 = $662 & 8;
$664 = ($663|0)==(0);
if ($664) {
$665 = ($627>>>0)>=($653>>>0);
$666 = ($627>>>0)<($$748$i>>>0);
$or$cond50$i = $666 & $665;
if ($or$cond50$i) {
$667 = (($655) + ($$723947$i))|0;
store4($654,$667);
$668 = load4((1153200));
$669 = ((($627)) + 8|0);
$670 = $669;
$671 = $670 & 7;
$672 = ($671|0)==(0);
$673 = (0 - ($670))|0;
$674 = $673 & 7;
$675 = $672 ? 0 : $674;
$676 = (($627) + ($675)|0);
$677 = (($$723947$i) - ($675))|0;
$678 = (($677) + ($668))|0;
store4((1153212),$676);
store4((1153200),$678);
$679 = $678 | 1;
$680 = ((($676)) + 4|0);
store4($680,$679);
$681 = (($676) + ($678)|0);
$682 = ((($681)) + 4|0);
store4($682,40);
$683 = load4((1153676));
store4((1153216),$683);
break;
}
}
}
$684 = load4((1153204));
$685 = ($$748$i>>>0)<($684>>>0);
if ($685) {
store4((1153204),$$748$i);
$749 = $$748$i;
} else {
$749 = $684;
}
$686 = (($$748$i) + ($$723947$i)|0);
$$124469$i = (1153636);
while(1) {
$687 = load4($$124469$i);
$688 = ($687|0)==($686|0);
if ($688) {
label = 208;
break;
}
$689 = ((($$124469$i)) + 8|0);
$690 = load4($689);
$691 = ($690|0)==(0|0);
if ($691) {
$$0$i$i$i = (1153636);
break;
} else {
$$124469$i = $690;
}
}
if ((label|0) == 208) {
$692 = ((($$124469$i)) + 12|0);
$693 = load4($692);
$694 = $693 & 8;
$695 = ($694|0)==(0);
if ($695) {
store4($$124469$i,$$748$i);
$696 = ((($$124469$i)) + 4|0);
$697 = load4($696);
$698 = (($697) + ($$723947$i))|0;
store4($696,$698);
$699 = ((($$748$i)) + 8|0);
$700 = $699;
$701 = $700 & 7;
$702 = ($701|0)==(0);
$703 = (0 - ($700))|0;
$704 = $703 & 7;
$705 = $702 ? 0 : $704;
$706 = (($$748$i) + ($705)|0);
$707 = ((($686)) + 8|0);
$708 = $707;
$709 = $708 & 7;
$710 = ($709|0)==(0);
$711 = (0 - ($708))|0;
$712 = $711 & 7;
$713 = $710 ? 0 : $712;
$714 = (($686) + ($713)|0);
$715 = $714;
$716 = $706;
$717 = (($715) - ($716))|0;
$718 = (($706) + ($$0197)|0);
$719 = (($717) - ($$0197))|0;
$720 = $$0197 | 3;
$721 = ((($706)) + 4|0);
store4($721,$720);
$722 = ($714|0)==($627|0);
do {
if ($722) {
$723 = load4((1153200));
$724 = (($723) + ($719))|0;
store4((1153200),$724);
store4((1153212),$718);
$725 = $724 | 1;
$726 = ((($718)) + 4|0);
store4($726,$725);
} else {
$727 = load4((1153208));
$728 = ($714|0)==($727|0);
if ($728) {
$729 = load4((1153196));
$730 = (($729) + ($719))|0;
store4((1153196),$730);
store4((1153208),$718);
$731 = $730 | 1;
$732 = ((($718)) + 4|0);
store4($732,$731);
$733 = (($718) + ($730)|0);
store4($733,$730);
break;
}
$734 = ((($714)) + 4|0);
$735 = load4($734);
$736 = $735 & 3;
$737 = ($736|0)==(1);
if ($737) {
$738 = $735 & -8;
$739 = $735 >>> 3;
$740 = ($735>>>0)<(256);
L326: do {
if ($740) {
$741 = ((($714)) + 8|0);
$742 = load4($741);
$743 = ((($714)) + 12|0);
$744 = load4($743);
$745 = $739 << 1;
$746 = (1153228 + ($745<<2)|0);
$747 = ($742|0)==($746|0);
do {
if (!($747)) {
$748 = ($742>>>0)<($749>>>0);
if ($748) {
_abort();
// unreachable;
}
$750 = ((($742)) + 12|0);
$751 = load4($750);
$752 = ($751|0)==($714|0);
if ($752) {
break;
}
_abort();
// unreachable;
}
} while(0);
$753 = ($744|0)==($742|0);
if ($753) {
$754 = 1 << $739;
$755 = $754 ^ -1;
$756 = load4(1153188);
$757 = $756 & $755;
store4(1153188,$757);
break;
}
$758 = ($744|0)==($746|0);
do {
if ($758) {
$$pre9$i$i = ((($744)) + 8|0);
$$pre$phi10$i$iZ2D = $$pre9$i$i;
} else {
$759 = ($744>>>0)<($749>>>0);
if ($759) {
_abort();
// unreachable;
}
$760 = ((($744)) + 8|0);
$761 = load4($760);
$762 = ($761|0)==($714|0);
if ($762) {
$$pre$phi10$i$iZ2D = $760;
break;
}
_abort();
// unreachable;
}
} while(0);
$763 = ((($742)) + 12|0);
store4($763,$744);
store4($$pre$phi10$i$iZ2D,$742);
} else {
$764 = ((($714)) + 24|0);
$765 = load4($764);
$766 = ((($714)) + 12|0);
$767 = load4($766);
$768 = ($767|0)==($714|0);
do {
if ($768) {
$778 = ((($714)) + 16|0);
$779 = ((($778)) + 4|0);
$780 = load4($779);
$781 = ($780|0)==(0|0);
if ($781) {
$782 = load4($778);
$783 = ($782|0)==(0|0);
if ($783) {
$$3$i$i = 0;
break;
} else {
$$1290$i$i = $782;$$1292$i$i = $778;
}
} else {
$$1290$i$i = $780;$$1292$i$i = $779;
}
while(1) {
$784 = ((($$1290$i$i)) + 20|0);
$785 = load4($784);
$786 = ($785|0)==(0|0);
if (!($786)) {
$$1290$i$i = $785;$$1292$i$i = $784;
continue;
}
$787 = ((($$1290$i$i)) + 16|0);
$788 = load4($787);
$789 = ($788|0)==(0|0);
if ($789) {
break;
} else {
$$1290$i$i = $788;$$1292$i$i = $787;
}
}
$790 = ($$1292$i$i>>>0)<($749>>>0);
if ($790) {
_abort();
// unreachable;
} else {
store4($$1292$i$i,0);
$$3$i$i = $$1290$i$i;
break;
}
} else {
$769 = ((($714)) + 8|0);
$770 = load4($769);
$771 = ($770>>>0)<($749>>>0);
if ($771) {
_abort();
// unreachable;
}
$772 = ((($770)) + 12|0);
$773 = load4($772);
$774 = ($773|0)==($714|0);
if (!($774)) {
_abort();
// unreachable;
}
$775 = ((($767)) + 8|0);
$776 = load4($775);
$777 = ($776|0)==($714|0);
if ($777) {
store4($772,$767);
store4($775,$770);
$$3$i$i = $767;
break;
} else {
_abort();
// unreachable;
}
}
} while(0);
$791 = ($765|0)==(0|0);
if ($791) {
break;
}
$792 = ((($714)) + 28|0);
$793 = load4($792);
$794 = (1153492 + ($793<<2)|0);
$795 = load4($794);
$796 = ($714|0)==($795|0);
do {
if ($796) {
store4($794,$$3$i$i);
$cond$i$i = ($$3$i$i|0)==(0|0);
if (!($cond$i$i)) {
break;
}
$797 = 1 << $793;
$798 = $797 ^ -1;
$799 = load4((1153192));
$800 = $799 & $798;
store4((1153192),$800);
break L326;
} else {
$801 = load4((1153204));
$802 = ($765>>>0)<($801>>>0);
if ($802) {
_abort();
// unreachable;
}
$803 = ((($765)) + 16|0);
$804 = load4($803);
$805 = ($804|0)==($714|0);
if ($805) {
store4($803,$$3$i$i);
} else {
$806 = ((($765)) + 20|0);
store4($806,$$3$i$i);
}
$807 = ($$3$i$i|0)==(0|0);
if ($807) {
break L326;
}
}
} while(0);
$808 = load4((1153204));
$809 = ($$3$i$i>>>0)<($808>>>0);
if ($809) {
_abort();
// unreachable;
}
$810 = ((($$3$i$i)) + 24|0);
store4($810,$765);
$811 = ((($714)) + 16|0);
$812 = load4($811);
$813 = ($812|0)==(0|0);
do {
if (!($813)) {
$814 = ($812>>>0)<($808>>>0);
if ($814) {
_abort();
// unreachable;
} else {
$815 = ((($$3$i$i)) + 16|0);
store4($815,$812);
$816 = ((($812)) + 24|0);
store4($816,$$3$i$i);
break;
}
}
} while(0);
$817 = ((($811)) + 4|0);
$818 = load4($817);
$819 = ($818|0)==(0|0);
if ($819) {
break;
}
$820 = load4((1153204));
$821 = ($818>>>0)<($820>>>0);
if ($821) {
_abort();
// unreachable;
} else {
$822 = ((($$3$i$i)) + 20|0);
store4($822,$818);
$823 = ((($818)) + 24|0);
store4($823,$$3$i$i);
break;
}
}
} while(0);
$824 = (($714) + ($738)|0);
$825 = (($738) + ($719))|0;
$$0$i18$i = $824;$$0286$i$i = $825;
} else {
$$0$i18$i = $714;$$0286$i$i = $719;
}
$826 = ((($$0$i18$i)) + 4|0);
$827 = load4($826);
$828 = $827 & -2;
store4($826,$828);
$829 = $$0286$i$i | 1;
$830 = ((($718)) + 4|0);
store4($830,$829);
$831 = (($718) + ($$0286$i$i)|0);
store4($831,$$0286$i$i);
$832 = $$0286$i$i >>> 3;
$833 = ($$0286$i$i>>>0)<(256);
if ($833) {
$834 = $832 << 1;
$835 = (1153228 + ($834<<2)|0);
$836 = load4(1153188);
$837 = 1 << $832;
$838 = $836 & $837;
$839 = ($838|0)==(0);
do {
if ($839) {
$840 = $836 | $837;
store4(1153188,$840);
$$pre$i19$i = ((($835)) + 8|0);
$$0294$i$i = $835;$$pre$phi$i20$iZ2D = $$pre$i19$i;
} else {
$841 = ((($835)) + 8|0);
$842 = load4($841);
$843 = load4((1153204));
$844 = ($842>>>0)<($843>>>0);
if (!($844)) {
$$0294$i$i = $842;$$pre$phi$i20$iZ2D = $841;
break;
}
_abort();
// unreachable;
}
} while(0);
store4($$pre$phi$i20$iZ2D,$718);
$845 = ((($$0294$i$i)) + 12|0);
store4($845,$718);
$846 = ((($718)) + 8|0);
store4($846,$$0294$i$i);
$847 = ((($718)) + 12|0);
store4($847,$835);
break;
}
$848 = $$0286$i$i >>> 8;
$849 = ($848|0)==(0);
do {
if ($849) {
$$0295$i$i = 0;
} else {
$850 = ($$0286$i$i>>>0)>(16777215);
if ($850) {
$$0295$i$i = 31;
break;
}
$851 = (($848) + 1048320)|0;
$852 = $851 >>> 16;
$853 = $852 & 8;
$854 = $848 << $853;
$855 = (($854) + 520192)|0;
$856 = $855 >>> 16;
$857 = $856 & 4;
$858 = $857 | $853;
$859 = $854 << $857;
$860 = (($859) + 245760)|0;
$861 = $860 >>> 16;
$862 = $861 & 2;
$863 = $858 | $862;
$864 = (14 - ($863))|0;
$865 = $859 << $862;
$866 = $865 >>> 15;
$867 = (($864) + ($866))|0;
$868 = $867 << 1;
$869 = (($867) + 7)|0;
$870 = $$0286$i$i >>> $869;
$871 = $870 & 1;
$872 = $871 | $868;
$$0295$i$i = $872;
}
} while(0);
$873 = (1153492 + ($$0295$i$i<<2)|0);
$874 = ((($718)) + 28|0);
store4($874,$$0295$i$i);
$875 = ((($718)) + 16|0);
$876 = ((($875)) + 4|0);
store4($876,0);
store4($875,0);
$877 = load4((1153192));
$878 = 1 << $$0295$i$i;
$879 = $877 & $878;
$880 = ($879|0)==(0);
if ($880) {
$881 = $877 | $878;
store4((1153192),$881);
store4($873,$718);
$882 = ((($718)) + 24|0);
store4($882,$873);
$883 = ((($718)) + 12|0);
store4($883,$718);
$884 = ((($718)) + 8|0);
store4($884,$718);
break;
}
$885 = load4($873);
$886 = ($$0295$i$i|0)==(31);
$887 = $$0295$i$i >>> 1;
$888 = (25 - ($887))|0;
$889 = $886 ? 0 : $888;
$890 = $$0286$i$i << $889;
$$0287$i$i = $890;$$0288$i$i = $885;
while(1) {
$891 = ((($$0288$i$i)) + 4|0);
$892 = load4($891);
$893 = $892 & -8;
$894 = ($893|0)==($$0286$i$i|0);
if ($894) {
label = 278;
break;
}
$895 = $$0287$i$i >>> 31;
$896 = (((($$0288$i$i)) + 16|0) + ($895<<2)|0);
$897 = $$0287$i$i << 1;
$898 = load4($896);
$899 = ($898|0)==(0|0);
if ($899) {
label = 275;
break;
} else {
$$0287$i$i = $897;$$0288$i$i = $898;
}
}
if ((label|0) == 275) {
$900 = load4((1153204));
$901 = ($896>>>0)<($900>>>0);
if ($901) {
_abort();
// unreachable;
} else {
store4($896,$718);
$902 = ((($718)) + 24|0);
store4($902,$$0288$i$i);
$903 = ((($718)) + 12|0);
store4($903,$718);
$904 = ((($718)) + 8|0);
store4($904,$718);
break;
}
}
else if ((label|0) == 278) {
$905 = ((($$0288$i$i)) + 8|0);
$906 = load4($905);
$907 = load4((1153204));
$908 = ($906>>>0)>=($907>>>0);
$not$$i22$i = ($$0288$i$i>>>0)>=($907>>>0);
$909 = $908 & $not$$i22$i;
if ($909) {
$910 = ((($906)) + 12|0);
store4($910,$718);
store4($905,$718);
$911 = ((($718)) + 8|0);
store4($911,$906);
$912 = ((($718)) + 12|0);
store4($912,$$0288$i$i);
$913 = ((($718)) + 24|0);
store4($913,0);
break;
} else {
_abort();
// unreachable;
}
}
}
} while(0);
$1044 = ((($706)) + 8|0);
$$0 = $1044;
STACKTOP = sp;return ($$0|0);
} else {
$$0$i$i$i = (1153636);
}
}
while(1) {
$914 = load4($$0$i$i$i);
$915 = ($914>>>0)>($627>>>0);
if (!($915)) {
$916 = ((($$0$i$i$i)) + 4|0);
$917 = load4($916);
$918 = (($914) + ($917)|0);
$919 = ($918>>>0)>($627>>>0);
if ($919) {
break;
}
}
$920 = ((($$0$i$i$i)) + 8|0);
$921 = load4($920);
$$0$i$i$i = $921;
}
$922 = ((($918)) + -47|0);
$923 = ((($922)) + 8|0);
$924 = $923;
$925 = $924 & 7;
$926 = ($925|0)==(0);
$927 = (0 - ($924))|0;
$928 = $927 & 7;
$929 = $926 ? 0 : $928;
$930 = (($922) + ($929)|0);
$931 = ((($627)) + 16|0);
$932 = ($930>>>0)<($931>>>0);
$933 = $932 ? $627 : $930;
$934 = ((($933)) + 8|0);
$935 = ((($933)) + 24|0);
$936 = (($$723947$i) + -40)|0;
$937 = ((($$748$i)) + 8|0);
$938 = $937;
$939 = $938 & 7;
$940 = ($939|0)==(0);
$941 = (0 - ($938))|0;
$942 = $941 & 7;
$943 = $940 ? 0 : $942;
$944 = (($$748$i) + ($943)|0);
$945 = (($936) - ($943))|0;
store4((1153212),$944);
store4((1153200),$945);
$946 = $945 | 1;
$947 = ((($944)) + 4|0);
store4($947,$946);
$948 = (($944) + ($945)|0);
$949 = ((($948)) + 4|0);
store4($949,40);
$950 = load4((1153676));
store4((1153216),$950);
$951 = ((($933)) + 4|0);
store4($951,27);
; store8($934,load8((1153636),4),4); store8($934+8 | 0,load8((1153636)+8 | 0,4),4);
store4((1153636),$$748$i);
store4((1153640),$$723947$i);
store4((1153648),0);
store4((1153644),$934);
$$0$i$i = $935;
while(1) {
$952 = ((($$0$i$i)) + 4|0);
store4($952,7);
$953 = ((($952)) + 4|0);
$954 = ($953>>>0)<($918>>>0);
if ($954) {
$$0$i$i = $952;
} else {
break;
}
}
$955 = ($933|0)==($627|0);
if (!($955)) {
$956 = $933;
$957 = $627;
$958 = (($956) - ($957))|0;
$959 = load4($951);
$960 = $959 & -2;
store4($951,$960);
$961 = $958 | 1;
$962 = ((($627)) + 4|0);
store4($962,$961);
store4($933,$958);
$963 = $958 >>> 3;
$964 = ($958>>>0)<(256);
if ($964) {
$965 = $963 << 1;
$966 = (1153228 + ($965<<2)|0);
$967 = load4(1153188);
$968 = 1 << $963;
$969 = $967 & $968;
$970 = ($969|0)==(0);
if ($970) {
$971 = $967 | $968;
store4(1153188,$971);
$$pre$i$i = ((($966)) + 8|0);
$$0211$i$i = $966;$$pre$phi$i$iZ2D = $$pre$i$i;
} else {
$972 = ((($966)) + 8|0);
$973 = load4($972);
$974 = load4((1153204));
$975 = ($973>>>0)<($974>>>0);
if ($975) {
_abort();
// unreachable;
} else {
$$0211$i$i = $973;$$pre$phi$i$iZ2D = $972;
}
}
store4($$pre$phi$i$iZ2D,$627);
$976 = ((($$0211$i$i)) + 12|0);
store4($976,$627);
$977 = ((($627)) + 8|0);
store4($977,$$0211$i$i);
$978 = ((($627)) + 12|0);
store4($978,$966);
break;
}
$979 = $958 >>> 8;
$980 = ($979|0)==(0);
if ($980) {
$$0212$i$i = 0;
} else {
$981 = ($958>>>0)>(16777215);
if ($981) {
$$0212$i$i = 31;
} else {
$982 = (($979) + 1048320)|0;
$983 = $982 >>> 16;
$984 = $983 & 8;
$985 = $979 << $984;
$986 = (($985) + 520192)|0;
$987 = $986 >>> 16;
$988 = $987 & 4;
$989 = $988 | $984;
$990 = $985 << $988;
$991 = (($990) + 245760)|0;
$992 = $991 >>> 16;
$993 = $992 & 2;
$994 = $989 | $993;
$995 = (14 - ($994))|0;
$996 = $990 << $993;
$997 = $996 >>> 15;
$998 = (($995) + ($997))|0;
$999 = $998 << 1;
$1000 = (($998) + 7)|0;
$1001 = $958 >>> $1000;
$1002 = $1001 & 1;
$1003 = $1002 | $999;
$$0212$i$i = $1003;
}
}
$1004 = (1153492 + ($$0212$i$i<<2)|0);
$1005 = ((($627)) + 28|0);
store4($1005,$$0212$i$i);
$1006 = ((($627)) + 20|0);
store4($1006,0);
store4($931,0);
$1007 = load4((1153192));
$1008 = 1 << $$0212$i$i;
$1009 = $1007 & $1008;
$1010 = ($1009|0)==(0);
if ($1010) {
$1011 = $1007 | $1008;
store4((1153192),$1011);
store4($1004,$627);
$1012 = ((($627)) + 24|0);
store4($1012,$1004);
$1013 = ((($627)) + 12|0);
store4($1013,$627);
$1014 = ((($627)) + 8|0);
store4($1014,$627);
break;
}
$1015 = load4($1004);
$1016 = ($$0212$i$i|0)==(31);
$1017 = $$0212$i$i >>> 1;
$1018 = (25 - ($1017))|0;
$1019 = $1016 ? 0 : $1018;
$1020 = $958 << $1019;
$$0206$i$i = $1020;$$0207$i$i = $1015;
while(1) {
$1021 = ((($$0207$i$i)) + 4|0);
$1022 = load4($1021);
$1023 = $1022 & -8;
$1024 = ($1023|0)==($958|0);
if ($1024) {
label = 304;
break;
}
$1025 = $$0206$i$i >>> 31;
$1026 = (((($$0207$i$i)) + 16|0) + ($1025<<2)|0);
$1027 = $$0206$i$i << 1;
$1028 = load4($1026);
$1029 = ($1028|0)==(0|0);
if ($1029) {
label = 301;
break;
} else {
$$0206$i$i = $1027;$$0207$i$i = $1028;
}
}
if ((label|0) == 301) {
$1030 = load4((1153204));
$1031 = ($1026>>>0)<($1030>>>0);
if ($1031) {
_abort();
// unreachable;
} else {
store4($1026,$627);
$1032 = ((($627)) + 24|0);
store4($1032,$$0207$i$i);
$1033 = ((($627)) + 12|0);
store4($1033,$627);
$1034 = ((($627)) + 8|0);
store4($1034,$627);
break;
}
}
else if ((label|0) == 304) {
$1035 = ((($$0207$i$i)) + 8|0);
$1036 = load4($1035);
$1037 = load4((1153204));
$1038 = ($1036>>>0)>=($1037>>>0);
$not$$i$i = ($$0207$i$i>>>0)>=($1037>>>0);
$1039 = $1038 & $not$$i$i;
if ($1039) {
$1040 = ((($1036)) + 12|0);
store4($1040,$627);
store4($1035,$627);
$1041 = ((($627)) + 8|0);
store4($1041,$1036);
$1042 = ((($627)) + 12|0);
store4($1042,$$0207$i$i);
$1043 = ((($627)) + 24|0);
store4($1043,0);
break;
} else {
_abort();
// unreachable;
}
}
}
}
} while(0);
$1045 = load4((1153200));
$1046 = ($1045>>>0)>($$0197>>>0);
if ($1046) {
$1047 = (($1045) - ($$0197))|0;
store4((1153200),$1047);
$1048 = load4((1153212));
$1049 = (($1048) + ($$0197)|0);
store4((1153212),$1049);
$1050 = $1047 | 1;
$1051 = ((($1049)) + 4|0);
store4($1051,$1050);
$1052 = $$0197 | 3;
$1053 = ((($1048)) + 4|0);
store4($1053,$1052);
$1054 = ((($1048)) + 8|0);
$$0 = $1054;
STACKTOP = sp;return ($$0|0);
}
}
$1055 = (___errno_location()|0);
store4($1055,12);
$$0 = 0;
STACKTOP = sp;return ($$0|0);
}
function _free($0) {
$0 = $0|0;
var $$0211$i = 0, $$0211$in$i = 0, $$0381 = 0, $$0382 = 0, $$0394 = 0, $$0401 = 0, $$1 = 0, $$1380 = 0, $$1385 = 0, $$1388 = 0, $$1396 = 0, $$1400 = 0, $$2 = 0, $$3 = 0, $$3398 = 0, $$pre = 0, $$pre$phi439Z2D = 0, $$pre$phi441Z2D = 0, $$pre$phiZ2D = 0, $$pre438 = 0;
var $$pre440 = 0, $1 = 0, $10 = 0, $100 = 0, $101 = 0, $102 = 0, $103 = 0, $104 = 0, $105 = 0, $106 = 0, $107 = 0, $108 = 0, $109 = 0, $11 = 0, $110 = 0, $111 = 0, $112 = 0, $113 = 0, $114 = 0, $115 = 0;
var $116 = 0, $117 = 0, $118 = 0, $119 = 0, $12 = 0, $120 = 0, $121 = 0, $122 = 0, $123 = 0, $124 = 0, $125 = 0, $126 = 0, $127 = 0, $128 = 0, $129 = 0, $13 = 0, $130 = 0, $131 = 0, $132 = 0, $133 = 0;
var $134 = 0, $135 = 0, $136 = 0, $137 = 0, $138 = 0, $139 = 0, $14 = 0, $140 = 0, $141 = 0, $142 = 0, $143 = 0, $144 = 0, $145 = 0, $146 = 0, $147 = 0, $148 = 0, $149 = 0, $15 = 0, $150 = 0, $151 = 0;
var $152 = 0, $153 = 0, $154 = 0, $155 = 0, $156 = 0, $157 = 0, $158 = 0, $159 = 0, $16 = 0, $160 = 0, $161 = 0, $162 = 0, $163 = 0, $164 = 0, $165 = 0, $166 = 0, $167 = 0, $168 = 0, $169 = 0, $17 = 0;
var $170 = 0, $171 = 0, $172 = 0, $173 = 0, $174 = 0, $175 = 0, $176 = 0, $177 = 0, $178 = 0, $179 = 0, $18 = 0, $180 = 0, $181 = 0, $182 = 0, $183 = 0, $184 = 0, $185 = 0, $186 = 0, $187 = 0, $188 = 0;
var $189 = 0, $19 = 0, $190 = 0, $191 = 0, $192 = 0, $193 = 0, $194 = 0, $195 = 0, $196 = 0, $197 = 0, $198 = 0, $199 = 0, $2 = 0, $20 = 0, $200 = 0, $201 = 0, $202 = 0, $203 = 0, $204 = 0, $205 = 0;
var $206 = 0, $207 = 0, $208 = 0, $209 = 0, $21 = 0, $210 = 0, $211 = 0, $212 = 0, $213 = 0, $214 = 0, $215 = 0, $216 = 0, $217 = 0, $218 = 0, $219 = 0, $22 = 0, $220 = 0, $221 = 0, $222 = 0, $223 = 0;
var $224 = 0, $225 = 0, $226 = 0, $227 = 0, $228 = 0, $229 = 0, $23 = 0, $230 = 0, $231 = 0, $232 = 0, $233 = 0, $234 = 0, $235 = 0, $236 = 0, $237 = 0, $238 = 0, $239 = 0, $24 = 0, $240 = 0, $241 = 0;
var $242 = 0, $243 = 0, $244 = 0, $245 = 0, $246 = 0, $247 = 0, $248 = 0, $249 = 0, $25 = 0, $250 = 0, $251 = 0, $252 = 0, $253 = 0, $254 = 0, $255 = 0, $256 = 0, $257 = 0, $258 = 0, $259 = 0, $26 = 0;
var $260 = 0, $261 = 0, $262 = 0, $263 = 0, $264 = 0, $265 = 0, $266 = 0, $267 = 0, $268 = 0, $269 = 0, $27 = 0, $270 = 0, $271 = 0, $272 = 0, $273 = 0, $274 = 0, $275 = 0, $276 = 0, $277 = 0, $278 = 0;
var $279 = 0, $28 = 0, $280 = 0, $281 = 0, $282 = 0, $283 = 0, $284 = 0, $285 = 0, $286 = 0, $287 = 0, $288 = 0, $289 = 0, $29 = 0, $290 = 0, $291 = 0, $292 = 0, $293 = 0, $294 = 0, $295 = 0, $296 = 0;
var $297 = 0, $298 = 0, $299 = 0, $3 = 0, $30 = 0, $300 = 0, $301 = 0, $302 = 0, $303 = 0, $304 = 0, $305 = 0, $306 = 0, $307 = 0, $308 = 0, $309 = 0, $31 = 0, $310 = 0, $311 = 0, $312 = 0, $313 = 0;
var $314 = 0, $315 = 0, $316 = 0, $317 = 0, $318 = 0, $319 = 0, $32 = 0, $320 = 0, $33 = 0, $34 = 0, $35 = 0, $36 = 0, $37 = 0, $38 = 0, $39 = 0, $4 = 0, $40 = 0, $41 = 0, $42 = 0, $43 = 0;
var $44 = 0, $45 = 0, $46 = 0, $47 = 0, $48 = 0, $49 = 0, $5 = 0, $50 = 0, $51 = 0, $52 = 0, $53 = 0, $54 = 0, $55 = 0, $56 = 0, $57 = 0, $58 = 0, $59 = 0, $6 = 0, $60 = 0, $61 = 0;
var $62 = 0, $63 = 0, $64 = 0, $65 = 0, $66 = 0, $67 = 0, $68 = 0, $69 = 0, $7 = 0, $70 = 0, $71 = 0, $72 = 0, $73 = 0, $74 = 0, $75 = 0, $76 = 0, $77 = 0, $78 = 0, $79 = 0, $8 = 0;
var $80 = 0, $81 = 0, $82 = 0, $83 = 0, $84 = 0, $85 = 0, $86 = 0, $87 = 0, $88 = 0, $89 = 0, $9 = 0, $90 = 0, $91 = 0, $92 = 0, $93 = 0, $94 = 0, $95 = 0, $96 = 0, $97 = 0, $98 = 0;
var $99 = 0, $cond418 = 0, $cond419 = 0, $not$ = 0, label = 0, sp = 0;
sp = STACKTOP;
$1 = ($0|0)==(0|0);
if ($1) {
return;
}
$2 = ((($0)) + -8|0);
$3 = load4((1153204));
$4 = ($2>>>0)<($3>>>0);
if ($4) {
_abort();
// unreachable;
}
$5 = ((($0)) + -4|0);
$6 = load4($5);
$7 = $6 & 3;
$8 = ($7|0)==(1);
if ($8) {
_abort();
// unreachable;
}
$9 = $6 & -8;
$10 = (($2) + ($9)|0);
$11 = $6 & 1;
$12 = ($11|0)==(0);
do {
if ($12) {
$13 = load4($2);
$14 = ($7|0)==(0);
if ($14) {
return;
}
$15 = (0 - ($13))|0;
$16 = (($2) + ($15)|0);
$17 = (($13) + ($9))|0;
$18 = ($16>>>0)<($3>>>0);
if ($18) {
_abort();
// unreachable;
}
$19 = load4((1153208));
$20 = ($16|0)==($19|0);
if ($20) {
$105 = ((($10)) + 4|0);
$106 = load4($105);
$107 = $106 & 3;
$108 = ($107|0)==(3);
if (!($108)) {
$$1 = $16;$$1380 = $17;
break;
}
store4((1153196),$17);
$109 = $106 & -2;
store4($105,$109);
$110 = $17 | 1;
$111 = ((($16)) + 4|0);
store4($111,$110);
$112 = (($16) + ($17)|0);
store4($112,$17);
return;
}
$21 = $13 >>> 3;
$22 = ($13>>>0)<(256);
if ($22) {
$23 = ((($16)) + 8|0);
$24 = load4($23);
$25 = ((($16)) + 12|0);
$26 = load4($25);
$27 = $21 << 1;
$28 = (1153228 + ($27<<2)|0);
$29 = ($24|0)==($28|0);
if (!($29)) {
$30 = ($24>>>0)<($3>>>0);
if ($30) {
_abort();
// unreachable;
}
$31 = ((($24)) + 12|0);
$32 = load4($31);
$33 = ($32|0)==($16|0);
if (!($33)) {
_abort();
// unreachable;
}
}
$34 = ($26|0)==($24|0);
if ($34) {
$35 = 1 << $21;
$36 = $35 ^ -1;
$37 = load4(1153188);
$38 = $37 & $36;
store4(1153188,$38);
$$1 = $16;$$1380 = $17;
break;
}
$39 = ($26|0)==($28|0);
if ($39) {
$$pre440 = ((($26)) + 8|0);
$$pre$phi441Z2D = $$pre440;
} else {
$40 = ($26>>>0)<($3>>>0);
if ($40) {
_abort();
// unreachable;
}
$41 = ((($26)) + 8|0);
$42 = load4($41);
$43 = ($42|0)==($16|0);
if ($43) {
$$pre$phi441Z2D = $41;
} else {
_abort();
// unreachable;
}
}
$44 = ((($24)) + 12|0);
store4($44,$26);
store4($$pre$phi441Z2D,$24);
$$1 = $16;$$1380 = $17;
break;
}
$45 = ((($16)) + 24|0);
$46 = load4($45);
$47 = ((($16)) + 12|0);
$48 = load4($47);
$49 = ($48|0)==($16|0);
do {
if ($49) {
$59 = ((($16)) + 16|0);
$60 = ((($59)) + 4|0);
$61 = load4($60);
$62 = ($61|0)==(0|0);
if ($62) {
$63 = load4($59);
$64 = ($63|0)==(0|0);
if ($64) {
$$3 = 0;
break;
} else {
$$1385 = $63;$$1388 = $59;
}
} else {
$$1385 = $61;$$1388 = $60;
}
while(1) {
$65 = ((($$1385)) + 20|0);
$66 = load4($65);
$67 = ($66|0)==(0|0);
if (!($67)) {
$$1385 = $66;$$1388 = $65;
continue;
}
$68 = ((($$1385)) + 16|0);
$69 = load4($68);
$70 = ($69|0)==(0|0);
if ($70) {
break;
} else {
$$1385 = $69;$$1388 = $68;
}
}
$71 = ($$1388>>>0)<($3>>>0);
if ($71) {
_abort();
// unreachable;
} else {
store4($$1388,0);
$$3 = $$1385;
break;
}
} else {
$50 = ((($16)) + 8|0);
$51 = load4($50);
$52 = ($51>>>0)<($3>>>0);
if ($52) {
_abort();
// unreachable;
}
$53 = ((($51)) + 12|0);
$54 = load4($53);
$55 = ($54|0)==($16|0);
if (!($55)) {
_abort();
// unreachable;
}
$56 = ((($48)) + 8|0);
$57 = load4($56);
$58 = ($57|0)==($16|0);
if ($58) {
store4($53,$48);
store4($56,$51);
$$3 = $48;
break;
} else {
_abort();
// unreachable;
}
}
} while(0);
$72 = ($46|0)==(0|0);
if ($72) {
$$1 = $16;$$1380 = $17;
} else {
$73 = ((($16)) + 28|0);
$74 = load4($73);
$75 = (1153492 + ($74<<2)|0);
$76 = load4($75);
$77 = ($16|0)==($76|0);
if ($77) {
store4($75,$$3);
$cond418 = ($$3|0)==(0|0);
if ($cond418) {
$78 = 1 << $74;
$79 = $78 ^ -1;
$80 = load4((1153192));
$81 = $80 & $79;
store4((1153192),$81);
$$1 = $16;$$1380 = $17;
break;
}
} else {
$82 = load4((1153204));
$83 = ($46>>>0)<($82>>>0);
if ($83) {
_abort();
// unreachable;
}
$84 = ((($46)) + 16|0);
$85 = load4($84);
$86 = ($85|0)==($16|0);
if ($86) {
store4($84,$$3);
} else {
$87 = ((($46)) + 20|0);
store4($87,$$3);
}
$88 = ($$3|0)==(0|0);
if ($88) {
$$1 = $16;$$1380 = $17;
break;
}
}
$89 = load4((1153204));
$90 = ($$3>>>0)<($89>>>0);
if ($90) {
_abort();
// unreachable;
}
$91 = ((($$3)) + 24|0);
store4($91,$46);
$92 = ((($16)) + 16|0);
$93 = load4($92);
$94 = ($93|0)==(0|0);
do {
if (!($94)) {
$95 = ($93>>>0)<($89>>>0);
if ($95) {
_abort();
// unreachable;
} else {
$96 = ((($$3)) + 16|0);
store4($96,$93);
$97 = ((($93)) + 24|0);
store4($97,$$3);
break;
}
}
} while(0);
$98 = ((($92)) + 4|0);
$99 = load4($98);
$100 = ($99|0)==(0|0);
if ($100) {
$$1 = $16;$$1380 = $17;
} else {
$101 = load4((1153204));
$102 = ($99>>>0)<($101>>>0);
if ($102) {
_abort();
// unreachable;
} else {
$103 = ((($$3)) + 20|0);
store4($103,$99);
$104 = ((($99)) + 24|0);
store4($104,$$3);
$$1 = $16;$$1380 = $17;
break;
}
}
}
} else {
$$1 = $2;$$1380 = $9;
}
} while(0);
$113 = ($$1>>>0)<($10>>>0);
if (!($113)) {
_abort();
// unreachable;
}
$114 = ((($10)) + 4|0);
$115 = load4($114);
$116 = $115 & 1;
$117 = ($116|0)==(0);
if ($117) {
_abort();
// unreachable;
}
$118 = $115 & 2;
$119 = ($118|0)==(0);
if ($119) {
$120 = load4((1153212));
$121 = ($10|0)==($120|0);
if ($121) {
$122 = load4((1153200));
$123 = (($122) + ($$1380))|0;
store4((1153200),$123);
store4((1153212),$$1);
$124 = $123 | 1;
$125 = ((($$1)) + 4|0);
store4($125,$124);
$126 = load4((1153208));
$127 = ($$1|0)==($126|0);
if (!($127)) {
return;
}
store4((1153208),0);
store4((1153196),0);
return;
}
$128 = load4((1153208));
$129 = ($10|0)==($128|0);
if ($129) {
$130 = load4((1153196));
$131 = (($130) + ($$1380))|0;
store4((1153196),$131);
store4((1153208),$$1);
$132 = $131 | 1;
$133 = ((($$1)) + 4|0);
store4($133,$132);
$134 = (($$1) + ($131)|0);
store4($134,$131);
return;
}
$135 = $115 & -8;
$136 = (($135) + ($$1380))|0;
$137 = $115 >>> 3;
$138 = ($115>>>0)<(256);
do {
if ($138) {
$139 = ((($10)) + 8|0);
$140 = load4($139);
$141 = ((($10)) + 12|0);
$142 = load4($141);
$143 = $137 << 1;
$144 = (1153228 + ($143<<2)|0);
$145 = ($140|0)==($144|0);
if (!($145)) {
$146 = load4((1153204));
$147 = ($140>>>0)<($146>>>0);
if ($147) {
_abort();
// unreachable;
}
$148 = ((($140)) + 12|0);
$149 = load4($148);
$150 = ($149|0)==($10|0);
if (!($150)) {
_abort();
// unreachable;
}
}
$151 = ($142|0)==($140|0);
if ($151) {
$152 = 1 << $137;
$153 = $152 ^ -1;
$154 = load4(1153188);
$155 = $154 & $153;
store4(1153188,$155);
break;
}
$156 = ($142|0)==($144|0);
if ($156) {
$$pre438 = ((($142)) + 8|0);
$$pre$phi439Z2D = $$pre438;
} else {
$157 = load4((1153204));
$158 = ($142>>>0)<($157>>>0);
if ($158) {
_abort();
// unreachable;
}
$159 = ((($142)) + 8|0);
$160 = load4($159);
$161 = ($160|0)==($10|0);
if ($161) {
$$pre$phi439Z2D = $159;
} else {
_abort();
// unreachable;
}
}
$162 = ((($140)) + 12|0);
store4($162,$142);
store4($$pre$phi439Z2D,$140);
} else {
$163 = ((($10)) + 24|0);
$164 = load4($163);
$165 = ((($10)) + 12|0);
$166 = load4($165);
$167 = ($166|0)==($10|0);
do {
if ($167) {
$178 = ((($10)) + 16|0);
$179 = ((($178)) + 4|0);
$180 = load4($179);
$181 = ($180|0)==(0|0);
if ($181) {
$182 = load4($178);
$183 = ($182|0)==(0|0);
if ($183) {
$$3398 = 0;
break;
} else {
$$1396 = $182;$$1400 = $178;
}
} else {
$$1396 = $180;$$1400 = $179;
}
while(1) {
$184 = ((($$1396)) + 20|0);
$185 = load4($184);
$186 = ($185|0)==(0|0);
if (!($186)) {
$$1396 = $185;$$1400 = $184;
continue;
}
$187 = ((($$1396)) + 16|0);
$188 = load4($187);
$189 = ($188|0)==(0|0);
if ($189) {
break;
} else {
$$1396 = $188;$$1400 = $187;
}
}
$190 = load4((1153204));
$191 = ($$1400>>>0)<($190>>>0);
if ($191) {
_abort();
// unreachable;
} else {
store4($$1400,0);
$$3398 = $$1396;
break;
}
} else {
$168 = ((($10)) + 8|0);
$169 = load4($168);
$170 = load4((1153204));
$171 = ($169>>>0)<($170>>>0);
if ($171) {
_abort();
// unreachable;
}
$172 = ((($169)) + 12|0);
$173 = load4($172);
$174 = ($173|0)==($10|0);
if (!($174)) {
_abort();
// unreachable;
}
$175 = ((($166)) + 8|0);
$176 = load4($175);
$177 = ($176|0)==($10|0);
if ($177) {
store4($172,$166);
store4($175,$169);
$$3398 = $166;
break;
} else {
_abort();
// unreachable;
}
}
} while(0);
$192 = ($164|0)==(0|0);
if (!($192)) {
$193 = ((($10)) + 28|0);
$194 = load4($193);
$195 = (1153492 + ($194<<2)|0);
$196 = load4($195);
$197 = ($10|0)==($196|0);
if ($197) {
store4($195,$$3398);
$cond419 = ($$3398|0)==(0|0);
if ($cond419) {
$198 = 1 << $194;
$199 = $198 ^ -1;
$200 = load4((1153192));
$201 = $200 & $199;
store4((1153192),$201);
break;
}
} else {
$202 = load4((1153204));
$203 = ($164>>>0)<($202>>>0);
if ($203) {
_abort();
// unreachable;
}
$204 = ((($164)) + 16|0);
$205 = load4($204);
$206 = ($205|0)==($10|0);
if ($206) {
store4($204,$$3398);
} else {
$207 = ((($164)) + 20|0);
store4($207,$$3398);
}
$208 = ($$3398|0)==(0|0);
if ($208) {
break;
}
}
$209 = load4((1153204));
$210 = ($$3398>>>0)<($209>>>0);
if ($210) {
_abort();
// unreachable;
}
$211 = ((($$3398)) + 24|0);
store4($211,$164);
$212 = ((($10)) + 16|0);
$213 = load4($212);
$214 = ($213|0)==(0|0);
do {
if (!($214)) {
$215 = ($213>>>0)<($209>>>0);
if ($215) {
_abort();
// unreachable;
} else {
$216 = ((($$3398)) + 16|0);
store4($216,$213);
$217 = ((($213)) + 24|0);
store4($217,$$3398);
break;
}
}
} while(0);
$218 = ((($212)) + 4|0);
$219 = load4($218);
$220 = ($219|0)==(0|0);
if (!($220)) {
$221 = load4((1153204));
$222 = ($219>>>0)<($221>>>0);
if ($222) {
_abort();
// unreachable;
} else {
$223 = ((($$3398)) + 20|0);
store4($223,$219);
$224 = ((($219)) + 24|0);
store4($224,$$3398);
break;
}
}
}
}
} while(0);
$225 = $136 | 1;
$226 = ((($$1)) + 4|0);
store4($226,$225);
$227 = (($$1) + ($136)|0);
store4($227,$136);
$228 = load4((1153208));
$229 = ($$1|0)==($228|0);
if ($229) {
store4((1153196),$136);
return;
} else {
$$2 = $136;
}
} else {
$230 = $115 & -2;
store4($114,$230);
$231 = $$1380 | 1;
$232 = ((($$1)) + 4|0);
store4($232,$231);
$233 = (($$1) + ($$1380)|0);
store4($233,$$1380);
$$2 = $$1380;
}
$234 = $$2 >>> 3;
$235 = ($$2>>>0)<(256);
if ($235) {
$236 = $234 << 1;
$237 = (1153228 + ($236<<2)|0);
$238 = load4(1153188);
$239 = 1 << $234;
$240 = $238 & $239;
$241 = ($240|0)==(0);
if ($241) {
$242 = $238 | $239;
store4(1153188,$242);
$$pre = ((($237)) + 8|0);
$$0401 = $237;$$pre$phiZ2D = $$pre;
} else {
$243 = ((($237)) + 8|0);
$244 = load4($243);
$245 = load4((1153204));
$246 = ($244>>>0)<($245>>>0);
if ($246) {
_abort();
// unreachable;
} else {
$$0401 = $244;$$pre$phiZ2D = $243;
}
}
store4($$pre$phiZ2D,$$1);
$247 = ((($$0401)) + 12|0);
store4($247,$$1);
$248 = ((($$1)) + 8|0);
store4($248,$$0401);
$249 = ((($$1)) + 12|0);
store4($249,$237);
return;
}
$250 = $$2 >>> 8;
$251 = ($250|0)==(0);
if ($251) {
$$0394 = 0;
} else {
$252 = ($$2>>>0)>(16777215);
if ($252) {
$$0394 = 31;
} else {
$253 = (($250) + 1048320)|0;
$254 = $253 >>> 16;
$255 = $254 & 8;
$256 = $250 << $255;
$257 = (($256) + 520192)|0;
$258 = $257 >>> 16;
$259 = $258 & 4;
$260 = $259 | $255;
$261 = $256 << $259;
$262 = (($261) + 245760)|0;
$263 = $262 >>> 16;
$264 = $263 & 2;
$265 = $260 | $264;
$266 = (14 - ($265))|0;
$267 = $261 << $264;
$268 = $267 >>> 15;
$269 = (($266) + ($268))|0;
$270 = $269 << 1;
$271 = (($269) + 7)|0;
$272 = $$2 >>> $271;
$273 = $272 & 1;
$274 = $273 | $270;
$$0394 = $274;
}
}
$275 = (1153492 + ($$0394<<2)|0);
$276 = ((($$1)) + 28|0);
store4($276,$$0394);
$277 = ((($$1)) + 16|0);
$278 = ((($$1)) + 20|0);
store4($278,0);
store4($277,0);
$279 = load4((1153192));
$280 = 1 << $$0394;
$281 = $279 & $280;
$282 = ($281|0)==(0);
do {
if ($282) {
$283 = $279 | $280;
store4((1153192),$283);
store4($275,$$1);
$284 = ((($$1)) + 24|0);
store4($284,$275);
$285 = ((($$1)) + 12|0);
store4($285,$$1);
$286 = ((($$1)) + 8|0);
store4($286,$$1);
} else {
$287 = load4($275);
$288 = ($$0394|0)==(31);
$289 = $$0394 >>> 1;
$290 = (25 - ($289))|0;
$291 = $288 ? 0 : $290;
$292 = $$2 << $291;
$$0381 = $292;$$0382 = $287;
while(1) {
$293 = ((($$0382)) + 4|0);
$294 = load4($293);
$295 = $294 & -8;
$296 = ($295|0)==($$2|0);
if ($296) {
label = 130;
break;
}
$297 = $$0381 >>> 31;
$298 = (((($$0382)) + 16|0) + ($297<<2)|0);
$299 = $$0381 << 1;
$300 = load4($298);
$301 = ($300|0)==(0|0);
if ($301) {
label = 127;
break;
} else {
$$0381 = $299;$$0382 = $300;
}
}
if ((label|0) == 127) {
$302 = load4((1153204));
$303 = ($298>>>0)<($302>>>0);
if ($303) {
_abort();
// unreachable;
} else {
store4($298,$$1);
$304 = ((($$1)) + 24|0);
store4($304,$$0382);
$305 = ((($$1)) + 12|0);
store4($305,$$1);
$306 = ((($$1)) + 8|0);
store4($306,$$1);
break;
}
}
else if ((label|0) == 130) {
$307 = ((($$0382)) + 8|0);
$308 = load4($307);
$309 = load4((1153204));
$310 = ($308>>>0)>=($309>>>0);
$not$ = ($$0382>>>0)>=($309>>>0);
$311 = $310 & $not$;
if ($311) {
$312 = ((($308)) + 12|0);
store4($312,$$1);
store4($307,$$1);
$313 = ((($$1)) + 8|0);
store4($313,$308);
$314 = ((($$1)) + 12|0);
store4($314,$$0382);
$315 = ((($$1)) + 24|0);
store4($315,0);
break;
} else {
_abort();
// unreachable;
}
}
}
} while(0);
$316 = load4((1153220));
$317 = (($316) + -1)|0;
store4((1153220),$317);
$318 = ($317|0)==(0);
if ($318) {
$$0211$in$i = (1153644);
} else {
return;
}
while(1) {
$$0211$i = load4($$0211$in$i);
$319 = ($$0211$i|0)==(0|0);
$320 = ((($$0211$i)) + 8|0);
if ($319) {
break;
} else {
$$0211$in$i = $320;
}
}
store4((1153220),-1);
return;
}
function runPostSets() {
}
function _sbrk(increment) {
increment = increment|0;
var oldDynamicTop = 0;
var oldDynamicTopOnChange = 0;
var newDynamicTop = 0;
var totalMemory = 0;
increment = ((increment + 15) & -16)|0;
oldDynamicTop = HEAP32[DYNAMICTOP_PTR>>2]|0;
newDynamicTop = oldDynamicTop + increment | 0;
if (((increment|0) > 0 & (newDynamicTop|0) < (oldDynamicTop|0)) // Detect and fail if we would wrap around signed 32-bit int.
| (newDynamicTop|0) < 0) { // Also underflow, sbrk() should be able to be used to subtract.
abortOnCannotGrowMemory()|0;
___setErrNo(12);
return -1;
}
HEAP32[DYNAMICTOP_PTR>>2] = newDynamicTop;
totalMemory = getTotalMemory()|0;
if ((newDynamicTop|0) > (totalMemory|0)) {
if ((enlargeMemory()|0) == 0) {
___setErrNo(12);
HEAP32[DYNAMICTOP_PTR>>2] = oldDynamicTop;
return -1;
}
}
return oldDynamicTop|0;
}
function _memset(ptr, value, num) {
ptr = ptr|0; value = value|0; num = num|0;
var stop = 0, value4 = 0, stop4 = 0, unaligned = 0;
stop = (ptr + num)|0;
if ((num|0) >= 20) {
// This is unaligned, but quite large, so work hard to get to aligned settings
value = value & 0xff;
unaligned = ptr & 3;
value4 = value | (value << 8) | (value << 16) | (value << 24);
stop4 = stop & ~3;
if (unaligned) {
unaligned = (ptr + 4 - unaligned)|0;
while ((ptr|0) < (unaligned|0)) { // no need to check for stop, since we have large num
HEAP8[((ptr)>>0)]=value;
ptr = (ptr+1)|0;
}
}
while ((ptr|0) < (stop4|0)) {
HEAP32[((ptr)>>2)]=value4;
ptr = (ptr+4)|0;
}
}
while ((ptr|0) < (stop|0)) {
HEAP8[((ptr)>>0)]=value;
ptr = (ptr+1)|0;
}
return (ptr-num)|0;
}
function _memcpy(dest, src, num) {
dest = dest|0; src = src|0; num = num|0;
var ret = 0;
if ((num|0) >= 4096) return _emscripten_memcpy_big(dest|0, src|0, num|0)|0;
ret = dest|0;
if ((dest&3) == (src&3)) {
while (dest & 3) {
if ((num|0) == 0) return ret|0;
HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
dest = (dest+1)|0;
src = (src+1)|0;
num = (num-1)|0;
}
while ((num|0) >= 4) {
HEAP32[((dest)>>2)]=((HEAP32[((src)>>2)])|0);
dest = (dest+4)|0;
src = (src+4)|0;
num = (num-4)|0;
}
}
while ((num|0) > 0) {
HEAP8[((dest)>>0)]=((HEAP8[((src)>>0)])|0);
dest = (dest+1)|0;
src = (src+1)|0;
num = (num-1)|0;
}
return ret|0;
}
function _pthread_self() {
return 0;
}
function dynCall_ii(index,a1) {
index = index|0;
a1=a1|0;
return FUNCTION_TABLE_ii[index&1](a1|0)|0;
}
function dynCall_iiii(index,a1,a2,a3) {
index = index|0;
a1=a1|0; a2=a2|0; a3=a3|0;
return FUNCTION_TABLE_iiii[index&3](a1|0,a2|0,a3|0)|0;
}
function dynCall_vi(index,a1) {
index = index|0;
a1=a1|0;
FUNCTION_TABLE_vi[index&1](a1|0);
}
function b0(p0) {
p0 = p0|0; abort(0);return 0;
}
function b1(p0,p1,p2) {
p0 = p0|0;p1 = p1|0;p2 = p2|0; abort(1);return 0;
}
function b2(p0) {
p0 = p0|0; abort(2);
}
// EMSCRIPTEN_END_FUNCS
var FUNCTION_TABLE_ii = [b0,___stdio_close];
var FUNCTION_TABLE_iiii = [b1,___stdout_write,___stdio_seek,___stdio_write];
var FUNCTION_TABLE_vi = [b2,_cleanup_387];
return { _malloc: _malloc, _fflush: _fflush, _pthread_self: _pthread_self, _memset: _memset, _change: _change, _memcpy: _memcpy, _sbrk: _sbrk, _free: _free, ___errno_location: ___errno_location, runPostSets: runPostSets, stackAlloc: stackAlloc, stackSave: stackSave, stackRestore: stackRestore, establishStackSpace: establishStackSpace, setThrew: setThrew, setTempRet0: setTempRet0, getTempRet0: getTempRet0, dynCall_ii: dynCall_ii, dynCall_iiii: dynCall_iiii, dynCall_vi: dynCall_vi };
})
; | {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$i (func (result i32)))
(type $FUNCSIG$v (func))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
(import "env" "DYNAMICTOP_PTR" (global $DYNAMICTOP_PTR$asm2wasm$import i32))
(import "env" "STACKTOP" (global $STACKTOP$asm2wasm$import i32))
(import "env" "STACK_MAX" (global $STACK_MAX$asm2wasm$import i32))
(import "env" "abort" (func $abort (param i32)))
(import "env" "enlargeMemory" (func $enlargeMemory (result i32)))
(import "env" "getTotalMemory" (func $getTotalMemory (result i32)))
(import "env" "abortOnCannotGrowMemory" (func $abortOnCannotGrowMemory (result i32)))
(import "env" "_pthread_cleanup_pop" (func $_pthread_cleanup_pop (param i32)))
(import "env" "___lock" (func $___lock (param i32)))
(import "env" "_abort" (func $_abort))
(import "env" "___setErrNo" (func $___setErrNo (param i32)))
(import "env" "___syscall6" (func $___syscall6 (param i32 i32) (result i32)))
(import "env" "___syscall140" (func $___syscall140 (param i32 i32) (result i32)))
(import "env" "_pthread_cleanup_push" (func $_pthread_cleanup_push (param i32 i32)))
(import "env" "_emscripten_memcpy_big" (func $_emscripten_memcpy_big (param i32 i32 i32) (result i32)))
(import "env" "___syscall54" (func $___syscall54 (param i32 i32) (result i32)))
(import "env" "___unlock" (func $___unlock (param i32)))
(import "env" "___syscall146" (func $___syscall146 (param i32 i32) (result i32)))
(import "env" "memory" (memory $0 256 256))
(import "env" "table" (table 8 8 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
(global $DYNAMICTOP_PTR (mut i32) (global.get $DYNAMICTOP_PTR$asm2wasm$import))
(global $STACKTOP (mut i32) (global.get $STACKTOP$asm2wasm$import))
(global $STACK_MAX (mut i32) (global.get $STACK_MAX$asm2wasm$import))
(global $__THREW__ (mut i32) (i32.const 0))
(global $threwValue (mut i32) (i32.const 0))
(global $tempRet0 (mut i32) (i32.const 0))
(elem (global.get $tableBase) $b0 $___stdio_close $b1 $___stdout_write $___stdio_seek $___stdio_write $b2 $_cleanup_387)
(data (i32.const 1024) "\05")
(data (i32.const 1036) "\01")
(data (i32.const 1060) "\01\00\00\00\02\00\00\00\9c\9a\11\00\00\04")
(data (i32.const 1084) "\01")
(data (i32.const 1099) "\n\ff\ff\ff\ff")
(data (i32.const 1137) "\04")
(export "_malloc" (func $_malloc))
(export "_fflush" (func $_fflush))
(export "_pthread_self" (func $_pthread_self))
(export "_memset" (func $_memset))
(export "_change" (func $_change))
(export "_memcpy" (func $_memcpy))
(export "_sbrk" (func $_sbrk))
(export "_free" (func $_free))
(export "___errno_location" (func $___errno_location))
(export "runPostSets" (func $runPostSets))
(export "stackAlloc" (func $stackAlloc))
(export "stackSave" (func $stackSave))
(export "stackRestore" (func $stackRestore))
(export "establishStackSpace" (func $establishStackSpace))
(export "setThrew" (func $setThrew))
(export "setTempRet0" (func $setTempRet0))
(export "getTempRet0" (func $getTempRet0))
(export "dynCall_ii" (func $dynCall_ii))
(export "dynCall_iiii" (func $dynCall_iiii))
(export "dynCall_vi" (func $dynCall_vi))
(func $stackAlloc (param $0 i32) (result i32)
(local $1 i32)
(local.set $1
(global.get $STACKTOP)
)
(global.set $STACKTOP
(i32.add
(global.get $STACKTOP)
(local.get $0)
)
)
(global.set $STACKTOP
(i32.and
(i32.add
(global.get $STACKTOP)
(i32.const 15)
)
(i32.const -16)
)
)
(local.get $1)
)
(func $stackSave (result i32)
(global.get $STACKTOP)
)
(func $stackRestore (param $0 i32)
(global.set $STACKTOP
(local.get $0)
)
)
(func $establishStackSpace (param $0 i32) (param $1 i32)
(global.set $STACKTOP
(local.get $0)
)
(global.set $STACK_MAX
(local.get $1)
)
)
(func $setThrew (param $0 i32) (param $1 i32)
(if
(i32.eqz
(global.get $__THREW__)
)
(block
(global.set $__THREW__
(local.get $0)
)
(global.set $threwValue
(local.get $1)
)
)
)
)
(func $setTempRet0 (param $0 i32)
(global.set $tempRet0
(local.get $0)
)
)
(func $getTempRet0 (result i32)
(global.get $tempRet0)
)
(func $_sobel (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
(local $13 i32)
(local $14 i32)
(local $15 i32)
(local $16 i32)
(local $17 i32)
(local $18 i32)
(local $19 i32)
(local $20 i32)
(local $21 i32)
(local $22 i32)
(local $23 i32)
(local $24 i32)
(local $25 i32)
(local $26 i32)
(local $27 i32)
(local $28 i32)
(local $29 i32)
(local $30 i32)
(local $31 i32)
(if
(i32.eqz
(tee_local $6
(i32.gt_s
(local.get $2)
(i32.const 0)
)
)
)
(return)
)
(if
(i32.gt_s
(local.get $1)
(i32.const 0)
)
(block
(local.set $4
(i32.const 0)
)
(loop $while-in
(local.set $10
(i32.mul
(local.get $4)
(i32.const 600)
)
)
(local.set $5
(i32.const 0)
)
(loop $while-in1
(local.set $3
(i32.add
(local.get $0)
(tee_local $9
(i32.shl
(tee_local $7
(i32.add
(local.get $5)
(local.get $10)
)
)
(i32.const 2)
)
)
)
)
(i32.store
(i32.add
(i32.shl
(local.get $7)
(i32.const 2)
)
(i32.const 1140)
)
(tee_local $12
(i32.add
(i32.add
(i32.shr_u
(i32.load8_u
(tee_local $7
(i32.add
(local.get $0)
(i32.or
(local.get $9)
(i32.const 1)
)
)
)
)
(i32.const 1)
)
(i32.shr_u
(i32.load8_u
(local.get $3)
)
(i32.const 2)
)
)
(i32.shr_u
(i32.load8_u
(tee_local $11
(i32.add
(local.get $0)
(i32.or
(local.get $9)
(i32.const 2)
)
)
)
)
(i32.const 3)
)
)
)
)
(i32.store8
(local.get $3)
(tee_local $3
(i32.and
(local.get $12)
(i32.const 255)
)
)
)
(i32.store8
(local.get $7)
(local.get $3)
)
(i32.store8
(local.get $11)
(local.get $3)
)
(i32.store8
(i32.add
(local.get $0)
(i32.or
(local.get $9)
(i32.const 3)
)
)
(i32.const -1)
)
(br_if $while-in1
(i32.ne
(tee_local $5
(i32.add
(local.get $5)
(i32.const 1)
)
)
(local.get $1)
)
)
)
(br_if $while-in
(i32.ne
(tee_local $4
(i32.add
(local.get $4)
(i32.const 1)
)
)
(local.get $2)
)
)
)
(if
(i32.eqz
(local.get $6)
)
(return)
)
)
)
(local.set $20
(i32.gt_s
(local.get $1)
(i32.const 0)
)
)
(local.set $21
(i32.add
(local.get $1)
(i32.const -1)
)
)
(local.set $22
(i32.add
(local.get $2)
(i32.const -1)
)
)
(local.set $5
(i32.const 0)
)
(loop $while-in3
(if
(local.get $20)
(block
(local.set $12
(i32.mul
(local.get $5)
(i32.const 600)
)
)
(local.set $23
(i32.gt_s
(local.get $5)
(i32.const 0)
)
)
(local.set $24
(i32.lt_s
(local.get $5)
(local.get $22)
)
)
(local.set $14
(i32.gt_s
(local.get $5)
(i32.const 478)
)
)
(local.set $10
(i32.mul
(tee_local $9
(i32.add
(local.get $5)
(i32.const 1)
)
)
(i32.const 600)
)
)
(local.set $15
(i32.gt_s
(tee_local $11
(i32.add
(local.get $5)
(i32.const -1)
)
)
(i32.const 479)
)
)
(local.set $7
(i32.mul
(local.get $11)
(i32.const 600)
)
)
(local.set $19
(i32.gt_s
(local.get $5)
(i32.const 479)
)
)
(local.set $4
(i32.const 0)
)
(loop $while-in5
(local.set $6
(if i32
(i32.lt_s
(local.get $4)
(i32.const 1)
)
(block i32
(local.set $3
(i32.const 0)
)
(i32.const 0)
)
(if i32
(i32.and
(local.get $24)
(i32.and
(local.get $23)
(i32.lt_s
(local.get $4)
(local.get $21)
)
)
)
(block i32
(local.set $8
(i32.gt_s
(tee_local $3
(i32.add
(local.get $4)
(i32.const -1)
)
)
(i32.const 599)
)
)
(local.set $25
(if i32
(tee_local $16
(i32.or
(i32.lt_s
(i32.or
(local.get $3)
(local.get $11)
)
(i32.const 0)
)
(i32.or
(local.get $15)
(local.get $8)
)
)
)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $3)
(local.get $7)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $26
(if i32
(tee_local $17
(i32.or
(i32.lt_s
(i32.or
(tee_local $6
(i32.add
(local.get $4)
(i32.const 1)
)
)
(local.get $11)
)
(i32.const 0)
)
(i32.or
(local.get $15)
(tee_local $13
(i32.gt_s
(local.get $4)
(i32.const 598)
)
)
)
)
)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $6)
(local.get $7)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $27
(if i32
(i32.or
(i32.lt_s
(i32.or
(local.get $3)
(local.get $5)
)
(i32.const 0)
)
(i32.or
(local.get $19)
(local.get $8)
)
)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $3)
(local.get $12)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $28
(if i32
(i32.or
(i32.lt_s
(i32.or
(local.get $6)
(local.get $5)
)
(i32.const 0)
)
(i32.or
(local.get $19)
(local.get $13)
)
)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $6)
(local.get $12)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $8
(if i32
(tee_local $18
(i32.or
(i32.lt_s
(i32.or
(local.get $3)
(local.get $9)
)
(i32.const 0)
)
(i32.or
(local.get $14)
(local.get $8)
)
)
)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $3)
(local.get $10)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $13
(if i32
(tee_local $29
(i32.or
(i32.lt_s
(i32.or
(local.get $6)
(local.get $9)
)
(i32.const 0)
)
(i32.or
(local.get $14)
(local.get $13)
)
)
)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $6)
(local.get $10)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $16
(if i32
(local.get $16)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $3)
(local.get $7)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $31
(if i32
(i32.or
(i32.lt_s
(i32.or
(local.get $4)
(local.get $11)
)
(i32.const 0)
)
(i32.or
(local.get $15)
(tee_local $30
(i32.gt_s
(local.get $4)
(i32.const 599)
)
)
)
)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $4)
(local.get $7)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $17
(if i32
(local.get $17)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $6)
(local.get $7)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $3
(if i32
(local.get $18)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $3)
(local.get $10)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $18
(if i32
(i32.or
(i32.lt_s
(i32.or
(local.get $4)
(local.get $9)
)
(i32.const 0)
)
(i32.or
(local.get $14)
(local.get $30)
)
)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $4)
(local.get $10)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
(local.set $3
(i32.add
(i32.add
(i32.sub
(local.get $3)
(i32.add
(local.get $17)
(local.get $16)
)
)
(tee_local $6
(if i32
(local.get $29)
(i32.const 0)
(i32.load
(i32.add
(i32.shl
(i32.add
(local.get $6)
(local.get $10)
)
(i32.const 2)
)
(i32.const 1140)
)
)
)
)
)
(i32.shl
(i32.sub
(local.get $18)
(local.get $31)
)
(i32.const 1)
)
)
)
(i32.add
(i32.sub
(i32.add
(i32.sub
(i32.sub
(local.get $26)
(local.get $25)
)
(i32.shl
(local.get $27)
(i32.const 1)
)
)
(i32.shl
(local.get $28)
(i32.const 1)
)
)
(local.get $8)
)
(local.get $13)
)
)
(block i32
(local.set $3
(i32.const 0)
)
(i32.const 0)
)
)
)
)
(i32.store8
(i32.add
(local.get $0)
(tee_local $8
(i32.shl
(i32.add
(local.get $4)
(local.get $12)
)
(i32.const 2)
)
)
)
(tee_local $3
(i32.and
(i32.sub
(i32.const 255)
(if i32
(i32.gt_s
(tee_local $3
(i32.trunc_s/f64
(f64.sqrt
(f64.convert_s/i32
(i32.add
(i32.mul
(local.get $3)
(local.get $3)
)
(i32.mul
(local.get $6)
(local.get $6)
)
)
)
)
)
)
(i32.const 255)
)
(i32.const 255)
(local.get $3)
)
)
(i32.const 255)
)
)
)
(i32.store8
(i32.add
(local.get $0)
(i32.or
(local.get $8)
(i32.const 1)
)
)
(local.get $3)
)
(i32.store8
(i32.add
(local.get $0)
(i32.or
(local.get $8)
(i32.const 2)
)
)
(local.get $3)
)
(i32.store8
(i32.add
(local.get $0)
(i32.or
(local.get $8)
(i32.const 3)
)
)
(i32.const -1)
)
(br_if $while-in5
(i32.ne
(tee_local $4
(i32.add
(local.get $4)
(i32.const 1)
)
)
(local.get $1)
)
)
(local.set $4
(local.get $9)
)
)
)
(local.set $4
(i32.add
(local.get $5)
(i32.const 1)
)
)
)
(if
(i32.ne
(local.get $4)
(local.get $2)
)
(block
(local.set $5
(local.get $4)
)
(br $while-in3)
)
)
)
)
(func $_change (param $0 i32) (param $1 i32) (param $2 i32)
(call $_sobel
(local.get $0)
(local.get $1)
(local.get $2)
)
)
(func $___stdio_close (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local.set $1
(global.get $STACKTOP)
)
(global.set $STACKTOP
(i32.add
(global.get $STACKTOP)
(i32.const 16)
)
)
(i32.store
(tee_local $2
(local.get $1)
)
(i32.load offset=60
(local.get $0)
)
)
(local.set $0
(call $___syscall_ret
(call $___syscall6
(i32.const 6)
(local.get $2)
)
)
)
(global.set $STACKTOP
(local.get $1)
)
(local.get $0)
)
(func $___stdio_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
(local $13 i32)
(local $14 i32)
(local $15 i32)
(local.set $7
(global.get $STACKTOP)
)
(global.set $STACKTOP
(i32.add
(global.get $STACKTOP)
(i32.const 48)
)
)
(local.set $8
(i32.add
(local.get $7)
(i32.const 16)
)
)
(local.set $9
(local.get $7)
)
(i32.store
(tee_local $3
(i32.add
(local.get $7)
(i32.const 32)
)
)
(tee_local $4
(i32.load
(tee_local $6
(i32.add
(local.get $0)
(i32.const 28)
)
)
)
)
)
(i32.store offset=4
(local.get $3)
(tee_local $4
(i32.sub
(i32.load
(tee_local $11
(i32.add
(local.get $0)
(i32.const 20)
)
)
)
(local.get $4)
)
)
)
(i32.store offset=8
(local.get $3)
(local.get $1)
)
(i32.store offset=12
(local.get $3)
(local.get $2)
)
(local.set $14
(i32.add
(local.get $0)
(i32.const 60)
)
)
(local.set $15
(i32.add
(local.get $0)
(i32.const 44)
)
)
(local.set $5
(i32.const 2)
)
(local.set $12
(i32.add
(local.get $4)
(local.get $2)
)
)
(local.set $1
(local.get $3)
)
(block $__rjto$1
(block $__rjti$1
(block $__rjti$0
(loop $while-in
(if
(i32.load
(i32.const 1153140)
)
(block
(call $_pthread_cleanup_push
(i32.const 1)
(local.get $0)
)
(i32.store
(local.get $9)
(i32.load
(local.get $14)
)
)
(i32.store offset=4
(local.get $9)
(local.get $1)
)
(i32.store offset=8
(local.get $9)
(local.get $5)
)
(local.set $4
(call $___syscall_ret
(call $___syscall146
(i32.const 146)
(local.get $9)
)
)
)
(call $_pthread_cleanup_pop
(i32.const 0)
)
)
(block
(i32.store
(local.get $8)
(i32.load
(local.get $14)
)
)
(i32.store offset=4
(local.get $8)
(local.get $1)
)
(i32.store offset=8
(local.get $8)
(local.get $5)
)
(local.set $4
(call $___syscall_ret
(call $___syscall146
(i32.const 146)
(local.get $8)
)
)
)
)
)
(br_if $__rjti$0
(i32.eq
(local.get $12)
(local.get $4)
)
)
(br_if $__rjti$1
(i32.lt_s
(local.get $4)
(i32.const 0)
)
)
(local.set $1
(if i32
(i32.gt_u
(local.get $4)
(tee_local $13
(i32.load offset=4
(local.get $1)
)
)
)
(block i32
(i32.store
(local.get $6)
(tee_local $3
(i32.load
(local.get $15)
)
)
)
(i32.store
(local.get $11)
(local.get $3)
)
(local.set $10
(i32.sub
(local.get $4)
(local.get $13)
)
)
(local.set $5
(i32.add
(local.get $5)
(i32.const -1)
)
)
(local.set $3
(i32.add
(local.get $1)
(i32.const 8)
)
)
(i32.load offset=12
(local.get $1)
)
)
(if i32
(i32.eq
(local.get $5)
(i32.const 2)
)
(block i32
(i32.store
(local.get $6)
(i32.add
(i32.load
(local.get $6)
)
(local.get $4)
)
)
(local.set $10
(local.get $4)
)
(local.set $5
(i32.const 2)
)
(local.set $3
(local.get $1)
)
(local.get $13)
)
(block i32
(local.set $10
(local.get $4)
)
(local.set $3
(local.get $1)
)
(local.get $13)
)
)
)
)
(i32.store
(local.get $3)
(i32.add
(i32.load
(local.get $3)
)
(local.get $10)
)
)
(i32.store offset=4
(local.get $3)
(i32.sub
(local.get $1)
(local.get $10)
)
)
(local.set $12
(i32.sub
(local.get $12)
(local.get $4)
)
)
(local.set $1
(local.get $3)
)
(br $while-in)
)
)
(i32.store offset=16
(local.get $0)
(i32.add
(tee_local $1
(i32.load
(local.get $15)
)
)
(i32.load offset=48
(local.get $0)
)
)
)
(i32.store
(local.get $6)
(tee_local $0
(local.get $1)
)
)
(i32.store
(local.get $11)
(local.get $0)
)
(br $__rjto$1)
)
(i32.store offset=16
(local.get $0)
(i32.const 0)
)
(i32.store
(local.get $6)
(i32.const 0)
)
(i32.store
(local.get $11)
(i32.const 0)
)
(i32.store
(local.get $0)
(i32.or
(i32.load
(local.get $0)
)
(i32.const 32)
)
)
(local.set $2
(if i32
(i32.eq
(local.get $5)
(i32.const 2)
)
(i32.const 0)
(i32.sub
(local.get $2)
(i32.load offset=4
(local.get $1)
)
)
)
)
)
(global.set $STACKTOP
(local.get $7)
)
(local.get $2)
)
(func $___stdio_seek (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local.set $4
(global.get $STACKTOP)
)
(global.set $STACKTOP
(i32.add
(global.get $STACKTOP)
(i32.const 32)
)
)
(i32.store
(tee_local $3
(local.get $4)
)
(i32.load offset=60
(local.get $0)
)
)
(i32.store offset=4
(local.get $3)
(i32.const 0)
)
(i32.store offset=8
(local.get $3)
(local.get $1)
)
(i32.store offset=12
(local.get $3)
(tee_local $0
(i32.add
(local.get $4)
(i32.const 20)
)
)
)
(i32.store offset=16
(local.get $3)
(local.get $2)
)
(local.set $0
(if i32
(i32.lt_s
(call $___syscall_ret
(call $___syscall140
(i32.const 140)
(local.get $3)
)
)
(i32.const 0)
)
(block i32
(i32.store
(local.get $0)
(i32.const -1)
)
(i32.const -1)
)
(i32.load
(local.get $0)
)
)
)
(global.set $STACKTOP
(local.get $4)
)
(local.get $0)
)
(func $___syscall_ret (param $0 i32) (result i32)
(if i32
(i32.gt_u
(local.get $0)
(i32.const -4096)
)
(block i32
(i32.store
(call $___errno_location)
(i32.sub
(i32.const 0)
(local.get $0)
)
)
(i32.const -1)
)
(local.get $0)
)
)
(func $___errno_location (result i32)
(if i32
(i32.load
(i32.const 1153140)
)
(i32.load offset=64
(call $_pthread_self)
)
(i32.const 1153184)
)
)
(func $_cleanup_387 (param $0 i32)
(if
(i32.eqz
(i32.load offset=68
(local.get $0)
)
)
(call $___unlockfile
(local.get $0)
)
)
)
(func $___unlockfile (param $0 i32)
(nop)
)
(func $___stdout_write (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local.set $4
(global.get $STACKTOP)
)
(global.set $STACKTOP
(i32.add
(global.get $STACKTOP)
(i32.const 80)
)
)
(local.set $3
(local.get $4)
)
(local.set $5
(i32.add
(local.get $4)
(i32.const 12)
)
)
(i32.store offset=36
(local.get $0)
(i32.const 3)
)
(if
(i32.eqz
(i32.and
(i32.load
(local.get $0)
)
(i32.const 64)
)
)
(block
(i32.store
(local.get $3)
(i32.load offset=60
(local.get $0)
)
)
(i32.store offset=4
(local.get $3)
(i32.const 21505)
)
(i32.store offset=8
(local.get $3)
(local.get $5)
)
(if
(call $___syscall54
(i32.const 54)
(local.get $3)
)
(i32.store8 offset=75
(local.get $0)
(i32.const -1)
)
)
)
)
(local.set $0
(call $___stdio_write
(local.get $0)
(local.get $1)
(local.get $2)
)
)
(global.set $STACKTOP
(local.get $4)
)
(local.get $0)
)
(func $___lockfile (param $0 i32) (result i32)
(i32.const 0)
)
(func $_fflush (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(block $do-once
(if
(local.get $0)
(block
(if
(i32.le_s
(i32.load offset=76
(local.get $0)
)
(i32.const -1)
)
(block
(local.set $0
(call $___fflush_unlocked
(local.get $0)
)
)
(br $do-once)
)
)
(local.set $2
(i32.eqz
(call $___lockfile
(local.get $0)
)
)
)
(local.set $1
(call $___fflush_unlocked
(local.get $0)
)
)
(local.set $0
(if i32
(local.get $2)
(local.get $1)
(block i32
(call $___unlockfile
(local.get $0)
)
(local.get $1)
)
)
)
)
(block
(local.set $0
(if i32
(i32.load
(i32.const 1136)
)
(call $_fflush
(i32.load
(i32.const 1136)
)
)
(i32.const 0)
)
)
(call $___lock
(i32.const 1153168)
)
(if
(tee_local $1
(i32.load
(i32.const 1153164)
)
)
(loop $while-in
(local.set $2
(if i32
(i32.gt_s
(i32.load offset=76
(local.get $1)
)
(i32.const -1)
)
(call $___lockfile
(local.get $1)
)
(i32.const 0)
)
)
(if
(i32.gt_u
(i32.load offset=20
(local.get $1)
)
(i32.load offset=28
(local.get $1)
)
)
(local.set $0
(i32.or
(call $___fflush_unlocked
(local.get $1)
)
(local.get $0)
)
)
)
(if
(local.get $2)
(call $___unlockfile
(local.get $1)
)
)
(br_if $while-in
(tee_local $1
(i32.load offset=56
(local.get $1)
)
)
)
)
)
(call $___unlock
(i32.const 1153168)
)
)
)
)
(local.get $0)
)
(func $___fflush_unlocked (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(tee_local $0
(block $__rjto$0 i32
(block $__rjti$0
(br_if $__rjti$0
(i32.le_u
(i32.load
(tee_local $1
(i32.add
(local.get $0)
(i32.const 20)
)
)
)
(i32.load
(tee_local $2
(i32.add
(local.get $0)
(i32.const 28)
)
)
)
)
)
(drop
(call_indirect $FUNCSIG$iiii
(local.get $0)
(i32.const 0)
(i32.const 0)
(i32.add
(i32.and
(i32.load offset=36
(local.get $0)
)
(i32.const 3)
)
(i32.const 2)
)
)
)
(br_if $__rjti$0
(i32.load
(local.get $1)
)
)
(br $__rjto$0
(i32.const -1)
)
)
(if
(i32.lt_u
(tee_local $4
(i32.load
(tee_local $3
(i32.add
(local.get $0)
(i32.const 4)
)
)
)
)
(tee_local $6
(i32.load
(tee_local $5
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
)
(drop
(call_indirect $FUNCSIG$iiii
(local.get $0)
(i32.sub
(local.get $4)
(local.get $6)
)
(i32.const 1)
(i32.add
(i32.and
(i32.load offset=40
(local.get $0)
)
(i32.const 3)
)
(i32.const 2)
)
)
)
)
(i32.store offset=16
(local.get $0)
(i32.const 0)
)
(i32.store
(local.get $2)
(i32.const 0)
)
(i32.store
(local.get $1)
(i32.const 0)
)
(i32.store
(local.get $5)
(i32.const 0)
)
(i32.store
(local.get $3)
(i32.const 0)
)
(i32.const 0)
)
)
)
(func $_malloc (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
(local $13 i32)
(local $14 i32)
(local $15 i32)
(local $16 i32)
(local $17 i32)
(local $18 i32)
(local $19 i32)
(local $20 i32)
(local.set $13
(global.get $STACKTOP)
)
(global.set $STACKTOP
(i32.add
(global.get $STACKTOP)
(i32.const 16)
)
)
(local.set $15
(local.get $13)
)
(block $do-once
(if
(i32.lt_u
(local.get $0)
(i32.const 245)
)
(block
(local.set $2
(i32.and
(i32.add
(local.get $0)
(i32.const 11)
)
(i32.const -8)
)
)
(if
(i32.and
(tee_local $1
(i32.shr_u
(tee_local $7
(i32.load
(i32.const 1153188)
)
)
(tee_local $0
(i32.shr_u
(if i32
(i32.lt_u
(local.get $0)
(i32.const 11)
)
(tee_local $2
(i32.const 16)
)
(local.get $2)
)
(i32.const 3)
)
)
)
)
(i32.const 3)
)
(block
(local.set $0
(i32.load
(tee_local $6
(i32.add
(tee_local $1
(i32.load
(tee_local $5
(i32.add
(tee_local $3
(i32.add
(i32.shl
(i32.shl
(tee_local $2
(i32.add
(i32.xor
(i32.and
(local.get $1)
(i32.const 1)
)
(i32.const 1)
)
(local.get $0)
)
)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
(i32.const 8)
)
)
)
)
(i32.const 8)
)
)
)
)
(if
(i32.eq
(local.get $3)
(local.get $0)
)
(i32.store
(i32.const 1153188)
(i32.and
(local.get $7)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $2)
)
(i32.const -1)
)
)
)
(block
(if
(i32.lt_u
(local.get $0)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $4
(i32.add
(local.get $0)
(i32.const 12)
)
)
)
(local.get $1)
)
(block
(i32.store
(local.get $4)
(local.get $3)
)
(i32.store
(local.get $5)
(local.get $0)
)
)
(call $_abort)
)
)
)
(i32.store offset=4
(local.get $1)
(i32.or
(tee_local $0
(i32.shl
(local.get $2)
(i32.const 3)
)
)
(i32.const 3)
)
)
(i32.store
(tee_local $0
(i32.add
(i32.add
(local.get $1)
(local.get $0)
)
(i32.const 4)
)
)
(i32.or
(i32.load
(local.get $0)
)
(i32.const 1)
)
)
(global.set $STACKTOP
(local.get $13)
)
(return
(local.get $6)
)
)
)
(if
(i32.gt_u
(local.get $2)
(tee_local $16
(i32.load
(i32.const 1153196)
)
)
)
(block
(if
(local.get $1)
(block
(local.set $0
(i32.and
(i32.shr_u
(tee_local $1
(i32.add
(i32.and
(tee_local $0
(i32.and
(i32.shl
(local.get $1)
(local.get $0)
)
(i32.or
(tee_local $0
(i32.shl
(i32.const 2)
(local.get $0)
)
)
(i32.sub
(i32.const 0)
(local.get $0)
)
)
)
)
(i32.sub
(i32.const 0)
(local.get $0)
)
)
(i32.const -1)
)
)
(i32.const 12)
)
(i32.const 16)
)
)
(local.set $0
(i32.load
(tee_local $10
(i32.add
(tee_local $1
(i32.load
(tee_local $8
(i32.add
(tee_local $4
(i32.add
(i32.shl
(i32.shl
(tee_local $5
(i32.add
(i32.or
(i32.or
(i32.or
(i32.or
(tee_local $5
(i32.and
(i32.shr_u
(tee_local $1
(i32.shr_u
(local.get $1)
(local.get $0)
)
)
(i32.const 5)
)
(i32.const 8)
)
)
(local.get $0)
)
(tee_local $1
(i32.and
(i32.shr_u
(tee_local $0
(i32.shr_u
(local.get $1)
(local.get $5)
)
)
(i32.const 2)
)
(i32.const 4)
)
)
)
(tee_local $1
(i32.and
(i32.shr_u
(tee_local $0
(i32.shr_u
(local.get $0)
(local.get $1)
)
)
(i32.const 1)
)
(i32.const 2)
)
)
)
(tee_local $1
(i32.and
(i32.shr_u
(tee_local $0
(i32.shr_u
(local.get $0)
(local.get $1)
)
)
(i32.const 1)
)
(i32.const 1)
)
)
)
(i32.shr_u
(local.get $0)
(local.get $1)
)
)
)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
(i32.const 8)
)
)
)
)
(i32.const 8)
)
)
)
)
(if
(i32.eq
(local.get $4)
(local.get $0)
)
(i32.store
(i32.const 1153188)
(tee_local $3
(i32.and
(local.get $7)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $5)
)
(i32.const -1)
)
)
)
)
(block
(if
(i32.lt_u
(local.get $0)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $12
(i32.add
(local.get $0)
(i32.const 12)
)
)
)
(local.get $1)
)
(block
(i32.store
(local.get $12)
(local.get $4)
)
(i32.store
(local.get $8)
(local.get $0)
)
(local.set $3
(local.get $7)
)
)
(call $_abort)
)
)
)
(i32.store offset=4
(local.get $1)
(i32.or
(local.get $2)
(i32.const 3)
)
)
(i32.store offset=4
(tee_local $8
(i32.add
(local.get $1)
(local.get $2)
)
)
(i32.or
(tee_local $4
(i32.sub
(i32.shl
(local.get $5)
(i32.const 3)
)
(local.get $2)
)
)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $8)
(local.get $4)
)
(local.get $4)
)
(if
(local.get $16)
(block
(local.set $5
(i32.load
(i32.const 1153208)
)
)
(local.set $0
(i32.add
(i32.shl
(i32.shl
(tee_local $1
(i32.shr_u
(local.get $16)
(i32.const 3)
)
)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
(if
(i32.and
(local.get $3)
(tee_local $1
(i32.shl
(i32.const 1)
(local.get $1)
)
)
)
(if
(i32.lt_u
(tee_local $2
(i32.load
(tee_local $1
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(local.set $6
(local.get $2)
)
(local.set $11
(local.get $1)
)
)
)
(block
(i32.store
(i32.const 1153188)
(i32.or
(local.get $3)
(local.get $1)
)
)
(local.set $6
(local.get $0)
)
(local.set $11
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(i32.store
(local.get $11)
(local.get $5)
)
(i32.store offset=12
(local.get $6)
(local.get $5)
)
(i32.store offset=8
(local.get $5)
(local.get $6)
)
(i32.store offset=12
(local.get $5)
(local.get $0)
)
)
)
(i32.store
(i32.const 1153196)
(local.get $4)
)
(i32.store
(i32.const 1153208)
(local.get $8)
)
(global.set $STACKTOP
(local.get $13)
)
(return
(local.get $10)
)
)
)
(if
(tee_local $11
(i32.load
(i32.const 1153192)
)
)
(block
(local.set $0
(i32.and
(i32.shr_u
(tee_local $1
(i32.add
(i32.and
(local.get $11)
(i32.sub
(i32.const 0)
(local.get $11)
)
)
(i32.const -1)
)
)
(i32.const 12)
)
(i32.const 16)
)
)
(local.set $8
(tee_local $0
(i32.load
(i32.add
(i32.shl
(i32.add
(i32.or
(i32.or
(i32.or
(i32.or
(tee_local $3
(i32.and
(i32.shr_u
(tee_local $1
(i32.shr_u
(local.get $1)
(local.get $0)
)
)
(i32.const 5)
)
(i32.const 8)
)
)
(local.get $0)
)
(tee_local $1
(i32.and
(i32.shr_u
(tee_local $0
(i32.shr_u
(local.get $1)
(local.get $3)
)
)
(i32.const 2)
)
(i32.const 4)
)
)
)
(tee_local $1
(i32.and
(i32.shr_u
(tee_local $0
(i32.shr_u
(local.get $0)
(local.get $1)
)
)
(i32.const 1)
)
(i32.const 2)
)
)
)
(tee_local $1
(i32.and
(i32.shr_u
(tee_local $0
(i32.shr_u
(local.get $0)
(local.get $1)
)
)
(i32.const 1)
)
(i32.const 1)
)
)
)
(i32.shr_u
(local.get $0)
(local.get $1)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
)
)
(local.set $3
(local.get $0)
)
(local.set $6
(i32.sub
(i32.and
(i32.load offset=4
(local.get $0)
)
(i32.const -8)
)
(local.get $2)
)
)
(loop $while-in
(block $while-out
(if
(i32.eqz
(tee_local $0
(i32.load offset=16
(local.get $8)
)
)
)
(br_if $while-out
(i32.eqz
(tee_local $0
(i32.load offset=20
(local.get $8)
)
)
)
)
)
(if
(i32.eqz
(tee_local $10
(i32.lt_u
(tee_local $1
(i32.sub
(i32.and
(i32.load offset=4
(local.get $0)
)
(i32.const -8)
)
(local.get $2)
)
)
(local.get $6)
)
)
)
(local.set $1
(local.get $6)
)
)
(local.set $8
(local.get $0)
)
(if
(local.get $10)
(local.set $3
(local.get $0)
)
)
(local.set $6
(local.get $1)
)
(br $while-in)
)
)
(if
(i32.lt_u
(local.get $3)
(tee_local $15
(i32.load
(i32.const 1153204)
)
)
)
(call $_abort)
)
(if
(i32.ge_u
(local.get $3)
(tee_local $9
(i32.add
(local.get $3)
(local.get $2)
)
)
)
(call $_abort)
)
(local.set $12
(i32.load offset=24
(local.get $3)
)
)
(block $do-once4
(if
(i32.eq
(tee_local $0
(i32.load offset=12
(local.get $3)
)
)
(local.get $3)
)
(block
(if
(i32.eqz
(tee_local $0
(i32.load
(tee_local $1
(i32.add
(local.get $3)
(i32.const 20)
)
)
)
)
)
(if
(i32.eqz
(tee_local $0
(i32.load
(tee_local $1
(i32.add
(local.get $3)
(i32.const 16)
)
)
)
)
)
(block
(local.set $5
(i32.const 0)
)
(br $do-once4)
)
)
)
(loop $while-in7
(if
(tee_local $10
(i32.load
(tee_local $8
(i32.add
(local.get $0)
(i32.const 20)
)
)
)
)
(block
(local.set $0
(local.get $10)
)
(local.set $1
(local.get $8)
)
(br $while-in7)
)
)
(if
(tee_local $10
(i32.load
(tee_local $8
(i32.add
(local.get $0)
(i32.const 16)
)
)
)
)
(block
(local.set $0
(local.get $10)
)
(local.set $1
(local.get $8)
)
(br $while-in7)
)
)
)
(if
(i32.lt_u
(local.get $1)
(local.get $15)
)
(call $_abort)
(block
(i32.store
(local.get $1)
(i32.const 0)
)
(local.set $5
(local.get $0)
)
)
)
)
(block
(if
(i32.lt_u
(tee_local $1
(i32.load offset=8
(local.get $3)
)
)
(local.get $15)
)
(call $_abort)
)
(if
(i32.ne
(i32.load
(tee_local $8
(i32.add
(local.get $1)
(i32.const 12)
)
)
)
(local.get $3)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $10
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
(local.get $3)
)
(block
(i32.store
(local.get $8)
(local.get $0)
)
(i32.store
(local.get $10)
(local.get $1)
)
(local.set $5
(local.get $0)
)
)
(call $_abort)
)
)
)
)
(block $do-once8
(if
(local.get $12)
(block
(if
(i32.eq
(local.get $3)
(i32.load
(tee_local $1
(i32.add
(i32.shl
(tee_local $0
(i32.load offset=28
(local.get $3)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
)
)
(block
(i32.store
(local.get $1)
(local.get $5)
)
(if
(i32.eqz
(local.get $5)
)
(block
(i32.store
(i32.const 1153192)
(i32.and
(local.get $11)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $0)
)
(i32.const -1)
)
)
)
(br $do-once8)
)
)
)
(block
(if
(i32.lt_u
(local.get $12)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $0
(i32.add
(local.get $12)
(i32.const 16)
)
)
)
(local.get $3)
)
(i32.store
(local.get $0)
(local.get $5)
)
(i32.store offset=20
(local.get $12)
(local.get $5)
)
)
(br_if $do-once8
(i32.eqz
(local.get $5)
)
)
)
)
(if
(i32.lt_u
(local.get $5)
(tee_local $1
(i32.load
(i32.const 1153204)
)
)
)
(call $_abort)
)
(i32.store offset=24
(local.get $5)
(local.get $12)
)
(if
(tee_local $0
(i32.load offset=16
(local.get $3)
)
)
(if
(i32.lt_u
(local.get $0)
(local.get $1)
)
(call $_abort)
(block
(i32.store offset=16
(local.get $5)
(local.get $0)
)
(i32.store offset=24
(local.get $0)
(local.get $5)
)
)
)
)
(if
(tee_local $0
(i32.load offset=20
(local.get $3)
)
)
(if
(i32.lt_u
(local.get $0)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store offset=20
(local.get $5)
(local.get $0)
)
(i32.store offset=24
(local.get $0)
(local.get $5)
)
)
)
)
)
)
)
(if
(i32.lt_u
(local.get $6)
(i32.const 16)
)
(block
(i32.store offset=4
(local.get $3)
(i32.or
(tee_local $0
(i32.add
(local.get $6)
(local.get $2)
)
)
(i32.const 3)
)
)
(i32.store
(tee_local $0
(i32.add
(i32.add
(local.get $3)
(local.get $0)
)
(i32.const 4)
)
)
(i32.or
(i32.load
(local.get $0)
)
(i32.const 1)
)
)
)
(block
(i32.store offset=4
(local.get $3)
(i32.or
(local.get $2)
(i32.const 3)
)
)
(i32.store offset=4
(local.get $9)
(i32.or
(local.get $6)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $9)
(local.get $6)
)
(local.get $6)
)
(if
(local.get $16)
(block
(local.set $5
(i32.load
(i32.const 1153208)
)
)
(local.set $0
(i32.add
(i32.shl
(i32.shl
(tee_local $1
(i32.shr_u
(local.get $16)
(i32.const 3)
)
)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
(if
(i32.and
(local.get $7)
(tee_local $1
(i32.shl
(i32.const 1)
(local.get $1)
)
)
)
(if
(i32.lt_u
(tee_local $2
(i32.load
(tee_local $1
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(local.set $4
(local.get $2)
)
(local.set $14
(local.get $1)
)
)
)
(block
(i32.store
(i32.const 1153188)
(i32.or
(local.get $7)
(local.get $1)
)
)
(local.set $4
(local.get $0)
)
(local.set $14
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(i32.store
(local.get $14)
(local.get $5)
)
(i32.store offset=12
(local.get $4)
(local.get $5)
)
(i32.store offset=8
(local.get $5)
(local.get $4)
)
(i32.store offset=12
(local.get $5)
(local.get $0)
)
)
)
(i32.store
(i32.const 1153196)
(local.get $6)
)
(i32.store
(i32.const 1153208)
(local.get $9)
)
)
)
(global.set $STACKTOP
(local.get $13)
)
(return
(i32.add
(local.get $3)
(i32.const 8)
)
)
)
(local.set $0
(local.get $2)
)
)
)
(local.set $0
(local.get $2)
)
)
)
(if
(i32.gt_u
(local.get $0)
(i32.const -65)
)
(local.set $0
(i32.const -1)
)
(block
(local.set $5
(i32.and
(tee_local $0
(i32.add
(local.get $0)
(i32.const 11)
)
)
(i32.const -8)
)
)
(if
(tee_local $6
(i32.load
(i32.const 1153192)
)
)
(block
(local.set $17
(if i32
(tee_local $0
(i32.shr_u
(local.get $0)
(i32.const 8)
)
)
(if i32
(i32.gt_u
(local.get $5)
(i32.const 16777215)
)
(i32.const 31)
(i32.or
(i32.and
(i32.shr_u
(local.get $5)
(i32.add
(tee_local $0
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
(tee_local $3
(i32.and
(i32.shr_u
(i32.add
(tee_local $2
(i32.shl
(local.get $0)
(tee_local $0
(i32.and
(i32.shr_u
(i32.add
(local.get $0)
(i32.const 1048320)
)
(i32.const 16)
)
(i32.const 8)
)
)
)
)
(i32.const 520192)
)
(i32.const 16)
)
(i32.const 4)
)
)
(local.get $0)
)
(tee_local $2
(i32.and
(i32.shr_u
(i32.add
(tee_local $0
(i32.shl
(local.get $2)
(local.get $3)
)
)
(i32.const 245760)
)
(i32.const 16)
)
(i32.const 2)
)
)
)
)
(i32.shr_u
(i32.shl
(local.get $0)
(local.get $2)
)
(i32.const 15)
)
)
)
(i32.const 7)
)
)
(i32.const 1)
)
(i32.shl
(local.get $0)
(i32.const 1)
)
)
)
(i32.const 0)
)
)
(local.set $3
(i32.sub
(i32.const 0)
(local.get $5)
)
)
(block $__rjto$3
(block $__rjti$3
(block $__rjti$2
(if
(tee_local $0
(i32.load
(i32.add
(i32.shl
(local.get $17)
(i32.const 2)
)
(i32.const 1153492)
)
)
)
(block
(local.set $4
(i32.sub
(i32.const 25)
(i32.shr_u
(local.get $17)
(i32.const 1)
)
)
)
(local.set $2
(i32.const 0)
)
(local.set $11
(i32.shl
(local.get $5)
(if i32
(i32.eq
(local.get $17)
(i32.const 31)
)
(i32.const 0)
(local.get $4)
)
)
)
(local.set $4
(i32.const 0)
)
(loop $while-in14
(if
(i32.lt_u
(tee_local $14
(i32.sub
(i32.and
(i32.load offset=4
(local.get $0)
)
(i32.const -8)
)
(local.get $5)
)
)
(local.get $3)
)
(if
(local.get $14)
(block
(local.set $2
(local.get $0)
)
(local.set $3
(local.get $14)
)
)
(block
(local.set $2
(local.get $0)
)
(local.set $3
(i32.const 0)
)
(br $__rjti$3)
)
)
)
(if
(i32.eqz
(i32.or
(i32.eqz
(tee_local $14
(i32.load offset=20
(local.get $0)
)
)
)
(i32.eq
(local.get $14)
(tee_local $0
(i32.load
(i32.add
(i32.add
(local.get $0)
(i32.const 16)
)
(i32.shl
(i32.shr_u
(local.get $11)
(i32.const 31)
)
(i32.const 2)
)
)
)
)
)
)
)
(local.set $4
(local.get $14)
)
)
(local.set $11
(i32.shl
(local.get $11)
(i32.xor
(i32.and
(tee_local $14
(i32.eqz
(local.get $0)
)
)
(i32.const 1)
)
(i32.const 1)
)
)
)
(br_if $while-in14
(i32.eqz
(local.get $14)
)
)
(br $__rjti$2)
)
)
(block
(local.set $4
(i32.const 0)
)
(local.set $2
(i32.const 0)
)
)
)
)
(br_if $__rjti$3
(tee_local $0
(if i32
(i32.and
(i32.eqz
(local.get $4)
)
(i32.eqz
(local.get $2)
)
)
(block i32
(if
(i32.eqz
(tee_local $0
(i32.and
(local.get $6)
(i32.or
(tee_local $0
(i32.shl
(i32.const 2)
(local.get $17)
)
)
(i32.sub
(i32.const 0)
(local.get $0)
)
)
)
)
)
(block
(local.set $0
(local.get $5)
)
(br $do-once)
)
)
(local.set $0
(i32.and
(i32.shr_u
(tee_local $4
(i32.add
(i32.and
(local.get $0)
(i32.sub
(i32.const 0)
(local.get $0)
)
)
(i32.const -1)
)
)
(i32.const 12)
)
(i32.const 16)
)
)
(i32.load
(i32.add
(i32.shl
(i32.add
(i32.or
(i32.or
(i32.or
(i32.or
(tee_local $11
(i32.and
(i32.shr_u
(tee_local $4
(i32.shr_u
(local.get $4)
(local.get $0)
)
)
(i32.const 5)
)
(i32.const 8)
)
)
(local.get $0)
)
(tee_local $4
(i32.and
(i32.shr_u
(tee_local $0
(i32.shr_u
(local.get $4)
(local.get $11)
)
)
(i32.const 2)
)
(i32.const 4)
)
)
)
(tee_local $4
(i32.and
(i32.shr_u
(tee_local $0
(i32.shr_u
(local.get $0)
(local.get $4)
)
)
(i32.const 1)
)
(i32.const 2)
)
)
)
(tee_local $4
(i32.and
(i32.shr_u
(tee_local $0
(i32.shr_u
(local.get $0)
(local.get $4)
)
)
(i32.const 1)
)
(i32.const 1)
)
)
)
(i32.shr_u
(local.get $0)
(local.get $4)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
)
(local.get $4)
)
)
)
(local.set $4
(local.get $2)
)
(br $__rjto$3)
)
(loop $while-in16
(if
(tee_local $11
(i32.lt_u
(tee_local $4
(i32.sub
(i32.and
(i32.load offset=4
(local.get $0)
)
(i32.const -8)
)
(local.get $5)
)
)
(local.get $3)
)
)
(local.set $3
(local.get $4)
)
)
(if
(local.get $11)
(local.set $2
(local.get $0)
)
)
(if
(tee_local $4
(i32.load offset=16
(local.get $0)
)
)
(block
(local.set $0
(local.get $4)
)
(br $while-in16)
)
)
(br_if $while-in16
(tee_local $0
(i32.load offset=20
(local.get $0)
)
)
)
(local.set $4
(local.get $2)
)
)
)
(if
(local.get $4)
(if
(i32.lt_u
(local.get $3)
(i32.sub
(i32.load
(i32.const 1153196)
)
(local.get $5)
)
)
(block
(if
(i32.lt_u
(local.get $4)
(tee_local $15
(i32.load
(i32.const 1153204)
)
)
)
(call $_abort)
)
(if
(i32.ge_u
(local.get $4)
(tee_local $9
(i32.add
(local.get $4)
(local.get $5)
)
)
)
(call $_abort)
)
(local.set $11
(i32.load offset=24
(local.get $4)
)
)
(block $do-once17
(if
(i32.eq
(tee_local $0
(i32.load offset=12
(local.get $4)
)
)
(local.get $4)
)
(block
(if
(i32.eqz
(tee_local $0
(i32.load
(tee_local $2
(i32.add
(local.get $4)
(i32.const 20)
)
)
)
)
)
(if
(i32.eqz
(tee_local $0
(i32.load
(tee_local $2
(i32.add
(local.get $4)
(i32.const 16)
)
)
)
)
)
(block
(local.set $8
(i32.const 0)
)
(br $do-once17)
)
)
)
(loop $while-in20
(if
(tee_local $12
(i32.load
(tee_local $10
(i32.add
(local.get $0)
(i32.const 20)
)
)
)
)
(block
(local.set $0
(local.get $12)
)
(local.set $2
(local.get $10)
)
(br $while-in20)
)
)
(if
(tee_local $12
(i32.load
(tee_local $10
(i32.add
(local.get $0)
(i32.const 16)
)
)
)
)
(block
(local.set $0
(local.get $12)
)
(local.set $2
(local.get $10)
)
(br $while-in20)
)
)
)
(if
(i32.lt_u
(local.get $2)
(local.get $15)
)
(call $_abort)
(block
(i32.store
(local.get $2)
(i32.const 0)
)
(local.set $8
(local.get $0)
)
)
)
)
(block
(if
(i32.lt_u
(tee_local $2
(i32.load offset=8
(local.get $4)
)
)
(local.get $15)
)
(call $_abort)
)
(if
(i32.ne
(i32.load
(tee_local $10
(i32.add
(local.get $2)
(i32.const 12)
)
)
)
(local.get $4)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $12
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
(local.get $4)
)
(block
(i32.store
(local.get $10)
(local.get $0)
)
(i32.store
(local.get $12)
(local.get $2)
)
(local.set $8
(local.get $0)
)
)
(call $_abort)
)
)
)
)
(block $do-once21
(if
(local.get $11)
(block
(if
(i32.eq
(local.get $4)
(i32.load
(tee_local $2
(i32.add
(i32.shl
(tee_local $0
(i32.load offset=28
(local.get $4)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
)
)
(block
(i32.store
(local.get $2)
(local.get $8)
)
(if
(i32.eqz
(local.get $8)
)
(block
(i32.store
(i32.const 1153192)
(tee_local $1
(i32.and
(local.get $6)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $0)
)
(i32.const -1)
)
)
)
)
(br $do-once21)
)
)
)
(block
(if
(i32.lt_u
(local.get $11)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $0
(i32.add
(local.get $11)
(i32.const 16)
)
)
)
(local.get $4)
)
(i32.store
(local.get $0)
(local.get $8)
)
(i32.store offset=20
(local.get $11)
(local.get $8)
)
)
(if
(i32.eqz
(local.get $8)
)
(block
(local.set $1
(local.get $6)
)
(br $do-once21)
)
)
)
)
(if
(i32.lt_u
(local.get $8)
(tee_local $2
(i32.load
(i32.const 1153204)
)
)
)
(call $_abort)
)
(i32.store offset=24
(local.get $8)
(local.get $11)
)
(if
(tee_local $0
(i32.load offset=16
(local.get $4)
)
)
(if
(i32.lt_u
(local.get $0)
(local.get $2)
)
(call $_abort)
(block
(i32.store offset=16
(local.get $8)
(local.get $0)
)
(i32.store offset=24
(local.get $0)
(local.get $8)
)
)
)
)
(if
(tee_local $0
(i32.load offset=20
(local.get $4)
)
)
(if
(i32.lt_u
(local.get $0)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store offset=20
(local.get $8)
(local.get $0)
)
(i32.store offset=24
(local.get $0)
(local.get $8)
)
(local.set $1
(local.get $6)
)
)
)
(local.set $1
(local.get $6)
)
)
)
(local.set $1
(local.get $6)
)
)
)
(block $do-once25
(if
(i32.lt_u
(local.get $3)
(i32.const 16)
)
(block
(i32.store offset=4
(local.get $4)
(i32.or
(tee_local $0
(i32.add
(local.get $3)
(local.get $5)
)
)
(i32.const 3)
)
)
(i32.store
(tee_local $0
(i32.add
(i32.add
(local.get $4)
(local.get $0)
)
(i32.const 4)
)
)
(i32.or
(i32.load
(local.get $0)
)
(i32.const 1)
)
)
)
(block
(i32.store offset=4
(local.get $4)
(i32.or
(local.get $5)
(i32.const 3)
)
)
(i32.store offset=4
(local.get $9)
(i32.or
(local.get $3)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $9)
(local.get $3)
)
(local.get $3)
)
(local.set $2
(i32.shr_u
(local.get $3)
(i32.const 3)
)
)
(if
(i32.lt_u
(local.get $3)
(i32.const 256)
)
(block
(local.set $0
(i32.add
(i32.shl
(i32.shl
(local.get $2)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
(if
(i32.and
(tee_local $1
(i32.load
(i32.const 1153188)
)
)
(tee_local $2
(i32.shl
(i32.const 1)
(local.get $2)
)
)
)
(if
(i32.lt_u
(tee_local $2
(i32.load
(tee_local $1
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(local.set $7
(local.get $2)
)
(local.set $16
(local.get $1)
)
)
)
(block
(i32.store
(i32.const 1153188)
(i32.or
(local.get $1)
(local.get $2)
)
)
(local.set $7
(local.get $0)
)
(local.set $16
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(i32.store
(local.get $16)
(local.get $9)
)
(i32.store offset=12
(local.get $7)
(local.get $9)
)
(i32.store offset=8
(local.get $9)
(local.get $7)
)
(i32.store offset=12
(local.get $9)
(local.get $0)
)
(br $do-once25)
)
)
(local.set $0
(i32.add
(i32.shl
(tee_local $2
(if i32
(tee_local $0
(i32.shr_u
(local.get $3)
(i32.const 8)
)
)
(if i32
(i32.gt_u
(local.get $3)
(i32.const 16777215)
)
(i32.const 31)
(i32.or
(i32.and
(i32.shr_u
(local.get $3)
(i32.add
(tee_local $0
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
(tee_local $5
(i32.and
(i32.shr_u
(i32.add
(tee_local $2
(i32.shl
(local.get $0)
(tee_local $0
(i32.and
(i32.shr_u
(i32.add
(local.get $0)
(i32.const 1048320)
)
(i32.const 16)
)
(i32.const 8)
)
)
)
)
(i32.const 520192)
)
(i32.const 16)
)
(i32.const 4)
)
)
(local.get $0)
)
(tee_local $2
(i32.and
(i32.shr_u
(i32.add
(tee_local $0
(i32.shl
(local.get $2)
(local.get $5)
)
)
(i32.const 245760)
)
(i32.const 16)
)
(i32.const 2)
)
)
)
)
(i32.shr_u
(i32.shl
(local.get $0)
(local.get $2)
)
(i32.const 15)
)
)
)
(i32.const 7)
)
)
(i32.const 1)
)
(i32.shl
(local.get $0)
(i32.const 1)
)
)
)
(i32.const 0)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
(i32.store offset=28
(local.get $9)
(local.get $2)
)
(i32.store offset=4
(tee_local $5
(i32.add
(local.get $9)
(i32.const 16)
)
)
(i32.const 0)
)
(i32.store
(local.get $5)
(i32.const 0)
)
(if
(i32.eqz
(i32.and
(local.get $1)
(tee_local $5
(i32.shl
(i32.const 1)
(local.get $2)
)
)
)
)
(block
(i32.store
(i32.const 1153192)
(i32.or
(local.get $1)
(local.get $5)
)
)
(i32.store
(local.get $0)
(local.get $9)
)
(i32.store offset=24
(local.get $9)
(local.get $0)
)
(i32.store offset=12
(local.get $9)
(local.get $9)
)
(i32.store offset=8
(local.get $9)
(local.get $9)
)
(br $do-once25)
)
)
(local.set $0
(i32.load
(local.get $0)
)
)
(local.set $1
(i32.sub
(i32.const 25)
(i32.shr_u
(local.get $2)
(i32.const 1)
)
)
)
(local.set $1
(i32.shl
(local.get $3)
(if i32
(i32.eq
(local.get $2)
(i32.const 31)
)
(i32.const 0)
(local.get $1)
)
)
)
(block $__rjto$1
(block $__rjti$1
(block $__rjti$0
(loop $while-in28
(br_if $__rjti$1
(i32.eq
(i32.and
(i32.load offset=4
(local.get $0)
)
(i32.const -8)
)
(local.get $3)
)
)
(local.set $2
(i32.shl
(local.get $1)
(i32.const 1)
)
)
(br_if $__rjti$0
(i32.eqz
(tee_local $5
(i32.load
(tee_local $1
(i32.add
(i32.add
(local.get $0)
(i32.const 16)
)
(i32.shl
(i32.shr_u
(local.get $1)
(i32.const 31)
)
(i32.const 2)
)
)
)
)
)
)
)
(local.set $1
(local.get $2)
)
(local.set $0
(local.get $5)
)
(br $while-in28)
)
)
(if
(i32.lt_u
(local.get $1)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store
(local.get $1)
(local.get $9)
)
(i32.store offset=24
(local.get $9)
(local.get $0)
)
(i32.store offset=12
(local.get $9)
(local.get $9)
)
(i32.store offset=8
(local.get $9)
(local.get $9)
)
(br $do-once25)
)
)
(br $__rjto$1)
)
(if
(i32.and
(i32.ge_u
(tee_local $1
(i32.load
(tee_local $2
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(tee_local $3
(i32.load
(i32.const 1153204)
)
)
)
(i32.ge_u
(local.get $0)
(local.get $3)
)
)
(block
(i32.store offset=12
(local.get $1)
(local.get $9)
)
(i32.store
(local.get $2)
(local.get $9)
)
(i32.store offset=8
(local.get $9)
(local.get $1)
)
(i32.store offset=12
(local.get $9)
(local.get $0)
)
(i32.store offset=24
(local.get $9)
(i32.const 0)
)
)
(call $_abort)
)
)
)
)
)
(global.set $STACKTOP
(local.get $13)
)
(return
(i32.add
(local.get $4)
(i32.const 8)
)
)
)
(local.set $0
(local.get $5)
)
)
(local.set $0
(local.get $5)
)
)
)
(local.set $0
(local.get $5)
)
)
)
)
)
)
(if
(i32.ge_u
(tee_local $3
(i32.load
(i32.const 1153196)
)
)
(local.get $0)
)
(block
(local.set $1
(i32.load
(i32.const 1153208)
)
)
(if
(i32.gt_u
(tee_local $2
(i32.sub
(local.get $3)
(local.get $0)
)
)
(i32.const 15)
)
(block
(i32.store
(i32.const 1153208)
(tee_local $3
(i32.add
(local.get $1)
(local.get $0)
)
)
)
(i32.store
(i32.const 1153196)
(local.get $2)
)
(i32.store offset=4
(local.get $3)
(i32.or
(local.get $2)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $3)
(local.get $2)
)
(local.get $2)
)
(i32.store offset=4
(local.get $1)
(i32.or
(local.get $0)
(i32.const 3)
)
)
)
(block
(i32.store
(i32.const 1153196)
(i32.const 0)
)
(i32.store
(i32.const 1153208)
(i32.const 0)
)
(i32.store offset=4
(local.get $1)
(i32.or
(local.get $3)
(i32.const 3)
)
)
(i32.store
(tee_local $0
(i32.add
(i32.add
(local.get $1)
(local.get $3)
)
(i32.const 4)
)
)
(i32.or
(i32.load
(local.get $0)
)
(i32.const 1)
)
)
)
)
(global.set $STACKTOP
(local.get $13)
)
(return
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
)
(if
(i32.gt_u
(tee_local $3
(i32.load
(i32.const 1153200)
)
)
(local.get $0)
)
(block
(i32.store
(i32.const 1153200)
(tee_local $2
(i32.sub
(local.get $3)
(local.get $0)
)
)
)
(i32.store
(i32.const 1153212)
(tee_local $3
(i32.add
(tee_local $1
(i32.load
(i32.const 1153212)
)
)
(local.get $0)
)
)
)
(i32.store offset=4
(local.get $3)
(i32.or
(local.get $2)
(i32.const 1)
)
)
(i32.store offset=4
(local.get $1)
(i32.or
(local.get $0)
(i32.const 3)
)
)
(global.set $STACKTOP
(local.get $13)
)
(return
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
)
(if
(i32.le_u
(tee_local $5
(i32.and
(tee_local $4
(i32.add
(tee_local $1
(if i32
(i32.load
(i32.const 1153660)
)
(i32.load
(i32.const 1153668)
)
(block i32
(i32.store
(i32.const 1153668)
(i32.const 4096)
)
(i32.store
(i32.const 1153664)
(i32.const 4096)
)
(i32.store
(i32.const 1153672)
(i32.const -1)
)
(i32.store
(i32.const 1153676)
(i32.const -1)
)
(i32.store
(i32.const 1153680)
(i32.const 0)
)
(i32.store
(i32.const 1153632)
(i32.const 0)
)
(i32.store
(local.get $15)
(tee_local $1
(i32.xor
(i32.and
(local.get $15)
(i32.const -16)
)
(i32.const 1431655768)
)
)
)
(i32.store
(i32.const 1153660)
(local.get $1)
)
(i32.const 4096)
)
)
)
(tee_local $6
(i32.add
(local.get $0)
(i32.const 47)
)
)
)
)
(tee_local $8
(i32.sub
(i32.const 0)
(local.get $1)
)
)
)
)
(local.get $0)
)
(block
(global.set $STACKTOP
(local.get $13)
)
(return
(i32.const 0)
)
)
)
(if
(tee_local $1
(i32.load
(i32.const 1153628)
)
)
(if
(i32.or
(i32.le_u
(tee_local $7
(i32.add
(tee_local $2
(i32.load
(i32.const 1153620)
)
)
(local.get $5)
)
)
(local.get $2)
)
(i32.gt_u
(local.get $7)
(local.get $1)
)
)
(block
(global.set $STACKTOP
(local.get $13)
)
(return
(i32.const 0)
)
)
)
)
(local.set $7
(i32.add
(local.get $0)
(i32.const 48)
)
)
(block $__rjto$13
(block $__rjti$13
(if
(i32.eqz
(i32.and
(i32.load
(i32.const 1153632)
)
(i32.const 4)
)
)
(block
(block $label$break$L274
(block $__rjti$5
(block $__rjti$4
(br_if $__rjti$4
(i32.eqz
(tee_local $1
(i32.load
(i32.const 1153212)
)
)
)
)
(local.set $2
(i32.const 1153636)
)
(loop $while-in32
(block $while-out31
(if
(i32.le_u
(tee_local $11
(i32.load
(local.get $2)
)
)
(local.get $1)
)
(br_if $while-out31
(i32.gt_u
(i32.add
(local.get $11)
(i32.load
(tee_local $11
(i32.add
(local.get $2)
(i32.const 4)
)
)
)
)
(local.get $1)
)
)
)
(br_if $while-in32
(tee_local $2
(i32.load offset=8
(local.get $2)
)
)
)
(br $__rjti$4)
)
)
(if
(i32.lt_u
(tee_local $1
(i32.and
(i32.sub
(local.get $4)
(local.get $3)
)
(local.get $8)
)
)
(i32.const 2147483647)
)
(if
(i32.eq
(tee_local $3
(call $_sbrk
(local.get $1)
)
)
(i32.add
(i32.load
(local.get $2)
)
(i32.load
(local.get $11)
)
)
)
(if
(i32.ne
(local.get $3)
(i32.const -1)
)
(block
(local.set $2
(local.get $1)
)
(local.set $1
(local.get $3)
)
(br $__rjti$13)
)
)
(br $__rjti$5)
)
)
(br $label$break$L274)
)
(if
(i32.ne
(tee_local $3
(call $_sbrk
(i32.const 0)
)
)
(i32.const -1)
)
(block
(local.set $2
(i32.sub
(i32.and
(i32.add
(tee_local $4
(i32.add
(tee_local $2
(i32.load
(i32.const 1153664)
)
)
(i32.const -1)
)
)
(tee_local $1
(local.get $3)
)
)
(i32.sub
(i32.const 0)
(local.get $2)
)
)
(local.get $1)
)
)
(local.set $2
(i32.add
(tee_local $1
(i32.add
(if i32
(i32.and
(local.get $4)
(local.get $1)
)
(local.get $2)
(i32.const 0)
)
(local.get $5)
)
)
(tee_local $4
(i32.load
(i32.const 1153620)
)
)
)
)
(if
(i32.and
(i32.gt_u
(local.get $1)
(local.get $0)
)
(i32.lt_u
(local.get $1)
(i32.const 2147483647)
)
)
(block
(if
(tee_local $8
(i32.load
(i32.const 1153628)
)
)
(br_if $label$break$L274
(i32.or
(i32.le_u
(local.get $2)
(local.get $4)
)
(i32.gt_u
(local.get $2)
(local.get $8)
)
)
)
)
(if
(i32.eq
(tee_local $2
(call $_sbrk
(local.get $1)
)
)
(local.get $3)
)
(block
(local.set $2
(local.get $1)
)
(local.set $1
(local.get $3)
)
(br $__rjti$13)
)
(block
(local.set $3
(local.get $2)
)
(br $__rjti$5)
)
)
)
)
)
)
(br $label$break$L274)
)
(local.set $4
(i32.sub
(i32.const 0)
(local.get $1)
)
)
(if
(i32.and
(i32.gt_u
(local.get $7)
(local.get $1)
)
(i32.and
(i32.lt_u
(local.get $1)
(i32.const 2147483647)
)
(i32.ne
(local.get $3)
(i32.const -1)
)
)
)
(if
(i32.lt_u
(tee_local $2
(i32.and
(i32.add
(i32.sub
(local.get $6)
(local.get $1)
)
(tee_local $2
(i32.load
(i32.const 1153668)
)
)
)
(i32.sub
(i32.const 0)
(local.get $2)
)
)
)
(i32.const 2147483647)
)
(if
(i32.eq
(call $_sbrk
(local.get $2)
)
(i32.const -1)
)
(block
(drop
(call $_sbrk
(local.get $4)
)
)
(br $label$break$L274)
)
(local.set $1
(i32.add
(local.get $2)
(local.get $1)
)
)
)
)
)
(if
(i32.ne
(local.get $3)
(i32.const -1)
)
(block
(local.set $2
(local.get $1)
)
(local.set $1
(local.get $3)
)
(br $__rjti$13)
)
)
)
(i32.store
(i32.const 1153632)
(i32.or
(i32.load
(i32.const 1153632)
)
(i32.const 4)
)
)
)
)
(if
(i32.lt_u
(local.get $5)
(i32.const 2147483647)
)
(if
(i32.and
(i32.lt_u
(tee_local $1
(call $_sbrk
(local.get $5)
)
)
(tee_local $2
(call $_sbrk
(i32.const 0)
)
)
)
(i32.and
(i32.ne
(local.get $1)
(i32.const -1)
)
(i32.ne
(local.get $2)
(i32.const -1)
)
)
)
(br_if $__rjti$13
(i32.gt_u
(tee_local $2
(i32.sub
(local.get $2)
(local.get $1)
)
)
(i32.add
(local.get $0)
(i32.const 40)
)
)
)
)
)
(br $__rjto$13)
)
(i32.store
(i32.const 1153620)
(tee_local $3
(i32.add
(i32.load
(i32.const 1153620)
)
(local.get $2)
)
)
)
(if
(i32.gt_u
(local.get $3)
(i32.load
(i32.const 1153624)
)
)
(i32.store
(i32.const 1153624)
(local.get $3)
)
)
(block $do-once38
(if
(tee_local $6
(i32.load
(i32.const 1153212)
)
)
(block
(local.set $3
(i32.const 1153636)
)
(block $__rjto$10
(block $__rjti$10
(loop $while-in43
(br_if $__rjti$10
(i32.eq
(local.get $1)
(i32.add
(tee_local $5
(i32.load
(local.get $3)
)
)
(tee_local $8
(i32.load
(tee_local $4
(i32.add
(local.get $3)
(i32.const 4)
)
)
)
)
)
)
)
(br_if $while-in43
(tee_local $3
(i32.load offset=8
(local.get $3)
)
)
)
)
(br $__rjto$10)
)
(if
(i32.eqz
(i32.and
(i32.load offset=12
(local.get $3)
)
(i32.const 8)
)
)
(if
(i32.and
(i32.lt_u
(local.get $6)
(local.get $1)
)
(i32.ge_u
(local.get $6)
(local.get $5)
)
)
(block
(i32.store
(local.get $4)
(i32.add
(local.get $8)
(local.get $2)
)
)
(local.set $5
(i32.load
(i32.const 1153200)
)
)
(local.set $1
(i32.and
(i32.sub
(i32.const 0)
(tee_local $3
(i32.add
(local.get $6)
(i32.const 8)
)
)
)
(i32.const 7)
)
)
(i32.store
(i32.const 1153212)
(tee_local $3
(i32.add
(local.get $6)
(if i32
(i32.and
(local.get $3)
(i32.const 7)
)
(local.get $1)
(tee_local $1
(i32.const 0)
)
)
)
)
)
(i32.store
(i32.const 1153200)
(tee_local $1
(i32.add
(i32.sub
(local.get $2)
(local.get $1)
)
(local.get $5)
)
)
)
(i32.store offset=4
(local.get $3)
(i32.or
(local.get $1)
(i32.const 1)
)
)
(i32.store offset=4
(i32.add
(local.get $3)
(local.get $1)
)
(i32.const 40)
)
(i32.store
(i32.const 1153216)
(i32.load
(i32.const 1153676)
)
)
(br $do-once38)
)
)
)
)
(if
(i32.lt_u
(local.get $1)
(tee_local $3
(i32.load
(i32.const 1153204)
)
)
)
(block
(i32.store
(i32.const 1153204)
(local.get $1)
)
(local.set $3
(local.get $1)
)
)
)
(local.set $4
(i32.add
(local.get $1)
(local.get $2)
)
)
(local.set $5
(i32.const 1153636)
)
(block $__rjto$11
(block $__rjti$11
(loop $while-in45
(br_if $__rjti$11
(i32.eq
(i32.load
(local.get $5)
)
(local.get $4)
)
)
(br_if $while-in45
(tee_local $5
(i32.load offset=8
(local.get $5)
)
)
)
(local.set $3
(i32.const 1153636)
)
)
(br $__rjto$11)
)
(if
(i32.and
(i32.load offset=12
(local.get $5)
)
(i32.const 8)
)
(local.set $3
(i32.const 1153636)
)
(block
(i32.store
(local.get $5)
(local.get $1)
)
(i32.store
(tee_local $5
(i32.add
(local.get $5)
(i32.const 4)
)
)
(i32.add
(i32.load
(local.get $5)
)
(local.get $2)
)
)
(local.set $5
(i32.and
(i32.sub
(i32.const 0)
(tee_local $2
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
(i32.const 7)
)
)
(local.set $11
(i32.and
(i32.sub
(i32.const 0)
(tee_local $8
(i32.add
(local.get $4)
(i32.const 8)
)
)
)
(i32.const 7)
)
)
(local.set $7
(i32.add
(tee_local $9
(i32.add
(local.get $1)
(if i32
(i32.and
(local.get $2)
(i32.const 7)
)
(local.get $5)
(i32.const 0)
)
)
)
(local.get $0)
)
)
(local.set $8
(i32.sub
(i32.sub
(tee_local $4
(i32.add
(local.get $4)
(if i32
(i32.and
(local.get $8)
(i32.const 7)
)
(local.get $11)
(i32.const 0)
)
)
)
(local.get $9)
)
(local.get $0)
)
)
(i32.store offset=4
(local.get $9)
(i32.or
(local.get $0)
(i32.const 3)
)
)
(block $do-once46
(if
(i32.eq
(local.get $4)
(local.get $6)
)
(block
(i32.store
(i32.const 1153200)
(tee_local $0
(i32.add
(i32.load
(i32.const 1153200)
)
(local.get $8)
)
)
)
(i32.store
(i32.const 1153212)
(local.get $7)
)
(i32.store offset=4
(local.get $7)
(i32.or
(local.get $0)
(i32.const 1)
)
)
)
(block
(if
(i32.eq
(local.get $4)
(i32.load
(i32.const 1153208)
)
)
(block
(i32.store
(i32.const 1153196)
(tee_local $0
(i32.add
(i32.load
(i32.const 1153196)
)
(local.get $8)
)
)
)
(i32.store
(i32.const 1153208)
(local.get $7)
)
(i32.store offset=4
(local.get $7)
(i32.or
(local.get $0)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $7)
(local.get $0)
)
(local.get $0)
)
(br $do-once46)
)
)
(local.set $5
(if i32
(i32.eq
(i32.and
(tee_local $0
(i32.load offset=4
(local.get $4)
)
)
(i32.const 3)
)
(i32.const 1)
)
(block i32
(local.set $11
(i32.and
(local.get $0)
(i32.const -8)
)
)
(local.set $5
(i32.shr_u
(local.get $0)
(i32.const 3)
)
)
(block $label$break$L326
(if
(i32.lt_u
(local.get $0)
(i32.const 256)
)
(block
(local.set $1
(i32.load offset=12
(local.get $4)
)
)
(block $do-once49
(if
(i32.ne
(tee_local $2
(i32.load offset=8
(local.get $4)
)
)
(tee_local $0
(i32.add
(i32.shl
(i32.shl
(local.get $5)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
)
(block
(if
(i32.lt_u
(local.get $2)
(local.get $3)
)
(call $_abort)
)
(br_if $do-once49
(i32.eq
(i32.load offset=12
(local.get $2)
)
(local.get $4)
)
)
(call $_abort)
)
)
)
(if
(i32.eq
(local.get $1)
(local.get $2)
)
(block
(i32.store
(i32.const 1153188)
(i32.and
(i32.load
(i32.const 1153188)
)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $5)
)
(i32.const -1)
)
)
)
(br $label$break$L326)
)
)
(block $do-once51
(if
(i32.eq
(local.get $1)
(local.get $0)
)
(local.set $18
(i32.add
(local.get $1)
(i32.const 8)
)
)
(block
(if
(i32.lt_u
(local.get $1)
(local.get $3)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $0
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
(local.get $4)
)
(block
(local.set $18
(local.get $0)
)
(br $do-once51)
)
)
(call $_abort)
)
)
)
(i32.store offset=12
(local.get $2)
(local.get $1)
)
(i32.store
(local.get $18)
(local.get $2)
)
)
(block
(local.set $6
(i32.load offset=24
(local.get $4)
)
)
(block $do-once53
(if
(i32.eq
(tee_local $0
(i32.load offset=12
(local.get $4)
)
)
(local.get $4)
)
(block
(if
(tee_local $0
(i32.load
(tee_local $2
(i32.add
(tee_local $1
(i32.add
(local.get $4)
(i32.const 16)
)
)
(i32.const 4)
)
)
)
)
(local.set $1
(local.get $2)
)
(if
(i32.eqz
(tee_local $0
(i32.load
(local.get $1)
)
)
)
(block
(local.set $10
(i32.const 0)
)
(br $do-once53)
)
)
)
(loop $while-in56
(if
(tee_local $5
(i32.load
(tee_local $2
(i32.add
(local.get $0)
(i32.const 20)
)
)
)
)
(block
(local.set $0
(local.get $5)
)
(local.set $1
(local.get $2)
)
(br $while-in56)
)
)
(if
(tee_local $5
(i32.load
(tee_local $2
(i32.add
(local.get $0)
(i32.const 16)
)
)
)
)
(block
(local.set $0
(local.get $5)
)
(local.set $1
(local.get $2)
)
(br $while-in56)
)
)
)
(if
(i32.lt_u
(local.get $1)
(local.get $3)
)
(call $_abort)
(block
(i32.store
(local.get $1)
(i32.const 0)
)
(local.set $10
(local.get $0)
)
)
)
)
(block
(if
(i32.lt_u
(tee_local $1
(i32.load offset=8
(local.get $4)
)
)
(local.get $3)
)
(call $_abort)
)
(if
(i32.ne
(i32.load
(tee_local $2
(i32.add
(local.get $1)
(i32.const 12)
)
)
)
(local.get $4)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $3
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
(local.get $4)
)
(block
(i32.store
(local.get $2)
(local.get $0)
)
(i32.store
(local.get $3)
(local.get $1)
)
(local.set $10
(local.get $0)
)
)
(call $_abort)
)
)
)
)
(br_if $label$break$L326
(i32.eqz
(local.get $6)
)
)
(block $do-once57
(if
(i32.eq
(local.get $4)
(i32.load
(tee_local $1
(i32.add
(i32.shl
(tee_local $0
(i32.load offset=28
(local.get $4)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
)
)
(block
(i32.store
(local.get $1)
(local.get $10)
)
(br_if $do-once57
(local.get $10)
)
(i32.store
(i32.const 1153192)
(i32.and
(i32.load
(i32.const 1153192)
)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $0)
)
(i32.const -1)
)
)
)
(br $label$break$L326)
)
(block
(if
(i32.lt_u
(local.get $6)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $0
(i32.add
(local.get $6)
(i32.const 16)
)
)
)
(local.get $4)
)
(i32.store
(local.get $0)
(local.get $10)
)
(i32.store offset=20
(local.get $6)
(local.get $10)
)
)
(br_if $label$break$L326
(i32.eqz
(local.get $10)
)
)
)
)
)
(if
(i32.lt_u
(local.get $10)
(tee_local $1
(i32.load
(i32.const 1153204)
)
)
)
(call $_abort)
)
(i32.store offset=24
(local.get $10)
(local.get $6)
)
(if
(tee_local $0
(i32.load
(tee_local $2
(i32.add
(local.get $4)
(i32.const 16)
)
)
)
)
(if
(i32.lt_u
(local.get $0)
(local.get $1)
)
(call $_abort)
(block
(i32.store offset=16
(local.get $10)
(local.get $0)
)
(i32.store offset=24
(local.get $0)
(local.get $10)
)
)
)
)
(br_if $label$break$L326
(i32.eqz
(tee_local $0
(i32.load offset=4
(local.get $2)
)
)
)
)
(if
(i32.lt_u
(local.get $0)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store offset=20
(local.get $10)
(local.get $0)
)
(i32.store offset=24
(local.get $0)
(local.get $10)
)
)
)
)
)
)
(local.set $4
(i32.add
(local.get $4)
(local.get $11)
)
)
(i32.add
(local.get $11)
(local.get $8)
)
)
(local.get $8)
)
)
(i32.store
(tee_local $0
(i32.add
(local.get $4)
(i32.const 4)
)
)
(i32.and
(i32.load
(local.get $0)
)
(i32.const -2)
)
)
(i32.store offset=4
(local.get $7)
(i32.or
(local.get $5)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $7)
(local.get $5)
)
(local.get $5)
)
(local.set $1
(i32.shr_u
(local.get $5)
(i32.const 3)
)
)
(if
(i32.lt_u
(local.get $5)
(i32.const 256)
)
(block
(local.set $0
(i32.add
(i32.shl
(i32.shl
(local.get $1)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
(block $do-once61
(if
(i32.and
(tee_local $2
(i32.load
(i32.const 1153188)
)
)
(tee_local $1
(i32.shl
(i32.const 1)
(local.get $1)
)
)
)
(block
(if
(i32.ge_u
(tee_local $2
(i32.load
(tee_local $1
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(i32.load
(i32.const 1153204)
)
)
(block
(local.set $12
(local.get $2)
)
(local.set $19
(local.get $1)
)
(br $do-once61)
)
)
(call $_abort)
)
(block
(i32.store
(i32.const 1153188)
(i32.or
(local.get $2)
(local.get $1)
)
)
(local.set $12
(local.get $0)
)
(local.set $19
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
)
(i32.store
(local.get $19)
(local.get $7)
)
(i32.store offset=12
(local.get $12)
(local.get $7)
)
(i32.store offset=8
(local.get $7)
(local.get $12)
)
(i32.store offset=12
(local.get $7)
(local.get $0)
)
(br $do-once46)
)
)
(local.set $0
(i32.add
(i32.shl
(tee_local $1
(block $do-once63 i32
(if i32
(tee_local $0
(i32.shr_u
(local.get $5)
(i32.const 8)
)
)
(block i32
(drop
(br_if $do-once63
(i32.const 31)
(i32.gt_u
(local.get $5)
(i32.const 16777215)
)
)
)
(i32.or
(i32.and
(i32.shr_u
(local.get $5)
(i32.add
(tee_local $0
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
(tee_local $2
(i32.and
(i32.shr_u
(i32.add
(tee_local $1
(i32.shl
(local.get $0)
(tee_local $0
(i32.and
(i32.shr_u
(i32.add
(local.get $0)
(i32.const 1048320)
)
(i32.const 16)
)
(i32.const 8)
)
)
)
)
(i32.const 520192)
)
(i32.const 16)
)
(i32.const 4)
)
)
(local.get $0)
)
(tee_local $1
(i32.and
(i32.shr_u
(i32.add
(tee_local $0
(i32.shl
(local.get $1)
(local.get $2)
)
)
(i32.const 245760)
)
(i32.const 16)
)
(i32.const 2)
)
)
)
)
(i32.shr_u
(i32.shl
(local.get $0)
(local.get $1)
)
(i32.const 15)
)
)
)
(i32.const 7)
)
)
(i32.const 1)
)
(i32.shl
(local.get $0)
(i32.const 1)
)
)
)
(i32.const 0)
)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
(i32.store offset=28
(local.get $7)
(local.get $1)
)
(i32.store offset=4
(tee_local $2
(i32.add
(local.get $7)
(i32.const 16)
)
)
(i32.const 0)
)
(i32.store
(local.get $2)
(i32.const 0)
)
(if
(i32.eqz
(i32.and
(tee_local $2
(i32.load
(i32.const 1153192)
)
)
(tee_local $3
(i32.shl
(i32.const 1)
(local.get $1)
)
)
)
)
(block
(i32.store
(i32.const 1153192)
(i32.or
(local.get $2)
(local.get $3)
)
)
(i32.store
(local.get $0)
(local.get $7)
)
(i32.store offset=24
(local.get $7)
(local.get $0)
)
(i32.store offset=12
(local.get $7)
(local.get $7)
)
(i32.store offset=8
(local.get $7)
(local.get $7)
)
(br $do-once46)
)
)
(local.set $0
(i32.load
(local.get $0)
)
)
(local.set $2
(i32.sub
(i32.const 25)
(i32.shr_u
(local.get $1)
(i32.const 1)
)
)
)
(local.set $1
(i32.shl
(local.get $5)
(if i32
(i32.eq
(local.get $1)
(i32.const 31)
)
(i32.const 0)
(local.get $2)
)
)
)
(block $__rjto$7
(block $__rjti$7
(block $__rjti$6
(loop $while-in66
(br_if $__rjti$7
(i32.eq
(i32.and
(i32.load offset=4
(local.get $0)
)
(i32.const -8)
)
(local.get $5)
)
)
(local.set $2
(i32.shl
(local.get $1)
(i32.const 1)
)
)
(br_if $__rjti$6
(i32.eqz
(tee_local $3
(i32.load
(tee_local $1
(i32.add
(i32.add
(local.get $0)
(i32.const 16)
)
(i32.shl
(i32.shr_u
(local.get $1)
(i32.const 31)
)
(i32.const 2)
)
)
)
)
)
)
)
(local.set $1
(local.get $2)
)
(local.set $0
(local.get $3)
)
(br $while-in66)
)
)
(if
(i32.lt_u
(local.get $1)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store
(local.get $1)
(local.get $7)
)
(i32.store offset=24
(local.get $7)
(local.get $0)
)
(i32.store offset=12
(local.get $7)
(local.get $7)
)
(i32.store offset=8
(local.get $7)
(local.get $7)
)
(br $do-once46)
)
)
(br $__rjto$7)
)
(if
(i32.and
(i32.ge_u
(tee_local $1
(i32.load
(tee_local $2
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(tee_local $3
(i32.load
(i32.const 1153204)
)
)
)
(i32.ge_u
(local.get $0)
(local.get $3)
)
)
(block
(i32.store offset=12
(local.get $1)
(local.get $7)
)
(i32.store
(local.get $2)
(local.get $7)
)
(i32.store offset=8
(local.get $7)
(local.get $1)
)
(i32.store offset=12
(local.get $7)
(local.get $0)
)
(i32.store offset=24
(local.get $7)
(i32.const 0)
)
)
(call $_abort)
)
)
)
)
)
(global.set $STACKTOP
(local.get $13)
)
(return
(i32.add
(local.get $9)
(i32.const 8)
)
)
)
)
)
(loop $while-in68
(block $while-out67
(if
(i32.le_u
(tee_local $5
(i32.load
(local.get $3)
)
)
(local.get $6)
)
(br_if $while-out67
(i32.gt_u
(tee_local $10
(i32.add
(local.get $5)
(i32.load offset=4
(local.get $3)
)
)
)
(local.get $6)
)
)
)
(local.set $3
(i32.load offset=8
(local.get $3)
)
)
(br $while-in68)
)
)
(local.set $4
(i32.and
(i32.sub
(i32.const 0)
(tee_local $5
(i32.add
(tee_local $3
(i32.add
(local.get $10)
(i32.const -47)
)
)
(i32.const 8)
)
)
)
(i32.const 7)
)
)
(local.set $8
(i32.add
(if i32
(i32.lt_u
(tee_local $3
(i32.add
(local.get $3)
(if i32
(i32.and
(local.get $5)
(i32.const 7)
)
(local.get $4)
(i32.const 0)
)
)
)
(tee_local $12
(i32.add
(local.get $6)
(i32.const 16)
)
)
)
(tee_local $3
(local.get $6)
)
(local.get $3)
)
(i32.const 8)
)
)
(local.set $5
(i32.add
(local.get $3)
(i32.const 24)
)
)
(local.set $11
(i32.add
(local.get $2)
(i32.const -40)
)
)
(local.set $4
(i32.and
(i32.sub
(i32.const 0)
(tee_local $7
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
(i32.const 7)
)
)
(i32.store
(i32.const 1153212)
(tee_local $7
(i32.add
(local.get $1)
(if i32
(i32.and
(local.get $7)
(i32.const 7)
)
(local.get $4)
(tee_local $4
(i32.const 0)
)
)
)
)
)
(i32.store
(i32.const 1153200)
(tee_local $4
(i32.sub
(local.get $11)
(local.get $4)
)
)
)
(i32.store offset=4
(local.get $7)
(i32.or
(local.get $4)
(i32.const 1)
)
)
(i32.store offset=4
(i32.add
(local.get $7)
(local.get $4)
)
(i32.const 40)
)
(i32.store
(i32.const 1153216)
(i32.load
(i32.const 1153676)
)
)
(i32.store
(tee_local $4
(i32.add
(local.get $3)
(i32.const 4)
)
)
(i32.const 27)
)
(i64.store align=4
(local.get $8)
(i64.load align=4
(i32.const 1153636)
)
)
(i64.store offset=8 align=4
(local.get $8)
(i64.load align=4
(i32.const 1153644)
)
)
(i32.store
(i32.const 1153636)
(local.get $1)
)
(i32.store
(i32.const 1153640)
(local.get $2)
)
(i32.store
(i32.const 1153648)
(i32.const 0)
)
(i32.store
(i32.const 1153644)
(local.get $8)
)
(local.set $1
(local.get $5)
)
(loop $while-in70
(i32.store
(tee_local $1
(i32.add
(local.get $1)
(i32.const 4)
)
)
(i32.const 7)
)
(br_if $while-in70
(i32.lt_u
(i32.add
(local.get $1)
(i32.const 4)
)
(local.get $10)
)
)
)
(if
(i32.ne
(local.get $3)
(local.get $6)
)
(block
(i32.store
(local.get $4)
(i32.and
(i32.load
(local.get $4)
)
(i32.const -2)
)
)
(i32.store offset=4
(local.get $6)
(i32.or
(tee_local $4
(i32.sub
(local.get $3)
(local.get $6)
)
)
(i32.const 1)
)
)
(i32.store
(local.get $3)
(local.get $4)
)
(local.set $2
(i32.shr_u
(local.get $4)
(i32.const 3)
)
)
(if
(i32.lt_u
(local.get $4)
(i32.const 256)
)
(block
(local.set $1
(i32.add
(i32.shl
(i32.shl
(local.get $2)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
(if
(i32.and
(tee_local $3
(i32.load
(i32.const 1153188)
)
)
(tee_local $2
(i32.shl
(i32.const 1)
(local.get $2)
)
)
)
(if
(i32.lt_u
(tee_local $3
(i32.load
(tee_local $2
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(local.set $9
(local.get $3)
)
(local.set $20
(local.get $2)
)
)
)
(block
(i32.store
(i32.const 1153188)
(i32.or
(local.get $3)
(local.get $2)
)
)
(local.set $9
(local.get $1)
)
(local.set $20
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
)
(i32.store
(local.get $20)
(local.get $6)
)
(i32.store offset=12
(local.get $9)
(local.get $6)
)
(i32.store offset=8
(local.get $6)
(local.get $9)
)
(i32.store offset=12
(local.get $6)
(local.get $1)
)
(br $do-once38)
)
)
(local.set $1
(i32.add
(i32.shl
(tee_local $2
(if i32
(tee_local $1
(i32.shr_u
(local.get $4)
(i32.const 8)
)
)
(if i32
(i32.gt_u
(local.get $4)
(i32.const 16777215)
)
(i32.const 31)
(i32.or
(i32.and
(i32.shr_u
(local.get $4)
(i32.add
(tee_local $1
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
(tee_local $3
(i32.and
(i32.shr_u
(i32.add
(tee_local $2
(i32.shl
(local.get $1)
(tee_local $1
(i32.and
(i32.shr_u
(i32.add
(local.get $1)
(i32.const 1048320)
)
(i32.const 16)
)
(i32.const 8)
)
)
)
)
(i32.const 520192)
)
(i32.const 16)
)
(i32.const 4)
)
)
(local.get $1)
)
(tee_local $2
(i32.and
(i32.shr_u
(i32.add
(tee_local $1
(i32.shl
(local.get $2)
(local.get $3)
)
)
(i32.const 245760)
)
(i32.const 16)
)
(i32.const 2)
)
)
)
)
(i32.shr_u
(i32.shl
(local.get $1)
(local.get $2)
)
(i32.const 15)
)
)
)
(i32.const 7)
)
)
(i32.const 1)
)
(i32.shl
(local.get $1)
(i32.const 1)
)
)
)
(i32.const 0)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
(i32.store offset=28
(local.get $6)
(local.get $2)
)
(i32.store offset=20
(local.get $6)
(i32.const 0)
)
(i32.store
(local.get $12)
(i32.const 0)
)
(if
(i32.eqz
(i32.and
(tee_local $3
(i32.load
(i32.const 1153192)
)
)
(tee_local $5
(i32.shl
(i32.const 1)
(local.get $2)
)
)
)
)
(block
(i32.store
(i32.const 1153192)
(i32.or
(local.get $3)
(local.get $5)
)
)
(i32.store
(local.get $1)
(local.get $6)
)
(i32.store offset=24
(local.get $6)
(local.get $1)
)
(i32.store offset=12
(local.get $6)
(local.get $6)
)
(i32.store offset=8
(local.get $6)
(local.get $6)
)
(br $do-once38)
)
)
(local.set $1
(i32.load
(local.get $1)
)
)
(local.set $3
(i32.sub
(i32.const 25)
(i32.shr_u
(local.get $2)
(i32.const 1)
)
)
)
(local.set $2
(i32.shl
(local.get $4)
(if i32
(i32.eq
(local.get $2)
(i32.const 31)
)
(i32.const 0)
(local.get $3)
)
)
)
(block $__rjto$9
(block $__rjti$9
(block $__rjti$8
(loop $while-in72
(br_if $__rjti$9
(i32.eq
(i32.and
(i32.load offset=4
(local.get $1)
)
(i32.const -8)
)
(local.get $4)
)
)
(local.set $3
(i32.shl
(local.get $2)
(i32.const 1)
)
)
(br_if $__rjti$8
(i32.eqz
(tee_local $5
(i32.load
(tee_local $2
(i32.add
(i32.add
(local.get $1)
(i32.const 16)
)
(i32.shl
(i32.shr_u
(local.get $2)
(i32.const 31)
)
(i32.const 2)
)
)
)
)
)
)
)
(local.set $2
(local.get $3)
)
(local.set $1
(local.get $5)
)
(br $while-in72)
)
)
(if
(i32.lt_u
(local.get $2)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store
(local.get $2)
(local.get $6)
)
(i32.store offset=24
(local.get $6)
(local.get $1)
)
(i32.store offset=12
(local.get $6)
(local.get $6)
)
(i32.store offset=8
(local.get $6)
(local.get $6)
)
(br $do-once38)
)
)
(br $__rjto$9)
)
(if
(i32.and
(i32.ge_u
(tee_local $2
(i32.load
(tee_local $3
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
)
(tee_local $5
(i32.load
(i32.const 1153204)
)
)
)
(i32.ge_u
(local.get $1)
(local.get $5)
)
)
(block
(i32.store offset=12
(local.get $2)
(local.get $6)
)
(i32.store
(local.get $3)
(local.get $6)
)
(i32.store offset=8
(local.get $6)
(local.get $2)
)
(i32.store offset=12
(local.get $6)
(local.get $1)
)
(i32.store offset=24
(local.get $6)
(i32.const 0)
)
)
(call $_abort)
)
)
)
)
)
(block
(if
(i32.or
(i32.eqz
(tee_local $3
(i32.load
(i32.const 1153204)
)
)
)
(i32.lt_u
(local.get $1)
(local.get $3)
)
)
(i32.store
(i32.const 1153204)
(local.get $1)
)
)
(i32.store
(i32.const 1153636)
(local.get $1)
)
(i32.store
(i32.const 1153640)
(local.get $2)
)
(i32.store
(i32.const 1153648)
(i32.const 0)
)
(i32.store
(i32.const 1153224)
(i32.load
(i32.const 1153660)
)
)
(i32.store
(i32.const 1153220)
(i32.const -1)
)
(local.set $3
(i32.const 0)
)
(loop $while-in41
(i32.store offset=12
(tee_local $5
(i32.add
(i32.shl
(i32.shl
(local.get $3)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
(local.get $5)
)
(i32.store offset=8
(local.get $5)
(local.get $5)
)
(br_if $while-in41
(i32.ne
(tee_local $3
(i32.add
(local.get $3)
(i32.const 1)
)
)
(i32.const 32)
)
)
)
(local.set $3
(i32.add
(local.get $2)
(i32.const -40)
)
)
(local.set $2
(i32.and
(i32.sub
(i32.const 0)
(tee_local $5
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
(i32.const 7)
)
)
(i32.store
(i32.const 1153212)
(tee_local $1
(i32.add
(local.get $1)
(if i32
(i32.and
(local.get $5)
(i32.const 7)
)
(local.get $2)
(tee_local $2
(i32.const 0)
)
)
)
)
)
(i32.store
(i32.const 1153200)
(tee_local $2
(i32.sub
(local.get $3)
(local.get $2)
)
)
)
(i32.store offset=4
(local.get $1)
(i32.or
(local.get $2)
(i32.const 1)
)
)
(i32.store offset=4
(i32.add
(local.get $1)
(local.get $2)
)
(i32.const 40)
)
(i32.store
(i32.const 1153216)
(i32.load
(i32.const 1153676)
)
)
)
)
)
(if
(i32.gt_u
(tee_local $1
(i32.load
(i32.const 1153200)
)
)
(local.get $0)
)
(block
(i32.store
(i32.const 1153200)
(tee_local $2
(i32.sub
(local.get $1)
(local.get $0)
)
)
)
(i32.store
(i32.const 1153212)
(tee_local $3
(i32.add
(tee_local $1
(i32.load
(i32.const 1153212)
)
)
(local.get $0)
)
)
)
(i32.store offset=4
(local.get $3)
(i32.or
(local.get $2)
(i32.const 1)
)
)
(i32.store offset=4
(local.get $1)
(i32.or
(local.get $0)
(i32.const 3)
)
)
(global.set $STACKTOP
(local.get $13)
)
(return
(i32.add
(local.get $1)
(i32.const 8)
)
)
)
)
)
(i32.store
(call $___errno_location)
(i32.const 12)
)
(global.set $STACKTOP
(local.get $13)
)
(i32.const 0)
)
(func $_free (param $0 i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local $6 i32)
(local $7 i32)
(local $8 i32)
(local $9 i32)
(local $10 i32)
(local $11 i32)
(local $12 i32)
(local $13 i32)
(local $14 i32)
(local $15 i32)
(if
(i32.eqz
(local.get $0)
)
(return)
)
(if
(i32.lt_u
(tee_local $1
(i32.add
(local.get $0)
(i32.const -8)
)
)
(tee_local $11
(i32.load
(i32.const 1153204)
)
)
)
(call $_abort)
)
(if
(i32.eq
(tee_local $8
(i32.and
(tee_local $0
(i32.load
(i32.add
(local.get $0)
(i32.const -4)
)
)
)
(i32.const 3)
)
)
(i32.const 1)
)
(call $_abort)
)
(local.set $6
(i32.add
(local.get $1)
(tee_local $4
(i32.and
(local.get $0)
(i32.const -8)
)
)
)
)
(block $do-once
(if
(i32.and
(local.get $0)
(i32.const 1)
)
(block
(local.set $3
(local.get $1)
)
(local.set $2
(local.get $4)
)
)
(block
(if
(i32.eqz
(local.get $8)
)
(return)
)
(if
(i32.lt_u
(tee_local $0
(i32.add
(local.get $1)
(i32.sub
(i32.const 0)
(tee_local $8
(i32.load
(local.get $1)
)
)
)
)
)
(local.get $11)
)
(call $_abort)
)
(local.set $1
(i32.add
(local.get $8)
(local.get $4)
)
)
(if
(i32.eq
(local.get $0)
(i32.load
(i32.const 1153208)
)
)
(block
(if
(i32.ne
(i32.and
(tee_local $3
(i32.load
(tee_local $2
(i32.add
(local.get $6)
(i32.const 4)
)
)
)
)
(i32.const 3)
)
(i32.const 3)
)
(block
(local.set $3
(local.get $0)
)
(local.set $2
(local.get $1)
)
(br $do-once)
)
)
(i32.store
(i32.const 1153196)
(local.get $1)
)
(i32.store
(local.get $2)
(i32.and
(local.get $3)
(i32.const -2)
)
)
(i32.store offset=4
(local.get $0)
(i32.or
(local.get $1)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $0)
(local.get $1)
)
(local.get $1)
)
(return)
)
)
(local.set $10
(i32.shr_u
(local.get $8)
(i32.const 3)
)
)
(if
(i32.lt_u
(local.get $8)
(i32.const 256)
)
(block
(local.set $3
(i32.load offset=12
(local.get $0)
)
)
(if
(i32.ne
(tee_local $4
(i32.load offset=8
(local.get $0)
)
)
(tee_local $2
(i32.add
(i32.shl
(i32.shl
(local.get $10)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
)
(block
(if
(i32.lt_u
(local.get $4)
(local.get $11)
)
(call $_abort)
)
(if
(i32.ne
(i32.load offset=12
(local.get $4)
)
(local.get $0)
)
(call $_abort)
)
)
)
(if
(i32.eq
(local.get $3)
(local.get $4)
)
(block
(i32.store
(i32.const 1153188)
(i32.and
(i32.load
(i32.const 1153188)
)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $10)
)
(i32.const -1)
)
)
)
(local.set $3
(local.get $0)
)
(local.set $2
(local.get $1)
)
(br $do-once)
)
)
(if
(i32.eq
(local.get $3)
(local.get $2)
)
(local.set $5
(i32.add
(local.get $3)
(i32.const 8)
)
)
(block
(if
(i32.lt_u
(local.get $3)
(local.get $11)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $2
(i32.add
(local.get $3)
(i32.const 8)
)
)
)
(local.get $0)
)
(local.set $5
(local.get $2)
)
(call $_abort)
)
)
)
(i32.store offset=12
(local.get $4)
(local.get $3)
)
(i32.store
(local.get $5)
(local.get $4)
)
(local.set $3
(local.get $0)
)
(local.set $2
(local.get $1)
)
(br $do-once)
)
)
(local.set $12
(i32.load offset=24
(local.get $0)
)
)
(block $do-once0
(if
(i32.eq
(tee_local $4
(i32.load offset=12
(local.get $0)
)
)
(local.get $0)
)
(block
(if
(tee_local $4
(i32.load
(tee_local $8
(i32.add
(tee_local $5
(i32.add
(local.get $0)
(i32.const 16)
)
)
(i32.const 4)
)
)
)
)
(local.set $5
(local.get $8)
)
(if
(i32.eqz
(tee_local $4
(i32.load
(local.get $5)
)
)
)
(block
(local.set $7
(i32.const 0)
)
(br $do-once0)
)
)
)
(loop $while-in
(if
(tee_local $10
(i32.load
(tee_local $8
(i32.add
(local.get $4)
(i32.const 20)
)
)
)
)
(block
(local.set $4
(local.get $10)
)
(local.set $5
(local.get $8)
)
(br $while-in)
)
)
(if
(tee_local $10
(i32.load
(tee_local $8
(i32.add
(local.get $4)
(i32.const 16)
)
)
)
)
(block
(local.set $4
(local.get $10)
)
(local.set $5
(local.get $8)
)
(br $while-in)
)
)
)
(if
(i32.lt_u
(local.get $5)
(local.get $11)
)
(call $_abort)
(block
(i32.store
(local.get $5)
(i32.const 0)
)
(local.set $7
(local.get $4)
)
)
)
)
(block
(if
(i32.lt_u
(tee_local $5
(i32.load offset=8
(local.get $0)
)
)
(local.get $11)
)
(call $_abort)
)
(if
(i32.ne
(i32.load
(tee_local $8
(i32.add
(local.get $5)
(i32.const 12)
)
)
)
(local.get $0)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $10
(i32.add
(local.get $4)
(i32.const 8)
)
)
)
(local.get $0)
)
(block
(i32.store
(local.get $8)
(local.get $4)
)
(i32.store
(local.get $10)
(local.get $5)
)
(local.set $7
(local.get $4)
)
)
(call $_abort)
)
)
)
)
(if
(local.get $12)
(block
(if
(i32.eq
(local.get $0)
(i32.load
(tee_local $5
(i32.add
(i32.shl
(tee_local $4
(i32.load offset=28
(local.get $0)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
)
)
(block
(i32.store
(local.get $5)
(local.get $7)
)
(if
(i32.eqz
(local.get $7)
)
(block
(i32.store
(i32.const 1153192)
(i32.and
(i32.load
(i32.const 1153192)
)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $4)
)
(i32.const -1)
)
)
)
(local.set $3
(local.get $0)
)
(local.set $2
(local.get $1)
)
(br $do-once)
)
)
)
(block
(if
(i32.lt_u
(local.get $12)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $4
(i32.add
(local.get $12)
(i32.const 16)
)
)
)
(local.get $0)
)
(i32.store
(local.get $4)
(local.get $7)
)
(i32.store offset=20
(local.get $12)
(local.get $7)
)
)
(if
(i32.eqz
(local.get $7)
)
(block
(local.set $3
(local.get $0)
)
(local.set $2
(local.get $1)
)
(br $do-once)
)
)
)
)
(if
(i32.lt_u
(local.get $7)
(tee_local $5
(i32.load
(i32.const 1153204)
)
)
)
(call $_abort)
)
(i32.store offset=24
(local.get $7)
(local.get $12)
)
(if
(tee_local $4
(i32.load
(tee_local $8
(i32.add
(local.get $0)
(i32.const 16)
)
)
)
)
(if
(i32.lt_u
(local.get $4)
(local.get $5)
)
(call $_abort)
(block
(i32.store offset=16
(local.get $7)
(local.get $4)
)
(i32.store offset=24
(local.get $4)
(local.get $7)
)
)
)
)
(if
(tee_local $4
(i32.load offset=4
(local.get $8)
)
)
(if
(i32.lt_u
(local.get $4)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store offset=20
(local.get $7)
(local.get $4)
)
(i32.store offset=24
(local.get $4)
(local.get $7)
)
(local.set $3
(local.get $0)
)
(local.set $2
(local.get $1)
)
)
)
(block
(local.set $3
(local.get $0)
)
(local.set $2
(local.get $1)
)
)
)
)
(block
(local.set $3
(local.get $0)
)
(local.set $2
(local.get $1)
)
)
)
)
)
)
(if
(i32.ge_u
(local.get $3)
(local.get $6)
)
(call $_abort)
)
(if
(i32.eqz
(i32.and
(tee_local $0
(i32.load
(tee_local $1
(i32.add
(local.get $6)
(i32.const 4)
)
)
)
)
(i32.const 1)
)
)
(call $_abort)
)
(if
(i32.and
(local.get $0)
(i32.const 2)
)
(block
(i32.store
(local.get $1)
(i32.and
(local.get $0)
(i32.const -2)
)
)
(i32.store offset=4
(local.get $3)
(i32.or
(local.get $2)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $3)
(local.get $2)
)
(local.get $2)
)
)
(block
(if
(i32.eq
(local.get $6)
(i32.load
(i32.const 1153212)
)
)
(block
(i32.store
(i32.const 1153200)
(tee_local $0
(i32.add
(i32.load
(i32.const 1153200)
)
(local.get $2)
)
)
)
(i32.store
(i32.const 1153212)
(local.get $3)
)
(i32.store offset=4
(local.get $3)
(i32.or
(local.get $0)
(i32.const 1)
)
)
(if
(i32.ne
(local.get $3)
(i32.load
(i32.const 1153208)
)
)
(return)
)
(i32.store
(i32.const 1153208)
(i32.const 0)
)
(i32.store
(i32.const 1153196)
(i32.const 0)
)
(return)
)
)
(if
(i32.eq
(local.get $6)
(i32.load
(i32.const 1153208)
)
)
(block
(i32.store
(i32.const 1153196)
(tee_local $0
(i32.add
(i32.load
(i32.const 1153196)
)
(local.get $2)
)
)
)
(i32.store
(i32.const 1153208)
(local.get $3)
)
(i32.store offset=4
(local.get $3)
(i32.or
(local.get $0)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $3)
(local.get $0)
)
(local.get $0)
)
(return)
)
)
(local.set $5
(i32.add
(i32.and
(local.get $0)
(i32.const -8)
)
(local.get $2)
)
)
(local.set $4
(i32.shr_u
(local.get $0)
(i32.const 3)
)
)
(block $do-once4
(if
(i32.lt_u
(local.get $0)
(i32.const 256)
)
(block
(local.set $2
(i32.load offset=12
(local.get $6)
)
)
(if
(i32.ne
(tee_local $1
(i32.load offset=8
(local.get $6)
)
)
(tee_local $0
(i32.add
(i32.shl
(i32.shl
(local.get $4)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
)
(block
(if
(i32.lt_u
(local.get $1)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.ne
(i32.load offset=12
(local.get $1)
)
(local.get $6)
)
(call $_abort)
)
)
)
(if
(i32.eq
(local.get $2)
(local.get $1)
)
(block
(i32.store
(i32.const 1153188)
(i32.and
(i32.load
(i32.const 1153188)
)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $4)
)
(i32.const -1)
)
)
)
(br $do-once4)
)
)
(if
(i32.eq
(local.get $2)
(local.get $0)
)
(local.set $14
(i32.add
(local.get $2)
(i32.const 8)
)
)
(block
(if
(i32.lt_u
(local.get $2)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $0
(i32.add
(local.get $2)
(i32.const 8)
)
)
)
(local.get $6)
)
(local.set $14
(local.get $0)
)
(call $_abort)
)
)
)
(i32.store offset=12
(local.get $1)
(local.get $2)
)
(i32.store
(local.get $14)
(local.get $1)
)
)
(block
(local.set $7
(i32.load offset=24
(local.get $6)
)
)
(block $do-once6
(if
(i32.eq
(tee_local $0
(i32.load offset=12
(local.get $6)
)
)
(local.get $6)
)
(block
(if
(tee_local $0
(i32.load
(tee_local $1
(i32.add
(tee_local $2
(i32.add
(local.get $6)
(i32.const 16)
)
)
(i32.const 4)
)
)
)
)
(local.set $2
(local.get $1)
)
(if
(i32.eqz
(tee_local $0
(i32.load
(local.get $2)
)
)
)
(block
(local.set $9
(i32.const 0)
)
(br $do-once6)
)
)
)
(loop $while-in9
(if
(tee_local $4
(i32.load
(tee_local $1
(i32.add
(local.get $0)
(i32.const 20)
)
)
)
)
(block
(local.set $0
(local.get $4)
)
(local.set $2
(local.get $1)
)
(br $while-in9)
)
)
(if
(tee_local $4
(i32.load
(tee_local $1
(i32.add
(local.get $0)
(i32.const 16)
)
)
)
)
(block
(local.set $0
(local.get $4)
)
(local.set $2
(local.get $1)
)
(br $while-in9)
)
)
)
(if
(i32.lt_u
(local.get $2)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store
(local.get $2)
(i32.const 0)
)
(local.set $9
(local.get $0)
)
)
)
)
(block
(if
(i32.lt_u
(tee_local $2
(i32.load offset=8
(local.get $6)
)
)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.ne
(i32.load
(tee_local $1
(i32.add
(local.get $2)
(i32.const 12)
)
)
)
(local.get $6)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $4
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
(local.get $6)
)
(block
(i32.store
(local.get $1)
(local.get $0)
)
(i32.store
(local.get $4)
(local.get $2)
)
(local.set $9
(local.get $0)
)
)
(call $_abort)
)
)
)
)
(if
(local.get $7)
(block
(if
(i32.eq
(local.get $6)
(i32.load
(tee_local $2
(i32.add
(i32.shl
(tee_local $0
(i32.load offset=28
(local.get $6)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
)
)
(block
(i32.store
(local.get $2)
(local.get $9)
)
(if
(i32.eqz
(local.get $9)
)
(block
(i32.store
(i32.const 1153192)
(i32.and
(i32.load
(i32.const 1153192)
)
(i32.xor
(i32.shl
(i32.const 1)
(local.get $0)
)
(i32.const -1)
)
)
)
(br $do-once4)
)
)
)
(block
(if
(i32.lt_u
(local.get $7)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
)
(if
(i32.eq
(i32.load
(tee_local $0
(i32.add
(local.get $7)
(i32.const 16)
)
)
)
(local.get $6)
)
(i32.store
(local.get $0)
(local.get $9)
)
(i32.store offset=20
(local.get $7)
(local.get $9)
)
)
(br_if $do-once4
(i32.eqz
(local.get $9)
)
)
)
)
(if
(i32.lt_u
(local.get $9)
(tee_local $2
(i32.load
(i32.const 1153204)
)
)
)
(call $_abort)
)
(i32.store offset=24
(local.get $9)
(local.get $7)
)
(if
(tee_local $0
(i32.load
(tee_local $1
(i32.add
(local.get $6)
(i32.const 16)
)
)
)
)
(if
(i32.lt_u
(local.get $0)
(local.get $2)
)
(call $_abort)
(block
(i32.store offset=16
(local.get $9)
(local.get $0)
)
(i32.store offset=24
(local.get $0)
(local.get $9)
)
)
)
)
(if
(tee_local $0
(i32.load offset=4
(local.get $1)
)
)
(if
(i32.lt_u
(local.get $0)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store offset=20
(local.get $9)
(local.get $0)
)
(i32.store offset=24
(local.get $0)
(local.get $9)
)
)
)
)
)
)
)
)
)
(i32.store offset=4
(local.get $3)
(i32.or
(local.get $5)
(i32.const 1)
)
)
(i32.store
(i32.add
(local.get $3)
(local.get $5)
)
(local.get $5)
)
(if
(i32.eq
(local.get $3)
(i32.load
(i32.const 1153208)
)
)
(block
(i32.store
(i32.const 1153196)
(local.get $5)
)
(return)
)
(local.set $2
(local.get $5)
)
)
)
)
(local.set $1
(i32.shr_u
(local.get $2)
(i32.const 3)
)
)
(if
(i32.lt_u
(local.get $2)
(i32.const 256)
)
(block
(local.set $0
(i32.add
(i32.shl
(i32.shl
(local.get $1)
(i32.const 1)
)
(i32.const 2)
)
(i32.const 1153228)
)
)
(if
(i32.and
(tee_local $2
(i32.load
(i32.const 1153188)
)
)
(tee_local $1
(i32.shl
(i32.const 1)
(local.get $1)
)
)
)
(if
(i32.lt_u
(tee_local $1
(i32.load
(tee_local $2
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(local.set $13
(local.get $1)
)
(local.set $15
(local.get $2)
)
)
)
(block
(i32.store
(i32.const 1153188)
(i32.or
(local.get $2)
(local.get $1)
)
)
(local.set $13
(local.get $0)
)
(local.set $15
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(i32.store
(local.get $15)
(local.get $3)
)
(i32.store offset=12
(local.get $13)
(local.get $3)
)
(i32.store offset=8
(local.get $3)
(local.get $13)
)
(i32.store offset=12
(local.get $3)
(local.get $0)
)
(return)
)
)
(local.set $0
(i32.add
(i32.shl
(tee_local $1
(if i32
(tee_local $0
(i32.shr_u
(local.get $2)
(i32.const 8)
)
)
(if i32
(i32.gt_u
(local.get $2)
(i32.const 16777215)
)
(i32.const 31)
(i32.or
(i32.and
(i32.shr_u
(local.get $2)
(i32.add
(tee_local $0
(i32.add
(i32.sub
(i32.const 14)
(i32.or
(i32.or
(tee_local $4
(i32.and
(i32.shr_u
(i32.add
(tee_local $1
(i32.shl
(local.get $0)
(tee_local $0
(i32.and
(i32.shr_u
(i32.add
(local.get $0)
(i32.const 1048320)
)
(i32.const 16)
)
(i32.const 8)
)
)
)
)
(i32.const 520192)
)
(i32.const 16)
)
(i32.const 4)
)
)
(local.get $0)
)
(tee_local $1
(i32.and
(i32.shr_u
(i32.add
(tee_local $0
(i32.shl
(local.get $1)
(local.get $4)
)
)
(i32.const 245760)
)
(i32.const 16)
)
(i32.const 2)
)
)
)
)
(i32.shr_u
(i32.shl
(local.get $0)
(local.get $1)
)
(i32.const 15)
)
)
)
(i32.const 7)
)
)
(i32.const 1)
)
(i32.shl
(local.get $0)
(i32.const 1)
)
)
)
(i32.const 0)
)
)
(i32.const 2)
)
(i32.const 1153492)
)
)
(i32.store offset=28
(local.get $3)
(local.get $1)
)
(i32.store offset=20
(local.get $3)
(i32.const 0)
)
(i32.store offset=16
(local.get $3)
(i32.const 0)
)
(block $do-once12
(if
(i32.and
(tee_local $4
(i32.load
(i32.const 1153192)
)
)
(tee_local $5
(i32.shl
(i32.const 1)
(local.get $1)
)
)
)
(block
(local.set $0
(i32.load
(local.get $0)
)
)
(local.set $4
(i32.sub
(i32.const 25)
(i32.shr_u
(local.get $1)
(i32.const 1)
)
)
)
(local.set $1
(i32.shl
(local.get $2)
(if i32
(i32.eq
(local.get $1)
(i32.const 31)
)
(i32.const 0)
(local.get $4)
)
)
)
(block $__rjto$1
(block $__rjti$1
(block $__rjti$0
(loop $while-in15
(br_if $__rjti$1
(i32.eq
(i32.and
(i32.load offset=4
(local.get $0)
)
(i32.const -8)
)
(local.get $2)
)
)
(local.set $4
(i32.shl
(local.get $1)
(i32.const 1)
)
)
(br_if $__rjti$0
(i32.eqz
(tee_local $5
(i32.load
(tee_local $1
(i32.add
(i32.add
(local.get $0)
(i32.const 16)
)
(i32.shl
(i32.shr_u
(local.get $1)
(i32.const 31)
)
(i32.const 2)
)
)
)
)
)
)
)
(local.set $1
(local.get $4)
)
(local.set $0
(local.get $5)
)
(br $while-in15)
)
)
(if
(i32.lt_u
(local.get $1)
(i32.load
(i32.const 1153204)
)
)
(call $_abort)
(block
(i32.store
(local.get $1)
(local.get $3)
)
(i32.store offset=24
(local.get $3)
(local.get $0)
)
(i32.store offset=12
(local.get $3)
(local.get $3)
)
(i32.store offset=8
(local.get $3)
(local.get $3)
)
(br $do-once12)
)
)
(br $__rjto$1)
)
(if
(i32.and
(i32.ge_u
(tee_local $2
(i32.load
(tee_local $1
(i32.add
(local.get $0)
(i32.const 8)
)
)
)
)
(tee_local $4
(i32.load
(i32.const 1153204)
)
)
)
(i32.ge_u
(local.get $0)
(local.get $4)
)
)
(block
(i32.store offset=12
(local.get $2)
(local.get $3)
)
(i32.store
(local.get $1)
(local.get $3)
)
(i32.store offset=8
(local.get $3)
(local.get $2)
)
(i32.store offset=12
(local.get $3)
(local.get $0)
)
(i32.store offset=24
(local.get $3)
(i32.const 0)
)
)
(call $_abort)
)
)
)
(block
(i32.store
(i32.const 1153192)
(i32.or
(local.get $4)
(local.get $5)
)
)
(i32.store
(local.get $0)
(local.get $3)
)
(i32.store offset=24
(local.get $3)
(local.get $0)
)
(i32.store offset=12
(local.get $3)
(local.get $3)
)
(i32.store offset=8
(local.get $3)
(local.get $3)
)
)
)
)
(i32.store
(i32.const 1153220)
(tee_local $0
(i32.add
(i32.load
(i32.const 1153220)
)
(i32.const -1)
)
)
)
(if
(local.get $0)
(return)
(local.set $0
(i32.const 1153644)
)
)
(loop $while-in17
(local.set $0
(i32.add
(tee_local $2
(i32.load
(local.get $0)
)
)
(i32.const 8)
)
)
(br_if $while-in17
(local.get $2)
)
)
(i32.store
(i32.const 1153220)
(i32.const -1)
)
)
(func $runPostSets
(nop)
)
(func $_sbrk (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local.set $1
(i32.add
(tee_local $2
(i32.load
(global.get $DYNAMICTOP_PTR)
)
)
(tee_local $0
(i32.and
(i32.add
(local.get $0)
(i32.const 15)
)
(i32.const -16)
)
)
)
)
(if
(i32.or
(i32.and
(i32.gt_s
(local.get $0)
(i32.const 0)
)
(i32.lt_s
(local.get $1)
(local.get $2)
)
)
(i32.lt_s
(local.get $1)
(i32.const 0)
)
)
(block
(drop
(call $abortOnCannotGrowMemory)
)
(call $___setErrNo
(i32.const 12)
)
(return
(i32.const -1)
)
)
)
(i32.store
(global.get $DYNAMICTOP_PTR)
(local.get $1)
)
(if
(i32.gt_s
(local.get $1)
(call $getTotalMemory)
)
(if
(i32.eqz
(call $enlargeMemory)
)
(block
(call $___setErrNo
(i32.const 12)
)
(i32.store
(global.get $DYNAMICTOP_PTR)
(local.get $2)
)
(return
(i32.const -1)
)
)
)
)
(local.get $2)
)
(func $_memset (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
(local $5 i32)
(local.set $4
(i32.add
(local.get $0)
(local.get $2)
)
)
(if
(i32.ge_s
(local.get $2)
(i32.const 20)
)
(block
(local.set $1
(i32.and
(local.get $1)
(i32.const 255)
)
)
(if
(tee_local $3
(i32.and
(local.get $0)
(i32.const 3)
)
)
(block
(local.set $3
(i32.sub
(i32.add
(local.get $0)
(i32.const 4)
)
(local.get $3)
)
)
(loop $while-in
(if
(i32.lt_s
(local.get $0)
(local.get $3)
)
(block
(i32.store8
(local.get $0)
(local.get $1)
)
(local.set $0
(i32.add
(local.get $0)
(i32.const 1)
)
)
(br $while-in)
)
)
)
)
)
(local.set $3
(i32.or
(i32.or
(i32.or
(local.get $1)
(i32.shl
(local.get $1)
(i32.const 8)
)
)
(i32.shl
(local.get $1)
(i32.const 16)
)
)
(i32.shl
(local.get $1)
(i32.const 24)
)
)
)
(local.set $5
(i32.and
(local.get $4)
(i32.const -4)
)
)
(loop $while-in1
(if
(i32.lt_s
(local.get $0)
(local.get $5)
)
(block
(i32.store
(local.get $0)
(local.get $3)
)
(local.set $0
(i32.add
(local.get $0)
(i32.const 4)
)
)
(br $while-in1)
)
)
)
)
)
(loop $while-in3
(if
(i32.lt_s
(local.get $0)
(local.get $4)
)
(block
(i32.store8
(local.get $0)
(local.get $1)
)
(local.set $0
(i32.add
(local.get $0)
(i32.const 1)
)
)
(br $while-in3)
)
)
)
(i32.sub
(local.get $0)
(local.get $2)
)
)
(func $_memcpy (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(if
(i32.ge_s
(local.get $2)
(i32.const 4096)
)
(return
(call $_emscripten_memcpy_big
(local.get $0)
(local.get $1)
(local.get $2)
)
)
)
(local.set $3
(local.get $0)
)
(if
(i32.eq
(i32.and
(local.get $0)
(i32.const 3)
)
(i32.and
(local.get $1)
(i32.const 3)
)
)
(block
(loop $while-in
(if
(i32.and
(local.get $0)
(i32.const 3)
)
(block
(if
(i32.eqz
(local.get $2)
)
(return
(local.get $3)
)
)
(i32.store8
(local.get $0)
(i32.load8_s
(local.get $1)
)
)
(local.set $0
(i32.add
(local.get $0)
(i32.const 1)
)
)
(local.set $1
(i32.add
(local.get $1)
(i32.const 1)
)
)
(local.set $2
(i32.sub
(local.get $2)
(i32.const 1)
)
)
(br $while-in)
)
)
)
(loop $while-in1
(if
(i32.ge_s
(local.get $2)
(i32.const 4)
)
(block
(i32.store
(local.get $0)
(i32.load
(local.get $1)
)
)
(local.set $0
(i32.add
(local.get $0)
(i32.const 4)
)
)
(local.set $1
(i32.add
(local.get $1)
(i32.const 4)
)
)
(local.set $2
(i32.sub
(local.get $2)
(i32.const 4)
)
)
(br $while-in1)
)
)
)
)
)
(loop $while-in3
(if
(i32.gt_s
(local.get $2)
(i32.const 0)
)
(block
(i32.store8
(local.get $0)
(i32.load8_s
(local.get $1)
)
)
(local.set $0
(i32.add
(local.get $0)
(i32.const 1)
)
)
(local.set $1
(i32.add
(local.get $1)
(i32.const 1)
)
)
(local.set $2
(i32.sub
(local.get $2)
(i32.const 1)
)
)
(br $while-in3)
)
)
)
(local.get $3)
)
(func $_pthread_self (result i32)
(i32.const 0)
)
(func $dynCall_ii (param $0 i32) (param $1 i32) (result i32)
(call_indirect $FUNCSIG$ii
(local.get $1)
(i32.add
(i32.and
(local.get $0)
(i32.const 1)
)
(i32.const 0)
)
)
)
(func $dynCall_iiii (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32) (result i32)
(call_indirect $FUNCSIG$iiii
(local.get $1)
(local.get $2)
(local.get $3)
(i32.add
(i32.and
(local.get $0)
(i32.const 3)
)
(i32.const 2)
)
)
)
(func $dynCall_vi (param $0 i32) (param $1 i32)
(call_indirect $FUNCSIG$vi
(local.get $1)
(i32.add
(i32.and
(local.get $0)
(i32.const 1)
)
(i32.const 6)
)
)
)
(func $b0 (param $0 i32) (result i32)
(call $abort
(i32.const 0)
)
(i32.const 0)
)
(func $b1 (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(call $abort
(i32.const 1)
)
(i32.const 0)
)
(func $b2 (param $0 i32)
(call $abort
(i32.const 2)
)
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
/*
Compile with emcc with:
emcc -o change.js change.c -lm -O3 -s WASM=1 -s EXPORTED_FUNCTIONS="['_change']" -s BINARYEN_IMPRECISE=1
*/
#include<stdio.h>
#include<math.h>
#include<stdbool.h>
#include<stdlib.h>
#include<string.h>
#define WIDTH 600
#define HEIGHT 480
#define MAX(a,b) ((a) > (b) ? a : b)
#define MIN(a,b) ((a) < (b) ? a : b)
int grayData[WIDTH * HEIGHT];
int getPixel(int x, int y) {
if (x < 0 || y < 0) return 0;
if (x >= (WIDTH) || y >= (HEIGHT)) return 0;
return (grayData[((WIDTH * y) + x)]);
}
void sobel(unsigned char * data, int width, int height) {
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
int goffset = ((WIDTH * y) + x) << 2; //multiply by 4
int r = data[goffset];
int g = data[goffset + 1];
int b = data[goffset + 2];
int avg = (r >> 2) + (g >> 1) + (b >> 3);
grayData[((WIDTH * y) + x)] = avg;
int doffset = ((WIDTH * y) + x) << 2;
data[doffset] = avg;
data[doffset + 1] = avg;
data[doffset + 2] = avg;
data[doffset + 3] = 255;
}
}
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
int newX;
int newY;
if ((x <= 0 || x >= width - 1) || (y <= 0 || y >= height - 1)) {
newX = 0;
newY = 0;
} else {
newX = (
(-1 * getPixel(x - 1, y - 1)) +
(getPixel(x + 1, y - 1)) +
(-1 * (getPixel(x - 1, y) << 1)) +
(getPixel(x + 1, y) << 1) +
(-1 * getPixel(x - 1, y + 1)) +
(getPixel(x + 1, y + 1))
);
newY = (
(-1 * getPixel(x - 1, y - 1)) +
(-1 * (getPixel(x, y - 1) << 1)) +
(-1 * getPixel(x + 1, y - 1)) +
(getPixel(x - 1, y + 1)) +
(getPixel(x, y + 1) << 1) +
(getPixel(x + 1, y + 1))
);
}
int mag = sqrt((newX * newX) + (newY * newY));
if (mag > 255) mag = 255;
int offset = ((WIDTH * y) + x) << 2; //multiply by 4
data[offset] = 255 - mag;
data[offset + 1] = 255 - mag;
data[offset + 2] = 255 - mag;
data[offset + 3] = 255;
}
}
}
void change(unsigned char * data, int cols, int rows) {
sobel(data, cols, rows);
}
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
# WASMSobel
Simple example to show a comparison JS/WASM implementations for a Sobel filter.
Compile change.c with emscripten using:
```emcc -o change.js change.c -lm -O3 -s WASM=1 -s EXPORTED_FUNCTIONS="['_change']" -s BINARYEN_IMPRECISE=1```
Original Sobel algorithm created by [Miguel Mota](https://github.com/miguelmota/sobel), and adapted for this demo under the terms of the original [license](https://github.com/JasonWeathersby/WASMSobel/blob/master/SOBEL-LICENSE.md).
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(import "js" "tbl" (table 2 anyfunc))
(func $f42 (result i32) i32.const 42)
(func $f83 (result i32) i32.const 83)
(elem (i32.const 0) $f42 $f83)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(func (export "fail_me") (result i32)
i32.const 1
i32.const 0
i32.div_s
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(func $i (import "imports" "imported_func") (param i32))
(func (export "exported_func")
i32.const 42
call $i
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM test concise</title>
</head>
<body>
<script>
const importObject = {
imports: {
imported_func: arg => {
console.log(arg);
}
}
};
WebAssembly.instantiateStreaming(fetch("simple.wasm"), importObject)
.then(obj => {
obj.instance.exports.exported_func();
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM instantiateStreaming() test</title>
</head>
<body>
<script>
const importObject = {
imports: {
imported_func: arg => {
console.log(arg);
}
}
};
WebAssembly.instantiateStreaming(fetch("simple.wasm"), importObject)
.then(obj => {
obj.instance.exports.exported_func();
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM test with XHR</title>
</head>
<body>
<script>
const importObject = {
imports: {
imported_func: arg => {
console.log(arg);
}
}
};
const request = new XMLHttpRequest();
request.open("GET", "simple.wasm");
request.responseType = "arraybuffer";
request.send();
request.onload = () => {
const bytes = request.response;
WebAssembly.instantiate(bytes, importObject)
.then(obj => {
obj.instance.exports.exported_func();
});
};
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM memory test</title>
</head>
<body>
<script>
const memory = new WebAssembly.Memory({
initial: 10,
maximum: 100
});
WebAssembly.instantiateStreaming(fetch("memory.wasm"), { js: { mem: memory } })
.then(obj => {
const summands = new Uint32Array(memory.buffer);
for (let i = 0; i < 10; i++) {
summands[i] = i;
}
const sum = obj.instance.exports.accumulate(0, 10);
console.log(sum);
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM test</title>
</head>
<body>
<script>
const importObject = {
imports: {
imported_func: arg => {
console.log(arg);
}
}
};
fetch("simple.wasm").then(response =>
response.arrayBuffer()
).then(bytes =>
WebAssembly.instantiate(bytes, importObject)
).then(result => {
result.instance.exports.exported_func();
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WebAssembly Globals example</title>
</head>
<body>
<div id="output"></div>
<script>
const output = document.getElementById("output");
function assertEq(msg, got, expected) {
output.innerHTML += `Testing ${msg}: `;
if (got !== expected) {
output.innerHTML += `FAIL!<br>Got: ${got}<br>Expected: ${expected}<br>`;
} else {
output.innerHTML += `SUCCESS! Got: ${got}<br>`;
}
}
assertEq("WebAssembly.Global exists", typeof WebAssembly.Global, "function");
const global = new WebAssembly.Global({ value: "i32", mutable: true }, 0);
WebAssembly.instantiateStreaming(fetch("global.wasm"), { js: { global } })
.then(({ instance }) => {
assertEq("getting initial value from wasm", instance.exports.getGlobal(), 0);
global.value = 42;
assertEq("getting JS-updated value from wasm", instance.exports.getGlobal(), 42);
instance.exports.incGlobal();
assertEq("getting wasm-updated value from JS", global.value, 43);
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Another WASM table example</title>
</head>
<body>
<script>
const tbl = new WebAssembly.Table({
initial: 2,
element: "anyfunc"
});
console.log(tbl.length);
console.log(tbl.get(0));
console.log(tbl.get(1));
const importObject = {
js: { tbl }
};
WebAssembly.instantiateStreaming(fetch("table2.wasm"), importObject)
.then(obj => {
console.log(tbl.length);
console.log(tbl.get(0)());
console.log(tbl.get(1)());
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM test</title>
</head>
<body>
<script>
const worker = new Worker("wasm_worker.js");
WebAssembly.compileStreaming(fetch("simple.wasm"))
.then(module => {
worker.postMessage(module);
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM validate() test</title>
</head>
<body>
<script>
fetch("simple.wasm").then(response =>
response.arrayBuffer()
).then(bytes => {
const isValid = WebAssembly.validate(bytes);
console.log(`The given bytes ${isValid ? "are" : "are not"} a valid wasm module`);
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM test</title>
</head>
<body>
<script>
WebAssembly.compileStreaming(fetch("simple.wasm"))
.then(module => {
const imports = WebAssembly.Module.imports(module);
console.log(imports[0]);
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM table example</title>
</head>
<body>
<script>
const table = new WebAssembly.Table({
element: "anyfunc",
initial: 1,
maximum: 10
});
table.grow(1);
console.log(table.length); // 2
WebAssembly.instantiateStreaming(fetch("table.wasm"))
.then(obj => {
const tbl = obj.instance.exports.tbl;
console.log(tbl.get(0)()); // 13
console.log(tbl.get(1)()); // 42
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM test - exception</title>
</head>
<body>
<script>
WebAssembly.instantiateStreaming(fetch("fail.wasm"))
.then(obj => {
obj.instance.exports.fail_me();
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM compileStreaming() test</title>
</head>
<body>
<script>
const importObject = {
imports: {
imported_func: arg => {
console.log(arg);
}
}
};
// equivalent:
// fetch("simple.wasm")
// .then(response => response.arrayBuffer())
// .then(bytes => WebAssembly.compile(bytes))
// .then(module => WebAssembly.instantiate(module, importObject))
// .then(instance => { instance.exports.exported_func(); });
WebAssembly.compileStreaming(fetch("simple.wasm"))
.then(module => WebAssembly.instantiate(module, importObject))
.then(instance => {
instance.exports.exported_func();
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(global $g (import "js" "global") (mut i32))
(func (export "getGlobal") (result i32)
(global.get $g)
)
(func (export "incGlobal")
(global.set $g (i32.add (global.get $g) (i32.const 1)))
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
const importObject = {
imports: {
imported_func: arg => {
console.log(arg);
}
}
};
self.onmessage = function(event) {
console.log("module received from main thread");
const module = event.data;
WebAssembly.instantiate(module, importObject)
.then(instance => {
instance.exports.exported_func();
});
const exports = WebAssembly.Module.exports(module);
console.log(exports[0]);
};
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(memory (import "js" "mem") 1)
(func (export "accumulate") (param $ptr i32) (param $len i32) (result i32)
(local $end i32)
(local $sum i32)
(local.set $end
(i32.add
(local.get $ptr)
(i32.mul
(local.get $len)
(i32.const 4))))
(block $break
(loop $top
(br_if $break
(i32.eq
(local.get $ptr)
(local.get $end)))
(local.set $sum
(i32.add
(local.get $sum)
(i32.load
(local.get $ptr))))
(local.set $ptr
(i32.add
(local.get $ptr)
(i32.const 4)))
(br $top)
)
)
(local.get $sum)
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(func $thirteen (result i32) (i32.const 13))
(func $fourtytwo (result i32) (i32.const 42))
(table (export "tbl") anyfunc (elem $thirteen $fourtytwo))
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(func $i (import "imports" "imported_func") (param i32))
(func (export "exported_func")
i32.const 42
call $i
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Table set() example</title>
</head>
<body>
<script>
const otherTable = new WebAssembly.Table({
element: "anyfunc",
initial: 2
});
WebAssembly.instantiateStreaming(fetch("table.wasm"))
.then(obj => {
const { tbl } = obj.instance.exports;
console.log(tbl.get(0)()); // 13
console.log(tbl.get(1)()); // 42
otherTable.set(0, tbl.get(0));
otherTable.set(1, tbl.get(1));
console.log(otherTable.get(0)());
console.log(otherTable.get(1)());
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<title>WASM customSections() test</title>
</head>
<body>
<script>
WebAssembly.compileStreaming(fetch("simple-name-section.wasm"))
.then(module => {
const nameSections = WebAssembly.Module.customSections(module, "name");
if (nameSections.length !== 0) {
console.log("Module contains a name section");
console.log(nameSections[0]);
}
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(memory $exported_memory 10 100)
;; multibyte integers are written in big-endian format
(data 0
(i32.const 0)
"\00\00\00\00"
"\01\00\00\00"
"\02\00\00\00"
"\03\00\00\00"
"\04\00\00\00"
"\05\00\00\00"
"\06\00\00\00"
"\07\00\00\00"
"\08\00\00\00"
"\09\00\00\00"
)
(export "memory" (memory $exported_memory))
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Simple logging example</title>
</head>
<body>
<script>
const importObject = {
console: {
log: arg => {
console.log(arg);
}
}
};
WebAssembly.instantiateStreaming(fetch("logger.wasm"), importObject)
.then(obj => {
obj.instance.exports.logIt();
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(func $getAnswer (result i32) i32.const 42)
(func (export "getAnswerPlus1") (result i32)
call $getAnswer
i32.const 1
i32.add
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(func $add (param $lhs i32) (param $rhs i32) (result i32)
local.get $lhs
local.get $rhs
i32.add
)
(export "add" (func $add))
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(import "js" "memory" (memory 1))
(import "js" "table" (table 1 anyfunc))
(type $void_to_i32 (func (result i32)))
(func (export "doIt") (result i32)
(i32.store (i32.const 0) (i32.const 42)) ;; store 42 at address 0
(call_indirect $void_to_i32 (i32.const 0))
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Simple add example</title>
</head>
<body>
<script>
WebAssembly.instantiateStreaming(fetch("add.wasm"))
.then(obj => {
console.log(obj.instance.exports.add(1, 2)); // "3"
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Simple logging example 2: text logging</title>
</head>
<body>
<script>
const memory = new WebAssembly.Memory({ initial: 1 });
function consoleLogString(offset, length) {
const bytes = new Uint8Array(memory.buffer, offset, length);
const string = new TextDecoder("UTF-8").decode(bytes);
console.log(string);
}
const importObject = {
console: {
log: consoleLogString
},
js: {
mem: memory
}
};
WebAssembly.instantiateStreaming(fetch("logger2.wasm"), importObject)
.then(obj => {
obj.instance.exports.writeHi();
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(import "console" "log" (func $log (param i32)))
(func (export "logIt")
i32.const 13
call $log
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Simple call example</title>
</head>
<body>
<script>
WebAssembly.instantiateStreaming(fetch("call.wasm"))
.then(obj => {
console.log(obj.instance.exports.getAnswerPlus1()); // "43"
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(import "js" "memory" (memory 1))
(import "js" "table" (table 1 anyfunc))
(elem (i32.const 0) $shared0func)
(func $shared0func (result i32)
i32.const 0
i32.load
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM Table example</title>
</head>
<body>
<script>
WebAssembly.instantiateStreaming(fetch("wasm-table.wasm"))
.then(obj => {
console.log(obj.instance.exports.callByIndex(0)); // returns 42
console.log(obj.instance.exports.callByIndex(1)); // returns 13
console.log(obj.instance.exports.callByIndex(2)); // throws an error, because there is no index position 2 in the table
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(table 2 anyfunc)
(func $f1 (result i32)
i32.const 42
)
(func $f2 (result i32)
i32.const 13
)
(elem (i32.const 0) $f1 $f2)
(type $return_i32 (func (result i32)))
(func (export "callByIndex") (param $i i32) (result i32)
local.get $i
call_indirect (type $return_i32)
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Shared address space example</title>
</head>
<body>
<script>
const importObject = {
js: {
memory: new WebAssembly.Memory({ initial: 1 }),
table: new WebAssembly.Table({ initial: 1, element: "anyfunc" })
}
};
Promise.all([
WebAssembly.instantiateStreaming(fetch("shared0.wasm"), importObject),
WebAssembly.instantiateStreaming(fetch("shared1.wasm"), importObject)
]).then(results => {
console.log(results[1].instance.exports.doIt()); // prints 42
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
(module
(import "console" "log" (func $log (param i32 i32)))
(import "js" "mem" (memory 1))
(data (i32.const 0) "Hi")
(func (export "writeHi")
i32.const 0 ;; pass offset 0 to log
i32.const 2 ;; pass length 2 to log
call $log
)
)
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>WASM memory export example</title>
</head>
<body>
<script>
WebAssembly.instantiateStreaming(fetch("memory-export.wasm"))
.then(object => {
const values = new Uint32Array(object.exports.memory.buffer);
// views only the first ten elements of the Wasm memory
const summands = values.subarray(0, 10);
// sums the first ten elements
const sum = summands.reduce((sum, summand) => sum + summand);
console.log(sum);
});
</script>
</body>
</html>
| {
"repo_name": "mdn/webassembly-examples",
"stars": "1036",
"repo_language": "WebAssembly",
"file_name": "memory-export.html",
"mime_type": "text/html"
} |
## How to contribute
### Looking for a new project to pick up?
Look no further than the <kbd>[unassigned](https://github.com/teamforus/proofs-of-concept/issues?utf8=✓&q=is%3Aopen%20is%3Aissue%20label%3Aunassigned%20)</kbd> issues. If you found one you like then comment your project number and name [here](https://github.com/teamforus/proofs-of-concept/issues/51), create a **feature branch** with a **project folder** and a **readme** where you can build it ([example-project](https://github.com/teamforus/proofs-of-concept/tree/poc0-example/poc0-example)).
### Want to help prepare a project?
Look for issues with the <kbd>[fill-template](https://github.com/teamforus/proofs-of-concept/issues?q=is%3Aopen+is%3Aissue+label%3Afill-template)</kbd> label and make suggestions in the comments.
### Is there a project you'd like to see?
Simply open an issue. Better yet, also fill the [template](https://github.com/teamforus/proofs-of-concept/blob/develop/template.md).
### Want to contribute to a project?
Look for the <kbd>[help-wanted](https://github.com/teamforus/proofs-of-concept/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22)</kbd> label, or just look at the [branches](https://github.com/teamforus/proofs-of-concept/branches) or <kbd>[work-in-progress](https://github.com/teamforus/proofs-of-concept/issues?q=is%3Aopen+is%3Aissue+label%3Awork-in-progress)</kbd> label to see what's being worked on.
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
# poc000-template
### v0.0
### Assignee:
## Background / Context
**Goal/user story:**
**More:**
## Hypothesis
## Method
## Result
## Recommendation
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
**This repository is maintained by:** [@jamalv](https://github.com/jamalv)
[](https://chat.forus.io/channel/research)
## Goal
The goal of this repository is to learn and share knowledge around decentralized development. We are researching, creating and improving the building blocks of [Platform Forus](https://foundation.forus.io/en/platform/) and any other fully decentralized platform/application.
## Getting started
Every project folder contains a readme describing its contents. The [wiki](https://github.com/teamforus/research-and-development/wiki) contains general information, [issues](https://github.com/teamforus/research-and-development/issues) are for making and discussing proposals, [branches](https://github.com/teamforus/research-and-development/branches/all) show what is currently being worked on.
## Workflow
Topic suggestions and discussions take place over at the [issues](https://github.com/teamforus/research-and-development/issues).
When work starts the assignee creates a **feature branch** with a **project folder** and a **readme** where the work is performed and documented ([example-project](https://github.com/teamforus/proofs-of-concept/tree/poc0-example/poc0-example)). The assignee then opens a [pull-request](https://github.com/teamforus/research-and-development/pulls) where discussions can continue and where the issue number will also be assigned before merging into develop.
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./e2e/**/*.e2e-spec.ts'
],
capabilities: {
'browserName': 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function() {}
},
onPrepare() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
};
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular/cli/plugins/karma')
],
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
},
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
singleRun: false
});
};
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
* file.
*
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
*
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
*/
/***************************************************************************************************
* BROWSER POLYFILLS
*/
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
// import 'core-js/es6/symbol';
// import 'core-js/es6/object';
// import 'core-js/es6/function';
// import 'core-js/es6/parse-int';
// import 'core-js/es6/parse-float';
// import 'core-js/es6/number';
// import 'core-js/es6/math';
// import 'core-js/es6/string';
// import 'core-js/es6/date';
// import 'core-js/es6/array';
// import 'core-js/es6/regexp';
// import 'core-js/es6/map';
// import 'core-js/es6/weak-map';
// import 'core-js/es6/set';
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect';
/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
import 'core-js/es7/reflect';
/**
* Required to support Web Animations `@angular/platform-browser/animations`.
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
**/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/***************************************************************************************************
* Zone JS is required by Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS
*/
/**
* Date, currency, decimal and percent pipes.
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
*/
// import 'intl'; // Run `npm install --save intl`.
/**
* Need to import at least one locale-data with intl.
*/
// import 'intl/locale-data/jsonp/en';
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/long-stack-trace-zone';
import 'zone.js/dist/proxy.js';
import 'zone.js/dist/sync-test';
import 'zone.js/dist/jasmine-patch';
import 'zone.js/dist/async-test';
import 'zone.js/dist/fake-async-test';
import { getTestBed } from '@angular/core/testing';
import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
declare const __karma__: any;
declare const require: any;
// Prevent Karma from running prematurely.
__karma__.loaded = function () {};
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);
// And load the modules.
context.keys().map(context);
// Finally, start Karma to run the tests.
__karma__.start();
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
/* SystemJS module definition */
declare var module: NodeModule;
interface NodeModule {
id: string;
}
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
/* You can add global styles to this file, and also import other style files */
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Webshop Ui</title>
<base href="/">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<div class="container">
<app-root></app-root>
</div>
</body>
</html>
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.log(err));
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
import { TestBed, inject } from '@angular/core/testing';
import { ArtifactService } from './artifact.service';
describe('ArtifactService', () => {
beforeEach(() => {
TestBed.configureTestingModule({
providers: [ArtifactService]
});
});
it('should be created', inject([ArtifactService], (service: ArtifactService) => {
expect(service).toBeTruthy();
}));
});
| {
"repo_name": "teamforus/research",
"stars": "26",
"repo_language": "Solidity",
"file_name": "README.md",
"mime_type": "text/plain"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.