11 Commits

Author SHA1 Message Date
m.imanpour
880e05171b turning https
All checks were successful
Build and Deploy Angular App HIS / build (push) Successful in 43s
Build and Deploy Angular App HIS / deploy (push) Successful in 54s
2025-12-10 01:48:49 +03:30
m.imanpour
c4a832897b turning https
All checks were successful
Build and Deploy Angular App HIS / build (push) Successful in 44s
Build and Deploy Angular App HIS / deploy (push) Successful in 54s
2025-12-10 01:38:10 +03:30
m.imanpour
08c693bede force redeploy without devsecops v3
All checks were successful
Build and Deploy Angular App HIS / build (push) Successful in 43s
Build and Deploy Angular App HIS / deploy (push) Successful in 53s
2025-12-10 01:24:55 +03:30
m.imanpour
6627a97eb2 force redeploy without devsecops v2
Some checks failed
Build and Deploy Angular App HIS / build (push) Successful in 43s
Build and Deploy Angular App HIS / deploy (push) Failing after 1m54s
2025-12-10 01:15:31 +03:30
m.imanpour
ccb0673f84 force redeploy without devsecops
Some checks failed
Build and Deploy Angular App HIS / deploy (push) Failing after 1m57s
Build and Deploy Angular App HIS / build (push) Successful in 44s
2025-12-10 01:11:01 +03:30
m.imanpour
ed3d6d06d6 force redeploy
Some checks failed
Build and Deploy Angular App HIS / build (push) Successful in 1m8s
Build and Deploy Angular App HIS / scan (push) Failing after 32s
Build and Deploy Angular App HIS / deploy (push) Has been skipped
2025-12-10 01:08:15 +03:30
m.imanpour
3d96371492 directory structure built
Some checks failed
Build and Deploy Angular App (Artifacts, Gitea-safe) / build (push) Failing after 13s
Build and Deploy Angular App (Artifacts, Gitea-safe) / scan (push) Has been skipped
Build and Deploy Angular App (Artifacts, Gitea-safe) / deploy (push) Has been skipped
2025-12-10 00:58:05 +03:30
m.imanpour
8f6252195d fixed ENV
Some checks failed
Build and Deploy Angular App (Artifacts, Gitea-safe) / build (push) Failing after 8s
Build and Deploy Angular App (Artifacts, Gitea-safe) / scan (push) Has been skipped
Build and Deploy Angular App (Artifacts, Gitea-safe) / deploy (push) Has been skipped
2025-12-10 00:55:44 +03:30
m.imanpour
1ab2b59757 simplify test
Some checks failed
Build and Deploy Angular App (Artifacts, Gitea-safe) / build (push) Failing after 25s
Build and Deploy Angular App (Artifacts, Gitea-safe) / scan (push) Has been skipped
Build and Deploy Angular App (Artifacts, Gitea-safe) / deploy (push) Has been skipped
2025-12-10 00:49:45 +03:30
m.imanpour
8b5f7d2389 fixed context
Some checks failed
Build and Deploy Angular App (Artifacts, Gitea-safe) / test (push) Failing after 37s
Build and Deploy Angular App (Artifacts, Gitea-safe) / build (push) Has been skipped
Build and Deploy Angular App (Artifacts, Gitea-safe) / scan (push) Has been skipped
Build and Deploy Angular App (Artifacts, Gitea-safe) / deploy (push) Has been skipped
2025-12-10 00:44:00 +03:30
m.imanpour
2a4b8c3ccd Init Try
Some checks failed
Build and Deploy Angular App (Artifacts, Gitea-safe) / test (push) Failing after 1m39s
Build and Deploy Angular App (Artifacts, Gitea-safe) / build (push) Has been skipped
Build and Deploy Angular App (Artifacts, Gitea-safe) / scan (push) Has been skipped
Build and Deploy Angular App (Artifacts, Gitea-safe) / deploy (push) Has been skipped
2025-12-10 00:35:50 +03:30
305 changed files with 188530 additions and 360 deletions

View File

@@ -0,0 +1,94 @@
# .gitea/workflows/cicd.yaml
name: Build and Deploy Angular App HIS
on:
push:
branches: [ main ]
jobs:
# ---------- BUILD ---------- (skipped test for simplicity; add back when ready)
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t niayesh-hospital:latest .
- name: Save Docker image to tar
run: docker save niayesh-hospital:latest > niayesh-hospital.tar
# IMPORTANT: use v3 on Gitea
- name: Upload image artifact
uses: actions/upload-artifact@v3
with:
name: app-image
path: niayesh-hospital.tar
if-no-files-found: error
# ---------- SCAN ----------
# scan:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# # IMPORTANT: use v3 on Gitea
# - name: Download image artifact
# uses: actions/download-artifact@v3
# with:
# name: app-image
# path: . # place niayesh-hospital.tar in the workspace root
# - name: Load Docker image from artifact
# run: docker load -i niayesh-hospital.tar
# - name: Scan image with Trivy
# run: |
# docker run --rm \
# -v /var/run/docker.sock:/var/run/docker.sock \
# aquasec/trivy:latest \
# image --exit-code 1 --severity CRITICAL,HIGH --no-progress niayesh-hospital:latest
# ---------- DEPLOY ----------
deploy:
needs: [build, scan]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# IMPORTANT: use v3 on Gitea
- name: Download image artifact
uses: actions/download-artifact@v3
with:
name: app-image
path: .
- name: Set up SSH
run: |
apt update && apt install -y openssh-client
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
ssh-keyscan -p ${{ secrets.SERVER_PORT }} ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
- name: Copy files to server
run: |
scp -o StrictHostKeyChecking=no -P ${{ secrets.SERVER_PORT }} \
niayesh-hospital.tar \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:"${{ secrets.HIS_PATH }}/niayesh-hospital.tar"
scp -o StrictHostKeyChecking=no -P ${{ secrets.SERVER_PORT }} \
docker-compose.yml \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:"${{ secrets.HIS_PATH }}/docker-compose.yml"
scp -o StrictHostKeyChecking=no -P ${{ secrets.SERVER_PORT }} -r \
nginx_user_conf.d \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:"${{ secrets.HIS_PATH }}/nginx_user_conf.d"
- name: Deploy on server
run: |
ssh -o StrictHostKeyChecking=no -p ${{ secrets.SERVER_PORT }} \
${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} << 'EOF'
set -e
cd "${{ secrets.HIS_PATH }}"
# Load image and restart stack
docker load -i niayesh-hospital.tar
if [ ! -f docker-compose.yml ]; then
echo "ERROR: docker-compose.yml not found in $(pwd)" >&2
ls -la
exit 1
fi
docker compose -f docker-compose.yml down
docker compose -f docker-compose.yml up -d --remove-orphans
rm -f niayesh-hospital.tar
EOF

33
Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
# ===== Stage 1: Build the Angular app =====
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files for caching
COPY package*.json ./
RUN npm ci
# Copy source code
COPY . .
# Build for production
RUN npm run build -- --configuration production
# ===== Stage 2: Serve static files with Nginx (app service) =====
FROM nginx:alpine
# Install curl for healthcheck (nginx:alpine doesn't have wget/curl by default)
RUN apk add --no-cache curl
# Remove default Nginx files
RUN rm -rf /usr/share/nginx/html/*
# Copy built Angular app
COPY --from=builder /app/dist/niayesh-hospital/browser /usr/share/nginx/html
# Copy app-specific Nginx config for SPA routing
COPY nginx_app.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

View File

@@ -24,10 +24,8 @@
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
{
"glob": "**/*",
"input": "public"
}
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
@@ -94,5 +92,8 @@
}
}
}
},
"cli": {
"analytics": false
}
}

43
docker-compose.yml Normal file
View File

@@ -0,0 +1,43 @@
services:
app:
image: niayesh-hospital:latest
container_name: hospital-app
restart: unless-stopped
expose:
- "80"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
logging:
driver: json-file
options:
max-size: 10m
nginx:
image: jonasal/nginx-certbot:latest
container_name: hospital-nginx
restart: unless-stopped
ports:
- 4200:443 # HTTPS on host port 4200 (access via https://hospital.networkwizard.xyz:4200)
environment:
- CERTBOT_EMAIL=test@test.com
- ENVSUBST_TEMPLATE_SUFFIX=.tmpl
- CERTBOT_DISABLED=true
volumes:
- ./nginx_user_conf.d:/etc/nginx/user_conf.d:ro
- letsencrypt:/etc/letsencrypt
- /home/devroot/HIS/certs/fullchain.pem:/etc/nginx/ssl/origin_cert.pem:ro
- /home/devroot/HIS/certs/prvkey.pem:/etc/nginx/ssl/origin_key.key:ro
depends_on:
app:
condition: service_healthy
logging:
driver: json-file
options:
max-size: 10m
networks:
default:
driver: bridge
volumes:
letsencrypt:

28
nginx.conf Normal file
View File

@@ -0,0 +1,28 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
# This line is CRUCIAL for Angular routing
location / {
try_files $uri $uri/ /index.html;
}
# Optional: aggressive caching for static assets
location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico|woff|woff2|ttf|eot)$ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# Security headers (optional but recommended)
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options DENY;
add_header X-XSS-Protection "1; mode=block";
}
# server {
# listen 80;
# server_name hospital.networkwizard.xyz;
# return 301 https://$host$request_uri;
# }

20
nginx_app.conf Normal file
View File

@@ -0,0 +1,20 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot) {
expires 1y;
add_header Cache-Control "public, immutable";
}
add_header X-Content-Type-Options nosniff;
add_header X-Frame-Options DENY;
add_header X-XSS-Protection "1; mode=block";
}

View File

@@ -0,0 +1,23 @@
server {
listen 443 ssl;
server_name hospital.networkwizard.xyz;
# Reference your mounted custom certs
ssl_certificate /etc/nginx/ssl/origin_cert.pem;
ssl_certificate_key /etc/nginx/ssl/origin_key.key;
# Recommended SSL settings for security
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
location / {
proxy_pass http://hospital-app:80;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

BIN
niayesh/1_sanagoo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
niayesh/51574(1).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
niayesh/51574(2).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
niayesh/51574(3).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
niayesh/51574(4).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
niayesh/51574(5).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

BIN
niayesh/51574.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

BIN
niayesh/51575(1).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
niayesh/51575(2).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
niayesh/51575(3).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
niayesh/51575(4).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
niayesh/51575(5).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
niayesh/51575.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
niayesh/51576(1).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
niayesh/51576(2).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
niayesh/51576(3).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
niayesh/51576(4).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
niayesh/51576(5).png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

BIN
niayesh/51576.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
niayesh/Baz-aks-site1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
niayesh/CCTA2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
niayesh/LOGOERFANGROUPS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
niayesh/LOGOUP6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
niayesh/Parastar-2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

File diff suppressed because it is too large Load Diff

7181
niayesh/ScriptResource.axd Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,38 @@
.searchInputContainer { display: inline-block; margin: 0 -3px 0 0; position: relative; }
.searchInputContainer > input[type="text"]::-ms-clear { display: none; }
.searchInputContainer a.dnnSearchBoxClearText { display: block; position: absolute; right: 10px; width: 16px; height: 16px; background: none; cursor: pointer; margin: 7px 0 7px 0; z-index: 20; }
.searchInputContainer a.dnnSearchBoxClearText.dnnShow { background: url(../../../images/search/clearText.png) center center no-repeat; }
ul.searchSkinObjectPreview { position: absolute; top: 100%; right: 0; background: #fff; margin: 0; list-style: none; border: 1px solid #c9c9c9; width: 350px; z-index: 200; padding: 0; }
ul.searchSkinObjectPreview li { list-style: none; }
ul.searchSkinObjectPreview > li { padding: 6px 12px 6px 22px; border-top: 1px solid #c9c9c9; color: #666; cursor: pointer; position: relative; margin: 0; text-transform: none; }
ul.searchSkinObjectPreview > li:hover { background-color: #e8f1fa; color: #333; }
ul.searchSkinObjectPreview > li > span { }
ul.searchSkinObjectPreview > li > span img.userpic { width: 32px; height: 32px; display: block; float: left; margin-right: 4px; }
ul.searchSkinObjectPreview > li > span > b { font-weight: bold; color: #000; }
ul.searchSkinObjectPreview > li p { margin: 0; font-size: 10px; line-height: 1.2em; color: #999; font-style: italic; white-space: normal; }
ul.searchSkinObjectPreview > li p b { color: #000; }
ul.searchSkinObjectPreview > li.searchSkinObjectPreview_group { padding: 6px 12px 6px 12px; font-weight: bold; color: #000; border-bottom: 2px solid #000; cursor: inherit; }
ul.searchSkinObjectPreview > li.searchSkinObjectPreview_group:hover { background-color: #fff; color: #000; }
ul.searchSkinObjectPreview > li > a.searchSkinObjectPreview_more { display: inline; position: static; background: none; z-index: inherit; width: auto; height: auto; text-indent: inherit; float: none; }
/*dnnplus.ir 2017 */
.rtl .searchInputContainer { display: inline-block; margin: 0 0 0 -3px; position: relative; }
.rtl .searchInputContainer a.dnnSearchBoxClearText { display: block; position: absolute; right: auto; left: 10px; width: 16px; height: 16px; background: none; cursor: pointer; margin: 7px 0 7px 0; z-index: 20; }
.rtl .searchInputContainer a.dnnSearchBoxClearText.dnnShow { background: url(../../../images/search/clearText.png) center center no-repeat; }
.rtl ul.searchSkinObjectPreview { position: absolute; top: 100%; right: auto; left: 0; background: #fff; margin: 0; list-style: none; border: 1px solid #c9c9c9; width: 350px; z-index: 200; padding: 0; }
.rtl ul.searchSkinObjectPreview > li { padding: 6px 22px 6px 12px; border-top: 1px solid #c9c9c9; color: #666; cursor: pointer; position: relative; margin: 0; text-transform: none; }
.rtl ul.searchSkinObjectPreview > li > span img.userpic { width: 32px; height: 32px; display: block; float: right; margin-left: 4px; }

View File

@@ -0,0 +1,189 @@
(function ($) {
if (typeof dnn == 'undefined') window.dnn = {};
if (typeof dnn.searchSkinObject == 'undefined') {
dnn.searchSkinObject = function (options) {
var settings = {
delayTriggerAutoSearch: 100,
minCharRequiredTriggerAutoSearch: 2,
searchType: 'S',
enableWildSearch: true,
cultureCode: 'en-US'
};
this.settings = $.extend({}, settings, options);
};
dnn.searchSkinObject.prototype = {
_ignoreKeyCodes: [9, 13, 16, 17, 18, 19, 20, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45],
init: function () {
var throttle = null, self = this;
var makeUrl = function (val, service) {
var url = service ? service.getServiceRoot('internalservices') + 'searchService/preview' : null;
if (!url) return null;
var params = {};
params['keywords'] = val.replace(/^\s+|\s+$/g, '');
if (!self.settings.enableWildSearch) params["forceWild"] = "0";
params['culture'] = self.settings.cultureCode;
if (self.settings.portalId >= 0)
params['portal'] = self.settings.portalId;
var urlAppend = [];
$.each(params, function (index, value) {
urlAppend.push([index, encodeURIComponent(value)].join('='));
});
if (urlAppend.length) {
url += url.indexOf('?') === -1 ? '?' : '&';
url += urlAppend.join('&');
}
return url;
};
var generatePreviewTemplate = function (data, $wrap) {
var preview = $('.searchSkinObjectPreview', $wrap);
if (preview.length)
preview.remove();
var markup = '<ul class="searchSkinObjectPreview">';
if (data && data.length) {
for (var i = 0; i < data.length; i++) {
var group = data[i];
if (group.Results && group.Results.length) {
var groupTitle = group.DocumentTypeName;
markup += '<li class="searchSkinObjectPreview_group">' + groupTitle + '</li>';
for (var j = 0; j < group.Results.length; j++) {
var item = group.Results[j];
var itemTitle = item.Title;
var itemUrl = item.DocumentUrl;
var itemSnippet = item.Snippet;
markup += '<li data-url="' + itemUrl + '">';
if (item.Attributes.Avatar) {
markup += '<span><img src="' + item.Attributes.Avatar + '" class="userpic" /></span>';
}
markup += '<span>' + itemTitle + '</span>';
if (itemSnippet)
markup += '<p>' + itemSnippet + '</p></li>';
else
markup += '</li>';
} // end for group items
}
} // end for group
var moreResults = $wrap.attr('data-moreresults');
markup += '<li><a href="javascript:void(0)" class="searchSkinObjectPreview_more">' + moreResults + '</a></li>';
markup += '</ul>';
}
else {
var noResult = $wrap.attr('data-noresult');
markup += '<li>' + noResult + '</li></ul>';
}
$wrap.append(markup);
preview = $('.searchSkinObjectPreview', $wrap);
//attach click event
$('li', preview).on('click', function () {
var navigateUrl = $(this).attr('data-url');
if (navigateUrl) {
window.location.href = navigateUrl;
}
return false;
});
//attach see more
$('.searchSkinObjectPreview_more', $wrap).on('click', function () {
var $searchButton = $wrap.parents('.SearchContainer').length ? $wrap.parent().next() : $wrap.next();
var href = $searchButton.attr('href');
var code = href.replace('javascript:', '');
eval(code);
return false;
});
};
$('.searchInputContainer a.dnnSearchBoxClearText').on('click', function () {
var $this = $(this);
var $wrap = $this.parent();
$('.searchInputContainer input').val('').focus();
$this.removeClass('dnnShow');
$('.searchSkinObjectPreview', $wrap).remove();
return false;
});
$('.searchInputContainer').next().on('click', function() {
var $this = $(this);
var inputBox = $this.prev().find('input[type="text"]');
var val = inputBox.val();
if (val.length) {
return true;
}
return false;
});
$('.searchInputContainer input').on('keyup', function(e) {
var k = e.keyCode || e.witch;
if ($.inArray(k, self._ignoreKeyCodes) > -1) return;
var $this = $(this);
var $wrap = $this.parent();
var val = $this.val();
var container = $this.parent('.searchInputContainer');
if (!val) {
$('a.dnnSearchBoxClearText', $wrap).removeClass('dnnShow');
$('.searchSkinObjectPreview', $wrap).remove();
} else {
$('a.dnnSearchBoxClearText', $wrap).addClass('dnnShow');
if (self.settings.searchType != 'S' ||
val.length < self.settings.minCharRequiredTriggerAutoSearch) return;
if (throttle) {
clearTimeout(throttle);
delete throttle;
}
throttle = setTimeout(function() {
var service = $.dnnSF ? $.dnnSF(-1) : null;
var url = makeUrl(val, service);
if (url) {
$.ajax({
url: url,
beforeSend: service ? service.setModuleHeaders : null,
success: function(result) {
if (result)
generatePreviewTemplate(result, container);
},
error: function() {
},
type: 'GET',
dataType: 'json',
contentType: "application/json"
});
}
}, self.settings.delayTriggerAutoSearch);
}
})
.on('paste', function() {
$(this).triggerHandler('keyup');
})
.on('keypress', function(e) {
var k = e.keyCode || e.which;
if (k == 13) {
var $this = $(this);
var $wrap = $this.parent();
var val = $this.val();
if (val.length) {
var href = $wrap.next().attr('href');
if (!href) {
// dropdown search
href = $wrap.parent().next().attr('href');
}
var code = href.replace('javascript:', '');
eval(code);
e.preventDefault();
} else {
e.preventDefault();
}
}
});
}
};
}
})(jQuery);

457
niayesh/Style(1).css Normal file
View File

@@ -0,0 +1,457 @@
.slick-slider{direction:ltr;position:relative;display:block;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.slick-slider img[loading="lazy"] {max-width: 100%;}
.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0}
.slick-list:focus{outline:none}
.slick-list.dragging{cursor:pointer;cursor:hand}
.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}
.slick-track{position:relative;top:0;left:0;display:block}
.slick-track:before,.slick-track:after{display:table;content:''}
.slick-track:after{clear:both}
.slick-loading .slick-track{visibility:hidden}
.slick-slide{display:none;float:left;height:100%;min-height:1px}
[dir='rtl'] .slick-slide{float:right}
.slick-slide img{display:block}
.slick-slide.slick-loading img{display:none}
.slick-slide.dragging img{pointer-events:none}
.slick-initialized .slick-slide{display:block}
.slick-loading .slick-slide{visibility:hidden}
.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}
/* Slider */
.slick-loading .slick-list {
background: #fff url('images/ajax-loader.gif') center center no-repeat;
}
/* Arrows */
.slick-prev,
.slick-next {
font-size: 0;
line-height: 0;
position: absolute;
top: 50%;
display: block;
width: 30px;
height: 30px;
line-height:30px;
margin-top: -15px;
padding: 0;
cursor: pointer;
color: transparent;
border: none;
outline: none;
background:#a1a1a1;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
transition: all ease-in 200ms;
-webkit-transition: all ease-in 200ms; /* Safari and Chrome */
}
.slick-prev:before{
color: transparent;
outline: none;
background:#1e7ad8;
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
color: transparent;
outline: none;
background:#1e7ad8;
}
.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before {
opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before {
opacity: .25;
}
.slick-prev:before,
.slick-next:before {
font-size: 14px;
color: white;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.slick-prev {
left: -20px;
}
[dir='rtl'] .slick-prev {
right: -20px;
left: auto;
}
.slick-prev:before {
content: '';
width:6px;
height:6px;
position:absolute;
border-top:1px solid #FFF;
border-left:1px solid #FFF;
top:50%;
left:50%;
transform:rotate(-45deg);
-webkit-transform:rotate(-45deg);
margin:-3px 0 0 -1px;
}
[dir='rtl'] .slick-prev:before {
transform:rotate(135deg);
-webkit-transform:rotate(135deg);
margin:-3px 0 0 -5px;
}
.slick-next {
right: -20px;
}
[dir='rtl'] .slick-next {
right: auto;
left: -20px;
}
.slick-next:before {
content: '';
width:6px;
height:6px;
position:absolute;
border-top:1px solid #FFF;
border-left:1px solid #FFF;
top:50%;
left:50%;
transform:rotate(135deg);
-webkit-transform:rotate(135deg);
margin:-3px 0 0 -5px;
}
[dir='rtl'] .slick-next:before {
transform:rotate(-45deg);
-webkit-transform:rotate(-45deg);
margin:-3px 0 0 -1px;
}
/* Dots */
.slick-slider {
margin-bottom: 30px;
}
.slick-dots {
position: absolute;
bottom: -45px;
display: block;
width: 100%;
padding: 0;
list-style: none;
text-align: center;
}
.slick-dots li {
position: relative;
display: inline-block;
width: 12px;
height: 12px;
margin: 0 5px;
padding: 0;
cursor: pointer;
}
.slick-dots li button {
font-size: 0;
line-height: 0;
display: block;
width: 12px;
height: 12px;
cursor: pointer;
color: transparent;
border: 0;
padding:0;
outline: none;
border:1px solid #1e7ad8;
background:transparent;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
transition: all ease-in 200ms;
-webkit-transition: all ease-in 200ms; /* Safari and Chrome */
}
.slick-dots li button:hover,
.slick-dots li button:focus,
.slick-dots li.slick-active button{
outline: none;
background:#1e7ad8;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
opacity: 1;
}
.slick-dots li.slick-active button:before {
opacity: .75;
color: black;
}
.pro-single-item {
position: relative;
overflow: hidden;
}
.slick-center{
z-index: 1000;
}
.slick-center:before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
border:1px solid #a1a1a1;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
opacity:0.5;
}
.pro-single-bigContent {
margin: 0;
}
.pro-photo {
position:relative;
}
.pro-photo img {
max-height: 100%;
border-radius: 5px;
}
.pro-single-shade {
position:absolute;
width:100%;
height:100%;
top:0;
left:0;
background-color:#000;
opacity:0.5;
z-index:3;
}
.pro-single-zoom {
width:30px;
height:30px;
background-color:#000;
position:absolute;
top:50%;
left:0%;
opacity:0;
z-index:4;
margin:-15px 0 0 -32px;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
transition: all ease-in 200ms;
-webkit-transition: all ease-in 200ms; /* Safari and Chrome */
}
.pro-single-link {
width:30px;
height:30px;
background-color:#000;
position:absolute;
top:50%;
left:100%;
z-index:4;
margin:-15px 0 0 2px;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
transition: all ease-in 200ms;
-webkit-transition: all ease-in 200ms; /* Safari and Chrome */
}
.pro-single-item:hover .pro-single-zoom,
.pro-single-item:hover .pro-single-link {
left:50%;
opacity:1;
}
.pro-single-item:hover .img-zoom {}
/* caption */
.pro-single-item .default_show .pic_box img {
position:relative;
z-index:0;
}
.pro-single-item .caption {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
background-color: rgba(0,0,0,0.5);
color: #FFF;
padding: 20px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
transition: all ease-in 400ms;
-webkit-transition: all ease-in 400ms; /* Safari and Chrome */
}
.pro-single-item .caption-up {
top: 0;
left: 0;
bottom: auto;
right: auto;
transform:translate(0, -100%);
-webkit-transform:translate(0, -100%);
}
.pro-single-item .caption-right {
width: 30%;
height: 100%;
right: 0;
top: 0;
bottom: auto;
left: auto;
transform:translate(100%, 0);
-webkit-transform:translate(100%, 0);
}
.pro-single-item .caption-down {
bottom: 0;
left: 0;
top: auto;
right: auto;
transform:translate(0, 100%);
-webkit-transform:translate(0, 100%);
}
.pro-single-item .caption-left {
width: 30%;
height: 100%;
left: 0;
top: 0;
bottom: auto;
right: auto;
transform:translate(-100%, 0);
-webkit-transform:translate(-100%, 0);
}
.pro-single-item .pro-border .content{
padding:0px 5px 5px;
}
.slick-active .caption {
transform:translate(0, 0);
-webkit-transform:translate(0, 0);
}
.pro-single-item .caption-bototm-hover {
bottom: 0;
left: 0;
top: auto;
right: auto;
transform:translate(0, 100%);
-webkit-transform:translate(0, 100%);
transition: all ease-in 200ms;
-webkit-transition: all ease-in 200ms; /* Safari and Chrome */
}
.pro-single-item:hover .caption-bototm-hover{
transform:translate(0, 0);
-webkit-transform:translate(0, 0);
}
.slick-slider .nav-title {
padding:8px 5px;
}
@media only screen and (min-width: 1200px) {
.slick-prev {
left: -35px;
}
.slick-next {
right: -35px;
}
[dir='rtl'] .slick-prev {
right: -35px;
left: auto;
}
[dir='rtl'] .slick-next {
left: -35px;
right: auto;
}
}
@media only screen and (min-width: 768px) and (max-width: 979px) {
.slick-prev {
left: -15px;
}
.slick-next {
right: -15px;
}
[dir='rtl'] .slick-prev {
right: -15px;
left: auto;
}
[dir='rtl'] .slick-next {
left: -15px;
right: auto;
}
}
@media only screen and (max-width: 795px) {
.slick-prev {
left: -0px;
}
.slick-next {
right: -0px;
}
[dir='rtl'] .slick-prev {
right: -0px;
left: auto;
}
[dir='rtl'] .slick-next {
left: -0px;
right: auto;
}
}
/* Theme_03_Default */
.Theme_03_Default {
position:relative;
min-height:50px;
}
.Theme_03_Default .pro-single-item{
visibility:hidden;
}
.Theme_03_Default.slick-slider .pro-single-item{
visibility:visible;
}
.Theme_03_Default:before{
content:"";
background:url(images/loading.gif) no-repeat center center;
position:absolute;
width:100%;
height:100%;
z-index:100;
}
.Theme_03_Default.slick-slider:before{
display:none;
}

33
niayesh/Style(2).css Normal file
View File

@@ -0,0 +1,33 @@
.Theme_13_Default {
margin: 0 auto;
padding: 0;
}
.Theme_13_Default .loading {
position: absolute;
top: 0px;
left: 0px;
z-index: 100;
width: 100%;
height: 100%;
}
.Theme_13_Default .loading .bg {
position: absolute;
display: block;
background-color: #FFF;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
.Theme_13_Default .loading .ico {
position: absolute;
display: block;
background: url(images/loading.gif) no-repeat center center;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}

3951
niayesh/Style.css Normal file

File diff suppressed because it is too large Load Diff

BIN
niayesh/Taheri-azam2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
niayesh/Toseesaderat_1.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
niayesh/U11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

1
niayesh/WZmjHd Normal file

File diff suppressed because one or more lines are too long

BIN
niayesh/Ward1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
niayesh/Ward11(1).jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
niayesh/Ward11.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
niayesh/Ward12.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
niayesh/Ward13.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
niayesh/Ward2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
niayesh/Ward3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

BIN
niayesh/Ward5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
niayesh/Ward7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
niayesh/Ward8.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

581
niayesh/WebResource.axd Normal file
View File

@@ -0,0 +1,581 @@
function WebForm_PostBackOptions(eventTarget, eventArgument, validation, validationGroup, actionUrl, trackFocus, clientSubmit) {
this.eventTarget = eventTarget;
this.eventArgument = eventArgument;
this.validation = validation;
this.validationGroup = validationGroup;
this.actionUrl = actionUrl;
this.trackFocus = trackFocus;
this.clientSubmit = clientSubmit;
}
function WebForm_DoPostBackWithOptions(options) {
var validationResult = true;
if (options.validation) {
if (typeof(Page_ClientValidate) == 'function') {
validationResult = Page_ClientValidate(options.validationGroup);
}
}
if (validationResult) {
if ((typeof(options.actionUrl) != "undefined") && (options.actionUrl != null) && (options.actionUrl.length > 0)) {
theForm.action = options.actionUrl;
}
if (options.trackFocus) {
var lastFocus = theForm.elements["__LASTFOCUS"];
if ((typeof(lastFocus) != "undefined") && (lastFocus != null)) {
if (typeof(document.activeElement) == "undefined") {
lastFocus.value = options.eventTarget;
}
else {
var active = document.activeElement;
if ((typeof(active) != "undefined") && (active != null)) {
if ((typeof(active.id) != "undefined") && (active.id != null) && (active.id.length > 0)) {
lastFocus.value = active.id;
}
else if (typeof(active.name) != "undefined") {
lastFocus.value = active.name;
}
}
}
}
}
}
if (options.clientSubmit) {
__doPostBack(options.eventTarget, options.eventArgument);
}
}
var __pendingCallbacks = new Array();
var __synchronousCallBackIndex = -1;
function WebForm_DoCallback(eventTarget, eventArgument, eventCallback, context, errorCallback, useAsync) {
var postData = __theFormPostData +
"__CALLBACKID=" + WebForm_EncodeCallback(eventTarget) +
"&__CALLBACKPARAM=" + WebForm_EncodeCallback(eventArgument);
if (theForm["__EVENTVALIDATION"]) {
postData += "&__EVENTVALIDATION=" + WebForm_EncodeCallback(theForm["__EVENTVALIDATION"].value);
}
var xmlRequest,e;
try {
xmlRequest = new XMLHttpRequest();
}
catch(e) {
try {
xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e) {
}
}
var setRequestHeaderMethodExists = true;
try {
setRequestHeaderMethodExists = (xmlRequest && xmlRequest.setRequestHeader);
}
catch(e) {}
var callback = new Object();
callback.eventCallback = eventCallback;
callback.context = context;
callback.errorCallback = errorCallback;
callback.async = useAsync;
var callbackIndex = WebForm_FillFirstAvailableSlot(__pendingCallbacks, callback);
if (!useAsync) {
if (__synchronousCallBackIndex != -1) {
__pendingCallbacks[__synchronousCallBackIndex] = null;
}
__synchronousCallBackIndex = callbackIndex;
}
if (setRequestHeaderMethodExists) {
xmlRequest.onreadystatechange = WebForm_CallbackComplete;
callback.xmlRequest = xmlRequest;
// e.g. http:
var action = theForm.action || document.location.pathname, fragmentIndex = action.indexOf('#');
if (fragmentIndex !== -1) {
action = action.substr(0, fragmentIndex);
}
if (!__nonMSDOMBrowser) {
var domain = "";
var path = action;
var query = "";
var queryIndex = action.indexOf('?');
if (queryIndex !== -1) {
query = action.substr(queryIndex);
path = action.substr(0, queryIndex);
}
if (path.indexOf("%") === -1) {
// domain may or may not be present (e.g. action of "foo.aspx" vs "http:
if (/^https?\:\/\/.*$/gi.test(path)) {
var domainPartIndex = path.indexOf("\/\/") + 2;
var slashAfterDomain = path.indexOf("/", domainPartIndex);
if (slashAfterDomain === -1) {
// entire url is the domain (e.g. "http:
domain = path;
path = "";
}
else {
domain = path.substr(0, slashAfterDomain);
path = path.substr(slashAfterDomain);
}
}
action = domain + encodeURI(path) + query;
}
}
xmlRequest.open("POST", action, true);
xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
xmlRequest.send(postData);
return;
}
callback.xmlRequest = new Object();
var callbackFrameID = "__CALLBACKFRAME" + callbackIndex;
var xmlRequestFrame = document.frames[callbackFrameID];
if (!xmlRequestFrame) {
xmlRequestFrame = document.createElement("IFRAME");
xmlRequestFrame.width = "1";
xmlRequestFrame.height = "1";
xmlRequestFrame.frameBorder = "0";
xmlRequestFrame.id = callbackFrameID;
xmlRequestFrame.name = callbackFrameID;
xmlRequestFrame.style.position = "absolute";
xmlRequestFrame.style.top = "-100px"
xmlRequestFrame.style.left = "-100px";
try {
if (callBackFrameUrl) {
xmlRequestFrame.src = callBackFrameUrl;
}
}
catch(e) {}
document.body.appendChild(xmlRequestFrame);
}
var interval = window.setInterval(function() {
xmlRequestFrame = document.frames[callbackFrameID];
if (xmlRequestFrame && xmlRequestFrame.document) {
window.clearInterval(interval);
xmlRequestFrame.document.write("");
xmlRequestFrame.document.close();
xmlRequestFrame.document.write('<html><body><form method="post"><input type="hidden" name="__CALLBACKLOADSCRIPT" value="t"></form></body></html>');
xmlRequestFrame.document.close();
xmlRequestFrame.document.forms[0].action = theForm.action;
var count = __theFormPostCollection.length;
var element;
for (var i = 0; i < count; i++) {
element = __theFormPostCollection[i];
if (element) {
var fieldElement = xmlRequestFrame.document.createElement("INPUT");
fieldElement.type = "hidden";
fieldElement.name = element.name;
fieldElement.value = element.value;
xmlRequestFrame.document.forms[0].appendChild(fieldElement);
}
}
var callbackIdFieldElement = xmlRequestFrame.document.createElement("INPUT");
callbackIdFieldElement.type = "hidden";
callbackIdFieldElement.name = "__CALLBACKID";
callbackIdFieldElement.value = eventTarget;
xmlRequestFrame.document.forms[0].appendChild(callbackIdFieldElement);
var callbackParamFieldElement = xmlRequestFrame.document.createElement("INPUT");
callbackParamFieldElement.type = "hidden";
callbackParamFieldElement.name = "__CALLBACKPARAM";
callbackParamFieldElement.value = eventArgument;
xmlRequestFrame.document.forms[0].appendChild(callbackParamFieldElement);
if (theForm["__EVENTVALIDATION"]) {
var callbackValidationFieldElement = xmlRequestFrame.document.createElement("INPUT");
callbackValidationFieldElement.type = "hidden";
callbackValidationFieldElement.name = "__EVENTVALIDATION";
callbackValidationFieldElement.value = theForm["__EVENTVALIDATION"].value;
xmlRequestFrame.document.forms[0].appendChild(callbackValidationFieldElement);
}
var callbackIndexFieldElement = xmlRequestFrame.document.createElement("INPUT");
callbackIndexFieldElement.type = "hidden";
callbackIndexFieldElement.name = "__CALLBACKINDEX";
callbackIndexFieldElement.value = callbackIndex;
xmlRequestFrame.document.forms[0].appendChild(callbackIndexFieldElement);
xmlRequestFrame.document.forms[0].submit();
}
}, 10);
}
function WebForm_CallbackComplete() {
for (var i = 0; i < __pendingCallbacks.length; i++) {
callbackObject = __pendingCallbacks[i];
if (callbackObject && callbackObject.xmlRequest && (callbackObject.xmlRequest.readyState == 4)) {
if (!__pendingCallbacks[i].async) {
__synchronousCallBackIndex = -1;
}
__pendingCallbacks[i] = null;
var callbackFrameID = "__CALLBACKFRAME" + i;
var xmlRequestFrame = document.getElementById(callbackFrameID);
if (xmlRequestFrame) {
xmlRequestFrame.parentNode.removeChild(xmlRequestFrame);
}
WebForm_ExecuteCallback(callbackObject);
}
}
}
function WebForm_ExecuteCallback(callbackObject) {
var response = callbackObject.xmlRequest.responseText;
if (response.charAt(0) == "s") {
if ((typeof(callbackObject.eventCallback) != "undefined") && (callbackObject.eventCallback != null)) {
callbackObject.eventCallback(response.substring(1), callbackObject.context);
}
}
else if (response.charAt(0) == "e") {
if ((typeof(callbackObject.errorCallback) != "undefined") && (callbackObject.errorCallback != null)) {
callbackObject.errorCallback(response.substring(1), callbackObject.context);
}
}
else {
var separatorIndex = response.indexOf("|");
if (separatorIndex != -1) {
var validationFieldLength = parseInt(response.substring(0, separatorIndex));
if (!isNaN(validationFieldLength)) {
var validationField = response.substring(separatorIndex + 1, separatorIndex + validationFieldLength + 1);
if (validationField != "") {
var validationFieldElement = theForm["__EVENTVALIDATION"];
if (!validationFieldElement) {
validationFieldElement = document.createElement("INPUT");
validationFieldElement.type = "hidden";
validationFieldElement.name = "__EVENTVALIDATION";
theForm.appendChild(validationFieldElement);
}
validationFieldElement.value = validationField;
}
if ((typeof(callbackObject.eventCallback) != "undefined") && (callbackObject.eventCallback != null)) {
callbackObject.eventCallback(response.substring(separatorIndex + validationFieldLength + 1), callbackObject.context);
}
}
}
}
}
function WebForm_FillFirstAvailableSlot(array, element) {
var i;
for (i = 0; i < array.length; i++) {
if (!array[i]) break;
}
array[i] = element;
return i;
}
var __nonMSDOMBrowser = (window.navigator.appName.toLowerCase().indexOf('explorer') == -1);
var __theFormPostData = "";
var __theFormPostCollection = new Array();
var __callbackTextTypes = /^(text|password|hidden|search|tel|url|email|number|range|color|datetime|date|month|week|time|datetime-local)$/i;
function WebForm_InitCallback() {
var formElements = theForm.elements,
count = formElements.length,
element;
for (var i = 0; i < count; i++) {
element = formElements[i];
var tagName = element.tagName.toLowerCase();
if (tagName == "input") {
var type = element.type;
if ((__callbackTextTypes.test(type) || ((type == "checkbox" || type == "radio") && element.checked))
&& (element.id != "__EVENTVALIDATION")) {
WebForm_InitCallbackAddField(element.name, element.value);
}
}
else if (tagName == "select") {
var selectCount = element.options.length;
for (var j = 0; j < selectCount; j++) {
var selectChild = element.options[j];
if (selectChild.selected == true) {
WebForm_InitCallbackAddField(element.name, element.value);
}
}
}
else if (tagName == "textarea") {
WebForm_InitCallbackAddField(element.name, element.value);
}
}
}
function WebForm_InitCallbackAddField(name, value) {
var nameValue = new Object();
nameValue.name = name;
nameValue.value = value;
__theFormPostCollection[__theFormPostCollection.length] = nameValue;
__theFormPostData += WebForm_EncodeCallback(name) + "=" + WebForm_EncodeCallback(value) + "&";
}
function WebForm_EncodeCallback(parameter) {
if (encodeURIComponent) {
return encodeURIComponent(parameter);
}
else {
return escape(parameter);
}
}
var __disabledControlArray = new Array();
function WebForm_ReEnableControls() {
if (typeof(__enabledControlArray) == 'undefined') {
return false;
}
var disabledIndex = 0;
for (var i = 0; i < __enabledControlArray.length; i++) {
var c;
if (__nonMSDOMBrowser) {
c = document.getElementById(__enabledControlArray[i]);
}
else {
c = document.all[__enabledControlArray[i]];
}
if ((typeof(c) != "undefined") && (c != null) && (c.disabled == true)) {
c.disabled = false;
__disabledControlArray[disabledIndex++] = c;
}
}
setTimeout("WebForm_ReDisableControls()", 0);
return true;
}
function WebForm_ReDisableControls() {
for (var i = 0; i < __disabledControlArray.length; i++) {
__disabledControlArray[i].disabled = true;
}
}
function WebForm_SimulateClick(element, event) {
var clickEvent;
if (element) {
if (element.click) {
element.click();
} else {
clickEvent = document.createEvent("MouseEvents");
clickEvent.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
if (!element.dispatchEvent(clickEvent)) {
return true;
}
}
event.cancelBubble = true;
if (event.stopPropagation) {
event.stopPropagation();
}
return false;
}
return true;
}
function WebForm_FireDefaultButton(event, target) {
if (event.keyCode == 13) {
var src = event.srcElement || event.target;
if (src &&
((src.tagName.toLowerCase() == "input") &&
(src.type.toLowerCase() == "submit" || src.type.toLowerCase() == "button")) ||
((src.tagName.toLowerCase() == "a") &&
(src.href != null) && (src.href != "")) ||
(src.tagName.toLowerCase() == "textarea")) {
return true;
}
var defaultButton;
if (__nonMSDOMBrowser) {
defaultButton = document.getElementById(target);
}
else {
defaultButton = document.all[target];
}
if (defaultButton) {
return WebForm_SimulateClick(defaultButton, event);
}
}
return true;
}
function WebForm_GetScrollX() {
if (__nonMSDOMBrowser) {
return window.pageXOffset;
}
else {
if (document.documentElement && document.documentElement.scrollLeft) {
return document.documentElement.scrollLeft;
}
else if (document.body) {
return document.body.scrollLeft;
}
}
return 0;
}
function WebForm_GetScrollY() {
if (__nonMSDOMBrowser) {
return window.pageYOffset;
}
else {
if (document.documentElement && document.documentElement.scrollTop) {
return document.documentElement.scrollTop;
}
else if (document.body) {
return document.body.scrollTop;
}
}
return 0;
}
function WebForm_SaveScrollPositionSubmit() {
if (__nonMSDOMBrowser) {
theForm.elements['__SCROLLPOSITIONY'].value = window.pageYOffset;
theForm.elements['__SCROLLPOSITIONX'].value = window.pageXOffset;
}
else {
theForm.__SCROLLPOSITIONX.value = WebForm_GetScrollX();
theForm.__SCROLLPOSITIONY.value = WebForm_GetScrollY();
}
if ((typeof(this.oldSubmit) != "undefined") && (this.oldSubmit != null)) {
return this.oldSubmit();
}
return true;
}
function WebForm_SaveScrollPositionOnSubmit() {
theForm.__SCROLLPOSITIONX.value = WebForm_GetScrollX();
theForm.__SCROLLPOSITIONY.value = WebForm_GetScrollY();
if ((typeof(this.oldOnSubmit) != "undefined") && (this.oldOnSubmit != null)) {
return this.oldOnSubmit();
}
return true;
}
function WebForm_RestoreScrollPosition() {
if (__nonMSDOMBrowser) {
window.scrollTo(theForm.elements['__SCROLLPOSITIONX'].value, theForm.elements['__SCROLLPOSITIONY'].value);
}
else {
window.scrollTo(theForm.__SCROLLPOSITIONX.value, theForm.__SCROLLPOSITIONY.value);
}
if ((typeof(theForm.oldOnLoad) != "undefined") && (theForm.oldOnLoad != null)) {
return theForm.oldOnLoad();
}
return true;
}
function WebForm_TextBoxKeyHandler(event) {
if (event.keyCode == 13) {
var target;
if (__nonMSDOMBrowser) {
target = event.target;
}
else {
target = event.srcElement;
}
if ((typeof(target) != "undefined") && (target != null)) {
if (typeof(target.onchange) != "undefined") {
target.onchange();
event.cancelBubble = true;
if (event.stopPropagation) event.stopPropagation();
return false;
}
}
}
return true;
}
function WebForm_TrimString(value) {
return value.replace(/^\s+|\s+$/g, '')
}
function WebForm_AppendToClassName(element, className) {
var currentClassName = ' ' + WebForm_TrimString(element.className) + ' ';
className = WebForm_TrimString(className);
var index = currentClassName.indexOf(' ' + className + ' ');
if (index === -1) {
element.className = (element.className === '') ? className : element.className + ' ' + className;
}
}
function WebForm_RemoveClassName(element, className) {
var currentClassName = ' ' + WebForm_TrimString(element.className) + ' ';
className = WebForm_TrimString(className);
var index = currentClassName.indexOf(' ' + className + ' ');
if (index >= 0) {
element.className = WebForm_TrimString(currentClassName.substring(0, index) + ' ' +
currentClassName.substring(index + className.length + 1, currentClassName.length));
}
}
function WebForm_GetElementById(elementId) {
if (document.getElementById) {
return document.getElementById(elementId);
}
else if (document.all) {
return document.all[elementId];
}
else return null;
}
function WebForm_GetElementByTagName(element, tagName) {
var elements = WebForm_GetElementsByTagName(element, tagName);
if (elements && elements.length > 0) {
return elements[0];
}
else return null;
}
function WebForm_GetElementsByTagName(element, tagName) {
if (element && tagName) {
if (element.getElementsByTagName) {
return element.getElementsByTagName(tagName);
}
if (element.all && element.all.tags) {
return element.all.tags(tagName);
}
}
return null;
}
function WebForm_GetElementDir(element) {
if (element) {
if (element.dir) {
return element.dir;
}
return WebForm_GetElementDir(element.parentNode);
}
return "ltr";
}
function WebForm_GetElementPosition(element) {
var result = new Object();
result.x = 0;
result.y = 0;
result.width = 0;
result.height = 0;
if (element.offsetParent) {
result.x = element.offsetLeft;
result.y = element.offsetTop;
var parent = element.offsetParent;
while (parent) {
result.x += parent.offsetLeft;
result.y += parent.offsetTop;
var parentTagName = parent.tagName.toLowerCase();
if (parentTagName != "table" &&
parentTagName != "body" &&
parentTagName != "html" &&
parentTagName != "div" &&
parent.clientTop &&
parent.clientLeft) {
result.x += parent.clientLeft;
result.y += parent.clientTop;
}
parent = parent.offsetParent;
}
}
else if (element.left && element.top) {
result.x = element.left;
result.y = element.top;
}
else {
if (element.x) {
result.x = element.x;
}
if (element.y) {
result.y = element.y;
}
}
if (element.offsetWidth && element.offsetHeight) {
result.width = element.offsetWidth;
result.height = element.offsetHeight;
}
else if (element.style && element.style.pixelWidth && element.style.pixelHeight) {
result.width = element.style.pixelWidth;
result.height = element.style.pixelHeight;
}
return result;
}
function WebForm_GetParentByTagName(element, tagName) {
var parent = element.parentNode;
var upperTagName = tagName.toUpperCase();
while (parent && (parent.tagName.toUpperCase() != upperTagName)) {
parent = parent.parentNode ? parent.parentNode : parent.parentElement;
}
return parent;
}
function WebForm_SetElementHeight(element, height) {
if (element && element.style) {
element.style.height = height + "px";
}
}
function WebForm_SetElementWidth(element, width) {
if (element && element.style) {
element.style.width = width + "px";
}
}
function WebForm_SetElementX(element, x) {
if (element && element.style) {
element.style.left = x + "px";
}
}
function WebForm_SetElementY(element, y) {
if (element && element.style) {
element.style.top = y + "px";
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
niayesh/alborz.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
niayesh/ar-IQ.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
niayesh/asia.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
niayesh/awardhomepage.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
niayesh/awardhomepage2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
niayesh/bannerslogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@@ -0,0 +1,69 @@
// Copyright Google Inc. All Rights Reserved.
(function() { /*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
'use strict';var h=this||self,aa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"},ba=function(a){var b=aa(a);return"array"==b||"object"==b&&"number"==typeof a.length},ca=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},da=function(a,b,c){return a.call.apply(a.bind,arguments)},ea=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);
Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},k=function(a,b,c){k=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?da:ea;return k.apply(null,arguments)},l=function(a,b){a=a.split(".");var c=h;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b},m=function(a,b){function c(){}c.prototype=
b.prototype;a.jc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.hc=function(d,e,f){for(var g=Array(arguments.length-2),p=2;p<arguments.length;p++)g[p-2]=arguments[p];return b.prototype[e].apply(d,g)}},n=function(a){return a};function r(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)}m(r,Error);r.prototype.name="CustomError";function t(a,b){a=a.split("%s");let c="";const d=a.length-1;for(let e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");r.call(this,c+a[d])}m(t,r);t.prototype.name="AssertionError";var u=function(a,b){throw new t("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var v=class{constructor(a,b){this.name=a;this.value=b}toString(){return this.name}},w=new v("OFF",Infinity),x=new v("SEVERE",1E3),y=new v("WARNING",900),z=new v("CONFIG",700),A=[w,new v("SHOUT",1200),x,y,new v("INFO",800),z,new v("FINE",500),new v("FINER",400),new v("FINEST",300),new v("ALL",0)],B=null,fa=class{constructor(){this.ca=0;this.clear()}clear(){this.La=Array(this.ca);this.Na=-1;this.Sa=!1}},ha,ia=class{constructor(a,b,c){this.ea=void 0;this.reset(a||w,b,c,void 0,void 0)}reset(a,b,c,d){this.hb=
d||Date.now();this.Ta=a;this.Jb=b;this.Ua=c;this.ea=void 0}getMessage(){return this.Jb}},ja=function(a){if(a.level)return a.level;if(a.parent)return ja(a.parent);u("Root logger has no level set.");return w},ka=class{constructor(a,b=null){this.level=null;this.Qa=[];this.parent=b||null;this.children=[];this.V={T:()=>a}}publish(a){let b=this;for(;b;)b.Qa.forEach(c=>{c(a)}),b=b.parent}},C=function(a,b){var c=a.entries[b];if(c)return c;c=C(a,b.slice(0,Math.max(b.lastIndexOf("."),0)));const d=new ka(b,
c);a.entries[b]=d;c.children.push(d);return d},la=class{constructor(){this.entries={};const a=new ka("");a.level=z;this.entries[""]=a}},ma,D=function(){ma||(ma=new la);return ma},E=function(a,b,c,d){var e;if(e=a)if(e=a&&b){e=b.value;var f=a?ja(C(D(),a.T())):w;e=e>=f.value}if(e){b=b||w;e=C(D(),a.T());"function"===typeof c&&(c=c());ha||(ha=new fa);f=ha;a=a.T();if(0<f.ca){var g=(f.Na+1)%f.ca;f.Na=g;f.Sa?(f=f.La[g],f.reset(b,c,a),a=f):(f.Sa=g==f.ca-1,a=f.La[g]=new ia(b,c,a))}else a=new ia(b,c,a);a.ea=
d;e.publish(a)}};var F=function(){this.Za=Date.now()},na=null;F.prototype.set=function(a){this.Za=a};F.prototype.reset=function(){this.set(Date.now())};F.prototype.get=function(){return this.Za};var oa;var pa=/&/g,qa=/</g,ra=/>/g,sa=/"/g,ta=/'/g,ua=/\x00/g,va=/[\x00&<>"']/;function G(){var a=h.navigator;return a&&(a=a.userAgent)?a:""};const wa={};
var xa=function(a){if(a instanceof I&&a.constructor===I)return a.Fa;u(`expected object of type SafeHtml, got '${a}' of type `+aa(a));return"type_error:SafeHtml"},za=function(a){a instanceof I||(a="object"==typeof a&&a.Eb?a.Cb():String(a),va.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(pa,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(qa,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(ra,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(sa,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace(ta,"&#39;")),-1!=a.indexOf("\x00")&&(a=
a.replace(ua,"&#0;"))),a=ya(a));return a},ya=function(a){if(void 0===oa){var b=null;var c=h.trustedTypes;if(c&&c.createPolicy)try{b=c.createPolicy("goog#html",{createHTML:n,createScript:n,createScriptURL:n})}catch(d){h.console&&h.console.error(d.message)}oa=b}a=(b=oa)?b.createHTML(a):a;return new I(a,wa)};class I{constructor(a,b){this.Fa=b===wa?a:"";this.Eb=!0}Cb(){return this.Fa.toString()}toString(){return this.Fa.toString()}}var Aa=new I(h.trustedTypes&&h.trustedTypes.emptyHTML||"",wa);var J=function(a){this.Pb=a||"";na||(na=new F);this.cc=na};J.prototype.Ka=!0;J.prototype.eb=!0;J.prototype.Zb=!0;J.prototype.Yb=!0;J.prototype.fb=!1;J.prototype.ac=!1;var K=function(a){return 10>a?"0"+a:String(a)},Ba=function(a){J.call(this,a)};m(Ba,J);
var Ca=function(a,b){var c=[];c.push(a.Pb," ");if(a.eb){var d=new Date(b.hb);c.push("[",K(d.getFullYear()-2E3)+K(d.getMonth()+1)+K(d.getDate())+" "+K(d.getHours())+":"+K(d.getMinutes())+":"+K(d.getSeconds())+"."+K(Math.floor(d.getMilliseconds()/10)),"] ")}if(a.Zb){d=c.push;var e=a.cc.get();e=(b.hb-e)/1E3;var f=e.toFixed(3),g=0;if(1>e)g=2;else for(;100>e;)g++,e*=10;for(;0<g--;)f=" "+f;d.call(c,"[",f,"s] ")}a.Yb&&c.push("[",b.Ua,"] ");a.ac&&c.push("[",b.Ta.name,"] ");c.push(b.getMessage());a.fb&&(b=
b.ea,void 0!==b&&c.push("\n",b instanceof Error?b.message:String(b)));a.Ka&&c.push("\n");return c.join("")};var Da=function(){this.Qb=k(this.ib,this);this.fa=new Ba;this.fa.eb=!1;this.fa.fb=!1;this.Ra=this.fa.Ka=!1;this.sb={}};Da.prototype.ib=function(a){function b(f){if(f){if(f.value>=x.value)return"error";if(f.value>=y.value)return"warn";if(f.value>=z.value)return"log"}return"debug"}if(!this.sb[a.Ua]){var c=Ca(this.fa,a),d=Ea;if(d){var e=b(a.Ta);Fa(d,e,c,a.ea)}}};var L=null,Ea=h.console,Fa=function(a,b,c,d){if(a[b])a[b](c,void 0===d?"":d);else a.log(c,void 0===d?"":d)};var Ga=function(){};var Ha=function(a){let b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if("undefined"===typeof document)return!1;var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);if(!a.firstChild)return!1;b=a.firstChild.firstChild;a.innerHTML=xa(Aa);return!b.parentElement});var Ia=function(){var a=document;var b="IFRAME";"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};/*
SPDX-License-Identifier: Apache-2.0
*/
const Ja=[];var Ka=a=>{var b=C(D(),"safevalues").V;b&&E(b,y,`A URL with content '${a}' was sanitized away.`)};-1===Ja.indexOf(Ka)&&Ja.push(Ka);var La={ic:!0},M=function(){throw Error("Do not instantiate directly");};M.prototype.lb=null;M.prototype.getContent=function(){return this.content};M.prototype.toString=function(){return this.content};var Ma=function(){M.call(this)};m(Ma,M);Ma.prototype.mb=La;/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
function Na(){var a=Oa(Pa);if(!ca(a))return za(String(a));if(a instanceof M){if(a.mb!==La)throw Error("Sanitized content was not of kind HTML.");return ya(a.toString())}u(`Soy template output is unsafe for use as HTML: ${a}`);return za("zSoyz")}const Pa={};class Qa{constructor(a,b){this.Gb=100;this.nb=a;this.Tb=b;this.ka=0;this.ha=null}get(){let a;0<this.ka?(this.ka--,a=this.ha,this.ha=a.next,a.next=null):a=this.nb();return a}put(a){this.Tb(a);this.ka<this.Gb&&(this.ka++,a.next=this.ha,this.ha=a)}};var Ra,Sa=function(){var a=h.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&-1==G().indexOf("Presto")&&(a=function(){var e=Ia();e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var g="callImmediate"+Math.random(),p="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=k(function(q){if(("*"==p||q.origin==p)&&q.data==g)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(g,p)}}});if("undefined"!==typeof a&&-1==G().indexOf("Trident")&&-1==G().indexOf("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.Ma;c.Ma=null;e()}};return function(e){d.next={Ma:e};d=d.next;b.port2.postMessage(0)}}return function(e){h.setTimeout(e,0)}};function Ta(a){h.setTimeout(()=>{throw a;},0)};class Ua{constructor(){this.na=this.R=null}add(a,b){const c=Va.get();c.set(a,b);this.na?this.na.next=c:this.R=c;this.na=c}remove(){let a=null;this.R&&(a=this.R,this.R=this.R.next,this.R||(this.na=null),a.next=null);return a}}var Va=new Qa(()=>new Wa,a=>a.reset());class Wa{constructor(){this.next=this.scope=this.ta=null}set(a,b){this.ta=a;this.scope=b;this.next=null}reset(){this.next=this.scope=this.ta=null}};let N,Xa=!1,Ya=new Ua,$a=(a,b)=>{N||Za();Xa||(N(),Xa=!0);Ya.add(a,b)},Za=()=>{if(h.Promise&&h.Promise.resolve){const a=h.Promise.resolve(void 0);N=()=>{a.then(ab)}}else N=()=>{var a=ab,b;!(b="function"!==typeof h.setImmediate)&&(b=h.Window&&h.Window.prototype)&&(b=-1==G().indexOf("Edge")&&h.Window.prototype.setImmediate==h.setImmediate);b?(Ra||(Ra=Sa()),Ra(a)):h.setImmediate(a)}};var ab=()=>{let a;for(;a=Ya.remove();){try{a.ta.call(a.scope)}catch(b){Ta(b)}Va.put(a)}Xa=!1};var Q=function(a){this.l=0;this.ab=void 0;this.I=this.A=this.G=null;this.ga=this.sa=!1;if(a!=Ga)try{var b=this;a.call(void 0,function(c){O(b,2,c)},function(c){if(!(c instanceof P))try{if(c instanceof Error)throw c;throw Error("Promise rejected.");}catch(d){}O(b,3,c)})}catch(c){O(this,3,c)}},bb=function(){this.next=this.context=this.N=this.W=this.F=null;this.aa=!1};bb.prototype.reset=function(){this.context=this.N=this.W=this.F=null;this.aa=!1};
var cb=new Qa(function(){return new bb},function(a){a.reset()}),db=function(a,b,c){var d=cb.get();d.W=a;d.N=b;d.context=c;return d},R=function(){var a,b,c=new Q(function(d,e){a=d;b=e});return new eb(c,a,b)};Q.prototype.then=function(a,b,c){return fb(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};Q.prototype.$goog_Thenable=!0;Q.prototype.gb=function(a,b){return fb(this,null,a,b)};Q.prototype.catch=Q.prototype.gb;
Q.prototype.cancel=function(a){if(0==this.l){var b=new P(a);$a(function(){gb(this,b)},this)}};
var gb=function(a,b){if(0==a.l)if(a.G){var c=a.G;if(c.A){for(var d=0,e=null,f=null,g=c.A;g&&(g.aa||(d++,g.F==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.l&&1==d?gb(c,b):(f?(d=f,d.next==c.I&&(c.I=d),d.next=d.next.next):hb(c),ib(c,e,3,b)))}a.G=null}else O(a,3,b)},kb=function(a,b){a.A||2!=a.l&&3!=a.l||jb(a);a.I?a.I.next=b:a.A=b;a.I=b},fb=function(a,b,c,d){var e=db(null,null,null);e.F=new Q(function(f,g){e.W=b?function(p){try{var q=b.call(d,p);f(q)}catch(H){g(H)}}:f;e.N=c?function(p){try{var q=c.call(d,
p);void 0===q&&p instanceof P?g(p):f(q)}catch(H){g(H)}}:g});e.F.G=a;kb(a,e);return e.F};Q.prototype.dc=function(a){this.l=0;O(this,2,a)};Q.prototype.ec=function(a){this.l=0;O(this,3,a)};
var O=function(a,b,c){if(0==a.l){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.l=1;a:{var d=c,e=a.dc,f=a.ec;if(d instanceof Q){kb(d,db(e||Ga,f||null,a));var g=!0}else{if(d)try{var p=!!d.$goog_Thenable}catch(H){p=!1}else p=!1;if(p)d.then(e,f,a),g=!0;else{if(ca(d))try{var q=d.then;if("function"===typeof q){lb(d,q,e,f,a);g=!0;break a}}catch(H){f.call(a,H);g=!0;break a}g=!1}}}g||(a.ab=c,a.l=b,a.G=null,jb(a),3!=b||c instanceof P||mb(a,c))}},lb=function(a,b,c,d,e){var f=!1,g=function(q){f||
(f=!0,c.call(e,q))},p=function(q){f||(f=!0,d.call(e,q))};try{b.call(a,g,p)}catch(q){p(q)}},jb=function(a){a.sa||(a.sa=!0,$a(a.qb,a))},hb=function(a){var b=null;a.A&&(b=a.A,a.A=b.next,b.next=null);a.A||(a.I=null);return b};Q.prototype.qb=function(){for(var a;a=hb(this);)ib(this,a,this.l,this.ab);this.sa=!1};
var ib=function(a,b,c,d){if(3==c&&b.N&&!b.aa)for(;a&&a.ga;a=a.G)a.ga=!1;if(b.F)b.F.G=null,nb(b,c,d);else try{b.aa?b.W.call(b.context):nb(b,c,d)}catch(e){ob.call(null,e)}cb.put(b)},nb=function(a,b,c){2==b?a.W.call(a.context,c):a.N&&a.N.call(a.context,c)},mb=function(a,b){a.ga=!0;$a(function(){a.ga&&ob.call(null,b)})},ob=Ta,P=function(a){r.call(this,a)};m(P,r);P.prototype.name="cancel";var eb=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var S=function(){this.da=this.da;this.la=this.la};S.prototype.da=!1;S.prototype.qa=function(){this.da||(this.da=!0,this.ra())};S.prototype.ra=function(){if(this.la)for(;this.la.length;)this.la.shift()()};var pb=function(a,b){if("function"!==typeof a)if(a&&"function"==typeof a.handleEvent)a=k(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:h.setTimeout(a,b||0)};var qb=function(a){a.H=pb(()=>{a.H=null;a.P&&!a.X&&(a.P=!1,qb(a))},a.Fb);const b=a.ba;a.ba=null;a.Hb.apply(null,b)};class rb extends S{constructor(a,b){super();this.Hb=null!=b?a.bind(b):a;this.Fb=200;this.ba=null;this.P=!1;this.X=0;this.H=null}tb(a){this.ba=arguments;this.H||this.X?this.P=!0:qb(this)}stop(){this.H&&(h.clearTimeout(this.H),this.H=null,this.P=!1,this.ba=null)}pause(){this.X++}resume(){this.X--;this.X||!this.P||this.H||(this.P=!1,qb(this))}ra(){super.ra();this.stop()}};var T=function(a){return!!a&&void 0!==a.currentBreakClipTime&&void 0!==a.breakClipId},sb=function(a,b){return T(a)?(b&&b.breaks||[]).find(c=>c.id===a.breakId)||null:null},tb=function(a,b){return T(a)?(b&&b.breakClips||[]).find(c=>c.id===a.breakClipId)||null:null},ub=function(a){if(!a.j)for(var b=0,c=a.h.media;b<c.length;b++)if(!c[b].idleReason){a.j=c[b];a.j.addUpdateListener(a.Ib.bind(a));break}},vb=function(a,b){a.h=b;b.addMediaListener(a.Va.bind(a));b.addUpdateListener(a.Ia.bind(a));ub(a);a.D()};
const wb=class{constructor(a){a.controller=this;this.g=a;this.C=this.j=this.h=null;this.Xa=this.Ob.bind(this);this.L=this.Lb.bind(this);this.M=this.Mb.bind(this);this.v=0;this.fc=new rb(this.rb,this)}Ea(){this.j&&(this.v++,this.g.isPaused=!this.g.isPaused,this.g.isPaused?this.j.pause(null,this.M,this.L):this.j.play(null,this.M,this.L))}stop(){this.j&&(this.v++,this.j.stop(null,this.M,this.L))}seek(){if(this.j){this.C&&(clearTimeout(this.C),this.C=null);this.v++;var a=new chrome.cast.media.SeekRequest;
a.currentTime=this.g.currentTime;this.j.seek(a,this.M,this.L)}}Ca(){this.h&&(this.v++,this.g.isMuted=!this.g.isMuted,this.h.setReceiverMuted(this.g.isMuted,this.M,this.L))}Ja(){this.fc.tb()}rb(){this.h&&(this.v++,this.h.setReceiverVolumeLevel(this.g.volumeLevel,this.M,this.L))}Mb(){this.v--;this.D()}Lb(){this.v--;this.j&&this.j.getStatus(null,()=>{},()=>{})}Ob(){this.j&&("function"===typeof this.j.getEstimatedBreakTime&&(this.g.currentBreakTime=this.j.getEstimatedBreakTime()),"function"===typeof this.j.getEstimatedBreakClipTime&&
(this.g.currentBreakClipTime=this.j.getEstimatedBreakClipTime()),"function"===typeof this.j.getEstimatedLiveSeekableRange&&(this.g.liveSeekableRange=this.j.getEstimatedLiveSeekableRange()),this.g.currentTime=this.j.getEstimatedTime(),this.C=setTimeout(this.Xa,1E3))}D(a){if(!(0<this.v))if(this.h){this.g.displayName=this.h.displayName||"";var b=this.h.statusText||"";this.g.displayStatus=b!=this.g.displayName?b:"";!a&&this.h.receiver&&(a=this.h.receiver.volume)&&(null!=a.muted&&(this.g.isMuted=a.muted),
null!=a.level&&(this.g.volumeLevel=a.level),this.g.canControlVolume="fixed"!=a.controlType);if(this.j){a=this.j.breakStatus;b=this.j;if(T(a)){var c=sb(a,b.media);const d=tb(a,b.media);this.g.isPlayingBreak=!0;this.g.numberBreakClips=c&&Array.isArray(c.breakClipIds)?c.breakClipIds.length:0;c&&d?(c=c.breakClipIds.indexOf(d.id),c=0>c?0:c):c=0;this.g.currentBreakClipNumber=c;this.g.currentBreakTime="function"===typeof b.getEstimatedBreakTime?b.getEstimatedBreakTime():a.currentBreakTime;this.g.currentBreakClipTime=
"function"===typeof b.getEstimatedBreakClipTime?b.getEstimatedBreakClipTime():a.currentBreakClipTime;this.g.breakId=a.breakId;this.g.breakClipId=a.breakClipId;this.g.whenSkippable=a.whenSkippable}else this.g.isPlayingBreak=!1,this.g.numberBreakClips=0,this.g.currentBreakClipNumber=0,this.g.currentBreakTime=void 0,this.g.currentBreakClipTime=void 0,this.g.breakId=void 0,this.g.breakClipId=void 0,this.g.whenSkippable=void 0;this.g.isMediaLoaded=b.playerState!=chrome.cast.media.PlayerState.IDLE;this.g.isPaused=
b.playerState==chrome.cast.media.PlayerState.PAUSED;this.g.canPause=0<=b.supportedMediaCommands.indexOf(chrome.cast.media.MediaCommand.PAUSE);this.Z(b.media);this.g.canSeek=T(a)&&(void 0==a.whenSkippable||0>a.whenSkippable||a.currentBreakClipTime<a.whenSkippable)?!1:0<=b.supportedMediaCommands.indexOf(chrome.cast.media.MediaCommand.SEEK)&&0!=this.g.duration;this.g.currentTime=b.getEstimatedTime();this.C&&(clearTimeout(this.C),this.C=null);b.playerState==chrome.cast.media.PlayerState.PLAYING&&(this.C=
setTimeout(this.Xa,1E3))}else this.Z(null)}else this.g.displayName="",this.g.displayStatus="",this.Z(null)}Z(a){a?(this.g.duration=a.duration||0,a.metadata&&a.metadata.title&&(this.g.displayStatus=a.metadata.title)):(this.g.isMediaLoaded=!1,this.g.canPause=!1,this.g.canSeek=!1,this.g.currentTime=0,this.g.duration=0,this.g.isPlayingBreak=!1,this.g.numberBreakClips=0,this.g.currentBreakClipNumber=0,this.g.currentBreakTime=void 0,this.g.currentBreakClipTime=void 0,this.g.breakId=void 0,this.g.breakClipId=
void 0,this.g.whenSkippable=void 0)}Ia(a){a||(this.j=this.h=null);this.D()}Va(){ub(this);this.D(!0)}Ib(a){a||(this.j=null);this.D(!0)}wa(a,b){return b?100*a/b:0}xa(a,b){return b?a*b/100:0}ua(a){return 0>a?"":[("0"+Math.floor(a/3600)).substr(-2),("0"+Math.floor(a/60)%60).substr(-2),("0"+Math.floor(a)%60).substr(-2)].join(":")}};var xb=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c,d){c=new b(String(c));void 0!==d&&(c.lb=d);return c}}(Ma);const yb={};var Oa=function(a){return yb["cast.framework.CastButtonTemplate.icon"]?yb["cast.framework.CastButtonTemplate.icon"](a,void 0):xb('<style>.cast_caf_state_c {fill: var(--connected-color, #4285f4);}.cast_caf_state_d {fill: var(--disconnected-color, #7d7d7d);}.cast_caf_state_h {opacity: 0;}</style><svg x="0px" y="0px" width="100%" height="100%" viewBox="0 0 24 24"><g><path id="cast_caf_icon_arch0" class="cast_caf_status_d" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path id="cast_caf_icon_arch1" class="cast_caf_status_d" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path id="cast_caf_icon_arch2" class="cast_caf_status_d" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path id="cast_caf_icon_box" class="cast_caf_status_d" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path id="cast_caf_icon_boxfill" class="cast_caf_state_h" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg>')};l("cast.framework.VERSION","1.0.15");l("cast.framework.LoggerLevel",{DEBUG:0,INFO:800,WARNING:900,ERROR:1E3,NONE:1500});l("cast.framework.CastState",{NO_DEVICES_AVAILABLE:"NO_DEVICES_AVAILABLE",NOT_CONNECTED:"NOT_CONNECTED",CONNECTING:"CONNECTING",CONNECTED:"CONNECTED"});
l("cast.framework.SessionState",{NO_SESSION:"NO_SESSION",SESSION_STARTING:"SESSION_STARTING",SESSION_STARTED:"SESSION_STARTED",SESSION_START_FAILED:"SESSION_START_FAILED",SESSION_ENDING:"SESSION_ENDING",SESSION_ENDED:"SESSION_ENDED",SESSION_RESUMED:"SESSION_RESUMED"});l("cast.framework.CastContextEventType",{CAST_STATE_CHANGED:"caststatechanged",SESSION_STATE_CHANGED:"sessionstatechanged"});
l("cast.framework.SessionEventType",{APPLICATION_STATUS_CHANGED:"applicationstatuschanged",APPLICATION_METADATA_CHANGED:"applicationmetadatachanged",ACTIVE_INPUT_STATE_CHANGED:"activeinputstatechanged",VOLUME_CHANGED:"volumechanged",MEDIA_SESSION:"mediasession"});
l("cast.framework.RemotePlayerEventType",{ANY_CHANGE:"anyChanged",IS_CONNECTED_CHANGED:"isConnectedChanged",IS_MEDIA_LOADED_CHANGED:"isMediaLoadedChanged",QUEUE_DATA_CHANGED:"queueDataChanged",VIDEO_INFO_CHANGED:"videoInfoChanged",DURATION_CHANGED:"durationChanged",CURRENT_TIME_CHANGED:"currentTimeChanged",IS_PAUSED_CHANGED:"isPausedChanged",VOLUME_LEVEL_CHANGED:"volumeLevelChanged",CAN_CONTROL_VOLUME_CHANGED:"canControlVolumeChanged",IS_MUTED_CHANGED:"isMutedChanged",CAN_PAUSE_CHANGED:"canPauseChanged",
CAN_SEEK_CHANGED:"canSeekChanged",DISPLAY_NAME_CHANGED:"displayNameChanged",STATUS_TEXT_CHANGED:"statusTextChanged",TITLE_CHANGED:"titleChanged",DISPLAY_STATUS_CHANGED:"displayStatusChanged",MEDIA_INFO_CHANGED:"mediaInfoChanged",IMAGE_URL_CHANGED:"imageUrlChanged",PLAYER_STATE_CHANGED:"playerStateChanged",IS_PLAYING_BREAK_CHANGED:"isPlayingBreakChanged",NUMBER_BREAK_CLIPS_CHANGED:"numberBreakClipsChanged",CURRENT_BREAK_CLIP_NUMBER_CHANGED:"currentBreakClipNumberChanged",CURRENT_BREAK_TIME_CHANGED:"currentBreakTimeChanged",
CURRENT_BREAK_CLIP_TIME_CHANGED:"currentBreakClipTimeChanged",BREAK_ID_CHANGED:"breakIdChanged",BREAK_CLIP_ID_CHANGED:"breakClipIdChanged",WHEN_SKIPPABLE_CHANGED:"whenSkippableChanged",LIVE_SEEKABLE_RANGE_CHANGED:"liveSeekableRangeChanged"});l("cast.framework.ActiveInputState",{ACTIVE_INPUT_STATE_UNKNOWN:-1,ACTIVE_INPUT_STATE_NO:0,ACTIVE_INPUT_STATE_YES:1});
var zb=function(a){var b=C(D(),"").V;a:{if(!B){B={};for(let c=0,d;d=A[c];c++)B[d.value]=d,B[d.name]=d}if(a in B)a=B[a];else{for(let c=0;c<A.length;++c){let d=A[c];if(d.value<=a){a=d;break a}}a=null}}b&&(C(D(),b.T()).level=a)};l("cast.framework.setLoggerLevel",zb);L||(L=new Da);if(L){var Ab=L;if(1!=Ab.Ra){var Bb=C(D(),"").V,Cb=Ab.Qb;Bb&&C(D(),Bb.T()).Qa.push(Cb);Ab.Ra=!0}}zb(1E3);var U=class{constructor(a){this.type=a}};l("cast.framework.EventData",U);var Db=class extends U{constructor(a){super("activeinputstatechanged");this.activeInputState=a}};l("cast.framework.ActiveInputStateEventData",Db);var Eb=class{constructor(a){this.applicationId=a.appId;this.name=a.displayName;this.images=a.appImages;this.namespaces=this.Da(a.namespaces||[])}Da(a){return a.map(b=>b.name)}};l("cast.framework.ApplicationMetadata",Eb);var Fb=class extends U{constructor(a){super("applicationmetadatachanged");this.metadata=a}};l("cast.framework.ApplicationMetadataEventData",Fb);var Gb=class extends U{constructor(a){super("applicationstatuschanged");this.status=a}};l("cast.framework.ApplicationStatusEventData",Gb);var Hb=class{constructor(a){a=a||{};this.receiverApplicationId=a.receiverApplicationId||null;this.resumeSavedSession=void 0!==a.resumeSavedSession?a.resumeSavedSession:!0;this.autoJoinPolicy=void 0!==a.autoJoinPolicy?a.autoJoinPolicy:chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;this.language=a.language||null;this.androidReceiverCompatible=a.androidReceiverCompatible||!1;this.credentialsData=a.credentialsData||null}};l("cast.framework.CastOptions",Hb);var Ib=class extends U{constructor(a){super("mediasession");this.mediaSession=a}};l("cast.framework.MediaSessionEventData",Ib);var Jb=class extends U{constructor(a,b){super("volumechanged");this.volume=a;this.isMute=b}};l("cast.framework.VolumeEventData",Jb);const Kb=C(D(),"cast.framework.EventTarget").V;var Lb=class{constructor(){this.U={}}addEventListener(a,b){a in this.U||(this.U[a]=[]);a=this.U[a];a.includes(b)||a.push(b)}removeEventListener(a,b){a=this.U[a]||[];b=a.indexOf(b);0<=b&&a.splice(b,1)}dispatchEvent(a){a&&a.type&&(this.U[a.type]||[]).slice().forEach(b=>{try{b(a)}catch(c){Kb&&E(Kb,x,"Handler for "+a.type+" event failed: "+c,c)}})}};var Mb=function(a){const b=a.i.loadMedia.bind(a.i);a.i.loadMedia=(d,e,f)=>{b(d,g=>{e&&e(g);a.Ba(g)},f)};const c=a.i.queueLoad.bind(a.i);a.i.queueLoad=(d,e,f)=>{c(d,g=>{e&&e(g);a.Ba(g)},f)}},Nb=function(a,b){a.Ya=b;!b.volume||a.o&&a.o.muted==b.volume.muted&&a.o.level==b.volume.level||(a.o=b.volume,a.m.dispatchEvent(new Jb(a.o.level,a.o.muted)));a.ia!=b.isActiveInput&&(a.ia=b.isActiveInput,b=a.ia,a.m.dispatchEvent(new Db(null==b?-1:b?1:0)))},V=class{constructor(a,b){this.m=new Lb;this.l=b;this.i=a;
this.bb=a.sessionId;this.Y=a.statusText;this.Ya=a.receiver;this.o=a.receiver.volume;this.ja=new Eb(a);this.ia=a.receiver.isActiveInput;this.i.addMediaListener(this.Ba.bind(this));Mb(this)}addEventListener(a,b){this.m.addEventListener(a,b)}removeEventListener(a,b){this.m.removeEventListener(a,b)}Bb(){return this.i}Ab(){return this.bb}ya(){return this.l}xb(){return this.Ya}vb(){return this.ja}wb(){return this.Y}ub(){var a=this.ia;return null==a?-1:a?1:0}Pa(a){"SESSION_ENDED"!=this.l&&(a?this.i.stop(()=>
{},()=>{}):this.i.leave(()=>{},()=>{}))}setVolume(a){const b=R(),c=Promise.resolve(b.promise);this.o&&(this.o.level=a,this.o.muted=!1);this.i.setReceiverVolumeLevel(a,()=>b.resolve(),d=>b.reject(d.code));return c}Db(){return this.o?this.o.level:null}Wb(a){const b=R(),c=Promise.resolve(b.promise);this.o&&(this.o.muted=a);this.i.setReceiverMuted(a,()=>b.resolve(),d=>b.reject(d.code));return c}isMute(){return this.o?this.o.muted:null}sendMessage(a,b){const c=R(),d=Promise.resolve(c.promise);this.i.sendMessage(a,
b,()=>c.resolve(),e=>c.reject(e.code));return d}addMessageListener(a,b){this.i.addMessageListener(a,b)}removeMessageListener(a,b){this.i.removeMessageListener(a,b)}loadMedia(a){const b=R(),c=Promise.resolve(b.promise);this.i.loadMedia(a,()=>{b.resolve()},d=>{b.reject(d.code)});return c}va(){a:{var a=this.i;if(a.media)for(let b of a.media)if(!b.idleReason){a=b;break a}a=null}return a}Ba(a){a.media&&this.m.dispatchEvent(new Ib(a))}Da(a){return a.map((b,c)=>c.name)}};l("cast.framework.CastSession",V);
V.prototype.getMediaSession=V.prototype.va;V.prototype.loadMedia=V.prototype.loadMedia;V.prototype.removeMessageListener=V.prototype.removeMessageListener;V.prototype.addMessageListener=V.prototype.addMessageListener;V.prototype.sendMessage=V.prototype.sendMessage;V.prototype.isMute=V.prototype.isMute;V.prototype.setMute=V.prototype.Wb;V.prototype.getVolume=V.prototype.Db;V.prototype.setVolume=V.prototype.setVolume;V.prototype.endSession=V.prototype.Pa;V.prototype.getActiveInputState=V.prototype.ub;
V.prototype.getApplicationStatus=V.prototype.wb;V.prototype.getApplicationMetadata=V.prototype.vb;V.prototype.getCastDevice=V.prototype.xb;V.prototype.getSessionState=V.prototype.ya;V.prototype.getSessionId=V.prototype.Ab;V.prototype.getSessionObj=V.prototype.Bb;V.prototype.removeEventListener=V.prototype.removeEventListener;V.prototype.addEventListener=V.prototype.addEventListener;var Ob=class extends U{constructor(a,b,c){super("sessionstatechanged");this.session=a;this.sessionState=b;this.errorCode=void 0!==c?c:null}};l("cast.framework.SessionStateEventData",Ob);var Pb=class extends U{constructor(a){super("caststatechanged");this.castState=a}};l("cast.framework.CastStateEventData",Pb);const W=C(D(),"cast.framework.CastContext").V;
var Qb=function(a){if(!a.s||!a.s.receiverApplicationId)throw Error("Missing application id in cast options");var b=new chrome.cast.SessionRequest(a.s.receiverApplicationId);a.s.language&&(b.language=a.s.language);b.androidReceiverCompatible=a.s.androidReceiverCompatible;b.credentialsData=a.s.credentialsData;b=new chrome.cast.ApiConfig(b,a.cb.bind(a),a.Sb.bind(a),a.s.autoJoinPolicy);chrome.cast.initialize(b,()=>{},()=>{});a.Aa||chrome.cast.addReceiverActionListener(a.Rb.bind(a));a.Aa=!0},Rb=function(a){let b=
"NO_DEVICES_AVAILABLE";switch(a.u){case "SESSION_STARTING":case "SESSION_ENDING":b="CONNECTING";break;case "SESSION_STARTED":case "SESSION_RESUMED":b="CONNECTED";break;case "NO_SESSION":case "SESSION_ENDED":case "SESSION_START_FAILED":b=a.Ha?"NOT_CONNECTED":"NO_DEVICES_AVAILABLE";break;default:W&&E(W,y,"Unexpected session state: "+a.u)}b!==a.S&&(a.S=b,a.m.dispatchEvent(new Pb(b)))},X=function(a,b,c){b==a.u?"SESSION_START_FAILED"==b&&a.m.dispatchEvent(new Ob(a.h,a.u,c)):(a.u=b,a.h&&(a.h.l=a.u),a.m.dispatchEvent(new Ob(a.h,
a.u,c)),Rb(a))},Y=class{constructor(){this.m=new Lb;this.Aa=!1;this.s=null;this.Ha=!1;this.S="NO_DEVICES_AVAILABLE";this.u="NO_SESSION";this.ma=this.h=null}addEventListener(a,b){this.m.addEventListener(a,b)}removeEventListener(a,b){this.m.removeEventListener(a,b)}Xb(a){this.s=new Hb(a);Qb(this)}yb(){return this.S}ya(){return this.u}requestSession(){if(!this.Aa)throw Error("Cannot start session before cast options are provided");const a=R(),b=Promise.resolve(a.promise);a.promise.gb(()=>{});b.catch(()=>
{});const c="NOT_CONNECTED"==this.S;chrome.cast.requestSession(d=>{this.cb(d);a.resolve(null)},d=>{c&&X(this,"SESSION_START_FAILED",d?d.code:void 0);a.reject(d.code)});return b}zb(){return this.h}pb(a){this.h&&this.h.Pa(a)}Vb(a){this.s?(this.s.credentialsData=a,Qb(this)):W&&E(W,y,"setLaunchCredentialsData was ignored because it was called before setOptions.")}Sb(a){(this.Ha=a==chrome.cast.ReceiverAvailability.AVAILABLE)&&!this.h&&this.ma&&this.s.resumeSavedSession&&chrome.cast.requestSessionById(this.ma);
Rb(this)}Rb(a,b){this.h||b!=chrome.cast.ReceiverAction.CAST?this.h&&b==chrome.cast.ReceiverAction.STOP?X(this,"SESSION_ENDING"):a&&Nb(this.h,a):X(this,"SESSION_STARTING")}cb(a){const b="SESSION_STARTING"==this.u?"SESSION_STARTED":"SESSION_RESUMED";this.ma=null;this.h=new V(a,b);a.addUpdateListener(this.Ia.bind(this));X(this,b)}Ia(){if(this.h)switch(this.h.i.status){case chrome.cast.SessionStatus.DISCONNECTED:case chrome.cast.SessionStatus.STOPPED:X(this,"SESSION_ENDED");this.ma=this.h.bb;this.h=null;
break;case chrome.cast.SessionStatus.CONNECTED:var a=this.h,b=a.ja,c=a.i,d;if(d=b.applicationId==c.appId&&b.name==c.displayName)a:if(d=b.namespaces,b=b.Da(c.namespaces||[]),ba(d)&&ba(b)&&d.length==b.length){c=d.length;for(let e=0;e<c;e++)if(d[e]!==b[e]){d=!1;break a}d=!0}else d=!1;d||(a.ja=new Eb(a.i),a.m.dispatchEvent(new Fb(a.ja)));Nb(a,a.i.receiver);a.Y!=a.i.statusText&&(a.Y=a.i.statusText,a.m.dispatchEvent(new Gb(a.Y)));break;default:W&&E(W,y,"Unknown session status "+this.h.i.status)}else W&&
E(W,y,"Received session update event without known session")}};l("cast.framework.CastContext",Y);Y.prototype.setLaunchCredentialsData=Y.prototype.Vb;Y.prototype.endCurrentSession=Y.prototype.pb;Y.prototype.getCurrentSession=Y.prototype.zb;Y.prototype.requestSession=Y.prototype.requestSession;Y.prototype.getSessionState=Y.prototype.ya;Y.prototype.getCastState=Y.prototype.yb;Y.prototype.setOptions=Y.prototype.Xb;Y.prototype.removeEventListener=Y.prototype.removeEventListener;
Y.prototype.addEventListener=Y.prototype.addEventListener;Y.za=void 0;Y.K=function(){return Y.za?Y.za:Y.za=new Y};Y.getInstance=Y.K;var Sb=function(){Y.K().requestSession()},Tb=function(a,b){a.setAttribute("class",b?"cast_caf_state_c":"cast_caf_state_d")},Vb=function(a){if("NO_DEVICES_AVAILABLE"==a.l)a.J.style.display="none";else switch(a.J.style.display=a.ob,a.l){case "NOT_CONNECTED":Ub(a,!1,"cast_caf_state_h");break;case "CONNECTING":Ub(a,!1,"cast_caf_state_h");a.O||a.Oa();break;case "CONNECTED":Ub(a,!0,"cast_caf_state_c")}},Wb=function(a,b){a.pa=Y.K();a.Wa=a.Nb.bind(a);a.oa=[];for(let c=0;3>c;c++)a.oa.push(b.querySelector("#cast_caf_icon_arch"+
c));a.jb=b.querySelector("#cast_caf_icon_box");a.kb=b.querySelector("#cast_caf_icon_boxfill");a.Ga=0;a.O=null;a.ob=window.getComputedStyle(a.J,null).display;a.l=a.pa.S;Vb(a);a.J.addEventListener("click",Sb);a.pa.addEventListener("caststatechanged",a.Wa)},Xb=function(a){a.pa.removeEventListener("caststatechanged",a.Wa);null!==a.O&&(window.clearTimeout(a.O),a.O=null)},Ub=function(a,b,c){for(let d of a.oa)Tb(d,b);Tb(a.jb,b);a.kb.setAttribute("class",c)};
const Yb=class{constructor(a){this.J=a;try{this.J.attachShadow({mode:"open"}).innerHTML=Oa().getContent()}catch(c){a=this.J;var b=Na();if(Ha())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=xa(b)}}Nb(a){this.l=a.castState;Vb(this)}Oa(){this.O=null;if("CONNECTING"==this.l){for(let a=0;3>a;a++)Tb(this.oa[a],a==this.Ga);this.Ga=(this.Ga+1)%3;this.O=window.setTimeout(this.Oa.bind(this),300)}}},Zb=class extends HTMLElement{constructor(){super();this.B=new Yb(this)}connectedCallback(){Wb(this.B,
this.shadowRoot||this)}disconnectedCallback(){Xb(this.B)}qa(){}},$b=class extends HTMLButtonElement{constructor(){super();this.B=new Yb(this)}connectedCallback(){Wb(this.B,this.shadowRoot||this)}disconnectedCallback(){Xb(this.B)}qa(){}};
var bc=function(){const a=document.createElement.bind(document);document.createElement=function(b,c){if("google-cast-launcher"===b||"button"===b&&c&&("google-cast-button"===c||"google-cast-button"===c.is)){const d=a(b,c);ac(d);return d}return a(...arguments)}},cc=function(){document.querySelectorAll("button[is=google-cast-button], google-cast-launcher").forEach(a=>ac(a))},ac=function(a){a.B=new Yb(a);Wb(a.B,a.shadowRoot||a);a.qa=function(){Xb(a.B)}};
customElements.define?(customElements.define("google-cast-button",$b,{extends:"button"}),customElements.define("google-cast-launcher",Zb)):("complete"!==document.readyState?window.addEventListener("load",cc):cc(),bc());l("cast.framework.RemotePlayer",class{constructor(){this.isMediaLoaded=this.isConnected=!1;this.videoInfo=this.queueData=void 0;this.currentTime=this.duration=0;this.volumeLevel=1;this.canControlVolume=!0;this.canSeek=this.canPause=this.isMuted=this.isPaused=!1;this.displayStatus=this.title=this.statusText=this.displayName="";this.controller=this.savedPlayerState=this.playerState=this.imageUrl=this.mediaInfo=null;this.isPlayingBreak=!1;this.currentBreakClipNumber=this.numberBreakClips=0;this.liveSeekableRange=
this.whenSkippable=this.breakClipId=this.breakId=this.currentBreakClipTime=this.currentBreakTime=void 0}});var dc=class extends U{constructor(a,b,c){super(a);this.field=b;this.value=c}};l("cast.framework.RemotePlayerChangedEvent",dc);var ec=function(a,b){return new window.Proxy(a,{set:(c,d,e)=>{if(e===c[d])return!0;c[d]=e;b.dispatchEvent(new dc(d+"Changed",d,e));b.dispatchEvent(new dc("anyChanged",d,e));return!0}})},Z=class extends wb{constructor(a){const b=new Lb;super(ec(a,b));this.m=b;this.Kb=0;a=Y.K();a.addEventListener("sessionstatechanged",this.Ub.bind(this));(a=a.h)?vb(this,a.i):this.D()}addEventListener(a,b){this.m.addEventListener(a,b)}removeEventListener(a,b){this.m.removeEventListener(a,b)}Ub(a){switch(a.sessionState){case "SESSION_STARTED":case "SESSION_RESUMED":this.g.isConnected=
!0;const b=a.session&&a.session.i;b&&(vb(this,b),a.session.addEventListener("mediasession",this.Va.bind(this)))}}D(a){const b=Y.K().h;b?this.g.savedPlayerState=null:this.g.isConnected&&(this.g.savedPlayerState={mediaInfo:this.g.mediaInfo,currentTime:this.g.currentTime,isPaused:this.g.isPaused});super.D(a);this.g.isConnected=!!b;this.g.statusText=b&&b.Y||"";a=b&&b.va();this.g.playerState=a&&a.playerState||chrome.cast.media.PlayerState.IDLE;a?(this.g.queueData=a.queueData,this.g.videoInfo=a.videoInfo,
this.g.liveSeekableRange="function"===typeof a.getEstimatedLiveSeekableRange?a.getEstimatedLiveSeekableRange():a.liveSeekableRange):(this.g.queueData=void 0,this.g.videoInfo=void 0,this.g.liveSeekableRange=void 0)}Z(a){super.Z(a);var b=(this.g.mediaInfo=a)&&a.metadata;a=null;let c="";b&&(c=b.title||"",(b=b.images)&&0<b.length&&(a=b[0].url));this.g.title=c;this.g.imageUrl=a}Ea(){super.Ea()}stop(){super.stop()}seek(){super.seek()}Ca(){super.Ca()}Ja(){super.Ja()}ua(a){return super.ua(a)}wa(a,b){return super.wa(a,
b)}xa(a,b){return super.xa(a,b)}bc(){let a=Y.K().h;if(a){var b=a.va();b&&a&&a.sendMessage("urn:x-cast:com.google.cast.media",{type:"SKIP_AD",requestId:this.Kb++,mediaSessionId:b.mediaSessionId})}}};l("cast.framework.RemotePlayerController",Z);Z.prototype.skipAd=Z.prototype.bc;Z.prototype.getSeekTime=Z.prototype.xa;Z.prototype.getSeekPosition=Z.prototype.wa;Z.prototype.getFormattedTime=Z.prototype.ua;Z.prototype.setVolumeLevel=Z.prototype.Ja;Z.prototype.muteOrUnmute=Z.prototype.Ca;
Z.prototype.seek=Z.prototype.seek;Z.prototype.stop=Z.prototype.stop;Z.prototype.playOrPause=Z.prototype.Ea;Z.prototype.removeEventListener=Z.prototype.removeEventListener;Z.prototype.addEventListener=Z.prototype.addEventListener; }).call(window);

View File

@@ -0,0 +1,12 @@
(function(){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
'use strict';var l=function(){var a=h,b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},m=this||self,n=/^[\w+/_-]+[=]{0,2}$/,p=null,q=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&n.test(a)?a:""},r=function(a,b){function e(){}e.prototype=b.prototype;a.i=b.prototype;a.prototype=new e;a.prototype.constructor=a;a.h=function(c,g,k){for(var f=Array(arguments.length-2),d=2;d<arguments.length;d++)f[d-2]=arguments[d];
return b.prototype[g].apply(c,f)}},t=function(a){return a};function u(a){if(Error.captureStackTrace)Error.captureStackTrace(this,u);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}r(u,Error);u.prototype.name="CustomError";var v=function(a,b){a=a.split("%s");for(var e="",c=a.length-1,g=0;g<c;g++)e+=a[g]+(g<b.length?b[g]:"%s");u.call(this,e+a[c])};r(v,u);v.prototype.name="AssertionError";var w=function(a,b){throw new v("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var x;var A=function(a,b){this.g=b===z?a:""};A.prototype.toString=function(){return this.g+""};var z={};var B=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?parseInt(a[1],10):0},C=function(a){return!!document.currentScript&&(-1!=document.currentScript.src.indexOf("?"+a)||-1!=document.currentScript.src.indexOf("&"+a))},D=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null},F=function(a){a.length?E(a.shift(),function(){F(a)}):G()},H=function(a){return"chrome-extension://"+a+"/cast_sender.js"},E=function(a,b,e){var c=document.createElement("script");
c.onerror=b;e&&(c.onload=e);if(void 0===x)if(b=null,(e=m.trustedTypes)&&e.createPolicy){try{b=e.createPolicy("goog#html",{createHTML:t,createScript:t,createScriptURL:t})}catch(y){m.console&&m.console.error(y.message)}x=b}else x=b;a=(b=x)?b.createScriptURL(a):a;a=new A(a,z);a:{try{var g=c&&c.ownerDocument,k=g&&(g.defaultView||g.parentWindow);k=k||m;if(k.Element&&k.Location){var f=k;break a}}catch(y){}f=null}if(f&&"undefined"!=typeof f.HTMLScriptElement&&(!c||!(c instanceof f.HTMLScriptElement)&&(c instanceof
f.Location||c instanceof f.Element))){f=typeof c;if("object"==f&&null!=c||"function"==f)try{var d=c.constructor.displayName||c.constructor.name||Object.prototype.toString.call(c)}catch(y){d="<object could not be stringified>"}else d=void 0===c?"undefined":null===c?"null":typeof c;w("Argument is not a %s (or a non-Element, non-Location mock); got: %s","HTMLScriptElement",d)}a instanceof A&&a.constructor===A?d=a.g:(d=typeof a,w("expected object of type TrustedResourceUrl, got '"+a+"' of type "+("object"!=
d?d:a?Array.isArray(a)?"array":d:"null")),d="type_error:TrustedResourceUrl");c.src=d;(d=c.ownerDocument&&c.ownerDocument.defaultView)&&d!=m?d=q(d.document):(null===p&&(p=q(m.document)),d=p);d&&c.setAttribute("nonce",d);(document.head||document.documentElement).appendChild(c)},I=function(){var a=B(),b=[];if(1<a){var e=a-1;b.push("//www.gstatic.com/eureka/clank/"+a+"/cast_sender.js");b.push("//www.gstatic.com/eureka/clank/"+e+"/cast_sender.js")}return b},G=function(){var a=D();a&&a(!1,"No cast extension found")},
K=function(){if(J){var a=2,b=D(),e=function(){a--;0==a&&b&&b(!0)};window.__onGCastApiAvailable=e;E("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",G,e)}},J=C("loadCastFramework")||C("loadCastApplicationFramework"),L=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","enhhojjnijigcajfphajepfemndkmdlo"];if(0<=window.navigator.userAgent.indexOf("Android")&&0<=window.navigator.userAgent.indexOf("Chrome/")&&window.navigator.presentation){if(60<=B()){K();var M=I();M.push("//www.gstatic.com/eureka/clank/cast_sender.js");F(M)}}else if(!window.chrome||!window.navigator.presentation||0<=window.navigator.userAgent.indexOf("Edge"))G();else if(89<=B()){K();var N=I(),O=N.push,P=O.apply,h=L.map(H),Q;if(h instanceof Array)Q=h;else{var R,S="undefined"!=typeof Symbol&&Symbol.iterator&&h[Symbol.iterator];R=S?S.call(h):
{next:l()};for(var T,U=[];!(T=R.next()).done;)U.push(T.value);Q=U}P.call(O,N,Q);N.push("//www.gstatic.com/eureka/clank/cast_sender.js");F(N)}else K(),F(L.map(H));}).call(this);

View File

@@ -0,0 +1,99 @@
(function(){'use strict';var f,aa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},g=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a},ba=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");
},ca=ba(this),da=function(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&g(c,a,{configurable:!0,writable:!0,value:b})}};
da("Symbol",function(a){if(a)return a;var b=function(h,k){this.g=h;g(this,"description",{configurable:!0,writable:!0,value:k})};b.prototype.toString=function(){return this.g};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(h){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(h||"")+"_"+d++,h)};return e});
da("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");g(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(aa(this))}});return a});var ea=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},fa=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},l;
if(typeof Object.setPrototypeOf=="function")l=Object.setPrototypeOf;else{var n;a:{var ha={a:!0},ia={};try{ia.__proto__=ha;n=ia.a;break a}catch(a){}n=!1}l=n?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
var ja=l,q=function(a,b){a.prototype=fa(b.prototype);a.prototype.constructor=a;if(ja)ja(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.sc=b.prototype},ka=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var r=this||self,u=function(a){var b=typeof a;b=b!="object"?b:a?Array.isArray(a)?"array":b:"null";return b=="array"||b=="object"&&typeof a.length=="number"},v="closure_uid_"+(Math.random()*1E9>>>0),la=0,ma=function(a,b,c){return a.call.apply(a.bind,arguments)},na=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,
arguments)}},w=function(a,b,c){w=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?ma:na;return w.apply(null,arguments)},x=function(a,b){a=a.split(".");for(var c=r,d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};var chrome=chrome||window.chrome||{};chrome.cast=chrome.cast||{};chrome.cast.media=chrome.cast.media||{};chrome.cast.ReceiverActionListener={};chrome.cast.VERSION=[1,2];x("chrome.cast.VERSION",chrome.cast.VERSION);chrome.cast.rc=!0;x("chrome.cast.usingPresentationApi",chrome.cast.rc);chrome.cast.Na=function(a,b){this.credentials=a;this.credentialsType=b===void 0?"web":b};x("chrome.cast.CredentialsData",chrome.cast.Na);chrome.cast.Error=function(a,b,c){this.code=a;this.description=b||null;this.details=c||null};x("chrome.cast.Error",chrome.cast.Error);
chrome.cast.nb=function(a){this.platform=a;this.packageId=this.url=null};x("chrome.cast.SenderApplication",chrome.cast.nb);chrome.cast.Image=function(a){this.url=a;this.width=this.height=null};x("chrome.cast.Image",chrome.cast.Image);chrome.cast.Volume=function(a,b){this.level=a===void 0?null:a;this.muted=b===void 0?null:b};x("chrome.cast.Volume",chrome.cast.Volume);chrome.cast.ha={CUSTOM_CONTROLLER_SCOPED:"custom_controller_scoped",TAB_AND_ORIGIN_SCOPED:"tab_and_origin_scoped",ORIGIN_SCOPED:"origin_scoped",PAGE_SCOPED:"page_scoped"};x("chrome.cast.AutoJoinPolicy",chrome.cast.ha);chrome.cast.ja={CREATE_SESSION:"create_session",CAST_THIS_TAB:"cast_this_tab"};x("chrome.cast.DefaultActionPolicy",chrome.cast.ja);chrome.cast.Ma={VIDEO_OUT:"video_out",AUDIO_OUT:"audio_out",VIDEO_IN:"video_in",AUDIO_IN:"audio_in",MULTIZONE_GROUP:"multizone_group"};
x("chrome.cast.Capability",chrome.cast.Ma);chrome.cast.A={CANCEL:"cancel",TIMEOUT:"timeout",API_NOT_INITIALIZED:"api_not_initialized",INVALID_PARAMETER:"invalid_parameter",EXTENSION_NOT_COMPATIBLE:"extension_not_compatible",EXTENSION_MISSING:"extension_missing",RECEIVER_UNAVAILABLE:"receiver_unavailable",SESSION_ERROR:"session_error",CHANNEL_ERROR:"channel_error",LOAD_MEDIA_FAILED:"load_media_failed"};x("chrome.cast.ErrorCode",chrome.cast.A);chrome.cast.N={AVAILABLE:"available",UNAVAILABLE:"unavailable"};
x("chrome.cast.ReceiverAvailability",chrome.cast.N);chrome.cast.ob={CHROME:"chrome",IOS:"ios",ANDROID:"android"};x("chrome.cast.SenderPlatform",chrome.cast.ob);chrome.cast.xa={CAST:"cast",DIAL:"dial",HANGOUT:"hangout",CUSTOM:"custom"};x("chrome.cast.ReceiverType",chrome.cast.xa);chrome.cast.Qa={RUNNING:"running",STOPPED:"stopped",ERROR:"error"};x("chrome.cast.DialAppState",chrome.cast.Qa);chrome.cast.jb={CAST:"cast",STOP:"stop"};x("chrome.cast.ReceiverAction",chrome.cast.jb);
chrome.cast.K={CONNECTED:"connected",DISCONNECTED:"disconnected",STOPPED:"stopped"};x("chrome.cast.SessionStatus",chrome.cast.K);chrome.cast.Db={ATTENUATION:"attenuation",FIXED:"fixed",MASTER:"master"};x("chrome.cast.VolumeControlType",chrome.cast.Db);var oa=/&/g,pa=/</g,qa=/>/g,ra=/"/g,sa=/'/g,ta=/\x00/g,ua=/[\x00&<>"']/;/*
Copyright Google LLC
SPDX-License-Identifier: Apache-2.0
*/
var va={};function wa(){if(va!==va)throw Error("Bad secret");};var xa=globalThis.trustedTypes,y;function ya(){var a=null;if(!xa)return a;try{var b=function(c){return c};a=xa.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){throw c;}return a};var z=function(a){wa();this.g=a};z.prototype.toString=function(){return this.g};new z("about:blank");new z("about:invalid#zClosurez");var za=[],Aa=function(a){console.warn("A URL with content '"+a+"' was sanitized away.")};za.indexOf(Aa)===-1&&za.push(Aa);var A=function(a){wa();this.g=a};A.prototype.toString=function(){return this.g+""};var Ba=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)};function Ca(a,b){for(var c=a.length,d=typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return e;return-1};var Da=Object.freeze||function(a){return a};var Fa=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=r.document.createElement("div");return a.replace(Ea,function(d,e){var h=b[d];if(h)return h;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(h=String.fromCharCode(e)));if(!h){h=d+" ";y===void 0&&(y=ya());h=(e=y)?e.createHTML(h):h;h=new A(h);if(c.nodeType===1&&(e=c.tagName,/^(script|style)$/i.test(e)))throw d=e.toLowerCase()==="script"?"Use setScriptTextContent with a SafeScript.":"Use setStyleTextContent with a SafeStyleSheet.",
Error(d);if(h instanceof A)h=h.g;else throw Error("Unexpected type when unwrapping SafeHtml");c.innerHTML=h;h=c.firstChild.nodeValue.slice(0,-1)}return b[d]=h})},Ga=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?b:String.fromCharCode(c)}})},Ea=/&([^;\s<&]+);?/g;chrome.cast.Ia=function(a,b,c,d,e){this.sessionRequest=a;this.sessionListener=b;this.receiverListener=c;this.autoJoinPolicy=d||chrome.cast.ha.TAB_AND_ORIGIN_SCOPED;this.defaultActionPolicy=e||chrome.cast.ja.CREATE_SESSION;this.customDialLaunchCallback=null;this.invisibleSender=!1;this.additionalSessionRequests=[]};x("chrome.cast.ApiConfig",chrome.cast.Ia);chrome.cast.Ta=function(a,b){this.appName=a;this.launchParameter=b||null};x("chrome.cast.DialRequest",chrome.cast.Ta);
chrome.cast.Ra=function(a,b,c){this.receiver=a;this.appState=b;this.extraData=c||null};x("chrome.cast.DialLaunchData",chrome.cast.Ra);chrome.cast.Sa=function(a,b){this.doLaunch=a;this.launchParameter=b||null};x("chrome.cast.DialLaunchResponse",chrome.cast.Sa);
chrome.cast.pb=function(a,b,c,d,e){c=c===void 0?chrome.cast.timeout.requestSession:c;this.appId=a;this.capabilities=Array.isArray(b)?b:[];this.requestSessionTimeout=c;this.dialRequest=this.language=null;this.androidReceiverCompatible=d===void 0?!1:d;this.credentialsData=e===void 0?null:e};x("chrome.cast.SessionRequest",chrome.cast.pb);
chrome.cast.ib=function(a,b,c,d){this.label=a;a=b;ua.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(oa,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(pa,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(qa,"&gt;")),a.indexOf('"')!=-1&&(a=a.replace(ra,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(sa,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(ta,"&#0;")));this.friendlyName=a;this.capabilities=c||[];this.volume=d||null;this.receiverType=chrome.cast.xa.CAST;this.displayStatus=this.isActiveInput=null};
x("chrome.cast.Receiver",chrome.cast.ib);chrome.cast.kb=function(a,b){this.statusText=a;this.appImages=b;this.showStop=null};x("chrome.cast.ReceiverDisplayStatus",chrome.cast.kb);chrome.cast.Aa=function(){this.requestSession=6E4;this.getDialAppInfo=this.sendCustomMessage=this.setReceiverVolume=this.stopSession=this.leaveSession=3E3};x("chrome.cast.Timeout",chrome.cast.Aa);chrome.cast.timeout=new chrome.cast.Aa;x("chrome.cast.timeout",chrome.cast.timeout);chrome.cast.Ha="auto-join";
chrome.cast.cb="cast-session_";chrome.cast.media.Va={SDR:"sdr",HDR:"hdr",DV:"dv"};x("chrome.cast.media.HdrType",chrome.cast.media.Va);chrome.cast.media.Wa={AAC:"aac",AC3:"ac3",MP3:"mp3",TS:"ts",TS_AAC:"ts_aac",E_AC3:"e_ac3",FMP4:"fmp4"};x("chrome.cast.media.HlsSegmentFormat",chrome.cast.media.Wa);chrome.cast.media.Xa={MPEG2_TS:"mpeg2_ts",FMP4:"fmp4"};x("chrome.cast.media.HlsVideoSegmentFormat",chrome.cast.media.Xa);chrome.cast.media.ab={PAUSE:"pause",SEEK:"seek",STREAM_VOLUME:"stream_volume",STREAM_MUTE:"stream_mute"};
x("chrome.cast.media.MediaCommand",chrome.cast.media.ab);chrome.cast.media.gb={ALBUM:"ALBUM",PLAYLIST:"PLAYLIST",AUDIOBOOK:"AUDIOBOOK",RADIO_STATION:"RADIO_STATION",PODCAST_SERIES:"PODCAST_SERIES",TV_SERIES:"TV_SERIES",VIDEO_PLAYLIST:"VIDEO_PLAYLIST",LIVE_TV:"LIVE_TV",MOVIE:"MOVIE"};x("chrome.cast.media.QueueType",chrome.cast.media.gb);chrome.cast.media.U={GENERIC_CONTAINER:0,AUDIOBOOK_CONTAINER:1};x("chrome.cast.media.ContainerType",chrome.cast.media.U);
chrome.cast.media.F={GENERIC:0,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4,AUDIOBOOK_CHAPTER:5};x("chrome.cast.media.MetadataType",chrome.cast.media.F);chrome.cast.media.B={IDLE:"IDLE",PLAYING:"PLAYING",PAUSED:"PAUSED",BUFFERING:"BUFFERING"};x("chrome.cast.media.PlayerState",chrome.cast.media.B);chrome.cast.media.V={OFF:"REPEAT_OFF",ALL:"REPEAT_ALL",SINGLE:"REPEAT_SINGLE",ALL_AND_SHUFFLE:"REPEAT_ALL_AND_SHUFFLE"};x("chrome.cast.media.RepeatMode",chrome.cast.media.V);
chrome.cast.media.lb={PLAYBACK_START:"PLAYBACK_START",PLAYBACK_PAUSE:"PLAYBACK_PAUSE"};x("chrome.cast.media.ResumeState",chrome.cast.media.lb);chrome.cast.media.za={BUFFERED:"BUFFERED",LIVE:"LIVE",OTHER:"OTHER"};x("chrome.cast.media.StreamType",chrome.cast.media.za);chrome.cast.media.Ya={CANCELLED:"CANCELLED",INTERRUPTED:"INTERRUPTED",FINISHED:"FINISHED",ERROR:"ERROR"};x("chrome.cast.media.IdleReason",chrome.cast.media.Ya);chrome.cast.media.yb={TEXT:"TEXT",AUDIO:"AUDIO",VIDEO:"VIDEO"};
x("chrome.cast.media.TrackType",chrome.cast.media.yb);chrome.cast.media.ub={SUBTITLES:"SUBTITLES",CAPTIONS:"CAPTIONS",DESCRIPTIONS:"DESCRIPTIONS",CHAPTERS:"CHAPTERS",METADATA:"METADATA"};x("chrome.cast.media.TextTrackType",chrome.cast.media.ub);chrome.cast.media.qb={NONE:"NONE",OUTLINE:"OUTLINE",DROP_SHADOW:"DROP_SHADOW",RAISED:"RAISED",DEPRESSED:"DEPRESSED"};x("chrome.cast.media.TextTrackEdgeType",chrome.cast.media.qb);chrome.cast.media.wb={NONE:"NONE",NORMAL:"NORMAL",ROUNDED_CORNERS:"ROUNDED_CORNERS"};
x("chrome.cast.media.TextTrackWindowType",chrome.cast.media.wb);chrome.cast.media.rb={SANS_SERIF:"SANS_SERIF",MONOSPACED_SANS_SERIF:"MONOSPACED_SANS_SERIF",SERIF:"SERIF",MONOSPACED_SERIF:"MONOSPACED_SERIF",CASUAL:"CASUAL",CURSIVE:"CURSIVE",SMALL_CAPITALS:"SMALL_CAPITALS"};x("chrome.cast.media.TextTrackFontGenericFamily",chrome.cast.media.rb);chrome.cast.media.sb={NORMAL:"NORMAL",BOLD:"BOLD",BOLD_ITALIC:"BOLD_ITALIC",ITALIC:"ITALIC"};x("chrome.cast.media.TextTrackFontStyle",chrome.cast.media.sb);
chrome.cast.media.zb={LIKE:"LIKE",DISLIKE:"DISLIKE",FOLLOW:"FOLLOW",UNFOLLOW:"UNFOLLOW"};x("chrome.cast.media.UserAction",chrome.cast.media.zb);chrome.cast.media.la=function(){this.customData=null};x("chrome.cast.media.GetStatusRequest",chrome.cast.media.la);chrome.cast.media.pa=function(){this.customData=null};x("chrome.cast.media.PauseRequest",chrome.cast.media.pa);chrome.cast.media.ra=function(){this.customData=null};x("chrome.cast.media.PlayRequest",chrome.cast.media.ra);chrome.cast.media.mb=function(){this.customData=this.resumeState=this.currentTime=null};x("chrome.cast.media.SeekRequest",chrome.cast.media.mb);
chrome.cast.media.ya=function(){this.customData=null};x("chrome.cast.media.StopRequest",chrome.cast.media.ya);chrome.cast.media.Eb=function(a){this.volume=a;this.customData=null};x("chrome.cast.media.VolumeRequest",chrome.cast.media.Eb);
chrome.cast.media.Za=function(a){this.type="LOAD";this.requestId=0;this.sessionId=null;this.media=a;this.activeTrackIds=null;this.autoplay=!0;this.atvCredentialsType=this.atvCredentials=this.credentialsType=this.credentials=void 0;this.customData=this.currentTime=null;this.queueData=this.playbackRate=void 0};x("chrome.cast.media.LoadRequest",chrome.cast.media.Za);chrome.cast.media.Ua=function(a,b){this.requestId=0;this.activeTrackIds=a||null;this.textTrackStyle=b||null};
x("chrome.cast.media.EditTracksInfoRequest",chrome.cast.media.Ua);chrome.cast.media.T=function(a){this.containerType=a=a===void 0?chrome.cast.media.U.GENERIC_CONTAINER:a;this.containerDuration=this.containerImages=this.sections=this.title=void 0};x("chrome.cast.media.ContainerMetadata",chrome.cast.media.T);
chrome.cast.media.MediaMetadata=function(a){this.metadataType=this.type=a;this.queueItemId=this.sectionStartTimeInContainer=this.sectionStartAbsoluteTime=this.sectionStartTimeInMedia=this.sectionDuration=void 0};x("chrome.cast.media.MediaMetadata",chrome.cast.media.MediaMetadata);chrome.cast.media.ka=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.GENERIC);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.title=void 0};q(chrome.cast.media.ka,chrome.cast.media.MediaMetadata);
x("chrome.cast.media.GenericMediaMetadata",chrome.cast.media.ka);chrome.cast.media.na=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.MOVIE);this.releaseDate=this.releaseYear=this.images=this.subtitle=this.studio=this.title=void 0};q(chrome.cast.media.na,chrome.cast.media.MediaMetadata);x("chrome.cast.media.MovieMediaMetadata",chrome.cast.media.na);
chrome.cast.media.Ba=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.TV_SHOW);this.originalAirdate=this.releaseYear=this.images=this.episode=this.episodeNumber=this.season=this.seasonNumber=this.episodeTitle=this.title=this.seriesTitle=void 0};q(chrome.cast.media.Ba,chrome.cast.media.MediaMetadata);x("chrome.cast.media.TvShowMediaMetadata",chrome.cast.media.Ba);
chrome.cast.media.oa=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.MUSIC_TRACK);this.releaseDate=this.releaseYear=this.images=this.discNumber=this.trackNumber=this.artistName=this.songName=this.composer=this.artist=this.albumArtist=this.title=this.albumName=void 0};q(chrome.cast.media.oa,chrome.cast.media.MediaMetadata);x("chrome.cast.media.MusicTrackMediaMetadata",chrome.cast.media.oa);
chrome.cast.media.qa=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.PHOTO);this.creationDateTime=this.height=this.width=this.longitude=this.latitude=this.images=this.location=this.artist=this.title=void 0};q(chrome.cast.media.qa,chrome.cast.media.MediaMetadata);x("chrome.cast.media.PhotoMediaMetadata",chrome.cast.media.qa);
chrome.cast.media.ga=function(){chrome.cast.media.T.call(this,chrome.cast.media.U.AUDIOBOOK_CONTAINER);this.releaseDate=this.publisher=this.narrators=this.authors=void 0};q(chrome.cast.media.ga,chrome.cast.media.T);x("chrome.cast.media.AudiobookContainerMetadata",chrome.cast.media.ga);chrome.cast.media.fa=function(){chrome.cast.media.MediaMetadata.call(this,chrome.cast.media.F.AUDIOBOOK_CHAPTER);this.images=this.subtitle=this.bookTitle=this.chapterNumber=this.title=this.chapterTitle=void 0};
q(chrome.cast.media.fa,chrome.cast.media.MediaMetadata);x("chrome.cast.media.AudiobookChapterMediaMetadata",chrome.cast.media.fa);
chrome.cast.media.bb=function(a,b){this.contentId=a;this.contentUrl=void 0;this.streamType=chrome.cast.media.za.BUFFERED;this.contentType=b===void 0?"":b;this.metadata=null;this.atvEntity=this.entity=void 0;this.duration=null;this.startAbsoluteTime=void 0;this.customData=this.textTrackStyle=this.tracks=null;this.userActionStates=this.hlsVideoSegmentFormat=this.hlsSegmentFormat=this.vmapAdsRequest=this.breakClips=this.breaks=void 0};x("chrome.cast.media.MediaInfo",chrome.cast.media.bb);
chrome.cast.media.ta=function(a){this.itemId=null;this.media=a;this.autoplay=!0;this.startTime=0;this.playbackDuration=null;this.preloadTime=0;this.customData=this.activeTrackIds=null};x("chrome.cast.media.QueueItem",chrome.cast.media.ta);chrome.cast.media.Pa="CC1AD845";x("chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID",chrome.cast.media.Pa);chrome.cast.media.timeout={};chrome.cast.media.timeout.load=0;x("chrome.cast.media.timeout.load",chrome.cast.media.timeout.load);
chrome.cast.media.timeout.P=0;x("chrome.cast.media.timeout.getStatus",chrome.cast.media.timeout.P);chrome.cast.media.timeout.play=0;x("chrome.cast.media.timeout.play",chrome.cast.media.timeout.play);chrome.cast.media.timeout.pause=0;x("chrome.cast.media.timeout.pause",chrome.cast.media.timeout.pause);chrome.cast.media.timeout.seek=0;x("chrome.cast.media.timeout.seek",chrome.cast.media.timeout.seek);chrome.cast.media.timeout.stop=0;x("chrome.cast.media.timeout.stop",chrome.cast.media.timeout.stop);
chrome.cast.media.timeout.R=0;x("chrome.cast.media.timeout.setVolume",chrome.cast.media.timeout.R);chrome.cast.media.timeout.O=0;x("chrome.cast.media.timeout.editTracksInfo",chrome.cast.media.timeout.O);chrome.cast.media.timeout.v=0;x("chrome.cast.media.timeout.queue",chrome.cast.media.timeout.v);chrome.cast.media.xb=function(a,b){this.trackId=a;this.trackContentType=this.trackContentId=null;this.type=b;this.customData=this.subtype=this.language=this.name=null};x("chrome.cast.media.Track",chrome.cast.media.xb);
chrome.cast.media.tb=function(){this.customData=this.fontStyle=this.fontGenericFamily=this.fontFamily=this.fontScale=this.windowRoundedCornerRadius=this.windowColor=this.windowType=this.edgeColor=this.edgeType=this.backgroundColor=this.foregroundColor=null};x("chrome.cast.media.TextTrackStyle",chrome.cast.media.tb);chrome.cast.media.fb=function(a){this.type="QUEUE_LOAD";this.sessionId=this.requestId=null;this.items=a;this.startIndex=0;this.repeatMode=chrome.cast.media.V.OFF;this.customData=null};
x("chrome.cast.media.QueueLoadRequest",chrome.cast.media.fb);chrome.cast.media.sa=function(a){this.type="QUEUE_INSERT";this.sessionId=this.requestId=null;this.items=a;this.customData=this.insertBefore=null};x("chrome.cast.media.QueueInsertItemsRequest",chrome.cast.media.sa);chrome.cast.media.hb=function(a){this.type="QUEUE_UPDATE";this.sessionId=this.requestId=null;this.items=a;this.customData=null};x("chrome.cast.media.QueueUpdateItemsRequest",chrome.cast.media.hb);
chrome.cast.media.M=function(){this.type="QUEUE_UPDATE";this.customData=this.jump=this.currentItemId=this.sessionId=this.requestId=null};x("chrome.cast.media.QueueJumpRequest",chrome.cast.media.M);chrome.cast.media.wa=function(){this.type="QUEUE_UPDATE";this.customData=this.repeatMode=this.sessionId=this.requestId=null};x("chrome.cast.media.QueueSetPropertiesRequest",chrome.cast.media.wa);
chrome.cast.media.ua=function(a){this.type="QUEUE_REMOVE";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=null};x("chrome.cast.media.QueueRemoveItemsRequest",chrome.cast.media.ua);chrome.cast.media.va=function(a){this.type="QUEUE_REORDER";this.sessionId=this.requestId=null;this.itemIds=a;this.customData=this.insertBefore=null};x("chrome.cast.media.QueueReorderItemsRequest",chrome.cast.media.va);
chrome.cast.media.Ja=function(a,b,c){this.id=a;this.breakClipIds=b;this.position=c;this.duration=void 0;this.isWatched=!1;this.isEmbedded=void 0};x("chrome.cast.media.Break",chrome.cast.media.Ja);chrome.cast.media.Ka=function(a){this.id=a;this.vastAdsRequest=this.customData=this.hlsSegmentFormat=this.clickThroughUrl=this.posterUrl=this.whenSkippable=this.duration=this.title=this.contentType=this.contentUrl=this.contentId=void 0};x("chrome.cast.media.BreakClip",chrome.cast.media.Ka);
chrome.cast.media.Bb=function(){this.adsResponse=this.adTagUrl=void 0};x("chrome.cast.media.VastAdsRequest",chrome.cast.media.Bb);chrome.cast.media.La=function(){this.whenSkippable=this.breakClipId=this.breakId=this.currentBreakClipTime=this.currentBreakTime=void 0};x("chrome.cast.media.BreakStatus",chrome.cast.media.La);chrome.cast.media.ma=function(a,b,c,d){this.start=a;this.end=b;this.isMovingWindow=c;this.isLiveDone=d};x("chrome.cast.media.LiveSeekableRange",chrome.cast.media.ma);
chrome.cast.media.eb=function(a,b,c,d,e,h,k){this.id=a;this.queueType=this.entity=void 0;this.name=b;this.description=c;this.repeatMode=d;this.shuffle=!1;this.items=e;this.startIndex=h;this.startTime=k;this.containerMetadata=void 0};x("chrome.cast.media.QueueData",chrome.cast.media.eb);chrome.cast.media.Ab=function(a){this.userAction=a;this.customData=void 0};x("chrome.cast.media.UserActionState",chrome.cast.media.Ab);chrome.cast.media.Cb=function(a,b,c){this.width=a;this.height=b;this.hdrType=c};
x("chrome.cast.media.VideoInformation",chrome.cast.media.Cb);var B=null;chrome.cast.media.h=function(a,b){this.sessionId=a;this.mediaSessionId=b;this.media=null;this.videoInfo=this.queueData=void 0;this.playbackRate=1;this.playerState=chrome.cast.media.B.IDLE;this.currentTime=0;this.g=-1;this.supportedMediaCommands=[];this.volume=new chrome.cast.Volume;this.items=this.preloadedItemId=this.loadingItemId=this.currentItemId=this.customData=this.activeTrackIds=this.idleReason=null;this.repeatMode=chrome.cast.media.V.OFF;this.breakStatus=void 0;this.l=!1;this.i=[];this.liveSeekableRange=
void 0};f=chrome.cast.media.h.prototype;f.P=function(a,b,c){a||(a=new chrome.cast.media.la);B.m(this,"MEDIA_GET_STATUS",a,b,c,chrome.cast.media.timeout.P)};f.play=function(a,b,c){var d=B;a||(a=new chrome.cast.media.ra);d.m(this,"PLAY",a,b,c,chrome.cast.media.timeout.play)};f.pause=function(a,b,c){var d=B;a||(a=new chrome.cast.media.pa);d.m(this,"PAUSE",a,b,c,chrome.cast.media.timeout.pause)};f.seek=function(a,b,c){B.m(this,"SEEK",a,b,c,chrome.cast.media.timeout.seek)};
f.stop=function(a,b,c){a||(a=new chrome.cast.media.ya);B.m(this,"STOP_MEDIA",a,b,c,chrome.cast.media.timeout.stop)};f.R=function(a,b,c){B.m(this,"MEDIA_SET_VOLUME",a,b,c,chrome.cast.media.timeout.R)};f.O=function(a,b,c){B.m(this,"EDIT_TRACKS_INFO",a,b,c,chrome.cast.media.timeout.O)};f.Tb=function(a,b,c){B.m(this,"QUEUE_INSERT",a,b,c,chrome.cast.media.timeout.v)};f.Sb=function(a,b,c){B.m(this,"QUEUE_INSERT",new chrome.cast.media.sa([a]),b,c,chrome.cast.media.timeout.v)};
f.dc=function(a,b,c){B.m(this,"QUEUE_UPDATE",a,b,c,chrome.cast.media.timeout.v)};f.Yb=function(a,b){var c=new chrome.cast.media.M;c.jump=-1;B.m(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.v)};f.Xb=function(a,b){var c=new chrome.cast.media.M;c.jump=1;B.m(this,"QUEUE_UPDATE",c,a,b,chrome.cast.media.timeout.v)};f.Ub=function(a,b,c){if(!(C(this,a)<0)){var d=new chrome.cast.media.M;d.currentItemId=a;B.m(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.v)}};
f.cc=function(a,b,c){var d=new chrome.cast.media.wa;d.repeatMode=a;B.m(this,"QUEUE_UPDATE",d,b,c,chrome.cast.media.timeout.v)};f.ac=function(a,b,c){B.m(this,"QUEUE_REMOVE",a,b,c,chrome.cast.media.timeout.v)};f.Zb=function(a,b,c){C(this,a)<0||B.m(this,"QUEUE_REMOVE",new chrome.cast.media.ua([a]),b,c,chrome.cast.media.timeout.v)};f.bc=function(a,b,c){B.m(this,"QUEUE_REORDER",a,b,c,chrome.cast.media.timeout.v)};
f.Wb=function(a,b,c,d){var e=C(this,a);if(!(e<0))if(b<0)d&&d(new chrome.cast.Error(chrome.cast.A.INVALID_PARAMETER));else if(e==b)c&&c();else{var h=null;b=b>e?b+1:b;b<this.items.length&&(h=this.items[b]);a=new chrome.cast.media.va([a]);a.insertBefore=h?h.itemId:null;B.m(this,"QUEUE_REORDER",a,c,d,chrome.cast.media.timeout.v)}};f.qc=function(a){return this.supportedMediaCommands.indexOf(a)>-1};
f.Nb=function(){if(this.playerState==chrome.cast.media.B.PLAYING&&this.g>=0){var a=this.currentTime+(Date.now()-this.g)/1E3*this.playbackRate;this.media&&this.media.duration!=null&&a>this.media.duration&&this.media.duration!=-1&&(a=this.media.duration);a<0&&(a=0);return a}return this.currentTime};f.Lb=function(){if(this.breakStatus&&this.breakStatus.currentBreakTime!==void 0)return this.playerState==chrome.cast.media.B.PLAYING&&this.g>=0?this.breakStatus.currentBreakTime+(Date.now()-this.g)/1E3:this.breakStatus.currentBreakTime};
f.Kb=function(){if(this.breakStatus&&this.breakStatus.currentBreakClipTime!==void 0)return this.playerState==chrome.cast.media.B.PLAYING&&this.g>=0?this.breakStatus.currentBreakClipTime+(Date.now()-this.g)/1E3:this.breakStatus.currentBreakClipTime};
f.Mb=function(){if(this.liveSeekableRange&&this.liveSeekableRange.start!==void 0&&this.liveSeekableRange.end!==void 0){if(this.playerState==chrome.cast.media.B.PLAYING&&this.g>=0){var a=(Date.now()-this.g)/1E3,b=new chrome.cast.media.ma;b.isMovingWindow=this.liveSeekableRange.isMovingWindow;b.isLiveDone=this.liveSeekableRange.isLiveDone;b.start=b.isMovingWindow?this.liveSeekableRange.start+a:this.liveSeekableRange.start;b.end=b.isLiveDone?this.liveSeekableRange.end:this.liveSeekableRange.end+a;return b}return this.liveSeekableRange}};
f.Y=function(a){B.Gb(this,a)};f.ba=function(a){B.fc(this,a)};var C=function(a,b){return Ca(a.items,function(c){return c.itemId==b})};x("chrome.cast.media.Media",chrome.cast.media.h);chrome.cast.media.h.prototype.removeUpdateListener=chrome.cast.media.h.prototype.ba;chrome.cast.media.h.prototype.addUpdateListener=chrome.cast.media.h.prototype.Y;chrome.cast.media.h.prototype.getEstimatedLiveSeekableRange=chrome.cast.media.h.prototype.Mb;chrome.cast.media.h.prototype.getEstimatedBreakClipTime=chrome.cast.media.h.prototype.Kb;
chrome.cast.media.h.prototype.getEstimatedBreakTime=chrome.cast.media.h.prototype.Lb;chrome.cast.media.h.prototype.getEstimatedTime=chrome.cast.media.h.prototype.Nb;chrome.cast.media.h.prototype.supportsCommand=chrome.cast.media.h.prototype.qc;chrome.cast.media.h.prototype.queueMoveItemToNewIndex=chrome.cast.media.h.prototype.Wb;chrome.cast.media.h.prototype.queueReorderItems=chrome.cast.media.h.prototype.bc;chrome.cast.media.h.prototype.queueRemoveItem=chrome.cast.media.h.prototype.Zb;
chrome.cast.media.h.prototype.queueRemoveItems=chrome.cast.media.h.prototype.ac;chrome.cast.media.h.prototype.queueSetRepeatMode=chrome.cast.media.h.prototype.cc;chrome.cast.media.h.prototype.queueJumpToItem=chrome.cast.media.h.prototype.Ub;chrome.cast.media.h.prototype.queueNext=chrome.cast.media.h.prototype.Xb;chrome.cast.media.h.prototype.queuePrev=chrome.cast.media.h.prototype.Yb;chrome.cast.media.h.prototype.queueUpdateItems=chrome.cast.media.h.prototype.dc;
chrome.cast.media.h.prototype.queueAppendItem=chrome.cast.media.h.prototype.Sb;chrome.cast.media.h.prototype.queueInsertItems=chrome.cast.media.h.prototype.Tb;chrome.cast.media.h.prototype.editTracksInfo=chrome.cast.media.h.prototype.O;chrome.cast.media.h.prototype.setVolume=chrome.cast.media.h.prototype.R;chrome.cast.media.h.prototype.stop=chrome.cast.media.h.prototype.stop;chrome.cast.media.h.prototype.seek=chrome.cast.media.h.prototype.seek;chrome.cast.media.h.prototype.pause=chrome.cast.media.h.prototype.pause;
chrome.cast.media.h.prototype.play=chrome.cast.media.h.prototype.play;chrome.cast.media.h.prototype.getStatus=chrome.cast.media.h.prototype.P;var Ha=function(a,b,c){this.sessionId=a;this.namespaceName=b;this.message=c};var Ia=function(a,b){this.type="SET_VOLUME";this.requestId=0;this.volume=a;this.expectedVolume=b||null};var Ja=function(a){this.type="STOP";this.requestId=0;this.sessionId=a||null};chrome.cast.j=function(a,b,c,d,e){this.sessionId=a;this.appId=b;this.displayName=c;this.statusText=null;this.appImages=d;this.receiver=e;this.senderApps=[];this.namespaces=[];this.media=[];this.status=chrome.cast.K.CONNECTED;this.transportId=""};f=chrome.cast.j.prototype;f.oc=function(a,b,c){var d=B;a=new Ia(new chrome.cast.Volume(a,null),this.receiver.volume);d.setReceiverVolume(this.sessionId,a,b,c)};
f.nc=function(a,b,c){a=new Ia(new chrome.cast.Volume(null,a),this.receiver.volume);B.setReceiverVolume(this.sessionId,a,b,c)};f.getDialAppInfo=function(a,b){B.getDialAppInfo(a,b)};f.Ob=function(a,b){B.leaveSession(this.sessionId,a,b)};f.stop=function(a,b){B.Da(new Ja(this.sessionId),a,b,chrome.cast.timeout.stopSession)};f.sendMessage=function(a,b,c,d){B.kc(new Ha(this.sessionId,a,b),c,d)};f.Y=function(a){B.Ib(this.sessionId,a)};f.ba=function(a){B.jc(this.sessionId,a)};
f.Hb=function(a,b){B.Fb(this.sessionId,a,b)};f.W=function(a){B.W(this.sessionId,a)};f.Z=function(a){B.Z(this.sessionId,a)};f.hc=function(a,b){B.ec(this.sessionId,a,b)};f.Pb=function(a,b,c){a.sessionId=this.sessionId;B.Ea(a,"LOAD",b,c)};f.Vb=function(a,b,c){a.sessionId=this.sessionId;B.Ea(a,"QUEUE_LOAD",b,c)};x("chrome.cast.Session",chrome.cast.j);chrome.cast.j.prototype.queueLoad=chrome.cast.j.prototype.Vb;chrome.cast.j.prototype.loadMedia=chrome.cast.j.prototype.Pb;
chrome.cast.j.prototype.removeMessageListener=chrome.cast.j.prototype.hc;chrome.cast.j.prototype.removeMediaListener=chrome.cast.j.prototype.Z;chrome.cast.j.prototype.addMediaListener=chrome.cast.j.prototype.W;chrome.cast.j.prototype.addMessageListener=chrome.cast.j.prototype.Hb;chrome.cast.j.prototype.removeUpdateListener=chrome.cast.j.prototype.ba;chrome.cast.j.prototype.addUpdateListener=chrome.cast.j.prototype.Y;chrome.cast.j.prototype.sendMessage=chrome.cast.j.prototype.sendMessage;
chrome.cast.j.prototype.stop=chrome.cast.j.prototype.stop;chrome.cast.j.prototype.leave=chrome.cast.j.prototype.Ob;chrome.cast.j.prototype.getDialAppInfo=chrome.cast.j.prototype.getDialAppInfo;chrome.cast.j.prototype.setReceiverMuted=chrome.cast.j.prototype.nc;chrome.cast.j.prototype.setReceiverVolumeLevel=chrome.cast.j.prototype.oc;var D=function(a,b){this.g=a[r.Symbol.iterator]();this.i=b};D.prototype[Symbol.iterator]=function(){return this};D.prototype.next=function(){var a=this.g.next();return{value:a.done?void 0:this.i.call(void 0,a.value),done:a.done}};var Ka=function(a,b){return new D(a,b)};var E=function(){};E.prototype.next=function(){return F};var F=Da({done:!0,value:void 0});E.prototype.o=function(){return this};var La=function(a){if(a instanceof E)return a;if(typeof a.o=="function")return a.o(!1);if(u(a)){var b=0,c=new E;c.next=function(){for(;;){if(b>=a.length)return F;if(b in a)return{value:a[b++],done:!1};b++}};return c}throw Error("Not implemented");},G=function(a,b){if(u(a))Ba(a,b);else for(a=La(a);;){var c=a.next();if(c.done)break;b.call(void 0,c.value,void 0,a)}};var Ma=function(a){if(a instanceof H||a instanceof I||a instanceof J)return a;if(typeof a.next=="function")return new H(function(){return a});if(typeof a[Symbol.iterator]=="function")return new H(function(){return a[Symbol.iterator]()});if(typeof a.o=="function")return new H(function(){return a.o()});throw Error("Not an iterator or iterable.");},H=function(a){this.g=a};H.prototype.o=function(){return new I(this.g())};H.prototype[Symbol.iterator]=function(){return new J(this.g())};H.prototype.i=function(){return new J(this.g())};
var I=function(a){this.g=a};q(I,E);I.prototype.next=function(){return this.g.next()};I.prototype[Symbol.iterator]=function(){return new J(this.g)};I.prototype.i=function(){return new J(this.g)};var J=function(a){H.call(this,function(){return a});this.l=a};q(J,H);J.prototype.next=function(){return this.l.next()};var K=function(a,b){this.i={};this.g=[];this.l=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof K)for(c=Na(a),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};K.prototype.L=function(){L(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.i[this.g[b]]);return a};var Na=function(a){L(a);return a.g.concat()};
K.prototype.has=function(a){return M(this.i,a)};K.prototype.clear=function(){this.i={};this.l=this.size=this.g.length=0};K.prototype.remove=function(a){return this.delete(a)};K.prototype.delete=function(a){return M(this.i,a)?(delete this.i[a],--this.size,this.l++,this.g.length>2*this.size&&L(this),!0):!1};
var L=function(a){if(a.size!=a.g.length){for(var b=0,c=0;b<a.g.length;){var d=a.g[b];M(a.i,d)&&(a.g[c++]=d);b++}a.g.length=c}if(a.size!=a.g.length){b={};for(d=c=0;c<a.g.length;){var e=a.g[c];M(b,e)||(a.g[d++]=e,b[e]=1);c++}a.g.length=d}};f=K.prototype;f.get=function(a,b){return M(this.i,a)?this.i[a]:b};f.set=function(a,b){M(this.i,a)||(this.size+=1,this.g.push(a),this.l++);this.i[a]=b};f.forEach=function(a,b){for(var c=Na(this),d=0;d<c.length;d++){var e=c[d],h=this.get(e);a.call(b,h,e,this)}};
f.keys=function(){return Ma(this.o(!0)).i()};f.values=function(){return Ma(this.o(!1)).i()};f.entries=function(){var a=this;return Ka(this.keys(),function(b){return[b,a.get(b)]})};f.o=function(a){L(this);var b=0,c=this.l,d=this,e=new E;e.next=function(){if(c!=d.l)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)return F;var h=d.g[b++];return{value:a?h:d.i[h],done:!1}};return e};var M=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var N=function(a,b){this.requestId=a;this.u=b;this.Ga=null};N.prototype.i=function(){};var Oa=function(){this.g=new K},Pa=function(a,b){a.g.set(b.requestId,b);b.Ga=setTimeout(function(){a.g.delete(b.requestId);b.i()},b.u)},Qa=function(a,b){var c=a.g.get(b);if(!c)return null;clearTimeout(c.Ga);a.g.delete(b);return c};var O=function(a,b,c,d){N.call(this,a,d||6E5);this.l=b;this.g=c};q(O,N);O.prototype.i=function(){this.g(new chrome.cast.Error(chrome.cast.A.TIMEOUT))};var P=function(a,b,c,d){this.type=a;this.message=b;this.sequenceNumber=c!==void 0?c:-1;this.timeoutMillis=d||0;this.clientId=""};var Q=function(a){this.l=a;this.i=String(Date.now())+String(Math.floor(Math.random()*1E5));this.g=null},Ra=function(a,b){if(!a.g)return"No active session";b.clientId=a.i;b=JSON.stringify(b);if(b.length>32768)return"Message length over limit";a.g.send(b);return null};Q.prototype.connect=function(a){this.g=a;this.g.onmessage=w(this.u,this);Ra(this,new P("client_connect",this.i))};Q.prototype.disconnect=function(){this.g.close();this.g=null};
Q.prototype.u=function(a){a=JSON.parse(a.data);if(a.clientId==this.i)this.l.onMessage(a)};var Sa=function(a,b,c){this.l=a;this.i=b;this.g=c},Ta=function(a){var b="cast-dial:"+a.l,c=new URLSearchParams;a.i&&c.set("dialPostData",a.i);a.g&&c.set("clientId",a.g);(a=c.toString())&&(b+="?"+a);return b};var Ua=function(a,b,c,d,e,h,k,m,p,t){this.I=a;this.g=b||null;this.l=c||null;this.C=d||null;this.D=e!==void 0?e:null;this.i=h||null;this.H=k||null;this.J=m||!1;this.G=p?["WEB","ANDROID_TV"]:["WEB"];this.u=t||null},Va=function(a){var b=a.I.map(function(c){var d="cast:"+c.appId,e=new URLSearchParams;c.capabilities&&c.capabilities.length>0&&e.set("capabilities",c.capabilities.join(","));a.g&&e.set("clientId",a.g);a.l&&e.set("autoJoinPolicy",a.l);a.C&&e.set("defaultActionPolicy",a.C);a.D!=null&&e.set("launchTimeout",
String(a.D));a.J&&e.set("invisibleSender","true");e.set("supportedAppTypes",a.G.join(","));c=e.set;var h=JSON,k=h.stringify,m={launchCheckerParams:{}};a.u&&(m.launchCheckerParams.credentialsData=a.u);c.call(e,"appParams",k.call(h,m));return d+"?"+e.toString()});a.i&&b.push(Ta(new Sa(a.i,a.H,a.g)));return b};var Wa=function(){this.g={};this.i={}},Xa=function(a,b,c){var d=a.g[b];return d?(d.status=c,d.media.forEach(function(e){delete a.i[e.sessionId+"#"+e.mediaSessionId]}),delete a.g[b],!0):!1},Za=function(a,b){var c=a.g[b.sessionId];if(c)return c.statusText=b.statusText,c.namespaces=b.namespaces||[],c.receiver.volume=b.receiver.volume,c;c=new chrome.cast.j(b.sessionId,b.appId,b.displayName,b.appImages,b.receiver);for(var d in b)d=="media"?c.media=b.media.map(function(e){e=Ya(a,e);e.u=!1;e.l=!0;return e}):
b.hasOwnProperty(d)&&(c[d]=b[d]);return a.g[b.sessionId]=c},Ya=function(a,b){var c=b.sessionId+"#"+b.mediaSessionId,d=a.i[c];d||(d=new chrome.cast.media.h(b.sessionId,b.mediaSessionId),a.i[c]=d,(a=a.g[b.sessionId])&&a.media.push(d));a=d;a.currentItemId=null;a.loadingItemId=null;a.preloadedItemId=null;for(var e in b)e!="items"&&b.hasOwnProperty(e)&&(e=="volume"?(a.volume.level=b.volume.level,a.volume.muted=b.volume.muted):a[e]=b[e]);e=ka(["idleReason","extendedStatus","breakStatus"]);for(c=e.next();!c.done;c=
e.next())c=c.value,b.hasOwnProperty(c)||(a[c]=null);"currentTime"in b&&(a.g=Date.now());if(a.playerState==chrome.cast.media.B.IDLE&&a.loadingItemId==null)a.currentItemId=null,a.loadingItemId=null,a.preloadedItemId=null,a.items=null;else if(b.hasOwnProperty("items")&&b.items){e=[];var h=a.items;c={};if(h)for(var k=0;k<h.length;k++)c[h[k].itemId]=k;b=ka(b.items);for(h=b.next();!h.done;h=b.next()){h=h.value;if(!h.media){k=h.itemId;var m=a.items?a.items[c[k]]:null;m&&m.media?h.media=m.media:k==a.currentItemId&&
a.media&&(h.media=a.media)}k=e;m=k.push;var p=void 0,t=new chrome.cast.media.ta(h.media);for(p in h)h.hasOwnProperty(p)&&(t[p]=h[p]);m.call(k,t)}a.items=e}return d},$a=function(a,b){delete a.i[b.sessionId+"#"+b.mediaSessionId];if(a=a.g[b.sessionId])b=a.media.indexOf(b),b!=-1&&a.media.splice(b,1)};function R(){var a=r.navigator;return a&&(a=a.userAgent)?a:""};var ab=R().toLowerCase().indexOf("webkit")!=-1&&R().indexOf("Edge")==-1;var bb={},S=null,cb=R().indexOf("Gecko")!=-1&&!(R().toLowerCase().indexOf("webkit")!=-1&&R().indexOf("Edge")==-1)&&!(R().indexOf("Trident")!=-1||R().indexOf("MSIE")!=-1)&&R().indexOf("Edge")==-1||ab||typeof r.btoa=="function",db=function(a){if(cb)var b=r.btoa(a);else{b=[];for(var c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);if(e>255)throw Error("go/unicode-to-byte-error");b[c++]=e}a=void 0;a===void 0&&(a=0);if(!S)for(S={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),
d=["+/=","+/","-_=","-_.","-_"],e=0;e<5;e++){var h=c.concat(d[e].split(""));bb[e]=h;for(var k=0;k<h.length;k++){var m=h[k];S[m]===void 0&&(S[m]=k)}}a=bb[a];c=Array(Math.floor(b.length/3));d=a[64]||"";for(e=h=0;h<b.length-2;h+=3){var p=b[h],t=b[h+1];m=b[h+2];k=a[p>>2];p=a[(p&3)<<4|t>>4];t=a[(t&15)<<2|m>>6];m=a[m&63];c[e++]=""+k+p+t+m}k=0;m=d;switch(b.length-h){case 2:k=b[h+1],m=a[(k&15)<<2]||d;case 1:b=b[h],c[e]=""+a[b>>2]+a[(b&3)<<4|k>>4]+m+d}b=c.join("")}return b};var eb=function(a){if(a.L&&typeof a.L=="function")return a.L();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(u(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}b=[];c=0;for(d in a)b[c++]=a[d];return b};var T=function(){this.g=new K;this.size=0},U=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+(Object.prototype.hasOwnProperty.call(a,v)&&a[v]||(a[v]=++la)):b.slice(0,1)+a};f=T.prototype;f.add=function(a){this.g.set(U(a),a);this.size=this.g.size};f.removeAll=function(a){a=eb(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.size=this.g.size};f.delete=function(a){a=this.g.remove(U(a));this.size=this.g.size;return a};f.remove=function(a){return this.delete(a)};
f.clear=function(){this.g.clear();this.size=0};f.has=function(a){var b=this.g;a=U(a);return b.has(a)};f.contains=function(a){var b=this.g;a=U(a);return b.has(a)};f.L=function(){return this.g.L()};f.values=function(){return this.g.values()};f.o=function(){return this.g.o(!1)};T.prototype[Symbol.iterator]=function(){return this.values()};var V=function(){this.C=new Q(this);this.g=null;this.G=new Wa;this.i=0;this.S=new Oa;this.D=new K;this.u=new K;this.I=new K;this.J=[];this.Oa=this.Jb.bind(this);this.ia=this.H=this.l=null},fb=function(a){var b=new chrome.cast.Error(chrome.cast.A.INVALID_PARAMETER,"Already requesting session");a&&a(b)},W=function(a,b,c,d){c&&Pa(a.S,c);d!==void 0?b.sequenceNumber=d:(b.sequenceNumber=a.i,a.i=(a.i+1)%9007199254740992);d=Ra(a.C,b);c&&d&&(a=Qa(a.S,b.sequenceNumber))&&(a=a.g,d=new chrome.cast.Error(chrome.cast.A.INVALID_PARAMETER,
d),a&&a(d))};
V.prototype.initialize=function(a,b){var c=this;B=this;this.g=a;a.invisibleSender||(a=new PresentationRequest(X(this)),a.getAvailability().then(function(d){d.onchange=function(){c.g.receiverListener(d.value?chrome.cast.N.AVAILABLE:chrome.cast.N.UNAVAILABLE)};d.onchange()},function(){c.g.receiverListener(chrome.cast.N.AVAILABLE)}),a.onconnectionavailable=function(d){Y(c,d.connection)},this.ia=(r.navigator||null).presentation.defaultRequest=a,a.reconnect(chrome.cast.Ha).then(function(d){Y(c,d)},function(){}));
b&&b(void 0)};V.prototype.da=function(a){a.navigator.presentation.defaultRequest=this.ia};var Y=function(a,b,c){c=c===void 0?null:c;b.onclose=function(d){a.l=null;switch(d.reason){case "closed":gb(a,chrome.cast.K.DISCONNECTED);break;case "error":if(c){d=c;var e=new chrome.cast.Error(chrome.cast.A.SESSION_ERROR);d&&d(e)}}};b.onterminate=function(){gb(a,chrome.cast.K.STOPPED)};b.state=="connected"?a.C.connect(b):b.onconnect=function(){a.C.connect(b)}};
V.prototype.requestSession=function(a,b,c){var d=this;this.l?fb(b):(c=X(this,c),this.l=a,(new PresentationRequest(c)).start().then(function(e){Y(d,e,b)}).catch(function(e){d.l=null;e=new chrome.cast.Error(e.name=="AbortError"||e.name=="NotAllowedError"?chrome.cast.A.CANCEL:chrome.cast.A.SESSION_ERROR);b&&b(e)}))};
var X=function(a,b){var c=null,d=null;b=b||a.g.sessionRequest;var e=b.dialRequest;e&&(c=e.appName,(d=e.launchParameter)&&!d.match(hb)&&(d=db(d)));var h=[];h.push({appId:b.appId,capabilities:b.capabilities});b||Ba(a.g.additionalSessionRequests,function(k){h.push({appId:k.appId,capabilities:k.capabilities})});return Va(new Ua(h,a.C.i,a.g.autoJoinPolicy,a.g.defaultActionPolicy,b.requestSessionTimeout,c,d,a.g.invisibleSender,b.androidReceiverCompatible,b.credentialsData))};
V.prototype.Ea=function(a,b,c,d){ib(this,null,b,a,function(e){e.l=!0;c&&c(e)},function(e){d(e)},chrome.cast.media.timeout.load)};V.prototype.m=function(a,b,c,d,e,h){var k=this;ib(this,a,b,c,function(m){k.Ca(m);d&&d(void 0)},e,h)};var ib=function(a,b,c,d,e,h,k){d.type=c;b!=null&&(d.mediaSessionId=b.mediaSessionId,d.sessionId=b.sessionId);a.Da(d,function(m){m.status&&m.status.length==1?e&&e(m.status[0]):(m=new chrome.cast.Error(chrome.cast.A.SESSION_ERROR),h&&h(m))},h,k)};f=V.prototype;
f.setReceiverVolume=function(a,b,c,d){b.sessionId=a;W(this,new P("v2_message",b,void 0,chrome.cast.timeout.setReceiverVolume),new O(this.i,c,d,chrome.cast.timeout.sendCustomMessage))};f.getDialAppInfo=function(a,b){W(this,new P("dial_app_info",void 0,void 0,chrome.cast.timeout.getDialAppInfo),new O(this.i,a,b,chrome.cast.timeout.sendCustomMessage))};f.ca=function(a){var b=this;(new PresentationRequest(X(this))).reconnect(chrome.cast.cb+a).then(function(c){Y(b,c)},function(){})};
f.leaveSession=function(a,b,c){W(this,new P("leave_session",a,void 0,chrome.cast.timeout.leaveSession),new O(this.i,b,c,chrome.cast.timeout.leaveSession))};f.kc=function(a,b,c){W(this,new P("app_message",a,void 0,chrome.cast.timeout.sendCustomMessage),new O(this.i,b,c,chrome.cast.timeout.sendCustomMessage))};f.Da=function(a,b,c,d){W(this,new P("v2_message",a,void 0,d),new O(this.i,b,c,d))};var jb=function(a,b,c){var d=a.get(b);d||(d=new T,a.set(b,d));d.add(c)};f=V.prototype;
f.Ib=function(a,b){jb(this.D,a,b)};f.jc=function(a,b){(a=this.D.get(a))&&a.remove(b)};f.X=function(a){this.J.push(a)};f.aa=function(a){a=this.J.indexOf(a);a>=0&&this.J.splice(a,1)};f.Fb=function(a,b,c){var d=this.u.get(a);d||(d=new K,this.u.set(a,d));a=d.get(b);a||(a=new T,d.set(b,a));a.add(c)};f.ec=function(a,b,c){(a=this.u.get(a))&&(b=a.get(b))&&b.remove(c)};f.W=function(a,b){jb(this.I,a,b)};f.Z=function(a,b){(a=this.I.get(a))&&a.remove(b)};f.Gb=function(a,b){a.i.indexOf(b)==-1&&a.i.push(b)};
f.fc=function(a,b){b=a.i.indexOf(b);b!=-1&&a.i.splice(b,1)};f.Ca=function(a){if(a.l){var b=a.playerState!=chrome.cast.media.B.IDLE||a.loadingItemId!=null;a.i.forEach(function(d){d(b)});b||$a(this.G,a)}else{a.l=!0;var c=this.I.get(a.sessionId);c&&G(c.o(),function(d){d(a)})}};f.Jb=function(a){return Ya(this.G,a)};var gb=function(a,b){if(a.H){var c=a.H;a.H=null;a.C.disconnect();var d=b!=chrome.cast.K.STOPPED;Xa(a.G,c,b)&&(a.u.delete(c),a.I.delete(c),b=a.D.get(c))&&(a.D.delete(c),G(b.o(),function(e){e(d)}))}};
V.prototype.onMessage=function(a){switch(a.type){case "new_session":case "update_session":a.message=Za(this.G,a.message);break;case "v2_message":var b=a.message;b&&b.type=="MEDIA_STATUS"&&b.status&&(b.status=b.status.map(this.Oa))}if(b=Qa(this.S,a.sequenceNumber))a.type=="error"?(b=b.g)&&b(a.message):(b=b.l)&&b(a.message);if(b=a.message)switch(a.type){case "receiver_action":kb(this,b);break;case "new_session":this.H=b.sessionId;this.l?(this.l(b),this.l=null):this.g&&this.g.sessionListener(b);break;
case "update_session":lb(this,b);break;case "app_message":mb(this,b);break;case "v2_message":b.type=="MEDIA_STATUS"&&b.status.forEach(this.Ca.bind(this));break;case "custom_dial_launch":nb(this,a.sequenceNumber,b)}};
var lb=function(a,b){(a=a.D.get(b.sessionId))&&G(a.o(),function(c){c(!0)})},kb=function(a,b){a.J.forEach(function(c){c(b.receiver,b.action)})},mb=function(a,b){(a=a.u.get(b.sessionId))&&(a=a.get(b.namespaceName))&&G(a.o(),function(c){c(b.namespaceName,b.message)})},ob=function(a,b,c){W(a,new P("custom_dial_launch",c,void 0,chrome.cast.timeout.sendCustomMessage),null,b)},nb=function(a,b,c){a.g.customDialLaunchCallback?a.g.customDialLaunchCallback(c).then(function(d){ob(a,b,d)},function(){ob(a,b)}):
ob(a,b)},hb=RegExp("^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$"),Z=new V;chrome.cast.initialize=function(a,b,c){Z.initialize(a,b,c)};x("chrome.cast.initialize",chrome.cast.initialize);chrome.cast.da=function(a){Z.da(a)};x("chrome.cast.setPageContext",chrome.cast.da);chrome.cast.requestSession=function(a,b,c){Z.requestSession(a,b,c)};x("chrome.cast.requestSession",chrome.cast.requestSession);chrome.cast.Rb=function(){};x("chrome.cast.precache",chrome.cast.Rb);chrome.cast.ca=function(a){Z.ca(a)};x("chrome.cast.requestSessionById",chrome.cast.ca);chrome.cast.X=function(a){Z.X(a)};
x("chrome.cast.addReceiverActionListener",chrome.cast.X);chrome.cast.aa=function(a){Z.aa(a)};x("chrome.cast.removeReceiverActionListener",chrome.cast.aa);chrome.cast.Qb=function(){};x("chrome.cast.logMessage",chrome.cast.Qb);chrome.cast.lc=function(a,b){b()};x("chrome.cast.setCustomReceivers",chrome.cast.lc);chrome.cast.mc=function(a,b){b()};x("chrome.cast.setReceiverDisplayStatus",chrome.cast.mc);chrome.cast.unescape=function(a){return a.indexOf("&")!=-1?"document"in r?Fa(a):Ga(a):a};
x("chrome.cast.unescape",chrome.cast.unescape);chrome.cast.isAvailable=!1;x("chrome.cast.isAvailable",chrome.cast.isAvailable);chrome.cast.Fa=!1;chrome.cast.ea=function(){if(!chrome.cast.Fa){chrome.cast.Fa=!0;chrome.cast.isAvailable=!0;var a=window.__onGCastApiAvailable;a&&typeof a=="function"&&a(!0)}};document.readyState=="complete"?chrome.cast.ea():(window.addEventListener("load",chrome.cast.ea,!1),window.addEventListener("DOMContentLoaded",chrome.cast.ea,!1));}).call(this);

230
niayesh/common.js.download Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
const eventData = document.createEvent('Event');
eventData.initEvent('RomeoLoaded', false, true);
document.dispatchEvent(eventData);

762
niayesh/container.css Normal file
View File

@@ -0,0 +1,762 @@
/*
================================
Container Styles for DotNetNuke
================================
.
/*-------------------------------------------------------------------------------*/
h1, h2, h3, h4, h5 {
letter-spacing: normal;
margin: 5px 0 10px 0;
Font-Family: Iransans, tahoma;
}
.actions { width:10px;}
.clear { clear:both;}
.c_footer { padding-right:10px; text-align:right;}
.dnntitle {}
.c_contentpane { text-align:left; padding:2px 5px 0px 5px;}
.ModuleTitle_MenuContainer { width:100px!important;}
.Container-H3-1 { margin:0 0 5px; }
.Container-H3-1 .dnntitle { white-space:nowrap; padding:0px 0 8px; text-align:center; }
.Container-H3-1 .contentmain1 { }
.Container-H3-1 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Container-H4-1 { margin:0 0 5px; }
.Container-H4-1 .dnntitle { white-space:nowrap; padding:0px 0 8px; text-align:left; }
.Container-H4-1 .contentmain1 { }
.Container-H4-1 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home01-Container01 { margin:0 0 5px; }
.Home01-Container01 .dnntitle { white-space:nowrap; padding:0px 0 15px; margin-bottom:15px; }
.Home01-Container01 .contentmain1 { }
.Home01-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home01-heading01 { font-size:24px; line-height:1.2; color:#000000; white-space:normal; vertical-align:middle; font-weight:normal; padding:0px 0 0 15px; margin:0px; position:relative; }
.Home01-heading01:before { content:""; height:20px; border-left:3px solid #20a3f0; display:inline-block; position:absolute; top:50%; left:0; margin-top:-10px;}
.Home01-Container02 { margin:0 0 5px; }
.Home01-Container02 .dnntitle { white-space:nowrap; padding:0px 0 8px; }
.Home01-Container02 .contentmain1 { }
.Home01-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home01-Container02 .dnntitle:after { content:" "; width:50px; border-bottom:3px solid #20a3f0; display:block; margin:25px 0 10px }
.Home01-heading02 {font-size:30px; line-height:1.2; color:#000000; white-space:normal; vertical-align:middle; font-weight:normal; padding:0px; margin:0px; }
.Home02-Container01 { margin:0 ; }
.Home02-Container01 .dnntitle { white-space:nowrap; padding:0px 0 30px; text-align:left; }
.Home02-Container01 .contentmain1 { }
.Home02-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home02-heading01 { font-size:24px; line-height:1.2; color:#cccccc; white-space:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; }
.Home03-Container01 { margin:0 ; }
.Home03-Container01 .dnntitle { white-space:nowrap; padding:0px 0 15px; text-align:center; }
.Home03-Container01 .contentmain1 { }
.Home03-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home03-heading01 { font-size:36px; color:#333333; line-height:1.2; white-space:normal; vertical-align:middle; font-weight:bold; padding:0px; margin:0px; }
.Home03-heading01:before { content:""; width:40px; border-top:3px solid #cd3637; display:block; margin:0 auto 20px;}
.Home03-Container02 { margin:0 ; }
.Home03-Container02 .dnntitle { white-space:nowrap; padding:0px 0 22px; text-align:left; }
.Home03-Container02 .contentmain1 { }
.Home03-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home03-heading02 { font-size:20px; line-height:1.2; color:#cccccc; white-space:normal; vertical-align:middle; font-weight:bold; margin:0px; position:relative; display:block; }
.Home03-heading02:before { content:""; border-left:4px solid #cd3637; display:inline-block; height:40px; vertical-align:middle; margin:0 27px 4px 0;}
.Home03-Container03 { margin:0 0 5px; }
.Home03-Container03 .dnntitle { white-space:nowrap; padding:0px 0 33px; }
.Home03-Container03 .contentmain1 { }
.Home03-Container03 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home03-heading03 { font-size:36px; line-height:1.2; color:#333333; white-space:normal; vertical-align:middle; font-weight:bold; padding:0px 0px 0px 40px; margin:0px; position:relative; display:block; }
.Home03-heading03:before { content:""; border-left:4px solid #cd3637; display:inline-block; position:absolute; top:5px; bottom:5px; left:0; }
.Home04-Container01 { margin:0 0 5px; text-align:center; }
.Home04-Container01 .dnntitle { padding:0px 0 24px; text-align:center; overflow:hidden; display:inline-block;}
.Home04-Container01 .contentmain1 { }
.Home04-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home04-Container01 .dnntitle h4 { margin:0px; position:relative; display:inline-block; vertical-align:middle; max-width:80% }
.Home04-Container01 .dnntitle h4:before { content:""; border-top:1px solid #11ba99; width:60px; vertical-align:middle; margin:-1px 0 0px; position:absolute; left:100%; top:50%; }
.Home04-Container01 .dnntitle h4:after { content:""; border-top:1px solid #11ba99; width:60px; vertical-align:middle; margin:-1px 0 0px; position:absolute; right:100%; top:50%;}
.Home04-heading01 {font-size:26px; line-height:1.2; color:#333333; font-weight:bold; position:relative; padding:0 27px; display:inline-block;}
.Home04-heading01:before { content:""; border-left:3px solid #50bdad;height:30px; margin:-15px 0px 4px 0; position:absolute; left:0; top:50%; }
.Home04-heading01:after { content:""; border-right:3px solid #50bdad;height:30px; margin:-15px 0px 4px 0px; position:absolute; right:0; top:50%;}
.Home04-Container02 { margin:0 ; }
.Home04-Container02 .dnntitle { white-space:nowrap; padding:0px 0 30px; text-align:left; }
.Home04-Container02 .contentmain1 { }
.Home04-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home04-heading02 { font-size:24px; line-height:1.2; color:#333333; white-space:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; }
.Home05-Container01 { margin:0 0 5px; }
.Home05-Container01 .dnntitle { padding:0px 0 20px; text-align:center; overflow:hidden; }
.Home05-Container01 .contentmain1 { }
.Home05-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home05-Container01 .dnntitle h4 { margin:0px; position:relative; display:inline-block; vertical-align:middle; max-width:80% }
.Home05-Container01 .dnntitle h4:before { content:""; border-top:1px solid #11ba99; width:60px; vertical-align:middle; margin:-1px 0 0px; position:absolute; left:100%; top:50%; }
.Home05-Container01 .dnntitle h4:after { content:""; border-top:1px solid #11ba99; width:60px; vertical-align:middle; margin:-1px 0 0px; position:absolute; right:100%; top:50%;}
.Home05-heading01 { font-size:24px; line-height:1.2; color:#283848; font-weight:bold; position:relative; padding:0 20px; display:inline-block}
.Home05-heading01:before { content:""; border-left:1px solid #11ba99;height:17px; margin:-9px 27px 4px 0; position:absolute; left:0; top:50%; }
.Home05-heading01:after { content:""; border-right:1px solid #11ba99;height:17px; margin:-9px 0px 4px 27px; position:absolute; right:0; top:50%;}
.Home05-Container02 { margin:0 0 5px; }
.Home05-Container02 .dnntitle { white-space:nowrap; padding:0px 0 20px;}
.Home05-Container02 .contentmain1 { }
.Home05-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home05-Container02 .dnntitle h4 { margin:0px; position:relative; display:block; font-size:0; }
.Home05-Container02 .dnntitle h4:after { content:""; border-bottom:1px solid #11ba99; display:inline-block; width:60px; vertical-align:middle; margin:0 0 4px; }
.Home05-heading02 {font-size:24px; line-height:1.2; color:#283848; white-space:normal; vertical-align:middle; font-weight:bold; display:inline-block; position:relative; padding-right:20px;}
.Home05-heading02:after { content:""; border-right:1px solid #11ba99; display:inline-block; height:17px; vertical-align:middle; margin:-9px 0px 4px 27px; position:absolute; right:0; top:50%; }
.Home06-Container01 { margin:0 ; }
.Home06-Container01 .dnntitle { white-space:nowrap; padding:0px 0 20px; text-align:center; }
.Home06-Container01 .contentmain1 { }
.Home06-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home06-heading01 { font-size:24px; line-height:1.2; color:#000000; white-space:normal; border:2px solid #000; vertical-align:middle; font-weight:bold; margin:0px; position:relative; display:inline-block; padding:18px 42px }
.Home06-Container02 { margin:0 ; }
.Home06-Container02 .dnntitle { white-space:nowrap; padding:0px 0 20px; }
.Home06-Container02 .contentmain1 { }
.Home06-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home06-heading02 {font-size:24px; line-height:1.2; color:#cccccc; white-space:normal; vertical-align:middle; font-weight:bold; }
.Home07-Container01 { margin:0 0 5px; }
.Home07-Container01 .dnntitle { padding:0px 0 0px; text-align:left; margin-bottom:0px; font-weight:normal;}
.Home07-Container01 .contentmain1 { }
.Home07-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home07-heading01 { font-size:16px; color:#cccccc; line-height:1.2; font-weight:bold; white-space:normal; vertical-align:middle; padding:0px; margin:0px; }
.Home07-heading01:after { content:""; border-bottom:5px solid #333333; width:60px; display:block; margin:10px 0 22px;}
.Home08-Container01 { margin:0 0 5px; }
.Home08-Container01 .dnntitle { padding:0px 0 8px; text-align:left; margin-bottom:15px; font-weight:normal;}
.Home08-Container01 .contentmain1 { }
.Home08-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home08-heading01 { font-size:24px; color:#cccccc; line-height:1.2; white-space:normal; vertical-align:middle; padding:0px; margin:0px; }
.Home10-Container01 { margin:0 0 5px; }
.Home10-Container01 .dnntitle { padding:0px 0 8px; text-align:left; margin-bottom:15px; font-weight:normal;}
.Home10-Container01 .contentmain1 { }
.Home10-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home10-heading01 { font-size:18px; color:#ffffff; line-height:1.2; white-space:normal; vertical-align:middle; padding:0px; margin:0px; }
.Home10-heading01:after { content:""; border-bottom:1px solid #14e7c9; width:30px; display:block; margin:15px 0 0px;}
.Home12-Container01 { margin-bottom:5px; }
.Home12-Container01 .dnntitle { white-space:nowrap; text-align:center; padding:0px 0 15px; }
.Home12-Container01 .contentmain1 { }
.Home12-Container01 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home12-heading01 { font-size:21px;line-height:1.2;color:#000000; vertical-align:middle; font-weight:normal; letter-spacing:4px;}
.Home12-heading01:after { content:""; border-bottom:1px solid #000000; width:37px; display:block; margin:25px auto 10px;}
.Home12-Container02 { margin-bottom:5px; }
.Home12-Container02 .dnntitle { white-space:nowrap; text-align:left; padding:0px 0 15px; }
.Home12-Container02 .contentmain1 { }
.Home12-Container02 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home12-heading02 { font-size:22px;line-height:1.2;color:#000000; vertical-align:middle; font-weight:normal; letter-spacing:4px;}
.Home13-Container01 { margin-bottom:5px; }
.Home13-Container01 .dnntitle { white-space:nowrap; padding:0px 0 40px; text-align:center; }
.Home13-Container01 .contentpane { padding:5px 0px 0px 0px; text-align:left; vertical-align:top; clear:both; }
.Home13-heading01 { font-size:24px; color:#000000; line-height:1.2; white-space:normal; vertical-align:middle; font-weight:bold; padding:0px; margin:0px; position:relative;}
.Home13-heading01:before { content:""; border-left:1px solid #000000; width:0px; position:absolute; left:-38px; top:8px; bottom:5px; }
.Home13-heading01:after { content:""; border-left:1px solid #000000; width:0px; position:absolute; right:-38px; top:8px; bottom:5px;}
.Home14-Container01 { margin-bottom:5px; }
.Home14-Container01 .dnntitle { text-align:center; padding:0px 0 22px; }
.Home14-Container01 .contentmain1 > div { padding:0px 0 26px; }
.Home14-Container01 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home14-heading01 { font-size:28px;line-height:1.2;color:#666666; vertical-align:middle; font-weight:normal; letter-spacing:4px;}
.Home14-Container01:after { content:""; width:400px; max-width:80%; display:block; border-bottom:1px solid #dbdbdb; margin:-1px auto 0; }
.Home14-Container01 .contentmain1:after { content:""; width:106px; max-width:30%; display:block; border-bottom:1px solid #3b9cf7; margin:0 auto ; position:relative; z-index:1; }
.Home14-Container02 { margin-bottom:5px; }
.Home14-Container02 .dnntitle { text-align:left; padding:0px 0 20px; }
.Home14-Container02 .contentmain1 { }
.Home14-Container02 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home14-Container02 .dnntitle .line { height:1px; background-color:#dbdbdb; display:block; margin-top:20px;}
.Home14-Container02 .dnntitle .line:after { height:1px; background-color:#3b9cf7; display:block; width:135px; max-width:50%; content:"";}
.Home14-heading02 { font-size:28px; line-height:1.2; color:#666666; vertical-align:middle; font-weight:normal;}
.Home14-Container03 { margin-bottom:5px; }
.Home14-Container03 .dnntitle { white-space:nowrap; text-align:left; padding:0px 0 20px; }
.Home14-Container03 .contentmain1 { }
.Home14-Container03 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home14-heading03 { font-size:22px; line-height:1.2; color:#f2f2f2; vertical-align:middle; font-weight:normal;}
.Home15-Container01 { margin-bottom:5px; }
.Home15-Container01 .dnntitle { white-space:nowrap; text-align:left; padding:0px 0 15px; }
.Home15-Container01 .contentmain1 { }
.Home15-Container01 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home15-heading01 { font-size:20px;line-height:1.2;color:#e5e5e5; vertical-align:middle; font-weight:normal;}
.Home15-Container01 img { margin-right:6px;}
.Home16-Container01 { margin-bottom:5px; }
.Home16-Container01 .dnntitle { white-space:nowrap; padding:0px 0 10px; text-align:center; }
.Home16-Container01 .contentmain1 { }
.Home16-Container01 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home16-heading01 { font-size:24px;line-height:1.2;color:#666666; white-space:normal; vertical-align:middle; }
.Home16-heading01:after { content:""; border-bottom:1px solid #666666; width:44px; display:block; margin:25px auto 10px;}
.Home16-Container02 { margin-bottom:5px; }
.Home16-Container02 .dnntitle { white-space:nowrap; text-align:left; padding:0px 0 30px; text-align:left; }
.Home16-Container02 .contentmain1 { }
.Home16-Container02 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home16-heading02 { font-size:25px;line-height:1.2;color:#ffffff; white-space:normal; vertical-align:middle; }
.Home17-Container01 { margin-bottom:5px; }
.Home17-Container01 .dnntitle { white-space:nowrap; text-align:left; padding:0px 0 10px; text-align:center; }
.Home17-Container01 .contentmain1 { }
.Home17-Container01 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home17-heading01 { font-size:24px;line-height:1.2;color:#666666; white-space:normal; vertical-align:middle; }
.Home17-Container02 { margin-bottom:5px;}
.Home17-Container02 .dnntitle { white-space:nowrap; text-align:left; padding:0px 20px; position:relative; display:inline-block; line-height:1; }
/* .Home17-Container02 .dnntitle:before { content:""; background:url(images/Home17-Container02.png); width:120px; height:20px; position:absolute; top:50%; right:100%; margin-top:-9px; }
.Home17-Container02 .dnntitle:after { content:""; background:url(images/Home17-Container02.png); width:120px; height:20px; position:absolute; top:50%; left:100%; margin-top:-9px; } */
.Home17-Container02 .contentmain1 { }
.Home17-Container02 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home17-Container02 .titleBox { width:100%; overflow:hidden; text-align:center;}
.Home17-heading02 { font-size:26px; line-height:1; color:#2e2e2e; white-space:normal; display:inline-block ; letter-spacing:2px; }
.Home17-Container03 { margin-bottom:5px; }
.Home17-Container03 .dnntitle { white-space:nowrap; text-align:left; padding:0px 0 15px; border-bottom:1px solid #dddddd; margin-bottom:10px; }
.Home17-Container03 .contentmain1 { }
.Home17-Container03 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home17-heading03 { font-size:24px;line-height:1.2;color:#2e2e2e; white-space:normal; vertical-align:middle; }
.Home17-Container04 { margin-bottom:5px; }
.Home17-Container04 .dnntitle { white-space:nowrap; text-align:left; padding:0px 0px 10px 0px; }
.Home17-Container04 .contentmain1 { }
.Home17-Container04 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home17-heading04 { font-size:18px; line-height:1.2; color:#FFF; white-space:normal; vertical-align:middle; }
.Home18-Container01 { margin:0 0 5px; }
.Home18-Container01 .dnntitle { white-space:nowrap; padding:0px 0 0px; text-align:center; }
.Home18-Container01 .contentmain1 { }
.Home18-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home18-heading01 { font-size:22px; line-height:1.2; color:#444444; white-space:normal; vertical-align:middle; font-weight:normal; margin:0px; display:inline-block; position:relative;}
.Home18-heading01:after { content:""; border-bottom:1px solid #009b85; width:126px; display:block; margin:20px auto 16px;}
.Home18-Container02 { margin:0 0 5px; }
.Home18-Container02 .dnntitle { white-space:nowrap; padding:0px 0 20px; margin-bottom:25px; text-align:left; border-bottom:2px solid #414141 }
.Home18-Container02 .contentmain1 { }
.Home18-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home18-heading02 { font-size:22px; line-height:1.2; color:#FFF; white-space:normal; vertical-align:middle; font-weight:normal; margin:0px; display:inline-block; position:relative;}
.Home21-Container01 { margin:0 0 5px; }
.Home21-Container01 .dnntitle { white-space:nowrap; padding:0px; margin-bottom:25px; text-align:left;}
.Home21-Container01 .contentmain1 { }
.Home21-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home21-heading01 { font-size:33px; line-height:1.2; white-space:normal; vertical-align:middle; font-weight:normal; margin:0px; display:inline-block; position:relative;}
.Home21-Container02 { margin:0 0 5px; }
.Home21-Container02 .dnntitle { white-space:nowrap; padding:0px; margin-bottom:25px; text-align:left;}
.Home21-Container02 .contentmain1 { }
.Home21-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home21-heading02 { font-size:33px; line-height:1.2; white-space:normal; vertical-align:middle; font-weight:normal; margin:0px; display:inline-block; position:relative;}
.Home21-Container02 .line {
width: 100px;
height: 1px;
margin: 28px 0 41px;
background-color: #0e2a36;
position: relative;
}
.Home21-Container02 .line:before {
content: "";
width: 6px;
height: 6px;
position: absolute;
top: -2px;
left: 0;
background-color: #0e2a36;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}
.Home21-Container02 .line:after {
content: "";
width: 6px;
height: 6px;
position: absolute;
top: -2px;
right: 0;
background-color: #0e2a36;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}
.Home21-Container03 { margin:0 0 5px; }
.Home21-Container03 .dnntitle { white-space:nowrap; padding:0px; margin-bottom:25px; text-align:left;}
.Home21-Container03 .contentmain1 { }
.Home21-Container03 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home21-heading03 { font-size:22px; line-height:1.2; white-space:normal; vertical-align:middle; font-weight:normal; margin:0px; display:inline-block; position:relative;}
.Home21-Container03 .line {
width: 95px;
height: 1px;
margin: 22px 0;
background-color: #474747;
position: relative;
}
.Home21-Container03 .line:before {
content: "";
width: 6px;
height: 6px;
position: absolute;
top: -2px;
left: 0;
background-color: #474747;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}
.Home21-Container03 .line:after {
content: "";
width: 6px;
height: 6px;
position: absolute;
top: -2px;
right: 0;
background-color: #474747;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}
.Home21-Container04 { margin:0 0 5px;padding: 10px 25px;}
.Home21-Container04 .dnntitle { white-space:nowrap; padding:0px; margin-bottom:0px; text-align:left;}
.Home21-Container04 .contentmain1 { }
.Home21-Container04 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home21-heading04 { font-size:15px; line-height:1.2; color:#fff !important; white-space:normal; vertical-align:middle; font-weight:normal; margin:0px; display:inline-block; position:relative;}
.Home21-Container04 .line {
width: 60px;
height: 1px;
margin: 20px 0;
background-color: #767676;
position: relative;
}
.Home21-Container04 .line:before {
content: "";
width: 4px;
height: 4px;
position: absolute;
top: -2px;
left: 0;
background-color: #767676;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}
.Home21-Container04 .line:after {
content: "";
width: 4px;
height: 4px;
position: absolute;
top: -2px;
right: 0;
background-color: #767676;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
}
.Home22-Container01 { margin:0 0 5px; }
.Home22-Container01 .dnntitle { white-space:nowrap; padding:0; text-align:center; margin:0; }
.Home22-Container01 .dnntitle img { display:block; margin:0 auto 28px; }
.Home22-Container01 .contentmain1 { }
.Home22-Container01 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home22-Container01 .line { height:1px; width:70px; background-color:#3b9cf7; margin:-1px auto 30px; position:relative; z-index:1;}
.Home22-Container01 h2 .Home22-heading01 { font-size: 30px;/*line-height: 1.2;color: #000000;white-space: normal;*/vertical-align: middle;
font-weight: normal;padding: 0px;margin: 0px;display: inline-block;padding: 0px 0px 24px;border-bottom: 1px solid #cccccc;}
.Home22-Container01 h2{
margin:0;
}
.Home22-Container02 { margin:0 0 5px; }
.Home22-Container02 .dnntitle { white-space:nowrap; padding:0; text-align:left; margin:0; }
.Home22-Container02 .contentmain1 { }
.Home22-Container02 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home22-Container02 .line { height:1px; width:70px; background-color:#3b9cf7; margin:-1px 0 30px; position:relative; z-index:1;}
.Home22-Container02 .Home22-heading02 { /*font-size: 30px;line-height: 1.2;color: #000000;white-space: normal;*/vertical-align: middle;font-weight: normal;padding: 0px;
margin: 0px; display: inline-block; padding: 0px 0px 24px; border-bottom: 1px solid #cccccc;}
.Home22-Container02 h3{ margin:0;}
.Home22-Container03 { margin-bottom:5px; }
.Home22-Container03 .dnntitle { text-align:left; padding:0px 0 20px; }
.Home22-Container03 .contentmain1 { }
.Home22-Container03 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home22-heading03 { font-size:30px; line-height:1.2; color:#f2f2f2; white-space:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; }
.Home23-Container01 { margin:0; }
.Home23-Container01 .dnntitle { white-space:nowrap; padding:0px; margin-bottom:25px; text-align:center;}
.Home23-Container01 .contentmain1 { }
.Home23-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home23-heading01 { font-size:30px; line-height:1.2; color:#333333 !important; white-space:normal; vertical-align:middle; font-weight:normal; margin:0px; display:inline-block; position:relative;}
.Home23-Container01 .line {
width:38px;
height:1px;
border-bottom:1px dotted #666;
margin:0 auto 25px;
}
.Home23-Container02 { margin:0; }
.Home23-Container02 .dnntitle { white-space:nowrap; padding:0px; margin-bottom:25px; text-align:left;}
.Home23-Container02 .contentmain1 { }
.Home23-Container02 .contentpane { padding:0px; vertical-align:top; clear:both; }
.Home23-Container02 .Home23-heading02 { font-size:24px; line-height:1.2; color:#fff; white-space:normal; vertical-align:middle; font-weight:normal; margin:0px; display:inline-block; position:relative;}
.Home24-Container01 { margin:0 ; }
.Home24-Container01 .dnntitle { white-space:nowrap; padding:0px 0 15px; text-align:left; }
.Home24-Container01 .contentmain1 { }
.Home24-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home24-heading01 { font-size:20px; line-height:1.2; color:#333333; white-space:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:0.5px; }
.Home24-Container02 { margin:0 ; }
.Home24-Container02 .dnntitle { white-space:nowrap; padding:0px 0 15px; text-align:center; }
.Home24-Container02 .contentmain1 { }
.Home24-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home24-heading02 { font-size:24px; line-height:1.2; color:#333333; white-space:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:2px; }
.Home24-Container02 .dnntitle .line { display:inline-block; position:relative; margin:0px 95px;}
.Home24-heading02:before {
position: absolute;
content: "";
width: 10px;
height: 10px;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
top: 50%;
left: 0;
margin: -4px 0 0 -90px;
background-color: #1e7ad8;
background: #1e7ad8;
background: -moz-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -webkit-gradient(linear,left bottom,right top,color-stop(0%,#1e7ad8),color-stop(100%,#1ed6d8));
background: -webkit-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -o-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -ms-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
}
.Home24-heading02:after {
position: absolute;
content: "";
width: 10px;
height: 10px;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
top: 50%;
right: 0;
margin: -4px -90px 0 0;
background-color: #1e7ad8;
background: #1e7ad8;
background: -moz-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -webkit-gradient(linear,left bottom,right top,color-stop(0%,#1e7ad8),color-stop(100%,#1ed6d8));
background: -webkit-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -o-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -ms-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
}
.Home24-Container02 .dnntitle .line:before {
position: absolute;
content: "";
width: 60px;
height: 1px;
top: 50%;
left: 0;
margin: 0 0 0 -80px;
background-color: #1e7ad8;
background: #1e7ad8;
background: -moz-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -webkit-gradient(linear,left bottom,right top,color-stop(0%,#1e7ad8),color-stop(100%,#1ed6d8));
background: -webkit-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -o-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -ms-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
}
.Home24-Container02 .dnntitle .line:after {
position: absolute;
content: "";
width: 60px;
height: 1px;
top: 50%;
right: 0;
margin: 0 -80px 0 0;
background-color: #1e7ad8;
background: #1e7ad8;
background: -moz-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -webkit-gradient(linear,left bottom,right top,color-stop(0%,#1e7ad8),color-stop(100%,#1ed6d8));
background: -webkit-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -o-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: -ms-linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
background: linear-gradient(30deg,#1e7ad8 0%,#1ed6d8 100%);
}
.Home24-Container03 { margin:0 ; }
.Home24-Container03 .dnntitle { white-space:nowrap; padding:0px 0 15px; text-align:left; }
.Home24-Container03 .contentmain1 { }
.Home24-Container03 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home24-heading03 { font-size:16px; line-height:1.2; color:#333333; white-space:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home25-Container01 { margin-bottom:5px; }
.Home25-Container01 .dnntitle { text-align:left; padding:0px 0 30px; }
.Home25-Container01 .contentmain1 { }
.Home25-Container01 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home25-heading01 { font-size:25px; line-height:1.2; color:#f2f2f2; white-space:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; }
.Home26-Container01 { margin:0 ; }
.Home26-Container01 .dnntitle { white-space:nowrap; padding:0px 0 15px; text-align:center; }
.Home26-Container01 .contentmain1 { }
.Home26-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home26-heading01 { font-size:20px; line-height:1.2; color:#333333; white-space:normal; font-weight:bold; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home26-heading01:after { content:""; display:block; margin:22px auto 10px; width:40px; border-bottom:1px dotted #ed474a; font-weight:bold; }
.Home26-Container02 { margin:0 ; }
.Home26-Container02 .dnntitle { white-space:nowrap; padding:0px 0 15px; text-align:left; }
.Home26-Container02 .contentmain1 { }
.Home26-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home26-heading02 { font-size:20px; line-height:1.2; color:#333333; white-space:normal; font-weight:bold; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home26-heading02:after { content:""; display:block; margin:22px 0 10px; width:40px; border-bottom:1px dotted #ed474a; font-weight:bold; }
.Home26-Container03 { margin:0 ; }
.Home26-Container03 .dnntitle { white-space:nowrap; padding:0px 0 15px; text-align:left; }
.Home26-Container03 .contentmain1 { }
.Home26-Container03 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home26-heading03 { font-size:18px; line-height:1.2; color:#dddddd; white-space:normal; font-weight:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home27-Container01 { margin:0; }
.Home27-Container01 .dnntitle { white-space:nowrap; padding:0px; margin-bottom:12px; text-align:left;}
.Home27-Container01 .contentmain1 { }
.Home27-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home27-heading01 { font-size:16px; line-height:1.2; white-space:normal; vertical-align:middle; font-weight:bold; margin:0px;position:relative;text-transform: uppercase;}
.Home27-Container01 > .line {
width:60px;
height:5px;
background: #333;
margin:0 0 30px;
}
.Home28-Container01 { margin:0; }
.Home28-Container01 .dnntitle { white-space:nowrap; padding:0px; margin-bottom:20px; text-align:left;}
.Home28-Container01 .contentmain1 { }
.Home28-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home28-heading01 { font-size:18px;color: #fff; line-height:1.2; white-space:normal; vertical-align:middle; font-weight:bold; margin:0px;position:relative;text-transform: uppercase;}
.Home29-Container01 { margin:0 0 5px; }
.Home29-Container01 .dnntitle { white-space:nowrap; padding:0; text-align:center; margin:0; }
.Home29-Container01 .dnntitle img { display:block; margin:0 auto 28px; }
.Home29-Container01 .contentmain1 { }
.Home29-Container01 .contentpane { padding:0 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home29-Container01 .line { height:2px; width:50px; background-color:#666666; margin:18px auto 25px; position:relative; z-index:1;}
.Home29-Container01 h2 .Home29-heading01 { /* font-size: 24px;line-height: 1.2;color: #666666; letter-spacing:1px;*/white-space: normal;vertical-align: middle;
padding: 0px;margin: 0px;display: inline-block;padding: 0px 0px 0; text-align:center;}
.Home29-Container01 h2{
margin:0;
}
.Home29-Container02 { margin:0 0 5px; }
.Home29-Container02 .dnntitle { white-space:nowrap; padding:0px 0 8px; }
.Home29-Container02 .contentmain1 { }
.Home29-Container02 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home29-heading02 {font-size:15px; line-height:1.2; color:#d7d7d7; white-space:normal; vertical-align:middle; font-weight:normal; padding:0px; margin:0px; }
.Home30-Container01 { margin:0; }
.Home30-Container01 .dnntitle { white-space:nowrap; padding:0px; margin-bottom:30px; text-align:left;}
.Home30-Container01 .contentmain1 { }
.Home30-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home30-heading01 {
font-size: 15px;
line-height:1.2;
white-space:normal;
vertical-align:middle;
font-weight:normal;
margin:0px;
position:relative;
text-transform: uppercase;
padding-left: 12px;
border-left: 4px solid #1086fc;
}
.Home31-Container01 { margin:0 0 5px; }
.Home31-Container01 .dnntitle { white-space:nowrap; padding:0; text-align:center; margin:0; }
.Home31-Container01 .dnntitle img { display:block; margin:0 auto 28px; }
.Home31-Container01 .contentmain1 { }
.Home31-Container01 .contentpane { padding:0 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home31-Container01 .line { height:3px; width:50px; background-color:#ff8726; margin:25px auto 30px; position:relative; z-index:1;}
.Home31-Container01 h3 .Home31-heading01 { white-space: normal;vertical-align: middle; text-transform:uppercase;
padding: 0px;margin: 0px;display: inline-block;padding: 0px 0px 0; }
.Home31-Container01 h3{
margin:0;
}
.Home31-Container02 { margin:0 0 5px; }
.Home31-Container02 .dnntitle { white-space:nowrap; padding:0px 0 30px 0; }
.Home31-Container02 .contentmain1 { }
.Home31-Container02 .contentpane { padding:0 0px 0px 0px; vertical-align:top; clear:both; }
.Home31-heading02 {font-size:18px; line-height:1.2; color:#cccccc; white-space:normal; vertical-align:middle; font-weight:normal; padding:0px; margin:0px; }
.Home32-Container01 { margin:0 ; }
.Home32-Container01 .dnntitle { white-space:nowrap; padding:0px 0 23px; text-align:left; }
.Home32-Container01 .contentmain1 { }
.Home32-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home32-heading01 { font-size:22px; line-height:1.2; color:#ffffff; white-space:normal; font-weight:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home33-Container01 { margin:0 ; }
.Home33-Container01 .dnntitle { white-space:nowrap; padding:0px 0 23px; text-align:left; }
.Home33-Container01 .contentmain1 { }
.Home33-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home33-heading01 { font-size:22px; line-height:1.2; color:#ed474a; white-space:normal; font-weight:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home33-heading01:after { content:""; border-bottom:3px solid #aaaaaa; width:40px; display:block; margin:15px 0 0px}
.Home34-Container01 { margin:0 0 5px; }
.Home34-Container01 .dnntitle { white-space:nowrap; padding:0; text-align:left; margin:0; }
.Home34-Container01 .contentmain1 { }
.Home34-Container01 .contentpane { padding:0 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home34-Container01 .line { height:2px; width:50px; background-color:#3b9cf7; margin:20px 0 30px; position:relative; z-index:1;}
.Home34-Container01 .Home34-heading01 {white-space: normal;vertical-align: middle;padding: 0px;margin: 0px;display: inline-block;padding: 0px 0px 0;color: #033e89;font-size:20px;}
.Home35-Container01 { margin:0 ; }
.Home35-Container01 .dnntitle { white-space:nowrap; padding:0px 0 33px; text-align:left; }
.Home35-Container01 .contentmain1 { }
.Home35-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home35-heading01 { font-size:24px; line-height:1.2; color:#ffffff; white-space:normal; font-weight:normal;font-weight:lighter; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home35-heading01:after { content:""; border-bottom:1px solid #3cceda; width:70px; display:block; margin:24px 0 0px}
.Home36-Container01 { margin:0 ; }
.Home36-Container01 .dnntitle { white-space:nowrap; padding:0px 0 20px;margin: 0 0 18px; text-align:left; position: relative;}
.Home36-Container01 .dnntitle:before { content: "";height: 1px;width: 88px;background: #303030;position: absolute;left: 0;bottom: 0;}
.Home36-Container01 .contentmain1 { }
.Home36-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home36-heading01 { font-size:22px; line-height:1.2; color:#ffffff; white-space:normal; font-weight:normal;vertical-align:middle; margin:0px; letter-spacing:0px; }
.Home37-Container01 { margin-bottom:5px; }
.Home37-Container01 .dnntitle { white-space:nowrap; margin:0; padding:0 0 0; text-align:center; line-height:1.3;}
.Home37-Container01 .contentmain1 { }
.Home37-Container01 .contentpane { padding:5px 0px 3px 0px; text-align:left; vertical-align:top; clear:both; }
.Home37-Container01 .dnntitle .line { width:177px; height:18px; margin:20px auto 25px; position:relative;}
.Home37-Container01 .dnntitle .line .line_l,
.Home37-Container01 .dnntitle .line .line_r { width:78px; height:1px; background-color:#009b85; position:absolute; top:7px; left:0;}
.Home37-Container01 .dnntitle .line .line_r { left:auto; right:0}
.Home37-Container01 .dnntitle .line .line_m {
width:15px;
height:15px;
border-right:1px solid #009b85;
border-bottom:1px solid #009b85;
position:absolute;
top:0;
left:50%;
margin-left:-7px;
transform:rotate(45deg);
-ms-transform:rotate(45deg); /* IE 9 */
-moz-transform:rotate(45deg); /* Firefox */
-webkit-transform:rotate(45deg); /* Safari and Chrome */
-o-transform:rotate(45deg); /* Opera */
}
.Home37-Container01 .dnntitle .line .line_m:before{
content:"";
width:7px;
height:7px;
background-color:#009b85;
position:absolute;
left:0;
top:0;
margin:2px;
}
.Home37-Container01 .dnntitle h3{ margin:0;}
.Home37-Container02 { margin:0 ; }
.Home37-Container02 .dnntitle { white-space:nowrap; padding:0px 0 23px; text-align:left; }
.Home37-Container02 .contentmain1 { }
.Home37-Container02 .contentpane { padding:0 0px 0px 0px; vertical-align:top; clear:both; }
.Home37-heading02 { font-size:20px; line-height:1.2; color:#f4f4f4; white-space:normal; font-weight:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home38-Container01 { margin:0 ; }
.Home38-Container01 .dnntitle { white-space:nowrap; padding:0px 0 25px; text-align:left; }
.Home38-Container01 .contentmain1 { }
.Home38-Container01 .contentpane { padding:0 0px 0px 0px; vertical-align:top; clear:both; }
.Home38-heading01 { font-size:30px; line-height:1.2; white-space:normal; font-weight:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home38-Container01 .dnntitle h2 {margin: 0 0 23px;}
.Home38-Container01 .dnntitle .line {
width: 60px;
height: 2px;
background: #3CCEDA;
}
.Home38-Container02 { margin:0 ; }
.Home38-Container02 .dnntitle { white-space:nowrap; padding:0px 0 32px; text-align:left; }
.Home38-Container02 .contentmain1 { }
.Home38-Container02 .contentpane { padding:0 0px 0px 0px; vertical-align:top; clear:both; }
.Home38-heading02 { font-size:24px; line-height:1.2; color:#ddd; white-space:normal; font-weight:normal; vertical-align:middle; margin:0px; position:relative; display:inline-block; letter-spacing:1px; }
.Home38-Container02 .dnntitle h2 {margin: 0 0 23px;}
.Home38-Container02 .dnntitle .line {
width: 60px;
height: 2px;
background: #3CCEDA;
}
.Home39-Container01 { margin:0 ; }
.Home39-Container01 .dnntitle { white-space:nowrap; padding:0px 0 20px;margin: 0 0 0; text-align:left; position: relative;}
.Home39-Container01 .contentmain1 { }
.Home39-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home39-heading01 { font-size:24px; line-height:1; color:#ffffff; white-space:normal; font-weight:normal;vertical-align:middle; margin:0px; letter-spacing:0px; }
.Home40-Container01 { margin:0 ; }
.Home40-Container01 .dnntitle { white-space:nowrap; padding:0px 0 20px;margin: 0 0 0; text-align:left; position: relative;}
.Home40-Container01 .contentmain1 { }
.Home40-Container01 .contentpane { padding:0px; vertical-align:top; clear:both; }
.Home40-heading01 { font-size:15px; line-height:1; color:#ffffff; white-space:normal; font-weight:bold;vertical-align:middle; margin:0px; letter-spacing:0px;text-transform: uppercase; }
.Home41-Container01 { margin:0 ; }
.Home41-Container01 .dnntitle { white-space:nowrap; padding:0px 0 20px;margin: 0 0 0; text-align:left; position: relative;}
.Home41-Container01 .contentmain1 { }
.Home41-Container01 .contentpane { padding:5px 0px 0px 0px; vertical-align:top; clear:both; }
.Home41-heading01 { font-size:15px; line-height:1; color:#d7d7d7; white-space:normal; font-weight:normal;vertical-align:middle; margin:0px; letter-spacing:3px; }
.Contactus01-Container01 { margin:0 auto; }
.Contactus01-Container01 .dnntitle { white-space:nowrap; padding:0px 0 0; text-align:center; position:relative;}
.Contactus01-Container01 .contentmain1 { }
.Contactus01-Container01 .contentpane { padding:0 0px 0px 0px; vertical-align:top; clear:both; }
.Contactus01-Container01 .dnntitle h4{ margin:0;}
.Contactus02-Container01 { margin:0 auto; }
.Contactus02-Container01 .dnntitle { white-space:nowrap; padding:0px 0 0; text-align:left; position:relative; }
.Contactus02-Container01 .contentmain1 { }
.Contactus02-Container01 .contentpane { padding:0 0px 0px 0px; vertical-align:top; clear:both; }
.Contactus02-Container01 .dnntitle h4 { margin:0; font-weight:normal; color:#fff; font-size:24px; line-height:1;}
.Contactus02-Container01 .Normal { color:#FFF;}
.Contactus01-heading01{font-size:30px; line-height:1.2; color:#333333; white-space:normal; vertical-align:middle; font-weight:bold; margin:0px; display:inline-block; position:relative; padding:0px 27px; }
.Contactus01-heading01:before{ content:""; border-left:3px solid #20a3f0; height:22px; margin:0; position:absolute; left:0; top:50%; margin-top:-11px; }
.Contactus01-heading01:after{ content:""; border-right:3px solid #20a3f0; height:22px; margin:0; position:absolute; right:0; top:50%; margin-top:-11px; }
.Contactus02-heading01:after{content: "";width: 66px; display: block; border-bottom: 2px solid rgba(255,255,255,0.5);margin: 30px 0 34px; color:#fff;}
@media only screen and (max-width: 767px) {
.Home38-heading01 {font-size: 22px;}
.Home38-Container01 .dnntitle h2 {margin: 0 0 15px;}
.Home38-heading02 {font-size: 22px;}
.Home38-Container02 .dnntitle h2 {margin: 0 0 15px;}
}

40
niayesh/css Normal file
View File

@@ -0,0 +1,40 @@
/* cyrillic-ext */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/raleway/v37/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCFPrEHJA.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/raleway/v37/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCMPrEHJA.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/raleway/v37/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCHPrEHJA.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/raleway/v37/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCGPrEHJA.woff2) format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Raleway';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/raleway/v37/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrE.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

2293
niayesh/custom.js.download Normal file

File diff suppressed because it is too large Load Diff

BIN
niayesh/dana.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

1554
niayesh/default.css Normal file

File diff suppressed because it is too large Load Diff

BIN
niayesh/dey.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

1
niayesh/dnn.js.download Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,305 @@
(function(window, $) {
function parseUri (str) {
var o = parseUri.options,
m = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
uri = {},
i = 14;
while (i--) uri[o.key[i]] = m[i] || "";
uri[o.q.name] = {};
uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) {
if ($1) uri[o.q.name][$1] = $2;
});
return uri;
};
parseUri.options = {
strictMode: false,
key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
q: {
name: "queryKey",
parser: /(?:^|&)([^&=]*)=?([^&]*)/g
},
parser: {
strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
}
};
var mobileBrowser = (function(){
var check = false;
(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check = true})(navigator.userAgent||navigator.vendor||window.opera);
return check;
})();
window.dnnModal = {
load: function () {
try {
if (parent.location.href !== undefined) {
var windowTop = parent;
var parentTop = windowTop.parent;
if (typeof(parentTop.$find) != "undefined") {
if (location.href.indexOf('popUp') == -1 || windowTop.location.href.indexOf("popUp") > -1) {
var popup = windowTop.jQuery("#iPopUp");
var refresh = popup.dialog("option", "refresh");
var closingUrl = popup.dialog("option", "closingUrl");
var width = popup.dialog("option", "minWidth");
var height = popup.dialog("option", "minHeight");
var showReturn = popup.dialog("option", "showReturn");
if (!closingUrl) {
closingUrl = location.href;
}
if (popup.dialog('isOpen') === true) {
popup.dialog("option", {
close: function(event, ui) {
dnnModal.refreshPopup({
url: closingUrl,
width: width,
height: height,
showReturn: showReturn,
refresh: refresh
});
}
}).dialog('close');
}
} else {
windowTop.jQuery("#iPopUp").dialog({ autoOpen: false, title: document.title });
}
}
}
return false;
} catch(err) {
return true;
}
},
show: function(url, showReturn, height, width, refresh, closingUrl) {
var $modal = $("#iPopUp");
if ($modal.length) {
// for ie9+
$modal[0].src = 'about:blank';
$modal.remove();
}
$modal = $("<iframe id=\"iPopUp\" name=\"iPopUp\" src=\"about:blank\" scrolling=\"auto\" frameborder=\"0\"></iframe>");
$(document.body).append($modal);
$(document).find('html').css('overflow', 'hidden');
var ss = document.styleSheets;
var isAdmin = false;
for(var i = 0, max = ss.length; i < max; i++){
var cssHref = ss[i].href;
if(typeof cssHref == 'string' && cssHref.indexOf('admin.css') > -1){
isAdmin = true;
break;
}
}
var isMobile = !isAdmin && ($(window).width() < 481 || mobileBrowser);
if (isMobile) $('html').addClass('mobileView'); else $('html').removeClass('mobileView');
var mobileWidth = 0;
var showLoading = function() {
var loading = $("<div class=\"dnnLoading\"></div>");
loading.css({
width: $modal.width(),
height: $modal.height()
});
$modal.before(loading);
};
var hideLoading = function() {
$modal.prev(".dnnLoading").remove();
};
var dialogOpened = function () {
$modal.bind("load", function() {
hideLoading();
var iframe = document.getElementById("iPopUp");
var currentHost = window.location.hostname.toLowerCase();
var currentPort = window.location.port.toLowerCase();
var uri = parseUri(url);
var iframeHost = uri.host.toLowerCase();
var iframePort = uri.port.toLowerCase();
iframeHost = iframeHost? iframeHost : currentHost;
iframePort = iframePort? iframePort : currentPort;
var isSameDomain = currentHost === iframeHost && currentPort === iframePort;
if(isSameDomain){
try{
if (isMobile) {
var iframeBody = iframe.contentDocument.body,
iframeHtml = iframe.contentDocument.documentElement;
iframeHtml.style.width = mobileWidth + 'px';
iframeBody.className += 'mobileView dnnFormPopup dnnFormPopupMobileView';
var iframeHeight = Math.max(iframeBody.scrollHeight, iframeBody.offsetHeight, iframeHtml.clientHeight, iframeHtml.scrollHeight, iframeHtml.offsetHeight);
$modal.css('height', iframeHeight + 100)
.dialog('option', 'position', { my: "top", at: "top" });
}
iframe.contentWindow.dnnModal.show = function (sUrl, sShowReturn, sHeight, sWidth, sRefresh, sClosingUrl) {
var windowTop = parent;
var popup = windowTop.jQuery("#iPopUp");
if (!sClosingUrl) {
sClosingUrl = location.href;
}
if (popup.dialog('isOpen')) {
popup.dialog("option", {
close: function () {
parent.dnnModal.show(sUrl, sShowReturn, sHeight, sWidth, sRefresh, sClosingUrl);
}
}).dialog('close');
}
};
}
catch(e){
}
}
});
$modal[0].src = url;
if (typeof $.ui.dialog.prototype.options.open === 'function')
$.ui.dialog.prototype.options.open.apply(this, arguments);
};
if (!isMobile) {
$modal.dialog({
modal: true,
autoOpen: true,
dialogClass: "dnnFormPopup",
position: { my: "center", at: "center" },
minWidth: width,
minHeight: height,
maxWidth: 1920,
maxHeight: 1080,
resizable: true,
closeOnEscape: true,
refresh: refresh,
showReturn: showReturn,
closingUrl: closingUrl,
open: dialogOpened,
close: function() { window.dnnModal.closePopUp(refresh, closingUrl); }
})
.width(width - 11)
.height(height - 11);
if ($modal.parent().find('.ui-dialog-title').next('a.dnnModalCtrl').length === 0) {
var $dnnModalCtrl = $('<a class="dnnModalCtrl"></a>');
$modal.parent().find('.ui-dialog-titlebar-close').wrap($dnnModalCtrl);
var $dnnToggleMax = $('<a href="#" class="dnnToggleMax"><span>Max</span></a>');
$modal.parent().find('.ui-dialog-titlebar-close').before($dnnToggleMax);
$dnnToggleMax.click(function (e) {
e.preventDefault();
var $window = $(window),
newHeight,
newWidth,
JQUERY_UI_HEIGHT_SHRINK_OFFSET = 100;
if ($modal.data('isMaximized')) {
newHeight = $modal.data('height') + JQUERY_UI_HEIGHT_SHRINK_OFFSET;
newWidth = $modal.data('width');
$modal.data('isMaximized', false);
} else {
$modal.data('height', $modal.dialog("option", "minHeight"))
.data('width', $modal.dialog("option", "minWidth"));
newHeight = $window.height() - 46;
newWidth = $window.width() - 40;
$modal.data('isMaximized', true);
}
$modal.dialog("option", "height", newHeight);
$modal.dialog("option", "width", newWidth);
$modal.dialog("option", "position", { my: "center", at: "center", of: window });
});
}
} else {
mobileWidth = $(window).width() - 100;
var originalHeightCss = $('body').css('height');
$modal.dialog({
modal: true,
autoOpen: true,
dialogClass: "dnnFormPopup dnnFormPopupMobileView",
resizable: false,
closeOnEscape: true,
refresh: refresh,
showReturn: showReturn,
closingUrl: closingUrl,
minHeight: height,
position: { my: "top", at: "top" },
draggable: false,
open: function() {
$('#Form').hide();
$('body').css('height', 'auto');
$modal.parent().css({ 'width': 'auto', 'left': '0', 'right': '0', 'top': '0', 'box-shadow': 'none' });
window.scrollTo(0, 0);
dialogOpened();
},
close: function() {
$('#Form').show();
if(originalHeightCss)
$('body').css('height', originalHeightCss);
window.scrollTo(0, 0);
window.dnnModal.closePopUp(refresh, closingUrl);
}
});
}
showLoading();
if (showReturn.toString() === "true") {
return false;
}
},
closePopUp: function(refresh, url) {
var windowTop = parent; //needs to be assign to a varaible for Opera compatibility issues.
var popup = windowTop.jQuery("#iPopUp");
if (typeof refresh === "undefined" || refresh == null) {
refresh = true;
}
if (refresh.toString() == "true") {
if (typeof url === "undefined" || url == "") {
url = windowTop.location.href;
}
windowTop.location.href = url;
popup.hide();
} else {
popup.dialog('option', 'close', null).dialog('close');
}
$(windowTop.document).find('html').css('overflow', '');
},
refreshPopup: function(options) {
var windowTop = parent;
var windowTopTop = windowTop.parent;
if (windowTop.location.href !== windowTopTop.location.href &&
windowTop.location.href !== options.url) {
windowTopTop.dnnModal.show(options.url, options.showReturn, options.height, options.width, options.refresh, options.closingUrl);
} else {
dnnModal.closePopUp(options.refresh, options.url);
}
}
};
window.dnnModal.load();
}(window, jQuery));

View File

@@ -0,0 +1,50 @@
(function ($) {
$.dnnSF = function (moduleId) {
// To avoid scope issues, use 'base' instead of 'this'
// to reference this class from internal events and functions.
var base = this;
base.getServiceRoot = function (moduleName) {
var serviceRoot = dnn.getVar("sf_siteRoot", "/");
serviceRoot += "API/" + moduleName + "/";
return serviceRoot;
};
base.getTabId = function () {
return dnn.getVar("sf_tabId", -1);
};
base.getModuleId = function () {
return moduleId;
};
base.setModuleHeaders = function (xhr) {
var tabId = base.getTabId();
if (tabId > -1) {
xhr.setRequestHeader("ModuleId", base.getModuleId());
xhr.setRequestHeader("TabId", tabId);
}
var afValue = base.getAntiForgeryValue();
if (afValue) {
xhr.setRequestHeader("RequestVerificationToken", afValue);
}
};
base.getAntiForgeryKey = function () {
return "__RequestVerificationToken";
};
base.getAntiForgeryValue = function () {
return $('[name="__RequestVerificationToken"]').val();
};
return base;
};
$.ServicesFramework = function (moduleId) {
return new $.dnnSF(moduleId);
};
})(jQuery);
//----------------------------

518
niayesh/dnncore.js.download Normal file
View File

@@ -0,0 +1,518 @@
//General
//for example: instead of each module writing out script found in moduleMaxMin_OnClick have the functionality cached
//
var DNN_COL_DELIMITER = String.fromCharCode(16);
var DNN_ROW_DELIMITER = String.fromCharCode(15);
var __dnn_m_bPageLoaded = false;
if (window.addEventListener)
window.addEventListener("load", __dnn_Page_OnLoad, false);
else
window.attachEvent("onload", __dnn_Page_OnLoad);
function __dnn_ClientAPIEnabled()
{
return typeof(dnn) != 'undefined' && typeof (dnn.dom) != 'undefined';
}
function __dnn_Page_OnLoad()
{
if (__dnn_ClientAPIEnabled())
{
dnn.dom.attachEvent(window, 'onscroll', __dnn_bodyscroll);
}
__dnn_m_bPageLoaded = true;
}
function __dnn_KeyDown(iKeyCode, sFunc, e)
{
if (e == null)
e = window.event;
if (e.keyCode == iKeyCode)
{
eval(unescape(sFunc));
return false;
}
}
function __dnn_bodyscroll()
{
var oF=document.forms[0];
if (__dnn_ClientAPIEnabled() && __dnn_m_bPageLoaded && typeof(oF.ScrollTop) != 'undefined')
oF.ScrollTop.value=document.documentElement.scrollTop ? document.documentElement.scrollTop : dnn.dom.getByTagName("body")[0].scrollTop;
}
function __dnn_setScrollTop(iTop)
{
if (__dnn_ClientAPIEnabled())
{
if (iTop == null)
iTop = document.forms[0].ScrollTop.value;
var sID = dnn.getVar('ScrollToControl');
if (sID != null && sID.length > 0)
{
var oCtl = dnn.dom.getById(sID);
if (oCtl != null)
{
iTop = dnn.dom.positioning.elementTop(oCtl);
dnn.setVar('ScrollToControl', '');
}
}
if (document.getElementsByTagName("html")[0].style["overflow"] != "hidden") {
window.scrollTo(0, iTop);
}
}
}
//Focus logic
function __dnn_SetInitialFocus(sID)
{
var oCtl = dnn.dom.getById(sID);
if (oCtl != null && __dnn_CanReceiveFocus(oCtl))
oCtl.focus();
}
function __dnn_CanReceiveFocus(e)
{
//probably should call getComputedStyle for classes that cause item to be hidden
if (e.style.display != 'none' && e.tabIndex > -1 && e.disabled == false && e.style.visible != 'hidden')
{
var eParent = e.parentElement;
while (eParent != null && eParent.tagName != 'BODY')
{
if (eParent.style.display == 'none' || eParent.disabled || eParent.style.visible == 'hidden')
return false;
eParent = eParent.parentElement;
}
return true;
}
else
return false;
}
//Max/Min Script
function __dnn_ContainerMaxMin_OnClick(oLnk, sContentID)
{
var oContent = dnn.dom.getById(sContentID);
if (oContent != null)
{
var oBtn = oLnk.childNodes[0];
var sContainerID = dnn.getVar('containerid_' + sContentID); //oLnk.getAttribute('containerid');
var sCookieID = dnn.getVar('cookieid_' + sContentID); //oLnk.getAttribute('cookieid');
var sCurrentFile = oBtn.src.toLowerCase().substr(oBtn.src.lastIndexOf('/'));
var sMaxFile;
var sMaxIcon;
var sMinIcon;
if (dnn.getVar('min_icon_' + sContainerID))
sMinIcon = dnn.getVar('min_icon_' + sContainerID);
else
sMinIcon = dnn.getVar('min_icon');
if (dnn.getVar('max_icon_' + sContainerID))
sMaxIcon = dnn.getVar('max_icon_' + sContainerID);
else
sMaxIcon = dnn.getVar('max_icon');
sMaxFile = sMaxIcon.toLowerCase().substr(sMaxIcon.lastIndexOf('/'));
var iNum = 5;
var animf = dnn.getVar('animf_' + sContentID);
if (animf != null)
iNum = new Number(animf);
if (sCurrentFile == sMaxFile)
{
oBtn.src = sMinIcon;
//oContent.style.display = '';
dnn.dom.expandElement(oContent, iNum);
oBtn.title = dnn.getVar('min_text');
if (sCookieID != null)
{
if (dnn.getVar('__dnn_' + sContainerID + ':defminimized') == 'true')
dnn.dom.setCookie(sCookieID, 'true', 365);
else
dnn.dom.deleteCookie(sCookieID);
}
else
dnn.setVar('__dnn_' + sContainerID + '_Visible', 'true');
}
else
{
oBtn.src = sMaxIcon;
//oContent.style.display = 'none';
dnn.dom.collapseElement(oContent, iNum);
oBtn.title = dnn.getVar('max_text');
if (sCookieID != null)
{
if (dnn.getVar('__dnn_' + sContainerID + ':defminimized') == 'true')
dnn.dom.deleteCookie(sCookieID);
else
dnn.dom.setCookie(sCookieID, 'false', 365);
}
else
dnn.setVar('__dnn_' + sContainerID + '_Visible', 'false');
}
return true; //cancel postback
}
return false; //failed so do postback
}
function __dnn_Help_OnClick(sHelpID)
{
var oHelp = dnn.dom.getById(sHelpID);
if (oHelp != null)
{
if (oHelp.style.display == 'none')
oHelp.style.display = '';
else
oHelp.style.display = 'none';
return true; //cancel postback
}
return false; //failed so do postback
}
function __dnn_SectionMaxMin(oBtn, sContentID)
{
var oContent = dnn.dom.getById(sContentID);
if (oContent != null)
{
var sMaxIcon = oBtn.getAttribute('max_icon');
var sMinIcon = oBtn.getAttribute('min_icon');
var bCallback = oBtn.getAttribute('userctr') != null;
var sVal;
if (oContent.style.display == 'none')
{
oBtn.src = sMinIcon;
oContent.style.display = '';
if (bCallback)
sVal = 'True';
else
dnn.setVar(oBtn.id + ':exp', 1);
}
else
{
oBtn.src = sMaxIcon;
oContent.style.display = 'none';
if (bCallback)
sVal = 'False';
else
dnn.setVar(oBtn.id + ':exp', 0);
}
if (bCallback)
dnncore.setUserProp(oBtn.getAttribute('userctr'), oBtn.getAttribute('userkey'), sVal, null);
return true; //cancel postback
}
return false; //failed so do postback
}
//Drag N Drop
function __dnn_enableDragDrop()
{
var aryConts = dnn.getVar('__dnn_dragDrop').split(";");
var aryTitles;
for (var i=0; i < aryConts.length; i++)
{
aryTitles = aryConts[i].split(" ");
if (aryTitles[0].length > 0)
{
var oCtr = dnn.dom.getById(aryTitles[0]);
var oTitle = dnn.dom.getById(aryTitles[1]);
if (oCtr != null && oTitle != null)
{
oCtr.setAttribute('moduleid', aryTitles[2]);
dnn.dom.positioning.enableDragAndDrop(oCtr, oTitle, '__dnn_dragComplete()', '__dnn_dragOver()');
}
}
}
}
var __dnn_oPrevSelPane;
var __dnn_oPrevSelModule;
var __dnn_dragEventCount=0;
function __dnn_dragOver()
{
__dnn_dragEventCount++;
if (__dnn_dragEventCount % 75 != 0) //only calculate position every 75 events
return;
var oCont = dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);
var oPane = __dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);
if (__dnn_oPrevSelPane != null) //reset previous pane's border
__dnn_oPrevSelPane.pane.style.border = __dnn_oPrevSelPane.origBorder;
if (oPane != null)
{
__dnn_oPrevSelPane = oPane;
oPane.pane.style.border = '4px double ' + DNN_HIGHLIGHT_COLOR;
var iIndex = __dnn_getPaneControlIndex(oCont, oPane);
var oPrevCtl;
var oNextCtl;
for (var i=0; i<oPane.controls.length; i++)
{
if (iIndex > i && oPane.controls[i].id != oCont.id)
oPrevCtl = oPane.controls[i];
if (iIndex <= i && oPane.controls[i].id != oCont.id)
{
oNextCtl = oPane.controls[i];
break;
}
}
if (__dnn_oPrevSelModule != null)
dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border = __dnn_oPrevSelModule.origBorder;
if (oNextCtl != null)
{
__dnn_oPrevSelModule = oNextCtl;
dnn.dom.getNonTextNode(oNextCtl.control).style.borderTop = '5px groove ' + DNN_HIGHLIGHT_COLOR;
}
else if (oPrevCtl != null)
{
__dnn_oPrevSelModule = oPrevCtl;
dnn.dom.getNonTextNode(oPrevCtl.control).style.borderBottom = '5px groove ' + DNN_HIGHLIGHT_COLOR;
}
}
}
function __dnn_dragComplete()
{
var oCtl = dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);
var sModuleID = oCtl.getAttribute('moduleid');
if (__dnn_oPrevSelPane != null)
__dnn_oPrevSelPane.pane.style.border = __dnn_oPrevSelPane.origBorder;
if (__dnn_oPrevSelModule != null)
dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border = __dnn_oPrevSelModule.origBorder;
var oPane = __dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);
var iIndex;
if (oPane == null)
{
var oPanes = __dnn_Panes();
for (var i=0; i<oPanes.length; i++)
{
if (oPanes[i].id == oCtl.parentNode.id)
oPane = oPanes[i];
}
}
if (oPane != null)
{
iIndex = __dnn_getPaneControlIndex(oCtl, oPane);
__dnn_MoveToPane(oPane, oCtl, iIndex);
dnn.callPostBack('MoveToPane', 'moduleid=' + sModuleID, 'pane=' + oPane.paneName, 'order=' + iIndex * 2);
}
}
function __dnn_MoveToPane(oPane, oCtl, iIndex)
{
if (oPane != null)
{
var aryCtls = new Array();
for (var i=iIndex; i<oPane.controls.length; i++)
{
if (oPane.controls[i].control.id != oCtl.id)
aryCtls[aryCtls.length] = oPane.controls[i].control;
dnn.dom.removeChild(oPane.controls[i].control);
}
dnn.dom.appendChild(oPane.pane, oCtl);
oCtl.style.top=0;
oCtl.style.left=0;
oCtl.style.position = 'relative';
for (var i=0; i<aryCtls.length; i++)
{
dnn.dom.appendChild(oPane.pane, aryCtls[i]);
}
__dnn_RefreshPanes();
}
else
{
oCtl.style.top=0;
oCtl.style.left=0;
oCtl.style.position = 'relative';
}
}
function __dnn_RefreshPanes()
{
var aryPanes = dnn.getVar('__dnn_Panes').split(';');
var aryPaneNames = dnn.getVar('__dnn_PaneNames').split(';');
__dnn_m_aryPanes = new Array();
for (var i=0; i<aryPanes.length; i++)
{
if (aryPanes[i].length > 0)
__dnn_m_aryPanes[__dnn_m_aryPanes.length] = new __dnn_Pane(dnn.dom.getById(aryPanes[i]), aryPaneNames[i]);
}
}
var __dnn_m_aryPanes;
var __dnn_m_aryModules;
function __dnn_Panes()
{
if (__dnn_m_aryPanes == null)
{
__dnn_m_aryPanes = new Array();
__dnn_RefreshPanes();
}
return __dnn_m_aryPanes;
}
function __dnn_Modules(sModuleID)
{
if (__dnn_m_aryModules == null)
__dnn_RefreshPanes();
return __dnn_m_aryModules[sModuleID];
}
function __dnn_getMostSelectedPane(oContent)
{
var oCDims = new dnn.dom.positioning.dims(oContent);
var iTopScore=0;
var iScore;
var oTopPane;
for (var i=0; i<__dnn_Panes().length; i++)
{
var oPane = __dnn_Panes()[i];
var oPDims = new dnn.dom.positioning.dims(oPane.pane);
iScore = dnn.dom.positioning.elementOverlapScore(oPDims, oCDims);
if (iScore > iTopScore)
{
iTopScore = iScore;
oTopPane = oPane;
}
}
return oTopPane;
}
function __dnn_getPaneControlIndex(oContent, oPane)
{
if (oPane == null)
return;
var oCDims = new dnn.dom.positioning.dims(oContent);
var oCtl;
if (oPane.controls.length == 0)
return 0;
for (var i=0; i<oPane.controls.length; i++)
{
oCtl = oPane.controls[i];
var oIDims = new dnn.dom.positioning.dims(oCtl.control);
if (oCDims.t < oIDims.t)
return oCtl.index;
}
if (oCtl != null)
return oCtl.index+1;
else
return 0;
}
//Objects
function __dnn_Pane(ctl, sPaneName)
{
this.pane = ctl;
this.id = ctl.id;
this.controls = new Array();
this.origBorder = ctl.style.border;
this.paneName = sPaneName;
var iIndex = 0;
var strModuleOrder='';
for (var i=0; i<ctl.childNodes.length; i++)
{
var oNode = ctl.childNodes[i];
if (dnn.dom.isNonTextNode(oNode))
{
if (__dnn_m_aryModules == null)
__dnn_m_aryModules = new Array();
//if (oNode.tagName == 'A' && oNode.childNodes.length > 0)
// oNode = oNode.childNodes[0]; //DNN now embeds anchor tag
var sModuleID = oNode.getAttribute('moduleid');
if (sModuleID != null && sModuleID.length > 0)
{
strModuleOrder += sModuleID + '~';
this.controls[this.controls.length] = new __dnn_PaneControl(oNode, iIndex);
__dnn_m_aryModules[sModuleID] = oNode.id;
iIndex+=1;
}
}
}
this.moduleOrder = strModuleOrder;
}
function __dnn_PaneControl(ctl, iIndex)
{
this.control = ctl;
this.id = ctl.id;
this.index = iIndex;
this.origBorder = ctl.style.border;
}
function __dnn_ShowModalPage(urlPage) {
dnnModal.show(urlPage, /*showReturn*/true, 550, 950, true, '');
}
//move towards dnncore ns. right now only for personalization
function __dnncore()
{
this.GetUserVal = 0;
this.SetUserVal = 1;
}
__dnncore.prototype = {
getUserProp: function(sNameCtr, sKey, pFunc) {
this._doUserCallBack(dnncore.GetUserVal, sNameCtr, sKey, null, new dnncore.UserPropArgs(sNameCtr, sKey, pFunc));
},
setUserProp: function(sNameCtr, sKey, sVal, pFunc) {
this._doUserCallBack(dnncore.SetUserVal, sNameCtr, sKey, sVal, new dnncore.UserPropArgs(sNameCtr, sKey, pFunc));
},
_doUserCallBack: function(iType, sNameCtr, sKey, sVal, pFunc) {
if (dnn && dnn.xmlhttp)
{
var sPack = iType + COL_DELIMITER + sNameCtr + COL_DELIMITER + sKey + COL_DELIMITER + sVal;
dnn.xmlhttp.doCallBack('__Page',sPack,dnncore._callBackSuccess,pFunc,dnncore._callBackFail,null,true,null,0);
}
else
alert('Client Personalization not enabled');
},
_callBackSuccess: function (result, ctx, req) {
if (ctx.pFunc)
ctx.pFunc(ctx.namingCtr, ctx.key, result);
},
_callBackFail: function (result, ctx) {
window.status = result;
}
}
__dnncore.prototype.UserPropArgs = function(sNameCtr, sKey, pFunc)
{
this.namingCtr = sNameCtr;
this.key = sKey;
this.pFunc = pFunc;
}
var dnncore = new __dnncore();

File diff suppressed because one or more lines are too long

BIN
niayesh/dr-faraji-t.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

51
niayesh/embed.html Normal file

File diff suppressed because one or more lines are too long

BIN
niayesh/en-US.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
niayesh/fa-IR.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
niayesh/fesahat.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

4
niayesh/font-awesome.min.css vendored Normal file

File diff suppressed because one or more lines are too long

2208
niayesh/font-icon.css Normal file

File diff suppressed because it is too large Load Diff

232
niayesh/frame.html Normal file

File diff suppressed because one or more lines are too long

BIN
niayesh/ghalb-cover.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
niayesh/icon-aparat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

1
niayesh/iframe-pic.min.css vendored Normal file

File diff suppressed because one or more lines are too long

1315
niayesh/images.css Normal file

File diff suppressed because it is too large Load Diff

BIN
niayesh/imon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@@ -0,0 +1,83 @@
var mydnnLiveChatBaseData;
(function ($, Sys) {
$(document).ready(function () {
var __mydnnLiveChatRequests = [];
var __isAgentOnline = false;
var __isLiveChatLoaded = false;
var __isAngularLoaded = false;
var __requestsString;
var __adminPanelUrl;
var __portalID;
var __me = this;
var __counter = 0;
if (typeof mydnnSupportLiveChat != "undefined" || getParameterByName("popUp") == "true") return;
var __siteRoot = "/";
var __tabID = -1;
if (typeof dnn != "undefined" && typeof dnn.getVar != "undefined") {
__siteRoot = dnn.getVar("sf_siteRoot", "/");
__tabID = dnn.getVar("sf_tabId", -1)
}
setTimeout(function () {
$.ajax({
type: "GET",
url: __siteRoot + "DesktopModules/MyDnnSupport.LiveChat/API/VisitorService/DetectLiveChat",
data: { currentTabID: __tabID }
}).done(function (data) {
__siteRoot = data.SiteRoot;
__portalID = data.PortalID;
if (data.LiveChatEnabled) {
mydnnLiveChatBaseData = { SiteRoot: __siteRoot };
$('body').append('<link href="' + __siteRoot + 'DesktopModules/MyDnnSupport/LiveChat/Templates/' + data.LiveChatTemplate + '/style.css?cdv=200" type="text/css" rel="stylesheet"/>');
__me.loadSignalRScripts(data);
}
}).error(function (request, status, error) {
console.log(request.responseText);
});
}, 1000);
this.loadSignalRScripts = function (data) {
if (typeof $.signalR == "undefined")
$.getScript(__siteRoot + "DesktopModules/MyDnnSupport/LiveChat/ClientComponents/signalr/jquery.signalR-2.1.1.min.js", function () {
$.getScript(data.SiteRoot + "signalr/hubs");
__me.loadAngularAndScripts(data);
});
else
__me.loadAngularAndScripts(data);
}
this.loadAngularAndScripts = function (data) {
if (typeof angular == "undefined")
$.getScript(__siteRoot + "DesktopModules/MyDnnSupport/LiveChat/ClientComponents/angularjs/angular.min.js", function () {
__me.loadLiveChatScripts(data);
});
else
__me.loadLiveChatScripts(data);
}
this.loadLiveChatScripts = function (data) {
$.getScript(__siteRoot + "DesktopModules/MyDnnSupport/LiveChat/ClientApp/Services/signalr.service.js?cdv=200", function () {
$.getScript(__siteRoot + "DesktopModules/MyDnnSupport/LiveChat/ClientApp/Services/ng-mydnn-services.js?cdv=200", function () {
$.getScript(__siteRoot + "DesktopModules/MyDnnSupport/LiveChat/ClientComponents/moment.js/moment.min.js", function () {
$.getScript(__siteRoot + "DesktopModules/MyDnnSupport/LiveChat/ClientApp/Controllers/livechat-visitor-controller.js?cdv=200", function () {
$('body').append('<div id="mydnnSupportLiveChat" ng-app="MyDnnSupportLiveChatApp" style="display:none;"><div ng-controller="livechatController"><div id="mydnnLiveChatWidget" dynamic="WidgetHtml" ng-show="!livechat.WidgetMinimized"></div><div id="mydnnLiveChatMinButton" dynamic="MinButtonHtml" ng-show="livechat.WidgetMinimized" ng-click="onMinButtonClick()"></div></div></div>');
angular.bootstrap(document.getElementById('mydnnSupportLiveChat'), ['MyDnnSupportLiveChatApp']);
});
});
});
});
}
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}
});
}(jQuery, window.Sys));

View File

@@ -0,0 +1,521 @@
/*!
* jQuery Migrate - v1.2.1 - 2013-05-08
* https://github.com/jquery/jquery-migrate
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
*/
(function( jQuery, window, undefined ) {
// See http://bugs.jquery.com/ticket/13335
// "use strict";
var warnedAbout = {};
// List of warnings already given; public read only
jQuery.migrateWarnings = [];
// Set to true to prevent console output; migrateWarnings still maintained
jQuery.migrateMute = true;
// Show a message on the console so devs know we're active
if ( !jQuery.migrateMute && window.console && window.console.log ) {
window.console.log("JQMIGRATE: Logging is active");
}
// Set to false to disable traces that appear with warnings
if ( jQuery.migrateTrace === undefined ) {
jQuery.migrateTrace = true;
}
// Forget any warnings we've already given; public
jQuery.migrateReset = function() {
warnedAbout = {};
jQuery.migrateWarnings.length = 0;
};
function migrateWarn( msg) {
var console = window.console;
if ( !warnedAbout[ msg ] ) {
warnedAbout[ msg ] = true;
jQuery.migrateWarnings.push( msg );
if ( console && console.warn && !jQuery.migrateMute ) {
console.warn( "JQMIGRATE: " + msg );
if ( jQuery.migrateTrace && console.trace ) {
console.trace();
}
}
}
}
function migrateWarnProp( obj, prop, value, msg ) {
if ( Object.defineProperty ) {
// On ES5 browsers (non-oldIE), warn if the code tries to get prop;
// allow property to be overwritten in case some other plugin wants it
try {
Object.defineProperty( obj, prop, {
configurable: true,
enumerable: true,
get: function() {
migrateWarn( msg );
return value;
},
set: function( newValue ) {
migrateWarn( msg );
value = newValue;
}
});
return;
} catch( err ) {
// IE8 is a dope about Object.defineProperty, can't warn there
}
}
// Non-ES5 (or broken) browser; just set the property
jQuery._definePropertyBroken = true;
obj[ prop ] = value;
}
if ( document.compatMode === "BackCompat" ) {
// jQuery has never supported or tested Quirks Mode
migrateWarn( "jQuery is not compatible with Quirks Mode" );
}
var attrFn = jQuery( "<input/>", { size: 1 } ).attr("size") && jQuery.attrFn,
oldAttr = jQuery.attr,
valueAttrGet = jQuery.attrHooks.value && jQuery.attrHooks.value.get ||
function() { return null; },
valueAttrSet = jQuery.attrHooks.value && jQuery.attrHooks.value.set ||
function() { return undefined; },
rnoType = /^(?:input|button)$/i,
rnoAttrNodeType = /^[238]$/,
rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
ruseDefault = /^(?:checked|selected)$/i;
// jQuery.attrFn
migrateWarnProp( jQuery, "attrFn", attrFn || {}, "jQuery.attrFn is deprecated" );
jQuery.attr = function( elem, name, value, pass ) {
var lowerName = name.toLowerCase(),
nType = elem && elem.nodeType;
if ( pass ) {
// Since pass is used internally, we only warn for new jQuery
// versions where there isn't a pass arg in the formal params
if ( oldAttr.length < 4 ) {
migrateWarn("jQuery.fn.attr( props, pass ) is deprecated");
}
if ( elem && !rnoAttrNodeType.test( nType ) &&
(attrFn ? name in attrFn : jQuery.isFunction(jQuery.fn[name])) ) {
return jQuery( elem )[ name ]( value );
}
}
// Warn if user tries to set `type`, since it breaks on IE 6/7/8; by checking
// for disconnected elements we don't warn on $( "<button>", { type: "button" } ).
if ( name === "type" && value !== undefined && rnoType.test( elem.nodeName ) && elem.parentNode ) {
migrateWarn("Can't change the 'type' of an input or button in IE 6/7/8");
}
// Restore boolHook for boolean property/attribute synchronization
if ( !jQuery.attrHooks[ lowerName ] && rboolean.test( lowerName ) ) {
jQuery.attrHooks[ lowerName ] = {
get: function( elem, name ) {
// Align boolean attributes with corresponding properties
// Fall back to attribute presence where some booleans are not supported
var attrNode,
property = jQuery.prop( elem, name );
return property === true || typeof property !== "boolean" &&
( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
name.toLowerCase() :
undefined;
},
set: function( elem, value, name ) {
var propName;
if ( value === false ) {
// Remove boolean attributes when set to false
jQuery.removeAttr( elem, name );
} else {
// value is true since we know at this point it's type boolean and not false
// Set boolean attributes to the same name and set the DOM property
propName = jQuery.propFix[ name ] || name;
if ( propName in elem ) {
// Only set the IDL specifically if it already exists on the element
elem[ propName ] = true;
}
elem.setAttribute( name, name.toLowerCase() );
}
return name;
}
};
// Warn only for attributes that can remain distinct from their properties post-1.9
if ( ruseDefault.test( lowerName ) ) {
migrateWarn( "jQuery.fn.attr('" + lowerName + "') may use property instead of attribute" );
}
}
return oldAttr.call( jQuery, elem, name, value );
};
// attrHooks: value
jQuery.attrHooks.value = {
get: function( elem, name ) {
var nodeName = ( elem.nodeName || "" ).toLowerCase();
if ( nodeName === "button" ) {
return valueAttrGet.apply( this, arguments );
}
if ( nodeName !== "input" && nodeName !== "option" ) {
migrateWarn("jQuery.fn.attr('value') no longer gets properties");
}
return name in elem ?
elem.value :
null;
},
set: function( elem, value ) {
var nodeName = ( elem.nodeName || "" ).toLowerCase();
if ( nodeName === "button" ) {
return valueAttrSet.apply( this, arguments );
}
if ( nodeName !== "input" && nodeName !== "option" ) {
migrateWarn("jQuery.fn.attr('value', val) no longer sets properties");
}
// Does not return so that setAttribute is also used
elem.value = value;
}
};
var matched, browser,
oldInit = jQuery.fn.init,
oldParseJSON = jQuery.parseJSON,
// Note: XSS check is done below after string is trimmed
rquickExpr = /^([^<]*)(<[\w\W]+>)([^>]*)$/;
// $(html) "looks like html" rule change
jQuery.fn.init = function( selector, context, rootjQuery ) {
var match;
if ( selector && typeof selector === "string" && !jQuery.isPlainObject( context ) &&
(match = rquickExpr.exec( jQuery.trim( selector ) )) && match[ 0 ] ) {
// This is an HTML string according to the "old" rules; is it still?
if ( selector.charAt( 0 ) !== "<" ) {
migrateWarn("$(html) HTML strings must start with '<' character");
}
if ( match[ 3 ] ) {
migrateWarn("$(html) HTML text after last tag is ignored");
}
// Consistently reject any HTML-like string starting with a hash (#9521)
// Note that this may break jQuery 1.6.x code that otherwise would work.
if ( match[ 0 ].charAt( 0 ) === "#" ) {
migrateWarn("HTML string cannot start with a '#' character");
jQuery.error("JQMIGRATE: Invalid selector string (XSS)");
}
// Now process using loose rules; let pre-1.8 play too
if ( context && context.context ) {
// jQuery object as context; parseHTML expects a DOM object
context = context.context;
}
if ( jQuery.parseHTML ) {
return oldInit.call( this, jQuery.parseHTML( match[ 2 ], context, true ),
context, rootjQuery );
}
}
return oldInit.apply( this, arguments );
};
jQuery.fn.init.prototype = jQuery.fn;
// Let $.parseJSON(falsy_value) return null
jQuery.parseJSON = function( json ) {
if ( !json && json !== null ) {
migrateWarn("jQuery.parseJSON requires a valid JSON string");
return null;
}
return oldParseJSON.apply( this, arguments );
};
jQuery.uaMatch = function( ua ) {
ua = ua.toLowerCase();
var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
/(msie) ([\w.]+)/.exec( ua ) ||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
[];
return {
browser: match[ 1 ] || "",
version: match[ 2 ] || "0"
};
};
// Don't clobber any existing jQuery.browser in case it's different
if ( !jQuery.browser ) {
matched = jQuery.uaMatch( navigator.userAgent );
browser = {};
if ( matched.browser ) {
browser[ matched.browser ] = true;
browser.version = matched.version;
}
// Chrome is Webkit, but Webkit is also Safari.
if ( browser.chrome ) {
browser.webkit = true;
} else if ( browser.webkit ) {
browser.safari = true;
}
jQuery.browser = browser;
}
// Warn if the code tries to get jQuery.browser
migrateWarnProp( jQuery, "browser", jQuery.browser, "jQuery.browser is deprecated" );
jQuery.sub = function() {
function jQuerySub( selector, context ) {
return new jQuerySub.fn.init( selector, context );
}
jQuery.extend( true, jQuerySub, this );
jQuerySub.superclass = this;
jQuerySub.fn = jQuerySub.prototype = this();
jQuerySub.fn.constructor = jQuerySub;
jQuerySub.sub = this.sub;
jQuerySub.fn.init = function init( selector, context ) {
if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
context = jQuerySub( context );
}
return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
};
jQuerySub.fn.init.prototype = jQuerySub.fn;
var rootjQuerySub = jQuerySub(document);
migrateWarn( "jQuery.sub() is deprecated" );
return jQuerySub;
};
// Ensure that $.ajax gets the new parseJSON defined in core.js
jQuery.ajaxSetup({
converters: {
"text json": jQuery.parseJSON
}
});
var oldFnData = jQuery.fn.data;
jQuery.fn.data = function( name ) {
var ret, evt,
elem = this[0];
// Handles 1.7 which has this behavior and 1.8 which doesn't
if ( elem && name === "events" && arguments.length === 1 ) {
ret = jQuery.data( elem, name );
evt = jQuery._data( elem, name );
if ( ( ret === undefined || ret === evt ) && evt !== undefined ) {
migrateWarn("Use of jQuery.fn.data('events') is deprecated");
return evt;
}
}
return oldFnData.apply( this, arguments );
};
var rscriptType = /\/(java|ecma)script/i,
oldSelf = jQuery.fn.andSelf || jQuery.fn.addBack;
jQuery.fn.andSelf = function() {
migrateWarn("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");
return oldSelf.apply( this, arguments );
};
// Since jQuery.clean is used internally on older versions, we only shim if it's missing
if ( !jQuery.clean ) {
jQuery.clean = function( elems, context, fragment, scripts ) {
// Set context per 1.8 logic
context = context || document;
context = !context.nodeType && context[0] || context;
context = context.ownerDocument || context;
migrateWarn("jQuery.clean() is deprecated");
var i, elem, handleScript, jsTags,
ret = [];
jQuery.merge( ret, jQuery.buildFragment( elems, context ).childNodes );
// Complex logic lifted directly from jQuery 1.8
if ( fragment ) {
// Special handling of each script element
handleScript = function( elem ) {
// Check if we consider it executable
if ( !elem.type || rscriptType.test( elem.type ) ) {
// Detach the script and store it in the scripts array (if provided) or the fragment
// Return truthy to indicate that it has been handled
return scripts ?
scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) :
fragment.appendChild( elem );
}
};
for ( i = 0; (elem = ret[i]) != null; i++ ) {
// Check if we're done after handling an executable script
if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) {
// Append to fragment and handle embedded scripts
fragment.appendChild( elem );
if ( typeof elem.getElementsByTagName !== "undefined" ) {
// handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
// Splice the scripts into ret after their former ancestor and advance our index beyond them
ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
i += jsTags.length;
}
}
}
}
return ret;
};
}
var eventAdd = jQuery.event.add,
eventRemove = jQuery.event.remove,
eventTrigger = jQuery.event.trigger,
oldToggle = jQuery.fn.toggle,
oldLive = jQuery.fn.live,
oldDie = jQuery.fn.die,
ajaxEvents = "ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",
rajaxEvent = new RegExp( "\\b(?:" + ajaxEvents + ")\\b" ),
rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
hoverHack = function( events ) {
if ( typeof( events ) !== "string" || jQuery.event.special.hover ) {
return events;
}
if ( rhoverHack.test( events ) ) {
migrateWarn("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'");
}
return events && events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
};
// Event props removed in 1.9, put them back if needed; no practical way to warn them
if ( jQuery.event.props && jQuery.event.props[ 0 ] !== "attrChange" ) {
jQuery.event.props.unshift( "attrChange", "attrName", "relatedNode", "srcElement" );
}
// Undocumented jQuery.event.handle was "deprecated" in jQuery 1.7
if ( jQuery.event.dispatch ) {
migrateWarnProp( jQuery.event, "handle", jQuery.event.dispatch, "jQuery.event.handle is undocumented and deprecated" );
}
// Support for 'hover' pseudo-event and ajax event warnings
jQuery.event.add = function( elem, types, handler, data, selector ){
if ( elem !== document && rajaxEvent.test( types ) ) {
migrateWarn( "AJAX events should be attached to document: " + types );
}
eventAdd.call( this, elem, hoverHack( types || "" ), handler, data, selector );
};
jQuery.event.remove = function( elem, types, handler, selector, mappedTypes ){
eventRemove.call( this, elem, hoverHack( types ) || "", handler, selector, mappedTypes );
};
jQuery.fn.error = function() {
var args = Array.prototype.slice.call( arguments, 0);
migrateWarn("jQuery.fn.error() is deprecated");
args.splice( 0, 0, "error" );
if ( arguments.length ) {
return this.bind.apply( this, args );
}
// error event should not bubble to window, although it does pre-1.7
this.triggerHandler.apply( this, args );
return this;
};
jQuery.fn.toggle = function( fn, fn2 ) {
// Don't mess with animation or css toggles
if ( !jQuery.isFunction( fn ) || !jQuery.isFunction( fn2 ) ) {
return oldToggle.apply( this, arguments );
}
migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated");
// Save reference to arguments for access in closure
var args = arguments,
guid = fn.guid || jQuery.guid++,
i = 0,
toggler = function( event ) {
// Figure out which function to execute
var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
// Make sure that clicks stop
event.preventDefault();
// and execute the function
return args[ lastToggle ].apply( this, arguments ) || false;
};
// link all the functions, so any of them can unbind this click handler
toggler.guid = guid;
while ( i < args.length ) {
args[ i++ ].guid = guid;
}
return this.click( toggler );
};
jQuery.fn.live = function( types, data, fn ) {
migrateWarn("jQuery.fn.live() is deprecated");
if ( oldLive ) {
return oldLive.apply( this, arguments );
}
jQuery( this.context ).on( types, this.selector, data, fn );
return this;
};
jQuery.fn.die = function( types, fn ) {
migrateWarn("jQuery.fn.die() is deprecated");
if ( oldDie ) {
return oldDie.apply( this, arguments );
}
jQuery( this.context ).off( types, this.selector || "**", fn );
return this;
};
// Turn global events into document-triggered events
jQuery.event.trigger = function( event, data, elem, onlyHandlers ){
if ( !elem && !rajaxEvent.test( event ) ) {
migrateWarn( "Global events are undocumented and deprecated" );
}
return eventTrigger.call( this, event, data, elem || document, onlyHandlers );
};
jQuery.each( ajaxEvents.split("|"),
function( _, name ) {
jQuery.event.special[ name ] = {
setup: function() {
var elem = this;
// The document needs no shimming; must be !== for oldIE
if ( elem !== document ) {
jQuery.event.add( document, name + "." + jQuery.guid, function() {
jQuery.event.trigger( name, null, elem, true );
});
jQuery._data( this, name, jQuery.guid++ );
}
return false;
},
teardown: function() {
if ( this !== document ) {
jQuery.event.remove( document, name + "." + jQuery._data( this, name ) );
}
return false;
}
};
}
);
})( jQuery, window );

16608
niayesh/jquery-ui.js.download Normal file

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More