FV Flowplayer Video Player - Version 7.5.26.7210

Version Description

  • 2022/07/06 =

  • Using Freedom Video Player 7.2.10

  • AWS SDK update

  • CSS - make sure the seek buttons work with button color setting

  • Editor - download splash image from Vimeo or YouTube for FV Player Pro users

  • Featured image - only set once for each player in the post, allowing you to prevent the FV Player Splash Image from becoming the Featured Image anytime you save the post

  • Safari - avoid WebM , it might have VP9 - won't play

  • Security - hide sensitive information in settings pannels (the Secure Access Keys, requires FV Player Pro 7.5.25.727 if installed)

  • SEO - 30 instead of just 10 words for schema.org/description

  • Bugfix - PHP 8.1 deprecation fixes

Download this release

Release Info

Developer FolioVision
Plugin Icon 128x128 FV Flowplayer Video Player
Version 7.5.26.7210
Comparing to
See all releases

Code changes from version 7.5.22.728 to 7.5.26.7210

Files changed (50) hide show
  1. composer.json +1 -1
  2. composer.lock +181 -451
  3. controller/backend.php +49 -1
  4. controller/editor.php +114 -38
  5. controller/frontend.php +4 -4
  6. controller/settings.php +81 -6
  7. css/flowplayer.css +4 -1
  8. flowplayer.php +7 -3
  9. flowplayer/fv-flowplayer.min.js +0 -1
  10. flowplayer/fv-player-loader.babel.js +9 -22
  11. flowplayer/fv-player-loader.dev.js +9 -22
  12. flowplayer/fv-player.min.js +1 -1
  13. flowplayer/modules/flowplayer.min.js +2 -2
  14. flowplayer/modules/fv-player.js +39 -3
  15. flowplayer/modules/hls-audio.module.js +4 -2
  16. flowplayer/modules/old-browsers.module.js +2 -1
  17. flowplayer/modules/repeat-fix.module.js +1 -1
  18. js/admin.js +44 -3
  19. js/digitalocean-spaces-browser.js +1 -1
  20. js/fancybox.js +7 -19
  21. js/linode-object-storage.js +1 -1
  22. js/s3-browser.js +1 -1
  23. js/s3upload.js +5 -2
  24. js/shortcode-editor.js +81 -39
  25. models/checker.php +1 -1
  26. models/class.fv-player-bunny_stream.php +25 -1
  27. models/db-player-meta.php +5 -1
  28. models/db-player.php +44 -4
  29. models/db-video-meta.php +5 -1
  30. models/db-video.php +55 -3
  31. models/db.php +33 -23
  32. models/digitalocean-spaces.class.php +3 -2
  33. models/email-subscription.php +8 -7
  34. models/flowplayer-frontend.php +61 -5
  35. models/flowplayer.php +65 -15
  36. models/linode-object-storage.class.php +2 -1
  37. models/seo.php +34 -10
  38. models/splash-download.php +118 -0
  39. models/video-encoder/class.fv-player-encoder-list-table.php +4 -0
  40. models/xml-video-sitemap.php +5 -1
  41. readme.txt +12 -0
  42. vendor/autoload.php +1 -1
  43. vendor/aws/aws-crt-php/.github/ISSUE_TEMPLATE/---bug-report.md +36 -0
  44. vendor/aws/aws-crt-php/.github/ISSUE_TEMPLATE/---feature-request.md +20 -0
  45. vendor/aws/aws-crt-php/.github/ISSUE_TEMPLATE/---questions-help.md +23 -0
  46. vendor/aws/aws-crt-php/.github/PULL_REQUEST_TEMPLATE.md +6 -0
  47. vendor/aws/aws-crt-php/.github/workflows/ci.yml +145 -0
  48. vendor/aws/aws-crt-php/.github/workflows/lint.yml +29 -0
  49. vendor/aws/aws-crt-php/.github/workflows/stale_issue.yml +46 -0
  50. vendor/aws/aws-crt-php/.gitignore +103 -0
composer.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "config": {
3
  "platform": {
4
- "php": "5.6"
5
  }
6
  },
7
  "require-dev": {
1
  {
2
  "config": {
3
  "platform": {
4
+ "php": "7.2.5"
5
  }
6
  },
7
  "require-dev": {
composer.lock CHANGED
@@ -1,10 +1,10 @@
1
  {
2
  "_readme": [
3
  "This file locks the dependencies of your project to a known state",
4
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "1b1d51d6bfd31814f63431016e88b5b3",
8
  "packages": [
9
  {
10
  "name": "aws/aws-crt-php",
@@ -50,24 +50,20 @@
50
  "crt",
51
  "sdk"
52
  ],
53
- "support": {
54
- "issues": "https://github.com/awslabs/aws-crt-php/issues",
55
- "source": "https://github.com/awslabs/aws-crt-php/tree/v1.0.2"
56
- },
57
  "time": "2021-09-03T22:57:30+00:00"
58
  },
59
  {
60
  "name": "aws/aws-sdk-php",
61
- "version": "3.217.0",
62
  "source": {
63
  "type": "git",
64
  "url": "https://github.com/aws/aws-sdk-php.git",
65
- "reference": "a8cca383b13fe6cde479a4745b4d3dfe893fdc69"
66
  },
67
  "dist": {
68
  "type": "zip",
69
- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/a8cca383b13fe6cde479a4745b4d3dfe893fdc69",
70
- "reference": "a8cca383b13fe6cde479a4745b4d3dfe893fdc69",
71
  "shasum": ""
72
  },
73
  "require": {
@@ -75,9 +71,9 @@
75
  "ext-json": "*",
76
  "ext-pcre": "*",
77
  "ext-simplexml": "*",
78
- "guzzlehttp/guzzle": "^5.3.3|^6.2.1|^7.0",
79
  "guzzlehttp/promises": "^1.4.0",
80
- "guzzlehttp/psr7": "^1.7.0|^2.0",
81
  "mtdowling/jmespath.php": "^2.6",
82
  "php": ">=5.5"
83
  },
@@ -92,7 +88,7 @@
92
  "ext-sockets": "*",
93
  "nette/neon": "^2.3",
94
  "paragonie/random_compat": ">= 2",
95
- "phpunit/phpunit": "^4.8.35|^5.4.3",
96
  "psr/cache": "^1.0",
97
  "psr/simple-cache": "^1.0",
98
  "sebastian/comparator": "^1.2.3"
@@ -140,46 +136,49 @@
140
  "s3",
141
  "sdk"
142
  ],
143
- "support": {
144
- "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
145
- "issues": "https://github.com/aws/aws-sdk-php/issues",
146
- "source": "https://github.com/aws/aws-sdk-php/tree/3.217.0"
147
- },
148
- "time": "2022-03-30T18:18:30+00:00"
149
  },
150
  {
151
  "name": "guzzlehttp/guzzle",
152
- "version": "6.5.5",
153
  "source": {
154
  "type": "git",
155
  "url": "https://github.com/guzzle/guzzle.git",
156
- "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e"
157
  },
158
  "dist": {
159
  "type": "zip",
160
- "url": "https://api.github.com/repos/guzzle/guzzle/zipball/9d4290de1cfd701f38099ef7e183b64b4b7b0c5e",
161
- "reference": "9d4290de1cfd701f38099ef7e183b64b4b7b0c5e",
162
  "shasum": ""
163
  },
164
  "require": {
165
  "ext-json": "*",
166
- "guzzlehttp/promises": "^1.0",
167
- "guzzlehttp/psr7": "^1.6.1",
168
- "php": ">=5.5",
169
- "symfony/polyfill-intl-idn": "^1.17.0"
 
 
 
 
170
  },
171
  "require-dev": {
 
172
  "ext-curl": "*",
173
- "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0",
174
- "psr/log": "^1.1"
 
175
  },
176
  "suggest": {
 
 
177
  "psr/log": "Required for using the Log middleware"
178
  },
179
  "type": "library",
180
  "extra": {
181
  "branch-alias": {
182
- "dev-master": "6.5-dev"
183
  }
184
  },
185
  "autoload": {
@@ -195,28 +194,55 @@
195
  "MIT"
196
  ],
197
  "authors": [
 
 
 
 
 
198
  {
199
  "name": "Michael Dowling",
200
  "email": "mtdowling@gmail.com",
201
  "homepage": "https://github.com/mtdowling"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  }
203
  ],
204
  "description": "Guzzle is a PHP HTTP client library",
205
- "homepage": "http://guzzlephp.org/",
206
  "keywords": [
207
  "client",
208
  "curl",
209
  "framework",
210
  "http",
211
  "http client",
 
 
212
  "rest",
213
  "web service"
214
  ],
215
- "support": {
216
- "issues": "https://github.com/guzzle/guzzle/issues",
217
- "source": "https://github.com/guzzle/guzzle/tree/6.5"
218
- },
219
- "time": "2020-06-16T21:01:06+00:00"
220
  },
221
  {
222
  "name": "guzzlehttp/promises",
@@ -282,51 +308,36 @@
282
  "keywords": [
283
  "promise"
284
  ],
285
- "support": {
286
- "issues": "https://github.com/guzzle/promises/issues",
287
- "source": "https://github.com/guzzle/promises/tree/1.5.1"
288
- },
289
- "funding": [
290
- {
291
- "url": "https://github.com/GrahamCampbell",
292
- "type": "github"
293
- },
294
- {
295
- "url": "https://github.com/Nyholm",
296
- "type": "github"
297
- },
298
- {
299
- "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises",
300
- "type": "tidelift"
301
- }
302
- ],
303
  "time": "2021-10-22T20:56:57+00:00"
304
  },
305
  {
306
  "name": "guzzlehttp/psr7",
307
- "version": "1.8.5",
308
  "source": {
309
  "type": "git",
310
  "url": "https://github.com/guzzle/psr7.git",
311
- "reference": "337e3ad8e5716c15f9657bd214d16cc5e69df268"
312
  },
313
  "dist": {
314
  "type": "zip",
315
- "url": "https://api.github.com/repos/guzzle/psr7/zipball/337e3ad8e5716c15f9657bd214d16cc5e69df268",
316
- "reference": "337e3ad8e5716c15f9657bd214d16cc5e69df268",
317
  "shasum": ""
318
  },
319
  "require": {
320
- "php": ">=5.4.0",
321
- "psr/http-message": "~1.0",
322
- "ralouphie/getallheaders": "^2.0.5 || ^3.0.0"
 
323
  },
324
  "provide": {
 
325
  "psr/http-message-implementation": "1.0"
326
  },
327
  "require-dev": {
328
- "ext-zlib": "*",
329
- "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.14 || ^7.5.20 || ^8.5.8 || ^9.3.10"
 
330
  },
331
  "suggest": {
332
  "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
@@ -334,13 +345,10 @@
334
  "type": "library",
335
  "extra": {
336
  "branch-alias": {
337
- "dev-master": "1.7-dev"
338
  }
339
  },
340
  "autoload": {
341
- "files": [
342
- "src/functions_include.php"
343
- ],
344
  "psr-4": {
345
  "GuzzleHttp\\Psr7\\": "src/"
346
  }
@@ -379,6 +387,11 @@
379
  "name": "Tobias Schultze",
380
  "email": "webmaster@tubo-world.de",
381
  "homepage": "https://github.com/Tobion"
 
 
 
 
 
382
  }
383
  ],
384
  "description": "PSR-7 message implementation that also provides common utility methods",
@@ -392,25 +405,7 @@
392
  "uri",
393
  "url"
394
  ],
395
- "support": {
396
- "issues": "https://github.com/guzzle/psr7/issues",
397
- "source": "https://github.com/guzzle/psr7/tree/1.8.5"
398
- },
399
- "funding": [
400
- {
401
- "url": "https://github.com/GrahamCampbell",
402
- "type": "github"
403
- },
404
- {
405
- "url": "https://github.com/Nyholm",
406
- "type": "github"
407
- },
408
- {
409
- "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7",
410
- "type": "tidelift"
411
- }
412
- ],
413
- "time": "2022-03-20T21:51:18+00:00"
414
  },
415
  {
416
  "name": "mtdowling/jmespath.php",
@@ -467,40 +462,85 @@
467
  "json",
468
  "jsonpath"
469
  ],
470
- "support": {
471
- "issues": "https://github.com/jmespath/jmespath.php/issues",
472
- "source": "https://github.com/jmespath/jmespath.php/tree/2.6.1"
473
- },
474
  "time": "2021-06-14T00:11:39+00:00"
475
  },
476
  {
477
- "name": "paragonie/random_compat",
478
- "version": "v2.0.21",
479
  "source": {
480
  "type": "git",
481
- "url": "https://github.com/paragonie/random_compat.git",
482
- "reference": "96c132c7f2f7bc3230723b66e89f8f150b29d5ae"
483
  },
484
  "dist": {
485
  "type": "zip",
486
- "url": "https://api.github.com/repos/paragonie/random_compat/zipball/96c132c7f2f7bc3230723b66e89f8f150b29d5ae",
487
- "reference": "96c132c7f2f7bc3230723b66e89f8f150b29d5ae",
488
  "shasum": ""
489
  },
490
  "require": {
491
- "php": ">=5.2.0"
 
492
  },
493
- "require-dev": {
494
- "phpunit/phpunit": "*"
 
 
 
495
  },
496
- "suggest": {
497
- "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
498
  },
499
  "type": "library",
 
 
 
 
 
500
  "autoload": {
501
- "files": [
502
- "lib/random.php"
503
- ]
504
  },
505
  "notification-url": "https://packagist.org/downloads/",
506
  "license": [
@@ -508,24 +548,22 @@
508
  ],
509
  "authors": [
510
  {
511
- "name": "Paragon Initiative Enterprises",
512
- "email": "security@paragonie.com",
513
- "homepage": "https://paragonie.com"
514
  }
515
  ],
516
- "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
517
  "keywords": [
518
- "csprng",
519
- "polyfill",
520
- "pseudorandom",
521
- "random"
 
 
 
 
522
  ],
523
- "support": {
524
- "email": "info@paragonie.com",
525
- "issues": "https://github.com/paragonie/random_compat/issues",
526
- "source": "https://github.com/paragonie/random_compat"
527
- },
528
- "time": "2022-02-16T17:07:03+00:00"
529
  },
530
  {
531
  "name": "psr/http-message",
@@ -575,9 +613,6 @@
575
  "request",
576
  "response"
577
  ],
578
- "support": {
579
- "source": "https://github.com/php-fig/http-message/tree/master"
580
- },
581
  "time": "2016-08-06T14:39:51+00:00"
582
  },
583
  {
@@ -618,139 +653,38 @@
618
  }
619
  ],
620
  "description": "A polyfill for getallheaders.",
621
- "support": {
622
- "issues": "https://github.com/ralouphie/getallheaders/issues",
623
- "source": "https://github.com/ralouphie/getallheaders/tree/develop"
624
- },
625
  "time": "2019-03-08T08:55:37+00:00"
626
  },
627
  {
628
- "name": "symfony/polyfill-intl-idn",
629
- "version": "v1.19.0",
630
  "source": {
631
  "type": "git",
632
- "url": "https://github.com/symfony/polyfill-intl-idn.git",
633
- "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826"
634
  },
635
  "dist": {
636
  "type": "zip",
637
- "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/4ad5115c0f5d5172a9fe8147675ec6de266d8826",
638
- "reference": "4ad5115c0f5d5172a9fe8147675ec6de266d8826",
639
  "shasum": ""
640
  },
641
  "require": {
642
- "php": ">=5.3.3",
643
- "symfony/polyfill-intl-normalizer": "^1.10",
644
- "symfony/polyfill-php70": "^1.10",
645
- "symfony/polyfill-php72": "^1.10"
646
- },
647
- "suggest": {
648
- "ext-intl": "For best performance"
649
  },
650
  "type": "library",
651
  "extra": {
652
  "branch-alias": {
653
- "dev-main": "1.19-dev"
654
  },
655
  "thanks": {
656
- "name": "symfony/polyfill",
657
- "url": "https://github.com/symfony/polyfill"
658
  }
659
  },
660
  "autoload": {
661
  "files": [
662
- "bootstrap.php"
663
- ],
664
- "psr-4": {
665
- "Symfony\\Polyfill\\Intl\\Idn\\": ""
666
- }
667
- },
668
- "notification-url": "https://packagist.org/downloads/",
669
- "license": [
670
- "MIT"
671
- ],
672
- "authors": [
673
- {
674
- "name": "Laurent Bassin",
675
- "email": "laurent@bassin.info"
676
- },
677
- {
678
- "name": "Trevor Rowbotham",
679
- "email": "trevor.rowbotham@pm.me"
680
- },
681
- {
682
- "name": "Symfony Community",
683
- "homepage": "https://symfony.com/contributors"
684
- }
685
- ],
686
- "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions",
687
- "homepage": "https://symfony.com",
688
- "keywords": [
689
- "compatibility",
690
- "idn",
691
- "intl",
692
- "polyfill",
693
- "portable",
694
- "shim"
695
- ],
696
- "support": {
697
- "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.19.0"
698
- },
699
- "funding": [
700
- {
701
- "url": "https://symfony.com/sponsor",
702
- "type": "custom"
703
- },
704
- {
705
- "url": "https://github.com/fabpot",
706
- "type": "github"
707
- },
708
- {
709
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
710
- "type": "tidelift"
711
- }
712
- ],
713
- "time": "2020-10-21T09:57:48+00:00"
714
- },
715
- {
716
- "name": "symfony/polyfill-intl-normalizer",
717
- "version": "v1.19.0",
718
- "source": {
719
- "type": "git",
720
- "url": "https://github.com/symfony/polyfill-intl-normalizer.git",
721
- "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27"
722
- },
723
- "dist": {
724
- "type": "zip",
725
- "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8db0ae7936b42feb370840cf24de1a144fb0ef27",
726
- "reference": "8db0ae7936b42feb370840cf24de1a144fb0ef27",
727
- "shasum": ""
728
- },
729
- "require": {
730
- "php": ">=5.3.3"
731
- },
732
- "suggest": {
733
- "ext-intl": "For best performance"
734
- },
735
- "type": "library",
736
- "extra": {
737
- "branch-alias": {
738
- "dev-main": "1.19-dev"
739
- },
740
- "thanks": {
741
- "name": "symfony/polyfill",
742
- "url": "https://github.com/symfony/polyfill"
743
- }
744
- },
745
- "autoload": {
746
- "files": [
747
- "bootstrap.php"
748
- ],
749
- "psr-4": {
750
- "Symfony\\Polyfill\\Intl\\Normalizer\\": ""
751
- },
752
- "classmap": [
753
- "Resources/stubs"
754
  ]
755
  },
756
  "notification-url": "https://packagist.org/downloads/",
@@ -767,51 +701,29 @@
767
  "homepage": "https://symfony.com/contributors"
768
  }
769
  ],
770
- "description": "Symfony polyfill for intl's Normalizer class and related functions",
771
  "homepage": "https://symfony.com",
772
- "keywords": [
773
- "compatibility",
774
- "intl",
775
- "normalizer",
776
- "polyfill",
777
- "portable",
778
- "shim"
779
- ],
780
- "support": {
781
- "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.19.0"
782
- },
783
- "funding": [
784
- {
785
- "url": "https://symfony.com/sponsor",
786
- "type": "custom"
787
- },
788
- {
789
- "url": "https://github.com/fabpot",
790
- "type": "github"
791
- },
792
- {
793
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
794
- "type": "tidelift"
795
- }
796
- ],
797
- "time": "2020-10-23T09:01:57+00:00"
798
  },
799
  {
800
  "name": "symfony/polyfill-mbstring",
801
- "version": "v1.19.0",
802
  "source": {
803
  "type": "git",
804
  "url": "https://github.com/symfony/polyfill-mbstring.git",
805
- "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce"
806
  },
807
  "dist": {
808
  "type": "zip",
809
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/b5f7b932ee6fa802fc792eabd77c4c88084517ce",
810
- "reference": "b5f7b932ee6fa802fc792eabd77c4c88084517ce",
811
  "shasum": ""
812
  },
813
  "require": {
814
- "php": ">=5.3.3"
 
 
 
815
  },
816
  "suggest": {
817
  "ext-mbstring": "For best performance"
@@ -819,7 +731,7 @@
819
  "type": "library",
820
  "extra": {
821
  "branch-alias": {
822
- "dev-main": "1.19-dev"
823
  },
824
  "thanks": {
825
  "name": "symfony/polyfill",
@@ -857,180 +769,7 @@
857
  "portable",
858
  "shim"
859
  ],
860
- "support": {
861
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.19.0"
862
- },
863
- "funding": [
864
- {
865
- "url": "https://symfony.com/sponsor",
866
- "type": "custom"
867
- },
868
- {
869
- "url": "https://github.com/fabpot",
870
- "type": "github"
871
- },
872
- {
873
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
874
- "type": "tidelift"
875
- }
876
- ],
877
- "time": "2020-10-23T09:01:57+00:00"
878
- },
879
- {
880
- "name": "symfony/polyfill-php70",
881
- "version": "v1.19.0",
882
- "source": {
883
- "type": "git",
884
- "url": "https://github.com/symfony/polyfill-php70.git",
885
- "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e"
886
- },
887
- "dist": {
888
- "type": "zip",
889
- "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/3fe414077251a81a1b15b1c709faf5c2fbae3d4e",
890
- "reference": "3fe414077251a81a1b15b1c709faf5c2fbae3d4e",
891
- "shasum": ""
892
- },
893
- "require": {
894
- "paragonie/random_compat": "~1.0|~2.0|~9.99",
895
- "php": ">=5.3.3"
896
- },
897
- "type": "library",
898
- "extra": {
899
- "branch-alias": {
900
- "dev-main": "1.19-dev"
901
- },
902
- "thanks": {
903
- "name": "symfony/polyfill",
904
- "url": "https://github.com/symfony/polyfill"
905
- }
906
- },
907
- "autoload": {
908
- "files": [
909
- "bootstrap.php"
910
- ],
911
- "psr-4": {
912
- "Symfony\\Polyfill\\Php70\\": ""
913
- },
914
- "classmap": [
915
- "Resources/stubs"
916
- ]
917
- },
918
- "notification-url": "https://packagist.org/downloads/",
919
- "license": [
920
- "MIT"
921
- ],
922
- "authors": [
923
- {
924
- "name": "Nicolas Grekas",
925
- "email": "p@tchwork.com"
926
- },
927
- {
928
- "name": "Symfony Community",
929
- "homepage": "https://symfony.com/contributors"
930
- }
931
- ],
932
- "description": "Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions",
933
- "homepage": "https://symfony.com",
934
- "keywords": [
935
- "compatibility",
936
- "polyfill",
937
- "portable",
938
- "shim"
939
- ],
940
- "support": {
941
- "source": "https://github.com/symfony/polyfill-php70/tree/v1.19.0"
942
- },
943
- "funding": [
944
- {
945
- "url": "https://symfony.com/sponsor",
946
- "type": "custom"
947
- },
948
- {
949
- "url": "https://github.com/fabpot",
950
- "type": "github"
951
- },
952
- {
953
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
954
- "type": "tidelift"
955
- }
956
- ],
957
- "time": "2020-10-23T09:01:57+00:00"
958
- },
959
- {
960
- "name": "symfony/polyfill-php72",
961
- "version": "v1.19.0",
962
- "source": {
963
- "type": "git",
964
- "url": "https://github.com/symfony/polyfill-php72.git",
965
- "reference": "beecef6b463b06954638f02378f52496cb84bacc"
966
- },
967
- "dist": {
968
- "type": "zip",
969
- "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/beecef6b463b06954638f02378f52496cb84bacc",
970
- "reference": "beecef6b463b06954638f02378f52496cb84bacc",
971
- "shasum": ""
972
- },
973
- "require": {
974
- "php": ">=5.3.3"
975
- },
976
- "type": "library",
977
- "extra": {
978
- "branch-alias": {
979
- "dev-main": "1.19-dev"
980
- },
981
- "thanks": {
982
- "name": "symfony/polyfill",
983
- "url": "https://github.com/symfony/polyfill"
984
- }
985
- },
986
- "autoload": {
987
- "files": [
988
- "bootstrap.php"
989
- ],
990
- "psr-4": {
991
- "Symfony\\Polyfill\\Php72\\": ""
992
- }
993
- },
994
- "notification-url": "https://packagist.org/downloads/",
995
- "license": [
996
- "MIT"
997
- ],
998
- "authors": [
999
- {
1000
- "name": "Nicolas Grekas",
1001
- "email": "p@tchwork.com"
1002
- },
1003
- {
1004
- "name": "Symfony Community",
1005
- "homepage": "https://symfony.com/contributors"
1006
- }
1007
- ],
1008
- "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
1009
- "homepage": "https://symfony.com",
1010
- "keywords": [
1011
- "compatibility",
1012
- "polyfill",
1013
- "portable",
1014
- "shim"
1015
- ],
1016
- "support": {
1017
- "source": "https://github.com/symfony/polyfill-php72/tree/v1.19.0"
1018
- },
1019
- "funding": [
1020
- {
1021
- "url": "https://symfony.com/sponsor",
1022
- "type": "custom"
1023
- },
1024
- {
1025
- "url": "https://github.com/fabpot",
1026
- "type": "github"
1027
- },
1028
- {
1029
- "url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
1030
- "type": "tidelift"
1031
- }
1032
- ],
1033
- "time": "2020-10-23T09:01:57+00:00"
1034
  }
1035
  ],
1036
  "packages-dev": [
@@ -1079,10 +818,6 @@
1079
  "keywords": [
1080
  "test"
1081
  ],
1082
- "support": {
1083
- "issues": "https://github.com/hamcrest/hamcrest-php/issues",
1084
- "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1"
1085
- },
1086
  "time": "2020-07-09T08:09:16+00:00"
1087
  },
1088
  {
@@ -1148,10 +883,6 @@
1148
  "test double",
1149
  "testing"
1150
  ],
1151
- "support": {
1152
- "issues": "https://github.com/mockery/mockery/issues",
1153
- "source": "https://github.com/mockery/mockery/tree/1.3.5"
1154
- },
1155
  "time": "2021-09-13T15:33:03+00:00"
1156
  }
1157
  ],
@@ -1163,7 +894,6 @@
1163
  "platform": [],
1164
  "platform-dev": [],
1165
  "platform-overrides": {
1166
- "php": "5.6"
1167
- },
1168
- "plugin-api-version": "2.0.0"
1169
  }
1
  {
2
  "_readme": [
3
  "This file locks the dependencies of your project to a known state",
4
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "e7c77b375c7b7ba397eddd4a1888e57b",
8
  "packages": [
9
  {
10
  "name": "aws/aws-crt-php",
50
  "crt",
51
  "sdk"
52
  ],
 
 
 
 
53
  "time": "2021-09-03T22:57:30+00:00"
54
  },
55
  {
56
  "name": "aws/aws-sdk-php",
57
+ "version": "3.229.1",
58
  "source": {
59
  "type": "git",
60
  "url": "https://github.com/aws/aws-sdk-php.git",
61
+ "reference": "5cffc0b16d1f33029628586313e9cf140f18b06d"
62
  },
63
  "dist": {
64
  "type": "zip",
65
+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/5cffc0b16d1f33029628586313e9cf140f18b06d",
66
+ "reference": "5cffc0b16d1f33029628586313e9cf140f18b06d",
67
  "shasum": ""
68
  },
69
  "require": {
71
  "ext-json": "*",
72
  "ext-pcre": "*",
73
  "ext-simplexml": "*",
74
+ "guzzlehttp/guzzle": "^6.5.8 || ^7.4.5",
75
  "guzzlehttp/promises": "^1.4.0",
76
+ "guzzlehttp/psr7": "^1.8.5 || ^2.3",
77
  "mtdowling/jmespath.php": "^2.6",
78
  "php": ">=5.5"
79
  },
88
  "ext-sockets": "*",
89
  "nette/neon": "^2.3",
90
  "paragonie/random_compat": ">= 2",
91
+ "phpunit/phpunit": "^4.8.35 || ^5.6.3",
92
  "psr/cache": "^1.0",
93
  "psr/simple-cache": "^1.0",
94
  "sebastian/comparator": "^1.2.3"
136
  "s3",
137
  "sdk"
138
  ],
139
+ "time": "2022-06-30T18:16:30+00:00"
 
 
 
 
 
140
  },
141
  {
142
  "name": "guzzlehttp/guzzle",
143
+ "version": "7.4.5",
144
  "source": {
145
  "type": "git",
146
  "url": "https://github.com/guzzle/guzzle.git",
147
+ "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82"
148
  },
149
  "dist": {
150
  "type": "zip",
151
+ "url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
152
+ "reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
153
  "shasum": ""
154
  },
155
  "require": {
156
  "ext-json": "*",
157
+ "guzzlehttp/promises": "^1.5",
158
+ "guzzlehttp/psr7": "^1.9 || ^2.4",
159
+ "php": "^7.2.5 || ^8.0",
160
+ "psr/http-client": "^1.0",
161
+ "symfony/deprecation-contracts": "^2.2 || ^3.0"
162
+ },
163
+ "provide": {
164
+ "psr/http-client-implementation": "1.0"
165
  },
166
  "require-dev": {
167
+ "bamarni/composer-bin-plugin": "^1.4.1",
168
  "ext-curl": "*",
169
+ "php-http/client-integration-tests": "^3.0",
170
+ "phpunit/phpunit": "^8.5.5 || ^9.3.5",
171
+ "psr/log": "^1.1 || ^2.0 || ^3.0"
172
  },
173
  "suggest": {
174
+ "ext-curl": "Required for CURL handler support",
175
+ "ext-intl": "Required for Internationalized Domain Name (IDN) support",
176
  "psr/log": "Required for using the Log middleware"
177
  },
178
  "type": "library",
179
  "extra": {
180
  "branch-alias": {
181
+ "dev-master": "7.4-dev"
182
  }
183
  },
184
  "autoload": {
194
  "MIT"
195
  ],
196
  "authors": [
197
+ {
198
+ "name": "Graham Campbell",
199
+ "email": "hello@gjcampbell.co.uk",
200
+ "homepage": "https://github.com/GrahamCampbell"
201
+ },
202
  {
203
  "name": "Michael Dowling",
204
  "email": "mtdowling@gmail.com",
205
  "homepage": "https://github.com/mtdowling"
206
+ },
207
+ {
208
+ "name": "Jeremy Lindblom",
209
+ "email": "jeremeamia@gmail.com",
210
+ "homepage": "https://github.com/jeremeamia"
211
+ },
212
+ {
213
+ "name": "George Mponos",
214
+ "email": "gmponos@gmail.com",
215
+ "homepage": "https://github.com/gmponos"
216
+ },
217
+ {
218
+ "name": "Tobias Nyholm",
219
+ "email": "tobias.nyholm@gmail.com",
220
+ "homepage": "https://github.com/Nyholm"
221
+ },
222
+ {
223
+ "name": "Márk Sági-Kazár",
224
+ "email": "mark.sagikazar@gmail.com",
225
+ "homepage": "https://github.com/sagikazarmark"
226
+ },
227
+ {
228
+ "name": "Tobias Schultze",
229
+ "email": "webmaster@tubo-world.de",
230
+ "homepage": "https://github.com/Tobion"
231
  }
232
  ],
233
  "description": "Guzzle is a PHP HTTP client library",
 
234
  "keywords": [
235
  "client",
236
  "curl",
237
  "framework",
238
  "http",
239
  "http client",
240
+ "psr-18",
241
+ "psr-7",
242
  "rest",
243
  "web service"
244
  ],
245
+ "time": "2022-06-20T22:16:13+00:00"
 
 
 
 
246
  },
247
  {
248
  "name": "guzzlehttp/promises",
308
  "keywords": [
309
  "promise"
310
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
311
  "time": "2021-10-22T20:56:57+00:00"
312
  },
313
  {
314
  "name": "guzzlehttp/psr7",
315
+ "version": "2.4.0",
316
  "source": {
317
  "type": "git",
318
  "url": "https://github.com/guzzle/psr7.git",
319
+ "reference": "13388f00956b1503577598873fffb5ae994b5737"
320
  },
321
  "dist": {
322
  "type": "zip",
323
+ "url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737",
324
+ "reference": "13388f00956b1503577598873fffb5ae994b5737",
325
  "shasum": ""
326
  },
327
  "require": {
328
+ "php": "^7.2.5 || ^8.0",
329
+ "psr/http-factory": "^1.0",
330
+ "psr/http-message": "^1.0",
331
+ "ralouphie/getallheaders": "^3.0"
332
  },
333
  "provide": {
334
+ "psr/http-factory-implementation": "1.0",
335
  "psr/http-message-implementation": "1.0"
336
  },
337
  "require-dev": {
338
+ "bamarni/composer-bin-plugin": "^1.4.1",
339
+ "http-interop/http-factory-tests": "^0.9",
340
+ "phpunit/phpunit": "^8.5.8 || ^9.3.10"
341
  },
342
  "suggest": {
343
  "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
345
  "type": "library",
346
  "extra": {
347
  "branch-alias": {
348
+ "dev-master": "2.4-dev"
349
  }
350
  },
351
  "autoload": {
 
 
 
352
  "psr-4": {
353
  "GuzzleHttp\\Psr7\\": "src/"
354
  }
387
  "name": "Tobias Schultze",
388
  "email": "webmaster@tubo-world.de",
389
  "homepage": "https://github.com/Tobion"
390
+ },
391
+ {
392
+ "name": "Márk Sági-Kazár",
393
+ "email": "mark.sagikazar@gmail.com",
394
+ "homepage": "https://sagikazarmark.hu"
395
  }
396
  ],
397
  "description": "PSR-7 message implementation that also provides common utility methods",
405
  "uri",
406
  "url"
407
  ],
408
+ "time": "2022-06-20T21:43:11+00:00"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
409
  },
410
  {
411
  "name": "mtdowling/jmespath.php",
462
  "json",
463
  "jsonpath"
464
  ],
 
 
 
 
465
  "time": "2021-06-14T00:11:39+00:00"
466
  },
467
  {
468
+ "name": "psr/http-client",
469
+ "version": "1.0.1",
470
  "source": {
471
  "type": "git",
472
+ "url": "https://github.com/php-fig/http-client.git",
473
+ "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621"
474
  },
475
  "dist": {
476
  "type": "zip",
477
+ "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
478
+ "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621",
479
  "shasum": ""
480
  },
481
  "require": {
482
+ "php": "^7.0 || ^8.0",
483
+ "psr/http-message": "^1.0"
484
  },
485
+ "type": "library",
486
+ "extra": {
487
+ "branch-alias": {
488
+ "dev-master": "1.0.x-dev"
489
+ }
490
  },
491
+ "autoload": {
492
+ "psr-4": {
493
+ "Psr\\Http\\Client\\": "src/"
494
+ }
495
+ },
496
+ "notification-url": "https://packagist.org/downloads/",
497
+ "license": [
498
+ "MIT"
499
+ ],
500
+ "authors": [
501
+ {
502
+ "name": "PHP-FIG",
503
+ "homepage": "http://www.php-fig.org/"
504
+ }
505
+ ],
506
+ "description": "Common interface for HTTP clients",
507
+ "homepage": "https://github.com/php-fig/http-client",
508
+ "keywords": [
509
+ "http",
510
+ "http-client",
511
+ "psr",
512
+ "psr-18"
513
+ ],
514
+ "time": "2020-06-29T06:28:15+00:00"
515
+ },
516
+ {
517
+ "name": "psr/http-factory",
518
+ "version": "1.0.1",
519
+ "source": {
520
+ "type": "git",
521
+ "url": "https://github.com/php-fig/http-factory.git",
522
+ "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be"
523
+ },
524
+ "dist": {
525
+ "type": "zip",
526
+ "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
527
+ "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be",
528
+ "shasum": ""
529
+ },
530
+ "require": {
531
+ "php": ">=7.0.0",
532
+ "psr/http-message": "^1.0"
533
  },
534
  "type": "library",
535
+ "extra": {
536
+ "branch-alias": {
537
+ "dev-master": "1.0.x-dev"
538
+ }
539
+ },
540
  "autoload": {
541
+ "psr-4": {
542
+ "Psr\\Http\\Message\\": "src/"
543
+ }
544
  },
545
  "notification-url": "https://packagist.org/downloads/",
546
  "license": [
548
  ],
549
  "authors": [
550
  {
551
+ "name": "PHP-FIG",
552
+ "homepage": "http://www.php-fig.org/"
 
553
  }
554
  ],
555
+ "description": "Common interfaces for PSR-7 HTTP message factories",
556
  "keywords": [
557
+ "factory",
558
+ "http",
559
+ "message",
560
+ "psr",
561
+ "psr-17",
562
+ "psr-7",
563
+ "request",
564
+ "response"
565
  ],
566
+ "time": "2019-04-30T12:38:16+00:00"
 
 
 
 
 
567
  },
568
  {
569
  "name": "psr/http-message",
613
  "request",
614
  "response"
615
  ],
 
 
 
616
  "time": "2016-08-06T14:39:51+00:00"
617
  },
618
  {
653
  }
654
  ],
655
  "description": "A polyfill for getallheaders.",
 
 
 
 
656
  "time": "2019-03-08T08:55:37+00:00"
657
  },
658
  {
659
+ "name": "symfony/deprecation-contracts",
660
+ "version": "v2.5.2",
661
  "source": {
662
  "type": "git",
663
+ "url": "https://github.com/symfony/deprecation-contracts.git",
664
+ "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66"
665
  },
666
  "dist": {
667
  "type": "zip",
668
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
669
+ "reference": "e8b495ea28c1d97b5e0c121748d6f9b53d075c66",
670
  "shasum": ""
671
  },
672
  "require": {
673
+ "php": ">=7.1"
 
 
 
 
 
 
674
  },
675
  "type": "library",
676
  "extra": {
677
  "branch-alias": {
678
+ "dev-main": "2.5-dev"
679
  },
680
  "thanks": {
681
+ "name": "symfony/contracts",
682
+ "url": "https://github.com/symfony/contracts"
683
  }
684
  },
685
  "autoload": {
686
  "files": [
687
+ "function.php"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
688
  ]
689
  },
690
  "notification-url": "https://packagist.org/downloads/",
701
  "homepage": "https://symfony.com/contributors"
702
  }
703
  ],
704
+ "description": "A generic function and convention to trigger deprecation notices",
705
  "homepage": "https://symfony.com",
706
+ "time": "2022-01-02T09:53:40+00:00"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
707
  },
708
  {
709
  "name": "symfony/polyfill-mbstring",
710
+ "version": "v1.26.0",
711
  "source": {
712
  "type": "git",
713
  "url": "https://github.com/symfony/polyfill-mbstring.git",
714
+ "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e"
715
  },
716
  "dist": {
717
  "type": "zip",
718
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
719
+ "reference": "9344f9cb97f3b19424af1a21a3b0e75b0a7d8d7e",
720
  "shasum": ""
721
  },
722
  "require": {
723
+ "php": ">=7.1"
724
+ },
725
+ "provide": {
726
+ "ext-mbstring": "*"
727
  },
728
  "suggest": {
729
  "ext-mbstring": "For best performance"
731
  "type": "library",
732
  "extra": {
733
  "branch-alias": {
734
+ "dev-main": "1.26-dev"
735
  },
736
  "thanks": {
737
  "name": "symfony/polyfill",
769
  "portable",
770
  "shim"
771
  ],
772
+ "time": "2022-05-24T11:49:31+00:00"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
773
  }
774
  ],
775
  "packages-dev": [
818
  "keywords": [
819
  "test"
820
  ],
 
 
 
 
821
  "time": "2020-07-09T08:09:16+00:00"
822
  },
823
  {
883
  "test double",
884
  "testing"
885
  ],
 
 
 
 
886
  "time": "2021-09-13T15:33:03+00:00"
887
  }
888
  ],
894
  "platform": [],
895
  "platform-dev": [],
896
  "platform-overrides": {
897
+ "php": "7.2.5"
898
+ }
 
899
  }
controller/backend.php CHANGED
@@ -503,6 +503,8 @@ function fv_player_lchecks() {
503
 
504
  if( isset($aCheck->expired) && $aCheck->expired && stripos( implode(get_option('active_plugins')), 'fv-player-pro' ) !== false ) {
505
  add_filter( 'site_transient_update_plugins', 'fv_player_remove_update' );
 
 
506
  }
507
  }
508
  }
@@ -512,7 +514,8 @@ function fv_player_remove_update( $objUpdates ) {
512
 
513
  foreach( $objUpdates->response AS $key => $objUpdate ) {
514
  if( stripos($key,'fv-wordpress-flowplayer') === 0 ) {
515
- unset($objUpdates->response[$key]);
 
516
  }
517
  }
518
 
@@ -579,7 +582,21 @@ function fv_wp_flowplayer_change_transient_expiration( $transient_name, $time ){
579
  return false;
580
  }
581
 
 
 
 
 
 
 
 
 
 
582
 
 
 
 
 
 
583
 
584
 
585
  add_action('wp_ajax_flowplayer_conversion_script', 'flowplayer_conversion_script');
@@ -848,4 +865,35 @@ function fv_player_load_video_encoder_libs() {
848
  include_once( dirname( __FILE__ ).'/../models/video-encoder/video-encoder.php');
849
  require_once( dirname(__FILE__).'/../includes/class.fv-player-wizard-base.php' );
850
  require_once( dirname(__FILE__).'/../includes/class.fv-player-wizard-step-base.php' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
851
  }
503
 
504
  if( isset($aCheck->expired) && $aCheck->expired && stripos( implode(get_option('active_plugins')), 'fv-player-pro' ) !== false ) {
505
  add_filter( 'site_transient_update_plugins', 'fv_player_remove_update' );
506
+ } else {
507
+ delete_option('fv_wordpress_flowplayer_expired_license_update_notice');
508
  }
509
  }
510
  }
514
 
515
  foreach( $objUpdates->response AS $key => $objUpdate ) {
516
  if( stripos($key,'fv-wordpress-flowplayer') === 0 ) {
517
+ unset($objUpdates->response[$key]);
518
+ update_option('fv_wordpress_flowplayer_expired_license_update_notice', true, false);
519
  }
520
  }
521
 
582
  return false;
583
  }
584
 
585
+ add_action('admin_notices', 'fv_wordpress_flowplayer_expired_license_update_notice');
586
+
587
+ function fv_wordpress_flowplayer_expired_license_update_notice() {
588
+ if( get_current_screen()->base === 'update-core' && get_option('fv_wordpress_flowplayer_expired_license_update_notice') ) {
589
+ echo '<div class="notice notice-error is-dismissible"><p>'.__('To update FV Player please either renew your license or disable FV Player Pro.', 'fv-wordpress-flowplayer').'</p></div>';
590
+ }
591
+ }
592
+
593
+ add_action( 'after_plugin_row_fv-wordpress-flowplayer/flowplayer.php', 'fv_wordpress_flowplayer_expired_license_update_plugin_row', 0, 3 );
594
 
595
+ function fv_wordpress_flowplayer_expired_license_update_plugin_row($plugin_file, $plugin_data, $status) {
596
+ if( get_option('fv_wordpress_flowplayer_expired_license_update_notice') ) {
597
+ echo '<tr class="plugin-update-tr active" style="position: relative; top: -1px"><td colspan="4" class="plugin-update colspanchange"><div class="update-message notice inline notice-warning notice-alt"><p>'. __('To update FV Player please either renew your license or disable FV Player Pro.','fv-wordpress-flowplayer').'</p></div></td></tr>';
598
+ }
599
+ }
600
 
601
 
602
  add_action('wp_ajax_flowplayer_conversion_script', 'flowplayer_conversion_script');
865
  include_once( dirname( __FILE__ ).'/../models/video-encoder/video-encoder.php');
866
  require_once( dirname(__FILE__).'/../includes/class.fv-player-wizard-base.php' );
867
  require_once( dirname(__FILE__).'/../includes/class.fv-player-wizard-step-base.php' );
868
+ }
869
+
870
+ /**
871
+ * Attachment edit - show attached posts
872
+ */
873
+ add_action( 'attachment_submitbox_misc_actions', 'fv_player_submitbox_misc_actions' );
874
+
875
+ function fv_player_submitbox_misc_actions( $attachment ) {
876
+ global $pagenow, $typenow;
877
+
878
+ // We only want to run the code on a specific page
879
+ if( $pagenow != 'post.php' || $typenow != 'attachment' ) {
880
+ return;
881
+ }
882
+
883
+ global $fv_fp;
884
+
885
+ $video_id = get_post_meta( $attachment->ID, 'fv_player_video_id', true );
886
+
887
+ if( !empty($video_id) ) {
888
+ $players = $fv_fp->get_players_by_video_ids( $video_id );
889
+
890
+ // Iterate players and create html with name and link to player
891
+ foreach( $players as $player ) {
892
+ ?>
893
+ <div class="misc-pub-section misc-pub-attachment">
894
+ FV Player splash screen: <strong><a href="<?php echo esc_url( admin_url( 'admin.php?page=fv_player&id='. $player->getId() ) ); ?>"><?php echo esc_html( $player->getPlayerNameWithFallback() ); ?></a></strong>
895
+ </div>
896
+ <?php
897
+ }
898
+ }
899
  }
controller/editor.php CHANGED
@@ -201,7 +201,24 @@ add_action( 'save_post', 'fv_wp_flowplayer_save_post' );
201
 
202
 
203
  add_action( 'save_post', 'fv_wp_flowplayer_featured_image' , 10000 );
 
204
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  function fv_wp_flowplayer_featured_image($post_id) {
206
  if( $parent_id = wp_is_post_revision($post_id) ) {
207
  $post_id = $parent_id;
@@ -215,59 +232,114 @@ function fv_wp_flowplayer_featured_image($post_id) {
215
 
216
  $post = get_post($post_id);
217
 
218
- $url = false;
219
-
220
- if( preg_match('/(?:splash=\\\?")([^"]*.(?:jpg|gif|png))/', $post->post_content, $splash) ) { // parse splash="..." in post content
221
- $url = $splash[1];
222
  }
223
 
224
- if( !$url && preg_match('/\[fvplayer.*?id="(\d+)/', $post->post_content, $id) ) { // parse [fvplayer id="..."] shortcode in post content
225
- global $FV_Player_Db;
226
- $atts = $FV_Player_Db->getPlayerAttsFromDb( array( 'id' => $id[1] ) );
227
- if( !empty($atts['splash']) ) {
228
- $url = $atts['splash'];
229
- }
230
  }
231
 
232
- if( !$url && $aMetas = get_post_custom($post_id) ) { // parse [fvplayer id="..."] shortcode in post meta
233
- foreach( $aMetas AS $key => $aMeta ) {
234
- foreach( $aMeta AS $shortcode ) {
235
- if( preg_match('/\[fvplayer.*?id="(\d+)/', $shortcode, $id) ) {
236
- global $FV_Player_Db;
237
- $atts = $FV_Player_Db->getPlayerAttsFromDb( array( 'id' => $id[1] ) );
238
- if( !empty($atts['splash']) ) {
239
- $url = $atts['splash'];
 
 
 
 
 
 
 
240
  }
241
  }
242
  }
243
  }
244
  }
245
 
246
- if( !$url ) return; // no parsed url
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
 
248
- // Check if the splash image was already stored in Media Library
249
- $args = array(
250
- 'post_type' => 'attachment',
251
- 'meta_query' => array(
252
- array(
253
- 'key' => '_fv_player_splash_image_url',
254
- 'value' => $url,
 
 
 
 
 
 
 
 
255
  )
256
- )
257
- );
258
- $posts = get_posts( $args );
259
 
260
- if( !empty($posts[0]->ID) ) {
261
- set_post_thumbnail( $post_id, $posts[0]->ID ); // use stored image
262
- } else {
263
- $thumbnail_id = fv_wp_flowplayer_save_to_media_library($url, $post_id); // upload new image
 
 
264
 
265
- if($thumbnail_id) {
266
- update_post_meta( $thumbnail_id, '_fv_player_splash_image_url', $url );
267
- set_post_thumbnail( $post_id, $thumbnail_id );
268
  }
269
  }
270
 
 
 
 
271
  }
272
 
273
  function fv_wp_flowplayer_construct_filename( $post_id ) {
@@ -281,7 +353,7 @@ function fv_wp_flowplayer_construct_filename( $post_id ) {
281
  return $filename;
282
  }
283
 
284
- function fv_wp_flowplayer_save_to_media_library( $image_url, $post_id ) {
285
 
286
  $image_url = apply_filters( 'fv_flowplayer_splash', $image_url );
287
 
@@ -310,7 +382,11 @@ function fv_wp_flowplayer_save_to_media_library( $image_url, $post_id ) {
310
  }
311
 
312
  // Construct a file name with extension
313
- $new_filename = fv_wp_flowplayer_construct_filename( $post_id ) . $image_extension;
 
 
 
 
314
 
315
  // Save the image bits using the new filename
316
  $upload = wp_upload_bits( $new_filename, null, $image_contents );
201
 
202
 
203
  add_action( 'save_post', 'fv_wp_flowplayer_featured_image' , 10000 );
204
+ add_action( 'fv_player_db_save', 'fv_wp_flowplayer_post_add_featured_image' );
205
 
206
+ function fv_wp_flowplayer_post_add_featured_image( $player_id ) {
207
+ global $FV_Player_Db;
208
+ $objPlayer = new FV_Player_Db_Player( $player_id, array(), $FV_Player_Db );
209
+ $posts = $objPlayer->getMetaValue('post_id'); // get posts where the player is embedded
210
+
211
+ if(empty($posts)) return; // no posts
212
+
213
+ foreach( $posts as $post_id ) {
214
+ $post_id = intval($post_id);
215
+ if( !has_post_thumbnail($post_id) ) {
216
+ fv_wp_flowplayer_featured_image($post_id);
217
+ }
218
+ }
219
+ }
220
+
221
+ // Set featured image from splash arg or splash_attachment_id or splash meta attribute
222
  function fv_wp_flowplayer_featured_image($post_id) {
223
  if( $parent_id = wp_is_post_revision($post_id) ) {
224
  $post_id = $parent_id;
232
 
233
  $post = get_post($post_id);
234
 
235
+ // We only allow each player to set the Featured Image once, so that user can still removed it
236
+ $featured_image_players = get_post_meta($post_id, '_fv_player_featured_image_players', true);
237
+ if( !is_array($featured_image_players) ) {
238
+ $featured_image_players = array();
239
  }
240
 
241
+ // Same as above, only this time it's for the legacy [fvplayer src="..." splash="..."] shortcodes
242
+ $featured_image_splash_urls = get_post_meta($post_id, '_fv_player_featured_image_splash_urls', true);
243
+ if( !is_array($featured_image_splash_urls) ) {
244
+ $featured_image_splash_urls = array();
 
 
245
  }
246
 
247
+ $thumbnail_id = false;
248
+ $splash_attachment_id = false;
249
+ $url = false;
250
+ $title = '';
251
+
252
+ // Search in post content
253
+ $search_context = $post->post_content;
254
+
255
+ // ...and also in post_meta
256
+ if( $aMetas = get_post_custom($post_id) ) { // parse [fvplayer id="..."] shortcode in post meta
257
+ foreach( $aMetas AS $aMeta ) {
258
+ foreach( $aMeta AS $meta_value ) {
259
+ if( preg_match_all( '/\[fvplayer.*?\]/', $meta_value, $shortcodes ) ) {
260
+ foreach( $shortcodes[0] AS $shortcode ) {
261
+ $search_context .= "\n\n".$shortcode;
262
  }
263
  }
264
  }
265
  }
266
  }
267
 
268
+ if( preg_match_all('/(?:splash=\\\?")([^"]*.(?:jpg|gif|png))/', $search_context, $splash_images) ) { // parse splash="..." in post content
269
+ foreach($splash_images[1] as $src ) {
270
+ if(!in_array($src, $featured_image_splash_urls)) { // check if we already set this splash once
271
+ $url = $src;
272
+ $featured_image_splash_urls[] = $url;
273
+
274
+ update_post_meta($post_id, '_fv_player_featured_image_splash_urls', $featured_image_splash_urls);
275
+
276
+ break;
277
+ }
278
+ }
279
+ }
280
+
281
+ if( !$url && preg_match_all('/\[fvplayer.*?id="(\d+)/', $search_context, $ids) ) { // parse [fvplayer id="..."] shortcode in post content
282
+ global $FV_Player_Db;
283
+
284
+ foreach( $ids[1] as $player_id ) {
285
+
286
+ // Did this player already set the Featured Image? If so, do not set it again
287
+ if( in_array($player_id, $featured_image_players) ) {
288
+ continue;
289
+ }
290
+
291
+ $atts = $FV_Player_Db->getPlayerAttsFromDb( array( 'id' => $player_id ) );
292
+
293
+ if( !empty($atts['caption']) ) {
294
+ $title = $atts['caption'];
295
+ }
296
+
297
+ if( !empty($atts['splash_attachment_id']) ) { // first check splash_attachment_id
298
+ $splash_attachment_id = (int) $atts['splash_attachment_id'];
299
+
300
+ } else if( !empty($atts['splash']) ) { // fallback to splash
301
+ $url = $atts['splash'];
302
+ }
303
+
304
+ // If we found splash attachmend ID or URL remember that this player has set the Featured Image
305
+ if($splash_attachment_id || $url) {
306
+ $featured_image_players[] = $player_id;
307
+ update_post_meta($post_id, '_fv_player_featured_image_players', $featured_image_players);
308
 
309
+ break;
310
+ }
311
+ }
312
+ }
313
+
314
+ if( $splash_attachment_id ) {
315
+ $thumbnail_id = $splash_attachment_id; // use saved splash
316
+ } else if($url) {
317
+ $args = array( // check if splash was already downloaded
318
+ 'post_type' => 'attachment',
319
+ 'meta_query' => array(
320
+ array(
321
+ 'key' => '_fv_player_splash_image_url',
322
+ 'value' => $url,
323
+ )
324
  )
325
+ );
 
 
326
 
327
+ $posts = get_posts( $args );
328
+
329
+ if( !empty($posts[0]->ID) ) {
330
+ $thumbnail_id = $posts[0]->ID;
331
+ } else {
332
+ $thumbnail_id = fv_wp_flowplayer_save_to_media_library($url, $post_id, $title); // download splash
333
 
334
+ if($thumbnail_id) {
335
+ update_post_meta( $thumbnail_id, '_fv_player_splash_image_url', $url );
336
+ }
337
  }
338
  }
339
 
340
+ if( $thumbnail_id ) { // set post thumbnail if we have thumbnail id
341
+ set_post_thumbnail( $post_id, $thumbnail_id );
342
+ }
343
  }
344
 
345
  function fv_wp_flowplayer_construct_filename( $post_id ) {
353
  return $filename;
354
  }
355
 
356
+ function fv_wp_flowplayer_save_to_media_library( $image_url, $post_id, $title = false ) {
357
 
358
  $image_url = apply_filters( 'fv_flowplayer_splash', $image_url );
359
 
382
  }
383
 
384
  // Construct a file name with extension
385
+ if( $title ) {
386
+ $new_filename = sanitize_file_name($title);
387
+ } else {
388
+ $new_filename = fv_wp_flowplayer_construct_filename( $post_id ) . $image_extension;
389
+ }
390
 
391
  // Save the image bits using the new filename
392
  $upload = wp_upload_bits( $new_filename, null, $image_contents );
controller/frontend.php CHANGED
@@ -316,7 +316,7 @@ function flowplayer_content( $content ) {
316
  }
317
 
318
  function flowplayer_prepare_scripts() {
319
- global $fv_fp, $fv_wp_flowplayer_ver;
320
 
321
  // don't load script in Optimize Press 2 preview
322
  if( flowplayer::is_special_editor() ) {
@@ -350,7 +350,7 @@ function flowplayer_prepare_scripts() {
350
  $path = '/flowplayer/modules/flowplayer.js';
351
  }
352
 
353
- $version = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? filemtime( dirname(__FILE__).'/../'.$path ) : $fv_wp_flowplayer_ver;
354
 
355
  wp_enqueue_script( 'flowplayer', flowplayer::get_plugin_url().$path, $aDependencies, $version, true );
356
  $aDependencies[] = 'flowplayer';
@@ -675,12 +675,12 @@ function fv_player_footer_svg_rewind() {
675
  ?>
676
  <svg style="position: absolute; width: 0; height: 0; overflow: hidden;" class="fvp-icon" xmlns="https://www.w3.org/2000/svg">
677
  <g id="fvp-rewind">
678
- <path d="M22.7 10.9c0 1.7-0.4 3.3-1.1 4.8 -0.7 1.5-1.8 2.8-3.2 3.8 -0.4 0.3-1.3-0.9-0.9-1.2 1.2-0.9 2.1-2 2.7-3.3 0.7-1.3 1-2.7 1-4.1 0-2.6-0.9-4.7-2.7-6.5 -1.8-1.8-4-2.7-6.5-2.7 -2.5 0-4.7 0.9-6.5 2.7 -1.8 1.8-2.7 4-2.7 6.5 0 2.4 0.8 4.5 2.5 6.3 1.7 1.8 3.7 2.7 6.1 2.9l-1.2-2c-0.2-0.3 0.9-1 1.1-0.7l2.3 3.7c0.2 0.3 0 0.6-0.2 0.7L9.5 23.8c-0.3 0.2-0.9-0.9-0.5-1.2l2.1-1.1c-2.7-0.2-5-1.4-6.9-3.4 -1.9-2-2.8-4.5-2.8-7.2 0-3 1.1-5.5 3.1-7.6C6.5 1.2 9 0.2 12 0.2c3 0 5.5 1.1 7.6 3.1C21.7 5.4 22.7 7.9 22.7 10.9z" fill="#fff"/><path d="M8.1 15.1c-0.1 0-0.1 0-0.1-0.1V8C8 7.7 7.8 7.9 7.7 7.9L6.8 8.3C6.8 8.4 6.7 8.3 6.7 8.2L6.3 7.3C6.2 7.2 6.3 7.1 6.4 7.1l2.7-1.2c0.1 0 0.4 0 0.4 0.3v8.8c0 0.1 0 0.1-0.1 0.1H8.1z" fill="#fff"/><path d="M17.7 10.6c0 2.9-1.3 4.7-3.5 4.7 -2.2 0-3.5-1.8-3.5-4.7s1.3-4.7 3.5-4.7C16.4 5.9 17.7 7.7 17.7 10.6zM12.3 10.6c0 2.1 0.7 3.4 2 3.4 1.3 0 2-1.2 2-3.4 0-2.1-0.7-3.4-2-3.4C13 7.2 12.3 8.5 12.3 10.6z" fill="#fff"/>
679
  </g>
680
  </svg>
681
  <svg style="position: absolute; width: 0; height: 0; overflow: hidden;" class="fvp-icon" xmlns="https://www.w3.org/2000/svg">
682
  <g id="fvp-forward">
683
- <path d="M22.7 10.9c0 1.7-0.4 3.3-1.1 4.8 -0.7 1.5-1.8 2.8-3.2 3.8 -0.4 0.3-1.3-0.9-0.9-1.2 1.2-0.9 2.1-2 2.7-3.3 0.7-1.3 1-2.7 1-4.1 0-2.6-0.9-4.7-2.7-6.5 -1.8-1.8-4-2.7-6.5-2.7 -2.5 0-4.7 0.9-6.5 2.7 -1.8 1.8-2.7 4-2.7 6.5 0 2.4 0.8 4.5 2.5 6.3 1.7 1.8 3.7 2.7 6.1 2.9l-1.2-2c-0.2-0.3 0.9-1 1.1-0.7l2.3 3.7c0.2 0.3 0 0.6-0.2 0.7L9.5 23.8c-0.3 0.2-0.9-0.9-0.5-1.2l2.1-1.1c-2.7-0.2-5-1.4-6.9-3.4 -1.9-2-2.8-4.5-2.8-7.2 0-3 1.1-5.5 3.1-7.6C6.5 1.2 9 0.2 12 0.2c3 0 5.5 1.1 7.6 3.1C21.7 5.4 22.7 7.9 22.7 10.9z" fill="#fff" transform="scale(-1,1) translate(-24,0)" /><path d="M8.1 15.1c-0.1 0-0.1 0-0.1-0.1V8C8 7.7 7.8 7.9 7.7 7.9L6.8 8.3C6.8 8.4 6.7 8.3 6.7 8.2L6.3 7.3C6.2 7.2 6.3 7.1 6.4 7.1l2.7-1.2c0.1 0 0.4 0 0.4 0.3v8.8c0 0.1 0 0.1-0.1 0.1H8.1z" fill="#fff" /><path d="M17.7 10.6c0 2.9-1.3 4.7-3.5 4.7 -2.2 0-3.5-1.8-3.5-4.7s1.3-4.7 3.5-4.7C16.4 5.9 17.7 7.7 17.7 10.6zM12.3 10.6c0 2.1 0.7 3.4 2 3.4 1.3 0 2-1.2 2-3.4 0-2.1-0.7-3.4-2-3.4C13 7.2 12.3 8.5 12.3 10.6z" fill="#fff" />
684
  </g>
685
  </svg>
686
  <?php
316
  }
317
 
318
  function flowplayer_prepare_scripts() {
319
+ global $fv_fp, $fv_wp_flowplayer_ver, $fv_wp_flowplayer_core_ver;
320
 
321
  // don't load script in Optimize Press 2 preview
322
  if( flowplayer::is_special_editor() ) {
350
  $path = '/flowplayer/modules/flowplayer.js';
351
  }
352
 
353
+ $version = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? filemtime( dirname(__FILE__).'/../'.$path ) : $fv_wp_flowplayer_core_ver;
354
 
355
  wp_enqueue_script( 'flowplayer', flowplayer::get_plugin_url().$path, $aDependencies, $version, true );
356
  $aDependencies[] = 'flowplayer';
675
  ?>
676
  <svg style="position: absolute; width: 0; height: 0; overflow: hidden;" class="fvp-icon" xmlns="https://www.w3.org/2000/svg">
677
  <g id="fvp-rewind">
678
+ <path d="M22.7 10.9c0 1.7-0.4 3.3-1.1 4.8 -0.7 1.5-1.8 2.8-3.2 3.8 -0.4 0.3-1.3-0.9-0.9-1.2 1.2-0.9 2.1-2 2.7-3.3 0.7-1.3 1-2.7 1-4.1 0-2.6-0.9-4.7-2.7-6.5 -1.8-1.8-4-2.7-6.5-2.7 -2.5 0-4.7 0.9-6.5 2.7 -1.8 1.8-2.7 4-2.7 6.5 0 2.4 0.8 4.5 2.5 6.3 1.7 1.8 3.7 2.7 6.1 2.9l-1.2-2c-0.2-0.3 0.9-1 1.1-0.7l2.3 3.7c0.2 0.3 0 0.6-0.2 0.7L9.5 23.8c-0.3 0.2-0.9-0.9-0.5-1.2l2.1-1.1c-2.7-0.2-5-1.4-6.9-3.4 -1.9-2-2.8-4.5-2.8-7.2 0-3 1.1-5.5 3.1-7.6C6.5 1.2 9 0.2 12 0.2c3 0 5.5 1.1 7.6 3.1C21.7 5.4 22.7 7.9 22.7 10.9z" /><path d="M8.1 15.1c-0.1 0-0.1 0-0.1-0.1V8C8 7.7 7.8 7.9 7.7 7.9L6.8 8.3C6.8 8.4 6.7 8.3 6.7 8.2L6.3 7.3C6.2 7.2 6.3 7.1 6.4 7.1l2.7-1.2c0.1 0 0.4 0 0.4 0.3v8.8c0 0.1 0 0.1-0.1 0.1H8.1z" /><path d="M17.7 10.6c0 2.9-1.3 4.7-3.5 4.7 -2.2 0-3.5-1.8-3.5-4.7s1.3-4.7 3.5-4.7C16.4 5.9 17.7 7.7 17.7 10.6zM12.3 10.6c0 2.1 0.7 3.4 2 3.4 1.3 0 2-1.2 2-3.4 0-2.1-0.7-3.4-2-3.4C13 7.2 12.3 8.5 12.3 10.6z" />
679
  </g>
680
  </svg>
681
  <svg style="position: absolute; width: 0; height: 0; overflow: hidden;" class="fvp-icon" xmlns="https://www.w3.org/2000/svg">
682
  <g id="fvp-forward">
683
+ <path d="M22.7 10.9c0 1.7-0.4 3.3-1.1 4.8 -0.7 1.5-1.8 2.8-3.2 3.8 -0.4 0.3-1.3-0.9-0.9-1.2 1.2-0.9 2.1-2 2.7-3.3 0.7-1.3 1-2.7 1-4.1 0-2.6-0.9-4.7-2.7-6.5 -1.8-1.8-4-2.7-6.5-2.7 -2.5 0-4.7 0.9-6.5 2.7 -1.8 1.8-2.7 4-2.7 6.5 0 2.4 0.8 4.5 2.5 6.3 1.7 1.8 3.7 2.7 6.1 2.9l-1.2-2c-0.2-0.3 0.9-1 1.1-0.7l2.3 3.7c0.2 0.3 0 0.6-0.2 0.7L9.5 23.8c-0.3 0.2-0.9-0.9-0.5-1.2l2.1-1.1c-2.7-0.2-5-1.4-6.9-3.4 -1.9-2-2.8-4.5-2.8-7.2 0-3 1.1-5.5 3.1-7.6C6.5 1.2 9 0.2 12 0.2c3 0 5.5 1.1 7.6 3.1C21.7 5.4 22.7 7.9 22.7 10.9z" transform="scale(-1,1) translate(-24,0)" /><path d="M8.1 15.1c-0.1 0-0.1 0-0.1-0.1V8C8 7.7 7.8 7.9 7.7 7.9L6.8 8.3C6.8 8.4 6.7 8.3 6.7 8.2L6.3 7.3C6.2 7.2 6.3 7.1 6.4 7.1l2.7-1.2c0.1 0 0.4 0 0.4 0.3v8.8c0 0.1 0 0.1-0.1 0.1H8.1z" /><path d="M17.7 10.6c0 2.9-1.3 4.7-3.5 4.7 -2.2 0-3.5-1.8-3.5-4.7s1.3-4.7 3.5-4.7C16.4 5.9 17.7 7.7 17.7 10.6zM12.3 10.6c0 2.1 0.7 3.4 2 3.4 1.3 0 2-1.2 2-3.4 0-2.1-0.7-3.4-2-3.4C13 7.2 12.3 8.5 12.3 10.6z" />
684
  </g>
685
  </svg>
686
  <?php
controller/settings.php CHANGED
@@ -80,18 +80,49 @@ function fv_wp_flowplayer_after_plugin_row( $arg) {
80
 
81
 
82
 
83
-
 
 
84
  add_filter( 'get_user_option_closedpostboxes_fv_flowplayer_settings', 'fv_wp_flowplayer_closed_meta_boxes' );
85
 
86
  function fv_wp_flowplayer_closed_meta_boxes( $closed ) {
87
- if ( false === $closed )
88
- $closed = array( 'fv_flowplayer_amazon_options', 'fv_flowplayer_interface_options', 'fv_flowplayer_default_options', 'fv_flowplayer_ads', 'fv_flowplayer_integrations', 'fv_flowplayer_mobile', 'fv_flowplayer_seo', 'fv_flowplayer_conversion', 'fv_player_pro' );
 
89
 
90
- return $closed;
91
  }
92
 
 
 
 
 
 
 
 
 
 
93
 
 
 
94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  /*
97
  * Saving settings
@@ -114,11 +145,55 @@ function fv_player_settings_save() {
114
 
115
  global $fv_fp;
116
  if( method_exists($fv_fp,'_set_conf') ) {
117
- $fv_fp->_set_conf();
 
 
 
 
 
 
 
 
 
 
 
118
  } else {
119
  echo 'Error saving FV Flowplayer options.';
120
  }
121
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
123
 
124
 
80
 
81
 
82
 
83
+ /**
84
+ * Settings metaboxes close
85
+ */
86
  add_filter( 'get_user_option_closedpostboxes_fv_flowplayer_settings', 'fv_wp_flowplayer_closed_meta_boxes' );
87
 
88
  function fv_wp_flowplayer_closed_meta_boxes( $closed ) {
89
+ if ( false === $closed ) {
90
+ $closed = array( 'fv_flowplayer_amazon_options', 'fv_flowplayer_interface_options', 'fv_flowplayer_default_options', 'fv_flowplayer_ads', 'fv_flowplayer_integrations', 'fv_flowplayer_mobile', 'fv_flowplayer_seo', 'fv_flowplayer_privacy');
91
+ }
92
 
93
+ return $closed;
94
  }
95
 
96
+ /**
97
+ * Tools metaboxes close
98
+ */
99
+ add_filter( 'get_user_option_closedpostboxes_fv_flowplayer_settings_tools', 'fv_flowplayer_settings_tools_closed_meta_boxes' );
100
+
101
+ function fv_flowplayer_settings_tools_closed_meta_boxes( $closed ) {
102
+ if ( false === $closed ) {
103
+ $closed = array( 'fv_flowplayer_conversion' );
104
+ }
105
 
106
+ return $closed;
107
+ }
108
 
109
+ /**
110
+ * Skin metaboxes close
111
+ */
112
+ add_filter( 'get_user_option_closedpostboxes_fv_flowplayer_settings_skin', 'fv_flowplayer_settings_skin_closed_meta_boxes' );
113
+
114
+ function fv_flowplayer_settings_skin_closed_meta_boxes( $closed ) {
115
+ if ( false === $closed ) {
116
+ global $fv_fp;
117
+ $customCSS = $fv_fp->_get_option('customCSS');
118
+
119
+ if( strlen( $customCSS ) === 0 ) {
120
+ $closed = array( 'fv_flowplayer_skin_custom_css' );
121
+ }
122
+ }
123
+
124
+ return $closed;
125
+ }
126
 
127
  /*
128
  * Saving settings
145
 
146
  global $fv_fp;
147
  if( method_exists($fv_fp,'_set_conf') ) {
148
+ if(
149
+ // pro not installed or
150
+ !function_exists('FV_Player_Pro') ||
151
+ // pro installed and version is at least 7.5.25.728
152
+ ( function_exists('FV_Player_Pro') && version_compare( str_replace( '.beta','',FV_Player_Pro()->version ),'7.5.25.728', '>=') )
153
+ ) {
154
+ $to_save = fv_player_handle_secrets($_POST, $fv_fp->conf);
155
+ } else {
156
+ $to_save = $_POST;
157
+ }
158
+
159
+ $fv_fp->_set_conf($to_save);
160
  } else {
161
  echo 'Error saving FV Flowplayer options.';
162
  }
163
+ }
164
+ }
165
+
166
+
167
+
168
+
169
+ function fv_player_handle_secrets($new, $old) {
170
+ foreach( $new as $k => $v ) {
171
+ if (is_array($v) && strpos($k, '_is_secret_') !== 0 && isset($old[$k]) ) {
172
+ // recursive call for nested settings
173
+ $v = fv_player_handle_secrets($v, $old[$k]);
174
+ $new[$k] = $v;
175
+ }
176
+
177
+ if(strpos($k, '_is_secret_') === 0 ) {
178
+ $key = str_replace('_is_secret_', '', $k);
179
+
180
+ if( isset($old[$key]) ) {
181
+ if(is_array($v)) { // array of values, 1 - keep original, 0 - use new
182
+ foreach( $v as $a_k => $a_v ) {
183
+ if( $a_v == '1' ) {
184
+ $new[$key][$a_k] = $old[$key][$a_k];
185
+ }
186
+ }
187
+ } else if($v == '1') { // single value, 1 - keep original, 0 - use new
188
+ $new[$key] = $old[$key];
189
+ }
190
+ }
191
+
192
+ unset($new[$k]); // remove _is_secret_
193
+ }
194
+ }
195
+
196
+ return $new;
197
  }
198
 
199
 
css/flowplayer.css CHANGED
@@ -985,6 +985,9 @@
985
  .flowplayer .fp-message h2:before {
986
  display: none;
987
  }
 
 
 
988
 
989
  .flowplayer .fp-timeline.is-fp-dragging .fp-progress::after {
990
  content: "";
@@ -1019,6 +1022,7 @@
1019
  .flowplayer.fixed-controls.skin-custom {border: none}
1020
  .flowplayer.has-abloop, .entry-content .flowplayer.has-abloop { margin-bottom: 2.8em; }
1021
  .flowplayer.fixed-controls.has-abloop, .entry-content .flowplayer.fixed-controls.has-abloop { margin-bottom: 5.2em; }
 
1022
 
1023
  .flowplayer.fp-slim.fp-full .fp-timeline {
1024
  height: 3px; }
@@ -1789,7 +1793,6 @@ article .entry-content .fvfp_admin_error p { line-height: 18px }
1789
  .is-audio + .fp-playlist-external a h4:before,.entry-content .is-audio + .fp-playlist-external a h4:before { content: counter(fv-playlist-counter, decimal-leading-zero) ". ";float:left;min-width:26px;color:#adadad;font-weight:400 }
1790
  .flowplayer.fixed-controls.is-audio, .flowplayer.skin-custom.fixed-controls.is-audio { margin-bottom:2.8em;height:2.8em }
1791
  .flowplayer.fixed-controls.is-audio.fp-slim { height:2.8em }
1792
- .flowplayer.is-audio .fv-ab-loop,.flowplayer.fixed-controls.is-audio .fv-ab-loop {bottom:-28px;padding-left:82px}
1793
  .flowplayer.is-loading.is-audio .fp-controls { display:flex }
1794
  .flowplayer.is-audio.is-loading .fp-playbtn {opacity:0}
1795
  .flowplayer.is-audio.is-loading .fp-waiting {top:0;left:0;position:absolute}
985
  .flowplayer .fp-message h2:before {
986
  display: none;
987
  }
988
+ .flowplayer .fp-message a {
989
+ text-decoration: underline !important;
990
+ }
991
 
992
  .flowplayer .fp-timeline.is-fp-dragging .fp-progress::after {
993
  content: "";
1022
  .flowplayer.fixed-controls.skin-custom {border: none}
1023
  .flowplayer.has-abloop, .entry-content .flowplayer.has-abloop { margin-bottom: 2.8em; }
1024
  .flowplayer.fixed-controls.has-abloop, .entry-content .flowplayer.fixed-controls.has-abloop { margin-bottom: 5.2em; }
1025
+ .flowplayer.has-abloop .fp-timestamp { bottom: 2em }
1026
 
1027
  .flowplayer.fp-slim.fp-full .fp-timeline {
1028
  height: 3px; }
1793
  .is-audio + .fp-playlist-external a h4:before,.entry-content .is-audio + .fp-playlist-external a h4:before { content: counter(fv-playlist-counter, decimal-leading-zero) ". ";float:left;min-width:26px;color:#adadad;font-weight:400 }
1794
  .flowplayer.fixed-controls.is-audio, .flowplayer.skin-custom.fixed-controls.is-audio { margin-bottom:2.8em;height:2.8em }
1795
  .flowplayer.fixed-controls.is-audio.fp-slim { height:2.8em }
 
1796
  .flowplayer.is-loading.is-audio .fp-controls { display:flex }
1797
  .flowplayer.is-audio.is-loading .fp-playbtn {opacity:0}
1798
  .flowplayer.is-audio.is-loading .fp-waiting {top:0;left:0;position:absolute}
flowplayer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: FV Player
4
  Plugin URI: http://foliovision.com/wordpress/plugins/fv-wordpress-flowplayer
5
  Description: Formerly FV WordPress Flowplayer. Supports MP4, HLS, MPEG-DASH, WebM and OGV. Advanced features such as overlay ads or popups. Uses Flowplayer 7.2.8.
6
- Version: 7.5.22.728
7
  Author URI: http://foliovision.com/
8
  License: GPL-3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
@@ -27,8 +27,8 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.txt
27
  */
28
 
29
  global $fv_wp_flowplayer_ver;
30
- $fv_wp_flowplayer_ver = '7.5.22.728.1';
31
- $fv_wp_flowplayer_core_ver = '7.2.8';
32
  include_once( dirname( __FILE__ ) . '/includes/extra-functions.php' );
33
  if( file_exists( dirname( __FILE__ ) . '/includes/module.php' ) ) {
34
  include_once( dirname( __FILE__ ) . '/includes/module.php' );
@@ -87,6 +87,9 @@ if( is_admin() ) {
87
  include_once( dirname( __FILE__ ) . '/controller/settings.php' );
88
  if( version_compare(phpversion(),'5.5.0') != -1 ) {
89
  include_once(dirname( __FILE__ ) . '/models/media-browser.php');
 
 
 
90
  include_once(dirname( __FILE__ ) . '/models/media-browser-s3.php');
91
  }
92
  include_once(dirname( __FILE__ ) . '/models/system-info.php');
@@ -94,6 +97,7 @@ if( is_admin() ) {
94
  include_once(dirname( __FILE__ ). '/models/conversion/conversion-base.class.php');
95
  include_once(dirname( __FILE__ ). '/models/conversion/shortcode2DB.class.php');
96
  include_once(dirname( __FILE__ ) . '/models/conversion.php');
 
97
 
98
  register_deactivation_hook( __FILE__, 'flowplayer_deactivate' );
99
  }
3
  Plugin Name: FV Player
4
  Plugin URI: http://foliovision.com/wordpress/plugins/fv-wordpress-flowplayer
5
  Description: Formerly FV WordPress Flowplayer. Supports MP4, HLS, MPEG-DASH, WebM and OGV. Advanced features such as overlay ads or popups. Uses Flowplayer 7.2.8.
6
+ Version: 7.5.26.7210
7
  Author URI: http://foliovision.com/
8
  License: GPL-3.0
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
27
  */
28
 
29
  global $fv_wp_flowplayer_ver;
30
+ $fv_wp_flowplayer_ver = '7.5.26.7210';
31
+ $fv_wp_flowplayer_core_ver = '7.2.10';
32
  include_once( dirname( __FILE__ ) . '/includes/extra-functions.php' );
33
  if( file_exists( dirname( __FILE__ ) . '/includes/module.php' ) ) {
34
  include_once( dirname( __FILE__ ) . '/includes/module.php' );
87
  include_once( dirname( __FILE__ ) . '/controller/settings.php' );
88
  if( version_compare(phpversion(),'5.5.0') != -1 ) {
89
  include_once(dirname( __FILE__ ) . '/models/media-browser.php');
90
+ }
91
+
92
+ if( version_compare(phpversion(),'7.2.5') != -1 ) {
93
  include_once(dirname( __FILE__ ) . '/models/media-browser-s3.php');
94
  }
95
  include_once(dirname( __FILE__ ) . '/models/system-info.php');
97
  include_once(dirname( __FILE__ ). '/models/conversion/conversion-base.class.php');
98
  include_once(dirname( __FILE__ ). '/models/conversion/shortcode2DB.class.php');
99
  include_once(dirname( __FILE__ ) . '/models/conversion.php');
100
+ include_once( dirname( __FILE__ ) .'/models/splash-download.php');
101
 
102
  register_deactivation_hook( __FILE__, 'flowplayer_deactivate' );
103
  }
flowplayer/fv-flowplayer.min.js DELETED
@@ -1 +0,0 @@
1
- !function(e){function t(e,t,n,r){for(var o,a=n.slice(),s=i(t,e),l=0,u=a.length;u>l&&(handler=a[l],"object"==typeof handler&&"function"==typeof handler.handleEvent?handler.handleEvent(s):handler.call(e,s),!s.stoppedImmediatePropagation);l++);return o=!s.stoppedPropagation,r&&o&&e.parentNode?e.parentNode.dispatchEvent(s):!s.defaultPrevented}function n(e,t){return{configurable:!0,get:e,set:t}}function r(e,t,r){var i=y(t||e,r);m(e,"textContent",n(function(){return i.get.call(this)},function(e){i.set.call(this,e)}))}function i(e,t){return e.currentTarget=t,e.eventPhase=e.target===e.currentTarget?2:3,e}function o(e,t){for(var n=e.length;n--&&e[n]!==t;);return n}function a(){if("BR"===this.tagName)return"\n";for(var e=this.firstChild,t=[];e;)8!==e.nodeType&&7!==e.nodeType&&t.push(e.textContent),e=e.nextSibling;return t.join("")}function s(e){!f&&C.test(document.readyState)&&(f=!f,document.detachEvent(d,s),e=document.createEvent("Event"),e.initEvent(p,!0,!0),document.dispatchEvent(e))}function l(e){for(var t;t=this.lastChild;)this.removeChild(t);null!=e&&this.appendChild(document.createTextNode(e))}function u(t,n){return n||(n=e.event),n.target||(n.target=n.srcElement||n.fromElement||document),n.timeStamp||(n.timeStamp=(new Date).getTime()),n}if(!document.createEvent){var c=!0,f=!1,d="onreadystatechange",p="DOMContentLoaded",h="__IE8__"+Math.random(),g=e.Object,m=g.defineProperty||function(e,t,n){e[t]=n.value},v=g.defineProperties||function(t,n){for(var r in n)if(w.call(n,r))try{m(t,r,n[r])}catch(i){e.console&&console.log(r+" failed on object:",t,i.message)}},y=g.getOwnPropertyDescriptor,w=g.prototype.hasOwnProperty,b=e.Element.prototype,I=e.Text.prototype,M=/^[a-z]+$/,C=/loaded|complete/,A={},S=document.createElement("div");r(e.HTMLCommentElement.prototype,b,"nodeValue"),r(e.HTMLScriptElement.prototype,null,"text"),r(I,null,"nodeValue"),r(e.HTMLTitleElement.prototype,null,"text"),m(e.HTMLStyleElement.prototype,"textContent",function(e){return n(function(){return e.get.call(this.styleSheet)},function(t){e.set.call(this.styleSheet,t)})}(y(e.CSSStyleSheet.prototype,"cssText"))),v(b,{textContent:{get:a,set:l},firstElementChild:{get:function(){for(var e=this.childNodes||[],t=0,n=e.length;n>t;t++)if(1==e[t].nodeType)return e[t]}},lastElementChild:{get:function(){for(var e=this.childNodes||[],t=e.length;t--;)if(1==e[t].nodeType)return e[t]}},previousElementSibling:{get:function(){for(var e=this.previousSibling;e&&1!=e.nodeType;)e=e.previousSibling;return e}},nextElementSibling:{get:function(){for(var e=this.nextSibling;e&&1!=e.nodeType;)e=e.nextSibling;return e}},childElementCount:{get:function(){for(var e=0,t=this.childNodes||[],n=t.length;n--;e+=1==t[n].nodeType);return e}},addEventListener:{value:function(e,n,r){var i,a=this,s="on"+e,l=a[h]||m(a,h,{value:{}})[h],c=l[s]||(l[s]={}),f=c.h||(c.h=[]);if(!w.call(c,"w")){if(c.w=function(e){return e[h]||t(a,u(a,e),f,!1)},!w.call(A,s))if(M.test(e))try{i=document.createEventObject(),i[h]=!0,9!=a.nodeType&&null==a.parentNode&&S.appendChild(a),a.fireEvent(s,i),A[s]=!0}catch(i){for(A[s]=!1;S.hasChildNodes();)S.removeChild(S.firstChild)}else A[s]=!1;(c.n=A[s])&&a.attachEvent(s,c.w)}o(f,n)<0&&f[r?"unshift":"push"](n)}},dispatchEvent:{value:function(e){var n,r=this,i="on"+e.type,o=r[h],a=o&&o[i],s=!!a;return e.target||(e.target=r),s?a.n?r.fireEvent(i,e):t(r,e,a.h,!0):(n=r.parentNode)?n.dispatchEvent(e):!0,!e.defaultPrevented}},removeEventListener:{value:function(e,t,n){var r=this,i="on"+e,a=r[h],s=a&&a[i],l=s&&s.h,u=l?o(l,t):-1;u>-1&&l.splice(u,1)}}}),v(I,{addEventListener:{value:b.addEventListener},dispatchEvent:{value:b.dispatchEvent},removeEventListener:{value:b.removeEventListener}}),v(e.XMLHttpRequest.prototype,{addEventListener:{value:function(e,t,n){var r=this,i="on"+e,a=r[h]||m(r,h,{value:{}})[h],s=a[i]||(a[i]={}),l=s.h||(s.h=[]);o(l,t)<0&&(r[i]||(r[i]=function(){var t=document.createEvent("Event");t.initEvent(e,!0,!0),r.dispatchEvent(t)}),l[n?"unshift":"push"](t))}},dispatchEvent:{value:function(e){var n=this,r="on"+e.type,i=n[h],o=i&&i[r],a=!!o;return a&&(o.n?n.fireEvent(r,e):t(n,e,o.h,!0))}},removeEventListener:{value:b.removeEventListener}}),v(e.Event.prototype,{bubbles:{value:!0,writable:!0},cancelable:{value:!0,writable:!0},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0,this.returnValue=!1)}},stopPropagation:{value:function(){this.stoppedPropagation=!0,this.cancelBubble=!0}},stopImmediatePropagation:{value:function(){this.stoppedImmediatePropagation=!0,this.stopPropagation()}},initEvent:{value:function(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n,this.bubbles||this.stopPropagation()}}}),v(e.HTMLDocument.prototype,{textContent:{get:function(){return 11===this.nodeType?a.call(this):null},set:function(e){11===this.nodeType&&l.call(this,e)}},addEventListener:{value:function(t,n,r){var i=this;b.addEventListener.call(i,t,n,r),c&&t===p&&!C.test(i.readyState)&&(c=!1,i.attachEvent(d,s),e==top&&function o(e){try{i.documentElement.doScroll("left"),s()}catch(t){setTimeout(o,50)}}())}},dispatchEvent:{value:b.dispatchEvent},removeEventListener:{value:b.removeEventListener},createEvent:{value:function(e){var t;if("Event"!==e)throw new Error("unsupported "+e);return t=document.createEventObject(),t.timeStamp=(new Date).getTime(),t}}}),v(e.Window.prototype,{getComputedStyle:{value:function(){function e(e){this._=e}function t(){}var n=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/,r=/^(top|right|bottom|left)$/,i=/\-([a-z])/g,o=function(e,t){return t.toUpperCase()};return e.prototype.getPropertyValue=function(e){var t,a,s,l=this._,u=l.style,c=l.currentStyle,f=l.runtimeStyle;return e=("float"===e?"style-float":e).replace(i,o),t=c?c[e]:u[e],n.test(t)&&!r.test(e)&&(a=u.left,s=f&&f.left,s&&(f.left=c.left),u.left="fontSize"===e?"1em":t,t=u.pixelLeft+"px",u.left=a,s&&(f.left=s)),null==t?t:t+""||"auto"},t.prototype.getPropertyValue=function(){return null},function(n,r){return r?new t(n):new e(n)}}()},addEventListener:{value:function(n,r,i){var a,s=e,l="on"+n;s[l]||(s[l]=function(e){return t(s,u(s,e),a,!1)}),a=s[l][h]||(s[l][h]=[]),o(a,r)<0&&a[i?"unshift":"push"](r)}},dispatchEvent:{value:function(t){var n=e["on"+t.type];return n?n.call(e,t)!==!1&&!t.defaultPrevented:!0}},removeEventListener:{value:function(t,n,r){var i="on"+t,a=(e[i]||g)[h],s=a?o(a,n):-1;s>-1&&a.splice(s,1)}}})}}(this),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.flowplayer=e()}}(function(){var e;return function(){function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}return e}()({1:[function(e,t,n){"use strict";var r=t.exports={},i=e("class-list"),o=window.jQuery,a=e("punycode"),s=e("computed-style");r.noop=function(){},r.identity=function(e){return e},r.removeNode=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},r.find=function(e,t){return o?o(e,t).toArray():(t=t||document,Array.prototype.map.call(t.querySelectorAll(e),function(e){return e}))},r.text=function(e,t){e["innerText"in e?"innerText":"textContent"]=t},r.findDirect=function(e,t){return r.find(e,t).filter(function(e){return e.parentNode===t})},r.hasClass=function(e,t){return"string"!=typeof e.className?!1:i(e).contains(t)},r.isSameDomain=function(e){var t=window.location,n=r.createElement("a",{href:e});return t.hostname===n.hostname&&t.protocol===n.protocol&&t.port===n.port},r.css=function(e,t,n){return"object"==typeof t?Object.keys(t).forEach(function(n){r.css(e,n,t[n])}):"undefined"!=typeof n?""===n?e?e.style.removeProperty(t):void 0:e?e.style.setProperty(t,n):void 0:e?s(e,t):void 0},r.createElement=function(e,t,n){try{var i=document.createElement(e);for(var a in t)t.hasOwnProperty(a)&&("css"===a?r.css(i,t[a]):r.attr(i,a,t[a]));return n&&(i.innerHTML=n),i}catch(s){if(!o)throw s;return o("<"+e+">"+n+"</"+e+">").attr(t)[0]}},r.toggleClass=function(e,t,n){if(e){var r=i(e);"undefined"==typeof n?r.toggle(t):n?r.add(t):n||r.remove(t)}},r.addClass=function(e,t){return r.toggleClass(e,t,!0)},r.removeClass=function(e,t){return r.toggleClass(e,t,!1)},r.append=function(e,t){return e.appendChild(t),e},r.appendTo=function(e,t){return r.append(t,e),e},r.prepend=function(e,t){e.insertBefore(t,e.firstChild)},r.insertAfter=function(e,t,n){t==r.lastChild(e)&&e.appendChild(n);var i=Array.prototype.indexOf.call(e.children,t);e.insertBefore(n,e.children[i+1])},r.html=function(e,t){e=e.length?e:[e],e.forEach(function(e){e.innerHTML=t})},r.attr=function(e,t,n){if("class"===t&&(t="className"),r.hasOwnOrPrototypeProperty(e,t))try{e[t]=n}catch(i){if(!o)throw i;o(e).attr(t,n)}else n===!1?e.removeAttribute(t):e.setAttribute(t,n);return e},r.prop=function(e,t,n){return"undefined"==typeof n?e&&e[t]:void(e[t]=n)},r.offset=function(e){var t=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight&&(t={left:100*t.left,right:100*t.right,top:100*t.top,bottom:100*t.bottom,width:100*t.width,height:100*t.height}),t},r.width=function(e,t){if(t)return e.style.width=(""+t).replace(/px$/,"")+"px";var n=r.offset(e).width;return"undefined"==typeof n?e.offsetWidth:n},r.height=function(e,t){if(t)return e.style.height=(""+t).replace(/px$/,"")+"px";var n=r.offset(e).height;return"undefined"==typeof n?e.offsetHeight:n},r.lastChild=function(e){return e.children[e.children.length-1]},r.hasParent=function(e,t){for(var n=e.parentElement;n;){if("string"!=typeof t){if(n===t)return!0}else if(r.matches(n,t))return!0;n=n.parentElement}return!1},r.createAbsoluteUrl=function(e){return r.createElement("a",{href:e}).href},r.xhrGet=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){return 4===this.readyState?this.status>=400?n():void t(this.responseText):void 0},r.open("get",e,!0),r.send()},r.pick=function(e,t){var n={};return t.forEach(function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n},r.hostname=function(e){return a.toUnicode(e||window.location.hostname)},r.browser={webkit:"WebkitAppearance"in document.documentElement.style},r.getPrototype=function(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__},r.hasOwnOrPrototypeProperty=function(e,t){for(var n=e;n;){if(Object.prototype.hasOwnProperty.call(n,t))return!0;n=r.getPrototype(n)}return!1},r.matches=function(e,t){var n=Element.prototype,r=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),r=0;n[r]&&n[r]!==t;)r++;return n[r]?!0:!1};return r.call(e,t)},function(e){function t(e){return e.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})}"undefined"!=typeof e.setAttribute&&(e.setProperty=function(e,n){return this.setAttribute(t(e),String(n))},e.getPropertyValue=function(e){return this.getAttribute(t(e))||null},e.removeProperty=function(e){var n=this.getPropertyValue(e);return this.removeAttribute(t(e)),n})}(window.CSSStyleDeclaration.prototype)},{"class-list":36,"computed-style":37,punycode:44}],2:[function(e,t,n){"use strict";var r=e("../common");t.exports=function(e,t,n,i){n=n||"opaque";var o="obj"+(""+Math.random()).slice(2,15),a='<object class="fp-engine" id="'+o+'" name="'+o+'" ',s=navigator.userAgent.indexOf("MSIE")>-1;a+=s?'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">':' data="'+e+'" type="application/x-shockwave-flash">';var l={width:"100%",height:"100%",allowscriptaccess:"always",wmode:n,quality:"high",flashvars:"",movie:e+(s?"?"+o:""),name:o};"transparent"!==n&&(l.bgcolor=i||"#333333"),Object.keys(t).forEach(function(e){l.flashvars+=e+"="+t[e]+"&"}),Object.keys(l).forEach(function(e){a+='<param name="'+e+'" value="'+l[e]+'"/>'}),a+="</object>";var u=r.createElement("div",{},a);return r.find("object",u)},window.attachEvent&&window.attachEvent("onbeforeunload",function(){window.__flash_savedUnloadHandler=window.__flash_unloadHandler=function(){}})},{"../common":1}],3:[function(e,t,n){"use strict";function r(e){return/^https?:/.test(e)}var i,o=e("../flowplayer"),a=e("../common"),s=e("./embed"),l=e("extend-object"),u=e("bean");i=function(e,t){function n(e){function t(e){return("0"+parseInt(e).toString(16)).slice(-2)}return(e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))?"#"+t(e[1])+t(e[2])+t(e[3]):void 0}function c(e){if(7===e.length)return e;var t=e.split("").slice(1);return"#"+t.map(function(e){return e+e}).join("")}function f(e){return/application\/x-mpegurl/i.test(e.type)}var d,p,h,g,m=e.conf,v=[],y={engineName:i.engineName,pick:function(t){var n=l({},function(){if(o.support.flashVideo){for(var n,r,i=0;i<t.length;i++)if(r=t[i],/mp4|flv|flash/i.test(r.type)&&(n=r),e.conf.swfHls&&/mpegurl/i.test(r.type)&&(n=r),n&&!/mp4/i.test(n.type))return n;return n}}());if(n)return!n.src||r(n.src)||e.conf.rtmp||n.rtmp||(n.src=a.createAbsoluteUrl(n.src)),n},suspendEngine:function(){g=!0},resumeEngine:function(){g=!1},load:function(i){function w(e){return e.replace(/&amp;/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D")}d=i,v.forEach(function(e){clearTimeout(e)});var b=a.findDirect("video",t)[0]||a.find(".fp-player > video",t)[0],I=i.src,M=r(I),C=function(){a.removeNode(b)},A=function(e){return e.some(function(e){return!!b.canPlayType(e.type)})};o.support.video&&a.prop(b,"autoplay")&&A(i.sources)?u.one(b,"timeupdate",C):C();var S=i.rtmp||m.rtmp;if(M||S||(I=a.createAbsoluteUrl(I)),h&&f(i)&&h.data!==a.createAbsoluteUrl(m.swfHls)&&y.unload(),h){["live","preload","loop"].forEach(function(e){i.hasOwnProperty(e)&&h.__set(e,i[e])}),Object.keys(i.flashls||{}).forEach(function(e){h.__set("hls_"+e,i.flashls[e])});var E=!1;if(!M&&S)h.__set("rtmp",S.url||S);else{var j=h.__get("rtmp");E=!!j,h.__set("rtmp",null)}h.__play(I,E||i.rtmp&&i.rtmp!==m.rtmp)}else{p="fpCallback"+(""+Math.random()).slice(3,15),I=w(I);var D={hostname:m.embedded?a.hostname(m.hostname):a.hostname(location.hostname),url:I,callback:p};t.getAttribute("data-origin")&&(D.origin=t.getAttribute("data-origin")),["proxy","key","autoplay","preload","subscribe","live","loop","debug","splash","poster","rtmpt"].forEach(function(e){m.hasOwnProperty(e)&&(D[e]=m[e]),i.hasOwnProperty(e)&&(D[e]=i[e]),(m.rtmp||{}).hasOwnProperty(e)&&(D[e]=(m.rtmp||{})[e]),(i.rtmp||{}).hasOwnProperty(e)&&(D[e]=(i.rtmp||{})[e])}),m.splash&&(D.autoplay=!0),m.rtmp&&(D.rtmp=m.rtmp.url||m.rtmp),i.rtmp&&(D.rtmp=i.rtmp.url||i.rtmp),Object.keys(i.flashls||{}).forEach(function(e){var t=i.flashls[e];D["hls_"+e]=t});var N="undefined"!=typeof i.hlsQualities?i.hlsQualities:m.hlsQualities;"undefined"!=typeof N&&(D.hlsQualities=N?encodeURIComponent(JSON.stringify(N)):N),void 0!==m.bufferTime&&(D.bufferTime=m.bufferTime),void 0!==m.bufferTimeMax&&(D.bufferTimeMax=m.bufferTimeMax),M&&delete D.rtmp,D.rtmp&&(D.rtmp=w(D.rtmp));var x,L=m.bgcolor||a.css(t,"background-color")||"";0===L.indexOf("rgb")?x=n(L):0===L.indexOf("#")&&(x=c(L)),D.initialVolume=e.volumeLevel;var T=f(i)?m.swfHls:m.swf;h=s(T,D,m.wmode,x)[0];var Z=a.find(".fp-player",t)[0];a.prepend(Z,h),e.off("quality.flashengine").on("quality.flashengine",function(t,n,r){var i="undefined"!=typeof e.video.hlsQualities?e.video.hlsQualities:e.conf.hlsQualities;if(i)try{h.__quality(r)}catch(o){e.debug("Error changing quality in flash engine",o)}}),setTimeout(function(){try{if(!h.PercentLoaded())return e.trigger("error",[e,{code:7,url:m.swf}])}catch(t){}},5e3),v.push(setTimeout(function(){"undefined"==typeof h.PercentLoaded&&e.trigger("flashdisabled",[e])},15e3)),v.push(setTimeout(function(){"undefined"==typeof h.PercentLoaded&&e.trigger("flashdisabled",[e,!1])},500)),e.off("resume.flashhack").on("resume.flashhack",function(){var t=setTimeout(function(){var t=h.__status().time,n=setTimeout(function(){e.playing&&!e.loading&&h.__status().time===t&&e.trigger("flashdisabled",[e])},400);v.push(n),e.one("seek.flashhack pause.flashhack load.flashack",function(){clearTimeout(n)})},800);v.push(t),e.one("progress",function(){clearTimeout(t)})}),h.pollInterval=setInterval(function(){if(h&&!g){var t=h.__status?h.__status():null;t&&((e.conf.live||e.live||i.live)&&(i.seekOffset=t.seekOffset,i.duration=t.duration+t.seekOffset),e.playing&&t.time&&t.time!==e.video.time&&e.trigger("progress",[e,t.time]),i.buffer=t.buffer/i.bytes*i.duration,e.trigger("buffer",[e,i.buffer]),!i.buffered&&t.time>0&&(i.buffered=!0,e.trigger("buffered",[e])))}},250),window[p]=function(n,r){var i=d;m.debug&&(0===n.indexOf("debug")&&r&&r.length?console.log.apply(console,["-- "+n].concat(r)):console.log("--",n,r));var o={type:n};switch(n){case"ready":r=l(i,r);break;case"click":o.flash=!0;break;case"keydown":o.which=r;break;case"seek":i.time=r;break;case"status":e.trigger("progress",[e,r.time]),r.buffer<i.bytes&&!i.buffered?(i.buffer=r.buffer/i.bytes*i.duration,e.trigger("buffer",i.buffer)):i.buffered||(i.buffered=!0,e.trigger("buffered"));break;case"metadata":var a=atob(r);r={key:a.substr(10,4),data:a.substr(21)}}"click"===n||"keydown"===n?(o.target=t,u.fire(t,n,[o])):"buffered"!=n&&"unload"!==n?setTimeout(function(){e.trigger(o,[e,r])},1):"unload"===n&&e.trigger(o,[e,r])}}},speed:a.noop,unload:function(){h&&h.__unload&&h.__unload();try{p&&window[p]&&delete window[p]}catch(n){}a.find("object",t).forEach(a.removeNode),h=0,e.off(".flashengine"),e.off(".flashhack"),clearInterval(h.pollInterval),v.forEach(function(e){clearTimeout(e)})}};return["pause","resume","seek","volume"].forEach(function(t){y[t]=function(n){try{e.ready&&(void 0===n?h["__"+t]():h["__"+t](n))}catch(r){if("undefined"==typeof h["__"+t])return e.trigger("flashdisabled",[e]);throw r}}}),y},i.engineName="flash",i.canPlay=function(e,t){return o.support.flashVideo&&/video\/(mp4|flash|flv)/i.test(e)||o.support.flashVideo&&t.swfHls&&/mpegurl/i.test(e)},o.engines.push(i)},{"../common":1,"../flowplayer":31,"./embed":2,bean:34,"extend-object":39}],4:[function(e,t,n){"use strict";function r(e){return"undefined"==typeof window.Hls?!1:/mpegurl/.test(e)&&window.Hls.isSupported()}var i,o=e("../flowplayer"),a=o.support,s=o.common,l=o.bean,u=e("./html5-factory");i=function(e,t){function n(n,r,u){var d=o.extend({recoverMediaError:!0},e.conf.hlsjs,n.hlsjs);e.engine.hls&&e.engine.hls.destroy();var p=e.engine.hls=new f(d);i.extensions.forEach(function(n){n({hls:p,player:e,root:t,videoTag:r})}),p.loadSource(n.src),u.resume=function(){e.live&&!e.dvr&&(r.currentTime=p.liveSyncPosition||0),r.play()},u.seek=function(t){try{e.live||e.dvr?r.currentTime=Math.min(t,p.liveSyncPosition||r.duration-d.livePositionOffset):r.currentTime=t}catch(n){e.debug("Failed to seek to ",t,n)}},d.bufferWhilePaused===!1&&e.on("pause",function(){p.stopLoad(),e.one("resume",function(){p.startLoad()})}),e.on("quality",function(e,t,n){p.nextLevel=a=n});var h,g,m=function(n){if(e.debug("hlsjs - recovery"),s.removeClass(t,"is-paused"),s.addClass(t,"is-seeking"),l.one(r,"seeked",function(){r.paused&&(s.removeClass(t,"is-poster"),e.poster=!1,r.play()),s.removeClass(t,"is-seeking")}),n)return p.startLoad();var i=performance.now();!h||i-h>3e3?(h=performance.now(),p.recoverMediaError()):(!g||i-g>3e3)&&(g=performance.now(),p.swapAudioCodec(),p.recoverMediaError())};return p.on(f.Events.MANIFEST_PARSED,function(t,i){var o,l=n.hlsQualities||e.conf.hlsQualities,u={},f=i.levels;if(l===!1)return p.attachMedia(r);if("drive"===l)switch(f.length){case 4:o=[1,2,3];break;case 5:o=[1,2,3,4];break;case 6:o=[1,3,4,5];break;case 7:o=[1,3,5,6];break;case 8:o=[1,3,6,7];break;default:o=f.length<3||f[0].height&&f[2].height&&f[0].height===f[2].height?[]:[1,2]}if(n.qualities=[{value:-1,label:"Auto"}],Array.isArray(l)){var d=l.find(function(e){return-1===e||e.level&&-1===e.level});d?n.qualities[0].label="number"!=typeof d?d.label:n.qualities[0].label:n.qualities=[],o=l.map(function(e){return"undefined"!=typeof e.level&&(u[e.level]=e.label),"undefined"!=typeof e.level?e.level:e})}var h=-2;n.qualities=n.qualities.concat(f.map(function(e,t){if(o&&-1===o.indexOf(t))return!1;var n=u[t]||Math.min(e.width,e.height)+"p";return u[t]||"drive"===l||(n+=" ("+Math.round(e.bitrate/1e3)+"k)"),t===a&&(h=t),{value:t,label:n}})).filter(s.identity);var g=n.quality=-2===h?n.qualities[0].value||-1:h;g!==p.currentLevel&&(p.currentLevel=g),p.attachMedia(r),c&&n.src!==c&&r.play(),c=n.src}),p.on(f.Events.ERROR,function(t,n){if(n.fatal)if(d.recoverNetworkError&&n.type===f.ErrorTypes.NETWORK_ERROR)m(!0);else if(d.recoverMediaError&&n.type===f.ErrorTypes.MEDIA_ERROR)m(!1);else{var r=5;n.type===f.ErrorTypes.NETWORK_ERROR&&(r=2),n.type===f.ErrorTypes.MEDIA_ERROR&&(r=3),p.destroy(),e.trigger("error",[e,{code:r}])}}),e.one("unload",function(){p.destroy()}),{handlers:{error:function(e,t){var n=t.error&&t.error.code;return d.recoverMediaError&&3===n||!n?(e.preventDefault(),m(!1),!0):d.recoverNetworkError&&2===n?(e.preventDefault(),m(!0),!0):void 0}}}}var a,c,f=window.Hls;return u("hlsjs-lite",e,t,r,n)},i.canPlay=function(e,t){return t.hlsjs===!1||t.clip&&t.clip.hlsjs===!1?!1:a.browser.safari&&!(t.clip&&t.clip.hlsjs||t.hlsjs||{}).safari?!1:o.support.video&&r(e)},i.engineName="hlsjs-lite",i.plugin=function(e){i.extensions.push(e)},i.extensions=[],o.engines.push(i)},{"../flowplayer":31,"./html5-factory":5}],5:[function(e,t,n){function r(e,t,n,r,a){function f(e,o,a,f){var p=n.getAttribute("data-flowplayer-instance-id");if(e.listeners&&e.listeners.hasOwnProperty(p))return void(e.listeners[p]=a);(e.listeners||(e.listeners={}))[p]=a,u.on(o,"error",function(n){try{r(n.target.getAttribute("type"))&&t.trigger("error",[t,{code:4,video:c(a,{src:e.src,url:e.src})}])}catch(i){}}),t.on("shutdown",function(){u.off(o),u.off(e,".dvrhack"),t.off(".loophack")});var h={},g=function(e){"metadata"===e.kind&&(e.mode="hidden",e.addEventListener("cuechange",function(){e.activeCues.length&&t.trigger("metadata",[t,e.activeCues[0].value])},!1))};return e&&e.textTracks&&e.textTracks.length&&Array.prototype.forEach.call(e.textTracks,g),e&&e.textTracks&&"function"==typeof e.textTracks.addEventListener&&e.textTracks.addEventListener("addtrack",function(e){g(e.track)},!1),(t.conf.dvr||t.dvr||a.dvr)&&u.on(e,"progress.dvrhack",function(){e.seekable.length&&(t.video.duration=e.seekable.end(null),t.video.seekOffset=e.seekable.start(null),t.trigger("dvrwindow",[t,{start:e.seekable.start(null),end:e.seekable.end(null)}]),e.currentTime>=e.seekable.start(null)||(e.currentTime=e.seekable.start(null)))}),Object.keys(d).forEach(function(r){var o=d[r];if("webkitendfullscreen"===r&&t.conf.disableInline&&(o="unload"),o){var u=function(u){if(a=e.listeners[p],u.target&&s.hasClass(u.target,"fp-engine")){/progress/.test(o)||t.debug(r,"->",o,u);var d=function(e){t.trigger(e||o,[t,h])};if(!t.ready&&!/ready|error/.test(o)||!o||!s.find("video",n).length)return void("resume"===o&&t.one("ready",function(){setTimeout(function(){d()})}));var h;if("unload"===o)return void t.unload();switch(o){case"ready":if(t.ready)return t.debug("Player already ready, not sending duplicate ready event");if(!(e.duration&&e.duration!==1/0||t.live))return t.debug("No duration and VOD setup, not sending ready event");if(h=c(a,{duration:e.duration<Number.MAX_VALUE?e.duration:0,width:e.videoWidth,height:e.videoHeight,url:e.currentSrc}),h.seekable=h.duration,t.debug("Ready: ",h),!t.live&&!h.duration&&!l.hlsDuration&&"loadeddata"===r){var g=function(){h.duration=e.duration;try{h.seekable=e.seekable&&e.seekable.end(null)}catch(t){}d(),e.removeEventListener("durationchange",g),s.toggleClass(n,"is-live",!1)};e.addEventListener("durationchange",g);var m=function(){t.ready||e.duration||(h.duration=0,s.addClass(n,"is-live"),d()),e.removeEventListener("timeupdate",m)};return void e.addEventListener("timeupdate",m)}break;case"progress":case"seek":if(e.currentTime>0||t.live)h=Math.max(e.currentTime,0);else if("seek"===o&&0===e.currentTime)h=0;else if("progress"==o)return;break;case"buffer":h=[];for(var v=0;v<e.buffered.length;v++)h.push({start:e.buffered.start(v),end:e.buffered.end(v)});e.buffered.length&&e.buffered.end(null)===e.duration&&d("buffered");break;case"speed":h=i(e.playbackRate);break;case"volume":h=i(e.muted?0:e.volume);break;case"error":try{if(f&&f.handlers&&f.handlers.error){var y=f.handlers.error(u,e);if(y)return}h=(u.srcElement||u.originalTarget).error,h.video=c(a,{src:e.src,url:e.src})}catch(w){return}}d()}};n.addEventListener(r,u,!0),h[r]||(h[r]=[]),h[r].push(u)}}),h}var p,h,g,m=s.findDirect("video",n)[0]||s.find(".fp-player > video",n)[0],v=t.conf;return g={engineName:e,pick:function(e){var t=l.video&&e.filter(function(e){return r(e.type)})[0];if(t)return"string"==typeof t.src&&(t.src=s.createAbsoluteUrl(t.src)),t},load:function(e){var r=s.find(".fp-player",n)[0],i=!1;if(m||(m=document.createElement("video"),s.prepend(r,m),m.autoplay=!!v.splash,i=!0),s.addClass(m,"fp-engine"),s.find("track",m).forEach(s.removeNode),m.preload="none",v.nativesubtitles||s.attr(m,"crossorigin",!1),v.disableInline||(m.setAttribute("webkit-playsinline","true"),m.setAttribute("playsinline","true")),l.inlineVideo||s.css(m,{position:"absolute",top:"-9999em"}),l.subtitles&&v.nativesubtitles&&e.subtitles&&e.subtitles.length){s.addClass(m,"native-subtitles");var c=e.subtitles,d=function(e){var t=m.textTracks;t.length&&(t[0].mode=e)};c.some(function(e){return!s.isSameDomain(e.src)})&&s.attr(m,"crossorigin","anonymous"),"function"==typeof m.textTracks.addEventListener&&m.textTracks.addEventListener("addtrack",function(){d("disabled"),d("showing")}),c.forEach(function(e){m.appendChild(s.createElement("track",{kind:"subtitles",srclang:e.srclang||"en",label:e.label||"en",src:e.src,default:e["default"]}))})}u.off(m,"timeupdate",s.noop),u.on(m,"timeupdate",s.noop),s.prop(m,"loop",!1),t.off(".loophack"),(e.loop||v.loop)&&t.on("finish.loophack",function(){t.resume()}),"undefined"!=typeof h&&(m.volume=h);var p=a(e,m,g);if(v.autoplay||v.splash||e.autoplay){t.debug("Autoplay / Splash setup, try to start video"),m.load();var y=function(){try{var e=m.play();if(e&&e["catch"]){var n=function(e){if("AbortError"===e.name&&20===e.code)return i?void 0:m.play()["catch"](n);if(!v.mutedAutoplay)throw new Error("Unable to autoplay");return t.debug("Play errored, trying muted",e),t.mute(!0,!0),m.play()};e["catch"](n)["catch"](function(){v.autoplay=!1,t.mute(!1,!0),t.trigger("stop",[t])})}}catch(r){t.debug("play() error thrown",r)}};m.readyState>0?y():u.one(m,"canplay",y)}if(g._listeners=f(m,s.find("source",m).concat(m),e,p)||g._listeners,!(v.autoplay||v.splash||e.autoplay)){var w=function(){o(n)&&(t.debug("player is in viewport, preload"),l.preloadMetadata?m.preload="metadata":m.load(),u.off(document,"scroll.preloadviewport"))};u.off(document,"scroll.preloadviewport"),u.on(document,"scroll.preloadviewport",function(){window.requestAnimationFrame(w)}),w()}},mute:function(e){m.muted=!!e,t.trigger("mute",[t,e]),t.trigger("volume",[t,e?0:m.volume])},pause:function(){m.pause()},resume:function(){m.play()},speed:function(e){m.playbackRate=e},seek:function(e){var n=m.paused||t.finished;try{m.currentTime=e,n&&u.one(m,"seeked",function(){m.pause()})}catch(r){}},volume:function(e){h=e,m&&(m.volume=e,e&&g.mute(!1))},unload:function(){u.off(document,"scroll.preloadviewport"),s.find("video.fp-engine",n).forEach(function(e){"MediaSource"in window?e.src=URL.createObjectURL(new MediaSource):e.src="",s.removeNode(e)}),p=clearInterval(p);var e=n.getAttribute("data-flowplayer-instance-id");delete m.listeners[e],m=0,g._listeners&&Object.keys(g._listeners).forEach(function(e){g._listeners[e].forEach(function(t){n.removeEventListener(e,t,!0)})})}}}function i(e,t){return t=t||100,Math.round(e*t)/t}function o(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+t.height&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+t.width}var a=e("../flowplayer"),s=a.common,l=a.support,u=a.bean,c=a.extend,f=l.browser.safari&&!l.iOS,d={ended:"finish",pause:"pause",play:"resume",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadedmetadata:f?0:"ready",canplaythrough:f?"ready":0,durationchange:"ready",error:"error",dataunavailable:"error",webkitendfullscreen:!a.support.inlineVideo&&"unload",progress:"buffer"};t.exports=r},{"../flowplayer":31}],6:[function(e,t,n){"use strict";function r(e){return/mpegurl/i.test(e)?"application/x-mpegurl":e}function i(e){return/^(video|application)/i.test(e)||(e=r(e)),!!u.canPlayType(e).replace("no","")}var o,a=e("../flowplayer"),s=a.common,l=e("./html5-factory"),u=document.createElement("video");o=function(e,t){return l("html5",e,t,i,function(e,t){t.currentSrc!==e.src?(s.find("source",t).forEach(s.removeNode),t.src=e.src,t.type=e.type):e.autoplay&&t.load()})},o.canPlay=function(e){return a.support.video&&i(e)},o.engineName="html5",a.engines.push(o)},{"../flowplayer":31,"./html5-factory":5}],7:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){e.on("ready",function(){var e=i.find("video.fp-engine",t)[0];e&&(e.setAttribute("x-webkit-airplay","allow"),window.WebKitPlaybackTargetAvailabilityEvent&&(e.addEventListener("webkitplaybacktargetavailabilitychanged",function(e){if("available"===e.availability){var n=i.find(".fp-header",t)[0];i.find(".fp-airplay",n).forEach(i.removeNode);var r=i.createElement("a",{class:"fp-airplay fp-icon",title:"Play on AirPlay device"});n.appendChild(r)}}),e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(){var n=i.find(".fp-airplay",t)[0];n&&i.toggleClass(n,"fp-active",e.webkitCurrentPlaybackTargetIsWireless)})))}),o.on(t,"click",".fp-airplay",function(e){e.preventDefault();var n=i.find("video.fp-engine",t)[0];n.webkitShowPlaybackTargetPicker()})})},{"../common":1,"../flowplayer":31,bean:34}],8:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("./resolve").TYPE_RE,o=e("scriptjs"),a=e("bean");r(function(e,t){var n,r=e.conf.analytics,s=0,l=0;if(r){"undefined"==typeof _gat&&o("//google-analytics.com/ga.js");var u=function(){var e=_gat._getTracker(r);return e._setAllowLinker(!0),e},c=function(r,o,a){if(a=a||e.video,s&&"undefined"!=typeof _gat){var l=u();l._trackEvent("Video / Seconds played",e.engine.engineName+"/"+a.type,a.title||t.getAttribute("title")||a.src.split("/").slice(-1)[0].replace(i,""),Math.round(s/1e3)),s=0,n&&(clearTimeout(n),n=null)}};e.bind("load unload",c).bind("progress",function(){e.seeking||(s+=l?+new Date-l:0,l=+new Date),n||(n=setTimeout(function(){n=null;var e=u();e._trackEvent("Flowplayer heartbeat","Heartbeat","",0,!0)},6e5))}).bind("pause",function(){l=0}),e.bind("shutdown",function(){a.off(window,"unload",c)}),a.on(window,"unload",c)}})},{"../flowplayer":31,"./resolve":21,bean:34,scriptjs:45}],9:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean"),a=e("scriptjs");r(function(e,t){function n(){var e,t,n;e=g.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,t=new chrome.cast.SessionRequest(e),n=new chrome.cast.ApiConfig(t,r,s),chrome.cast.initialize(n,l,u)}function r(){console.log("sessionListener")}function s(e){e===chrome.cast.ReceiverAvailability.AVAILABLE&&c()}function l(){}function u(){console.log("onError")}function c(){var e=i.find(".fp-header",t)[0];if(e){i.find(".fp-chromecast",e).forEach(i.removeNode),i.find(".fp-chromecast-engine",t).forEach(i.removeNode),h=i.createElement("a",{class:"fp-chromecast fp-icon",title:"Play on Cast device"}),e.insertBefore(h,i.find(".fp-fullscreen",e)[0]);var n=i.createElement("div",{class:"fp-chromecast-engine"}),r=i.createElement("p",{class:"fp-chromecast-engine-status"}),o=i.createElement("p",{class:"fp-chromecast-engine-icon"});n.appendChild(o),n.appendChild(r);var a=i.find(".fp-engine",t)[0];a?a.parentNode.insertBefore(n,a):i.prepend(i.find(".fp-player",t)[0]||t,n)}}function f(){clearInterval(p),p=null,e.release(),i.toggleClass(t,"is-chromecast",!1),i.toggleClass(h,"fp-active",!1)}if(e.conf.chromecast!==!1){a("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"),window.__onGCastApiAvailable=function(e){e&&n()};var d,p,h,g=e.conf.chromecast||{};o.on(t,"click",".fp-chromecast",function(n){return n.preventDefault(),d?(e.trigger("pause",[e]),d.stop(),d=null,void f()):(e.playing&&e.pause(),void chrome.cast.requestSession(function(n){function r(n){n.addUpdateListener(function(r){if(d){p=p||setInterval(function(){e.trigger("progress",[e,n.getEstimatedTime()])},500),r?(i.toggleClass(t,"is-chromecast",!0),i.toggleClass(h,"fp-active",!0),e.hijack({pause:function(){n.pause()},resume:function(){n.play()},seek:function(e){var t=new chrome.cast.media.SeekRequest;t.currentTime=e,n.seek(t)}})):(f(),e.trigger("finish",[e]));var o=n.playerState;e.paused&&o===chrome.cast.media.PlayerState.PLAYING&&e.trigger("resume",[e]),e.playing&&o===chrome.cast.media.PlayerState.PAUSED&&e.trigger("pause",[e]),i.toggleClass(t,"is-loading",o===chrome.cast.media.PlayerState.BUFFERING)}})}d=n;var o=d.receiver.friendlyName;i.html(i.find(".fp-chromecast-engine-status")[0],"Playing on device "+o);var a=new chrome.cast.media.MediaInfo(e.video.src),s=new chrome.cast.media.LoadRequest(a);d.loadMedia(s,r,function(){})},function(e){console.error("requestSession error",e)}))})}})},{"../common":1,"../flowplayer":31,bean:34,scriptjs:45}],10:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){function n(e){t.className=t.className.replace(a," "),e>=0&&i.addClass(t,"cue"+e)}function r(t){var n=t&&!isNaN(t.time)?t.time:t;return 0>n&&(n=e.video.duration+n),.125*Math.round(n/.125)}var a=/ ?cue\d+ ?/,s=!1,l={},u=-.125,c=function(t){n(t.index),e.trigger("cuepoint",[e,t])};e.on("progress",function(e,t,n){if(!s)for(var i=r(n);i>u;)u+=.125,l[u]&&l[u].forEach(c)}).on("unload",n).on("beforeseek",function(e){setTimeout(function(){e.defaultPrevented||(s=!0)})}).on("seek",function(e,t,i){n(),u=r(i||0)-.125,s=!1,!i&&l[0]&&l[0].forEach(c)}).on("ready",function(t,n,r){u=-.125;var i=r.cuepoints||e.conf.cuepoints||[];e.setCuepoints(i)}).on("finish",function(){for(var t=r(e.video.duration);t>u;)u+=.125,l[u]&&l[u].forEach(c);u=-.125}),e.conf.generate_cuepoints&&e.bind("load",function(){i.find(".fp-cuepoint",t).forEach(i.removeNode)}),e.setCuepoints=function(t){return e.cuepoints=[],l={},t.forEach(e.addCuepoint),e},e.addCuepoint=function(n){e.cuepoints||(e.cuepoints=[]),"number"==typeof n&&(n={time:n}),n.index=0;var a=r(n);if(l[a]||(l[a]=[]),l[a].push(n),e.cuepoints.length&&(n.index=Math.max.apply(null,e.cuepoints.map(function(e){return e.index}))+1),e.cuepoints.push(n),e.conf.generate_cuepoints&&n.visible!==!1){var s=e.video.duration,u=i.find(".fp-timeline",t)[0];i.css(u,"overflow","visible");var c=n.time||n;0>c&&(c=s+c);var f=i.createElement("a",{className:"fp-cuepoint fp-cuepoint"+n.index});i.css(f,"left",c/s*100+"%"),u.appendChild(f),o.on(f,"mousedown",function(t){t.preventDefault(),t.stopPropagation(),e.seek(c)})}return e},e.removeCuepoint=function(n){"number"==typeof n&&(n=e.cuepoints.filter(function(e){return e.index===n})[0]);var o=e.cuepoints.indexOf(n),a=r(n);if(-1!==o){e.cuepoints=e.cuepoints.slice(0,o).concat(e.cuepoints.slice(o+1));var s=i.find(".fp-timeline",t)[0];i.find(".fp-cuepoint"+n.index,s).forEach(i.removeNode);var u=l[a].indexOf(n);if(-1!==u)return l[a]=l[a].slice(0,u).concat(l[a].slice(u+1)),e}}})},{"../common":1,"../flowplayer":31,bean:34}],11:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("bean"),o=e("../common"),a=e("./util/clipboard");r(function(e,t){if(e.conf.embed!==!1&&e.conf.share!==!1){var n=o.find(".fp-share-menu",t)[0],r=o.createElement("a",{class:"fp-icon fp-embed",title:"Copy to your site"},"Embed");o.append(n,r),e.embedCode=function(){var n=e.conf.embed||{},r=e.video,i=n.width||r.width||o.width(t),a=n.height||r.height||o.height(t),s=e.conf.ratio,l='<iframe src="'+e.shareUrl(!0)+'" allowfullscreen style="border:none;';return n.width||n.height?(isNaN(i)||(i+="px"),isNaN(a)||(a+="px"),l+"width:"+i+";height:"+a+';"></iframe>'):((!s||e.conf.adaptiveRatio)&&(s=a/i),'<div style="position:relative;width:100%;display:inline-block;">'+l+'position:absolute;top:0;left:0;width:100%;height:100%;"></iframe><div style="padding-top:'+100*s+'%;"></div></div>')},i.on(t,"click",".fp-embed",function(){a(e.embedCode(),function(){e.message("The embed code is now on your clipboard",2e3)},function(){e.textarea(e.embedCode(),"Copy the code below to embed your video")})})}})},{"../common":1,"../flowplayer":31,"./util/clipboard":30,bean:34}],12:[function(e,t,n){"use strict";t.exports=function(e,t){t||(t=document.createElement("div"));var n={},r={},i=function(e,i,o){var a=e.split(".")[0],s=function(l){o&&(t.removeEventListener(a,s),n[e].splice(n[e].indexOf(s),1));var u=[l].concat(r[l.timeStamp+l.type]||[]);i&&i.apply(void 0,u)};t.addEventListener(a,s),n[e]||(n[e]=[]),n[e].push(s)};e.on=e.bind=function(t,n){var r=t.split(" ");return r.forEach(function(e){i(e,n)}),e},e.one=function(t,n){var r=t.split(" ");return r.forEach(function(e){i(e,n,!0)}),e};var o=function(e,t){return 0===t.filter(function(t){return-1===e.indexOf(t)}).length};e.off=e.unbind=function(r){var i=r.split(" ");return i.forEach(function(e){var r=e.split(".").slice(1),i=e.split(".")[0];Object.keys(n).filter(function(e){var t=e.split(".").slice(1);return(!i||0===e.indexOf(i))&&o(t,r)}).forEach(function(e){var r=n[e],i=e.split(".")[0];n[e]=r.filter(function(e){return t.removeEventListener(i,e),!1})})}),e},e.trigger=function(n,i,o){if(n){i=(i||[]).length?i||[]:[i];var a,s=document.createEvent("Event");return a=n.type||n,s.initEvent(a,!1,!0),Object.defineProperty&&(s.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}),r[s.timeStamp+s.type]=i,t.dispatchEvent(s),o?s:e}}},t.exports.EVENTS=["beforeseek","disable","error","finish","fullscreen","fullscreen-exit","load","mute","pause","progress","ready","resume","seek","speed","stop","unload","volume","boot","shutdown"]},{}],13:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){var n=e.conf;if(n.share!==!1&&n.facebook){e.facebook=function(){var e,t,r=550,i=420,o=screen.height,a=screen.width,s="scrollbars=yes,resizable=yes,toolbar=no,location=yes",l="string"==typeof n.facebook?n.facebook:window.location.toString();e=Math.round(a/2-r/2),t=0,o>i&&(t=Math.round(o/2-i/2)),window.open("https://www.facebook.com/sharer.php?s=100&p[url]="+encodeURIComponent(l),"sharer",s+",width="+r+",height="+i+",left="+e+",top="+t)};var r=i.find(".fp-share-menu",t)[0],a=i.createElement("a",{class:"fp-icon fp-facebook"},"Facebook");i.append(r,a),o.on(t,"click",".fp-facebook",function(){e.facebook()})}})},{"../common":1,"../flowplayer":31,bean:34}],14:[function(e,t,n){"use strict";var r,i=e("../flowplayer"),o=e("bean"),a=e("../common"),s="fullscreen",l="fullscreen-exit",u=i.support.fullscreen;o.on(document,"fullscreenchange.ffscr webkitfullscreenchange.ffscr mozfullscreenchange.ffscr MSFullscreenChange.ffscr",function(e){var t=document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||document.msFullscreenElement;if(r||t.parentNode&&t.parentNode.getAttribute("data-flowplayer-instance-id")){var n=r||i(t.parentNode);t?r=n.trigger(s,[n]):(r.trigger(l,[r]),r=null)}}),i(function(e,t){var n=a.createElement("div",{className:"fp-player"});if(Array.prototype.map.call(t.children,a.identity).forEach(function(e){a.matches(e,".fp-ratio,script")||n.appendChild(e)}),t.appendChild(n),e.conf.fullscreen){var i,o,c=window;e.isFullscreen=!1,e.fullscreen=function(t){return e.disabled?void 0:(void 0===t&&(t=!e.isFullscreen),t&&(i=c.scrollY,o=c.scrollX),u?t?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof n[e]&&(n[e](Element.ALLOW_KEYBOARD_INPUT),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||n[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):e.trigger(t?s:l,[e]),e)};var f;e.on("mousedown.fs",function(){+new Date-f<150&&e.ready&&e.fullscreen(),f=+new Date}),e.on(s,function(){a.addClass(t,"is-fullscreen"),a.toggleClass(t,"fp-minimal-fullscreen",a.hasClass(t,"fp-minimal")),a.removeClass(t,"fp-minimal"),u||a.css(t,"position","fixed"),e.isFullscreen=!0}).on(l,function(){var n;a.toggleClass(t,"fp-minimal",a.hasClass(t,"fp-minimal-fullscreen")),a.removeClass(t,"fp-minimal-fullscreen"),u||"html5"!==e.engine||(n=t.css("opacity")||"",a.css(t,"opacity",0)),u||a.css(t,"position",""),a.removeClass(t,"is-fullscreen"),u||"html5"!==e.engine||setTimeout(function(){t.css("opacity",n)}),e.isFullscreen=!1,c.scrollTo(o,i)}).on("unload",function(){e.isFullscreen&&e.fullscreen()}),e.on("shutdown",function(){r=null,a.removeNode(n)})}})},{"../common":1,"../flowplayer":31,bean:34}],15:[function(e,t,n){"use strict";var r,i,o=e("../flowplayer"),a=e("bean"),s=e("../common");a.on(document,"keydown.fp",function(e){var t=r,n=e.ctrlKey||e.metaKey||e.altKey,i=e.which,o=t&&t.conf;if(t&&o.keyboard&&!t.disabled&&!n&&t.ready){if(e.shiftKey)return 39==i?t.speed(!0):37==i&&t.speed(!1),e.preventDefault();if(58>i&&i>47)return e.preventDefault(),t.seekTo(i-48);var a=function(){switch(i){case 38:case 75:return t.volume(t.volumeLevel+.15),!0;case 40:case 74:return t.volume(t.volumeLevel-.15),!0;case 39:case 76:return t.seeking=!0,t.seek(!0),!0;case 37:case 72:return t.seeking=!0,t.seek(!1),!0;case 190:return t.seekTo(),!0;case 32:return t.toggle(),!0;case 70:return o.fullscreen&&t.fullscreen(),!0;case 77:return t.mute(),!0;case 81:return t.unload(),!0}}();a&&e.preventDefault()}}),o(function(e,t){e.conf.keyboard&&(a.on(document,"click",function(n){if(s.hasParent(n.target,t))r=e.disabled?0:e;else{if(r!==e)return;r=0}r&&(i=t)}),e.bind("shutdown",function(){i==t&&(i=null)}))})},{"../common":1,"../flowplayer":31,bean:34}],16:[function(e,t,n){var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){e.showMenu=function(n,r){var a=i.find(".fp-ui",t)[0];i.toggleClass(n,"fp-active",!0),setTimeout(function(){o.one(document,"click",function(){e.hideMenu(n)})});var s=r;if(r&&r.tagName&&(s={left:i.offset(r).left,rightFallbackOffset:i.width(r),top:i.offset(r).top+i.height(r)}),!s)return i.css(n,"top","auto");s.rightFallbackOffset=s.rightFallbackOffset||0;var l=s.top-i.offset(a).top,u=s.left-i.offset(a).left;i.width(n)+u>i.width(a)&&(u=u-i.width(n)+s.rightFallbackOffset),i.height(n)+l>i.height(a)&&(l-=i.height(n)),i.css(n,{top:l+"px",left:u+"px",right:"auto"})},e.hideMenu=function(e){i.toggleClass(e,"fp-active",!1),i.css(e,{top:"-9999em"})}})},{"../common":1,"../flowplayer":31,bean:34}],17:[function(e,t,n){var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){function n(e){var t=i.createElement("div",{className:"fp-message"},e);return s.insertBefore(t,a),setTimeout(function(){i.toggleClass(t,"fp-shown")}),t}function r(e){i.removeNode(e)}var a=i.find(".fp-header",t)[0],s=i.find(".fp-ui",t)[0];e.message=function(e,t){var o=n(e),a=function(){i.toggleClass(o,"fp-shown"),setTimeout(function(){r(o)},500)};return t&&setTimeout(a,t),a},e.textarea=function(e){var t=document.createElement("textarea");t.value=e,t.className="fp-textarea",s.appendChild(t),o.on(document,"click.fptextarea",function(e){return e.target===t?t.select():(e.stopPropagation(),e.preventDefault(),i.removeNode(t),void o.off(document,"click.fptextarea"))})}})},{"../common":1,"../flowplayer":31,bean:34}],18:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=/IEMobile/.test(window.navigator.userAgent),o=e("../common"),a=e("bean"),s=e("./ui").format,l=r.support,u=window.navigator.userAgent;(l.touch||i)&&r(function(e,t){var n=l.android,r=n&&!n.firefox,c=/Silk/.test(u),f=n.version||0;if(r&&!i){if(!/Chrome/.test(u)&&4>f||n.samsung&&5>f){var d=e.load;e.load=function(){var n=d.apply(e,arguments);return o.find("video.fp-engine",t)[0].load(),e.trigger("ready",[e,e.video]),n}}var p,h=0,g=function(e){p=setInterval(function(){e.video.time=++h,e.trigger("progress",[e,h])},1e3)};e.on("ready pause unload",function(){p&&(clearInterval(p),p=null)}),e.on("ready",function(){h=0}),e.on("resume",function(t,n){return n.live?h?g(n):void e.one("progress",function(e,t,n){0===n&&g(t)}):void 0})}l.volume||(o.removeClass(t,"fp-mute"),o.addClass(t,"no-volume")),l.iOS&&o.addClass(t,"fp-mute"),o.addClass(t,"is-touch"),e.sliders&&e.sliders.timeline&&e.sliders.timeline.disableAnimation();var m=!1;a.on(t,"touchmove",function(){m=!0});var v=!0;if(a.on(t,"touchend click",function(n){if(m)return void(m=!1);var r=o.find("video.fp-engine",t)[0];return v&&e.conf.clickToUnMute&&r&&r.muted&&e.conf.autoplay&&(r.muted=!1),v=!1,e.playing&&!o.hasClass(t,"is-mouseover")?(o.addClass(t,"is-mouseover"),o.removeClass(t,"is-mouseout"),n.preventDefault(),void n.stopPropagation()):void(e.playing||e.splash||!o.hasClass(t,"is-mouseout")||o.hasClass(t,"is-mouseover")||setTimeout(function(){e.disabled||e.playing||e.splash||o.find("video.fp-engine",t)[0].play()},400))}),!l.fullscreen&&e.conf.native_fullscreen&&"function"==typeof o.createElement("video").webkitEnterFullScreen){var y=e.fullscreen;e.fullscreen=function(){var n=o.find("video.fp-engine",t)[0];return n?(e.trigger("fullscreen",[e]),a.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===n&&(a.off(document,".nativefullscreen"),a.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(a.off(document,".nativefullscreen"),e.trigger("fullscreen-exit",[e]))}))}),n.webkitEnterFullScreen(),void a.one(n,"webkitendfullscreen",function(){a.off(document,"fullscreenchange.nativefullscreen"),e.trigger("fullscreen-exit",[e]),o.prop(n,"controls",!0),o.prop(n,"controls",!1)})):y.apply(e)}}(r||c)&&e.bind("ready",function(){var n=o.find("video.fp-engine",t)[0];e.conf.splash&&n&&n.paused&&"hlsjs-lite"!==e.engine.engineName&&(a.one(n,"canplay",function(){n.play()}),n.load()),e.bind("progress.dur",function(){if(!e.live&&!e.conf.live&&n){var r=n.duration;1!==r&&(e.video.duration=r,o.find(".fp-duration",t)[0].innerHTML=s(r),e.unbind("progress.dur"))}})})})},{"../common":1,"../flowplayer":31,"./ui":27,bean:34}],19:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("extend-object"),o=e("bean"),a=e("../common"),s=e("./resolve"),l=new s,u=window.jQuery,c=/^#/;r(function(e,t){function n(){return a.find(h.query,r())}function r(){return c.test(h.query)?void 0:t}function f(){return a.find(h.query+"."+g,r())}function d(){var n=a.find(".fp-playlist",t)[0];if(!n){n=a.createElement("div",{className:"fp-playlist"});var r=a.find(".fp-next,.fp-prev",t);r.length?r[0].parentElement.insertBefore(n,r[0]):a.insertAfter(t,a.find("video",t)[0],n)}n.innerHTML="",e.conf.playlist[0].length&&(e.conf.playlist=e.conf.playlist.map(function(e){if("string"==typeof e){var t=e.split(s.TYPE_RE)[1];return{sources:[{type:"m3u8"===t.toLowerCase()?"application/x-mpegurl":"video/"+t,src:e}]}}return{sources:e.map(function(e){var t={};return Object.keys(e).forEach(function(n){t.type=/mpegurl/i.test(n)?"application/x-mpegurl":"video/"+n,t.src=e[n]}),t})}})),e.conf.playlist.forEach(function(t,r){var i=t.sources[0].src;n.appendChild(a.createElement("a",{href:i,className:e.video.index===r?g:void 0,"data-index":r}))})}function p(t){return"undefined"!=typeof t.index?t.index:"undefined"!=typeof e.video.index?e.video.index:e.conf.startIndex||0}var h=i({active:"is-active",advance:!0,query:".fp-playlist a"},e.conf),g=h.active,m=a.find(".fp-ui",t)[0],v=a.hasClass(t,"fp-custom-playlist")||!!h.customPlaylist;a.toggleClass(t,"fp-custom-playlist",v),a.toggleClass(t,"fp-default-playlist",!v),e.play=function(t){if(void 0===t)return e.resume();if("number"==typeof t&&!e.conf.playlist[t])return e;if("number"!=typeof t)return e.load.apply(null,arguments);var n=i({index:t},e.conf.playlist[t]);return e.off("beforeresume.fromfirst"),"number"==typeof t&&t===e.video.index?e.seek(0,function(){e.resume()}):(e.load(n,function(){e.video.index=t}),e)},e.next=function(t){t&&t.preventDefault();var n=e.video.index;return-1!=n&&(n=n===e.conf.playlist.length-1?0:n+1,e.play(n)),e},e.prev=function(t){t&&t.preventDefault();var n=e.video.index;return-1!=n&&(n=0===n?e.conf.playlist.length-1:n-1,e.play(n)),e},e.setPlaylist=function(t,n){return e.conf.playlist=t,n||delete e.video.index,d(),e},e.addPlaylistItem=function(t){return delete e.video.is_last,e.setPlaylist(e.conf.playlist.concat([t]),!0)},e.removePlaylistItem=function(t){var n=e.conf.playlist;return e.setPlaylist(n.slice(0,t).concat(n.slice(t+1)))},o.on(t,"click",".fp-next",e.next),o.on(t,"click",".fp-prev",e.prev),e.off("finish.pl").on("finish.pl",function(e,n){var r="undefined"==typeof n.conf.advance?!0:n.conf.advance;if(r){if(n.video.loop)return n.seek(0,function(){n.resume()});var i=n.video.index>=0?n.video.index+1:void 0;i<n.conf.playlist.length||h.loop?(i=i===n.conf.playlist.length?0:i,a.removeClass(t,"is-finished"),setTimeout(function(){n.play(i)})):n.conf.playlist.length>1&&(n.one("beforeresume.fromfirst",function(e){e.preventDefault(),n.play(0)}),n.one("seek",function(){n.off("beforeresume.fromfirst")}))}});var y=!1;e.conf.playlist.length&&(y=!0,d(),e.conf.clip&&e.conf.clip.sources.length||(e.conf.clip=e.conf.playlist[e.conf.startIndex||0])),n().length&&!y&&(e.conf.playlist=[],delete e.conf.startIndex,n().forEach(function(t){var n=t.href;t.setAttribute("data-index",e.conf.playlist.length);var r=l.resolve(n,e.conf.clip.sources);u&&i(r,u(t).data()),e.conf.playlist.push(r)})),a.find(".fp-prev,.fp-next,.fp-playlist",t).forEach(function(e){m.appendChild(e)}),o.on(c.test(h.query)?document:t,"click",h.query,function(t){t.preventDefault();var n=t.currentTarget,r=Number(n.getAttribute("data-index"));-1!=r&&e.play(r)}),e.on("load",function(n,i,o){if(e.conf.playlist.length){var s=f()[0],l=s&&s.getAttribute("data-index"),u=o.index=p(o),c=a.find(h.query+'[data-index="'+u+'"]',r())[0],d=u==e.conf.playlist.length-1;s&&a.removeClass(s,g),c&&a.addClass(c,g),a.removeClass(t,"video"+l),a.addClass(t,"video"+u),a.toggleClass(t,"last-video",d),o.index=i.video.index=u,o.is_last=i.video.is_last=d}}).on("unload.pl",function(){e.conf.playlist.length&&(f().forEach(function(e){a.toggleClass(e,g)}),e.conf.playlist.forEach(function(e,n){a.removeClass(t,"video"+n)}),delete e.video.index)}),e.conf.playlist.length&&(e.conf.loop=!1)})},{"../common":1,"../flowplayer":31,"./resolve":21,bean:34,"extend-object":39}],20:[function(e,t,n){var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){function n(){i.find(".fp-qsel-menu",t).forEach(i.removeNode),i.find(".fp-qsel",t).forEach(i.removeNode)}function r(e){l.appendChild(i.createElement("strong",{className:"fp-qsel"},"HD"));var t=i.createElement("div",{className:"fp-menu fp-qsel-menu"},"<strong>Quality</strong>");e.forEach(function(e){var n=document.createElement("a"),r="undefined"!=typeof e.value?e.value:e;n.setAttribute("data-quality",r),n.innerHTML=e.label||e,t.appendChild(n)}),s.appendChild(t)}function a(e){i.find(".fp-qsel-menu a",t).forEach(function(t){i.toggleClass(t,"fp-selected",t.getAttribute("data-quality")==e),i.toggleClass(t,"fp-color",t.getAttribute("data-quality")==e)})}var s=i.find(".fp-ui",t)[0],l=i.find(".fp-controls",s)[0];o.on(t,"click",".fp-qsel",function(){var n=i.find(".fp-qsel-menu",t)[0];i.hasClass(n,"fp-active")?e.hideMenu():e.showMenu(n)}),o.on(t,"click",".fp-qsel-menu a",function(t){var n=t.target.getAttribute("data-quality");e.quality(n)}),e.quality=function(t){t=isNaN(Number(t))?t:Number(t),e.trigger("quality",[e,t])},e.on("quality",function(e,t,n){a(n,t.video.qualities)}),e.on("ready",function(e,t,i){n(),!i.qualities||i.qualities.filter(function(e){return"undefined"!=typeof e.value?e.value>-1:!0}).length<2||(r(i.qualities,i.quality),a(i.quality,i.qualities))})})},{"../common":1,"../flowplayer":31,bean:34}],21:[function(e,t,n){"use strict";function r(e){var t=e.attr("src"),n=e.attr("type")||"",r=t.split(o)[1];return n=n.toLowerCase(),a(e.data(),{src:t,suffix:r||n,type:n||r})}function i(e){return/mpegurl/i.test(e)?"application/x-mpegurl":"video/"+e}var o=/\.(\w{3,4})(\?.*)?$/i,a=e("extend-object");t.exports=function(){var e=this;e.sourcesFromVideoTag=function(e,t){var n=[];return t("source",e).each(function(){n.push(r(t(this)))}),!n.length&&e.length&&n.push(r(e)),n},e.resolve=function(e,t){return e?("string"==typeof e&&(e={src:e,sources:[]},e.sources=(t||[]).map(function(t){var n=t.src.split(o)[1];return{type:t.type,src:e.src.replace(o,"."+n+"$2")}})),e instanceof Array&&(e={sources:e.map(function(e){return e.type&&e.src?e:Object.keys(e).reduce(function(t,n){return a(t,{type:i(n),src:e[n]})},{})})}),e):{sources:t}}},t.exports.TYPE_RE=o},{"extend-object":39}],22:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("extend-object"),a=e("bean");r(function(e,t){var n=e.conf;if(n.share===!1)return void i.find(".fp-share",t).forEach(i.removeNode);e.shareUrl=function(t){if(t&&n.embed&&n.embed.iframe)return n.embed.iframe;if("string"==typeof e.conf.share)return e.conf.share;var r=encodeURIComponent(e.video.title||(i.find("title")[0]||{}).innerHTML||"Flowplayer Unlimited video"),a=encodeURIComponent(btoa(JSON.stringify(o({},e.conf,e.extensions)).replace(/[\u007F-\uFFFF]/g,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).substr(-4)}))),s=encodeURIComponent(window.location.toString()),l=t?"https://flowplayer.com/e/":"https://flowplayer.com/s/";return l+"?t="+r+"&c="+a+"&r="+s};var r=i.createElement("div",{className:"fp-menu fp-share-menu"},"<strong>Share</strong>"),s=i.find(".fp-ui",t)[0];s.appendChild(r);var l=i.find(".fp-share",t)[0];a.on(t,"click",".fp-share",function(t){t.preventDefault(),i.hasClass(r,"fp-active")?e.hideMenu():e.showMenu(r,l)})})},{"../common":1,"../flowplayer":31,bean:34,"extend-object":39}],23:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean"),a=e("./subtitles/parser");r.defaults.subtitleParser=a,r(function(e,t){var n,a,s,l,u;(!r.support.inlineVideo||!r.support.fullscreen&&e.conf.native_fullscreen)&&(e.conf.nativesubtitles=!0),e.ui||(e.ui={}),e.ui.createSubtitleControl=function(e,n){return u=n,s=s||i.createElement("strong",{className:"fp-cc"},"CC"),l=l||i.createElement("div",{className:"fp-menu fp-subtitle-menu"},"<strong>Closed Captions</strong>"),i.find("a",l).forEach(i.removeNode),l.appendChild(i.createElement("a",{"data-subtitle-index":-1},"No subtitles")),(e||[]).forEach(function(e,t){var n=e.srclang||"en",r=e.label||"Default ("+n+")",o=i.createElement("a",{"data-subtitle-index":t},r);l.appendChild(o)}),i.find(".fp-ui",t)[0].appendChild(l),i.find(".fp-controls",t)[0].appendChild(s),i.toggleClass(s,"fp-hidden",!e||!e.length),s},e.ui.setActiveSubtitleItem=function(e){f(e)},o.on(t,"click",".fp-cc",function(){i.hasClass(l,"fp-active")?e.hideMenu():e.showMenu(l)}),o.on(t,"click",".fp-subtitle-menu [data-subtitle-index]",function(t){t.preventDefault();var n=t.target.getAttribute("data-subtitle-index");return u?u(n):"-1"===n?e.disableSubtitles():void e.loadSubtitles(n)});var c=function(){a=i.find(".fp-captions",t)[0],a=a||i.appendTo(i.createElement("div",{class:"fp-captions"}),i.find(".fp-player",t)[0]),Array.prototype.forEach.call(a.children,i.removeNode),e.ui.createSubtitleControl(e.video.subtitles)};e.on("ready",function(n,r,o){if(r.subtitles=[],c(),i.removeClass(t,"has-menu"),e.disableSubtitles(),o.subtitles&&o.subtitles.length){var a=o.subtitles.filter(function(e){return e["default"]})[0];a&&r.loadSubtitles(o.subtitles.indexOf(a))}}),e.showSubtitle=function(e){i.html(a,e),i.addClass(a,"fp-shown")},e.hideSubtitle=function(){i.removeClass(a,"fp-shown")},e.bind("cuepoint",function(t,r,i){i.subtitle?(n=i.index,e.showSubtitle(i.subtitle.text)):i.subtitleEnd&&(e.hideSubtitle(),n=i.index)}),e.bind("seek",function(t,r,o){n&&e.cuepoints[n]&&e.cuepoints[n].time>o&&(i.removeClass(a,"fp-shown"),n=null),(e.cuepoints||[]).forEach(function(t,r){var i=t.subtitle;i&&n!=r?o>=t.time&&(!i.endTime||o<=i.endTime)&&e.trigger("cuepoint",[e,t]):t.subtitleEnd&&o>=t.time&&r==n+1&&e.trigger("cuepoint",[e,t])})}),e.on("unload",function(){i.find(".fp-captions",t).forEach(i.removeNode)});var f=function(e){i.toggleClass(i.find("a.fp-selected",l)[0],"fp-selected"),i.toggleClass(i.find('a[data-subtitle-index="'+e+'"]',l)[0],"fp-selected")},d=function(e,n){var r=i.find("video.fp-engine",t)[0].textTracks;r.length&&(null===e?[].forEach.call(r,function(e){e.mode=n}):r[e].mode=n)};e.disableSubtitles=function(){return e.subtitles=[],(e.cuepoints||[]).forEach(function(t){(t.subtitle||t.subtitleEnd)&&e.removeCuepoint(t)}),a&&Array.prototype.forEach.call(a.children,i.removeNode),f(-1),r.support.subtitles&&e.conf.nativesubtitles&&"html5"==e.engine.engineName&&d(null,"disabled"),e},e.loadSubtitles=function(t){e.disableSubtitles();var n=e.video.subtitles[t],o=n.src;return o?(f(t),r.support.subtitles&&e.conf.nativesubtitles&&"html5"==e.engine.engineName?void d(t,"showing"):(i.xhrGet(o,function(t){var n=e.conf.subtitleParser(t);n.forEach(function(t,n){t.title||(t.title="subtitle"+n);var i={time:t.startTime,subtitle:t,visible:!1};e.subtitles.push(t),e.addCuepoint(i),e.addCuepoint({time:t.endTime,subtitleEnd:t.title,visible:!1}),0!==t.startTime||e.video.time||e.splash||e.trigger("cuepoint",[e,r.extend({},i,{index:0})]),e.splash&&e.one("ready",function(){e.trigger("cuepoint",[e,i])})})},function(){return e.trigger("error-subtitles",{code:8,url:o}),!1}),e)):void 0}})},{"../common":1,"../flowplayer":31,"./subtitles/parser":24,bean:34}],24:[function(e,t,n){t.exports=function(e){function t(e){var t=e.split(":");return 2==t.length&&t.unshift(0),60*t[0]*60+60*t[1]+parseFloat(t[2].replace(",","."))}for(var n,r,i,o=/^(([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3}) --\> (([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3})(.*)/,a=[],s=0,l=e.split("\n"),u=l.length,c={};u>s;s++)if(r=o.exec(l[s])){for(n=l[s-1],i="<p>"+l[++s]+"</p><br/>";"string"==typeof l[++s]&&l[s].trim()&&s<l.length;)i+="<p>"+l[s]+"</p><br/>";c={title:n,startTime:t(r[1]),endTime:t(r[3]),text:i},a.push(c)}return a}},{}],25:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("extend-object");!function(){var e=function(e){var t=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return t&&t.length>1?parseFloat(t[t.length-1].replace("_","."),10):0},t=function(){var e=document.createElement("video");return e.loop=!0,e.autoplay=!0,e.preload=!0,e},n={},o=document.documentElement.style,a=navigator.userAgent.toLowerCase(),s=/(chrome)[ \/]([\w.]+)/.exec(a)||/(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];s[1]&&(n[s[1]]=!0,n.version=s[2]||"0"),n.safari&&(n.version=(/version\/([\w.]+)/.exec(a)||[])[1]);var l=t(),u=navigator.userAgent,c=n.msie||/Trident\/7/.test(u),f=/iPad|MeeGo/.test(u)&&!/CriOS/.test(u),d=/iPad/.test(u)&&/CriOS/.test(u),p=/iP(hone|od)/i.test(u)&&!/iPad/.test(u)&&!/IEMobile/i.test(u),h=/Android/.test(u),g=h&&/Firefox/.test(u),m=h&&/SAMSUNG/.test(u),v=/Silk/.test(u),y=/IEMobile/.test(u),w=y?parseFloat(/Windows\ Phone\ (\d+\.\d+)/.exec(u)[1],10):0,b=y?parseFloat(/IEMobile\/(\d+\.\d+)/.exec(u)[1],10):0,I=f||p?e(u):0,M=h?parseFloat(/Android\ (\d+(\.\d+)?)/.exec(u)[1],10):0,C=(p||f||d)&&{iPhone:p,iPad:f||d,version:I,chrome:d},A=i(r.support,{browser:n,iOS:C,android:h?{firefox:g,opera:/Opera/.test(u),samsung:m,version:M}:!1,subtitles:!!l.addTextTrack,fullscreen:"boolean"==typeof document.webkitFullscreenEnabled?document.webkitFullscreenEnabled:"function"==typeof document.webkitCancelFullScreen&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(u)||document.mozFullScreenEnabled||"function"==typeof document.exitFullscreen||"function"==typeof document.msExitFullscreen,inlineBlock:!(c&&n.version<8),touch:"ontouchstart"in window,dataload:!f&&!p&&!y,flex:"flexWrap"in o||"WebkitFlexWrap"in o||"msFlexWrap"in o,svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,zeropreload:!c&&!h,volume:!(f||p||v||d),cachedVideoTag:!(f||p||d||y),firstframe:!(v||y||g||m||I&&10>I||h&&4.4>M),inlineVideo:(!p||I>=10)&&(!y||w>=8.1&&b>=11)&&(!h||M>=3),hlsDuration:!h&&(!n.safari||f||p||d),seekable:!f&&!d,preloadMetadata:!C&&!n.safari});A.autoplay=A.firstframe,y&&(A.browser.safari=!1);try{var S=navigator.plugins["Shockwave Flash"],E=c?new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version"):S.description;c||S[0].enabledPlugin?(E=E.split(/\D+/),E.length&&!E[0]&&(E=E.slice(1)),A.flashVideo=E[0]>9||9==E[0]&&E[3]>=115):A.flashVideo=!1}catch(j){}try{A.video=!!l.canPlayType,A.video&&l.canPlayType("video/mp4")}catch(D){A.video=!1}A.animation=function(){for(var e=["","Webkit","Moz","O","ms","Khtml"],t=document.createElement("p"),n=0;n<e.length;n++)if("undefined"!=typeof t.style[e[n]+"AnimationName"])return!0}()}()},{"../flowplayer":31,"extend-object":39}],26:[function(e,t,n){"use strict";var r=e("../flowplayer"),i=e("../common"),o=e("bean");r(function(e,t){var n=e.conf;if(n.share!==!1&&n.twitter!==!1){e.tweet=function(){var t,r,i=550,o=420,a=screen.height,s=screen.width,l="scrollbars=yes,resizable=yes,toolbar=no,location=yes",u="string"==typeof n.twitter?n.twitter:e.shareUrl();t=Math.round(s/2-i/2),r=0,a>o&&(r=Math.round(a/2-o/2)),window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(u),"intent",l+",width="+i+",height="+o+",left="+t+",top="+r)};var r=i.find(".fp-share-menu",t)[0],a=i.createElement("a",{class:"fp-icon fp-twitter"},"Twitter");i.append(r,a),o.on(t,"click",".fp-twitter",function(){e.tweet()})}})},{"../common":1,"../flowplayer":31,bean:34}],27:[function(e,t,n){(function(n){"use strict";function r(e){return e=parseInt(e,10),e>=10?e:"0"+e}function i(e,t){e=Math.max(e||0,0),e=t?Math.ceil(e):Math.floor(e);var n=Math.floor(e/3600),i=Math.floor(e/60);return e-=60*i,n>=1?(i-=60*n,n+":"+r(i)+":"+r(e)):r(i)+":"+r(e)}var o=e("../flowplayer"),a=e("../common"),s=e("bean"),l=e("./ui/slider"),u=e("./ui/bar-slider"),c=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLW91dGxpbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDk5Ljg0NCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz4KPHRpdGxlPnBsYXktcm91bmRlZC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNNDEuMDM1OSw3MS4xOWE1LjA0OTIsNS4wNDkyLDAsMCwxLTIuNTU3NS0uNjY3M2MtMS44MDMxLTEuMDQxLTIuNzk1OC0zLjEyNDgtMi43OTU4LTUuODY2NFYzNS4xODg3YzAtMi43NDI5Ljk5MzMtNC44MjcyLDIuNzk3LTUuODY3NiwxLjgwMjUtMS4wNDIyLDQuMTAzNC0uODYsNi40OC41MTQzTDcwLjQ3ODIsNDQuNTY3MmMyLjM3NTEsMS4zNzExLDMuNjgyNiwzLjI3MjUsMy42ODMyLDUuMzU0NXMtMS4zMDc2LDMuOTg0NS0zLjY4MzIsNS4zNTYyTDQ0Ljk1OTIsNzAuMDExNEE3LjkzODQsNy45Mzg0LDAsMCwxLDQxLjAzNTksNzEuMTlabS4wMDY1LTQwLjEyM2EyLjY3OTQsMi42Nzk0LDAsMCwwLTEuMzU4Mi4zNDEzYy0xLjAyNjMuNTkyNi0xLjU5MTIsMS45MzQ5LTEuNTkxMiwzLjc4VjY0LjY1NjNjMCwxLjg0NDkuNTY0OSwzLjE4NjYsMS41OTA2LDMuNzc5MSwxLjAyODEuNTkzMiwyLjQ3MzMuNDEwOCw0LjA3LS41MTJMNjkuMjczLDUzLjE5MDZjMS41OTgzLS45MjI3LDIuNDc4LTIuMDgzOCwyLjQ3OC0zLjI2ODlzLS44OC0yLjM0NDUtMi40NzgtMy4yNjY2TDQzLjc1NCwzMS45MjI3QTUuNTY4NSw1LjU2ODUsMCwwLDAsNDEuMDQyMywzMS4wNjcxWiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),f=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLWZpbGwiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiPgogIDxkZWZzPjxzdHlsZT4uYXtmaWxsOiMwMDA7b3BhY2l0eTowLjY1O30uYntmaWxsOiNmZmY7b3BhY2l0eToxLjA7fTwvc3R5bGU+CiAgPC9kZWZzPjx0aXRsZT5wbGF5LXJvdW5kZWQtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cGF0aCBjbGFzcz0iYiIgZD0iTTM1Ljk0MiwzNS4yMzIzYzAtNC43Mjg5LDMuMzUwNi02LjY2MzcsNy40NDYtNC4yOTcxTDY4LjgzLDQ1LjYyMzVjNC4wOTU2LDIuMzY0LDQuMDk1Niw2LjIzMTksMCw4LjU5NzdMNDMuMzg4LDY4LjkxYy00LjA5NTQsMi4zNjQtNy40NDYuNDMtNy40NDYtNC4yOTc5WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPgogIDwvc3ZnPgogIAo=","base64"),d=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICA8ZGVmcz4KICAgIDxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5jb250cm9sYnV0dG9ue2ZpbGw6I2ZmZjt9PC9zdHlsZT4KICA8L2RlZnM+CiAgPHRpdGxlPnBsYXktc2hhcnAtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cG9seWdvbiBjbGFzcz0iY29udHJvbGJ1dHRvbiIgcG9pbnRzPSI3My42MDEgNTAgMzcuOTY4IDcwLjU3MyAzNy45NjggMjkuNDI3IDczLjYwMSA1MCIgZmlsdGVyPSJ1cmwoI2YxKSIvPgo8L3N2Zz4K","base64"),p=n("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDQgOTkuODQzNCI+PGRlZnM+PHN0eWxlPi5jb250cm9sYnV0dG9uYmd7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGxheS1zaGFycC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNMzYuOTQ0Myw3Mi4yNDczVjI3LjI5MTZMNzUuODc3Niw0OS43N1ptMi4yLTQxLjE0NTVWNjguNDM3MUw3MS40Nzc2LDQ5Ljc3WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),h=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDM0IDk5Ljg0MzQiPjxkZWZzPjxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5yZWN0e2ZpbGw6I2ZmZjt9PC9zdHlsZT4KPC9kZWZzPjx0aXRsZT5wYXVzZS1yb3VuZGVkLW91dGxpbmU8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxMi0uMDc4M2E1MCw1MCwwLDEsMCw1MC4wMDA2LDUwQTUwLjA1NjIsNTAuMDU2MiwwLDAsMCw0OS45MjEyLS4wNzgzWiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIj48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTM5LjAwMzYsNzEuOTcyNmE3LjU2NSw3LjU2NSwwLDAsMS03LjU1Ny03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NDgsNy41NjQ4LDAsMCwxLDM5LjAwMzYsNzEuOTcyNlptMC00MS45MDRhNS4zNjQ3LDUuMzY0NywwLDAsMC01LjM1OTMsNS4zNTgydjI4Ljk5YTUuMzU4Nyw1LjM1ODcsMCwwLDAsMTAuNzE3NCwwdi0yOC45OUE1LjM2NDUsNS4zNjQ1LDAsMCwwLDM5LjAwMzYsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTYwLjg0LDcxLjk3MjZhNy41NjQ4LDcuNTY0OCwwLDAsMS03LjU1Ni03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NSw3LjU2NSwwLDAsMSw2MC44NCw3MS45NzI2Wm0wLTQxLjkwNGE1LjM2NDUsNS4zNjQ1LDAsMCwwLTUuMzU4Miw1LjM1ODJ2MjguOTlhNS4zNTg3LDUuMzU4NywwLDAsMCwxMC43MTc0LDB2LTI4Ljk5QTUuMzY0Nyw1LjM2NDcsMCwwLDAsNjAuODQsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48L2c+PC9zdmc+Cg==","base64"),g=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utcm91bmRlZC1maWxsPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIiBmaWx0ZXI9InVybCgjZjEpIj48cmVjdCBjbGFzcz0icmVjdCIgeD0iMzEuODQ0IiB5PSIyOC4xMjMxIiB3aWR0aD0iMTMuNDM2MiIgaGVpZ2h0PSI0My41OTczIiByeD0iNi43MTgxIiByeT0iNi43MTgxIi8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjU2MzgiIHk9IjI4LjEyMzEiIHdpZHRoPSIxMy40MzYyIiBoZWlnaHQ9IjQzLjU5NzMiIHJ4PSI2LjcxODEiIHJ5PSI2LjcxODEiLz48L2c+PC9zdmc+Cg==","base64"),m=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtZmlsbCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PGRlZnM+PHN0eWxlPi5mcC1jb2xvci1wbGF5e29wYWNpdHk6MC42NTt9LnJlY3R7ZmlsbDojZmZmO308L3N0eWxlPgo8L2RlZnM+PHRpdGxlPnBhdXNlLXNoYXJwLWZpbGw8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxNy0uMDc4YTUwLDUwLDAsMSwwLDUwLDUwQTUwLjA1NjQsNTAuMDU2NCwwLDAsMCw0OS45MjE3LS4wNzhaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxyZWN0IGNsYXNzPSJyZWN0IiB4PSIzMy41IiB5PSIzMC4xMDQyIiB3aWR0aD0iMTIuMjYzNCIgaGVpZ2h0PSIzOS43OTE3Ii8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjIzNjYiIHk9IjMwLjEwNDIiIHdpZHRoPSIxMi4yNjM0IiBoZWlnaHQ9IjM5Ljc5MTciLz48L2c+PC9zdmc+Cg==","base64"),v=n("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtb3V0bGluZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgOTkuODQzNCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utc2hhcnAtb3V0bGluZTwvdGl0bGU+PHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjEyLS4wNzgzYTUwLDUwLDAsMSwwLDUwLjAwMDYsNTBBNTAuMDU2Miw1MC4wNTYyLDAsMCwwLDQ5LjkyMTItLjA3ODNaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNDYuODcwOSw2OS45NTMxSDMzLjEzODVWMjkuODlINDYuODcwOVpNMzUuMTQxNiw2Ny45NWg5LjcyNjJWMzEuODkzNUgzNS4xNDE2WiIvPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNjYuNzA0Nyw2OS45NTMxSDUyLjk3MjJWMjkuODlINjYuNzA0N1pNNTQuOTc1NCw2Ny45NWg5LjcyNjJWMzEuODkzNUg1NC45NzU0WiIvPjwvZz48L3N2Zz4K","base64"),y=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLW91dGxpbmUiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDUwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgo8L3N2Zz4K","base64"),w=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLWZpbGwiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC4wcyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuNHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCA1MCkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMS4ycyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=","base64"),b=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1maWxsIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjBzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItMTAiIHk9Ii0xMCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTEwIiB5PSItMTAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuOHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDUwKSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIxLjJzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KPC9zdmc+Cg==","base64"),I=n("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1vdXRsaW5lIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTkiIHk9Ii05IiB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItOSIgeT0iLTkiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSA1MCkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+Cjwvc3ZnPgo=","base64");o(function(e,t){function r(e){return a.find(".fp-"+e,t)[0]}function M(e){a.css(T,"padding-top",100*e+"%"),D.inlineBlock||a.height(a.find("object",t)[0],a.height(t))}function C(e){e?(a.addClass(t,"is-mouseover"),a.removeClass(t,"is-mouseout")):(a.addClass(t,"is-mouseout"),a.removeClass(t,"is-mouseover"))}a.find(".fp-filters").forEach(a.removeNode);try{var A;document.body.appendChild(A=a.createElement("div",{},n("PHN2ZyBjbGFzcz0iZnAtZmlsdGVycyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMCAwIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9ImYxIiB4PSItMjAlIiB5PSItMjAlIiB3aWR0aD0iMjAwJSIgaGVpZ2h0PSIyMDAlIj4KICAgICAgPGZlT2Zmc2V0IHJlc3VsdD0ib2ZmT3V0IiBpbj0iU291cmNlQWxwaGEiIGR4PSIwIiBkeT0iMCIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXggcmVzdWx0PSJtYXRyaXhPdXQiIGluPSJvZmZPdXQiIHR5cGU9Im1hdHJpeCIKICAgICAgdmFsdWVzPSIwLjMgMCAwIDAgMCAwIDAuMyAwIDAgMCAwIDAgMC4zIDAgMCAwIDAgMCAwLjQgMCIgLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iYmx1ck91dCIgaW49Im1hdHJpeE91dCIgc3RkRGV2aWF0aW9uPSI0IiAvPgogICAgICA8ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJibHVyT3V0IiBtb2RlPSJub3JtYWwiIC8+CiAgICA8L2ZpbHRlcj4KICA8L2RlZnM+Cjwvc3ZnPgo=","base64"))),a.css(A,{width:0,height:0,overflow:"hidden",position:"absolute",margin:0,padding:0})}catch(S){}var E,j=e.conf,D=o.support;a.find(".fp-ratio,.fp-ui",t).forEach(a.removeNode),a.addClass(t,"flowplayer"),t.appendChild(a.createElement("div",{className:"fp-ratio"}));var N=a.createElement("div",{className:"fp-ui"},' <div class="fp-waiting"> {{ LOADING_SHARP_OUTLINE }} {{ LOADING_SHARP_FILL }} {{ LOADING_ROUNDED_FILL }} {{ LOADING_ROUNDED_OUTLINE }} </div> <div class="fp-header"> <a class="fp-share fp-icon"></a> <a class="fp-fullscreen fp-icon"></a> <a class="fp-unload fp-icon"></a> </div> <p class="fp-speed-flash"></p> <div class="fp-play fp-visible"> <a class="fp-icon fp-playbtn"></a> {{ PLAY_ROUNDED_FILL }} {{ PLAY_ROUNDED_OUTLINE }} {{ PLAY_SHARP_FILL }} {{ PLAY_SHARP_OUTLINE }} </div> <div class="fp-pause"> <a class="fp-icon fp-playbtn"></a> {{ PAUSE_SHARP_OUTLINE }} {{ PAUSE_SHARP_FILL }} {{ PAUSE_ROUNDED_OUTLINE }} {{ PAUSE_ROUNDED_FILL }} </div> <div class="fp-controls"> <a class="fp-icon fp-playbtn"></a> <span class="fp-elapsed">00:00</span> <div class="fp-timeline fp-bar"> <span class="fp-timestamp"></span> <div class="fp-progress fp-color"></div> </div> <span class="fp-duration"></span> <span class="fp-remaining"></span> <div class="fp-volume"> <a class="fp-icon fp-volumebtn"></a> <div class="fp-volumebar fp-bar-slider"> <em></em><em></em><em></em><em></em><em></em><em></em><em></em> </div> </div> <strong class="fp-speed fp-hidden"></strong> </div>'.replace("{{ PAUSE_ROUNDED_FILL }}",g).replace("{{ PAUSE_ROUNDED_OUTLINE }}",h).replace("{{ PAUSE_SHARP_FILL }}",m).replace("{{ PAUSE_SHARP_OUTLINE }}",v).replace("{{ PLAY_SHARP_OUTLINE }}",p).replace("{{ PLAY_SHARP_FILL }}",d).replace("{{ PLAY_ROUNDED_OUTLINE }}",c).replace("{{ PLAY_ROUNDED_FILL }}",f).replace("{{ LOADING_ROUNDED_OUTLINE }}",y).replace("{{ LOADING_ROUNDED_FILL }}",w).replace("{{ LOADING_SHARP_FILL }}",b).replace("{{ LOADING_SHARP_OUTLINE }}",I).replace(/url\(#/g,"url("+window.location.href.replace(window.location.hash,"").replace(/\#$/g,"")+"#"));t.appendChild(N);var x=r("waiting"),L=r("elapsed"),T=r("ratio"),Z=r("speed-flash"),P=r("duration"),k=r("remaining"),Y=r("timestamp"),z=a.css(T,"padding-top"),O=r("play"),G=r("pause"),R=r("timeline"),W=l(R,e.rtl),U=r("fullscreen"),J=r("volumebar"),B=u(J,{rtl:e.rtl}),F=a.hasClass(t,"no-toggle");W.disableAnimation(a.hasClass(t,"is-touch")),e.sliders=e.sliders||{},e.sliders.timeline=W,e.sliders.volume=B;var H=[];D.svg||a.html(x,"<p>loading &hellip;</p>"),j.ratio&&M(j.ratio);try{j.fullscreen||a.removeNode(U)}catch(S){a.removeNode(U)}e.on("dvrwindow",function(){W.disable(!1)}),e.on("ready",function(e,n,r){var o=n.video.duration;W.disable(n.disabled||!o),j.adaptiveRatio&&!isNaN(r.height/r.width)&&M(r.height/r.width,!0),a.html([P,k],n.live?"Live":i(o)),a.toggleClass(t,"is-long",o>=3600),B.slide(n.volumeLevel),"flash"===n.engine.engineName?W.disableAnimation(!0,!0):W.disableAnimation(!1),a.find(".fp-title",N).forEach(a.removeNode),r.title&&a.prepend(N,a.createElement("div",{className:"fp-message fp-title"},r.title)),a.toggleClass(t,"has-title",!!r.title)}).on("unload",function(){z||j.splash||a.css(T,"paddingTop",""),W.slide(0),a.addClass(O,"fp-visible")}).on("buffer",function(e,t,n){var r=t.video,i=r.buffer/r.duration;!r.seekable&&D.seekable&&W.max(t.conf.live?1/0:i),n&&"number"!=typeof n||(n=[{start:0,end:r.buffer}]);var o=a.find(".fp-buffer",R);o.length!==n.length&&(o.forEach(a.removeNode),o=[]),n.forEach(function(e,t){var n=o[t]||a.createElement("div",{className:"fp-buffer"});a.css(n,{left:100*e.start/r.duration+"%",width:100*(e.end-e.start)/r.duration+"%"}),a.prepend(R,n)})}).on("speed",function(e,t,n){t.video.time&&(a.text(Z,n+"x"),a.addClass(Z,"fp-shown"),H=H.filter(function(e){return clearTimeout(e),!1}),H.push(setTimeout(function(){a.addClass(Z,"fp-hilite"),H.push(setTimeout(function(){a.removeClass(Z,"fp-hilite"),H.push(setTimeout(function(){a.removeClass(Z,"fp-shown")},300))},1e3))})))}).on("buffered",function(){W.max(1)}).on("progress seek",function(n,r,o){var s=e.video.duration,l=e.video.seekOffset||0;o=o||e.video.time;var u=(o-l)/(s-l);W.dragging||W.slide(u,e.seeking?0:250),a.toggleClass(t,"is-live-position",s-o<j.livePositionOffset),a.html(L,i(o)),a.html(k,i(s-o,!0))}).on("finish resume seek",function(e){a.toggleClass(t,"is-finished","finish"==e.type)}).on("resume",function(){a.addClass(O,"fp-visible"),setTimeout(function(){a.removeClass(O,"fp-visible")},300)}).on("pause",function(){a.addClass(G,"fp-visible"),setTimeout(function(){a.removeClass(G,"fp-visible")},300)}).on("stop",function(){a.html(L,i(0)),W.slide(0,100)}).on("finish",function(){a.html(L,i(e.video.duration)),W.slide(1,100),a.removeClass(t,"is-seeking")}).on("beforeseek",function(){}).on("volume",function(){B.slide(e.volumeLevel)}).on("disable",function(){var n=e.disabled;W.disable(n),B.disable(n),a.toggleClass(t,"is-disabled",e.disabled)}).on("mute",function(e,n,r){a.toggleClass(t,"is-muted",r)}).on("error",function(e,n,r){if(a.removeClass(t,"is-loading"),a.removeClass(t,"is-seeking"),a.addClass(t,"is-error"),r){n.error=!0;var i=r.code;(r.message||"").match(/DECODER_ERROR_NOT_SUPPORTED/)&&(i=3);var o=n.message((n.engine&&n.engine.engineName||"html5")+": "+j.errors[i]);a.removeClass(t,"is-mouseover"),n.one("load progress",function(e){if(e.type=="progress"&&!n.error)o()})}}).one("resume ready",function(){var e=a.find("video.fp-engine",t)[0];if(e&&(!a.width(e)||!a.height(e))){var n=t.style.overflow;t.style.overflow="visible",setTimeout(function(){n?t.style.overflow=n:t.style.removeProperty("overflow")})}}),s.on(t,"mouseenter mouseleave",function(n){if(!F){var r,i="mouseover"==n.type;if(C(i),i){var o=function(){C(!0),r=new Date};e.on("pause.x volume.x",o),s.on(t,"mousemove.x",o),E=setInterval(function(){new Date-r>j.mouseoutTimeout&&(C(!1),r=new Date)},100)}else s.off(t,"mousemove.x"),e.off("pause.x volume.x"),clearInterval(E)}}),s.on(t,"mouseleave",function(){(W.dragging||B.dragging)&&(a.addClass(t,"is-mouseover"),a.removeClass(t,"is-mouseout"))}),s.on(t,"click.player",function(t){return e.disabled?void 0:a.hasClass(t.target,"fp-ui")||a.hasClass(t.target,"fp-engine")||t.flash||a.hasParent(t.target,".fp-play,.fp-pause")?(t.preventDefault&&t.preventDefault(),e.toggle()):void 0}),s.on(t,"mousemove",".fp-timeline",function(t){var n=t.pageX||t.clientX,r=n-a.offset(R).left,o=r/a.width(R),s=e.video,l=s.duration-(void 0===s.seekOffset?0:s.seekOffset),u=(e.rtl?1-o:o)*l;if(!(0>o)){a.html(Y,i(u));var c=r-a.width(Y)/2;0>c&&(c=0),c>a.width(R)-a.width(Y)&&(c=!1),c!==!1?a.css(Y,{left:c+"px",right:"auto"}):a.css(Y,{left:"auto",right:"0px"})}}),s.on(t,"contextmenu",function(n){var r=window;if(!a.hasClass(t,"is-flash-disabled")){var i=a.find(".fp-context-menu",t)[0];i&&(n.preventDefault(),e.showMenu(i,{left:n.clientX-r.scrollX,top:n.clientY-r.scrollY}),s.on(t,"click",".fp-context-menu",function(e){e.stopPropagation()}))}}),e.on("flashdisabled",function(n,r,i){a.addClass(t,"is-flash-disabled");var o;i!==!1&&(o=e.message("Seems something is blocking Adobe Flash from running")),e.one("ready progress",function(){a.removeClass(t,"is-flash-disabled"),o&&o()})}),j.poster&&a.css(t,"background-image","url("+j.poster+")");var V=a.css(t,"background-color"),X="none"!=a.css(t,"background-image")||V&&"rgba(0, 0, 0, 0)"!=V&&"transparent"!=V;if(X&&!j.splash){j.poster||(j.poster=!0);var _=function(){a.addClass(t,"is-poster"),a.addClass(O,"fp-visible"),e.poster=!0,e.on("resume.poster progress.poster beforeseek.poster",function(n){("beforeseek"===n.type||e.playing)&&(a.removeClass(t,"is-poster"),a.removeClass(O,"fp-visible"),e.poster=!1,e.off(".poster"))})};e.on("stop",function(){_()}),e.on("ready",function(e,t,n){n.index||n.autoplay||_()})}"string"==typeof j.splash&&a.css(t,"background-image","url('"+j.splash+"')"),!X&&e.forcedSplash&&a.css(t,"background-color","#555"),s.on(t,"click",".fp-toggle, .fp-play, .fp-playbtn",function(){e.disabled||e.toggle()}),s.on(t,"click",".fp-volumebtn",function(){e.mute()}),s.on(t,"click",".fp-fullscreen",function(){e.fullscreen()}),s.on(t,"click",".fp-unload",function(){e.unload()}),s.on(R,"slide",function(t){e.seeking=!0,e.seekTo(10*t)}),s.on(J,"slide",function(t){e.volume(t)}),s.on(t,"click",".fp-duration,.fp-remaining",function(){return e.dvr?e.seekTo(10):void a.toggleClass(t,"is-inverted")}),C(F);var K;if(e.on("shutdown",function(){s.off(R),s.off(J),K&&window.cancelAnimationFrame(K),a.removeNode(N),a.find(".fp-ratio",t).forEach(a.removeNode)}),"functionDISABLED-FOR-PERFORMANCE-REASONS"==typeof window.requestAnimationFrame){var Q=a.find(".fp-player",t)[0]||t,q=function(){a.toggleClass(t,"is-tiny",Q.clientWidth<400),a.toggleClass(t,"is-small",Q.clientWidth<600&&Q.clientWidth>=400),K=window.requestAnimationFrame(q)};K=window.requestAnimationFrame(q)}}),t.exports.format=i}).call(this,e("buffer").Buffer)},{"../common":1,"../flowplayer":31,"./ui/bar-slider":28,"./ui/slider":29,bean:34,buffer:35}],28:[function(e,t,n){function r(e,t){function n(t){var n=t.pageX||t.clientX,r=o.offset(e),i=o.width(e);!n&&t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches.length&&(n=t.originalEvent.touches[0].pageX);var a=n-r.left;a=Math.max(0,Math.min(i,a));var s=a/i;return l&&(s=1-s),s}t=t||{};var r=t.activeClass||"fp-color",a=t.inactiveClass||"fp-grey",s=t.childSelector||"em",l=!!t.rtl,u=!1,c=o.find(s,e).length,f={unload:function(){i.off(e,".barslider")},slide:function(t,n){o.find(s,e).forEach(function(e,n){var i=t>n/c;o.toggleClass(e,r,i),o.toggleClass(e,a,!i)}),n&&i.fire(e,"slide",[t])},disable:function(e){u=e}};return i.on(e,"mousedown.sld touchstart.sld",function(t){t.preventDefault(),u||(f.slide(n(t),!0),i.on(flowplayer.support.touch?e:document,"mousemove.sld touchmove.sld",function(e){e.preventDefault(),f.slide(n(e),!0)}),i.one(document,"mouseup.sld touchup.sld",function(){i.off(flowplayer.support.touch?e:document,"mousemove.sld touchmove.sld")}))}),f}var i=e("bean"),o=e("../../common");t.exports=r},{"../../common":1,bean:34}],29:[function(e,t,n){"use strict";var r=e("bean"),i=e("../../common"),o=function(e,t){var n;return function(){n||(e.apply(this,arguments),n=1,setTimeout(function(){n=0},t))}},a=function(e,t){var n,a,s,l,u,c,f,d,p=i.lastChild(e),h=!1,g=function(){a=i.offset(e),s=i.width(e),l=i.height(e),c=u?l:s,d=w(f)},m=function(t){n||t==b.value||f&&!(f>t)||(r.fire(e,"slide",[t]),b.value=t)},v=function(e){var n=e.pageX||e.clientX;!n&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length&&(n=e.originalEvent.touches[0].pageX);var r=u?e.pageY-a.top:n-a.left;r=Math.max(0,Math.min(d||c,r));var i=r/c;return u&&(i=1-i),t&&(i=1-i),y(i,0,!0)},y=function(e,t){void 0===t&&(t=0),e>1&&(e=1);var n=Math.round(1e3*e)/10+"%";return(!f||f>=e)&&(h?i.removeClass(p,"animated"):(i.addClass(p,"animated"),i.css(p,"transition-duration",(t||0)+"ms")),i.css(p,"width",n)),e},w=function(e){return Math.max(0,Math.min(c,u?(1-e)*l:e*s))},b={max:function(e){f=e},disable:function(e){n=e},slide:function(e,t,n){g(),n&&m(e),y(e,t)},disableAnimation:function(t,n){h=t!==!1,i.toggleClass(e,"no-animation",!!n)}};return g(),r.on(e,"mousedown.sld touchstart",function(t){if(t.preventDefault(),!n){var a=o(m,100);g(),b.dragging=!0,i.addClass(e,"is-fp-dragging"),m(v(t)),r.on(document,"mousemove.sld touchmove.sld",function(e){e.preventDefault(),a(v(e))}),r.one(document,"mouseup touchend",function(){b.dragging=!1,i.removeClass(e,"is-fp-dragging"),r.off(document,"mousemove.sld touchmove.sld")})}}),b};t.exports=a},{"../../common":1,bean:34}],30:[function(e,t,n){function r(e){var t=document.createElement("textarea");t.value=e,t.style.opacity=0,t.style.position="absolute",document.body.appendChild(t),t.select();var n=document.execCommand("copy");if(document.body.removeChild(t),!n)throw new Error("Unsuccessfull")}t.exports=function(e,t,n){try{r(e),t()}catch(i){n(i)}}},{}],31:[function(e,t,n){"use strict";function r(e,t,n){t&&t.embed&&(t.embed=i({},v.defaults.embed,t.embed));var r=!1;try{"undefined"==typeof v.conf.storage&&"object"==typeof window.localStorage&&(window.localStorage.flowplayerTestStorage="test",r=!0)}catch(s){}var l,p,h=e,g=i({},v.defaults,v.conf,t),m={},b=h.className,I=new w;u.addClass(h,"is-loading"),u.toggleClass(h,"no-flex",!v.support.flex),u.toggleClass(h,"no-svg",!v.support.svg);try{m=v.conf.storage||(r?window.localStorage:m)}catch(M){}if(g.volume="true"===m.muted?0:g.volume!==v.defaults.volume?g.volume:isNaN(m.volume)?g.volume:m.volume,g.debug=!!m.flowplayerDebug||g.debug,g.aspectRatio&&"string"==typeof g.aspectRatio){var C=g.aspectRatio.split(/[:\/]/);g.ratio=C[1]/C[0]}var A=h.currentStyle&&"rtl"===h.currentStyle.direction||window.getComputedStyle&&null!==window.getComputedStyle(h,null)&&"rtl"===window.getComputedStyle(h,null).getPropertyValue("direction");A&&u.addClass(h,"is-rtl");var S={conf:g,currentSpeed:1,volumeLevel:g.muted?0:"undefined"==typeof g.volume?1*m.volume:g.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:"true"==m.muted||g.muted,paused:!1,playing:!1,ready:!1,splash:!1,rtl:A,hijack:function(e){try{S.engine.suspendEngine()}catch(t){}S.hijacked=e},release:function(){try{S.engine.resumeEngine()}catch(e){}S.hijacked=!1},debug:function(){g.debug&&console.log.apply(console,["DEBUG"].concat([].slice.call(arguments)))},load:function(e,t){if(!S.error&&!S.loading){S.video={},S.finished=!1,e=e||g.clip,e=i({},I.resolve(e,g.clip.sources)),(S.playing||S.engine)&&(e.autoplay=!0);var n=E(e);if(!n)return setTimeout(function(){S.trigger("error",[S,{code:v.support.flashVideo?5:10}])})&&S;if(!n.engineName)throw new Error("engineName property of factory should be exposed");if(S.engine&&n.engineName===S.engine.engineName||(S.ready=!1,S.engine&&(S.engine.unload(),S.conf.autoplay=!0),p=S.engine=n(S,h),S.one("ready",function(){setTimeout(function(){S.muted?S.mute(!0,!0):p.volume(S.volumeLevel)})})),i(e,p.pick(e.sources.filter(function(e){return e.engine?e.engine===p.engineName:!0}))),e.src){var r=S.trigger("load",[S,e,p],!0);r.defaultPrevented?S.loading=!1:(S.ready=!1,p.load(e),o(e)&&(t=e),t&&S.one("ready",t))}return S}},pause:function(e){return S.hijacked?S.hijacked.pause(e)|S:(!S.ready||S.seeking||S.loading||(p.pause(),S.one("pause",e)),S)},resume:function(){var e=S.trigger("beforeresume",[S],!0);if(!e.defaultPrevented)return S.hijacked?S.hijacked.resume()|S:(S.ready&&S.paused&&(p.resume(),S.finished&&(S.trigger("resume",[S]),S.finished=!1)),S)},toggle:function(){return S.ready?S.paused?S.resume():S.pause():S.load()},seek:function(e,t){if("boolean"==typeof e){var n=S.conf.seekStep||.1*S.video.duration;e=S.video.time+(e?n:-n),e=Math.min(Math.max(e,0),S.video.duration-.1)}if("undefined"==typeof e)return S;if(S.hijacked)return S.hijacked.seek(e,t)|S;if(S.ready){l=e;var r=S.trigger("beforeseek",[S,e],!0);r.defaultPrevented?(S.seeking=!1,u.toggleClass(h,"is-seeking",S.seeking)):(p.seek(e),o(t)&&S.one("seek",t))}return S},seekTo:function(e,t){return void 0===e?S.seek(l,t):void 0!==S.video.seekOffset?S.seek(S.video.seekOffset+.1*(S.video.duration-S.video.seekOffset)*e,t):S.seek(.1*S.video.duration*e,t)},mute:function(e,t){return void 0===e&&(e=!S.muted),S.muted=e,t||(m.muted=e,m.volume=isNaN(m.volume)?g.volume:m.volume),"undefined"!=typeof p.mute?p.mute(e):(S.volume(e?0:m.volume,!0),S.trigger("mute",[S,e])),S},volume:function(e,t){return S.ready&&(e=Math.min(Math.max(e,0),1),t||(m.volume=e),p.volume(e)),S},speed:function(e,t){return S.ready&&("boolean"==typeof e&&(e=g.speeds[g.speeds.indexOf(S.currentSpeed)+(e?1:-1)]||S.currentSpeed),p.speed(e),t&&h.one("speed",t)),S},stop:function(){return S.ready&&(S.pause(),!S.live||S.dvr?S.seek(0,function(){S.trigger("stop",[S])}):S.trigger("stop",[S])),S},unload:function(){return g.splash?(S.trigger("unload",[S]),p&&(p.unload(),S.engine=p=0)):S.stop(),S},shutdown:function(){S.unload(),S.trigger("shutdown",[S]),a.off(h),delete f[h.getAttribute("data-flowplayer-instance-id")],h.removeAttribute("data-flowplayer-instance-id")},disable:function(e){return void 0===e&&(e=!S.disabled),e!=S.disabled&&(S.disabled=e,S.trigger("disable",e)),S},registerExtension:function(e,t){e=e||[],t=t||[],"string"==typeof e&&(e=[e]),"string"==typeof t&&(t=[t]),e.forEach(function(e){S.extensions.js.push(e)}),t.forEach(function(e){S.extensions.css.push(e)})}};S.conf=i(S.conf,g),S.extensions={js:[],css:[]},v.extensions.forEach(function(e){S.registerExtension(e[0],e[1])}),c(S);var E=function(e){var t,n=v.engines;if(g.engine){var r=n.filter(function(e){return e.engineName===g.engine})[0];if(r&&e.sources.some(function(e){return e.engine&&e.engine!==r.engineName?!1:r.canPlay(e.type,S.conf)}))return r}return g.enginePreference&&(n=v.engines.filter(function(e){return g.enginePreference.indexOf(e.engineName)>-1}).sort(function(e,t){return g.enginePreference.indexOf(e.engineName)-g.enginePreference.indexOf(t.engineName)})),e.sources.some(function(e){var r=n.filter(function(t){return e.engine&&e.engine!==t.engineName?!1:t.canPlay(e.type,S.conf)}).shift();return r&&(t=r),!!r}),t};return h.getAttribute("data-flowplayer-instance-id")||(h.setAttribute("data-flowplayer-instance-id",y++),S.on("boot",function(){var e=v.support;(g.splash||u.hasClass(h,"is-splash")||!e.firstframe)&&(S.forcedSplash=!g.splash&&!u.hasClass(h,"is-splash"),S.splash=!0,g.splash||(g.splash=!0),u.addClass(h,"is-splash")),g.splash&&u.find("video",h).forEach(u.removeNode),(g.dvr||g.live||u.hasClass(h,"is-live"))&&(S.live=g.live=!0,S.dvr=g.dvr=!!g.dvr||u.hasClass(h,"is-dvr"),u.addClass(h,"is-live"),u.toggleClass(h,"is-dvr",S.dvr)),d.forEach(function(e){e(S,h)}),f.push(S),g.splash?S.unload():S.load(),g.disabled&&S.disable(),S.one("ready",n),S.one("shutdown",function(){h.className=b})}).on("load",function(e,t,n){g.splash&&u.find(".flowplayer.is-ready,.flowplayer.is-loading").forEach(function(e){var t=e.getAttribute("data-flowplayer-instance-id");if(t!==h.getAttribute("data-flowplayer-instance-id")){var n=f[Number(t)];n&&n.conf.splash&&n.unload()}}),u.addClass(h,"is-loading"),t.loading=!0,("undefined"!=typeof n.live||"undefined"!=typeof n.dvr)&&(u.toggleClass(h,"is-live",n.dvr||n.live),u.toggleClass(h,"is-dvr",!!n.dvr),t.live=n.dvr||n.live,t.dvr=!!n.dvr)}).on("ready",function(e,t,n){n.time=0,t.video=n,u.removeClass(h,"is-loading"),t.loading=!1,t.muted?t.mute(!0,!0):t.volume(t.volumeLevel);var r=t.conf.hlsFix&&/mpegurl/i.exec(n.type);u.toggleClass(h,"hls-fix",!!r)}).on("unload",function(){u.removeClass(h,"is-loading"),S.loading=!1}).on("ready unload",function(e){var t="ready"==e.type;u.toggleClass(h,"is-splash",!t),u.toggleClass(h,"is-ready",t),S.ready=t,S.splash=!t}).on("progress",function(e,t,n){t.video.time=n}).on("buffer",function(e,t,n){t.video.buffer="number"==typeof n?n:n.length?n[n.length-1].end:0}).on("speed",function(e,t,n){t.currentSpeed=n}).on("volume",function(e,t,n){t.volumeLevel=Math.round(100*n)/100,t.muted&&n&&t.mute(!1)}).on("beforeseek seek",function(e){S.seeking="beforeseek"==e.type,u.toggleClass(h,"is-seeking",S.seeking)}).on("ready pause resume unload finish stop",function(e){S.paused=/pause|finish|unload|stop/.test(e.type),S.paused=S.paused||"ready"===e.type&&!g.autoplay&&!S.playing,S.playing=!S.paused,u.toggleClass(h,"is-paused",S.paused),u.toggleClass(h,"is-playing",S.playing),S.load.ed||S.pause()}).on("finish",function(){S.finished=!0}).on("error",function(){})),S.trigger("boot",[S,h]),S}var i=e("extend-object"),o=e("is-function"),a=e("bean"),s=e("./ext/ui/slider"),l=e("./ext/ui/bar-slider"),u=e("./common"),c=e("./ext/events"),f=[],d=[],p=window.onbeforeunload;window.onbeforeunload=function(e){return f.forEach(function(e){e.conf.splash?e.unload():e.bind("error",function(){u.find(".flowplayer.is-error .fp-message").forEach(u.removeNode)})}),p?p(e):void 0};var h=/Safari/.exec(navigator.userAgent)&&!/Chrome/.exec(navigator.userAgent),g=/(\d+\.\d+) Safari/.exec(navigator.userAgent),m=g?Number(g[1]):100,v=t.exports=function(e,t,n){if(o(e))return d.push(e);if("number"==typeof e||"undefined"==typeof e)return f[e||0];if(e.nodeType){if(null!==e.getAttribute("data-flowplayer-instance-id"))return f[e.getAttribute("data-flowplayer-instance-id")];if(!t)return;return r(e,t,n)}if(e.jquery)return v(e[0],t,n);if("string"==typeof e){var i=u.find(e)[0];return i&&v(i,t,n)}};i(v,{version:"7.2.7",engines:[],engine:function(e){return v.engines.filter(function(t){return t.engineName===e})[0]},extensions:[],conf:{},set:function(e,t){"string"==typeof e?v.conf[e]=t:i(v.conf,e)},registerExtension:function(e,t){v.extensions.push([e,t])},support:{},defaults:{debug:!1,disabled:!1,fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,rtmp:0,proxy:"best",hlsQualities:!0,seekStep:!1,splash:!1,live:!1,livePositionOffset:120,swf:"//releases.flowplayer.org/7.2.7/commercial/flowplayer.swf",swfHls:"//releases.flowplayer.org/7.2.7/commercial/flowplayerhls.swf",speeds:[.25,.5,1,1.5,2],tooltip:!0,mouseoutTimeout:5e3,mutedAutoplay:!0,clickToUnMute:!0,volume:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"],playlist:[],hlsFix:h&&8>m,disableInline:!1},bean:a,common:u,slider:s,barSlider:l,extend:i});var y=0,w=e("./ext/resolve");if("undefined"!=typeof window.jQuery){var b=window.jQuery;b(function(){"function"==typeof b.fn.flowplayer&&b('.flowplayer:has(video:not(.fp-engine),script[type="application/json"])').flowplayer()});var I=function(e){if(!e.length)return{};var t=e.data()||{},n={};return b.each(["autoplay","loop","preload","poster"],function(r,i){var o=e.attr(i);void 0!==o&&-1!==["autoplay","poster"].indexOf(i)?n[i]=o?o:!0:void 0!==o&&(t[i]=o?o:!0)}),e[0].autoplay=e[0].preload=!1,t.subtitles=e.find("track").map(function(){var e=b(this);return{src:e.attr("src"),kind:e.attr("kind"),label:e.attr("label"),srclang:e.attr("srclang"),default:e.prop("default")}}).get(),t.sources=(new w).sourcesFromVideoTag(e,b),i(n,{clip:t})};b.fn.flowplayer=function(e,t){return this.each(function(){"string"==typeof e&&(e={swf:e}),o(e)&&(t=e,e={});var n=b(this),i=n.find('script[type="application/json"]'),a=i.length?JSON.parse(i.text()):I(n.find("video")),s=b.extend({},e||{},a,n.data()),l=r(this,s,t);c.EVENTS.forEach(function(e){l.on(e+".jquery",function(e){n.trigger.call(n,e.type,e.detail&&e.detail.args)})}),n.data("flowplayer",l)})}}},{"./common":1,"./ext/events":12,"./ext/resolve":21,"./ext/ui/bar-slider":28,"./ext/ui/slider":29,bean:34,"extend-object":39,"is-function":42}],32:[function(e,t,n){e("es5-shim");var r=t.exports=e("./flowplayer");e("./ext/support"),e("./engine/embed"),e("./engine/hlsjs"),e("./engine/html5"),e("./engine/flash"),e("./ext/ui"),e("./ext/message"),e("./ext/keyboard"),e("./ext/playlist"),e("./ext/cuepoint"),e("./ext/subtitle"),e("./ext/analytics"),e("./ext/share"),e("./ext/facebook"),e("./ext/twitter"),e("./ext/embed"),e("./ext/airplay"),e("./ext/chromecast"),e("./ext/qsel"),e("./ext/menu"),e("./ext/fullscreen"),e("./ext/mobile"),r(function(e,t){function n(e){var t=document.createElement("a");return t.href=e,u.hostname(t.hostname)}function i(e){var t="ab.ca,ac.ac,ac.ae,ac.at,ac.be,ac.cn,ac.il,ac.in,ac.jp,ac.kr,ac.sg,ac.th,ac.uk,ad.jp,adm.br,adv.br,ah.cn,am.br,arq.br,art.br,arts.ro,asn.au,asso.fr,asso.mc,bc.ca,bel.tr,bio.br,biz.pl,biz.tr,bj.cn,br.com,cn.com,cng.br,cnt.br,co.ac,co.at,co.de,co.gl,co.hk,co.id,co.il,co.in,co.jp,co.kr,co.mg,co.ms,co.nz,co.th,co.uk,co.ve,co.vi,co.za,com.ag,com.ai,com.ar,com.au,com.br,com.cn,com.co,com.cy,com.de,com.do,com.ec,com.es,com.fj,com.fr,com.gl,com.gt,com.hk,com.hr,com.hu,com.kg,com.ki,com.lc,com.mg,com.mm,com.ms,com.mt,com.mu,com.mx,com.my,com.na,com.nf,com.ng,com.ni,com.pa,com.ph,com.pl,com.pt,com.qa,com.ro,com.ru,com.sb,com.sc,com.sg,com.sv,com.tr,com.tw,com.ua,com.uy,com.ve,com.vn,cp.tz,cq.cn,de.com,de.org,ecn.br,ed.jp,edu.au,edu.cn,edu.hk,edu.mm,edu.my,edu.pl,edu.pt,edu.qa,edu.sg,edu.tr,edu.tw,eng.br,ernet.in,esp.br,etc.br,eti.br,eu.com,eu.int,eu.lv,firm.in,firm.ro,fm.br,fot.br,fst.br,g12.br,gb.com,gb.net,gd.cn,gen.in,go.jp,go.kr,go.th,gov.au,gov.az,gov.br,gov.cn,gov.il,gov.in,gov.mm,gov.my,gov.qa,gov.sg,gov.tr,gov.tw,gov.uk,govt.nz,gr.jp,gs.cn,gv.ac,gv.at,gx.cn,gz.cn,he.cn,hi.cn,hk.cn,hl.cn,hu.com,id.au,idv.tw,in.th,in.ua,ind.br,ind.in,inf.br,info.pl,info.ro,info.tr,info.ve,iwi.nz,jl.cn,jor.br,js.cn,jus.br,k12.il,k12.tr,kr.com,lel.br,lg.jp,ln.cn,ltd.uk,maori.nz,mb.ca,me.uk,med.br,mi.th,mil.br,mil.uk,mo.cn,mod.uk,muni.il,nb.ca,ne.jp,ne.kr,net.ag,net.ai,net.au,net.br,net.cn,net.do,net.gl,net.hk,net.il,net.in,net.kg,net.ki,net.lc,net.mg,net.mm,net.mu,net.ni,net.nz,net.pl,net.ru,net.sb,net.sc,net.sg,net.th,net.tr,net.tw,net.uk,net.ve,nf.ca,nhs.uk,nm.cn,nm.kr,no.com,nom.br,nom.ni,nom.ro,ns.ca,nt.ca,nt.ro,ntr.br,nx.cn,odo.br,off.ai,on.ca,or.ac,or.at,or.jp,or.kr,or.th,org.ag,org.ai,org.au,org.br,org.cn,org.do,org.es,org.gl,org.hk,org.in,org.kg,org.ki,org.lc,org.mg,org.mm,org.ms,org.nf,org.ng,org.ni,org.nz,org.pl,org.ro,org.ru,org.sb,org.sc,org.sg,org.tr,org.tw,org.uk,org.ve,pe.ca,plc.uk,police.uk,ppg.br,presse.fr,pro.br,psc.br,psi.br,qc.ca,qc.com,qh.cn,rec.br,rec.ro,res.in,sa.com,sc.cn,sch.uk,se.com,se.net,sh.cn,sk.ca,slg.br,sn.cn,store.ro,tj.cn,tm.fr,tm.mc,tm.ro,tmp.br,tur.br,tv.br,tv.tr,tw.cn,uk.com,uk.net,us.com,uy.com,vet.br,waw.pl,web.ve,www.ro,xj.cn,xz.cn,yk.ca,yn.cn,zj.cn,zlg.br".split(",");e=e.toLowerCase();var n=e.split("."),r=n.length;if(2>r||/^\d+$/.test(n[r-1]))return e;var i=n.slice(-2).join(".");return r>=3&&t.indexOf(i)>=0?n.slice(-3).join("."):i}function o(e,t){t=i(t);for(var n=0,r=t.length-1;r>=0;r--)n+=0x65cb98ae4ad1ec*t.charCodeAt(r);for(n=(""+n).substring(0,7),r=0;r<e.length;r++)if(n===e[r].substring(1,8))return 1}var a=function(e,t){var n=e.className.split(" ");-1===n.indexOf(t)&&(e.className+=" "+t)},s=function(e){return"none"!==window.getComputedStyle(e).display},l=e.conf,u=r.common,c=u.createElement,f=l.swf.indexOf("flowplayer.org")&&l.e&&t.getAttribute("data-origin"),d=f?n(f):u.hostname(),p=(document,l.key);if("file:"==location.protocol&&(d="localhost"),e.load.ed=1,l.hostname=d,l.origin=f||location.href,f&&a(t,"is-embedded"),"string"==typeof p&&(p=p.split(/,\s*/)),p&&"function"==typeof o&&o(p,d)){if(l.logo){var h=u.find(".fp-player",t)[0],g=l.logo.href||"",m=l.logo.src||l.logo,v=c("a",{className:"fp-logo",href:g});f&&(v.href=v.href||f),l.embed&&l.embed.popup&&(v.target="_blank");var y=c("img",{src:m});v.appendChild(y),(h||t).appendChild(v)}}else{var v=c("a",{onclick:""}),h=u.find(".fp-player",t)[0];(h||t).appendChild(v);var w=c("div",{className:"fp-context-menu fp-menu"},'<strong>&copy; 2018 Flowplayer AB</strong><a href="https://flowplayer.com/hello/?from=player">About Flowplayer</a><a href="https://flowplayer.com/license">GPL based license</a>'),b=window.location.href.indexOf("localhost");7!==b&&(h||t).appendChild(w),e.on("pause resume finish unload ready",function(e,n){var r=-1;if(n.video.src)for(var i=[["org","flowplayer","drive"],["org","flowplayer","my"],["org","flowplayer","cdn"],["com","flowplayer","cdn"]],o=0;o<i.length&&(r=n.video.src.indexOf("://"+i[o].reverse().join(".")),-1===r);o++);if(/pause|resume/.test(e.type)&&"flash"!=n.engine.engineName&&4!=r&&5!=r){var a={display:"block",position:"absolute",left:"16px",bottom:"56px",zIndex:99999,width:"120px",height:"27px",backgroundImage:"url("+[".png","fplogo","/",".com","foliovision","//"].reverse().join("")+")"};for(var l in a)a.hasOwnProperty(l)&&(v.style[l]=a[l]);n.load.ed=s(v)&&(7===b||w.parentNode==t||w.parentNode==h),n.load.ed||n.pause()}else v.style.display="none"})}})},{"./engine/embed":2,"./engine/flash":3,"./engine/hlsjs":4,"./engine/html5":6,"./ext/airplay":7,"./ext/analytics":8,"./ext/chromecast":9,"./ext/cuepoint":10,"./ext/embed":11,"./ext/facebook":13,"./ext/fullscreen":14,"./ext/keyboard":15,"./ext/menu":16,"./ext/message":17,"./ext/mobile":18,"./ext/playlist":19,"./ext/qsel":20,"./ext/share":22,"./ext/subtitle":23,"./ext/support":25,"./ext/twitter":26,"./ext/ui":27,"./flowplayer":31,"es5-shim":38}],33:[function(e,t,n){"use strict";function r(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function i(e){var t=r(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function o(e,t,n){return 3*(t+n)/4-n}function a(e){for(var t,n=r(e),i=n[0],a=n[1],s=new d(o(e,i,a)),l=0,u=a>0?i-4:i,c=0;u>c;c+=4)t=f[e.charCodeAt(c)]<<18|f[e.charCodeAt(c+1)]<<12|f[e.charCodeAt(c+2)]<<6|f[e.charCodeAt(c+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===a&&(t=f[e.charCodeAt(c)]<<2|f[e.charCodeAt(c+1)]>>4,s[l++]=255&t),1===a&&(t=f[e.charCodeAt(c)]<<10|f[e.charCodeAt(c+1)]<<4|f[e.charCodeAt(c+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s}function s(e){return c[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}function l(e,t,n){for(var r,i=[],o=t;n>o;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(r));return i.join("")}function u(e){for(var t,n=e.length,r=n%3,i=[],o=16383,a=0,s=n-r;s>a;a+=o)i.push(l(e,a,a+o>s?s:a+o));return 1===r?(t=e[n-1],i.push(c[t>>2]+c[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(c[t>>10]+c[t>>4&63]+c[t<<2&63]+"=")),i.join("")}n.byteLength=i,n.toByteArray=a,n.fromByteArray=u;for(var c=[],f=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,g=p.length;g>h;++h)c[h]=p[h],f[p.charCodeAt(h)]=h;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},{}],34:[function(t,n,r){!function(t,r,i){"undefined"!=typeof n&&n.exports?n.exports=i():"function"==typeof e&&e.amd?e(i):r[t]=i()}("bean",this,function(e,t){e=e||"bean",t=t||this;var n,r=window,i=t[e],o=/[^\.]*(?=\..*)\.|.*/,a=/\..*/,s="addEventListener",l="removeEventListener",u=document||{},c=u.documentElement||{},f=c[s],d=f?s:"attachEvent",p={},h=Array.prototype.slice,g=function(e,t){return e.split(t||" ")},m=function(e){return"string"==typeof e},v=function(e){return"function"==typeof e},y="click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll ",w="show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ",b=function(e,t,n){for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},g(y+(f?w:""))),I=function(){var e="compareDocumentPosition"in c?function(e,t){return t.compareDocumentPosition&&16===(16&t.compareDocumentPosition(e))}:"contains"in c?function(e,t){return t=9===t.nodeType||t===window?c:t,t!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},t=function(t){var n=t.relatedTarget;return n?n!==this&&"xul"!==n.prefix&&!/document/.test(this.toString())&&!e(n,this):null==n};return{mouseenter:{base:"mouseover",condition:t},mouseleave:{base:"mouseout",condition:t},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),M=function(){var e=g("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),t=e.concat(g("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),n=t.concat(g("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),i=e.concat(g("char charCode key keyCode keyIdentifier keyLocation location")),o=e.concat(g("data")),a=e.concat(g("touches targetTouches changedTouches scale rotation")),s=e.concat(g("data origin source")),l=e.concat(g("state")),f=/over|out/,d=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,i}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,n,r){return n.rightClick=3===e.which||2===e.button,n.pos={x:0,y:0},e.pageX||e.pageY?(n.clientX=e.pageX,n.clientY=e.pageY):(e.clientX||e.clientY)&&(n.clientX=e.clientX+u.body.scrollLeft+c.scrollLeft,n.clientY=e.clientY+u.body.scrollTop+c.scrollTop),f.test(r)&&(n.relatedTarget=e.relatedTarget||e[("mouseover"==r?"from":"to")+"Element"]),t}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return n}},{reg:/^text/i,fix:function(){return o}},{reg:/^touch|^gesture/i,fix:function(){return a}},{reg:/^message$/i,fix:function(){return s}},{reg:/^popstate$/i,fix:function(){return l}},{reg:/.*/,fix:function(){return e}}],p={},h=function(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||r).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var i,o,a,s,l,u=e.type,c=e.target||e.srcElement;if(this.target=c&&3===c.nodeType?c.parentNode:c,n){if(l=p[u],!l)for(i=0,o=d.length;o>i;i++)if(d[i].reg.test(u)){p[u]=l=d[i].fix;break}for(s=l(e,this,u),i=s.length;i--;)!((a=s[i])in this)&&a in e&&(this[a]=e[a])}}};return h.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},h.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},h.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},h.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},h.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},h.prototype.clone=function(e){var t=new h(this,this.element,this.isNative);return t.currentTarget=e,t},h}(),C=function(e,t){return f||t||e!==u&&e!==r?e:c},A=function(){var e=function(e,t,n,r){var i=function(n,i){return t.apply(e,r?h.call(i,n?0:1).concat(r):i)},o=function(n,r){return t.__beanDel?t.__beanDel.ft(n.target,e):r},a=n?function(e){var t=o(e,this);return n.apply(t,arguments)?(e&&(e.currentTarget=t),i(e,arguments)):void 0}:function(e){return t.__beanDel&&(e=e.clone(o(e))),i(e,arguments)};return a.__beanDel=t.__beanDel,a},t=function(t,n,r,i,o,a,s){var l,u=I[n];"unload"==n&&(r=N(x,t,n,r,i)),u&&(u.condition&&(r=e(t,r,u.condition,a)),n=u.base||n),this.isNative=l=b[n]&&!!t[d],this.customType=!f&&!l&&n,this.element=t,this.type=n,this.original=i,this.namespaces=o,this.eventType=f||l?n:"propertychange",this.target=C(t,l),this[d]=!!this.target[d],this.root=s,this.handler=e(t,r,null,a)};return t.prototype.inNamespaces=function(e){var t,n,r=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&r++;return e.length===r},t.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},t}(),S=function(){var e={},t=function(n,r,i,o,a,s){var l=a?"r":"$";if(r&&"*"!=r){var u,c=0,f=e[l+r],d="*"==n;if(!f)return;for(u=f.length;u>c;c++)if((d||f[c].matches(n,i,o))&&!s(f[c],f,c,r))return}else for(var p in e)p.charAt(0)==l&&t(n,p.substr(1),i,o,a,s)},n=function(t,n,r,i){var o,a=e[(i?"r":"$")+n];if(a)for(o=a.length;o--;)if(!a[o].root&&a[o].matches(t,r,null))return!0;return!1},r=function(e,n,r,i){var o=[];return t(e,n,r,null,i,function(e){return o.push(e)}),o},i=function(t){var n=!t.root&&!this.has(t.element,t.type,null,!1),r=(t.root?"r":"$")+t.type;return(e[r]||(e[r]=[])).push(t),n},o=function(n){t(n.element,n.type,null,n.handler,n.root,function(t,n,r){return n.splice(r,1),t.removed=!0,0===n.length&&delete e[(t.root?"r":"$")+t.type],!1})},a=function(){var t,n=[];for(t in e)"$"==t.charAt(0)&&(n=n.concat(e[t]));return n};return{has:n,get:r,put:i,del:o,entries:a}}(),E=function(e){n=arguments.length?e:u.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}},j=function(e,t){if(f||!t||!e||e.propertyName=="_on"+t){var n=S.get(this,t||e.type,null,!1),r=n.length,i=0;for(e=new M(e,this,!0),t&&(e.type=t);r>i&&!e.isImmediatePropagationStopped();i++)n[i].removed||n[i].handler.call(this,e)}},D=f?function(e,t,n){e[n?s:l](t,j,!1)}:function(e,t,n,r){var i;n?(S.put(i=new A(e,r||t,function(t){j.call(e,t,r)},j,null,null,!0)),r&&null==e["_on"+r]&&(e["_on"+r]=0),i.target.attachEvent("on"+i.eventType,i.handler)):(i=S.get(e,r||t,j,!0)[0],i&&(i.target.detachEvent("on"+i.eventType,i.handler),S.del(i)))},N=function(e,t,n,r,i){return function(){r.apply(this,arguments),e(t,n,i)}},x=function(e,t,n,r){var i,o,s=t&&t.replace(a,""),l=S.get(e,s,null,!1),u={};for(i=0,o=l.length;o>i;i++)n&&l[i].original!==n||!l[i].inNamespaces(r)||(S.del(l[i]),!u[l[i].eventType]&&l[i][d]&&(u[l[i].eventType]={t:l[i].eventType,c:l[i].type}));for(i in u)S.has(e,u[i].t,null,!1)||D(e,u[i].t,!1,u[i].c)},L=function(e,t){var r=function(t,r){for(var i,o=m(e)?n(e,r):e;t&&t!==r;t=t.parentNode)for(i=o.length;i--;)if(o[i]===t)return t},i=function(e){var n=r(e.target,this);n&&t.apply(n,arguments)};return i.__beanDel={ft:r,selector:e},i},T=f?function(e,t,n){var i=u.createEvent(e?"HTMLEvents":"UIEvents");i[e?"initEvent":"initUIEvent"](t,!0,!0,r,1),n.dispatchEvent(i)}:function(e,t,n){n=C(n,e),e?n.fireEvent("on"+t,u.createEventObject()):n["_on"+t]++},Z=function(e,t,n){var r,i,s,l,u=m(t);if(u&&t.indexOf(" ")>0){for(t=g(t),l=t.length;l--;)Z(e,t[l],n);return e}if(i=u&&t.replace(a,""),i&&I[i]&&(i=I[i].base),!t||u)(s=u&&t.replace(o,""))&&(s=g(s,".")),x(e,i,n,s);else if(v(t))x(e,null,t);else for(r in t)t.hasOwnProperty(r)&&Z(e,r,t[r]);return e},P=function(e,t,r,i){var s,l,u,c,f,m,y;{if(void 0!==r||"object"!=typeof t){for(v(r)?(f=h.call(arguments,3),i=s=r):(s=i,f=h.call(arguments,4),i=L(r,s,n)),u=g(t),this===p&&(i=N(Z,e,t,i,s)),c=u.length;c--;)y=S.put(m=new A(e,u[c].replace(a,""),i,s,g(u[c].replace(o,""),"."),f,!1)),m[d]&&y&&D(e,m.eventType,!0,m.customType);return e}for(l in t)t.hasOwnProperty(l)&&P.call(this,e,l,t[l])}},k=function(e,t,n,r){return P.apply(null,m(n)?[e,n,t,r].concat(arguments.length>3?h.call(arguments,5):[]):h.call(arguments))},Y=function(){return P.apply(p,arguments)},z=function(e,t,n){var r,i,s,l,u,c=g(t);for(r=c.length;r--;)if(t=c[r].replace(a,""),(l=c[r].replace(o,""))&&(l=g(l,".")),l||n||!e[d])for(u=S.get(e,t,null,!1),n=[!1].concat(n),i=0,s=u.length;s>i;i++)u[i].inNamespaces(l)&&u[i].handler.apply(e,n);else T(b[t],t,e);return e},O=function(e,t,n){for(var r,i,o=S.get(t,n,null,!1),a=o.length,s=0;a>s;s++)o[s].original&&(r=[e,o[s].type],(i=o[s].handler.__beanDel)&&r.push(i.selector),r.push(o[s].original),P.apply(null,r));return e},G={on:P,add:k,one:Y,off:Z,remove:Z,clone:O,fire:z,Event:M,setSelectorEngine:E,noConflict:function(){return t[e]=i,this}};if(r.attachEvent){var R=function(){var e,t=S.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&Z(t[e].element,t[e].type);r.detachEvent("onunload",R),r.CollectGarbage&&r.CollectGarbage()};r.attachEvent("onunload",R)}return E(),G})},{}],35:[function(e,t,n){(function(t){"use strict";function r(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function i(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(i()<t)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=a.prototype):(null===e&&(e=new a(t)),e.length=t),e}function a(e,t,n){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,n,r):"string"==typeof t?f(e,t,n):h(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(0>e)throw new RangeError('"size" argument must not be negative')}function u(e,t,n,r){return l(t),0>=t?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}function c(e,t){if(l(t),e=o(e,0>t?0:0|g(t)),!a.TYPED_ARRAY_SUPPORT)for(var n=0;t>n;++n)e[n]=0;return e}function f(e,t,n){if(("string"!=typeof n||""===n)&&(n="utf8"),!a.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(t,n);e=o(e,r);var i=e.write(t,n);return i!==r&&(e=e.slice(0,i)),e}function d(e,t){var n=t.length<0?0:0|g(t.length);e=o(e,n);for(var r=0;n>r;r+=1)e[r]=255&t[r];return e}function p(e,t,n,r){if(t.byteLength,0>n||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),a.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=a.prototype):e=d(e,t),e}function h(e,t){if(a.isBuffer(t)){var n=0|g(t.length);return e=o(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||K(t.length)?o(e,0):d(e,t);if("Buffer"===t.type&&$(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),a.alloc(+e)}function v(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||0>t)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),0>=n)return"";if(n>>>=0,t>>>=0,t>=n)return"";for(e||(e="utf8");;)switch(e){case"hex":return Z(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),0>n&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(0>n){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:I(e,t,n,r,i);if("number"==typeof t)return t=255&t,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):I(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function I(e,t,n,r,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}var u;if(i){var c=-1;for(u=n;s>u;u++)if(o(e,u)===o(t,-1===c?0:u-c)){if(-1===c&&(c=u),u-c+1===l)return c*a}else-1!==c&&(u-=u-c),c=-1}else for(n+l>s&&(n=s-l),u=n;u>=0;u--){for(var f=!0,d=0;l>d;d++)if(o(e,u+d)!==o(t,d)){f=!1;break}if(f)return u}return-1}function M(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;r>a;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function C(e,t,n,r){return _(F(t,e.length-n),e,n,r)}function A(e,t,n,r){return _(H(t),e,n,r)}function S(e,t,n,r){return A(e,t,n,r)}function E(e,t,n,r){return _(X(t),e,n,r)}function j(e,t,n,r){return _(V(t,e.length-n),e,n,r)}function D(e,t,n){return 0===t&&n===e.length?Q.fromByteArray(e):Q.fromByteArray(e.slice(t,n))}function N(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;n>i;){var o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(n>=i+s){var l,u,c,f;switch(s){case 1:128>o&&(a=o);break;case 2:l=e[i+1],128===(192&l)&&(f=(31&o)<<6|63&l,f>127&&(a=f));break;case 3:l=e[i+1],u=e[i+2],128===(192&l)&&128===(192&u)&&(f=(15&o)<<12|(63&l)<<6|63&u,f>2047&&(55296>f||f>57343)&&(a=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(f=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&c,f>65535&&1114112>f&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return x(r)}function x(e){var t=e.length;if(ee>=t)return String.fromCharCode.apply(String,e);for(var n="",r=0;t>r;)n+=String.fromCharCode.apply(String,e.slice(r,r+=ee));return n}function L(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;n>i;++i)r+=String.fromCharCode(e[i]);return r}function Z(e,t,n){var r=e.length;(!t||0>t)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;n>o;++o)i+=B(e[o]);return i}function P(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function k(e,t,n){if(e%1!==0||0>e)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function Y(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||o>t)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r){0>t&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);o>i;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function O(e,t,n,r){0>t&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);o>i;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function G(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(0>n)throw new RangeError("Index out of range")}function R(e,t,n,r,i){return i||G(e,t,n,4,34028234663852886e22,-34028234663852886e22),q.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,i){return i||G(e,t,n,8,17976931348623157e292,-17976931348623157e292),q.write(e,t,n,r,52,8),n+8}function U(e){if(e=J(e).replace(te,""),e.length<2)return"";for(;e.length%4!==0;)e+="=";return e}function J(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function B(e){return 16>e?"0"+e.toString(16):e.toString(16)}function F(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;r>a;++a){if(n=e.charCodeAt(a),n>55295&&57344>n){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(56320>n){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,128>n){if((t-=1)<0)break;o.push(n)}else if(2048>n){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(65536>n){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function V(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function X(e){return Q.toByteArray(U(e))}function _(e,t,n,r){for(var i=0;r>i&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e){return e!==e}var Q=e("base64-js"),q=e("ieee754"),$=e("isarray");n.Buffer=a,n.SlowBuffer=m,n.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),n.kMaxLength=i(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return s(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return u(null,e,t,n)},a.allocUnsafe=function(e){return c(null,e)},a.allocUnsafeSlow=function(e){return c(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);o>i;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return r>n?-1:n>r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!$(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i),i+=o.length}return r},a.byteLength=v,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;e>t;t+=2)w(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;e>t;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;e>t;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},a.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?N(this,0,e):y.apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,r,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),0>t||n>e.length||0>r||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,s=n-t,l=Math.min(o,s),u=this.slice(r,i),c=e.slice(t,n),f=0;l>f;++f)if(u[f]!==c[f]){o=u[f],s=c[f];break}return s>o?-1:o>s?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},a.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t=0|t,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(0>n||0>t)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return M(this,e,t,n);case"utf8":case"utf-8":return C(this,e,t,n);case"ascii":return A(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ee=4096;a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),e>t&&(t=e);var r;if(a.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=a.prototype;else{var i=t-e;r=new a(i,void 0);for(var o=0;i>o;++o)r[o]=this[o+e]}return r},a.prototype.readUIntLE=function(e,t,n){e=0|e,t=0|t,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},a.prototype.readUIntBE=function(e,t,n){e=0|e,t=0|t,n||k(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},a.prototype.readUInt8=function(e,t){return t||k(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||k(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||k(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||k(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e=0|e,t=0|t,n||k(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e=0|e,t=0|t,n||k(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return t||k(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||k(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||k(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||k(e,4,this.length),q.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||k(e,4,this.length),q.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||k(e,8,this.length),q.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||k(e,8,this.length),q.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t=0|t,n=0|n,!r){var i=Math.pow(2,8*n)-1;Y(this,e,t,n,i,0)}var o=1,a=0;for(this[t]=255&e;++a<n&&(o*=256);)this[t+a]=e/o&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t=0|t,n=0|n,!r){var i=Math.pow(2,8*n)-1;Y(this,e,t,n,i,0)}var o=n-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);Y(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)0>e&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t=0|t,!r){var i=Math.pow(2,8*n-1);Y(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)0>e&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t=0|t,n||Y(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(0>t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&t>n&&r>t)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(1e3>o||!a.TYPED_ARRAY_SUPPORT)for(i=0;o>i;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},a.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);256>i&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e=255&e);if(0>t||this.length<t||this.length<n)throw new RangeError("Out of range index");if(t>=n)return this;t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var o;if("number"==typeof e)for(o=t;n>o;++o)this[o]=e;else{var s=a.isBuffer(e)?e:F(new a(e,r).toString()),l=s.length;for(o=0;n-t>o;++o)this[o+t]=s[o%l]}return this};var te=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":33,ieee754:40,isarray:43}],36:[function(e,t,n){function r(e){function t(e){var t=c();a(t,e)>-1||(t.push(e),f(t))}function n(e){var t=c(),n=a(t,e);-1!==n&&(t.splice(n,1),f(t))}function r(e){return a(c(),e)>-1}function s(e){return r(e)?(n(e),!1):(t(e),!0)}function l(){return e.className}function u(e){var t=c();return t[e]||null}function c(){var t=e.className;return i(t.split(" "),o)}function f(t){var n=t.length;e.className=t.join(" "),p.length=n;for(var r=0;r<t.length;r++)p[r]=t[r];delete t[n]}var d=e.classList;if(d)return d;var p={add:t,remove:n,contains:r,toggle:s,toString:l,length:0,item:u};return p}function i(e,t){for(var n=[],r=0;r<e.length;r++)t(e[r])&&n.push(e[r]);return n}function o(e){return!!e}var a=e("indexof");t.exports=r},{indexof:41}],37:[function(e,t,n){function r(e,t,n,r){return n=window.getComputedStyle,r=n?n(e):e.currentStyle,r?r[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]:void 0}t.exports=r},{}],38:[function(t,n,r){!function(t,i){"use strict";"function"==typeof e&&e.amd?e(i):"object"==typeof r?n.exports=i():t.returnExports=i()}(this,function(){var e,t,n=Array,r=n.prototype,i=Object,o=i.prototype,a=Function,s=a.prototype,l=String,u=l.prototype,c=Number,f=c.prototype,d=r.slice,p=r.splice,h=r.push,g=r.unshift,m=r.concat,v=r.join,y=s.call,w=s.apply,b=Math.max,I=Math.min,M=o.toString,C="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,A=Function.prototype.toString,S=/^\s*class /,E=function(e){try{var t=A.call(e),n=t.replace(/\/\/.*\n/g,""),r=n.replace(/\/\*[.\s\S]*\*\//g,""),i=r.replace(/\n/gm," ").replace(/ {2}/g," ");return S.test(i)}catch(o){return!1}},j=function(e){try{return E(e)?!1:(A.call(e),!0)}catch(t){return!1}},D="[object Function]",N="[object GeneratorFunction]",e=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(C)return j(e);if(E(e))return!1;var t=M.call(e);return t===D||t===N},x=RegExp.prototype.exec,L=function(e){try{return x.call(e),!0}catch(t){return!1}},T="[object RegExp]";t=function(e){return"object"!=typeof e?!1:C?L(e):M.call(e)===T};var Z,P=String.prototype.valueOf,k=function(e){try{return P.call(e),!0}catch(t){return!1}},Y="[object String]";Z=function(e){return"string"==typeof e?!0:"object"!=typeof e?!1:C?k(e):M.call(e)===Y};var z=i.defineProperty&&function(){try{var e={};i.defineProperty(e,"x",{enumerable:!1,value:e});for(var t in e)return!1;return e.x===e}catch(n){return!1}}(),O=function(e){var t;return t=z?function(e,t,n,r){!r&&t in e||i.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,r){!r&&t in e||(e[t]=n)},function(n,r,i){for(var o in r)e.call(r,o)&&t(n,o,r[o],i)}}(o.hasOwnProperty),G=function(e){var t=typeof e;return null===e||"object"!==t&&"function"!==t},R=c.isNaN||function(e){return e!==e},W={ToInteger:function(e){var t=+e;return R(t)?t=0:0!==t&&t!==1/0&&t!==-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t},ToPrimitive:function(t){var n,r,i;if(G(t))return t;if(r=t.valueOf,e(r)&&(n=r.call(t),G(n)))return n;if(i=t.toString,e(i)&&(n=i.call(t),G(n)))return n;throw new TypeError},ToObject:function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return i(e)},ToUint32:function(e){return e>>>0}},U=function(){};O(s,{bind:function(t){var n=this;if(!e(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var r,o=d.call(arguments,1),s=function(){if(this instanceof r){var e=w.call(n,this,m.call(o,d.call(arguments)));return i(e)===e?e:this}return w.call(n,t,m.call(o,d.call(arguments)))},l=b(0,n.length-o.length),u=[],c=0;l>c;c++)h.call(u,"$"+c);return r=a("binder","return function ("+v.call(u,",")+"){ return binder.apply(this, arguments); }")(s),n.prototype&&(U.prototype=n.prototype,r.prototype=new U,U.prototype=null),r}});var J=y.bind(o.hasOwnProperty),B=y.bind(o.toString),F=y.bind(d),H=w.bind(d);if("object"==typeof document&&document&&document.documentElement)try{F(document.documentElement.childNodes)}catch(V){var X=F,_=H;F=function(e){for(var t=[],n=e.length;n-- >0;)t[n]=e[n];return _(t,X(arguments,1))},H=function(e,t){return _(F(e),t)}}var K=y.bind(u.slice),Q=y.bind(u.split),q=y.bind(u.indexOf),$=y.bind(h),ee=y.bind(o.propertyIsEnumerable),te=y.bind(r.sort),ne=n.isArray||function(e){return"[object Array]"===B(e)},re=1!==[].unshift(0);O(r,{unshift:function(){return g.apply(this,arguments),this.length}},re),O(n,{isArray:ne});var ie=i("a"),oe="a"!==ie[0]||!(0 in ie),ae=function(e){var t=!0,n=!0,r=!1;if(e)try{e.call("foo",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([1],function(){"use strict";n="string"==typeof this},"x")}catch(i){r=!0}return!!e&&!r&&t&&n};O(r,{forEach:function(t){var n,r=W.ToObject(this),i=oe&&Z(this)?Q(this,""):r,o=-1,a=W.ToUint32(i.length);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++o<a;)o in i&&("undefined"==typeof n?t(i[o],o,r):t.call(n,i[o],o,r))}},!ae(r.forEach)),O(r,{map:function(t){var r,i=W.ToObject(this),o=oe&&Z(this)?Q(this,""):i,a=W.ToUint32(o.length),s=n(a);if(arguments.length>1&&(r=arguments[1]),!e(t))throw new TypeError("Array.prototype.map callback must be a function");for(var l=0;a>l;l++)l in o&&("undefined"==typeof r?s[l]=t(o[l],l,i):s[l]=t.call(r,o[l],l,i));return s}},!ae(r.map)),O(r,{filter:function(t){var n,r,i=W.ToObject(this),o=oe&&Z(this)?Q(this,""):i,a=W.ToUint32(o.length),s=[];if(arguments.length>1&&(r=arguments[1]),!e(t))throw new TypeError("Array.prototype.filter callback must be a function");for(var l=0;a>l;l++)l in o&&(n=o[l],("undefined"==typeof r?t(n,l,i):t.call(r,n,l,i))&&$(s,n));return s}},!ae(r.filter)),O(r,{every:function(t){var n,r=W.ToObject(this),i=oe&&Z(this)?Q(this,""):r,o=W.ToUint32(i.length);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.every callback must be a function");for(var a=0;o>a;a++)if(a in i&&!("undefined"==typeof n?t(i[a],a,r):t.call(n,i[a],a,r)))return!1;return!0}},!ae(r.every)),O(r,{some:function(t){var n,r=W.ToObject(this),i=oe&&Z(this)?Q(this,""):r,o=W.ToUint32(i.length);if(arguments.length>1&&(n=arguments[1]),!e(t))throw new TypeError("Array.prototype.some callback must be a function");for(var a=0;o>a;a++)if(a in i&&("undefined"==typeof n?t(i[a],a,r):t.call(n,i[a],a,r)))return!0;return!1}},!ae(r.some));var se=!1;r.reduce&&(se="object"==typeof r.reduce.call("es5",function(e,t,n,r){return r})),O(r,{reduce:function(t){var n=W.ToObject(this),r=oe&&Z(this)?Q(this,""):n,i=W.ToUint32(r.length);if(!e(t))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===i&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var o,a=0;if(arguments.length>=2)o=arguments[1];else for(;;){if(a in r){o=r[a++];break}if(++a>=i)throw new TypeError("reduce of empty array with no initial value")}for(;i>a;a++)a in r&&(o=t(o,r[a],a,n));return o}},!se);var le=!1;r.reduceRight&&(le="object"==typeof r.reduceRight.call("es5",function(e,t,n,r){return r})),O(r,{reduceRight:function(t){var n=W.ToObject(this),r=oe&&Z(this)?Q(this,""):n,i=W.ToUint32(r.length);if(!e(t))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===i&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var o,a=i-1;if(arguments.length>=2)o=arguments[1];else for(;;){if(a in r){o=r[a--];break}if(--a<0)throw new TypeError("reduceRight of empty array with no initial value")}if(0>a)return o;do{a in r&&(o=t(o,r[a],a,n))}while(a--);return o}},!le);var ue=r.indexOf&&-1!==[0,1].indexOf(1,2);O(r,{indexOf:function(e){var t=oe&&Z(this)?Q(this,""):W.ToObject(this),n=W.ToUint32(t.length);if(0===n)return-1;var r=0;for(arguments.length>1&&(r=W.ToInteger(arguments[1])),r=r>=0?r:b(0,n+r);n>r;r++)if(r in t&&t[r]===e)return r;return-1}},ue);var ce=r.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);O(r,{lastIndexOf:function(e){var t=oe&&Z(this)?Q(this,""):W.ToObject(this),n=W.ToUint32(t.length);if(0===n)return-1;var r=n-1;for(arguments.length>1&&(r=I(r,W.ToInteger(arguments[1]))),r=r>=0?r:n-Math.abs(r);r>=0;r--)if(r in t&&e===t[r])return r;return-1}},ce);var fe=function(){var e=[1,2],t=e.splice();return 2===e.length&&ne(t)&&0===t.length}();O(r,{splice:function(e,t){return 0===arguments.length?[]:p.apply(this,arguments)}},!fe);var de=function(){var e={};return r.splice.call(e,0,0,1),1===e.length}();O(r,{splice:function(e,t){if(0===arguments.length)return[];var n=arguments;return this.length=b(W.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof t&&(n=F(arguments),n.length<2?$(n,this.length-e):n[1]=W.ToInteger(t)),p.apply(this,n)}},!de);var pe=function(){var e=new n(1e5);return e[8]="x",e.splice(1,1),7===e.indexOf("x")}(),he=function(){var e=256,t=[];return t[e]="a",t.splice(e+1,0,"b"),"a"===t[e]}();O(r,{splice:function(e,t){for(var n,r=W.ToObject(this),i=[],o=W.ToUint32(r.length),a=W.ToInteger(e),s=0>a?b(o+a,0):I(a,o),u=I(b(W.ToInteger(t),0),o-s),c=0;u>c;)n=l(s+c),J(r,n)&&(i[c]=r[n]),c+=1;var f,d=F(arguments,2),p=d.length;if(u>p){c=s;for(var h=o-u;h>c;)n=l(c+u),f=l(c+p),J(r,n)?r[f]=r[n]:delete r[f],c+=1;c=o;for(var g=o-u+p;c>g;)delete r[c-1],c-=1}else if(p>u)for(c=o-u;c>s;)n=l(c+u-1),f=l(c+p-1),J(r,n)?r[f]=r[n]:delete r[f],c-=1;c=s;for(var m=0;m<d.length;++m)r[c]=d[m],c+=1;return r.length=o-u+p,i}},!pe||!he);var ge,me=r.join;try{ge="1,2,3"!==Array.prototype.join.call("123",",")}catch(V){ge=!0}ge&&O(r,{join:function(e){var t="undefined"==typeof e?",":e;return me.call(Z(this)?Q(this,""):this,t)}},ge);var ve="1,2"!==[1,2].join(void 0);ve&&O(r,{join:function(e){var t="undefined"==typeof e?",":e;return me.call(this,t)}},ve);var ye=function(e){for(var t=W.ToObject(this),n=W.ToUint32(t.length),r=0;r<arguments.length;)t[n+r]=arguments[r],r+=1;return t.length=n+r,n+r},we=function(){var e={},t=Array.prototype.push.call(e,void 0);return 1!==t||1!==e.length||"undefined"!=typeof e[0]||!J(e,0)}();O(r,{push:function(e){return ne(this)?h.apply(this,arguments):ye.apply(this,arguments)}},we);var be=function(){var e=[],t=e.push(void 0);return 1!==t||1!==e.length||"undefined"!=typeof e[0]||!J(e,0)}();O(r,{push:ye},be),O(r,{slice:function(e,t){var n=Z(this)?Q(this,""):this;return H(n,arguments)}},oe);var Ie=function(){try{[1,2].sort(null)}catch(e){try{[1,2].sort({})}catch(t){return!1}}return!0}(),Me=function(){try{return[1,2].sort(/a/),!1}catch(e){}return!0}(),Ce=function(){try{return[1,2].sort(void 0),!0}catch(e){}return!1}();O(r,{sort:function(t){if("undefined"==typeof t)return te(this);if(!e(t))throw new TypeError("Array.prototype.sort callback must be a function");return te(this,t)}},Ie||!Ce||!Me);var Ae=!ee({toString:null},"toString"),Se=ee(function(){},"prototype"),Ee=!J("x","0"),je=function(e){var t=e.constructor;return t&&t.prototype===e},De={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0,$width:!0,$height:!0,$top:!0,$localStorage:!0},Ne=function(){if("undefined"==typeof window)return!1;for(var e in window)try{!De["$"+e]&&J(window,e)&&null!==window[e]&&"object"==typeof window[e]&&je(window[e])}catch(t){return!0}return!1}(),xe=function(e){if("undefined"==typeof window||!Ne)return je(e);try{return je(e)}catch(t){return!1}},Le=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Te=Le.length,Ze=function(e){return"[object Arguments]"===B(e)},Pe=function(t){return null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&!ne(t)&&e(t.callee)},ke=Ze(arguments)?Ze:Pe;O(i,{keys:function(t){var n=e(t),r=ke(t),i=null!==t&&"object"==typeof t,o=i&&Z(t);if(!i&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var a=[],s=Se&&n;if(o&&Ee||r)for(var u=0;u<t.length;++u)$(a,l(u));if(!r)for(var c in t)s&&"prototype"===c||!J(t,c)||$(a,l(c));if(Ae)for(var f=xe(t),d=0;Te>d;d++){var p=Le[d];f&&"constructor"===p||!J(t,p)||$(a,p)}return a}});var Ye=i.keys&&function(){return 2===i.keys(arguments).length}(1,2),ze=i.keys&&function(){var e=i.keys(arguments);return 1!==arguments.length||1!==e.length||1!==e[0]}(1),Oe=i.keys;O(i,{keys:function(e){return Oe(ke(e)?F(e):e)}},!Ye||ze);var Ge,Re,We=0!==new Date(-0xc782b5b342b24).getUTCMonth(),Ue=new Date(-0x55d318d56a724),Je=new Date(14496624e5),Be="Mon, 01 Jan -45875 11:59:59 GMT"!==Ue.toUTCString(),Fe=Ue.getTimezoneOffset();-720>Fe?(Ge="Tue Jan 02 -45875"!==Ue.toDateString(),Re=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Je))):(Ge="Mon Jan 01 -45875"!==Ue.toDateString(),Re=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Je)));var He=y.bind(Date.prototype.getFullYear),Ve=y.bind(Date.prototype.getMonth),Xe=y.bind(Date.prototype.getDate),_e=y.bind(Date.prototype.getUTCFullYear),Ke=y.bind(Date.prototype.getUTCMonth),Qe=y.bind(Date.prototype.getUTCDate),qe=y.bind(Date.prototype.getUTCDay),$e=y.bind(Date.prototype.getUTCHours),et=y.bind(Date.prototype.getUTCMinutes),tt=y.bind(Date.prototype.getUTCSeconds),nt=y.bind(Date.prototype.getUTCMilliseconds),rt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],it=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ot=function(e,t){return Xe(new Date(t,e,0))};O(Date.prototype,{getFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=He(this);return 0>e&&Ve(this)>11?e+1:e},getMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=He(this),t=Ve(this);return 0>e&&t>11?0:t},getDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=He(this),t=Ve(this),n=Xe(this);if(0>e&&t>11){if(12===t)return n;var r=ot(0,e+1);return r-n+1}return n},getUTCFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=_e(this);return 0>e&&Ke(this)>11?e+1:e},getUTCMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=_e(this),t=Ke(this);return 0>e&&t>11?0:t},getUTCDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=_e(this),t=Ke(this),n=Qe(this);if(0>e&&t>11){if(12===t)return n;var r=ot(0,e+1);return r-n+1}return n}},We),O(Date.prototype,{toUTCString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=qe(this),t=Qe(this),n=Ke(this),r=_e(this),i=$e(this),o=et(this),a=tt(this);return rt[e]+", "+(10>t?"0"+t:t)+" "+it[n]+" "+r+" "+(10>i?"0"+i:i)+":"+(10>o?"0"+o:o)+":"+(10>a?"0"+a:a)+" GMT"}},We||Be),O(Date.prototype,{toDateString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),r=this.getFullYear();return rt[e]+" "+it[n]+" "+(10>t?"0"+t:t)+" "+r}},We||Ge),(We||Re)&&(Date.prototype.toString=function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),r=this.getFullYear(),i=this.getHours(),o=this.getMinutes(),a=this.getSeconds(),s=this.getTimezoneOffset(),l=Math.floor(Math.abs(s)/60),u=Math.floor(Math.abs(s)%60);return rt[e]+" "+it[n]+" "+(10>t?"0"+t:t)+" "+r+" "+(10>i?"0"+i:i)+":"+(10>o?"0"+o:o)+":"+(10>a?"0"+a:a)+" GMT"+(s>0?"-":"+")+(10>l?"0"+l:l)+(10>u?"0"+u:u)},z&&i.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var at=-621987552e5,st="-000001",lt=Date.prototype.toISOString&&-1===new Date(at).toISOString().indexOf(st),ut=Date.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new Date(-1).toISOString(),ct=y.bind(Date.prototype.getTime);O(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(ct(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var e=_e(this),t=Ke(this);e+=Math.floor(t/12),t=(t%12+12)%12;var n=[t+1,Qe(this),$e(this),et(this),tt(this)];e=(0>e?"-":e>9999?"+":"")+K("00000"+Math.abs(e),e>=0&&9999>=e?-4:-6);for(var r=0;r<n.length;++r)n[r]=K("00"+n[r],-2);return e+"-"+F(n,0,2).join("-")+"T"+F(n,2).join(":")+"."+K("000"+nt(this),-3)+"Z"}},lt||ut);var ft=function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(at).toJSON().indexOf(st)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(e){return!1}}();ft||(Date.prototype.toJSON=function(t){var n=i(this),r=W.ToPrimitive(n);if("number"==typeof r&&!isFinite(r))return null;var o=n.toISOString;if(!e(o))throw new TypeError("toISOString property is not callable");return o.call(n)});var dt=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),pt=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z")),ht=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));if(ht||pt||!dt){var gt=Math.pow(2,31)-1,mt=R(new Date(1970,0,1,0,0,0,gt+1).getTime());Date=function(e){var t=function(n,r,i,o,a,s,u){var c,f=arguments.length;if(this instanceof e){var d=s,p=u;if(mt&&f>=7&&u>gt){var h=Math.floor(u/gt)*gt,g=Math.floor(h/1e3);d+=g,p-=1e3*g}c=1===f&&l(n)===n?new e(t.parse(n)):f>=7?new e(n,r,i,o,a,d,p):f>=6?new e(n,r,i,o,a,d):f>=5?new e(n,r,i,o,a):f>=4?new e(n,r,i,o):f>=3?new e(n,r,i):f>=2?new e(n,r):f>=1?new e(n instanceof e?+n:n):new e}else c=e.apply(this,arguments);return G(c)||O(c,{constructor:t},!0),c},n=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),r=[0,31,59,90,120,151,181,212,243,273,304,334,365],i=function(e,t){var n=t>1?1:0;return r[t]+Math.floor((e-1969+n)/4)-Math.floor((e-1901+n)/100)+Math.floor((e-1601+n)/400)+365*(e-1970)},o=function(t){var n=0,r=t;if(mt&&r>gt){var i=Math.floor(r/gt)*gt,o=Math.floor(i/1e3);n+=o,r-=1e3*o}return c(new e(1970,0,1,0,0,n,r))};for(var a in e)J(e,a)&&(t[a]=e[a]);O(t,{now:e.now,UTC:e.UTC},!0),t.prototype=e.prototype,O(t.prototype,{constructor:t},!0);var s=function(t){var r=n.exec(t);if(r){var a,s=c(r[1]),l=c(r[2]||1)-1,u=c(r[3]||1)-1,f=c(r[4]||0),d=c(r[5]||0),p=c(r[6]||0),h=Math.floor(1e3*c(r[7]||0)),g=Boolean(r[4]&&!r[8]),m="-"===r[9]?1:-1,v=c(r[10]||0),y=c(r[11]||0),w=d>0||p>0||h>0;return(w?24:25)>f&&60>d&&60>p&&1e3>h&&l>-1&&12>l&&24>v&&60>y&&u>-1&&u<i(s,l+1)-i(s,l)&&(a=60*(24*(i(s,l)+u)+f+v*m),a=1e3*(60*(a+d+y*m)+p)+h,g&&(a=o(a)),a>=-864e13&&864e13>=a)?a:NaN}return e.parse.apply(this,arguments)};return O(t,{parse:s}),t}(Date)}Date.now||(Date.now=function(){return(new Date).getTime()});var vt=f.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0)),yt={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(e,t){for(var n=-1,r=t;++n<yt.size;)r+=e*yt.data[n],yt.data[n]=r%yt.base,r=Math.floor(r/yt.base)},divide:function(e){for(var t=yt.size,n=0;--t>=0;)n+=yt.data[t],yt.data[t]=Math.floor(n/e),n=n%e*yt.base},numToString:function(){for(var e=yt.size,t="";--e>=0;)if(""!==t||0===e||0!==yt.data[e]){var n=l(yt.data[e]);""===t?t=n:t+=K("0000000",0,7-n.length)+n}return t},pow:function Ot(e,t,n){return 0===t?n:t%2===1?Ot(e,t-1,n*e):Ot(e*e,t/2,n)},log:function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}},wt=function(e){var t,n,r,i,o,a,s,u;if(t=c(e),t=R(t)?0:Math.floor(t),0>t||t>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(n=c(this),R(n))return"NaN";if(-1e21>=n||n>=1e21)return l(n);if(r="",0>n&&(r="-",n=-n),i="0",n>1e-21)if(o=yt.log(n*yt.pow(2,69,1))-69,a=0>o?n*yt.pow(2,-o,1):n/yt.pow(2,o,1),a*=4503599627370496,o=52-o,o>0){for(yt.multiply(0,a),s=t;s>=7;)yt.multiply(1e7,0),s-=7;for(yt.multiply(yt.pow(10,s,1),0),s=o-1;s>=23;)yt.divide(1<<23),s-=23;yt.divide(1<<s),yt.multiply(1,1),yt.divide(2),i=yt.numToString()}else yt.multiply(0,a),yt.multiply(1<<-o,0),i=yt.numToString()+K("0.00000000000000000000",2,2+t);return t>0?(u=i.length,i=t>=u?r+K("0.0000000000000000000",0,t-u+2)+i:r+K(i,0,u-t)+"."+K(i,u-t)):i=r+i,i};O(f,{toFixed:wt},vt);var bt=function(){try{return"1"===1..toPrecision(void 0)}catch(e){return!0}}(),It=f.toPrecision;O(f,{toPrecision:function(e){return"undefined"==typeof e?It.call(this):It.call(this,e)}},bt),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?!function(){var e="undefined"==typeof/()??/.exec("")[1],n=Math.pow(2,32)-1;u.split=function(r,i){var o=String(this);if("undefined"==typeof r&&0===i)return[];if(!t(r))return Q(this,r,i);var a,s,l,u,c=[],f=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),d=0,p=new RegExp(r.source,f+"g");e||(a=new RegExp("^"+p.source+"$(?!\\s)",f));var g="undefined"==typeof i?n:W.ToUint32(i);for(s=p.exec(o);s&&(l=s.index+s[0].length,!(l>d&&($(c,K(o,d,s.index)),!e&&s.length>1&&s[0].replace(a,function(){for(var e=1;e<arguments.length-2;e++)"undefined"==typeof arguments[e]&&(s[e]=void 0)}),s.length>1&&s.index<o.length&&h.apply(c,F(s,1)),u=s[0].length,d=l,c.length>=g)));)p.lastIndex===s.index&&p.lastIndex++,s=p.exec(o);return d===o.length?(u||!p.test(""))&&$(c,""):$(c,K(o,d)),c.length>g?F(c,0,g):c}}():"0".split(void 0,0).length&&(u.split=function(e,t){return"undefined"==typeof e&&0===t?[]:Q(this,e,t)});var Mt=u.replace,Ct=function(){var e=[];return"x".replace(/x(.)?/g,function(t,n){$(e,n)}),1===e.length&&"undefined"==typeof e[0]}();Ct||(u.replace=function(n,r){var i=e(r),o=t(n)&&/\)[*?]/.test(n.source);if(i&&o){var a=function(e){var t=arguments.length,i=n.lastIndex;n.lastIndex=0;var o=n.exec(e)||[];return n.lastIndex=i,$(o,arguments[t-2],arguments[t-1]),r.apply(this,o)};return Mt.call(this,n,a)}return Mt.call(this,n,r)});var At=u.substr,St="".substr&&"b"!=="0b".substr(-1);O(u,{substr:function(e,t){var n=e;return 0>e&&(n=b(this.length+e,0)),At.call(this,n,t)}},St);var Et="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",jt="​",Dt="["+Et+"]",Nt=new RegExp("^"+Dt+Dt+"*"),xt=new RegExp(Dt+Dt+"*$"),Lt=u.trim&&(Et.trim()||!jt.trim());O(u,{trim:function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");return l(this).replace(Nt,"").replace(xt,"")}},Lt);var Tt=y.bind(String.prototype.trim),Zt=u.lastIndexOf&&-1!=="abcあい".lastIndexOf("あい",2);O(u,{lastIndexOf:function(e){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");for(var t=l(this),n=l(e),r=arguments.length>1?c(arguments[1]):NaN,i=R(r)?1/0:W.ToInteger(r),o=I(b(i,0),t.length),a=n.length,s=o+a;s>0;){s=b(0,s-a);var u=q(K(t,s,o+a),n);if(-1!==u)return s+u}return-1}},Zt);var Pt=u.lastIndexOf;if(O(u,{lastIndexOf:function(e){return Pt.apply(this,arguments)}},1!==u.lastIndexOf.length),(8!==parseInt(Et+"08")||22!==parseInt(Et+"0x16"))&&(parseInt=function(e){var t=/^[-+]?0[xX]/;return function(n,r){var i=Tt(String(n)),o=c(r)||(t.test(i)?16:10);return e(i,o)}}(parseInt)),1/parseFloat("-0")!==-(1/0)&&(parseFloat=function(e){return function(t){var n=Tt(String(t)),r=e(n);return 0===r&&"-"===K(n,0,1)?-0:r}}(parseFloat)),"RangeError: test"!==String(new RangeError("test"))){var kt=function(){if("undefined"==typeof this||null===this)throw new TypeError("can't convert "+this+" to object");var e=this.name;"undefined"==typeof e?e="Error":"string"!=typeof e&&(e=l(e));var t=this.message;return"undefined"==typeof t?t="":"string"!=typeof t&&(t=l(t)),e?t?e+": "+t:e:t};Error.prototype.toString=kt}if(z){var Yt=function(e,t){if(ee(e,t)){var n=Object.getOwnPropertyDescriptor(e,t);n.configurable&&(n.enumerable=!1,Object.defineProperty(e,t,n))}};Yt(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),Yt(Error.prototype,"name")}if("/a/gim"!==String(/a/gim)){var zt=function(){var e="/"+this.source+"/";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),e};RegExp.prototype.toString=zt}})},{}],39:[function(e,t,n){var r=[],i=r.forEach,o=r.slice;t.exports=function(e){return i.call(o.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e}},{}],40:[function(e,t,n){n.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+f>=1?d/l:d*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*g}},{}],41:[function(e,t,n){var r=[].indexOf;t.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],42:[function(e,t,n){function r(e){var t=i.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}t.exports=r;var i=Object.prototype.toString},{}],43:[function(e,t,n){var r={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},{}],44:[function(t,n,r){(function(t){!function(i){function o(e){throw new RangeError(P[e])}function a(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function s(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Z,".");var i=e.split("."),o=a(i,t).join(".");return r+o}function l(e){for(var t,n,r=[],i=0,o=e.length;o>i;)t=e.charCodeAt(i++),t>=55296&&56319>=t&&o>i?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function u(e){return a(e,function(e){var t="";return e>65535&&(e-=65536,t+=z(e>>>10&1023|55296),e=56320|1023&e),t+=z(e)}).join("")}function c(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:C}function f(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function d(e,t,n){var r=0;for(e=n?Y(e/j):e>>1,e+=Y(e/t);e>k*S>>1;r+=C)e=Y(e/k);return Y(r+(k+1)*e/(e+E))}function p(e){var t,n,r,i,a,s,l,f,p,h,g=[],m=e.length,v=0,y=N,w=D;for(n=e.lastIndexOf(x),0>n&&(n=0),r=0;n>r;++r)e.charCodeAt(r)>=128&&o("not-basic"),g.push(e.charCodeAt(r));for(i=n>0?n+1:0;m>i;){for(a=v,s=1,l=C;i>=m&&o("invalid-input"),f=c(e.charCodeAt(i++)),(f>=C||f>Y((M-v)/s))&&o("overflow"),v+=f*s,p=w>=l?A:l>=w+S?S:l-w,!(p>f);l+=C)h=C-p,s>Y(M/h)&&o("overflow"),s*=h;t=g.length+1,w=d(v-a,t,0==a),Y(v/t)>M-y&&o("overflow"),y+=Y(v/t),v%=t,g.splice(v++,0,y)}return u(g)}function h(e){var t,n,r,i,a,s,u,c,p,h,g,m,v,y,w,b=[];for(e=l(e),m=e.length,t=N,n=0,a=D,s=0;m>s;++s)g=e[s],128>g&&b.push(z(g));for(r=i=b.length,i&&b.push(x);m>r;){for(u=M,s=0;m>s;++s)g=e[s],g>=t&&u>g&&(u=g);for(v=r+1,u-t>Y((M-n)/v)&&o("overflow"),n+=(u-t)*v,t=u,s=0;m>s;++s)if(g=e[s],t>g&&++n>M&&o("overflow"),g==t){for(c=n,p=C;h=a>=p?A:p>=a+S?S:p-a,!(h>c);p+=C)w=c-h,y=C-h,b.push(z(f(h+w%y,0))),c=Y(w/y);b.push(z(f(c,0))),a=d(n,v,r==i),n=0,++r}++n,++t}return b.join("")}function g(e){return s(e,function(e){return L.test(e)?p(e.slice(4).toLowerCase()):e})}function m(e){return s(e,function(e){return T.test(e)?"xn--"+h(e):e})}var v="object"==typeof r&&r&&!r.nodeType&&r,y="object"==typeof n&&n&&!n.nodeType&&n,w="object"==typeof t&&t;(w.global===w||w.window===w||w.self===w)&&(i=w);var b,I,M=2147483647,C=36,A=1,S=26,E=38,j=700,D=72,N=128,x="-",L=/^xn--/,T=/[^\x20-\x7E]/,Z=/[\x2E\u3002\uFF0E\uFF61]/g,P={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=C-A,Y=Math.floor,z=String.fromCharCode;if(b={version:"1.4.1",ucs2:{decode:l,encode:u},decode:p,encode:h,toASCII:m,toUnicode:g},"function"==typeof e&&"object"==typeof e.amd&&e.amd)e("punycode",function(){return b});else if(v&&y)if(n.exports==v)y.exports=b;else for(I in b)b.hasOwnProperty(I)&&(v[I]=b[I]);else i.punycode=b}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],45:[function(t,n,r){!function(t,r){"undefined"!=typeof n&&n.exports?n.exports=r():"function"==typeof e&&e.amd?e(r):this[t]=r()}("$script",function(){function e(e,t){for(var n=0,r=e.length;r>n;++n)if(!t(e[n]))return l;return 1}function t(t,n){e(t,function(e){return!n(e)})}function n(o,a,s){function l(e){return e.call?e():d[e]}function c(){if(!--y){d[v]=1,m&&m();for(var n in h)e(n.split("|"),l)&&!t(h[n],l)&&(h[n]=[])}}o=o[u]?o:[o];var f=a&&a.call,m=f?a:s,v=f?o.join(""):a,y=o.length;return setTimeout(function(){t(o,function e(t,n){return null===t?c():(n||/^https?:\/\//.test(t)||!i||(t=-1===t.indexOf(".js")?i+t+".js":i+t),g[t]?(v&&(p[v]=1),2==g[t]?c():setTimeout(function(){e(t,!0)},0)):(g[t]=1,v&&(p[v]=1),void r(t,c)))})},0),n}function r(e,t){var n,r=a.createElement("script");r.onload=r.onerror=r[f]=function(){r[c]&&!/^c|loade/.test(r[c])||n||(r.onload=r[f]=null,n=1,g[e]=2,t())},r.async=1,r.src=o?e+(-1===e.indexOf("?")?"?":"&")+o:e,s.insertBefore(r,s.lastChild)}var i,o,a=document,s=a.getElementsByTagName("head")[0],l=!1,u="push",c="readyState",f="onreadystatechange",d={},p={},h={},g={};return n.get=r,n.order=function(e,t,r){!function i(o){o=e.shift(),e.length?n(o,i):n(o,t,r)}()},n.path=function(e){i=e},n.urlArgs=function(e){o=e},n.ready=function(r,i,o){r=r[u]?r:[r];var a=[];return!t(r,function(e){d[e]||a[u](e)})&&e(r,function(e){return d[e]})?i():!function(e){h[e]=h[e]||[],h[e][u](i),o&&o(a)}(r.join("|")),n},n.done=function(e){n([null],e)},n})},{}]},{},[32])(32)});if(typeof fv_flowplayer_conf!="undefined"){try{if(typeof window.localStorage=="object"&&typeof window.localStorage.volume!="undefined"){delete fv_flowplayer_conf.volume}}catch(e){}if(typeof fv_flowplayer_conf.chromecast==="undefined"){fv_flowplayer_conf.chromecast=false}flowplayer.conf=fv_flowplayer_conf;flowplayer.conf.embed=false;flowplayer.conf.share=false;try{flowplayer.conf.key=atob(flowplayer.conf.key)}catch(e){}if(!flowplayer.support.android&&flowplayer.conf.dacast_hlsjs){function FVAbrController(hls){this.hls=hls;this.nextAutoLevel=3}FVAbrController.prototype.nextAutoLevel=function(nextLevel){this.nextAutoLevel=nextLevel};FVAbrController.prototype.destroy=function(){};flowplayer.conf.hlsjs={startLevel:-1,abrController:FVAbrController}}if(flowplayer.support.iOS&&parseInt(flowplayer.support.iOS.version)>=13||!flowplayer.support.iOS&&flowplayer.support.browser.safari&&parseInt(flowplayer.support.browser.version)>=8){flowplayer.conf.hlsjs.safari=true}flowplayer.support.fvmobile=!!(!flowplayer.support.firstframe||flowplayer.support.iOS||flowplayer.support.android);var fls=flowplayer.support;if(flowplayer.conf.mobile_native_fullscreen&&"ontouchstart"in window&&fls.fvmobile){flowplayer.conf.native_fullscreen=true}if("ontouchstart"in window){if(fls.android&&fls.android.version<4.4&&!(fls.browser.chrome&&fls.browser.version>54)){flowplayer.conf.native_fullscreen=true}if(fls.iOS&&(fv_player_in_iframe()||fls.iOS.version<7)){flowplayer.conf.native_fullscreen=true}}}if(typeof fv_flowplayer_translations!="undefined"){flowplayer.defaults.errors=fv_flowplayer_translations}var fv_player_did_autoplay=false;function fv_player_videos_parse(args,root){try{var videos=JSON.parse(args)}catch(e){return false}var regex=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)");var results=regex.exec(location.search);if((results!=null&&results[1]=="yes"||(jQuery(window).width()<=480||jQuery(window).height()<=480))&&(results==null||results[1]!="no")){var fv_fp_mobile=false;jQuery(videos.sources).each(function(k,v){if(v.mobile){videos.sources[k]=videos.sources[0];videos.sources[0]=v;fv_fp_mobile=true}if(fv_fp_mobile){jQuery(root).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>")}})}return videos}function fv_player_in_iframe(){try{return window.self!==window.top}catch(e){return true}}jQuery(document).ready(function(){var loading_count=0;var loading=setInterval(function(){loading_count++;if(loading_count<1e3&&(window.fv_video_intelligence_conf&&!window.FV_Player_IMA||window.fv_vast_conf&&!window.FV_Player_IMA||window.fv_player_pro&&!window.FV_Flowplayer_Pro&&document.getElementById("fv_player_pro")!=fv_player_pro)){return}clearInterval(loading);fv_player_preload()},10)});function fv_escape_attr(text){var map={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return text.replace(/[&<>"']/g,function(m){return map[m]})}function fv_player_preload(){if(flowplayer.support.touch){jQuery(".fp-playlist-external.fv-playlist-design-2017").addClass("visible-captions")}flowplayer(function(api,root){root=jQuery(root);var fp_player=root.find(".fp-player");var splash_click=false;if(root.hasClass("fixed-controls")){root.find(".fp-controls").click(function(e){if(!api.loading&&!api.ready){e.preventDefault();e.stopPropagation();api.load()}})}if(!flowplayer.support.volume&&!flowplayer.support.autoplay){root.find(".fp-volume").hide()}if(root.data("fullscreen")==false){root.find(".fp-fullscreen").remove()}if(root.data("volume")==0&&root.hasClass("no-controlbar")){root.find(".fp-volume").remove()}var playlist=jQuery(".fp-playlist-external[rel="+root.attr("id")+"]");if((!api.conf.playlist||api.conf.playlist.length==0)&&playlist.length&&playlist.find("a[data-item]").length>0){var items=[];playlist.find("a[data-item]").each(function(){if(parsed=fv_player_videos_parse(jQuery(this).attr("data-item"),root)){items.push(parsed)}else{jQuery(this).remove()}});api.conf.playlist=items;api.conf.clip=items[0]}else if(!api.conf.clip){api.conf.clip=fv_player_videos_parse(jQuery(root).attr("data-item"),root)}jQuery("a",playlist).click(function(e){e.preventDefault();splash_click=true;var $this=jQuery(this),playlist=jQuery(".fp-playlist-external[rel="+root.attr("id")+"]"),index=jQuery("a",playlist).index(this);$prev=$this.prev("a"),item=$this.data("item");if(location.href.match(/wp-admin/)&&$this.parents(".fv-player-editor-preview").length>0){fv_flowplayer_conf.current_video_to_edit=index;$this.parents(".fv-player-custom-video").find(".edit-video .fv-player-editor-button").click();return false}if($prev.length&&$this.is(":visible")&&!$prev.is(":visible")){$prev.click();return false}if(jQuery("#"+$this.parent().attr("rel")).hasClass("dynamic-playlist"))return;var playlist=jQuery(".fp-playlist-external[rel="+root.attr("id")+"]");fv_player_playlist_active(playlist,this);if(api){if(api.error){api.pause();api.error=api.loading=false;root.removeClass("is-error");root.find(".fp-message.fp-shown").remove()}if(!api.video||api.video.index==index)return;api.play(index)}var new_splash=item.splash;if(!new_splash){new_splash=$this.find("img").attr("src")}player_splash(root,fp_player,item,new_splash);var rect=root[0].getBoundingClientRect();if(rect.bottom-100<0){jQuery("html, body").animate({scrollTop:jQuery(root).offset().top-100},300)}});var playlist_external=jQuery("[rel="+root.attr("id")+"]");var playlist_progress=false;var splash_img=root.find(".fp-splash");var splash_text=root.find(".fv-fp-splash-text");function player_splash(root,fp_player,item,new_splash){var splash_img=root.find("img.fp-splash");if(new_splash){if(splash_img.length==0){splash_img=jQuery('<img class="fp-splash" />');fp_player.prepend(splash_img)}splash_img.attr("alt",item.fv_title?fv_escape_attr(item.fv_title):"video");splash_img.attr("src",new_splash)}else if(splash_img.length){splash_img.remove()}}api.bind("load",function(e,api,video){if(video.type.match(/^audio/)&&!splash_click){var anchor=playlist_external.find("a").eq(video.index);var item=anchor.data("item");var new_splash=item.splash;if(!new_splash){new_splash=anchor.find("img").attr("src")}player_splash(root,fp_player,item,new_splash)}splash_click=false});api.bind("ready",function(e,api,video){setTimeout(function(){if(video.index>-1){if(playlist_external.length>0){var playlist_item=jQuery("a",playlist_external).eq(video.index);fv_player_playlist_active(playlist_external,playlist_item);playlist_progress=playlist_item.find(".fvp-progress")}}},100);splash_img=root.find(".fp-splash");if(!api.video.type.match(/^audio/)){splash_img.remove();splash_text.remove()}});api.bind("unload",function(){jQuery(".fp-playlist-external .now-playing").remove();jQuery(".fp-playlist-external a").removeClass("is-active");fp_player.prepend(splash_text);fp_player.prepend(splash_img);playlist_progress=false});api.bind("progress",function(e,api,time){if(playlist_progress.length){api.playlist_thumbnail_progress(playlist_progress,api.video,time)}});api.bind("error-subtitles",function(){console.log("error-subtitles");fv_player_notice(root,fv_flowplayer_translations[8],2e3)});var playlist=jQuery(root).parent().find("div.fp-playlist-vertical[rel="+jQuery(root).attr("id")+"]");if(playlist.length){function check_size_and_all(args){var property=playlist.hasClass("fp-playlist-only-captions")?"height":"max-height";if(playlist.parents(".fp-playlist-text-wrapper").hasClass("is-fv-narrow")){property="max-height"}playlist.css(property,vertical_playlist_height());if(property=="max-height")playlist.css("height","auto")}check_size_and_all();jQuery(window).on("resize tabsactivate",function(){setTimeout(check_size_and_all,0)})}function vertical_playlist_height(args){var height=root.height();if(height==0)height=root.css("max-height");return height}});if(window.self!=window.top&&!location.href.match(/fv_player_preview/)){embed_size();jQuery(window.self).resize(embed_size)}function embed_size(){jQuery(".flowplayer.fp-is-embed").each(function(){var root=jQuery(this);if(!root.hasClass("has-chapters")&&!root.hasClass("has-transcript")&&jQuery(".fp-playlist-external[rel="+root.attr("id")+"]").length==0){root.height(jQuery(window).height())}})}if(typeof fv_flowplayer_playlists!="undefined"){for(var i in fv_flowplayer_playlists){if(!fv_flowplayer_playlists.hasOwnProperty(i))continue;jQuery("#"+i).flowplayer({playlist:fv_flowplayer_playlists[i]})}}fv_player_load();fv_autoplay_exec();jQuery(document).ajaxComplete(function(){fv_player_load()});jQuery(window).on("hashchange",fv_autoplay_exec)}function fv_player_load(forced_el){if(forced_el&&forced_el.lenght>1){console.log("FV Player: Can't use fv_player_load with more than a single forced element!")}var load_players=forced_el,forced_api=false;if(!load_players)load_players=jQuery(".flowplayer");load_players.each(function(i,el){var root=jQuery(el);var api=root.data("flowplayer");if(api){if(forced_el)forced_api=api;return}if(forced_el){root.find(".fp-preload, .fvfp_admin_error").remove();if(root.attr("data-item-lazy")){root.attr("data-item",root.attr("data-item-lazy"));root.removeAttr("item-lazy")}else if(playlist=jQuery("[rel="+root.attr("id")+"]")){playlist.find("a[data-item-lazy]").each(function(k,v){v=jQuery(v);v.attr("data-item",v.attr("data-item-lazy"));v.removeAttr("data-item-lazy")})}}if(root.attr("data-item")){forced_api=flowplayer(root[0],{clip:fv_player_videos_parse(root.attr("data-item"),root)});root.data("flowplayer",forced_api)}else if(playlist=jQuery("[rel="+root.attr("id")+"]")){if(playlist.find("a[data-item]").length==0)return;var items=[];playlist.find("a[data-item]").each(function(){if(parsed=fv_player_videos_parse(jQuery(this).attr("data-item"),root)){items.push(parsed)}else{jQuery(this).remove()}});forced_api=flowplayer(root[0],{playlist:items});root.data("flowplayer",forced_api)}});jQuery(".fv-playlist-slider-wrapper").each(function(i,el){var items=jQuery(this).find("a");jQuery(this).find(".fp-playlist-external").css("width",items.outerWidth()*items.length)});if(typeof jQuery().tabs!="undefined"){jQuery("body").removeClass("fv_flowplayer_tabs_hide");jQuery(".fv_flowplayer_tabs_content").tabs()}if(forced_el&&forced_api){return forced_api}}function fv_player_playlist_active(playlist,item){if(playlist){jQuery("a",playlist).removeClass("is-active");jQuery(".now-playing").remove()}$playlist=jQuery(playlist);$item=jQuery(item);var scroll_parent=false;$item.addClass("is-active");var is_design_2014=$playlist.hasClass("fv-playlist-design-2014");if((is_design_2014&&$item.find("h4").length==0||!is_design_2014)&&$item.find(".now-playing").length==0)$item.prepend('<strong class="now-playing"><span>'+fv_flowplayer_translations.playlist_current+"</span></strong>");if(!$playlist.parent().find(".flowplayer").length){scroll_parent=true}if(($playlist.hasClass("fp-playlist-vertical")||$playlist.hasClass("fp-playlist-horizontal")&&$playlist.hasClass("is-audio"))&&!fullyVisibleY($item.get(0))){var $el=scroll_parent?$playlist.parent():$playlist;$el.animate({scrollTop:$el.scrollTop()+($item.position().top-$el.position().top)},750)}else if($playlist.hasClass("fp-playlist-horizontal")&&!fullyVisibleX($item.get(0))){var $el=scroll_parent?$playlist.parent():$playlist;$el.animate({scrollLeft:$el.scrollLeft()+($item.position().left-$el.position().left)},750)}function fullyVisibleY(el){var rect=el.getBoundingClientRect(),top=rect.top,height=rect.height,bottom=top+height,el=el.parentNode;do{rect=el.getBoundingClientRect();if(bottom<=rect.bottom===false)return false;if(top<=rect.top)return false;el=el.parentNode}while(el!=document.body);return bottom<=document.documentElement.clientHeight}function fullyVisibleX(el){var rect=el.getBoundingClientRect(),left=rect.left,width=rect.width,right=left+width,el=el.parentNode;do{rect=el.getBoundingClientRect();if(right<=rect.right===false)return false;if(left<=rect.left)return false;el=el.parentNode}while(el!=document.body);return right<=document.documentElement.clientWidth}}jQuery(function(){jQuery(".flowplayer").each(function(){flowplayer.bean.off(jQuery(this)[0],"contextmenu")})});var fv_fp_date=new Date;var fv_fp_utime=fv_fp_date.getTime();function fv_parse_sharelink(src){src=src.replace("https?://[^./].","");var prefix="fvp_";if(src.match(/(youtube.com)/)){return prefix+src.match(/(?:v=)([A-Za-z0-9_-]*)/)[1]}else if(src.match(/(vimeo.com)|(youtu.be)/)){return prefix+src.match(/(?:\/)([^/]*$)/)[1]}else{var match=src.match(/(?:\/)([^/]*$)/);if(match){return prefix+match[1].match(/^[^.]*/)[0]}}return prefix+src}function fv_player_get_video_link_hash(api){var hash=fv_parse_sharelink(typeof api.video.sources_original!="undefined"&&typeof api.video.sources_original[0]!="undefined"?api.video.sources_original[0].src:api.video.sources[0].src);if(typeof api.video.id!="undefined"){hash=fv_parse_sharelink(api.video.id.toString())}return hash}function fv_player_time_hms(seconds){if(isNaN(seconds)){return NaN}var date=new Date(null);date.setSeconds(seconds);var timeSrting=date.toISOString().substr(11,8);timeSrting=timeSrting.replace(/([0-9]{2}):([0-9]{2}):([0-9]{2}\.?[0-9]*)/,"$1h$2m$3s").replace(/^00h(00m)?/,"").replace(/^0/,"");return timeSrting}function fv_player_time_seconds(time,duration){if(!time)return-1;var seconds=0;var aTime=time.replace(/[hm]/g,":").replace(/s/,"").split(":").reverse();if(typeof aTime[0]!="undefined")seconds+=parseFloat(aTime[0]);if(typeof aTime[1]!="undefined")seconds+=parseInt(60*aTime[1]);if(typeof aTime[2]!="undefined")seconds+=parseInt(60*60*aTime[2]);return duration?Math.min(seconds,duration):seconds}function fv_autoplay_init(root,index,time){if(fv_autoplay_exec_in_progress)return;fv_autoplay_exec_in_progress=true;var api=root.data("flowplayer");if(!api)return;var fTime=fv_player_time_seconds(time);if(root.parent().hasClass("ui-tabs-panel")){var tabId=root.parent().attr("id");jQuery("[aria-controls="+tabId+"] a").click()}if(!root.find(".fp-player").attr("class").match(/\bis-sticky/)){var offset=jQuery(root).offset().top-(jQuery(window).height()-jQuery(root).height())/2;window.scrollTo(0,offset);api.one("ready",function(){window.scrollTo(0,offset)})}if(root.hasClass("lightboxed")){setTimeout(function(){jQuery("[href=\\#"+root.attr("id")+"]").click()},0)}if(index){if(fv_player_video_link_autoplay_can(api,parseInt(index))){if(api.ready){if(fTime>-1)api.seek(fTime);fv_autoplay_exec_in_progress=false}else{api.play(parseInt(index));api.one("ready",function(){fv_autoplay_exec_in_progress=false;if(fTime>-1)api.seek(fTime)})}}else if(flowplayer.support.inlineVideo){api.one(api.playing?"progress":"ready",function(e,api){api.play(parseInt(index));api.one("ready",function(){fv_autoplay_exec_in_progress=false;if(fTime>-1)api.seek(fTime)})});root.find(".fp-splash").attr("src",jQuery("[rel="+root.attr("id")+"] div").eq(index).find("img").attr("src"));if(!fv_player_in_iframe()){fv_player_notice(root,fv_flowplayer_translations[11],"progress")}}}else{if(api.ready){if(fTime>-1)api.seek(fTime);fv_autoplay_exec_in_progress=false}else{if(fv_player_video_link_autoplay_can(api)){api.load()}else if(!fv_player_in_iframe()){fv_player_notice(root,fv_flowplayer_translations[11],"progress")}api.one("ready",function(){fv_autoplay_exec_in_progress=false;if(fTime>-1){var do_seek=setInterval(function(){if(api.loading)return;api.seek(fTime);clearInterval(do_seek)},10)}})}}}var fv_autoplay_exec_in_progress=false;function fv_autoplay_exec(){var autoplay=true;if(typeof flowplayer!=="undefined"&&typeof fv_flowplayer_conf!="undefined"&&fv_flowplayer_conf.video_hash_links&&window.location.hash.substring(1).length){var aHash=window.location.hash.match(/\?t=/)?window.location.hash.substring(1).split("?t="):window.location.hash.substring(1).split(",");var hash=aHash[0];var time=aHash[1]===undefined?false:aHash[1];jQuery(".flowplayer").each(function(){var root=jQuery(this);if(root.hasClass("lightbox-starter")){root=jQuery(root.attr("href"))}var api=root.data("flowplayer");if(!api)return;var playlist=typeof api.conf.playlist!=="undefined"&&api.conf.playlist.length>1?api.conf.playlist:[api.conf.clip];for(var item in playlist){if(!playlist.hasOwnProperty(item))continue;var id=typeof playlist[item].id!=="undefined"?fv_parse_sharelink(playlist[item].id.toString()):false;if(hash===id&&autoplay){console.log("fv_autoplay_exec for "+id,item);fv_autoplay_init(root,parseInt(item),time);autoplay=false;return false}}for(var item in playlist){if(!playlist.hasOwnProperty(item))continue;var src=fv_parse_sharelink(playlist[item].sources[0].src);if(hash===src&&autoplay){console.log("fv_autoplay_exec for "+src,item);fv_autoplay_init(root,parseInt(item),time);autoplay=false;return false}}})}if(autoplay&&flowplayer.support.firstframe){jQuery(".flowplayer[data-fvautoplay]").each(function(){var root=jQuery(this);var api=root.data("flowplayer");if(!fv_player_did_autoplay&&root.data("fvautoplay")){if(!((flowplayer.support.android||flowplayer.support.iOS)&&api&&api.conf.clip.sources[0].type=="video/youtube")){fv_player_did_autoplay=true;api.load();var play_icon=root.find(".fp-play").addClass("invisible"),control_bar=root.find(".fp-controls").addClass("invisible");api.one("progress",function(){play_icon.removeClass("invisible");control_bar.removeClass("invisible")});if(root.data("fvautoplay")=="muted"){api.mute(true,true)}}}})}}function fv_player_video_link_autoplay_can(api,item){var video=item?api.conf.playlist[item]:api.conf.clip;if(video.sources[0].type=="video/youtube"&&(flowplayer.support.iOS||flowplayer.support.android)||fv_player_in_iframe())return false;return flowplayer.support.firstframe}function fv_player_notice(root,message,timeout){var notices=jQuery(".fvfp-notices",root);if(!notices.length){notices=jQuery('<div class="fvfp-notices">');jQuery(".fp-player",root).append(notices)}var notice=jQuery('<div class="fvfp-notice-content">'+message+"</div></div>");notices.append(notice);if(typeof timeout=="string"){var player=jQuery(root).data("flowplayer");player.on(timeout,function(){notice.fadeOut(100,function(){jQuery(this).remove()})})}if(timeout>0){setTimeout(function(){notice.fadeOut(2e3,function(){jQuery(this).remove()})},timeout)}return notice}var fv_player_clipboard=function(text,successCallback,errorCallback){try{fv_player_doCopy(text);successCallback()}catch(e){if(typeof errorCallback!="undefined")errorCallback(e)}};function fv_player_doCopy(text){var textarea=document.createElement("textarea");textarea.value=text;textarea.style.opacity=0;textarea.style.position="absolute";textarea.setAttribute("readonly",true);document.body.appendChild(textarea);var selected=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):false;if(navigator.userAgent.match(/ipad|ipod|iphone/i)){var editable=textarea.contentEditable;textarea.contentEditable=true;var range=document.createRange();range.selectNodeContents(textarea);var sel=window.getSelection();sel.removeAllRanges();sel.addRange(range);textarea.setSelectionRange(0,999999);textarea.contentEditable=editable}else{textarea.select()}try{var result=document.execCommand("copy");if(selected){document.getSelection().removeAllRanges();document.getSelection().addRange(selected)}document.body.removeChild(textarea);return result}catch(err){throw new Error("Unsuccessfull")}}if(location.href.match(/elementor-preview=/)){console.log("FV Player: Elementor editor is active");setInterval(fv_player_load,1e3)}flowplayer(function(api,root){root=jQuery(root);console.log("api.conf.hd_streaming ",api.conf.hd_streaming);var hlsjs;flowplayer.engine("hlsjs-lite").plugin(function(params){hlsjs=params.hls;hlsjs.on(Hls.Events.ERROR,function(event,data){if(data.type=="mediaError"&&data.details=="fragParsingError"&&data.fatal==true){hlsjs.destroy();api.trigger("error",[api,{code:3}]);setTimeout(function(){root.removeClass("is-seeking");root.addClass("is-paused")},0)}});var pick_quality=flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile?720:false;if(jQuery(params.root).data("hd_streaming")==false)pick_quality=false;if(localStorage.FVPlayerHLSQuality)pick_quality=localStorage.FVPlayerHLSQuality;if(pick_quality){hlsjs.on(Hls.Events.MANIFEST_PARSED,function(_,data){var found=false;jQuery.each(data.levels,function(k,v){if(v.height==pick_quality)found=k});if(!localStorage.FVPlayerHLSQuality&&!found){jQuery.each(data.levels,function(k,v){if(v.height>found)found=k})}if(found){console.log("FV Player: Picked "+data.levels[found].height+"p quality");hlsjs.startLevel=found;hlsjs.currentLevel=found}})}});var search=document.location.search;if(localStorage.FVPlayerDashQuality){if(!api.conf.dash)api.conf.dash={};api.conf.dash.initialVideoQuality="restore"}root=jQuery(root);root.on("click",".fp-qsel-menu a",function(){if(api.engine.engineName=="hlsjs-lite"){var quality=jQuery(this).data("quality");if(quality==-1){localStorage.removeItem("FVPlayerHLSQuality")}else{var level=hlsjs.levels[quality];localStorage.FVPlayerHLSQuality=level.height}}});api.bind("quality",function(e,api,quality){if(api.engine.engineName=="dash"){if(quality==-1){localStorage.removeItem("FVPlayerDashQuality")}else if(bitrates[quality]){localStorage.FVPlayerDashQuality=bitrates[quality].height}}});var bitrates=[];var last_quality=-1;api.bind("ready",function(e,api){root.find(".fp-qsel-menu strong").text(fv_flowplayer_translations.quality);if(api.engine.engineName=="dash"){bitrates=api.engine.dash.getBitrateInfoListFor("video");if(localStorage.FVPlayerDashQuality&&api.conf.dash.initialVideoQuality){api.quality(api.conf.dash.initialVideoQuality)}quality_sort()}else if(api.engine.engineName=="hlsjs-lite"){if(api.video.qualities&&api.video.qualities.length>2){quality_sort()}}else if(api.video.sources_fvqs&&api.video.sources_fvqs.length>0&&api.video.src.match(/vimeo.*?\.mp4/)){setTimeout(quality_sort,0)}root.find("a[data-quality]").removeClass("is-current")});if(search.match(/dash_debug/)||search.match(/hls_debug/))var debug_log=jQuery('<div class="fv-debug" style="background: gray; color: white; top: 10%; position: absolute; z-index: 1000">').appendTo(root.find(".fp-player"));api.bind("ready progress",quality_process);api.bind("quality",function(){setTimeout(quality_process,0)});function quality_process(){if(api.engine.engineName=="dash"){var stream_info=bitrates[api.engine.dash.getQualityFor("video")];if(stream_info.qualityIndex!=last_quality){last_quality=stream_info.qualityIndex;quality_label(stream_info.qualityIndex,bitrates)}if(search.match(/dash_debug/))quality_debug(stream_info.width,stream_info.height,stream_info.bitrate)}else if(api.engine.engineName=="hlsjs-lite"){if(hlsjs.currentLevel!=last_quality){last_quality=hlsjs.currentLevel;quality_label(hlsjs.currentLevel,hlsjs.levels)}if(search.match(/hls_debug/)){var level=hlsjs.levels[hlsjs.currentLevel];if(level){quality_debug(level.width,level.height,level.bitrate)}}}}function quality_label(index,qualities){if(!qualities[index])return;var height=qualities[index].height,hd_limit=541,lowest=1e5;jQuery(qualities).each(function(k,v){if(v.height>=720&&v.height<1400)hd_limit=720;if(v.height<lowest)lowest=v.height;if(localStorage.FVPlayerHLSQuality==v.height){root.find("a[data-quality]").removeClass("fp-selected fp-color");root.find("a[data-quality="+k+"]").addClass("fp-selected fp-color")}});root.find("a[data-quality]").removeClass("is-current");root.find("a[data-quality="+index+"]").addClass("is-current");var label="SD";if(height>=360&&lowest<height)label="SD";if(height>=hd_limit)label="HD";if(height>=1400)label="4K";root.find(".fp-qsel").html(label)}function quality_debug(w,h,br){debug_log.html("Using "+w+"x"+h+" at "+Math.round(br/1024)+" kbps")}function quality_sort(){var menu=root.find(".fp-qsel-menu");menu.children().each(function(i,a){menu.prepend(a)});menu.children().each(function(i,a){if(/^NaNp/.test(jQuery(a).html())){var bitrate=jQuery(a).html().match(/\((.*?)\)/);if(bitrate&&typeof bitrate[1]!=="undefined"){jQuery(a).html(bitrate[1])}}else{jQuery(a).html(jQuery(a).html().replace(/\(.*?\)/,""))}});menu.prepend(menu.find("a[data-quality=-1]"));menu.prepend(menu.find("strong"))}});flowplayer(function(api,root){root=jQuery(root);var player_id=root.attr("id"),ad=false;if(root.data("end_popup_preview")){jQuery(document).ready(function(){api.trigger("finish",[api])})}function ad_height_check(){var count=0;var ad_height_check=setInterval(function(){var height=ad&&ad.find(".adsbygoogle").height();count++;if(count>20*10||height>0)clearInterval(ad_height_check);if(height>root.height()){ad.addClass("tall-ad")}},50)}function show_ad(){var ad_data=root.attr("data-ad");if(typeof ad_data!="undefined"&&ad_data.length){try{ad_data=JSON.parse(ad_data)}catch(e){return false}if(!ad&&!root.hasClass("is-cva")&&root.width()>=parseInt(ad_data.width)){var html=ad_data.html;html=html.replace("%random%",Math.random());ad=jQuery('<div id="'+player_id+'_ad" class="wpfp_custom_ad">'+html+"</div>");root.find(".fp-player").append(ad);ad_height_check();setTimeout(function(){if(root.find(".wpfp_custom_ad video").length){api.pause()}},500)}}}function show_popup(event){var popup_data=root.attr("data-popup");if(typeof popup_data!="undefined"&&popup_data.length){try{popup_data=JSON.parse(popup_data)}catch(e){return false}if(event=="finish"||popup_data.pause||popup_data.html.match(/fv-player-ppv-purchase-btn-wrapper/)){root.addClass("is-popup-showing");root.find(".fp-player").append('<div id="'+player_id+'_custom_popup" class="wpfp_custom_popup">'+popup_data.html+"</div>")}}}api.bind("ready",function(e,api){if(ad.length==1){ad.remove();ad=false}if(!root.data("ad_show_after")){show_ad()}}).bind("progress",function(e,api,current){if(current>root.data("ad_show_after")){show_ad()}}).bind("finish",function(e,api){if(typeof api.video.index=="undefined"||api.video.index+1==api.conf.playlist.length){show_popup(e.type)}}).bind("pause",function(e,api){show_popup(e.type)}).bind("resume unload seek",function(e,api){if(root.hasClass("is-popup-showing")){root.find(".wpfp_custom_popup").remove();root.removeClass("is-popup-showing")}})});jQuery(document).on("click",".fv_fp_close",function(){var ad=jQuery(this).parents(".wpfp_custom_ad_content"),video=ad.find("video");ad.fadeOut();if(video.length)video[0].pause();return false});jQuery(document).on("focus",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var api=jQuery(this).parents(".flowplayer").data("flowplayer");if(api)api.disable(true)});jQuery(document).on("blur",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var api=jQuery(this).parents(".flowplayer").data("flowplayer");if(api)api.disable(false)});flowplayer(function(api,root){var root=jQuery(root);api.bind("progress",function(e,api,current){fv_track(e,api,current)}).bind("finish ready ",function(e,api){for(var j in fv_ga_events){if(!fv_ga_events.hasOwnProperty(j))continue;root.removeData("fv_track_"+fv_ga_events[j])}}).bind("error",function(e,api,error){setTimeout(function(){if(!api.error)return;var video=typeof api.video!="undefined"&&typeof api.video.src!="undefined"?api.video:false;if(!video&&typeof api.conf.clip!="undefined"&&typeof api.conf.clip.sources!="undefined"&&typeof api.conf.clip.sources[0]!="undefined"&&typeof api.conf.clip.sources[0].src!="undefined")video=api.conf.clip.sources[0];var name=fv_player_track_name(root,video);if(name&&!name.match(/\/\/vimeo.com\/\d/)){fv_player_track(api.conf.analytics,"Video "+(root.hasClass("is-cva")?"Ad ":"")+"error",error.message,name)}},100)});var fv_ga_events=["start","first quartile","second quartile","third quartile","complete"];function fv_track(e,api,data){var video=api.video,dur=video.duration,i=0;var name=fv_player_track_name(root,video);if(dur){if(data>19*dur/20)i=4;else if(data>3*dur/4)i=3;else if(data>dur/2)i=2;else if(data>dur/4)i=1}if(root.data("fv_track_"+fv_ga_events[i]))return;for(var j in fv_ga_events){if(!fv_ga_events.hasOwnProperty(j))continue;if(j==i)break;if(!root.data("fv_track_"+fv_ga_events[j]))return}root.trigger("fv_track_"+fv_ga_events[i].replace(/ /,"_"),[api,name]);root.data("fv_track_"+fv_ga_events[i],true);fv_player_track(api.conf.analytics,"Video "+(root.hasClass("is-cva")?"Ad ":"")+fv_ga_events[i],api.engine.engineName+"/"+video.type,name)}});function fv_player_track(ga_id,event,engineType,name){if(!ga_id||typeof _gat=="undefined")return;var tracker=_gat._getTracker(ga_id);if(typeof tracker._setAllowLinker=="undefined"){return}if(typeof engineType=="undefined")engineType="Unknown engine";if(/fv_ga_debug/.test(window.location.href))console.log("FV GA: "+event+" - "+engineType+" '"+name+"'");tracker._setAllowLinker(true);tracker._trackEvent(event,engineType,name,1)}function fv_player_track_name(root,video){var name=root.attr("title");if(!name&&typeof video.fv_title!="undefined")name=video.fv_title;if(!name&&typeof video.title!="undefined")name=video.title;if(!name&&typeof video.title!="undefined")name=video.title;if(!name&&typeof video.src!="undefined"){name=video.src.split("/").slice(-1)[0].replace(/\.(\w{3,4})(\?.*)?$/i,"");if(video.type.match(/mpegurl/))name=video.src.split("/").slice(-2)[0].replace(/\.(\w{3,4})(\?.*)?$/i,"")+"/"+name}return name}flowplayer(function(api,root){root=jQuery(root);var player=root.find(".fp-player"),had_no_volume=root.hasClass("no-volume"),had_fp_mute=root.hasClass("fp-mute"),had_fp_full=root.hasClass("fp-full"),timeline=root.find(".fp-timeline"),buttons_count=0;function check_size(){var width=player.width()||root.width();if(width>900){jQuery(".fp-subtitle",root).addClass("is-wide")}else{jQuery(".fp-subtitle",root).removeClass("is-wide")}root.toggleClass("is-tiny",width<400);root.toggleClass("is-small",width<600&&width>=400);if(!had_fp_full){root.toggleClass("fp-full",root.hasClass("has-abloop")||width<480+buttons_count*35)}var size="";if(width<400)size="is-tiny";else if(width<600&&width>=400)size="is-small";root.trigger("fv-player-size",[size]);var el=player;if(root.parent().hasClass("fp-playlist-vertical-wrapper")||root.parent().hasClass("fp-playlist-text-wrapper"))el=root.parent();if(el.width()<=560){el.addClass("is-fv-narrow")}else{el.removeClass("is-fv-narrow")}if(width<=320){root.addClass("no-volume fp-mute")}else{if(!had_no_volume)root.removeClass("no-volume");if(!had_fp_mute)root.removeClass("fp-mute")}if(!root.hasClass("is-audio")){var speed=root.find(".fp-speed-menu");speed.toggleClass("wont-fit",++speed.children().length*35>player.height());var item=root.find(".fv-fp-list-menu");item.toggleClass("wont-fit",++item.children().length*25>player.height())}}check_size();jQuery(window).on("resize",check_size);api.on("ready fullscreen fullscreen-exit",check_size);api.on("ready fullscreen fullscreen-exit",function(){setTimeout(function(){buttons_count=root.find(".fp-controls > strong:visible").length+root.find(".fp-controls > .fp-icon:visible").length;check_size()},0)});api.on("unload pause finish error",function(){if(typeof checker!=="undefined")clearInterval(checker)})});jQuery(window).on("resize tabsactivate",function(){jQuery(".fp-playlist-external").each(function(){var playlist=jQuery(this);if(playlist.parent().width()>=900)playlist.addClass("is-wide");else playlist.removeClass("is-wide")})}).trigger("resize");flowplayer(function(api,root){api.bind("ready",function(){if(/Chrome/.test(navigator.userAgent)&&parseFloat(/Chrome\/(\d\d)/.exec(navigator.userAgent)[1],10)>54){if(api.video.subtitles){jQuery(root).addClass("chrome55fix-subtitles")}else{jQuery(root).addClass("chrome55fix")}}});root=jQuery(root);var image_src=root.css("background-image");if(image_src){image_src=image_src.replace(/url\((['"])?(.*?)\1\)/gi,"$2").split(",");if(!image_src||!image_src[0].match(/^(https?:)?\/\//))return;var image=new Image;image.src=image_src[0];var image_ratio=image.height/image.width;var player_ratio=root.height()/root.width();var ratio_diff=Math.abs(player_ratio-image_ratio);if(ratio_diff<.05){root.css("background-size","cover")}}});(function($){$(window).on("resize",function(){var iframe=$("iframe[id][src][height][width]");iframe.each(function(){if($(this).attr("id").match(/(fv_vimeo_)|(fv_ytplayer_)/)&&$(this).width()<=$(this).attr("width"))$(this).height($(this).width()*$(this).attr("height")/$(this).attr("width"))});var wistia=jQuery(".wistia_embed");wistia.each(function(){$(this).height($(this).width()*$(this).data("ratio"))})}).trigger("resize")})(jQuery);jQuery(document).on("tabsactivate",".fv_flowplayer_tabs_content",function(event,ui){var oldPlayer=jQuery(".flowplayer.is-playing").data("flowplayer");if(typeof oldPlayer!="undefined"){oldPlayer.pause()}var objPlayer=jQuery(".flowplayer",ui.newPanel);var api=objPlayer.data("flowplayer");api.load()});flowplayer(function(api,root){root=jQuery(root);var bean=flowplayer.bean;if(root.hasClass("is-audio")){bean.off(root[0],"mouseenter");bean.off(root[0],"mouseleave");root.removeClass("is-mouseout");root.addClass("fixed-controls").addClass("is-mouseover");api.on("error",function(e,api,error){jQuery(".fp-message",root).html(jQuery(".fp-message",root).html().replace(/video/,"audio"))});root.click(function(e){if(!api.ready){e.preventDefault();e.stopPropagation();api.load()}})}});jQuery(document).on("mfpClose",function(){if(typeof jQuery(".flowplayer").data("flowplayer")!="undefined")jQuery(".flowplayer").data("flowplayer").unload()});jQuery(document).on("click",".vc_tta-tab a",function(){var api=jQuery(".flowplayer.is-playing").data("flowplayer");if(api)api.pause()});flowplayer(function(api,root){api.bind("ready",function(){setTimeout(function(){var video=jQuery("video",root);if(video.length>0){video.removeAttr("autoplay")}},100)})});jQuery(".flowplayer").on("ready",function(e,api){if(/BB10/.test(navigator.userAgent)){api.fullscreen()}});var fv_flowplayer_safety_resize_arr=Array();function fv_flowplayer_safety_resize(){var fv_flowplayer_safety_resize_init=false;jQuery(".flowplayer").each(function(){if(!jQuery(this).is(":visible")||jQuery(this).hasClass("lightboxed")||jQuery(this).hasClass("lightbox-starter")||jQuery(this).hasClass("is-audio"))return;if(jQuery(this).width()<30||jQuery(this).height()<20){fv_flowplayer_safety_resize_init=true;var el=jQuery(this);while(jQuery(el).width()<30||jQuery(el).width()==jQuery(this).width()){if(jQuery(el).parent().length==0)break;el=jQuery(el).parent()}jQuery(this).width(jQuery(el).width());jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio")));fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]=el}});if(fv_flowplayer_safety_resize_init){jQuery(window).resize(function(){jQuery(".flowplayer").each(function(){if(jQuery(this).hasClass("lightboxed")||jQuery(this).hasClass("lightbox-starter"))return;if(fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]){jQuery(this).width(fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")].width());jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio")))}})})}}if(typeof flowplayer.conf.safety_resize!="undefined"&&flowplayer.conf.safety_resize){jQuery(document).ready(function(){setTimeout(function(){fv_flowplayer_safety_resize()},10)})}var isIE11=!!navigator.userAgent.match(/Trident.*rv[ :]*11\./);if(isIE11){jQuery(document).ready(function(){jQuery(".fp-waiting").hide()});flowplayer(function(api,root){api.bind("load",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("beforeseek",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("progress",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("seek",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("fullscreen",function(e){jQuery("#wpadminbar").hide()}).bind("fullscreen-exit",function(e){jQuery("#wpadminbar").show()})})}if(flowplayer.support.browser&&flowplayer.support.browser.msie&&parseInt(flowplayer.support.browser.version,10)<9){jQuery(".flowplayer").each(function(){jQuery(this).css("width",jQuery(this).css("max-width"));jQuery(this).css("height",jQuery(this).css("max-height"))})}if(location.href.match(/elementor-preview=/)){console.log("FV Player: Elementor editor is active");setInterval(fv_player_load,1e3)}flowplayer(function(player,root){root=jQuery(root);if(typeof root.data("fv-embed")=="undefined"||!root.data("fv-embed")||root.data("fv-embed")=="false")return;player.embedCode=function(){var video=player.video;var width=root.width();var height=root.height();height+=2;if(root.hasClass("has-chapters")||root.hasClass("has-transcript")){height+=300}if(jQuery(".fp-playlist-external[rel="+root.attr("id")+"]").length>0){height+=150+20}var link=root.data("fv-embed")+"#"+fv_player_get_video_link_hash(player);return'<iframe src="'+link+'" allowfullscreen width="'+width+'" height="'+height+'" frameborder="0" style="max-width:100%"></iframe>'}});jQuery(document).on("click",".flowplayer .embed-code-toggle",function(){var button=jQuery(this);var player=button.parents(".flowplayer");var api=player.data("flowplayer");if(typeof api.embedCode=="function"){player.find(".embed-code textarea").val(api.embedCode())}fv_player_clipboard(player.find(".embed-code textarea").val(),function(){fv_player_notice(player,fv_flowplayer_translations.embed_copied,2e3)},function(){button.parents(".fvp-share-bar").find(".embed-code").toggle();button.parents(".fvp-share-bar").toggleClass("visible")});return false});flowplayer(function(player,root){if(!support.fullscreen&&player.conf.native_fullscreen&&typeof common.createElement("video").webkitEnterFullScreen==="function"){return}var FS_ENTER="fullscreen",FS_EXIT="fullscreen-exit",FS_SUPPORT=flowplayer.support.fullscreen,win=window,scrollX,scrollY;player.fullscreen=function(flag){var wrapper=jQuery(root).find(".fp-player")[0];if(player.disabled)return;if(flag===undefined)flag=!player.isFullscreen;if(flag){scrollY=win.scrollY;scrollX=win.scrollX}if(FS_SUPPORT){if(flag){["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(fName){if(typeof wrapper[fName]==="function"){wrapper[fName]({navigationUI:"hide"});if(fName==="webkitRequestFullScreen"&&!document.webkitFullscreenElement){wrapper[fName]()}}})}else{["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(fName){if(typeof document[fName]==="function"){document[fName]()}})}}else{player.trigger(flag?FS_ENTER:FS_EXIT,[player])}return player};player.on("fullscreen-exit",function(){win.scrollTo(scrollX,scrollY)})});flowplayer(function(api,root){root=jQuery(root);if(flowplayer.conf.wpadmin||jQuery(root).hasClass("is-audio"))return;var playlist=jQuery(".fp-playlist-external[rel="+root.attr("id")+"]"),fsforce=root.data("fsforce")==true||playlist.hasClass("fp-playlist-season")||playlist.hasClass("fp-playlist-polaroid");if(root.data("fullscreen")==false){return}if(flowplayer.conf.mobile_force_fullscreen&&flowplayer.support.fvmobile||!flowplayer.support.fullscreen&&fsforce){if(!flowplayer.support.fullscreen){api.bind("ready",function(){api.fullscreen(true)})}root.on("click",function(){if(!api.ready||api.paused)api.fullscreen(true)});jQuery("[rel="+root.attr("id")+"] a").on("click",function(e){if(!api.isFullscreen){api.fullscreen();api.resume()}});api.on("resume",function(){if(!api.isFullscreen)api.fullscreen()});api.on("finish",function(){if(api.conf.playlist.length==0||api.conf.playlist.length-1==api.video.index)api.fullscreen(false)}).on("fullscreen",function(a,api){root.addClass("forced-fullscreen")}).on("fullscreen-exit",function(a,api){api.pause();root.removeClass("forced-fullscreen")})}else if(fsforce){var position,unload=root.find(".fp-unload"),is_closing=false;api.isFakeFullscreen=false;unload.show();root.on("click",function(e){if(!api.ready&&e.target!=unload[0])api.fakeFullscreen(true)});unload.on("click",function(e){if(api.ready){api.fullscreen(false)}else if(api.loading){is_closing=true;api.one("resume",function(e){is_closing=false;api.pause()})}api.fakeFullscreen(false);return false});jQuery("[rel="+root.attr("id")+"] a").on("click",function(e){if(!api.isFakeFullscreen){api.fakeFullscreen();api.resume()}});api.on("resume",function(){if(!is_closing&&!api.isFakeFullscreen)api.fakeFullscreen()}).on("finish",function(){if(api.conf.playlist.length==0||api.conf.playlist.length-1==api.video.index)api.fakeFullscreen(false)}).on("fullscreen",function(a,api){root.removeClass("fake-fullscreen")}).on("fullscreen-exit",function(a,api){if(api.isFakeFullscreen)api.fakeFullscreen(true,true)}).on("unload",function(a,api){});api.fakeFullscreen=function(flag,force){if(!force&&(api.isFakeFullscreen==flag||api.disabled))return;if(position===undefined)position=root.css("position");if(flag===undefined)flag=!api.isFakeFullscreen;api.isFakeFullscreen=flag;api.trigger(flag?"fakefullscreen":"fakefullscreen-exit",[api]);root.toggleClass("is-fullscreen fake-fullscreen forced-fullscreen",flag);if(flag){root.css("position","fixed")}else{root.css("position",position)}}}if(flowplayer.support.android&&flowplayer.conf.mobile_landscape_fullscreen){api.on("fullscreen",function(a,api){screen.orientation.lock("landscape-primary")})}});flowplayer(function(api,root){root=jQuery(root);var hlsjs,player,audioUXGroup,audioGroups,hls_audio_button,hls_audio_menu,mse=window.MediaSource||window.WebKitMediaSource;flowplayer.engine("hlsjs-lite").plugin(function(params){hlsjs=params.hls});api.bind("ready",function(e,api){removeAudioMenu();if(hlsjs&&api.video.type=="application/x-mpegurl"){parseAudioTracksHlsJs(hlsjs);createAudioMenu()}});api.one("progress",function(){if(api.engine.engineName=="html5"&&api.video.type=="application/x-mpegurl"){parseAudioTracksSafari();createAudioMenu()}});function getVideoTagAudioTracks(){var video=root.find("video");if(video.length&&video[0].audioTracks){return video[0].audioTracks}return[]}function hilightAudioTrack(audioTrack){if(!audioTrack.name)audioTrack.name=audioTrack.label;root.find(".fv-fp-hls-menu a").each(function(k,el){jQuery(el).toggleClass("fp-selected",jQuery(el).attr("data-audio")===audioTrack.name)})}function createAudioMenu(){if(!audioUXGroup||audioUXGroup.length<2){return}hls_audio_button=jQuery('<strong class="fv-fp-hls">AUD</strong>');hls_audio_menu=jQuery('<div class="fp-menu fv-fp-hls-menu"></div>').insertAfter(root.find(".fp-controls"));hls_audio_menu.append("<strong>Audio</strong>");audioUXGroup.forEach(function(audioTrack){hls_audio_menu.append('<a data-audio="'+audioTrack.name+'">'+audioTrack.name+"</a>")});hls_audio_button.insertAfter(root.find(".fp-controls .fp-volume")).click(function(e){e.preventDefault();e.stopPropagation();if(hls_audio_menu.hasClass("fp-active")){api.hideMenu(hls_audio_menu[0])}else{root.click();api.showMenu(hls_audio_menu[0])}});jQuery("a",hls_audio_menu).click(function(e){var adata=e.target.getAttribute("data-audio");if(hlsjs){var gid=hlsjs.audioTracks[hlsjs.audioTrack].groupId;var atrack=hlsjs.audioTracks.filter(function(at){return at.groupId===gid&&(at.name===adata||at.lang===adata)})[0];hlsjs.audioTrack=atrack.id;hilightAudioTrack(atrack)}else{var tracks=getVideoTagAudioTracks();for(var i in tracks){if(!tracks.hasOwnProperty(i))continue;if(tracks[i].label==adata){tracks[i].enabled=true;hilightAudioTrack(tracks[i])}}}});if(hlsjs){hilightAudioTrack(hlsjs.audioTracks[hlsjs.audioTrack])}else{var tracks=getVideoTagAudioTracks();for(var i in tracks){if(!tracks.hasOwnProperty(i))continue;if(tracks[i].enabled){hilightAudioTrack(tracks[i])}}}}function removeAudioMenu(){jQuery(hls_audio_menu).remove();jQuery(hls_audio_button).remove()}function parseAudioTracksHlsJs(data){audioGroups=[];audioUXGroup=[];data.levels.forEach(function(level){var agroup=level.attrs.AUDIO;if(agroup&&audioGroups.indexOf(agroup)<0){audioGroups.push(agroup)}if(audioGroups.length){audioUXGroup=data.audioTracks.filter(function(audioTrack){return audioTrack.groupId===audioGroups[0]})}})}function parseAudioTracksSafari(){audioGroups=[];audioUXGroup=[];var tracks=getVideoTagAudioTracks();for(var i in tracks){if(!tracks.hasOwnProperty(i))continue;audioUXGroup.push({id:tracks[i].id,name:tracks[i].label})}}});flowplayer(function(api,root){var store_engine_pos=-1;var store_engine=false;api.on("error",function(e,api,err){if(err.code!=4||api.engine.engineName!="hlsjs")return;console.log("FV Player: HLSJS failed to play the video, switching to Flash HLS");api.error=api.loading=false;jQuery(root).removeClass("is-error");jQuery(flowplayer.engines).each(function(k,v){if(flowplayer.engines[k].engineName=="hlsjs"){store_engine_pos=k;store_engine=flowplayer.engines[k];delete flowplayer.engines[k]}});var index=typeof api.video.index!="undefined"?api.video.index:0;var video=index>0?api.conf.playlist[index].sources:api.conf.clip.sources;video.index=index;api.load({sources:video});api.bind("unload error",function(){flowplayer.engines[store_engine_pos]=store_engine})})});flowplayer(function(api,root){var initialDelay=30,continueDelay=10,useDelay=initialDelay,retryLabel=fv_flowplayer_translations.live_stream_retry,timer;api.clearLiveStreamCountdown=function(){if(timer){clearInterval(timer);api.error=api.loading=false;jQuery(root).removeClass("is-error");jQuery(root).find(".fp-message.fp-shown").remove();api.unload()}};api.conf.flashls={manifestloadmaxretry:2};api.on("ready",function(){useDelay=initialDelay;retryLabel=fv_flowplayer_translations.live_stream_retry}).on("progress",function(){useDelay=continueDelay;retryLabel=fv_flowplayer_translations.live_stream_continue});api.on("error",function(e,api,err){setTimeout(function(){if(!api.conf.clip.live&&!api.conf.live&&!(err.video&&err.video.src.match(/\/\/vimeo.com\/event\//)))return;var delay=useDelay;if(api.conf.clip.streaming_time){delay=api.conf.clip.streaming_time-Math.floor(Date.now()/1e3)}else if(api.conf.clip.live_starts_in){delay=api.conf.clip.live_starts_in}var startLabel=fv_flowplayer_translations.live_stream_starting.replace(/%d/,secondsToDhms(delay));retryLabel=retryLabel.replace(/%d/,secondsToDhms(delay));var message=api.conf.clip.live_starts_in?startLabel:retryLabel;clearInterval(timer);if(err.code===1||err.code===2||err.code===4){root.className+=" is-offline";if(flowplayer.support.flashVideo){api.one("flashdisabled",function(){root.querySelector(".fp-flash-disabled").style.display="none"})}var messageElement=root.querySelector(".fp-ui .fp-message");messageElement.innerHTML=message;var reload_delay=delay>300?300:delay;timer=setInterval(function(){reload_delay-=1;delay-=1;if(reload_delay>0&&messageElement){messageElement.querySelector("span").innerHTML=secondsToDhms(delay)}else{clearInterval(timer);api.error=api.loading=false;if(messageElement){root.querySelector(".fp-ui").removeChild(messageElement)}root.className=root.className.replace(/\bis-(error|offline)\b/g,"");api.load()}},1e3)}},1)});function secondsToDhms(seconds){seconds=Number(seconds);var d=Math.floor(seconds/(3600*24));var h=Math.floor(seconds%(3600*24)/3600);var m=Math.floor(seconds%3600/60);var s=Math.floor(seconds%60);var t=fv_flowplayer_translations;var output=d>0?d==1?t.duration_1_day.replace(/%s/,d):t.duration_n_days.replace(/%s/,d):"";if(output&&h>0)output+=", ";output+=h>0?h==1?t.duration_1_hour.replace(/%s/,h):t.duration_n_hours.replace(/%s/,h):"";if(output&&m>0)output+=", ";output+=m>0?m==1?t.duration_1_minute.replace(/%s/,m):t.duration_n_minutes.replace(/%s/,m):"";if(output&&s>0)output+=t.and;output+=s>0?s==1?t.duration_1_second.replace(/%s/,s):t.duration_n_seconds.replace(/%s/,s):"";return output}});flowplayer(function(api,root){if(!flowplayer.support.browser.safari&&!flowplayer.support.iOS)return;root=jQuery(root);var video_tag=false,did_start_playing=false,are_waiting_already=0;api.on("ready",function(){are_waiting_already=0;did_start_playing=false;if(api.engine.engineName=="html5"){video_tag=root.find("video");if(!video_tag.data("fv-ios-recovery")){video_tag.on("waiting",wait_for_stalled);video_tag.data("fv-ios-recovery",true)}api.one("progress",function(){did_start_playing=true})}});api.bind("beforeseek",function(){if(did_start_playing){wait_for_stalled()}});function debug(e){console.log("FV PLayer: iOS video element: "+e.type)}function wait_for_stalled(){if(video_tag&&api.engine.engineName=="html5"){are_waiting_already++;if(are_waiting_already>1){if(are_waiting_already>3){console.log("FV PLayer: iOS video element needs a push, triggering 'stalled'");video_tag.trigger("stalled")}return}console.log("FV PLayer: iOS video element will trigger error after 'stalled' arrives");video_tag.one("stalled",function(){var time=api.video.time;if(api.video.type.match(/video\//)){console.log("FV PLayer: running Ajax check of video file...");jQuery.ajax({type:"HEAD",url:api.video.src,success:function(message,text,response){are_waiting_already=0},error:function(){if(are_waiting_already>0){api.trigger("error",[api,{code:4,video:api.video}])}}});return}setTimeout(function(){console.log(api.video.time,time);if(api.video.time!=time){console.log("FV PLayer: iOS video element continues playing, no need for error");return}if(api.paused){console.log("FV PLayer: iOS video element paused, no need for error");return}api.trigger("error",[api,{code:4,video:api.video}])},5e3)})}}});!function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e<arguments.length;e++){var o=arguments[e];for(var t in o)n[t]=o[t]}return n}function n(o){function t(n,r,i){var c;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}r=o.write?o.write(r,n):encodeURIComponent(r+"").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(n+"")).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var s="";for(var f in i)i[f]&&(s+="; "+f,!0!==i[f]&&(s+="="+i[f]));return document.cookie=n+"="+r+s}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u<p.length;u++){var l=p[u].split("="),C=l.slice(1).join("=");this.json||'"'!==C.charAt(0)||(C=C.slice(1,-1));try{var m=l[0].replace(d,decodeURIComponent);if(C=o.read?o.read(C,m):o(C,m)||C.replace(d,decodeURIComponent),this.json)try{C=JSON.parse(C)}catch(e){}if(n===m){c=C;break}n||(c[m]=C)}catch(e){}}return c}}return t.set=t,t.get=function(e){return t.call(t,e)},t.getJSON=function(){return t.apply({json:!0},[].slice.call(arguments))},t.defaults={},t.remove=function(n,o){t(n,"",e(o,{expires:-1}))},t.withConverter=n,t}return n(function(){})});flowplayer.bean.off(document,"keydown.fp");flowplayer(function(api,root){var bean=flowplayer.bean;if(!api.conf.keyboard)return;bean.on(root,"mouseenter mouseleave",function(e){fv_player_focused=!api.disabled&&e.type=="mouseover"?api:0;if(fv_player_focused)fv_player_focusedRoot=root});api.bind("ready",function(e,api,video){if(video.subtitles&&video.subtitles.length>0){var help=jQuery(root).find(".fp-help").html();help+='<div class="fp-help-section fp-help-subtitles"><p><em>c</em>cycle through subtitles</p></div>';jQuery(root).find(".fp-help").html(help)}else{jQuery(root).find(".fp-help-subtitles").remove()}})});flowplayer.bean.on(document,"keydown.fp",function(e){if(typeof fv_player_focused=="undefined")return;var api=fv_player_focused,focusedRoot=api?fv_player_focusedRoot:false,common=flowplayer.common;var el=api&&!api.disabled?api:0,metaKeyPressed=e.ctrlKey||e.metaKey||e.altKey,key=e.which,conf=el&&el.conf;if(common.hasClass(focusedRoot,"no-controlbar")||common.hasClass(focusedRoot,"is-cva"))return;if(!el||!conf.keyboard||el.disabled)return;if([63,187,191].indexOf(key)!=-1){common.toggleClass(focusedRoot,"is-help");return false}if(key==27&&common.hasClass(focusedRoot,"is-help")){common.toggleClass(focusedRoot,"is-help");return false}if(!metaKeyPressed&&el.ready){e.preventDefault();if(e.shiftKey){if(key==39)el.speed(true);else if(key==37)el.speed(false);else if(key==78)el.next();else if(key==80)el.prev();return}if(key<58&&key>47)return el.seekTo(key-48);switch(key){case 38:case 75:el.volume(el.volumeLevel+.15);break;case 40:case 74:el.volume(el.volumeLevel-.15);break;case 39:case 76:el.seeking=true;el.seek(api.video.time+5);break;case 37:case 72:el.seeking=true;el.seek(api.video.time-5);break;case 190:el.seekTo();break;case 32:el.toggle();break;case 70:if(conf.fullscreen)el.fullscreen();break;case 77:el.mute();break;case 81:el.unload();break;case 67:if(!api.video.subtitles||api.video.subtitles.length==0)break;var current_subtitles=jQuery(focusedRoot).find(".fp-dropdown li.active[data-subtitle-index]").data("subtitle-index");if(typeof current_subtitles=="undefined")current_subtitles=-1;current_subtitles++;if(current_subtitles>api.video.subtitles.length-1){current_subtitles=-1}api.trigger("fv-subtitles-switched");if(current_subtitles>-1){el.loadSubtitles(current_subtitles);fv_player_notice(focusedRoot,fv_flowplayer_translations.subtitles_switched+" "+api.video.subtitles[current_subtitles].label,"fv-subtitles-switched")}else{el.disableSubtitles();fv_player_notice(focusedRoot,fv_flowplayer_translations.subtitles_disabled,"fv-subtitles-switched")}break}}});flowplayer(function(api,root){api.bind("load",function(e,api,data){var player=jQuery(e.currentTarget);if(player.data("live")){var live_check=setTimeout(function(){player.find(".fp-ui").append('<div class="fp-message">'+fv_flowplayer_translations.live_stream_failed+"</div>");player.addClass("is-error")},1e4);jQuery(e.currentTarget).data("live_check",live_check)}}).bind("ready",function(e,api,data){clearInterval(jQuery(e.currentTarget).data("live_check"))}).bind("error",function(e,api,data){var player=jQuery(e.currentTarget);if(player.data("live")){player.find(".fp-message").html(fv_flowplayer_translations.live_stream_failed_2)}})});(function($){flowplayer(function(api,root){if(jQuery(root).hasClass("is-cva"))return;$(document).on("submit","#"+jQuery(root).attr("id")+" .mailchimp-form",function(e){e.preventDefault();$(".mailchimp-response",root).remove();$("input[type=submit]",root).attr("disabled","disabled").addClass("fv-form-loading");var data={action:"fv_wp_flowplayer_email_signup"};$("[name]",this).each(function(){data[this.name]=$(this).val()});$.post(fv_fp_ajaxurl,data,function(response){response=JSON.parse(response);$('<div class="mailchimp-response"></div>').insertAfter(".mailchimp-form",root);if(response.text.match(/already subscribed/)){response.status="ERROR"}if(response.status==="OK"){$(".mailchimp-form input[type=text],.mailchimp-form input[type=email]",root).val("");$(".mailchimp-response",root).removeClass("is-fv-error").html(response.text);setTimeout(function(){$(".wpfp_custom_popup",root).fadeOut()},2e3)}else{$(".mailchimp-response",root).addClass("is-fv-error").html(response.text)}$("input[type=submit]",root).removeAttr("disabled").removeClass("fv-form-loading")})})})})(jQuery);function fv_flowplayer_mobile_switch(id){var regex=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)");var results=regex.exec(location.search);if((results!=null&&results[1]=="yes"||(jQuery(window).width()<=480||jQuery(window).height()<=480))&&(results==null||results[1]!="no")){var fv_fp_mobile=false;jQuery("#wpfp_"+id+" video source").each(function(){if(jQuery(this).attr("id")!="wpfp_"+id+"_mobile"){fv_fp_mobile=true;jQuery(this).remove()}});if(fv_fp_mobile){jQuery("#wpfp_"+id).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>")}}}if(typeof fv_flowplayer_mobile_switch_array!="undefined"){for(var i in fv_flowplayer_mobile_switch_array){if(!fv_flowplayer_mobile_switch_array.hasOwnProperty(i))continue;fv_flowplayer_mobile_switch(i)}}flowplayer(function(api,root){root=jQuery(root);var instance_id=root.data("flowplayer-instance-id");flowplayer.audible_instance=-1;api.one("load",function(){setTimeout(function(){api.conf.splash=false},0)});api.on("ready",function(){var is_muted=root.data("volume")==0;jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var player=jQuery(this).data("flowplayer");var current_instance_id=root.data("flowplayer-instance-id");if(current_instance_id==flowplayer.audible_instance)return;if(player){if(player.playing){if(api.conf.multiple_playback&&!is_muted){player.mute(true,rue)}else{player.pause()}}else{player.clearLiveStreamCountdown();player.unload()}}});flowplayer.audible_instance=instance_id}).on("mute",function(e,api,muted){if(!muted&&flowplayer.audible_instance!=instance_id){flowplayer(flowplayer.audible_instance).mute(true,true);flowplayer.audible_instance=instance_id}}).on("resume",function(){if(!api.conf.multiple_playback){jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){if(instance_id==jQuery(this).data("flowplayer-instance-id"))return;var player=jQuery(this).data("flowplayer");if(player&&player.playing){player.pause()}})}})});function fv_flowplayer_browser_ff_m4v(hash){if(flowplayer.support.browser&&flowplayer.support.browser.mozilla&&navigator.appVersion.indexOf("Win")!=-1){jQuery("#wpfp_"+hash).attr("data-engine","flash")}}if(typeof fv_flowplayer_browser_ff_m4v_array!="undefined"){for(var i in fv_flowplayer_browser_ff_m4v_array){if(!fv_flowplayer_browser_ff_m4v_array.hasOwnProperty(i))continue;fv_flowplayer_browser_ff_m4v(i)}}function fv_flowplayer_browser_chrome_fail(hash,sAttributes,sVideo,bAutobuffer){jQuery("#wpfp_"+hash).bind("error",function(e,api,error){if(/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&error!=null&&(error.code==3||error.code==4||error.code==5)){api.unload();jQuery("#wpfp_"+hash).attr("id","bad_wpfp_"+hash);jQuery("#bad_wpfp_"+hash).after('<div id="wpfp_'+hash+'" '+sAttributes+' data-engine="flash"></div>');jQuery("#wpfp_"+hash).flowplayer({playlist:[[{mp4:sVideo}]]});if(bAutobuffer){jQuery("#wpfp_"+hash).bind("ready",function(e,api){api.play()})}else{jQuery("#wpfp_"+hash).flowplayer().play(0)}jQuery("#bad_wpfp_"+hash).remove()}})}if(typeof fv_flowplayer_browser_chrome_fail_array!="undefined"){for(var i in fv_flowplayer_browser_chrome_fail_array){if(!fv_flowplayer_browser_chrome_fail_array.hasOwnProperty(i))continue;fv_flowplayer_browser_chrome_fail(i,fv_flowplayer_browser_chrome_fail_array[i]["attrs"],fv_flowplayer_browser_chrome_fail_array[i]["mp4"],fv_flowplayer_browser_chrome_fail_array[i]["auto_buffer"])}}function fv_flowplayer_browser_ie(hash){if(flowplayer.support.browser&&flowplayer.support.browser.msie&&parseInt(flowplayer.support.browser.version,10)>=9||!!navigator.userAgent.match(/Trident.*rv[ :]*11\./)){jQuery("#wpfp_"+hash).attr("data-engine","flash")}}if(typeof fv_flowplayer_browser_ie_array!="undefined"){for(var i in fv_flowplayer_browser_ie_array){if(!fv_flowplayer_browser_ie_array.hasOwnProperty(i))continue;fv_flowplayer_browser_ie(i)}}function fv_flowplayer_browser_chrome_mp4(hash){var match=window.navigator.appVersion.match(/Chrome\/(\d+)\./);if(match!=null){var chrome_ver=parseInt(match[1],10);if(/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&chrome_ver<28&&navigator.appVersion.indexOf("Win")!=-1||/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&chrome_ver<27&&navigator.appVersion.indexOf("Linux")!=-1&&navigator.userAgent.toLowerCase().indexOf("android")==-1){jQuery("#wpfp_"+hash).attr("data-engine","flash")}}}if(navigator.platform.indexOf("iPhone")!=-1||navigator.platform.indexOf("iPod")!=-1||navigator.platform.indexOf("iPad")!=-1||navigator.userAgent.toLowerCase().indexOf("android")!=-1){flowplayer(function(api,root){api.bind("error",function(e,api,error){if(error.code==10){jQuery(e.target).find(".fp-message").html(fv_flowplayer_translations.unsupported_format)}})})}jQuery(document).ready(function(){if(navigator.platform.indexOf("iPhone")!=-1||navigator.platform.indexOf("iPod")!=-1||navigator.platform.indexOf("iPad")!=-1){jQuery(window).trigger("load")}jQuery(".flowplayer").mouseleave(function(){jQuery(this).find(".fvp-share-bar").removeClass("visible");jQuery(this).find(".embed-code").hide()})});if(!Date.now){Date.now=function(){return(new Date).getTime()}}(function($){var sendPositionsEvery=60,ajaxCall=null,maxCookieSize=2500,localStorageEnabled=null,cookieKeyName="video_positions",tempPositionCookieKeyName="video_positions_tmp",tempSawCookieKeyName="video_saw_tmp",playPositions=[],sawVideo=[],getSerialized=function(data){var serialized=JSON.stringify(data),dataSize=getTextByteSize(serialized);if(dataSize>maxCookieSize){while(dataSize>maxCookieSize){for(var i in data){if(!data.hasOwnProperty(i))continue;delete data[i];serialized=JSON.stringify(data);dataSize=getTextByteSize(serialized);break}}}return serialized},getVideoId=function(video){if(video.id){return video.id}var out=typeof video.sources_original!="undefined"&&typeof video.sources_original[0]!="undefined"?video.sources_original[0].src:video.sources[0].src;if(typeof video.sources_original=="undefined"||typeof video.sources_original[0]=="undefined"){out=removeAWSSignatures(out)}return out},getTextByteSize=function(txt){return encodeURIComponent(txt).length},getCookieKey=function(key){return localStorageEnabled?localStorage.getItem(key):Cookies.get(key)},setCookieKey=function(key,value){return localStorageEnabled?localStorage.setItem(key,value):Cookies.set(key,value)},removeCookieKey=function(key){if(localStorageEnabled){localStorage.removeItem(key)}{Cookies.remove(key)}},removeVideoPosition=function(e,api){if(api.video.sources){var video_id=getVideoId(api.video);playPositions[video_id]=0;sawVideo[video_id]=1}},removeAWSSignatures=function(videoURL){return videoURL.replace(/(X-Amz-Algorithm=[^&]+&?)/gm,"").replace(/(X-Amz-Credential=[^&]+&?)/gm,"").replace(/(X-Amz-Date=[^&]+&?)/gm,"").replace(/(X-Amz-Expires=[^&]+&?)/gm,"").replace(/(X-Amz-SignedHeaders=[^&]+&?)/gm,"").replace(/(X-Amz-Signature=[^&]+&?)/gm,"")},sendVideoPositions=function(async,callback){var beaconSupported="sendBeacon"in navigator;if(async!==true){async=false}if(!callback||typeof callback=="undefined"){callback=function(){}}postData=[];for(var video_name in playPositions){if(!playPositions.hasOwnProperty(video_name))continue;postData.push({name:video_name,position:playPositions[video_name],saw:typeof sawVideo[video_name]!="undefined"?sawVideo[video_name]:false})}if(!postData.length){removeCookieKey(tempPositionCookieKeyName);removeCookieKey(tempSawCookieKeyName);return}if(flowplayer.conf.is_logged_in=="1"){if(beaconSupported){try{var temp_position_data={},temp_saw_data={};for(var i in postData){if(!postData.hasOwnProperty(i))continue;temp_position_data[postData[i].name]=postData[i].position;temp_saw_data[postData[i].name]=postData[i].saw}setCookieKey(tempPositionCookieKeyName,getSerialized(temp_position_data));setCookieKey(tempSawCookieKeyName,getSerialized(temp_saw_data))}catch(e){return}var fd=new FormData;fd.append("action","fv_wp_flowplayer_video_position_save");fd.append("videoTimes",encodeURIComponent(JSON.stringify(postData)));navigator.sendBeacon(fv_fp_ajaxurl,fd);return false}else{return jQuery.ajax({type:"POST",async:async,url:fv_fp_ajaxurl,complete:callback,data:{action:"fv_wp_flowplayer_video_position_save",videoTimes:postData}})}}else{try{var data=getCookieKey(cookieKeyName);if(data&&typeof data!=="undefined"){data=JSON.parse(data)}else{data={}}for(var i in postData){if(!postData.hasOwnProperty(i))continue;data[postData[i].name]=postData[i].position}var serialized=JSON.stringify(data),dataSize=getTextByteSize(serialized);if(dataSize>maxCookieSize){while(dataSize>maxCookieSize){for(var i in data){if(!data.hasOwnProperty(i))continue;delete data[i];serialized=JSON.stringify(data);dataSize=getTextByteSize(serialized);break}}}setCookieKey(cookieKeyName,serialized)}catch(e){return}}return false};flowplayer(function(api,root){var $root=jQuery(root),enabled=flowplayer.conf.video_position_save_enable&&$root.data("save-position")!="false"||$root.data("save-position"),progressEventsCount=0,seekIntoPosition=function(e,api){if(api.video&&api.video.live)return;var video_id=getVideoId(api.video),position=api.video.position;if(flowplayer.conf.is_logged_in!="1"){var data=getCookieKey(cookieKeyName);if(data&&typeof data!=="undefined"){try{data=JSON.parse(data);if(data[video_id]){position=data[video_id]}}catch(e){return}}}if(!!api.get_custom_end&&api.get_custom_end()<position){position=false}if(!!api.get_custom_start&&api.get_custom_start()>0){if(position<api.get_custom_start()){position=false}}api.bind("progress",storeVideoPosition);if(position){seek(position)}},storeVideoPosition=function(e,api){if(api.live){return}if(api.video.sources){var video_id=getVideoId(api.video),position=Math.round(api.video.time);playPositions[video_id]=position;if(progressEventsCount++>=sendPositionsEvery&&flowplayer.conf.closingPage){if(ajaxCall){ajaxCall.abort()}ajaxCall=sendVideoPositions(true,function(){ajaxCall=null});progressEventsCount=0}}},forceSavePosition=function(e,api){var inPlaylist=false;for(var i in api.conf.playlist){if(!api.conf.playlist.hasOwnProperty(i))continue;inPlaylist=true;break}if(inPlaylist&&!flowplayer.conf.closingPage){progressEventsCount=sendPositionsEvery+1;storeVideoPosition(e,api);sendVideoPositions()}},seek=function(position){if(!!api.custom_seek){api.custom_seek(position);return}var seek_count=0;var do_seek=setInterval(function(){if(++seek_count>20)clearInterval(do_seek);if(api.loading)return;api.seek(parseInt(position));clearInterval(do_seek)},10)},processTempData=function(temp_data_name,video_id){var data=getCookieKey(temp_data_name),output=false;if(data&&typeof data!=="undefined"){try{data=JSON.parse(data);if(typeof data[video_id]!="undefined"){output=data[video_id];delete data[video_id];var stillHasData=false;for(var i in data){if(!data.hasOwnProperty(i))continue;stillHasData=true;break}if(stillHasData){setCookieKey(temp_data_name,JSON.stringify(data))}else{removeCookieKey(temp_data_name)}}return output}catch(e){}}};if(!enabled)return;api.bind("finish",removeVideoPosition);if(flowplayer.support.fvmobile){api.one("progress",seekIntoPosition)}else{api.bind("ready",seekIntoPosition)}api.playlist_thumbnail_progress=function(el,video,position){if(!!api.get_custom_start&&api.get_custom_start(video)>0){position-=api.get_custom_start(video);if(position<0)position=0}var duration=video.duration;if(!!api.get_custom_duration&&api.get_custom_duration()>0){duration=api.get_custom_duration()}if(!duration){duration=el.data("duration")}if(!duration)return;var progress=100*position/duration;el.css("width",progress+"%")};if(flowplayer.conf.is_logged_in=="1"){var playlist=api.conf.playlist.length>0?api.conf.playlist:[api.conf.clip],playlist_external=jQuery("[rel="+jQuery(root).attr("id")+"]");for(var i in playlist){if(!playlist.hasOwnProperty(i))continue;var video_id=getVideoId(playlist[i]),position=processTempData(tempPositionCookieKeyName,video_id),saw=processTempData(tempSawCookieKeyName,video_id);if(position){if(api.conf.playlist.length){api.conf.playlist[i].sources[0].position=position;var playlist_progress=jQuery("a",playlist_external).eq(i).find(".fvp-progress");if(playlist_progress.length){api.playlist_thumbnail_progress(playlist_progress,api.conf.playlist[i],position)}}else{api.conf.clip.sources[0].position=position}}if(saw){if(api.conf.playlist.length){api.conf.playlist[i].sources[0].saw=true}else{api.conf.clip.sources[0].saw=true}}}}api.bind("finish",function(e,api){if(api.conf.playlist.length){api.conf.playlist[api.video.index].sources[0].saw=true}else{api.conf.clip.sources[0].saw=true}})});jQuery(window).on("beforeunload pagehide",function(){if(!flowplayer.conf.closingPage){flowplayer.conf.closingPage=true;sendVideoPositions()}});if(localStorageEnabled!==null){return localStorageEnabled}localStorageEnabled=true;try{localStorage.setItem("t","t");if(localStorage.getItem("t")!=="t"){localStorageEnabled=false}localStorage.removeItem("t")}catch(e){localStorageEnabled=false}})(jQuery);flowplayer(function(api,root){root=jQuery(root);if(api.conf.playlist.length==0)return;var real_videos=0;jQuery(api.conf.playlist).each(function(k,v){if(typeof v.click=="undefined"){real_videos++}});if(real_videos<2)return;var playlist=jQuery(".fp-playlist-external[rel="+root.attr("id")+"]");var playlist_button=jQuery('<strong class="fv-fp-list">Item 1.</strong>'),playlist_menu=jQuery('<div class="fp-menu fv-fp-list-menu"></div>').insertAfter(root.find(".fp-controls"));var i=0,item_index=[];jQuery(api.conf.playlist).each(function(k,v){if(typeof v.click=="undefined"){playlist_menu.append('<a data-index="'+k+'">'+(i+1)+". "+parse_title(playlist.find("h4").eq(i))+"</a>");item_index.push(k);i++}});playlist_button.insertAfter(root.find(".fp-controls .fp-volume")).click(function(e){e.preventDefault();e.stopPropagation();if(playlist_menu.hasClass("fp-active")){api.hideMenu(playlist_menu[0])}else{root.click();api.showMenu(playlist_menu[0])}});jQuery("a",playlist_menu).click(function(){if(typeof api.conf.playlist[jQuery(this).data("index")-1]!="undefined"&&typeof api.conf.playlist[jQuery(this).data("index")-1].click!="undefined"){api.play(jQuery(this).data("index")-1)}else{api.play(jQuery(this).data("index"))}});api.on("ready",function(e,api,video){playlist_menu.find("a").removeClass("fp-selected");var thumb=playlist_menu.find("a[data-index="+video.index+"]");thumb.addClass("fp-selected");var label=fv_flowplayer_translations.playlist_item_no;label=label.replace(/%d/,item_index.indexOf(api.video.index)+1);label=label.replace(/%s/,parse_title(thumb.find("h4")));playlist_button.html(label)});function parse_title(el){var tmp=el.clone();tmp.find("i.dur").remove();return tmp.text()}});flowplayer(function(api,root){root=jQuery(root);var playlist=api.conf.playlist,videoIndex,videos_attempted=[];api.bind("load",function(e,api,video){videoIndex=video.index;attempted_load(video.index)});api.bind("error",function(e,api,error){setTimeout(function(){if(playlist.length>0&&api.error==true){if(api.conf.video_checker=="1"&&playlist[videoIndex].video_checker&&playlist[videoIndex].video_checker.length>0){return false}var try_video=videoIndex+1;if(videoIndex>=playlist.length-1){try_video=playlist.length-2}api.error=api.loading=false;root.removeClass("is-error");root.find(".fp-message.fp-shown").remove();while(attempted_load(try_video)){try_video++}api.play(try_video)}},1e3)});function attempted_load(index){if(!videos_attempted.includes(index)){videos_attempted.push(index);return false}return true}});flowplayer(function(api,root){root=jQuery(root);var original_prev,original_next,random_seed;if(!root.data("button-no-picture")&&!root.data("button-repeat")&&!root.data("button-rewind"))return;api.bind("ready",function(e,api){if(typeof original_next=="undefined"&&typeof original_prev=="undefined"){original_next=api.next;original_prev=api.prev}if(!api.video.type.match(/^audio/)&&root.data("button-no-picture")&&root.find(".fv-fp-no-picture").length==0){var button_no_picture=jQuery('<span class="fv-fp-no-picture"><svg viewBox="0 0 90 80" width="20px" height="20px" class="fvp-icon fvp-nopicture"><use xlink:href="#fvp-nopicture"></use></svg></span>');button_no_picture.insertAfter(root.find(".fp-controls .fp-volume")).click(function(e){e.preventDefault();e.stopPropagation();jQuery(".fp-engine",root).slideToggle(20);jQuery(this).toggleClass("is-active fp-color-fill")})}if(root.data("button-repeat")){if(api.conf.playlist.length>0&&root.find(".fv-fp-playlist").length==0){var t=fv_flowplayer_translations,playlist_button=jQuery('<strong class="fv-fp-playlist mode-normal"> <svg viewBox="0 0 80.333 80" width="20px" height="20px" class="fvp-icon fvp-replay-list"><title>'+t.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg> <svg viewBox="0 0 80.333 71" width="20px" height="20px" class="fvp-icon fvp-shuffle"><title>'+t.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg> <svg viewBox="0 0 80.333 71" width="20px" height="20px" class="fvp-icon fvp-replay-track"><title>'+t.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg> <span id="fvp-playlist-play" title="'+t.playlist_play_all+'">'+t.playlist_play_all_button+"</span> </strong>"),playlist_menu=jQuery('<div class="fp-menu fv-fp-playlist-menu"> <a data-action="repeat_playlist"><svg viewBox="0 0 80.333 80" width="20px" height="20px" class="fvp-icon fvp-replay-list"><title>'+t.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg> <span class="screen-reader-text">'+t.playlist_replay_all+'</span></a> <a data-action="shuffle_playlist"><svg viewBox="0 0 80.333 71" width="20px" height="20px" class="fvp-icon fvp-shuffle"><title>'+t.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg> <span class="screen-reader-text">'+t.playlist_shuffle+'</span></a> <a data-action="repeat_track"><svg viewBox="0 0 80.333 71" width="20px" height="20px" class="fvp-icon fvp-replay-track"><title>'+t.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg> <span class="screen-reader-text">'+t.playlist_replay_video+'</span></a> <a class="fp-selected" data-action="normal"><span id="fvp-playlist-play" title="'+t.playlist_play_all+'">'+t.playlist_play_all_button+"</span></a> </div>").insertAfter(root.find(".fp-controls"));api.conf.playlist_shuffle=api.conf.track_repeat=false;random_seed=randomize();var should_advance=api.conf.advance;playlist_button.insertAfter(root.find(".fp-controls .fp-volume")).click(function(e){e.preventDefault();e.stopPropagation();if(playlist_menu.css("right")!=="auto"){playlist_menu.css({right:"auto",left:playlist_button.position().left+"px"})}if(playlist_menu.hasClass("fp-active")){api.hideMenu(playlist_menu[0])}else{root.click();api.showMenu(playlist_menu[0])}});jQuery("a",playlist_menu).click(function(){jQuery(this).siblings("a").removeClass("fp-selected");jQuery(this).addClass("fp-selected");playlist_button.removeClass("mode-normal mode-repeat-track mode-repeat-playlist mode-shuffle-playlist");var action=jQuery(this).data("action");if(action=="repeat_playlist"){playlist_button.addClass("mode-repeat-playlist");api.conf.loop=true;api.conf.advance=true;api.video.loop=api.conf.track_repeat=false;api.conf.playlist_shuffle=false}else if(action=="shuffle_playlist"){playlist_button.addClass("mode-shuffle-playlist");api.conf.loop=true;api.conf.advance=true;api.conf.playlist_shuffle=true}else if(action=="repeat_track"){playlist_button.addClass("mode-repeat-track");api.conf.track_repeat=api.video.loop=true;api.conf.loop=api.conf.playlist_shuffle=false}else if(action=="normal"){playlist_button.addClass("mode-normal");api.conf.track_repeat=api.video.loop=false;api.conf.loop=api.conf.playlist_shuffle=false}if(api.conf.playlist_shuffle){api.next=function(){api.play(random_seed.pop());if(random_seed.length==0)random_seed=randomize()};api.prev=function(){api.play(random_seed.shift());if(random_seed.length==0)random_seed=randomize()}}else{api.next=original_next;api.prev=original_prev}});if(api.conf.loop){jQuery("a[data-action=repeat_playlist]",playlist_menu).click()}api.on("progress",function(){api.video.loop=api.conf.track_repeat});api.on("finish.pl",function(e,api){console.log("playlist_repeat",api.conf.loop,"advance",api.conf.advance,"video.loop",api.video.loop);if(api.conf.playlist_shuffle){api.play(random_seed.pop());if(random_seed.length==0)random_seed=randomize()}})}else if(root.find(".fv-fp-track-repeat").length==0&&api.conf.playlist.length==0){var button_track_repeat=jQuery('<strong class="fv-fp-track-repeat"><svg viewBox="0 0 80.333 71" width="20px" height="20px" class="fvp-icon fvp-replay-track"><use xlink:href="#fvp-replay-track"></use></svg></strong>');button_track_repeat.insertAfter(root.find(".fp-controls .fp-volume")).click(function(e){e.preventDefault();e.stopPropagation();jQuery(this).toggleClass("is-active fp-color-fill",api.video.loop);if(api.video.loop){api.video.loop=false}else{api.video.loop=true}});if(api.conf.loop){button_track_repeat.addClass("is-active fp-color-fill")}}}if(root.data("button-rewind")&&root.find(".fv-fp-rewind").length==0){var button_rewind=jQuery('<span class="fv-fp-rewind"><svg viewBox="0 0 24 24" width="24px" height="24px" class="fvp-icon fvp-rewind"><use xlink:href="#fvp-rewind"></use></svg></span>');button_rewind.insertBefore(root.find(".fp-controls .fp-elapsed")).click(function(e){e.preventDefault();e.stopPropagation();api.seek(api.video.time-10)});button_rewind.toggle(!api.video.live)}}).bind("unload",function(){root.find(".fv-fp-no-picture").remove();root.find(".fv-fp-playlist").remove();root.find(".fv-fp-track-repeat").remove()});function array_shuffle(a){var j,x,i;for(i=a.length;i;i--){j=Math.floor(Math.random()*i);x=a[i-1];a[i-1]=a[j];a[j]=x}return a}function randomize(random_seed){random_seed=[];jQuery(api.conf.playlist).each(function(k,v){random_seed.push(k)});random_seed=array_shuffle(random_seed);console.log("FV Player Randomizer random seed:",random_seed);return random_seed}});flowplayer(function(api,root){var $root=jQuery(root),start_index=$root.data("playlist_start");if(typeof start_index=="undefined")return;function start_position_changer(){if($root.data("position_changed")!==1&&api.conf.playlist.length){start_index--;api.play(start_index);$root.data("position_changed",1)}}api.bind("unload",function(){start_index=$root.data("playlist_start");$root.removeData("position_changed");api.one("ready",start_position_changer);api.video.index=0});api.one("ready",start_position_changer);jQuery(".fp-ui",root).on("click",function(){start_position_changer();$root.data("position_changed",1)})});flowplayer(function(api,root){api.bind("finish",function(){var finished_at=api.video.time;if(api.video.loop){api.one("pause",function(){if(finished_at<=api.video.time){api.resume()}})}})});function fv_flowplayer_amazon_s3(hash,time){jQuery("#wpfp_"+hash).bind("error",function(e,api,error){var fv_fp_date=new Date;if(error.code==4&&fv_fp_date.getTime()>fv_fp_utime+parseInt(time)){jQuery(e.target).find(".fp-message").delay(500).queue(function(n){jQuery(this).html(fv_flowplayer_translations.video_expired);n()})}})}flowplayer(function(api,root){root=jQuery(root);root.find(".fp-logo").removeAttr("href");if(root.hasClass("no-controlbar")){var timelineApi=api.sliders.timeline;timelineApi.disable(true);api.bind("ready",function(){timelineApi.disable(true)})}jQuery(".fvfp_admin_error",root).remove();root.find(".fp-logo, .fp-header").click(function(e){if(e.target!==this)return;root.find(".fp-ui").click()});jQuery(".fvp-share-bar .sharing-facebook",root).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Facebook</title><path d="M11.9 5.2l-2.6 0 0-1.6c0-0.7 0.3-0.7 0.7-0.7 0.3 0 1.6 0 1.6 0l0-2.9 -2.3 0c-2.6 0-3.3 2-3.3 3.3l0 2 -1.6 0 0 2.9 1.6 0c0 3.6 0 7.8 0 7.8l3.3 0c0 0 0-4.2 0-7.8l2.3 0 0.3-2.9Z"/></svg>');jQuery(".fvp-share-bar .sharing-twitter",root).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Twitter</title><path d="M16 3.1c-0.6 0.3-1.2 0.4-1.9 0.5 0.7-0.4 1.2-1 1.4-1.8 -0.6 0.4-1.3 0.6-2.1 0.8 -0.6-0.6-1.4-1-2.4-1 -2 0.1-3.2 1.6-3.2 4 -2.7-0.1-5.1-1.4-6.7-3.4 -0.9 1.4 0.2 3.8 1 4.4 -0.5 0-1-0.1-1.5-0.4l0 0.1c0 1.6 1.1 2.9 2.6 3.2 -0.7 0.2-1.3 0.1-1.5 0.1 0.4 1.3 1.6 2.2 3 2.3 -1.6 1.7-4.6 1.4-4.8 1.3 1.4 0.9 3.2 1.4 5 1.4 6 0 9.3-5 9.3-9.3 0-0.1 0-0.3 0-0.4 0.6-0.4 1.2-1 1.6-1.7Z"/></svg>');jQuery(".fvp-share-bar .sharing-email",root).append('<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16" width="16" fill="#fff"><title>Email</title><path d="M8 10c0 0 0 0-1 0L0 6v7c0 1 0 1 1 1h14c1 0 1 0 1-1V6L9 10C9 10 8 10 8 10zM15 2H1C0 2 0 2 0 3v1l8 4 8-4V3C16 2 16 2 15 2z"/></svg>');jQuery(".fp-header",root).prepend(jQuery(".fvp-share-bar",root));if(api.conf.playlist.length){var show=true;var playlist=api.conf.playlist;if(playlist.length==2){if(typeof playlist[0].click!="undefined"&&typeof playlist[1].click=="undefined"){show=false}if(typeof playlist[0].click=="undefined"&&typeof playlist[1].click!="undefined"){show=false}}else if(playlist.length==3){if(typeof playlist[0].click!="undefined"&&typeof playlist[1].click=="undefined"&&typeof playlist[2].click!="undefined"){show=false}}if(show){var prev=jQuery('<a class="fp-icon fv-fp-prevbtn"></a>');var next=jQuery('<a class="fp-icon fv-fp-nextbtn"></a>');root.find(".fp-controls .fp-playbtn").before(prev).after(next);prev.click(function(){api.trigger("prev",[api]);api.prev()});next.click(function(){api.trigger("next",[api]);api.next()})}}api.bind("pause resume finish unload ready",function(e,api){root.addClass("no-brand")});api.one("ready",function(){root.find(".fp-fullscreen").clone().appendTo(root.find(".fp-controls"))});api.bind("ready",function(e,api,video){setTimeout(function(){jQuery(".fvp-share-bar",root).show();jQuery(".fv-player-buttons-wrap",root).appendTo(jQuery(".fv-player-buttons-wrap",root).parent().find(".fp-ui"))},100)});api.bind("finish",function(){var url=root.data("fv_redirect");if(url&&(typeof api.video.is_last=="undefined"||api.video.is_last)){location.href=url}});if(flowplayer.support.iOS&&flowplayer.support.iOS.version==11){api.bind("error",function(e,api,error){if(error.code==4)root.find(".fp-engine").hide()})}jQuery(document).on("contextmenu",".flowplayer",function(e){e.preventDefault()});api.one("ready",function(e,api,video){root.find(".fp-chromecast").insertAfter(root.find(".fp-header .fp-fullscreen"))});root.find(".fp-waiting").html('<div class="fp-preload"><b></b><b></b><b></b><b></b></div>');var id=root.attr("id"),alternative=!flowplayer.conf.native_fullscreen&&flowplayer.conf.mobile_alternative_fullscreen,events_enter="fakefullscreen",events_exit="fakefullscreen-exit";if(!flowplayer.support.fullscreen){events_enter+=" fullscreen";events_exit+=" fullscreen-exit"}api.bind(events_enter,function(e,api){jQuery("#wpadminbar, .nc_wrapper").hide();if(alternative||e.type=="fakefullscreen"){if(api.video.type=="video/youtube")return;root.before('<span data-fv-placeholder="'+id+'"></span>');root.appendTo("body")}});api.bind(events_exit,function(e,api,video){jQuery("#wpadminbar, .nc_wrapper").show();if(alternative||e.type=="fakefullscreen-exit"){jQuery("span[data-fv-placeholder="+id+"]").replaceWith(root)}})});(function(){var extension=function(flowplayer){flowplayer(function(api,root){if(!jQuery(root).data("speedb"))return;var support=flowplayer.support;if(!support.video||!support.inlineVideo)return;var common=flowplayer.common,bean=flowplayer.bean,ui=common.find(".fp-ui",root)[0],controlbar=common.find(".fp-controls",ui)[0],speeds=api.conf.speeds;bean.on(root,"click",".fp-speed",function(){var menu=common.find(".fp-speed-menu",root)[0];if(common.hasClass(menu,"fp-active"))api.hideMenu();else api.showMenu(menu)});bean.on(root,"click",".fp-speed-menu a",function(ev){var s=ev.target.getAttribute("data-speed");api.speed(s)});api.on("speed",function(ev,_a,rate){if(speeds.length>1){selectSpeed(rate)}}).on("ready",function(ev,api){removeMenu();if(flowplayer.support.android&&api.engine.engineName=="html5"&&api.video.type=="application/x-mpegurl")return;speeds=api.conf.speeds;if(speeds.length>1){createMenu()}});function removeMenu(){common.find(".fp-speed-menu",root).forEach(common.removeNode);common.find(".fp-speed",root).forEach(common.removeNode)}function round(val){return Math.round(val*100)/100}function createMenu(){controlbar.appendChild(common.createElement("strong",{className:"fp-speed"},api.currentSpeed+"x"));var menu=common.createElement("div",{className:"fp-menu fp-speed-menu",css:{width:"auto"}},"<strong>Speed</strong>");speeds.forEach(function(s){var a=common.createElement("a",{"data-speed":round(s)},round(s)+"x");menu.appendChild(a)});ui.appendChild(menu);selectSpeed(api.currentSpeed);jQuery(root).find(".fp-speed-menu strong").text(fv_flowplayer_translations.speed)}function selectSpeed(rate){common.find(".fp-speed",root)[0].innerHTML=rate+"x";common.find(".fp-speed-menu a",root).forEach(function(el){common.toggleClass(el,"fp-selected",el.getAttribute("data-speed")==rate);common.toggleClass(el,"fp-color",el.getAttribute("data-speed")==rate)})}})};if(typeof module==="object"&&module.exports)module.exports=extension;else if(typeof window.flowplayer==="function")extension(window.flowplayer)})();flowplayer(function(api,root){api.on("speed",function(ev,_a,rate){try{window.localStorage.fv_player_speed=rate}catch(e){}});api.on("ready",function(){if(window.localStorage.fv_player_speed&&jQuery(root).find("strong.fp-speed").is(":visible")){api.speed(parseFloat(window.localStorage.fv_player_speed))}if(jQuery(root).data("volume")==0){api.mute(true,true)}})});flowplayer(function(api,root){root=jQuery(root);if(!api.conf.fv_stats||!api.conf.fv_stats.enabled&&(!root.data("fv_stats")||root.data("fv_stats")=="no"))return;api.on("ready",function(e,api){api.one("progress",function(e,api){if(api.video.id){jQuery.post(api.conf.fv_stats.url,{blog_id:api.conf.fv_stats.blog_id,tag:"play",video_id:api.video.id})}})})});flowplayer(function(api,root){var $root=jQuery(root);var $playerDiv=$root.find(".fp-player");var sticky=$root.data("fvsticky");var globalSticky=false;var videoRatio=$root.data("ratio");if(typeof videoRatio=="undefined"){videoRatio=.5625}if(flowplayer.conf.sticky_video==1&&typeof sticky=="undefined"){globalSticky=true}if(globalSticky||sticky){if(flowplayer.support.firstframe){var stickyPlace=flowplayer.conf.sticky_place;var stickyWidth=flowplayer.conf.sticky_width;if(stickyWidth==""){stickyWidth=380}var stickyHeight=stickyWidth*videoRatio;fv_player_sticky_video()}else{return}}function fv_player_sticky_video(){var change=false;var $window=jQuery(window),$flowplayerDiv=$root,top=$flowplayerDiv.offset().top,offset=Math.floor(top+$flowplayerDiv.outerHeight()/2);api.on("ready",function(){change=true});api.on("progress",function(){change=true});api.on("unload",function(){change=false;fv_player_sticky_class_remove();$root.removeClass("is-unSticky")});$window.on("resize",function(){top=$flowplayerDiv.offset().top;offset=Math.floor(top+$flowplayerDiv.outerHeight()/2)}).on("scroll",function(){top=$flowplayerDiv.offset().top;offset=Math.floor(top+$flowplayerDiv.outerHeight()/2);if($window.scrollTop()>offset&&change){if(jQuery("div.flowplayer.is-unSticky").length>0){console.log("unSticky",jQuery("div.flowplayer.is-unSticky").length);return false}else{fv_player_sticky_class_add()}}else{fv_player_sticky_class_remove();change=false}})}function fv_player_sticky_class_add(){if($playerDiv.hasClass("is-sticky-"+stickyPlace)){return}else{$playerDiv.addClass("is-sticky-"+stickyPlace);if($root.find("a.fp-sticky").length==0){$root.find("div.fp-header").prepend('<a class="fp-sticky fp-icon"></a>')}$playerDiv.css("width",stickyWidth);$playerDiv.css("height",stickyHeight);$playerDiv.css("max-height",stickyHeight)}$playerDiv.parent(".flowplayer").addClass("is-stickable")}function fv_player_sticky_class_remove(){$playerDiv.removeClass("is-sticky-"+stickyPlace);$playerDiv.css("width","");$playerDiv.css("height","");$playerDiv.css("max-height","");$playerDiv.parent(".flowplayer").removeClass("is-stickable")}});jQuery(function($){$(document).on("click","a.fp-sticky",function(){$("div.flowplayer.is-stickable").addClass("is-unSticky");var $playerDiv=$("div.flowplayer.is-stickable").find(".fp-player");$playerDiv.removeClass("is-sticky-right-bottom");$playerDiv.removeClass("is-sticky-left-bottom");$playerDiv.removeClass("is-sticky-right-top");$playerDiv.removeClass("is-sticky-left-top");$playerDiv.css("width","");$playerDiv.css("height","");$playerDiv.css("max-height","")});$(document).on("click","div.flowplayer.is-unSticky",function(){$("div.flowplayer").removeClass("is-unSticky")})});flowplayer(function(api,root){root=jQuery(root);api.on("ready",function(e,api,video){if(window.localStorage.fv_player_subtitle&&root.find("strong.fp-cc").is(":visible")){if(api.video.subtitles.length){api.video.subtitles.forEach(function(item,index){if(item.srclang===window.localStorage.fv_player_subtitle){api.loadSubtitles(index)}})}}root.find(".fp-subtitle-menu").click(function(e){if(typeof e.target.getAttribute("data-subtitle-index")=="string"&&e.target.getAttribute("data-subtitle-index").length){try{window.localStorage.fv_player_subtitle=api.video.subtitles[e.target.getAttribute("data-subtitle-index")].srclang}catch(e){}}})})});flowplayer(function(api,root){root=jQuery(root);var currentPoint,check=false;api.bind("cuepoint",function(e,api,cue){check=false;if(cue.subtitle){currentPoint=cue.index}});api.on("ready",function(e,api){root.find(".fp-subtitle-menu strong").text(fv_flowplayer_translations.closed_captions);root.find('.fp-subtitle-menu a[data-subtitle-index="-1"]').text(fv_flowplayer_translations.no_subtitles)});root.on("click",".fp-subtitle-menu a[data-subtitle-index]",function(e){if(jQuery(this).data("subtitle-index")>-1){check=true;api.on("progress",time_check)}});function time_check(e,api,time){if(check){(api.cuepoints||[]).forEach(function(cue,index){var entry=cue.subtitle;if(entry&&currentPoint!=index){if(time>=cue.time&&(!entry.endTime||time<=entry.endTime)){api.trigger("cuepoint",[api,cue])}}})}}});if(typeof flowplayer!=="undefined"&&typeof fv_flowplayer_conf!="undefined"&&fv_flowplayer_conf.video_hash_links){flowplayer(function(api,root){if(jQuery(root).find(".sharing-link").length>0){api.on("progress",function(e,api){if(!api.video.sources||!api.video.sources[0]){return}var hash=fv_player_get_video_link_hash(api);var sTime=","+fv_player_time_hms(api.video.time);jQuery(".fvp-sharing>li>a",root).each(function(){jQuery(this).attr("href",jQuery(this).attr("href").replace(/%23.*/,"")+"%23"+hash)});jQuery(".sharing-link",root).attr("href",jQuery(".sharing-link",root).attr("href").replace(/#.*/,"")+"#"+hash+sTime)});jQuery(".sharing-link",root).click(function(e){fv_player_clipboard(jQuery(this).attr("href"),function(){e.preventDefault();fv_player_notice(root,fv_flowplayer_translations.link_copied,2e3)})})}});jQuery(document).on("click",'a[href*="fvp_"]',function(){var link=jQuery(this);setTimeout(function(){if(link.parents(".fvp-share-bar").length==0)fv_autoplay_exec()})})}flowplayer(function(api,root){root=jQuery(root);var bean=flowplayer.bean;var restore=-1;root.on("click",".fp-volumebtn",function(e){if(api.volumeLevel==0&&restore!=-1){api.volume(restore);return false}});root.on("mousedown touchstart mouseup touchend",".fp-volumebar",function(e){if(api.volumeLevel!=0){restore=api.volumeLevel}});root.on("mousedown touchstart",".fp-volumebtn",function(e){if(api.volumeLevel>0){restore=-1}});api.on("volume",function(e,api){if(root.hasClass("is-mouseover")&&!api.muted){if(api.volumeLevel==0){bean.off(flowplayer.support.touch?root:document,"mousemove.sld touchmove.sld");api.mute(true)}}})});if(typeof flowplayer!="undefined"){flowplayer(function(api,root){root=jQuery(root);if(navigator.userAgent.match(/iPhone.* OS [0-6]_/i)){api.one("progress",function(e){if(typeof api.video.subtitles!=="undefined"&&api.video.subtitles.length){fv_player_warning(root,fv_flowplayer_translations.warning_iphone_subs)}})}if(flowplayer.support.android&&flowplayer.support.android.version<5&&(flowplayer.support.android.samsung||flowplayer.support.browser.safari)){fv_player_warning(root,fv_flowplayer_translations.warning_unstable_android,"firefox")}if(/Android 4/.test(navigator.userAgent)&&!/Firefox/.test(navigator.userAgent)){api.on("ready",function(e,api,video){setTimeout(function(){if(video.src&&video.src.match(/fpdl.vimeocdn.com/)&&(video.time==0||video.time==1)){fv_player_warning(root,fv_flowplayer_translations.warning_unstable_android,"firefox");api.on("progress",function(e,api){root.prev().find(".fv-player-warning-firefox").remove()})}},1500)});api.on("error",function(e,api,error){if(error.MEDIA_ERR_NETWORK==2&&error.video.src.match(/fpdl.vimeocdn.com/)){fv_player_warning(root,fv_flowplayer_translations.warning_unstable_android,"firefox")}})}if(/Safari/.test(navigator.userAgent)&&/Version\/5/.test(navigator.userAgent)){api.on("error",function(e,api,error){if(error.video.src.match(/fpdl.vimeocdn.com/)){fv_player_warning(root,fv_flowplayer_translations.warning_old_safari)}})}var sup=flowplayer.support;if(sup.android&&(sup.android.samsung&&parseInt(sup.browser.version)<66||sup.browser.safari)){api.on("error",function(e,api,error){fv_player_warning(root,fv_flowplayer_translations.warning_samsungbrowser,"warning_samsungbrowser")})}});function fv_player_warning(root,warning,classname){var wrapper=jQuery(root).prev(".fv-player-warning-wrapper");if(wrapper.length==0){jQuery(root).before('<div class="fv-player-warning-wrapper">');wrapper=jQuery(root).prev(".fv-player-warning-wrapper")}if(wrapper.find(".fv-player-warning-"+classname).length==0){var latest=jQuery("<p style='display: none' "+(classname?" class='fv-player-warning-"+classname+"'":"")+">"+warning+"</p>");wrapper.append(latest);latest.slideDown()}}}
 
flowplayer/fv-player-loader.babel.js CHANGED
@@ -28,23 +28,12 @@
28
  if (admin_js_warning) {
29
  admin_js_warning.parentNode.removeChild(admin_js_warning);
30
  }
31
- /* replace preload icon with play icon */
32
-
33
 
 
34
  var preload = player.querySelector('.fp-preload');
35
- /* occurs for the audio player */
36
-
37
- if (!preload) return;
38
- var parent = preload.parentNode,
39
- play_icon = document.createElement('div');
40
- play_icon.className = 'fp-play fp-visible';
41
- play_icon.innerHTML = '<a class="fp-icon fp-playbtn"></a>\
42
- <svg class="fp-play-rounded-fill" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.a{fill:#000;opacity:0.65;}.b{fill:#fff;opacity:1.0;}</style></defs><title>play-rounded-fill</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="b" d="M35.942,35.2323c0-4.7289,3.3506-6.6637,7.446-4.2971L68.83,45.6235c4.0956,2.364,4.0956,6.2319,0,8.5977L43.388,68.91c-4.0954,2.364-7.446.43-7.446-4.2979Z" filter="url(#f1)"/></svg>\
43
- <svg class="fp-play-rounded-outline" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-rounded-outline</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M41.0359,71.19a5.0492,5.0492,0,0,1-2.5575-.6673c-1.8031-1.041-2.7958-3.1248-2.7958-5.8664V35.1887c0-2.7429.9933-4.8272,2.797-5.8676,1.8025-1.0422,4.1034-.86,6.48.5143L70.4782,44.5672c2.3751,1.3711,3.6826,3.2725,3.6832,5.3545s-1.3076,3.9845-3.6832,5.3562L44.9592,70.0114A7.9384,7.9384,0,0,1,41.0359,71.19Zm.0065-40.123a2.6794,2.6794,0,0,0-1.3582.3413c-1.0263.5926-1.5912,1.9349-1.5912,3.78V64.6563c0,1.8449.5649,3.1866,1.5906,3.7791,1.0281.5932,2.4733.4108,4.07-.512L69.273,53.1906c1.5983-.9227,2.478-2.0838,2.478-3.2689s-.88-2.3445-2.478-3.2666L43.754,31.9227A5.5685,5.5685,0,0,0,41.0423,31.0671Z" filter="url(#f1)"/></svg>\
44
- <svg class="fp-play-sharp-fill" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-sharp-fill</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><polygon class="controlbutton" points="73.601 50 37.968 70.573 37.968 29.427 73.601 50" filter="url(#f1)"/></svg>\
45
- <svg class="fp-play-sharp-outline" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.controlbuttonbg{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-sharp-outline</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M36.9443,72.2473V27.2916L75.8776,49.77Zm2.2-41.1455V68.4371L71.4776,49.77Z" filter="url(#f1)"/></svg>'.replace(/url\(#/g, 'url(' + window.location.href.replace(window.location.hash, "").replace(/\#$/g, '') + '#');
46
- preload.style.display = 'none';
47
- parent.appendChild(play_icon);
48
  });
49
  })();
50
 
@@ -176,17 +165,15 @@ var FV_Player_JS_Loader = /*#__PURE__*/function () {
176
  _proto2.triggerListener = function triggerListener() {
177
  /* Show the preload indicator once again */
178
  Array.prototype.filter.call(document.getElementsByClassName('flowplayer'), function (player) {
 
 
 
 
179
  var preload = player.querySelector('.fp-preload');
180
 
181
  if (preload) {
182
  preload.style.display = 'block';
183
  }
184
-
185
- var play = player.querySelector('.fp-play');
186
-
187
- if (play) {
188
- play.style.display = 'none';
189
- }
190
  });
191
  /* Not sure when, but sometimes the flowplayer script is not ready */
192
 
@@ -292,7 +279,7 @@ var FV_Player_JS_Loader = /*#__PURE__*/function () {
292
  /* VAST should not autoplay */
293
 
294
  if (window.fv_vast_conf) {
295
- fv_vast_conf.autoplay = false;
296
  }
297
  /* TODO: Perhaps video link should not be parsed or it should be done here */
298
 
28
  if (admin_js_warning) {
29
  admin_js_warning.parentNode.removeChild(admin_js_warning);
30
  }
 
 
31
 
32
+ /* remove preload animation if it's there - not there for audio player */
33
  var preload = player.querySelector('.fp-preload');
34
+ if( preload ) {
35
+ preload.style.display = 'none';
36
+ }
 
 
 
 
 
 
 
 
 
 
37
  });
38
  })();
39
 
165
  _proto2.triggerListener = function triggerListener() {
166
  /* Show the preload indicator once again */
167
  Array.prototype.filter.call(document.getElementsByClassName('flowplayer'), function (player) {
168
+ if( player.getAttribute('data-error') ) {
169
+ return;
170
+ }
171
+
172
  var preload = player.querySelector('.fp-preload');
173
 
174
  if (preload) {
175
  preload.style.display = 'block';
176
  }
 
 
 
 
 
 
177
  });
178
  /* Not sure when, but sometimes the flowplayer script is not ready */
179
 
279
  /* VAST should not autoplay */
280
 
281
  if (window.fv_vast_conf) {
282
+ window.fv_vast_conf.autoplay = false;
283
  }
284
  /* TODO: Perhaps video link should not be parsed or it should be done here */
285
 
flowplayer/fv-player-loader.dev.js CHANGED
@@ -28,24 +28,12 @@
28
  admin_js_warning.parentNode.removeChild( admin_js_warning );
29
  }
30
 
31
- /* replace preload icon with play icon */
32
  var preload = player.querySelector('.fp-preload');
 
33
 
34
- /* occurs for the audio player */
35
- if( !preload ) return;
36
-
37
- var parent = preload.parentNode,
38
- play_icon = document.createElement('div');
39
- play_icon.className = 'fp-play fp-visible';
40
-
41
- play_icon.innerHTML = '<a class="fp-icon fp-playbtn"></a>\
42
- <svg class="fp-play-rounded-fill" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.a{fill:#000;opacity:0.65;}.b{fill:#fff;opacity:1.0;}</style></defs><title>play-rounded-fill</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="b" d="M35.942,35.2323c0-4.7289,3.3506-6.6637,7.446-4.2971L68.83,45.6235c4.0956,2.364,4.0956,6.2319,0,8.5977L43.388,68.91c-4.0954,2.364-7.446.43-7.446-4.2979Z" filter="url(#f1)"/></svg>\
43
- <svg class="fp-play-rounded-outline" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-rounded-outline</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M41.0359,71.19a5.0492,5.0492,0,0,1-2.5575-.6673c-1.8031-1.041-2.7958-3.1248-2.7958-5.8664V35.1887c0-2.7429.9933-4.8272,2.797-5.8676,1.8025-1.0422,4.1034-.86,6.48.5143L70.4782,44.5672c2.3751,1.3711,3.6826,3.2725,3.6832,5.3545s-1.3076,3.9845-3.6832,5.3562L44.9592,70.0114A7.9384,7.9384,0,0,1,41.0359,71.19Zm.0065-40.123a2.6794,2.6794,0,0,0-1.3582.3413c-1.0263.5926-1.5912,1.9349-1.5912,3.78V64.6563c0,1.8449.5649,3.1866,1.5906,3.7791,1.0281.5932,2.4733.4108,4.07-.512L69.273,53.1906c1.5983-.9227,2.478-2.0838,2.478-3.2689s-.88-2.3445-2.478-3.2666L43.754,31.9227A5.5685,5.5685,0,0,0,41.0423,31.0671Z" filter="url(#f1)"/></svg>\
44
- <svg class="fp-play-sharp-fill" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-sharp-fill</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><polygon class="controlbutton" points="73.601 50 37.968 70.573 37.968 29.427 73.601 50" filter="url(#f1)"/></svg>\
45
- <svg class="fp-play-sharp-outline" xmlns="https://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.controlbuttonbg{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-sharp-outline</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M36.9443,72.2473V27.2916L75.8776,49.77Zm2.2-41.1455V68.4371L71.4776,49.77Z" filter="url(#f1)"/></svg>'.replace(/url\(#/g, 'url(' + window.location.href.replace(window.location.hash, "").replace(/\#$/g, '') + '#');
46
-
47
- preload.style.display = 'none';
48
- parent.appendChild(play_icon);
49
  });
50
 
51
  })();
@@ -170,15 +158,14 @@ class FV_Player_JS_Loader {
170
  triggerListener() {
171
  /* Show the preload indicator once again */
172
  Array.prototype.filter.call(document.getElementsByClassName('flowplayer'), function(player){
 
 
 
 
173
  var preload = player.querySelector('.fp-preload');
174
  if( preload ) {
175
  preload.style.display = 'block';
176
  }
177
-
178
- var play = player.querySelector('.fp-play');
179
- if( play ) {
180
- play.style.display = 'none';
181
- }
182
  });
183
 
184
  /* Not sure when, but sometimes the flowplayer script is not ready */
@@ -282,7 +269,7 @@ class FV_Player_JS_Loader {
282
 
283
  /* VAST should not autoplay */
284
  if( window.fv_vast_conf ) {
285
- fv_vast_conf.autoplay = false;
286
  }
287
 
288
  /* TODO: Perhaps video link should not be parsed or it should be done here */
28
  admin_js_warning.parentNode.removeChild( admin_js_warning );
29
  }
30
 
31
+ /* remove preload animation if it's there - not there for audio player */
32
  var preload = player.querySelector('.fp-preload');
33
+ if( preload ) {
34
 
35
+ preload.style.display = 'none';
36
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  });
38
 
39
  })();
158
  triggerListener() {
159
  /* Show the preload indicator once again */
160
  Array.prototype.filter.call(document.getElementsByClassName('flowplayer'), function(player){
161
+ if( player.getAttribute('data-error') ) {
162
+ return;
163
+ }
164
+
165
  var preload = player.querySelector('.fp-preload');
166
  if( preload ) {
167
  preload.style.display = 'block';
168
  }
 
 
 
 
 
169
  });
170
 
171
  /* Not sure when, but sometimes the flowplayer script is not ready */
269
 
270
  /* VAST should not autoplay */
271
  if( window.fv_vast_conf ) {
272
+ window.fv_vast_conf.autoplay = false;
273
  }
274
 
275
  /* TODO: Perhaps video link should not be parsed or it should be done here */
flowplayer/fv-player.min.js CHANGED
@@ -1 +1 @@
1
- function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if("undefined"!=typeof fv_flowplayer_conf){var FVAbrController,parseIOSVersion=function(e){e=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return e&&1<e.length?parseFloat(e[e.length-1].replace("_","."),10):0};try{"object"==_typeof(window.localStorage)&&void 0!==window.localStorage.volume&&delete fv_flowplayer_conf.volume}catch(e){}flowplayer.conf=fv_flowplayer_conf,flowplayer.conf.fullscreen=!1,flowplayer.conf.chromecast=!1,flowplayer.conf.embed=!1,flowplayer.conf.share=!1,flowplayer.conf.analytics=!1,void 0!==fv_flowplayer_conf.disable_localstorage&&(flowplayer.conf.storage={});try{flowplayer.conf.key=atob(flowplayer.conf.key)}catch(e){}!flowplayer.support.android&&flowplayer.conf.dacast_hlsjs&&((FVAbrController=function(e){this.hls=e,this.nextAutoLevel=3}).prototype.nextAutoLevel=function(e){this.nextAutoLevel=e},FVAbrController.prototype.destroy=function(){},flowplayer.conf.hlsjs={startLevel:-1,abrController:FVAbrController}),flowplayer.support.iOS&&flowplayer.support.iOS.chrome&&0==flowplayer.support.iOS.version&&(flowplayer.support.iOS.version=parseIOSVersion(navigator.userAgent)),(flowplayer.support.iOS&&13<=parseInt(flowplayer.support.iOS.version)||!flowplayer.support.iOS&&flowplayer.support.browser.safari&&8<=parseInt(flowplayer.support.browser.version))&&(flowplayer.conf.hlsjs.safari=!0),flowplayer.support.fvmobile=!(flowplayer.support.firstframe&&!flowplayer.support.iOS&&!flowplayer.support.android);var fls=flowplayer.support;flowplayer.conf.mobile_native_fullscreen&&"ontouchstart"in window&&fls.fvmobile&&(flowplayer.conf.native_fullscreen=!0),"ontouchstart"in window&&(fls.android&&fls.android.version<4.4&&!(fls.browser.chrome&&54<fls.browser.version)&&(flowplayer.conf.native_fullscreen=!0),fls.iOS&&(fv_player_in_iframe()||fls.iOS.version<7)&&(flowplayer.conf.native_fullscreen=!0))}"undefined"!=typeof fv_flowplayer_translations&&(flowplayer.defaults.errors=fv_flowplayer_translations);var fv_player_did_autoplay=!1;function fv_player_videos_parse(e,a){try{var o=JSON.parse(e)}catch(e){return!1}var n,e=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)").exec(location.search);return!(null!=e&&"yes"==e[1]||jQuery(window).width()<=480||jQuery(window).height()<=480)||null!=e&&"no"==e[1]||(n=!1,jQuery(o.sources).each(function(e,t){t.mobile&&(o.sources[e]=o.sources[0],o.sources[0]=t,n=!0),n&&jQuery(a).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>")})),a.trigger("fv_player_videos_parse",o),o}function fv_player_in_iframe(){try{return window.self!==window.top}catch(e){return!0}}function fv_escape_attr(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.replace(/[&<>"']/g,function(e){return t[e]})}function fv_player_preload(){function e(){jQuery(".flowplayer.fp-is-embed").each(function(){var e=jQuery(this);e.hasClass("has-chapters")||e.hasClass("has-transcript")||0!=jQuery(".fp-playlist-external[rel="+e.attr("id")+"]").length||e.height(jQuery(window).height())})}if(flowplayer.support.touch&&jQuery(".fp-playlist-external.fv-playlist-design-2017").addClass("visible-captions"),flowplayer(function(n,r){localStorage.flowplayerTestStorage&&delete localStorage.flowplayerTestStorage;var e,t,i=(r=jQuery(r)).find(".fp-player"),l=!1,a=(r.hasClass("fixed-controls")&&r.find(".fp-controls").on("click",function(e){n.loading||n.ready||(e.preventDefault(),e.stopPropagation(),n.load())}),flowplayer.support.volume||flowplayer.support.autoplay||r.find(".fp-volume").hide(),0==r.data("volume")&&r.hasClass("no-controlbar")&&r.find(".fp-volume").remove(),jQuery(".fp-playlist-external[rel="+r.attr("id")+"]")),s=((!n.conf.playlist||0==n.conf.playlist.length)&&a.length&&0<a.find("a[data-item]").length?(e=[],a.find("a[data-item]").each(function(){(parsed=fv_player_videos_parse(jQuery(this).attr("data-item"),r))?e.push(parsed):jQuery(this).remove()}),n.conf.playlist=e,n.conf.clip=e[0]):n.conf.clip||(n.conf.clip=fv_player_videos_parse(jQuery(r).attr("data-item"),r)),jQuery("a",a).on("click",function(e){e.preventDefault(),l=!0;var e=jQuery(this),t=jQuery(".fp-playlist-external[rel="+r.attr("id")+"]"),t=jQuery("a",t).index(this),a=e.prev("a"),o=e.data("item");if(location.href.match(/wp-admin/)&&0<e.parents(".fv-player-editor-preview").length)return fv_flowplayer_conf.current_video_to_edit=t,e.parents(".fv-player-custom-video").find(".edit-video .fv-player-editor-button").trigger("click"),!1;if(a.length&&e.is(":visible")&&!a.is(":visible"))return a.trigger("click"),!1;if(!jQuery("#"+e.parent().attr("rel")).hasClass("dynamic-playlist")){if(fv_player_playlist_active(jQuery(".fp-playlist-external[rel="+r.attr("id")+"]"),this),n){if(n.error&&(n.pause(),n.error=n.loading=!1,r.removeClass("is-error"),r.find(".fp-message.fp-shown").remove()),!n.video||n.video.index==t)return;n.play(t)}a=(a=o.splash)||e.find("img").attr("src");p(r,i,o,a),r[0].getBoundingClientRect().bottom-100<0&&jQuery("html, body").animate({scrollTop:jQuery(r).offset().top-100},300)}}),jQuery("[rel="+r.attr("id")+"]")),o=!1,f=r.find(".fp-splash"),c=r.find(".fv-fp-splash-text");function p(e,t,a,o){e=e.find("img.fp-splash");o?(0==e.length&&(e=jQuery('<img class="fp-splash" />'),t.prepend(e)),e.attr("alt",a.fv_title?fv_escape_attr(a.fv_title):"video"),e.attr("src",o)):e.length&&e.remove()}n.bind("load",function(e,t,a){var o;t.conf.playlist.length&&(a.type.match(/^audio/)&&!l&&(o=(o=(a=(t=s.find("a").eq(a.index)).data("item")).splash)||t.find("img").attr("src"),p(r,i,a,o)),l=!1)}),n.bind("ready",function(e,t,a){setTimeout(function(){var e;-1<a.index&&0<s.length&&(e=jQuery("a",s).eq(a.index),fv_player_playlist_active(s,e),o=e.find(".fvp-progress"))},100),f=r.find(".fp-splash"),a.is_audio_stream||a.type.match(/^audio/)||(window.fv_player_pro&&window.fv_player_pro.autoplay_scroll||r.data("fvautoplay")?t.one("progress",function(){f.remove(),c.remove()}):(f.remove(),c.remove()))}),n.bind("unload",function(){jQuery(".fp-playlist-external .now-playing").remove(),jQuery(".fp-playlist-external a").removeClass("is-active");var e=i.find("iframe.fp-engine");e.length?(e.after(c),e.after(f)):(i.prepend(c),i.prepend(f)),o=!1}),n.bind("progress",function(e,t,a){o.length&&t.playlist_thumbnail_progress(o,t.video,a)}),n.bind("error-subtitles",function(){console.log("error-subtitles"),fv_player_notice(r,fv_flowplayer_translations[8],2e3)}),(a=jQuery(r).parent().find("div.fp-playlist-vertical[rel="+jQuery(r).attr("id")+"]")).length&&((t=function(e){var t=a.hasClass("fp-playlist-only-captions")?"height":"max-height";a.parents(".fp-playlist-text-wrapper").hasClass("is-fv-narrow")&&(t="max-height"),a.css(t,function(){var e=r.height();0==e&&(e=r.css("max-height"));return e}()),"max-height"==t&&a.css("height","auto")})(),jQuery(window).on("resize tabsactivate",function(){setTimeout(t,0)})),n.show_status=function(e){var a="";["loading","ready","playing","paused","seeking"].every(function(e,t){return n[e]&&(a+=" "+e),!0}),console.log("FV Player Status ("+e+")",a)},window.fv_player_loaded||(window.fv_player_loaded=!0,setTimeout(function(){jQuery(document).trigger("fv_player_loaded");var e=new CustomEvent("fv_player_loaded",[]);document.dispatchEvent(e)},100)),setTimeout(function(){r.trigger("fv_player_loaded")},10)}),window.self==window.top||location.href.match(/fv_player_preview/)||(e(),jQuery(window.self).resize(e)),"undefined"!=typeof fv_flowplayer_playlists)for(var t in fv_flowplayer_playlists)fv_flowplayer_playlists.hasOwnProperty(t)&&jQuery("#"+t).flowplayer({playlist:fv_flowplayer_playlists[t]});fv_player_load(),fv_autoplay_exec(),jQuery(document).ajaxComplete(function(){fv_player_load()}),jQuery(window).on("hashchange",fv_autoplay_exec)}function fv_player_load(n){n&&1<n.lenght&&console.log("FV Player: Can't use fv_player_load with more than a single forced element!");var r=!1;if((n||jQuery(".flowplayer")).each(function(e,t){var a=jQuery(t),t=a.data("flowplayer");if(t)n&&(r=t);else{n&&(a.find(".fp-preload, .fvfp_admin_error").remove(),a.attr("data-item-lazy")?(a.attr("data-item",a.attr("data-item-lazy")),a.removeAttr("item-lazy")):(playlist=jQuery("[rel="+a.attr("id")+"]"))&&playlist.find("a[data-item-lazy]").each(function(e,t){(t=jQuery(t)).attr("data-item",t.attr("data-item-lazy")),t.removeAttr("data-item-lazy")}));t=!1;if(a.attr("data-item"))t={clip:fv_player_videos_parse(a.attr("data-item"),a)};else if(playlist=jQuery("[rel="+a.attr("id")+"]")){if(0==playlist.find("a[data-item]").length)return;var o=[];playlist.find("a[data-item]").each(function(){(parsed=fv_player_videos_parse(jQuery(this).attr("data-item"),a))?o.push(parsed):jQuery(this).remove()}),t={playlist:o}}t&&(t=flowplayer.extend(t,a.data()),r=flowplayer(a[0],t),a.data("flowplayer",r))}}),jQuery(".fv-playlist-slider-wrapper").each(function(e,t){var a=jQuery(this).find("a");jQuery(this).find(".fp-playlist-external").css("width",a.outerWidth()*a.length)}),void 0!==jQuery().tabs&&(jQuery("body").removeClass("fv_flowplayer_tabs_hide"),jQuery(".fv_flowplayer_tabs_content").tabs()),n&&r)return r}function fv_player_playlist_active(e,t){e&&(jQuery("a",e).removeClass("is-active"),jQuery(".now-playing").remove()),$playlist=jQuery(e);var a,e=!1,t=(($item=jQuery(t)).addClass("is-active"),$playlist.hasClass("fv-playlist-design-2014"));(t&&0==$item.find("h4").length||!t)&&0==$item.find(".now-playing").length&&$item.prepend('<strong class="now-playing"><span>'+fv_flowplayer_translations.playlist_current+"</span></strong>"),$playlist.parent().find(".flowplayer").length||(e=!0),($playlist.hasClass("fp-playlist-vertical")||$playlist.hasClass("fp-playlist-horizontal")&&$playlist.hasClass("is-audio"))&&!function(e){var t=e.getBoundingClientRect(),a=t.top,o=t.height,n=a+o,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.bottom==!1)return;if(a<=t.top)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientHeight}($item.get(0))?(a=e?$playlist.parent():$playlist).animate({scrollTop:a.scrollTop()+($item.position().top-a.position().top)},750):$playlist.hasClass("fp-playlist-horizontal")&&!function(e){var t=e.getBoundingClientRect(),a=t.left,o=t.width,n=a+o,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.right==!1)return;if(a<=t.left)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientWidth}($item.get(0))&&(a=e?$playlist.parent():$playlist).animate({scrollLeft:a.scrollLeft()+($item.position().left-a.position().left)},750)}jQuery(document).ready(function(){var e=0,t=setInterval(function(){++e<1e3&&(window.fv_video_intelligence_conf&&!window.FV_Player_IMA||window.fv_vast_conf&&!window.FV_Player_IMA||window.fv_player_pro&&!window.FV_Flowplayer_Pro&&document.getElementById("fv_player_pro")!=fv_player_pro||window.fv_player_user_playlists&&!fv_player_user_playlists.is_loaded||window.FV_Player_JS_Loader_scripts_total&&window.FV_Player_JS_Loader_scripts_loaded<FV_Player_JS_Loader_scripts_total)||(clearInterval(t),fv_player_preload())},10)});var fv_fp_date=new Date,fv_fp_utime=fv_fp_date.getTime();function fv_parse_sharelink(e){var t="fvp_";if((e=e.replace("https?://[^./].","")).match(/(youtube.com)/))return t+e.match(/(?:v=)([A-Za-z0-9_-]*)/)[1];if(e.match(/(vimeo.com)|(youtu.be)/))return t+e.match(/(?:\/)([^/]*$)/)[1];var a=e.match(/(?:\/)([^/]*$)/);return a?t+a[1].match(/^[^.]*/)[0]:t+e}function fv_player_get_video_link_hash(e){var t=fv_parse_sharelink((void 0!==e.video.sources_original&&void 0!==e.video.sources_original[0]?e.video.sources_original:e.video.sources)[0].src);return t=void 0!==e.video.id?fv_parse_sharelink(e.video.id.toString()):t}function fv_player_time_hms(e){if(isNaN(e))return NaN;var t=parseInt(e,10),a=Math.floor(t/3600),o=Math.floor(t/60)%60,e=t%60;return a?a+="h":a="",a&&o<10?o="0"+o+"m":o?o+="m":o="",(a||o)&&e<10&&(e="0"+e),a+o+(e+="s")}function fv_player_time_hms_ms(e){if(isNaN(e))return NaN;var t=void 0!==(t=((e=parseFloat(e).toFixed(3))+"").split("."))[1]&&0<t[1]?t[1]+"ms":"";return fv_player_time_hms(e)+t}function fv_player_time_seconds(e,t){if(!e)return-1;var a=0;return e.match(/(\d+[a-z]{1,2})/g).forEach(function(e){e.endsWith("h")?a+=3600*parseInt(e):e.endsWith("m")?a+=60*parseInt(e):e.endsWith("s")&&!e.endsWith("ms")?a+=parseInt(e):e.endsWith("ms")&&parseInt(e)&&(a+=parseInt(e)/1e3)}),t?Math.min(a,t):a}function fv_autoplay_init(e,a,t,o,n){var r,i,l;fv_autoplay_exec_in_progress||(fv_autoplay_exec_in_progress=!0,(r=e.data("flowplayer"))&&(i=fv_player_time_seconds(t),n=fv_player_time_seconds(n),o=fv_player_time_seconds(o),e.parent().hasClass("ui-tabs-panel")&&(t=e.parent().attr("id"),jQuery("[aria-controls="+t+"] a").trigger("click")),e.find(".fp-player").attr("class").match(/\bis-sticky/)||(l=jQuery(e).offset().top-(jQuery(window).height()-jQuery(e).height())/2,window.scrollTo(0,l),r.one("ready",function(){window.scrollTo(0,l)})),e.hasClass("lightboxed")&&setTimeout(function(){jQuery("[href=\\#"+e.attr("id")+"]").trigger("click")},0),a?fv_player_video_link_autoplay_can(r,parseInt(a))?r.ready?fv_player_video_link_seek(r,i):(r.play(parseInt(a)),r.one("ready",function(){fv_player_video_link_seek(r,i,n,o)})):flowplayer.support.inlineVideo&&(r.one(r.playing?"progress":"ready",function(e,t){t.play(parseInt(a)),t.one("ready",function(){fv_player_video_link_seek(t,i,n,o)})}),e.find(".fp-splash").attr("src",jQuery("[rel="+e.attr("id")+"] div").eq(a).find("img").attr("src")),fv_player_in_iframe()||fv_player_notice(e,fv_flowplayer_translations[11],"progress")):r.ready?fv_player_video_link_seek(r,i):(fv_player_video_link_autoplay_can(r)?r.load():fv_player_in_iframe()||fv_player_notice(e,fv_flowplayer_translations[11],"progress"),r.one("ready",function(){fv_player_video_link_seek(r,i,n,o)}))))}function fv_player_video_link_seek(e,t,a,o){fv_autoplay_exec_in_progress=!1;var n=setInterval(function(){e.loading||((0<t||0<e.video.time)&&(e.custom_seek?e.custom_seek(t):e.seek(t)),a&&o&&e.trigger("link-ab",[e,o,a]),clearInterval(n))},10)}var fv_autoplay_exec_in_progress=!1;function fv_autoplay_exec(){var e,i,l,s,f,c=!0;"undefined"!=typeof flowplayer&&"undefined"!=typeof fv_flowplayer_conf&&fv_flowplayer_conf.video_hash_links&&window.location.hash.substring(1).length&&(e=window.location.hash.match(/\?t=/)?window.location.hash.substring(1).split("?t="):window.location.hash.substring(1).split(","),i=e[0],l=void 0!==e[1]&&e[1],s=void 0!==e[2]&&e[2],f=void 0!==e[3]&&e[3],jQuery(".flowplayer").each(function(){var e=jQuery(this),t=(e=e.hasClass("lightbox-starter")?jQuery(e.attr("href")):e).data("flowplayer");if(t){var a,o=void 0!==t.conf.playlist&&1<t.conf.playlist.length?t.conf.playlist:[t.conf.clip];for(a in o)if(o.hasOwnProperty(a)){var n=void 0!==o[a].id&&fv_parse_sharelink(o[a].id.toString());if(i===n&&c)return console.log("fv_autoplay_exec for "+n,a),fv_autoplay_init(e,parseInt(a),l,s,f),c=!1}for(a in o)if(o.hasOwnProperty(a)){var r=fv_parse_sharelink(o[a].sources[0].src);if(i===r&&c)return console.log("fv_autoplay_exec for "+r,a),fv_autoplay_init(e,parseInt(a),l,s,f),c=!1}}})),c&&flowplayer.support.firstframe&&jQuery(".flowplayer[data-fvautoplay]").each(function(){var e,t,a=jQuery(this),o=a.data("flowplayer"),n=a.attr("data-fvautoplay");!fv_player_did_autoplay&&n&&-1!=n&&((flowplayer.support.android||flowplayer.support.iOS)&&o&&"video/youtube"==o.conf.clip.sources[0].type?console.log("FV Player: Autoplay for YouTube not supported on Android and iOS"):(fv_player_did_autoplay=!0,o.conf.playlist.length&&!isNaN(parseFloat(n))&&isFinite(n)?o.play(parseInt(n)):o.load(),e=a.find(".fp-play").addClass("invisible"),t=a.find(".fp-controls").addClass("invisible"),o.one("progress",function(){e.removeClass("invisible"),t.removeClass("invisible")}),"muted"==n&&o.mute(!0,!0)))})}function fv_player_video_link_autoplay_can(e,t){return!("video/youtube"==(t?e.conf.playlist[t]:e.conf.clip).sources[0].type&&(flowplayer.support.iOS||flowplayer.support.android)||fv_player_in_iframe())&&flowplayer.support.firstframe}function fv_player_notice(e,t,a){var o=jQuery(".fvfp-notices",e),n=(o.length||(o=jQuery('<div class="fvfp-notices">'),jQuery(".fp-player",e).append(o)),jQuery('<div class="fvfp-notice-content">'+t+"</div></div>"));return o.append(n),"string"==typeof a&&jQuery(e).data("flowplayer").on(a,function(){n.fadeOut(100,function(){jQuery(this).remove()})}),0<a&&setTimeout(function(){n.fadeOut(2e3,function(){jQuery(this).remove()})},a),n}var fv_player_clipboard=function(e,t,a){if(navigator.clipboard&&"function"==typeof navigator.clipboard.writeText)navigator.clipboard.writeText(e).then(function(){t()},function(){a()});else try{(fv_player_doCopy(e)?t:a)()}catch(e){void 0!==a&&a(e)}};function fv_player_doCopy(e){var t,a,o,n=document.createElement("textarea"),e=(n.value=e,n.style.opacity=0,n.style.position="absolute",n.setAttribute("readonly",!0),document.body.appendChild(n),0<document.getSelection().rangeCount&&document.getSelection().getRangeAt(0));navigator.userAgent.match(/ipad|ipod|iphone/i)?(t=n.contentEditable,n.contentEditable=!0,(a=document.createRange()).selectNodeContents(n),(o=window.getSelection()).removeAllRanges(),o.addRange(a),n.setSelectionRange(0,999999),n.contentEditable=t):n.select();try{var r=document.execCommand("copy");return e&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(e)),document.body.removeChild(n),r}catch(e){throw new Error("Unsuccessfull")}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function is_ga_4(e){return!(void 0===e.conf.fvanalytics||!e.conf.fvanalytics||!e.conf.fvanalytics.startsWith("G-"))}function fv_player_track(e,t,a,o,n,r){if("object"!=_typeof(e)&&(r=n,n=o,o=a,a=t,t=e,e=!1),t=t||flowplayer.conf.fvanalytics,void 0===o&&(o="Unknown engine"),/fv_player_track_debug/.test(window.location.href)&&console.log("FV Player Track: "+a+" - "+o+" '"+n+"'",r),"undefined"!=typeof gtag)is_ga_4(e)?gtag("event",a,{video_current_time:e.video.time,video_provider:o,video_duration:e.video.duration,value:r||1}):gtag("event",a,{event_category:o,event_label:n,value:r||1});else if(t&&"undefined"!=typeof ga)ga("create",t,"auto",n,{allowLinker:!0}),ga("require","linker"),r?ga("send","event",a,o,n,r):ga("send","event",a,o,n);else if(t&&"undefined"!=typeof _gat){e=_gat._getTracker(t);if(void 0===e._setAllowLinker)return;e._setAllowLinker(!0),r?e._trackEvent(a,o,n,r):e._trackEvent(a,o,n)}flowplayer.conf.matomo_domain&&flowplayer.conf.matomo_site_id&&"undefined"!=typeof _paq&&(r?_paq.push(["trackEvent",a,o,n,r]):_paq.push(["trackEvent",a,o,n]))}function fv_player_track_name(e,t){e=e.attr("title");return(e=(e=e||void 0===t.fv_title?e:t.fv_title)||void 0===t.title?e:t.title)||void 0===t.src||(e=t.src.split("/").slice(-1)[0].replace(/\.(\w{3,4})(\?.*)?$/i,""),t.type.match(/mpegurl/)&&(e=t.src.split("/").slice(-2)[0].replace(/\.(\w{3,4})(\?.*)?$/i,"")+"/"+e)),e}flowplayer(function(a,r){var n,t,i,o,l;function e(){var e;"dash"==a.engine.engineName?((e=i[a.engine.dash.getQualityFor("video")]).qualityIndex!=o&&(o=e.qualityIndex,s(e.qualityIndex,i)),t.match(/dash_debug/)&&f(e.width,e.height,e.bitrate)):"hlsjs-lite"==a.engine.engineName&&(n.currentLevel!=o&&(o=n.currentLevel,s(n.currentLevel,n.levels)),t.match(/hls_debug/)&&(e=n.levels[n.currentLevel])&&f(e.width,e.height,e.bitrate))}function s(e,t){var a,o,n;t[e]&&(a=t[e].height,o=541,n=1e5,jQuery(t).each(function(e,t){720<=t.height&&t.height<1400&&(o=720),t.height<n&&(n=t.height),localStorage.FVPlayerHLSQuality==t.height&&(r.find("a[data-quality]").removeClass("fp-selected fp-color"),r.find("a[data-quality="+e+"]").addClass("fp-selected fp-color"))}),r.find("a[data-quality]").removeClass("is-current"),r.find("a[data-quality="+e+"]").addClass("is-current"),t=1400<=a?"4K":o<=a?"HD":360<=a&&n<a?"SD":"SD",r.find(".fp-qsel").html(t))}function f(e,t,a){l.html("Using "+e+"x"+t+" at "+Math.round(a/1024)+" kbps")}function c(){var a=r.find(".fp-qsel-menu");a.children().each(function(e,t){a.prepend(t)}),a.children().each(function(e,t){var a;/^NaNp/.test(jQuery(t).html())?(a=jQuery(t).html().match(/\((.*?)\)/))&&void 0!==a[1]&&jQuery(t).html(a[1]):jQuery(t).html(jQuery(t).html().replace(/\(.*?\)/,""))}),a.prepend(a.find("a[data-quality=-1]")),a.prepend(a.find("strong"))}r=jQuery(r),void 0===a.conf.disable_localstorage&&(flowplayer.engine("hlsjs-lite").plugin(function(e){(n=e.hls).on(Hls.Events.ERROR,function(e,t){"mediaError"==t.type&&"fragParsingError"==t.details&&1==t.fatal&&(n.destroy(),a.trigger("error",[a,{code:3}]),setTimeout(function(){r.removeClass("is-seeking"),r.addClass("is-paused")},0))}),flowplayer.support.browser.safari&&n.on(Hls.Events.KEY_LOADED,function(e){"hlsKeyLoaded"==e&&setTimeout(function(){a.loading&&(console.log("FV Player: Safari stuck loading HLS, resuming playback..."),a.resume())},0)});var o=!(!flowplayer.conf.hd_streaming||flowplayer.support.fvmobile)&&720;0==jQuery(e.root).data("hd_streaming")&&(o=!1),(o=localStorage.FVPlayerHLSQuality?localStorage.FVPlayerHLSQuality:o)&&n.on(Hls.Events.MANIFEST_PARSED,function(e,t){var a=!1;jQuery.each(t.levels,function(e,t){t.height==o&&(a=e)}),localStorage.FVPlayerHLSQuality||a||jQuery.each(t.levels,function(e,t){t.height>a&&(a=e)}),a&&(console.log("FV Player: Picked "+t.levels[a].height+"p quality"),n.startLevel=a,n.currentLevel=a)})}),r=jQuery(r),t=document.location.search,localStorage.FVPlayerDashQuality&&(a.conf.dash||(a.conf.dash={}),a.conf.dash.initialVideoQuality="restore"),r.on("click",".fp-qsel-menu a",function(){var e;"hlsjs-lite"==a.engine.engineName&&(-1==(e=jQuery(this).data("quality"))?localStorage.removeItem("FVPlayerHLSQuality"):(e=n.levels[e],localStorage.FVPlayerHLSQuality=e.height))}),localStorage.FVPlayerHLSQuality?(a.conf.hlsjs.startLevel=parseInt(localStorage.FVPlayerHLSQuality),a.conf.hlsjs.testBandwidth=!1,a.conf.hlsjs.autoLevelEnabled=!1):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&(a.conf.hlsjs.startLevel=3,a.conf.hlsjs.testBandwidth=!1,a.conf.hlsjs.autoLevelEnabled=!1),a.bind("quality",function(e,t,a){"dash"==t.engine.engineName&&(-1==a?localStorage.removeItem("FVPlayerDashQuality"):i[a]&&(localStorage.FVPlayerDashQuality=i[a].height))}),i=[],o=-1,a.bind("ready",function(e,t){var o;r.find(".fp-qsel-menu strong").text(fv_flowplayer_translations.quality),"dash"==t.engine.engineName?(i=t.engine.dash.getBitrateInfoListFor("video"),localStorage.FVPlayerDashQuality&&t.conf.dash.initialVideoQuality&&t.quality(t.conf.dash.initialVideoQuality),c()):"hlsjs-lite"==t.engine.engineName?(r.addClass("is-loading"),t.loading=!0,t.one("progress",function(){t.loading&&(r.removeClass("is-loading"),t.loading=!1)}),t.video.qualities&&2<t.video.qualities.length&&(o=-1,localStorage.FVPlayerHLSQuality?jQuery(t.video.qualities).each(function(e,t){if(t.value==localStorage.FVPlayerHLSQuality)return o=localStorage.FVPlayerHLSQuality,!1}):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&jQuery(t.video.qualities).each(function(e,t){var a=parseInt(t.label);0<a&&-1==o&&720<=a&&a<=720&&(o=t.value)}),-1<(o=parseInt(o))&&r.one("progress",function(){setTimeout(function(){t.quality(o)})}),c())):t.video.sources_fvqs&&0<t.video.sources_fvqs.length&&t.video.src.match(/vimeo.*?\.mp4/)&&setTimeout(c,0),r.find("a[data-quality]").removeClass("is-current")}),(t.match(/dash_debug/)||t.match(/hls_debug/))&&(l=jQuery('<div class="fv-debug" style="background: gray; color: white; top: 10%; position: absolute; z-index: 1000">').appendTo(r.find(".fp-player"))),a.bind("ready progress",e),a.bind("quality",function(){setTimeout(e,0)}))}),flowplayer(function(o,n){var r=(n=jQuery(n)).attr("id"),i=!1;function l(){var t,a,e=n.attr("data-ad");if(void 0!==e&&e.length){try{e=JSON.parse(e)}catch(e){return}!i&&!n.hasClass("is-cva")&&n.width()>=parseInt(e.width)&&(e=(e=e.html).replace("%random%",Math.random()),i=jQuery('<div id="'+r+'_ad" class="wpfp_custom_ad">'+e+"</div>"),n.find(".fp-player").append(i),t=0,a=setInterval(function(){var e=i&&i.find(".adsbygoogle").height();(200<++t||0<e)&&clearInterval(a),e>n.height()&&i.addClass("tall-ad")},50),setTimeout(function(){n.find(".wpfp_custom_ad video").length&&o.pause()},500))}}function a(e){var t=n.attr("data-popup");if(void 0!==t&&t.length){try{t=JSON.parse(t)}catch(e){return}("finish"==e||t.pause||t.html.match(/fv-player-ppv-purchase-btn-wrapper/))&&0==n.find(".wpfp_custom_popup").length&&(n.addClass("is-popup-showing"),n.find(".fp-player").append('<div id="'+r+'_custom_popup" class="wpfp_custom_popup">'+t.html+"</div>"))}}n.data("end_popup_preview")&&jQuery(document).ready(function(){o.trigger("finish",[o])}),o.bind("ready",function(e,t){1==i.length&&(i.remove(),i=!1),n.data("ad_show_after")||l()}).bind("progress",function(e,t,a){a>n.data("ad_show_after")&&l()}).bind("finish",function(e,t){void 0!==t.video.index&&t.video.index+1!=t.conf.playlist.length||a(e.type)}).bind("pause",function(e,t){a(e.type)}).bind("resume unload seek",function(e,t){n.hasClass("is-popup-showing")&&(n.find(".wpfp_custom_popup").remove(),n.removeClass("is-popup-showing"))})}),jQuery(document).on("click",".fv_fp_close",function(){var e=jQuery(this).parents(".wpfp_custom_ad_content"),t=e.find("video");return e.fadeOut(),t.length&&t[0].pause(),!1}),jQuery(document).on("focus",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!0)}),jQuery(document).on("blur",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!1)}),flowplayer(function(o,s){var n,r,e,t,a,s=jQuery(s),i=flowplayer.bean,l=0,f=0,c=("undefined"==typeof ga&&o.conf.fvanalytics&&"undefined"==typeof _gat&&"undefined"==typeof gtag&&(is_ga_4(o)?jQuery.getScript({url:"https://www.googletagmanager.com/gtag/js?id="+o.conf.fvanalytics,cache:!0},function(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",o.conf.fvanalytics)}):jQuery.getScript({url:"https://www.google-analytics.com/analytics.js",cache:!0},function(){ga("create",o.conf.fvanalytics,"auto")})),!window._paq&&o.conf.matomo_domain&&o.conf.matomo_site_id&&(e="//"+o.conf.matomo_domain+"/",(a=window._paq=window._paq||[]).push(["setTrackerUrl",e+"matomo.php"]),a.push(["setSiteId",o.conf.matomo_site_id]),t=(a=document).createElement("script"),a=a.getElementsByTagName("script")[0],t.type="text/javascript",t.async=!0,t.src=e+"matomo.js",a.parentNode.insertBefore(t,a)),o.bind("progress",function(e,t,a){var o=t.video,n=o.duration,r=0,i=fv_player_track_name(s,o);if(n&&(19*n/20<a?r=4:3*n/4<a?r=3:n/2<a?r=2:n/4<a&&(r=1)),t.live&&(r=0),!s.data("fv_track_"+c[r])){for(var l in c)if(c.hasOwnProperty(l)){if(l==r)break;if(!s.data("fv_track_"+c[l]))return}s.trigger("fv_track_"+c[r].replace(/ /,"_"),[t,i]),s.data("fv_track_"+c[r],!0),fv_player_track(t,!1,"Video "+(s.hasClass("is-cva")?"Ad ":"")+c[r],t.engine.engineName+"/"+o.type,i)}}).bind("finish ready ",function(e,t){for(var a in c)c.hasOwnProperty(a)&&s.removeData("fv_track_"+c[a])}).bind("error",function(e,t,a){setTimeout(function(){var e;t.error&&((e=void 0!==t.video&&void 0!==t.video.src&&t.video)||void 0===t.conf.clip||void 0===t.conf.clip.sources||void 0===t.conf.clip.sources[0]||void 0===t.conf.clip.sources[0].src||(e=t.conf.clip.sources[0]),!(e=fv_player_track_name(s,e))||e.match(/\/\/vimeo.com\/\d/)||is_ga_4(t)||fv_player_track(t,!1,"Video "+(s.hasClass("is-cva")?"Ad ":"")+"error",a.message,e))},100)}),o.bind("load unload",p).bind("progress",function(e,t){t.seeking||(l+=f?+new Date-f:0,f=+new Date),n=n||setTimeout(function(){n=null,is_ga_4(t)||fv_player_track(t,!1,"Flowplayer heartbeat",t.engine.engineName+"/"+t.video.type,"Heartbeat",0)},6e5)}).bind("pause",function(){f=0}),o.bind("shutdown",function(){i.off(window,"unload",p)}),i.on(window,"unload",p),is_ga_4(o)?["Play","25 Percent Played","50 Percent Played","75 Percent Played","100 Percent Played"]:["start","first quartile","second quartile","third quartile","complete"]);function p(e,t,a){a=a||o.video,"load"===e.type&&(r=fv_player_track_name(s,a)),l&&(fv_player_track(o,!1,"Video / Seconds played",o.engine.engineName+"/"+o.video.type,r,Math.round(l/1e3)),l=0,n&&(clearTimeout(n),n=null))}o.get_time_played=function(){return l/1e3}}),flowplayer(function(o,n){var r=(n=jQuery(n)).find(".fp-player"),i=n.hasClass("no-volume"),l=n.hasClass("fp-mute"),s=n.hasClass("fp-full"),f=0;function t(){var e=r.width()||n.width(),t=o.video.index||0,a=(900<e?jQuery(".fp-subtitle",n).addClass("is-wide"):jQuery(".fp-subtitle",n).removeClass("is-wide"),n.toggleClass("is-tiny",e<400),n.toggleClass("is-small",e<600&&400<=e),e<480+35*f),t=(void 0!==o.fv_timeline_chapters_data&&void 0!==o.fv_timeline_chapters_data[t]&&(a=!0),s||n.toggleClass("fp-full",n.hasClass("has-abloop")||a),""),a=(e<400?t="is-tiny":e<600&&400<=e&&(t="is-small"),n.trigger("fv-player-size",[t]),r);(a=n.parent().hasClass("fp-playlist-vertical-wrapper")||n.parent().hasClass("fp-playlist-text-wrapper")?n.parent():a).width()<=560?a.addClass("is-fv-narrow"):a.removeClass("is-fv-narrow"),e<=320?n.addClass("no-volume fp-mute"):(i||n.removeClass("no-volume"),l||n.removeClass("fp-mute"))}t(),jQuery(window).on("resize",t),"fonts"in document&&o.one("load",function(){document.fonts.load("1em flowplayer")}),o.on("ready fullscreen fullscreen-exit sticky sticky-exit",function(e){setTimeout(function(){f=n.find(".fp-controls > strong:visible").length+n.find(".fp-controls > .fp-icon:visible").length,t()},0)}),o.on("unload pause finish error",function(){"undefined"!=typeof checker&&clearInterval(checker)})}),jQuery(window).on("resize tabsactivate",function(){jQuery(".fp-playlist-external").each(function(){var e=jQuery(this);900<=e.parent().width()?e.addClass("is-wide"):e.removeClass("is-wide")})}).trigger("resize"),flowplayer(function(e,t){e.bind("ready",function(){/Chrome/.test(navigator.userAgent)&&54<parseFloat(/Chrome\/(\d\d)/.exec(navigator.userAgent)[1],10)&&(e.video.subtitles?jQuery(t).addClass("chrome55fix-subtitles"):jQuery(t).addClass("chrome55fix"))});var a,o=(t=jQuery(t)).css("background-image");(o=o&&o.replace(/url\((['"])?(.*?)\1\)/gi,"$2").split(","))&&o[0].match(/^(https?:)?\/\//)&&((a=new Image).src=o[0],o=a.height/a.width,a=t.height()/t.width(),Math.abs(a-o)<.05&&t.css("background-size","cover"))}),function(e){e(window).on("resize",function(){e("iframe[id][src][height][width]").each(function(){e(this).attr("id").match(/(fv_vimeo_)|(fv_ytplayer_)/)&&e(this).width()<=e(this).attr("width")&&e(this).height(e(this).width()*e(this).attr("height")/e(this).attr("width"))}),jQuery(".wistia_embed").each(function(){e(this).height(e(this).width()*e(this).data("ratio"))})}).trigger("resize")}(jQuery),jQuery(document).on("tabsactivate",".fv_flowplayer_tabs_content",function(e,t){var a=jQuery(t.oldPanel).find(".flowplayer").data("flowplayer");void 0!==a&&a.pause(),jQuery(".flowplayer",t.newPanel).data("flowplayer").load()}),flowplayer(function(t,o){o=jQuery(o);var e=flowplayer.bean;o.hasClass("is-audio")&&(e.off(o[0],"mouseenter"),e.off(o[0],"mouseleave"),o.removeClass("is-mouseout"),o.addClass("fixed-controls").addClass("is-mouseover"),t.on("error",function(e,t,a){jQuery(".fp-message",o).html(jQuery(".fp-message",o).html().replace(/video/,"audio"))}),o.on("click",function(e){t.ready||(e.preventDefault(),e.stopPropagation(),t.load())}))}),flowplayer(function(f,c){var t,r,a,i,e,l,n;function o(){}function s(e){console.log("FV Player: Chromecast listener",e),e===chrome.cast.ReceiverAvailability.AVAILABLE&&(flowplayer.conf.chromecast_available=!0)}function p(){}function d(){console.log("chromecast onError")}function u(){clearInterval(a),a=null,f.release(),l.toggleClass(c,"is-chromecast",!1),l.toggleClass(i,"fp-active",!1)}function y(){var e=!1,t=f.video.sources_fvqs||f.video.sources;for(o in t){var a=t[o].type;if("video/mp4"==a||"video/fv-mp4"==a||"application/dash+xml"==a){e=t[o];break}}if(!e)for(var o in t)if("application/x-mpegurl"==t[o].type){e=t[o];break}if(f.video.fvhkey&&!f.conf.hls_cast)return!1;if(e){var n,r=!1,i=["fullhd","hd","md","sd"];for(n in i){var l=new RegExp("-"+i[n]);for(o in f.video.sources_fvqs){var s=f.video.sources_fvqs[o];if(s.src.match(l)&&"video/mp4"==s.type){r=s;break}}if(r){e=r;break}}}return e}function v(){var o,e=y();e&&(o=[],f.video.subtitles&&f.video.subtitles.forEach(function(e,t){e.src.match(/\.srt/)&&console.log("FV Player: Chromecast doesn't support SRT subtitles");var a=new chrome.cast.media.Track(t,chrome.cast.media.TrackType.TEXT);a.trackContentId=e.src,a.trackContentType="text/vtt",a.subtype=chrome.cast.media.TextTrackType.SUBTITLES,a.name=e.label,a.language=e.srclang+"-"+t,a.customData=null,o.push(a)}),(e=new chrome.cast.media.MediaInfo(e.src,e.type)).tracks=o,e=new chrome.cast.media.LoadRequest(e),f.live||(e.currentTime=f.video.time),clearInterval(a),a=!1,r.loadMedia(e,_,function(e){console.log("onMediaError",e)}))}function _(o){m(o),o.addUpdateListener(function(e){r&&(a=a||setInterval(function(){f.trigger("progress",[f,o.getEstimatedTime()]),o.activeTrackIds.forEach(function(a){jQuery.each(o.media.tracks,function(e,t){if(t.trackId==a&&"AUDIO"==t.type)return h("data-audio",t.language)||h("data-lang",t.language),!1})})},500),e&&(l.toggleClass(c,"is-chromecast",!0),l.toggleClass(i,"fp-active",!0),f.hijack({pause:function(){console.log("hijacked pause!"),o.pause()},resume:function(){if(f.finished)return clearInterval(a),a=null,f.release(),void v();o.play()},seek:function(e){var t=new chrome.cast.media.SeekRequest;t.currentTime=e,o.seek(t)}})),e=o.playerState,f.paused&&e===chrome.cast.media.PlayerState.PLAYING&&f.trigger("resume",[f]),f.playing&&e===chrome.cast.media.PlayerState.PAUSED&&f.trigger("pause",[f]),f.seeking&&e===chrome.cast.media.PlayerState.BUFFERING&&(n=!0),f.seeking&&e===chrome.cast.media.PlayerState.PLAYING&&n&&(n=!1,f.trigger("seek",[f])),e==chrome.cast.media.PlayerState.IDLE&&o.idleReason==chrome.cast.media.IdleReason.FINISHED&&f.trigger("finish",[f]),l.toggleClass(c,"is-loading",e===chrome.cast.media.PlayerState.BUFFERING))})}function h(a,o){var e=jQuery(c).find(".fv-fp-hls-menu a"),n=!1;return e.each(function(e,t){jQuery(t).attr(a)===o?(jQuery(t).addClass("fp-selected"),n=!0):jQuery(t).removeClass("fp-selected")}),n}function m(e){console.log(e.media.tracks);var a=jQuery(c).find(".fv-fp-hls-menu [data-audio].fp-selected").data("audio"),o=jQuery(c).find(".fv-fp-hls-menu [data-audio].fp-selected").data("lang"),n=jQuery(c).find(".fp-subtitle-menu [data-subtitle-index].fp-selected").data("subtitle-index"),r=-1<n&&f.video.subtitles[n].srclang,i=!1,l=!1,t=[],s=(jQuery.each(e.media.tracks,function(e,t){t.language==a&&"AUDIO"==t.type&&(i=t),t.language==r+"-"+n&&"TEXT"==t.type&&(l=t)}),i||jQuery.each(e.media.tracks,function(e,t){if(t.language==o&&"AUDIO"==t.type)return i=t,!1}),"");i&&(t.push(i.trackId),s+=i.language+" audio"),l&&(t.push(l.trackId),s&&(s+=" "),s+=l.language+" subtitles"),t&&(t=new chrome.cast.media.EditTracksInfoRequest(t),e.editTracksInfo(t,function(){console.log("FV Player: Chromecast "+s+" loaded")},function(){console.log("FV Player: Chromecast "+s+" failed")}))}f.conf.fv_chromecast&&(window.__onGCastApiAvailable||(jQuery.getScript({url:"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js",cache:!0}),window.__onGCastApiAvailable=function(e){e&&(e=t.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,e=new chrome.cast.SessionRequest(e),e=new chrome.cast.ApiConfig(e,o,s),chrome.cast.initialize(e,p,d))}),t=f.conf.chromecast||{},e=flowplayer.bean,l=flowplayer.common,n=!1,f.bind("ready",function(e,t,a){var o,n;r?y()?(t.one("progress",function(e,t){t.release(),t.pause(),t.mute(!1,!0),v()}),t.mute(!0,!0)):(r.stop(),r=null,u(),jQuery(i).hide()):flowplayer.conf.chromecast_available&&(y()?((t=l.find(".fp-header",c)[0])&&(l.find(".fp-chromecast",t).forEach(l.removeNode),l.find(".fp-chromecast-engine",c).forEach(l.removeNode),i=l.createElement("a",{class:"fp-chromecast fp-icon",title:"Play on Cast device"}),t.appendChild(i),t=l.createElement("div",{class:"fp-chromecast-engine"}),o=l.createElement("p",{class:"fp-chromecast-engine-status"}),n=l.createElement("p",{class:"fp-chromecast-engine-icon"}),t.appendChild(n),t.appendChild(o),(n=l.find(".fp-engine",c)[0])?n.parentNode.insertBefore(t,n):l.prepend(l.find(".fp-player",c)[0]||c,t)),jQuery(i).show()):(FV_Flowplayer_Pro.log("FV Player: Can't find media source suitable for Chromecast!"),jQuery(i).hide()))}),e.on(c,"click",".fp-chromecast",function(e){var t;if(e.preventDefault(),r)return f.trigger("pause",[f]),r.media[0].media&&(t=r.media[0].getEstimatedTime(),setTimeout(function(){f.seek(t)},0)),r.stop(),r=null,void u();f.playing&&f.pause(),chrome.cast.requestSession(function(e){jQuery(c).addClass("is-loading");e=(r=e).receiver.friendlyName;l.html(l.find(".fp-chromecast-engine-status",c)[0],"Playing on device "+e),v()},function(e){console.error("requestSession error",e)})}),e.on(c,"click",".fv-fp-hls-menu [data-audio], .fp-subtitle-menu [data-subtitle-index]",function(){if(r&&r.media[0].media)return m(r.media[0]),!1}),jQuery(window).on("unload",function(){r&&r.stop()}))}),jQuery(document).on("mfpClose",function(){void 0!==jQuery(".flowplayer").data("flowplayer")&&jQuery(".flowplayer").data("flowplayer").unload()}),jQuery(document).on("click",".vc_tta-tab a",function(){var e=jQuery(".flowplayer.is-playing").data("flowplayer");e&&e.pause()}),flowplayer(function(e,t){t=jQuery(t),e.bind("ready",function(){setTimeout(function(){var e=jQuery("video",t);0<e.length&&e.prop("autoplay",!1)},100),t.find("video.fp-engine").addClass("intrinsic-ignore")})}),jQuery(".flowplayer").on("ready",function(e,t){/BB10/.test(navigator.userAgent)&&t.fullscreen()});var fv_flowplayer_safety_resize_arr=Array();function fv_flowplayer_safety_resize(){var t=!1;jQuery(".flowplayer").each(function(){if(jQuery(this).is(":visible")&&!jQuery(this).hasClass("lightboxed")&&!jQuery(this).hasClass("lightbox-starter")&&!jQuery(this).hasClass("is-audio")&&(jQuery(this).width()<30||jQuery(this).height()<20)){t=!0;for(var e=jQuery(this);(jQuery(e).width()<30||jQuery(e).width()==jQuery(this).width())&&0!=jQuery(e).parent().length;)(e=jQuery(e).parent()).hasClass("ld-video")&&(""==e[0].style.height&&e.css("height","auto"),0<parseInt(e.css("padding-bottom"))&&e.css("padding-bottom","0"));jQuery(this).width(jQuery(e).width()),jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio"))),fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]=e}}),t&&jQuery(window).resize(function(){jQuery(".flowplayer").each(function(){jQuery(this).hasClass("lightboxed")||jQuery(this).hasClass("lightbox-starter")||fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]&&(jQuery(this).width(fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")].width()),jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio"))))})})}void 0!==flowplayer.conf.safety_resize&&flowplayer.conf.safety_resize&&jQuery(document).ready(function(){setTimeout(function(){fv_flowplayer_safety_resize()},10)});var fv_player_warning,isIE11=!!navigator.userAgent.match(/Trident.*rv[ :]*11\./);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fv_flowplayer_mobile_switch(e){var t,a=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)").exec(location.search);!(null!=a&&"yes"==a[1]||jQuery(window).width()<=480||jQuery(window).height()<=480)||null!=a&&"no"==a[1]||(t=!1,jQuery("#wpfp_"+e+" video source").each(function(){jQuery(this).attr("id")!="wpfp_"+e+"_mobile"&&(t=!0,jQuery(this).remove())}),t&&jQuery("#wpfp_"+e).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>"))}if(isIE11&&(jQuery(document).ready(function(){jQuery(".fp-waiting").hide()}),flowplayer(function(e,t){e.bind("load",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("beforeseek",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("progress",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("seek",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("fullscreen",function(e){jQuery("#wpadminbar").hide()}).bind("fullscreen-exit",function(e){jQuery("#wpadminbar").show()})})),flowplayer.support.browser&&flowplayer.support.browser.msie&&parseInt(flowplayer.support.browser.version,10)<9&&jQuery(".flowplayer").each(function(){jQuery(this).css("width",jQuery(this).css("max-width")),jQuery(this).css("height",jQuery(this).css("max-height"))}),location.href.match(/elementor-preview=/)?(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)):location.href.match(/brizy-edit-iframe/)&&(console.log("FV Player: Brizy editor is active"),setInterval(fv_player_load,1e3)),window.DELEGATE_NAMES&&flowplayer(function(e,t){fv_player_notice(t,fv_flowplayer_translations.chrome_extension_disable_html5_autoplay)}),flowplayer(function(e,t){flowplayer.bean.off(t,"contextmenu")}),location.href.match(/elementor-preview=/)&&(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)),flowplayer(function(a,o){void 0!==(o=jQuery(o)).data("fv-embed")&&o.data("fv-embed")&&"false"!=o.data("fv-embed")&&(a.embedCode=function(){a.video;var e=o.width(),t=o.height();return t+=2,(o.hasClass("has-chapters")||o.hasClass("has-transcript"))&&(t+=300),0<jQuery(".fp-playlist-external[rel="+o.attr("id")+"]").length&&(t+=170),'<iframe src="'+(o.data("fv-embed")+"#"+fv_player_get_video_link_hash(a))+'" allowfullscreen width="'+e+'" height="'+t+'" frameborder="0" style="max-width:100%"></iframe>'})}),jQuery(document).on("click",".flowplayer .embed-code-toggle",function(){var e=jQuery(this).closest(".flowplayer");if("undefined"!=typeof fv_player_editor_conf)return fv_player_notice(e,fv_player_editor_translations.embed_notice,2e3),!1;var t=jQuery(this),a=t.parents(".flowplayer"),e=a.data("flowplayer");return"function"==typeof e.embedCode&&a.find(".embed-code textarea").val(e.embedCode()),fv_player_clipboard(a.find(".embed-code textarea").val(),function(){fv_player_notice(a,fv_flowplayer_translations.embed_copied,2e3)},function(){t.parents(".fvp-share-bar").find(".embed-code").toggle(),t.parents(".fvp-share-bar").toggleClass("visible")}),!1}),flowplayer(function(o,n){var r,i,l,s,f,c,p,e,d;0!=jQuery(n).data("fullscreen")&&(o.one("ready",function(e,t,a){0==jQuery(n).find(".fp-fullscreen").length&&jQuery(n).find(".fp-header").append('<a class="fp-fullscreen fp-icon"></a>')}),r="fullscreen",i="fullscreen-exit",l=flowplayer.support.fullscreen,s=window,p=flowplayer.bean,o.fullscreen=function(e){if(!o.disabled){var t=d.find("video.fp-engine",n)[0];if(flowplayer.conf.native_fullscreen&&t&&flowplayer.support.iOS)return o.trigger(r,[o]),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===t&&(p.off(document,".nativefullscreen"),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(p.off(document,".nativefullscreen"),o.trigger(i,[o]))}))}),t.webkitEnterFullScreen(),void p.one(t,"webkitendfullscreen",function(){p.off(document,"fullscreenchange.nativefullscreen"),o.trigger(i,[o]),d.prop(t,"controls",!0),d.prop(t,"controls",!1)});var a=jQuery(n).find(".fp-player")[0];return(e=void 0===e?!o.isFullscreen:e)&&(c=s.scrollY,f=s.scrollX),l?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof a[e]&&(a[e]({navigationUI:"hide"}),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||a[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):o.trigger(e?r:i,[o]),o}},d=flowplayer.common,o.on("mousedown.fs",function(){+new Date-e<150&&o.ready&&o.fullscreen(),e=+new Date}),o.on(r,function(){d.addClass(n,"is-fullscreen"),d.toggleClass(n,"fp-minimal-fullscreen",d.hasClass(n,"fp-minimal")),d.removeClass(n,"fp-minimal"),l||d.css(n,"position","fixed"),o.isFullscreen=!0}).on(i,function(){var e;d.toggleClass(n,"fp-minimal",d.hasClass(n,"fp-minimal-fullscreen")),d.removeClass(n,"fp-minimal-fullscreen"),l||"html5"!==o.engine||(e=n.css("opacity")||"",d.css(n,"opacity",0)),l||d.css(n,"position",""),d.removeClass(n,"is-fullscreen"),l||"html5"!==o.engine||setTimeout(function(){n.css("opacity",e)}),o.isFullscreen=!1,"fvyoutube"!=o.engine.engineName&&s.scrollTo(f,c)}).on("unload",function(){o.isFullscreen&&o.fullscreen()}),o.on("shutdown",function(){FULL_PLAYER=null,d.removeNode(wrapper)}))}),flowplayer(function(a,o){var e,t,n,r,i,l;function s(){var e=window.innerWidth<window.innerHeight?window.innerWidth<=375?.6:.575:window.innerWidth<=667?2:2.4;return window.innerWidth/window.innerHeight>e}function f(){a.isFullscreen&&window.innerWidth>window.innerHeight&&s()&&!l&&(fv_player_notice(o,fv_flowplayer_translations.iphone_swipe_up_location_bar,"resize-good"),l=setTimeout(function(){l=!1,a.trigger("resize-good")},5e3))}o=jQuery(o),flowplayer.conf.wpadmin||jQuery(o).hasClass("is-audio")||(e=(e=jQuery(".fp-playlist-external[rel="+o.attr("id")+"]")).hasClass("fp-playlist-season")||e.hasClass("fp-playlist-polaroid"),t=1==o.data("fsforce"),0!=o.data("fullscreen")&&(flowplayer.conf.mobile_force_fullscreen&&flowplayer.support.fvmobile||!flowplayer.support.fullscreen&&t||e?(flowplayer.support.fullscreen||a.bind("ready",function(){a.video.vr||a.fullscreen(!0)}),o.on("click",function(){a.ready&&!a.paused||a.fullscreen(!0)}),jQuery("[rel="+o.attr("id")+"] a").on("click",function(e){a.isFullscreen||(a.fullscreen(),a.resume())}),a.on("resume",function(){a.video.vr||a.isFullscreen||a.fullscreen()}),a.on("finish",function(){0!=a.conf.playlist.length&&a.conf.playlist.length-1!=a.video.index||a.fullscreen(!1)}).on("fullscreen",function(e,t){o.addClass("forced-fullscreen")}).on("fullscreen-exit",function(e,t){t.pause(),o.removeClass("forced-fullscreen")})):t&&(r=o.find(".fp-unload"),i=!1,a.isFakeFullscreen=!1,o.addClass("is-closeable"),o.on("click",function(e){a.ready||e.target==r[0]||a.fakeFullscreen(!0)}),r.on("click",function(e){return a.ready&&a.isFullscreen?a.fullscreen(!1):a.loading&&(i=!0,a.one("resume",function(e){i=!1,a.pause()})),a.fakeFullscreen(!1),!1}),jQuery("[rel="+o.attr("id")+"] a").on("click",function(e){a.isFakeFullscreen||(a.fakeFullscreen(),a.resume())}),a.on("resume",function(){i||a.isFakeFullscreen||a.fakeFullscreen()}).on("finish",function(){0!=a.conf.playlist.length&&a.conf.playlist.length-1!=a.video.index||a.fakeFullscreen(!1)}).on("fullscreen",function(e,t){o.removeClass("fake-fullscreen")}).on("fullscreen-exit",function(e,t){t.isFakeFullscreen&&t.fakeFullscreen(!0,!0)}).on("unload",function(e,t){}),a.fakeFullscreen=function(e,t){(t||a.isFakeFullscreen!=e&&!a.disabled)&&(void 0===n&&(n=o.css("position")),void 0===e&&(e=!a.isFakeFullscreen),a.isFakeFullscreen=e,a.trigger(e?"fakefullscreen":"fakefullscreen-exit",[a]),o.toggleClass("is-fullscreen fake-fullscreen forced-fullscreen",e),e?o.css("position","fixed"):o.css("position",n))}),flowplayer.support.android&&window.screen&&window.screen.orientation&&a.on("fullscreen",function(e,t){void 0!==(t=t).video.width&&void 0!==t.video.height&&0!=t.video.width&&0!=t.video.height&&t.video.width<t.video.height?screen.orientation.lock("portrait-primary"):screen.orientation.lock("landscape-primary")}),l=!1,flowplayer.support.iOS&&!flowplayer.support.fullscreen&&(a.on("fullscreen",f),window.addEventListener("resize",f),window.addEventListener("resize",function(){s()||(clearTimeout(l),l=!1,a.trigger("resize-good"))}))))}),flowplayer(function(a,o){o=jQuery(o);var r,n,i,l,s;window.MediaSource||window.WebKitMediaSource;function f(){var e=o.find("video");return e.length&&e[0].audioTracks?e[0].audioTracks:[]}function c(a){a.name||(a.name=a.label),o.find(".fv-fp-hls-menu a").each(function(e,t){jQuery(t).toggleClass("fp-selected",jQuery(t).attr("data-audio")===a.name)})}function p(){if(n&&!(n.length<2))if(l=jQuery('<strong class="fv-fp-hls">'+fv_flowplayer_translations.audio_button+"</strong>"),(s=jQuery('<div class="fp-menu fv-fp-hls-menu"></div>').insertAfter(o.find(".fp-controls"))).append("<strong>"+fv_flowplayer_translations.audio_menu+"</strong>"),n.forEach(function(e){s.append('<a data-audio="'+e.name+'" data-lang="'+e.lang+'">'+e.name+"</a>")}),l.insertAfter(o.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),s.hasClass("fp-active")?a.hideMenu(s[0]):(o.click(),a.showMenu(s[0]))}),jQuery("a",s).on("click",function(e){var t=e.target.getAttribute("data-audio");if(r){var a=r.audioTracks[r.audioTrack].groupId,e=r.audioTracks.filter(function(e){return e.groupId===a&&(e.name===t||e.lang===t)})[0];r.audioTrack=e.id,c(e)}else{var o,n=f();for(o in n)n.hasOwnProperty(o)&&n[o].label==t&&(n[o].enabled=!0,c(n[o]))}}),r)c(r.audioTracks[r.audioTrack]);else{var e,t=f();for(e in t)t.hasOwnProperty(e)&&t[e].enabled&&c(t[e])}}flowplayer.engine("hlsjs-lite").plugin(function(e){r=e.hls}),a.bind("ready",function(e,t){var a;jQuery(s).remove(),jQuery(l).remove(),r&&"application/x-mpegurl"==t.video.type&&(i=[],n=[],(a=r).levels.forEach(function(e){e=e.attrs.AUDIO;e&&i.indexOf(e)<0&&i.push(e),i.length&&(n=a.audioTracks.filter(function(e){return e.groupId===i[0]}))}),p())}),a.one("progress",function(){if("html5"==a.engine.engineName&&"application/x-mpegurl"==a.video.type){i=[],n=[];var e,t=f();for(e in t)t.hasOwnProperty(e)&&n.push({id:t[e].id,name:t[e].label});p()}})}),flowplayer(function(e,n){var r=-1,i=!1;e.on("error",function(e,t,a){var o;4==a.code&&"hlsjs"==t.engine.engineName&&(console.log("FV Player: HLSJS failed to play the video, switching to Flash HLS"),t.error=t.loading=!1,jQuery(n).removeClass("is-error"),jQuery(flowplayer.engines).each(function(e,t){"hlsjs"==flowplayer.engines[e].engineName&&(r=e,i=flowplayer.engines[e],delete flowplayer.engines[e])}),(o=(0<(a=void 0!==t.video.index?t.video.index:0)?t.conf.playlist[a]:t.conf.clip).sources).index=a,t.load({sources:o}),t.bind("unload error",function(){flowplayer.engines[r]=i}))})}),flowplayer(function(e,i){var l,t=e.conf.live_stream_reload||30,s=t,f=fv_flowplayer_translations.live_stream_retry;function c(e){e=Number(e);var t=Math.floor(e/86400),a=Math.floor(e%86400/3600),o=Math.floor(e%3600/60),e=Math.floor(e%60),n=fv_flowplayer_translations,t=0<t?(1==t?n.duration_1_day:n.duration_n_days).replace(/%s/,t):"";return t&&0<a&&(t+=", "),(t+=0<a?(1==a?n.duration_1_hour:n.duration_n_hours).replace(/%s/,a):"")&&0<o&&(t+=", "),(t+=0<o?(1==o?n.duration_1_minute:n.duration_n_minutes).replace(/%s/,o):"")&&0<e&&(t+=n.and),t+=0<e?(1==e?n.duration_1_second:n.duration_n_seconds).replace(/%s/,e):""}e.clearLiveStreamCountdown=function(){l&&(clearInterval(l),e.error=e.loading=!1,jQuery(i).removeClass("is-error"),jQuery(i).find(".fp-message.fp-shown").remove(),e.unload())},e.conf.flashls={manifestloadmaxretry:2},e.on("ready",function(){s=t,f=fv_flowplayer_translations.live_stream_retry}).on("progress",function(){s=10,f=fv_flowplayer_translations.live_stream_continue,clearInterval(l)}),e.on("error",function(e,n,r){setTimeout(function(){var e,t,a,o;(n.conf.clip.live||n.conf.live||r.video&&r.video.src.match(/\/\/vimeo.com\/event\//))&&(e=s,n.conf.clip.streaming_time?e=n.conf.clip.streaming_time-Math.floor(Date.now()/1e3):n.conf.clip.live_starts_in&&(e=n.conf.clip.live_starts_in),t=fv_flowplayer_translations.live_stream_starting.replace(/%d/,c(e)),f=f.replace(/%d/,c(e)),t=n.conf.clip.live_starts_in?t:f,clearInterval(l),1!==r.code&&2!==r.code&&4!==r.code||(i.className+=" is-offline",flowplayer.support.flashVideo&&n.one("flashdisabled",function(){i.querySelector(".fp-flash-disabled").style.display="none"}),(a=i.querySelector(".fp-ui .fp-message")).innerHTML=t,o=300<e?300:e,l=setInterval(function(){--e,0<--o&&a?a.querySelector("span").innerHTML=c(e):(clearInterval(l),n.error&&(n.error=n.loading=!1,(a=i.querySelector(".fp-ui .fp-message"))&&i.querySelector(".fp-ui").removeChild(a),i.className=i.className.replace(/\bis-(error|offline)\b/g,""),n.load()))},1e3)))},1)})}),flowplayer(function(e,t){var a;t=jQuery(t),flowplayer.engine("hlsjs-lite").plugin(function(e){a=e.hls}),e.on("ready",function(e,t){a&&t.conf.playlist.length&&"hlsjs-lite"!=t.engine.engineName&&a.destroy()})}),flowplayer(function(a,o){var n,r,i;function l(){r&&n&&"html5"==a.engine.engineName&&(1<++i?3<i&&(console.log("FV Player: iOS video element needs a push, triggering 'stalled'"),n.trigger("stalled")):(console.log("FV Player: iOS video element will trigger error after 'stalled' arrives"),n.one("stalled",function(){var e,t=a.video.time;if(a.video.type.match(/video\//))return console.log("FV Player: Running check of video file..."),(e=document.createElement("video")).src=a.video.src,e.onloadedmetadata=function(){i=0,console.log("FV Player: Video link works")},void(e.onerror=function(){console.log("FV Player: Video link issue!"),0<i&&a.trigger("error",[a,{code:4,video:a.video}])});setTimeout(function(){console.log(a.video.time,t),a.video.time!=t?console.log("FV Player: iOS video element continues playing, no need for error"):a.paused?console.log("FV Player: iOS video element paused, no need for error"):a.trigger("error",[a,{code:4,video:a.video}])},5e3)})))}(flowplayer.support.browser.safari||flowplayer.support.iOS)&&(o=jQuery(o),r=n=!1,i=0,a.on("ready",function(e,t,a){i=0,r=!1,"html5"==t.engine.engineName&&a.src.match(/\?/)&&((n=o.find("video")).data("fv-ios-recovery")||(n.on("waiting",l),n.data("fv-ios-recovery",!0)),t.one("progress",function(){r=!0}))}),a.bind("beforeseek",l))}),!function(e){var t,a,o=!1;"function"==typeof define&&define.amd&&(define(e),o=!0),"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&(module.exports=e(),o=!0),o||(t=window.Cookies,(a=window.Cookies=e()).noConflict=function(){return window.Cookies=t,a})}(function(){function v(){for(var e=0,t={};e<arguments.length;e++){var a,o=arguments[e];for(a in o)t[a]=o[a]}return t}return function e(u){function y(e,t,a){var o,n;if("undefined"!=typeof document){if(1<arguments.length){"number"==typeof(a=v({path:"/"},y.defaults,a)).expires&&((n=new Date).setMilliseconds(n.getMilliseconds()+864e5*a.expires),a.expires=n),a.expires=a.expires?a.expires.toUTCString():"";try{o=JSON.stringify(t),/^[\{\[]/.test(o)&&(t=o)}catch(e){}t=u.write?u.write(t,e):encodeURIComponent(t+"").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(e+"")).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var r,i="";for(r in a)a[r]&&(i+="; "+r,!0!==a[r]&&(i+="="+a[r]));return document.cookie=e+"="+t+i}e||(o={});for(var l=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,f=0;f<l.length;f++){var c=l[f].split("="),p=c.slice(1).join("=");this.json||'"'!==p.charAt(0)||(p=p.slice(1,-1));try{var d=c[0].replace(s,decodeURIComponent),p=u.read?u.read(p,d):u(p,d)||p.replace(s,decodeURIComponent);if(this.json)try{p=JSON.parse(p)}catch(e){}if(e===d){o=p;break}e||(o[d]=p)}catch(e){}}return o}}return(y.set=y).get=function(e){return y.call(y,e)},y.getJSON=function(){return y.apply({json:!0},[].slice.call(arguments))},y.defaults={},y.remove=function(e,t){y(e,"",v(t,{expires:-1}))},y.withConverter=e,y}(function(){})}),flowplayer(function(e,t){t=jQuery(t),window.learndash_video_data&&"local"==learndash_video_data.videos_found_provider&&t.closest("[data-video-progression=true]").length&&(LearnDash_disable_assets(!0),LearnDash_watchPlayers(),e.on("finish",function(e,t,a){"string"!=typeof t.video.click&&window.LearnDash_disable_assets(!1)}))}),flowplayer(function(e,t){e.bind("load",function(e,t,a){var o,n=jQuery(e.currentTarget);n.data("live")&&(o=setTimeout(function(){n.find(".fp-ui").append('<div class="fp-message">'+fv_flowplayer_translations.live_stream_failed+"</div>"),n.addClass("is-error")},1e4),jQuery(e.currentTarget).data("live_check",o))}).bind("ready",function(e,t,a){clearInterval(jQuery(e.currentTarget).data("live_check"))}).bind("error",function(e,t,a){e=jQuery(e.currentTarget);e.data("live")&&e.find(".fp-message").html(fv_flowplayer_translations.live_stream_failed_2)})}),!function(o){flowplayer(function(e,a){jQuery(a).hasClass("is-cva")||o(document).on("submit","#"+jQuery(a).attr("id")+" .mailchimp-form",function(e){e.preventDefault(),o(".mailchimp-response",a).remove(),o("input[type=submit]",a).attr("disabled","disabled").addClass("fv-form-loading");var t={action:"fv_wp_flowplayer_email_signup"};o("[name]",this).each(function(){t[this.name]=o(this).val()}),o.post(fv_player.ajaxurl,t,function(e){e=JSON.parse(e),o('<div class="mailchimp-response"></div>').insertAfter(".mailchimp-form",a),e.text.match(/already subscribed/)&&(e.status="ERROR"),"OK"===e.status?(o(".mailchimp-form input[type=text],.mailchimp-form input[type=email]",a).val(""),o(".mailchimp-response",a).removeClass("is-fv-error").html(e.text),setTimeout(function(){o(".wpfp_custom_popup",a).fadeOut()},2e3)):o(".mailchimp-response",a).addClass("is-fv-error").html(e.text),o("input[type=submit]",a).removeAttr("disabled").removeClass("fv-form-loading")})})})}(jQuery),"undefined"!=typeof fv_flowplayer_mobile_switch_array)for(var fv_flowplayer_mobile_switch_i in fv_flowplayer_mobile_switch_array)fv_flowplayer_mobile_switch_array.hasOwnProperty(fv_flowplayer_mobile_switch_i)&&fv_flowplayer_mobile_switch(fv_flowplayer_mobile_switch_i);function fv_flowplayer_browser_ff_m4v(e){flowplayer.support.browser&&flowplayer.support.browser.mozilla&&-1!=navigator.appVersion.indexOf("Win")&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if(flowplayer(function(n,e){var t,a;function o(e,t,a){var o;n.ready?(n.seek(a),(o=t).addClass("is-active"),setTimeout(function(){o.removeClass("is-active")},500)):n.toggle(),e.preventDefault()}flowplayer.support.touch&&(jQuery.fn.fv_single_double_click=function(o,n,r){return this.each(function(){var t=0,a=this;jQuery(this).on("click",function(e){1==++t&&setTimeout(function(){(1==t?o:n).call(a,e),t=0},r||300)})})},e=jQuery(e),t=jQuery('<div class="fv-fp-tap-left"><span>-10s</span></div>'),a=jQuery('<div class="fv-fp-tap-right"><span>+10s</span></div>'),t.fv_single_double_click(function(){n.toggle()},function(e){o(e,t,!!n.ready&&n.video.time-10)}),a.fv_single_double_click(function(){n.toggle()},function(e){o(e,a,!!n.ready&&n.video.time+10)}),e.find(".fp-ui").append(t).append(a))}),flowplayer(function(o,e){var n=(e=jQuery(e)).data("flowplayer-instance-id");flowplayer.audible_instance=-1,o.one("load",function(){setTimeout(function(){o.conf.splash=!1},0)}),o.on("ready",function(){var a=0==e.data("volume");a||(flowplayer.audible_instance=n),jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e=jQuery(this).data("flowplayer"),t=jQuery(this).data("flowplayer-instance-id");-1!=flowplayer.audible_instance&&t!=flowplayer.audible_instance&&t!=n&&e&&(e.ready?o.conf.multiple_playback?a||e.mute(!0,!0):e.playing&&e.pause():(e.clearLiveStreamCountdown(),e.unload()))})}).on("mute",function(e,t,a){a||flowplayer.audible_instance==n||(flowplayer(flowplayer.audible_instance).mute(!0,!0),flowplayer.audible_instance=n)}).on("resume",function(){o.muted||(flowplayer.audible_instance=n),o.conf.multiple_playback||jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e;n!=jQuery(this).data("flowplayer-instance-id")&&(e=jQuery(this).data("flowplayer"))&&e.playing&&e.pause()})})}),"undefined"!=typeof fv_flowplayer_browser_ff_m4v_array)for(var fv_flowplayer_browser_ff_m4v_i in fv_flowplayer_browser_ff_m4v_array)fv_flowplayer_browser_ff_m4v_array.hasOwnProperty(fv_flowplayer_browser_ff_m4v_i)&&fv_flowplayer_browser_ff_m4v(fv_flowplayer_browser_ff_m4v_i);function fv_flowplayer_browser_chrome_fail(o,n,r,i){jQuery("#wpfp_"+o).bind("error",function(e,t,a){!/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())||null==a||3!=a.code&&4!=a.code&&5!=a.code||(t.unload(),jQuery("#wpfp_"+o).attr("id","bad_wpfp_"+o),jQuery("#bad_wpfp_"+o).after('<div id="wpfp_'+o+'" '+n+' data-engine="flash"></div>'),jQuery("#wpfp_"+o).flowplayer({playlist:[[{mp4:r}]]}),i?jQuery("#wpfp_"+o).bind("ready",function(e,t){t.play()}):jQuery("#wpfp_"+o).flowplayer().play(0),jQuery("#bad_wpfp_"+o).remove())})}if("undefined"!=typeof fv_flowplayer_browser_chrome_fail_array)for(var fv_flowplayer_browser_chrome_fail_i in fv_flowplayer_browser_chrome_fail_array)fv_flowplayer_browser_chrome_fail_array.hasOwnProperty(fv_flowplayer_browser_chrome_fail_i)&&fv_flowplayer_browser_chrome_fail(fv_flowplayer_browser_chrome_fail_i,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].attrs,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].mp4,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].auto_buffer);function fv_flowplayer_browser_ie(e){(flowplayer.support.browser&&flowplayer.support.browser.msie&&9<=parseInt(flowplayer.support.browser.version,10)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if("undefined"!=typeof fv_flowplayer_browser_ie_array)for(var fv_flowplayer_browser_ie_i in fv_flowplayer_browser_ie_array)fv_flowplayer_browser_ie_array.hasOwnProperty(fv_flowplayer_browser_ie_i)&&fv_flowplayer_browser_ie(fv_flowplayer_browser_ie_i);function fv_flowplayer_browser_chrome_mp4(e){var t=window.navigator.appVersion.match(/Chrome\/(\d+)\./);null!=t&&(t=parseInt(t[1],10),(/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<28&&-1!=navigator.appVersion.indexOf("Win")||/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<27&&-1!=navigator.appVersion.indexOf("Linux")&&-1==navigator.userAgent.toLowerCase().indexOf("android"))&&jQuery("#wpfp_"+e).attr("data-engine","flash"))}function fv_flowplayer_amazon_s3(e,n){jQuery("#wpfp_"+e).bind("error",function(e,t,a){var o=new Date;4==a.code&&o.getTime()>fv_fp_utime+parseInt(n)&&jQuery(e.target).find(".fp-message").delay(500).queue(function(e){jQuery(this).html(fv_flowplayer_translations.video_expired),e()})})}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")&&-1==navigator.userAgent.toLowerCase().indexOf("android")||flowplayer(function(e,t){e.bind("error",function(e,t,a){10==a.code&&jQuery(e.target).find(".fp-message").html(fv_flowplayer_translations.unsupported_format)})}),jQuery(document).ready(function(){-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")||jQuery(window).trigger("load"),jQuery(".flowplayer").on("mouseleave",function(){jQuery(this).find(".fvp-share-bar").removeClass("visible"),jQuery(this).find(".embed-code").hide()})}),"undefined"!=typeof flowplayer&&flowplayer(function(e,o){o=jQuery(o);var n,r=!1,t=(flowplayer.engine("hlsjs-lite").plugin(function(e){n=e.hls}),e.conf.playlist.length?e.conf.playlist:[e.conf.clip]);function i(e){l();var t="Video is being processed",a="Please return later to see the actual video in this player.";e.pending_encoding_error?(t="Video unavailable",a="There was an error in the video encoding."):e.pending_encoding_progress&&(a+="<br /><br />("+e.pending_encoding_progress+" done)"),r=jQuery('<div class="fv-player-encoder-video-processing-modal"><div><h2>'+t+"</h2><p>"+a+"</p></div></div"),o.append(r)}function l(){r&&r.remove()}t[0]&&t[0].pending_encoding&&i(t[0]),e.on("load",function(e,t,a){if(a.pending_encoding)return i(a),n&&n.destroy(),!1;l()})}),Date.now||(Date.now=function(){return(new Date).getTime()}),function(){function b(e){if(e.id)return e.id;var t=(void 0!==e.sources_original&&void 0!==e.sources_original[0]?e.sources_original:e.sources)[0].src;return t=void 0!==e.sources_original&&void 0!==e.sources_original[0]?t:o(t)}function j(e,t){t.video.sources&&(t=b(t.video),T[t]=0,O[t]=0,w[t]=1)}function Q(e,t){var a,o,n="sendBeacon"in navigator,r=(!0!==e&&(e=!1),t&&void 0!==t||(t=function(){}),[]),i=[];for(a in T)T.hasOwnProperty(a)&&r.push({name:a,position:T[a],top_position:O[a],saw:void 0!==w[a]&&w[a]});for(o in A)A.hasOwnProperty(o)&&i.push({player:o,item:A[o]});if(i.length||D(F),!r.length)return D(S),D(P),void D(I);if("1"==flowplayer.conf.is_logged_in){if(n){try{var l,s={},f={},c={},p={};for(m in r)r.hasOwnProperty(m)&&(s[l=r[m].name]=r[m].position,f[l]=r[m].top_position,c[l]=r[m].saw);for(m in i)i.hasOwnProperty(m)&&(p[i[m].player]=i[m].item);N(S,E(s)),N(P,E(f)),N(I,E(c)),N(F,E(p))}catch(e){return}n=new FormData;return n.append("action","fv_wp_flowplayer_video_position_save"),n.append("videoTimes",encodeURIComponent(JSON.stringify(r))),n.append("playlistItems",encodeURIComponent(JSON.stringify(i))),navigator.sendBeacon(fv_player.ajaxurl,n),!1}return jQuery.ajax({type:"POST",async:e,url:fv_player.ajaxurl,complete:t,data:{action:"fv_wp_flowplayer_video_position_save",videoTimes:r,playlistItems:i}})}try{var d=V(x),u=V(C),d=d&&void 0!==d?JSON.parse(d):{},u=u&&void 0!==u?JSON.parse(u):{};for(m in r)r.hasOwnProperty(m)&&(d[r[m].name]=r[m].position);for(m in i)i.hasOwnProperty(m)&&(u[i[m].player]=i[m].item);var y=JSON.stringify(d),v=JSON.stringify(u),_=L(y),h=L(v);if(g<_)for(;g<_;)for(var m in d)if(d.hasOwnProperty(m)){delete d[m],y=JSON.stringify(d),_=L(y);break}if(g<h)for(;g<h;)for(var m in d)if(u.hasOwnProperty(m)){delete u[m],v=JSON.stringify(u),h=L(y);break}N(x,y),N(C,v)}catch(e){return}return!1}var k=null,g=2500,a=null,x="video_positions",C="player_playlist_item",S="video_positions_tmp",P="video_top_positions_tmp",F="player_playlist_item_tmp",I="video_saw_tmp",T=[],O=[],A=[],w=[],E=function(e){var t=JSON.stringify(e),a=L(t);if(g<a)for(;g<a;)for(var o in e)if(e.hasOwnProperty(o)){delete e[o],t=JSON.stringify(e),a=L(t);break}return t},L=function(e){return encodeURIComponent(e).length},V=function(e){return a?localStorage.getItem(e):Cookies.get(e)},N=function(e,t){return a?localStorage.setItem(e,t):Cookies.set(e,t)},D=function(e){a?localStorage.removeItem(e):Cookies.remove(e)},o=function(e){return e.replace(/(X-Amz-Algorithm=[^&]+&?)/gm,"").replace(/(X-Amz-Credential=[^&]+&?)/gm,"").replace(/(X-Amz-Date=[^&]+&?)/gm,"").replace(/(X-Amz-Expires=[^&]+&?)/gm,"").replace(/(X-Amz-SignedHeaders=[^&]+&?)/gm,"").replace(/(X-Amz-Signature=[^&]+&?)/gm,"")};if(flowplayer(function(o,e){if(void 0===o.conf.disable_localstorage){function r(){return!(o.live||o.video&&"string"==typeof o.video.click)}function t(e,t){!r()||(t=function(e){var t=b(e.video),a=e.video.position;if("1"!=flowplayer.conf.is_logged_in){var o=V(x);if(o&&void 0!==o)try{(o=JSON.parse(o))[t]&&(a=o[t])}catch(e){return}}return e.get_custom_end&&e.get_custom_end()<a&&(a=!1),a=e.get_custom_start&&0<e.get_custom_start()&&a<e.get_custom_start()?!1:a}(t))&&n(t)}function a(e,t){var a,o,n;r()&&t.video.sources&&(a=b(t.video),o=Math.round(t.video.time),T[a]=o,void 0===O[a]?(n=0,n=t.conf.playlist?t.conf.playlist[t.video.index]&&t.conf.playlist[t.video.index].sources[0]&&t.conf.playlist[t.video.index].sources[0].top_position?t.conf.playlist[t.video.index].sources[0].top_position:0:t.conf.clip.sources[0]&&t.conf.clip.sources[0].top_position?t.conf.clip.sources[0].top_position:0,O[a]=n):O[a]<o&&(O[a]=o),0<t.conf.playlist.length&&p&&(A[p]=t.video.index),60<=c++&&flowplayer.conf.closingPage&&(k&&k.abort(),k=Q(!0,function(){k=null}),c=0))}function n(e){var t,a;o.custom_seek?o.custom_seek(e):(t=0,a=setInterval(function(){20<++t&&clearInterval(a),o.loading||(o.seek(parseInt(e)),clearInterval(a))},10))}function i(e,t){var a=V(e),o=!1;if(a&&void 0!==a)try{if(void 0!==(a=JSON.parse(a))[t]){o=a[t],delete a[t];var n,r=!1;for(n in a)if(a.hasOwnProperty(n)){r=!0;break}r?N(e,JSON.stringify(a)):D(e)}return o}catch(e){}}function l(e,t){if(void 0!==t&&0!=t.conf.playlist.length){var a=-1;if(p)if("1"!=flowplayer.conf.is_logged_in){var o=V(C);if(o&&void 0!==o)try{(o=JSON.parse(o))[p]&&(a=o[p])}catch(e){return}}else"1"==flowplayer.conf.is_logged_in&&(a=0<t.conf.playlist.length&&i(F,p));0<=a&&!d&&(t.video&&"video/youtube"!=t.video.type&&t.play(a),d=!0,s.data("position_changed",1))}}var s=jQuery(e),f=flowplayer.conf.video_position_save_enable&&0!=s.data("save-position")||s.data("save-position"),c=0,p=!!s.data("player-id")&&s.data("player-id"),d=!1;if(f){if(V(F)&&s.removeData("playlist_start"),o.bind("finish",j),o.on("ready",function(){o.one("progress",t)}),o.bind("progress",a),o.bind("unload",function(){d=!1,o.one("ready",l)}),o.one("ready",l),jQuery(".fp-ui",e).on("click",function(){l()}),o.playlist_thumbnail_progress=function(e,t,a){o.get_custom_start&&0<o.get_custom_start(t)&&(a-=o.get_custom_start(t))<0&&(a=0);t=t.duration;(t=(t=o.get_custom_duration&&0<o.get_custom_duration()?o.get_custom_duration():t)||e.data("duration"))&&e.css("width",100*a/t+"%")},"1"==flowplayer.conf.is_logged_in){var u,y,v,_,h,m=0<o.conf.playlist.length,g=m?o.conf.playlist:[o.conf.clip],w=jQuery("[rel="+jQuery(e).attr("id")+"]");for(u in g)g.hasOwnProperty(u)&&(_=b(g[u]),y=i(S,_),v=i(P,_),_=i(I,_),y&&(m?(o.conf.playlist[u].sources[0].position=y,(h=jQuery("a",w).eq(u).find(".fvp-progress")).length&&o.playlist_thumbnail_progress(h,o.conf.playlist[u],y)):o.conf.clip.sources[0].position=y),v&&(!g[u].sources[0].top_position||g[u].sources[0].top_position<v)&&(m?o.conf.playlist[u].sources[0].top_position=v:o.conf.clip.sources[0].top_position=v),_&&(m?o.conf.playlist[u].sources[0].saw=!0:o.conf.clip.sources[0].saw=!0))}o.bind("finish",function(e,t){t.conf.playlist.length?t.conf.playlist[t.video.index].sources[0].saw=!0:t.conf.clip.sources[0].saw=!0})}}}),jQuery(window).on("beforeunload pagehide",function(){flowplayer.conf.closingPage||(flowplayer.conf.closingPage=!0,Q())}),null===(a=void 0===fv_flowplayer_conf.disable_localstorage&&a)){a=!0;try{localStorage.setItem("t","t"),"t"!==localStorage.getItem("t")&&(a=!1),localStorage.removeItem("t")}catch(e){a=!1}}}(jQuery),flowplayer(function(t,a){var o,n,r,i,l,s,f,c;function e(e){e.preventDefault(),e.stopPropagation(),l.hasClass("fp-active")?t.hideMenu(l[0]):(a.trigger("click"),t.showMenu(l[0]))}function p(e){e=e.clone();return e.find("i.dur").remove(),e.text()}a=jQuery(a),0!=t.conf.playlist.length&&(o=0,jQuery(t.conf.playlist).each(function(e,t){void 0===t.click&&o++}),o<2||(n=jQuery(".fp-playlist-external[rel="+a.attr("id")+"]"),r=jQuery('<strong class="fv-fp-list">Item 1.</strong>'),i=jQuery('<strong class="fv-fp-list-name">Item 1.</strong>'),l=jQuery('<div class="fp-menu fv-fp-list-menu"></div>').insertAfter(a.find(".fp-controls")),s=0,f=[],c=[],jQuery(t.conf.playlist).each(function(e,t){void 0===t.click&&(t=p(n.find("h4").eq(s)),l.append('<a data-index="'+e+'">'+(s+1)+". "+t+"</a>"),c[e]=t,f.push(e),s++)}),r.insertAfter(a.find(".fp-controls .fp-volume")).on("click",e),i.insertAfter(r).on("click",e),jQuery("a",l).on("click",function(){void 0!==t.conf.playlist[jQuery(this).data("index")-1]&&void 0!==t.conf.playlist[jQuery(this).data("index")-1].click?t.play(jQuery(this).data("index")-1):t.play(jQuery(this).data("index"))}),t.on("ready",function(e,t,a){l.find("a").removeClass("fp-selected");var o=l.find("a[data-index="+a.index+"]"),n=(o.addClass("fp-selected"),fv_flowplayer_translations.playlist_item_no);n=(n=n.replace(/%d/,f.indexOf(a.index)+1)).replace(/%s/,p(o.find("h4"))),r.html(n),i.html(f.indexOf(a.index)+1+". "+c[a.index])})))}),flowplayer(function(e,o){o=jQuery(o);var n,r=e.conf.playlist;e.bind("load",function(e,t,a){n=a.index}),e.bind("error",function(e,t,a){setTimeout(function(){if(0<r.length&&1==t.error){if(n=t.video.index,"1"==t.conf.video_checker&&r[n].video_checker&&0<r[n].video_checker.length)return console.log("FV Player: Video checker message present, stopping auto-advance to next playlist item"),!1;t.error=t.loading=!1,o.removeClass("is-error"),o.find(".fp-message.fp-shown").remove(),++n>r.length-1&&(n=0),console.log("FV Player: Playlist item failure, auto-advancing to "+(n+1)+". item"),t.play(n)}},1e3)})}),flowplayer(function(e,r){var i,l,s;function f(a){return a=[],jQuery(e.conf.playlist).each(function(e,t){a.push(e)}),a=function(e){for(var t,a,o=e.length;o;o--)t=Math.floor(Math.random()*o),a=e[o-1],e[o-1]=e[t],e[t]=a;return e}(a),console.log("FV Player Randomizer random seed:",a),a}((r=jQuery(r)).data("button-no_picture")||r.data("button-repeat")||r.data("button-rewind"))&&e.bind("ready",function(e,t){var a,o,n;void 0===l&&void 0===i&&(l=t.next,i=t.prev),!t.video.type.match(/^audio/)&&r.data("button-no_picture")&&0==r.find(".fv-fp-no-picture").length&&jQuery('<span class="fv-fp-no-picture"><svg viewBox="0 0 90 80" width="18px" height="18px" class="fvp-icon fvp-nopicture"><use xlink:href="#fvp-nopicture"></use></svg></span>').insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(".fp-engine",r).slideToggle(20),jQuery(this).toggleClass("is-active fp-color-fill"),r.toggleClass("is-no-picture")}),r.data("button-repeat")&&(0<t.conf.playlist.length&&0==r.find(".fv-fp-playlist").length?(n=fv_flowplayer_translations,a=jQuery('<strong class="fv-fp-playlist mode-normal"> <svg viewBox="0 0 80.333 80" width="18px" height="18px" class="fvp-icon fvp-replay-list"><title>'+n.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg> <svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-shuffle"><title>'+n.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg> <svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><title>'+n.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg> <span id="fvp-playlist-play" title="'+n.playlist_play_all+'">'+n.playlist_play_all_button+"</span> </strong>"),o=jQuery('<div class="fp-menu fv-fp-playlist-menu"> <a data-action="repeat_playlist"><svg viewBox="0 0 80.333 80" width="18px" height="18px" class="fvp-icon fvp-replay-list"><title>'+n.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg> <span class="screen-reader-text">'+n.playlist_replay_all+'</span></a> <a data-action="shuffle_playlist"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-shuffle"><title>'+n.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg> <span class="screen-reader-text">'+n.playlist_shuffle+'</span></a> <a data-action="repeat_track"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><title>'+n.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg> <span class="screen-reader-text">'+n.playlist_replay_video+'</span></a> <a class="fp-selected" data-action="normal"><span id="fvp-playlist-play" title="'+n.playlist_play_all+'">'+n.playlist_play_all_button+"</span></a> </div>").insertAfter(r.find(".fp-controls")),t.conf.playlist_shuffle=t.conf.track_repeat=!1,s=f(),t.conf.advance,a.insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),"auto"!==o.css("right")&&o.css({right:"auto",left:a.position().left+"px"}),o.hasClass("fp-active")?t.hideMenu(o[0]):(r.trigger("click"),t.showMenu(o[0]))}),jQuery("a",o).on("click",function(){jQuery(this).siblings("a").removeClass("fp-selected"),jQuery(this).addClass("fp-selected"),a.removeClass("mode-normal mode-repeat-track mode-repeat-playlist mode-shuffle-playlist");var e=jQuery(this).data("action");"repeat_playlist"==e?(a.addClass("mode-repeat-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.video.loop=t.conf.track_repeat=!1,t.conf.playlist_shuffle=!1):"shuffle_playlist"==e?(a.addClass("mode-shuffle-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.conf.playlist_shuffle=!0):"repeat_track"==e?(a.addClass("mode-repeat-track"),t.conf.track_repeat=t.video.loop=!0,t.conf.loop=t.conf.playlist_shuffle=!1):"normal"==e&&(a.addClass("mode-normal"),t.conf.track_repeat=t.video.loop=!1,t.conf.loop=t.conf.playlist_shuffle=!1),t.conf.playlist_shuffle?(t.next=function(){t.play(s.pop()),0==s.length&&(s=f())},t.prev=function(){t.play(s.shift()),0==s.length&&(s=f())}):(t.next=l,t.prev=i)}),t.conf.loop&&jQuery("a[data-action=repeat_playlist]",o).trigger("click"),t.on("progress",function(){t.video.loop=t.conf.track_repeat}),t.on("finish.pl",function(e,t){console.log("playlist_repeat",t.conf.loop,"advance",t.conf.advance,"video.loop",t.video.loop),t.conf.playlist_shuffle&&(t.play(s.pop()),0==s.length&&(s=f()))})):0==r.find(".fv-fp-track-repeat").length&&0==t.conf.playlist.length&&((n=jQuery('<strong class="fv-fp-track-repeat"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><use xlink:href="#fvp-replay-track"></use></svg></strong>')).insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(this).toggleClass("is-active fp-color-fill",t.video.loop),t.video.loop?t.video.loop=!1:t.video.loop=!0}),t.conf.loop&&n.addClass("is-active fp-color-fill"))),r.data("button-rewind")&&(0==r.find(".fv-fp-rewind").length&&((n=jQuery('<span class="fv-fp-rewind"><svg viewBox="0 0 24 24" width="21px" height="21px" class="fvp-icon fvp-rewind"><use xlink:href="#fvp-rewind"></use></svg></span>')).insertBefore(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time-10)}),n.toggle(!t.video.live)),0==r.find(".fv-fp-forward").length&&((n=jQuery('<span class="fv-fp-forward"><svg viewBox="0 0 24 24" width="21px" height="21px" class="fvp-icon fvp-forward"><use xlink:href="#fvp-forward"></use></svg></span>')).insertAfter(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time+10)}),n.toggle(!t.video.live)))}).bind("unload",function(){r.find(".fv-fp-no-picture").remove(),r.find(".fv-fp-playlist").remove(),r.find(".fv-fp-track-repeat").remove()})}),flowplayer(function(e,t){var a=jQuery(t),o=a.data("playlist_start");function n(){1!==a.data("position_changed")&&e.conf.playlist.length&&(o--,void 0===e.conf.playlist[o].click&&e.play(o),a.data("position_changed",1))}void 0!==o&&(e.bind("unload",function(){o=a.data("playlist_start"),a.removeData("position_changed"),e.one("ready",n)}),e.one("ready",n),jQuery(".fp-ui",t).on("click",function(){n(),a.data("position_changed",1)}))}),document.addEventListener("custombox:overlay:close",function(e){console.log("FV Player: Custombox/Popup anything ligtbox closed");var t=jQuery(this).find(".flowplayer");0!=t.length&&(console.log("FV Player: Custombox/Popup anything ligtbox contains a player"),t.each(function(e,t){var a=jQuery(t).data("flowplayer");void 0!==a&&(a.playing?(console.log("FV Player: Custombox/Popup anything ligtbox video pause"),a.pause()):a.loading&&a.one("ready",function(){console.log("FV Player: Custombox/Popup anything ligtbox video unload"),a.unload()}))}))}),flowplayer(function(t,e){t.bind("finish",function(){var e=t.video.time;t.video.loop&&t.one("pause",function(){e<=t.video.time&&t.resume()})})}),flowplayer(function(t,o){(o=jQuery(o)).find(".fp-logo").removeAttr("href"),o.hasClass("no-controlbar")&&((e=t.sliders.timeline).disable(!0),t.bind("ready",function(){e.disable(!0)})),jQuery(".fvfp_admin_error",o).remove(),o.find(".fp-logo, .fp-header").on("click",function(e){e.target===this&&o.find(".fp-ui").trigger("click")}),jQuery(".fvp-share-bar .sharing-facebook",o).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Facebook</title><path d="M11.9 5.2l-2.6 0 0-1.6c0-0.7 0.3-0.7 0.7-0.7 0.3 0 1.6 0 1.6 0l0-2.9 -2.3 0c-2.6 0-3.3 2-3.3 3.3l0 2 -1.6 0 0 2.9 1.6 0c0 3.6 0 7.8 0 7.8l3.3 0c0 0 0-4.2 0-7.8l2.3 0 0.3-2.9Z"/></svg>'),jQuery(".fvp-share-bar .sharing-twitter",o).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Twitter</title><path d="M16 3.1c-0.6 0.3-1.2 0.4-1.9 0.5 0.7-0.4 1.2-1 1.4-1.8 -0.6 0.4-1.3 0.6-2.1 0.8 -0.6-0.6-1.4-1-2.4-1 -2 0.1-3.2 1.6-3.2 4 -2.7-0.1-5.1-1.4-6.7-3.4 -0.9 1.4 0.2 3.8 1 4.4 -0.5 0-1-0.1-1.5-0.4l0 0.1c0 1.6 1.1 2.9 2.6 3.2 -0.7 0.2-1.3 0.1-1.5 0.1 0.4 1.3 1.6 2.2 3 2.3 -1.6 1.7-4.6 1.4-4.8 1.3 1.4 0.9 3.2 1.4 5 1.4 6 0 9.3-5 9.3-9.3 0-0.1 0-0.3 0-0.4 0.6-0.4 1.2-1 1.6-1.7Z"/></svg>'),jQuery(".fvp-share-bar .sharing-email",o).append('<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16" width="16" fill="#fff"><title>Email</title><path d="M8 10c0 0 0 0-1 0L0 6v7c0 1 0 1 1 1h14c1 0 1 0 1-1V6L9 10C9 10 8 10 8 10zM15 2H1C0 2 0 2 0 3v1l8 4 8-4V3C16 2 16 2 15 2z"/></svg>'),jQuery(".fp-header",o).prepend(jQuery(".fvp-share-bar",o)),t.conf.playlist.length&&(i=!0,2==(a=t.conf.playlist).length?(void 0!==a[0].click&&void 0===a[1].click&&(i=!1),void 0===a[0].click&&void 0!==a[1].click&&(i=!1)):3==a.length&&void 0!==a[0].click&&void 0===a[1].click&&void 0!==a[2].click&&(i=!1),i&&(a=jQuery('<a class="fp-icon fv-fp-prevbtn"></a>'),i=jQuery('<a class="fp-icon fv-fp-nextbtn"></a>'),o.find(".fp-controls .fp-playbtn").before(a).after(i),a.on("click",function(){t.trigger("prev",[t]),t.prev()}),i.on("click",function(){t.trigger("next",[t]),t.next()}))),"undefined"!=typeof fv_player_editor_conf&&o.on("click",".fvp-sharing > li",function(e){return e.preventDefault(),fv_player_notice(o,fv_player_editor_translations.link_notice,2e3),!1}),t.bind("pause resume finish unload ready",function(e,t){o.addClass("no-brand")}),t.one("ready",function(){o.find(".fp-fullscreen").clone().appendTo(o.find(".fp-controls"))}),t.on("ready",function(e,t,a){setTimeout(function(){jQuery(".fvp-share-bar",o).show(),jQuery(".fv-player-buttons-wrap",o).appendTo(jQuery(".fv-player-buttons-wrap",o).parent().find(".fp-ui"))},100)}),t.bind("finish",function(){var e=o.data("fv_redirect");e&&(void 0===t.video.is_last||t.video.is_last)&&(location.href=e)}),flowplayer.support.iOS&&11==flowplayer.support.iOS.version&&t.bind("error",function(e,t,a){4==a.code&&o.find(".fp-engine").hide()}),jQuery(document).on("contextmenu",".flowplayer",function(e){e.preventDefault()}),t.one("ready",function(e,t,a){o.find(".fp-chromecast").insertAfter(o.find(".fp-header .fp-fullscreen"))}),o.find(".fp-waiting").html('<div class="fp-preload"><b></b><b></b><b></b><b></b></div>');var e,n=o.attr("id"),r=!flowplayer.conf.native_fullscreen&&flowplayer.conf.mobile_alternative_fullscreen,a="fakefullscreen",i="fakefullscreen-exit";flowplayer.support.fullscreen||(a+=" fullscreen",i+=" fullscreen-exit"),t.bind(a,function(e,t){jQuery("#wpadminbar, .nc_wrapper").hide(),!r&&"fakefullscreen"!=e.type||"video/youtube"==t.video.type||(o.before('<span data-fv-placeholder="'+n+'"></span>'),o.appendTo("body"))}),t.bind(i,function(e,t,a){jQuery("#wpadminbar, .nc_wrapper").show(),!r&&"fakefullscreen-exit"!=e.type||jQuery("span[data-fv-placeholder="+n+"]").replaceWith(o)})}),function(){function e(p){p(function(o,n){var r,e,i,l,s;function f(e){return Math.round(100*e)/100}function c(t){r.find(".fp-speed",n)[0].innerHTML=t+"x",r.find(".fp-speed-menu a",n).forEach(function(e){r.toggleClass(e,"fp-selected",e.getAttribute("data-speed")==t),r.toggleClass(e,"fp-color",e.getAttribute("data-speed")==t)})}!jQuery(n).data("speedb")||(e=p.support).video&&e.inlineVideo&&(r=p.common,e=p.bean,i=r.find(".fp-ui",n)[0],l=r.find(".fp-controls",i)[0],s=o.conf.speeds,e.on(n,"click",".fp-speed",function(){var e=r.find(".fp-speed-menu",n)[0];r.hasClass(e,"fp-active")?o.hideMenu():o.showMenu(e)}),e.on(n,"click",".fp-speed-menu a",function(e){e=e.target.getAttribute("data-speed");o.speed(e)}),o.on("speed",function(e,t,a){1<s.length&&c(a)}).on("ready",function(e,t){var a;r.find(".fp-speed-menu",n).forEach(r.removeNode),r.find(".fp-speed",n).forEach(r.removeNode),p.support.android&&"html5"==t.engine.engineName&&"application/x-mpegurl"==t.video.type||1<(s=t.conf.speeds).length&&(l.appendChild(r.createElement("strong",{className:"fp-speed"},o.currentSpeed+"x")),a=r.createElement("div",{className:"fp-menu fp-speed-menu",css:{width:"auto"}},"<strong>Speed</strong>"),s.forEach(function(e){e=r.createElement("a",{"data-speed":f(e)},f(e)+"x");a.appendChild(e)}),i.appendChild(a),c(o.currentSpeed),jQuery(n).find(".fp-speed-menu strong").text(fv_flowplayer_translations.speed))}))})}"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e:"function"==typeof window.flowplayer&&e(window.flowplayer)}(),flowplayer(function(e,t){void 0===fv_flowplayer_conf.disable_localstorage&&(e.on("speed",function(e,t,a){try{window.localStorage.fv_player_speed=a}catch(e){}}),e.on("ready",function(){window.localStorage.fv_player_speed&&jQuery(t).find("strong.fp-speed").is(":visible")&&e.speed(parseFloat(window.localStorage.fv_player_speed)),0==jQuery(t).data("volume")&&e.mute(!0,!0)}))}),flowplayer(function(e,o){o=jQuery(o);var n=-1;function r(){return e.video.index||0}e.conf.fv_stats&&(e.conf.fv_stats.enabled||o.data("fv_stats")&&"no"!=o.data("fv_stats"))&&e.on("ready finish",function(e,t){t.one("progress",function(e,t){if(o.data("fv_stats_data")){try{var a=o.data("fv_stats_data")}catch(e){return!1}n!=r()&&(n=r(),jQuery.post(t.conf.fv_stats.url,{blog_id:t.conf.fv_stats.blog_id,video_id:t.video.id||0,player_id:a.player_id,post_id:a.post_id,tag:"play"}))}})}).on("finish",function(){n=-1})}),flowplayer(function(a,e){var t,o,n,r,i=jQuery(e),l=i.find(".fp-player"),e=i.data("fvsticky"),s=!1,f=i.data("ratio");if(a.is_sticky=!1,void 0===f&&(f=.5625),(s=1==flowplayer.conf.sticky_video&&void 0===e?!0:s)||e){if(!flowplayer.support.firstframe)return;var c=flowplayer.conf.sticky_place,p=flowplayer.conf.sticky_width,d=(p=""==p?380:p)*f;t=jQuery(window),n=(o=i).offset().top,r=Math.floor(n+o.outerHeight()/2),a.on("unload",function(){y(),i.removeClass("is-unSticky")}),t.on("resize",function(){v()?(n=o.offset().top,r=Math.floor(n+o.outerHeight()/2)):a.is_sticky&&y()}).on("scroll",function(){if(v())if(n=o.offset().top,r=Math.floor(n+o.outerHeight()/2),t.scrollTop()>r&&(a.loading||flowplayer.audible_instance==i.data("flowplayer-instance-id"))){if(0<jQuery("div.flowplayer.is-unSticky").length)return!1;u()}else y();else a.is_sticky&&y()})}function u(){l.hasClass("is-sticky-"+c)||(l.addClass("is-sticky"),l.addClass("is-sticky-"+c),0==i.find("a.fp-sticky").length&&i.find("div.fp-header").prepend('<a class="fp-sticky fp-icon"></a>'),l.css("width",p),l.css("height",d),l.css("max-height",d),a.is_sticky=!0,a.trigger("sticky",[a]),l.parent(".flowplayer").addClass("is-stickable"))}function y(){l.removeClass("is-sticky"),l.removeClass("is-sticky-"+c),l.css("width",""),l.css("height",""),l.css("max-height",""),l.parent(".flowplayer").removeClass("is-stickable"),a.is_sticky&&(a.is_sticky=!1,a.trigger("sticky-exit",[a]))}function v(){return jQuery(window).innerWidth()>=fv_flowplayer_conf.sticky_min_width}a.sticky=function(e,t){void 0===e&&(e=!a.is_sticky),t&&i.toggleClass("is-unSticky",!e),(e?u:y)()}}),jQuery(function(a){a(document).on("click","a.fp-sticky",function(){var e=a("div.flowplayer.is-stickable"),t=e.data("flowplayer"),e=(e.addClass("is-unSticky"),e.find(".fp-player"));e.removeClass("is-sticky"),e.removeClass("is-sticky-right-bottom"),e.removeClass("is-sticky-left-bottom"),e.removeClass("is-sticky-right-top"),e.removeClass("is-sticky-left-top"),e.css("width",""),e.css("height",""),e.css("max-height",""),t.is_sticky&&(t.is_sticky=!1,t.trigger("sticky-exit",[t]))}),a(document).on("click","div.flowplayer.is-unSticky",function(){a("div.flowplayer").removeClass("is-unSticky")})}),flowplayer(function(e,n){var r;n=jQuery(n),void 0===fv_flowplayer_conf.disable_localstorage&&(r=window.localStorage,e.on("ready",function(e,a,t){var o;n.find("strong.fp-cc").is(":visible")&&(r.fv_player_subtitle&&a.video.subtitles.length?"none"===r.fv_player_subtitle?a.disableSubtitles():a.video.subtitles.forEach(function(e,t){e.srclang===r.fv_player_subtitle&&a.loadSubtitles(t)}):(o=t.subtitles.filter(function(e){return e.fv_default})[0])&&a.loadSubtitles(t.subtitles.indexOf(o))),n.find(".fp-subtitle-menu").on("click",function(e){var t=e.target.getAttribute("data-subtitle-index");if("string"==typeof t)try{r.fv_player_subtitle=-1<t?a.video.subtitles[t].srclang:"none"}catch(e){}})}))}),flowplayer(function(e,a){a=jQuery(a),e.on("ready",function(e,t){a.find(".fp-subtitle-menu strong").text(fv_flowplayer_translations.closed_captions),a.find('.fp-subtitle-menu a[data-subtitle-index="-1"]').text(fv_flowplayer_translations.no_subtitles)})}),"undefined"!=typeof flowplayer&&"undefined"!=typeof fv_flowplayer_conf&&fv_flowplayer_conf.video_hash_links&&(flowplayer(function(a,o){var n,r,i,l,s,f;0<jQuery(o).find(".sharing-link").length&&(n=function(e,t){l=fv_player_get_video_link_hash(a),s=","+fv_player_time_hms(a.video.time),e&&t?(i=","+fv_player_time_hms_ms(e+a.get_custom_start()),r=","+fv_player_time_hms_ms(t+a.get_custom_start())):(r=f&&void 0!==a.get_ab_end()&&a.get_ab_end()?","+fv_player_time_hms_ms(a.get_ab_end()):"",i=f&&void 0!==a.get_ab_start()&&a.get_ab_start()?","+fv_player_time_hms_ms(a.get_ab_start()):""),jQuery(".sharing-link",o).attr("href",jQuery(".sharing-link",o).attr("href").replace(/#.*/,"")+"#"+l+s+i+r)},a.on("ready",function(e,t,a){t.fv_noUiSlider&&t.fv_noUiSlider.on("set",function(e){n(e[0],e[1])})}),a.on("progress",function(e,t){t.video.sources&&t.video.sources[0]&&n()}),a.on("abloop",function(e,t,a){f=a,t.playing||n()}),jQuery(".sharing-link",o).on("click",function(e){fv_player_clipboard(jQuery(this).attr("href"),function(){e.preventDefault(),fv_player_notice(o,fv_flowplayer_translations.link_copied,2e3)})}))}),jQuery(document).on("click",'a[href*="fvp_"]',function(){var e=jQuery(this);setTimeout(function(){0==e.parents(".fvp-share-bar").length&&fv_autoplay_exec()})})),flowplayer(function(a,o){o=jQuery(o);var n=flowplayer.bean,r=flowplayer.conf.default_volume,i=(0==r&&(r="0.5"),o.on("mousedown touchstart",".fp-volumebtn",function(e){var t=jQuery(this);0==a.volumeLevel&&t.one("click",function(){return a.volume(r),!1})}),o.on("mousedown touchstart mouseup touchend",".fp-volumebar",function(e){0!=a.volumeLevel&&(r=a.volumeLevel)}),a.on("volume",function(e,t){o.hasClass("is-mouseover")&&!t.muted&&0==t.volumeLevel&&(n.off(flowplayer.support.touch?o:document,"mousemove.sld touchmove.sld"),t.mute(!0))}),!1);function l(){o.removeClass("has-fp-message-muted"),o.find(".fp-message-muted").remove()}a.one("ready",function(e,t){o.hasClass("is-audio")||(i=!0)}),a.on("progress",function(e,t,a){i&&1<a&&(i=!1,(a=jQuery("root").find("video")).length&&!((a=a[0]).mozHasAudio||Boolean(a.webkitAudioDecodedByteCount)||Boolean(a.audioTracks&&a.audioTracks.length))||!t.muted&&0!=t.volumeLevel||"true"==localStorage.muted||"0"==localStorage.volume||((a=jQuery('<div class="fp-message fp-message-muted"><span class="fp-icon fp-volumebtn-notice"></span> '+fv_flowplayer_translations.click_to_unmute+"</div>")).on("click touchstart",function(){t.mute(!1),t.volume(1)}),o.find(".fp-ui").append(a),o.addClass("has-fp-message-muted"),setTimeout(l,5e3)))}),a.on("mute volume",function(){(!a.muted||0<a.volumeLevel)&&l()})}),"undefined"!=typeof flowplayer&&(fv_player_warning=function(e,t,a){var o=jQuery(e).prev(".fv-player-warning-wrapper");0==o.length&&(jQuery(e).before('<div class="fv-player-warning-wrapper">'),o=jQuery(e).prev(".fv-player-warning-wrapper")),0==o.find(".fv-player-warning-"+a).length&&(e=jQuery("<p style='display: none' "+(a?" class='fv-player-warning-"+a+"'":"")+">"+t+"</p>"),o.append(e),e.slideDown())},flowplayer(function(t,o){o=jQuery(o),navigator.userAgent.match(/iPhone.* OS [0-6]_/i)&&t.one("progress",function(e){void 0!==t.video.subtitles&&t.video.subtitles.length&&fv_player_warning(o,fv_flowplayer_translations.warning_iphone_subs)}),flowplayer.support.android&&flowplayer.support.android.version<5&&(flowplayer.support.android.samsung||flowplayer.support.browser.safari)&&fv_player_warning(o,fv_flowplayer_translations.warning_unstable_android,"firefox"),/Android 4/.test(navigator.userAgent)&&!/Firefox/.test(navigator.userAgent)&&(t.on("ready",function(e,t,a){setTimeout(function(){a.src&&a.src.match(/fpdl.vimeocdn.com/)&&(0==a.time||1==a.time)&&(fv_player_warning(o,fv_flowplayer_translations.warning_unstable_android,"firefox"),t.on("progress",function(e,t){o.prev().find(".fv-player-warning-firefox").remove()}))},1500)}),t.on("error",function(e,t,a){2==a.MEDIA_ERR_NETWORK&&a.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(o,fv_flowplayer_translations.warning_unstable_android,"firefox")})),/Safari/.test(navigator.userAgent)&&/Version\/5/.test(navigator.userAgent)&&t.on("error",function(e,t,a){a.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(o,fv_flowplayer_translations.warning_old_safari)});var e=flowplayer.support;e.android&&(e.android.samsung&&parseInt(e.browser.version)<66||e.browser.safari)&&t.on("error",function(e,t,a){fv_player_warning(o,fv_flowplayer_translations.warning_samsungbrowser,"warning_samsungbrowser")})}));
1
+ function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}if("undefined"!=typeof fv_flowplayer_conf){var FVAbrController,parseIOSVersion=function(e){e=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(e);return e&&1<e.length?parseFloat(e[e.length-1].replace("_","."),10):0};try{"object"==_typeof(window.localStorage)&&void 0!==window.localStorage.volume&&delete fv_flowplayer_conf.volume}catch(e){}flowplayer.conf=fv_flowplayer_conf,flowplayer.conf.fullscreen=!1,flowplayer.conf.chromecast=!1,flowplayer.conf.embed=!1,flowplayer.conf.share=!1,flowplayer.conf.analytics=!1,void 0!==fv_flowplayer_conf.disable_localstorage&&(flowplayer.conf.storage={});try{flowplayer.conf.key=atob(flowplayer.conf.key)}catch(e){}!flowplayer.support.android&&flowplayer.conf.dacast_hlsjs&&((FVAbrController=function(e){this.hls=e,this.nextAutoLevel=3}).prototype.nextAutoLevel=function(e){this.nextAutoLevel=e},FVAbrController.prototype.destroy=function(){},flowplayer.conf.hlsjs={startLevel:-1,abrController:FVAbrController}),flowplayer.support.iOS&&flowplayer.support.iOS.chrome&&0==flowplayer.support.iOS.version&&(flowplayer.support.iOS.version=parseIOSVersion(navigator.userAgent)),(flowplayer.support.iOS&&13<=parseInt(flowplayer.support.iOS.version)||!flowplayer.support.iOS&&flowplayer.support.browser.safari&&8<=parseInt(flowplayer.support.browser.version))&&(flowplayer.conf.hlsjs.safari=!0),flowplayer.support.fvmobile=!(flowplayer.support.firstframe&&!flowplayer.support.iOS&&!flowplayer.support.android);var fls=flowplayer.support;flowplayer.conf.mobile_native_fullscreen&&"ontouchstart"in window&&fls.fvmobile&&(flowplayer.conf.native_fullscreen=!0),"ontouchstart"in window&&(fls.android&&fls.android.version<4.4&&!(fls.browser.chrome&&54<fls.browser.version)&&(flowplayer.conf.native_fullscreen=!0),fls.iOS&&(fv_player_in_iframe()||fls.iOS.version<7)&&(flowplayer.conf.native_fullscreen=!0))}"undefined"!=typeof fv_flowplayer_translations&&(flowplayer.defaults.errors=fv_flowplayer_translations);var fv_player_did_autoplay=!1;function fv_player_videos_parse(e,a){try{var o=JSON.parse(e)}catch(e){return!1}var n;flowplayer.support.browser.safari&&(n=!1,jQuery(o.sources).each(function(e,t){if("video/webm"!=t.type)return!(n=!0)}),n&&jQuery(o.sources).each(function(e,t){"video/webm"==t.type&&delete o.sources[e]}));var r,e=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)").exec(location.search);return!(null!=e&&"yes"==e[1]||jQuery(window).width()<=480||jQuery(window).height()<=480)||null!=e&&"no"==e[1]||(r=!1,jQuery(o.sources).each(function(e,t){t.mobile&&(o.sources[e]=o.sources[0],o.sources[0]=t,r=!0),r&&jQuery(a).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>")})),a.trigger("fv_player_videos_parse",o),o}function fv_player_in_iframe(){try{return window.self!==window.top}catch(e){return!0}}function fv_escape_attr(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#039;"};return e.replace(/[&<>"']/g,function(e){return t[e]})}function fv_player_preload(){function e(){jQuery(".flowplayer.fp-is-embed").each(function(){var e=jQuery(this);e.hasClass("has-chapters")||e.hasClass("has-transcript")||0!=jQuery(".fp-playlist-external[rel="+e.attr("id")+"]").length||e.height(jQuery(window).height())})}if(flowplayer.support.touch&&jQuery(".fp-playlist-external.fv-playlist-design-2017").addClass("visible-captions"),flowplayer(function(n,r){localStorage.flowplayerTestStorage&&delete localStorage.flowplayerTestStorage;var e,t,i=(r=jQuery(r)).find(".fp-player"),l=!1,a=(r.hasClass("fixed-controls")&&r.find(".fp-controls").on("click",function(e){n.loading||n.ready||(e.preventDefault(),e.stopPropagation(),n.load())}),flowplayer.support.volume||flowplayer.support.autoplay||r.find(".fp-volume").hide(),0==r.data("volume")&&r.hasClass("no-controlbar")&&r.find(".fp-volume").remove(),jQuery(".fp-playlist-external[rel="+r.attr("id")+"]")),s=((!n.conf.playlist||0==n.conf.playlist.length)&&a.length&&0<a.find("a[data-item]").length?(e=[],a.find("a[data-item]").each(function(){(parsed=fv_player_videos_parse(jQuery(this).attr("data-item"),r))?e.push(parsed):jQuery(this).remove()}),n.conf.playlist=e,n.conf.clip=e[0]):n.conf.clip||(n.conf.clip=fv_player_videos_parse(jQuery(r).attr("data-item"),r)),jQuery("a",a).on("click",function(e){e.preventDefault(),l=!0;var e=jQuery(this),t=jQuery(".fp-playlist-external[rel="+r.attr("id")+"]"),t=jQuery("a",t).index(this),a=e.prev("a"),o=e.data("item");if(location.href.match(/wp-admin/)&&0<e.parents(".fv-player-editor-preview").length)return fv_flowplayer_conf.current_video_to_edit=t,e.parents(".fv-player-custom-video").find(".edit-video .fv-player-editor-button").trigger("click"),!1;if(a.length&&e.is(":visible")&&!a.is(":visible"))return a.trigger("click"),!1;if(!jQuery("#"+e.parent().attr("rel")).hasClass("dynamic-playlist")){if(fv_player_playlist_active(jQuery(".fp-playlist-external[rel="+r.attr("id")+"]"),this),n){if(n.error&&(n.pause(),n.error=n.loading=!1,r.removeClass("is-error"),r.find(".fp-message.fp-shown").remove()),!n.video||n.video.index==t)return;n.play(t)}a=(a=o.splash)||e.find("img").attr("src");p(r,i,o,a),r[0].getBoundingClientRect().bottom-100<0&&jQuery("html, body").animate({scrollTop:jQuery(r).offset().top-100},300)}}),jQuery("[rel="+r.attr("id")+"]")),o=!1,f=r.find(".fp-splash"),c=r.find(".fv-fp-splash-text");function p(e,t,a,o){e=e.find("img.fp-splash");o?(0==e.length&&(e=jQuery('<img class="fp-splash" />'),t.prepend(e)),e.attr("alt",a.fv_title?fv_escape_attr(a.fv_title):"video"),e.attr("src",o)):e.length&&e.remove()}n.bind("load",function(e,t,a){var o;t.conf.playlist.length&&(a.type.match(/^audio/)&&!l&&(o=(o=(a=(t=s.find("a").eq(a.index)).data("item")).splash)||t.find("img").attr("src"),p(r,i,a,o)),l=!1)}),n.bind("ready",function(e,t,a){setTimeout(function(){var e;-1<a.index&&0<s.length&&(e=jQuery("a",s).eq(a.index),fv_player_playlist_active(s,e),o=e.find(".fvp-progress"))},100),f=r.find(".fp-splash"),a.is_audio_stream||a.type.match(/^audio/)||(window.fv_player_pro&&window.fv_player_pro.autoplay_scroll||r.data("fvautoplay")?t.one("progress",function(){f.remove(),c.remove()}):(f.remove(),c.remove()))}),n.bind("unload",function(){jQuery(".fp-playlist-external .now-playing").remove(),jQuery(".fp-playlist-external a").removeClass("is-active");var e=i.find("iframe.fp-engine");e.length?(e.after(c),e.after(f)):(i.prepend(c),i.prepend(f)),o=!1}),n.bind("progress",function(e,t,a){o.length&&t.playlist_thumbnail_progress(o,t.video,a)}),n.bind("error-subtitles",function(){console.log("error-subtitles"),fv_player_notice(r,fv_flowplayer_translations[8],2e3)}),(a=jQuery(r).parent().find("div.fp-playlist-vertical[rel="+jQuery(r).attr("id")+"]")).length&&((t=function(e){var t=a.hasClass("fp-playlist-only-captions")?"height":"max-height";a.parents(".fp-playlist-text-wrapper").hasClass("is-fv-narrow")&&(t="max-height"),a.css(t,function(){var e=r.height();0==e&&(e=r.css("max-height"));return e}()),"max-height"==t&&a.css("height","auto")})(),jQuery(window).on("resize tabsactivate",function(){setTimeout(t,0)})),n.show_status=function(e){var a="";["loading","ready","playing","paused","seeking"].every(function(e,t){return n[e]&&(a+=" "+e),!0}),console.log("FV Player Status ("+e+")",a)},window.fv_player_loaded||(window.fv_player_loaded=!0,setTimeout(function(){jQuery(document).trigger("fv_player_loaded");var e=new CustomEvent("fv_player_loaded",[]);document.dispatchEvent(e)},100)),setTimeout(function(){r.trigger("fv_player_loaded")},10),r.data("error")&&(n.message(r.data("error")),r.find(".fp-controls").remove(),r.find(".fp-header").css("opacity",1).show(),n.conf.clip={sources:[{src:!1,type:"video/mp4"}]},n.on("load",function(e){e.preventDefault(),e.stopPropagation()}))}),window.self==window.top||location.href.match(/fv_player_preview/)||(e(),jQuery(window.self).resize(e)),"undefined"!=typeof fv_flowplayer_playlists)for(var t in fv_flowplayer_playlists)fv_flowplayer_playlists.hasOwnProperty(t)&&jQuery("#"+t).flowplayer({playlist:fv_flowplayer_playlists[t]});fv_player_load(),fv_autoplay_exec(),jQuery(document).ajaxComplete(function(){fv_player_load()}),jQuery(window).on("hashchange",fv_autoplay_exec)}function fv_player_load(n){n&&1<n.lenght&&console.log("FV Player: Can't use fv_player_load with more than a single forced element!");var r=!1;if((n||jQuery(".flowplayer")).each(function(e,t){var a=jQuery(t),t=a.data("flowplayer");if(t)n&&(r=t);else{n&&(a.find(".fp-preload, .fvfp_admin_error").remove(),a.attr("data-item-lazy")?(a.attr("data-item",a.attr("data-item-lazy")),a.removeAttr("item-lazy")):(playlist=jQuery("[rel="+a.attr("id")+"]"))&&playlist.find("a[data-item-lazy]").each(function(e,t){(t=jQuery(t)).attr("data-item",t.attr("data-item-lazy")),t.removeAttr("data-item-lazy")}));t=!1;if(a.attr("data-item"))t={clip:fv_player_videos_parse(a.attr("data-item"),a)};else if(playlist=jQuery("[rel="+a.attr("id")+"]")){if(0==playlist.find("a[data-item]").length)return;var o=[];playlist.find("a[data-item]").each(function(){(parsed=fv_player_videos_parse(jQuery(this).attr("data-item"),a))?o.push(parsed):jQuery(this).remove()}),t={playlist:o}}t&&(t=flowplayer.extend(t,a.data()),r=flowplayer(a[0],t),a.data("flowplayer",r))}}),jQuery(".fv-playlist-slider-wrapper").each(function(e,t){var a=jQuery(this).find("a");jQuery(this).find(".fp-playlist-external").css("width",a.outerWidth()*a.length)}),void 0!==jQuery().tabs&&(jQuery("body").removeClass("fv_flowplayer_tabs_hide"),jQuery(".fv_flowplayer_tabs_content").tabs()),n&&r)return r}function fv_player_playlist_active(e,t){e&&(jQuery("a",e).removeClass("is-active"),jQuery(".now-playing").remove()),$playlist=jQuery(e);var a,e=!1,t=(($item=jQuery(t)).addClass("is-active"),$playlist.hasClass("fv-playlist-design-2014"));(t&&0==$item.find("h4").length||!t)&&0==$item.find(".now-playing").length&&$item.prepend('<strong class="now-playing"><span>'+fv_flowplayer_translations.playlist_current+"</span></strong>"),$playlist.parent().find(".flowplayer").length||(e=!0),($playlist.hasClass("fp-playlist-vertical")||$playlist.hasClass("fp-playlist-horizontal")&&$playlist.hasClass("is-audio"))&&!function(e){var t=e.getBoundingClientRect(),a=t.top,o=t.height,n=a+o,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.bottom==!1)return;if(a<=t.top)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientHeight}($item.get(0))?(a=e?$playlist.parent():$playlist).animate({scrollTop:a.scrollTop()+($item.position().top-a.position().top)},750):$playlist.hasClass("fp-playlist-horizontal")&&!function(e){var t=e.getBoundingClientRect(),a=t.left,o=t.width,n=a+o,e=e.parentNode;do{if(t=e.getBoundingClientRect(),n<=t.right==!1)return;if(a<=t.left)return}while(e=e.parentNode,e!=document.body);return n<=document.documentElement.clientWidth}($item.get(0))&&(a=e?$playlist.parent():$playlist).animate({scrollLeft:a.scrollLeft()+($item.position().left-a.position().left)},750)}jQuery(document).ready(function(){var e=0,t=setInterval(function(){++e<1e3&&(window.fv_video_intelligence_conf&&!window.FV_Player_IMA||window.fv_vast_conf&&!window.FV_Player_IMA||window.fv_player_pro&&!window.FV_Flowplayer_Pro&&document.getElementById("fv_player_pro")!=fv_player_pro||window.fv_player_user_playlists&&!window.fv_player_user_playlists.is_loaded||window.FV_Player_JS_Loader_scripts_total&&window.FV_Player_JS_Loader_scripts_loaded<window.FV_Player_JS_Loader_scripts_total)||(clearInterval(t),fv_player_preload())},10)});var fv_fp_date=new Date,fv_fp_utime=fv_fp_date.getTime();function fv_parse_sharelink(e){var t="fvp_";if((e=e.replace("https?://[^./].","")).match(/(youtube.com)/))return t+e.match(/(?:v=)([A-Za-z0-9_-]*)/)[1];if(e.match(/(vimeo.com)|(youtu.be)/))return t+e.match(/(?:\/)([^/]*$)/)[1];var a=e.match(/(?:\/)([^/]*$)/);return a?t+a[1].match(/^[^.]*/)[0]:t+e}function fv_player_get_video_link_hash(e){var t=fv_parse_sharelink((void 0!==e.video.sources_original&&void 0!==e.video.sources_original[0]?e.video.sources_original:e.video.sources)[0].src);return t=void 0!==e.video.id?fv_parse_sharelink(e.video.id.toString()):t}function fv_player_time_hms(e){if(isNaN(e))return NaN;var t=parseInt(e,10),a=Math.floor(t/3600),o=Math.floor(t/60)%60,e=t%60;return a?a+="h":a="",a&&o<10?o="0"+o+"m":o?o+="m":o="",(a||o)&&e<10&&(e="0"+e),a+o+(e+="s")}function fv_player_time_hms_ms(e){if(isNaN(e))return NaN;var t=void 0!==(t=((e=parseFloat(e).toFixed(3))+"").split("."))[1]&&0<t[1]?t[1]+"ms":"";return fv_player_time_hms(e)+t}function fv_player_time_seconds(e,t){if(!e)return-1;var a=0;return e.match(/(\d+[a-z]{1,2})/g).forEach(function(e){e.endsWith("h")?a+=3600*parseInt(e):e.endsWith("m")?a+=60*parseInt(e):e.endsWith("s")&&!e.endsWith("ms")?a+=parseInt(e):e.endsWith("ms")&&parseInt(e)&&(a+=parseInt(e)/1e3)}),t?Math.min(a,t):a}function fv_autoplay_init(e,a,t,o,n){var r,i,l;fv_autoplay_exec_in_progress||(fv_autoplay_exec_in_progress=!0,(r=e.data("flowplayer"))&&(i=fv_player_time_seconds(t),n=fv_player_time_seconds(n),o=fv_player_time_seconds(o),e.parent().hasClass("ui-tabs-panel")&&(t=e.parent().attr("id"),jQuery("[aria-controls="+t+"] a").trigger("click")),e.find(".fp-player").attr("class").match(/\bis-sticky/)||(l=jQuery(e).offset().top-(jQuery(window).height()-jQuery(e).height())/2,window.scrollTo(0,l),r.one("ready",function(){window.scrollTo(0,l)})),e.hasClass("lightboxed")&&setTimeout(function(){jQuery("[href=\\#"+e.attr("id")+"]").trigger("click")},0),a?fv_player_video_link_autoplay_can(r,parseInt(a))?r.ready?fv_player_video_link_seek(r,i):(r.play(parseInt(a)),r.one("ready",function(){fv_player_video_link_seek(r,i,n,o)})):flowplayer.support.inlineVideo&&(r.one(r.playing?"progress":"ready",function(e,t){t.play(parseInt(a)),t.one("ready",function(){fv_player_video_link_seek(t,i,n,o)})}),e.find(".fp-splash").attr("src",jQuery("[rel="+e.attr("id")+"] div").eq(a).find("img").attr("src")),fv_player_in_iframe()||fv_player_notice(e,fv_flowplayer_translations[11],"progress")):r.ready?fv_player_video_link_seek(r,i):(fv_player_video_link_autoplay_can(r)?r.load():fv_player_in_iframe()||fv_player_notice(e,fv_flowplayer_translations[11],"progress"),r.one("ready",function(){fv_player_video_link_seek(r,i,n,o)}))))}function fv_player_video_link_seek(e,t,a,o){fv_autoplay_exec_in_progress=!1;var n=setInterval(function(){e.loading||((0<t||0<e.video.time)&&(e.custom_seek?e.custom_seek(t):e.seek(t)),a&&o&&e.trigger("link-ab",[e,o,a]),clearInterval(n))},10)}var fv_autoplay_exec_in_progress=!1;function fv_autoplay_exec(){var e,i,l,s,f,c=!0;"undefined"!=typeof flowplayer&&"undefined"!=typeof fv_flowplayer_conf&&fv_flowplayer_conf.video_hash_links&&window.location.hash.substring(1).length&&(e=window.location.hash.match(/\?t=/)?window.location.hash.substring(1).split("?t="):window.location.hash.substring(1).split(","),i=e[0],l=void 0!==e[1]&&e[1],s=void 0!==e[2]&&e[2],f=void 0!==e[3]&&e[3],jQuery(".flowplayer").each(function(){var e=jQuery(this),t=(e=e.hasClass("lightbox-starter")?jQuery(e.attr("href")):e).data("flowplayer");if(t){var a,o=void 0!==t.conf.playlist&&1<t.conf.playlist.length?t.conf.playlist:[t.conf.clip];for(a in o)if(o.hasOwnProperty(a)){var n=void 0!==o[a].id&&fv_parse_sharelink(o[a].id.toString());if(i===n&&c)return console.log("fv_autoplay_exec for "+n,a),fv_autoplay_init(e,parseInt(a),l,s,f),c=!1}for(a in o)if(o.hasOwnProperty(a)){var r=fv_parse_sharelink(o[a].sources[0].src);if(i===r&&c)return console.log("fv_autoplay_exec for "+r,a),fv_autoplay_init(e,parseInt(a),l,s,f),c=!1}}})),c&&flowplayer.support.firstframe&&jQuery(".flowplayer[data-fvautoplay]").each(function(){var e,t,a=jQuery(this),o=a.data("flowplayer"),n=a.attr("data-fvautoplay");!fv_player_did_autoplay&&n&&-1!=n&&((flowplayer.support.android||flowplayer.support.iOS)&&o&&"video/youtube"==o.conf.clip.sources[0].type?console.log("FV Player: Autoplay for YouTube not supported on Android and iOS"):(fv_player_did_autoplay=!0,o.conf.playlist.length&&!isNaN(parseFloat(n))&&isFinite(n)?o.play(parseInt(n)):o.load(),e=a.find(".fp-play").addClass("invisible"),t=a.find(".fp-controls").addClass("invisible"),o.one("progress",function(){e.removeClass("invisible"),t.removeClass("invisible")}),"muted"==n&&o.mute(!0,!0)))})}function fv_player_video_link_autoplay_can(e,t){return!("video/youtube"==(t?e.conf.playlist[t]:e.conf.clip).sources[0].type&&(flowplayer.support.iOS||flowplayer.support.android)||fv_player_in_iframe())&&flowplayer.support.firstframe}function fv_player_notice(e,t,a){var o=jQuery(".fvfp-notices",e),n=(o.length||(o=jQuery('<div class="fvfp-notices">'),jQuery(".fp-player",e).append(o)),jQuery('<div class="fvfp-notice-content">'+t+"</div></div>"));return o.append(n),"string"==typeof a&&jQuery(e).data("flowplayer").on(a,function(){n.fadeOut(100,function(){jQuery(this).remove()})}),0<a&&setTimeout(function(){n.fadeOut(2e3,function(){jQuery(this).remove()})},a),n}var fv_player_clipboard=function(e,t,a){if(navigator.clipboard&&"function"==typeof navigator.clipboard.writeText)navigator.clipboard.writeText(e).then(function(){t()},function(){a()});else try{(fv_player_doCopy(e)?t:a)()}catch(e){void 0!==a&&a(e)}};function fv_player_doCopy(e){var t,a,o,n=document.createElement("textarea"),e=(n.value=e,n.style.opacity=0,n.style.position="absolute",n.setAttribute("readonly",!0),document.body.appendChild(n),0<document.getSelection().rangeCount&&document.getSelection().getRangeAt(0));navigator.userAgent.match(/ipad|ipod|iphone/i)?(t=n.contentEditable,n.contentEditable=!0,(a=document.createRange()).selectNodeContents(n),(o=window.getSelection()).removeAllRanges(),o.addRange(a),n.setSelectionRange(0,999999),n.contentEditable=t):n.select();try{var r=document.execCommand("copy");return e&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(e)),document.body.removeChild(n),r}catch(e){throw new Error("Unsuccessfull")}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function is_ga_4(e){return!(void 0===e.conf.fvanalytics||!e.conf.fvanalytics||!e.conf.fvanalytics.startsWith("G-"))}function fv_player_track(e,t,a,o,n,r){if("object"!=_typeof(e)&&(r=n,n=o,o=a,a=t,t=e,e=!1),t=t||flowplayer.conf.fvanalytics,void 0===o&&(o="Unknown engine"),/fv_player_track_debug/.test(window.location.href)&&console.log("FV Player Track: "+a+" - "+o+" '"+n+"'",r),"undefined"!=typeof gtag)is_ga_4(e)?gtag("event",a,{video_current_time:e.video.time,video_provider:o,video_duration:e.video.duration,value:r||1}):gtag("event",a,{event_category:o,event_label:n,value:r||1});else if(t&&"undefined"!=typeof ga)ga("create",t,"auto",n,{allowLinker:!0}),ga("require","linker"),r?ga("send","event",a,o,n,r):ga("send","event",a,o,n);else if(t&&"undefined"!=typeof _gat){e=_gat._getTracker(t);if(void 0===e._setAllowLinker)return;e._setAllowLinker(!0),r?e._trackEvent(a,o,n,r):e._trackEvent(a,o,n)}flowplayer.conf.matomo_domain&&flowplayer.conf.matomo_site_id&&"undefined"!=typeof _paq&&(r?_paq.push(["trackEvent",a,o,n,r]):_paq.push(["trackEvent",a,o,n]))}function fv_player_track_name(e,t){e=e.attr("title");return(e=(e=e||void 0===t.fv_title?e:t.fv_title)||void 0===t.title?e:t.title)||void 0===t.src||(e=t.src.split("/").slice(-1)[0].replace(/\.(\w{3,4})(\?.*)?$/i,""),t.type.match(/mpegurl/)&&(e=t.src.split("/").slice(-2)[0].replace(/\.(\w{3,4})(\?.*)?$/i,"")+"/"+e)),e}flowplayer(function(a,r){var n,t,i,o,l;function e(){var e;"dash"==a.engine.engineName?((e=i[a.engine.dash.getQualityFor("video")]).qualityIndex!=o&&(o=e.qualityIndex,s(e.qualityIndex,i)),t.match(/dash_debug/)&&f(e.width,e.height,e.bitrate)):"hlsjs-lite"==a.engine.engineName&&(n.currentLevel!=o&&(o=n.currentLevel,s(n.currentLevel,n.levels)),t.match(/hls_debug/)&&(e=n.levels[n.currentLevel])&&f(e.width,e.height,e.bitrate))}function s(e,t){var a,o,n;t[e]&&(a=t[e].height,o=541,n=1e5,jQuery(t).each(function(e,t){720<=t.height&&t.height<1400&&(o=720),t.height<n&&(n=t.height),localStorage.FVPlayerHLSQuality==t.height&&(r.find("a[data-quality]").removeClass("fp-selected fp-color"),r.find("a[data-quality="+e+"]").addClass("fp-selected fp-color"))}),r.find("a[data-quality]").removeClass("is-current"),r.find("a[data-quality="+e+"]").addClass("is-current"),t=1400<=a?"4K":o<=a?"HD":360<=a&&n<a?"SD":"SD",r.find(".fp-qsel").html(t))}function f(e,t,a){l.html("Using "+e+"x"+t+" at "+Math.round(a/1024)+" kbps")}function c(){var a=r.find(".fp-qsel-menu");a.children().each(function(e,t){a.prepend(t)}),a.children().each(function(e,t){var a;/^NaNp/.test(jQuery(t).html())?(a=jQuery(t).html().match(/\((.*?)\)/))&&void 0!==a[1]&&jQuery(t).html(a[1]):jQuery(t).html(jQuery(t).html().replace(/\(.*?\)/,""))}),a.prepend(a.find("a[data-quality=-1]")),a.prepend(a.find("strong"))}r=jQuery(r),void 0===a.conf.disable_localstorage&&(flowplayer.engine("hlsjs-lite").plugin(function(e){(n=e.hls).on(Hls.Events.ERROR,function(e,t){"mediaError"==t.type&&"fragParsingError"==t.details&&1==t.fatal&&(n.destroy(),a.trigger("error",[a,{code:3}]),setTimeout(function(){r.removeClass("is-seeking"),r.addClass("is-paused")},0))}),flowplayer.support.browser.safari&&n.on(Hls.Events.KEY_LOADED,function(e){"hlsKeyLoaded"==e&&setTimeout(function(){a.loading&&(console.log("FV Player: Safari stuck loading HLS, resuming playback..."),a.resume())},0)});var o=!(!flowplayer.conf.hd_streaming||flowplayer.support.fvmobile)&&720;0==jQuery(e.root).data("hd_streaming")&&(o=!1),(o=localStorage.FVPlayerHLSQuality?localStorage.FVPlayerHLSQuality:o)&&n.on(Hls.Events.MANIFEST_PARSED,function(e,t){var a=!1;jQuery.each(t.levels,function(e,t){t.height==o&&(a=e)}),localStorage.FVPlayerHLSQuality||a||jQuery.each(t.levels,function(e,t){t.height>a&&(a=e)}),a&&(console.log("FV Player: Picked "+t.levels[a].height+"p quality"),n.startLevel=a,n.currentLevel=a)})}),r=jQuery(r),t=document.location.search,localStorage.FVPlayerDashQuality&&(a.conf.dash||(a.conf.dash={}),a.conf.dash.initialVideoQuality="restore"),r.on("click",".fp-qsel-menu a",function(){var e;"hlsjs-lite"==a.engine.engineName&&(-1==(e=jQuery(this).data("quality"))?localStorage.removeItem("FVPlayerHLSQuality"):(e=n.levels[e],localStorage.FVPlayerHLSQuality=e.height))}),localStorage.FVPlayerHLSQuality?(a.conf.hlsjs.startLevel=parseInt(localStorage.FVPlayerHLSQuality),a.conf.hlsjs.testBandwidth=!1,a.conf.hlsjs.autoLevelEnabled=!1):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&(a.conf.hlsjs.startLevel=3,a.conf.hlsjs.testBandwidth=!1,a.conf.hlsjs.autoLevelEnabled=!1),a.bind("quality",function(e,t,a){"dash"==t.engine.engineName&&(-1==a?localStorage.removeItem("FVPlayerDashQuality"):i[a]&&(localStorage.FVPlayerDashQuality=i[a].height))}),i=[],o=-1,a.bind("ready",function(e,t){var o;r.find(".fp-qsel-menu strong").text(fv_flowplayer_translations.quality),"dash"==t.engine.engineName?(i=t.engine.dash.getBitrateInfoListFor("video"),localStorage.FVPlayerDashQuality&&t.conf.dash.initialVideoQuality&&t.quality(t.conf.dash.initialVideoQuality),c()):"hlsjs-lite"==t.engine.engineName?(r.addClass("is-loading"),t.loading=!0,t.one("progress",function(){t.loading&&(r.removeClass("is-loading"),t.loading=!1)}),t.video.qualities&&2<t.video.qualities.length&&(o=-1,localStorage.FVPlayerHLSQuality?jQuery(t.video.qualities).each(function(e,t){if(t.value==localStorage.FVPlayerHLSQuality)return o=localStorage.FVPlayerHLSQuality,!1}):flowplayer.conf.hd_streaming&&!flowplayer.support.fvmobile&&jQuery(t.video.qualities).each(function(e,t){var a=parseInt(t.label);0<a&&-1==o&&720<=a&&a<=720&&(o=t.value)}),-1<(o=parseInt(o))&&r.one("progress",function(){setTimeout(function(){t.quality(o)})}),c())):t.video.sources_fvqs&&0<t.video.sources_fvqs.length&&t.video.src.match(/vimeo.*?\.mp4/)&&setTimeout(c,0),r.find("a[data-quality]").removeClass("is-current")}),(t.match(/dash_debug/)||t.match(/hls_debug/))&&(l=jQuery('<div class="fv-debug" style="background: gray; color: white; top: 10%; position: absolute; z-index: 1000">').appendTo(r.find(".fp-player"))),a.bind("ready progress",e),a.bind("quality",function(){setTimeout(e,0)}))}),flowplayer(function(o,n){var r=(n=jQuery(n)).attr("id"),i=!1;function l(){var t,a,e=n.attr("data-ad");if(void 0!==e&&e.length){try{e=JSON.parse(e)}catch(e){return}!i&&!n.hasClass("is-cva")&&n.width()>=parseInt(e.width)&&(e=(e=e.html).replace("%random%",Math.random()),i=jQuery('<div id="'+r+'_ad" class="wpfp_custom_ad">'+e+"</div>"),n.find(".fp-player").append(i),t=0,a=setInterval(function(){var e=i&&i.find(".adsbygoogle").height();(200<++t||0<e)&&clearInterval(a),e>n.height()&&i.addClass("tall-ad")},50),setTimeout(function(){n.find(".wpfp_custom_ad video").length&&o.pause()},500))}}function a(e){var t=n.attr("data-popup");if(void 0!==t&&t.length){try{t=JSON.parse(t)}catch(e){return}("finish"==e||t.pause||t.html.match(/fv-player-ppv-purchase-btn-wrapper/))&&0==n.find(".wpfp_custom_popup").length&&(n.addClass("is-popup-showing"),n.find(".fp-player").append('<div id="'+r+'_custom_popup" class="wpfp_custom_popup">'+t.html+"</div>"))}}n.data("end_popup_preview")&&jQuery(document).ready(function(){o.trigger("finish",[o])}),o.bind("ready",function(e,t){1==i.length&&(i.remove(),i=!1),n.data("ad_show_after")||l()}).bind("progress",function(e,t,a){a>n.data("ad_show_after")&&l()}).bind("finish",function(e,t){void 0!==t.video.index&&t.video.index+1!=t.conf.playlist.length||a(e.type)}).bind("pause",function(e,t){a(e.type)}).bind("resume unload seek",function(e,t){n.hasClass("is-popup-showing")&&(n.find(".wpfp_custom_popup").remove(),n.removeClass("is-popup-showing"))})}),jQuery(document).on("click",".fv_fp_close",function(){var e=jQuery(this).parents(".wpfp_custom_ad_content"),t=e.find("video");return e.fadeOut(),t.length&&t[0].pause(),!1}),jQuery(document).on("focus",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!0)}),jQuery(document).on("blur",".fv_player_popup input[type=text], .fv_player_popup input[type=email], .fv_player_popup textarea",function(){var e=jQuery(this).parents(".flowplayer").data("flowplayer");e&&e.disable(!1)}),flowplayer(function(o,s){var n,r,e,t,a,s=jQuery(s),i=flowplayer.bean,l=0,f=0,c=("undefined"==typeof ga&&o.conf.fvanalytics&&"undefined"==typeof _gat&&"undefined"==typeof gtag&&(is_ga_4(o)?jQuery.getScript({url:"https://www.googletagmanager.com/gtag/js?id="+o.conf.fvanalytics,cache:!0},function(){window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("config",o.conf.fvanalytics)}):jQuery.getScript({url:"https://www.google-analytics.com/analytics.js",cache:!0},function(){ga("create",o.conf.fvanalytics,"auto")})),!window._paq&&o.conf.matomo_domain&&o.conf.matomo_site_id&&(e="//"+o.conf.matomo_domain+"/",(a=window._paq=window._paq||[]).push(["setTrackerUrl",e+"matomo.php"]),a.push(["setSiteId",o.conf.matomo_site_id]),t=(a=document).createElement("script"),a=a.getElementsByTagName("script")[0],t.type="text/javascript",t.async=!0,t.src=e+"matomo.js",a.parentNode.insertBefore(t,a)),o.bind("progress",function(e,t,a){var o=t.video,n=o.duration,r=0,i=fv_player_track_name(s,o);if(n&&(19*n/20<a?r=4:3*n/4<a?r=3:n/2<a?r=2:n/4<a&&(r=1)),t.live&&(r=0),!s.data("fv_track_"+c[r])){for(var l in c)if(c.hasOwnProperty(l)){if(l==r)break;if(!s.data("fv_track_"+c[l]))return}s.trigger("fv_track_"+c[r].replace(/ /,"_"),[t,i]),s.data("fv_track_"+c[r],!0),fv_player_track(t,!1,"Video "+(s.hasClass("is-cva")?"Ad ":"")+c[r],t.engine.engineName+"/"+o.type,i)}}).bind("finish ready ",function(e,t){for(var a in c)c.hasOwnProperty(a)&&s.removeData("fv_track_"+c[a])}).bind("error",function(e,t,a){setTimeout(function(){var e;t.error&&((e=void 0!==t.video&&void 0!==t.video.src&&t.video)||void 0===t.conf.clip||void 0===t.conf.clip.sources||void 0===t.conf.clip.sources[0]||void 0===t.conf.clip.sources[0].src||(e=t.conf.clip.sources[0]),!(e=fv_player_track_name(s,e))||e.match(/\/\/vimeo.com\/\d/)||is_ga_4(t)||fv_player_track(t,!1,"Video "+(s.hasClass("is-cva")?"Ad ":"")+"error",a.message,e))},100)}),o.bind("load unload",p).bind("progress",function(e,t){t.seeking||(l+=f?+new Date-f:0,f=+new Date),n=n||setTimeout(function(){n=null,is_ga_4(t)||fv_player_track(t,!1,"Flowplayer heartbeat",t.engine.engineName+"/"+t.video.type,"Heartbeat",0)},6e5)}).bind("pause",function(){f=0}),o.bind("shutdown",function(){i.off(window,"unload",p)}),i.on(window,"unload",p),is_ga_4(o)?["Play","25 Percent Played","50 Percent Played","75 Percent Played","100 Percent Played"]:["start","first quartile","second quartile","third quartile","complete"]);function p(e,t,a){a=a||o.video,"load"===e.type&&(r=fv_player_track_name(s,a)),l&&(fv_player_track(o,!1,"Video / Seconds played",o.engine.engineName+"/"+o.video.type,r,Math.round(l/1e3)),l=0,n&&(clearTimeout(n),n=null))}o.get_time_played=function(){return l/1e3}}),flowplayer(function(o,n){var r=(n=jQuery(n)).find(".fp-player"),i=n.hasClass("no-volume"),l=n.hasClass("fp-mute"),s=n.hasClass("fp-full"),f=0;function t(){var e=r.width()||n.width(),t=o.video.index||0,a=(900<e?jQuery(".fp-subtitle",n).addClass("is-wide"):jQuery(".fp-subtitle",n).removeClass("is-wide"),n.toggleClass("is-tiny",e<400),n.toggleClass("is-small",e<600&&400<=e),e<480+35*f),t=(void 0!==o.fv_timeline_chapters_data&&void 0!==o.fv_timeline_chapters_data[t]&&(a=!0),s||n.toggleClass("fp-full",n.hasClass("has-abloop")||a),""),a=(e<400?t="is-tiny":e<600&&400<=e&&(t="is-small"),n.trigger("fv-player-size",[t]),r);(a=n.parent().hasClass("fp-playlist-vertical-wrapper")||n.parent().hasClass("fp-playlist-text-wrapper")?n.parent():a).width()<=560?a.addClass("is-fv-narrow"):a.removeClass("is-fv-narrow"),e<=320?n.addClass("no-volume fp-mute"):(i||n.removeClass("no-volume"),l||n.removeClass("fp-mute"))}t(),jQuery(window).on("resize",t),"fonts"in document&&o.one("load",function(){document.fonts.load("1em flowplayer")}),o.on("ready fullscreen fullscreen-exit sticky sticky-exit",function(e){setTimeout(function(){f=n.find(".fp-controls > strong:visible").length+n.find(".fp-controls > .fp-icon:visible").length,t()},0)}),o.on("unload pause finish error",function(){"undefined"!=typeof checker&&clearInterval(checker)})}),jQuery(window).on("resize tabsactivate",function(){jQuery(".fp-playlist-external").each(function(){var e=jQuery(this);900<=e.parent().width()?e.addClass("is-wide"):e.removeClass("is-wide")})}).trigger("resize"),flowplayer(function(e,t){e.bind("ready",function(){/Chrome/.test(navigator.userAgent)&&54<parseFloat(/Chrome\/(\d\d)/.exec(navigator.userAgent)[1],10)&&(e.video.subtitles?jQuery(t).addClass("chrome55fix-subtitles"):jQuery(t).addClass("chrome55fix"))});var a,o=(t=jQuery(t)).css("background-image");(o=o&&o.replace(/url\((['"])?(.*?)\1\)/gi,"$2").split(","))&&o[0].match(/^(https?:)?\/\//)&&((a=new Image).src=o[0],o=a.height/a.width,a=t.height()/t.width(),Math.abs(a-o)<.05&&t.css("background-size","cover"))}),function(e){e(window).on("resize",function(){e("iframe[id][src][height][width]").each(function(){e(this).attr("id").match(/(fv_vimeo_)|(fv_ytplayer_)/)&&e(this).width()<=e(this).attr("width")&&e(this).height(e(this).width()*e(this).attr("height")/e(this).attr("width"))}),jQuery(".wistia_embed").each(function(){e(this).height(e(this).width()*e(this).data("ratio"))})}).trigger("resize")}(jQuery),jQuery(document).on("tabsactivate",".fv_flowplayer_tabs_content",function(e,t){var a=jQuery(t.oldPanel).find(".flowplayer").data("flowplayer");void 0!==a&&a.pause(),jQuery(".flowplayer",t.newPanel).data("flowplayer").load()}),flowplayer(function(t,o){o=jQuery(o);var e=flowplayer.bean;o.hasClass("is-audio")&&(e.off(o[0],"mouseenter"),e.off(o[0],"mouseleave"),o.removeClass("is-mouseout"),o.addClass("fixed-controls").addClass("is-mouseover"),t.on("error",function(e,t,a){jQuery(".fp-message",o).html(jQuery(".fp-message",o).html().replace(/video/,"audio"))}),o.on("click",function(e){t.ready||(e.preventDefault(),e.stopPropagation(),t.load())}))}),flowplayer(function(f,c){var t,r,a,i,e,l,n;function o(){}function s(e){console.log("FV Player: Chromecast listener",e),e===chrome.cast.ReceiverAvailability.AVAILABLE&&(flowplayer.conf.chromecast_available=!0)}function p(){}function d(){console.log("chromecast onError")}function u(){clearInterval(a),a=null,f.release(),l.toggleClass(c,"is-chromecast",!1),l.toggleClass(i,"fp-active",!1)}function y(){var e=!1,t=f.video.sources_fvqs||f.video.sources;for(o in t){var a=t[o].type;if("video/mp4"==a||"video/fv-mp4"==a||"application/dash+xml"==a){e=t[o];break}}if(!e)for(var o in t)if("application/x-mpegurl"==t[o].type){e=t[o];break}if(f.video.fvhkey&&!f.conf.hls_cast)return!1;if(e){var n,r=!1,i=["fullhd","hd","md","sd"];for(n in i){var l=new RegExp("-"+i[n]);for(o in f.video.sources_fvqs){var s=f.video.sources_fvqs[o];if(s.src.match(l)&&"video/mp4"==s.type){r=s;break}}if(r){e=r;break}}}return e}function v(){var o,e=y();e&&(o=[],f.video.subtitles&&f.video.subtitles.forEach(function(e,t){e.src.match(/\.srt/)&&console.log("FV Player: Chromecast doesn't support SRT subtitles");var a=new chrome.cast.media.Track(t,chrome.cast.media.TrackType.TEXT);a.trackContentId=e.src,a.trackContentType="text/vtt",a.subtype=chrome.cast.media.TextTrackType.SUBTITLES,a.name=e.label,a.language=e.srclang+"-"+t,a.customData=null,o.push(a)}),(e=new chrome.cast.media.MediaInfo(e.src,e.type)).tracks=o,e=new chrome.cast.media.LoadRequest(e),f.live||(e.currentTime=f.video.time),clearInterval(a),a=!1,r.loadMedia(e,_,function(e){console.log("onMediaError",e)}))}function _(o){m(o),o.addUpdateListener(function(e){r&&(a=a||setInterval(function(){f.trigger("progress",[f,o.getEstimatedTime()]),o.activeTrackIds.forEach(function(a){jQuery.each(o.media.tracks,function(e,t){if(t.trackId==a&&"AUDIO"==t.type)return h("data-audio",t.language)||h("data-lang",t.language),!1})})},500),e&&(l.toggleClass(c,"is-chromecast",!0),l.toggleClass(i,"fp-active",!0),f.hijack({pause:function(){console.log("hijacked pause!"),o.pause()},resume:function(){if(f.finished)return clearInterval(a),a=null,f.release(),void v();o.play()},seek:function(e){var t=new chrome.cast.media.SeekRequest;t.currentTime=e,o.seek(t)}})),e=o.playerState,f.paused&&e===chrome.cast.media.PlayerState.PLAYING&&f.trigger("resume",[f]),f.playing&&e===chrome.cast.media.PlayerState.PAUSED&&f.trigger("pause",[f]),f.seeking&&e===chrome.cast.media.PlayerState.BUFFERING&&(n=!0),f.seeking&&e===chrome.cast.media.PlayerState.PLAYING&&n&&(n=!1,f.trigger("seek",[f])),e==chrome.cast.media.PlayerState.IDLE&&o.idleReason==chrome.cast.media.IdleReason.FINISHED&&f.trigger("finish",[f]),l.toggleClass(c,"is-loading",e===chrome.cast.media.PlayerState.BUFFERING))})}function h(a,o){var e=jQuery(c).find(".fv-fp-hls-menu a"),n=!1;return e.each(function(e,t){jQuery(t).attr(a)===o?(jQuery(t).addClass("fp-selected"),n=!0):jQuery(t).removeClass("fp-selected")}),n}function m(e){console.log(e.media.tracks);var a=jQuery(c).find(".fv-fp-hls-menu [data-audio].fp-selected").data("audio"),o=jQuery(c).find(".fv-fp-hls-menu [data-audio].fp-selected").data("lang"),n=jQuery(c).find(".fp-subtitle-menu [data-subtitle-index].fp-selected").data("subtitle-index"),r=-1<n&&f.video.subtitles[n].srclang,i=!1,l=!1,t=[],s=(jQuery.each(e.media.tracks,function(e,t){t.language==a&&"AUDIO"==t.type&&(i=t),t.language==r+"-"+n&&"TEXT"==t.type&&(l=t)}),i||jQuery.each(e.media.tracks,function(e,t){if(t.language==o&&"AUDIO"==t.type)return i=t,!1}),"");i&&(t.push(i.trackId),s+=i.language+" audio"),l&&(t.push(l.trackId),s&&(s+=" "),s+=l.language+" subtitles"),t&&(t=new chrome.cast.media.EditTracksInfoRequest(t),e.editTracksInfo(t,function(){console.log("FV Player: Chromecast "+s+" loaded")},function(){console.log("FV Player: Chromecast "+s+" failed")}))}f.conf.fv_chromecast&&(window.__onGCastApiAvailable||(jQuery.getScript({url:"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js",cache:!0}),window.__onGCastApiAvailable=function(e){e&&(e=t.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,e=new chrome.cast.SessionRequest(e),e=new chrome.cast.ApiConfig(e,o,s),chrome.cast.initialize(e,p,d))}),t=f.conf.chromecast||{},e=flowplayer.bean,l=flowplayer.common,n=!1,f.bind("ready",function(e,t,a){var o,n;r?y()?(t.one("progress",function(e,t){t.release(),t.pause(),t.mute(!1,!0),v()}),t.mute(!0,!0)):(r.stop(),r=null,u(),jQuery(i).hide()):flowplayer.conf.chromecast_available&&(y()?((t=l.find(".fp-header",c)[0])&&(l.find(".fp-chromecast",t).forEach(l.removeNode),l.find(".fp-chromecast-engine",c).forEach(l.removeNode),i=l.createElement("a",{class:"fp-chromecast fp-icon",title:"Play on Cast device"}),t.appendChild(i),t=l.createElement("div",{class:"fp-chromecast-engine"}),o=l.createElement("p",{class:"fp-chromecast-engine-status"}),n=l.createElement("p",{class:"fp-chromecast-engine-icon"}),t.appendChild(n),t.appendChild(o),(n=l.find(".fp-engine",c)[0])?n.parentNode.insertBefore(t,n):l.prepend(l.find(".fp-player",c)[0]||c,t)),jQuery(i).show()):(FV_Flowplayer_Pro.log("FV Player: Can't find media source suitable for Chromecast!"),jQuery(i).hide()))}),e.on(c,"click",".fp-chromecast",function(e){var t;if(e.preventDefault(),r)return f.trigger("pause",[f]),r.media[0].media&&(t=r.media[0].getEstimatedTime(),setTimeout(function(){f.seek(t)},0)),r.stop(),r=null,void u();f.playing&&f.pause(),chrome.cast.requestSession(function(e){jQuery(c).addClass("is-loading");e=(r=e).receiver.friendlyName;l.html(l.find(".fp-chromecast-engine-status",c)[0],"Playing on device "+e),v()},function(e){console.error("requestSession error",e)})}),e.on(c,"click",".fv-fp-hls-menu [data-audio], .fp-subtitle-menu [data-subtitle-index]",function(){if(r&&r.media[0].media)return m(r.media[0]),!1}),jQuery(window).on("unload",function(){r&&r.stop()}))}),jQuery(document).on("mfpClose",function(){void 0!==jQuery(".flowplayer").data("flowplayer")&&jQuery(".flowplayer").data("flowplayer").unload()}),jQuery(document).on("click",".vc_tta-tab a",function(){var e=jQuery(".flowplayer.is-playing").data("flowplayer");e&&e.pause()}),flowplayer(function(e,t){t=jQuery(t),e.bind("ready",function(){setTimeout(function(){var e=jQuery("video",t);0<e.length&&e.prop("autoplay",!1)},100),t.find("video.fp-engine").addClass("intrinsic-ignore")})}),jQuery(".flowplayer").on("ready",function(e,t){/BB10/.test(navigator.userAgent)&&t.fullscreen()});var fv_flowplayer_safety_resize_arr=Array();function fv_flowplayer_safety_resize(){var t=!1;jQuery(".flowplayer").each(function(){if(jQuery(this).is(":visible")&&!jQuery(this).hasClass("lightboxed")&&!jQuery(this).hasClass("lightbox-starter")&&!jQuery(this).hasClass("is-audio")&&(jQuery(this).width()<30||jQuery(this).height()<20)){t=!0;for(var e=jQuery(this);(jQuery(e).width()<30||jQuery(e).width()==jQuery(this).width())&&0!=jQuery(e).parent().length;)(e=jQuery(e).parent()).hasClass("ld-video")&&(""==e[0].style.height&&e.css("height","auto"),0<parseInt(e.css("padding-bottom"))&&e.css("padding-bottom","0"));jQuery(this).width(jQuery(e).width()),jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio"))),fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]=e}}),t&&jQuery(window).resize(function(){jQuery(".flowplayer").each(function(){jQuery(this).hasClass("lightboxed")||jQuery(this).hasClass("lightbox-starter")||fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")]&&(jQuery(this).width(fv_flowplayer_safety_resize_arr[jQuery(this).attr("id")].width()),jQuery(this).height(parseInt(jQuery(this).width()*jQuery(this).attr("data-ratio"))))})})}void 0!==flowplayer.conf.safety_resize&&flowplayer.conf.safety_resize&&jQuery(document).ready(function(){setTimeout(function(){fv_flowplayer_safety_resize()},10)});var fv_player_warning,isIE11=!!navigator.userAgent.match(/Trident.*rv[ :]*11\./);function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fv_flowplayer_mobile_switch(e){var t,a=new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)").exec(location.search);!(null!=a&&"yes"==a[1]||jQuery(window).width()<=480||jQuery(window).height()<=480)||null!=a&&"no"==a[1]||(t=!1,jQuery("#wpfp_"+e+" video source").each(function(){jQuery(this).attr("id")!="wpfp_"+e+"_mobile"&&(t=!0,jQuery(this).remove())}),t&&jQuery("#wpfp_"+e).after('<p class="fv-flowplayer-mobile-switch">'+fv_flowplayer_translations.mobile_browser_detected_1+' <a href="'+document.URL+'?fv_flowplayer_mobile=no">'+fv_flowplayer_translations.mobile_browser_detected_2+"</a>.</p>"))}if(isIE11&&(jQuery(document).ready(function(){jQuery(".fp-waiting").hide()}),flowplayer(function(e,t){e.bind("load",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("beforeseek",function(e){jQuery(e.currentTarget).find(".fp-waiting").show()}).bind("progress",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("seek",function(e){jQuery(e.currentTarget).find(".fp-waiting").hide()}).bind("fullscreen",function(e){jQuery("#wpadminbar").hide()}).bind("fullscreen-exit",function(e){jQuery("#wpadminbar").show()})})),flowplayer.support.browser&&flowplayer.support.browser.msie&&parseInt(flowplayer.support.browser.version,10)<9&&jQuery(".flowplayer").each(function(){jQuery(this).css("width",jQuery(this).css("max-width")),jQuery(this).css("height",jQuery(this).css("max-height"))}),location.href.match(/elementor-preview=/)?(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)):location.href.match(/brizy-edit-iframe/)&&(console.log("FV Player: Brizy editor is active"),setInterval(fv_player_load,1e3)),window.DELEGATE_NAMES&&flowplayer(function(e,t){fv_player_notice(t,fv_flowplayer_translations.chrome_extension_disable_html5_autoplay)}),flowplayer(function(e,t){flowplayer.bean.off(t,"contextmenu")}),location.href.match(/elementor-preview=/)&&(console.log("FV Player: Elementor editor is active"),setInterval(fv_player_load,1e3)),flowplayer(function(a,o){void 0!==(o=jQuery(o)).data("fv-embed")&&o.data("fv-embed")&&"false"!=o.data("fv-embed")&&(a.embedCode=function(){a.video;var e=o.width(),t=o.height();return t+=2,(o.hasClass("has-chapters")||o.hasClass("has-transcript"))&&(t+=300),0<jQuery(".fp-playlist-external[rel="+o.attr("id")+"]").length&&(t+=170),'<iframe src="'+(o.data("fv-embed")+"#"+fv_player_get_video_link_hash(a))+'" allowfullscreen width="'+e+'" height="'+t+'" frameborder="0" style="max-width:100%"></iframe>'})}),jQuery(document).on("click",".flowplayer .embed-code-toggle",function(){var e=jQuery(this).closest(".flowplayer");if("undefined"!=typeof fv_player_editor_conf)return fv_player_notice(e,fv_player_editor_translations.embed_notice,2e3),!1;var t=jQuery(this),a=t.parents(".flowplayer"),e=a.data("flowplayer");return"function"==typeof e.embedCode&&a.find(".embed-code textarea").val(e.embedCode()),fv_player_clipboard(a.find(".embed-code textarea").val(),function(){fv_player_notice(a,fv_flowplayer_translations.embed_copied,2e3)},function(){t.parents(".fvp-share-bar").find(".embed-code").toggle(),t.parents(".fvp-share-bar").toggleClass("visible")}),!1}),flowplayer(function(o,n){var r,i,l,s,f,c,p,e,d;0!=jQuery(n).data("fullscreen")&&(o.one("ready",function(e,t,a){0==jQuery(n).find(".fp-fullscreen").length&&jQuery(n).find(".fp-header").append('<a class="fp-fullscreen fp-icon"></a>')}),r="fullscreen",i="fullscreen-exit",l=flowplayer.support.fullscreen,s=window,p=flowplayer.bean,o.fullscreen=function(e){if(!o.disabled){var t=d.find("video.fp-engine",n)[0];if(flowplayer.conf.native_fullscreen&&t&&flowplayer.support.iOS)return o.trigger(r,[o]),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===t&&(p.off(document,".nativefullscreen"),p.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(p.off(document,".nativefullscreen"),o.trigger(i,[o]))}))}),t.webkitEnterFullScreen(),void p.one(t,"webkitendfullscreen",function(){p.off(document,"fullscreenchange.nativefullscreen"),o.trigger(i,[o]),d.prop(t,"controls",!0),d.prop(t,"controls",!1)});var a=jQuery(n).find(".fp-player")[0];return(e=void 0===e?!o.isFullscreen:e)&&(c=s.scrollY,f=s.scrollX),l?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof a[e]&&(a[e]({navigationUI:"hide"}),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||a[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):o.trigger(e?r:i,[o]),o}},d=flowplayer.common,o.on("mousedown.fs",function(){+new Date-e<150&&o.ready&&o.fullscreen(),e=+new Date}),o.on(r,function(){d.addClass(n,"is-fullscreen"),d.toggleClass(n,"fp-minimal-fullscreen",d.hasClass(n,"fp-minimal")),d.removeClass(n,"fp-minimal"),l||d.css(n,"position","fixed"),o.isFullscreen=!0}).on(i,function(){var e;d.toggleClass(n,"fp-minimal",d.hasClass(n,"fp-minimal-fullscreen")),d.removeClass(n,"fp-minimal-fullscreen"),l||"html5"!==o.engine||(e=n.css("opacity")||"",d.css(n,"opacity",0)),l||d.css(n,"position",""),d.removeClass(n,"is-fullscreen"),l||"html5"!==o.engine||setTimeout(function(){n.css("opacity",e)}),o.isFullscreen=!1,"fvyoutube"!=o.engine.engineName&&s.scrollTo(f,c)}).on("unload",function(){o.isFullscreen&&o.fullscreen()}),o.on("shutdown",function(){FULL_PLAYER=null,d.removeNode(wrapper)}))}),flowplayer(function(a,o){var e,t,n,r,i,l;function s(){var e=window.innerWidth<window.innerHeight?window.innerWidth<=375?.6:.575:window.innerWidth<=667?2:2.4;return window.innerWidth/window.innerHeight>e}function f(){a.isFullscreen&&window.innerWidth>window.innerHeight&&s()&&!l&&(fv_player_notice(o,fv_flowplayer_translations.iphone_swipe_up_location_bar,"resize-good"),l=setTimeout(function(){l=!1,a.trigger("resize-good")},5e3))}o=jQuery(o),flowplayer.conf.wpadmin||jQuery(o).hasClass("is-audio")||(e=(e=jQuery(".fp-playlist-external[rel="+o.attr("id")+"]")).hasClass("fp-playlist-season")||e.hasClass("fp-playlist-polaroid"),t=1==o.data("fsforce"),0!=o.data("fullscreen")&&(flowplayer.conf.mobile_force_fullscreen&&flowplayer.support.fvmobile||!flowplayer.support.fullscreen&&t||e?(flowplayer.support.fullscreen||a.bind("ready",function(){a.video.vr||a.fullscreen(!0)}),o.on("click",function(){a.ready&&!a.paused||a.fullscreen(!0)}),jQuery("[rel="+o.attr("id")+"] a").on("click",function(e){a.isFullscreen||(a.fullscreen(),a.resume())}),a.on("resume",function(){a.video.vr||a.isFullscreen||a.fullscreen()}),a.on("finish",function(){0!=a.conf.playlist.length&&a.conf.playlist.length-1!=a.video.index||a.fullscreen(!1)}).on("fullscreen",function(e,t){o.addClass("forced-fullscreen")}).on("fullscreen-exit",function(e,t){t.pause(),o.removeClass("forced-fullscreen")})):t&&(r=o.find(".fp-unload"),i=!1,a.isFakeFullscreen=!1,o.addClass("is-closeable"),o.on("click",function(e){a.ready||e.target==r[0]||a.fakeFullscreen(!0)}),r.on("click",function(e){return a.ready&&a.isFullscreen?a.fullscreen(!1):a.loading&&(i=!0,a.one("resume",function(e){i=!1,a.pause()})),a.fakeFullscreen(!1),!1}),jQuery("[rel="+o.attr("id")+"] a").on("click",function(e){a.isFakeFullscreen||(a.fakeFullscreen(),a.resume())}),a.on("resume",function(){i||a.isFakeFullscreen||a.fakeFullscreen()}).on("finish",function(){0!=a.conf.playlist.length&&a.conf.playlist.length-1!=a.video.index||a.fakeFullscreen(!1)}).on("fullscreen",function(e,t){o.removeClass("fake-fullscreen")}).on("fullscreen-exit",function(e,t){t.isFakeFullscreen&&t.fakeFullscreen(!0,!0)}).on("unload",function(e,t){}),a.fakeFullscreen=function(e,t){(t||a.isFakeFullscreen!=e&&!a.disabled)&&(void 0===n&&(n=o.css("position")),void 0===e&&(e=!a.isFakeFullscreen),a.isFakeFullscreen=e,a.trigger(e?"fakefullscreen":"fakefullscreen-exit",[a]),o.toggleClass("is-fullscreen fake-fullscreen forced-fullscreen",e),e?o.css("position","fixed"):o.css("position",n))}),flowplayer.support.android&&window.screen&&window.screen.orientation&&a.on("fullscreen",function(e,t){void 0!==(t=t).video.width&&void 0!==t.video.height&&0!=t.video.width&&0!=t.video.height&&t.video.width<t.video.height?screen.orientation.lock("portrait-primary"):screen.orientation.lock("landscape-primary")}),l=!1,flowplayer.support.iOS&&!flowplayer.support.fullscreen&&(a.on("fullscreen",f),window.addEventListener("resize",f),window.addEventListener("resize",function(){s()||(clearTimeout(l),l=!1,a.trigger("resize-good"))}))))}),flowplayer(function(a,o){o=jQuery(o);var r,n,i,l,s;window.MediaSource||window.WebKitMediaSource;function f(){var e=o.find("video");return e.length&&e[0].audioTracks?e[0].audioTracks:[]}function c(a){a.name||(a.name=a.label),o.find(".fv-fp-hls-menu a").each(function(e,t){jQuery(t).toggleClass("fp-selected",jQuery(t).attr("data-audio")===a.name)})}function p(){if(n&&!(n.length<2))if(o.find(".fp-chromecast").hide(),l=jQuery('<strong class="fv-fp-hls">'+fv_flowplayer_translations.audio_button+"</strong>"),(s=jQuery('<div class="fp-menu fv-fp-hls-menu"></div>').insertAfter(o.find(".fp-controls"))).append("<strong>"+fv_flowplayer_translations.audio_menu+"</strong>"),n.forEach(function(e){s.append('<a data-audio="'+e.name+'" data-lang="'+e.lang+'">'+e.name+"</a>")}),l.insertAfter(o.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),s.hasClass("fp-active")?a.hideMenu(s[0]):(o.click(),a.showMenu(s[0]))}),jQuery("a",s).on("click",function(e){var t=e.target.getAttribute("data-audio");if(r){var a=r.audioTracks[r.audioTrack].groupId,e=r.audioTracks.filter(function(e){return e.groupId===a&&(e.name===t||e.lang===t)})[0];r.audioTrack=e.id,c(e)}else{var o,n=f();for(o in n)n.hasOwnProperty(o)&&n[o].label==t&&(n[o].enabled=!0,c(n[o]))}}),r)c(r.audioTracks[r.audioTrack]);else{var e,t=f();for(e in t)t.hasOwnProperty(e)&&t[e].enabled&&c(t[e])}}flowplayer.engine("hlsjs-lite").plugin(function(e){r=e.hls}),a.bind("ready",function(e,t){var a;o.find(".fp-chromecast").show(),jQuery(s).remove(),jQuery(l).remove(),r&&"application/x-mpegurl"==t.video.type&&(i=[],n=[],(a=r).levels.forEach(function(e){e=e.attrs.AUDIO;e&&i.indexOf(e)<0&&i.push(e),i.length&&(n=a.audioTracks.filter(function(e){return e.groupId===i[0]}))}),p())}),a.one("progress",function(){if("html5"==a.engine.engineName&&"application/x-mpegurl"==a.video.type){i=[],n=[];var e,t=f();for(e in t)t.hasOwnProperty(e)&&n.push({id:t[e].id,name:t[e].label});p()}})}),flowplayer(function(e,n){var r=-1,i=!1;e.on("error",function(e,t,a){var o;4==a.code&&"hlsjs"==t.engine.engineName&&(console.log("FV Player: HLSJS failed to play the video, switching to Flash HLS"),t.error=t.loading=!1,jQuery(n).removeClass("is-error"),jQuery(flowplayer.engines).each(function(e,t){"hlsjs"==flowplayer.engines[e].engineName&&(r=e,i=flowplayer.engines[e],delete flowplayer.engines[e])}),(o=(0<(a=void 0!==t.video.index?t.video.index:0)?t.conf.playlist[a]:t.conf.clip).sources).index=a,t.load({sources:o}),t.bind("unload error",function(){flowplayer.engines[r]=i}))})}),flowplayer(function(e,i){var l,t=e.conf.live_stream_reload||30,s=t,f=fv_flowplayer_translations.live_stream_retry;function c(e){e=Number(e);var t=Math.floor(e/86400),a=Math.floor(e%86400/3600),o=Math.floor(e%3600/60),e=Math.floor(e%60),n=fv_flowplayer_translations,t=0<t?(1==t?n.duration_1_day:n.duration_n_days).replace(/%s/,t):"";return t&&0<a&&(t+=", "),(t+=0<a?(1==a?n.duration_1_hour:n.duration_n_hours).replace(/%s/,a):"")&&0<o&&(t+=", "),(t+=0<o?(1==o?n.duration_1_minute:n.duration_n_minutes).replace(/%s/,o):"")&&0<e&&(t+=n.and),t+=0<e?(1==e?n.duration_1_second:n.duration_n_seconds).replace(/%s/,e):""}e.clearLiveStreamCountdown=function(){l&&(clearInterval(l),e.error=e.loading=!1,jQuery(i).removeClass("is-error"),jQuery(i).find(".fp-message.fp-shown").remove(),e.unload())},e.conf.flashls={manifestloadmaxretry:2},e.on("ready",function(){s=t,f=fv_flowplayer_translations.live_stream_retry}).on("progress",function(){s=10,f=fv_flowplayer_translations.live_stream_continue,clearInterval(l)}),e.on("error",function(e,n,r){setTimeout(function(){var e,t,a,o;(n.conf.clip.live||n.conf.live||r.video&&r.video.src.match(/\/\/vimeo.com\/event\//))&&(e=s,n.conf.clip.streaming_time?e=n.conf.clip.streaming_time-Math.floor(Date.now()/1e3):n.conf.clip.live_starts_in&&(e=n.conf.clip.live_starts_in),t=fv_flowplayer_translations.live_stream_starting.replace(/%d/,c(e)),f=f.replace(/%d/,c(e)),t=n.conf.clip.live_starts_in?t:f,clearInterval(l),1!==r.code&&2!==r.code&&4!==r.code||(i.className+=" is-offline",flowplayer.support.flashVideo&&n.one("flashdisabled",function(){i.querySelector(".fp-flash-disabled").style.display="none"}),(a=i.querySelector(".fp-ui .fp-message")).innerHTML=t,o=300<e?300:e,l=setInterval(function(){--e,0<--o&&a?a.querySelector("span").innerHTML=c(e):(clearInterval(l),n.error&&(n.error=n.loading=!1,(a=i.querySelector(".fp-ui .fp-message"))&&i.querySelector(".fp-ui").removeChild(a),i.className=i.className.replace(/\bis-(error|offline)\b/g,""),n.load()))},1e3)))},1)})}),flowplayer(function(e,t){var a;t=jQuery(t),flowplayer.engine("hlsjs-lite").plugin(function(e){a=e.hls}),e.on("ready",function(e,t){a&&t.conf.playlist.length&&"hlsjs-lite"!=t.engine.engineName&&a.destroy()})}),flowplayer(function(a,o){var n,r,i;function l(){r&&n&&"html5"==a.engine.engineName&&(1<++i?3<i&&(console.log("FV Player: iOS video element needs a push, triggering 'stalled'"),n.trigger("stalled")):(console.log("FV Player: iOS video element will trigger error after 'stalled' arrives"),n.one("stalled",function(){var e,t=a.video.time;if(a.video.type.match(/video\//))return console.log("FV Player: Running check of video file..."),(e=document.createElement("video")).src=a.video.src,e.onloadedmetadata=function(){i=0,console.log("FV Player: Video link works")},void(e.onerror=function(){console.log("FV Player: Video link issue!"),0<i&&a.trigger("error",[a,{code:4,video:a.video}])});setTimeout(function(){console.log(a.video.time,t),a.video.time!=t?console.log("FV Player: iOS video element continues playing, no need for error"):a.paused?console.log("FV Player: iOS video element paused, no need for error"):a.trigger("error",[a,{code:4,video:a.video}])},5e3)})))}(flowplayer.support.browser.safari||flowplayer.support.iOS)&&(o=jQuery(o),r=n=!1,i=0,a.on("ready",function(e,t,a){i=0,r=!1,"html5"==t.engine.engineName&&a.src.match(/\?/)&&((n=o.find("video")).data("fv-ios-recovery")||(n.on("waiting",l),n.data("fv-ios-recovery",!0)),t.one("progress",function(){r=!0}))}),a.bind("beforeseek",l))}),!function(e){var t,a,o=!1;"function"==typeof define&&define.amd&&(define(e),o=!0),"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&(module.exports=e(),o=!0),o||(t=window.Cookies,(a=window.Cookies=e()).noConflict=function(){return window.Cookies=t,a})}(function(){function v(){for(var e=0,t={};e<arguments.length;e++){var a,o=arguments[e];for(a in o)t[a]=o[a]}return t}return function e(u){function y(e,t,a){var o,n;if("undefined"!=typeof document){if(1<arguments.length){"number"==typeof(a=v({path:"/"},y.defaults,a)).expires&&((n=new Date).setMilliseconds(n.getMilliseconds()+864e5*a.expires),a.expires=n),a.expires=a.expires?a.expires.toUTCString():"";try{o=JSON.stringify(t),/^[\{\[]/.test(o)&&(t=o)}catch(e){}t=u.write?u.write(t,e):encodeURIComponent(t+"").replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(e+"")).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var r,i="";for(r in a)a[r]&&(i+="; "+r,!0!==a[r]&&(i+="="+a[r]));return document.cookie=e+"="+t+i}e||(o={});for(var l=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,f=0;f<l.length;f++){var c=l[f].split("="),p=c.slice(1).join("=");this.json||'"'!==p.charAt(0)||(p=p.slice(1,-1));try{var d=c[0].replace(s,decodeURIComponent),p=u.read?u.read(p,d):u(p,d)||p.replace(s,decodeURIComponent);if(this.json)try{p=JSON.parse(p)}catch(e){}if(e===d){o=p;break}e||(o[d]=p)}catch(e){}}return o}}return(y.set=y).get=function(e){return y.call(y,e)},y.getJSON=function(){return y.apply({json:!0},[].slice.call(arguments))},y.defaults={},y.remove=function(e,t){y(e,"",v(t,{expires:-1}))},y.withConverter=e,y}(function(){})}),flowplayer(function(e,t){t=jQuery(t),window.learndash_video_data&&"local"==learndash_video_data.videos_found_provider&&t.closest("[data-video-progression=true]").length&&(LearnDash_disable_assets(!0),LearnDash_watchPlayers(),e.on("finish",function(e,t,a){"string"!=typeof t.video.click&&window.LearnDash_disable_assets(!1)}))}),flowplayer(function(e,t){e.bind("load",function(e,t,a){var o,n=jQuery(e.currentTarget);n.data("live")&&(o=setTimeout(function(){n.find(".fp-ui").append('<div class="fp-message">'+fv_flowplayer_translations.live_stream_failed+"</div>"),n.addClass("is-error")},1e4),jQuery(e.currentTarget).data("live_check",o))}).bind("ready",function(e,t,a){clearInterval(jQuery(e.currentTarget).data("live_check"))}).bind("error",function(e,t,a){e=jQuery(e.currentTarget);e.data("live")&&e.find(".fp-message").html(fv_flowplayer_translations.live_stream_failed_2)})}),!function(o){flowplayer(function(e,a){jQuery(a).hasClass("is-cva")||o(document).on("submit","#"+jQuery(a).attr("id")+" .mailchimp-form",function(e){e.preventDefault(),o(".mailchimp-response",a).remove(),o("input[type=submit]",a).attr("disabled","disabled").addClass("fv-form-loading");var t={action:"fv_wp_flowplayer_email_signup"};o("[name]",this).each(function(){t[this.name]=o(this).val()}),o.post(fv_player.ajaxurl,t,function(e){e=JSON.parse(e),o('<div class="mailchimp-response"></div>').insertAfter(".mailchimp-form",a),e.text.match(/already subscribed/)&&(e.status="ERROR"),"OK"===e.status?(o(".mailchimp-form input[type=text],.mailchimp-form input[type=email]",a).val(""),o(".mailchimp-response",a).removeClass("is-fv-error").html(e.text),setTimeout(function(){o(".wpfp_custom_popup",a).fadeOut()},2e3)):o(".mailchimp-response",a).addClass("is-fv-error").html(e.text),o("input[type=submit]",a).removeAttr("disabled").removeClass("fv-form-loading")})})})}(jQuery),"undefined"!=typeof fv_flowplayer_mobile_switch_array)for(var fv_flowplayer_mobile_switch_i in fv_flowplayer_mobile_switch_array)fv_flowplayer_mobile_switch_array.hasOwnProperty(fv_flowplayer_mobile_switch_i)&&fv_flowplayer_mobile_switch(fv_flowplayer_mobile_switch_i);function fv_flowplayer_browser_ff_m4v(e){flowplayer.support.browser&&flowplayer.support.browser.mozilla&&-1!=navigator.userAgentData.platform.indexOf("Win")&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if(flowplayer(function(n,e){var t,a;function o(e,t,a){var o;n.ready?(n.seek(a),(o=t).addClass("is-active"),setTimeout(function(){o.removeClass("is-active")},500)):n.toggle(),e.preventDefault()}flowplayer.support.touch&&(jQuery.fn.fv_single_double_click=function(o,n,r){return this.each(function(){var t=0,a=this;jQuery(this).on("click",function(e){1==++t&&setTimeout(function(){(1==t?o:n).call(a,e),t=0},r||300)})})},e=jQuery(e),t=jQuery('<div class="fv-fp-tap-left"><span>-10s</span></div>'),a=jQuery('<div class="fv-fp-tap-right"><span>+10s</span></div>'),t.fv_single_double_click(function(){n.toggle()},function(e){o(e,t,!!n.ready&&n.video.time-10)}),a.fv_single_double_click(function(){n.toggle()},function(e){o(e,a,!!n.ready&&n.video.time+10)}),e.find(".fp-ui").append(t).append(a))}),flowplayer(function(o,e){var n=(e=jQuery(e)).data("flowplayer-instance-id");flowplayer.audible_instance=-1,o.one("load",function(){setTimeout(function(){o.conf.splash=!1},0)}),o.on("ready",function(){var a=0==e.data("volume");a||(flowplayer.audible_instance=n),jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e=jQuery(this).data("flowplayer"),t=jQuery(this).data("flowplayer-instance-id");-1!=flowplayer.audible_instance&&t!=flowplayer.audible_instance&&t!=n&&e&&(e.ready?o.conf.multiple_playback?a||e.mute(!0,!0):e.playing&&e.pause():(e.clearLiveStreamCountdown(),e.unload()))})}).on("mute",function(e,t,a){a||flowplayer.audible_instance==n||(flowplayer(flowplayer.audible_instance).mute(!0,!0),flowplayer.audible_instance=n)}).on("resume",function(){o.muted||(flowplayer.audible_instance=n),o.conf.multiple_playback||jQuery(".flowplayer[data-flowplayer-instance-id]").each(function(){var e;n!=jQuery(this).data("flowplayer-instance-id")&&(e=jQuery(this).data("flowplayer"))&&e.playing&&e.pause()})})}),"undefined"!=typeof fv_flowplayer_browser_ff_m4v_array)for(var fv_flowplayer_browser_ff_m4v_i in fv_flowplayer_browser_ff_m4v_array)fv_flowplayer_browser_ff_m4v_array.hasOwnProperty(fv_flowplayer_browser_ff_m4v_i)&&fv_flowplayer_browser_ff_m4v(fv_flowplayer_browser_ff_m4v_i);function fv_flowplayer_browser_chrome_fail(o,n,r,i){jQuery("#wpfp_"+o).bind("error",function(e,t,a){!/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())||null==a||3!=a.code&&4!=a.code&&5!=a.code||(t.unload(),jQuery("#wpfp_"+o).attr("id","bad_wpfp_"+o),jQuery("#bad_wpfp_"+o).after('<div id="wpfp_'+o+'" '+n+' data-engine="flash"></div>'),jQuery("#wpfp_"+o).flowplayer({playlist:[[{mp4:r}]]}),i?jQuery("#wpfp_"+o).bind("ready",function(e,t){t.play()}):jQuery("#wpfp_"+o).flowplayer().play(0),jQuery("#bad_wpfp_"+o).remove())})}if("undefined"!=typeof fv_flowplayer_browser_chrome_fail_array)for(var fv_flowplayer_browser_chrome_fail_i in fv_flowplayer_browser_chrome_fail_array)fv_flowplayer_browser_chrome_fail_array.hasOwnProperty(fv_flowplayer_browser_chrome_fail_i)&&fv_flowplayer_browser_chrome_fail(fv_flowplayer_browser_chrome_fail_i,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].attrs,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].mp4,fv_flowplayer_browser_chrome_fail_array[fv_flowplayer_browser_chrome_fail_i].auto_buffer);function fv_flowplayer_browser_ie(e){(flowplayer.support.browser&&flowplayer.support.browser.msie&&9<=parseInt(flowplayer.support.browser.version,10)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))&&jQuery("#wpfp_"+e).attr("data-engine","flash")}if("undefined"!=typeof fv_flowplayer_browser_ie_array)for(var fv_flowplayer_browser_ie_i in fv_flowplayer_browser_ie_array)fv_flowplayer_browser_ie_array.hasOwnProperty(fv_flowplayer_browser_ie_i)&&fv_flowplayer_browser_ie(fv_flowplayer_browser_ie_i);function fv_flowplayer_browser_chrome_mp4(e){var t=window.navigator.appVersion.match(/Chrome\/(\d+)\./);null!=t&&(t=parseInt(t[1],10),(/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<28&&-1!=navigator.appVersion.indexOf("Win")||/chrom(e|ium)/.test(navigator.userAgent.toLowerCase())&&t<27&&-1!=navigator.appVersion.indexOf("Linux")&&-1==navigator.userAgent.toLowerCase().indexOf("android"))&&jQuery("#wpfp_"+e).attr("data-engine","flash"))}function fv_flowplayer_amazon_s3(e,n){jQuery("#wpfp_"+e).bind("error",function(e,t,a){var o=new Date;4==a.code&&o.getTime()>fv_fp_utime+parseInt(n)&&jQuery(e.target).find(".fp-message").delay(500).queue(function(e){jQuery(this).html(fv_flowplayer_translations.video_expired),e()})})}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")&&-1==navigator.userAgent.toLowerCase().indexOf("android")||flowplayer(function(e,t){e.bind("error",function(e,t,a){10==a.code&&jQuery(e.target).find(".fp-message").html(fv_flowplayer_translations.unsupported_format)})}),jQuery(document).ready(function(){-1==navigator.platform.indexOf("iPhone")&&-1==navigator.platform.indexOf("iPod")&&-1==navigator.platform.indexOf("iPad")||jQuery(window).trigger("load"),jQuery(".flowplayer").on("mouseleave",function(){jQuery(this).find(".fvp-share-bar").removeClass("visible"),jQuery(this).find(".embed-code").hide()})}),"undefined"!=typeof flowplayer&&flowplayer(function(e,o){o=jQuery(o);var n,r=!1,t=(flowplayer.engine("hlsjs-lite").plugin(function(e){n=e.hls}),e.conf.playlist.length?e.conf.playlist:[e.conf.clip]);function i(e){l();var t="Video is being processed",a="Please return later to see the actual video in this player.";e.pending_encoding_error?(t="Video unavailable",a="There was an error in the video encoding."):e.pending_encoding_progress&&(a+="<br /><br />("+e.pending_encoding_progress+" done)"),r=jQuery('<div class="fv-player-encoder-video-processing-modal"><div><h2>'+t+"</h2><p>"+a+"</p></div></div"),o.append(r)}function l(){r&&r.remove()}t[0]&&t[0].pending_encoding&&i(t[0]),e.on("load",function(e,t,a){if(a.pending_encoding)return i(a),n&&n.destroy(),!1;l()})}),Date.now||(Date.now=function(){return(new Date).getTime()}),function(){function b(e){if(e.id)return e.id;var t=(void 0!==e.sources_original&&void 0!==e.sources_original[0]?e.sources_original:e.sources)[0].src;return t=void 0!==e.sources_original&&void 0!==e.sources_original[0]?t:o(t)}function j(e,t){t.video.sources&&(t=b(t.video),T[t]=0,A[t]=0,w[t]=1)}function Q(e,t){var a,o,n="sendBeacon"in navigator,r=(!0!==e&&(e=!1),t&&void 0!==t||(t=function(){}),[]),i=[];for(a in T)T.hasOwnProperty(a)&&r.push({name:a,position:T[a],top_position:A[a],saw:void 0!==w[a]&&w[a]});for(o in O)O.hasOwnProperty(o)&&i.push({player:o,item:O[o]});if(i.length||D(F),!r.length)return D(S),D(P),void D(I);if("1"==flowplayer.conf.is_logged_in){if(n){try{var l,s={},f={},c={},p={};for(m in r)r.hasOwnProperty(m)&&(s[l=r[m].name]=r[m].position,f[l]=r[m].top_position,c[l]=r[m].saw);for(m in i)i.hasOwnProperty(m)&&(p[i[m].player]=i[m].item);N(S,E(s)),N(P,E(f)),N(I,E(c)),N(F,E(p))}catch(e){return}n=new FormData;return n.append("action","fv_wp_flowplayer_video_position_save"),n.append("videoTimes",encodeURIComponent(JSON.stringify(r))),n.append("playlistItems",encodeURIComponent(JSON.stringify(i))),navigator.sendBeacon(fv_player.ajaxurl,n),!1}return jQuery.ajax({type:"POST",async:e,url:fv_player.ajaxurl,complete:t,data:{action:"fv_wp_flowplayer_video_position_save",videoTimes:r,playlistItems:i}})}try{var d=V(x),u=V(C),d=d&&void 0!==d?JSON.parse(d):{},u=u&&void 0!==u?JSON.parse(u):{};for(m in r)r.hasOwnProperty(m)&&(d[r[m].name]=r[m].position);for(m in i)i.hasOwnProperty(m)&&(u[i[m].player]=i[m].item);var y=JSON.stringify(d),v=JSON.stringify(u),_=L(y),h=L(v);if(g<_)for(;g<_;)for(var m in d)if(d.hasOwnProperty(m)){delete d[m],y=JSON.stringify(d),_=L(y);break}if(g<h)for(;g<h;)for(var m in d)if(u.hasOwnProperty(m)){delete u[m],v=JSON.stringify(u),h=L(y);break}N(x,y),N(C,v)}catch(e){return}return!1}var k=null,g=2500,a=null,x="video_positions",C="player_playlist_item",S="video_positions_tmp",P="video_top_positions_tmp",F="player_playlist_item_tmp",I="video_saw_tmp",T=[],A=[],O=[],w=[],E=function(e){var t=JSON.stringify(e),a=L(t);if(g<a)for(;g<a;)for(var o in e)if(e.hasOwnProperty(o)){delete e[o],t=JSON.stringify(e),a=L(t);break}return t},L=function(e){return encodeURIComponent(e).length},V=function(e){return a?localStorage.getItem(e):Cookies.get(e)},N=function(e,t){return a?localStorage.setItem(e,t):Cookies.set(e,t)},D=function(e){a?localStorage.removeItem(e):Cookies.remove(e)},o=function(e){return e.replace(/(X-Amz-Algorithm=[^&]+&?)/gm,"").replace(/(X-Amz-Credential=[^&]+&?)/gm,"").replace(/(X-Amz-Date=[^&]+&?)/gm,"").replace(/(X-Amz-Expires=[^&]+&?)/gm,"").replace(/(X-Amz-SignedHeaders=[^&]+&?)/gm,"").replace(/(X-Amz-Signature=[^&]+&?)/gm,"")};if(flowplayer(function(o,e){if(void 0===o.conf.disable_localstorage){function r(){return!(o.live||o.video&&"string"==typeof o.video.click)}function t(e,t){!r()||(t=function(e){var t=b(e.video),a=e.video.position;if("1"!=flowplayer.conf.is_logged_in){var o=V(x);if(o&&void 0!==o)try{(o=JSON.parse(o))[t]&&(a=o[t])}catch(e){return}}return e.get_custom_end&&e.get_custom_end()<a&&(a=!1),a=e.get_custom_start&&0<e.get_custom_start()&&a<e.get_custom_start()?!1:a}(t))&&n(t)}function a(e,t){var a,o,n;r()&&t.video.sources&&(a=b(t.video),o=Math.round(t.video.time),T[a]=o,void 0===A[a]?(n=0,n=t.conf.playlist?t.conf.playlist[t.video.index]&&t.conf.playlist[t.video.index].sources[0]&&t.conf.playlist[t.video.index].sources[0].top_position?t.conf.playlist[t.video.index].sources[0].top_position:0:t.conf.clip.sources[0]&&t.conf.clip.sources[0].top_position?t.conf.clip.sources[0].top_position:0,A[a]=n):A[a]<o&&(A[a]=o),0<t.conf.playlist.length&&p&&(O[p]=t.video.index),60<=c++&&flowplayer.conf.closingPage&&(k&&k.abort(),k=Q(!0,function(){k=null}),c=0))}function n(e){var t,a;o.custom_seek?o.custom_seek(e):(t=0,a=setInterval(function(){20<++t&&clearInterval(a),o.loading||(o.seek(parseInt(e)),clearInterval(a))},10))}function i(e,t){var a=V(e),o=!1;if(a&&void 0!==a)try{if(void 0!==(a=JSON.parse(a))[t]){o=a[t],delete a[t];var n,r=!1;for(n in a)if(a.hasOwnProperty(n)){r=!0;break}r?N(e,JSON.stringify(a)):D(e)}return o}catch(e){}}function l(e,t){if(void 0!==t&&0!=t.conf.playlist.length){var a=-1;if(p)if("1"!=flowplayer.conf.is_logged_in){var o=V(C);if(o&&void 0!==o)try{(o=JSON.parse(o))[p]&&(a=o[p])}catch(e){return}}else"1"==flowplayer.conf.is_logged_in&&(a=0<t.conf.playlist.length&&i(F,p));0<=a&&!d&&(t.video&&"video/youtube"!=t.video.type&&t.play(a),d=!0,s.data("position_changed",1))}}var s=jQuery(e),f=flowplayer.conf.video_position_save_enable&&0!=s.data("save-position")||s.data("save-position"),c=0,p=!!s.data("player-id")&&s.data("player-id"),d=!1;if(f){if(V(F)&&s.removeData("playlist_start"),o.bind("finish",j),o.on("ready",function(){o.one("progress",t)}),o.bind("progress",a),o.bind("unload",function(){d=!1,o.one("ready",l)}),o.one("ready",l),jQuery(".fp-ui",e).on("click",function(){l()}),o.playlist_thumbnail_progress=function(e,t,a){o.get_custom_start&&0<o.get_custom_start(t)&&(a-=o.get_custom_start(t))<0&&(a=0);t=t.duration;(t=(t=o.get_custom_duration&&0<o.get_custom_duration()?o.get_custom_duration():t)||e.data("duration"))&&e.css("width",100*a/t+"%")},"1"==flowplayer.conf.is_logged_in){var u,y,v,_,h,m=0<o.conf.playlist.length,g=m?o.conf.playlist:[o.conf.clip],w=jQuery("[rel="+jQuery(e).attr("id")+"]");for(u in g)g.hasOwnProperty(u)&&(_=b(g[u]),y=i(S,_),v=i(P,_),_=i(I,_),y&&(m?(o.conf.playlist[u].sources[0].position=y,(h=jQuery("a",w).eq(u).find(".fvp-progress")).length&&o.playlist_thumbnail_progress(h,o.conf.playlist[u],y)):o.conf.clip.sources[0].position=y),v&&(!g[u].sources[0].top_position||g[u].sources[0].top_position<v)&&(m?o.conf.playlist[u].sources[0].top_position=v:o.conf.clip.sources[0].top_position=v),_&&(m?o.conf.playlist[u].sources[0].saw=!0:o.conf.clip.sources[0].saw=!0))}o.bind("finish",function(e,t){t.conf.playlist.length?t.conf.playlist[t.video.index].sources[0].saw=!0:t.conf.clip.sources[0].saw=!0})}}}),jQuery(window).on("beforeunload pagehide",function(){flowplayer.conf.closingPage||(flowplayer.conf.closingPage=!0,Q())}),null===(a=void 0===fv_flowplayer_conf.disable_localstorage&&a)){a=!0;try{localStorage.setItem("t","t"),"t"!==localStorage.getItem("t")&&(a=!1),localStorage.removeItem("t")}catch(e){a=!1}}}(jQuery),flowplayer(function(t,a){var o,n,r,i,l,s,f,c;function e(e){e.preventDefault(),e.stopPropagation(),l.hasClass("fp-active")?t.hideMenu(l[0]):(a.trigger("click"),t.showMenu(l[0]))}function p(e){e=e.clone();return e.find("i.dur").remove(),e.text()}a=jQuery(a),0!=t.conf.playlist.length&&(o=0,jQuery(t.conf.playlist).each(function(e,t){void 0===t.click&&o++}),o<2||(n=jQuery(".fp-playlist-external[rel="+a.attr("id")+"]"),r=jQuery('<strong class="fv-fp-list">Item 1.</strong>'),i=jQuery('<strong class="fv-fp-list-name">Item 1.</strong>'),l=jQuery('<div class="fp-menu fv-fp-list-menu"></div>').insertAfter(a.find(".fp-controls")),s=0,f=[],c=[],jQuery(t.conf.playlist).each(function(e,t){void 0===t.click&&(t=p(n.find("h4").eq(s)),l.append('<a data-index="'+e+'">'+(s+1)+". "+t+"</a>"),c[e]=t,f.push(e),s++)}),r.insertAfter(a.find(".fp-controls .fp-volume")).on("click",e),i.insertAfter(r).on("click",e),jQuery("a",l).on("click",function(){void 0!==t.conf.playlist[jQuery(this).data("index")-1]&&void 0!==t.conf.playlist[jQuery(this).data("index")-1].click?t.play(jQuery(this).data("index")-1):t.play(jQuery(this).data("index"))}),t.on("ready",function(e,t,a){l.find("a").removeClass("fp-selected");var o=l.find("a[data-index="+a.index+"]"),n=(o.addClass("fp-selected"),fv_flowplayer_translations.playlist_item_no);n=(n=n.replace(/%d/,f.indexOf(a.index)+1)).replace(/%s/,p(o.find("h4"))),r.html(n),i.html(f.indexOf(a.index)+1+". "+c[a.index])})))}),flowplayer(function(e,o){o=jQuery(o);var n,r=e.conf.playlist;e.bind("load",function(e,t,a){n=a.index}),e.bind("error",function(e,t,a){setTimeout(function(){if(0<r.length&&1==t.error){if(n=t.video.index,"1"==t.conf.video_checker&&r[n].video_checker&&0<r[n].video_checker.length)return console.log("FV Player: Video checker message present, stopping auto-advance to next playlist item"),!1;t.error=t.loading=!1,o.removeClass("is-error"),o.find(".fp-message.fp-shown").remove(),++n>r.length-1&&(n=0),console.log("FV Player: Playlist item failure, auto-advancing to "+(n+1)+". item"),t.play(n)}},1e3)})}),flowplayer(function(e,r){var i,l,s;function f(a){return a=[],jQuery(e.conf.playlist).each(function(e,t){a.push(e)}),a=function(e){for(var t,a,o=e.length;o;o--)t=Math.floor(Math.random()*o),a=e[o-1],e[o-1]=e[t],e[t]=a;return e}(a),console.log("FV Player Randomizer random seed:",a),a}((r=jQuery(r)).data("button-no_picture")||r.data("button-repeat")||r.data("button-rewind"))&&e.bind("ready",function(e,t){var a,o,n;void 0===l&&void 0===i&&(l=t.next,i=t.prev),!t.video.type.match(/^audio/)&&r.data("button-no_picture")&&0==r.find(".fv-fp-no-picture").length&&jQuery('<span class="fv-fp-no-picture"><svg viewBox="0 0 90 80" width="18px" height="18px" class="fvp-icon fvp-nopicture"><use xlink:href="#fvp-nopicture"></use></svg></span>').insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(".fp-engine",r).slideToggle(20),jQuery(this).toggleClass("is-active fp-color-fill"),r.toggleClass("is-no-picture")}),r.data("button-repeat")&&(0<t.conf.playlist.length&&0==r.find(".fv-fp-playlist").length?(n=fv_flowplayer_translations,a=jQuery('<strong class="fv-fp-playlist mode-normal"> <svg viewBox="0 0 80.333 80" width="18px" height="18px" class="fvp-icon fvp-replay-list"><title>'+n.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg> <svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-shuffle"><title>'+n.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg> <svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><title>'+n.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg> <span id="fvp-playlist-play" title="'+n.playlist_play_all+'">'+n.playlist_play_all_button+"</span> </strong>"),o=jQuery('<div class="fp-menu fv-fp-playlist-menu"> <a data-action="repeat_playlist"><svg viewBox="0 0 80.333 80" width="18px" height="18px" class="fvp-icon fvp-replay-list"><title>'+n.playlist_replay_all+'</title><use xlink:href="#fvp-replay-list"></use></svg> <span class="screen-reader-text">'+n.playlist_replay_all+'</span></a> <a data-action="shuffle_playlist"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-shuffle"><title>'+n.playlist_shuffle+'</title><use xlink:href="#fvp-shuffle"></use></svg> <span class="screen-reader-text">'+n.playlist_shuffle+'</span></a> <a data-action="repeat_track"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><title>'+n.playlist_replay_video+'</title><use xlink:href="#fvp-replay-track"></use></svg> <span class="screen-reader-text">'+n.playlist_replay_video+'</span></a> <a class="fp-selected" data-action="normal"><span id="fvp-playlist-play" title="'+n.playlist_play_all+'">'+n.playlist_play_all_button+"</span></a> </div>").insertAfter(r.find(".fp-controls")),t.conf.playlist_shuffle=t.conf.track_repeat=!1,s=f(),t.conf.advance,a.insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),"auto"!==o.css("right")&&o.css({right:"auto",left:a.position().left+"px"}),o.hasClass("fp-active")?t.hideMenu(o[0]):(r.trigger("click"),t.showMenu(o[0]))}),jQuery("a",o).on("click",function(){jQuery(this).siblings("a").removeClass("fp-selected"),jQuery(this).addClass("fp-selected"),a.removeClass("mode-normal mode-repeat-track mode-repeat-playlist mode-shuffle-playlist");var e=jQuery(this).data("action");"repeat_playlist"==e?(a.addClass("mode-repeat-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.video.loop=t.conf.track_repeat=!1,t.conf.playlist_shuffle=!1):"shuffle_playlist"==e?(a.addClass("mode-shuffle-playlist"),t.conf.loop=!0,t.conf.advance=!0,t.conf.playlist_shuffle=!0):"repeat_track"==e?(a.addClass("mode-repeat-track"),t.conf.track_repeat=t.video.loop=!0,t.conf.loop=t.conf.playlist_shuffle=!1):"normal"==e&&(a.addClass("mode-normal"),t.conf.track_repeat=t.video.loop=!1,t.conf.loop=t.conf.playlist_shuffle=!1),t.conf.playlist_shuffle?(t.next=function(){t.play(s.pop()),0==s.length&&(s=f())},t.prev=function(){t.play(s.shift()),0==s.length&&(s=f())}):(t.next=l,t.prev=i)}),t.conf.loop&&jQuery("a[data-action=repeat_playlist]",o).trigger("click"),t.on("progress",function(){t.video.loop=t.conf.track_repeat}),t.on("finish.pl",function(e,t){console.log("playlist_repeat",t.conf.loop,"advance",t.conf.advance,"video.loop",t.video.loop),t.conf.playlist_shuffle&&(t.play(s.pop()),0==s.length&&(s=f()))})):0==r.find(".fv-fp-track-repeat").length&&0==t.conf.playlist.length&&((n=jQuery('<strong class="fv-fp-track-repeat"><svg viewBox="0 0 80.333 71" width="18px" height="18px" class="fvp-icon fvp-replay-track"><use xlink:href="#fvp-replay-track"></use></svg></strong>')).insertAfter(r.find(".fp-controls .fp-volume")).on("click",function(e){e.preventDefault(),e.stopPropagation(),jQuery(this).toggleClass("is-active fp-color-fill",t.video.loop),t.video.loop?t.video.loop=!1:t.video.loop=!0}),t.conf.loop&&n.addClass("is-active fp-color-fill"))),r.data("button-rewind")&&(0==r.find(".fv-fp-rewind").length&&((n=jQuery('<span class="fv-fp-rewind"><svg viewBox="0 0 24 24" width="21px" height="21px" class="fvp-icon fvp-rewind"><use xlink:href="#fvp-rewind"></use></svg></span>')).insertBefore(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time-10)}),n.toggle(!t.video.live)),0==r.find(".fv-fp-forward").length&&((n=jQuery('<span class="fv-fp-forward"><svg viewBox="0 0 24 24" width="21px" height="21px" class="fvp-icon fvp-forward"><use xlink:href="#fvp-forward"></use></svg></span>')).insertAfter(r.find(".fp-controls .fp-playbtn")).on("click",function(e){e.preventDefault(),e.stopPropagation(),t.seek(t.video.time+10)}),n.toggle(!t.video.live)))}).bind("unload",function(){r.find(".fv-fp-no-picture").remove(),r.find(".fv-fp-playlist").remove(),r.find(".fv-fp-track-repeat").remove()})}),flowplayer(function(e,t){var a=jQuery(t),o=a.data("playlist_start");function n(){1!==a.data("position_changed")&&e.conf.playlist.length&&(o--,void 0===e.conf.playlist[o].click&&e.play(o),a.data("position_changed",1))}void 0!==o&&(e.bind("unload",function(){o=a.data("playlist_start"),a.removeData("position_changed"),e.one("ready",n)}),e.one("ready",n),jQuery(".fp-ui",t).on("click",function(){n(),a.data("position_changed",1)}))}),document.addEventListener("custombox:overlay:close",function(e){console.log("FV Player: Custombox/Popup anything ligtbox closed");var t=jQuery(this).find(".flowplayer");0!=t.length&&(console.log("FV Player: Custombox/Popup anything ligtbox contains a player"),t.each(function(e,t){var a=jQuery(t).data("flowplayer");void 0!==a&&(a.playing?(console.log("FV Player: Custombox/Popup anything ligtbox video pause"),a.pause()):a.loading&&a.one("ready",function(){console.log("FV Player: Custombox/Popup anything ligtbox video unload"),a.unload()}))}))}),flowplayer(function(t,e){t.bind("finish",function(){var e=t.video.time;t.video.loop&&t.one("pause",function(){e<=t.video.time&&t.resume()})})}),flowplayer(function(t,o){(o=jQuery(o)).find(".fp-logo").removeAttr("href"),o.hasClass("no-controlbar")&&((e=t.sliders.timeline).disable(!0),t.bind("ready",function(){e.disable(!0)})),jQuery(".fvfp_admin_error",o).remove(),o.find(".fp-logo, .fp-header").on("click",function(e){e.target===this&&o.find(".fp-ui").trigger("click")}),jQuery(".fvp-share-bar .sharing-facebook",o).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Facebook</title><path d="M11.9 5.2l-2.6 0 0-1.6c0-0.7 0.3-0.7 0.7-0.7 0.3 0 1.6 0 1.6 0l0-2.9 -2.3 0c-2.6 0-3.3 2-3.3 3.3l0 2 -1.6 0 0 2.9 1.6 0c0 3.6 0 7.8 0 7.8l3.3 0c0 0 0-4.2 0-7.8l2.3 0 0.3-2.9Z"/></svg>'),jQuery(".fvp-share-bar .sharing-twitter",o).append('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="#fff"><title>Twitter</title><path d="M16 3.1c-0.6 0.3-1.2 0.4-1.9 0.5 0.7-0.4 1.2-1 1.4-1.8 -0.6 0.4-1.3 0.6-2.1 0.8 -0.6-0.6-1.4-1-2.4-1 -2 0.1-3.2 1.6-3.2 4 -2.7-0.1-5.1-1.4-6.7-3.4 -0.9 1.4 0.2 3.8 1 4.4 -0.5 0-1-0.1-1.5-0.4l0 0.1c0 1.6 1.1 2.9 2.6 3.2 -0.7 0.2-1.3 0.1-1.5 0.1 0.4 1.3 1.6 2.2 3 2.3 -1.6 1.7-4.6 1.4-4.8 1.3 1.4 0.9 3.2 1.4 5 1.4 6 0 9.3-5 9.3-9.3 0-0.1 0-0.3 0-0.4 0.6-0.4 1.2-1 1.6-1.7Z"/></svg>'),jQuery(".fvp-share-bar .sharing-email",o).append('<svg xmlns="http://www.w3.org/2000/svg" height="16" viewBox="0 0 16 16" width="16" fill="#fff"><title>Email</title><path d="M8 10c0 0 0 0-1 0L0 6v7c0 1 0 1 1 1h14c1 0 1 0 1-1V6L9 10C9 10 8 10 8 10zM15 2H1C0 2 0 2 0 3v1l8 4 8-4V3C16 2 16 2 15 2z"/></svg>'),jQuery(".fp-header",o).prepend(jQuery(".fvp-share-bar",o)),t.conf.playlist.length&&(i=!0,2==(a=t.conf.playlist).length?(void 0!==a[0].click&&void 0===a[1].click&&(i=!1),void 0===a[0].click&&void 0!==a[1].click&&(i=!1)):3==a.length&&void 0!==a[0].click&&void 0===a[1].click&&void 0!==a[2].click&&(i=!1),i&&(a=jQuery('<a class="fp-icon fv-fp-prevbtn"></a>'),i=jQuery('<a class="fp-icon fv-fp-nextbtn"></a>'),o.find(".fp-controls .fp-playbtn").before(a).after(i),a.on("click",function(){t.trigger("prev",[t]),t.prev()}),i.on("click",function(){t.trigger("next",[t]),t.next()}))),"undefined"!=typeof fv_player_editor_conf&&o.on("click",".fvp-sharing > li",function(e){return e.preventDefault(),fv_player_notice(o,fv_player_editor_translations.link_notice,2e3),!1}),t.bind("pause resume finish unload ready",function(e,t){o.addClass("no-brand")}),t.one("ready",function(){o.find(".fp-fullscreen").clone().appendTo(o.find(".fp-controls"))}),t.on("ready",function(e,t,a){setTimeout(function(){jQuery(".fvp-share-bar",o).show(),jQuery(".fv-player-buttons-wrap",o).appendTo(jQuery(".fv-player-buttons-wrap",o).parent().find(".fp-ui"))},100)}),t.bind("finish",function(){var e=o.data("fv_redirect");e&&(void 0===t.video.is_last||t.video.is_last)&&(location.href=e)}),flowplayer.support.iOS&&11==flowplayer.support.iOS.version&&t.bind("error",function(e,t,a){4==a.code&&o.find(".fp-engine").hide()}),jQuery(document).on("contextmenu",".flowplayer",function(e){e.preventDefault()}),t.one("ready",function(e,t,a){o.find(".fp-chromecast").insertAfter(o.find(".fp-header .fp-fullscreen"))}),o.find(".fp-waiting").html('<div class="fp-preload"><b></b><b></b><b></b><b></b></div>');var e,n=o.attr("id"),r=!flowplayer.conf.native_fullscreen&&flowplayer.conf.mobile_alternative_fullscreen,a="fakefullscreen",i="fakefullscreen-exit";flowplayer.support.fullscreen||(a+=" fullscreen",i+=" fullscreen-exit"),t.bind(a,function(e,t){jQuery("#wpadminbar, .nc_wrapper").hide(),!r&&"fakefullscreen"!=e.type||"video/youtube"==t.video.type||(o.before('<span data-fv-placeholder="'+n+'"></span>'),o.appendTo("body"))}),t.bind(i,function(e,t,a){jQuery("#wpadminbar, .nc_wrapper").show(),!r&&"fakefullscreen-exit"!=e.type||jQuery("span[data-fv-placeholder="+n+"]").replaceWith(o)})}),function(){function e(p){p(function(o,n){var r,e,i,l,s;function f(e){return Math.round(100*e)/100}function c(t){r.find(".fp-speed",n)[0].innerHTML=t+"x",r.find(".fp-speed-menu a",n).forEach(function(e){r.toggleClass(e,"fp-selected",e.getAttribute("data-speed")==t),r.toggleClass(e,"fp-color",e.getAttribute("data-speed")==t)})}!jQuery(n).data("speedb")||(e=p.support).video&&e.inlineVideo&&(r=p.common,e=p.bean,i=r.find(".fp-ui",n)[0],l=r.find(".fp-controls",i)[0],s=o.conf.speeds,e.on(n,"click",".fp-speed",function(){var e=r.find(".fp-speed-menu",n)[0];r.hasClass(e,"fp-active")?o.hideMenu():o.showMenu(e)}),e.on(n,"click",".fp-speed-menu a",function(e){e=e.target.getAttribute("data-speed");o.speed(e)}),o.on("speed",function(e,t,a){1<s.length&&c(a)}).on("ready",function(e,t){var a;r.find(".fp-speed-menu",n).forEach(r.removeNode),r.find(".fp-speed",n).forEach(r.removeNode),p.support.android&&"html5"==t.engine.engineName&&"application/x-mpegurl"==t.video.type||1<(s=t.conf.speeds).length&&(l.appendChild(r.createElement("strong",{className:"fp-speed"},o.currentSpeed+"x")),a=r.createElement("div",{className:"fp-menu fp-speed-menu",css:{width:"auto"}},"<strong>Speed</strong>"),s.forEach(function(e){e=r.createElement("a",{"data-speed":f(e)},f(e)+"x");a.appendChild(e)}),i.appendChild(a),c(o.currentSpeed),jQuery(n).find(".fp-speed-menu strong").text(fv_flowplayer_translations.speed))}))})}"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=e:"function"==typeof window.flowplayer&&e(window.flowplayer)}(),flowplayer(function(e,t){void 0===fv_flowplayer_conf.disable_localstorage&&(e.on("speed",function(e,t,a){try{window.localStorage.fv_player_speed=a}catch(e){}}),e.on("ready",function(){window.localStorage.fv_player_speed&&jQuery(t).find("strong.fp-speed").is(":visible")&&e.speed(parseFloat(window.localStorage.fv_player_speed)),0==jQuery(t).data("volume")&&e.mute(!0,!0)}))}),flowplayer(function(e,o){o=jQuery(o);var n=-1;function r(){return e.video.index||0}e.conf.fv_stats&&(e.conf.fv_stats.enabled||o.data("fv_stats")&&"no"!=o.data("fv_stats"))&&e.on("ready finish",function(e,t){t.one("progress",function(e,t){if(o.data("fv_stats_data")){try{var a=o.data("fv_stats_data")}catch(e){return!1}n!=r()&&(n=r(),jQuery.post(t.conf.fv_stats.url,{blog_id:t.conf.fv_stats.blog_id,video_id:t.video.id||0,player_id:a.player_id,post_id:a.post_id,tag:"play"}))}})}).on("finish",function(){n=-1})}),flowplayer(function(a,e){var t,o,n,r,i=jQuery(e),l=i.find(".fp-player"),e=i.data("fvsticky"),s=!1,f=i.data("ratio");if(a.is_sticky=!1,void 0===f&&(f=.5625),(s=1==flowplayer.conf.sticky_video&&void 0===e?!0:s)||e){if(!flowplayer.support.firstframe)return;var c=flowplayer.conf.sticky_place,p=flowplayer.conf.sticky_width,d=(p=""==p?380:p)*f;t=jQuery(window),n=(o=i).offset().top,r=Math.floor(n+o.outerHeight()/2),a.on("unload",function(){y(),i.removeClass("is-unSticky")}),t.on("resize",function(){v()?(n=o.offset().top,r=Math.floor(n+o.outerHeight()/2)):a.is_sticky&&y()}).on("scroll",function(){if(v())if(n=o.offset().top,r=Math.floor(n+o.outerHeight()/2),t.scrollTop()>r&&(a.loading||flowplayer.audible_instance==i.data("flowplayer-instance-id"))){if(0<jQuery("div.flowplayer.is-unSticky").length)return!1;u()}else y();else a.is_sticky&&y()})}function u(){l.hasClass("is-sticky-"+c)||(l.addClass("is-sticky"),l.addClass("is-sticky-"+c),0==i.find("a.fp-sticky").length&&i.find("div.fp-header").prepend('<a class="fp-sticky fp-icon"></a>'),l.css("width",p),l.css("height",d),l.css("max-height",d),a.is_sticky=!0,a.trigger("sticky",[a]),l.parent(".flowplayer").addClass("is-stickable"))}function y(){l.removeClass("is-sticky"),l.removeClass("is-sticky-"+c),l.css("width",""),l.css("height",""),l.css("max-height",""),l.parent(".flowplayer").removeClass("is-stickable"),a.is_sticky&&(a.is_sticky=!1,a.trigger("sticky-exit",[a]))}function v(){return jQuery(window).innerWidth()>=fv_flowplayer_conf.sticky_min_width}a.sticky=function(e,t){void 0===e&&(e=!a.is_sticky),t&&i.toggleClass("is-unSticky",!e),(e?u:y)()}}),jQuery(function(a){a(document).on("click","a.fp-sticky",function(){var e=a("div.flowplayer.is-stickable"),t=e.data("flowplayer"),e=(e.addClass("is-unSticky"),e.find(".fp-player"));e.removeClass("is-sticky"),e.removeClass("is-sticky-right-bottom"),e.removeClass("is-sticky-left-bottom"),e.removeClass("is-sticky-right-top"),e.removeClass("is-sticky-left-top"),e.css("width",""),e.css("height",""),e.css("max-height",""),t.is_sticky&&(t.is_sticky=!1,t.trigger("sticky-exit",[t]))}),a(document).on("click","div.flowplayer.is-unSticky",function(){a("div.flowplayer").removeClass("is-unSticky")})}),flowplayer(function(e,n){var r;n=jQuery(n),void 0===fv_flowplayer_conf.disable_localstorage&&(r=window.localStorage,e.on("ready",function(e,a,t){var o;n.find("strong.fp-cc").is(":visible")&&(r.fv_player_subtitle&&a.video.subtitles.length?"none"===r.fv_player_subtitle?a.disableSubtitles():a.video.subtitles.forEach(function(e,t){e.srclang===r.fv_player_subtitle&&a.loadSubtitles(t)}):(o=t.subtitles.filter(function(e){return e.fv_default})[0])&&a.loadSubtitles(t.subtitles.indexOf(o))),n.find(".fp-subtitle-menu").on("click",function(e){var t=e.target.getAttribute("data-subtitle-index");if("string"==typeof t)try{r.fv_player_subtitle=-1<t?a.video.subtitles[t].srclang:"none"}catch(e){}})}))}),flowplayer(function(e,a){a=jQuery(a),e.on("ready",function(e,t){a.find(".fp-subtitle-menu strong").text(fv_flowplayer_translations.closed_captions),a.find('.fp-subtitle-menu a[data-subtitle-index="-1"]').text(fv_flowplayer_translations.no_subtitles)})}),"undefined"!=typeof flowplayer&&"undefined"!=typeof fv_flowplayer_conf&&fv_flowplayer_conf.video_hash_links&&(flowplayer(function(a,o){var n,r,i,l,s,f;0<jQuery(o).find(".sharing-link").length&&(n=function(e,t){l=fv_player_get_video_link_hash(a),s=","+fv_player_time_hms(a.video.time),e&&t?(i=","+fv_player_time_hms_ms(e+a.get_custom_start()),r=","+fv_player_time_hms_ms(t+a.get_custom_start())):(r=f&&void 0!==a.get_ab_end()&&a.get_ab_end()?","+fv_player_time_hms_ms(a.get_ab_end()):"",i=f&&void 0!==a.get_ab_start()&&a.get_ab_start()?","+fv_player_time_hms_ms(a.get_ab_start()):""),jQuery(".sharing-link",o).attr("href",jQuery(".sharing-link",o).attr("href").replace(/#.*/,"")+"#"+l+s+i+r)},a.on("ready",function(e,t,a){t.fv_noUiSlider&&t.fv_noUiSlider.on("set",function(e){n(e[0],e[1])})}),a.on("progress",function(e,t){t.video.sources&&t.video.sources[0]&&n()}),a.on("abloop",function(e,t,a){f=a,t.playing||n()}),jQuery(".sharing-link",o).on("click",function(e){fv_player_clipboard(jQuery(this).attr("href"),function(){e.preventDefault(),fv_player_notice(o,fv_flowplayer_translations.link_copied,2e3)})}))}),jQuery(document).on("click",'a[href*="fvp_"]',function(){var e=jQuery(this);setTimeout(function(){0==e.parents(".fvp-share-bar").length&&fv_autoplay_exec()})})),flowplayer(function(a,o){o=jQuery(o);var n=flowplayer.bean,r=flowplayer.conf.default_volume,i=(0==r&&(r="0.5"),o.on("mousedown touchstart",".fp-volumebtn",function(e){var t=jQuery(this);0==a.volumeLevel&&t.one("click",function(){return a.volume(r),!1})}),o.on("mousedown touchstart mouseup touchend",".fp-volumebar",function(e){0!=a.volumeLevel&&(r=a.volumeLevel)}),a.on("volume",function(e,t){o.hasClass("is-mouseover")&&!t.muted&&0==t.volumeLevel&&(n.off(flowplayer.support.touch?o:document,"mousemove.sld touchmove.sld"),t.mute(!0))}),!1);function l(){o.removeClass("has-fp-message-muted"),o.find(".fp-message-muted").remove()}a.one("ready",function(e,t){o.hasClass("is-audio")||(i=!0)}),a.on("progress",function(e,t,a){i&&1<a&&(i=!1,(a=jQuery("root").find("video")).length&&!((a=a[0]).mozHasAudio||Boolean(a.webkitAudioDecodedByteCount)||Boolean(a.audioTracks&&a.audioTracks.length))||!t.muted&&0!=t.volumeLevel||"true"==localStorage.muted||"0"==localStorage.volume||((a=jQuery('<div class="fp-message fp-message-muted"><span class="fp-icon fp-volumebtn-notice"></span> '+fv_flowplayer_translations.click_to_unmute+"</div>")).on("click touchstart",function(){t.mute(!1),t.volume(1)}),o.find(".fp-ui").append(a),o.addClass("has-fp-message-muted"),setTimeout(l,5e3)))}),a.on("mute volume",function(){(!a.muted||0<a.volumeLevel)&&l()})}),"undefined"!=typeof flowplayer&&(fv_player_warning=function(e,t,a){var o=jQuery(e).prev(".fv-player-warning-wrapper");0==o.length&&(jQuery(e).before('<div class="fv-player-warning-wrapper">'),o=jQuery(e).prev(".fv-player-warning-wrapper")),0==o.find(".fv-player-warning-"+a).length&&(e=jQuery("<p style='display: none' "+(a?" class='fv-player-warning-"+a+"'":"")+">"+t+"</p>"),o.append(e),e.slideDown())},flowplayer(function(t,o){o=jQuery(o),navigator.userAgent.match(/iPhone.* OS [0-6]_/i)&&t.one("progress",function(e){void 0!==t.video.subtitles&&t.video.subtitles.length&&fv_player_warning(o,fv_flowplayer_translations.warning_iphone_subs)}),flowplayer.support.android&&flowplayer.support.android.version<5&&(flowplayer.support.android.samsung||flowplayer.support.browser.safari)&&fv_player_warning(o,fv_flowplayer_translations.warning_unstable_android,"firefox"),/Android 4/.test(navigator.userAgent)&&!/Firefox/.test(navigator.userAgent)&&(t.on("ready",function(e,t,a){setTimeout(function(){a.src&&a.src.match(/fpdl.vimeocdn.com/)&&(0==a.time||1==a.time)&&(fv_player_warning(o,fv_flowplayer_translations.warning_unstable_android,"firefox"),t.on("progress",function(e,t){o.prev().find(".fv-player-warning-firefox").remove()}))},1500)}),t.on("error",function(e,t,a){2==a.MEDIA_ERR_NETWORK&&a.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(o,fv_flowplayer_translations.warning_unstable_android,"firefox")})),/Safari/.test(navigator.userAgent)&&/Version\/5/.test(navigator.userAgent)&&t.on("error",function(e,t,a){a.video.src.match(/fpdl.vimeocdn.com/)&&fv_player_warning(o,fv_flowplayer_translations.warning_old_safari)});var e=flowplayer.support;e.android&&(e.android.samsung&&parseInt(e.browser.version)<66||e.browser.safari)&&t.on("error",function(e,t,a){fv_player_warning(o,fv_flowplayer_translations.warning_samsungbrowser,"warning_samsungbrowser")})}));
flowplayer/modules/flowplayer.min.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
 
3
- Flowplayer v7.2.8 (2022-04-28) | flowplayer.com/license
4
 
5
  */
6
- !function(a){function c(e,t,n,i){for(var r,o=n.slice(),a=(u=e,(c=t).currentTarget=u,c.eventPhase=c.target===c.currentTarget?2:3,c),s=0,l=o.length;s<l&&(handler=o[s],"object"==typeof handler&&"function"==typeof handler.handleEvent?handler.handleEvent(a):handler.call(e,a),!a.stoppedImmediatePropagation);s++);var c,u;return r=!a.stoppedPropagation,i&&r&&e.parentNode?e.parentNode.dispatchEvent(a):!a.defaultPrevented}function r(e,t){return{configurable:!0,get:e,set:t}}function e(e,t,n){var i=I(t||e,n);w(e,"textContent",r(function(){return i.get.call(this)},function(e){i.set.call(this,e)}))}function u(e,t){for(var n=e.length;n--&&e[n]!==t;);return n}function t(){if("BR"===this.tagName)return"\n";for(var e=this.firstChild,t=[];e;)8!==e.nodeType&&7!==e.nodeType&&t.push(e.textContent),e=e.nextSibling;return t.join("")}function o(e){!h&&E.test(document.readyState)&&(h=!h,document.detachEvent(g,o),(e=document.createEvent("Event")).initEvent(m,!0,!0),document.dispatchEvent(e))}function n(e){for(var t;t=this.lastChild;)this.removeChild(t);null!=e&&this.appendChild(document.createTextNode(e))}function f(e,t){return(t=t||a.event).target||(t.target=t.srcElement||t.fromElement||document),t.timeStamp||(t.timeStamp=(new Date).getTime()),t}if(!document.createEvent){var l,d,p,i,s=!0,h=!1,g="onreadystatechange",m="DOMContentLoaded",v="__IE8__"+Math.random(),y=a.Object,w=y.defineProperty||function(e,t,n){e[t]=n.value},b=y.defineProperties||function(t,e){for(var n in e)if(M.call(e,n))try{w(t,n,e[n])}catch(e){a.console&&console.log(n+" failed on object:",t,e.message)}},I=y.getOwnPropertyDescriptor,M=y.prototype.hasOwnProperty,C=a.Element.prototype,A=a.Text.prototype,S=/^[a-z]+$/,E=/loaded|complete/,N={},D=document.createElement("div");e(a.HTMLCommentElement.prototype,C,"nodeValue"),e(a.HTMLScriptElement.prototype,null,"text"),e(A,null,"nodeValue"),e(a.HTMLTitleElement.prototype,null,"text"),w(a.HTMLStyleElement.prototype,"textContent",(i=I(a.CSSStyleSheet.prototype,"cssText"),r(function(){return i.get.call(this.styleSheet)},function(e){i.set.call(this.styleSheet,e)}))),b(C,{textContent:{get:t,set:n},firstElementChild:{get:function(){for(var e=this.childNodes||[],t=0,n=e.length;t<n;t++)if(1==e[t].nodeType)return e[t]}},lastElementChild:{get:function(){for(var e=this.childNodes||[],t=e.length;t--;)if(1==e[t].nodeType)return e[t]}},previousElementSibling:{get:function(){for(var e=this.previousSibling;e&&1!=e.nodeType;)e=e.previousSibling;return e}},nextElementSibling:{get:function(){for(var e=this.nextSibling;e&&1!=e.nodeType;)e=e.nextSibling;return e}},childElementCount:{get:function(){for(var e=0,t=this.childNodes||[],n=t.length;n--;e+=1==t[n].nodeType);return e}},addEventListener:{value:function(e,t,n){var i,r=this,o="on"+e,a=r[v]||w(r,v,{value:{}})[v],s=a[o]||(a[o]={}),l=s.h||(s.h=[]);if(!M.call(s,"w")){if(s.w=function(e){return e[v]||c(r,f(0,e),l,!1)},!M.call(N,o))if(S.test(e))try{(i=document.createEventObject())[v]=!0,9!=r.nodeType&&null==r.parentNode&&D.appendChild(r),r.fireEvent(o,i),N[o]=!0}catch(i){for(N[o]=!1;D.hasChildNodes();)D.removeChild(D.firstChild)}else N[o]=!1;(s.n=N[o])&&r.attachEvent(o,s.w)}u(l,t)<0&&l[n?"unshift":"push"](t)}},dispatchEvent:{value:function(e){var t,n=this,i="on"+e.type,r=n[v],o=r&&r[i],a=!!o;return e.target||(e.target=n),a?o.n?n.fireEvent(i,e):c(n,e,o.h,!0):(t=n.parentNode)&&t.dispatchEvent(e),!e.defaultPrevented}},removeEventListener:{value:function(e,t,n){var i="on"+e,r=this[v],o=r&&r[i],a=o&&o.h,s=a?u(a,t):-1;-1<s&&a.splice(s,1)}}}),b(A,{addEventListener:{value:C.addEventListener},dispatchEvent:{value:C.dispatchEvent},removeEventListener:{value:C.removeEventListener}}),b(a.XMLHttpRequest.prototype,{addEventListener:{value:function(t,e,n){var i=this,r="on"+t,o=i[v]||w(i,v,{value:{}})[v],a=o[r]||(o[r]={}),s=a.h||(a.h=[]);u(s,e)<0&&(i[r]||(i[r]=function(){var e=document.createEvent("Event");e.initEvent(t,!0,!0),i.dispatchEvent(e)}),s[n?"unshift":"push"](e))}},dispatchEvent:{value:function(e){var t="on"+e.type,n=this[v],i=n&&n[t];return!!i&&(i.n?this.fireEvent(t,e):c(this,e,i.h,!0))}},removeEventListener:{value:C.removeEventListener}}),b(a.Event.prototype,{bubbles:{value:!0,writable:!0},cancelable:{value:!0,writable:!0},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0,this.returnValue=!1)}},stopPropagation:{value:function(){this.stoppedPropagation=!0,this.cancelBubble=!0}},stopImmediatePropagation:{value:function(){this.stoppedImmediatePropagation=!0,this.stopPropagation()}},initEvent:{value:function(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n,this.bubbles||this.stopPropagation()}}}),b(a.HTMLDocument.prototype,{textContent:{get:function(){return 11===this.nodeType?t.call(this):null},set:function(e){11===this.nodeType&&n.call(this,e)}},addEventListener:{value:function(e,t,n){var i=this;C.addEventListener.call(i,e,t,n),s&&e===m&&!E.test(i.readyState)&&(s=!1,i.attachEvent(g,o),a==top&&function t(e){try{i.documentElement.doScroll("left"),o()}catch(e){setTimeout(t,50)}}())}},dispatchEvent:{value:C.dispatchEvent},removeEventListener:{value:C.removeEventListener},createEvent:{value:function(e){var t;if("Event"!==e)throw new Error("unsupported "+e);return(t=document.createEventObject()).timeStamp=(new Date).getTime(),t}}}),b(a.Window.prototype,{getComputedStyle:{value:(l=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/,d=/^(top|right|bottom|left)$/,p=/\-([a-z])/g,j.prototype.getPropertyValue=function(e){var t,n,i,r=this._,o=r.style,a=r.currentStyle,s=r.runtimeStyle;return e=("float"===e?"style-float":e).replace(p,L),t=a?a[e]:o[e],l.test(t)&&!d.test(e)&&(n=o.left,(i=s&&s.left)&&(s.left=a.left),o.left="fontSize"===e?"1em":t,t=o.pixelLeft+"px",o.left=n,i&&(s.left=i)),null==t?t:t+""||"auto"},x.prototype.getPropertyValue=function(){return null},function(e,t){return t?new x(e):new j(e)})},addEventListener:{value:function(e,t,n){var i,r=a,o="on"+e;r[o]||(r[o]=function(e){return c(r,f(0,e),i,!1)}),u(i=r[o][v]||(r[o][v]=[]),t)<0&&i[n?"unshift":"push"](t)}},dispatchEvent:{value:function(e){var t=a["on"+e.type];return!t||!1!==t.call(a,e)&&!e.defaultPrevented}},removeEventListener:{value:function(e,t,n){var i=(a["on"+e]||y)[v],r=i?u(i,t):-1;-1<r&&i.splice(r,1)}}})}function j(e){this._=e}function x(){}function L(e,t){return t.toUpperCase()}}(this),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).flowplayer=e()}}(function(){return function o(a,s,l){function c(t,e){if(!s[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var r=s[t]={exports:{}};a[t][0].call(r.exports,function(e){return c(a[t][1][e]||e)},r,r.exports,o,a,s,l)}return s[t].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)c(l[e]);return c}({1:[function(e,t,n){"use strict";var i,o=t.exports={},r=e("class-list"),a=window.jQuery,s=e("punycode"),l=e("computed-style");function c(e){return e.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})}o.noop=function(){},o.identity=function(e){return e},o.removeNode=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},o.find=function(e,t){return a?a(e,t).toArray():(t=t||document,Array.prototype.map.call(t.querySelectorAll(e),function(e){return e}))},o.text=function(e,t){e["innerText"in e?"innerText":"textContent"]=t},o.findDirect=function(e,t){return o.find(e,t).filter(function(e){return e.parentNode===t})},o.hasClass=function(e,t){return"string"==typeof e.className&&r(e).contains(t)},o.isSameDomain=function(e){var t=window.location,n=o.createElement("a",{href:e});return t.hostname===n.hostname&&t.protocol===n.protocol&&t.port===n.port},o.css=function(t,n,e){return"object"==typeof n?Object.keys(n).forEach(function(e){o.css(t,e,n[e])}):void 0!==e?""===e?t?t.style.removeProperty(n):void 0:t?t.style.setProperty(n,e):void 0:t?l(t,n):void 0},o.createElement=function(t,n,i){try{var e=document.createElement(t);for(var r in n)n.hasOwnProperty(r)&&("css"===r?o.css(e,n[r]):o.attr(e,r,n[r]));return i&&(e.innerHTML=i),e}catch(e){if(!a)throw e;return a("<"+t+">"+i+"</"+t+">").attr(n)[0]}},o.toggleClass=function(e,t,n){if(e){var i=r(e);void 0===n?i.toggle(t):n?i.add(t):n||i.remove(t)}},o.addClass=function(e,t){return o.toggleClass(e,t,!0)},o.removeClass=function(e,t){return o.toggleClass(e,t,!1)},o.append=function(e,t){return e.appendChild(t),e},o.appendTo=function(e,t){return o.append(t,e),e},o.prepend=function(e,t){e.insertBefore(t,e.firstChild)},o.insertAfter=function(e,t,n){t==o.lastChild(e)&&e.appendChild(n);var i=Array.prototype.indexOf.call(e.children,t);e.insertBefore(n,e.children[i+1])},o.html=function(e,t){(e=e.length?e:[e]).forEach(function(e){e.innerHTML=t})},o.attr=function(t,n,i){if("class"===n&&(n="className"),o.hasOwnOrPrototypeProperty(t,n))try{t[n]=i}catch(e){if(!a)throw e;a(t).attr(n,i)}else!1===i?t.removeAttribute(n):t.setAttribute(n,i);return t},o.prop=function(e,t,n){if(void 0===n)return e&&e[t];e[t]=n},o.offset=function(e){var t=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight&&(t={left:100*t.left,right:100*t.right,top:100*t.top,bottom:100*t.bottom,width:100*t.width,height:100*t.height}),t},o.width=function(e,t){if(t)return e.style.width=(""+t).replace(/px$/,"")+"px";var n=o.offset(e).width;return void 0===n?e.offsetWidth:n},o.height=function(e,t){if(t)return e.style.height=(""+t).replace(/px$/,"")+"px";var n=o.offset(e).height;return void 0===n?e.offsetHeight:n},o.lastChild=function(e){return e.children[e.children.length-1]},o.hasParent=function(e,t){for(var n=e.parentElement;n;){if("string"!=typeof t){if(n===t)return!0}else if(o.matches(n,t))return!0;n=n.parentElement}return!1},o.createAbsoluteUrl=function(e){return o.createElement("a",{href:e}).href},o.xhrGet=function(e,t,n){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===this.readyState)return 400<=this.status?n():void t(this.responseText)},i.open("get",e,!0),i.send()},o.pick=function(t,e){var n={};return e.forEach(function(e){t.hasOwnProperty(e)&&(n[e]=t[e])}),n},o.hostname=function(e){return s.toUnicode(e||window.location.hostname)},o.browser={webkit:"WebkitAppearance"in document.documentElement.style},o.getPrototype=function(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__},o.hasOwnOrPrototypeProperty=function(e,t){for(var n=e;n;){if(Object.prototype.hasOwnProperty.call(n,t))return!0;n=o.getPrototype(n)}return!1},o.matches=function(e,t){var n=Element.prototype;return(n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)n++;return!!t[n]}).call(e,t)},void 0!==(i=window.CSSStyleDeclaration.prototype).setAttribute&&(i.setProperty=function(e,t){return this.setAttribute(c(e),String(t))},i.getPropertyValue=function(e){return this.getAttribute(c(e))||null},i.removeProperty=function(e){var t=this.getPropertyValue(e);return this.removeAttribute(c(e)),t})},{"class-list":36,"computed-style":37,punycode:44}],2:[function(e,t,n){"use strict";var c=e("../common");t.exports=function(e,t,n,i){n=n||"opaque";var r="obj"+(""+Math.random()).slice(2,15),o='<object class="fp-engine" id="'+r+'" name="'+r+'" ',a=-1<navigator.userAgent.indexOf("MSIE");o+=a?'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">':' data="'+e+'" type="application/x-shockwave-flash">';var s={width:"100%",height:"100%",allowscriptaccess:"always",wmode:n,quality:"high",flashvars:"",movie:e+(a?"?"+r:""),name:r};"transparent"!==n&&(s.bgcolor=i||"#333333"),Object.keys(t).forEach(function(e){s.flashvars+=e+"="+t[e]+"&"}),Object.keys(s).forEach(function(e){o+='<param name="'+e+'" value="'+s[e]+'"/>'}),o+="</object>";var l=c.createElement("div",{},o);return c.find("object",l)},window.attachEvent&&window.attachEvent("onbeforeunload",function(){window.__flash_savedUnloadHandler=window.__flash_unloadHandler=function(){}})},{"../common":1}],3:[function(e,t,n){"use strict";var i,S=e("../flowplayer"),E=e("../common"),N=e("./embed"),D=e("extend-object"),j=e("bean");function x(e){return/^https?:/.test(e)}(i=function(g,m){var v,y,w,b,I=g.conf,M=[],C={engineName:i.engineName,pick:function(i){var e=D({},function(){if(S.support.flashVideo){for(var e,t,n=0;n<i.length;n++)if(t=i[n],/mp4|flv|flash/i.test(t.type)&&(e=t),g.conf.swfHls&&/mpegurl/i.test(t.type)&&(e=t),e&&!/mp4/i.test(e.type))return e;return e}}());if(e)return!e.src||x(e.src)||g.conf.rtmp||e.rtmp||(e.src=E.createAbsoluteUrl(e.src)),e},suspendEngine:function(){b=!0},resumeEngine:function(){b=!1},load:function(n){function e(e){return e.replace(/&amp;/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D")}v=n,M.forEach(function(e){clearTimeout(e)});function t(){E.removeNode(i)}var i=E.findDirect("video",m)[0]||E.find(".fp-player > video",m)[0],r=n.src,o=x(r);S.support.video&&E.prop(i,"autoplay")&&n.sources.some(function(e){return!!i.canPlayType(e.type)})?j.one(i,"timeupdate",t):t();var a,s=n.rtmp||I.rtmp;if(o||s||(r=E.createAbsoluteUrl(r)),w&&A(n)&&w.data!==E.createAbsoluteUrl(I.swfHls)&&C.unload(),w){["live","preload","loop"].forEach(function(e){n.hasOwnProperty(e)&&w.__set(e,n[e])}),Object.keys(n.flashls||{}).forEach(function(e){w.__set("hls_"+e,n.flashls[e])});var l=!1;if(!o&&s)w.__set("rtmp",s.url||s);else l=!!w.__get("rtmp"),w.__set("rtmp",null);w.__play(r,l||n.rtmp&&n.rtmp!==I.rtmp)}else{y="fpCallback"+(""+Math.random()).slice(3,15),r=e(r);var c={hostname:I.embedded?E.hostname(I.hostname):E.hostname(location.hostname),url:r,callback:y};m.getAttribute("data-origin")&&(c.origin=m.getAttribute("data-origin")),["proxy","key","autoplay","preload","subscribe","live","loop","debug","splash","poster","rtmpt"].forEach(function(e){I.hasOwnProperty(e)&&(c[e]=I[e]),n.hasOwnProperty(e)&&(c[e]=n[e]),(I.rtmp||{}).hasOwnProperty(e)&&(c[e]=(I.rtmp||{})[e]),(n.rtmp||{}).hasOwnProperty(e)&&(c[e]=(n.rtmp||{})[e])}),I.splash&&(c.autoplay=!0),I.rtmp&&(c.rtmp=I.rtmp.url||I.rtmp),n.rtmp&&(c.rtmp=n.rtmp.url||n.rtmp),Object.keys(n.flashls||{}).forEach(function(e){var t=n.flashls[e];c["hls_"+e]=t});var u=void 0!==n.hlsQualities?n.hlsQualities:I.hlsQualities;void 0!==u&&(c.hlsQualities=u?encodeURIComponent(JSON.stringify(u)):u),void 0!==I.bufferTime&&(c.bufferTime=I.bufferTime),void 0!==I.bufferTimeMax&&(c.bufferTimeMax=I.bufferTimeMax),o&&delete c.rtmp,c.rtmp&&(c.rtmp=e(c.rtmp));var f,d=I.bgcolor||E.css(m,"background-color")||"";0===d.indexOf("rgb")?f=function(e){function t(e){return("0"+parseInt(e).toString(16)).slice(-2)}if(!(e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/)))return;return"#"+t(e[1])+t(e[2])+t(e[3])}(d):0===d.indexOf("#")&&(f=7===(a=d).length?a:"#"+a.split("").slice(1).map(function(e){return e+e}).join("")),c.initialVolume=g.volumeLevel;var p=A(n)?I.swfHls:I.swf;w=N(p,c,I.wmode,f)[0];var h=E.find(".fp-player",m)[0];E.prepend(h,w),g.off("quality.flashengine").on("quality.flashengine",function(e,t,n){if(void 0!==g.video.hlsQualities?g.video.hlsQualities:g.conf.hlsQualities)try{w.__quality(n)}catch(e){g.debug("Error changing quality in flash engine",e)}}),setTimeout(function(){try{if(!w.PercentLoaded())return g.trigger("error",[g,{code:7,url:I.swf}])}catch(e){}},5e3),M.push(setTimeout(function(){void 0===w.PercentLoaded&&g.trigger("flashdisabled",[g])},15e3)),M.push(setTimeout(function(){void 0===w.PercentLoaded&&g.trigger("flashdisabled",[g,!1])},500)),g.off("resume.flashhack").on("resume.flashhack",function(){var e=setTimeout(function(){var e=w.__status().time,t=setTimeout(function(){g.playing&&!g.loading&&w.__status().time===e&&g.trigger("flashdisabled",[g])},400);M.push(t),g.one("seek.flashhack pause.flashhack load.flashack",function(){clearTimeout(t)})},800);M.push(e),g.one("progress",function(){clearTimeout(e)})}),w.pollInterval=setInterval(function(){if(w&&!b){var e=w.__status?w.__status():null;e&&((g.conf.live||g.live||n.live)&&(n.seekOffset=e.seekOffset,n.duration=e.duration+e.seekOffset),g.playing&&e.time&&e.time!==g.video.time&&g.trigger("progress",[g,e.time]),n.buffer=e.buffer/n.bytes*n.duration,g.trigger("buffer",[g,n.buffer]),!n.buffered&&0<e.time&&(n.buffered=!0,g.trigger("buffered",[g])))}},250),window[y]=function(e,t){var n=v;I.debug&&(0===e.indexOf("debug")&&t&&t.length?console.log.apply(console,["-- "+e].concat(t)):console.log("--",e,t));var i={type:e};switch(e){case"ready":t=D(n,t);break;case"click":i.flash=!0;break;case"keydown":i.which=t;break;case"seek":n.time=t;break;case"status":g.trigger("progress",[g,t.time]),t.buffer<n.bytes&&!n.buffered?(n.buffer=t.buffer/n.bytes*n.duration,g.trigger("buffer",n.buffer)):n.buffered||(n.buffered=!0,g.trigger("buffered"));break;case"metadata":var r=atob(t);t={key:r.substr(10,4),data:r.substr(21)}}"click"===e||"keydown"===e?(i.target=m,j.fire(m,e,[i])):"buffered"!=e&&"unload"!==e?setTimeout(function(){g.trigger(i,[g,t])},1):"unload"===e&&g.trigger(i,[g,t])}}},speed:E.noop,unload:function(){w&&w.__unload&&w.__unload();try{y&&window[y]&&delete window[y]}catch(e){}E.find("object",m).forEach(E.removeNode),w=0,g.off(".flashengine"),g.off(".flashhack"),clearInterval(w.pollInterval),M.forEach(function(e){clearTimeout(e)})}};function A(e){return/application\/x-mpegurl/i.test(e.type)}return["pause","resume","seek","volume"].forEach(function(t){C[t]=function(e){try{g.ready&&(void 0===e?w["__"+t]():w["__"+t](e))}catch(e){if(void 0===w["__"+t])return g.trigger("flashdisabled",[g]);throw e}}}),C}).engineName="flash",i.canPlay=function(e,t){return S.support.flashVideo&&/video\/(mp4|flash|flv)/i.test(e)||S.support.flashVideo&&t.swfHls&&/mpegurl/i.test(e)},S.engines.push(i)},{"../common":1,"../flowplayer":31,"./embed":2,bean:34,"extend-object":39}],4:[function(e,t,n){"use strict";var l,g=e("../flowplayer"),i=g.support,m=g.common,v=g.bean,r=e("./html5-factory");function o(e){return void 0!==window.Hls&&(/mpegurl/.test(e)&&window.Hls.isSupported())}(l=function(d,a){var p,h,s=window.Hls;return r("hlsjs-lite",d,a,o,function(c,u,e){var i=g.extend({recoverMediaError:!0},d.conf.hlsjs,c.hlsjs);d.engine.hls&&d.engine.hls.destroy();var n,r,f=d.engine.hls=new s(i);function o(e){if(d.debug("hlsjs - recovery"),m.removeClass(a,"is-paused"),m.addClass(a,"is-seeking"),v.one(u,"seeked",function(){u.paused&&(m.removeClass(a,"is-poster"),d.poster=!1,u.play()),m.removeClass(a,"is-seeking")}),e)return f.startLoad();var t=performance.now();!n||3e3<t-n?(n=performance.now(),f.recoverMediaError()):(!r||3e3<t-r)&&(r=performance.now(),f.swapAudioCodec(),f.recoverMediaError())}return l.extensions.forEach(function(e){e({hls:f,player:d,root:a,videoTag:u})}),f.loadSource(c.src),e.resume=function(){d.live&&!d.dvr&&(u.currentTime=f.liveSyncPosition||0),u.play()},!(e.seek=function(t){try{d.live||d.dvr?u.currentTime=Math.min(t,f.liveSyncPosition||u.duration-i.livePositionOffset):u.currentTime=t}catch(e){d.debug("Failed to seek to ",t,e)}})===i.bufferWhilePaused&&d.on("pause",function(){f.stopLoad(),d.one("resume",function(){f.startLoad()})}),d.on("quality",function(e,t,n){f.nextLevel=p=n}),f.on(s.Events.MANIFEST_PARSED,function(e,t){var i,r=c.hlsQualities||d.conf.hlsQualities,o={},n=t.levels;if(!1===r)return f.attachMedia(u);if("drive"===r)switch(n.length){case 4:i=[1,2,3];break;case 5:i=[1,2,3,4];break;case 6:i=[1,3,4,5];break;case 7:i=[1,3,5,6];break;case 8:i=[1,3,6,7];break;default:i=n.length<3||n[0].height&&n[2].height&&n[0].height===n[2].height?[]:[1,2]}if(c.qualities=[{value:-1,label:"Auto"}],Array.isArray(r)){var a=r.find(function(e){return-1===e||e.level&&-1===e.level});a?c.qualities[0].label="number"!=typeof a?a.label:c.qualities[0].label:c.qualities=[],i=r.map(function(e){return void 0!==e.level&&(o[e.level]=e.label),void 0!==e.level?e.level:e})}var s=-2;c.qualities=c.qualities.concat(n.map(function(e,t){if(i&&-1===i.indexOf(t))return!1;var n=o[t]||Math.min(e.width,e.height)+"p";return o[t]||"drive"===r||(n+=" ("+Math.round(e.bitrate/1e3)+"k)"),t===p&&(s=t),{value:t,label:n}})).filter(m.identity);var l=c.quality=-2===s?c.qualities[0].value||-1:s;l!==f.currentLevel&&(f.currentLevel=l),f.attachMedia(u),h&&c.src!==h&&u.play(),h=c.src}),f.on(s.Events.ERROR,function(e,t){if(t.fatal)if(i.recoverNetworkError&&t.type===s.ErrorTypes.NETWORK_ERROR)o(!0);else if(i.recoverMediaError&&t.type===s.ErrorTypes.MEDIA_ERROR)o(!1);else{var n=5;t.type===s.ErrorTypes.NETWORK_ERROR&&(n=2),t.type===s.ErrorTypes.MEDIA_ERROR&&(n=3),f.destroy(),d.trigger("error",[d,{code:n}])}}),d.one("unload",function(){f.destroy()}),{handlers:{error:function(e,t){var n=t.error&&t.error.code;return i.recoverMediaError&&3===n||!n?(e.preventDefault(),o(!1),!0):i.recoverNetworkError&&2===n?(e.preventDefault(),o(!0),!0):void 0}}}})}).canPlay=function(e,t){return!(!1===t.hlsjs||t.clip&&!1===t.clip.hlsjs)&&(!(i.browser.safari&&!(t.clip&&t.clip.hlsjs||t.hlsjs||{}).safari)&&(g.support.video&&o(e)))},l.engineName="hlsjs-lite",l.plugin=function(e){l.extensions.push(e)},l.extensions=[],g.engines.push(l)},{"../flowplayer":31,"./html5-factory":5}],5:[function(e,t,n){var i=e("../flowplayer"),m=i.common,v=i.support,y=i.bean,w=i.extend,r=v.browser.safari&&!v.iOS,b={ended:"finish",pause:"pause",play:"resume",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadedmetadata:r?0:"ready",canplaythrough:r?"ready":0,durationchange:"ready",error:"error",dataunavailable:"error",webkitendfullscreen:!i.support.inlineVideo&&"unload",progress:"buffer"};function I(e,t){return t=t||100,Math.round(e*t)/t}t.exports=function(e,d,p,h,l){var t,c,u,f=m.findDirect("video",p)[0]||m.find(".fp-player > video",p)[0],g=d.conf;return u={engineName:e,pick:function(e){var t=v.video&&e.filter(function(e){return h(e.type)})[0];if(t)return"string"==typeof t.src&&(t.src=m.createAbsoluteUrl(t.src)),t},load:function(e){var t=m.find(".fp-player",p)[0],n=!1;if(f||(f=document.createElement("video"),m.prepend(t,f),f.autoplay=!!g.splash,n=!0),m.addClass(f,"fp-engine"),m.find("track",f).forEach(m.removeNode),f.preload="none",g.nativesubtitles||m.attr(f,"crossorigin",!1),g.disableInline||(f.setAttribute("webkit-playsinline","true"),f.setAttribute("playsinline","true")),v.inlineVideo||m.css(f,{position:"absolute",top:"-9999em"}),v.subtitles&&g.nativesubtitles&&e.subtitles&&e.subtitles.length){m.addClass(f,"native-subtitles");function i(e){var t=f.textTracks;t.length&&(t[0].mode=e)}var r=e.subtitles;r.some(function(e){return!m.isSameDomain(e.src)})&&m.attr(f,"crossorigin","anonymous"),"function"==typeof f.textTracks.addEventListener&&f.textTracks.addEventListener("addtrack",function(){i("disabled"),i("showing")}),r.forEach(function(e){f.appendChild(m.createElement("track",{kind:"subtitles",srclang:e.srclang||"en",label:e.label||"en",src:e.src,default:e.default}))})}y.off(f,"timeupdate",m.noop),y.on(f,"timeupdate",m.noop),m.prop(f,"loop",!1),d.off(".loophack"),(e.loop||g.loop)&&d.on("finish.loophack",function(){d.resume()}),void 0!==c&&(f.volume=c);var o=l(e,f,u);if(g.autoplay||g.splash||e.autoplay){d.debug("Autoplay / Splash setup, try to start video"),f.load();function a(){try{var e=f.play();if(e&&e.catch){var t=function(e){if("AbortError"===e.name&&20===e.code)return n?void 0:f.play().catch(t);if(!g.mutedAutoplay)throw new Error("Unable to autoplay");return d.debug("Play errored, trying muted",e),d.mute(!0,!0),f.play()};e.catch(t).catch(function(){g.autoplay=!1,d.mute(!1,!0),d.trigger("stop",[d])})}}catch(e){d.debug("play() error thrown",e)}}0<f.readyState?a():y.one(f,"canplay",a)}if(u._listeners=function(l,e,c,u){var f=p.getAttribute("data-flowplayer-instance-id");if(l.listeners&&l.listeners.hasOwnProperty(f))return void(l.listeners[f]=c);(l.listeners||(l.listeners={}))[f]=c,y.on(e,"error",function(e){try{h(e.target.getAttribute("type"))&&d.trigger("error",[d,{code:4,video:w(c,{src:l.src,url:l.src})}])}catch(e){}}),d.on("shutdown",function(){y.off(e),y.off(l,".dvrhack"),d.off(".loophack")});function t(e){"metadata"===e.kind&&(e.mode="hidden",e.addEventListener("cuechange",function(){e.activeCues.length&&d.trigger("metadata",[d,e.activeCues[0].value])},!1))}var n={};l&&l.textTracks&&l.textTracks.length&&Array.prototype.forEach.call(l.textTracks,t);l&&l.textTracks&&"function"==typeof l.textTracks.addEventListener&&l.textTracks.addEventListener("addtrack",function(e){t(e.track)},!1);(d.conf.dvr||d.dvr||c.dvr)&&y.on(l,"progress.dvrhack",function(){l.seekable.length&&(d.video.duration=l.seekable.end(null),d.video.seekOffset=l.seekable.start(null),d.trigger("dvrwindow",[d,{start:l.seekable.start(null),end:l.seekable.end(null)}]),l.currentTime>=l.seekable.start(null)||(l.currentTime=l.seekable.start(null)))});return Object.keys(b).forEach(function(a){var s=b[a];if("webkitendfullscreen"===a&&d.conf.disableInline&&(s="unload"),s){function e(e){if(c=l.listeners[f],e.target&&m.hasClass(e.target,"fp-engine")){/progress/.test(s)||d.debug(a,"->",s,e);function t(e){d.trigger(e||s,[d,n])}var n;if((d.ready||/ready|error/.test(s))&&s&&m.find("video",p).length)if("unload"!==s){switch(s){case"ready":if(d.ready&&(d.live||d.dvr)&&(d.video.duration=l.duration),d.ready)return d.debug("Player already ready, not sending duplicate ready event");if(!(l.duration&&l.duration!==1/0||d.live))return d.debug("No duration and VOD setup, not sending ready event");if((n=w(c,{duration:l.duration<Number.MAX_VALUE?l.duration:0,width:l.videoWidth,height:l.videoHeight,url:l.currentSrc})).seekable=n.duration,d.debug("Ready: ",n),d.live||n.duration||v.hlsDuration||"loadeddata"!==a)break;var i=function(){n.duration=l.duration;try{n.seekable=l.seekable&&l.seekable.end(null)}catch(e){}t(),l.removeEventListener("durationchange",i),m.toggleClass(p,"is-live",!1)};l.addEventListener("durationchange",i);var r=function(){d.ready||l.duration||(n.duration=0,m.addClass(p,"is-live"),t()),l.removeEventListener("timeupdate",r)};return void l.addEventListener("timeupdate",r);case"progress":case"seek":if(0<l.currentTime||d.live)n=Math.max(l.currentTime,0);else if("seek"===s&&0===l.currentTime)n=0;else if("progress"==s)return;break;case"buffer":n=[];for(var o=0;o<l.buffered.length;o++)n.push({start:l.buffered.start(o),end:l.buffered.end(o)});l.buffered.length&&l.buffered.end(null)===l.duration&&t("buffered");break;case"speed":n=I(l.playbackRate);break;case"volume":n=I(l.muted?0:l.volume);break;case"error":try{if(u&&u.handlers&&u.handlers.error)if(u.handlers.error(e,l))return;(n=(e.srcElement||e.originalTarget).error).video=w(c,{src:l.src,url:l.src})}catch(e){return}}t()}else d.unload();else"resume"===s&&d.one("ready",function(){setTimeout(function(){t()})})}}p.addEventListener(a,e,!0),n[a]||(n[a]=[]),n[a].push(e)}}),n}(f,m.find("source",f).concat(f),e,o)||u._listeners,!(g.autoplay||g.splash||e.autoplay)){function s(){var e;0<=(e=p.getBoundingClientRect()).top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)+e.height&&e.right<=(window.innerWidth||document.documentElement.clientWidth)+e.width&&(d.debug("player is in viewport, preload"),v.preloadMetadata?f.preload="metadata":f.load(),y.off(document,"scroll.preloadviewport"))}y.off(document,"scroll.preloadviewport"),y.on(document,"scroll.preloadviewport",function(){window.requestAnimationFrame(s)}),s()}},mute:function(e){f.muted=!!e,d.trigger("mute",[d,e]),d.trigger("volume",[d,e?0:f.volume])},pause:function(){f.pause()},resume:function(){f.play()},speed:function(e){f.playbackRate=e},seek:function(e){var t=f.paused||d.finished;try{f.currentTime=e,t&&y.one(f,"seeked",function(){f.pause()})}catch(e){}},volume:function(e){c=e,f&&(f.volume=e)&&u.mute(!1)},unload:function(){y.off(document,"scroll.preloadviewport"),m.find("video.fp-engine",p).forEach(function(e){"MediaSource"in window?e.src=URL.createObjectURL(new MediaSource):e.src="",m.removeNode(e)}),t=clearInterval(t);var e=p.getAttribute("data-flowplayer-instance-id");delete f.listeners[e],f=0,u._listeners&&Object.keys(u._listeners).forEach(function(t){u._listeners[t].forEach(function(e){p.removeEventListener(t,e,!0)})})}}}},{"../flowplayer":31}],6:[function(e,t,n){"use strict";var i,r=e("../flowplayer"),o=r.common,a=e("./html5-factory"),s=document.createElement("video");function l(e){var t;return/^(video|application)/i.test(e)||(e=/mpegurl/i.test(t=e)?"application/x-mpegurl":t),!!s.canPlayType(e).replace("no","")}(i=function(e,t){return a("html5",e,t,l,function(e,t){t.currentSrc!==e.src?(o.find("source",t).forEach(o.removeNode),t.src=e.src,t.type=e.type):e.autoplay&&t.load()})}).canPlay=function(e){return r.support.video&&l(e)},i.engineName="html5",r.engines.push(i)},{"../flowplayer":31,"./html5-factory":5}],7:[function(e,t,n){"use strict";var i=e("../flowplayer"),r=e("../common"),o=e("bean"),a=window.jQuery;i(function(e,i){e.on("ready",function(){var t=r.find("video.fp-engine",i)[0];t&&(t.setAttribute("x-webkit-airplay","allow"),window.WebKitPlaybackTargetAvailabilityEvent&&(t.addEventListener("webkitplaybacktargetavailabilitychanged",function(e){if("available"===e.availability){var t=r.find(".fp-header",i)[0];r.find(".fp-airplay",t).forEach(r.removeNode);var n=r.createElement("a",{class:"fp-airplay fp-icon",title:"Play on AirPlay device"});t.insertBefore(n,r.find(".fp-fullscreen",t)[0])}}),t.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(){var e=r.find(".fp-airplay",i)[0];e&&r.toggleClass(e,"fp-active",t.webkitCurrentPlaybackTargetIsWireless)}),e.one("progress",function(){a(i).find(".fp-airplay").toggle("html5"==e.engine.engineName)})))}),o.on(i,"click",".fp-airplay",function(e){e.preventDefault(),r.find("video.fp-engine",i)[0].webkitShowPlaybackTargetPicker()})})},{"../common":1,"../flowplayer":31,bean:34}],8:[function(e,t,n){"use strict";var i=e("../flowplayer"),l=e("./resolve").TYPE_RE,c=e("scriptjs"),u=e("bean");i(function(i,r){var o,t=i.conf.analytics,a=0,e=0;if(t){"undefined"==typeof _gat&&c("//google-analytics.com/ga.js");var s=function(){var e=_gat._getTracker(t);return e._setAllowLinker(!0),e},n=function(e,t,n){n=n||i.video,a&&"undefined"!=typeof _gat&&(s()._trackEvent("Video / Seconds played",i.engine.engineName+"/"+n.type,n.title||r.getAttribute("title")||n.src.split("/").slice(-1)[0].replace(l,""),Math.round(a/1e3)),a=0,o&&(clearTimeout(o),o=null))};i.bind("load unload",n).bind("progress",function(){i.seeking||(a+=e?new Date-e:0,e=+new Date),o=o||setTimeout(function(){o=null,s()._trackEvent("Flowplayer heartbeat","Heartbeat","",0,!0)},6e5)}).bind("pause",function(){e=0}),i.bind("shutdown",function(){u.off(window,"unload",n)}),u.on(window,"unload",n)}})},{"../flowplayer":31,"./resolve":21,bean:34,scriptjs:45}],9:[function(e,t,n){"use strict";var i=e("../flowplayer"),g=e("../common"),m=e("bean"),v=e("scriptjs");i(function(r,o){if(!1!==r.conf.chromecast){v("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"),window.__onGCastApiAvailable=function(e){var t,n,i;e&&(t=c.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,n=new chrome.cast.SessionRequest(t),i=new chrome.cast.ApiConfig(n,u,f),chrome.cast.initialize(i,d,p))};var a,s,l,c=r.conf.chromecast||{};m.on(o,"click",".fp-chromecast",function(e){if(e.preventDefault(),a)return r.trigger("pause",[r]),a.stop(),a=null,void h();r.playing&&r.pause(),chrome.cast.requestSession(function(e){var t=(a=e).receiver.friendlyName;g.html(g.find(".fp-chromecast-engine-status")[0],"Playing on device "+t);var n=new chrome.cast.media.MediaInfo(r.video.src),i=new chrome.cast.media.LoadRequest(n);a.loadMedia(i,function(n){n.addUpdateListener(function(e){if(a){s=s||setInterval(function(){r.trigger("progress",[r,n.getEstimatedTime()])},500),e?(g.toggleClass(o,"is-chromecast",!0),g.toggleClass(l,"fp-active",!0),r.hijack({pause:function(){n.pause()},resume:function(){n.play()},seek:function(e){var t=new chrome.cast.media.SeekRequest;t.currentTime=e,n.seek(t)}})):(h(),r.trigger("finish",[r]));var t=n.playerState;r.paused&&t===chrome.cast.media.PlayerState.PLAYING&&r.trigger("resume",[r]),r.playing&&t===chrome.cast.media.PlayerState.PAUSED&&r.trigger("pause",[r]),g.toggleClass(o,"is-loading",t===chrome.cast.media.PlayerState.BUFFERING)}})},function(){})},function(e){console.error("requestSession error",e)})})}function u(){console.log("sessionListener")}function f(e){e===chrome.cast.ReceiverAvailability.AVAILABLE&&function(){var e=g.find(".fp-header",o)[0];if(!e)return;g.find(".fp-chromecast",e).forEach(g.removeNode),g.find(".fp-chromecast-engine",o).forEach(g.removeNode),l=g.createElement("a",{class:"fp-chromecast fp-icon",title:"Play on Cast device"}),e.insertBefore(l,g.find(".fp-fullscreen",e)[0]);var t=g.createElement("div",{class:"fp-chromecast-engine"}),n=g.createElement("p",{class:"fp-chromecast-engine-status"}),i=g.createElement("p",{class:"fp-chromecast-engine-icon"});t.appendChild(i),t.appendChild(n);var r=g.find(".fp-engine",o)[0];r?r.parentNode.insertBefore(t,r):g.prepend(g.find(".fp-player",o)[0]||o,t)}()}function d(){}function p(){console.log("onError")}function h(){clearInterval(s),s=null,r.release(),g.toggleClass(o,"is-chromecast",!1),g.toggleClass(l,"fp-active",!1)}})},{"../common":1,"../flowplayer":31,bean:34,scriptjs:45}],10:[function(e,t,n){"use strict";var i=e("../flowplayer"),f=e("../common"),d=e("bean");i(function(a,s){var t=/ ?cue\d+ ?/,r=!1;function i(e){s.className=s.className.replace(t," "),0<=e&&f.addClass(s,"cue"+e)}function o(e){i(e.index),a.trigger("cuepoint",[a,e])}var l={},c=-.125;function u(e){var t=e&&!isNaN(e.time)?e.time:e;return t<0&&(t=a.video.duration+t),.125*Math.round(t/.125)}a.on("progress",function(e,t,n){if(!r)for(var i=u(n);c<i;)l[c+=.125]&&l[c].forEach(o)}).on("unload",i).on("beforeseek",function(e){setTimeout(function(){e.defaultPrevented||(r=!0)})}).on("seek",function(e,t,n){i(),c=u(n||0)-.125,r=!1,!n&&l[0]&&l[0].forEach(o)}).on("ready",function(e,t,n){c=-.125;var i=n.cuepoints||a.conf.cuepoints||[];a.setCuepoints(i)}).on("finish",function(){for(var e=u(a.video.duration);c<e;)l[c+=.125]&&l[c].forEach(o);c=-.125}),a.conf.generate_cuepoints&&a.bind("load",function(){f.find(".fp-cuepoint",s).forEach(f.removeNode)}),a.setCuepoints=function(e){return a.cuepoints=[],l={},e.forEach(a.addCuepoint),a},a.addCuepoint=function(e){a.cuepoints||(a.cuepoints=[]),"number"==typeof e&&(e={time:e}),e.index=0;var t=u(e);if(l[t]||(l[t]=[]),l[t].push(e),a.cuepoints.length&&(e.index=Math.max.apply(null,a.cuepoints.map(function(e){return e.index}))+1),a.cuepoints.push(e),a.conf.generate_cuepoints&&!1!==e.visible){var n=a.video.duration,i=f.find(".fp-timeline",s)[0];f.css(i,"overflow","visible");var r=e.time||e;r<0&&(r=n+r);var o=f.createElement("a",{className:"fp-cuepoint fp-cuepoint"+e.index});f.css(o,"left",r/n*100+"%"),i.appendChild(o),d.on(o,"mousedown",function(e){e.preventDefault(),e.stopPropagation(),a.seek(r)})}return a},a.removeCuepoint=function(t){"number"==typeof t&&(t=a.cuepoints.filter(function(e){return e.index===t})[0]);var e=a.cuepoints.indexOf(t),n=u(t);if(-1!==e){a.cuepoints=a.cuepoints.slice(0,e).concat(a.cuepoints.slice(e+1));var i=f.find(".fp-timeline",s)[0];f.find(".fp-cuepoint"+t.index,i).forEach(f.removeNode);var r=l[n].indexOf(t);if(-1!==r)return l[n]=l[n].slice(0,r).concat(l[n].slice(r+1)),a}}})},{"../common":1,"../flowplayer":31,bean:34}],11:[function(e,t,n){"use strict";var i=e("../flowplayer"),r=e("bean"),l=e("../common"),o=e("./util/clipboard");i(function(a,s){if(!1!==a.conf.embed&&!1!==a.conf.share){var e=l.find(".fp-share-menu",s)[0],t=l.createElement("a",{class:"fp-icon fp-embed",title:"Copy to your site"},"Embed");l.append(e,t),a.embedCode=function(){var e=a.conf.embed||{},t=a.video,n=e.width||t.width||l.width(s),i=e.height||t.height||l.height(s),r=a.conf.ratio,o='<iframe src="'+a.shareUrl(!0)+'" allowfullscreen style="border:none;';return e.width||e.height?(isNaN(n)||(n+="px"),isNaN(i)||(i+="px"),o+"width:"+n+";height:"+i+';"></iframe>'):(r&&!a.conf.adaptiveRatio||(r=i/n),'<div style="position:relative;width:100%;display:inline-block;">'+o+'position:absolute;top:0;left:0;width:100%;height:100%;"></iframe><div style="padding-top:'+100*r+'%;"></div></div>')},r.on(s,"click",".fp-embed",function(){o(a.embedCode(),function(){a.message("The embed code is now on your clipboard",2e3)},function(){a.textarea(a.embedCode(),"Copy the code below to embed your video")})})}})},{"../common":1,"../flowplayer":31,"./util/clipboard":30,bean:34}],12:[function(e,t,n){"use strict";t.exports=function(o,s){s=s||document.createElement("div");function n(n,i,r){var o=n.split(".")[0],a=function(e){r&&(s.removeEventListener(o,a),l[n].splice(l[n].indexOf(a),1));var t=[e].concat(c[e.timeStamp+e.type]||[]);i&&i.apply(void 0,t)};s.addEventListener(o,a),l[n]||(l[n]=[]),l[n].push(a)}var l={},c={};o.on=o.bind=function(e,t){return e.split(" ").forEach(function(e){n(e,t)}),o},o.one=function(e,t){return e.split(" ").forEach(function(e){n(e,t,!0)}),o};o.off=o.unbind=function(e){return e.split(" ").forEach(function(e){var i=e.split(".").slice(1),r=e.split(".")[0];Object.keys(l).filter(function(e){var t,n=e.split(".").slice(1);return(!r||0===e.indexOf(r))&&(t=n,0===i.filter(function(e){return-1===t.indexOf(e)}).length)}).forEach(function(e){var t=l[e],n=e.split(".")[0];l[e]=t.filter(function(e){return s.removeEventListener(n,e),!1})})}),o},o.trigger=function(e,t,n){if(e){t=(t||[]).length?t||[]:[t];var i,r=document.createEvent("Event");return i=e.type||e,r.initEvent(i,!1,!0),Object.defineProperty&&(r.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}),c[r.timeStamp+r.type]=t,s.dispatchEvent(r),n?r:o}}},t.exports.EVENTS=["beforeseek","disable","error","finish","fullscreen","fullscreen-exit","load","mute","pause","progress","ready","resume","seek","speed","stop","unload","volume","boot","shutdown"]},{}],13:[function(e,t,n){"use strict";var i=e("../flowplayer"),r=e("../common"),a=e("bean");i(function(e,t){var o=e.conf;if(!1!==o.share&&o.facebook){e.facebook=function(){var e,t,n=screen.height,i=screen.width,r="string"==typeof o.facebook?o.facebook:window.location.toString();e=Math.round(i/2-275),t=0,420<n&&(t=Math.round(n/2-210)),window.open("https://www.facebook.com/sharer.php?s=100&p[url]="+encodeURIComponent(r),"sharer","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,left="+e+",top="+t)};var n=r.find(".fp-share-menu",t)[0],i=r.createElement("a",{class:"fp-icon fp-facebook"},"Facebook");r.append(n,i),a.on(t,"click",".fp-facebook",function(){e.facebook()})}})},{"../common":1,"../flowplayer":31,bean:34}],14:[function(e,t,n){"use strict";var s,i=e("../flowplayer"),r=e("bean"),l=e("../common"),c="fullscreen",u="fullscreen-exit",f=i.support.fullscreen;r.on(document,"fullscreenchange.ffscr webkitfullscreenchange.ffscr mozfullscreenchange.ffscr MSFullscreenChange.ffscr",function(e){var t=document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||document.msFullscreenElement||e.target;if(s||t.parentNode&&t.parentNode.getAttribute("data-flowplayer-instance-id")){var n=s||i(t.parentNode);s=t&&!s?n.trigger(c,[n]):(s.trigger(u,[s]),null)}}),i(function(t,n){var i=l.createElement("div",{className:"fp-player"});if(Array.prototype.map.call(n.children,l.identity).forEach(function(e){l.matches(e,".fp-ratio,script")||i.appendChild(e)}),n.appendChild(i),t.conf.fullscreen){var r,o,e,a=window;t.isFullscreen=!1,t.fullscreen=function(e){if(!t.disabled)return void 0===e&&(e=!t.isFullscreen),e&&(r=a.scrollY,o=a.scrollX),f?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof i[e]&&(i[e](Element.ALLOW_KEYBOARD_INPUT),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||i[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):t.trigger(e?c:u,[t]),t},t.on("mousedown.fs",function(){new Date-e<150&&t.ready&&t.fullscreen(),e=+new Date}),t.on(c,function(){l.addClass(n,"is-fullscreen"),l.toggleClass(n,"fp-minimal-fullscreen",l.hasClass(n,"fp-minimal")),l.removeClass(n,"fp-minimal"),f||l.css(n,"position","fixed"),t.isFullscreen=!0}).on(u,function(){var e;l.toggleClass(n,"fp-minimal",l.hasClass(n,"fp-minimal-fullscreen")),l.removeClass(n,"fp-minimal-fullscreen"),f||"html5"!==t.engine||(e=n.css("opacity")||"",l.css(n,"opacity",0)),f||l.css(n,"position",""),l.removeClass(n,"is-fullscreen"),f||"html5"!==t.engine||setTimeout(function(){n.css("opacity",e)}),t.isFullscreen=!1,a.scrollTo(o,r)}).on("unload",function(){t.isFullscreen&&t.fullscreen()}),t.on("shutdown",function(){s=null,l.removeNode(i)})}})},{"../common":1,"../flowplayer":31,bean:34}],15:[function(e,t,n){"use strict";var l,c,i=e("../flowplayer"),r=e("bean"),u=e("../common");i(function(t,n){t.conf.keyboard&&(r.on(document,"keydown.fp",function(e){if(void 0!==l){var t=l,n=!!t&&c,i=t&&!t.disabled?t:0,r=e.ctrlKey||e.metaKey||e.altKey,o=e.which,a=i&&i.conf;if(!u.hasClass(n,"no-controlbar")&&!u.hasClass(n,"is-cva")&&i&&a.keyboard&&!i.disabled){if(-1!=[63,187,191].indexOf(o))return u.toggleClass(n,"is-help"),!1;if(27==o&&u.hasClass(n,"is-help"))return u.toggleClass(n,"is-help"),!1;if(!r&&i.ready){if(e.preventDefault(),e.shiftKey)return void(39==o?i.speed(!0):37==o?i.speed(!1):78==o?i.next():80==o&&i.prev());if(o<58&&47<o)return i.seekTo(o-48);switch(o){case 38:case 75:i.volume(i.volumeLevel+.15);break;case 40:case 74:i.volume(i.volumeLevel-.15);break;case 39:case 76:i.seeking=!0,i.seek(t.video.time+5);break;case 37:case 72:i.seeking=!0,i.seek(t.video.time-5);break;case 190:i.seekTo();break;case 32:i.toggle();break;case 70:a.fullscreen&&i.fullscreen();break;case 77:i.mute();break;case 81:i.unload();break;case 67:if(!t.video.subtitles||0==t.video.subtitles.length)break;var s=n.querySelector(".fp-dropdown li.active[data-subtitle-index]").dataset.subtitleIndex;void 0===s&&(s=-1),++s>t.video.subtitles.length-1&&(s=-1),t.trigger("subtitles-switched",[s])}}}}}),r.on(n,"mouseenter mouseleave",function(e){(l=t.disabled||"mouseover"!=e.type?0:t)&&(c=n)}))})},{"../common":1,"../flowplayer":31,bean:34}],16:[function(e,t,n){var i=e("../flowplayer"),l=e("../common"),c=e("bean");i(function(a,s){a.showMenu=function(e,t){var n=l.find(".fp-ui",s)[0];l.toggleClass(e,"fp-active",!0),setTimeout(function(){c.one(document,"click",function(){a.hideMenu(e)})});var i=t;if(t&&t.tagName&&(i={left:l.offset(t).left,rightFallbackOffset:l.width(t),top:l.offset(t).top+l.height(t)}),!i)return l.css(e,"top","auto");i.rightFallbackOffset=i.rightFallbackOffset||0;var r=i.top-l.offset(n).top,o=i.left-l.offset(n).left;l.width(e)+o>l.width(n)&&(o=o-l.width(e)+i.rightFallbackOffset),l.height(e)+r>l.height(n)&&(r-=l.height(e)),l.css(e,{top:r+"px",left:o+"px",right:"auto"})},a.hideMenu=function(e){l.toggleClass(e,"fp-active",!1),l.css(e,{top:"-9999em"})}})},{"../common":1,"../flowplayer":31,bean:34}],17:[function(e,t,n){var i=e("../flowplayer"),l=e("../common"),r=e("bean");i(function(e,t){var a=l.find(".fp-header",t)[0],s=l.find(".fp-ui",t)[0];e.message=function(e,t){function n(){l.toggleClass(o,"fp-shown"),setTimeout(function(){var e;e=o,l.removeNode(e)},500)}var i,r,o=(i=e,r=l.createElement("div",{className:"fp-message"},i),s.insertBefore(r,a),setTimeout(function(){l.toggleClass(r,"fp-shown")}),r);return t&&setTimeout(n,t),n},e.textarea=function(e){var t=document.createElement("textarea");t.value=e,t.className="fp-textarea",s.appendChild(t),r.on(document,"click.fptextarea",function(e){if(e.target===t)return t.select();e.stopPropagation(),e.preventDefault(),l.removeNode(t),r.off(document,"click.fptextarea")})}})},{"../common":1,"../flowplayer":31,bean:34}],18:[function(e,t,n){"use strict";var i=e("../flowplayer"),p=/IEMobile/.test(window.navigator.userAgent),h=e("../common"),g=e("bean"),m=e("./ui").format,v=i.support,y=window.navigator.userAgent;(v.touch||p)&&i(function(n,i){var e=v.android,t=e&&!e.firefox,r=/Silk/.test(y),o=e.version||0;if(t&&!p){if(!/Chrome/.test(y)&&o<4||e.samsung&&o<5){var a=n.load;n.load=function(){var e=a.apply(n,arguments);return h.find("video.fp-engine",i)[0].load(),n.trigger("ready",[n,n.video]),e}}var s,l=0,c=function(e){s=setInterval(function(){e.video.time=++l,e.trigger("progress",[e,l])},1e3)};n.on("ready pause unload",function(){s&&(clearInterval(s),s=null)}),n.on("ready",function(){l=0}),n.on("resume",function(e,t){if(t.live)return l?c(t):void n.one("progress",function(e,t,n){0===n&&c(t)})})}v.volume||(h.removeClass(i,"fp-mute"),h.addClass(i,"no-volume")),v.iOS&&h.addClass(i,"fp-mute"),h.addClass(i,"is-touch"),n.sliders&&n.sliders.timeline&&n.sliders.timeline.disableAnimation();var u=!1;g.on(i,"touchmove",function(){u=!0});var f=!0;if(g.on(i,"touchend click",function(e){if(u)u=!1;else{var t=h.find("video.fp-engine",i)[0];if(f&&n.conf.clickToUnMute&&t&&t.muted&&n.conf.autoplay&&(t.muted=!1),f=!1,n.playing&&!h.hasClass(i,"is-mouseover"))return h.addClass(i,"is-mouseover"),h.removeClass(i,"is-mouseout"),e.preventDefault(),void e.stopPropagation();n.playing||n.splash||!h.hasClass(i,"is-mouseout")||h.hasClass(i,"is-mouseover")||setTimeout(function(){n.disabled||n.playing||n.splash||h.find("video.fp-engine",i)[0].play()},400)}}),!v.fullscreen&&n.conf.native_fullscreen&&"function"==typeof h.createElement("video").webkitEnterFullScreen){var d=n.fullscreen;n.fullscreen=function(){var e=h.find("video.fp-engine",i)[0];if(!e)return d.apply(n);n.trigger("fullscreen",[n]),g.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===e&&(g.off(document,".nativefullscreen"),g.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(g.off(document,".nativefullscreen"),n.trigger("fullscreen-exit",[n]))}))}),e.webkitEnterFullScreen(),g.one(e,"webkitendfullscreen",function(){g.off(document,"fullscreenchange.nativefullscreen"),n.trigger("fullscreen-exit",[n]),h.prop(e,"controls",!0),h.prop(e,"controls",!1)})}}(t||r)&&n.bind("ready",function(){var t=h.find("video.fp-engine",i)[0];n.conf.splash&&t.paused&&"hlsjs-lite"!==n.engine.engineName&&(g.one(t,"canplay",function(){t.play()}),t.load()),n.bind("progress.dur",function(){if(!n.live&&!n.conf.live){var e=t.duration;1!==e&&(n.video.duration=e,h.find(".fp-duration",i)[0].innerHTML=m(e),n.unbind("progress.dur"))}})})})},{"../common":1,"../flowplayer":31,"./ui":27,bean:34}],19:[function(e,t,n){"use strict";var i=e("../flowplayer"),o=e("extend-object"),a=e("bean"),g=e("../common"),s=e("./resolve"),l=new s,m=window.jQuery,v=/^#/;i(function(c,u){var f=o({active:"is-active",advance:!0,query:".fp-playlist a"},c.conf),d=f.active,t=g.find(".fp-ui",u)[0],e=g.hasClass(u,"fp-custom-playlist")||!!f.customPlaylist;function n(){return g.find(f.query,p())}function p(){if(!v.test(f.query))return u}function h(){return g.find(f.query+"."+d,p())}function i(){var i=g.find(".fp-playlist",u)[0];if(!i){i=g.createElement("div",{className:"fp-playlist"});var e=g.find(".fp-next,.fp-prev",u);e.length?e[0].parentElement.insertBefore(i,e[0]):g.insertAfter(u,g.find("video",u)[0],i)}i.innerHTML="",c.conf.playlist[0].length&&(c.conf.playlist=c.conf.playlist.map(function(e){if("string"!=typeof e)return{sources:e.map(function(t){var n={};return Object.keys(t).forEach(function(e){n.type=/mpegurl/i.test(e)?"application/x-mpegurl":"video/"+e,n.src=t[e]}),n})};var t=e.split(s.TYPE_RE)[1];return{sources:[{type:"m3u8"===t.toLowerCase()?"application/x-mpegurl":"video/"+t,src:e}]}})),c.conf.playlist.forEach(function(e,t){var n=e.sources[0].src;i.appendChild(g.createElement("a",{href:n,className:c.video.index===t?d:void 0,"data-index":t}))})}g.toggleClass(u,"fp-custom-playlist",e),g.toggleClass(u,"fp-default-playlist",!e),c.play=function(e){if(void 0===e)return c.resume();if("number"==typeof e&&!c.conf.playlist[e])return c;if("number"!=typeof e)return c.load.apply(null,arguments);var t=o({index:e},c.conf.playlist[e]);return c.off("beforeresume.fromfirst"),"number"==typeof e&&e===c.video.index?c.seek(0,function(){c.resume()}):(c.load(t,function(){c.video.index=e}),c)},c.next=function(e){e&&e.preventDefault();var t=c.video.index;return-1!=t&&(t=t===c.conf.playlist.length-1?0:t+1,c.play(t)),c},c.prev=function(e){e&&e.preventDefault();var t=c.video.index;return-1!=t&&(t=0===t?c.conf.playlist.length-1:t-1,c.play(t)),c},c.setPlaylist=function(e,t){return c.conf.playlist=e,t||delete c.video.index,i(),c},c.addPlaylistItem=function(e){return delete c.video.is_last,c.setPlaylist(c.conf.playlist.concat([e]),!0)},c.removePlaylistItem=function(e){var t=c.conf.playlist;return c.setPlaylist(t.slice(0,e).concat(t.slice(e+1)))},a.on(u,"click",".fp-next",c.next),a.on(u,"click",".fp-prev",c.prev),c.off("finish.pl").on("finish.pl",function(e,t){if(void 0===t.conf.advance||t.conf.advance){if(t.video.loop)return t.seek(0,function(){t.resume()});var n=0<=t.video.index?t.video.index+1:void 0;n<t.conf.playlist.length||f.loop?(n=n===t.conf.playlist.length?0:n,g.removeClass(u,"is-finished"),setTimeout(function(){t.play(n)})):1<t.conf.playlist.length&&(t.one("beforeresume.fromfirst",function(e){e.preventDefault(),t.play(0)}),t.one("seek",function(){t.off("beforeresume.fromfirst")}))}});var r=!1;c.conf.playlist.length&&(r=!0,i(),c.conf.clip&&c.conf.clip.sources.length||(c.conf.clip=c.conf.playlist[c.conf.startIndex||0])),n().length&&!r&&(c.conf.playlist=[],delete c.conf.startIndex,n().forEach(function(e){var t=e.href;e.setAttribute("data-index",c.conf.playlist.length);var n=l.resolve(t,c.conf.clip.sources);m&&o(n,m(e).data()),c.conf.playlist.push(n)})),g.find(".fp-prev,.fp-next,.fp-playlist",u).forEach(function(e){t.appendChild(e)}),a.on(v.test(f.query)?document:u,"click",f.query,function(e){e.preventDefault();var t=e.currentTarget,n=Number(t.getAttribute("data-index"));-1!=n&&c.play(n)}),c.on("load",function(e,t,n){if(c.conf.playlist.length){var i,r=h()[0],o=r&&r.getAttribute("data-index"),a=n.index=void 0!==(i=n).index?i.index:void 0!==c.video.index?c.video.index:c.conf.startIndex||0,s=g.find(f.query+'[data-index="'+a+'"]',p())[0],l=a==c.conf.playlist.length-1;r&&g.removeClass(r,d),s&&g.addClass(s,d),g.removeClass(u,"video"+o),g.addClass(u,"video"+a),g.toggleClass(u,"last-video",l),n.index=t.video.index=a,n.is_last=t.video.is_last=l}}).on("unload.pl",function(){c.conf.playlist.length&&(h().forEach(function(e){g.toggleClass(e,d)}),c.conf.playlist.forEach(function(e,t){g.removeClass(u,"video"+t)}),delete c.video.index)}),c.conf.playlist.length&&(c.conf.loop=!1)})},{"../common":1,"../flowplayer":31,"./resolve":21,bean:34,"extend-object":39}],20:[function(e,t,n){var i=e("../flowplayer"),s=e("../common"),l=e("bean");i(function(n,i){var r=s.find(".fp-ui",i)[0],o=s.find(".fp-controls",r)[0];function a(t){s.find(".fp-qsel-menu a",i).forEach(function(e){s.toggleClass(e,"fp-selected",e.getAttribute("data-quality")==t),s.toggleClass(e,"fp-color",e.getAttribute("data-quality")==t)})}l.on(i,"click",".fp-qsel",function(){var e=s.find(".fp-qsel-menu",i)[0];s.hasClass(e,"fp-active")?n.hideMenu():n.showMenu(e)}),l.on(i,"click",".fp-qsel-menu a",function(e){var t=e.target.getAttribute("data-quality");n.quality(t)}),n.quality=function(e){e=isNaN(Number(e))?e:Number(e),n.trigger("quality",[n,e])},n.on("quality",function(e,t,n){a(n,t.video.qualities)}),n.on("ready",function(e,t,n){s.find(".fp-qsel-menu",i).forEach(s.removeNode),s.find(".fp-qsel",i).forEach(s.removeNode),!n.qualities||n.qualities.filter(function(e){return void 0===e.value||-1<e.value}).length<2||(function(e){o.appendChild(s.createElement("strong",{className:"fp-qsel"},"HD"));var i=s.createElement("div",{className:"fp-menu fp-qsel-menu"},"<strong>Quality</strong>");e.forEach(function(e){var t=document.createElement("a"),n=void 0!==e.value?e.value:e;t.setAttribute("data-quality",n),t.innerHTML=e.label||e,i.appendChild(t)}),r.appendChild(i)}(n.qualities,n.quality),a(n.quality,n.qualities))})})},{"../common":1,"../flowplayer":31,bean:34}],21:[function(e,t,n){"use strict";var r=/\.(\w{3,4})(\?.*)?$/i,o=e("extend-object");function i(e){var t=e.attr("src"),n=e.attr("type")||"",i=t.split(r)[1];return n=n.toLowerCase(),o(e.data(),{src:t,suffix:i||n,type:n||i})}t.exports=function(){this.sourcesFromVideoTag=function(e,t){var n=[];return t("source",e).each(function(){n.push(i(t(this)))}),!n.length&&e.length&&n.push(i(e)),n},this.resolve=function(n,e){return n?("string"==typeof n&&((n={src:n,sources:[]}).sources=(e||[]).map(function(e){var t=e.src.split(r)[1];return{type:e.type,src:n.src.replace(r,"."+t+"$2")}})),n instanceof Array&&(n={sources:n.map(function(i){return i.type&&i.src?i:Object.keys(i).reduce(function(e,t){return o(e,{type:/mpegurl/i.test(n=t)?"application/x-mpegurl":"video/"+n,src:i[t]});var n},{})})}),n):{sources:e}}},t.exports.TYPE_RE=r},{"extend-object":39}],22:[function(e,t,n){"use strict";var i=e("../flowplayer"),o=e("../common"),a=e("extend-object"),s=e("bean");i(function(t,e){var n=t.conf;if(!1!==n.share){t.shareUrl=function(e){return e&&n.embed&&n.embed.iframe?n.embed.iframe:"string"==typeof t.conf.share?t.conf.share:(e?"https://flowplayer.com/e/":"https://flowplayer.com/s/")+"?t="+encodeURIComponent(t.video.title||(o.find("title")[0]||{}).innerHTML||"Flowplayer video")+"&c="+encodeURIComponent(btoa(JSON.stringify(a({},t.conf,t.extensions)).replace(/[\u007F-\uFFFF]/g,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).substr(-4)})))+"&r="+encodeURIComponent(window.location.toString())};var i=o.createElement("div",{className:"fp-menu fp-share-menu"},"<strong>Share</strong>");o.find(".fp-ui",e)[0].appendChild(i);var r=o.find(".fp-share",e)[0];s.on(e,"click",".fp-share",function(e){e.preventDefault(),o.hasClass(i,"fp-active")?t.hideMenu():t.showMenu(i,r)})}else o.find(".fp-share",e).forEach(o.removeNode)})},{"../common":1,"../flowplayer":31,bean:34,"extend-object":39}],23:[function(e,t,n){"use strict";var d=e("../flowplayer"),p=e("../common"),h=e("bean"),i=e("./subtitles/parser");d.defaults.subtitleParser=i,d(function(r,o){var a,s,n,l,i,c=!1;function e(e,i,r){c&&(i.cuepoints||[]).forEach(function(e,t){var n=e.subtitle;n&&a!=t&&r>=e.time&&(!n.endTime||r<=n.endTime)&&i.trigger("cuepoint",[i,e])})}d.support.inlineVideo&&(d.support.fullscreen||!r.conf.native_fullscreen)||(r.conf.nativesubtitles=!0),r.ui||(r.ui={}),r.ui.createSubtitleControl=function(e,t){return i=t,n=n||p.createElement("strong",{className:"fp-cc"},"CC"),l=l||p.createElement("div",{className:"fp-menu fp-subtitle-menu"},"<strong>Closed Captions</strong>"),p.find("a",l).forEach(p.removeNode),l.appendChild(p.createElement("a",{"data-subtitle-index":-1},"No subtitles")),(e||[]).forEach(function(e,t){var n=e.srclang||"en",i=e.label||"Default ("+n+")",r=p.createElement("a",{"data-subtitle-index":t},i);l.appendChild(r)}),p.find(".fp-ui",o)[0].appendChild(l),p.find(".fp-controls",o)[0].appendChild(n),p.toggleClass(n,"fp-hidden",!e||!e.length),n},r.ui.setActiveSubtitleItem=function(e){f(e)},h.on(o,"click",".fp-cc",function(){p.hasClass(l,"fp-active")?r.hideMenu():r.showMenu(l)}),h.on(o,"click",".fp-subtitle-menu [data-subtitle-index]",function(e){e.preventDefault();var t=e.target.getAttribute("data-subtitle-index");return i?i(t):"-1"===t?r.disableSubtitles():void r.loadSubtitles(t)});r.on("ready",function(e,t,n){if(t.subtitles=[],s=(s=p.find(".fp-captions",o)[0])||p.appendTo(p.createElement("div",{class:"fp-captions"}),p.find(".fp-player",o)[0]),Array.prototype.forEach.call(s.children,p.removeNode),r.ui.createSubtitleControl(r.video.subtitles),p.removeClass(o,"has-menu"),r.disableSubtitles(),n.subtitles&&n.subtitles.length){var i=n.subtitles.filter(function(e){return e.default})[0];i&&t.loadSubtitles(n.subtitles.indexOf(i))}}),r.showSubtitle=function(e){p.html(s,e),p.addClass(s,"fp-shown")},r.hideSubtitle=function(){p.removeClass(s,"fp-shown")},r.bind("cuepoint",function(e,t,n){c=!1,n.subtitle?(a=n.index,r.showSubtitle(n.subtitle.text)):n.subtitleEnd&&(r.hideSubtitle(),a=n.index)}),r.bind("seek",function(e,t,i){a&&r.cuepoints[a]&&r.cuepoints[a].time>i&&(p.removeClass(s,"fp-shown"),a=null),(r.cuepoints||[]).forEach(function(e,t){var n=e.subtitle;n&&a!=t?i>=e.time&&(!n.endTime||i<=n.endTime)&&r.trigger("cuepoint",[r,e]):e.subtitleEnd&&i>=e.time&&t==a+1&&r.trigger("cuepoint",[r,e])})}),r.on("unload",function(){p.find(".fp-captions",o).forEach(p.removeNode)});function u(e,t){var n=p.find("video.fp-engine",o)[0].textTracks;n.length&&(null===e?[].forEach.call(n,function(e){e.mode=t}):n[e].mode=t)}var f=function(e){p.toggleClass(p.find("a.fp-selected",l)[0],"fp-selected"),p.toggleClass(p.find('a[data-subtitle-index="'+e+'"]',l)[0],"fp-selected")};r.disableSubtitles=function(){return r.subtitles=[],(r.cuepoints||[]).forEach(function(e){(e.subtitle||e.subtitleEnd)&&r.removeCuepoint(e)}),s&&Array.prototype.forEach.call(s.children,p.removeNode),f(-1),d.support.subtitles&&r.conf.nativesubtitles&&"html5"==r.engine.engineName&&u(null,"disabled"),r},r.loadSubtitles=function(e){r.disableSubtitles();var t=r.video.subtitles[e].src;if(t){if(f(e),!d.support.subtitles||!r.conf.nativesubtitles||"html5"!=r.engine.engineName)return p.xhrGet(t,function(e){r.conf.subtitleParser(e).forEach(function(e,t){e.title||(e.title="subtitle"+t);var n={time:e.startTime,subtitle:e,visible:!1};r.subtitles.push(e),r.addCuepoint(n),r.addCuepoint({time:e.endTime,subtitleEnd:e.title,visible:!1}),0!==e.startTime||r.video.time||r.splash||r.trigger("cuepoint",[r,d.extend({},n,{index:0})]),r.splash&&r.one("ready",function(){r.trigger("cuepoint",[r,n])})})},function(){return r.trigger("error-subtitles",{code:8,url:t}),!1}),r;u(e,"showing")}},h.on(o,"click",".fp-subtitle-menu a[data-subtitle-index]",function(){-1<this.dataset.subtitleIndex&&(c=!0,r.on("progress",e))})})},{"../common":1,"../flowplayer":31,"./subtitles/parser":24,bean:34}],24:[function(e,t,n){t.exports=function(e){var t=/^(([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3}) --\> (([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3})(.*)/;function n(e){var t=e.split(":");return 2==t.length&&t.unshift(0),60*t[0]*60+60*t[1]+parseFloat(t[2].replace(",","."))}for(var i,r,o,a=[],s=0,l=e.split("\n"),c=l.length,u={};s<c;s++)if(r=t.exec(l[s])){for(i=l[s-1],o="<p>"+l[++s]+"</p><br/>";"string"==typeof l[++s]&&l[s].trim()&&s<l.length;)o+="<p>"+l[s]+"</p><br/>";u={title:i,startTime:n(r[1]),endTime:n(r[3]),text:o},a.push(u)}return a}},{}],25:[function(e,t,n){"use strict";var S=e("../flowplayer"),E=e("extend-object");!function(){var e={},t=document.documentElement.style,n=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(n)||/(safari)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];i[1]&&(e[i[1]]=!0,e.version=i[2]||"0"),e.safari&&(e.version=(/version\/([\w.]+)/.exec(n)||[])[1]);var r,o,a=((o=document.createElement("video")).loop=!0,o.autoplay=!0,o.preload=!0,o),s=navigator.userAgent,l=e.msie||/Trident\/7/.test(s),c=/iPad|MeeGo/.test(s)&&!/CriOS/.test(s),u=/iPad/.test(s)&&/CriOS/.test(s),f=/iP(hone|od)/i.test(s)&&!/iPad/.test(s)&&!/IEMobile/i.test(s),d=/Android/.test(s),p=d&&/Firefox/.test(s),h=d&&/SAMSUNG/.test(s),g=/Silk/.test(s),m=/IEMobile/.test(s),v=m?parseFloat(/Windows\ Phone\ (\d+\.\d+)/.exec(s)[1],10):0,y=m?parseFloat(/IEMobile\/(\d+\.\d+)/.exec(s)[1],10):0,w=c||f?(r=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(s))&&1<r.length?parseFloat(r[r.length-1].replace("_","."),10):0:0,b=d?parseFloat(/Android\ (\d+(\.\d+)?)/.exec(s)[1],10):0,I=(f||c||u)&&{iPhone:f,iPad:c||u,version:w,chrome:u},M=E(S.support,{browser:e,iOS:I,android:!!d&&{firefox:p,opera:/Opera/.test(s),samsung:h,version:b},subtitles:!!a.addTextTrack,fullscreen:"boolean"==typeof document.webkitFullscreenEnabled?document.webkitFullscreenEnabled:"function"==typeof document.webkitCancelFullScreen&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(s)||document.mozFullScreenEnabled||"function"==typeof document.exitFullscreen||"function"==typeof document.msExitFullscreen,inlineBlock:!(l&&e.version<8),touch:"ontouchstart"in window,dataload:!c&&!f&&!m,flex:"flexWrap"in t||"WebkitFlexWrap"in t||"msFlexWrap"in t,svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,zeropreload:!l&&!d,volume:!(c||f||g||u),cachedVideoTag:!(c||f||u||m),firstframe:!(g||m||p||h||w&&w<10||d&&b<4.4),inlineVideo:(!f||10<=w)&&(!m||8.1<=v&&11<=y)&&(!d||3<=b),hlsDuration:!d&&(!e.safari||c||f||u),seekable:!c&&!u,preloadMetadata:!I&&!e.safari});M.autoplay=M.firstframe,m&&(M.browser.safari=!1);try{var C=navigator.plugins["Shockwave Flash"],A=l?new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version"):C.description;l||C[0].enabledPlugin?((A=A.split(/\D+/)).length&&!A[0]&&(A=A.slice(1)),M.flashVideo=9<A[0]||9==A[0]&&115<=A[3]):M.flashVideo=!1}catch(e){}try{M.video=!!a.canPlayType,M.video&&a.canPlayType("video/mp4")}catch(e){M.video=!1}M.animation=function(){for(var e=["","Webkit","Moz","O","ms","Khtml"],t=document.createElement("p"),n=0;n<e.length;n++)if(void 0!==t.style[e[n]+"AnimationName"])return!0}()}()},{"../flowplayer":31,"extend-object":39}],26:[function(e,t,n){"use strict";var i=e("../flowplayer"),r=e("../common"),s=e("bean");i(function(o,e){var a=o.conf;if(!1!==a.share&&!1!==a.twitter){o.tweet=function(){var e,t,n=screen.height,i=screen.width,r="string"==typeof a.twitter?a.twitter:o.shareUrl();e=Math.round(i/2-275),t=0,420<n&&(t=Math.round(n/2-210)),window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(r),"intent","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,left="+e+",top="+t)};var t=r.find(".fp-share-menu",e)[0],n=r.createElement("a",{class:"fp-icon fp-twitter"},"Twitter");r.append(t,n),s.on(e,"click",".fp-twitter",function(){o.tweet()})}})},{"../common":1,"../flowplayer":31,bean:34}],27:[function(e,t,n){(function(Z){"use strict";var P=e("../flowplayer"),k=e("../common"),Y=e("bean"),z=e("./ui/slider"),G=e("./ui/bar-slider");function r(e){return 10<=(e=parseInt(e,10))?e:"0"+e}function O(e,t){e=Math.max(e||0,0),e=t?Math.ceil(e):Math.floor(e);var n=Math.floor(e/3600),i=Math.floor(e/60);return e-=60*i,1<=n?n+":"+r(i-=60*n)+":"+r(e):r(i)+":"+r(e)}var R=Z("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLW91dGxpbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDk5Ljg0NCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz4KPHRpdGxlPnBsYXktcm91bmRlZC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNNDEuMDM1OSw3MS4xOWE1LjA0OTIsNS4wNDkyLDAsMCwxLTIuNTU3NS0uNjY3M2MtMS44MDMxLTEuMDQxLTIuNzk1OC0zLjEyNDgtMi43OTU4LTUuODY2NFYzNS4xODg3YzAtMi43NDI5Ljk5MzMtNC44MjcyLDIuNzk3LTUuODY3NiwxLjgwMjUtMS4wNDIyLDQuMTAzNC0uODYsNi40OC41MTQzTDcwLjQ3ODIsNDQuNTY3MmMyLjM3NTEsMS4zNzExLDMuNjgyNiwzLjI3MjUsMy42ODMyLDUuMzU0NXMtMS4zMDc2LDMuOTg0NS0zLjY4MzIsNS4zNTYyTDQ0Ljk1OTIsNzAuMDExNEE3LjkzODQsNy45Mzg0LDAsMCwxLDQxLjAzNTksNzEuMTlabS4wMDY1LTQwLjEyM2EyLjY3OTQsMi42Nzk0LDAsMCwwLTEuMzU4Mi4zNDEzYy0xLjAyNjMuNTkyNi0xLjU5MTIsMS45MzQ5LTEuNTkxMiwzLjc4VjY0LjY1NjNjMCwxLjg0NDkuNTY0OSwzLjE4NjYsMS41OTA2LDMuNzc5MSwxLjAyODEuNTkzMiwyLjQ3MzMuNDEwOCw0LjA3LS41MTJMNjkuMjczLDUzLjE5MDZjMS41OTgzLS45MjI3LDIuNDc4LTIuMDgzOCwyLjQ3OC0zLjI2ODlzLS44OC0yLjM0NDUtMi40NzgtMy4yNjY2TDQzLjc1NCwzMS45MjI3QTUuNTY4NSw1LjU2ODUsMCwwLDAsNDEuMDQyMywzMS4wNjcxWiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),W=Z("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLWZpbGwiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiPgogIDxkZWZzPjxzdHlsZT4uYXtmaWxsOiMwMDA7b3BhY2l0eTowLjY1O30uYntmaWxsOiNmZmY7b3BhY2l0eToxLjA7fTwvc3R5bGU+CiAgPC9kZWZzPjx0aXRsZT5wbGF5LXJvdW5kZWQtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cGF0aCBjbGFzcz0iYiIgZD0iTTM1Ljk0MiwzNS4yMzIzYzAtNC43Mjg5LDMuMzUwNi02LjY2MzcsNy40NDYtNC4yOTcxTDY4LjgzLDQ1LjYyMzVjNC4wOTU2LDIuMzY0LDQuMDk1Niw2LjIzMTksMCw4LjU5NzdMNDMuMzg4LDY4LjkxYy00LjA5NTQsMi4zNjQtNy40NDYuNDMtNy40NDYtNC4yOTc5WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPgogIDwvc3ZnPgogIAo=","base64"),U=Z("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICA8ZGVmcz4KICAgIDxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5jb250cm9sYnV0dG9ue2ZpbGw6I2ZmZjt9PC9zdHlsZT4KICA8L2RlZnM+CiAgPHRpdGxlPnBsYXktc2hhcnAtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cG9seWdvbiBjbGFzcz0iY29udHJvbGJ1dHRvbiIgcG9pbnRzPSI3My42MDEgNTAgMzcuOTY4IDcwLjU3MyAzNy45NjggMjkuNDI3IDczLjYwMSA1MCIgZmlsdGVyPSJ1cmwoI2YxKSIvPgo8L3N2Zz4K","base64"),J=Z("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDQgOTkuODQzNCI+PGRlZnM+PHN0eWxlPi5jb250cm9sYnV0dG9uYmd7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGxheS1zaGFycC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNMzYuOTQ0Myw3Mi4yNDczVjI3LjI5MTZMNzUuODc3Niw0OS43N1ptMi4yLTQxLjE0NTVWNjguNDM3MUw3MS40Nzc2LDQ5Ljc3WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),B=Z("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDM0IDk5Ljg0MzQiPjxkZWZzPjxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5yZWN0e2ZpbGw6I2ZmZjt9PC9zdHlsZT4KPC9kZWZzPjx0aXRsZT5wYXVzZS1yb3VuZGVkLW91dGxpbmU8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxMi0uMDc4M2E1MCw1MCwwLDEsMCw1MC4wMDA2LDUwQTUwLjA1NjIsNTAuMDU2MiwwLDAsMCw0OS45MjEyLS4wNzgzWiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIj48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTM5LjAwMzYsNzEuOTcyNmE3LjU2NSw3LjU2NSwwLDAsMS03LjU1Ny03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NDgsNy41NjQ4LDAsMCwxLDM5LjAwMzYsNzEuOTcyNlptMC00MS45MDRhNS4zNjQ3LDUuMzY0NywwLDAsMC01LjM1OTMsNS4zNTgydjI4Ljk5YTUuMzU4Nyw1LjM1ODcsMCwwLDAsMTAuNzE3NCwwdi0yOC45OUE1LjM2NDUsNS4zNjQ1LDAsMCwwLDM5LjAwMzYsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTYwLjg0LDcxLjk3MjZhNy41NjQ4LDcuNTY0OCwwLDAsMS03LjU1Ni03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NSw3LjU2NSwwLDAsMSw2MC44NCw3MS45NzI2Wm0wLTQxLjkwNGE1LjM2NDUsNS4zNjQ1LDAsMCwwLTUuMzU4Miw1LjM1ODJ2MjguOTlhNS4zNTg3LDUuMzU4NywwLDAsMCwxMC43MTc0LDB2LTI4Ljk5QTUuMzY0Nyw1LjM2NDcsMCwwLDAsNjAuODQsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48L2c+PC9zdmc+Cg==","base64"),F=Z("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utcm91bmRlZC1maWxsPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIiBmaWx0ZXI9InVybCgjZjEpIj48cmVjdCBjbGFzcz0icmVjdCIgeD0iMzEuODQ0IiB5PSIyOC4xMjMxIiB3aWR0aD0iMTMuNDM2MiIgaGVpZ2h0PSI0My41OTczIiByeD0iNi43MTgxIiByeT0iNi43MTgxIi8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjU2MzgiIHk9IjI4LjEyMzEiIHdpZHRoPSIxMy40MzYyIiBoZWlnaHQ9IjQzLjU5NzMiIHJ4PSI2LjcxODEiIHJ5PSI2LjcxODEiLz48L2c+PC9zdmc+Cg==","base64"),H=Z("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtZmlsbCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PGRlZnM+PHN0eWxlPi5mcC1jb2xvci1wbGF5e29wYWNpdHk6MC42NTt9LnJlY3R7ZmlsbDojZmZmO308L3N0eWxlPgo8L2RlZnM+PHRpdGxlPnBhdXNlLXNoYXJwLWZpbGw8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxNy0uMDc4YTUwLDUwLDAsMSwwLDUwLDUwQTUwLjA1NjQsNTAuMDU2NCwwLDAsMCw0OS45MjE3LS4wNzhaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxyZWN0IGNsYXNzPSJyZWN0IiB4PSIzMy41IiB5PSIzMC4xMDQyIiB3aWR0aD0iMTIuMjYzNCIgaGVpZ2h0PSIzOS43OTE3Ii8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjIzNjYiIHk9IjMwLjEwNDIiIHdpZHRoPSIxMi4yNjM0IiBoZWlnaHQ9IjM5Ljc5MTciLz48L2c+PC9zdmc+Cg==","base64"),V=Z("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtb3V0bGluZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgOTkuODQzNCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utc2hhcnAtb3V0bGluZTwvdGl0bGU+PHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjEyLS4wNzgzYTUwLDUwLDAsMSwwLDUwLjAwMDYsNTBBNTAuMDU2Miw1MC4wNTYyLDAsMCwwLDQ5LjkyMTItLjA3ODNaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNDYuODcwOSw2OS45NTMxSDMzLjEzODVWMjkuODlINDYuODcwOVpNMzUuMTQxNiw2Ny45NWg5LjcyNjJWMzEuODkzNUgzNS4xNDE2WiIvPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNjYuNzA0Nyw2OS45NTMxSDUyLjk3MjJWMjkuODlINjYuNzA0N1pNNTQuOTc1NCw2Ny45NWg5LjcyNjJWMzEuODkzNUg1NC45NzU0WiIvPjwvZz48L3N2Zz4K","base64"),X=Z("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLW91dGxpbmUiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDUwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgo8L3N2Zz4K","base64"),_=Z("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLWZpbGwiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC4wcyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuNHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCA1MCkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMS4ycyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=","base64"),K=Z("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1maWxsIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjBzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItMTAiIHk9Ii0xMCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTEwIiB5PSItMTAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuOHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDUwKSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIxLjJzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KPC9zdmc+Cg==","base64"),Q=Z("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1vdXRsaW5lIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTkiIHk9Ii05IiB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItOSIgeT0iLTkiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSA1MCkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+Cjwvc3ZnPgo=","base64");P(function(l,a){k.find(".fp-filters").forEach(k.removeNode);try{var e;document.body.appendChild(e=k.createElement("div",{},Z("PHN2ZyBjbGFzcz0iZnAtZmlsdGVycyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMCAwIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9ImYxIiB4PSItMjAlIiB5PSItMjAlIiB3aWR0aD0iMjAwJSIgaGVpZ2h0PSIyMDAlIj4KICAgICAgPGZlT2Zmc2V0IHJlc3VsdD0ib2ZmT3V0IiBpbj0iU291cmNlQWxwaGEiIGR4PSIwIiBkeT0iMCIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXggcmVzdWx0PSJtYXRyaXhPdXQiIGluPSJvZmZPdXQiIHR5cGU9Im1hdHJpeCIKICAgICAgdmFsdWVzPSIwLjMgMCAwIDAgMCAwIDAuMyAwIDAgMCAwIDAgMC4zIDAgMCAwIDAgMCAwLjQgMCIgLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iYmx1ck91dCIgaW49Im1hdHJpeE91dCIgc3RkRGV2aWF0aW9uPSI0IiAvPgogICAgICA8ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJibHVyT3V0IiBtb2RlPSJub3JtYWwiIC8+CiAgICA8L2ZpbHRlcj4KICA8L2RlZnM+Cjwvc3ZnPgo=","base64"))),k.css(e,{width:0,height:0,overflow:"hidden",position:"absolute",margin:0,padding:0})}catch(e){}var r,s=l.conf,c=P.support;k.find(".fp-ratio,.fp-ui",a).forEach(k.removeNode),k.addClass(a,"flowplayer"),a.appendChild(k.createElement("div",{className:"fp-ratio"}));var o=k.createElement("div",{className:"fp-ui"},' <div class="fp-waiting"> {{ LOADING_SHARP_OUTLINE }} {{ LOADING_SHARP_FILL }} {{ LOADING_ROUNDED_FILL }} {{ LOADING_ROUNDED_OUTLINE }} </div> <div class="fp-header"> <a class="fp-share fp-icon"></a> <a class="fp-fullscreen fp-icon"></a> <a class="fp-unload fp-icon"></a> </div> <p class="fp-speed-flash"></p> <div class="fp-play fp-visible"> <a class="fp-icon fp-playbtn"></a> {{ PLAY_ROUNDED_FILL }} {{ PLAY_ROUNDED_OUTLINE }} {{ PLAY_SHARP_FILL }} {{ PLAY_SHARP_OUTLINE }} </div> <div class="fp-pause"> <a class="fp-icon fp-playbtn"></a> {{ PAUSE_SHARP_OUTLINE }} {{ PAUSE_SHARP_FILL }} {{ PAUSE_ROUNDED_OUTLINE }} {{ PAUSE_ROUNDED_FILL }} </div> <div class="fp-controls"> <a class="fp-icon fp-playbtn"></a> <span class="fp-elapsed">00:00</span> <div class="fp-timeline fp-bar"> <span class="fp-timestamp"></span> <div class="fp-progress fp-color"></div> </div> <span class="fp-duration"></span> <span class="fp-remaining"></span> <div class="fp-volume"> <a class="fp-icon fp-volumebtn"></a> <div class="fp-volumebar fp-bar-slider"> <em></em><em></em><em></em><em></em><em></em><em></em><em></em> </div> </div> <strong class="fp-speed fp-hidden"></strong> </div>'.replace("{{ PAUSE_ROUNDED_FILL }}",F).replace("{{ PAUSE_ROUNDED_OUTLINE }}",B).replace("{{ PAUSE_SHARP_FILL }}",H).replace("{{ PAUSE_SHARP_OUTLINE }}",V).replace("{{ PLAY_SHARP_OUTLINE }}",J).replace("{{ PLAY_SHARP_FILL }}",U).replace("{{ PLAY_ROUNDED_OUTLINE }}",R).replace("{{ PLAY_ROUNDED_FILL }}",W).replace("{{ LOADING_ROUNDED_OUTLINE }}",X).replace("{{ LOADING_ROUNDED_FILL }}",_).replace("{{ LOADING_SHARP_FILL }}",K).replace("{{ LOADING_SHARP_OUTLINE }}",Q).replace(/url\(#/g,"url("+window.location.href.replace(window.location.hash,"").replace(/\#$/g,"")+"#"));function t(e){return k.find(".fp-"+e,a)[0]}a.appendChild(o);var n=t("waiting"),u=t("elapsed"),i=t("ratio"),f=t("speed-flash"),d=t("duration"),p=t("remaining"),h=t("timestamp"),g=k.css(i,"padding-top"),m=t("play"),v=t("pause"),y=t("timeline"),w=z(y,l),b=t("fullscreen"),I=t("volumebar"),M=G(I,{rtl:l.rtl}),C=k.hasClass(a,"no-toggle");w.disableAnimation(k.hasClass(a,"is-touch")),l.sliders=l.sliders||{},l.sliders.timeline=w,l.sliders.volume=M;var A=[];function S(e){k.css(i,"padding-top",100*e+"%"),c.inlineBlock||k.height(k.find("object",a)[0],k.height(a))}function E(e){e?(k.addClass(a,"is-mouseover"),k.removeClass(a,"is-mouseout")):(k.addClass(a,"is-mouseout"),k.removeClass(a,"is-mouseover"))}c.svg||k.html(n,"<p>loading &hellip;</p>"),s.ratio&&S(s.ratio);try{s.fullscreen||k.removeNode(b)}catch(e){k.removeNode(b)}l.on("dvrwindow",function(){w.disable(!1)}),l.on("ready",function(e,t,n){var i=t.video.duration;w.disable(t.disabled||!i),s.adaptiveRatio&&!isNaN(n.height/n.width)&&S(n.height/n.width),k.html([d,p],t.live?"Live":O(i)),k.toggleClass(a,"is-long",3600<=i),M.slide(t.volumeLevel),"flash"===t.engine.engineName?w.disableAnimation(!0,!0):w.disableAnimation(!1),k.find(".fp-title",o).forEach(k.removeNode),n.title&&k.prepend(o,k.createElement("div",{className:"fp-message fp-title"},n.title)),k.toggleClass(a,"has-title",!!n.title)}).on("unload",function(){g||s.splash||k.css(i,"paddingTop",""),w.slide(0),k.addClass(m,"fp-visible")}).on("buffer",function(e,t,n){var i=t.video,r=i.buffer/i.duration;!i.seekable&&c.seekable&&w.max(t.conf.live?1/0:r),n&&"number"!=typeof n||(n=[{start:0,end:i.buffer}]);var o=k.find(".fp-buffer",y);o.length!==n.length&&(o.forEach(k.removeNode),o=[]),n.forEach(function(e,t){var n=o[t]||k.createElement("div",{className:"fp-buffer"});k.css(n,{left:100*e.start/i.duration+"%",width:100*(e.end-e.start)/i.duration+"%"}),k.prepend(y,n)})}).on("speed",function(e,t,n){t.video.time&&(k.text(f,n+"x"),k.addClass(f,"fp-shown"),(A=A.filter(function(e){return clearTimeout(e),!1})).push(setTimeout(function(){k.addClass(f,"fp-hilite"),A.push(setTimeout(function(){k.removeClass(f,"fp-hilite"),A.push(setTimeout(function(){k.removeClass(f,"fp-shown")},300))},1e3))})))}).on("buffered",function(){w.max(1)}).on("progress seek",function(e,t,n){var i=l.video.duration,r=l.video.seekOffset||0,o=((n=n||l.video.time)-r)/(i-r);w.dragging||w.slide(o,l.seeking?0:250),k.toggleClass(a,"is-live-position",i-n<s.livePositionOffset),k.html(u,O(n)),k.html(p,O(i-n,!0))}).on("finish resume seek",function(e){k.toggleClass(a,"is-finished","finish"==e.type)}).on("resume",function(){k.addClass(m,"fp-visible"),setTimeout(function(){k.removeClass(m,"fp-visible")},300)}).on("pause",function(){k.addClass(v,"fp-visible"),setTimeout(function(){k.removeClass(v,"fp-visible")},300)}).on("stop",function(){k.html(u,O(0)),w.slide(0,100)}).on("finish",function(){k.html(u,O(l.video.duration)),w.slide(1,100),k.removeClass(a,"is-seeking")}).on("beforeseek",function(){}).on("volume",function(){M.slide(l.volumeLevel)}).on("disable",function(){var e=l.disabled;w.disable(e),M.disable(e),k.toggleClass(a,"is-disabled",l.disabled)}).on("mute",function(e,t,n){k.toggleClass(a,"is-muted",n)}).on("error",function(e,t,n){if(k.removeClass(a,"is-loading"),k.removeClass(a,"is-seeking"),k.addClass(a,"is-error"),n){t.error=!0;var i=n.code;(n.message||"").match(/DECODER_ERROR_NOT_SUPPORTED/)&&(i=3);var r=t.message((t.engine&&t.engine.engineName||"html5")+": "+s.errors[i]);k.removeClass(a,"is-mouseover"),t.one("load progress",function(e){"progress"!=e.type||t.error||r()})}}).one("resume ready",function(){var e=k.find("video.fp-engine",a)[0];if(e&&(!k.width(e)||!k.height(e))){var t=a.style.overflow;a.style.overflow="visible",setTimeout(function(){t?a.style.overflow=t:a.style.removeProperty("overflow")})}}),Y.on(a,"mouseenter mouseleave",function(e){if(!C){var t,n="mouseover"==e.type;if(E(n),n){var i=function(){E(!0),t=new Date};l.on("pause.x volume.x",i),Y.on(a,"mousemove.x touchmove.x",i),clearInterval(r),r=setInterval(function(){new Date-t>s.mouseoutTimeout&&(E(!1),t=new Date)},100)}else Y.off(a,"mousemove.x touchmove.x"),l.off("pause.x volume.x"),clearInterval(r)}}),Y.on(a,"mouseleave",function(){(w.dragging||M.dragging)&&(k.addClass(a,"is-mouseover"),k.removeClass(a,"is-mouseout"))}),Y.on(a,"click.player",function(e){if(!l.disabled)return k.hasClass(e.target,"fp-ui")||k.hasClass(e.target,"fp-engine")||e.flash||k.hasParent(e.target,".fp-play,.fp-pause")?(e.preventDefault&&e.preventDefault(),l.toggle()):void 0}),Y.on(a,"mousemove touchmove",".fp-timeline",function(e){var t=e.pageX||e.clientX;!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length&&(t=e.originalEvent.touches[0].pageX);var n=t-k.offset(y).left,i=n/k.width(y),r=l.video,o=r.duration-(void 0===r.seekOffset?0:r.seekOffset),a=(l.rtl?1-i:i)*o;if(!(i<0)){k.html(h,O(a));var s=n-k.width(h)/2;s<0&&(s=0),s>k.width(y)-k.width(h)&&(s=!1),!1!==s?k.css(h,{left:s+"px",right:"auto"}):k.css(h,{left:"auto",right:"0px"})}}),Y.on(a,"contextmenu",function(e){var t=window;if(!k.hasClass(a,"is-flash-disabled")){var n=k.find(".fp-context-menu",a)[0];n&&(e.preventDefault(),l.showMenu(n,{left:e.clientX-t.scrollX,top:e.clientY-t.scrollY}),Y.on(a,"click",".fp-context-menu",function(e){e.stopPropagation()}))}}),l.on("flashdisabled",function(e,t,n){var i;k.addClass(a,"is-flash-disabled"),!1!==n&&(i=l.message("Seems something is blocking Adobe Flash from running")),l.one("ready progress",function(){k.removeClass(a,"is-flash-disabled"),i&&i()})}),s.poster&&k.css(a,"background-image","url("+s.poster+")");var N,D=k.css(a,"background-color"),j="none"!=k.css(a,"background-image")||D&&"rgba(0, 0, 0, 0)"!=D&&"transparent"!=D;if(j&&!s.splash){s.poster||(s.poster=!0);var x=function(){k.addClass(a,"is-poster"),k.addClass(m,"fp-visible"),l.poster=!0,l.on("resume.poster progress.poster beforeseek.poster",function(e){"beforeseek"!==e.type&&!l.playing||(k.removeClass(a,"is-poster"),k.removeClass(m,"fp-visible"),l.poster=!1,l.off(".poster"))})};l.on("stop",function(){x()}),l.on("ready",function(e,t,n){n.index||n.autoplay||x()})}if("string"==typeof s.splash&&k.css(a,"background-image","url('"+s.splash+"')"),!j&&l.forcedSplash&&k.css(a,"background-color","#555"),Y.on(a,"click",".fp-toggle, .fp-play, .fp-playbtn",function(){l.disabled||l.toggle()}),Y.on(a,"click",".fp-volumebtn",function(){l.mute()}),Y.on(a,"click",".fp-fullscreen",function(){l.fullscreen()}),Y.on(a,"click",".fp-unload",function(){l.unload()}),Y.on(y,"slide",function(e){l.seeking=!0,l.seekTo(10*e)}),Y.on(I,"slide",function(e){l.volume(e)}),Y.on(a,"click",".fp-duration,.fp-remaining",function(){if(l.dvr)return l.seekTo(10);k.toggleClass(a,"is-inverted")}),E(C),l.on("shutdown",function(){Y.off(y),Y.off(I),N&&window.cancelAnimationFrame(N),k.removeNode(o),k.find(".fp-ratio",a).forEach(k.removeNode)}),"function"==typeof window.requestAnimationFrame){var L=k.find(".fp-player",a)[0]||a,T=function(){k.toggleClass(a,"is-tiny",L.clientWidth<400),k.toggleClass(a,"is-small",L.clientWidth<600&&400<=L.clientWidth),N=window.requestAnimationFrame(T)};N=window.requestAnimationFrame(T)}}),t.exports.format=O}).call(this,e("buffer").Buffer)},{"../common":1,"../flowplayer":31,"./ui/bar-slider":28,"./ui/slider":29,bean:34,buffer:35}],28:[function(e,t,n){var u=e("bean"),f=e("../../common");t.exports=function(a,e){var r=(e=e||{}).activeClass||"fp-color",o=e.inactiveClass||"fp-grey",t=e.childSelector||"em",s=!!e.rtl,n=!1,l=f.find(t,a).length,i={unload:function(){u.off(a,".barslider")},slide:function(i,e){f.find(t,a).forEach(function(e,t){var n=t/l<i;f.toggleClass(e,r,n),f.toggleClass(e,o,!n)}),e&&u.fire(a,"slide",[i])},disable:function(e){n=e}};return u.on(a,"mousedown.sld touchstart.sld",function(e){e.preventDefault(),n||(i.slide(c(e),!0),u.on(a,"mousemove.sld touchmove.sld",function(e){e.preventDefault(),i.slide(c(e),!0)}),u.one(document,"mouseup.sld touchup.sld",function(){u.off(a,"mousemove.sld touchmove.sld")}))}),i;function c(e){var t=e.pageX||e.clientX,n=f.offset(a),i=f.width(a);!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length&&(t=e.originalEvent.touches[0].pageX);var r=t-n.left,o=(r=Math.max(0,Math.min(i,r)))/i;return s&&(o=1-o),o}}},{"../../common":1,bean:34}],29:[function(e,t,n){"use strict";var v=e("bean"),y=e("../../common");t.exports=function(o,a){function s(){r=y.offset(o),t=y.width(o),y.height(o),f=t,d=e(i)}function l(e,t){u||e==m.value||i&&!(e<i)||t||(v.fire(o,"slide",[e]),m.value=e)}function c(e){var t=e.pageX||e.clientX;!t&&e.originalEvent&&e.originalEvent.pageX&&(t=e.originalEvent.pageX),!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length&&(t=e.originalEvent.touches[0].pageX);var n=t-r.left,i=(n=Math.max(0,Math.min(d||f,n)))/f;return a.rtl&&(i=1-i),g(i,0,!0)}var u,r,t,f,i,d,p=y.lastChild(o),h=!1,g=function(e,t){void 0===t&&(t=0),1<e&&(e=1);var n=Math.round(1e3*e)/10+"%";return(!i||e<=i)&&(h?y.removeClass(p,"animated"):(y.addClass(p,"animated"),y.css(p,"transition-duration",(t||0)+"ms")),y.css(p,"width",n)),e},e=function(e){return Math.max(0,Math.min(f,e*t))},m={max:function(e){i=e},disable:function(e){u=e},slide:function(e,t,n){s(),n&&l(e),g(e,t)},disableAnimation:function(e,t){h=!1!==e,y.toggleClass(o,"no-animation",!!t)}};return s(),v.on(o,"mousedown.sld touchstart",function(e){if(e.preventDefault(),!u){var t=(n=l,i=100,function(){r||(n.apply(this,arguments),r=1,setTimeout(function(){r=0},i))});s(),m.dragging=!0,l(c(e)),v.on(document,"mousemove.sld touchmove.sld",function(e){y.addClass(o,"is-fp-dragging"),e.preventDefault(),t(c(e),a.video.timeline_vtt)}),v.one(document,"mouseup touchend",function(e){a.video.timeline_vtt?(l(c(e)),setTimeout(function(){m.dragging=!1},250)):m.dragging=!1,y.removeClass(o,"is-fp-dragging"),v.off(document,"mousemove.sld touchmove.sld")})}var n,i,r}),m}},{"../../common":1,bean:34}],30:[function(e,t,n){t.exports=function(e,t,n){try{!function(e){var t=document.createElement("textarea");t.value=e,t.style.opacity=0,t.style.position="absolute",document.body.appendChild(t),t.select();var n=document.execCommand("copy");if(document.body.removeChild(t),!n)throw new Error("Unsuccessfull")}(e),t()}catch(e){n(e)}}},{}],31:[function(e,t,n){"use strict";var g=e("extend-object"),m=e("is-function"),v=e("bean"),i=e("./ext/ui/slider"),r=e("./ext/ui/bar-slider"),y=e("./common"),w=e("./ext/events"),b=[],I=[],o=window.onbeforeunload;window.onbeforeunload=function(e){if(b.forEach(function(e){e.conf.splash?e.unload():e.bind("error",function(){y.find(".flowplayer.is-error .fp-message").forEach(y.removeNode)})}),o)return o(e)};var a=/Safari/.exec(navigator.userAgent)&&!/Chrome/.exec(navigator.userAgent),s=/(\d+\.\d+) Safari/.exec(navigator.userAgent),l=s?Number(s[1]):100,M=t.exports=function(e,t,n){if(m(e))return I.push(e);if("number"==typeof e||void 0===e)return b[e||0];if(e.nodeType){if(null!==e.getAttribute("data-flowplayer-instance-id"))return b[e.getAttribute("data-flowplayer-instance-id")];if(!t)return;return u(e,t,n)}if(e.jquery)return M(e[0],t,n);if("string"==typeof e){var i=y.find(e)[0];return i&&M(i,t,n)}};g(M,{version:"7.2.8",engines:[],engine:function(t){return M.engines.filter(function(e){return e.engineName===t})[0]},extensions:[],conf:{},set:function(e,t){"string"==typeof e?M.conf[e]=t:g(M.conf,e)},registerExtension:function(e,t){M.extensions.push([e,t])},support:{},defaults:{debug:!1,disabled:!1,fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,rtmp:0,proxy:"best",hlsQualities:!0,seekStep:!1,splash:!1,live:!1,livePositionOffset:120,swf:"//releases.flowplayer.org/7.2.8/flowplayer.swf",swfHls:"//releases.flowplayer.org/7.2.8/flowplayerhls.swf",speeds:[.25,.5,1,1.5,2],tooltip:!0,mouseoutTimeout:5e3,mutedAutoplay:!0,clickToUnMute:!0,volume:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"],playlist:[],hlsFix:a&&l<8,disableInline:!1},bean:v,common:y,slider:i,barSlider:r,extend:g});var C=0,A=e("./ext/resolve");if(void 0!==window.jQuery){var c=window.jQuery;c(function(){"function"==typeof c.fn.flowplayer&&c('.flowplayer:has(video:not(.fp-engine),script[type="application/json"])').flowplayer()});c.fn.flowplayer=function(r,o){return this.each(function(){"string"==typeof r&&(r={swf:r}),m(r)&&(o=r,r={});var t=c(this),e=t.find('script[type="application/json"]'),n=e.length?JSON.parse(e.text()):function(i){if(!i.length)return{};var r=i.data()||{},o={};return c.each(["autoplay","loop","preload","poster"],function(e,t){var n=i.attr(t);void 0!==n&&-1!==["autoplay","poster"].indexOf(t)?o[t]=n||!0:void 0!==n&&(r[t]=n||!0)}),i[0].autoplay=i[0].preload=!1,r.subtitles=i.find("track").map(function(){var e=c(this);return{src:e.attr("src"),kind:e.attr("kind"),label:e.attr("label"),srclang:e.attr("srclang"),default:e.prop("default")}}).get(),r.sources=(new A).sourcesFromVideoTag(i,c),g(o,{clip:r})}(t.find("video")),i=u(this,c.extend({},r||{},n,t.data()),o);w.EVENTS.forEach(function(e){i.on(e+".jquery",function(e){t.trigger.call(t,e.type,e.detail&&e.detail.args)})}),t.data("flowplayer",i)})}}function u(e,t,n){t&&t.embed&&(t.embed=g({},M.defaults.embed,t.embed));var i=!1;try{void 0===M.conf.storage&&"object"==typeof window.localStorage&&(window.localStorage.flowplayerTestStorage="test",i=!0)}catch(e){}var r,o,a=e,s=g({},M.defaults,M.conf,t),l={},c=a.className,u=new A;y.addClass(a,"is-loading"),y.toggleClass(a,"no-flex",!M.support.flex),y.toggleClass(a,"no-svg",!M.support.svg);try{l=M.conf.storage||(i?window.localStorage:l)}catch(e){}if(s.volume="true"===l.muted?0:s.volume!==M.defaults.volume?s.volume:isNaN(l.volume)?s.volume:l.volume,s.debug=!!l.flowplayerDebug||s.debug,s.aspectRatio&&"string"==typeof s.aspectRatio){var f=s.aspectRatio.split(/[:\/]/);s.ratio=f[1]/f[0]}var d=a.currentStyle&&"rtl"===a.currentStyle.direction||window.getComputedStyle&&null!==window.getComputedStyle(a,null)&&"rtl"===window.getComputedStyle(a,null).getPropertyValue("direction");d&&y.addClass(a,"is-rtl");var p={conf:s,currentSpeed:1,volumeLevel:s.muted?0:void 0===s.volume?1*l.volume:s.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:"true"==l.muted||s.muted,paused:!1,playing:!1,ready:!1,splash:!1,rtl:d,hijack:function(e){try{p.engine.suspendEngine()}catch(e){}p.hijacked=e},release:function(){try{p.engine.resumeEngine()}catch(e){}p.hijacked=!1},debug:function(){s.debug&&console.log.apply(console,["DEBUG"].concat([].slice.call(arguments)))},load:function(e,t){if(!p.error&&!p.loading){p.video={},p.finished=!1,e=e||s.clip,e=g({},u.resolve(e,s.clip.sources)),(p.playing||p.engine)&&(e.autoplay=!0);var n=h(e);if(!n)return setTimeout(function(){p.trigger("error",[p,{code:M.support.flashVideo?5:10}])})&&p;if(!n.engineName)throw new Error("engineName property of factory should be exposed");if(p.engine&&n.engineName===p.engine.engineName||(p.ready=!1,p.engine&&(p.engine.unload(),p.conf.autoplay=!0),o=p.engine=n(p,a),p.one("ready",function(){setTimeout(function(){p.muted?p.mute(!0,!0):o.volume(p.volumeLevel)})})),g(e,o.pick(e.sources.filter(function(e){return!e.engine||e.engine===o.engineName}))),e.src)p.trigger("load",[p,e,o],!0).defaultPrevented?p.loading=!1:(p.ready=!1,o.load(e),m(e)&&(t=e),t&&p.one("ready",t));return p}},pause:function(e){return p.hijacked?p.hijacked.pause(e)|p:(!p.ready||p.seeking||p.loading||(o.pause(),p.one("pause",e)),p)},resume:function(){if(!p.trigger("beforeresume",[p],!0).defaultPrevented)return p.hijacked?p.hijacked.resume()|p:(p.ready&&p.paused&&(o.resume(),p.finished&&(p.trigger("resume",[p]),p.finished=!1)),p)},toggle:function(){return p.ready?p.paused?p.resume():p.pause():p.load()},seek:function(e,t){if("boolean"==typeof e){var n=p.conf.seekStep||.1*p.video.duration;e=p.video.time+(e?n:-n),e=Math.min(Math.max(e,0),p.video.duration-.1)}if(void 0===e)return p;if(p.hijacked)return p.hijacked.seek(e,t)|p;p.ready&&(r=e,p.trigger("beforeseek",[p,e],!0).defaultPrevented?(p.seeking=!1,y.toggleClass(a,"is-seeking",p.seeking)):(o.seek(e),m(t)&&p.one("seek",t)));return p},seekTo:function(e,t){return void 0===e?p.seek(r,t):void 0!==p.video.seekOffset?p.seek(p.video.seekOffset+.1*(p.video.duration-p.video.seekOffset)*e,t):p.seek(.1*p.video.duration*e,t)},mute:function(e,t){return void 0===e&&(e=!p.muted),p.muted=e,t||(l.muted=e,l.volume=isNaN(l.volume)?s.volume:l.volume),void 0!==o.mute?o.mute(e):(p.volume(e?0:l.volume,!0),p.trigger("mute",[p,e])),p},volume:function(e,t){return p.ready&&(e=Math.min(Math.max(e,0),1),t||(l.volume=e),o.volume(e)),p},speed:function(e,t){return p.ready&&("boolean"==typeof e&&(e=s.speeds[s.speeds.indexOf(p.currentSpeed)+(e?1:-1)]||p.currentSpeed),o.speed(e),t&&a.one("speed",t)),p},stop:function(){return p.ready&&(p.pause(),!p.live||p.dvr?p.seek(0,function(){p.trigger("stop",[p])}):p.trigger("stop",[p])),p},unload:function(){return s.splash?(p.trigger("unload",[p]),o&&(o.unload(),p.engine=o=0)):p.stop(),p},shutdown:function(){p.unload(),p.trigger("shutdown",[p]),v.off(a),delete b[a.getAttribute("data-flowplayer-instance-id")],a.removeAttribute("data-flowplayer-instance-id")},disable:function(e){return void 0===e&&(e=!p.disabled),e!=p.disabled&&(p.disabled=e,p.trigger("disable",e)),p},registerExtension:function(e,t){"string"==typeof(e=e||[])&&(e=[e]),"string"==typeof(t=t||[])&&(t=[t]),e.forEach(function(e){p.extensions.js.push(e)}),t.forEach(function(e){p.extensions.css.push(e)})}};p.conf=g(p.conf,s),p.extensions={js:[],css:[]},M.extensions.forEach(function(e){p.registerExtension(e[0],e[1])}),w(p);var h=function(e){var n,i=M.engines;if(s.engine){var t=i.filter(function(e){return e.engineName===s.engine})[0];if(t&&e.sources.some(function(e){return(!e.engine||e.engine===t.engineName)&&t.canPlay(e.type,p.conf)}))return t}return s.enginePreference&&(i=M.engines.filter(function(e){return-1<s.enginePreference.indexOf(e.engineName)}).sort(function(e,t){return s.enginePreference.indexOf(e.engineName)-s.enginePreference.indexOf(t.engineName)})),e.sources.some(function(t){var e=i.filter(function(e){return(!t.engine||t.engine===e.engineName)&&e.canPlay(t.type,p.conf)}).shift();return e&&(n=e),!!e}),n};return a.getAttribute("data-flowplayer-instance-id")||(a.setAttribute("data-flowplayer-instance-id",C++),p.on("boot",function(){var e=M.support;!s.splash&&!y.hasClass(a,"is-splash")&&e.firstframe||(p.forcedSplash=!s.splash&&!y.hasClass(a,"is-splash"),p.splash=!0,s.splash||(s.splash=!0),y.addClass(a,"is-splash")),s.splash&&y.find("video",a).forEach(y.removeNode),(s.dvr||s.live||y.hasClass(a,"is-live"))&&(p.live=s.live=!0,p.dvr=s.dvr=!!s.dvr||y.hasClass(a,"is-dvr"),y.addClass(a,"is-live"),y.toggleClass(a,"is-dvr",p.dvr)),I.forEach(function(e){e(p,a)}),b.push(p),s.splash?p.unload():p.load(),s.disabled&&p.disable(),p.one("ready",n),p.one("shutdown",function(){a.className=c})}).on("load",function(e,t,n){s.splash&&y.find(".flowplayer.is-ready,.flowplayer.is-loading").forEach(function(e){var t=e.getAttribute("data-flowplayer-instance-id");if(t!==a.getAttribute("data-flowplayer-instance-id")){var n=b[Number(t)];n&&n.conf.splash&&n.unload()}}),y.addClass(a,"is-loading"),t.loading=!0,void 0===n.live&&void 0===n.dvr||(y.toggleClass(a,"is-live",n.dvr||n.live),y.toggleClass(a,"is-dvr",!!n.dvr),t.live=n.dvr||n.live,t.dvr=!!n.dvr)}).on("ready",function(e,t,n){n.time=0,t.video=n,y.removeClass(a,"is-loading"),t.loading=!1,t.muted?t.mute(!0,!0):t.volume(t.volumeLevel);var i=t.conf.hlsFix&&/mpegurl/i.exec(n.type);y.toggleClass(a,"hls-fix",!!i)}).on("unload",function(){y.removeClass(a,"is-loading"),p.loading=!1}).on("ready unload",function(e){var t="ready"==e.type;y.toggleClass(a,"is-splash",!t),y.toggleClass(a,"is-ready",t),p.ready=t,p.splash=!t}).on("progress",function(e,t,n){t.video.time=n}).on("buffer",function(e,t,n){t.video.buffer="number"==typeof n?n:n.length?n[n.length-1].end:0}).on("speed",function(e,t,n){t.currentSpeed=n}).on("volume",function(e,t,n){t.volumeLevel=Math.round(100*n)/100,t.muted&&n&&t.mute(!1)}).on("beforeseek seek",function(e){p.seeking="beforeseek"==e.type,y.toggleClass(a,"is-seeking",p.seeking)}).on("ready pause resume unload finish stop",function(e){p.paused=/pause|finish|unload|stop/.test(e.type),p.paused=p.paused||"ready"===e.type&&!s.autoplay&&!p.playing,p.playing=!p.paused,y.toggleClass(a,"is-paused",p.paused),y.toggleClass(a,"is-playing",p.playing),p.load.ed||p.pause()}).on("finish",function(){p.finished=!0}).on("error",function(){})),p.trigger("boot",[p,a]),p}},{"./common":1,"./ext/events":12,"./ext/resolve":21,"./ext/ui/bar-slider":28,"./ext/ui/slider":29,bean:34,"extend-object":39,"is-function":42}],32:[function(e,t,n){e("es5-shim");var b=t.exports=e("./flowplayer");e("./ext/support"),e("./engine/embed"),e("./engine/hlsjs"),e("./engine/html5"),e("./engine/flash"),e("./ext/ui"),e("./ext/message"),e("./ext/keyboard"),e("./ext/playlist"),e("./ext/cuepoint"),e("./ext/subtitle"),e("./ext/analytics"),e("./ext/share"),e("./ext/facebook"),e("./ext/twitter"),e("./ext/embed"),e("./ext/airplay"),e("./ext/chromecast"),e("./ext/qsel"),e("./ext/menu"),e("./ext/fullscreen"),e("./ext/mobile"),b(function(e,l){function t(e,t){for(var n=0,i=(t=function(e){var t="ab.ca,ac.ac,ac.ae,ac.at,ac.be,ac.cn,ac.il,ac.in,ac.jp,ac.kr,ac.sg,ac.th,ac.uk,ad.jp,adm.br,adv.br,ah.cn,am.br,arq.br,art.br,arts.ro,asn.au,asso.fr,asso.mc,bc.ca,bel.tr,bio.br,biz.pl,biz.tr,bj.cn,br.com,cn.com,cng.br,cnt.br,co.ac,co.at,co.de,co.gl,co.hk,co.id,co.il,co.in,co.jp,co.kr,co.mg,co.ms,co.nz,co.th,co.uk,co.ve,co.vi,co.za,com.ag,com.ai,com.ar,com.au,com.br,com.cn,com.co,com.cy,com.de,com.do,com.ec,com.es,com.fj,com.fr,com.gl,com.gt,com.hk,com.hr,com.hu,com.kg,com.ki,com.lc,com.mg,com.mm,com.ms,com.mt,com.mu,com.mx,com.my,com.na,com.nf,com.ng,com.ni,com.pa,com.ph,com.pl,com.pt,com.qa,com.ro,com.ru,com.sb,com.sc,com.sg,com.sv,com.tr,com.tw,com.ua,com.uy,com.ve,com.vn,cp.tz,cq.cn,de.com,de.org,ecn.br,ed.jp,edu.au,edu.cn,edu.hk,edu.mm,edu.my,edu.pl,edu.pt,edu.qa,edu.sg,edu.tr,edu.tw,eng.br,ernet.in,esp.br,etc.br,eti.br,eu.com,eu.int,eu.lv,firm.in,firm.ro,fm.br,fot.br,fst.br,g12.br,gb.com,gb.net,gd.cn,gen.in,go.jp,go.kr,go.th,gov.au,gov.az,gov.br,gov.cn,gov.il,gov.in,gov.mm,gov.my,gov.qa,gov.sg,gov.tr,gov.tw,gov.uk,govt.nz,gr.jp,gs.cn,gv.ac,gv.at,gx.cn,gz.cn,he.cn,hi.cn,hk.cn,hl.cn,hu.com,id.au,idv.tw,in.th,in.ua,ind.br,ind.in,inf.br,info.pl,info.ro,info.tr,info.ve,iwi.nz,jl.cn,jor.br,js.cn,jus.br,k12.il,k12.tr,kr.com,lel.br,lg.jp,ln.cn,ltd.uk,maori.nz,mb.ca,me.uk,med.br,mi.th,mil.br,mil.uk,mo.cn,mod.uk,muni.il,nb.ca,ne.jp,ne.kr,net.ag,net.ai,net.au,net.br,net.cn,net.do,net.gl,net.hk,net.il,net.in,net.kg,net.ki,net.lc,net.mg,net.mm,net.mu,net.ni,net.nz,net.pl,net.ru,net.sb,net.sc,net.sg,net.th,net.tr,net.tw,net.uk,net.ve,nf.ca,nhs.uk,nm.cn,nm.kr,no.com,nom.br,nom.ni,nom.ro,ns.ca,nt.ca,nt.ro,ntr.br,nx.cn,odo.br,off.ai,on.ca,or.ac,or.at,or.jp,or.kr,or.th,org.ag,org.ai,org.au,org.br,org.cn,org.do,org.es,org.gl,org.hk,org.in,org.kg,org.ki,org.lc,org.mg,org.mm,org.ms,org.nf,org.ng,org.ni,org.nz,org.pl,org.ro,org.ru,org.sb,org.sc,org.sg,org.tr,org.tw,org.uk,org.ve,pe.ca,plc.uk,police.uk,ppg.br,presse.fr,pro.br,psc.br,psi.br,qc.ca,qc.com,qh.cn,rec.br,rec.ro,res.in,sa.com,sc.cn,sch.uk,se.com,se.net,sh.cn,sk.ca,slg.br,sn.cn,store.ro,tj.cn,tm.fr,tm.mc,tm.ro,tmp.br,tur.br,tv.br,tv.tr,tw.cn,uk.com,uk.net,us.com,uy.com,vet.br,waw.pl,web.ve,www.ro,xj.cn,xz.cn,yk.ca,yn.cn,zj.cn,zlg.br".split(","),n=(e=e.toLowerCase()).split("."),i=n.length;if(i<2||/^\d+$/.test(n[i-1]))return e;var r=n.slice(-2).join(".");return 3<=i&&0<=t.indexOf(r)?n.slice(-3).join("."):r}(t)).length-1;0<=i;i--)n+=0x65cb98ae4ad1ec*t.charCodeAt(i);for(n=(""+n).substring(0,7),i=0;i<e.length;i++)if(n===e[i].substring(1,8))return 1}var n,i,r,o,a=e.conf,s=b.common,c=s.createElement,u=a.swf.indexOf("flowplayer.org")&&a.e&&l.getAttribute("data-origin"),f=u?(n=u,(i=document.createElement("a")).href=n,s.hostname(i.hostname)):s.hostname(),d=(document,a.key);if("file:"==location.protocol&&(f="localhost"),e.load.ed=1,a.hostname=f,a.origin=u||location.href,u&&(o="is-embedded",-1===(r=l).className.split(" ").indexOf(o)&&(r.className+=" "+o)),"string"==typeof d&&(d=d.split(/,\s*/)),d&&t(d,f)){if(a.logo){var p=s.find(".fp-player",l)[0],h=a.logo.href||"",g=a.logo.src||a.logo,m=c("a",{className:"fp-logo",href:h});u&&(m.href=m.href||u),a.embed&&a.embed.popup&&(m.target="_blank");var v=c("img",{src:g});m.appendChild(v),(p||l).appendChild(m)}}else{m=c("a",{onclick:""});((p=s.find(".fp-player",l)[0])||l).appendChild(m);var y=c("div",{className:"fp-context-menu fp-menu"},'<strong>&copy; 2018 Flowplayer AB</strong><a href="https://flowplayer.com/hello/?from=player">About Flowplayer</a><a href="https://flowplayer.com/license">GPL based license</a>'),w=window.location.href.indexOf("localhost");7!==w&&(p||l).appendChild(y),e.on("pause resume finish unload ready",function(e,t){var n,i=-1;if(t.video.src)for(var r=[["org","flowplayer","drive"],["org","flowplayer","my"],["org","flowplayer","cdn"],["com","flowplayer","cdn"]],o=0;o<r.length&&-1===(i=t.video.src.indexOf("://"+r[o].reverse().join(".")));o++);if(/pause|resume/.test(e.type)&&"flash"!=t.engine.engineName&&4!=i&&5!=i){var a={display:"block",position:"absolute",left:"16px",bottom:"56px",zIndex:99999,width:"120px",height:"27px",backgroundImage:"url("+[".png","fplogo","/",".com","foliovision","//","https:"].reverse().join("")+")"};for(var s in a)a.hasOwnProperty(s)&&(m.style[s]=a[s]);t.load.ed=(n=m,"none"!==window.getComputedStyle(n).display&&(7===w||y.parentNode==l||y.parentNode==p)),t.load.ed||t.pause()}else m.style.display="none"})}})},{"./engine/embed":2,"./engine/flash":3,"./engine/hlsjs":4,"./engine/html5":6,"./ext/airplay":7,"./ext/analytics":8,"./ext/chromecast":9,"./ext/cuepoint":10,"./ext/embed":11,"./ext/facebook":13,"./ext/fullscreen":14,"./ext/keyboard":15,"./ext/menu":16,"./ext/message":17,"./ext/mobile":18,"./ext/playlist":19,"./ext/qsel":20,"./ext/share":22,"./ext/subtitle":23,"./ext/support":25,"./ext/twitter":26,"./ext/ui":27,"./flowplayer":31,"es5-shim":38}],33:[function(e,t,n){"use strict";n.byteLength=function(e){var t=f(e),n=t[0],i=t[1];return 3*(n+i)/4-i},n.toByteArray=function(e){for(var t,n=f(e),i=n[0],r=n[1],o=new u(function(e,t,n){return 3*(t+n)/4-n}(0,i,r)),a=0,s=0<r?i-4:i,l=0;l<s;l+=4)t=c[e.charCodeAt(l)]<<18|c[e.charCodeAt(l+1)]<<12|c[e.charCodeAt(l+2)]<<6|c[e.charCodeAt(l+3)],o[a++]=t>>16&255,o[a++]=t>>8&255,o[a++]=255&t;2===r&&(t=c[e.charCodeAt(l)]<<2|c[e.charCodeAt(l+1)]>>4,o[a++]=255&t);1===r&&(t=c[e.charCodeAt(l)]<<10|c[e.charCodeAt(l+1)]<<4|c[e.charCodeAt(l+2)]>>2,o[a++]=t>>8&255,o[a++]=255&t);return o},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,r=[],o=0,a=n-i;o<a;o+=16383)r.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[n-1],r.push(s[t>>2]+s[t<<4&63]+"==")):2==i&&(t=(e[n-2]<<8)+e[n-1],r.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return r.join("")};for(var s=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,o=i.length;r<o;++r)s[r]=i[r],c[i.charCodeAt(r)]=r;function f(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,r,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(r=i)>>18&63]+s[r>>12&63]+s[r>>6&63]+s[63&r]);return o.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],34:[function(e,t,n){var i,r;i=this,r=function(e,t){e=e||"bean",t=t||this;function f(e,t){return e.split(t||" ")}function l(e){return"string"==typeof e}function d(e){return"function"==typeof e}function c(e,t){return L||t||e!==j&&e!==A?e:x}function n(e){a=arguments.length?e:j.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}}function o(e,t){if(L||!t||!e||e.propertyName=="_on"+t){var n=O.get(this,t||e.type,null,!1),i=n.length,r=0;for(e=new z(e,this,!0),t&&(e.type=t);r<i&&!e.isImmediatePropagationStopped();r++)n[r].removed||n[r].handler.call(this,e)}}function p(r,n){function i(e,t){for(var n,i=l(r)?a(r,t):r;e&&e!==t;e=e.parentNode)for(n=i.length;n--;)if(i[n]===e)return e}function e(e){var t=i(e.target,this);t&&n.apply(t,arguments)}return e.__beanDel={ft:i,selector:r},e}var a,h,g,i,r,s,u,m,v,y,w,b,I,M,C,A=window,S=t[e],E=/[^\.]*(?=\..*)\.|.*/,N=/\..*/,D="addEventListener",j=document||{},x=j.documentElement||{},L=x[D],T=L?D:"attachEvent",Z={},P=Array.prototype.slice,k=function(e,t,n){for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},f("click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll "+(L?"show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ":""))),Y=(C="compareDocumentPosition"in x?function(e,t){return t.compareDocumentPosition&&16==(16&t.compareDocumentPosition(e))}:"contains"in x?function(e,t){return(t=9===t.nodeType||t===window?x:t)!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},{mouseenter:{base:"mouseover",condition:K},mouseleave:{base:"mouseout",condition:K},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}),z=(i=f("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),r=i.concat(f("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),s=r.concat(f("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),u=i.concat(f("char charCode key keyCode keyIdentifier keyLocation location")),m=i.concat(f("data")),v=i.concat(f("touches targetTouches changedTouches scale rotation")),y=i.concat(f("data origin source")),w=i.concat(f("state")),b=/over|out/,I=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,u}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,t,n){return t.rightClick=3===e.which||2===e.button,t.pos={x:0,y:0},e.pageX||e.pageY?(t.clientX=e.pageX,t.clientY=e.pageY):(e.clientX||e.clientY)&&(t.clientX=e.clientX+j.body.scrollLeft+x.scrollLeft,t.clientY=e.clientY+j.body.scrollTop+x.scrollTop),b.test(n)&&(t.relatedTarget=e.relatedTarget||e[("mouseover"==n?"from":"to")+"Element"]),r}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return s}},{reg:/^text/i,fix:function(){return m}},{reg:/^touch|^gesture/i,fix:function(){return v}},{reg:/^message$/i,fix:function(){return y}},{reg:/^popstate$/i,fix:function(){return w}},{reg:/.*/,fix:function(){return i}}],M={},_.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},_.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},_.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},_.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},_.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},_.prototype.clone=function(e){var t=new _(this,this.element,this.isNative);return t.currentTarget=e,t},_),G=(X.prototype.inNamespaces=function(e){var t,n,i=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&i++;return e.length===i},X.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},X),O=(h={},g=function(e,t,n,i,r,o){var a=r?"r":"$";if(t&&"*"!=t){var s,l=0,c=h[a+t],u="*"==e;if(!c)return;for(s=c.length;l<s;l++)if((u||c[l].matches(e,n,i))&&!o(c[l],c,l,t))return}else for(var f in h)f.charAt(0)==a&&g(e,f.substr(1),n,i,r,o)},{has:function(e,t,n,i){var r,o=h[(i?"r":"$")+t];if(o)for(r=o.length;r--;)if(!o[r].root&&o[r].matches(e,n,null))return!0;return!1},get:function(e,t,n,i){var r=[];return g(e,t,n,null,i,function(e){return r.push(e)}),r},put:function(e){var t=!e.root&&!this.has(e.element,e.type,null,!1),n=(e.root?"r":"$")+e.type;return(h[n]||(h[n]=[])).push(e),t},del:function(e){g(e.element,e.type,null,e.handler,e.root,function(e,t,n){return t.splice(n,1),e.removed=!0,0===t.length&&delete h[(e.root?"r":"$")+e.type],!1})},entries:function(){var e,t=[];for(e in h)"$"==e.charAt(0)&&(t=t.concat(h[e]));return t}}),R=L?function(e,t,n){e[n?D:"removeEventListener"](t,o,!1)}:function(t,e,n,i){var r;n?(O.put(r=new G(t,i||e,function(e){o.call(t,e,i)},o,null,null,!0)),i&&null==t["_on"+i]&&(t["_on"+i]=0),r.target.attachEvent("on"+r.eventType,r.handler)):(r=O.get(t,i||e,o,!0)[0])&&(r.target.detachEvent("on"+r.eventType,r.handler),O.del(r))},W=function(e,t,n,i,r){return function(){i.apply(this,arguments),e(t,n,r)}},U=function(e,t,n,i){var r,o,a=t&&t.replace(N,""),s=O.get(e,a,null,!1),l={};for(r=0,o=s.length;r<o;r++)n&&s[r].original!==n||!s[r].inNamespaces(i)||(O.del(s[r]),!l[s[r].eventType]&&s[r][T]&&(l[s[r].eventType]={t:s[r].eventType,c:s[r].type}));for(r in l)O.has(e,l[r].t,null,!1)||R(e,l[r].t,!1,l[r].c)},J=L?function(e,t,n){var i=j.createEvent(e?"HTMLEvents":"UIEvents");i[e?"initEvent":"initUIEvent"](t,!0,!0,A,1),n.dispatchEvent(i)}:function(e,t,n){n=c(n,e),e?n.fireEvent("on"+t,j.createEventObject()):n["_on"+t]++},B=function(e,t,n){var i,r,o,a,s=l(t);if(s&&0<t.indexOf(" ")){for(a=(t=f(t)).length;a--;)B(e,t[a],n);return e}if((r=s&&t.replace(N,""))&&Y[r]&&(r=Y[r].base),!t||s)(o=s&&t.replace(E,""))&&(o=f(o,".")),U(e,r,n,o);else if(d(t))U(e,null,t);else for(i in t)t.hasOwnProperty(i)&&B(e,i,t[i]);return e},F=function(e,t,n,i){var r,o,a,s,l,c,u;if(void 0!==n||"object"!=typeof t){for(i=d(n)?(l=P.call(arguments,3),r=n):(r=i,l=P.call(arguments,4),p(n,r)),a=f(t),this===Z&&(i=W(B,e,t,i,r)),s=a.length;s--;)u=O.put(c=new G(e,a[s].replace(N,""),i,r,f(a[s].replace(E,""),"."),l,!1)),c[T]&&u&&R(e,c.eventType,!0,c.customType);return e}for(o in t)t.hasOwnProperty(o)&&F.call(this,e,o,t[o])},H={on:F,add:function(e,t,n,i){return F.apply(null,l(n)?[e,n,t,i].concat(3<arguments.length?P.call(arguments,5):[]):P.call(arguments))},one:function(){return F.apply(Z,arguments)},off:B,remove:B,clone:function(e,t,n){for(var i,r,o=O.get(t,n,null,!1),a=o.length,s=0;s<a;s++)o[s].original&&(i=[e,o[s].type],(r=o[s].handler.__beanDel)&&i.push(r.selector),i.push(o[s].original),F.apply(null,i));return e},fire:function(e,t,n){var i,r,o,a,s,l=f(t);for(i=l.length;i--;)if(t=l[i].replace(N,""),(a=l[i].replace(E,""))&&(a=f(a,".")),a||n||!e[T])for(s=O.get(e,t,null,!1),n=[!1].concat(n),r=0,o=s.length;r<o;r++)s[r].inNamespaces(a)&&s[r].handler.apply(e,n);else J(k[t],t,e);return e},Event:z,setSelectorEngine:n,noConflict:function(){return t[e]=S,this}};function V(n,i,r,o){function a(e,t){return i.apply(n,o?P.call(t,e?0:1).concat(o):t)}function s(e,t){return i.__beanDel?i.__beanDel.ft(e.target,n):t}var e=r?function(e){var t=s(e,this);if(r.apply(t,arguments))return e&&(e.currentTarget=t),a(e,arguments)}:function(e){return i.__beanDel&&(e=e.clone(s(e))),a(e,arguments)};return e.__beanDel=i.__beanDel,e}function X(e,t,n,i,r,o,a){var s,l=Y[t];"unload"==t&&(n=W(U,e,t,n,i)),l&&(l.condition&&(n=V(e,n,l.condition,o)),t=l.base||t),this.isNative=s=k[t]&&!!e[T],this.customType=!L&&!s&&t,this.element=e,this.type=t,this.original=i,this.namespaces=r,this.eventType=L||s?t:"propertychange",this.target=c(e,s),this[T]=!!this.target[T],this.root=a,this.handler=V(e,n,null,o)}function _(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||A).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var i,r,o,a,s,l=e.type,c=e.target||e.srcElement;if(this.target=c&&3===c.nodeType?c.parentNode:c,n){if(!(s=M[l]))for(i=0,r=I.length;i<r;i++)if(I[i].reg.test(l)){M[l]=s=I[i].fix;break}for(i=(a=s(e,this,l)).length;i--;)!((o=a[i])in this)&&o in e&&(this[o]=e[o])}}}function K(e){var t=e.relatedTarget;return t?t!==this&&"xul"!==t.prefix&&!/document/.test(this.toString())&&!C(t,this):null==t}if(A.attachEvent){var Q=function(){var e,t=O.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&B(t[e].element,t[e].type);A.detachEvent("onunload",Q),A.CollectGarbage&&A.CollectGarbage()};A.attachEvent("onunload",Q)}return n(),H},void 0!==t&&t.exports?t.exports=r():i.bean=r()},{}],35:[function(t,e,O){(function(e){"use strict";var i=t("base64-js"),o=t("ieee754"),a=t("isarray");function n(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=f.prototype:(null===e&&(e=new f(t)),e.length=t),e}function f(e,t,n){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(e,t,n);if("number"!=typeof e)return r(this,e,t,n);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}function r(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);f.TYPED_ARRAY_SUPPORT?(e=t).__proto__=f.prototype:e=u(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!f.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(t,n),r=(e=s(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(f.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):u(e,t);if("Buffer"===t.type&&a(t.data))return u(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t){if(l(t),e=s(e,t<0?0:0|d(t)),!f.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function u(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function d(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(i)return Y(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function g(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:m(e,t,n,i,r);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,i,r){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(s<n+l&&(n=s-l),o=n;0<=o;o--){for(var f=!0,d=0;d<l;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function v(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?r<(i=Number(i))&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function y(e,t,n,i){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return G(function(e,t){for(var n,i,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function b(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,a,s,l,c=e[r],u=null,f=239<c?4:223<c?3:191<c?2:1;if(r+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[r+1]))&&127<(l=(31&c)<<6|63&o)&&(u=l);break;case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&c)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(u=l);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(u=l)}null===u?(u=65533,f=1):65535<u&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=f}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=M));return n}(i)}O.Buffer=f,O.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},O.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),O.kMaxLength=n(),f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e},f.from=function(e,t,n){return r(null,e,t,n)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(e,t,n){return i=null,o=t,a=n,l(r=e),r<=0?s(i,r):void 0!==o?"string"==typeof a?s(i,r).fill(o,a):s(i,r).fill(o):s(i,r);var i,r,o,a},f.allocUnsafe=function(e){return c(null,e)},f.allocUnsafeSlow=function(e){return c(null,e)},f.isBuffer=function(e){return!(null==e||!e._isBuffer)},f.compare=function(e,t){if(!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var n;if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;var i=f.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var o=e[n];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},f.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?I(this,0,e):function(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return b(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=O.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,t,n,i,r){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(r<=i&&n<=t)return 0;if(r<=i)return-1;if(n<=t)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,r),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},f.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},f.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},f.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},f.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||r<n)&&(n=r),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var o,a,s,l,c,u,f=!1;;)switch(i){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return c=t,u=n,G(Y(e,(l=this).length-c),l,c,u);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return y(this,e,t,n);case"base64":return o=this,a=t,s=n,G(z(e),o,a,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function C(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function A(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function S(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||i<n)&&(n=i);for(var r="",o=t;o<n;++o)r+=k(e[o]);return r}function E(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,r,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r<t||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function j(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function x(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function L(e,t,n,i){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(e,t,n,i,r){return r||L(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function Z(e,t,n,i,r){return r||L(e,0,n,8),o.write(e,t,n,i,52,8),n+8}f.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):i<e&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):i<t&&(t=i),t<e&&(t=e),f.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=f.prototype;else{var r=t-e;n=new f(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},f.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},f.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e+--t],r=1;0<t&&(r*=256);)i+=this[e+--t]*r;return i},f.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return(r*=128)<=i&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=t,r=1,o=this[e+--i];0<i&&(r*=256);)o+=this[e+--i]*r;return(r*=128)<=o&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},f.prototype.writeUIntBE=function(e,t,n,i){e=+e,t|=0,n|=0,i||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;0<=--r&&(o*=256);)this[t+r]=e/o&255;return t+n},f.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return Z(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return Z(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,i){if(n=n||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;0<=r;--r)e[r+t]=this[r+n];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},f.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!f.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(o=t;o<n;++o)this[o]=e;else{var a=f.isBuffer(e)?e:Y(new f(e,i).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var P=/[^+\/0-9A-Za-z-_]/g;function k(e){return e<16?"0"+e.toString(16):e.toString(16)}function Y(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],a=0;a<i;++a){if(55295<(n=e.charCodeAt(a))&&n<57344){if(!r){if(56319<n){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}r=n;continue}if(n<56320){-1<(t-=3)&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&-1<(t-=3)&&o.push(239,191,189);if(r=null,n<128){if(--t<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return i.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":33,ieee754:40,isarray:43}],36:[function(e,t,n){var l=e("indexof");function c(e){return!!e}t.exports=function(i){var e=i.classList;if(e)return e;var r={add:t,remove:n,contains:o,toggle:function(e){return o(e)?(n(e),!1):(t(e),!0)},toString:function(){return i.className},length:0,item:function(e){return a()[e]||null}};return r;function t(e){var t=a();-1<l(t,e)||(t.push(e),s(t))}function n(e){var t=a(),n=l(t,e);-1!==n&&(t.splice(n,1),s(t))}function o(e){return-1<l(a(),e)}function a(){return function(e,t){for(var n=[],i=0;i<e.length;i++)t(e[i])&&n.push(e[i]);return n}(i.className.split(" "),c)}function s(e){var t=e.length;i.className=e.join(" "),r.length=t;for(var n=0;n<e.length;n++)r[n]=e[n];delete e[t]}}},{indexof:41}],37:[function(e,t,n){t.exports=function(e,t,n,i){if(i=(n=window.getComputedStyle)?n(e):e.currentStyle)return i[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}},{}],38:[function(e,n,i){!function(e,t){"use strict";"object"==typeof i?n.exports=t():e.returnExports=t()}(this,function(){function n(e){try{var t=E.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return N.test(t)}catch(e){return!1}}function d(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(S)return function(e){try{return!n(e)&&(E.call(e),!0)}catch(e){return!1}}(e);if(n(e))return!1;var t=A.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}var p,h,l=Array,e=l.prototype,s=Object,t=s.prototype,c=Function,i=c.prototype,v=String,r=v.prototype,y=Number,o=y.prototype,u=e.slice,a=e.splice,g=e.push,f=e.unshift,m=e.concat,w=e.join,b=i.call,I=i.apply,M=Math.max,C=Math.min,A=t.toString,S="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,E=Function.prototype.toString,N=/^\s*class /,D=RegExp.prototype.exec;p=function(e){return"object"==typeof e&&(S?function(e){try{return D.call(e),!0}catch(e){return!1}}(e):"[object RegExp]"===A.call(e))};var j=String.prototype.valueOf;h=function(e){return"string"==typeof e||"object"==typeof e&&(S?function(e){try{return j.call(e),!0}catch(e){return!1}}(e):"[object String]"===A.call(e))};function x(e){var t=typeof e;return null===e||"object"!=t&&"function"!=t}function L(){}var T,Z,P=s.defineProperty&&function(){try{var e={};for(var t in s.defineProperty(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),k=(T=t.hasOwnProperty,Z=P?function(e,t,n,i){!i&&t in e||s.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,i){!i&&t in e||(e[t]=n)},function(e,t,n){for(var i in t)T.call(t,i)&&Z(e,i,t[i],n)}),Y=y.isNaN||function(e){return e!=e},z=function(e){var t=+e;return Y(t)?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(0<t||-1)*Math.floor(Math.abs(t))),t},G=function(e){var t,n,i;if(x(e))return e;if(n=e.valueOf,d(n)&&(t=n.call(e),x(t)))return t;if(i=e.toString,d(i)&&(t=i.call(e),x(t)))return t;throw new TypeError},O=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return s(e)},R=function(e){return e>>>0};k(i,{bind:function(t){var n=this;if(!d(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,r=u.call(arguments,1),e=M(0,n.length-r.length),o=[],a=0;a<e;a++)g.call(o,"$"+a);return i=c("binder","return function ("+w.call(o,",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof i){var e=I.call(n,this,m.call(r,u.call(arguments)));return s(e)===e?e:this}return I.call(n,t,m.call(r,u.call(arguments)))}),n.prototype&&(L.prototype=n.prototype,i.prototype=new L,L.prototype=null),i}});var W=b.bind(t.hasOwnProperty),U=b.bind(t.toString),J=b.bind(u),B=I.bind(u);if("object"==typeof document&&document&&document.documentElement)try{J(document.documentElement.childNodes)}catch(e){var F=J,H=B;J=function(e){for(var t=[],n=e.length;0<n--;)t[n]=e[n];return H(t,F(arguments,1))},B=function(e,t){return H(J(e),t)}}var V=b.bind(r.slice),X=b.bind(r.split),_=b.bind(r.indexOf),K=b.bind(g),Q=b.bind(t.propertyIsEnumerable),q=b.bind(e.sort),$=l.isArray||function(e){return"[object Array]"===U(e)},ee=1!==[].unshift(0);k(e,{unshift:function(){return f.apply(this,arguments),this.length}},ee),k(l,{isArray:$});function te(e){var i=!0,t=!0,n=!1;if(e)try{e.call("foo",function(e,t,n){"object"!=typeof n&&(i=!1)}),e.call([1],function(){"use strict";t="string"==typeof this},"x")}catch(e){n=!0}return!!e&&!n&&i&&t}var ne=s("a"),ie="a"!==ne[0]||!(0 in ne);k(e,{forEach:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=-1,a=R(r.length);if(1<arguments.length&&(n=t),!d(e))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++o<a;)o in r&&(void 0===n?e(r[o],o,i):e.call(n,r[o],o,i))}},!te(e.forEach)),k(e,{map:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=R(r.length),a=l(o);if(1<arguments.length&&(n=t),!d(e))throw new TypeError("Array.prototype.map callback must be a function");for(var s=0;s<o;s++)s in r&&(a[s]=void 0===n?e(r[s],s,i):e.call(n,r[s],s,i));return a}},!te(e.map)),k(e,{filter:function(e,t){var n,i,r=O(this),o=ie&&h(this)?X(this,""):r,a=R(o.length),s=[];if(1<arguments.length&&(i=t),!d(e))throw new TypeError("Array.prototype.filter callback must be a function");for(var l=0;l<a;l++)l in o&&(n=o[l],(void 0===i?e(n,l,r):e.call(i,n,l,r))&&K(s,n));return s}},!te(e.filter)),k(e,{every:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=R(r.length);if(1<arguments.length&&(n=t),!d(e))throw new TypeError("Array.prototype.every callback must be a function");for(var a=0;a<o;a++)if(a in r&&!(void 0===n?e(r[a],a,i):e.call(n,r[a],a,i)))return!1;return!0}},!te(e.every)),k(e,{some:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=R(r.length);if(1<arguments.length&&(n=t),!d(e))throw new TypeError("Array.prototype.some callback must be a function");for(var a=0;a<o;a++)if(a in r&&(void 0===n?e(r[a],a,i):e.call(n,r[a],a,i)))return!0;return!1}},!te(e.some));var re=!1;e.reduce&&(re="object"==typeof e.reduce.call("es5",function(e,t,n,i){return i})),k(e,{reduce:function(e,t){var n=O(this),i=ie&&h(this)?X(this,""):n,r=R(i.length);if(!d(e))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===r&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var o,a=0;if(2<=arguments.length)o=t;else for(;;){if(a in i){o=i[a++];break}if(++a>=r)throw new TypeError("reduce of empty array with no initial value")}for(;a<r;a++)a in i&&(o=e(o,i[a],a,n));return o}},!re);var oe=!1;e.reduceRight&&(oe="object"==typeof e.reduceRight.call("es5",function(e,t,n,i){return i})),k(e,{reduceRight:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=R(r.length);if(!d(e))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var a=o-1;if(2<=arguments.length)n=t;else for(;;){if(a in r){n=r[a--];break}if(--a<0)throw new TypeError("reduceRight of empty array with no initial value")}if(a<0)return n;for(;a in r&&(n=e(n,r[a],a,i)),a--;);return n}},!oe);var ae=e.indexOf&&-1!==[0,1].indexOf(1,2);k(e,{indexOf:function(e,t){var n=ie&&h(this)?X(this,""):O(this),i=R(n.length);if(0===i)return-1;var r=0;for(1<arguments.length&&(r=z(t)),r=0<=r?r:M(0,i+r);r<i;r++)if(r in n&&n[r]===e)return r;return-1}},ae);var se=e.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);k(e,{lastIndexOf:function(e,t){var n=ie&&h(this)?X(this,""):O(this),i=R(n.length);if(0===i)return-1;var r=i-1;for(1<arguments.length&&(r=C(r,z(t))),r=0<=r?r:i-Math.abs(r);0<=r;r--)if(r in n&&e===n[r])return r;return-1}},se);var le,ce,ue=(ce=(le=[1,2]).splice(),2===le.length&&$(ce)&&0===ce.length);k(e,{splice:function(e,t){return 0===arguments.length?[]:a.apply(this,arguments)}},!ue);var fe,de=(fe={},e.splice.call(fe,0,0,1),1===fe.length);k(e,{splice:function(e,t){if(0===arguments.length)return[];var n=arguments;return this.length=M(z(this.length),0),0<arguments.length&&"number"!=typeof t&&((n=J(arguments)).length<2?K(n,this.length-e):n[1]=z(t)),a.apply(this,n)}},!de);var pe,he,ge=((pe=new l(1e5))[8]="x",pe.splice(1,1),7===pe.indexOf("x")),me=((he=[])[256]="a",he.splice(257,0,"b"),"a"===he[256]);k(e,{splice:function(e,t){for(var n,i=O(this),r=[],o=R(i.length),a=z(e),s=a<0?M(o+a,0):C(a,o),l=C(M(z(t),0),o-s),c=0;c<l;)n=v(s+c),W(i,n)&&(r[c]=i[n]),c+=1;var u,f=J(arguments,2),d=f.length;if(d<l){c=s;for(var p=o-l;c<p;)n=v(c+l),u=v(c+d),W(i,n)?i[u]=i[n]:delete i[u],c+=1;for(var h=(c=o)-l+d;h<c;)delete i[c-1],--c}else if(l<d)for(c=o-l;s<c;)n=v(c+l-1),u=v(c+d-1),W(i,n)?i[u]=i[n]:delete i[u],--c;c=s;for(var g=0;g<f.length;++g)i[c]=f[g],c+=1;return i.length=o-l+d,r}},!ge||!me);var ve,ye=e.join;try{ve="1,2,3"!==Array.prototype.join.call("123",",")}catch(e){ve=!0}ve&&k(e,{join:function(e){var t=void 0===e?",":e;return ye.call(h(this)?X(this,""):this,t)}},ve);var we="1,2"!==[1,2].join(void 0);we&&k(e,{join:function(e){var t=void 0===e?",":e;return ye.call(this,t)}},we);function be(e){for(var t=O(this),n=R(t.length),i=0;i<arguments.length;)t[n+i]=arguments[i],i+=1;return t.length=n+i,n+i}var Ie,Me=(Ie={},1!==Array.prototype.push.call(Ie,void 0)||1!==Ie.length||void 0!==Ie[0]||!W(Ie,0));k(e,{push:function(e){return $(this)?g.apply(this,arguments):be.apply(this,arguments)}},Me);var Ce,Ae=1!==(Ce=[]).push(void 0)||1!==Ce.length||void 0!==Ce[0]||!W(Ce,0);k(e,{push:be},Ae),k(e,{slice:function(e,t){var n=h(this)?X(this,""):this;return B(n,arguments)}},ie);var Se=function(){try{[1,2].sort(null)}catch(e){try{[1,2].sort({})}catch(e){return!1}}return!0}(),Ee=function(){try{return[1,2].sort(/a/),!1}catch(e){}return!0}(),Ne=function(){try{return[1,2].sort(void 0),!0}catch(e){}return!1}();k(e,{sort:function(e){if(void 0===e)return q(this);if(!d(e))throw new TypeError("Array.prototype.sort callback must be a function");return q(this,e)}},Se||!Ne||!Ee);function De(e){var t=e.constructor;return t&&t.prototype===e}function je(e){return"[object Arguments]"===U(e)}var xe=!Q({toString:null},"toString"),Le=Q(function(){},"prototype"),Te=!W("x","0"),Ze={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0,$width:!0,$height:!0,$top:!0,$localStorage:!0},Pe=function(){if("undefined"==typeof window)return!1;for(var e in window)try{!Ze["$"+e]&&W(window,e)&&null!==window[e]&&"object"==typeof window[e]&&De(window[e])}catch(e){return!0}return!1}(),ke=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ye=ke.length,ze=je(arguments)?je:function(e){return null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&!$(e)&&d(e.callee)};k(s,{keys:function(e){var t=d(e),n=ze(e),i=null!==e&&"object"==typeof e,r=i&&h(e);if(!i&&!t&&!n)throw new TypeError("Object.keys called on a non-object");var o=[],a=Le&&t;if(r&&Te||n)for(var s=0;s<e.length;++s)K(o,v(s));if(!n)for(var l in e)a&&"prototype"===l||!W(e,l)||K(o,v(l));if(xe)for(var c=function(e){if("undefined"==typeof window||!Pe)return De(e);try{return De(e)}catch(e){return!1}}(e),u=0;u<Ye;u++){var f=ke[u];c&&"constructor"===f||!W(e,f)||K(o,f)}return o}});var Ge=s.keys&&function(){return 2===s.keys(arguments).length}(1,2),Oe=s.keys&&function(){var e=s.keys(arguments);return 1!==arguments.length||1!==e.length||1!==e[0]}(1),Re=s.keys;k(s,{keys:function(e){return ze(e)?Re(J(e)):Re(e)}},!Ge||Oe);var We,Ue,Je=0!==new Date(-0xc782b5b342b24).getUTCMonth(),Be=new Date(-0x55d318d56a724),Fe=new Date(14496624e5),He="Mon, 01 Jan -45875 11:59:59 GMT"!==Be.toUTCString();Ue=Be.getTimezoneOffset()<-720?(We="Tue Jan 02 -45875"!==Be.toDateString(),!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Fe))):(We="Mon Jan 01 -45875"!==Be.toDateString(),!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(Fe)));function Ve(e,t){return Ke(new Date(t,e,0))}var Xe=b.bind(Date.prototype.getFullYear),_e=b.bind(Date.prototype.getMonth),Ke=b.bind(Date.prototype.getDate),Qe=b.bind(Date.prototype.getUTCFullYear),qe=b.bind(Date.prototype.getUTCMonth),$e=b.bind(Date.prototype.getUTCDate),et=b.bind(Date.prototype.getUTCDay),tt=b.bind(Date.prototype.getUTCHours),nt=b.bind(Date.prototype.getUTCMinutes),it=b.bind(Date.prototype.getUTCSeconds),rt=b.bind(Date.prototype.getUTCMilliseconds),ot=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],at=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];k(Date.prototype,{getFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Xe(this);return e<0&&11<_e(this)?e+1:e},getMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Xe(this),t=_e(this);return e<0&&11<t?0:t},getDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Xe(this),t=_e(this),n=Ke(this);return e<0&&11<t?12===t?n:Ve(0,e+1)-n+1:n},getUTCFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Qe(this);return e<0&&11<qe(this)?e+1:e},getUTCMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Qe(this),t=qe(this);return e<0&&11<t?0:t},getUTCDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Qe(this),t=qe(this),n=$e(this);return e<0&&11<t?12===t?n:Ve(0,e+1)-n+1:n}},Je),k(Date.prototype,{toUTCString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=et(this),t=$e(this),n=qe(this),i=Qe(this),r=tt(this),o=nt(this),a=it(this);return ot[e]+", "+(t<10?"0"+t:t)+" "+at[n]+" "+i+" "+(r<10?"0"+r:r)+":"+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)+" GMT"}},Je||He),k(Date.prototype,{toDateString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),i=this.getFullYear();return ot[e]+" "+at[n]+" "+(t<10?"0"+t:t)+" "+i}},Je||We),(Je||Ue)&&(Date.prototype.toString=function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),i=this.getFullYear(),r=this.getHours(),o=this.getMinutes(),a=this.getSeconds(),s=this.getTimezoneOffset(),l=Math.floor(Math.abs(s)/60),c=Math.floor(Math.abs(s)%60);return ot[e]+" "+at[n]+" "+(t<10?"0"+t:t)+" "+i+" "+(r<10?"0"+r:r)+":"+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)+" GMT"+(0<s?"-":"+")+(l<10?"0"+l:l)+(c<10?"0"+c:c)},P&&s.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var st=-621987552e5,lt="-000001",ct=Date.prototype.toISOString&&-1===new Date(st).toISOString().indexOf(lt),ut=Date.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new Date(-1).toISOString(),ft=b.bind(Date.prototype.getTime);k(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(ft(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var e=Qe(this),t=qe(this);e+=Math.floor(t/12);var n=[(t=(t%12+12)%12)+1,$e(this),tt(this),nt(this),it(this)];e=(e<0?"-":9999<e?"+":"")+V("00000"+Math.abs(e),0<=e&&e<=9999?-4:-6);for(var i=0;i<n.length;++i)n[i]=V("00"+n[i],-2);return e+"-"+J(n,0,2).join("-")+"T"+J(n,2).join(":")+"."+V("000"+rt(this),-3)+"Z"}},ct||ut),function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(st).toJSON().indexOf(lt)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(e){return!1}}()||(Date.prototype.toJSON=function(){var e=s(this),t=G(e);if("number"==typeof t&&!isFinite(t))return null;var n=e.toISOString;if(!d(n))throw new TypeError("toISOString property is not callable");return n.call(e)});var dt=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),pt=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));if(isNaN(Date.parse("2000-01-01T00:00:00.000Z"))||pt||!dt){var ht=Math.pow(2,31)-1,gt=Y(new Date(1970,0,1,0,0,0,1+ht).getTime());Date=function(h){function g(e,t){var n=1<t?1:0;return i[t]+Math.floor((e-1969+n)/4)-Math.floor((e-1901+n)/100)+Math.floor((e-1601+n)/400)+365*(e-1970)}var p=function(e,t,n,i,r,o,a){var s,l=arguments.length;if(this instanceof h){var c=o,u=a;if(gt&&7<=l&&ht<a){var f=Math.floor(a/ht)*ht,d=Math.floor(f/1e3);c+=d,u-=1e3*d}s=1===l&&v(e)===e?new h(p.parse(e)):7<=l?new h(e,t,n,i,r,c,u):6<=l?new h(e,t,n,i,r,c):5<=l?new h(e,t,n,i,r):4<=l?new h(e,t,n,i):3<=l?new h(e,t,n):2<=l?new h(e,t):1<=l?new h(e instanceof h?+e:e):new h}else s=h.apply(this,arguments);return x(s)||k(s,{constructor:p},!0),s},m=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),i=[0,31,59,90,120,151,181,212,243,273,304,334,365];for(var e in h)W(h,e)&&(p[e]=h[e]);k(p,{now:h.now,UTC:h.UTC},!0),p.prototype=h.prototype,k(p.prototype,{constructor:p},!0);return k(p,{parse:function(e){var t=m.exec(e);if(t){var n,i=y(t[1]),r=y(t[2]||1)-1,o=y(t[3]||1)-1,a=y(t[4]||0),s=y(t[5]||0),l=y(t[6]||0),c=Math.floor(1e3*y(t[7]||0)),u=Boolean(t[4]&&!t[8]),f="-"===t[9]?1:-1,d=y(t[10]||0),p=y(t[11]||0);return a<(0<s||0<l||0<c?24:25)&&s<60&&l<60&&c<1e3&&-1<r&&r<12&&d<24&&p<60&&-1<o&&o<g(i,1+r)-g(i,r)&&(n=1e3*(60*((n=60*(24*(g(i,r)+o)+a+d*f))+s+p*f)+l)+c,u&&(n=function(e){var t=0,n=e;if(gt&&ht<n){var i=Math.floor(n/ht)*ht,r=Math.floor(i/1e3);t+=r,n-=1e3*r}return y(new h(1970,0,1,0,0,t,n))}(n)),-864e13<=n&&n<=864e13)?n:NaN}return h.parse.apply(this,arguments)}}),p}(Date)}Date.now||(Date.now=function(){return(new Date).getTime()});var mt=o.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0)),vt={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(e,t){for(var n=-1,i=t;++n<vt.size;)i+=e*vt.data[n],vt.data[n]=i%vt.base,i=Math.floor(i/vt.base)},divide:function(e){for(var t=vt.size,n=0;0<=--t;)n+=vt.data[t],vt.data[t]=Math.floor(n/e),n=n%e*vt.base},numToString:function(){for(var e=vt.size,t="";0<=--e;)if(""!==t||0===e||0!==vt.data[e]){var n=v(vt.data[e]);""===t?t=n:t+=V("0000000",0,7-n.length)+n}return t},pow:function e(t,n,i){return 0===n?i:n%2==1?e(t,n-1,i*t):e(t*t,n/2,i)},log:function(e){for(var t=0,n=e;4096<=n;)t+=12,n/=4096;for(;2<=n;)t+=1,n/=2;return t}};k(o,{toFixed:function(e){var t,n,i,r,o,a,s,l;if(t=y(e),(t=Y(t)?0:Math.floor(t))<0||20<t)throw new RangeError("Number.toFixed called with invalid number of decimals");if(n=y(this),Y(n))return"NaN";if(n<=-1e21||1e21<=n)return v(n);if(i="",n<0&&(i="-",n=-n),r="0",1e-21<n)if(a=(o=vt.log(n*vt.pow(2,69,1))-69)<0?n*vt.pow(2,-o,1):n/vt.pow(2,o,1),a*=4503599627370496,0<(o=52-o)){for(vt.multiply(0,a),s=t;7<=s;)vt.multiply(1e7,0),s-=7;for(vt.multiply(vt.pow(10,s,1),0),s=o-1;23<=s;)vt.divide(1<<23),s-=23;vt.divide(1<<s),vt.multiply(1,1),vt.divide(2),r=vt.numToString()}else vt.multiply(0,a),vt.multiply(1<<-o,0),r=vt.numToString()+V("0.00000000000000000000",2,2+t);return r=0<t?(l=r.length)<=t?i+V("0.0000000000000000000",0,t-l+2)+r:i+V(r,0,l-t)+"."+V(r,l-t):i+r}},mt);var yt,wt,bt=function(){try{return"1"===1..toPrecision(void 0)}catch(e){return!0}}(),It=o.toPrecision;k(o,{toPrecision:function(e){return void 0===e?It.call(this):It.call(this,e)}},bt),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||1<".".split(/()()/).length?(yt=void 0===/()??/.exec("")[1],wt=Math.pow(2,32)-1,r.split=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!p(e))return X(this,e,t);var i,r,o,a,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,u=new RegExp(e.source,l+"g");yt||(i=new RegExp("^"+u.source+"$(?!\\s)",l));var f=void 0===t?wt:R(t);for(r=u.exec(n);r&&!(c<(o=r.index+r[0].length)&&(K(s,V(n,c,r.index)),!yt&&1<r.length&&r[0].replace(i,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(r[e]=void 0)}),1<r.length&&r.index<n.length&&g.apply(s,J(r,1)),a=r[0].length,c=o,f<=s.length));)u.lastIndex===r.index&&u.lastIndex++,r=u.exec(n);return c===n.length?!a&&u.test("")||K(s,""):K(s,V(n,c)),f<s.length?J(s,0,f):s}):"0".split(void 0,0).length&&(r.split=function(e,t){return void 0===e&&0===t?[]:X(this,e,t)});var Mt,Ct=r.replace;(Mt=[],"x".replace(/x(.)?/g,function(e,t){K(Mt,t)}),1===Mt.length&&void 0===Mt[0])||(r.replace=function(r,o){var e=d(o),t=p(r)&&/\)[*?]/.test(r.source);if(e&&t){return Ct.call(this,r,function(e){var t=arguments.length,n=r.lastIndex;r.lastIndex=0;var i=r.exec(e)||[];return r.lastIndex=n,K(i,arguments[t-2],arguments[t-1]),o.apply(this,i)})}return Ct.call(this,r,o)});var At=r.substr,St="".substr&&"b"!=="0b".substr(-1);k(r,{substr:function(e,t){var n=e;return e<0&&(n=M(this.length+e,0)),At.call(this,n,t)}},St);var Et="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Nt="["+Et+"]",Dt=new RegExp("^"+Nt+Nt+"*"),jt=new RegExp(Nt+Nt+"*$"),xt=r.trim&&(Et.trim()||!"​".trim());k(r,{trim:function(){if(null==this)throw new TypeError("can't convert "+this+" to object");return v(this).replace(Dt,"").replace(jt,"")}},xt);var Lt=b.bind(String.prototype.trim),Tt=r.lastIndexOf&&-1!=="abcあい".lastIndexOf("あい",2);k(r,{lastIndexOf:function(e,t){if(null==this)throw new TypeError("can't convert "+this+" to object");for(var n=v(this),i=v(e),r=1<arguments.length?y(t):NaN,o=Y(r)?1/0:z(r),a=C(M(o,0),n.length),s=i.length,l=a+s;0<l;){l=M(0,l-s);var c=_(V(n,l,a+s),i);if(-1!==c)return l+c}return-1}},Tt);var Zt,Pt,kt,Yt=r.lastIndexOf;if(k(r,{lastIndexOf:function(e){return Yt.apply(this,arguments)}},1!==r.lastIndexOf.length),8===parseInt(Et+"08")&&22===parseInt(Et+"0x16")||(parseInt=(Zt=parseInt,Pt=/^[-+]?0[xX]/,function(e,t){var n=Lt(String(e)),i=y(t)||(Pt.test(n)?16:10);return Zt(n,i)})),1/parseFloat("-0")!=-1/0&&(parseFloat=(kt=parseFloat,function(e){var t=Lt(String(e)),n=kt(t);return 0===n&&"-"===V(t,0,1)?-0:n})),"RangeError: test"!==String(new RangeError("test"))){Error.prototype.toString=function(){if(null==this)throw new TypeError("can't convert "+this+" to object");var e=this.name;void 0===e?e="Error":"string"!=typeof e&&(e=v(e));var t=this.message;return void 0===t?t="":"string"!=typeof t&&(t=v(t)),e?t?e+": "+t:e:t}}if(P){function zt(e,t){if(Q(e,t)){var n=Object.getOwnPropertyDescriptor(e,t);n.configurable&&(n.enumerable=!1,Object.defineProperty(e,t,n))}}zt(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),zt(Error.prototype,"name")}if("/a/gim"!==String(/a/gim)){RegExp.prototype.toString=function(){var e="/"+this.source+"/";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),e}}})},{}],39:[function(e,t,n){var i=[],r=i.forEach,o=i.slice;t.exports=function(n){return r.call(o.call(arguments,1),function(e){if(e)for(var t in e)n[t]=e[t]}),n}},{}],40:[function(e,t,n){n.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?r-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;0<u;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;0<u;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=c}return(p?-1:1)*a*Math.pow(2,o-i)},n.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,f=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,h=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+f?d/l:d*Math.pow(2,1-f))*l&&(a++,l/=2),u<=a+f?(s=0,a=u):1<=a+f?(s=(t*l-1)*Math.pow(2,r),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,r),a=0));8<=r;e[n+p]=255&s,p+=h,s/=256,r-=8);for(a=a<<r|s,c+=r;0<c;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*g}},{}],41:[function(e,t,n){var i=[].indexOf;t.exports=function(e,t){if(i)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],42:[function(e,t,n){t.exports=function(e){var t=i.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var i=Object.prototype.toString},{}],43:[function(e,t,n){var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],44:[function(e,T,Z){(function(L){!function(e){var t="object"==typeof Z&&Z&&!Z.nodeType&&Z,n="object"==typeof T&&T&&!T.nodeType&&T,i="object"==typeof L&&L;i.global!==i&&i.window!==i&&i.self!==i||(e=i);var r,o,v=2147483647,y=36,w=1,b=26,a=38,s=700,I=72,M=128,C="-",l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=y-w,A=Math.floor,S=String.fromCharCode;function E(e){throw new RangeError(f[e])}function p(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function h(e,t){var n=e.split("@"),i="";return 1<n.length&&(i=n[0]+"@",e=n[1]),i+p((e=e.replace(u,".")).split("."),t).join(".")}function N(e){for(var t,n,i=[],r=0,o=e.length;r<o;)55296<=(t=e.charCodeAt(r++))&&t<=56319&&r<o?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function D(e){return p(e,function(e){var t="";return 65535<e&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var i=0;for(e=n?A(e/s):e>>1,e+=A(e/t);d*b>>1<e;i+=y)e=A(e/d);return A(i+(d+1)*e/(e+a))}function g(e){var t,n,i,r,o,a,s,l,c,u,f,d=[],p=e.length,h=0,g=M,m=I;for((n=e.lastIndexOf(C))<0&&(n=0),i=0;i<n;++i)128<=e.charCodeAt(i)&&E("not-basic"),d.push(e.charCodeAt(i));for(r=0<n?n+1:0;r<p;){for(o=h,a=1,s=y;p<=r&&E("invalid-input"),f=e.charCodeAt(r++),(y<=(l=f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:y)||l>A((v-h)/a))&&E("overflow"),h+=l*a,!(l<(c=s<=m?w:m+b<=s?b:s-m));s+=y)a>A(v/(u=y-c))&&E("overflow"),a*=u;m=x(h-o,t=d.length+1,0==o),A(h/t)>v-g&&E("overflow"),g+=A(h/t),h%=t,d.splice(h++,0,g)}return D(d)}function m(e){var t,n,i,r,o,a,s,l,c,u,f,d,p,h,g,m=[];for(d=(e=N(e)).length,t=M,o=I,a=n=0;a<d;++a)(f=e[a])<128&&m.push(S(f));for(i=r=m.length,r&&m.push(C);i<d;){for(s=v,a=0;a<d;++a)t<=(f=e[a])&&f<s&&(s=f);for(s-t>A((v-n)/(p=i+1))&&E("overflow"),n+=(s-t)*p,t=s,a=0;a<d;++a)if((f=e[a])<t&&++n>v&&E("overflow"),f==t){for(l=n,c=y;!(l<(u=c<=o?w:o+b<=c?b:c-o));c+=y)g=l-u,h=y-u,m.push(S(j(u+g%h,0))),l=A(g/h);m.push(S(j(l,0))),o=x(n,p,i==r),n=0,++i}++n,++t}return m.join("")}if(r={version:"1.4.1",ucs2:{decode:N,encode:D},decode:g,encode:m,toASCII:function(e){return h(e,function(e){return c.test(e)?"xn--"+m(e):e})},toUnicode:function(e){return h(e,function(e){return l.test(e)?g(e.slice(4).toLowerCase()):e})}},0,t&&n)if(T.exports==t)n.exports=r;else for(o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);else e.punycode=r}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],45:[function(e,n,t){!function(e,t){void 0!==n&&n.exports?n.exports=t():this.$script=t()}(0,function(){var c,r,o=document,a=o.getElementsByTagName("head")[0],s=!1,u="push",l="readyState",f="onreadystatechange",d={},p={},h={},g={};function m(e,t){for(var n=0,i=e.length;n<i;++n)if(!t(e[n]))return s;return 1}function v(e,t){m(e,function(e){return!t(e)})}function y(e,t,n){e=e[u]?e:[e];var i=t&&t.call,r=i?t:n,o=i?e.join(""):t,a=e.length;function s(e){return e.call?e():d[e]}function l(){if(!--a)for(var e in d[o]=1,r&&r(),h)m(e.split("|"),s)&&!v(h[e],s)&&(h[e]=[])}return setTimeout(function(){v(e,function e(t,n){return null===t?l():(n||/^https?:\/\//.test(t)||!c||(t=-1===t.indexOf(".js")?c+t+".js":c+t),g[t]?(o&&(p[o]=1),2==g[t]?l():setTimeout(function(){e(t,!0)},0)):(g[t]=1,o&&(p[o]=1),void w(t,l)))})},0),y}function w(e,t){var n,i=o.createElement("script");i.onload=i.onerror=i[f]=function(){i[l]&&!/^c|loade/.test(i[l])||n||(i.onload=i[f]=null,n=1,g[e]=2,t())},i.async=1,i.src=r?e+(-1===e.indexOf("?")?"?":"&")+r:e,a.insertBefore(i,a.lastChild)}return y.get=w,y.order=function(n,i,r){!function e(t){t=n.shift(),n.length?y(t,e):y(t,i,r)}()},y.path=function(e){c=e},y.urlArgs=function(e){r=e},y.ready=function(e,t,n){e=e[u]?e:[e];var i,r=[];return!v(e,function(e){d[e]||r[u](e)})&&m(e,function(e){return d[e]})?t():(i=e.join("|"),h[i]=h[i]||[],h[i][u](t),n&&n(r)),y},y.done=function(e){y([null],e)},y})},{}]},{},[32])(32)});
1
  /*!
2
 
3
+ Flowplayer v7.2.10 (2022-07-06) | flowplayer.com/license
4
 
5
  */
6
+ !function(a){function c(e,t,n,i){for(var r,o=n.slice(),a=(u=e,(c=t).currentTarget=u,c.eventPhase=c.target===c.currentTarget?2:3,c),s=0,l=o.length;s<l&&(handler=o[s],"object"==typeof handler&&"function"==typeof handler.handleEvent?handler.handleEvent(a):handler.call(e,a),!a.stoppedImmediatePropagation);s++);var c,u;return r=!a.stoppedPropagation,i&&r&&e.parentNode?e.parentNode.dispatchEvent(a):!a.defaultPrevented}function r(e,t){return{configurable:!0,get:e,set:t}}function e(e,t,n){var i=I(t||e,n);w(e,"textContent",r(function(){return i.get.call(this)},function(e){i.set.call(this,e)}))}function u(e,t){for(var n=e.length;n--&&e[n]!==t;);return n}function t(){if("BR"===this.tagName)return"\n";for(var e=this.firstChild,t=[];e;)8!==e.nodeType&&7!==e.nodeType&&t.push(e.textContent),e=e.nextSibling;return t.join("")}function o(e){!h&&E.test(document.readyState)&&(h=!h,document.detachEvent(g,o),(e=document.createEvent("Event")).initEvent(m,!0,!0),document.dispatchEvent(e))}function n(e){for(var t;t=this.lastChild;)this.removeChild(t);null!=e&&this.appendChild(document.createTextNode(e))}function f(e,t){return(t=t||a.event).target||(t.target=t.srcElement||t.fromElement||document),t.timeStamp||(t.timeStamp=(new Date).getTime()),t}if(!document.createEvent){var l,d,p,i,s=!0,h=!1,g="onreadystatechange",m="DOMContentLoaded",v="__IE8__"+Math.random(),y=a.Object,w=y.defineProperty||function(e,t,n){e[t]=n.value},b=y.defineProperties||function(t,e){for(var n in e)if(M.call(e,n))try{w(t,n,e[n])}catch(e){a.console&&console.log(n+" failed on object:",t,e.message)}},I=y.getOwnPropertyDescriptor,M=y.prototype.hasOwnProperty,C=a.Element.prototype,A=a.Text.prototype,S=/^[a-z]+$/,E=/loaded|complete/,N={},D=document.createElement("div");e(a.HTMLCommentElement.prototype,C,"nodeValue"),e(a.HTMLScriptElement.prototype,null,"text"),e(A,null,"nodeValue"),e(a.HTMLTitleElement.prototype,null,"text"),w(a.HTMLStyleElement.prototype,"textContent",(i=I(a.CSSStyleSheet.prototype,"cssText"),r(function(){return i.get.call(this.styleSheet)},function(e){i.set.call(this.styleSheet,e)}))),b(C,{textContent:{get:t,set:n},firstElementChild:{get:function(){for(var e=this.childNodes||[],t=0,n=e.length;t<n;t++)if(1==e[t].nodeType)return e[t]}},lastElementChild:{get:function(){for(var e=this.childNodes||[],t=e.length;t--;)if(1==e[t].nodeType)return e[t]}},previousElementSibling:{get:function(){for(var e=this.previousSibling;e&&1!=e.nodeType;)e=e.previousSibling;return e}},nextElementSibling:{get:function(){for(var e=this.nextSibling;e&&1!=e.nodeType;)e=e.nextSibling;return e}},childElementCount:{get:function(){for(var e=0,t=this.childNodes||[],n=t.length;n--;e+=1==t[n].nodeType);return e}},addEventListener:{value:function(e,t,n){var i,r=this,o="on"+e,a=r[v]||w(r,v,{value:{}})[v],s=a[o]||(a[o]={}),l=s.h||(s.h=[]);if(!M.call(s,"w")){if(s.w=function(e){return e[v]||c(r,f(0,e),l,!1)},!M.call(N,o))if(S.test(e))try{(i=document.createEventObject())[v]=!0,9!=r.nodeType&&null==r.parentNode&&D.appendChild(r),r.fireEvent(o,i),N[o]=!0}catch(i){for(N[o]=!1;D.hasChildNodes();)D.removeChild(D.firstChild)}else N[o]=!1;(s.n=N[o])&&r.attachEvent(o,s.w)}u(l,t)<0&&l[n?"unshift":"push"](t)}},dispatchEvent:{value:function(e){var t,n=this,i="on"+e.type,r=n[v],o=r&&r[i],a=!!o;return e.target||(e.target=n),a?o.n?n.fireEvent(i,e):c(n,e,o.h,!0):(t=n.parentNode)&&t.dispatchEvent(e),!e.defaultPrevented}},removeEventListener:{value:function(e,t,n){var i="on"+e,r=this[v],o=r&&r[i],a=o&&o.h,s=a?u(a,t):-1;-1<s&&a.splice(s,1)}}}),b(A,{addEventListener:{value:C.addEventListener},dispatchEvent:{value:C.dispatchEvent},removeEventListener:{value:C.removeEventListener}}),b(a.XMLHttpRequest.prototype,{addEventListener:{value:function(t,e,n){var i=this,r="on"+t,o=i[v]||w(i,v,{value:{}})[v],a=o[r]||(o[r]={}),s=a.h||(a.h=[]);u(s,e)<0&&(i[r]||(i[r]=function(){var e=document.createEvent("Event");e.initEvent(t,!0,!0),i.dispatchEvent(e)}),s[n?"unshift":"push"](e))}},dispatchEvent:{value:function(e){var t="on"+e.type,n=this[v],i=n&&n[t];return!!i&&(i.n?this.fireEvent(t,e):c(this,e,i.h,!0))}},removeEventListener:{value:C.removeEventListener}}),b(a.Event.prototype,{bubbles:{value:!0,writable:!0},cancelable:{value:!0,writable:!0},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0,this.returnValue=!1)}},stopPropagation:{value:function(){this.stoppedPropagation=!0,this.cancelBubble=!0}},stopImmediatePropagation:{value:function(){this.stoppedImmediatePropagation=!0,this.stopPropagation()}},initEvent:{value:function(e,t,n){this.type=e,this.bubbles=!!t,this.cancelable=!!n,this.bubbles||this.stopPropagation()}}}),b(a.HTMLDocument.prototype,{textContent:{get:function(){return 11===this.nodeType?t.call(this):null},set:function(e){11===this.nodeType&&n.call(this,e)}},addEventListener:{value:function(e,t,n){var i=this;C.addEventListener.call(i,e,t,n),s&&e===m&&!E.test(i.readyState)&&(s=!1,i.attachEvent(g,o),a==top&&function t(e){try{i.documentElement.doScroll("left"),o()}catch(e){setTimeout(t,50)}}())}},dispatchEvent:{value:C.dispatchEvent},removeEventListener:{value:C.removeEventListener},createEvent:{value:function(e){var t;if("Event"!==e)throw new Error("unsupported "+e);return(t=document.createEventObject()).timeStamp=(new Date).getTime(),t}}}),b(a.Window.prototype,{getComputedStyle:{value:(l=/^(?:[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/,d=/^(top|right|bottom|left)$/,p=/\-([a-z])/g,j.prototype.getPropertyValue=function(e){var t,n,i,r=this._,o=r.style,a=r.currentStyle,s=r.runtimeStyle;return e=("float"===e?"style-float":e).replace(p,L),t=a?a[e]:o[e],l.test(t)&&!d.test(e)&&(n=o.left,(i=s&&s.left)&&(s.left=a.left),o.left="fontSize"===e?"1em":t,t=o.pixelLeft+"px",o.left=n,i&&(s.left=i)),null==t?t:t+""||"auto"},x.prototype.getPropertyValue=function(){return null},function(e,t){return t?new x(e):new j(e)})},addEventListener:{value:function(e,t,n){var i,r=a,o="on"+e;r[o]||(r[o]=function(e){return c(r,f(0,e),i,!1)}),u(i=r[o][v]||(r[o][v]=[]),t)<0&&i[n?"unshift":"push"](t)}},dispatchEvent:{value:function(e){var t=a["on"+e.type];return!t||!1!==t.call(a,e)&&!e.defaultPrevented}},removeEventListener:{value:function(e,t,n){var i=(a["on"+e]||y)[v],r=i?u(i,t):-1;-1<r&&i.splice(r,1)}}})}function j(e){this._=e}function x(){}function L(e,t){return t.toUpperCase()}}(this),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).flowplayer=e()}}(function(){return function o(a,s,l){function c(t,e){if(!s[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(u)return u(t,!0);var i=new Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}var r=s[t]={exports:{}};a[t][0].call(r.exports,function(e){return c(a[t][1][e]||e)},r,r.exports,o,a,s,l)}return s[t].exports}for(var u="function"==typeof require&&require,e=0;e<l.length;e++)c(l[e]);return c}({1:[function(e,t,n){"use strict";var i,o=t.exports={},r=e("class-list"),a=window.jQuery,s=e("punycode"),l=e("computed-style");function c(e){return e.replace(/-[a-z]/g,function(e){return e[1].toUpperCase()})}o.noop=function(){},o.identity=function(e){return e},o.removeNode=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},o.find=function(e,t){return a?a(e,t).toArray():(t=t||document,Array.prototype.map.call(t.querySelectorAll(e),function(e){return e}))},o.text=function(e,t){e["innerText"in e?"innerText":"textContent"]=t},o.findDirect=function(e,t){return o.find(e,t).filter(function(e){return e.parentNode===t})},o.hasClass=function(e,t){return"string"==typeof e.className&&r(e).contains(t)},o.isSameDomain=function(e){var t=window.location,n=o.createElement("a",{href:e});return t.hostname===n.hostname&&t.protocol===n.protocol&&t.port===n.port},o.css=function(t,n,e){return"object"==typeof n?Object.keys(n).forEach(function(e){o.css(t,e,n[e])}):void 0!==e?""===e?t?t.style.removeProperty(n):void 0:t?t.style.setProperty(n,e):void 0:t?l(t,n):void 0},o.createElement=function(t,n,i){try{var e=document.createElement(t);for(var r in n)n.hasOwnProperty(r)&&("css"===r?o.css(e,n[r]):o.attr(e,r,n[r]));return i&&(e.innerHTML=i),e}catch(e){if(!a)throw e;return a("<"+t+">"+i+"</"+t+">").attr(n)[0]}},o.toggleClass=function(e,t,n){if(e){var i=r(e);void 0===n?i.toggle(t):n?i.add(t):n||i.remove(t)}},o.addClass=function(e,t){return o.toggleClass(e,t,!0)},o.removeClass=function(e,t){return o.toggleClass(e,t,!1)},o.append=function(e,t){return e.appendChild(t),e},o.appendTo=function(e,t){return o.append(t,e),e},o.prepend=function(e,t){e.insertBefore(t,e.firstChild)},o.insertAfter=function(e,t,n){t==o.lastChild(e)&&e.appendChild(n);var i=Array.prototype.indexOf.call(e.children,t);e.insertBefore(n,e.children[i+1])},o.html=function(e,t){(e=e.length?e:[e]).forEach(function(e){e.innerHTML=t})},o.attr=function(t,n,i){if("class"===n&&(n="className"),o.hasOwnOrPrototypeProperty(t,n))try{t[n]=i}catch(e){if(!a)throw e;a(t).attr(n,i)}else!1===i?t.removeAttribute(n):t.setAttribute(n,i);return t},o.prop=function(e,t,n){if(void 0===n)return e&&e[t];e[t]=n},o.offset=function(e){var t=e.getBoundingClientRect();return e.offsetWidth/e.offsetHeight>e.clientWidth/e.clientHeight&&(t={left:100*t.left,right:100*t.right,top:100*t.top,bottom:100*t.bottom,width:100*t.width,height:100*t.height}),t},o.width=function(e,t){if(t)return e.style.width=(""+t).replace(/px$/,"")+"px";var n=o.offset(e).width;return void 0===n?e.offsetWidth:n},o.height=function(e,t){if(t)return e.style.height=(""+t).replace(/px$/,"")+"px";var n=o.offset(e).height;return void 0===n?e.offsetHeight:n},o.lastChild=function(e){return e.children[e.children.length-1]},o.hasParent=function(e,t){for(var n=e.parentElement;n;){if("string"!=typeof t){if(n===t)return!0}else if(o.matches(n,t))return!0;n=n.parentElement}return!1},o.createAbsoluteUrl=function(e){return o.createElement("a",{href:e}).href},o.xhrGet=function(e,t,n){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===this.readyState)return 400<=this.status?n():void t(this.responseText)},i.open("get",e,!0),i.send()},o.pick=function(t,e){var n={};return e.forEach(function(e){t.hasOwnProperty(e)&&(n[e]=t[e])}),n},o.hostname=function(e){return s.toUnicode(e||window.location.hostname)},o.browser={webkit:"WebkitAppearance"in document.documentElement.style},o.getPrototype=function(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__},o.hasOwnOrPrototypeProperty=function(e,t){for(var n=e;n;){if(Object.prototype.hasOwnProperty.call(n,t))return!0;n=o.getPrototype(n)}return!1},o.matches=function(e,t){var n=Element.prototype;return(n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)n++;return!!t[n]}).call(e,t)},void 0!==(i=window.CSSStyleDeclaration.prototype).setAttribute&&(i.setProperty=function(e,t){return this.setAttribute(c(e),String(t))},i.getPropertyValue=function(e){return this.getAttribute(c(e))||null},i.removeProperty=function(e){var t=this.getPropertyValue(e);return this.removeAttribute(c(e)),t})},{"class-list":36,"computed-style":37,punycode:44}],2:[function(e,t,n){"use strict";var c=e("../common");t.exports=function(e,t,n,i){n=n||"opaque";var r="obj"+(""+Math.random()).slice(2,15),o='<object class="fp-engine" id="'+r+'" name="'+r+'" ',a=-1<navigator.userAgent.indexOf("MSIE");o+=a?'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">':' data="'+e+'" type="application/x-shockwave-flash">';var s={width:"100%",height:"100%",allowscriptaccess:"always",wmode:n,quality:"high",flashvars:"",movie:e+(a?"?"+r:""),name:r};"transparent"!==n&&(s.bgcolor=i||"#333333"),Object.keys(t).forEach(function(e){s.flashvars+=e+"="+t[e]+"&"}),Object.keys(s).forEach(function(e){o+='<param name="'+e+'" value="'+s[e]+'"/>'}),o+="</object>";var l=c.createElement("div",{},o);return c.find("object",l)},window.attachEvent&&window.attachEvent("onbeforeunload",function(){window.__flash_savedUnloadHandler=window.__flash_unloadHandler=function(){}})},{"../common":1}],3:[function(e,t,n){"use strict";var i,S=e("../flowplayer"),E=e("../common"),N=e("./embed"),D=e("extend-object"),j=e("bean");function x(e){return/^https?:/.test(e)}(i=function(g,m){var v,y,w,b,I=g.conf,M=[],C={engineName:i.engineName,pick:function(i){var e=D({},function(){if(S.support.flashVideo){for(var e,t,n=0;n<i.length;n++)if(t=i[n],/mp4|flv|flash/i.test(t.type)&&(e=t),g.conf.swfHls&&/mpegurl/i.test(t.type)&&(e=t),e&&!/mp4/i.test(e.type))return e;return e}}());if(e)return!e.src||x(e.src)||g.conf.rtmp||e.rtmp||(e.src=E.createAbsoluteUrl(e.src)),e},suspendEngine:function(){b=!0},resumeEngine:function(){b=!1},load:function(n){function e(e){return e.replace(/&amp;/g,"%26").replace(/&/g,"%26").replace(/=/g,"%3D")}v=n,M.forEach(function(e){clearTimeout(e)});function t(){E.removeNode(i)}var i=E.findDirect("video",m)[0]||E.find(".fp-player > video",m)[0],r=n.src,o=x(r);S.support.video&&E.prop(i,"autoplay")&&n.sources.some(function(e){return!!i.canPlayType(e.type)})?j.one(i,"timeupdate",t):t();var a,s=n.rtmp||I.rtmp;if(o||s||(r=E.createAbsoluteUrl(r)),w&&A(n)&&w.data!==E.createAbsoluteUrl(I.swfHls)&&C.unload(),w){["live","preload","loop"].forEach(function(e){n.hasOwnProperty(e)&&w.__set(e,n[e])}),Object.keys(n.flashls||{}).forEach(function(e){w.__set("hls_"+e,n.flashls[e])});var l=!1;if(!o&&s)w.__set("rtmp",s.url||s);else l=!!w.__get("rtmp"),w.__set("rtmp",null);w.__play(r,l||n.rtmp&&n.rtmp!==I.rtmp)}else{y="fpCallback"+(""+Math.random()).slice(3,15),r=e(r);var c={hostname:I.embedded?E.hostname(I.hostname):E.hostname(location.hostname),url:r,callback:y};m.getAttribute("data-origin")&&(c.origin=m.getAttribute("data-origin")),["proxy","key","autoplay","preload","subscribe","live","loop","debug","splash","poster","rtmpt"].forEach(function(e){I.hasOwnProperty(e)&&(c[e]=I[e]),n.hasOwnProperty(e)&&(c[e]=n[e]),(I.rtmp||{}).hasOwnProperty(e)&&(c[e]=(I.rtmp||{})[e]),(n.rtmp||{}).hasOwnProperty(e)&&(c[e]=(n.rtmp||{})[e])}),I.splash&&(c.autoplay=!0),I.rtmp&&(c.rtmp=I.rtmp.url||I.rtmp),n.rtmp&&(c.rtmp=n.rtmp.url||n.rtmp),Object.keys(n.flashls||{}).forEach(function(e){var t=n.flashls[e];c["hls_"+e]=t});var u=void 0!==n.hlsQualities?n.hlsQualities:I.hlsQualities;void 0!==u&&(c.hlsQualities=u?encodeURIComponent(JSON.stringify(u)):u),void 0!==I.bufferTime&&(c.bufferTime=I.bufferTime),void 0!==I.bufferTimeMax&&(c.bufferTimeMax=I.bufferTimeMax),o&&delete c.rtmp,c.rtmp&&(c.rtmp=e(c.rtmp));var f,d=I.bgcolor||E.css(m,"background-color")||"";0===d.indexOf("rgb")?f=function(e){function t(e){return("0"+parseInt(e).toString(16)).slice(-2)}if(!(e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/)))return;return"#"+t(e[1])+t(e[2])+t(e[3])}(d):0===d.indexOf("#")&&(f=7===(a=d).length?a:"#"+a.split("").slice(1).map(function(e){return e+e}).join("")),c.initialVolume=g.volumeLevel;var p=A(n)?I.swfHls:I.swf;w=N(p,c,I.wmode,f)[0];var h=E.find(".fp-player",m)[0];E.prepend(h,w),g.off("quality.flashengine").on("quality.flashengine",function(e,t,n){if(void 0!==g.video.hlsQualities?g.video.hlsQualities:g.conf.hlsQualities)try{w.__quality(n)}catch(e){g.debug("Error changing quality in flash engine",e)}}),setTimeout(function(){try{if(!w.PercentLoaded())return g.trigger("error",[g,{code:7,url:I.swf}])}catch(e){}},5e3),M.push(setTimeout(function(){void 0===w.PercentLoaded&&g.trigger("flashdisabled",[g])},15e3)),M.push(setTimeout(function(){void 0===w.PercentLoaded&&g.trigger("flashdisabled",[g,!1])},500)),g.off("resume.flashhack").on("resume.flashhack",function(){var e=setTimeout(function(){var e=w.__status().time,t=setTimeout(function(){g.playing&&!g.loading&&w.__status().time===e&&g.trigger("flashdisabled",[g])},400);M.push(t),g.one("seek.flashhack pause.flashhack load.flashack",function(){clearTimeout(t)})},800);M.push(e),g.one("progress",function(){clearTimeout(e)})}),w.pollInterval=setInterval(function(){if(w&&!b){var e=w.__status?w.__status():null;e&&((g.conf.live||g.live||n.live)&&(n.seekOffset=e.seekOffset,n.duration=e.duration+e.seekOffset),g.playing&&e.time&&e.time!==g.video.time&&g.trigger("progress",[g,e.time]),n.buffer=e.buffer/n.bytes*n.duration,g.trigger("buffer",[g,n.buffer]),!n.buffered&&0<e.time&&(n.buffered=!0,g.trigger("buffered",[g])))}},250),window[y]=function(e,t){var n=v;I.debug&&(0===e.indexOf("debug")&&t&&t.length?console.log.apply(console,["-- "+e].concat(t)):console.log("--",e,t));var i={type:e};switch(e){case"ready":t=D(n,t);break;case"click":i.flash=!0;break;case"keydown":i.which=t;break;case"seek":n.time=t;break;case"status":g.trigger("progress",[g,t.time]),t.buffer<n.bytes&&!n.buffered?(n.buffer=t.buffer/n.bytes*n.duration,g.trigger("buffer",n.buffer)):n.buffered||(n.buffered=!0,g.trigger("buffered"));break;case"metadata":var r=atob(t);t={key:r.substr(10,4),data:r.substr(21)}}"click"===e||"keydown"===e?(i.target=m,j.fire(m,e,[i])):"buffered"!=e&&"unload"!==e?setTimeout(function(){g.trigger(i,[g,t])},1):"unload"===e&&g.trigger(i,[g,t])}}},speed:E.noop,unload:function(){w&&w.__unload&&w.__unload();try{y&&window[y]&&delete window[y]}catch(e){}E.find("object",m).forEach(E.removeNode),w=0,g.off(".flashengine"),g.off(".flashhack"),clearInterval(w.pollInterval),M.forEach(function(e){clearTimeout(e)})}};function A(e){return/application\/x-mpegurl/i.test(e.type)}return["pause","resume","seek","volume"].forEach(function(t){C[t]=function(e){try{g.ready&&(void 0===e?w["__"+t]():w["__"+t](e))}catch(e){if(void 0===w["__"+t])return g.trigger("flashdisabled",[g]);throw e}}}),C}).engineName="flash",i.canPlay=function(e,t){return S.support.flashVideo&&/video\/(mp4|flash|flv)/i.test(e)||S.support.flashVideo&&t.swfHls&&/mpegurl/i.test(e)},S.engines.push(i)},{"../common":1,"../flowplayer":31,"./embed":2,bean:34,"extend-object":39}],4:[function(e,t,n){"use strict";var l,g=e("../flowplayer"),i=g.support,m=g.common,v=g.bean,r=e("./html5-factory");function o(e){return void 0!==window.Hls&&(/mpegurl/.test(e)&&window.Hls.isSupported())}(l=function(d,a){var p,h,s=window.Hls;return r("hlsjs-lite",d,a,o,function(c,u,e){var i=g.extend({recoverMediaError:!0},d.conf.hlsjs,c.hlsjs);d.engine.hls&&d.engine.hls.destroy();var n,r,f=d.engine.hls=new s(i);function o(e){if(d.debug("hlsjs - recovery"),m.removeClass(a,"is-paused"),m.addClass(a,"is-seeking"),v.one(u,"seeked",function(){u.paused&&(m.removeClass(a,"is-poster"),d.poster=!1,u.play()),m.removeClass(a,"is-seeking")}),e)return f.startLoad();var t=performance.now();!n||3e3<t-n?(n=performance.now(),f.recoverMediaError()):(!r||3e3<t-r)&&(r=performance.now(),f.swapAudioCodec(),f.recoverMediaError())}return l.extensions.forEach(function(e){e({hls:f,player:d,root:a,videoTag:u})}),f.loadSource(c.src),e.resume=function(){d.live&&!d.dvr&&(u.currentTime=f.liveSyncPosition||0),u.play()},!(e.seek=function(t){try{d.live||d.dvr?u.currentTime=Math.min(t,f.liveSyncPosition||u.duration-i.livePositionOffset):u.currentTime=t}catch(e){d.debug("Failed to seek to ",t,e)}})===i.bufferWhilePaused&&d.on("pause",function(){f.stopLoad(),d.one("resume",function(){f.startLoad()})}),d.on("quality",function(e,t,n){f.nextLevel=p=n}),f.on(s.Events.MANIFEST_PARSED,function(e,t){var i,r=c.hlsQualities||d.conf.hlsQualities,o={},n=t.levels;if(!1===r)return f.attachMedia(u);if("drive"===r)switch(n.length){case 4:i=[1,2,3];break;case 5:i=[1,2,3,4];break;case 6:i=[1,3,4,5];break;case 7:i=[1,3,5,6];break;case 8:i=[1,3,6,7];break;default:i=n.length<3||n[0].height&&n[2].height&&n[0].height===n[2].height?[]:[1,2]}if(c.qualities=[{value:-1,label:"Auto"}],Array.isArray(r)){var a=r.find(function(e){return-1===e||e.level&&-1===e.level});a?c.qualities[0].label="number"!=typeof a?a.label:c.qualities[0].label:c.qualities=[],i=r.map(function(e){return void 0!==e.level&&(o[e.level]=e.label),void 0!==e.level?e.level:e})}var s=-2;c.qualities=c.qualities.concat(n.map(function(e,t){if(i&&-1===i.indexOf(t))return!1;var n=o[t]||Math.min(e.width,e.height)+"p";return o[t]||"drive"===r||(n+=" ("+Math.round(e.bitrate/1e3)+"k)"),t===p&&(s=t),{value:t,label:n,width:e.width,height:e.height}})).filter(m.identity),d.one("ready",function(){1<c.qualities.length&&(c.width=c.qualities[c.qualities.length-1].width,c.height=c.qualities[c.qualities.length-1].height)});var l=c.quality=-2===s?c.qualities[0].value||-1:s;l!==f.currentLevel&&(f.currentLevel=l),f.attachMedia(u),h&&c.src!==h&&u.play(),h=c.src}),f.on(s.Events.ERROR,function(e,t){if(t.fatal)if(i.recoverNetworkError&&t.type===s.ErrorTypes.NETWORK_ERROR)o(!0);else if(i.recoverMediaError&&t.type===s.ErrorTypes.MEDIA_ERROR)o(!1);else{var n=5;t.type===s.ErrorTypes.NETWORK_ERROR&&(n=2),t.type===s.ErrorTypes.MEDIA_ERROR&&(n=3),f.destroy(),d.trigger("error",[d,{code:n}])}}),d.one("unload",function(){f.destroy()}),{handlers:{error:function(e,t){var n=t.error&&t.error.code;return i.recoverMediaError&&3===n||!n?(e.preventDefault(),o(!1),!0):i.recoverNetworkError&&2===n?(e.preventDefault(),o(!0),!0):void 0}}}})}).canPlay=function(e,t){return!(!1===t.hlsjs||t.clip&&!1===t.clip.hlsjs)&&(!(i.browser.safari&&!(t.clip&&t.clip.hlsjs||t.hlsjs||{}).safari)&&(g.support.video&&o(e)))},l.engineName="hlsjs-lite",l.plugin=function(e){l.extensions.push(e)},l.extensions=[],g.engines.push(l)},{"../flowplayer":31,"./html5-factory":5}],5:[function(e,t,n){var i=e("../flowplayer"),m=i.common,v=i.support,y=i.bean,w=i.extend,r=v.browser.safari&&!v.iOS,b={ended:"finish",pause:"pause",play:"resume",timeupdate:"progress",volumechange:"volume",ratechange:"speed",seeked:"seek",loadedmetadata:r?0:"ready",canplaythrough:r?"ready":0,durationchange:"ready",error:"error",dataunavailable:"error",webkitendfullscreen:!i.support.inlineVideo&&"unload",progress:"buffer"};function I(e,t){return t=t||100,Math.round(e*t)/t}t.exports=function(e,d,p,h,l){var t,c,u,f=m.findDirect("video",p)[0]||m.find(".fp-player > video",p)[0],g=d.conf;return u={engineName:e,pick:function(e){var t=v.video&&e.filter(function(e){return h(e.type)})[0];if(t)return"string"==typeof t.src&&(t.src=m.createAbsoluteUrl(t.src)),t},load:function(e){var t=m.find(".fp-player",p)[0],n=!1;if(f||(f=document.createElement("video"),m.prepend(t,f),f.autoplay=!!g.splash,n=!0),m.addClass(f,"fp-engine"),m.find("track",f).forEach(m.removeNode),f.preload="none",g.nativesubtitles||m.attr(f,"crossorigin",!1),g.disableInline||(f.setAttribute("webkit-playsinline","true"),f.setAttribute("playsinline","true")),v.inlineVideo||m.css(f,{position:"absolute",top:"-9999em"}),v.subtitles&&g.nativesubtitles&&e.subtitles&&e.subtitles.length){m.addClass(f,"native-subtitles");function i(e){var t=f.textTracks;t.length&&(t[0].mode=e)}var r=e.subtitles;r.some(function(e){return!m.isSameDomain(e.src)})&&m.attr(f,"crossorigin","anonymous"),"function"==typeof f.textTracks.addEventListener&&f.textTracks.addEventListener("addtrack",function(){i("disabled"),i("showing")}),r.forEach(function(e){f.appendChild(m.createElement("track",{kind:"subtitles",srclang:e.srclang||"en",label:e.label||"en",src:e.src,default:e.default}))})}y.off(f,"timeupdate",m.noop),y.on(f,"timeupdate",m.noop),m.prop(f,"loop",!1),d.off(".loophack"),(e.loop||g.loop)&&d.on("finish.loophack",function(){d.resume()}),void 0!==c&&(f.volume=c);var o=l(e,f,u);if(g.autoplay||g.splash||e.autoplay){d.debug("Autoplay / Splash setup, try to start video"),f.load();function a(){try{var e=f.play();if(e&&e.catch){var t=function(e){if("AbortError"===e.name&&20===e.code)return n?void 0:f.play().catch(t);if(!g.mutedAutoplay)throw new Error("Unable to autoplay");return d.debug("Play errored, trying muted",e),d.mute(!0,!0),f.play()};e.catch(t).catch(function(){g.autoplay=!1,d.mute(!1,!0),d.trigger("stop",[d])})}}catch(e){d.debug("play() error thrown",e)}}0<f.readyState?a():y.one(f,"canplay",a)}if(u._listeners=function(l,e,c,u){var f=p.getAttribute("data-flowplayer-instance-id");if(l.listeners&&l.listeners.hasOwnProperty(f))return void(l.listeners[f]=c);(l.listeners||(l.listeners={}))[f]=c,y.on(e,"error",function(e){try{h(e.target.getAttribute("type"))&&d.trigger("error",[d,{code:4,video:w(c,{src:l.src,url:l.src})}])}catch(e){}}),d.on("shutdown",function(){y.off(e),y.off(l,".dvrhack"),d.off(".loophack")});function t(e){"metadata"===e.kind&&(e.mode="hidden",e.addEventListener("cuechange",function(){e.activeCues.length&&d.trigger("metadata",[d,e.activeCues[0].value])},!1))}var n={};l&&l.textTracks&&l.textTracks.length&&Array.prototype.forEach.call(l.textTracks,t);l&&l.textTracks&&"function"==typeof l.textTracks.addEventListener&&l.textTracks.addEventListener("addtrack",function(e){t(e.track)},!1);(d.conf.dvr||d.dvr||c.dvr)&&y.on(l,"progress.dvrhack",function(){l.seekable.length&&(d.video.duration=l.seekable.end(null),d.video.seekOffset=l.seekable.start(null),d.trigger("dvrwindow",[d,{start:l.seekable.start(null),end:l.seekable.end(null)}]),l.currentTime>=l.seekable.start(null)||(l.currentTime=l.seekable.start(null)))});return Object.keys(b).forEach(function(a){var s=b[a];if("webkitendfullscreen"===a&&d.conf.disableInline&&(s="unload"),s){function e(e){if(c=l.listeners[f],e.target&&m.hasClass(e.target,"fp-engine")){/progress/.test(s)||d.debug(a,"->",s,e);function t(e){d.trigger(e||s,[d,n])}var n;if((d.ready||/ready|error/.test(s))&&s&&m.find("video",p).length)if("unload"!==s){switch(s){case"ready":if(d.ready&&(d.live||d.dvr)&&(d.video.duration=l.duration),d.ready)return d.debug("Player already ready, not sending duplicate ready event");if(!(l.duration&&l.duration!==1/0||d.live))return d.debug("No duration and VOD setup, not sending ready event");if((n=w(c,{duration:l.duration<Number.MAX_VALUE?l.duration:0,width:l.videoWidth,height:l.videoHeight,url:l.currentSrc})).seekable=n.duration,d.debug("Ready: ",n),d.live||n.duration||v.hlsDuration||"loadeddata"!==a)break;var i=function(){n.duration=l.duration;try{n.seekable=l.seekable&&l.seekable.end(null)}catch(e){}t(),l.removeEventListener("durationchange",i),m.toggleClass(p,"is-live",!1)};l.addEventListener("durationchange",i);var r=function(){d.ready||l.duration||(n.duration=0,m.addClass(p,"is-live"),t()),l.removeEventListener("timeupdate",r)};return void l.addEventListener("timeupdate",r);case"progress":case"seek":if(0<l.currentTime||d.live)n=Math.max(l.currentTime,0);else if("seek"===s&&0===l.currentTime)n=0;else if("progress"==s)return;break;case"buffer":n=[];for(var o=0;o<l.buffered.length;o++)n.push({start:l.buffered.start(o),end:l.buffered.end(o)});l.buffered.length&&l.buffered.end(null)===l.duration&&t("buffered");break;case"speed":n=I(l.playbackRate);break;case"volume":n=I(l.muted?0:l.volume);break;case"error":try{if(u&&u.handlers&&u.handlers.error)if(u.handlers.error(e,l))return;(n=(e.srcElement||e.originalTarget).error).video=w(c,{src:l.src,url:l.src})}catch(e){return}}t()}else d.unload();else"resume"===s&&d.one("ready",function(){setTimeout(function(){t()})})}}p.addEventListener(a,e,!0),n[a]||(n[a]=[]),n[a].push(e)}}),n}(f,m.find("source",f).concat(f),e,o)||u._listeners,!(g.autoplay||g.splash||e.autoplay)){function s(){var e;0<=(e=p.getBoundingClientRect()).top&&0<=e.left&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)+e.height&&e.right<=(window.innerWidth||document.documentElement.clientWidth)+e.width&&(d.debug("player is in viewport, preload"),v.preloadMetadata?f.preload="metadata":f.load(),y.off(document,"scroll.preloadviewport"))}y.off(document,"scroll.preloadviewport"),y.on(document,"scroll.preloadviewport",function(){window.requestAnimationFrame(s)}),s()}},mute:function(e){f.muted=!!e,d.trigger("mute",[d,e]),d.trigger("volume",[d,e?0:f.volume])},pause:function(){f.pause()},resume:function(){f.play()},speed:function(e){f.playbackRate=e},seek:function(e){var t=f.paused||d.finished;try{f.currentTime=e,t&&y.one(f,"seeked",function(){f.pause()})}catch(e){}},volume:function(e){c=e,f&&(f.volume=e)&&u.mute(!1)},unload:function(){y.off(document,"scroll.preloadviewport"),m.find("video.fp-engine",p).forEach(function(e){"MediaSource"in window?e.src=URL.createObjectURL(new MediaSource):e.src="",m.removeNode(e)}),t=clearInterval(t);var e=p.getAttribute("data-flowplayer-instance-id");delete f.listeners[e],f=0,u._listeners&&Object.keys(u._listeners).forEach(function(t){u._listeners[t].forEach(function(e){p.removeEventListener(t,e,!0)})})}}}},{"../flowplayer":31}],6:[function(e,t,n){"use strict";var i,r=e("../flowplayer"),o=r.common,a=e("./html5-factory"),s=document.createElement("video");function l(e){var t;return/^(video|application)/i.test(e)||(e=/mpegurl/i.test(t=e)?"application/x-mpegurl":t),!!s.canPlayType(e).replace("no","")}(i=function(e,t){return a("html5",e,t,l,function(e,t){t.currentSrc!==e.src?(o.find("source",t).forEach(o.removeNode),t.src=e.src,t.type=e.type):e.autoplay&&t.load()})}).canPlay=function(e){return r.support.video&&l(e)},i.engineName="html5",r.engines.push(i)},{"../flowplayer":31,"./html5-factory":5}],7:[function(e,t,n){"use strict";var i=e("../flowplayer"),r=e("../common"),o=e("bean"),a=window.jQuery;i(function(e,i){e.on("ready",function(){var t=r.find("video.fp-engine",i)[0];t&&(t.setAttribute("x-webkit-airplay","allow"),window.WebKitPlaybackTargetAvailabilityEvent&&(t.addEventListener("webkitplaybacktargetavailabilitychanged",function(e){if("available"===e.availability){var t=r.find(".fp-header",i)[0];r.find(".fp-airplay",t).forEach(r.removeNode);var n=r.createElement("a",{class:"fp-airplay fp-icon",title:"Play on AirPlay device"});t.insertBefore(n,r.find(".fp-fullscreen",t)[0])}}),t.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",function(){var e=r.find(".fp-airplay",i)[0];e&&r.toggleClass(e,"fp-active",t.webkitCurrentPlaybackTargetIsWireless)}),e.one("progress",function(){a(i).find(".fp-airplay").toggle("html5"==e.engine.engineName)})))}),o.on(i,"click",".fp-airplay",function(e){e.preventDefault(),r.find("video.fp-engine",i)[0].webkitShowPlaybackTargetPicker()})})},{"../common":1,"../flowplayer":31,bean:34}],8:[function(e,t,n){"use strict";var i=e("../flowplayer"),l=e("./resolve").TYPE_RE,c=e("scriptjs"),u=e("bean");i(function(i,r){var o,t=i.conf.analytics,a=0,e=0;if(t){"undefined"==typeof _gat&&c("//google-analytics.com/ga.js");var s=function(){var e=_gat._getTracker(t);return e._setAllowLinker(!0),e},n=function(e,t,n){n=n||i.video,a&&"undefined"!=typeof _gat&&(s()._trackEvent("Video / Seconds played",i.engine.engineName+"/"+n.type,n.title||r.getAttribute("title")||n.src.split("/").slice(-1)[0].replace(l,""),Math.round(a/1e3)),a=0,o&&(clearTimeout(o),o=null))};i.bind("load unload",n).bind("progress",function(){i.seeking||(a+=e?new Date-e:0,e=+new Date),o=o||setTimeout(function(){o=null,s()._trackEvent("Flowplayer heartbeat","Heartbeat","",0,!0)},6e5)}).bind("pause",function(){e=0}),i.bind("shutdown",function(){u.off(window,"unload",n)}),u.on(window,"unload",n)}})},{"../flowplayer":31,"./resolve":21,bean:34,scriptjs:45}],9:[function(e,t,n){"use strict";var i=e("../flowplayer"),g=e("../common"),m=e("bean"),v=e("scriptjs");i(function(r,o){if(!1!==r.conf.chromecast){v("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"),window.__onGCastApiAvailable=function(e){var t,n,i;e&&(t=c.applicationId||chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,n=new chrome.cast.SessionRequest(t),i=new chrome.cast.ApiConfig(n,u,f),chrome.cast.initialize(i,d,p))};var a,s,l,c=r.conf.chromecast||{};m.on(o,"click",".fp-chromecast",function(e){if(e.preventDefault(),a)return r.trigger("pause",[r]),a.stop(),a=null,void h();r.playing&&r.pause(),chrome.cast.requestSession(function(e){var t=(a=e).receiver.friendlyName;g.html(g.find(".fp-chromecast-engine-status")[0],"Playing on device "+t);var n=new chrome.cast.media.MediaInfo(r.video.src),i=new chrome.cast.media.LoadRequest(n);a.loadMedia(i,function(n){n.addUpdateListener(function(e){if(a){s=s||setInterval(function(){r.trigger("progress",[r,n.getEstimatedTime()])},500),e?(g.toggleClass(o,"is-chromecast",!0),g.toggleClass(l,"fp-active",!0),r.hijack({pause:function(){n.pause()},resume:function(){n.play()},seek:function(e){var t=new chrome.cast.media.SeekRequest;t.currentTime=e,n.seek(t)}})):(h(),r.trigger("finish",[r]));var t=n.playerState;r.paused&&t===chrome.cast.media.PlayerState.PLAYING&&r.trigger("resume",[r]),r.playing&&t===chrome.cast.media.PlayerState.PAUSED&&r.trigger("pause",[r]),g.toggleClass(o,"is-loading",t===chrome.cast.media.PlayerState.BUFFERING)}})},function(){})},function(e){console.error("requestSession error",e)})})}function u(){console.log("sessionListener")}function f(e){e===chrome.cast.ReceiverAvailability.AVAILABLE&&function(){var e=g.find(".fp-header",o)[0];if(!e)return;g.find(".fp-chromecast",e).forEach(g.removeNode),g.find(".fp-chromecast-engine",o).forEach(g.removeNode),l=g.createElement("a",{class:"fp-chromecast fp-icon",title:"Play on Cast device"}),e.insertBefore(l,g.find(".fp-fullscreen",e)[0]);var t=g.createElement("div",{class:"fp-chromecast-engine"}),n=g.createElement("p",{class:"fp-chromecast-engine-status"}),i=g.createElement("p",{class:"fp-chromecast-engine-icon"});t.appendChild(i),t.appendChild(n);var r=g.find(".fp-engine",o)[0];r?r.parentNode.insertBefore(t,r):g.prepend(g.find(".fp-player",o)[0]||o,t)}()}function d(){}function p(){console.log("onError")}function h(){clearInterval(s),s=null,r.release(),g.toggleClass(o,"is-chromecast",!1),g.toggleClass(l,"fp-active",!1)}})},{"../common":1,"../flowplayer":31,bean:34,scriptjs:45}],10:[function(e,t,n){"use strict";var i=e("../flowplayer"),f=e("../common"),d=e("bean");i(function(a,s){var t=/ ?cue\d+ ?/,r=!1;function i(e){s.className=s.className.replace(t," "),0<=e&&f.addClass(s,"cue"+e)}function o(e){i(e.index),a.trigger("cuepoint",[a,e])}var l={},c=-.125;function u(e){var t=e&&!isNaN(e.time)?e.time:e;return t<0&&(t=a.video.duration+t),.125*Math.round(t/.125)}a.on("progress",function(e,t,n){if(!r)for(var i=u(n);c<i;)l[c+=.125]&&l[c].forEach(o)}).on("unload",i).on("beforeseek",function(e){setTimeout(function(){e.defaultPrevented||(r=!0)})}).on("seek",function(e,t,n){i(),c=u(n||0)-.125,r=!1,!n&&l[0]&&l[0].forEach(o)}).on("ready",function(e,t,n){c=-.125;var i=n.cuepoints||a.conf.cuepoints||[];a.setCuepoints(i)}).on("finish",function(){for(var e=u(a.video.duration);c<e;)l[c+=.125]&&l[c].forEach(o);c=-.125}),a.conf.generate_cuepoints&&a.bind("load",function(){f.find(".fp-cuepoint",s).forEach(f.removeNode)}),a.setCuepoints=function(e){return a.cuepoints=[],l={},e.forEach(a.addCuepoint),a},a.addCuepoint=function(e){a.cuepoints||(a.cuepoints=[]),"number"==typeof e&&(e={time:e}),e.index=0;var t=u(e);if(l[t]||(l[t]=[]),l[t].push(e),a.cuepoints.length&&(e.index=Math.max.apply(null,a.cuepoints.map(function(e){return e.index}))+1),a.cuepoints.push(e),a.conf.generate_cuepoints&&!1!==e.visible){var n=a.video.duration,i=f.find(".fp-timeline",s)[0];f.css(i,"overflow","visible");var r=e.time||e;r<0&&(r=n+r);var o=f.createElement("a",{className:"fp-cuepoint fp-cuepoint"+e.index});f.css(o,"left",r/n*100+"%"),i.appendChild(o),d.on(o,"mousedown",function(e){e.preventDefault(),e.stopPropagation(),a.seek(r)})}return a},a.removeCuepoint=function(t){"number"==typeof t&&(t=a.cuepoints.filter(function(e){return e.index===t})[0]);var e=a.cuepoints.indexOf(t),n=u(t);if(-1!==e){a.cuepoints=a.cuepoints.slice(0,e).concat(a.cuepoints.slice(e+1));var i=f.find(".fp-timeline",s)[0];f.find(".fp-cuepoint"+t.index,i).forEach(f.removeNode);var r=l[n].indexOf(t);if(-1!==r)return l[n]=l[n].slice(0,r).concat(l[n].slice(r+1)),a}}})},{"../common":1,"../flowplayer":31,bean:34}],11:[function(e,t,n){"use strict";var i=e("../flowplayer"),r=e("bean"),l=e("../common"),o=e("./util/clipboard");i(function(a,s){if(!1!==a.conf.embed&&!1!==a.conf.share){var e=l.find(".fp-share-menu",s)[0],t=l.createElement("a",{class:"fp-icon fp-embed",title:"Copy to your site"},"Embed");l.append(e,t),a.embedCode=function(){var e=a.conf.embed||{},t=a.video,n=e.width||t.width||l.width(s),i=e.height||t.height||l.height(s),r=a.conf.ratio,o='<iframe src="'+a.shareUrl(!0)+'" allowfullscreen style="border:none;';return e.width||e.height?(isNaN(n)||(n+="px"),isNaN(i)||(i+="px"),o+"width:"+n+";height:"+i+';"></iframe>'):(r&&!a.conf.adaptiveRatio||(r=i/n),'<div style="position:relative;width:100%;display:inline-block;">'+o+'position:absolute;top:0;left:0;width:100%;height:100%;"></iframe><div style="padding-top:'+100*r+'%;"></div></div>')},r.on(s,"click",".fp-embed",function(){o(a.embedCode(),function(){a.message("The embed code is now on your clipboard",2e3)},function(){a.textarea(a.embedCode(),"Copy the code below to embed your video")})})}})},{"../common":1,"../flowplayer":31,"./util/clipboard":30,bean:34}],12:[function(e,t,n){"use strict";t.exports=function(o,s){s=s||document.createElement("div");function n(n,i,r){var o=n.split(".")[0],a=function(e){r&&(s.removeEventListener(o,a),l[n].splice(l[n].indexOf(a),1));var t=[e].concat(c[e.timeStamp+e.type]||[]);i&&i.apply(void 0,t)};s.addEventListener(o,a),l[n]||(l[n]=[]),l[n].push(a)}var l={},c={};o.on=o.bind=function(e,t){return e.split(" ").forEach(function(e){n(e,t)}),o},o.one=function(e,t){return e.split(" ").forEach(function(e){n(e,t,!0)}),o};o.off=o.unbind=function(e){return e.split(" ").forEach(function(e){var i=e.split(".").slice(1),r=e.split(".")[0];Object.keys(l).filter(function(e){var t,n=e.split(".").slice(1);return(!r||0===e.indexOf(r))&&(t=n,0===i.filter(function(e){return-1===t.indexOf(e)}).length)}).forEach(function(e){var t=l[e],n=e.split(".")[0];l[e]=t.filter(function(e){return s.removeEventListener(n,e),!1})})}),o},o.trigger=function(e,t,n){if(e){t=(t||[]).length?t||[]:[t];var i,r=document.createEvent("Event");return i=e.type||e,r.initEvent(i,!1,!0),Object.defineProperty&&(r.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}),c[r.timeStamp+r.type]=t,s.dispatchEvent(r),n?r:o}}},t.exports.EVENTS=["beforeseek","disable","error","finish","fullscreen","fullscreen-exit","load","mute","pause","progress","ready","resume","seek","speed","stop","unload","volume","boot","shutdown"]},{}],13:[function(e,t,n){"use strict";var i=e("../flowplayer"),r=e("../common"),a=e("bean");i(function(e,t){var o=e.conf;if(!1!==o.share&&o.facebook){e.facebook=function(){var e,t,n=screen.height,i=screen.width,r="string"==typeof o.facebook?o.facebook:window.location.toString();e=Math.round(i/2-275),t=0,420<n&&(t=Math.round(n/2-210)),window.open("https://www.facebook.com/sharer.php?s=100&p[url]="+encodeURIComponent(r),"sharer","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,left="+e+",top="+t)};var n=r.find(".fp-share-menu",t)[0],i=r.createElement("a",{class:"fp-icon fp-facebook"},"Facebook");r.append(n,i),a.on(t,"click",".fp-facebook",function(){e.facebook()})}})},{"../common":1,"../flowplayer":31,bean:34}],14:[function(e,t,n){"use strict";var s,i=e("../flowplayer"),r=e("bean"),l=e("../common"),c="fullscreen",u="fullscreen-exit",f=i.support.fullscreen;r.on(document,"fullscreenchange.ffscr webkitfullscreenchange.ffscr mozfullscreenchange.ffscr MSFullscreenChange.ffscr",function(e){var t=document.webkitCurrentFullScreenElement||document.mozFullScreenElement||document.fullscreenElement||document.msFullscreenElement;if(s||t.parentNode&&t.parentNode.getAttribute("data-flowplayer-instance-id")){var n=s||i(t.parentNode);s=t?n.trigger(c,[n]):(s.trigger(u,[s]),null)}}),i(function(t,n){var i=l.createElement("div",{className:"fp-player"});if(Array.prototype.map.call(n.children,l.identity).forEach(function(e){l.matches(e,".fp-ratio,script")||i.appendChild(e)}),n.appendChild(i),t.conf.fullscreen){var r,o,e,a=window;t.isFullscreen=!1,t.fullscreen=function(e){if(!t.disabled)return void 0===e&&(e=!t.isFullscreen),e&&(r=a.scrollY,o=a.scrollX),f?e?["requestFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].forEach(function(e){"function"==typeof i[e]&&(i[e](Element.ALLOW_KEYBOARD_INPUT),"webkitRequestFullScreen"!==e||document.webkitFullscreenElement||i[e]())}):["exitFullscreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].forEach(function(e){"function"==typeof document[e]&&document[e]()}):t.trigger(e?c:u,[t]),t},t.on("mousedown.fs",function(){new Date-e<150&&t.ready&&t.fullscreen(),e=+new Date}),t.on(c,function(){l.addClass(n,"is-fullscreen"),l.toggleClass(n,"fp-minimal-fullscreen",l.hasClass(n,"fp-minimal")),l.removeClass(n,"fp-minimal"),f||l.css(n,"position","fixed"),t.isFullscreen=!0}).on(u,function(){var e;l.toggleClass(n,"fp-minimal",l.hasClass(n,"fp-minimal-fullscreen")),l.removeClass(n,"fp-minimal-fullscreen"),f||"html5"!==t.engine||(e=n.css("opacity")||"",l.css(n,"opacity",0)),f||l.css(n,"position",""),l.removeClass(n,"is-fullscreen"),f||"html5"!==t.engine||setTimeout(function(){n.css("opacity",e)}),t.isFullscreen=!1,a.scrollTo(o,r)}).on("unload",function(){t.isFullscreen&&t.fullscreen()}),t.on("shutdown",function(){s=null,l.removeNode(i)})}})},{"../common":1,"../flowplayer":31,bean:34}],15:[function(e,t,n){"use strict";var l,c,i=e("../flowplayer"),r=e("bean"),u=e("../common");i(function(t,n){t.conf.keyboard&&(r.on(document,"keydown.fp",function(e){if(void 0!==l){var t=l,n=!!t&&c,i=t&&!t.disabled?t:0,r=e.ctrlKey||e.metaKey||e.altKey,o=e.which,a=i&&i.conf;if(!u.hasClass(n,"no-controlbar")&&!u.hasClass(n,"is-cva")&&i&&a.keyboard&&!i.disabled){if(-1!=[63,187,191].indexOf(o))return u.toggleClass(n,"is-help"),!1;if(27==o&&u.hasClass(n,"is-help"))return u.toggleClass(n,"is-help"),!1;if(!r&&i.ready){if(e.preventDefault(),e.shiftKey)return void(39==o?i.speed(!0):37==o?i.speed(!1):78==o?i.next():80==o&&i.prev());if(o<58&&47<o)return i.seekTo(o-48);switch(o){case 38:case 75:i.volume(i.volumeLevel+.15);break;case 40:case 74:i.volume(i.volumeLevel-.15);break;case 39:case 76:i.seeking=!0,i.seek(t.video.time+5);break;case 37:case 72:i.seeking=!0,i.seek(t.video.time-5);break;case 190:i.seekTo();break;case 32:i.toggle();break;case 70:a.fullscreen&&i.fullscreen();break;case 77:i.mute();break;case 81:i.unload();break;case 67:if(!t.video.subtitles||0==t.video.subtitles.length)break;var s=n.querySelector(".fp-dropdown li.active[data-subtitle-index]").dataset.subtitleIndex;void 0===s&&(s=-1),++s>t.video.subtitles.length-1&&(s=-1),t.trigger("subtitles-switched",[s])}}}}}),r.on(n,"mouseenter mouseleave",function(e){(l=t.disabled||"mouseover"!=e.type?0:t)&&(c=n)}))})},{"../common":1,"../flowplayer":31,bean:34}],16:[function(e,t,n){var i=e("../flowplayer"),l=e("../common"),c=e("bean");i(function(a,s){a.showMenu=function(e,t){var n=l.find(".fp-ui",s)[0];l.toggleClass(e,"fp-active",!0),setTimeout(function(){c.one(document,"click",function(){a.hideMenu(e)})});var i=t;if(t&&t.tagName&&(i={left:l.offset(t).left,rightFallbackOffset:l.width(t),top:l.offset(t).top+l.height(t)}),!i)return l.css(e,"top","auto");i.rightFallbackOffset=i.rightFallbackOffset||0;var r=i.top-l.offset(n).top,o=i.left-l.offset(n).left;l.width(e)+o>l.width(n)&&(o=o-l.width(e)+i.rightFallbackOffset),l.height(e)+r>l.height(n)&&(r-=l.height(e)),l.css(e,{top:r+"px",left:o+"px",right:"auto"})},a.hideMenu=function(e){l.toggleClass(e,"fp-active",!1),l.css(e,{top:"-9999em"})}})},{"../common":1,"../flowplayer":31,bean:34}],17:[function(e,t,n){var i=e("../flowplayer"),l=e("../common"),r=e("bean");i(function(e,t){var a=l.find(".fp-header",t)[0],s=l.find(".fp-ui",t)[0];e.message=function(e,t){function n(){l.toggleClass(o,"fp-shown"),setTimeout(function(){var e;e=o,l.removeNode(e)},500)}var i,r,o=(i=e,r=l.createElement("div",{className:"fp-message"},i),s.insertBefore(r,a),setTimeout(function(){l.toggleClass(r,"fp-shown")}),r);return t&&setTimeout(n,t),n},e.textarea=function(e){var t=document.createElement("textarea");t.value=e,t.className="fp-textarea",s.appendChild(t),r.on(document,"click.fptextarea",function(e){if(e.target===t)return t.select();e.stopPropagation(),e.preventDefault(),l.removeNode(t),r.off(document,"click.fptextarea")})}})},{"../common":1,"../flowplayer":31,bean:34}],18:[function(e,t,n){"use strict";var i=e("../flowplayer"),p=/IEMobile/.test(window.navigator.userAgent),h=e("../common"),g=e("bean"),m=e("./ui").format,v=i.support,y=window.navigator.userAgent;(v.touch||p)&&i(function(n,i){var e=v.android,t=e&&!e.firefox,r=/Silk/.test(y),o=e.version||0;if(t&&!p){if(!/Chrome/.test(y)&&o<4||e.samsung&&o<5){var a=n.load;n.load=function(){var e=a.apply(n,arguments);return h.find("video.fp-engine",i)[0].load(),n.trigger("ready",[n,n.video]),e}}var s,l=0,c=function(e){s=setInterval(function(){e.video.time=++l,e.trigger("progress",[e,l])},1e3)};n.on("ready pause unload",function(){s&&(clearInterval(s),s=null)}),n.on("ready",function(){l=0}),n.on("resume",function(e,t){if(t.live)return l?c(t):void n.one("progress",function(e,t,n){0===n&&c(t)})})}v.volume||(h.removeClass(i,"fp-mute"),h.addClass(i,"no-volume")),v.iOS&&h.addClass(i,"fp-mute"),h.addClass(i,"is-touch"),n.sliders&&n.sliders.timeline&&n.sliders.timeline.disableAnimation();var u=!1;g.on(i,"touchmove",function(){u=!0});var f=!0;if(g.on(i,"touchend click",function(e){if(u)u=!1;else{var t=h.find("video.fp-engine",i)[0];if(f&&n.conf.clickToUnMute&&t&&t.muted&&n.conf.autoplay&&(t.muted=!1),f=!1,n.playing&&!h.hasClass(i,"is-mouseover"))return h.addClass(i,"is-mouseover"),h.removeClass(i,"is-mouseout"),e.preventDefault(),void e.stopPropagation();n.playing||n.splash||!h.hasClass(i,"is-mouseout")||h.hasClass(i,"is-mouseover")||setTimeout(function(){n.disabled||n.playing||n.splash||h.find("video.fp-engine",i)[0].play()},400)}}),!v.fullscreen&&n.conf.native_fullscreen&&"function"==typeof h.createElement("video").webkitEnterFullScreen){var d=n.fullscreen;n.fullscreen=function(){var e=h.find("video.fp-engine",i)[0];if(!e)return d.apply(n);n.trigger("fullscreen",[n]),g.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement===e&&(g.off(document,".nativefullscreen"),g.on(document,"webkitfullscreenchange.nativefullscreen",function(){document.webkitFullscreenElement||(g.off(document,".nativefullscreen"),n.trigger("fullscreen-exit",[n]))}))}),e.webkitEnterFullScreen(),g.one(e,"webkitendfullscreen",function(){g.off(document,"fullscreenchange.nativefullscreen"),n.trigger("fullscreen-exit",[n]),h.prop(e,"controls",!0),h.prop(e,"controls",!1)})}}(t||r)&&n.bind("ready",function(){var t=h.find("video.fp-engine",i)[0];n.conf.splash&&t.paused&&"hlsjs-lite"!==n.engine.engineName&&(g.one(t,"canplay",function(){t.play()}),t.load()),n.bind("progress.dur",function(){if(!n.live&&!n.conf.live){var e=t.duration;1!==e&&(n.video.duration=e,h.find(".fp-duration",i)[0].innerHTML=m(e),n.unbind("progress.dur"))}})})})},{"../common":1,"../flowplayer":31,"./ui":27,bean:34}],19:[function(e,t,n){"use strict";var i=e("../flowplayer"),o=e("extend-object"),a=e("bean"),g=e("../common"),s=e("./resolve"),l=new s,m=window.jQuery,v=/^#/;i(function(c,u){var f=o({active:"is-active",advance:!0,query:".fp-playlist a"},c.conf),d=f.active,t=g.find(".fp-ui",u)[0],e=g.hasClass(u,"fp-custom-playlist")||!!f.customPlaylist;function n(){return g.find(f.query,p())}function p(){if(!v.test(f.query))return u}function h(){return g.find(f.query+"."+d,p())}function i(){var i=g.find(".fp-playlist",u)[0];if(!i){i=g.createElement("div",{className:"fp-playlist"});var e=g.find(".fp-next,.fp-prev",u);e.length?e[0].parentElement.insertBefore(i,e[0]):g.insertAfter(u,g.find("video",u)[0],i)}i.innerHTML="",c.conf.playlist[0].length&&(c.conf.playlist=c.conf.playlist.map(function(e){if("string"!=typeof e)return{sources:e.map(function(t){var n={};return Object.keys(t).forEach(function(e){n.type=/mpegurl/i.test(e)?"application/x-mpegurl":"video/"+e,n.src=t[e]}),n})};var t=e.split(s.TYPE_RE)[1];return{sources:[{type:"m3u8"===t.toLowerCase()?"application/x-mpegurl":"video/"+t,src:e}]}})),c.conf.playlist.forEach(function(e,t){var n=e.sources[0].src;i.appendChild(g.createElement("a",{href:n,className:c.video.index===t?d:void 0,"data-index":t}))})}g.toggleClass(u,"fp-custom-playlist",e),g.toggleClass(u,"fp-default-playlist",!e),c.play=function(e){if(void 0===e)return c.resume();if("number"==typeof e&&!c.conf.playlist[e])return c;if("number"!=typeof e)return c.load.apply(null,arguments);var t=o({index:e},c.conf.playlist[e]);return c.off("beforeresume.fromfirst"),"number"==typeof e&&e===c.video.index?c.seek(0,function(){c.resume()}):(c.load(t,function(){c.video.index=e}),c)},c.next=function(e){e&&e.preventDefault();var t=c.video.index;return-1!=t&&(t=t===c.conf.playlist.length-1?0:t+1,c.play(t)),c},c.prev=function(e){e&&e.preventDefault();var t=c.video.index;return-1!=t&&(t=0===t?c.conf.playlist.length-1:t-1,c.play(t)),c},c.setPlaylist=function(e,t){return c.conf.playlist=e,t||delete c.video.index,i(),c},c.addPlaylistItem=function(e){return delete c.video.is_last,c.setPlaylist(c.conf.playlist.concat([e]),!0)},c.removePlaylistItem=function(e){var t=c.conf.playlist;return c.setPlaylist(t.slice(0,e).concat(t.slice(e+1)))},a.on(u,"click",".fp-next",c.next),a.on(u,"click",".fp-prev",c.prev),c.off("finish.pl").on("finish.pl",function(e,t){if(void 0===t.conf.advance||t.conf.advance){if(t.video.loop)return t.seek(0,function(){t.resume()});var n=0<=t.video.index?t.video.index+1:void 0;n<t.conf.playlist.length||f.loop?(n=n===t.conf.playlist.length?0:n,g.removeClass(u,"is-finished"),setTimeout(function(){t.play(n)})):1<t.conf.playlist.length&&(t.one("beforeresume.fromfirst",function(e){e.preventDefault(),t.play(0)}),t.one("seek",function(){t.off("beforeresume.fromfirst")}))}});var r=!1;c.conf.playlist.length&&(r=!0,i(),c.conf.clip&&c.conf.clip.sources.length||(c.conf.clip=c.conf.playlist[c.conf.startIndex||0])),n().length&&!r&&(c.conf.playlist=[],delete c.conf.startIndex,n().forEach(function(e){var t=e.href;e.setAttribute("data-index",c.conf.playlist.length);var n=l.resolve(t,c.conf.clip.sources);m&&o(n,m(e).data()),c.conf.playlist.push(n)})),g.find(".fp-prev,.fp-next,.fp-playlist",u).forEach(function(e){t.appendChild(e)}),a.on(v.test(f.query)?document:u,"click",f.query,function(e){e.preventDefault();var t=e.currentTarget,n=Number(t.getAttribute("data-index"));-1!=n&&c.play(n)}),c.on("load",function(e,t,n){if(c.conf.playlist.length){var i,r=h()[0],o=r&&r.getAttribute("data-index"),a=n.index=void 0!==(i=n).index?i.index:void 0!==c.video.index?c.video.index:c.conf.startIndex||0,s=g.find(f.query+'[data-index="'+a+'"]',p())[0],l=a==c.conf.playlist.length-1;r&&g.removeClass(r,d),s&&g.addClass(s,d),g.removeClass(u,"video"+o),g.addClass(u,"video"+a),g.toggleClass(u,"last-video",l),n.index=t.video.index=a,n.is_last=t.video.is_last=l}}).on("unload.pl",function(){c.conf.playlist.length&&(h().forEach(function(e){g.toggleClass(e,d)}),c.conf.playlist.forEach(function(e,t){g.removeClass(u,"video"+t)}),delete c.video.index)}),c.conf.playlist.length&&(c.conf.loop=!1)})},{"../common":1,"../flowplayer":31,"./resolve":21,bean:34,"extend-object":39}],20:[function(e,t,n){var i=e("../flowplayer"),s=e("../common"),l=e("bean");i(function(n,i){var r=s.find(".fp-ui",i)[0],o=s.find(".fp-controls",r)[0];function a(t){s.find(".fp-qsel-menu a",i).forEach(function(e){s.toggleClass(e,"fp-selected",e.getAttribute("data-quality")==t),s.toggleClass(e,"fp-color",e.getAttribute("data-quality")==t)})}l.on(i,"click",".fp-qsel",function(){var e=s.find(".fp-qsel-menu",i)[0];s.hasClass(e,"fp-active")?n.hideMenu():n.showMenu(e)}),l.on(i,"click",".fp-qsel-menu a",function(e){var t=e.target.getAttribute("data-quality");n.quality(t)}),n.quality=function(e){e=isNaN(Number(e))?e:Number(e),n.trigger("quality",[n,e])},n.on("quality",function(e,t,n){a(n,t.video.qualities)}),n.on("ready",function(e,t,n){s.find(".fp-qsel-menu",i).forEach(s.removeNode),s.find(".fp-qsel",i).forEach(s.removeNode),!n.qualities||n.qualities.filter(function(e){return void 0===e.value||-1<e.value}).length<2||(function(e){o.appendChild(s.createElement("strong",{className:"fp-qsel"},"HD"));var i=s.createElement("div",{className:"fp-menu fp-qsel-menu"},"<strong>Quality</strong>");e.forEach(function(e){var t=document.createElement("a"),n=void 0!==e.value?e.value:e;t.setAttribute("data-quality",n),t.innerHTML=e.label||e,i.appendChild(t)}),r.appendChild(i)}(n.qualities,n.quality),a(n.quality,n.qualities))})})},{"../common":1,"../flowplayer":31,bean:34}],21:[function(e,t,n){"use strict";var r=/\.(\w{3,4})(\?.*)?$/i,o=e("extend-object");function i(e){var t=e.attr("src"),n=e.attr("type")||"",i=t.split(r)[1];return n=n.toLowerCase(),o(e.data(),{src:t,suffix:i||n,type:n||i})}t.exports=function(){this.sourcesFromVideoTag=function(e,t){var n=[];return t("source",e).each(function(){n.push(i(t(this)))}),!n.length&&e.length&&n.push(i(e)),n},this.resolve=function(n,e){return n?("string"==typeof n&&((n={src:n,sources:[]}).sources=(e||[]).map(function(e){var t=e.src.split(r)[1];return{type:e.type,src:n.src.replace(r,"."+t+"$2")}})),n instanceof Array&&(n={sources:n.map(function(i){return i.type&&i.src?i:Object.keys(i).reduce(function(e,t){return o(e,{type:/mpegurl/i.test(n=t)?"application/x-mpegurl":"video/"+n,src:i[t]});var n},{})})}),n):{sources:e}}},t.exports.TYPE_RE=r},{"extend-object":39}],22:[function(e,t,n){"use strict";var i=e("../flowplayer"),o=e("../common"),a=e("extend-object"),s=e("bean");i(function(t,e){var n=t.conf;if(!1!==n.share){t.shareUrl=function(e){return e&&n.embed&&n.embed.iframe?n.embed.iframe:"string"==typeof t.conf.share?t.conf.share:(e?"https://flowplayer.com/e/":"https://flowplayer.com/s/")+"?t="+encodeURIComponent(t.video.title||(o.find("title")[0]||{}).innerHTML||"Flowplayer video")+"&c="+encodeURIComponent(btoa(JSON.stringify(a({},t.conf,t.extensions)).replace(/[\u007F-\uFFFF]/g,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).substr(-4)})))+"&r="+encodeURIComponent(window.location.toString())};var i=o.createElement("div",{className:"fp-menu fp-share-menu"},"<strong>Share</strong>");o.find(".fp-ui",e)[0].appendChild(i);var r=o.find(".fp-share",e)[0];s.on(e,"click",".fp-share",function(e){e.preventDefault(),o.hasClass(i,"fp-active")?t.hideMenu():t.showMenu(i,r)})}else o.find(".fp-share",e).forEach(o.removeNode)})},{"../common":1,"../flowplayer":31,bean:34,"extend-object":39}],23:[function(e,t,n){"use strict";var d=e("../flowplayer"),p=e("../common"),h=e("bean"),i=e("./subtitles/parser");d.defaults.subtitleParser=i,d(function(r,o){var a,s,n,l,i,c=!1;function e(e,i,r){c&&(i.cuepoints||[]).forEach(function(e,t){var n=e.subtitle;n&&a!=t&&r>=e.time&&(!n.endTime||r<=n.endTime)&&i.trigger("cuepoint",[i,e])})}d.support.inlineVideo&&(d.support.fullscreen||!r.conf.native_fullscreen)||(r.conf.nativesubtitles=!0),r.ui||(r.ui={}),r.ui.createSubtitleControl=function(e,t){return i=t,n=n||p.createElement("strong",{className:"fp-cc"},"CC"),l=l||p.createElement("div",{className:"fp-menu fp-subtitle-menu"},"<strong>Closed Captions</strong>"),p.find("a",l).forEach(p.removeNode),l.appendChild(p.createElement("a",{"data-subtitle-index":-1},"No subtitles")),(e||[]).forEach(function(e,t){var n=e.srclang||"en",i=e.label||"Default ("+n+")",r=p.createElement("a",{"data-subtitle-index":t},i);l.appendChild(r)}),p.find(".fp-ui",o)[0].appendChild(l),p.find(".fp-controls",o)[0].appendChild(n),p.toggleClass(n,"fp-hidden",!e||!e.length),n},r.ui.setActiveSubtitleItem=function(e){f(e)},h.on(o,"click",".fp-cc",function(){p.hasClass(l,"fp-active")?r.hideMenu():r.showMenu(l)}),h.on(o,"click",".fp-subtitle-menu [data-subtitle-index]",function(e){e.preventDefault();var t=e.target.getAttribute("data-subtitle-index");return i?i(t):"-1"===t?r.disableSubtitles():void r.loadSubtitles(t)});r.on("ready",function(e,t,n){if(t.subtitles=[],s=(s=p.find(".fp-captions",o)[0])||p.appendTo(p.createElement("div",{class:"fp-captions"}),p.find(".fp-player",o)[0]),Array.prototype.forEach.call(s.children,p.removeNode),r.ui.createSubtitleControl(r.video.subtitles),p.removeClass(o,"has-menu"),r.disableSubtitles(),n.subtitles&&n.subtitles.length){var i=n.subtitles.filter(function(e){return e.default})[0];i&&t.loadSubtitles(n.subtitles.indexOf(i))}}),r.showSubtitle=function(e){p.html(s,e),p.addClass(s,"fp-shown")},r.hideSubtitle=function(){p.removeClass(s,"fp-shown")},r.bind("cuepoint",function(e,t,n){c=!1,n.subtitle?(a=n.index,r.showSubtitle(n.subtitle.text)):n.subtitleEnd&&(r.hideSubtitle(),a=n.index)}),r.bind("seek",function(e,t,i){a&&r.cuepoints[a]&&r.cuepoints[a].time>i&&(p.removeClass(s,"fp-shown"),a=null),(r.cuepoints||[]).forEach(function(e,t){var n=e.subtitle;n&&a!=t?i>=e.time&&(!n.endTime||i<=n.endTime)&&r.trigger("cuepoint",[r,e]):e.subtitleEnd&&i>=e.time&&t==a+1&&r.trigger("cuepoint",[r,e])})}),r.on("unload",function(){p.find(".fp-captions",o).forEach(p.removeNode)});function u(e,t){var n=p.find("video.fp-engine",o)[0].textTracks;n.length&&(null===e?[].forEach.call(n,function(e){e.mode=t}):n[e].mode=t)}var f=function(e){p.toggleClass(p.find("a.fp-selected",l)[0],"fp-selected"),p.toggleClass(p.find('a[data-subtitle-index="'+e+'"]',l)[0],"fp-selected")};r.disableSubtitles=function(){return r.subtitles=[],(r.cuepoints||[]).forEach(function(e){(e.subtitle||e.subtitleEnd)&&r.removeCuepoint(e)}),s&&Array.prototype.forEach.call(s.children,p.removeNode),f(-1),d.support.subtitles&&r.conf.nativesubtitles&&"html5"==r.engine.engineName&&u(null,"disabled"),r},r.loadSubtitles=function(e){r.disableSubtitles();var t=r.video.subtitles[e].src;if(t){if(f(e),!d.support.subtitles||!r.conf.nativesubtitles||"html5"!=r.engine.engineName)return p.xhrGet(t,function(e){r.conf.subtitleParser(e).forEach(function(e,t){e.title||(e.title="subtitle"+t);var n={time:e.startTime,subtitle:e,visible:!1};r.subtitles.push(e),r.addCuepoint(n),r.addCuepoint({time:e.endTime,subtitleEnd:e.title,visible:!1}),0!==e.startTime||r.video.time||r.splash||r.trigger("cuepoint",[r,d.extend({},n,{index:0})]),r.splash&&r.one("ready",function(){r.trigger("cuepoint",[r,n])})})},function(){return r.trigger("error-subtitles",[r,{code:8,url:t}]),!1}),r;u(e,"showing")}},h.on(o,"click",".fp-subtitle-menu a[data-subtitle-index]",function(){-1<this.dataset.subtitleIndex&&(c=!0,r.on("progress",e))})})},{"../common":1,"../flowplayer":31,"./subtitles/parser":24,bean:34}],24:[function(e,t,n){t.exports=function(e){var t=/^(([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3}) --\> (([0-9]+:){1,2}[0-9]{2}[,.][0-9]{3})(.*)/;function n(e){var t=e.split(":");return 2==t.length&&t.unshift(0),60*t[0]*60+60*t[1]+parseFloat(t[2].replace(",","."))}for(var i,r,o,a=[],s=0,l=e.split("\n"),c=l.length,u={};s<c;s++)if(r=t.exec(l[s])){for(i=l[s-1],o="<p>"+l[++s]+"</p><br/>";"string"==typeof l[++s]&&l[s].trim()&&s<l.length;)o+="<p>"+l[s]+"</p><br/>";u={title:i,startTime:n(r[1]),endTime:n(r[3]),text:o},a.push(u)}return a}},{}],25:[function(e,t,n){"use strict";var S=e("../flowplayer"),E=e("extend-object");!function(){var e={},t=document.documentElement.style,n=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(n)||/(safari)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];i[1]&&(e[i[1]]=!0,e.version=i[2]||"0"),e.safari&&(e.version=(/version\/([\w.]+)/.exec(n)||[])[1]);var r,o,a=((o=document.createElement("video")).loop=!0,o.autoplay=!0,o.preload=!0,o),s=navigator.userAgent,l=e.msie||/Trident\/7/.test(s),c=/iPad|MeeGo/.test(s)&&!/CriOS/.test(s),u=/iPad/.test(s)&&/CriOS/.test(s),f=/iP(hone|od)/i.test(s)&&!/iPad/.test(s)&&!/IEMobile/i.test(s),d=/Android/.test(s),p=d&&/Firefox/.test(s),h=d&&/SAMSUNG/.test(s),g=/Silk/.test(s),m=/IEMobile/.test(s),v=m?parseFloat(/Windows\ Phone\ (\d+\.\d+)/.exec(s)[1],10):0,y=m?parseFloat(/IEMobile\/(\d+\.\d+)/.exec(s)[1],10):0,w=c||f?(r=/iP(ad|hone)(; CPU)? OS (\d+_\d)/.exec(s))&&1<r.length?parseFloat(r[r.length-1].replace("_","."),10):0:0,b=d?parseFloat(/Android\ (\d+(\.\d+)?)/.exec(s)[1],10):0,I=(f||c||u)&&{iPhone:f,iPad:c||u,version:w,chrome:u},M=E(S.support,{browser:e,iOS:I,android:!!d&&{firefox:p,opera:/Opera/.test(s),samsung:h,version:b},subtitles:!!a.addTextTrack,fullscreen:"boolean"==typeof document.webkitFullscreenEnabled?document.webkitFullscreenEnabled:"function"==typeof document.webkitCancelFullScreen&&!/Mac OS X 10_5.+Version\/5\.0\.\d Safari/.test(s)||document.mozFullScreenEnabled||"function"==typeof document.exitFullscreen||"function"==typeof document.msExitFullscreen,inlineBlock:!(l&&e.version<8),touch:"ontouchstart"in window,dataload:!c&&!f&&!m,flex:"flexWrap"in t||"WebkitFlexWrap"in t||"msFlexWrap"in t,svg:!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,zeropreload:!l&&!d,volume:!(c||f||g||u),cachedVideoTag:!(c||f||u||m),firstframe:!(g||m||p||h||w&&w<10||d&&b<4.4),inlineVideo:(!f||10<=w)&&(!m||8.1<=v&&11<=y)&&(!d||3<=b),hlsDuration:!d&&(!e.safari||c||f||u),seekable:!c&&!u,preloadMetadata:!I&&!e.safari});M.autoplay=M.firstframe,m&&(M.browser.safari=!1);try{var C=navigator.plugins["Shockwave Flash"],A=l?new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version"):C.description;l||C[0].enabledPlugin?((A=A.split(/\D+/)).length&&!A[0]&&(A=A.slice(1)),M.flashVideo=9<A[0]||9==A[0]&&115<=A[3]):M.flashVideo=!1}catch(e){}try{M.video=!!a.canPlayType,M.video&&a.canPlayType("video/mp4")}catch(e){M.video=!1}M.animation=function(){for(var e=["","Webkit","Moz","O","ms","Khtml"],t=document.createElement("p"),n=0;n<e.length;n++)if(void 0!==t.style[e[n]+"AnimationName"])return!0}()}()},{"../flowplayer":31,"extend-object":39}],26:[function(e,t,n){"use strict";var i=e("../flowplayer"),r=e("../common"),s=e("bean");i(function(o,e){var a=o.conf;if(!1!==a.share&&!1!==a.twitter){o.tweet=function(){var e,t,n=screen.height,i=screen.width,r="string"==typeof a.twitter?a.twitter:o.shareUrl();e=Math.round(i/2-275),t=0,420<n&&(t=Math.round(n/2-210)),window.open("https://twitter.com/intent/tweet?url="+encodeURIComponent(r),"intent","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,left="+e+",top="+t)};var t=r.find(".fp-share-menu",e)[0],n=r.createElement("a",{class:"fp-icon fp-twitter"},"Twitter");r.append(t,n),s.on(e,"click",".fp-twitter",function(){o.tweet()})}})},{"../common":1,"../flowplayer":31,bean:34}],27:[function(e,t,n){(function(L){"use strict";var T=e("../flowplayer"),Z=e("../common"),P=e("bean"),k=e("./ui/slider"),Y=e("./ui/bar-slider");function r(e){return 10<=(e=parseInt(e,10))?e:"0"+e}function z(e,t){e=Math.max(e||0,0),e=t?Math.ceil(e):Math.floor(e);var n=Math.floor(e/3600),i=Math.floor(e/60);return e-=60*i,1<=n?n+":"+r(i-=60*n)+":"+r(e):r(i)+":"+r(e)}var G=L("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLW91dGxpbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDk5Ljg0NCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz4KPHRpdGxlPnBsYXktcm91bmRlZC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNNDEuMDM1OSw3MS4xOWE1LjA0OTIsNS4wNDkyLDAsMCwxLTIuNTU3NS0uNjY3M2MtMS44MDMxLTEuMDQxLTIuNzk1OC0zLjEyNDgtMi43OTU4LTUuODY2NFYzNS4xODg3YzAtMi43NDI5Ljk5MzMtNC44MjcyLDIuNzk3LTUuODY3NiwxLjgwMjUtMS4wNDIyLDQuMTAzNC0uODYsNi40OC41MTQzTDcwLjQ3ODIsNDQuNTY3MmMyLjM3NTEsMS4zNzExLDMuNjgyNiwzLjI3MjUsMy42ODMyLDUuMzU0NXMtMS4zMDc2LDMuOTg0NS0zLjY4MzIsNS4zNTYyTDQ0Ljk1OTIsNzAuMDExNEE3LjkzODQsNy45Mzg0LDAsMCwxLDQxLjAzNTksNzEuMTlabS4wMDY1LTQwLjEyM2EyLjY3OTQsMi42Nzk0LDAsMCwwLTEuMzU4Mi4zNDEzYy0xLjAyNjMuNTkyNi0xLjU5MTIsMS45MzQ5LTEuNTkxMiwzLjc4VjY0LjY1NjNjMCwxLjg0NDkuNTY0OSwzLjE4NjYsMS41OTA2LDMuNzc5MSwxLjAyODEuNTkzMiwyLjQ3MzMuNDEwOCw0LjA3LS41MTJMNjkuMjczLDUzLjE5MDZjMS41OTgzLS45MjI3LDIuNDc4LTIuMDgzOCwyLjQ3OC0zLjI2ODlzLS44OC0yLjM0NDUtMi40NzgtMy4yNjY2TDQzLjc1NCwzMS45MjI3QTUuNTY4NSw1LjU2ODUsMCwwLDAsNDEuMDQyMywzMS4wNjcxWiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),O=L("PHN2ZyBjbGFzcz0iZnAtcGxheS1yb3VuZGVkLWZpbGwiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiPgogIDxkZWZzPjxzdHlsZT4uYXtmaWxsOiMwMDA7b3BhY2l0eTowLjY1O30uYntmaWxsOiNmZmY7b3BhY2l0eToxLjA7fTwvc3R5bGU+CiAgPC9kZWZzPjx0aXRsZT5wbGF5LXJvdW5kZWQtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cGF0aCBjbGFzcz0iYiIgZD0iTTM1Ljk0MiwzNS4yMzIzYzAtNC43Mjg5LDMuMzUwNi02LjY2MzcsNy40NDYtNC4yOTcxTDY4LjgzLDQ1LjYyMzVjNC4wOTU2LDIuMzY0LDQuMDk1Niw2LjIzMTksMCw4LjU5NzdMNDMuMzg4LDY4LjkxYy00LjA5NTQsMi4zNjQtNy40NDYuNDMtNy40NDYtNC4yOTc5WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPgogIDwvc3ZnPgogIAo=","base64"),R=L("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj4KICA8ZGVmcz4KICAgIDxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5jb250cm9sYnV0dG9ue2ZpbGw6I2ZmZjt9PC9zdHlsZT4KICA8L2RlZnM+CiAgPHRpdGxlPnBsYXktc2hhcnAtZmlsbDwvdGl0bGU+CiAgPHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjE3LS4wNzhhNTAsNTAsMCwxLDAsNTAsNTBBNTAuMDU2NCw1MC4wNTY0LDAsMCwwLDQ5LjkyMTctLjA3OFoiLz4KICA8cG9seWdvbiBjbGFzcz0iY29udHJvbGJ1dHRvbiIgcG9pbnRzPSI3My42MDEgNTAgMzcuOTY4IDcwLjU3MyAzNy45NjggMjkuNDI3IDczLjYwMSA1MCIgZmlsdGVyPSJ1cmwoI2YxKSIvPgo8L3N2Zz4K","base64"),W=L("PHN2ZyBjbGFzcz0iZnAtcGxheS1zaGFycC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDQgOTkuODQzNCI+PGRlZnM+PHN0eWxlPi5jb250cm9sYnV0dG9uYmd7b3BhY2l0eTowLjY1O30uY29udHJvbGJ1dHRvbntmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGxheS1zaGFycC1vdXRsaW5lPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxwYXRoIGNsYXNzPSJjb250cm9sYnV0dG9uIiBkPSJNMzYuOTQ0Myw3Mi4yNDczVjI3LjI5MTZMNzUuODc3Niw0OS43N1ptMi4yLTQxLjE0NTVWNjguNDM3MUw3MS40Nzc2LDQ5Ljc3WiIgZmlsdGVyPSJ1cmwoI2YxKSIvPjwvc3ZnPgo=","base64"),U=L("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1vdXRsaW5lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5OS44NDM0IDk5Ljg0MzQiPjxkZWZzPjxzdHlsZT4uZnAtY29sb3ItcGxheXtvcGFjaXR5OjAuNjU7fS5yZWN0e2ZpbGw6I2ZmZjt9PC9zdHlsZT4KPC9kZWZzPjx0aXRsZT5wYXVzZS1yb3VuZGVkLW91dGxpbmU8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxMi0uMDc4M2E1MCw1MCwwLDEsMCw1MC4wMDA2LDUwQTUwLjA1NjIsNTAuMDU2MiwwLDAsMCw0OS45MjEyLS4wNzgzWiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIj48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTM5LjAwMzYsNzEuOTcyNmE3LjU2NSw3LjU2NSwwLDAsMS03LjU1Ny03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NDgsNy41NjQ4LDAsMCwxLDM5LjAwMzYsNzEuOTcyNlptMC00MS45MDRhNS4zNjQ3LDUuMzY0NywwLDAsMC01LjM1OTMsNS4zNTgydjI4Ljk5YTUuMzU4Nyw1LjM1ODcsMCwwLDAsMTAuNzE3NCwwdi0yOC45OUE1LjM2NDUsNS4zNjQ1LDAsMCwwLDM5LjAwMzYsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48cGF0aCBjbGFzcz0icmVjdCIgZD0iTTYwLjg0LDcxLjk3MjZhNy41NjQ4LDcuNTY0OCwwLDAsMS03LjU1Ni03LjU1NnYtMjguOTlhNy41NTY1LDcuNTU2NSwwLDAsMSwxNS4xMTMsMHYyOC45OUE3LjU2NSw3LjU2NSwwLDAsMSw2MC44NCw3MS45NzI2Wm0wLTQxLjkwNGE1LjM2NDUsNS4zNjQ1LDAsMCwwLTUuMzU4Miw1LjM1ODJ2MjguOTlhNS4zNTg3LDUuMzU4NywwLDAsMCwxMC43MTc0LDB2LTI4Ljk5QTUuMzY0Nyw1LjM2NDcsMCwwLDAsNjAuODQsMzAuMDY4NloiIGZpbHRlcj0idXJsKCNmMSkiLz48L2c+PC9zdmc+Cg==","base64"),J=L("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utcm91bmRlZC1maWxsIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utcm91bmRlZC1maWxsPC90aXRsZT48cGF0aCBjbGFzcz0iZnAtY29sb3ItcGxheSIgZD0iTTQ5LjkyMTctLjA3OGE1MCw1MCwwLDEsMCw1MCw1MEE1MC4wNTY0LDUwLjA1NjQsMCwwLDAsNDkuOTIxNy0uMDc4WiIvPjxnIGNsYXNzPSJjb250cm9sYnV0dG9uIiBmaWx0ZXI9InVybCgjZjEpIj48cmVjdCBjbGFzcz0icmVjdCIgeD0iMzEuODQ0IiB5PSIyOC4xMjMxIiB3aWR0aD0iMTMuNDM2MiIgaGVpZ2h0PSI0My41OTczIiByeD0iNi43MTgxIiByeT0iNi43MTgxIi8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjU2MzgiIHk9IjI4LjEyMzEiIHdpZHRoPSIxMy40MzYyIiBoZWlnaHQ9IjQzLjU5NzMiIHJ4PSI2LjcxODEiIHJ5PSI2LjcxODEiLz48L2c+PC9zdmc+Cg==","base64"),B=L("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtZmlsbCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PGRlZnM+PHN0eWxlPi5mcC1jb2xvci1wbGF5e29wYWNpdHk6MC42NTt9LnJlY3R7ZmlsbDojZmZmO308L3N0eWxlPgo8L2RlZnM+PHRpdGxlPnBhdXNlLXNoYXJwLWZpbGw8L3RpdGxlPjxwYXRoIGNsYXNzPSJmcC1jb2xvci1wbGF5IiBkPSJNNDkuOTIxNy0uMDc4YTUwLDUwLDAsMSwwLDUwLDUwQTUwLjA1NjQsNTAuMDU2NCwwLDAsMCw0OS45MjE3LS4wNzhaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxyZWN0IGNsYXNzPSJyZWN0IiB4PSIzMy41IiB5PSIzMC4xMDQyIiB3aWR0aD0iMTIuMjYzNCIgaGVpZ2h0PSIzOS43OTE3Ii8+PHJlY3QgY2xhc3M9InJlY3QiIHg9IjU0LjIzNjYiIHk9IjMwLjEwNDIiIHdpZHRoPSIxMi4yNjM0IiBoZWlnaHQ9IjM5Ljc5MTciLz48L2c+PC9zdmc+Cg==","base64"),H=L("PHN2ZyBjbGFzcz0iZnAtcGF1c2Utc2hhcnAtb3V0bGluZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgOTkuODQzNCA5OS44NDM0Ij48ZGVmcz48c3R5bGU+LmZwLWNvbG9yLXBsYXl7b3BhY2l0eTowLjY1O30ucmVjdHtmaWxsOiNmZmY7fTwvc3R5bGU+CjwvZGVmcz48dGl0bGU+cGF1c2Utc2hhcnAtb3V0bGluZTwvdGl0bGU+PHBhdGggY2xhc3M9ImZwLWNvbG9yLXBsYXkiIGQ9Ik00OS45MjEyLS4wNzgzYTUwLDUwLDAsMSwwLDUwLjAwMDYsNTBBNTAuMDU2Miw1MC4wNTYyLDAsMCwwLDQ5LjkyMTItLjA3ODNaIi8+PGcgY2xhc3M9ImNvbnRyb2xidXR0b24iIGZpbHRlcj0idXJsKCNmMSkiPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNDYuODcwOSw2OS45NTMxSDMzLjEzODVWMjkuODlINDYuODcwOVpNMzUuMTQxNiw2Ny45NWg5LjcyNjJWMzEuODkzNUgzNS4xNDE2WiIvPjxwYXRoIGNsYXNzPSJyZWN0IiBkPSJNNjYuNzA0Nyw2OS45NTMxSDUyLjk3MjJWMjkuODlINjYuNzA0N1pNNTQuOTc1NCw2Ny45NWg5LjcyNjJWMzEuODkzNUg1NC45NzU0WiIvPjwvZz48L3N2Zz4K","base64"),F=L("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLW91dGxpbmUiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDUwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgo8L3N2Zz4K","base64"),V=L("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1yb3VuZGVkLWZpbGwiIHdpZHRoPScxMTJweCcgaGVpZ2h0PScxMTJweCcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ieE1pZFlNaWQiPgogICAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9Ijc2IiBoZWlnaHQ9Ijc2IiBmaWxsPSJyZ2JhKDAsMCwwLDApIiBjbGFzcz0iYmsiPjwvcmVjdD4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgMjUpIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC4wcyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iMCIgcj0iMTAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuNHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICAgIDwvY2lyY2xlPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjEwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCA1MCkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgICA8L2NpcmNsZT4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjUgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMS4ycyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogICAgPC9jaXJjbGU+Cjwvc3ZnPgo=","base64"),X=L("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1maWxsIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDI1KSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjBzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjBzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItMTAiIHk9Ii0xMCIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MCAyNSkiIGZpbGw9InJnYmEoMCwwLDAsLjUpIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iZmlsbCIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC40cyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTEwIiB5PSItMTAiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJyZ2JhKDAsMCwwLC41KSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImZpbGwiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuOHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii0xMCIgeT0iLTEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDI1IDUwKSIgZmlsbD0icmdiYSgwLDAsMCwuNSkiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIxLjJzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIxLjJzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KPC9zdmc+Cg==","base64"),_=L("PHN2ZyBjbGFzcz0iZnAtbG9hZGluZy1zaGFycC1vdXRsaW5lIiB3aWR0aD0nMTEycHgnIGhlaWdodD0nMTEycHgnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHByZXNlcnZlQXNwZWN0UmF0aW89InhNaWRZTWlkIj4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNzYiIGhlaWdodD0iNzYiIGZpbGw9InJnYmEoMCwwLDAsMCkiIGNsYXNzPSJiayI+PC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSAyNSkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjAuMHMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMC4wcyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+CiAgPHJlY3QgeD0iLTkiIHk9Ii05IiB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwIDI1KSIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJyZ2JhKDAsMCwwLC41KSIgc3Ryb2tlLXdpZHRoPSIzJSIgY2xhc3M9InNxIj4KICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZSIgZnJvbT0icmdiYSgwLDAsMCwwKSIgdG89InJnYmEoMCwwLDAsLjUpIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgZHVyPSIxLjZzIiBiZWdpbj0iMC40cyIgdmFsdWVzPSJyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwuNSkiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZT4KICAgICAgPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJzY2FsZSIgYWRkaXRpdmU9InN1bSIgZnJvbT0iMC44IiB0bz0iMSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGJlZ2luPSIwLjRzIiBkdXI9IjEuNnMiIHZhbHVlcz0iMTswLjg7MC44OzE7MSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlVHJhbnNmb3JtPgogIDwvcmVjdD4KICA8cmVjdCB4PSItOSIgeT0iLTkiIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNTAgNTApIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMCwwLDAsLjUpIiBzdHJva2Utd2lkdGg9IjMlIiBjbGFzcz0ic3EiPgogICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0ic3Ryb2tlIiBmcm9tPSJyZ2JhKDAsMCwwLDApIiB0bz0icmdiYSgwLDAsMCwuNSkiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBkdXI9IjEuNnMiIGJlZ2luPSIwLjhzIiB2YWx1ZXM9InJnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsMCk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLC41KTtyZ2JhKDAsMCwwLC41KSIga2V5VGltZXM9IjA7MC4xOzAuMjswLjQ7MSI+PC9hbmltYXRlPgogICAgICA8YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InNjYWxlIiBhZGRpdGl2ZT0ic3VtIiBmcm9tPSIwLjgiIHRvPSIxIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgYmVnaW49IjAuOHMiIGR1cj0iMS42cyIgdmFsdWVzPSIxOzAuODswLjg7MTsxIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGVUcmFuc2Zvcm0+CiAgPC9yZWN0PgogIDxyZWN0IHg9Ii05IiB5PSItOSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjE4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNSA1MCkiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSgwLDAsMCwuNSkiIHN0cm9rZS13aWR0aD0iMyUiIGNsYXNzPSJzcSI+CiAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2UiIGZyb209InJnYmEoMCwwLDAsMCkiIHRvPSJyZ2JhKDAsMCwwLC41KSIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIGR1cj0iMS42cyIgYmVnaW49IjEuMnMiIHZhbHVlcz0icmdiYSgwLDAsMCwuNSk7cmdiYSgwLDAsMCwwKTtyZ2JhKDAsMCwwLDApO3JnYmEoMCwwLDAsLjUpO3JnYmEoMCwwLDAsLjUpIiBrZXlUaW1lcz0iMDswLjE7MC4yOzAuNDsxIj48L2FuaW1hdGU+CiAgICAgIDxhbmltYXRlVHJhbnNmb3JtIGF0dHJpYnV0ZU5hbWU9InRyYW5zZm9ybSIgdHlwZT0ic2NhbGUiIGFkZGl0aXZlPSJzdW0iIGZyb209IjAuOCIgdG89IjEiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiBiZWdpbj0iMS4ycyIgZHVyPSIxLjZzIiB2YWx1ZXM9IjE7MC44OzAuODsxOzEiIGtleVRpbWVzPSIwOzAuMTswLjI7MC40OzEiPjwvYW5pbWF0ZVRyYW5zZm9ybT4KICA8L3JlY3Q+Cjwvc3ZnPgo=","base64");T(function(l,a){if(!T.added_svg_filters){T.added_svg_filters=!0;try{var e;document.body.appendChild(e=Z.createElement("div",{},L("PHN2ZyBjbGFzcz0iZnAtZmlsdGVycyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMCAwIj4KICA8ZGVmcz4KICAgIDxmaWx0ZXIgaWQ9ImYxIiB4PSItMjAlIiB5PSItMjAlIiB3aWR0aD0iMjAwJSIgaGVpZ2h0PSIyMDAlIj4KICAgICAgPGZlT2Zmc2V0IHJlc3VsdD0ib2ZmT3V0IiBpbj0iU291cmNlQWxwaGEiIGR4PSIwIiBkeT0iMCIgLz4KICAgICAgPGZlQ29sb3JNYXRyaXggcmVzdWx0PSJtYXRyaXhPdXQiIGluPSJvZmZPdXQiIHR5cGU9Im1hdHJpeCIKICAgICAgdmFsdWVzPSIwLjMgMCAwIDAgMCAwIDAuMyAwIDAgMCAwIDAgMC4zIDAgMCAwIDAgMCAwLjQgMCIgLz4KICAgICAgPGZlR2F1c3NpYW5CbHVyIHJlc3VsdD0iYmx1ck91dCIgaW49Im1hdHJpeE91dCIgc3RkRGV2aWF0aW9uPSI0IiAvPgogICAgICA8ZmVCbGVuZCBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJibHVyT3V0IiBtb2RlPSJub3JtYWwiIC8+CiAgICA8L2ZpbHRlcj4KICA8L2RlZnM+Cjwvc3ZnPgo=","base64"))),Z.css(e,{width:0,height:0,overflow:"hidden",position:"absolute",margin:0,padding:0})}catch(e){}}var r,s=l.conf,c=T.support;Z.find(".fp-ratio,.fp-ui",a).forEach(Z.removeNode),Z.addClass(a,"flowplayer"),a.appendChild(Z.createElement("div",{className:"fp-ratio"}));var o=Z.createElement("div",{className:"fp-ui",style:"display: none"},' <div class="fp-waiting"> {{ LOADING_SHARP_OUTLINE }} {{ LOADING_SHARP_FILL }} {{ LOADING_ROUNDED_FILL }} {{ LOADING_ROUNDED_OUTLINE }} </div> <div class="fp-header"> <a class="fp-share fp-icon"></a> <a class="fp-fullscreen fp-icon"></a> <a class="fp-unload fp-icon"></a> </div> <p class="fp-speed-flash"></p> <div class="fp-play fp-visible"> <a class="fp-icon fp-playbtn"></a> {{ PLAY_ROUNDED_FILL }} {{ PLAY_ROUNDED_OUTLINE }} {{ PLAY_SHARP_FILL }} {{ PLAY_SHARP_OUTLINE }} </div> <div class="fp-pause"> <a class="fp-icon fp-playbtn"></a> {{ PAUSE_SHARP_OUTLINE }} {{ PAUSE_SHARP_FILL }} {{ PAUSE_ROUNDED_OUTLINE }} {{ PAUSE_ROUNDED_FILL }} </div> <div class="fp-controls"> <a class="fp-icon fp-playbtn"></a> <span class="fp-elapsed">00:00</span> <div class="fp-timeline fp-bar"> <span class="fp-timestamp"></span> <div class="fp-progress fp-color"></div> </div> <span class="fp-duration"></span> <span class="fp-remaining"></span> <div class="fp-volume"> <a class="fp-icon fp-volumebtn"></a> <div class="fp-volumebar fp-bar-slider"> <em></em><em></em><em></em><em></em><em></em><em></em><em></em> </div> </div> <strong class="fp-speed fp-hidden"></strong> </div>'.replace("{{ PAUSE_ROUNDED_FILL }}",J).replace("{{ PAUSE_ROUNDED_OUTLINE }}",U).replace("{{ PAUSE_SHARP_FILL }}",B).replace("{{ PAUSE_SHARP_OUTLINE }}",H).replace("{{ PLAY_SHARP_OUTLINE }}",W).replace("{{ PLAY_SHARP_FILL }}",R).replace("{{ PLAY_ROUNDED_OUTLINE }}",G).replace("{{ PLAY_ROUNDED_FILL }}",O).replace("{{ LOADING_ROUNDED_OUTLINE }}",F).replace("{{ LOADING_ROUNDED_FILL }}",V).replace("{{ LOADING_SHARP_FILL }}",X).replace("{{ LOADING_SHARP_OUTLINE }}",_).replace(/url\(#/g,"url("+window.location.href.replace(window.location.hash,"").replace(/\#$/g,"")+"#"));function t(e){return Z.find(".fp-"+e,a)[0]}a.appendChild(o),"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(function(){o.style.display=""}):o.style.display="";var n=t("waiting"),u=t("elapsed"),i=t("ratio"),f=t("speed-flash"),d=t("duration"),p=t("remaining"),h=t("timestamp"),g=Z.css(i,"padding-top"),m=t("play"),v=t("pause"),y=t("timeline"),w=k(y,l),b=t("fullscreen"),I=t("volumebar"),M=Y(I,{rtl:l.rtl}),C=Z.hasClass(a,"no-toggle");w.disableAnimation(Z.hasClass(a,"is-touch")),l.sliders=l.sliders||{},l.sliders.timeline=w,l.sliders.volume=M;var A=[];function S(e){Z.css(i,"padding-top",100*e+"%"),c.inlineBlock||Z.height(Z.find("object",a)[0],Z.height(a))}function E(e){e?(Z.addClass(a,"is-mouseover"),Z.removeClass(a,"is-mouseout")):(Z.addClass(a,"is-mouseout"),Z.removeClass(a,"is-mouseover"))}c.svg||Z.html(n,"<p>loading &hellip;</p>"),s.ratio&&S(s.ratio);try{s.fullscreen||Z.removeNode(b)}catch(e){Z.removeNode(b)}l.on("dvrwindow",function(){w.disable(!1)}),l.on("ready",function(e,t,n){var i=t.video.duration;w.disable(t.disabled||!i),s.adaptiveRatio&&!isNaN(n.height/n.width)&&S(n.height/n.width),Z.html([d,p],t.live?"Live":z(i)),Z.toggleClass(a,"is-long",3600<=i),M.slide(t.volumeLevel),"flash"===t.engine.engineName?w.disableAnimation(!0,!0):w.disableAnimation(!1),Z.find(".fp-title",o).forEach(Z.removeNode),n.title&&Z.prepend(o,Z.createElement("div",{className:"fp-message fp-title"},n.title)),Z.toggleClass(a,"has-title",!!n.title)}).on("unload",function(){g||s.splash||Z.css(i,"paddingTop",""),w.slide(0),Z.addClass(m,"fp-visible")}).on("buffer",function(e,t,n){var i=t.video,r=i.buffer/i.duration;!i.seekable&&c.seekable&&w.max(t.conf.live?1/0:r),n&&"number"!=typeof n||(n=[{start:0,end:i.buffer}]);var o=Z.find(".fp-buffer",y);o.length!==n.length&&(o.forEach(Z.removeNode),o=[]),n.forEach(function(e,t){var n=o[t]||Z.createElement("div",{className:"fp-buffer"});Z.css(n,{left:100*e.start/i.duration+"%",width:100*(e.end-e.start)/i.duration+"%"}),Z.prepend(y,n)})}).on("speed",function(e,t,n){t.video.time&&(Z.text(f,n+"x"),Z.addClass(f,"fp-shown"),(A=A.filter(function(e){return clearTimeout(e),!1})).push(setTimeout(function(){Z.addClass(f,"fp-hilite"),A.push(setTimeout(function(){Z.removeClass(f,"fp-hilite"),A.push(setTimeout(function(){Z.removeClass(f,"fp-shown")},300))},1e3))})))}).on("buffered",function(){w.max(1)}).on("progress seek",function(e,t,n){var i=l.video.duration,r=l.video.seekOffset||0,o=((n=n||l.video.time)-r)/(i-r);w.dragging||w.slide(o,l.seeking?0:250),Z.toggleClass(a,"is-live-position",i-n<s.livePositionOffset),Z.html(u,z(n)),Z.html(p,z(i-n,!0))}).on("finish resume seek",function(e){Z.toggleClass(a,"is-finished","finish"==e.type)}).on("resume",function(){Z.addClass(m,"fp-visible"),setTimeout(function(){Z.removeClass(m,"fp-visible")},300)}).on("pause",function(){Z.addClass(v,"fp-visible"),setTimeout(function(){Z.removeClass(v,"fp-visible")},300)}).on("stop",function(){Z.html(u,z(0)),w.slide(0,100)}).on("finish",function(){Z.html(u,z(l.video.duration)),w.slide(1,100),Z.removeClass(a,"is-seeking")}).on("beforeseek",function(){}).on("volume",function(){M.slide(l.volumeLevel)}).on("disable",function(){var e=l.disabled;w.disable(e),M.disable(e),Z.toggleClass(a,"is-disabled",l.disabled)}).on("mute",function(e,t,n){Z.toggleClass(a,"is-muted",n)}).on("error",function(e,t,n){if(Z.removeClass(a,"is-loading"),Z.removeClass(a,"is-seeking"),Z.addClass(a,"is-error"),n){t.error=!0;var i=n.code;(n.message||"").match(/DECODER_ERROR_NOT_SUPPORTED/)&&(i=3);var r=t.message((t.engine&&t.engine.engineName||"html5")+": "+s.errors[i]);Z.removeClass(a,"is-mouseover"),t.one("load progress",function(e){"progress"!=e.type||t.error||r()})}}).one("resume ready",function(){var e=Z.find("video.fp-engine",a)[0];if(e&&(!Z.width(e)||!Z.height(e))){var t=a.style.overflow;a.style.overflow="visible",setTimeout(function(){t?a.style.overflow=t:a.style.removeProperty("overflow")})}}),P.on(a,"mouseenter mouseleave",function(e){if(!C){var t,n="mouseover"==e.type;if(E(n),n){var i=function(){E(!0),t=new Date};l.on("pause.x volume.x",i),P.on(a,"mousemove.x touchmove.x",i),clearInterval(r),r=setInterval(function(){new Date-t>s.mouseoutTimeout&&(E(!1),t=new Date)},100)}else P.off(a,"mousemove.x touchmove.x"),l.off("pause.x volume.x"),clearInterval(r)}}),P.on(a,"mouseleave",function(){(w.dragging||M.dragging)&&(Z.addClass(a,"is-mouseover"),Z.removeClass(a,"is-mouseout"))}),P.on(a,"click.player",function(e){if(!l.disabled)return Z.hasClass(e.target,"fp-ui")||Z.hasClass(e.target,"fp-engine")||e.flash||Z.hasParent(e.target,".fp-play,.fp-pause")?(e.preventDefault&&e.preventDefault(),l.toggle()):void 0}),P.on(a,"mousemove touchmove",".fp-timeline",function(e){var t=e.pageX||e.clientX;!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length&&(t=e.originalEvent.touches[0].pageX);var n=t-Z.offset(y).left,i=n/Z.width(y),r=l.video,o=r.duration-(void 0===r.seekOffset?0:r.seekOffset),a=(l.rtl?1-i:i)*o;if(!(i<0)){Z.html(h,z(a));var s=n-Z.width(h)/2;s<0&&(s=0),s>Z.width(y)-Z.width(h)&&(s=!1),!1!==s?Z.css(h,{left:s+"px",right:"auto"}):Z.css(h,{left:"auto",right:"0px"})}}),P.on(a,"contextmenu",function(e){var t=window;if(!Z.hasClass(a,"is-flash-disabled")){var n=Z.find(".fp-context-menu",a)[0];n&&(e.preventDefault(),l.showMenu(n,{left:e.clientX-t.scrollX,top:e.clientY-t.scrollY}),P.on(a,"click",".fp-context-menu",function(e){e.stopPropagation()}))}}),l.on("flashdisabled",function(e,t,n){var i;Z.addClass(a,"is-flash-disabled"),!1!==n&&(i=l.message("Seems something is blocking Adobe Flash from running")),l.one("ready progress",function(){Z.removeClass(a,"is-flash-disabled"),i&&i()})}),s.poster&&Z.css(a,"background-image","url("+s.poster+")");var N=Z.css(a,"background-color"),D="none"!=Z.css(a,"background-image")||N&&"rgba(0, 0, 0, 0)"!=N&&"transparent"!=N;if(D&&!s.splash){s.poster||(s.poster=!0);var j=function(){Z.addClass(a,"is-poster"),Z.addClass(m,"fp-visible"),l.poster=!0,l.on("resume.poster progress.poster beforeseek.poster",function(e){"beforeseek"!==e.type&&!l.playing||(Z.removeClass(a,"is-poster"),Z.removeClass(m,"fp-visible"),l.poster=!1,l.off(".poster"))})};l.on("stop",function(){j()}),l.on("ready",function(e,t,n){n.index||n.autoplay||j()})}function x(){var e=Z.find(".fp-player",a)[0]||a;Z.toggleClass(a,"is-tiny",e.clientWidth<400),Z.toggleClass(a,"is-small",e.clientWidth<600&&400<=e.clientWidth)}"string"==typeof s.splash&&Z.css(a,"background-image","url('"+s.splash+"')"),!D&&l.forcedSplash&&Z.css(a,"background-color","#555"),P.on(a,"click",".fp-toggle, .fp-play, .fp-playbtn",function(){l.disabled||l.toggle()}),P.on(a,"click",".fp-volumebtn",function(){l.mute()}),P.on(a,"click",".fp-fullscreen",function(){l.fullscreen()}),P.on(a,"click",".fp-unload",function(){l.unload()}),P.on(y,"slide",function(e){l.seeking=!0,l.seekTo(10*e)}),P.on(I,"slide",function(e){l.volume(e)}),P.on(a,"click",".fp-duration,.fp-remaining",function(){if(l.dvr)return l.seekTo(10);Z.toggleClass(a,"is-inverted")}),E(C),l.on("shutdown",function(){P.off(y),P.off(I),Z.removeNode(o),Z.find(".fp-ratio",a).forEach(Z.removeNode)}),x(),window.addEventListener("resize",x)}),t.exports.format=z}).call(this,e("buffer").Buffer)},{"../common":1,"../flowplayer":31,"./ui/bar-slider":28,"./ui/slider":29,bean:34,buffer:35}],28:[function(e,t,n){var u=e("bean"),f=e("../../common");t.exports=function(a,e){var r=(e=e||{}).activeClass||"fp-color",o=e.inactiveClass||"fp-grey",t=e.childSelector||"em",s=!!e.rtl,n=!1,l=f.find(t,a).length,i={unload:function(){u.off(a,".barslider")},slide:function(i,e){f.find(t,a).forEach(function(e,t){var n=t/l<i;f.toggleClass(e,r,n),f.toggleClass(e,o,!n)}),e&&u.fire(a,"slide",[i])},disable:function(e){n=e}};return u.on(a,"mousedown.sld touchstart.sld",function(e){e.preventDefault(),n||(i.slide(c(e),!0),u.on(flowplayer.support.touch?a:document,"mousemove.sld touchmove.sld",function(e){e.preventDefault(),i.slide(c(e),!0)}),u.one(document,"mouseup.sld touchup.sld",function(){u.off(flowplayer.support.touch?a:document,"mousemove.sld touchmove.sld")}))}),i;function c(e){var t=e.pageX||e.clientX,n=f.offset(a),i=f.width(a);!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length&&(t=e.originalEvent.touches[0].pageX);var r=t-n.left,o=(r=Math.max(0,Math.min(i,r)))/i;return s&&(o=1-o),o}}},{"../../common":1,bean:34}],29:[function(e,t,n){"use strict";var v=e("bean"),y=e("../../common");t.exports=function(o,a){function s(){r=y.offset(o),t=y.width(o),y.height(o),f=t,d=e(i)}function l(e,t){u||e==m.value||i&&!(e<i)||t||(v.fire(o,"slide",[e]),m.value=e)}function c(e){var t=e.pageX||e.clientX;!t&&e.originalEvent&&e.originalEvent.pageX&&(t=e.originalEvent.pageX),!t&&e.originalEvent&&e.originalEvent.touches&&e.originalEvent.touches.length&&(t=e.originalEvent.touches[0].pageX);var n=t-r.left,i=(n=Math.max(0,Math.min(d||f,n)))/f;return a.rtl&&(i=1-i),g(i,0,!0)}var u,r,t,f,i,d,p=y.lastChild(o),h=!1,g=function(e,t){void 0===t&&(t=0),1<e&&(e=1);var n=Math.round(1e3*e)/10+"%";return(!i||e<=i)&&(h?y.removeClass(p,"animated"):(y.addClass(p,"animated"),y.css(p,"transition-duration",(t||0)+"ms")),y.css(p,"width",n)),e},e=function(e){return Math.max(0,Math.min(f,e*t))},m={max:function(e){i=e},disable:function(e){u=e},slide:function(e,t,n){s(),n&&l(e),g(e,t)},disableAnimation:function(e,t){h=!1!==e,y.toggleClass(o,"no-animation",!!t)}};return s(),v.on(o,"mousedown.sld touchstart",function(e){if(e.preventDefault(),!u){var t=(n=l,i=100,function(){r||(n.apply(this,arguments),r=1,setTimeout(function(){r=0},i))});s(),m.dragging=!0,l(c(e)),v.on(document,"mousemove.sld touchmove.sld",function(e){y.addClass(o,"is-fp-dragging"),e.preventDefault(),t(c(e),a.video.timeline_vtt)}),v.one(document,"mouseup touchend",function(e){a.video.timeline_vtt?(l(c(e)),setTimeout(function(){m.dragging=!1},250)):m.dragging=!1,y.removeClass(o,"is-fp-dragging"),v.off(document,"mousemove.sld touchmove.sld")})}var n,i,r}),m}},{"../../common":1,bean:34}],30:[function(e,t,n){t.exports=function(e,t,n){try{!function(e){var t=document.createElement("textarea");t.value=e,t.style.opacity=0,t.style.position="absolute",document.body.appendChild(t),t.select();var n=document.execCommand("copy");if(document.body.removeChild(t),!n)throw new Error("Unsuccessfull")}(e),t()}catch(e){n(e)}}},{}],31:[function(e,t,n){"use strict";var g=e("extend-object"),m=e("is-function"),v=e("bean"),i=e("./ext/ui/slider"),r=e("./ext/ui/bar-slider"),y=e("./common"),w=e("./ext/events"),b=[],I=[],o=window.onbeforeunload;window.onbeforeunload=function(e){if(b.forEach(function(e){e.conf.splash?e.unload():e.bind("error",function(){y.find(".flowplayer.is-error .fp-message").forEach(y.removeNode)})}),o)return o(e)};var a=/Safari/.exec(navigator.userAgent)&&!/Chrome/.exec(navigator.userAgent),s=/(\d+\.\d+) Safari/.exec(navigator.userAgent),l=s?Number(s[1]):100,M=t.exports=function(e,t,n){if(m(e))return I.push(e);if("number"==typeof e||void 0===e)return b[e||0];if(e.nodeType){if(null!==e.getAttribute("data-flowplayer-instance-id"))return b[e.getAttribute("data-flowplayer-instance-id")];if(!t)return;return u(e,t,n)}if(e.jquery)return M(e[0],t,n);if("string"==typeof e){var i=y.find(e)[0];return i&&M(i,t,n)}};g(M,{version:"7.2.10",engines:[],engine:function(t){return M.engines.filter(function(e){return e.engineName===t})[0]},extensions:[],conf:{},set:function(e,t){"string"==typeof e?M.conf[e]=t:g(M.conf,e)},registerExtension:function(e,t){M.extensions.push([e,t])},support:{},defaults:{debug:!1,disabled:!1,fullscreen:window==window.top,keyboard:!0,ratio:9/16,adaptiveRatio:!1,rtmp:0,proxy:"best",hlsQualities:!0,seekStep:!1,splash:!1,live:!1,livePositionOffset:120,swf:"//releases.flowplayer.org/7.2.10/flowplayer.swf",swfHls:"//releases.flowplayer.org/7.2.10/flowplayerhls.swf",speeds:[.25,.5,1,1.5,2],tooltip:!0,mouseoutTimeout:5e3,mutedAutoplay:!0,clickToUnMute:!0,volume:1,errors:["","Video loading aborted","Network error","Video not properly encoded","Video file not found","Unsupported video","Skin not found","SWF file not found","Subtitles not found","Invalid RTMP URL","Unsupported video format. Try installing Adobe Flash."],errorUrls:["","","","","","","","","","","http://get.adobe.com/flashplayer/"],playlist:[],hlsFix:a&&l<8,disableInline:!1},bean:v,common:y,slider:i,barSlider:r,extend:g});var C=0,A=e("./ext/resolve");if(void 0!==window.jQuery){var c=window.jQuery;c(function(){"function"==typeof c.fn.flowplayer&&c('.flowplayer:has(video:not(.fp-engine),script[type="application/json"])').flowplayer()});c.fn.flowplayer=function(r,o){return this.each(function(){"string"==typeof r&&(r={swf:r}),m(r)&&(o=r,r={});var t=c(this),e=t.find('script[type="application/json"]'),n=e.length?JSON.parse(e.text()):function(i){if(!i.length)return{};var r=i.data()||{},o={};return c.each(["autoplay","loop","preload","poster"],function(e,t){var n=i.attr(t);void 0!==n&&-1!==["autoplay","poster"].indexOf(t)?o[t]=n||!0:void 0!==n&&(r[t]=n||!0)}),i[0].autoplay=i[0].preload=!1,r.subtitles=i.find("track").map(function(){var e=c(this);return{src:e.attr("src"),kind:e.attr("kind"),label:e.attr("label"),srclang:e.attr("srclang"),default:e.prop("default")}}).get(),r.sources=(new A).sourcesFromVideoTag(i,c),g(o,{clip:r})}(t.find("video")),i=u(this,c.extend({},r||{},n,t.data()),o);w.EVENTS.forEach(function(e){i.on(e+".jquery",function(e){t.trigger.call(t,e.type,e.detail&&e.detail.args)})}),t.data("flowplayer",i)})}}function u(e,t,n){t&&t.embed&&(t.embed=g({},M.defaults.embed,t.embed));var i=!1;try{void 0===M.conf.storage&&"object"==typeof window.localStorage&&(window.localStorage.flowplayerTestStorage="test",i=!0)}catch(e){}var r,o,a=e,s=g({},M.defaults,M.conf,t),l={},c=a.className,u=new A;y.addClass(a,"is-loading"),y.toggleClass(a,"no-flex",!M.support.flex),y.toggleClass(a,"no-svg",!M.support.svg);try{l=M.conf.storage||(i?window.localStorage:l)}catch(e){}if(s.volume="true"===l.muted?0:s.volume!==M.defaults.volume?s.volume:isNaN(l.volume)?s.volume:l.volume,s.debug=!!l.flowplayerDebug||s.debug,s.aspectRatio&&"string"==typeof s.aspectRatio){var f=s.aspectRatio.split(/[:\/]/);s.ratio=f[1]/f[0]}var d=a.currentStyle&&"rtl"===a.currentStyle.direction||window.getComputedStyle&&null!==window.getComputedStyle(a,null)&&"rtl"===window.getComputedStyle(a,null).getPropertyValue("direction");d&&y.addClass(a,"is-rtl");var p={conf:s,currentSpeed:1,volumeLevel:s.muted?0:void 0===s.volume?1*l.volume:s.volume,video:{},disabled:!1,finished:!1,loading:!1,muted:"true"==l.muted||s.muted,paused:!1,playing:!1,ready:!1,splash:!1,rtl:d,hijack:function(e){try{p.engine.suspendEngine()}catch(e){}p.hijacked=e},release:function(){try{p.engine.resumeEngine()}catch(e){}p.hijacked=!1},debug:function(){s.debug&&console.log.apply(console,["DEBUG"].concat([].slice.call(arguments)))},load:function(e,t){if(!p.error&&!p.loading){p.video={},p.finished=!1,e=e||s.clip,e=g({},u.resolve(e,s.clip.sources)),(p.playing||p.engine)&&(e.autoplay=!0);var n=h(e);if(!n)return setTimeout(function(){p.trigger("error",[p,{code:M.support.flashVideo?5:10}])})&&p;if(!n.engineName)throw new Error("engineName property of factory should be exposed");if(p.engine&&n.engineName===p.engine.engineName||(p.ready=!1,p.engine&&(p.engine.unload(),p.conf.autoplay=!0),o=p.engine=n(p,a),p.one("ready",function(){setTimeout(function(){p.muted?p.mute(!0,!0):o.volume(p.volumeLevel)})})),g(e,o.pick(e.sources.filter(function(e){return!e.engine||e.engine===o.engineName}))),e.src)p.trigger("load",[p,e,o],!0).defaultPrevented?p.loading=!1:(p.ready=!1,o.load(e),m(e)&&(t=e),t&&p.one("ready",t));return p}},pause:function(e){return p.hijacked?p.hijacked.pause(e)|p:(!p.ready||p.seeking||p.loading||(o.pause(),p.one("pause",e)),p)},resume:function(){if(!p.trigger("beforeresume",[p],!0).defaultPrevented)return p.hijacked?p.hijacked.resume()|p:(p.ready&&p.paused&&(o.resume(),p.finished&&(p.trigger("resume",[p]),p.finished=!1)),p)},toggle:function(){return p.ready?p.paused?p.resume():p.pause():p.load()},seek:function(e,t){if("boolean"==typeof e){var n=p.conf.seekStep||.1*p.video.duration;e=p.video.time+(e?n:-n),e=Math.min(Math.max(e,0),p.video.duration-.1)}if(void 0===e)return p;if(p.hijacked)return p.hijacked.seek(e,t)|p;p.ready&&(r=e,p.trigger("beforeseek",[p,e],!0).defaultPrevented?(p.seeking=!1,y.toggleClass(a,"is-seeking",p.seeking)):(o.seek(e),m(t)&&p.one("seek",t)));return p},seekTo:function(e,t){return void 0===e?p.seek(r,t):void 0!==p.video.seekOffset?p.seek(p.video.seekOffset+.1*(p.video.duration-p.video.seekOffset)*e,t):p.seek(.1*p.video.duration*e,t)},mute:function(e,t){return void 0===e&&(e=!p.muted),p.muted=e,t||(l.muted=e,l.volume=isNaN(l.volume)?s.volume:l.volume),void 0!==o.mute?o.mute(e):(p.volume(e?0:l.volume,!0),p.trigger("mute",[p,e])),p},volume:function(e,t){return p.ready&&(e=Math.min(Math.max(e,0),1),t||(l.volume=e),o.volume(e)),p},speed:function(e,t){return p.ready&&("boolean"==typeof e&&(e=s.speeds[s.speeds.indexOf(p.currentSpeed)+(e?1:-1)]||p.currentSpeed),o.speed(e),t&&a.one("speed",t)),p},stop:function(){return p.ready&&(p.pause(),!p.live||p.dvr?p.seek(0,function(){p.trigger("stop",[p])}):p.trigger("stop",[p])),p},unload:function(){return s.splash?(p.trigger("unload",[p]),o&&(o.unload(),p.engine=o=0)):p.stop(),p},shutdown:function(){p.unload(),p.trigger("shutdown",[p]),v.off(a),delete b[a.getAttribute("data-flowplayer-instance-id")],a.removeAttribute("data-flowplayer-instance-id")},disable:function(e){return void 0===e&&(e=!p.disabled),e!=p.disabled&&(p.disabled=e,p.trigger("disable",e)),p},registerExtension:function(e,t){"string"==typeof(e=e||[])&&(e=[e]),"string"==typeof(t=t||[])&&(t=[t]),e.forEach(function(e){p.extensions.js.push(e)}),t.forEach(function(e){p.extensions.css.push(e)})}};p.conf=g(p.conf,s),p.extensions={js:[],css:[]},M.extensions.forEach(function(e){p.registerExtension(e[0],e[1])}),w(p);var h=function(e){var n,i=M.engines;if(s.engine){var t=i.filter(function(e){return e.engineName===s.engine})[0];if(t&&e.sources.some(function(e){return(!e.engine||e.engine===t.engineName)&&t.canPlay(e.type,p.conf)}))return t}return s.enginePreference&&(i=M.engines.filter(function(e){return-1<s.enginePreference.indexOf(e.engineName)}).sort(function(e,t){return s.enginePreference.indexOf(e.engineName)-s.enginePreference.indexOf(t.engineName)})),e.sources.some(function(t){var e=i.filter(function(e){return(!t.engine||t.engine===e.engineName)&&e.canPlay(t.type,p.conf)}).shift();return e&&(n=e),!!e}),n};return a.getAttribute("data-flowplayer-instance-id")||(a.setAttribute("data-flowplayer-instance-id",C++),p.on("boot",function(){var e=M.support;!s.splash&&!y.hasClass(a,"is-splash")&&e.firstframe||(p.forcedSplash=!s.splash&&!y.hasClass(a,"is-splash"),p.splash=!0,s.splash||(s.splash=!0),y.addClass(a,"is-splash")),s.splash&&y.find("video",a).forEach(y.removeNode),(s.dvr||s.live||y.hasClass(a,"is-live"))&&(p.live=s.live=!0,p.dvr=s.dvr=!!s.dvr||y.hasClass(a,"is-dvr"),y.addClass(a,"is-live"),y.toggleClass(a,"is-dvr",p.dvr)),I.forEach(function(e){e(p,a)}),b.push(p),s.splash?p.unload():p.load(),s.disabled&&p.disable(),p.one("ready",n),p.one("shutdown",function(){a.className=c})}).on("load",function(e,t,n){s.splash&&y.find(".flowplayer.is-ready,.flowplayer.is-loading").forEach(function(e){var t=e.getAttribute("data-flowplayer-instance-id");if(t!==a.getAttribute("data-flowplayer-instance-id")){var n=b[Number(t)];n&&n.conf.splash&&n.unload()}}),y.addClass(a,"is-loading"),t.loading=!0,void 0===n.live&&void 0===n.dvr||(y.toggleClass(a,"is-live",n.dvr||n.live),y.toggleClass(a,"is-dvr",!!n.dvr),t.live=n.dvr||n.live,t.dvr=!!n.dvr)}).on("ready",function(e,t,n){n.time=0,t.video=n,y.removeClass(a,"is-loading"),t.loading=!1,t.muted?t.mute(!0,!0):t.volume(t.volumeLevel);var i=t.conf.hlsFix&&/mpegurl/i.exec(n.type);y.toggleClass(a,"hls-fix",!!i)}).on("unload",function(){y.removeClass(a,"is-loading"),p.loading=!1}).on("ready unload",function(e){var t="ready"==e.type;y.toggleClass(a,"is-splash",!t),y.toggleClass(a,"is-ready",t),p.ready=t,p.splash=!t}).on("progress",function(e,t,n){t.video.time=n}).on("buffer",function(e,t,n){t.video.buffer="number"==typeof n?n:n.length?n[n.length-1].end:0}).on("speed",function(e,t,n){t.currentSpeed=n}).on("volume",function(e,t,n){t.volumeLevel=Math.round(100*n)/100,t.muted&&n&&t.mute(!1)}).on("beforeseek seek",function(e){p.seeking="beforeseek"==e.type,y.toggleClass(a,"is-seeking",p.seeking)}).on("ready pause resume unload finish stop",function(e){p.paused=/pause|finish|unload|stop/.test(e.type),p.paused=p.paused||"ready"===e.type&&!s.autoplay&&!p.playing,p.playing=!p.paused,y.toggleClass(a,"is-paused",p.paused),y.toggleClass(a,"is-playing",p.playing),p.load.ed||p.pause()}).on("finish",function(){p.finished=!0}).on("error",function(){})),p.trigger("boot",[p,a]),p}},{"./common":1,"./ext/events":12,"./ext/resolve":21,"./ext/ui/bar-slider":28,"./ext/ui/slider":29,bean:34,"extend-object":39,"is-function":42}],32:[function(e,t,n){e("es5-shim");var b=t.exports=e("./flowplayer");e("./ext/support"),e("./engine/embed"),e("./engine/hlsjs"),e("./engine/html5"),e("./engine/flash"),e("./ext/ui"),e("./ext/message"),e("./ext/keyboard"),e("./ext/playlist"),e("./ext/cuepoint"),e("./ext/subtitle"),e("./ext/analytics"),e("./ext/share"),e("./ext/facebook"),e("./ext/twitter"),e("./ext/embed"),e("./ext/airplay"),e("./ext/chromecast"),e("./ext/qsel"),e("./ext/menu"),e("./ext/fullscreen"),e("./ext/mobile"),b(function(e,l){function t(e,t){for(var n=0,i=(t=function(e){var t="ab.ca,ac.ac,ac.ae,ac.at,ac.be,ac.cn,ac.il,ac.in,ac.jp,ac.kr,ac.sg,ac.th,ac.uk,ad.jp,adm.br,adv.br,ah.cn,am.br,arq.br,art.br,arts.ro,asn.au,asso.fr,asso.mc,bc.ca,bel.tr,bio.br,biz.pl,biz.tr,bj.cn,br.com,cn.com,cng.br,cnt.br,co.ac,co.at,co.de,co.gl,co.hk,co.id,co.il,co.in,co.jp,co.kr,co.mg,co.ms,co.nz,co.th,co.uk,co.ve,co.vi,co.za,com.ag,com.ai,com.ar,com.au,com.br,com.cn,com.co,com.cy,com.de,com.do,com.ec,com.es,com.fj,com.fr,com.gl,com.gt,com.hk,com.hr,com.hu,com.kg,com.ki,com.lc,com.mg,com.mm,com.ms,com.mt,com.mu,com.mx,com.my,com.na,com.nf,com.ng,com.ni,com.pa,com.ph,com.pl,com.pt,com.qa,com.ro,com.ru,com.sb,com.sc,com.sg,com.sv,com.tr,com.tw,com.ua,com.uy,com.ve,com.vn,cp.tz,cq.cn,de.com,de.org,ecn.br,ed.jp,edu.au,edu.cn,edu.hk,edu.mm,edu.my,edu.pl,edu.pt,edu.qa,edu.sg,edu.tr,edu.tw,eng.br,ernet.in,esp.br,etc.br,eti.br,eu.com,eu.int,eu.lv,firm.in,firm.ro,fm.br,fot.br,fst.br,g12.br,gb.com,gb.net,gd.cn,gen.in,go.jp,go.kr,go.th,gov.au,gov.az,gov.br,gov.cn,gov.il,gov.in,gov.mm,gov.my,gov.qa,gov.sg,gov.tr,gov.tw,gov.uk,govt.nz,gr.jp,gs.cn,gv.ac,gv.at,gx.cn,gz.cn,he.cn,hi.cn,hk.cn,hl.cn,hu.com,id.au,idv.tw,in.th,in.ua,ind.br,ind.in,inf.br,info.pl,info.ro,info.tr,info.ve,iwi.nz,jl.cn,jor.br,js.cn,jus.br,k12.il,k12.tr,kr.com,lel.br,lg.jp,ln.cn,ltd.uk,maori.nz,mb.ca,me.uk,med.br,mi.th,mil.br,mil.uk,mo.cn,mod.uk,muni.il,nb.ca,ne.jp,ne.kr,net.ag,net.ai,net.au,net.br,net.cn,net.do,net.gl,net.hk,net.il,net.in,net.kg,net.ki,net.lc,net.mg,net.mm,net.mu,net.ni,net.nz,net.pl,net.ru,net.sb,net.sc,net.sg,net.th,net.tr,net.tw,net.uk,net.ve,nf.ca,nhs.uk,nm.cn,nm.kr,no.com,nom.br,nom.ni,nom.ro,ns.ca,nt.ca,nt.ro,ntr.br,nx.cn,odo.br,off.ai,on.ca,or.ac,or.at,or.jp,or.kr,or.th,org.ag,org.ai,org.au,org.br,org.cn,org.do,org.es,org.gl,org.hk,org.in,org.kg,org.ki,org.lc,org.mg,org.mm,org.ms,org.nf,org.ng,org.ni,org.nz,org.pl,org.ro,org.ru,org.sb,org.sc,org.sg,org.tr,org.tw,org.uk,org.ve,pe.ca,plc.uk,police.uk,ppg.br,presse.fr,pro.br,psc.br,psi.br,qc.ca,qc.com,qh.cn,rec.br,rec.ro,res.in,sa.com,sc.cn,sch.uk,se.com,se.net,sh.cn,sk.ca,slg.br,sn.cn,store.ro,tj.cn,tm.fr,tm.mc,tm.ro,tmp.br,tur.br,tv.br,tv.tr,tw.cn,uk.com,uk.net,us.com,uy.com,vet.br,waw.pl,web.ve,www.ro,xj.cn,xz.cn,yk.ca,yn.cn,zj.cn,zlg.br".split(","),n=(e=e.toLowerCase()).split("."),i=n.length;if(i<2||/^\d+$/.test(n[i-1]))return e;var r=n.slice(-2).join(".");return 3<=i&&0<=t.indexOf(r)?n.slice(-3).join("."):r}(t)).length-1;0<=i;i--)n+=0x65cb98ae4ad1ec*t.charCodeAt(i);for(n=(""+n).substring(0,7),i=0;i<e.length;i++)if(n===e[i].substring(1,8))return 1}var n,i,r,o,a=e.conf,s=b.common,c=s.createElement,u=a.swf.indexOf("flowplayer.org")&&a.e&&l.getAttribute("data-origin"),f=u?(n=u,(i=document.createElement("a")).href=n,s.hostname(i.hostname)):s.hostname(),d=(document,a.key);if("file:"==location.protocol&&(f="localhost"),e.load.ed=1,a.hostname=f,a.origin=u||location.href,u&&(o="is-embedded",-1===(r=l).className.split(" ").indexOf(o)&&(r.className+=" "+o)),"string"==typeof d&&(d=d.split(/,\s*/)),d&&t(d,f)){if(a.logo){var p=s.find(".fp-player",l)[0],h=a.logo.href||"",g=a.logo.src||a.logo,m=c("a",{className:"fp-logo",href:h});u&&(m.href=m.href||u),a.embed&&a.embed.popup&&(m.target="_blank");var v=c("img",{src:g});m.appendChild(v),(p||l).appendChild(m)}}else{m=c("a",{onclick:""});((p=s.find(".fp-player",l)[0])||l).appendChild(m);var y=c("div",{className:"fp-context-menu fp-menu"},'<strong>&copy; 2018 Flowplayer AB</strong><a href="https://flowplayer.com/hello/?from=player">About Flowplayer</a><a href="https://flowplayer.com/license">GPL based license</a>'),w=window.location.href.indexOf("localhost");7!==w&&(p||l).appendChild(y),e.on("pause resume finish unload ready",function(e,t){var n,i=-1;if(t.video.src)for(var r=[["org","flowplayer","drive"],["org","flowplayer","my"],["org","flowplayer","cdn"],["com","flowplayer","cdn"]],o=0;o<r.length&&-1===(i=t.video.src.indexOf("://"+r[o].reverse().join(".")));o++);if(/pause|resume/.test(e.type)&&"flash"!=t.engine.engineName&&4!=i&&5!=i){var a={display:"block",position:"absolute",left:"16px",bottom:"56px",zIndex:99999,width:"120px",height:"27px",backgroundImage:"url("+[".png","fplogo","/",".com","foliovision","//","https:"].reverse().join("")+")"};for(var s in a)a.hasOwnProperty(s)&&(m.style[s]=a[s]);t.load.ed=(n=m,"none"!==window.getComputedStyle(n).display&&(7===w||y.parentNode==l||y.parentNode==p)),t.load.ed||t.pause()}else m.style.display="none"})}})},{"./engine/embed":2,"./engine/flash":3,"./engine/hlsjs":4,"./engine/html5":6,"./ext/airplay":7,"./ext/analytics":8,"./ext/chromecast":9,"./ext/cuepoint":10,"./ext/embed":11,"./ext/facebook":13,"./ext/fullscreen":14,"./ext/keyboard":15,"./ext/menu":16,"./ext/message":17,"./ext/mobile":18,"./ext/playlist":19,"./ext/qsel":20,"./ext/share":22,"./ext/subtitle":23,"./ext/support":25,"./ext/twitter":26,"./ext/ui":27,"./flowplayer":31,"es5-shim":38}],33:[function(e,t,n){"use strict";n.byteLength=function(e){var t=f(e),n=t[0],i=t[1];return 3*(n+i)/4-i},n.toByteArray=function(e){for(var t,n=f(e),i=n[0],r=n[1],o=new u(function(e,t,n){return 3*(t+n)/4-n}(0,i,r)),a=0,s=0<r?i-4:i,l=0;l<s;l+=4)t=c[e.charCodeAt(l)]<<18|c[e.charCodeAt(l+1)]<<12|c[e.charCodeAt(l+2)]<<6|c[e.charCodeAt(l+3)],o[a++]=t>>16&255,o[a++]=t>>8&255,o[a++]=255&t;2===r&&(t=c[e.charCodeAt(l)]<<2|c[e.charCodeAt(l+1)]>>4,o[a++]=255&t);1===r&&(t=c[e.charCodeAt(l)]<<10|c[e.charCodeAt(l+1)]<<4|c[e.charCodeAt(l+2)]>>2,o[a++]=t>>8&255,o[a++]=255&t);return o},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,r=[],o=0,a=n-i;o<a;o+=16383)r.push(l(e,o,a<o+16383?a:o+16383));1==i?(t=e[n-1],r.push(s[t>>2]+s[t<<4&63]+"==")):2==i&&(t=(e[n-2]<<8)+e[n-1],r.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"="));return r.join("")};for(var s=[],c=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,o=i.length;r<o;++r)s[r]=i[r],c[i.charCodeAt(r)]=r;function f(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,r,o=[],a=t;a<n;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(s[(r=i)>>18&63]+s[r>>12&63]+s[r>>6&63]+s[63&r]);return o.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],34:[function(e,t,n){var i,r;i=this,r=function(e,t){e=e||"bean",t=t||this;function f(e,t){return e.split(t||" ")}function l(e){return"string"==typeof e}function d(e){return"function"==typeof e}function c(e,t){return L||t||e!==j&&e!==A?e:x}function n(e){a=arguments.length?e:j.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}}function o(e,t){if(L||!t||!e||e.propertyName=="_on"+t){var n=O.get(this,t||e.type,null,!1),i=n.length,r=0;for(e=new z(e,this,!0),t&&(e.type=t);r<i&&!e.isImmediatePropagationStopped();r++)n[r].removed||n[r].handler.call(this,e)}}function p(r,n){function i(e,t){for(var n,i=l(r)?a(r,t):r;e&&e!==t;e=e.parentNode)for(n=i.length;n--;)if(i[n]===e)return e}function e(e){var t=i(e.target,this);t&&n.apply(t,arguments)}return e.__beanDel={ft:i,selector:r},e}var a,h,g,i,r,s,u,m,v,y,w,b,I,M,C,A=window,S=t[e],E=/[^\.]*(?=\..*)\.|.*/,N=/\..*/,D="addEventListener",j=document||{},x=j.documentElement||{},L=x[D],T=L?D:"attachEvent",Z={},P=Array.prototype.slice,k=function(e,t,n){for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},f("click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll "+(L?"show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ":""))),Y=(C="compareDocumentPosition"in x?function(e,t){return t.compareDocumentPosition&&16==(16&t.compareDocumentPosition(e))}:"contains"in x?function(e,t){return(t=9===t.nodeType||t===window?x:t)!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},{mouseenter:{base:"mouseover",condition:K},mouseleave:{base:"mouseout",condition:K},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}),z=(i=f("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName"),r=i.concat(f("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement")),s=r.concat(f("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),u=i.concat(f("char charCode key keyCode keyIdentifier keyLocation location")),m=i.concat(f("data")),v=i.concat(f("touches targetTouches changedTouches scale rotation")),y=i.concat(f("data origin source")),w=i.concat(f("state")),b=/over|out/,I=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,u}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,t,n){return t.rightClick=3===e.which||2===e.button,t.pos={x:0,y:0},e.pageX||e.pageY?(t.clientX=e.pageX,t.clientY=e.pageY):(e.clientX||e.clientY)&&(t.clientX=e.clientX+j.body.scrollLeft+x.scrollLeft,t.clientY=e.clientY+j.body.scrollTop+x.scrollTop),b.test(n)&&(t.relatedTarget=e.relatedTarget||e[("mouseover"==n?"from":"to")+"Element"]),r}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return s}},{reg:/^text/i,fix:function(){return m}},{reg:/^touch|^gesture/i,fix:function(){return v}},{reg:/^message$/i,fix:function(){return y}},{reg:/^popstate$/i,fix:function(){return w}},{reg:/.*/,fix:function(){return i}}],M={},_.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},_.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},_.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},_.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},_.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},_.prototype.clone=function(e){var t=new _(this,this.element,this.isNative);return t.currentTarget=e,t},_),G=(X.prototype.inNamespaces=function(e){var t,n,i=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&i++;return e.length===i},X.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},X),O=(h={},g=function(e,t,n,i,r,o){var a=r?"r":"$";if(t&&"*"!=t){var s,l=0,c=h[a+t],u="*"==e;if(!c)return;for(s=c.length;l<s;l++)if((u||c[l].matches(e,n,i))&&!o(c[l],c,l,t))return}else for(var f in h)f.charAt(0)==a&&g(e,f.substr(1),n,i,r,o)},{has:function(e,t,n,i){var r,o=h[(i?"r":"$")+t];if(o)for(r=o.length;r--;)if(!o[r].root&&o[r].matches(e,n,null))return!0;return!1},get:function(e,t,n,i){var r=[];return g(e,t,n,null,i,function(e){return r.push(e)}),r},put:function(e){var t=!e.root&&!this.has(e.element,e.type,null,!1),n=(e.root?"r":"$")+e.type;return(h[n]||(h[n]=[])).push(e),t},del:function(e){g(e.element,e.type,null,e.handler,e.root,function(e,t,n){return t.splice(n,1),e.removed=!0,0===t.length&&delete h[(e.root?"r":"$")+e.type],!1})},entries:function(){var e,t=[];for(e in h)"$"==e.charAt(0)&&(t=t.concat(h[e]));return t}}),R=L?function(e,t,n){e[n?D:"removeEventListener"](t,o,!1)}:function(t,e,n,i){var r;n?(O.put(r=new G(t,i||e,function(e){o.call(t,e,i)},o,null,null,!0)),i&&null==t["_on"+i]&&(t["_on"+i]=0),r.target.attachEvent("on"+r.eventType,r.handler)):(r=O.get(t,i||e,o,!0)[0])&&(r.target.detachEvent("on"+r.eventType,r.handler),O.del(r))},W=function(e,t,n,i,r){return function(){i.apply(this,arguments),e(t,n,r)}},U=function(e,t,n,i){var r,o,a=t&&t.replace(N,""),s=O.get(e,a,null,!1),l={};for(r=0,o=s.length;r<o;r++)n&&s[r].original!==n||!s[r].inNamespaces(i)||(O.del(s[r]),!l[s[r].eventType]&&s[r][T]&&(l[s[r].eventType]={t:s[r].eventType,c:s[r].type}));for(r in l)O.has(e,l[r].t,null,!1)||R(e,l[r].t,!1,l[r].c)},J=L?function(e,t,n){var i=j.createEvent(e?"HTMLEvents":"UIEvents");i[e?"initEvent":"initUIEvent"](t,!0,!0,A,1),n.dispatchEvent(i)}:function(e,t,n){n=c(n,e),e?n.fireEvent("on"+t,j.createEventObject()):n["_on"+t]++},B=function(e,t,n){var i,r,o,a,s=l(t);if(s&&0<t.indexOf(" ")){for(a=(t=f(t)).length;a--;)B(e,t[a],n);return e}if((r=s&&t.replace(N,""))&&Y[r]&&(r=Y[r].base),!t||s)(o=s&&t.replace(E,""))&&(o=f(o,".")),U(e,r,n,o);else if(d(t))U(e,null,t);else for(i in t)t.hasOwnProperty(i)&&B(e,i,t[i]);return e},H=function(e,t,n,i){var r,o,a,s,l,c,u;if(void 0!==n||"object"!=typeof t){for(i=d(n)?(l=P.call(arguments,3),r=n):(r=i,l=P.call(arguments,4),p(n,r)),a=f(t),this===Z&&(i=W(B,e,t,i,r)),s=a.length;s--;)u=O.put(c=new G(e,a[s].replace(N,""),i,r,f(a[s].replace(E,""),"."),l,!1)),c[T]&&u&&R(e,c.eventType,!0,c.customType);return e}for(o in t)t.hasOwnProperty(o)&&H.call(this,e,o,t[o])},F={on:H,add:function(e,t,n,i){return H.apply(null,l(n)?[e,n,t,i].concat(3<arguments.length?P.call(arguments,5):[]):P.call(arguments))},one:function(){return H.apply(Z,arguments)},off:B,remove:B,clone:function(e,t,n){for(var i,r,o=O.get(t,n,null,!1),a=o.length,s=0;s<a;s++)o[s].original&&(i=[e,o[s].type],(r=o[s].handler.__beanDel)&&i.push(r.selector),i.push(o[s].original),H.apply(null,i));return e},fire:function(e,t,n){var i,r,o,a,s,l=f(t);for(i=l.length;i--;)if(t=l[i].replace(N,""),(a=l[i].replace(E,""))&&(a=f(a,".")),a||n||!e[T])for(s=O.get(e,t,null,!1),n=[!1].concat(n),r=0,o=s.length;r<o;r++)s[r].inNamespaces(a)&&s[r].handler.apply(e,n);else J(k[t],t,e);return e},Event:z,setSelectorEngine:n,noConflict:function(){return t[e]=S,this}};function V(n,i,r,o){function a(e,t){return i.apply(n,o?P.call(t,e?0:1).concat(o):t)}function s(e,t){return i.__beanDel?i.__beanDel.ft(e.target,n):t}var e=r?function(e){var t=s(e,this);if(r.apply(t,arguments))return e&&(e.currentTarget=t),a(e,arguments)}:function(e){return i.__beanDel&&(e=e.clone(s(e))),a(e,arguments)};return e.__beanDel=i.__beanDel,e}function X(e,t,n,i,r,o,a){var s,l=Y[t];"unload"==t&&(n=W(U,e,t,n,i)),l&&(l.condition&&(n=V(e,n,l.condition,o)),t=l.base||t),this.isNative=s=k[t]&&!!e[T],this.customType=!L&&!s&&t,this.element=e,this.type=t,this.original=i,this.namespaces=r,this.eventType=L||s?t:"propertychange",this.target=c(e,s),this[T]=!!this.target[T],this.root=a,this.handler=V(e,n,null,o)}function _(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||A).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var i,r,o,a,s,l=e.type,c=e.target||e.srcElement;if(this.target=c&&3===c.nodeType?c.parentNode:c,n){if(!(s=M[l]))for(i=0,r=I.length;i<r;i++)if(I[i].reg.test(l)){M[l]=s=I[i].fix;break}for(i=(a=s(e,this,l)).length;i--;)!((o=a[i])in this)&&o in e&&(this[o]=e[o])}}}function K(e){var t=e.relatedTarget;return t?t!==this&&"xul"!==t.prefix&&!/document/.test(this.toString())&&!C(t,this):null==t}if(A.attachEvent){var Q=function(){var e,t=O.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&B(t[e].element,t[e].type);A.detachEvent("onunload",Q),A.CollectGarbage&&A.CollectGarbage()};A.attachEvent("onunload",Q)}return n(),F},void 0!==t&&t.exports?t.exports=r():i.bean=r()},{}],35:[function(t,e,O){(function(e){"use strict";var i=t("base64-js"),o=t("ieee754"),a=t("isarray");function n(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=f.prototype:(null===e&&(e=new f(t)),e.length=t),e}function f(e,t,n){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(e,t,n);if("number"!=typeof e)return r(this,e,t,n);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}function r(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);f.TYPED_ARRAY_SUPPORT?(e=t).__proto__=f.prototype:e=u(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!f.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(t,n),r=(e=s(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(f.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):u(e,t);if("Buffer"===t.type&&a(t.data))return u(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t){if(l(t),e=s(e,t<0?0:0|d(t)),!f.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function u(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function d(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function p(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(i)return Y(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function g(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=f.from(t,i)),f.isBuffer(t))return 0===t.length?-1:m(e,t,n,i,r);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,i,r){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(s<n+l&&(n=s-l),o=n;0<=o;o--){for(var f=!0,d=0;d<l;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function v(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?r<(i=Number(i))&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");o/2<i&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function y(e,t,n,i){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return G(function(e,t){for(var n,i,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function b(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,a,s,l,c=e[r],u=null,f=239<c?4:223<c?3:191<c?2:1;if(r+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[r+1]))&&127<(l=(31&c)<<6|63&o)&&(u=l);break;case 3:o=e[r+1],a=e[r+2],128==(192&o)&&128==(192&a)&&2047<(l=(15&c)<<12|(63&o)<<6|63&a)&&(l<55296||57343<l)&&(u=l);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)&&l<1114112&&(u=l)}null===u?(u=65533,f=1):65535<u&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=f}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=M));return n}(i)}O.Buffer=f,O.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},O.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),O.kMaxLength=n(),f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e},f.from=function(e,t,n){return r(null,e,t,n)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(e,t,n){return i=null,o=t,a=n,l(r=e),r<=0?s(i,r):void 0!==o?"string"==typeof a?s(i,r).fill(o,a):s(i,r).fill(o):s(i,r);var i,r,o,a},f.allocUnsafe=function(e){return c(null,e)},f.allocUnsafeSlow=function(e){return c(null,e)},f.isBuffer=function(e){return!(null==e||!e._isBuffer)},f.compare=function(e,t){if(!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var n;if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;var i=f.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var o=e[n];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},f.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?I(this,0,e):function(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return b(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=O.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,t,n,i,r){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(r<=i&&n<=t)return 0;if(r<=i)return-1;if(n<=t)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,r),c=e.slice(t,n),u=0;u<s;++u)if(l[u]!==c[u]){o=l[u],a=c[u];break}return o<a?-1:a<o?1:0},f.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},f.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},f.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},f.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||r<n)&&(n=r),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i=i||"utf8";for(var o,a,s,l,c,u,f=!1;;)switch(i){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return c=t,u=n,G(Y(e,(l=this).length-c),l,c,u);case"ascii":return y(this,e,t,n);case"latin1":case"binary":return y(this,e,t,n);case"base64":return o=this,a=t,s=n,G(z(e),o,a,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(f)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function C(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function A(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function S(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||i<n)&&(n=i);for(var r="",o=t;o<n;++o)r+=k(e[o]);return r}function E(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function N(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,r,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r<t||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function j(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function x(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function L(e,t,n,i){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(e,t,n,i,r){return r||L(e,0,n,4),o.write(e,t,n,i,23,4),n+4}function Z(e,t,n,i,r){return r||L(e,0,n,8),o.write(e,t,n,i,52,8),n+8}f.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):i<e&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):i<t&&(t=i),t<e&&(t=e),f.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=f.prototype;else{var r=t-e;n=new f(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},f.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},f.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e+--t],r=1;0<t&&(r*=256);)i+=this[e+--t]*r;return i},f.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return(r*=128)<=i&&(i-=Math.pow(2,8*t)),i},f.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||N(e,t,this.length);for(var i=t,r=1,o=this[e+--i];0<i&&(r*=256);)o+=this[e+--i]*r;return(r*=128)<=o&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,n,i){e=+e,t|=0,n|=0,i||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},f.prototype.writeUIntBE=function(e,t,n,i){e=+e,t|=0,n|=0,i||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;0<=--r&&(o*=256);)this[t+r]=e/o&255;return t+n},f.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return Z(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return Z(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,i){if(n=n||0,i||0===i||(i=this.length),t>=e.length&&(t=e.length),t=t||0,0<i&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;0<=r;--r)e[r+t]=this[r+n];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},f.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!f.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(o=t;o<n;++o)this[o]=e;else{var a=f.isBuffer(e)?e:Y(new f(e,i).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var P=/[^+\/0-9A-Za-z-_]/g;function k(e){return e<16?"0"+e.toString(16):e.toString(16)}function Y(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],a=0;a<i;++a){if(55295<(n=e.charCodeAt(a))&&n<57344){if(!r){if(56319<n){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===i){-1<(t-=3)&&o.push(239,191,189);continue}r=n;continue}if(n<56320){-1<(t-=3)&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&-1<(t-=3)&&o.push(239,191,189);if(r=null,n<128){if(--t<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return i.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":33,ieee754:40,isarray:43}],36:[function(e,t,n){var l=e("indexof");function c(e){return!!e}t.exports=function(i){var e=i.classList;if(e)return e;var r={add:t,remove:n,contains:o,toggle:function(e){return o(e)?(n(e),!1):(t(e),!0)},toString:function(){return i.className},length:0,item:function(e){return a()[e]||null}};return r;function t(e){var t=a();-1<l(t,e)||(t.push(e),s(t))}function n(e){var t=a(),n=l(t,e);-1!==n&&(t.splice(n,1),s(t))}function o(e){return-1<l(a(),e)}function a(){return function(e,t){for(var n=[],i=0;i<e.length;i++)t(e[i])&&n.push(e[i]);return n}(i.className.split(" "),c)}function s(e){var t=e.length;i.className=e.join(" "),r.length=t;for(var n=0;n<e.length;n++)r[n]=e[n];delete e[t]}}},{indexof:41}],37:[function(e,t,n){t.exports=function(e,t,n,i){if(i=(n=window.getComputedStyle)?n(e):e.currentStyle)return i[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}},{}],38:[function(e,n,i){!function(e,t){"use strict";"object"==typeof i?n.exports=t():e.returnExports=t()}(this,function(){function n(e){try{var t=E.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return N.test(t)}catch(e){return!1}}function d(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(S)return function(e){try{return!n(e)&&(E.call(e),!0)}catch(e){return!1}}(e);if(n(e))return!1;var t=A.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}var p,h,l=Array,e=l.prototype,s=Object,t=s.prototype,c=Function,i=c.prototype,v=String,r=v.prototype,y=Number,o=y.prototype,u=e.slice,a=e.splice,g=e.push,f=e.unshift,m=e.concat,w=e.join,b=i.call,I=i.apply,M=Math.max,C=Math.min,A=t.toString,S="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,E=Function.prototype.toString,N=/^\s*class /,D=RegExp.prototype.exec;p=function(e){return"object"==typeof e&&(S?function(e){try{return D.call(e),!0}catch(e){return!1}}(e):"[object RegExp]"===A.call(e))};var j=String.prototype.valueOf;h=function(e){return"string"==typeof e||"object"==typeof e&&(S?function(e){try{return j.call(e),!0}catch(e){return!1}}(e):"[object String]"===A.call(e))};function x(e){var t=typeof e;return null===e||"object"!=t&&"function"!=t}function L(){}var T,Z,P=s.defineProperty&&function(){try{var e={};for(var t in s.defineProperty(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),k=(T=t.hasOwnProperty,Z=P?function(e,t,n,i){!i&&t in e||s.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(e,t,n,i){!i&&t in e||(e[t]=n)},function(e,t,n){for(var i in t)T.call(t,i)&&Z(e,i,t[i],n)}),Y=y.isNaN||function(e){return e!=e},z=function(e){var t=+e;return Y(t)?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(0<t||-1)*Math.floor(Math.abs(t))),t},G=function(e){var t,n,i;if(x(e))return e;if(n=e.valueOf,d(n)&&(t=n.call(e),x(t)))return t;if(i=e.toString,d(i)&&(t=i.call(e),x(t)))return t;throw new TypeError},O=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return s(e)},R=function(e){return e>>>0};k(i,{bind:function(t){var n=this;if(!d(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,r=u.call(arguments,1),e=M(0,n.length-r.length),o=[],a=0;a<e;a++)g.call(o,"$"+a);return i=c("binder","return function ("+w.call(o,",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof i){var e=I.call(n,this,m.call(r,u.call(arguments)));return s(e)===e?e:this}return I.call(n,t,m.call(r,u.call(arguments)))}),n.prototype&&(L.prototype=n.prototype,i.prototype=new L,L.prototype=null),i}});var W=b.bind(t.hasOwnProperty),U=b.bind(t.toString),J=b.bind(u),B=I.bind(u);if("object"==typeof document&&document&&document.documentElement)try{J(document.documentElement.childNodes)}catch(e){var H=J,F=B;J=function(e){for(var t=[],n=e.length;0<n--;)t[n]=e[n];return F(t,H(arguments,1))},B=function(e,t){return F(J(e),t)}}var V=b.bind(r.slice),X=b.bind(r.split),_=b.bind(r.indexOf),K=b.bind(g),Q=b.bind(t.propertyIsEnumerable),q=b.bind(e.sort),$=l.isArray||function(e){return"[object Array]"===U(e)},ee=1!==[].unshift(0);k(e,{unshift:function(){return f.apply(this,arguments),this.length}},ee),k(l,{isArray:$});function te(e){var i=!0,t=!0,n=!1;if(e)try{e.call("foo",function(e,t,n){"object"!=typeof n&&(i=!1)}),e.call([1],function(){"use strict";t="string"==typeof this},"x")}catch(e){n=!0}return!!e&&!n&&i&&t}var ne=s("a"),ie="a"!==ne[0]||!(0 in ne);k(e,{forEach:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=-1,a=R(r.length);if(1<arguments.length&&(n=t),!d(e))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++o<a;)o in r&&(void 0===n?e(r[o],o,i):e.call(n,r[o],o,i))}},!te(e.forEach)),k(e,{map:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=R(r.length),a=l(o);if(1<arguments.length&&(n=t),!d(e))throw new TypeError("Array.prototype.map callback must be a function");for(var s=0;s<o;s++)s in r&&(a[s]=void 0===n?e(r[s],s,i):e.call(n,r[s],s,i));return a}},!te(e.map)),k(e,{filter:function(e,t){var n,i,r=O(this),o=ie&&h(this)?X(this,""):r,a=R(o.length),s=[];if(1<arguments.length&&(i=t),!d(e))throw new TypeError("Array.prototype.filter callback must be a function");for(var l=0;l<a;l++)l in o&&(n=o[l],(void 0===i?e(n,l,r):e.call(i,n,l,r))&&K(s,n));return s}},!te(e.filter)),k(e,{every:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=R(r.length);if(1<arguments.length&&(n=t),!d(e))throw new TypeError("Array.prototype.every callback must be a function");for(var a=0;a<o;a++)if(a in r&&!(void 0===n?e(r[a],a,i):e.call(n,r[a],a,i)))return!1;return!0}},!te(e.every)),k(e,{some:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=R(r.length);if(1<arguments.length&&(n=t),!d(e))throw new TypeError("Array.prototype.some callback must be a function");for(var a=0;a<o;a++)if(a in r&&(void 0===n?e(r[a],a,i):e.call(n,r[a],a,i)))return!0;return!1}},!te(e.some));var re=!1;e.reduce&&(re="object"==typeof e.reduce.call("es5",function(e,t,n,i){return i})),k(e,{reduce:function(e,t){var n=O(this),i=ie&&h(this)?X(this,""):n,r=R(i.length);if(!d(e))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===r&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var o,a=0;if(2<=arguments.length)o=t;else for(;;){if(a in i){o=i[a++];break}if(++a>=r)throw new TypeError("reduce of empty array with no initial value")}for(;a<r;a++)a in i&&(o=e(o,i[a],a,n));return o}},!re);var oe=!1;e.reduceRight&&(oe="object"==typeof e.reduceRight.call("es5",function(e,t,n,i){return i})),k(e,{reduceRight:function(e,t){var n,i=O(this),r=ie&&h(this)?X(this,""):i,o=R(r.length);if(!d(e))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var a=o-1;if(2<=arguments.length)n=t;else for(;;){if(a in r){n=r[a--];break}if(--a<0)throw new TypeError("reduceRight of empty array with no initial value")}if(a<0)return n;for(;a in r&&(n=e(n,r[a],a,i)),a--;);return n}},!oe);var ae=e.indexOf&&-1!==[0,1].indexOf(1,2);k(e,{indexOf:function(e,t){var n=ie&&h(this)?X(this,""):O(this),i=R(n.length);if(0===i)return-1;var r=0;for(1<arguments.length&&(r=z(t)),r=0<=r?r:M(0,i+r);r<i;r++)if(r in n&&n[r]===e)return r;return-1}},ae);var se=e.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);k(e,{lastIndexOf:function(e,t){var n=ie&&h(this)?X(this,""):O(this),i=R(n.length);if(0===i)return-1;var r=i-1;for(1<arguments.length&&(r=C(r,z(t))),r=0<=r?r:i-Math.abs(r);0<=r;r--)if(r in n&&e===n[r])return r;return-1}},se);var le,ce,ue=(ce=(le=[1,2]).splice(),2===le.length&&$(ce)&&0===ce.length);k(e,{splice:function(e,t){return 0===arguments.length?[]:a.apply(this,arguments)}},!ue);var fe,de=(fe={},e.splice.call(fe,0,0,1),1===fe.length);k(e,{splice:function(e,t){if(0===arguments.length)return[];var n=arguments;return this.length=M(z(this.length),0),0<arguments.length&&"number"!=typeof t&&((n=J(arguments)).length<2?K(n,this.length-e):n[1]=z(t)),a.apply(this,n)}},!de);var pe,he,ge=((pe=new l(1e5))[8]="x",pe.splice(1,1),7===pe.indexOf("x")),me=((he=[])[256]="a",he.splice(257,0,"b"),"a"===he[256]);k(e,{splice:function(e,t){for(var n,i=O(this),r=[],o=R(i.length),a=z(e),s=a<0?M(o+a,0):C(a,o),l=C(M(z(t),0),o-s),c=0;c<l;)n=v(s+c),W(i,n)&&(r[c]=i[n]),c+=1;var u,f=J(arguments,2),d=f.length;if(d<l){c=s;for(var p=o-l;c<p;)n=v(c+l),u=v(c+d),W(i,n)?i[u]=i[n]:delete i[u],c+=1;for(var h=(c=o)-l+d;h<c;)delete i[c-1],--c}else if(l<d)for(c=o-l;s<c;)n=v(c+l-1),u=v(c+d-1),W(i,n)?i[u]=i[n]:delete i[u],--c;c=s;for(var g=0;g<f.length;++g)i[c]=f[g],c+=1;return i.length=o-l+d,r}},!ge||!me);var ve,ye=e.join;try{ve="1,2,3"!==Array.prototype.join.call("123",",")}catch(e){ve=!0}ve&&k(e,{join:function(e){var t=void 0===e?",":e;return ye.call(h(this)?X(this,""):this,t)}},ve);var we="1,2"!==[1,2].join(void 0);we&&k(e,{join:function(e){var t=void 0===e?",":e;return ye.call(this,t)}},we);function be(e){for(var t=O(this),n=R(t.length),i=0;i<arguments.length;)t[n+i]=arguments[i],i+=1;return t.length=n+i,n+i}var Ie,Me=(Ie={},1!==Array.prototype.push.call(Ie,void 0)||1!==Ie.length||void 0!==Ie[0]||!W(Ie,0));k(e,{push:function(e){return $(this)?g.apply(this,arguments):be.apply(this,arguments)}},Me);var Ce,Ae=1!==(Ce=[]).push(void 0)||1!==Ce.length||void 0!==Ce[0]||!W(Ce,0);k(e,{push:be},Ae),k(e,{slice:function(e,t){var n=h(this)?X(this,""):this;return B(n,arguments)}},ie);var Se=function(){try{[1,2].sort(null)}catch(e){try{[1,2].sort({})}catch(e){return!1}}return!0}(),Ee=function(){try{return[1,2].sort(/a/),!1}catch(e){}return!0}(),Ne=function(){try{return[1,2].sort(void 0),!0}catch(e){}return!1}();k(e,{sort:function(e){if(void 0===e)return q(this);if(!d(e))throw new TypeError("Array.prototype.sort callback must be a function");return q(this,e)}},Se||!Ne||!Ee);function De(e){var t=e.constructor;return t&&t.prototype===e}function je(e){return"[object Arguments]"===U(e)}var xe=!Q({toString:null},"toString"),Le=Q(function(){},"prototype"),Te=!W("x","0"),Ze={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0,$width:!0,$height:!0,$top:!0,$localStorage:!0},Pe=function(){if("undefined"==typeof window)return!1;for(var e in window)try{!Ze["$"+e]&&W(window,e)&&null!==window[e]&&"object"==typeof window[e]&&De(window[e])}catch(e){return!0}return!1}(),ke=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Ye=ke.length,ze=je(arguments)?je:function(e){return null!==e&&"object"==typeof e&&"number"==typeof e.length&&0<=e.length&&!$(e)&&d(e.callee)};k(s,{keys:function(e){var t=d(e),n=ze(e),i=null!==e&&"object"==typeof e,r=i&&h(e);if(!i&&!t&&!n)throw new TypeError("Object.keys called on a non-object");var o=[],a=Le&&t;if(r&&Te||n)for(var s=0;s<e.length;++s)K(o,v(s));if(!n)for(var l in e)a&&"prototype"===l||!W(e,l)||K(o,v(l));if(xe)for(var c=function(e){if("undefined"==typeof window||!Pe)return De(e);try{return De(e)}catch(e){return!1}}(e),u=0;u<Ye;u++){var f=ke[u];c&&"constructor"===f||!W(e,f)||K(o,f)}return o}});var Ge=s.keys&&function(){return 2===s.keys(arguments).length}(1,2),Oe=s.keys&&function(){var e=s.keys(arguments);return 1!==arguments.length||1!==e.length||1!==e[0]}(1),Re=s.keys;k(s,{keys:function(e){return ze(e)?Re(J(e)):Re(e)}},!Ge||Oe);var We,Ue,Je=0!==new Date(-0xc782b5b342b24).getUTCMonth(),Be=new Date(-0x55d318d56a724),He=new Date(14496624e5),Fe="Mon, 01 Jan -45875 11:59:59 GMT"!==Be.toUTCString();Ue=Be.getTimezoneOffset()<-720?(We="Tue Jan 02 -45875"!==Be.toDateString(),!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(He))):(We="Mon Jan 01 -45875"!==Be.toDateString(),!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(He)));function Ve(e,t){return Ke(new Date(t,e,0))}var Xe=b.bind(Date.prototype.getFullYear),_e=b.bind(Date.prototype.getMonth),Ke=b.bind(Date.prototype.getDate),Qe=b.bind(Date.prototype.getUTCFullYear),qe=b.bind(Date.prototype.getUTCMonth),$e=b.bind(Date.prototype.getUTCDate),et=b.bind(Date.prototype.getUTCDay),tt=b.bind(Date.prototype.getUTCHours),nt=b.bind(Date.prototype.getUTCMinutes),it=b.bind(Date.prototype.getUTCSeconds),rt=b.bind(Date.prototype.getUTCMilliseconds),ot=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],at=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];k(Date.prototype,{getFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Xe(this);return e<0&&11<_e(this)?e+1:e},getMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Xe(this),t=_e(this);return e<0&&11<t?0:t},getDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Xe(this),t=_e(this),n=Ke(this);return e<0&&11<t?12===t?n:Ve(0,e+1)-n+1:n},getUTCFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Qe(this);return e<0&&11<qe(this)?e+1:e},getUTCMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Qe(this),t=qe(this);return e<0&&11<t?0:t},getUTCDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=Qe(this),t=qe(this),n=$e(this);return e<0&&11<t?12===t?n:Ve(0,e+1)-n+1:n}},Je),k(Date.prototype,{toUTCString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=et(this),t=$e(this),n=qe(this),i=Qe(this),r=tt(this),o=nt(this),a=it(this);return ot[e]+", "+(t<10?"0"+t:t)+" "+at[n]+" "+i+" "+(r<10?"0"+r:r)+":"+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)+" GMT"}},Je||Fe),k(Date.prototype,{toDateString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),i=this.getFullYear();return ot[e]+" "+at[n]+" "+(t<10?"0"+t:t)+" "+i}},Je||We),(Je||Ue)&&(Date.prototype.toString=function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var e=this.getDay(),t=this.getDate(),n=this.getMonth(),i=this.getFullYear(),r=this.getHours(),o=this.getMinutes(),a=this.getSeconds(),s=this.getTimezoneOffset(),l=Math.floor(Math.abs(s)/60),c=Math.floor(Math.abs(s)%60);return ot[e]+" "+at[n]+" "+(t<10?"0"+t:t)+" "+i+" "+(r<10?"0"+r:r)+":"+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)+" GMT"+(0<s?"-":"+")+(l<10?"0"+l:l)+(c<10?"0"+c:c)},P&&s.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var st=-621987552e5,lt="-000001",ct=Date.prototype.toISOString&&-1===new Date(st).toISOString().indexOf(lt),ut=Date.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new Date(-1).toISOString(),ft=b.bind(Date.prototype.getTime);k(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(ft(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var e=Qe(this),t=qe(this);e+=Math.floor(t/12);var n=[(t=(t%12+12)%12)+1,$e(this),tt(this),nt(this),it(this)];e=(e<0?"-":9999<e?"+":"")+V("00000"+Math.abs(e),0<=e&&e<=9999?-4:-6);for(var i=0;i<n.length;++i)n[i]=V("00"+n[i],-2);return e+"-"+J(n,0,2).join("-")+"T"+J(n,2).join(":")+"."+V("000"+rt(this),-3)+"Z"}},ct||ut),function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(st).toJSON().indexOf(lt)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(e){return!1}}()||(Date.prototype.toJSON=function(){var e=s(this),t=G(e);if("number"==typeof t&&!isFinite(t))return null;var n=e.toISOString;if(!d(n))throw new TypeError("toISOString property is not callable");return n.call(e)});var dt=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),pt=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));if(isNaN(Date.parse("2000-01-01T00:00:00.000Z"))||pt||!dt){var ht=Math.pow(2,31)-1,gt=Y(new Date(1970,0,1,0,0,0,1+ht).getTime());Date=function(h){function g(e,t){var n=1<t?1:0;return i[t]+Math.floor((e-1969+n)/4)-Math.floor((e-1901+n)/100)+Math.floor((e-1601+n)/400)+365*(e-1970)}var p=function(e,t,n,i,r,o,a){var s,l=arguments.length;if(this instanceof h){var c=o,u=a;if(gt&&7<=l&&ht<a){var f=Math.floor(a/ht)*ht,d=Math.floor(f/1e3);c+=d,u-=1e3*d}s=1===l&&v(e)===e?new h(p.parse(e)):7<=l?new h(e,t,n,i,r,c,u):6<=l?new h(e,t,n,i,r,c):5<=l?new h(e,t,n,i,r):4<=l?new h(e,t,n,i):3<=l?new h(e,t,n):2<=l?new h(e,t):1<=l?new h(e instanceof h?+e:e):new h}else s=h.apply(this,arguments);return x(s)||k(s,{constructor:p},!0),s},m=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),i=[0,31,59,90,120,151,181,212,243,273,304,334,365];for(var e in h)W(h,e)&&(p[e]=h[e]);k(p,{now:h.now,UTC:h.UTC},!0),p.prototype=h.prototype,k(p.prototype,{constructor:p},!0);return k(p,{parse:function(e){var t=m.exec(e);if(t){var n,i=y(t[1]),r=y(t[2]||1)-1,o=y(t[3]||1)-1,a=y(t[4]||0),s=y(t[5]||0),l=y(t[6]||0),c=Math.floor(1e3*y(t[7]||0)),u=Boolean(t[4]&&!t[8]),f="-"===t[9]?1:-1,d=y(t[10]||0),p=y(t[11]||0);return a<(0<s||0<l||0<c?24:25)&&s<60&&l<60&&c<1e3&&-1<r&&r<12&&d<24&&p<60&&-1<o&&o<g(i,1+r)-g(i,r)&&(n=1e3*(60*((n=60*(24*(g(i,r)+o)+a+d*f))+s+p*f)+l)+c,u&&(n=function(e){var t=0,n=e;if(gt&&ht<n){var i=Math.floor(n/ht)*ht,r=Math.floor(i/1e3);t+=r,n-=1e3*r}return y(new h(1970,0,1,0,0,t,n))}(n)),-864e13<=n&&n<=864e13)?n:NaN}return h.parse.apply(this,arguments)}}),p}(Date)}Date.now||(Date.now=function(){return(new Date).getTime()});var mt=o.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0)),vt={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(e,t){for(var n=-1,i=t;++n<vt.size;)i+=e*vt.data[n],vt.data[n]=i%vt.base,i=Math.floor(i/vt.base)},divide:function(e){for(var t=vt.size,n=0;0<=--t;)n+=vt.data[t],vt.data[t]=Math.floor(n/e),n=n%e*vt.base},numToString:function(){for(var e=vt.size,t="";0<=--e;)if(""!==t||0===e||0!==vt.data[e]){var n=v(vt.data[e]);""===t?t=n:t+=V("0000000",0,7-n.length)+n}return t},pow:function e(t,n,i){return 0===n?i:n%2==1?e(t,n-1,i*t):e(t*t,n/2,i)},log:function(e){for(var t=0,n=e;4096<=n;)t+=12,n/=4096;for(;2<=n;)t+=1,n/=2;return t}};k(o,{toFixed:function(e){var t,n,i,r,o,a,s,l;if(t=y(e),(t=Y(t)?0:Math.floor(t))<0||20<t)throw new RangeError("Number.toFixed called with invalid number of decimals");if(n=y(this),Y(n))return"NaN";if(n<=-1e21||1e21<=n)return v(n);if(i="",n<0&&(i="-",n=-n),r="0",1e-21<n)if(a=(o=vt.log(n*vt.pow(2,69,1))-69)<0?n*vt.pow(2,-o,1):n/vt.pow(2,o,1),a*=4503599627370496,0<(o=52-o)){for(vt.multiply(0,a),s=t;7<=s;)vt.multiply(1e7,0),s-=7;for(vt.multiply(vt.pow(10,s,1),0),s=o-1;23<=s;)vt.divide(1<<23),s-=23;vt.divide(1<<s),vt.multiply(1,1),vt.divide(2),r=vt.numToString()}else vt.multiply(0,a),vt.multiply(1<<-o,0),r=vt.numToString()+V("0.00000000000000000000",2,2+t);return r=0<t?(l=r.length)<=t?i+V("0.0000000000000000000",0,t-l+2)+r:i+V(r,0,l-t)+"."+V(r,l-t):i+r}},mt);var yt,wt,bt=function(){try{return"1"===1..toPrecision(void 0)}catch(e){return!0}}(),It=o.toPrecision;k(o,{toPrecision:function(e){return void 0===e?It.call(this):It.call(this,e)}},bt),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||1<".".split(/()()/).length?(yt=void 0===/()??/.exec("")[1],wt=Math.pow(2,32)-1,r.split=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!p(e))return X(this,e,t);var i,r,o,a,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,u=new RegExp(e.source,l+"g");yt||(i=new RegExp("^"+u.source+"$(?!\\s)",l));var f=void 0===t?wt:R(t);for(r=u.exec(n);r&&!(c<(o=r.index+r[0].length)&&(K(s,V(n,c,r.index)),!yt&&1<r.length&&r[0].replace(i,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(r[e]=void 0)}),1<r.length&&r.index<n.length&&g.apply(s,J(r,1)),a=r[0].length,c=o,f<=s.length));)u.lastIndex===r.index&&u.lastIndex++,r=u.exec(n);return c===n.length?!a&&u.test("")||K(s,""):K(s,V(n,c)),f<s.length?J(s,0,f):s}):"0".split(void 0,0).length&&(r.split=function(e,t){return void 0===e&&0===t?[]:X(this,e,t)});var Mt,Ct=r.replace;(Mt=[],"x".replace(/x(.)?/g,function(e,t){K(Mt,t)}),1===Mt.length&&void 0===Mt[0])||(r.replace=function(r,o){var e=d(o),t=p(r)&&/\)[*?]/.test(r.source);if(e&&t){return Ct.call(this,r,function(e){var t=arguments.length,n=r.lastIndex;r.lastIndex=0;var i=r.exec(e)||[];return r.lastIndex=n,K(i,arguments[t-2],arguments[t-1]),o.apply(this,i)})}return Ct.call(this,r,o)});var At=r.substr,St="".substr&&"b"!=="0b".substr(-1);k(r,{substr:function(e,t){var n=e;return e<0&&(n=M(this.length+e,0)),At.call(this,n,t)}},St);var Et="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",Nt="["+Et+"]",Dt=new RegExp("^"+Nt+Nt+"*"),jt=new RegExp(Nt+Nt+"*$"),xt=r.trim&&(Et.trim()||!"​".trim());k(r,{trim:function(){if(null==this)throw new TypeError("can't convert "+this+" to object");return v(this).replace(Dt,"").replace(jt,"")}},xt);var Lt=b.bind(String.prototype.trim),Tt=r.lastIndexOf&&-1!=="abcあい".lastIndexOf("あい",2);k(r,{lastIndexOf:function(e,t){if(null==this)throw new TypeError("can't convert "+this+" to object");for(var n=v(this),i=v(e),r=1<arguments.length?y(t):NaN,o=Y(r)?1/0:z(r),a=C(M(o,0),n.length),s=i.length,l=a+s;0<l;){l=M(0,l-s);var c=_(V(n,l,a+s),i);if(-1!==c)return l+c}return-1}},Tt);var Zt,Pt,kt,Yt=r.lastIndexOf;if(k(r,{lastIndexOf:function(e){return Yt.apply(this,arguments)}},1!==r.lastIndexOf.length),8===parseInt(Et+"08")&&22===parseInt(Et+"0x16")||(parseInt=(Zt=parseInt,Pt=/^[-+]?0[xX]/,function(e,t){var n=Lt(String(e)),i=y(t)||(Pt.test(n)?16:10);return Zt(n,i)})),1/parseFloat("-0")!=-1/0&&(parseFloat=(kt=parseFloat,function(e){var t=Lt(String(e)),n=kt(t);return 0===n&&"-"===V(t,0,1)?-0:n})),"RangeError: test"!==String(new RangeError("test"))){Error.prototype.toString=function(){if(null==this)throw new TypeError("can't convert "+this+" to object");var e=this.name;void 0===e?e="Error":"string"!=typeof e&&(e=v(e));var t=this.message;return void 0===t?t="":"string"!=typeof t&&(t=v(t)),e?t?e+": "+t:e:t}}if(P){function zt(e,t){if(Q(e,t)){var n=Object.getOwnPropertyDescriptor(e,t);n.configurable&&(n.enumerable=!1,Object.defineProperty(e,t,n))}}zt(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),zt(Error.prototype,"name")}if("/a/gim"!==String(/a/gim)){RegExp.prototype.toString=function(){var e="/"+this.source+"/";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),e}}})},{}],39:[function(e,t,n){var i=[],r=i.forEach,o=i.slice;t.exports=function(n){return r.call(o.call(arguments,1),function(e){if(e)for(var t in e)n[t]=e[t]}),n}},{}],40:[function(e,t,n){n.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,f=n?r-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;0<u;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;0<u;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=c}return(p?-1:1)*a*Math.pow(2,o-i)},n.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,f=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,h=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+f?d/l:d*Math.pow(2,1-f))*l&&(a++,l/=2),u<=a+f?(s=0,a=u):1<=a+f?(s=(t*l-1)*Math.pow(2,r),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,r),a=0));8<=r;e[n+p]=255&s,p+=h,s/=256,r-=8);for(a=a<<r|s,c+=r;0<c;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*g}},{}],41:[function(e,t,n){var i=[].indexOf;t.exports=function(e,t){if(i)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],42:[function(e,t,n){t.exports=function(e){var t=i.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var i=Object.prototype.toString},{}],43:[function(e,t,n){var i={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},{}],44:[function(e,T,Z){(function(L){!function(e){var t="object"==typeof Z&&Z&&!Z.nodeType&&Z,n="object"==typeof T&&T&&!T.nodeType&&T,i="object"==typeof L&&L;i.global!==i&&i.window!==i&&i.self!==i||(e=i);var r,o,v=2147483647,y=36,w=1,b=26,a=38,s=700,I=72,M=128,C="-",l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=y-w,A=Math.floor,S=String.fromCharCode;function E(e){throw new RangeError(f[e])}function p(e,t){for(var n=e.length,i=[];n--;)i[n]=t(e[n]);return i}function h(e,t){var n=e.split("@"),i="";return 1<n.length&&(i=n[0]+"@",e=n[1]),i+p((e=e.replace(u,".")).split("."),t).join(".")}function N(e){for(var t,n,i=[],r=0,o=e.length;r<o;)55296<=(t=e.charCodeAt(r++))&&t<=56319&&r<o?56320==(64512&(n=e.charCodeAt(r++)))?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--):i.push(t);return i}function D(e){return p(e,function(e){var t="";return 65535<e&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var i=0;for(e=n?A(e/s):e>>1,e+=A(e/t);d*b>>1<e;i+=y)e=A(e/d);return A(i+(d+1)*e/(e+a))}function g(e){var t,n,i,r,o,a,s,l,c,u,f,d=[],p=e.length,h=0,g=M,m=I;for((n=e.lastIndexOf(C))<0&&(n=0),i=0;i<n;++i)128<=e.charCodeAt(i)&&E("not-basic"),d.push(e.charCodeAt(i));for(r=0<n?n+1:0;r<p;){for(o=h,a=1,s=y;p<=r&&E("invalid-input"),f=e.charCodeAt(r++),(y<=(l=f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:y)||l>A((v-h)/a))&&E("overflow"),h+=l*a,!(l<(c=s<=m?w:m+b<=s?b:s-m));s+=y)a>A(v/(u=y-c))&&E("overflow"),a*=u;m=x(h-o,t=d.length+1,0==o),A(h/t)>v-g&&E("overflow"),g+=A(h/t),h%=t,d.splice(h++,0,g)}return D(d)}function m(e){var t,n,i,r,o,a,s,l,c,u,f,d,p,h,g,m=[];for(d=(e=N(e)).length,t=M,o=I,a=n=0;a<d;++a)(f=e[a])<128&&m.push(S(f));for(i=r=m.length,r&&m.push(C);i<d;){for(s=v,a=0;a<d;++a)t<=(f=e[a])&&f<s&&(s=f);for(s-t>A((v-n)/(p=i+1))&&E("overflow"),n+=(s-t)*p,t=s,a=0;a<d;++a)if((f=e[a])<t&&++n>v&&E("overflow"),f==t){for(l=n,c=y;!(l<(u=c<=o?w:o+b<=c?b:c-o));c+=y)g=l-u,h=y-u,m.push(S(j(u+g%h,0))),l=A(g/h);m.push(S(j(l,0))),o=x(n,p,i==r),n=0,++i}++n,++t}return m.join("")}if(r={version:"1.4.1",ucs2:{decode:N,encode:D},decode:g,encode:m,toASCII:function(e){return h(e,function(e){return c.test(e)?"xn--"+m(e):e})},toUnicode:function(e){return h(e,function(e){return l.test(e)?g(e.slice(4).toLowerCase()):e})}},0,t&&n)if(T.exports==t)n.exports=r;else for(o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);else e.punycode=r}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],45:[function(e,n,t){!function(e,t){void 0!==n&&n.exports?n.exports=t():this.$script=t()}(0,function(){var c,r,o=document,a=o.getElementsByTagName("head")[0],s=!1,u="push",l="readyState",f="onreadystatechange",d={},p={},h={},g={};function m(e,t){for(var n=0,i=e.length;n<i;++n)if(!t(e[n]))return s;return 1}function v(e,t){m(e,function(e){return!t(e)})}function y(e,t,n){e=e[u]?e:[e];var i=t&&t.call,r=i?t:n,o=i?e.join(""):t,a=e.length;function s(e){return e.call?e():d[e]}function l(){if(!--a)for(var e in d[o]=1,r&&r(),h)m(e.split("|"),s)&&!v(h[e],s)&&(h[e]=[])}return setTimeout(function(){v(e,function e(t,n){return null===t?l():(n||/^https?:\/\//.test(t)||!c||(t=-1===t.indexOf(".js")?c+t+".js":c+t),g[t]?(o&&(p[o]=1),2==g[t]?l():setTimeout(function(){e(t,!0)},0)):(g[t]=1,o&&(p[o]=1),void w(t,l)))})},0),y}function w(e,t){var n,i=o.createElement("script");i.onload=i.onerror=i[f]=function(){i[l]&&!/^c|loade/.test(i[l])||n||(i.onload=i[f]=null,n=1,g[e]=2,t())},i.async=1,i.src=r?e+(-1===e.indexOf("?")?"?":"&")+r:e,a.insertBefore(i,a.lastChild)}return y.get=w,y.order=function(n,i,r){!function e(t){t=n.shift(),n.length?y(t,e):y(t,i,r)}()},y.path=function(e){c=e},y.urlArgs=function(e){r=e},y.ready=function(e,t,n){e=e[u]?e:[e];var i,r=[];return!v(e,function(e){d[e]||r[u](e)})&&m(e,function(e){return d[e]})?t():(i=e.join("|"),h[i]=h[i]||[],h[i][u](t),n&&n(r)),y},y.done=function(e){y([null],e)},y})},{}]},{},[32])(32)});
flowplayer/modules/fv-player.js CHANGED
@@ -95,7 +95,27 @@ function fv_player_videos_parse(args, root) {
95
  } catch(e) {
96
  return false;
97
  }
98
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  var regex = new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)");
100
  var results = regex.exec(location.search);
101
  if(
@@ -142,9 +162,9 @@ jQuery(document).ready( function() {
142
  window.fv_video_intelligence_conf && !window.FV_Player_IMA ||
143
  window.fv_vast_conf && !window.FV_Player_IMA ||
144
  window.fv_player_pro && !window.FV_Flowplayer_Pro && document.getElementById('fv_player_pro') != fv_player_pro ||
145
- window.fv_player_user_playlists && !fv_player_user_playlists.is_loaded ||
146
  // if using FV Player JS Loader wait until all scripts have finished loading
147
- window.FV_Player_JS_Loader_scripts_total && window.FV_Player_JS_Loader_scripts_loaded < FV_Player_JS_Loader_scripts_total
148
  ) ) {
149
  return;
150
  }
@@ -425,6 +445,22 @@ function fv_player_preload() {
425
  root.trigger('fv_player_loaded');
426
  // Seems like root.data('flowplayer') is only available after a while, it won't work without this delay
427
  }, 10 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
428
  });
429
 
430
  //sets height for embedded players
95
  } catch(e) {
96
  return false;
97
  }
98
+
99
+ // Do not feed WebM to Safari as it has problem with VP9 codec which might be used
100
+ if( flowplayer.support.browser.safari ) {
101
+ // Do we have any other format than WebM?
102
+ var have_non_webm = false;
103
+ jQuery(videos.sources).each( function(k,v) {
104
+ if( v.type != 'video/webm' ) {
105
+ have_non_webm = true;
106
+ return false;
107
+ }
108
+ });
109
+
110
+ if( have_non_webm ) {
111
+ jQuery(videos.sources).each( function(k,v) {
112
+ if( v.type == 'video/webm' ) {
113
+ delete(videos.sources[k]);
114
+ }
115
+ });
116
+ }
117
+ }
118
+
119
  var regex = new RegExp("[\\?&]fv_flowplayer_mobile=([^&#]*)");
120
  var results = regex.exec(location.search);
121
  if(
162
  window.fv_video_intelligence_conf && !window.FV_Player_IMA ||
163
  window.fv_vast_conf && !window.FV_Player_IMA ||
164
  window.fv_player_pro && !window.FV_Flowplayer_Pro && document.getElementById('fv_player_pro') != fv_player_pro ||
165
+ window.fv_player_user_playlists && !window.fv_player_user_playlists.is_loaded ||
166
  // if using FV Player JS Loader wait until all scripts have finished loading
167
+ window.FV_Player_JS_Loader_scripts_total && window.FV_Player_JS_Loader_scripts_loaded < window.FV_Player_JS_Loader_scripts_total
168
  ) ) {
169
  return;
170
  }
445
  root.trigger('fv_player_loaded');
446
  // Seems like root.data('flowplayer') is only available after a while, it won't work without this delay
447
  }, 10 );
448
+
449
+ // Show the early error message
450
+ if( root.data('error') ) {
451
+ api.message( root.data('error') );
452
+ root.find('.fp-controls').remove();
453
+ root.find('.fp-header').css('opacity', 1).show();
454
+
455
+ // Prevent loading any video
456
+ api.conf.clip = {
457
+ sources: [ { 'src' : false, 'type' : 'video/mp4' } ]
458
+ }
459
+ api.on( 'load', function(e) {
460
+ e.preventDefault();
461
+ e.stopPropagation();
462
+ });
463
+ }
464
  });
465
 
466
  //sets height for embedded players
flowplayer/modules/hls-audio.module.js CHANGED
@@ -5,7 +5,6 @@ flowplayer( function(api,root) {
5
 
6
  root = jQuery(root);
7
  var hlsjs,
8
- player,
9
  audioUXGroup,
10
  audioGroups,
11
  hls_audio_button,
@@ -55,6 +54,8 @@ flowplayer( function(api,root) {
55
  return;
56
  }
57
 
 
 
58
  hls_audio_button = jQuery('<strong class="fv-fp-hls">' + fv_flowplayer_translations.audio_button + '</strong>');
59
  hls_audio_menu = jQuery('<div class="fp-menu fv-fp-hls-menu"></div>').insertAfter( root.find('.fp-controls') );
60
 
@@ -124,7 +125,8 @@ flowplayer( function(api,root) {
124
  }
125
  }
126
 
127
- function removeAudioMenu(){
 
128
  jQuery(hls_audio_menu).remove();
129
  jQuery(hls_audio_button).remove();
130
  }
5
 
6
  root = jQuery(root);
7
  var hlsjs,
 
8
  audioUXGroup,
9
  audioGroups,
10
  hls_audio_button,
54
  return;
55
  }
56
 
57
+ root.find('.fp-chromecast').hide();
58
+
59
  hls_audio_button = jQuery('<strong class="fv-fp-hls">' + fv_flowplayer_translations.audio_button + '</strong>');
60
  hls_audio_menu = jQuery('<div class="fp-menu fv-fp-hls-menu"></div>').insertAfter( root.find('.fp-controls') );
61
 
125
  }
126
  }
127
 
128
+ function removeAudioMenu() {
129
+ root.find('.fp-chromecast').show();
130
  jQuery(hls_audio_menu).remove();
131
  jQuery(hls_audio_button).remove();
132
  }
flowplayer/modules/old-browsers.module.js CHANGED
@@ -1,5 +1,6 @@
 
1
  function fv_flowplayer_browser_ff_m4v( hash ) {
2
- if( flowplayer.support.browser && flowplayer.support.browser.mozilla && navigator.appVersion.indexOf("Win")!=-1 ) {
3
  jQuery('#wpfp_'+hash).attr('data-engine','flash');
4
  }
5
  }
1
+ /*global fv_flowplayer_browser_ff_m4v_array, fv_flowplayer_browser_chrome_fail_array, fv_flowplayer_browser_ie_array */
2
  function fv_flowplayer_browser_ff_m4v( hash ) {
3
+ if( flowplayer.support.browser && flowplayer.support.browser.mozilla && navigator.userAgentData.platform.indexOf("Win") !=-1 ) {
4
  jQuery('#wpfp_'+hash).attr('data-engine','flash');
5
  }
6
  }
flowplayer/modules/repeat-fix.module.js CHANGED
@@ -28,4 +28,4 @@ flowplayer( function(api,root) {
28
  });
29
  }
30
  });
31
- });;
28
  });
29
  }
30
  });
31
+ });
js/admin.js CHANGED
@@ -1,3 +1,5 @@
 
 
1
  (function ($) {
2
  ('use strict');
3
 
@@ -174,7 +176,7 @@
174
  var settings = {
175
  animationSpeed: 0,
176
  changeDelay: 10,
177
- letterCase: 'uppercase'
178
  }
179
  $('input.color').minicolors(settings);
180
  settings.opacity = true;
@@ -186,12 +188,51 @@
186
  $('form#wpfp_options').on('submit', function(e) {
187
  $('input.color-opacity').each( function() {
188
  var input = $(this);
189
- if( opacity = input.minicolors('opacity') ) {
190
  var color = hexToRgb( input.val() );
191
  input.val( 'rgba('+color[0]+','+color[1]+','+color[2]+','+opacity+')' );
192
  }
193
  })
194
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  });
196
 
197
  function color_inputs() {
1
+ /*global cm_settings */
2
+
3
  (function ($) {
4
  ('use strict');
5
 
176
  var settings = {
177
  animationSpeed: 0,
178
  changeDelay: 10,
179
+ letterCase: 'uppercase'
180
  }
181
  $('input.color').minicolors(settings);
182
  settings.opacity = true;
188
  $('form#wpfp_options').on('submit', function(e) {
189
  $('input.color-opacity').each( function() {
190
  var input = $(this);
191
+ if( opacity = input.minicolors('opacity') ) {
192
  var color = hexToRgb( input.val() );
193
  input.val( 'rgba('+color[0]+','+color[1]+','+color[2]+','+opacity+')' );
194
  }
195
  })
196
+ });
197
+ });
198
+
199
+ $(document).ready( function() {
200
+ $("a[data-setting-change]").on('click', function(e) {
201
+ e.preventDefault();
202
+
203
+ var name = $(this).data('setting-change'),
204
+ index,
205
+ hidden_input,
206
+ password_input;
207
+
208
+ if(name.match(/-index-(\d)+$/)) {
209
+ var match = name.match(/-index-(\d)+$/);
210
+ index = parseInt(match[1]);
211
+ name = name.replace( match[0],'');
212
+ hidden_input = $("[name='"+name+"']").eq(index);
213
+ password_input = $("[name='"+name.replace('_is_secret_', '')+"']").eq(index);
214
+ } else {
215
+ hidden_input = $("[name='"+name+"']");
216
+ password_input = $("[name='"+name.replace('_is_secret_', '')+"']");
217
+ }
218
+
219
+ var secret_preview = $(this).siblings('.secret-preview');
220
+
221
+ if( hidden_input.val() == '1' ) {
222
+ hidden_input.val('0');
223
+ password_input.show();
224
+ secret_preview.hide();
225
+ $(this).text('Cancel');
226
+ } else {
227
+ hidden_input.val('1');
228
+ password_input.hide();
229
+ if(password_input.val() || !$(this).data('is-empty') ) {
230
+ $(this).text('Change');
231
+ secret_preview.show();
232
+ }
233
+ }
234
+
235
+ });
236
  });
237
 
238
  function color_inputs() {
js/digitalocean-spaces-browser.js CHANGED
@@ -40,7 +40,7 @@ jQuery( function($) {
40
  });
41
 
42
  return false;
43
- };
44
 
45
  $(document).on("mediaBrowserOpen", function (event) {
46
  fv_flowplayer_media_browser_add_tab('fv_flowplayer_dos_browser_media_tab', 'DigitalOcean Spaces', fv_flowplayer_dos_browser_load_assets);
40
  });
41
 
42
  return false;
43
+ }
44
 
45
  $(document).on("mediaBrowserOpen", function (event) {
46
  fv_flowplayer_media_browser_add_tab('fv_flowplayer_dos_browser_media_tab', 'DigitalOcean Spaces', fv_flowplayer_dos_browser_load_assets);
js/fancybox.js CHANGED
@@ -5,11 +5,11 @@
5
  // or fancyBox Commercial License for commercial use
6
  //
7
  // http://fancyapps.com/fancybox/
8
- // Copyright 2021 fancyApps
9
  //
10
  // ==================================================
11
  !function(t,e,n,o){"use strict";function i(t,e){var o,i,a,s=[],r=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=h(t.data.options,e)),o=e.$target||n(t.currentTarget).trigger("blur"),(a=n.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(e.selector?s=n(e.selector):(i=o.attr("data-fancybox")||"",i?(s=t.data?t.data.items:[],s=s.length?s.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]')):s=[o]),r=n(s).index(o),r<0&&(r=0),a=n.fancybox.open(s,e,r),a.$trigger=o))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),f=function(){var t,n=e.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(void 0!==n.style[t])return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){Array.isArray(e)&&(o[t]=e)}),o},g=function(t){var o,i;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=e.elementFromPoint(o.x,o.y)===t,n(".fancybox-container").css("pointer-events",""),i)},b=function(t,e,o){var i=this;i.opts=h({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(i.opts=h(i.opts,e)),n.fancybox.isMobile&&(i.opts=h(i.opts,i.opts.mobile)),i.id=i.opts.id||++c,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&i.init()};n.extend(b.prototype,{init:function(){var o,i,a=this,s=a.group[a.currIndex],r=s.opts;r.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==r.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),i="",n.each(r.buttons,function(t,e){i+=r.btnTpl[e]||""}),o=n(a.translate(a,r.baseTpl.replace("{{buttons}}",i).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(r.baseClass).data("FancyBox",a).appendTo(r.parentEl),a.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){a.$refs[t]=o.find(".fancybox-"+t)}),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===n[e]?t:n[e]})},addContent:function(t){var e,o=this,i=n.makeArray(t);n.each(i,function(t,e){var i,a,s,r,c,l={},d={};n.isPlainObject(e)?(l=e,d=e.opts||e):"object"==typeof e&&n(e).length?(i=n(e),d=i.data()||{},d=n.extend(!0,{},d,d.options),d.$orig=i,l.src=o.opts.src||d.src||i.attr("href"),l.type||l.src||(l.type="inline",l.src=e)):l={type:"html",src:e+""},l.opts=n.extend(!0,{},o.opts,d),Array.isArray(d.buttons)&&(l.opts.buttons=d.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=h(l.opts,l.opts.mobile)),a=l.type||l.opts.type,r=l.src||"",!a&&r&&((s=r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?(a="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===r.charAt(0)&&(a="inline")),a?l.type=a:o.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=o.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===o.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"==typeof l.opts.caption&&(l.opts.caption=l.opts.caption.apply(e,[o,l])),"function"==typeof o.opts.caption&&(l.opts.caption=o.opts.caption.apply(e,[o,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),o.group.push(l)}),Object.keys(o.slides).length&&(o.updateControls(),(e=o.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=d(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},n.fancybox.isMobile?600:250))}),r.on("keydown.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null,i=o.current,a=t.keyCode||t.which;if(9==a)return void(i.opts.trapFocus&&e.focus(t));if(!(!i.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input,textarea,video,audio,select")))return 8===a||27===a?(t.preventDefault(),void e.close(t)):37===a||38===a?(t.preventDefault(),void e.previous()):39===a||40===a?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,a)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){++e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var o,i,a,s,r,c,l,d,u,f=this,h=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(t=parseInt(t,10),!(a=f.current?f.current.opts.loop:f.opts.loop)&&(t<0||t>=h))return!1;if(o=f.firstRun=!Object.keys(f.slides).length,r=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(t),h>1&&((a||s.index<h-1)&&f.createSlide(t+1),(a||s.index>0)&&f.createSlide(t-1)),f.current=s,f.currIndex=s.index,f.currPos=s.pos,f.trigger("beforeShow",o),f.updateControls(),s.forcedDuration=void 0,!isNaN(parseFloat(e))&&isFinite(e)?s.forcedDuration=e:e=s.opts[o?"animationDuration":"transitionDuration"],e=parseInt(e,10),i=f.isMoved(s),s.$slide.addClass("fancybox-slide--current"),o)return s.opts.animationEffect&&e&&f.$refs.container.css("transition-duration",e+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(s),void f.preload("image");c=n.fancybox.getTranslate(r.$slide),l=n.fancybox.getTranslate(f.$refs.stage),n.each(f.slides,function(t,e){n.fancybox.stop(e.$slide,!0)}),r.pos!==s.pos&&(r.isComplete=!1),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),i?(u=c.left-(r.pos*c.width+r.pos*r.opts.gutter),n.each(f.slides,function(t,o){o.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var i=o.pos*c.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:i-l.left+u}),o.pos!==s.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>s.pos?"next":"previous")),p(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-s.pos)*c.width+(o.pos-s.pos)*o.opts.gutter},e,function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===f.currPos&&f.complete()})})):e&&s.opts.transitionEffect&&(d="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,r.$slide.addClass("fancybox-slide--"+(r.pos>s.pos?"next":"previous")),n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),s.isLoaded?f.revealContent(s):f.loadSlide(s),f.preload("image")}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,o){var i,a,s,r,c,l=this,d=l.current,u=d.$content,f=n.fancybox.getTranslate(d.$slide).width,p=n.fancybox.getTranslate(d.$slide).height,h=d.width,g=d.height;l.isAnimating||l.isMoved()||!u||"image"!=d.type||!d.isLoaded||d.hasError||(l.isAnimating=!0,n.fancybox.stop(u),t=void 0===t?.5*f:t,e=void 0===e?.5*p:e,i=n.fancybox.getTranslate(u),i.top-=n.fancybox.getTranslate(d.$slide).top,i.left-=n.fancybox.getTranslate(d.$slide).left,r=h/i.width,c=g/i.height,a=.5*f-.5*h,s=.5*p-.5*g,h>f&&(a=i.left*r-(t*r-t),a>0&&(a=0),a<f-h&&(a=f-h)),g>p&&(s=i.top*c-(e*c-e),s>0&&(s=0),s<p-g&&(s=p-g)),l.updateCursor(h,g),n.fancybox.animate(u,{top:s,left:a,scaleX:r,scaleY:c},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;o.isAnimating||o.isMoved()||!a||"image"!=i.type||!i.isLoaded||i.hasError||(o.isAnimating=!0,n.fancybox.stop(a),e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,i,a,s=this,r=t.$content,c=t.$slide,l=t.width||t.opts.width,d=t.height||t.opts.height,u={};return!!(t.isLoaded&&r&&r.length)&&(e=n.fancybox.getTranslate(s.$refs.stage).width,o=n.fancybox.getTranslate(s.$refs.stage).height,e-=parseFloat(c.css("paddingLeft"))+parseFloat(c.css("paddingRight"))+parseFloat(r.css("marginLeft"))+parseFloat(r.css("marginRight")),o-=parseFloat(c.css("paddingTop"))+parseFloat(c.css("paddingBottom"))+parseFloat(r.css("marginTop"))+parseFloat(r.css("marginBottom")),l&&d||(l=e,d=o),i=Math.min(1,e/l,o/d),l*=i,d*=i,l>e-.5&&(l=e),d>o-.5&&(d=o),"image"===t.type?(u.top=Math.floor(.5*(o-d))+parseFloat(c.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(c.css("paddingLeft"))):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?l/d:t.opts.ratio||16/9,d>l/a?d=l/a:l>d*a&&(l=d*a)),u.width=l,u.height=d,u)},update:function(t){var e=this;n.each(e.slides,function(n,o){e.updateSlide(o,t)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;o.adjustCaption(t),i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),r.length&&(r.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",r.get(0).scrollHeight>r.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,i=o.$slide;!e.isClosing&&o&&(i.siblings().css({transform:"",opacity:""}),i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(i,{top:0,left:0,opacity:1},void 0===t?0:t,function(){i.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,i=t||this.current;return!!i&&(o=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(i.$slide),!i.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-o.top)>.5||Math.abs(e.left-o.left)>.5))},updateCursor:function(t,e){var o,i,a=this,s=a.current,r=a.$refs.container;s&&!a.isClosing&&a.Guestures&&(r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=a.canPan(t,e),i=!!o||a.isZoomable(),r.toggleClass("fancybox-is-zoomable",i),n("[data-fancybox-zoom]").prop("disabled",!i),o?r.addClass("fancybox-can-pan"):i&&("zoom"===s.opts.clickContent||"function"==typeof s.opts.clickContent&&"zoom"==s.opts.clickContent(s))?r.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||a.group.length>1)&&"video"!==s.contentType&&r.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((t=e.getFitPos(n))&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=this,i=!1,a=o.current,s=a.$content;return void 0!==t&&void 0!==e?i=t<a.width&&e<a.height:s&&(i=n.fancybox.getTranslate(s),i=i.width<a.width&&i.height<a.height),i},canPan:function(t,e){var o=this,i=o.current,a=null,s=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(s=o.getFitPos(i),void 0!==t&&void 0!==e?a={width:t,height:e}:i.isComplete&&(a=n.fancybox.getTranslate(i.$content)),a&&s&&(s=Math.abs(a.width-s.width)>1.5||Math.abs(a.height-s.height)>1.5)),s},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===a.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(t){var o,i=this;setTimeout(function(){var e=t.$image;i.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||i.showLoading(t)},50),i.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,o=e.createElement("img"),o.onerror=function(){n(this).remove(),t.$ghost=null},o.onload=function(){i.afterLoad(t)},t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),i.setBigImage(t)},checkSrcset:function(e){var n,o,i,a,s=e.opts.srcset||e.opts.image.srcset;if(s){i=t.devicePixelRatio||1,a=t.innerWidth*i,o=s.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);if(0===n)return e.url=t;o&&(e.value=o,e.postfix=t[t.length-1])}),e}),o.sort(function(t,e){return t.value-e.value});for(var r=0;r<o.length;r++){var c=o[r];if("w"===c.postfix&&c.value>=a||"x"===c.postfix&&c.value>=i){n=c;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var o=this,i=e.createElement("img"),a=n(i);t.$image=a.one("error",function(){o.setError(t)}).one("load",function(){var e;t.$ghost||(o.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),o.afterLoad(t)),o.isClosing||(t.opts.srcset&&(e=t.opts.sizes,e&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),a.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!o.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),o.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(i.complete||"complete"==i.readyState)&&a.naturalWidth&&a.naturalHeight?a.trigger("load"):i.error&&a.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,o=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content'+(i.preload?" fancybox-is-hidden":"")+'"></div>').css(i.css).appendTo(a),a.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(i.attr).appendTo(t.$content),i.preload?(o.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),o.afterLoad(t)}),a.on("refresh.fb",function(){var n,o,s=t.$content,r=i.css.width,c=i.css.height;if(1===e[0].isReady){try{n=e.contents(),o=n.find("body")}catch(t){}o&&o.length&&o.children().length&&(a.css("overflow","visible"),s.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=Math.ceil(Math.max(o[0].clientWidth,o.outerWidth(!0)))),s.css("width",r||"").css("max-width",""),void 0===c&&(c=Math.ceil(Math.max(o[0].clientHeight,o.outerHeight(!0)))),s.css("height",c||""),a.css("overflow","auto")),s.removeClass("fancybox-is-hidden")}})):o.afterLoad(t),e.attr("src",t.src),a.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"==typeof e&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),o.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){var e=this;(t=t||e.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,o=t||n.current,i=o.opts.caption,a=o.opts.preventCaptionOverlap,s=n.$refs.caption,r=!1;s.toggleClass("fancybox-caption--separate",a),a&&i&&i.length&&(o.pos!==n.currPos?(e=s.clone().appendTo(s.parent()),e.children().eq(0).empty().html(i),r=e.outerHeight(!0),e.empty().remove()):n.$caption&&(r=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,n,o,i,a=this,s=t||a.current;s.isLoaded&&!0!==s.opts.disableLayoutFix&&(s.$content.css("margin-bottom",""),s.$content.outerHeight()>s.$slide.height()+.5&&(o=s.$slide[0].style["padding-bottom"],i=s.$slide.css("padding-bottom"),parseFloat(i)>0&&(e=s.$slide[0].scrollHeight,s.$slide.css("padding-bottom",0),Math.abs(e-s.$slide[0].scrollHeight)<1&&(n=i),s.$slide.css("padding-bottom",o))),s.$content.css("margin-bottom",n))},revealContent:function(t){var e,o,i,a,s=this,r=t.$slide,c=!1,l=!1,d=s.isMoved(t),u=t.isRevealed;return t.isRevealed=!0,e=t.opts[s.firstRun?"animationEffect":"transitionEffect"],i=t.opts[s.firstRun?"animationDuration":"transitionDuration"],i=parseInt(void 0===t.forcedDuration?i:t.forcedDuration,10),!d&&t.pos===s.currPos&&i||(e=!1),"zoom"===e&&(t.pos===s.currPos&&i&&"image"===t.type&&!t.hasError&&(l=s.getThumbPos(t))?c=s.getFitPos(t):e="fade"),"zoom"===e?(s.isAnimating=!0,c.scaleX=c.width/l.width,c.scaleY=c.height/l.height,a=t.opts.zoomOpacity,"auto"==a&&(a=Math.abs(t.width/t.height-l.width/l.height)>.1),a&&(l.opacity=.1,c.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),l),p(t.$content),void n.fancybox.animate(t.$content,c,i,function(){s.isAnimating=!1,s.complete()})):(s.updateSlide(t),e?(n.fancybox.stop(r),o="fancybox-slide--"+(t.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,r.addClass(o).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(r),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(r,"fancybox-slide--current",i,function(){r.removeClass(o).css({transform:"",opacity:""}),t.pos===s.currPos&&s.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===s.currPos&&s.complete())))},getThumbPos:function(t){var e,o,i,a,s,r=!1,c=t.$thumb;return!(!c||!g(c[0]))&&(e=n.fancybox.getTranslate(c),o=parseFloat(c.css("border-top-width")||0),i=parseFloat(c.css("border-right-width")||0),a=parseFloat(c.css("border-bottom-width")||0),s=parseFloat(c.css("border-left-width")||0),r={top:e.top+o,left:e.left+s,width:e.width-i-s,height:e.height-o-a,scaleX:1,scaleY:1},e.width>0&&e.height>0&&r)},complete:function(){var t,e=this,o=e.current,i={};!e.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),e.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,function(t,o){o.pos>=e.currPos-1&&o.pos<=e.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),e.slides=i),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),o.opts.autoFocus&&"html"===o.contentType&&(t=o.$content.find("input[autofocus]:enabled:visible:first"),t.length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],e=o.slides[o.currPos-1],e&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,o){var i,a,s=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||(i=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible"),i=i.filter(r).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}),i.length?(a=i.index(e.activeElement),t&&t.shiftKey?(a<0||0==a)&&(t.preventDefault(),i.eq(i.length-1).trigger("focus")):(a<0||a==i.length-1)&&(t&&t.preventDefault(),i.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,u=this,f=u.current,h=function(){u.cleanUp(t)};return!u.isClosing&&(u.isClosing=!0,!1===u.trigger("beforeClose",t)?(u.isClosing=!1,d(function(){u.update()}),!1):(u.removeEvents(),a=f.$content,o=f.opts.animationEffect,i=!isNaN(parseFloat(i))&&isFinite(i)?e:o?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onReset").remove(),i&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",i+"ms"),u.hideLoading(f),u.hideControls(!0),u.updateCursor(),"zoom"!==o||a&&i&&"image"===f.type&&!u.isMoved()&&!f.hasError&&(l=u.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},
12
- r=f.opts.zoomOpacity,"auto"==r&&(r=Math.abs(f.width/f.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.setTranslate(a,c),p(a),n.fancybox.animate(a,l,i,h),!0):(o&&i?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,i,h):!0===t?setTimeout(h,i):h(),!0)))},cleanUp:function(e){var o,i,a,s=this,r=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=s.$trigger),r&&r.length&&(i=t.scrollX,a=t.scrollY,r.trigger("focus"),n("html, body").scrollTop(a).scrollLeft(i))),s.current=null,o=n.fancybox.getInstance(),o?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var n,o=Array.prototype.slice.call(arguments,1),i=this,a=e&&e.opts?e:i.current;if(a?o.unshift(a):a=i,o.unshift(i),"function"==typeof a.opts[t]&&(n=a.opts[t].apply(a,o)),!1===n)return n;"afterClose"!==t&&i.$refs?i.$refs.container.trigger(t+".fb",o):r.trigger(t+".fb",o)},updateControls:function(){var t=this,o=t.current,i=o.index,a=t.$refs.container,s=t.$refs.caption,r=o.opts.caption;o.$slide.trigger("refresh"),r&&r.length?(t.$caption=s,s.children().eq(0).html(r)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),a.find("[data-fancybox-count]").html(t.group.length),a.find("[data-fancybox-index]").html(i+1),a.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&i<=0),a.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&i>=t.group.length-1),"image"===o.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=this,n=["infobar","toolbar","nav"];!t&&e.current.opts.preventCaptionOverlap||n.push("caption"),this.$refs.container.removeClass(n.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof b&&("string"==typeof t?e[t].apply(e,o):"function"==typeof t&&t.apply(e,o),e)},open:function(t,e,n){return new b(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",o={};if(t&&e)return void 0===e.left&&void 0===e.top||(n=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==e.scaleX&&void 0!==e.scaleY?n+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(n+=" scaleX("+e.scaleX+")"),n.length&&(o.transform=n),void 0!==e.opacity&&(o.opacity=e.opacity),void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),t.css(o)},animate:function(t,e,o,i,a){var s,r=this;"function"==typeof o&&(i=o,o=null),r.stop(t),s=r.getTranslate(t),t.on(f,function(c){(!c||!c.originalEvent||t.is(c.originalEvent.target)&&"z-index"!=c.originalEvent.propertyName)&&(r.stop(t),!isNaN(parseFloat(o))&&isFinite(o)&&t.css("transition-duration",""),n.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&r.setTranslate(t,{top:e.top,left:e.left,width:s.width*e.scaleX,height:s.height*e.scaleY,scaleX:1,scaleY:1}):!0!==a&&t.removeClass(e),"function"==typeof i&&i(c))}),!isNaN(parseFloat(o))&&isFinite(o)&&t.css("transition-duration",o+"ms"),n.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(f)},o+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(f),t.off(f).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=null;r.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":t=n(this);break;case"mouseup":t=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(t)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,o){if(e)return o=o||"","object"==typeof o&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},e,a.opts.media),t.each(s,function(e,o){if(c=p.match(o.matcher)){if(h=o.type,f=e,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[e],u),p="function"==typeof o.url?o.url.call(this,c,l,a):n(o.url,c,l),r="function"==typeof o.thumb?o.thumb.call(this,c,l,a):n(o.thumb,c),"youtube"===e?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===e&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;if(this[t].loaded)return void setTimeout(function(){n.done(t)});this[t].loading||(this[t].loading=!0,e=document.createElement("script"),e.type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e))},done:function(e){var n,o,i;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(n=t.fancybox.getInstance())&&(o=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?i=new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&(i=new Vimeo.Player(o),i.on("ended",function(){n.next()})))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||"function"==typeof t.get(0).onclick||t.data("selectable"))return!0;for(var e=0,n=t[0].attributes,o=n.length;e<o;e++)if("data-fancybox-"===n[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(i(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$slide,p=u.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&f.length&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||u.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();i.realPoints=i.startPoints=a(o),i.startPoints.length&&(u.touch&&o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=p,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.canPan=d.canPan(),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(f[0].clientWidth),i.canvasHeight=Math.round(f[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=n.fancybox.getTranslate(f),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),((i.opts||i.canPan)&&(c.is(i.$stage)||i.$stage.find(c).length)||(c.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&c.parents(".fancybox-caption").length))&&(i.isScrollable=l(c)||l(c.parent()),n.fancybox.isMobile&&i.isScrollable||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.canPan?(n.fancybox.stop(i.$content),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-is-grabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))))}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.instance,c=s.isSwiping,l=s.sliderStartPos.left||0;if(!0!==c)"x"==c&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?l+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?l-=Math.pow(-s.distanceX,.8):l+=s.distanceX),s.sliderLastPos={top:"x"==c?0:s.sliderStartPos.top+s.distanceY,left:l},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,r.group.length<2&&s.opts.vertical?s.isSwiping="y":r.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);r.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(r.slides,function(t,e){var o,i;n.fancybox.stop(e.$slide),o=n.fancybox.getTranslate(e.$slide),i=n.fancybox.getTranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===r.current.pos&&(s.sliderStartPos.top=o.top-i.top,s.sliderStartPos.left=o.left-i.left),n.fancybox.setTranslate(e.$slide,{top:o.top-i.top,left:o.left-i.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;if(s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5))return void(t.startPoints=t.newPoints);t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&i(t.requestId),t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,x=v-e.centerPointStartY,w=l+(g+y),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&i(e.requestId),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=o.isSwiping,r=o.isPanning,c=o.isZooming,l=o.isScrolling;if(o.endPoints=a(t),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap)return o.onTap(t);o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,r?o.endPanning():c?o.endZooming():o.endSwiping(s,l)},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length,s=Math.abs(o.distanceX),r="x"==t&&a>1&&(o.dMs>130&&s>10||s>50);o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,250)):r&&o.distanceX>0?i=o.instance.previous(300):r&&o.distanceX<0&&(i=o.instance.next(300)),!1!==i||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(!1===i.opts.momentum||i.dMs>350?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+500*i.velocityX,e=i.contentLastPos.top+500*i.velocityY),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,366))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var n=c.opts[t];if("function"==typeof n&&(n=n.apply(r,[c,e])),n)switch(n){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,r.isAnimating||f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,o=n.instance,i=o.current;i&&(!0===t||i.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==i.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},i.opts.slideShow.speed),n.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},i.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(n){var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){var i;if(!n)return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();e&&e.group[e.currIndex].opts.fullScreen?(i=e.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var o=function(t){this.init(t)};e.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,a=n.length;i<a&&(n[i].thumb&&o++,!(o>1));i++);o>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,o=this,i=o.instance,a=o.opts.parentEl,s=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(i.$refs.container.find(a).addBack().filter(a)),o.$grid.on("click","a",function(){i.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e('<div class="'+n+'__list">').appendTo(o.$grid)),e.each(i.group,function(e,n){t=n.thumb,t||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),o.$list[0].innerHTML=s.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+i.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,o=this,i=o.$list,a=o.$grid;o.instance.current&&(e=i.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+o.instance.current.index+'"]').addClass("fancybox-thumbs-active"),n=e.position(),"y"===o.opts.axis&&(n.top<0||n.top>i.height()-e.outerHeight())?i.stop().animate({scrollTop:i.scrollTop()+n.top},t):"x"===o.opts.axis&&(n.left<a.scrollLeft()||n.left>a.scrollLeft()+(a.width()-e.outerWidth()))&&i.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new o(e),n.isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:e,index:o<1?1:o,gallery:i}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,""!==(n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),(i=a(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&!1!==i.opts.hash&&(r=a(o))&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),t.location.hash!=="#"+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null},300)))},"beforeClose.fb":function(n,o,i){i&&!1!==i.opts.hash&&(clearTimeout(o.hashTimer),
13
  o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||"")):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on("hashchange.fb",function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,o){var i=n(o).data("FancyBox");if(i&&i.currentHash)return e=i,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&i(t)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
14
 
15
  var fv_player_fancybox_paused_players = {};
@@ -215,7 +215,7 @@ if( document.addEventListener ) {
215
  }, false);
216
  }
217
 
218
- // overriding default Flowplayer fullscreen function
219
  jQuery( function() {
220
  if( typeof(flowplayer) != "undefined" ) {
221
  flowplayer( function(api,root) {
@@ -249,6 +249,7 @@ jQuery( function() {
249
  }
250
  });
251
 
 
252
  if( flowplayer.support.fullscreen ) { // todo: should also work for YouTube on desktop
253
  api.fullscreen = function() {
254
  jQuery.fancybox.getInstance().FullScreen.toggle();
@@ -266,13 +267,6 @@ jQuery( function() {
266
  });
267
  }
268
 
269
- // show lightbox if the player is started by some other way than clicking on the lightbox button - like chapter name
270
- api.on('load resume', function (e,api,time) {
271
- if( !api.lightbox_visible() ) {
272
- jQuery.fancybox.open(jQuery(player))
273
- fv_fancybox_check_size();
274
- }
275
- });
276
  }
277
  });
278
  }
@@ -298,15 +292,9 @@ function fv_player_lightbox_bind(){
298
  }
299
  ratio.css("paddingTop", player.data('ratio') * 100 + "%");
300
  }
301
- var PLAY_ROUNDED_OUTLINE = '<svg class="fp-play-rounded-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-rounded-outline</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M41.0359,71.19a5.0492,5.0492,0,0,1-2.5575-.6673c-1.8031-1.041-2.7958-3.1248-2.7958-5.8664V35.1887c0-2.7429.9933-4.8272,2.797-5.8676,1.8025-1.0422,4.1034-.86,6.48.5143L70.4782,44.5672c2.3751,1.3711,3.6826,3.2725,3.6832,5.3545s-1.3076,3.9845-3.6832,5.3562L44.9592,70.0114A7.9384,7.9384,0,0,1,41.0359,71.19Zm.0065-40.123a2.6794,2.6794,0,0,0-1.3582.3413c-1.0263.5926-1.5912,1.9349-1.5912,3.78V64.6563c0,1.8449.5649,3.1866,1.5906,3.7791,1.0281.5932,2.4733.4108,4.07-.512L69.273,53.1906c1.5983-.9227,2.478-2.0838,2.478-3.2689s-.88-2.3445-2.478-3.2666L43.754,31.9227A5.5685,5.5685,0,0,0,41.0423,31.0671Z" filter="url(#f1)"/></svg>'
302
- , PLAY_ROUNDED_FILL = '<svg class="fp-play-rounded-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.a{fill:#000;opacity:0.65;}.b{fill:#fff;opacity:1.0;}</style></defs><title>play-rounded-fill</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="b" d="M35.942,35.2323c0-4.7289,3.3506-6.6637,7.446-4.2971L68.83,45.6235c4.0956,2.364,4.0956,6.2319,0,8.5977L43.388,68.91c-4.0954,2.364-7.446.43-7.446-4.2979Z" filter="url(#f1)"/></svg>'
303
- , PLAY_SHARP_FILL = '<svg class="fp-play-sharp-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-sharp-fill</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><polygon class="controlbutton" points="73.601 50 37.968 70.573 37.968 29.427 73.601 50" filter="url(#f1)"/></svg>'
304
- , PLAY_SHARP_OUTLINE = '<svg class="fp-play-sharp-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.controlbuttonbg{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-sharp-outline</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M36.9443,72.2473V27.2916L75.8776,49.77Zm2.2-41.1455V68.4371L71.4776,49.77Z" filter="url(#f1)"/></svg>';
305
-
306
- if( flowplayer.version.match(/^7/) && flowplayer.support.svg ) {
307
- jQuery(this).find('.fp-preload').replaceWith( '<div class="fp-play fp-visible"><a class="fp-icon fp-playbtn"></a>' + PLAY_ROUNDED_OUTLINE + PLAY_ROUNDED_FILL + PLAY_SHARP_FILL + PLAY_SHARP_OUTLINE + '</div>' )
308
- jQuery(this).removeClass('no-svg');
309
- }
310
  } );
311
 
312
  }
5
  // or fancyBox Commercial License for commercial use
6
  //
7
  // http://fancyapps.com/fancybox/
8
+ // Copyright 2022 fancyApps
9
  //
10
  // ==================================================
11
  !function(t,e,n,o){"use strict";function i(t,e){var o,i,a,s=[],r=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=h(t.data.options,e)),o=e.$target||n(t.currentTarget).trigger("blur"),(a=n.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(e.selector?s=n(e.selector):(i=o.attr("data-fancybox")||"",i?(s=t.data?t.data.items:[],s=s.length?s.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]')):s=[o]),r=n(s).index(o),r<0&&(r=0),a=n.fancybox.open(s,e,r),a.$trigger=o))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),f=function(){var t,n=e.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(void 0!==n.style[t])return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){Array.isArray(e)&&(o[t]=e)}),o},g=function(t){var o,i;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=e.elementFromPoint(o.x,o.y)===t,n(".fancybox-container").css("pointer-events",""),i)},b=function(t,e,o){var i=this;i.opts=h({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(i.opts=h(i.opts,e)),n.fancybox.isMobile&&(i.opts=h(i.opts,i.opts.mobile)),i.id=i.opts.id||++c,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&i.init()};n.extend(b.prototype,{init:function(){var o,i,a=this,s=a.group[a.currIndex],r=s.opts;r.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==r.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),i="",n.each(r.buttons,function(t,e){i+=r.btnTpl[e]||""}),o=n(a.translate(a,r.baseTpl.replace("{{buttons}}",i).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(r.baseClass).data("FancyBox",a).appendTo(r.parentEl),a.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){a.$refs[t]=o.find(".fancybox-"+t)}),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===n[e]?t:n[e]})},addContent:function(t){var e,o=this,i=n.makeArray(t);n.each(i,function(t,e){var i,a,s,r,c,l={},d={};n.isPlainObject(e)?(l=e,d=e.opts||e):"object"==typeof e&&n(e).length?(i=n(e),d=i.data()||{},d=n.extend(!0,{},d,d.options),d.$orig=i,l.src=o.opts.src||d.src||i.attr("href"),l.type||l.src||(l.type="inline",l.src=e)):l={type:"html",src:e+""},l.opts=n.extend(!0,{},o.opts,d),Array.isArray(d.buttons)&&(l.opts.buttons=d.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=h(l.opts,l.opts.mobile)),a=l.type||l.opts.type,r=l.src||"",!a&&r&&((s=r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?(a="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===r.charAt(0)&&(a="inline")),a?l.type=a:o.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=o.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===o.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"==typeof l.opts.caption&&(l.opts.caption=l.opts.caption.apply(e,[o,l])),"function"==typeof o.opts.caption&&(l.opts.caption=o.opts.caption.apply(e,[o,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),o.group.push(l)}),Object.keys(o.slides).length&&(o.updateControls(),(e=o.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=d(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},n.fancybox.isMobile?600:250))}),r.on("keydown.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null,i=o.current,a=t.keyCode||t.which;if(9==a)return void(i.opts.trapFocus&&e.focus(t));if(!(!i.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input,textarea,video,audio,select")))return 8===a||27===a?(t.preventDefault(),void e.close(t)):37===a||38===a?(t.preventDefault(),void e.previous()):39===a||40===a?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,a)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){++e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var o,i,a,s,r,c,l,d,u,f=this,h=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(t=parseInt(t,10),!(a=f.current?f.current.opts.loop:f.opts.loop)&&(t<0||t>=h))return!1;if(o=f.firstRun=!Object.keys(f.slides).length,r=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(t),h>1&&((a||s.index<h-1)&&f.createSlide(t+1),(a||s.index>0)&&f.createSlide(t-1)),f.current=s,f.currIndex=s.index,f.currPos=s.pos,f.trigger("beforeShow",o),f.updateControls(),s.forcedDuration=void 0,!isNaN(parseFloat(e))&&isFinite(e)?s.forcedDuration=e:e=s.opts[o?"animationDuration":"transitionDuration"],e=parseInt(e,10),i=f.isMoved(s),s.$slide.addClass("fancybox-slide--current"),o)return s.opts.animationEffect&&e&&f.$refs.container.css("transition-duration",e+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(s),void f.preload("image");c=n.fancybox.getTranslate(r.$slide),l=n.fancybox.getTranslate(f.$refs.stage),n.each(f.slides,function(t,e){n.fancybox.stop(e.$slide,!0)}),r.pos!==s.pos&&(r.isComplete=!1),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),i?(u=c.left-(r.pos*c.width+r.pos*r.opts.gutter),n.each(f.slides,function(t,o){o.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var i=o.pos*c.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:i-l.left+u}),o.pos!==s.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>s.pos?"next":"previous")),p(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-s.pos)*c.width+(o.pos-s.pos)*o.opts.gutter},e,function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===f.currPos&&f.complete()})})):e&&s.opts.transitionEffect&&(d="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,r.$slide.addClass("fancybox-slide--"+(r.pos>s.pos?"next":"previous")),n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),s.isLoaded?f.revealContent(s):f.loadSlide(s),f.preload("image")}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,o){var i,a,s,r,c,l=this,d=l.current,u=d.$content,f=n.fancybox.getTranslate(d.$slide).width,p=n.fancybox.getTranslate(d.$slide).height,h=d.width,g=d.height;l.isAnimating||l.isMoved()||!u||"image"!=d.type||!d.isLoaded||d.hasError||(l.isAnimating=!0,n.fancybox.stop(u),t=void 0===t?.5*f:t,e=void 0===e?.5*p:e,i=n.fancybox.getTranslate(u),i.top-=n.fancybox.getTranslate(d.$slide).top,i.left-=n.fancybox.getTranslate(d.$slide).left,r=h/i.width,c=g/i.height,a=.5*f-.5*h,s=.5*p-.5*g,h>f&&(a=i.left*r-(t*r-t),a>0&&(a=0),a<f-h&&(a=f-h)),g>p&&(s=i.top*c-(e*c-e),s>0&&(s=0),s<p-g&&(s=p-g)),l.updateCursor(h,g),n.fancybox.animate(u,{top:s,left:a,scaleX:r,scaleY:c},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;o.isAnimating||o.isMoved()||!a||"image"!=i.type||!i.isLoaded||i.hasError||(o.isAnimating=!0,n.fancybox.stop(a),e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,i,a,s=this,r=t.$content,c=t.$slide,l=t.width||t.opts.width,d=t.height||t.opts.height,u={};return!!(t.isLoaded&&r&&r.length)&&(e=n.fancybox.getTranslate(s.$refs.stage).width,o=n.fancybox.getTranslate(s.$refs.stage).height,e-=parseFloat(c.css("paddingLeft"))+parseFloat(c.css("paddingRight"))+parseFloat(r.css("marginLeft"))+parseFloat(r.css("marginRight")),o-=parseFloat(c.css("paddingTop"))+parseFloat(c.css("paddingBottom"))+parseFloat(r.css("marginTop"))+parseFloat(r.css("marginBottom")),l&&d||(l=e,d=o),i=Math.min(1,e/l,o/d),l*=i,d*=i,l>e-.5&&(l=e),d>o-.5&&(d=o),"image"===t.type?(u.top=Math.floor(.5*(o-d))+parseFloat(c.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(c.css("paddingLeft"))):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?l/d:t.opts.ratio||16/9,d>l/a?d=l/a:l>d*a&&(l=d*a)),u.width=l,u.height=d,u)},update:function(t){var e=this;n.each(e.slides,function(n,o){e.updateSlide(o,t)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;o.adjustCaption(t),i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),r.length&&(r.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",r.get(0).scrollHeight>r.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,i=o.$slide;!e.isClosing&&o&&(i.siblings().css({transform:"",opacity:""}),i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(i,{top:0,left:0,opacity:1},void 0===t?0:t,function(){i.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,i=t||this.current;return!!i&&(o=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(i.$slide),!i.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-o.top)>.5||Math.abs(e.left-o.left)>.5))},updateCursor:function(t,e){var o,i,a=this,s=a.current,r=a.$refs.container;s&&!a.isClosing&&a.Guestures&&(r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=a.canPan(t,e),i=!!o||a.isZoomable(),r.toggleClass("fancybox-is-zoomable",i),n("[data-fancybox-zoom]").prop("disabled",!i),o?r.addClass("fancybox-can-pan"):i&&("zoom"===s.opts.clickContent||"function"==typeof s.opts.clickContent&&"zoom"==s.opts.clickContent(s))?r.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||a.group.length>1)&&"video"!==s.contentType&&r.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((t=e.getFitPos(n))&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=this,i=!1,a=o.current,s=a.$content;return void 0!==t&&void 0!==e?i=t<a.width&&e<a.height:s&&(i=n.fancybox.getTranslate(s),i=i.width<a.width&&i.height<a.height),i},canPan:function(t,e){var o=this,i=o.current,a=null,s=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(s=o.getFitPos(i),void 0!==t&&void 0!==e?a={width:t,height:e}:i.isComplete&&(a=n.fancybox.getTranslate(i.$content)),a&&s&&(s=Math.abs(a.width-s.width)>1.5||Math.abs(a.height-s.height)>1.5)),s},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===a.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(t){var o,i=this;setTimeout(function(){var e=t.$image;i.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||i.showLoading(t)},50),i.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,o=e.createElement("img"),o.onerror=function(){n(this).remove(),t.$ghost=null},o.onload=function(){i.afterLoad(t)},t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),i.setBigImage(t)},checkSrcset:function(e){var n,o,i,a,s=e.opts.srcset||e.opts.image.srcset;if(s){i=t.devicePixelRatio||1,a=t.innerWidth*i,o=s.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);if(0===n)return e.url=t;o&&(e.value=o,e.postfix=t[t.length-1])}),e}),o.sort(function(t,e){return t.value-e.value});for(var r=0;r<o.length;r++){var c=o[r];if("w"===c.postfix&&c.value>=a||"x"===c.postfix&&c.value>=i){n=c;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var o=this,i=e.createElement("img"),a=n(i);t.$image=a.one("error",function(){o.setError(t)}).one("load",function(){var e;t.$ghost||(o.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),o.afterLoad(t)),o.isClosing||(t.opts.srcset&&(e=t.opts.sizes,e&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),a.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!o.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),o.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(i.complete||"complete"==i.readyState)&&a.naturalWidth&&a.naturalHeight?a.trigger("load"):i.error&&a.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,o=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content'+(i.preload?" fancybox-is-hidden":"")+'"></div>').css(i.css).appendTo(a),a.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(i.attr).appendTo(t.$content),i.preload?(o.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),o.afterLoad(t)}),a.on("refresh.fb",function(){var n,o,s=t.$content,r=i.css.width,c=i.css.height;if(1===e[0].isReady){try{n=e.contents(),o=n.find("body")}catch(t){}o&&o.length&&o.children().length&&(a.css("overflow","visible"),s.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=Math.ceil(Math.max(o[0].clientWidth,o.outerWidth(!0)))),s.css("width",r||"").css("max-width",""),void 0===c&&(c=Math.ceil(Math.max(o[0].clientHeight,o.outerHeight(!0)))),s.css("height",c||""),a.css("overflow","auto")),s.removeClass("fancybox-is-hidden")}})):o.afterLoad(t),e.attr("src",t.src),a.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"==typeof e&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),o.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){var e=this;(t=t||e.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,o=t||n.current,i=o.opts.caption,a=o.opts.preventCaptionOverlap,s=n.$refs.caption,r=!1;s.toggleClass("fancybox-caption--separate",a),a&&i&&i.length&&(o.pos!==n.currPos?(e=s.clone().appendTo(s.parent()),e.children().eq(0).empty().html(i),r=e.outerHeight(!0),e.empty().remove()):n.$caption&&(r=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,n,o,i,a=this,s=t||a.current;s.isLoaded&&!0!==s.opts.disableLayoutFix&&(s.$content.css("margin-bottom",""),s.$content.outerHeight()>s.$slide.height()+.5&&(o=s.$slide[0].style["padding-bottom"],i=s.$slide.css("padding-bottom"),parseFloat(i)>0&&(e=s.$slide[0].scrollHeight,s.$slide.css("padding-bottom",0),Math.abs(e-s.$slide[0].scrollHeight)<1&&(n=i),s.$slide.css("padding-bottom",o))),s.$content.css("margin-bottom",n))},revealContent:function(t){var e,o,i,a,s=this,r=t.$slide,c=!1,l=!1,d=s.isMoved(t),u=t.isRevealed;return t.isRevealed=!0,e=t.opts[s.firstRun?"animationEffect":"transitionEffect"],i=t.opts[s.firstRun?"animationDuration":"transitionDuration"],i=parseInt(void 0===t.forcedDuration?i:t.forcedDuration,10),!d&&t.pos===s.currPos&&i||(e=!1),"zoom"===e&&(t.pos===s.currPos&&i&&"image"===t.type&&!t.hasError&&(l=s.getThumbPos(t))?c=s.getFitPos(t):e="fade"),"zoom"===e?(s.isAnimating=!0,c.scaleX=c.width/l.width,c.scaleY=c.height/l.height,a=t.opts.zoomOpacity,"auto"==a&&(a=Math.abs(t.width/t.height-l.width/l.height)>.1),a&&(l.opacity=.1,c.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),l),p(t.$content),void n.fancybox.animate(t.$content,c,i,function(){s.isAnimating=!1,s.complete()})):(s.updateSlide(t),e?(n.fancybox.stop(r),o="fancybox-slide--"+(t.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,r.addClass(o).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(r),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(r,"fancybox-slide--current",i,function(){r.removeClass(o).css({transform:"",opacity:""}),t.pos===s.currPos&&s.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===s.currPos&&s.complete())))},getThumbPos:function(t){var e,o,i,a,s,r=!1,c=t.$thumb;return!(!c||!g(c[0]))&&(e=n.fancybox.getTranslate(c),o=parseFloat(c.css("border-top-width")||0),i=parseFloat(c.css("border-right-width")||0),a=parseFloat(c.css("border-bottom-width")||0),s=parseFloat(c.css("border-left-width")||0),r={top:e.top+o,left:e.left+s,width:e.width-i-s,height:e.height-o-a,scaleX:1,scaleY:1},e.width>0&&e.height>0&&r)},complete:function(){var t,e=this,o=e.current,i={};!e.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),e.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,function(t,o){o.pos>=e.currPos-1&&o.pos<=e.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),e.slides=i),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),o.opts.autoFocus&&"html"===o.contentType&&(t=o.$content.find("input[autofocus]:enabled:visible:first"),t.length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],e=o.slides[o.currPos-1],e&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,o){var i,a,s=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||(i=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible"),i=i.filter(r).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}),i.length?(a=i.index(e.activeElement),t&&t.shiftKey?(a<0||0==a)&&(t.preventDefault(),i.eq(i.length-1).trigger("focus")):(a<0||a==i.length-1)&&(t&&t.preventDefault(),i.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,u=this,f=u.current,h=function(){u.cleanUp(t)};return!u.isClosing&&(u.isClosing=!0,!1===u.trigger("beforeClose",t)?(u.isClosing=!1,d(function(){u.update()}),!1):(u.removeEvents(),a=f.$content,o=f.opts.animationEffect,i=!isNaN(parseFloat(i))&&isFinite(i)?e:o?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onReset").remove(),i&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",i+"ms"),u.hideLoading(f),u.hideControls(!0),u.updateCursor(),"zoom"!==o||a&&i&&"image"===f.type&&!u.isMoved()&&!f.hasError&&(l=u.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},
12
+ r=f.opts.zoomOpacity,"auto"==r&&(r=Math.abs(f.width/f.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.setTranslate(a,c),p(a),n.fancybox.animate(a,l,i,h),!0):(o&&i?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,i,h):!0===t?setTimeout(h,i):h(),!0)))},cleanUp:function(e){var o,i,a,s=this,r=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=s.$trigger),r&&r.length&&(i=t.scrollX,a=t.scrollY,r.trigger("focus"),n("html, body").scrollTop(a).scrollLeft(i))),s.current=null,o=n.fancybox.getInstance(),o?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var n,o=Array.prototype.slice.call(arguments,1),i=this,a=e&&e.opts?e:i.current;if(a?o.unshift(a):a=i,o.unshift(i),"function"==typeof a.opts[t]&&(n=a.opts[t].apply(a,o)),!1===n)return n;"afterClose"!==t&&i.$refs?i.$refs.container.trigger(t+".fb",o):r.trigger(t+".fb",o)},updateControls:function(){var t=this,o=t.current,i=o.index,a=t.$refs.container,s=t.$refs.caption,r=o.opts.caption;o.$slide.trigger("refresh"),r&&r.length?(t.$caption=s,s.children().eq(0).html(r)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),a.find("[data-fancybox-count]").html(t.group.length),a.find("[data-fancybox-index]").html(i+1),a.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&i<=0),a.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&i>=t.group.length-1),"image"===o.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=this,n=["infobar","toolbar","nav"];!t&&e.current.opts.preventCaptionOverlap||n.push("caption"),this.$refs.container.removeClass(n.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof b&&("string"==typeof t?e[t].apply(e,o):"function"==typeof t&&t.apply(e,o),e)},open:function(t,e,n){return new b(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",o={};if(t&&e)return void 0===e.left&&void 0===e.top||(n=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==e.scaleX&&void 0!==e.scaleY?n+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(n+=" scaleX("+e.scaleX+")"),n.length&&(o.transform=n),void 0!==e.opacity&&(o.opacity=e.opacity),void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),t.css(o)},animate:function(t,e,o,i,a){var s,r=this;"function"==typeof o&&(i=o,o=null),r.stop(t),s=r.getTranslate(t),t.on(f,function(c){(!c||!c.originalEvent||t.is(c.originalEvent.target)&&"z-index"!=c.originalEvent.propertyName)&&(r.stop(t),!isNaN(parseFloat(o))&&isFinite(o)&&t.css("transition-duration",""),n.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&r.setTranslate(t,{top:e.top,left:e.left,width:s.width*e.scaleX,height:s.height*e.scaleY,scaleX:1,scaleY:1}):!0!==a&&t.removeClass(e),"function"==typeof i&&i(c))}),!isNaN(parseFloat(o))&&isFinite(o)&&t.css("transition-duration",o+"ms"),n.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(f)},o+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(f),t.off(f).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=null;r.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":t=n(this);break;case"mouseup":t=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(t)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,o){if(e)return o=o||"","object"==typeof o&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},e,a.opts.media),t.each(s,function(e,o){if(c=p.match(o.matcher)){if(h=o.type,f=e,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[e],u),p="function"==typeof o.url?o.url.call(this,c,l,a):n(o.url,c,l),r="function"==typeof o.thumb?o.thumb.call(this,c,l,a):n(o.thumb,c),"youtube"===e?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===e&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;if(this[t].loaded)return void setTimeout(function(){n.done(t)});this[t].loading||(this[t].loading=!0,e=document.createElement("script"),e.type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e))},done:function(e){var n,o,i;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(n=t.fancybox.getInstance())&&(o=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?i=new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&(i=new Vimeo.Player(o),i.on("ended",function(){n.next()})))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||"function"==typeof t.get(0).onclick||t.data("selectable"))return!0;for(var e=0,n=t[0].attributes,o=n.length;e<o;e++)if("data-fancybox-"===n[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(i(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$slide,p=u.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&f.length&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||u.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();i.realPoints=i.startPoints=a(o),i.startPoints.length&&(u.touch&&o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=p,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.canPan=d.canPan(),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(f[0].clientWidth),i.canvasHeight=Math.round(f[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=n.fancybox.getTranslate(f),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),((i.opts||i.canPan)&&(c.is(i.$stage)||i.$stage.find(c).length)||(c.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&c.parents(".fancybox-caption").length))&&(i.isScrollable=l(c)||l(c.parent()),n.fancybox.isMobile&&i.isScrollable||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.canPan?(n.fancybox.stop(i.$content),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-is-grabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))))}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.instance,c=s.isSwiping,l=s.sliderStartPos.left||0;if(!0!==c)"x"==c&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?l+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?l-=Math.pow(-s.distanceX,.8):l+=s.distanceX),s.sliderLastPos={top:"x"==c?0:s.sliderStartPos.top+s.distanceY,left:l},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,r.group.length<2&&s.opts.vertical?s.isSwiping="y":r.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);r.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(r.slides,function(t,e){var o,i;n.fancybox.stop(e.$slide),o=n.fancybox.getTranslate(e.$slide),i=n.fancybox.getTranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===r.current.pos&&(s.sliderStartPos.top=o.top-i.top,s.sliderStartPos.left=o.left-i.left),n.fancybox.setTranslate(e.$slide,{top:o.top-i.top,left:o.left-i.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;if(s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5))return void(t.startPoints=t.newPoints);t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&i(t.requestId),t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,x=v-e.centerPointStartY,w=l+(g+y),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&i(e.requestId),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=o.isSwiping,r=o.isPanning,c=o.isZooming,l=o.isScrolling;if(o.endPoints=a(t),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap)return o.onTap(t);o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,r?o.endPanning():c?o.endZooming():o.endSwiping(s,l)},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length,s=Math.abs(o.distanceX),r="x"==t&&a>1&&(o.dMs>130&&s>10||s>50);o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,250)):r&&o.distanceX>0?i=o.instance.previous(300):r&&o.distanceX<0&&(i=o.instance.next(300)),!1!==i||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(!1===i.opts.momentum||i.dMs>350?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+500*i.velocityX,e=i.contentLastPos.top+500*i.velocityY),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,366))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var n=c.opts[t];if("function"==typeof n&&(n=n.apply(r,[c,e])),n)switch(n){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,r.isAnimating||f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,o=n.instance,i=o.current;i&&(!0===t||i.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==i.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},i.opts.slideShow.speed),n.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},i.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;r&&i.opts.slideShow&&80===s&&!e(t.activeElement).is("button,a,input")&&(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(n){var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){var i;if(!n)return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();e&&e.group[e.currIndex].opts.fullScreen?(i=e.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var o=function(t){this.init(t)};e.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,a=n.length;i<a&&(n[i].thumb&&o++,!(o>1));i++);o>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,o=this,i=o.instance,a=o.opts.parentEl,s=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(i.$refs.container.find(a).addBack().filter(a)),o.$grid.on("click","a",function(){i.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e('<div class="'+n+'__list">').appendTo(o.$grid)),e.each(i.group,function(e,n){t=n.thumb,t||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),o.$list[0].innerHTML=s.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+i.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,o=this,i=o.$list,a=o.$grid;o.instance.current&&(e=i.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+o.instance.current.index+'"]').addClass("fancybox-thumbs-active"),n=e.position(),"y"===o.opts.axis&&(n.top<0||n.top>i.height()-e.outerHeight())?i.stop().animate({scrollTop:i.scrollTop()+n.top},t):"x"===o.opts.axis&&(n.left<a.scrollLeft()||n.left>a.scrollLeft()+(a.width()-e.outerWidth()))&&i.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new o(e),n.isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:e,index:o<1?1:o,gallery:i}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,""!==(n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),(i=a(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&!1!==i.opts.hash&&(r=a(o))&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),t.location.hash!=="#"+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null},300)))},"beforeClose.fb":function(n,o,i){i&&!1!==i.opts.hash&&(clearTimeout(o.hashTimer),
13
  o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||"")):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on("hashchange.fb",function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,o){var i=n(o).data("FancyBox");if(i&&i.currentHash)return e=i,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&i(t)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
14
 
15
  var fv_player_fancybox_paused_players = {};
215
  }, false);
216
  }
217
 
218
+ // Lightboxed player behavior improvements
219
  jQuery( function() {
220
  if( typeof(flowplayer) != "undefined" ) {
221
  flowplayer( function(api,root) {
249
  }
250
  });
251
 
252
+ // overriding default Flowplayer fullscreen function
253
  if( flowplayer.support.fullscreen ) { // todo: should also work for YouTube on desktop
254
  api.fullscreen = function() {
255
  jQuery.fancybox.getInstance().FullScreen.toggle();
267
  });
268
  }
269
 
 
 
 
 
 
 
 
270
  }
271
  });
272
  }
292
  }
293
  ratio.css("paddingTop", player.data('ratio') * 100 + "%");
294
  }
295
+
296
+ jQuery(this).find('.fp-preload').remove();
297
+
 
 
 
 
 
 
298
  } );
299
 
300
  }
js/linode-object-storage.js CHANGED
@@ -38,7 +38,7 @@ jQuery( function($) {
38
  });
39
 
40
  return false;
41
- };
42
 
43
  $(document).on("mediaBrowserOpen", function (event) {
44
  fv_flowplayer_media_browser_add_tab('fv_flowplayer_linode_object_storage_browser_media_tab', 'Linode Object Storage', fv_flowplayer_linode_object_storage_browser_load_assets);
38
  });
39
 
40
  return false;
41
+ }
42
 
43
  $(document).on("mediaBrowserOpen", function (event) {
44
  fv_flowplayer_media_browser_add_tab('fv_flowplayer_linode_object_storage_browser_media_tab', 'Linode Object Storage', fv_flowplayer_linode_object_storage_browser_load_assets);
js/s3-browser.js CHANGED
@@ -73,7 +73,7 @@ jQuery( function($) {
73
  } );
74
 
75
  return false;
76
- };
77
 
78
  $( document ).on( "mediaBrowserOpen", function(event) {
79
  fv_flowplayer_media_browser_add_tab('fv_flowplayer_s3_browser_media_tab', 'Amazon S3', fv_flowplayer_s3_browser_load_assets);
73
  } );
74
 
75
  return false;
76
+ }
77
 
78
  $( document ).on( "mediaBrowserOpen", function(event) {
79
  fv_flowplayer_media_browser_add_tab('fv_flowplayer_s3_browser_media_tab', 'Amazon S3', fv_flowplayer_s3_browser_load_assets);
js/s3upload.js CHANGED
@@ -30,8 +30,11 @@ function S3MultiUpload(file) {
30
  S3MultiUpload.prototype.createMultipartUpload = function() {
31
  var self = this;
32
 
33
- // prepend path
34
- self.fileInfo.name = fv_player_media_browser.get_current_folder() + '/' + self.fileInfo.name;
 
 
 
35
 
36
  jQuery.post(self.SERVER_LOC, {
37
  action: 'create_multiupload',
30
  S3MultiUpload.prototype.createMultipartUpload = function() {
31
  var self = this;
32
 
33
+ if( fv_player_media_browser.get_current_folder() === 'Home/' ) { // root folder
34
+ self.fileInfo.name = fv_player_media_browser.get_current_folder() + self.fileInfo.name
35
+ } else { // nested folder
36
+ self.fileInfo.name = fv_player_media_browser.get_current_folder() + '/' + self.fileInfo.name
37
+ }
38
 
39
  jQuery.post(self.SERVER_LOC, {
40
  action: 'create_multiupload',
js/shortcode-editor.js CHANGED
@@ -1,4 +1,4 @@
1
- /*global fvwpflowplayer_helper_tag, fv_wp_flowplayer_re_edit, fv_wp_flowplayer_re_insert, fv_flowplayer_set_post_thumbnail_id, fv_flowplayer_set_post_thumbnail_nonce, */
2
  /*global FCKeditorAPI, setPostThumbnailL10n, send_to_editor, tinymce*/
3
 
4
  // What's here needs to stay global
@@ -204,12 +204,6 @@ jQuery(function() {
204
  return $el_editor.find(selector);
205
  }
206
 
207
- function b64EncodeUnicode(str) {
208
- return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
209
- return String.fromCharCode('0x' + p1);
210
- }));
211
- }
212
-
213
  $doc.ready( function(){
214
  $el_editor = $('#fv-player-shortcode-editor');
215
 
@@ -598,9 +592,10 @@ jQuery(function() {
598
  //When a file is selected, grab the URL and set it as the text field's value
599
  fv_flowplayer_uploader.on('select', function() {
600
  var attachment = fv_flowplayer_uploader.state().get('selection').first().toJSON();
 
601
 
602
- $('.fv_flowplayer_target').val(attachment.url).trigger('change').trigger('keyup');
603
- $('.fv_flowplayer_target').removeClass('fv_flowplayer_target' );
604
 
605
  if( attachment.type == 'video' ) {
606
  if( typeof(attachment.width) != "undefined" && attachment.width > 0 ) {
@@ -613,29 +608,35 @@ jQuery(function() {
613
  file_info_show( { duration: attachment.fileLength } );
614
  }
615
 
616
- } else if( attachment.type == 'image' && typeof(fv_flowplayer_set_post_thumbnail_id) != "undefined" ) {
617
- if( jQuery('#remove-post-thumbnail').length > 0 ){
618
- return;
 
619
  }
620
 
621
- debug_log('Running set-post-thumbnail Ajax.');
622
-
623
- jQuery.post(ajaxurl, {
624
- action:"set-post-thumbnail",
625
- post_id: fv_flowplayer_set_post_thumbnail_id,
626
- thumbnail_id: attachment.id,
627
- _ajax_nonce: fv_flowplayer_set_post_thumbnail_nonce,
628
- cookie: encodeURIComponent(document.cookie)
629
- }, function(str){
630
- var win = window.dialogArguments || opener || parent || top;
631
- if ( str == '0' ) {
632
- alert( setPostThumbnailL10n.error );
633
- } else {
634
- jQuery('#postimagediv .inside').html(str);
635
- jQuery('#postimagediv .inside #plupload-upload-ui').hide();
636
  }
637
- } );
638
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
639
  }
640
  });
641
 
@@ -787,6 +788,8 @@ jQuery(function() {
787
  return;
788
  }
789
 
 
 
790
  is_saving = true;
791
  insert_button_toggle_disabled(true);
792
 
@@ -803,7 +806,19 @@ jQuery(function() {
803
  }, function(response) {
804
 
805
  if( response.error ) {
806
- save_error_show( response.error )
 
 
 
 
 
 
 
 
 
 
 
 
807
  el_spinner.hide();
808
 
809
  is_saving = false;
@@ -952,6 +967,7 @@ jQuery(function() {
952
  $chapters_element = $playlist_row = jQuery('.fv-player-tab-subtitles table[data-index="' + $parent_table.attr('data-index') + '"] #fv_wp_flowplayer_field_chapters'),
953
  $caption_element = $parent_table.find('#fv_wp_flowplayer_field_caption'),
954
  $splash_element = $parent_table.find('#fv_wp_flowplayer_field_splash'),
 
955
  $auto_splash_element = $element.siblings('#fv_wp_flowplayer_field_auto_splash'),
956
  $auto_caption_element = $element.siblings('#fv_wp_flowplayer_field_auto_caption');
957
 
@@ -1160,6 +1176,10 @@ jQuery(function() {
1160
  }
1161
  break;
1162
  }
 
 
 
 
1163
  }
1164
  }
1165
 
@@ -1280,7 +1300,7 @@ jQuery(function() {
1280
  shortcode = shortcode.replace( /(width=[\'"])\d*([\'"])/, "$1320$2" ); // 320
1281
  shortcode = shortcode.replace( /(height=[\'"])\d*([\'"])/, "$1240$2" ); // 240
1282
 
1283
- var url = fv_player_editor_conf.home_url + '?fv_player_embed='+fv_player_editor_conf.preview_nonce+'&fv_player_preview=' + b64EncodeUnicode(shortcode);
1284
  $.get(url, function(response) {
1285
  wrapper.find('.fv-player-editor-preview').html( jQuery('#wrapper',response ) );
1286
  $doc.trigger('fvp-preview-complete', [ shortcode, wrapper.data('key'), wrapper ] );
@@ -1372,6 +1392,7 @@ jQuery(function() {
1372
  return false;
1373
  }*/
1374
 
 
1375
  if ( ( !is_unsaved || is_saving ) && has_draft_status && !is_fv_player_screen( editor_button_clicked ) ) {
1376
  // TODO: change into notification bubble
1377
  alert('Your new player was saved as a draft. To reopen it, open the editor again and use the "Pick existing player" button.');
@@ -2186,6 +2207,9 @@ jQuery(function() {
2186
 
2187
  // The editor failed to load, it's not locked
2188
  edit_lock_removal[current_player_db_id] = 1;
 
 
 
2189
  return;
2190
  }
2191
 
@@ -2860,7 +2884,18 @@ jQuery(function() {
2860
  }, function(response) {
2861
 
2862
  if( response.error ) {
2863
- save_error_show(response.error);
 
 
 
 
 
 
 
 
 
 
 
2864
 
2865
  el_spinner.hide();
2866
  is_saving = false;
@@ -2936,7 +2971,7 @@ jQuery(function() {
2936
 
2937
  jQuery(".fv-wordpress-flowplayer-button").fv_player_box.close();
2938
  } else {
2939
- json_export_data = jQuery('<div/>').text(JSON.stringify(ajax_data)).html();
2940
 
2941
  var overlay = overlay_show('error_saving');
2942
  overlay.find('textarea').val( $('<div/>').text(json_export_data).html() );
@@ -3142,8 +3177,10 @@ jQuery(function() {
3142
  }
3143
 
3144
  get_field('caption',new_item).val(objVid.caption);
 
3145
  get_field('splash',new_item).val(objVid.splash);
3146
  get_field('splash_text',new_item).val(objVid.splash_text);
 
3147
 
3148
  get_field('start',new_item).val(objVid.start);
3149
  get_field('end',new_item).val(objVid.end);
@@ -3973,7 +4010,7 @@ jQuery(function() {
3973
  }
3974
 
3975
  console.log('fv_player_gutenberg_preview',parent,shortcode);
3976
- var url = window.fv_Player_site_base + '?fv_player_embed=' + window.fv_player_editor_conf.preview_nonce + '&fv_player_preview=' + b64EncodeUnicode( shortcode );
3977
 
3978
  // set timeout for the loading AJAX and wait a moment, as REACT will call this function
3979
  // even when we click into the Gutenberg block without actually editing anything
@@ -4066,6 +4103,12 @@ jQuery(function() {
4066
 
4067
  return false;
4068
  },
 
 
 
 
 
 
4069
  };
4070
 
4071
  })(jQuery);
@@ -4086,7 +4129,6 @@ function fv_wp_flowplayer_map_db_values_to_field_values(name, value) {
4086
  switch (name) {
4087
  case 'playlist_advance':
4088
  return ((value == 'true' || value == 'on') ? 'on' : (value == 'default' || value == '') ? 'default' : 'off');
4089
- break;
4090
 
4091
  default: return value;
4092
  }
@@ -4197,7 +4239,7 @@ function fv_player_open_preview_window(url, width, height){
4197
  height = Math.min(window.screen.availHeight * 0.80, height + 25);
4198
  width = Math.min(window.screen.availWidth * 0.66, width + 100);
4199
 
4200
- if(fv_player_preview_window == null || fv_player_preview_window.self == null || fv_player_preview_window.closed ){
4201
  fv_player_preview_window = window.open(url,'window','toolbar=no, menubar=no, resizable=yes width=' + width + ' height=' + height);
4202
  }else{
4203
  fv_player_preview_window.location.assign(url);
@@ -4254,7 +4296,7 @@ function fv_wp_flowplayer_subtitle_parse_arg( args ) {
4254
 
4255
 
4256
  function fv_wp_flowplayer_share_parse_arg( args ) {
4257
- var field = get_field("share")[0];
4258
  if (args[1] == 'yes' ) {
4259
  field.selectedIndex = 1;
4260
  } else if (args[1] == 'no' ) {
@@ -4262,9 +4304,9 @@ function fv_wp_flowplayer_share_parse_arg( args ) {
4262
  } else {
4263
  field.selectedIndex = 3;
4264
  args = args[1].split(';');
4265
- if( typeof(args[0]) == "string" ) get_field('share_url').val(args[0]);
4266
- if( typeof(args[1]) == "string" ) get_field('share_title').val(args[1]);
4267
- get_field("share_custom").show();
4268
  }
4269
  }
4270
 
1
+ /*global fvwpflowplayer_helper_tag, fv_wp_flowplayer_re_edit, fv_player_preview_window, fv_wp_flowplayer_re_insert, fv_flowplayer_set_post_thumbnail_id, fv_flowplayer_set_post_thumbnail_nonce, */
2
  /*global FCKeditorAPI, setPostThumbnailL10n, send_to_editor, tinymce*/
3
 
4
  // What's here needs to stay global
204
  return $el_editor.find(selector);
205
  }
206
 
 
 
 
 
 
 
207
  $doc.ready( function(){
208
  $el_editor = $('#fv-player-shortcode-editor');
209
 
592
  //When a file is selected, grab the URL and set it as the text field's value
593
  fv_flowplayer_uploader.on('select', function() {
594
  var attachment = fv_flowplayer_uploader.state().get('selection').first().toJSON();
595
+ var target_element = $('.fv_flowplayer_target');
596
 
597
+ target_element.val(attachment.url).trigger('change').trigger('keyup');
598
+ target_element.removeClass('fv_flowplayer_target' );
599
 
600
  if( attachment.type == 'video' ) {
601
  if( typeof(attachment.width) != "undefined" && attachment.width > 0 ) {
608
  file_info_show( { duration: attachment.fileLength } );
609
  }
610
 
611
+ } else if( attachment.type == 'image' ) {
612
+ if( attachment.id ) {
613
+ // update splash attachent id
614
+ target_element.closest('table').find('[name="fv_wp_flowplayer_field_splash_attachment_id"]').val(attachment.id);
615
  }
616
 
617
+ if( typeof(fv_flowplayer_set_post_thumbnail_id) != "undefined" ) {
618
+ if( jQuery('#remove-post-thumbnail').length > 0 ) {
619
+ return;
 
 
 
 
 
 
 
 
 
 
 
 
620
  }
 
621
 
622
+ debug_log('Running set-post-thumbnail Ajax.');
623
+
624
+ jQuery.post(ajaxurl, {
625
+ action:"set-post-thumbnail",
626
+ post_id: fv_flowplayer_set_post_thumbnail_id,
627
+ thumbnail_id: attachment.id,
628
+ _ajax_nonce: fv_flowplayer_set_post_thumbnail_nonce,
629
+ cookie: encodeURIComponent(document.cookie)
630
+ }, function(str){
631
+ var win = window.dialogArguments || opener || parent || top;
632
+ if ( str == '0' ) {
633
+ alert( setPostThumbnailL10n.error );
634
+ } else {
635
+ jQuery('#postimagediv .inside').html(str);
636
+ jQuery('#postimagediv .inside #plupload-upload-ui').hide();
637
+ }
638
+ } );
639
+ }
640
  }
641
  });
642
 
788
  return;
789
  }
790
 
791
+ var what_is_saving = ajax_save_this_please;
792
+
793
  is_saving = true;
794
  insert_button_toggle_disabled(true);
795
 
806
  }, function(response) {
807
 
808
  if( response.error ) {
809
+ if( response.fatal_error ) {
810
+ var json_export_data = jQuery('<div/>').text(JSON.stringify(what_is_saving)).html();
811
+
812
+ var overlay = overlay_show('error_saving');
813
+ overlay.find('textarea').val( $('<div/>').text(json_export_data).html() );
814
+ overlay.find('[data-error]').html( response.error );
815
+
816
+ jQuery('#fv_player_copy_to_clipboard').select();
817
+
818
+ } else {
819
+ save_error_show( response.error )
820
+ }
821
+
822
  el_spinner.hide();
823
 
824
  is_saving = false;
967
  $chapters_element = $playlist_row = jQuery('.fv-player-tab-subtitles table[data-index="' + $parent_table.attr('data-index') + '"] #fv_wp_flowplayer_field_chapters'),
968
  $caption_element = $parent_table.find('#fv_wp_flowplayer_field_caption'),
969
  $splash_element = $parent_table.find('#fv_wp_flowplayer_field_splash'),
970
+ $splash_attachment_id_element = $parent_table.find('#fv_wp_flowplayer_field_splash_attachment_id'),
971
  $auto_splash_element = $element.siblings('#fv_wp_flowplayer_field_auto_splash'),
972
  $auto_caption_element = $element.siblings('#fv_wp_flowplayer_field_auto_caption');
973
 
1176
  }
1177
  break;
1178
  }
1179
+ if (json_data.splash_attachment_id) {
1180
+ $splash_attachment_id_element.val(json_data.splash_attachment_id).trigger('change');
1181
+ console.log('New attachment id', json_data.splash_attachment_id)
1182
+ }
1183
  }
1184
  }
1185
 
1300
  shortcode = shortcode.replace( /(width=[\'"])\d*([\'"])/, "$1320$2" ); // 320
1301
  shortcode = shortcode.replace( /(height=[\'"])\d*([\'"])/, "$1240$2" ); // 240
1302
 
1303
+ var url = fv_player_editor_conf.home_url + '?fv_player_embed='+fv_player_editor_conf.preview_nonce+'&fv_player_preview=' + fv_player_editor.b64EncodeUnicode(shortcode);
1304
  $.get(url, function(response) {
1305
  wrapper.find('.fv-player-editor-preview').html( jQuery('#wrapper',response ) );
1306
  $doc.trigger('fvp-preview-complete', [ shortcode, wrapper.data('key'), wrapper ] );
1392
  return false;
1393
  }*/
1394
 
1395
+ // TODO: Why !is_unsaved?
1396
  if ( ( !is_unsaved || is_saving ) && has_draft_status && !is_fv_player_screen( editor_button_clicked ) ) {
1397
  // TODO: change into notification bubble
1398
  alert('Your new player was saved as a draft. To reopen it, open the editor again and use the "Pick existing player" button.');
2207
 
2208
  // The editor failed to load, it's not locked
2209
  edit_lock_removal[current_player_db_id] = 1;
2210
+
2211
+ // Prevent autosave notice from appearing
2212
+ is_unsaved = true;
2213
  return;
2214
  }
2215
 
2884
  }, function(response) {
2885
 
2886
  if( response.error ) {
2887
+ if( response.error && response.fatal_error ) {
2888
+ var json_export_data = jQuery('<div/>').text(JSON.stringify(ajax_data)).html();
2889
+
2890
+ var overlay = overlay_show('error_saving');
2891
+ overlay.find('textarea').val( $('<div/>').text(json_export_data).html() );
2892
+ overlay.find('[data-error]').html( response.error );
2893
+
2894
+ jQuery('#fv_player_copy_to_clipboard').select();
2895
+
2896
+ } else {
2897
+ save_error_show(response.error);
2898
+ }
2899
 
2900
  el_spinner.hide();
2901
  is_saving = false;
2971
 
2972
  jQuery(".fv-wordpress-flowplayer-button").fv_player_box.close();
2973
  } else {
2974
+ var json_export_data = jQuery('<div/>').text(JSON.stringify(ajax_data)).html();
2975
 
2976
  var overlay = overlay_show('error_saving');
2977
  overlay.find('textarea').val( $('<div/>').text(json_export_data).html() );
3177
  }
3178
 
3179
  get_field('caption',new_item).val(objVid.caption);
3180
+ get_field('splash_attachment_id',new_item).val(objVid.splash_attachment_id);
3181
  get_field('splash',new_item).val(objVid.splash);
3182
  get_field('splash_text',new_item).val(objVid.splash_text);
3183
+ get_field('splash_attachment_id',new_item).val(objVid.splash_attachment_id);
3184
 
3185
  get_field('start',new_item).val(objVid.start);
3186
  get_field('end',new_item).val(objVid.end);
4010
  }
4011
 
4012
  console.log('fv_player_gutenberg_preview',parent,shortcode);
4013
+ var url = window.fv_Player_site_base + '?fv_player_embed=' + window.fv_player_editor_conf.preview_nonce + '&fv_player_preview=' + fv_player_editor.b64EncodeUnicode( shortcode );
4014
 
4015
  // set timeout for the loading AJAX and wait a moment, as REACT will call this function
4016
  // even when we click into the Gutenberg block without actually editing anything
4103
 
4104
  return false;
4105
  },
4106
+
4107
+ b64EncodeUnicode(str) {
4108
+ return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function(match, p1) {
4109
+ return String.fromCharCode('0x' + p1);
4110
+ }));
4111
+ },
4112
  };
4113
 
4114
  })(jQuery);
4129
  switch (name) {
4130
  case 'playlist_advance':
4131
  return ((value == 'true' || value == 'on') ? 'on' : (value == 'default' || value == '') ? 'default' : 'off');
 
4132
 
4133
  default: return value;
4134
  }
4239
  height = Math.min(window.screen.availHeight * 0.80, height + 25);
4240
  width = Math.min(window.screen.availWidth * 0.66, width + 100);
4241
 
4242
+ if( typeof fv_player_preview_window == 'undefined' || fv_player_preview_window == null || fv_player_preview_window.self == null || fv_player_preview_window.closed ){
4243
  fv_player_preview_window = window.open(url,'window','toolbar=no, menubar=no, resizable=yes width=' + width + ' height=' + height);
4244
  }else{
4245
  fv_player_preview_window.location.assign(url);
4296
 
4297
 
4298
  function fv_wp_flowplayer_share_parse_arg( args ) {
4299
+ var field = fv_player_editor.get_field("share")[0];
4300
  if (args[1] == 'yes' ) {
4301
  field.selectedIndex = 1;
4302
  } else if (args[1] == 'no' ) {
4304
  } else {
4305
  field.selectedIndex = 3;
4306
  args = args[1].split(';');
4307
+ if( typeof(args[0]) == "string" ) fv_player_editor.get_field('share_url').val(args[0]);
4308
+ if( typeof(args[1]) == "string" ) fv_player_editor.get_field('share_title').val(args[1]);
4309
+ fv_player_editor.get_field("share_custom").show();
4310
  }
4311
  }
4312
 
models/checker.php CHANGED
@@ -422,7 +422,7 @@ class FV_Player_Checker {
422
  if( $aMeta && is_array($aMeta) && count($aMeta) > 0) {
423
  $meta_values = '';
424
  foreach( $aMeta AS $values ) {
425
- $meta_values .= implode( $values );
426
  }
427
  if( preg_match_all( '~\[(?:flowplayer|fvplayer).*?\]~', $meta_values, $meta_matches ) ) {
428
  $matches[0] = array_merge($matches[0], $meta_matches[0]);
422
  if( $aMeta && is_array($aMeta) && count($aMeta) > 0) {
423
  $meta_values = '';
424
  foreach( $aMeta AS $values ) {
425
+ $meta_values .= implode("", $values);
426
  }
427
  if( preg_match_all( '~\[(?:flowplayer|fvplayer).*?\]~', $meta_values, $meta_matches ) ) {
428
  $matches[0] = array_merge($matches[0], $meta_matches[0]);
models/class.fv-player-bunny_stream.php CHANGED
@@ -377,17 +377,32 @@ class FV_Player_Bunny_Stream extends FV_Player_Video_Encoder {
377
  }
378
 
379
  foreach( $_POST['bunny_stream'] AS $k => $v ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
  $fv_fp->conf['bunny_stream'][$k] = trim($v);
381
  }
382
 
383
  $fv_fp->_set_conf( $fv_fp->conf );
384
 
 
 
385
  echo "<div class='updated'><p>Settings saved</p></div>";
386
 
387
  }
388
  } else {
389
  echo "<div class='error'><p>Nonce error.</p></div>";
390
-
391
  }
392
  }
393
 
@@ -482,6 +497,15 @@ class FV_Player_Bunny_Stream extends FV_Player_Video_Encoder {
482
  function getFILE() {
483
  return __FILE__;
484
  }
 
 
 
 
 
 
 
 
 
485
  }
486
 
487
  function FV_Player_Bunny_Stream() {
377
  }
378
 
379
  foreach( $_POST['bunny_stream'] AS $k => $v ) {
380
+ if(strcmp($k,'video_token') === 0 && empty($_POST['bunny_stream']['api_access_key'])) { // video token enabled but no api_access_key provided
381
+ if(isset($fv_fp->conf['bunny_stream'][$k]) && $v != $fv_fp->conf['bunny_stream'][$k] ) { // and setting changed
382
+ // then unset option
383
+ unset($_POST['bunny_stream'][$k]);
384
+ unset($fv_fp->conf['bunny_stream'][$k]);
385
+
386
+ echo "<div class='error'><p>No API Access Key provided to enable or disable Token Authentication.</p></div>";
387
+
388
+ continue;
389
+ }
390
+ }
391
+
392
+ if(in_array($k, array('api_access_key'))) continue; // do not store
393
+
394
  $fv_fp->conf['bunny_stream'][$k] = trim($v);
395
  }
396
 
397
  $fv_fp->_set_conf( $fv_fp->conf );
398
 
399
+ do_action('fv_player_bunny_stream_settings_saved', $_POST);
400
+
401
  echo "<div class='updated'><p>Settings saved</p></div>";
402
 
403
  }
404
  } else {
405
  echo "<div class='error'><p>Nonce error.</p></div>";
 
406
  }
407
  }
408
 
497
  function getFILE() {
498
  return __FILE__;
499
  }
500
+
501
+ function fv_player_pro_compatible() {
502
+ if( function_exists('FV_Player_Pro') && version_compare( str_replace( '.beta','', FV_Player_Pro()->version ) , '7.5.19.727', '>=' ) ) {
503
+ return true;
504
+ }
505
+
506
+ return false;
507
+ }
508
+
509
  }
510
 
511
  function FV_Player_Bunny_Stream() {
models/db-player-meta.php CHANGED
@@ -95,6 +95,8 @@ class FV_Player_Db_Player_Meta {
95
 
96
  self::init_db_name();
97
 
 
 
98
  if( defined('PHPUnitTestMode') || !$fv_fp->_get_option('player_meta_model_db_checked') || $fv_fp->_get_option('player_meta_model_db_checked') != $fv_wp_flowplayer_ver || $force ) {
99
  $sql = "
100
  CREATE TABLE " . self::$db_table_name . " (
@@ -107,9 +109,11 @@ CREATE TABLE " . self::$db_table_name . " (
107
  KEY meta_key (meta_key(191))
108
  )" . $wpdb->get_charset_collate() . ";";
109
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
110
- dbDelta( $sql );
111
  $fv_fp->_set_option('player_meta_model_db_checked', $fv_wp_flowplayer_ver);
112
  }
 
 
113
  }
114
 
115
  /**
95
 
96
  self::init_db_name();
97
 
98
+ $res = false;
99
+
100
  if( defined('PHPUnitTestMode') || !$fv_fp->_get_option('player_meta_model_db_checked') || $fv_fp->_get_option('player_meta_model_db_checked') != $fv_wp_flowplayer_ver || $force ) {
101
  $sql = "
102
  CREATE TABLE " . self::$db_table_name . " (
109
  KEY meta_key (meta_key(191))
110
  )" . $wpdb->get_charset_collate() . ";";
111
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
112
+ $res = dbDelta( $sql );
113
  $fv_fp->_set_option('player_meta_model_db_checked', $fv_wp_flowplayer_ver);
114
  }
115
+
116
+ return $res;
117
  }
118
 
119
  /**
models/db-player.php CHANGED
@@ -417,6 +417,8 @@ class FV_Player_Db_Player {
417
 
418
  self::init_db_name();
419
 
 
 
420
  if( defined('PHPUnitTestMode') || !$fv_fp->_get_option('player_model_db_checked') || $fv_fp->_get_option('player_model_db_checked') != $fv_wp_flowplayer_ver || $force ) {
421
  $sql = "
422
  CREATE TABLE " . self::$db_table_name . " (
@@ -461,9 +463,11 @@ CREATE TABLE " . self::$db_table_name . " (
461
  PRIMARY KEY (id)
462
  )" . $wpdb->get_charset_collate() . ";";
463
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
464
- dbDelta( $sql );
465
  $fv_fp->_set_option('player_model_db_checked', $fv_wp_flowplayer_ver);
466
  }
 
 
467
  }
468
 
469
  /**
@@ -623,8 +627,8 @@ CREATE TABLE " . self::$db_table_name . " (
623
  $this->fill_properties($options);
624
 
625
  // add dates for newly created players
626
- if( empty($this->date_created) ) $this->date_created = strftime( '%Y-%m-%d %H:%M:%S', time() );
627
- if( empty($this->date_modified) ) $this->date_modified = strftime( '%Y-%m-%d %H:%M:%S', time() );
628
 
629
  // add author, if we're creating new player and not loading a player from DB for caching purposes
630
  if ( empty($options['author']) ) {
@@ -703,6 +707,42 @@ CREATE TABLE " . self::$db_table_name . " (
703
  }
704
  }
705
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
706
  /**
707
  * Returns all global options data for this player.
708
  *
@@ -877,7 +917,7 @@ CREATE TABLE " . self::$db_table_name . " (
877
  $data_values = array();
878
 
879
  // fill date(s)
880
- $this->date_modified = strftime( '%Y-%m-%d %H:%M:%S', time() );
881
 
882
  if (!$is_update && empty($this->date_created) ) {
883
  $this->date_created = $this->date_modified;
417
 
418
  self::init_db_name();
419
 
420
+ $res = false;
421
+
422
  if( defined('PHPUnitTestMode') || !$fv_fp->_get_option('player_model_db_checked') || $fv_fp->_get_option('player_model_db_checked') != $fv_wp_flowplayer_ver || $force ) {
423
  $sql = "
424
  CREATE TABLE " . self::$db_table_name . " (
463
  PRIMARY KEY (id)
464
  )" . $wpdb->get_charset_collate() . ";";
465
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
466
+ $res = dbDelta( $sql );
467
  $fv_fp->_set_option('player_model_db_checked', $fv_wp_flowplayer_ver);
468
  }
469
+
470
+ return $res;
471
  }
472
 
473
  /**
627
  $this->fill_properties($options);
628
 
629
  // add dates for newly created players
630
+ if( empty($this->date_created) ) $this->date_created = date_format( date_create(), "Y-m-d H:i:s" );
631
+ if( empty($this->date_modified) ) $this->date_modified = date_format( date_create(), "Y-m-d H:i:s" );
632
 
633
  // add author, if we're creating new player and not loading a player from DB for caching purposes
634
  if ( empty($options['author']) ) {
707
  }
708
  }
709
 
710
+ /**
711
+ * Returns player name, if its empty then its assembled from video captions and /or sources
712
+ *
713
+ * @return string player name from getter or assembled name
714
+ */
715
+ public function getPlayerNameWithFallback() {
716
+ $player_name = $this->getPlayerName();
717
+
718
+ // player name is present - return it
719
+ if( !empty( $player_name ) ) {
720
+ return $player_name;
721
+ }
722
+
723
+ // else assemble player name
724
+ $player_name = array();
725
+
726
+ foreach( $this->getVideos() as $video ) {
727
+ $caption = $video->getCaption();
728
+ if( !$caption ) {
729
+ $caption = $video->getCaptionFromSrc();
730
+ }
731
+
732
+ $player_name[] = $caption;
733
+ }
734
+
735
+ // join name items
736
+ $player_name = join(', ', $player_name);
737
+
738
+ // add "Draft" at the end of player, if in draft status
739
+ if ( $this->getStatus() == 'draft' ) {
740
+ $player_name .= ' (' . __('Draft', 'fv-wordpress-flowplayer') . ')';
741
+ }
742
+
743
+ return $player_name;
744
+ }
745
+
746
  /**
747
  * Returns all global options data for this player.
748
  *
917
  $data_values = array();
918
 
919
  // fill date(s)
920
+ $this->date_modified = date_format( date_create(), "Y-m-d H:i:s" );
921
 
922
  if (!$is_update && empty($this->date_created) ) {
923
  $this->date_created = $this->date_modified;
models/db-video-meta.php CHANGED
@@ -101,6 +101,8 @@ class FV_Player_Db_Video_Meta {
101
 
102
  self::init_db_name();
103
 
 
 
104
  if( defined('PHPUnitTestMode') || !$fv_fp->_get_option('video_meta_model_db_checked') || $fv_fp->_get_option('video_meta_model_db_checked') != $fv_wp_flowplayer_ver || $force ) {
105
  $sql = "
106
  CREATE TABLE " . self::$db_table_name . " (
@@ -113,9 +115,11 @@ CREATE TABLE " . self::$db_table_name . " (
113
  KEY meta_key (meta_key(191))
114
  )" . $wpdb->get_charset_collate() . ";";
115
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
116
- dbDelta( $sql );
117
  $fv_fp->_set_option('video_meta_model_db_checked', $fv_wp_flowplayer_ver);
118
  }
 
 
119
  }
120
 
121
  /**
101
 
102
  self::init_db_name();
103
 
104
+ $res = false;
105
+
106
  if( defined('PHPUnitTestMode') || !$fv_fp->_get_option('video_meta_model_db_checked') || $fv_fp->_get_option('video_meta_model_db_checked') != $fv_wp_flowplayer_ver || $force ) {
107
  $sql = "
108
  CREATE TABLE " . self::$db_table_name . " (
115
  KEY meta_key (meta_key(191))
116
  )" . $wpdb->get_charset_collate() . ";";
117
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
118
+ $res = dbDelta( $sql );
119
  $fv_fp->_set_option('video_meta_model_db_checked', $fv_wp_flowplayer_ver);
120
  }
121
+
122
+ return $res;
123
  }
124
 
125
  /**
models/db-video.php CHANGED
@@ -29,6 +29,7 @@ class FV_Player_Db_Video {
29
  $rtmp_path, // if RTMP is set, this will have the path on the server to the RTMP stream
30
  $splash, // URL to the splash screen picture
31
  $splash_text, // an optional splash screen text
 
32
  $src, // the main video source
33
  $src1, // alternative source path #1 for the video
34
  $src2, // alternative source path #2 for the video
@@ -123,6 +124,13 @@ class FV_Player_Db_Video {
123
  return $this->splash_text;
124
  }
125
 
 
 
 
 
 
 
 
126
  /**
127
  * @return string
128
  */
@@ -194,6 +202,8 @@ class FV_Player_Db_Video {
194
 
195
  self::init_db_name();
196
 
 
 
197
  if( defined('PHPUnitTestMode') || !$fv_fp->_get_option('video_model_db_checked') || $fv_fp->_get_option('video_model_db_checked') != $fv_wp_flowplayer_ver || $force ) {
198
  $sql = "
199
  CREATE TABLE " . self::$db_table_name . " (
@@ -201,6 +211,7 @@ CREATE TABLE " . self::$db_table_name . " (
201
  src varchar(1024) NOT NULL,
202
  src1 varchar(1024) NOT NULL,
203
  src2 varchar(1024) NOT NULL,
 
204
  splash varchar(1024) NOT NULL,
205
  splash_text varchar(1024) NOT NULL,
206
  caption varchar(1024) NOT NULL,
@@ -214,9 +225,12 @@ CREATE TABLE " . self::$db_table_name . " (
214
  KEY caption (caption(191))
215
  )" . $wpdb->get_charset_collate() . ";";
216
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
217
- dbDelta( $sql );
 
218
  $fv_fp->_set_option('video_model_db_checked', $fv_wp_flowplayer_ver);
219
  }
 
 
220
  }
221
 
222
  /**
@@ -645,6 +659,25 @@ CREATE TABLE " . self::$db_table_name . " (
645
  $data_keys = array();
646
  $data_values = array();
647
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
648
  foreach (get_object_vars($this) as $property => $value) {
649
  if ($property != 'id' && $property != 'is_valid' && $property != 'db_table_name' && $property != 'DB_Instance' && $property != 'meta_data' && $property != 'ignored_video_fields') {
650
  $data_keys[] = $property . ' = %s';
@@ -654,7 +687,7 @@ CREATE TABLE " . self::$db_table_name . " (
654
 
655
  $sql .= implode(',', $data_keys);
656
 
657
- if ($is_update) {
658
  $sql .= ' WHERE id = ' . $this->id;
659
  }
660
 
@@ -689,7 +722,7 @@ CREATE TABLE " . self::$db_table_name . " (
689
  foreach ($meta_data as $meta_record) {
690
  // it's possible that we switched the checkbox off and then on, by that time its id won't exist anymore! Todo: remove data-id instead?
691
  if( !empty($meta_record['id']) && empty($existing_meta_ids[$meta_record['id']]) ) {
692
- unset($meta_record['id']);
693
  }
694
 
695
  // if the meta value has no ID associated, we replace the first one which exists, effectively preventing multiple values under the same meta key, which is something to improve, perhaps
@@ -725,6 +758,25 @@ CREATE TABLE " . self::$db_table_name . " (
725
  $cache[$this->id] = $this;
726
  self::$DB_Instance->setVideosCache($cache);
727
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
728
  return $this->id;
729
  } else {
730
  /*var_export($wpdb->last_error);
29
  $rtmp_path, // if RTMP is set, this will have the path on the server to the RTMP stream
30
  $splash, // URL to the splash screen picture
31
  $splash_text, // an optional splash screen text
32
+ $splash_attachment_id, // splash attachment id
33
  $src, // the main video source
34
  $src1, // alternative source path #1 for the video
35
  $src2, // alternative source path #2 for the video
124
  return $this->splash_text;
125
  }
126
 
127
+ /**
128
+ * @return int
129
+ */
130
+ public function getSplashAttachmentId() {
131
+ return $this->splash_attachment_id;
132
+ }
133
+
134
  /**
135
  * @return string
136
  */
202
 
203
  self::init_db_name();
204
 
205
+ $res = false;
206
+
207
  if( defined('PHPUnitTestMode') || !$fv_fp->_get_option('video_model_db_checked') || $fv_fp->_get_option('video_model_db_checked') != $fv_wp_flowplayer_ver || $force ) {
208
  $sql = "
209
  CREATE TABLE " . self::$db_table_name . " (
211
  src varchar(1024) NOT NULL,
212
  src1 varchar(1024) NOT NULL,
213
  src2 varchar(1024) NOT NULL,
214
+ splash_attachment_id bigint(20) unsigned,
215
  splash varchar(1024) NOT NULL,
216
  splash_text varchar(1024) NOT NULL,
217
  caption varchar(1024) NOT NULL,
225
  KEY caption (caption(191))
226
  )" . $wpdb->get_charset_collate() . ";";
227
  require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
228
+ $res = dbDelta( $sql );
229
+
230
  $fv_fp->_set_option('video_model_db_checked', $fv_wp_flowplayer_ver);
231
  }
232
+
233
+ return $res;
234
  }
235
 
236
  /**
659
  $data_keys = array();
660
  $data_values = array();
661
 
662
+ $splash_attachment_id = $this->getSplashAttachmentId();
663
+
664
+ if( $is_update ) {
665
+ // check if splash url changed
666
+ if( !empty( $splash_attachment_id ) ) {
667
+ $saved_splash = wp_get_attachment_image_url($splash_attachment_id, 'full', false);
668
+ if( !empty( $saved_splash ) ) {
669
+ $saved_parse = wp_parse_url( $saved_splash );
670
+ $current_parse = $this->getSplash() ? wp_parse_url( $this->getSplash() ) : false;
671
+
672
+ // if splash removed or changed, delete splash attachment
673
+ if( !$current_parse || (strcmp( $saved_parse['path'], $current_parse['path'] ) !== 0) ) {
674
+ delete_post_meta( $splash_attachment_id, 'fv_player_video_id', $this->getId() );
675
+ $this->splash_attachment_id = '';
676
+ }
677
+ }
678
+ }
679
+ }
680
+
681
  foreach (get_object_vars($this) as $property => $value) {
682
  if ($property != 'id' && $property != 'is_valid' && $property != 'db_table_name' && $property != 'DB_Instance' && $property != 'meta_data' && $property != 'ignored_video_fields') {
683
  $data_keys[] = $property . ' = %s';
687
 
688
  $sql .= implode(',', $data_keys);
689
 
690
+ if ( $is_update ) {
691
  $sql .= ' WHERE id = ' . $this->id;
692
  }
693
 
722
  foreach ($meta_data as $meta_record) {
723
  // it's possible that we switched the checkbox off and then on, by that time its id won't exist anymore! Todo: remove data-id instead?
724
  if( !empty($meta_record['id']) && empty($existing_meta_ids[$meta_record['id']]) ) {
725
+ unset($meta_record['id']);
726
  }
727
 
728
  // if the meta value has no ID associated, we replace the first one which exists, effectively preventing multiple values under the same meta key, which is something to improve, perhaps
758
  $cache[$this->id] = $this;
759
  self::$DB_Instance->setVideosCache($cache);
760
 
761
+ $saved_attachments = $wpdb->get_col(
762
+ $wpdb->prepare( "SELECT post_id FROM `{$wpdb->postmeta}` WHERE meta_key = 'fv_player_video_id' AND meta_value = %d", $this->getId() )
763
+ );
764
+
765
+ // check for unused attachments
766
+ if( !empty( $saved_attachments ) ) {
767
+ foreach( $saved_attachments as $post_id ) {
768
+ // remove if not used
769
+ if( $splash_attachment_id != $post_id ) {
770
+ delete_post_meta( $post_id, 'fv_player_video_id' );
771
+ }
772
+ }
773
+ }
774
+
775
+ // store video id for splash attachment
776
+ if( $splash_attachment_id ) {
777
+ update_post_meta( $splash_attachment_id, 'fv_player_video_id', $this->getId() );
778
+ }
779
+
780
  return $this->id;
781
  } else {
782
  /*var_export($wpdb->last_error);
models/db.php CHANGED
@@ -29,7 +29,8 @@ class FV_Player_Db {
29
  //$player_atts_cache = array(),
30
  $player_meta_cache = array(),
31
  $player_ids_when_searching,
32
- $stopwords; // used in get_search_stopwords method
 
33
 
34
  public function __construct() {
35
  add_action( 'toplevel_page_fv_player', array($this, 'init_tables') );
@@ -52,10 +53,23 @@ class FV_Player_Db {
52
  }
53
 
54
  public function init_tables() {
 
 
 
 
 
 
 
55
  FV_Player_Db_Player::initDB(true);
56
  FV_Player_Db_Player_Meta::initDB(true);
57
  FV_Player_Db_Video::initDB(true);
58
  FV_Player_Db_Video_Meta::initDB(true);
 
 
 
 
 
 
59
  }
60
 
61
  public function getVideosCache() {
@@ -405,7 +419,7 @@ class FV_Player_Db {
405
 
406
  // no player name, we'll assemble it from video captions and/or sources
407
  if (!$result_row->player_name) {
408
- $result_row->player_name = array();
409
  }
410
 
411
  foreach (explode(',', $player->getVideoIds()) as $video_id) {
@@ -418,13 +432,8 @@ class FV_Player_Db {
418
  $caption = $video->getCaption();
419
  if( !$caption ) {
420
  $caption = $video->getCaptionFromSrc();
421
- }
422
-
423
- // assemble video name, if there's no player name
424
- if (is_array($result_row->player_name)) {
425
- $result_row->player_name[] = $caption;
426
  }
427
-
428
  // assemble video splash
429
  if (isset($videos[ $video_id ]) && $videos[ $video_id ]->getSplash()) {
430
  // use splash with caption / filename in a span
@@ -441,16 +450,6 @@ class FV_Player_Db {
441
  }
442
  }
443
 
444
- // join name items, if present
445
- if (is_array($result_row->player_name)) {
446
- $result_row->player_name = join(', ', $result_row->player_name);
447
- }
448
-
449
- // add "Draft" at the end of player, if in draft status
450
- if ( $player->getStatus() == 'draft' ) {
451
- $result_row->player_name .= ' (' . __('Draft', 'fv-wordpress-flowplayer') . ')';
452
- }
453
-
454
  // join thumbnails
455
  $result_row->thumbs = join(' ', $result_row->thumbs);
456
 
@@ -1100,6 +1099,11 @@ class FV_Player_Db {
1100
  // save only if we're not requesting new instances for preview purposes
1101
  if (!$data) {
1102
  $id_video = $video->save( $video_meta );
 
 
 
 
 
1103
  } else {
1104
  $video->link2meta( $video_meta );
1105
  }
@@ -1166,7 +1170,8 @@ class FV_Player_Db {
1166
 
1167
  echo wp_json_encode( $this->db_load_player_data( $id ) );
1168
  } else {
1169
- wp_send_json( array( 'error' => 'Failed to save player.' ) );
 
1170
  }
1171
  } else {
1172
  $player->link2meta( $player_meta );
@@ -1282,6 +1287,11 @@ class FV_Player_Db {
1282
 
1283
  $out = $this->db_load_player_data( $_POST['playerID'] );
1284
 
 
 
 
 
 
1285
  header('Content-Type: application/json');
1286
  if (version_compare(phpversion(), '5.3', '<')) {
1287
  echo json_encode($out);
@@ -1397,12 +1407,12 @@ class FV_Player_Db {
1397
  count(subtitles.id) as subtitles_count,
1398
  count(cues.id) as cues_count,
1399
  count(chapters.id) as chapters_count,
1400
- count(transcript.id) as transcript_count';
1401
  $meta_counts_join = 'JOIN `'.FV_Player_Db_Video::get_db_table_name().'` AS v on FIND_IN_SET(v.id, p.videos)
1402
  LEFT JOIN `'.$meta_table.'` AS subtitles ON v.id = subtitles.id_video AND subtitles.meta_key like "subtitles%"
1403
- LEFT JOIN `'.$meta_table.'` AS cues ON v.id = cues.id_video AND cues.meta_key like "cues%"
1404
- LEFT JOIN `'.$meta_table.'` AS chapters ON v.id = chapters.id_video AND chapters.meta_key = "chapters"
1405
- LEFT JOIN `'.$meta_table.'` AS transcript ON v.id = transcript.id_video AND transcript.meta_key = "transcript"
1406
  ';
1407
  }
1408
 
29
  //$player_atts_cache = array(),
30
  $player_meta_cache = array(),
31
  $player_ids_when_searching,
32
+ $stopwords, // used in get_search_stopwords method
33
+ $database_upgrade_queries = false;
34
 
35
  public function __construct() {
36
  add_action( 'toplevel_page_fv_player', array($this, 'init_tables') );
53
  }
54
 
55
  public function init_tables() {
56
+ if( !defined('SAVEQUERIES') ) {
57
+ define( 'SAVEQUERIES', true );
58
+ }
59
+
60
+ global $wpdb;
61
+ $wpdb->queries = array();
62
+
63
  FV_Player_Db_Player::initDB(true);
64
  FV_Player_Db_Player_Meta::initDB(true);
65
  FV_Player_Db_Video::initDB(true);
66
  FV_Player_Db_Video_Meta::initDB(true);
67
+
68
+ $this->database_upgrade_queries = $wpdb->queries;
69
+ }
70
+
71
+ public function getDatabaseUpgradeStatus() {
72
+ return $this->database_upgrade_queries;
73
  }
74
 
75
  public function getVideosCache() {
419
 
420
  // no player name, we'll assemble it from video captions and/or sources
421
  if (!$result_row->player_name) {
422
+ $result_row->player_name = $player->getPlayerNameWithFallback();
423
  }
424
 
425
  foreach (explode(',', $player->getVideoIds()) as $video_id) {
432
  $caption = $video->getCaption();
433
  if( !$caption ) {
434
  $caption = $video->getCaptionFromSrc();
 
 
 
 
 
435
  }
436
+
437
  // assemble video splash
438
  if (isset($videos[ $video_id ]) && $videos[ $video_id ]->getSplash()) {
439
  // use splash with caption / filename in a span
450
  }
451
  }
452
 
 
 
 
 
 
 
 
 
 
 
453
  // join thumbnails
454
  $result_row->thumbs = join(' ', $result_row->thumbs);
455
 
1099
  // save only if we're not requesting new instances for preview purposes
1100
  if (!$data) {
1101
  $id_video = $video->save( $video_meta );
1102
+ if( !$id_video ) {
1103
+ global $wpdb;
1104
+ wp_send_json( array( 'fatal_error' => true, 'error' => 'Failed to save the video: '.$wpdb->last_error ) );
1105
+ exit;
1106
+ }
1107
  } else {
1108
  $video->link2meta( $video_meta );
1109
  }
1170
 
1171
  echo wp_json_encode( $this->db_load_player_data( $id ) );
1172
  } else {
1173
+ global $wpdb;
1174
+ wp_send_json( array( 'fatal_error' => true, 'error' => 'Failed to save player: '.$wpdb->last_error ) );
1175
  }
1176
  } else {
1177
  $player->link2meta( $player_meta );
1287
 
1288
  $out = $this->db_load_player_data( $_POST['playerID'] );
1289
 
1290
+ if( empty($out['videos']) ) {
1291
+ wp_send_json( array( 'error' => "Failed to load videos for this player." ) );
1292
+ exit;
1293
+ }
1294
+
1295
  header('Content-Type: application/json');
1296
  if (version_compare(phpversion(), '5.3', '<')) {
1297
  echo json_encode($out);
1407
  count(subtitles.id) as subtitles_count,
1408
  count(cues.id) as cues_count,
1409
  count(chapters.id) as chapters_count,
1410
+ count(meta_transcript.id) as transcript_count';
1411
  $meta_counts_join = 'JOIN `'.FV_Player_Db_Video::get_db_table_name().'` AS v on FIND_IN_SET(v.id, p.videos)
1412
  LEFT JOIN `'.$meta_table.'` AS subtitles ON v.id = subtitles.id_video AND subtitles.meta_key like "subtitles%"
1413
+ LEFT JOIN `'.$meta_table.'` AS cues ON v.id = cues.id_video AND cues.meta_key like \'cues%\'
1414
+ LEFT JOIN `'.$meta_table.'` AS chapters ON v.id = chapters.id_video AND chapters.meta_key = \'chapters\'
1415
+ LEFT JOIN `'.$meta_table.'` AS meta_transcript ON v.id = meta_transcript.id_video AND meta_transcript.meta_key = \'transcript\'
1416
  ';
1417
  }
1418
 
models/digitalocean-spaces.class.php CHANGED
@@ -16,7 +16,7 @@ class FV_Player_DigitalOcean_Spaces extends FV_Player_CDN {
16
 
17
  // includes the Digital Ocean Spaces handling class itself
18
  public function include_dos_media_browser() {
19
- if ( is_admin() && version_compare(phpversion(),'5.5.0') != -1 ) {
20
  include( dirname( __FILE__ ) . '/digitalocean-spaces-browser.class.php' );
21
  }
22
  }
@@ -117,7 +117,8 @@ class FV_Player_DigitalOcean_Spaces extends FV_Player_CDN {
117
  ) );
118
  $fv_fp->_get_input_text( array(
119
  'key' => array($this->key,'secret'),
120
- 'name' => 'Secret'
 
121
  ) );
122
  ?>
123
  <tr>
16
 
17
  // includes the Digital Ocean Spaces handling class itself
18
  public function include_dos_media_browser() {
19
+ if ( is_admin() && version_compare(phpversion(),'7.2.5') != -1 ) {
20
  include( dirname( __FILE__ ) . '/digitalocean-spaces-browser.class.php' );
21
  }
22
  }
117
  ) );
118
  $fv_fp->_get_input_text( array(
119
  'key' => array($this->key,'secret'),
120
+ 'name' => 'Secret',
121
+ 'secret' => true
122
  ) );
123
  ?>
124
  <tr>
models/email-subscription.php CHANGED
@@ -15,14 +15,14 @@ class FV_Player_Email_Subscription {
15
 
16
  add_action( 'wp_ajax_fv_player_email_subscription_save', array($this, 'save_settings') );
17
 
18
- if( !empty($_GET['fv-email-export']) && !empty($_GET['page']) && $_GET['page'] === 'fvplayer'){
19
  add_action('admin_init', array( $this, 'csv_export' ) );
20
  }
21
 
22
- if( !empty($_GET['fv-email-export-screen']) && !empty($_GET['page']) && $_GET['page'] === 'fvplayer'){
23
- add_action('in_admin_header',array($this,'admin_export_screen'));
24
  }
25
-
26
  add_filter( 'fv_flowplayer_attributes', array( $this, 'popup_preview' ), 10, 3 );
27
 
28
  }
@@ -233,7 +233,8 @@ class FV_Player_Email_Subscription {
233
  </td>
234
  </tr>
235
  <tr>
236
- <td>
 
237
  <input type="button" value="<?php _e('Add More Lists', 'fv-wordpress-flowplayer'); ?>" class="button" id="fv-player-email_lists-add" />
238
  </td>
239
  </tr>
@@ -288,7 +289,7 @@ class FV_Player_Email_Subscription {
288
  var shortcode = '<?php echo '[fvplayer src="https://player.vimeo.com/external/196881410.hd.mp4?s=24645ecff21ff60079fc5b7715a97c00f90c6a18&profile_id=174&oauth2_token_id=3501005" splash="https://i.vimeocdn.com/video/609485450_1280.jpg" preroll="no" postroll="no" subtitles="'.flowplayer::get_plugin_url().'/images/test-subtitles.vtt" end_popup_preview="true" popup="email-#key#" caption="'.__("This is how the popup will appear at the end of a video",'fv-wordpress-flowplayer').'"]'; ?>';
289
  shortcode = shortcode.replace(/#key#/,key);
290
 
291
- var url = '<?php echo home_url(); ?>?fv_player_embed=<?php echo wp_create_nonce( "fv-player-preview-".get_current_user_id() ); ?>&fv_player_preview=' + b64EncodeUnicode(shortcode);
292
  fv_player_open_preview_window(url);
293
  },
294
  error: function() {
@@ -552,7 +553,7 @@ class FV_Player_Email_Subscription {
552
  die(json_encode($result));
553
  }
554
 
555
- function csv_export(){
556
  if( !current_user_can('manage_options') ) return;
557
 
558
  $list_id = intval($_GET['fv-email-export']);
15
 
16
  add_action( 'wp_ajax_fv_player_email_subscription_save', array($this, 'save_settings') );
17
 
18
+ if( isset($_GET['fv-email-export']) && !empty($_GET['page']) && $_GET['page'] === 'fvplayer') {
19
  add_action('admin_init', array( $this, 'csv_export' ) );
20
  }
21
 
22
+ if( isset($_GET['fv-email-export-screen']) && !empty($_GET['page']) && $_GET['page'] === 'fvplayer') {
23
+ add_action( 'admin_notices', array($this,'admin_export_screen') );
24
  }
25
+
26
  add_filter( 'fv_flowplayer_attributes', array( $this, 'popup_preview' ), 10, 3 );
27
 
28
  }
233
  </td>
234
  </tr>
235
  <tr>
236
+ <td>
237
+ <input type="submit" name="fv-wp-flowplayer-submit" class="button-primary" value="Save All Changes">
238
  <input type="button" value="<?php _e('Add More Lists', 'fv-wordpress-flowplayer'); ?>" class="button" id="fv-player-email_lists-add" />
239
  </td>
240
  </tr>
289
  var shortcode = '<?php echo '[fvplayer src="https://player.vimeo.com/external/196881410.hd.mp4?s=24645ecff21ff60079fc5b7715a97c00f90c6a18&profile_id=174&oauth2_token_id=3501005" splash="https://i.vimeocdn.com/video/609485450_1280.jpg" preroll="no" postroll="no" subtitles="'.flowplayer::get_plugin_url().'/images/test-subtitles.vtt" end_popup_preview="true" popup="email-#key#" caption="'.__("This is how the popup will appear at the end of a video",'fv-wordpress-flowplayer').'"]'; ?>';
290
  shortcode = shortcode.replace(/#key#/,key);
291
 
292
+ var url = '<?php echo home_url(); ?>?fv_player_embed=<?php echo wp_create_nonce( "fv-player-preview-".get_current_user_id() ); ?>&fv_player_preview=' + fv_player_editor.b64EncodeUnicode(shortcode);
293
  fv_player_open_preview_window(url);
294
  },
295
  error: function() {
553
  die(json_encode($result));
554
  }
555
 
556
+ function csv_export() {
557
  if( !current_user_can('manage_options') ) return;
558
 
559
  $list_id = intval($_GET['fv-email-export']);
models/flowplayer-frontend.php CHANGED
@@ -266,7 +266,14 @@ class flowplayer_frontend extends flowplayer
266
 
267
  if( count($aPlaylistItems) == 1 && empty($this->aCurArgs['listshow']) ) {
268
  $playlist_items_external_html = false;
269
- $attributes[ !empty($this->aCurArgs['lazy']) ? 'data-item-lazy' : 'data-item' ] = $this->json_encode( apply_filters( 'fv_player_item', $aPlaylistItems[0], 0, $this->aCurArgs ) );
 
 
 
 
 
 
 
270
  }
271
 
272
  $this->aCurArgs = apply_filters( 'fv_flowplayer_args', $this->aCurArgs, $this->hash, $media, $aPlaylistItems );
@@ -546,6 +553,12 @@ class flowplayer_frontend extends flowplayer
546
  }
547
 
548
  $attributes['style'] = '';
 
 
 
 
 
 
549
  if( !empty($this->aCurArgs['playlist']) && in_array( $this->aCurArgs['liststyle'], array('horizontal','slider','vertical','prevnext') ) ) {
550
  $attributes['style'] .= 'max-width: 100%; ';
551
  } else if( !$bIsAudio ) {
@@ -672,6 +685,11 @@ class flowplayer_frontend extends flowplayer
672
  if( $ad_contents = $this->get_ad_code() ) {
673
  $attributes['data-ad'] = $this->json_encode( $ad_contents );
674
  }
 
 
 
 
 
675
 
676
  add_filter( 'fv_flowplayer_attributes', array( $this, 'get_speed_attribute' ) );
677
 
@@ -694,14 +712,22 @@ class flowplayer_frontend extends flowplayer
694
  if( is_numeric($splash_img) ) {
695
  $image = wp_get_attachment_image($splash_img, 'full', false, array('class' => 'fp-splash', 'fv_sizes' => '25vw, 50vw, 100vw') );
696
  } else {
697
- $image = '<img class="fp-splash" alt="'.esc_attr($alt).'" src="'.esc_attr($splash_img).'" />';
 
 
 
 
 
698
  }
699
 
700
  $this->ret['html'] .= "\t".$image."\n";
701
  }
702
 
703
- if( !$bIsAudio ) {
704
- $this->ret['html'] .= "\t".'<div class="fp-ui"><noscript>Please enable JavaScript</noscript><div class="fp-preload"><b></b><b></b><b></b><b></b></div></div>'."\n";
 
 
 
705
  }
706
 
707
  $this->ret['html'] .= $this->get_buttons();
@@ -712,7 +738,7 @@ class flowplayer_frontend extends flowplayer
712
 
713
  if( flowplayer::is_special_editor() ) {
714
  $this->ret['html'] .= '<div class="fp-ui"></div>';
715
- } else if( current_user_can('manage_options') && empty($this->aCurArgs['lazy']) && empty($this->aCurArgs['lightbox']) ) {
716
  $this->ret['html'] .= '<div id="wpfp_'.$this->hash.'_admin_error" class="fvfp_admin_error"><div class="fvfp_admin_error_content"><h4>Admin JavaScript warning:</h4><p>I\'m sorry, your JavaScript appears to be broken. Please use "Check template" in plugin settings, read our <a href="https://foliovision.com/player/installation#fixing-broken-javascript" target="_blank">troubleshooting guide</a>, <a href="https://foliovision.com/troubleshooting-javascript-errors" target="_blank">troubleshooting guide for programmers</a> or <a href="https://foliovision.com/pro-support" target="_blank">order our pro support</a> and we will get it fixed for you.</p></div></div>';
717
  }
718
 
@@ -914,6 +940,36 @@ class flowplayer_frontend extends flowplayer
914
  return user_trailingslashit( trailingslashit( get_permalink() ).$append );
915
  }
916
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
917
 
918
 
919
  function get_popup_code() {
266
 
267
  if( count($aPlaylistItems) == 1 && empty($this->aCurArgs['listshow']) ) {
268
  $playlist_items_external_html = false;
269
+
270
+ // Do not put in video data if there is an error to avoid playback
271
+ if( !empty($this->aCurArgs['error']) ) {
272
+ // Put in some minimal information to avoid JS errors
273
+ $attributes['data-item'] = $this->json_encode( array( 'sources' => array( array( 'src' => '', 'type' => '' ) ) ) );
274
+ } else {
275
+ $attributes[ !empty($this->aCurArgs['lazy']) ? 'data-item-lazy' : 'data-item' ] = $this->json_encode( apply_filters( 'fv_player_item', $aPlaylistItems[0], 0, $this->aCurArgs ) );
276
+ }
277
  }
278
 
279
  $this->aCurArgs = apply_filters( 'fv_flowplayer_args', $this->aCurArgs, $this->hash, $media, $aPlaylistItems );
553
  }
554
 
555
  $attributes['style'] = '';
556
+
557
+ // If FV Player CSS was not yet enqueue (in header) make sure to use minimal styling to avoid CLS
558
+ if( !wp_style_is('fv_flowplayer') ) {
559
+ $attributes['style'] = 'position:relative; ';
560
+ }
561
+
562
  if( !empty($this->aCurArgs['playlist']) && in_array( $this->aCurArgs['liststyle'], array('horizontal','slider','vertical','prevnext') ) ) {
563
  $attributes['style'] .= 'max-width: 100%; ';
564
  } else if( !$bIsAudio ) {
685
  if( $ad_contents = $this->get_ad_code() ) {
686
  $attributes['data-ad'] = $this->json_encode( $ad_contents );
687
  }
688
+
689
+ // Tell the preload script to not try to load the player
690
+ if( !empty($this->aCurArgs['error']) ) {
691
+ $attributes['data-error'] = $this->aCurArgs['error'];
692
+ }
693
 
694
  add_filter( 'fv_flowplayer_attributes', array( $this, 'get_speed_attribute' ) );
695
 
712
  if( is_numeric($splash_img) ) {
713
  $image = wp_get_attachment_image($splash_img, 'full', false, array('class' => 'fp-splash', 'fv_sizes' => '25vw, 50vw, 100vw') );
714
  } else {
715
+ $image = '<img class="fp-splash" alt="'.esc_attr($alt).'" src="'.esc_attr($splash_img).'"';
716
+ // If FV Player CSS was not yet enqueue (in header) make sure to use minimal styling to avoid CLS
717
+ if( !wp_style_is('fv_flowplayer') ) {
718
+ $image .= ' style="position:absolute;top:0;width:100%"';
719
+ }
720
+ $image .= ' />';
721
  }
722
 
723
  $this->ret['html'] .= "\t".$image."\n";
724
  }
725
 
726
+ if( !empty($fv_fp->aCurArgs['error']) ) {
727
+ $this->ret['html'] .= "\t".'<div class="fp-ui"><div class="fp-message fp-shown">'.$fv_fp->aCurArgs['error'].'</div>'.$this->get_play_button().'<div class="fp-preload"><b></b><b></b><b></b><b></b></div></div>'."\n";
728
+
729
+ } else if( !$bIsAudio ) {
730
+ $this->ret['html'] .= "\t".'<div class="fp-ui"><noscript>Please enable JavaScript</noscript>'.$this->get_play_button().'<div class="fp-preload"><b></b><b></b><b></b><b></b></div></div>'."\n";
731
  }
732
 
733
  $this->ret['html'] .= $this->get_buttons();
738
 
739
  if( flowplayer::is_special_editor() ) {
740
  $this->ret['html'] .= '<div class="fp-ui"></div>';
741
+ } else if( current_user_can('manage_options') && empty($this->aCurArgs['lazy']) && empty($this->aCurArgs['lightbox']) && empty($this->aCurArgs['error']) ) {
742
  $this->ret['html'] .= '<div id="wpfp_'.$this->hash.'_admin_error" class="fvfp_admin_error"><div class="fvfp_admin_error_content"><h4>Admin JavaScript warning:</h4><p>I\'m sorry, your JavaScript appears to be broken. Please use "Check template" in plugin settings, read our <a href="https://foliovision.com/player/installation#fixing-broken-javascript" target="_blank">troubleshooting guide</a>, <a href="https://foliovision.com/troubleshooting-javascript-errors" target="_blank">troubleshooting guide for programmers</a> or <a href="https://foliovision.com/pro-support" target="_blank">order our pro support</a> and we will get it fixed for you.</p></div></div>';
743
  }
744
 
940
  return user_trailingslashit( trailingslashit( get_permalink() ).$append );
941
  }
942
  }
943
+
944
+ function get_play_button() {
945
+ $icons = $this->_get_option( array('skin-custom', 'design-icons') );
946
+
947
+ $rounded_outline = '<svg class="fp-play-rounded-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-rounded-outline</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M41.0359,71.19a5.0492,5.0492,0,0,1-2.5575-.6673c-1.8031-1.041-2.7958-3.1248-2.7958-5.8664V35.1887c0-2.7429.9933-4.8272,2.797-5.8676,1.8025-1.0422,4.1034-.86,6.48.5143L70.4782,44.5672c2.3751,1.3711,3.6826,3.2725,3.6832,5.3545s-1.3076,3.9845-3.6832,5.3562L44.9592,70.0114A7.9384,7.9384,0,0,1,41.0359,71.19Zm.0065-40.123a2.6794,2.6794,0,0,0-1.3582.3413c-1.0263.5926-1.5912,1.9349-1.5912,3.78V64.6563c0,1.8449.5649,3.1866,1.5906,3.7791,1.0281.5932,2.4733.4108,4.07-.512L69.273,53.1906c1.5983-.9227,2.478-2.0838,2.478-3.2689s-.88-2.3445-2.478-3.2666L43.754,31.9227A5.5685,5.5685,0,0,0,41.0423,31.0671Z" filter="url(#f1)"/></svg>';
948
+
949
+ $rounded_fill = '<svg class="fp-play-rounded-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.a{fill:#000;opacity:0.65;}.b{fill:#fff;opacity:1.0;}</style></defs><title>play-rounded-fill</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="b" d="M35.942,35.2323c0-4.7289,3.3506-6.6637,7.446-4.2971L68.83,45.6235c4.0956,2.364,4.0956,6.2319,0,8.5977L43.388,68.91c-4.0954,2.364-7.446.43-7.446-4.2979Z" filter="url(#f1)"/></svg>';
950
+
951
+ $sharp_fill = '<svg class="fp-play-sharp-fill" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.fp-color-play{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-sharp-fill</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><polygon class="controlbutton" points="73.601 50 37.968 70.573 37.968 29.427 73.601 50" filter="url(#f1)"/></svg>';
952
+
953
+ $sharp_outline = '<svg class="fp-play-sharp-outline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 99.844 99.8434"><defs><style>.controlbuttonbg{opacity:0.65;}.controlbutton{fill:#fff;}</style></defs><title>play-sharp-outline</title><path class="fp-color-play" d="M49.9217-.078a50,50,0,1,0,50,50A50.0564,50.0564,0,0,0,49.9217-.078Z"/><path class="controlbutton" d="M36.9443,72.2473V27.2916L75.8776,49.77Zm2.2-41.1455V68.4371L71.4776,49.77Z" filter="url(#f1)"/></svg>';
954
+
955
+ if( $icons == 'fp-edgy' ) {
956
+ $html = $sharp_fill;
957
+
958
+ } else if( $icons == 'fp-outlined' ) {
959
+ $html = $rounded_outline;
960
+
961
+ } else if( $icons == 'fp-playful' ) {
962
+ // TODO: Fix transparency before JS loads
963
+ $html = $rounded_fill;
964
+
965
+ } else {
966
+ $html = $rounded_fill;
967
+
968
+ }
969
+
970
+ return '<div class="fp-play fp-visible">'.$html.'</div>';
971
+
972
+ }
973
 
974
 
975
  function get_popup_code() {
models/flowplayer.php CHANGED
@@ -174,7 +174,8 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
174
  $key = (!empty($options['key']) ? $options['key'] : '');
175
  $name = (!empty($options['name']) ? $options['name'] : '');
176
  $help = (!empty($options['help']) ? $options['help'] : '');
177
- $more = (!empty($options['more']) ? $options['more'] : '');
 
178
 
179
  if (!$key || !$name) {
180
  throw new Exception('Both, "name" and "key" options need to be set for _get_checkbox()!');
@@ -185,7 +186,10 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
185
  $name = func_get_arg(0);
186
  $key = func_get_arg(1);
187
  $help = ($args_num >= 3 ? func_get_arg(2) : false);
188
- $more = ($args_num >= 4 ? func_get_arg(3) : false);
 
 
 
189
  } else {
190
  throw new Exception('Invalid number of arguments passed to the _get_checkbox() method!');
191
  }
@@ -206,6 +210,7 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
206
  <input type="hidden" name="<?php echo $key; ?>" value="false"/>
207
  <input type="checkbox" name="<?php echo $key; ?>" id="<?php echo $key; ?>" value="true"<?php
208
  if ( $checked ) { echo ' checked="checked"'; }
 
209
 
210
  if (isset($options) && isset($options['data']) && is_array($options['data'])) {
211
  foreach ($options['data'] as $data_item => $data_value) {
@@ -345,6 +350,20 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
345
  }
346
  }
347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
 
349
  public function _get_input_text($options = array()) {
350
  // options must be an array
@@ -353,12 +372,23 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
353
  }
354
 
355
  $first_td_class = (!empty($options['first_td_class']) ? ' class="'.esc_attr($options['first_td_class']).'"' : '');
356
- $class_name = (!empty($options['class']) ? ' class="'.esc_attr($options['class']).'"' : '');
357
  $key = (!empty($options['key']) ? $options['key'] : '');
358
  $name = (!empty($options['name']) ? $options['name'] : '');
359
  $title = (!empty($options['title']) ? ' title="'.esc_attr($options['title']).'" ' : '');
360
  $default = (!empty($options['default']) ? $options['default'] : '');
361
- $help = (!empty($options['help']) ? $options['help'] : '');
 
 
 
 
 
 
 
 
 
 
 
362
 
363
  if (!$key || !$name) {
364
  throw new Exception('Both, "name" and "key" options need to be set for _get_input_text()!');
@@ -366,6 +396,9 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
366
 
367
  $saved_value = esc_attr( $this->_get_option($key) );
368
  if ( is_array( $key ) && count( $key ) > 1 ) {
 
 
 
369
  $key = $key[0] . '[' . $key[1] . ']';
370
  }
371
 
@@ -373,20 +406,38 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
373
  // however in case of marginBottom you might wish to enter 0 and we need to accept that
374
  // so we just check if the default if a number and if it is, we allow even 0 value
375
  $val = is_numeric($default) || !empty($saved_value) ? $saved_value : $default;
 
 
 
 
 
 
 
 
 
 
376
  ?>
377
  <tr>
378
  <td<?php echo $first_td_class; ?>><label for="<?php echo $key; ?>"><?php echo $name; ?><?php if( $help ) echo ' <a href="#" class="show-info"><span class="dashicons dashicons-info"></span></a>'; ?>:</label></td>
379
  <td>
380
- <input <?php echo $class_name; ?> id="<?php echo esc_attr($key); ?>" name="<?php echo esc_attr($key); ?>" <?php if ($title) { echo $title; } ?>type="text" value="<?php echo esc_attr($val); ?>"<?php
381
  if (isset($options['data']) && is_array($options['data'])) {
382
  foreach ($options['data'] as $data_item => $data_value) {
383
  echo ' data-'.$data_item.'="'.$data_value.'"';
384
  }
385
  }
386
- ?> />
387
  <?php if ( $help ) { ?>
388
  <p class="description fv-player-admin-tooltip"><span class="info"><?php echo $help; ?></span></p>
389
  <?php } ?>
 
 
 
 
 
 
 
 
390
  </td>
391
  </tr>
392
 
@@ -671,8 +722,7 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
671
  }
672
 
673
 
674
- public function _set_conf( $aNewOptions = false ) {
675
- if( !$aNewOptions ) $aNewOptions = $_POST;
676
  $sKey = !empty($aNewOptions['key']) ? trim($aNewOptions['key']) : false;
677
 
678
  // make sure the preset Skin properties are not over-written
@@ -858,6 +908,8 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
858
 
859
  if( !$sItemCaption && $sListStyle == 'text' ) $sItemCaption = 'Video '.($index+1);
860
 
 
 
861
  if( !empty($aArgs['members_only']) ) {
862
  $sHTML = "\t\t<a href='".esc_attr($aArgs['members_only'])."' data-fancybox>";
863
  } else {
@@ -979,7 +1031,7 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
979
 
980
  $sHTML .= "</a>\n";
981
 
982
- $sHTML = apply_filters( 'fv_player_item_html', $sHTML, $aArgs, $sSplashImage, $sItemCaption, $aPlayer, $index );
983
 
984
  return $sHTML;
985
  }
@@ -1254,6 +1306,7 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
1254
  $css .= $sel." a.fp-play, ".$sel." a.fp-volumebtn, ".$sel." .fp-controls, ".$sel." .fv-ab-loop, .fv-player-buttons a:active, .fv-player-buttons a { color: ".$sDuration." !important; }\n";
1255
  $css .= $sel." .fp-controls > .fv-fp-prevbtn:before, ".$sel." .fp-controls > .fv-fp-nextbtn:before { border-color: ".$sDuration." !important; }\n";
1256
  $css .= $sel." .fvfp_admin_error, ".$sel." .fvfp_admin_error a, #content ".$sel." .fvfp_admin_error a { color: ".$sDuration."; }\n";
 
1257
  }
1258
 
1259
  if( $sBuffer ) {
@@ -1360,11 +1413,8 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
1360
 
1361
  if( !$force && !$this->should_force_load_js() && isset($posts) && count($posts) > 0 ) {
1362
  $bFound = false;
1363
-
1364
- if( $this->_get_option('parse_comments') ) { // if video link parsing is enabled, we need to check if there might be a video somewhere
1365
- $bFound = true;
1366
- }
1367
-
1368
  foreach( $posts AS $objPost ) {
1369
  if( !empty($objPost->post_content) && (
1370
  stripos($objPost->post_content,'[fvplayer') !== false ||
@@ -2219,7 +2269,7 @@ class flowplayer extends FV_Wordpress_Flowplayer_Plugin_Private {
2219
 
2220
  if( $list_style == 'text' ) {
2221
  $sClass .= ' fp-playlist-only-captions';
2222
- } else if( sizeof($aCaptions) > 0 && strlen(implode($aCaptions)) > 0 ) {
2223
  $sClass .= ' fp-playlist-has-captions';
2224
  }
2225
  }
174
  $key = (!empty($options['key']) ? $options['key'] : '');
175
  $name = (!empty($options['name']) ? $options['name'] : '');
176
  $help = (!empty($options['help']) ? $options['help'] : '');
177
+ $more = (!empty($options['more']) ? $options['more'] : '');
178
+ $disabled = !empty($options['disabled']);
179
 
180
  if (!$key || !$name) {
181
  throw new Exception('Both, "name" and "key" options need to be set for _get_checkbox()!');
186
  $name = func_get_arg(0);
187
  $key = func_get_arg(1);
188
  $help = ($args_num >= 3 ? func_get_arg(2) : false);
189
+ $more = ($args_num >= 4 ? func_get_arg(3) : false);
190
+
191
+ $disabled = false;
192
+
193
  } else {
194
  throw new Exception('Invalid number of arguments passed to the _get_checkbox() method!');
195
  }
210
  <input type="hidden" name="<?php echo $key; ?>" value="false"/>
211
  <input type="checkbox" name="<?php echo $key; ?>" id="<?php echo $key; ?>" value="true"<?php
212
  if ( $checked ) { echo ' checked="checked"'; }
213
+ if ( $disabled ) { echo ' disabled'; }
214
 
215
  if (isset($options) && isset($options['data']) && is_array($options['data'])) {
216
  foreach ($options['data'] as $data_item => $data_value) {
350
  }
351
  }
352
 
353
+ public function _get_censored_val($val) {
354
+ $censored_val = '';
355
+
356
+ for ($i = 0; $i < strlen($val); $i++) {
357
+ // Reveal first and last 2 chars
358
+ if( $i < 2 || $i >= strlen($val) - 2 ) {
359
+ $censored_val .= $val[$i];
360
+ } else {
361
+ $censored_val .= '*';
362
+ }
363
+ }
364
+
365
+ return $censored_val;
366
+ }
367
 
368
  public function _get_input_text($options = array()) {
369
  // options must be an array
372
  }
373
 
374
  $first_td_class = (!empty($options['first_td_class']) ? ' class="'.esc_attr($options['first_td_class']).'"' : '');
375
+ $class_name = (!empty($options['class']) ? esc_attr($options['class']) : '');
376
  $key = (!empty($options['key']) ? $options['key'] : '');
377
  $name = (!empty($options['name']) ? $options['name'] : '');
378
  $title = (!empty($options['title']) ? ' title="'.esc_attr($options['title']).'" ' : '');
379
  $default = (!empty($options['default']) ? $options['default'] : '');
380
+ $help = (!empty($options['help']) ? $options['help'] : '');
381
+
382
+ // Only use fields with secret values obfuscated if FV Player Pro is not there or is ready for it
383
+ if(
384
+ !function_exists('FV_Player_Pro') ||
385
+ ( function_exists('FV_Player_Pro') && version_compare( str_replace( '.beta','',FV_Player_Pro()->version ),'7.5.25.728', '>=') )
386
+ ) {
387
+ $secret = (!empty($options['secret']) ? $options['secret'] : false);
388
+
389
+ } else {
390
+ $secret = false;
391
+ }
392
 
393
  if (!$key || !$name) {
394
  throw new Exception('Both, "name" and "key" options need to be set for _get_input_text()!');
396
 
397
  $saved_value = esc_attr( $this->_get_option($key) );
398
  if ( is_array( $key ) && count( $key ) > 1 ) {
399
+ if( $secret ) {
400
+ $secret_key = $key[0] . '[_is_secret_' . $key[1] . ']'; // add _is_secret_ prefix to key
401
+ }
402
  $key = $key[0] . '[' . $key[1] . ']';
403
  }
404
 
406
  // however in case of marginBottom you might wish to enter 0 and we need to accept that
407
  // so we just check if the default if a number and if it is, we allow even 0 value
408
  $val = is_numeric($default) || !empty($saved_value) ? $saved_value : $default;
409
+
410
+ // censor original value
411
+ if( $secret ) {
412
+ $censored_val = $this->_get_censored_val($val);
413
+ $val = '';
414
+ $class_name = ' class="code ' . $class_name . '"';
415
+ } else {
416
+ $class_name = ' class="' . $class_name . '"';
417
+ }
418
+
419
  ?>
420
  <tr>
421
  <td<?php echo $first_td_class; ?>><label for="<?php echo $key; ?>"><?php echo $name; ?><?php if( $help ) echo ' <a href="#" class="show-info"><span class="dashicons dashicons-info"></span></a>'; ?>:</label></td>
422
  <td>
423
+ <input <?php echo $class_name; ?> <?php if($secret && !empty($censored_val)) echo 'style="display: none;"'; ?> id="<?php echo esc_attr($key); ?>" name="<?php echo esc_attr($key); ?>" <?php if ($title) { echo $title; } ?>type="text" value="<?php echo esc_attr($val); ?>"<?php
424
  if (isset($options['data']) && is_array($options['data'])) {
425
  foreach ($options['data'] as $data_item => $data_value) {
426
  echo ' data-'.$data_item.'="'.$data_value.'"';
427
  }
428
  }
429
+ ?> />
430
  <?php if ( $help ) { ?>
431
  <p class="description fv-player-admin-tooltip"><span class="info"><?php echo $help; ?></span></p>
432
  <?php } ?>
433
+
434
+ <?php if ( $secret ): ?>
435
+ <input name="<?php echo esc_attr($secret_key); ?>" value="<?php if(empty($censored_val)) {echo '0';} else {echo '1';} ?>" type="hidden" />
436
+ <?php if(!empty($censored_val)): ?>
437
+ <code class="secret-preview"><?php echo $censored_val; ?></code>
438
+ <a href="#" data-is-empty="0" data-setting-change="<?php echo esc_attr($secret_key); ?>" >Change</a>
439
+ <?php endif; ?>
440
+ <?php endif; ?>
441
  </td>
442
  </tr>
443
 
722
  }
723
 
724
 
725
+ public function _set_conf( $aNewOptions ) {
 
726
  $sKey = !empty($aNewOptions['key']) ? trim($aNewOptions['key']) : false;
727
 
728
  // make sure the preset Skin properties are not over-written
908
 
909
  if( !$sItemCaption && $sListStyle == 'text' ) $sItemCaption = 'Video '.($index+1);
910
 
911
+ $sItemCaptionOriginal = $sItemCaption;
912
+
913
  if( !empty($aArgs['members_only']) ) {
914
  $sHTML = "\t\t<a href='".esc_attr($aArgs['members_only'])."' data-fancybox>";
915
  } else {
1031
 
1032
  $sHTML .= "</a>\n";
1033
 
1034
+ $sHTML = apply_filters( 'fv_player_item_html', $sHTML, $aArgs, $sSplashImage, $sItemCaptionOriginal, $aPlayer, $index );
1035
 
1036
  return $sHTML;
1037
  }
1306
  $css .= $sel." a.fp-play, ".$sel." a.fp-volumebtn, ".$sel." .fp-controls, ".$sel." .fv-ab-loop, .fv-player-buttons a:active, .fv-player-buttons a { color: ".$sDuration." !important; }\n";
1307
  $css .= $sel." .fp-controls > .fv-fp-prevbtn:before, ".$sel." .fp-controls > .fv-fp-nextbtn:before { border-color: ".$sDuration." !important; }\n";
1308
  $css .= $sel." .fvfp_admin_error, ".$sel." .fvfp_admin_error a, #content ".$sel." .fvfp_admin_error a { color: ".$sDuration."; }\n";
1309
+ $css .= $sel." svg.fvp-icon { fill: ".$sDuration." !important; }\n";
1310
  }
1311
 
1312
  if( $sBuffer ) {
1413
 
1414
  if( !$force && !$this->should_force_load_js() && isset($posts) && count($posts) > 0 ) {
1415
  $bFound = false;
1416
+
1417
+
 
 
 
1418
  foreach( $posts AS $objPost ) {
1419
  if( !empty($objPost->post_content) && (
1420
  stripos($objPost->post_content,'[fvplayer') !== false ||
2269
 
2270
  if( $list_style == 'text' ) {
2271
  $sClass .= ' fp-playlist-only-captions';
2272
+ } else if( sizeof($aCaptions) > 0 && strlen(implode("",$aCaptions)) > 0 ) {
2273
  $sClass .= ' fp-playlist-has-captions';
2274
  }
2275
  }
models/linode-object-storage.class.php CHANGED
@@ -73,7 +73,8 @@ class FV_Player_Linode_Object_Storage extends FV_Player_CDN {
73
  ) );
74
  $fv_fp->_get_input_text( array(
75
  'key' => array($this->key,'secret'),
76
- 'name' => 'Secret'
 
77
  ) );
78
  ?>
79
  <tr>
73
  ) );
74
  $fv_fp->_get_input_text( array(
75
  'key' => array($this->key,'secret'),
76
+ 'name' => 'Secret',
77
+ 'secret' => true
78
  ) );
79
  ?>
80
  <tr>
models/seo.php CHANGED
@@ -13,7 +13,7 @@ class FV_Player_SEO {
13
  }
14
 
15
  function single_attributes( $attributes, $media, $fv_fp ) {
16
- if( !empty($fv_fp->aCurArgs['playlist']) || !$this->can_seo ) {
17
  return $attributes;
18
  }
19
 
@@ -24,6 +24,30 @@ class FV_Player_SEO {
24
  return $attributes;
25
  }
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  function get_markup( $title, $description, $splash, $url ) {
28
  if( !$title ) {
29
  $title = get_the_title();
@@ -36,8 +60,7 @@ class FV_Player_SEO {
36
  if( !$description && strlen($post_content) > 0 ) {
37
  $post_content = strip_shortcodes( $post_content );
38
  $post_content = strip_tags( $post_content );
39
- $excerpt_more = apply_filters( 'excerpt_more', ' ' . '[&hellip;]' );
40
- $description = wp_trim_words( $post_content, '10', $excerpt_more );
41
  }
42
  if( !$description ) {
43
  $description = get_option('blogdescription');
@@ -106,19 +129,20 @@ class FV_Player_SEO {
106
  }
107
  }
108
 
109
- $this->can_seo = true;
110
  return $args;
111
  }
112
 
113
  function single_video_seo( $html, $fv_fp ) {
114
- if( $this->can_seo ) {
115
- if( empty($fv_fp->aCurArgs['playlist']) ) {
116
- // todo: use iframe or video link URL
117
- $html .= "\n".$this->get_markup(!empty($fv_fp->aCurArgs['caption']) ? $fv_fp->aCurArgs['caption'] : '',false,$fv_fp->get_splash(),false)."\n";
118
- }
119
  }
 
 
 
 
120
  return $html;
121
- }
122
 
123
  }
124
 
13
  }
14
 
15
  function single_attributes( $attributes, $media, $fv_fp ) {
16
+ if( !empty($fv_fp->aCurArgs['playlist']) || $this->video_ads_active($fv_fp->aCurArgs) || !$this->can_seo ) {
17
  return $attributes;
18
  }
19
 
24
  return $attributes;
25
  }
26
 
27
+ function video_ads_active($args) {
28
+ $conf = get_option( 'fvwpflowplayer' );
29
+
30
+ // check globals ads
31
+ if(!empty($conf['pro']['video_ads_default'])) {
32
+ if( $conf['pro']['video_ads_default'] != 'no') return true;
33
+ }
34
+
35
+ if( !empty($conf['pro']['video_ads_postroll_default']) ) {
36
+ if( $conf['pro']['video_ads_postroll_default'] != 'no' ) return true;
37
+ }
38
+
39
+ // check meta ads
40
+ if( !empty($args['preroll']) ) {
41
+ if( $args['preroll'] != 'no' ) return true;
42
+ }
43
+
44
+ if( !empty($args['postroll']) ) {
45
+ if( $args['postroll'] != 'no' ) return true;
46
+ }
47
+
48
+ return false;
49
+ }
50
+
51
  function get_markup( $title, $description, $splash, $url ) {
52
  if( !$title ) {
53
  $title = get_the_title();
60
  if( !$description && strlen($post_content) > 0 ) {
61
  $post_content = strip_shortcodes( $post_content );
62
  $post_content = strip_tags( $post_content );
63
+ $description = wp_trim_words( $post_content, 30 );
 
64
  }
65
  if( !$description ) {
66
  $description = get_option('blogdescription');
129
  }
130
  }
131
 
132
+ $this->can_seo = true;
133
  return $args;
134
  }
135
 
136
  function single_video_seo( $html, $fv_fp ) {
137
+ if( !empty($fv_fp->aCurArgs['playlist']) || $this->video_ads_active($fv_fp->aCurArgs) || !$this->can_seo ) {
138
+ return $html;
 
 
 
139
  }
140
+
141
+ // todo: use iframe or video link URL
142
+ $html .= "\n".$this->get_markup(!empty($fv_fp->aCurArgs['caption']) ? $fv_fp->aCurArgs['caption'] : '',false,$fv_fp->get_splash(),false)."\n";
143
+
144
  return $html;
145
+ }
146
 
147
  }
148
 
models/splash-download.php ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if( !class_exists('FV_Player_Splash_Download') ) :
4
+
5
+ class FV_Player_Splash_Download {
6
+ function __construct() {
7
+ add_filter('fv_player_meta_data', array( $this, 'splash_data' ), 20, 2);
8
+ }
9
+
10
+ function splash_data($video, $post_id = false) {
11
+ if( is_array($video) && !empty($video['thumbnail']) ) {
12
+ $splash_data = $this->download_splash( $video['thumbnail'], isset($video['name']) ? $video['name'] : false );
13
+
14
+ if( !empty( $splash_data ) ) {
15
+ $video['thumbnail'] = $splash_data['url'];
16
+ $video['splash_attachment_id'] = $splash_data['attachment_id'];
17
+ }
18
+ }
19
+
20
+ return $video;
21
+ }
22
+
23
+ private function download_splash( $splash_url, $title ) {
24
+ $limit = 128 - 5; // .jpeg
25
+
26
+ if( empty($title) ) {
27
+ $arr = explode('/', $splash_url);
28
+ $title = end($arr);
29
+
30
+ if( preg_match( '/\.(png|jpg|jpeg|gif|webp)/', $title, $matches ) ) {
31
+ $title = pathinfo($title, PATHINFO_FILENAME); // remove file extension
32
+ }
33
+ }
34
+
35
+ $title = sanitize_title($title);
36
+
37
+ if( function_exists('mb_strinwidth') ) {
38
+ $title = mb_strimwidth($title, 0, $limit, '', 'UTF-8');
39
+ } else if( strlen( $title ) > $limit ) {
40
+ $title = substr($title, 0, $limit);
41
+ }
42
+
43
+ $upload_dir = wp_upload_dir();
44
+ $upload_path = str_replace( '/', DIRECTORY_SEPARATOR, $upload_dir['path'] ) . DIRECTORY_SEPARATOR;
45
+
46
+ // if the function its not available, require it
47
+ if ( ! function_exists( 'download_url' ) ) {
48
+ require_once ABSPATH . 'wp-admin/includes/file.php';
49
+ }
50
+
51
+ $file_name = $title . '.jpg';
52
+ $file_path = download_url( $splash_url );
53
+
54
+ if ( is_wp_error( $file_path ) ) {
55
+ return false;
56
+ }
57
+
58
+ // Handle upload file
59
+ if( !function_exists( 'wp_handle_sideload' ) ) {
60
+ require_once( ABSPATH . 'wp-admin/includes/file.php' );
61
+ }
62
+
63
+ // Debug error
64
+ if( !function_exists( 'wp_get_current_user' ) ) {
65
+ require_once( ABSPATH . 'wp-includes/pluggable.php' );
66
+ }
67
+
68
+ // New file
69
+ $file = array();
70
+ $file['error'] = '';
71
+ $file['tmp_name'] = $file_path;
72
+ $file['name'] = $file_name;
73
+ $file['type'] = mime_content_type( $file_path );
74
+ $file['size'] = filesize( $file_path );
75
+
76
+ $file_return = wp_handle_sideload( $file, array( 'test_form' => false ) );
77
+
78
+ if ( ! empty( $file_return['error'] ) ) {
79
+ @unlink( $file['tmp_name']);
80
+ return false;
81
+ }
82
+
83
+ $file_name = $file_return['file'];
84
+
85
+ $attachment = array(
86
+ 'post_mime_type' => $file_return['type'],
87
+ 'post_title' => preg_replace('/\.[^.]+$/', '', basename($file_name)),
88
+ 'post_content' => '',
89
+ 'post_status' => 'inherit',
90
+ 'guid' => $upload_dir['url'] . '/' . basename($file_name)
91
+ );
92
+
93
+ $attach_id = wp_insert_attachment( $attachment, $file_name, 0, true );
94
+
95
+ if( is_wp_error( $attach_id ) ) {
96
+ return false;
97
+ } else {
98
+
99
+ require_once(ABSPATH . 'wp-admin/includes/image.php');
100
+
101
+ update_post_meta( $attach_id, 'fv_player_original_splash_url', $splash_url ); // store original splash url in attachment meta
102
+
103
+ $attach_data = wp_generate_attachment_metadata( $attach_id, $file_name );
104
+ wp_update_attachment_metadata( $attach_id, $attach_data );
105
+
106
+ $img_url = wp_get_attachment_image_url($attach_id, 'full', false);
107
+
108
+ return array( 'url' => $img_url, 'attachment_id' => $attach_id ) ;
109
+ }
110
+
111
+ }
112
+
113
+ }
114
+
115
+ global $FV_Player_Splash_Download;
116
+ $FV_Player_Splash_Download = new FV_Player_Splash_Download;
117
+
118
+ endif;
models/video-encoder/class.fv-player-encoder-list-table.php CHANGED
@@ -365,6 +365,10 @@ class FV_Player_Encoder_List_Table extends WP_List_Table {
365
  $message[] = 'Folder: ' .$args['outputs']['httpstream#above4k']['hls']['path'];
366
  }
367
 
 
 
 
 
368
  if( count( $message ) ) {
369
  $results[$key]->delete_confirmation_message = "\n\n".implode( "\n\n", $message );
370
  }
365
  $message[] = 'Folder: ' .$args['outputs']['httpstream#above4k']['hls']['path'];
366
  }
367
 
368
+ if( $this->encoder_id == 'bunny_stream' && isset($args['target']) ) {
369
+ $message[] = 'Folder: ' . $args['target'];
370
+ }
371
+
372
  if( count( $message ) ) {
373
  $results[$key]->delete_confirmation_message = "\n\n".implode( "\n\n", $message );
374
  }
models/xml-video-sitemap.php CHANGED
@@ -36,7 +36,11 @@ class FV_Xml_Video_Sitemap {
36
  function get_meta_keys( $mode = false ) {
37
  global $fv_fp;
38
  if( !empty($fv_fp) && $fv_fp->_get_option('video_sitemap_meta') ) {
39
- $keys = explode(',', esc_sql($fv_fp->_get_option('video_sitemap_meta')) );
 
 
 
 
40
  if( $mode == 'sql' ) return "'".implode("','",$keys)."'";
41
  return $keys;
42
  }
36
  function get_meta_keys( $mode = false ) {
37
  global $fv_fp;
38
  if( !empty($fv_fp) && $fv_fp->_get_option('video_sitemap_meta') ) {
39
+ $keys = explode(',', esc_sql($fv_fp->_get_option('video_sitemap_meta')) );
40
+
41
+ $keys[] = '_elementor_data';
42
+ $keys = array_unique($keys);
43
+
44
  if( $mode == 'sql' ) return "'".implode("','",$keys)."'";
45
  return $keys;
46
  }
readme.txt CHANGED
@@ -359,6 +359,18 @@ Thank you for being part of the HMTL 5 mobile video revolution!
359
 
360
  == Changelog ==
361
 
 
 
 
 
 
 
 
 
 
 
 
 
362
  = 7.5.22.727 - 2022/05/11 =
363
 
364
  * Mobile - "Force landscape orientation in fullscreen" is now always on and no longer a setting
359
 
360
  == Changelog ==
361
 
362
+ = 7.5.26.7210 - 2022/07/06 =
363
+
364
+ * Using Freedom Video Player 7.2.10
365
+ * AWS SDK update
366
+ * CSS - make sure the seek buttons work with button color setting
367
+ * Editor - download splash image from Vimeo or YouTube for FV Player Pro users
368
+ * Featured image - only set once for each player in the post, allowing you to prevent the FV Player Splash Image from becoming the Featured Image anytime you save the post
369
+ * Safari - avoid WebM , it might have VP9 - won't play
370
+ * Security - hide sensitive information in settings pannels (the Secure Access Keys, requires FV Player Pro 7.5.25.727 if installed)
371
+ * SEO - 30 instead of just 10 words for schema.org/description
372
+ * Bugfix - PHP 8.1 deprecation fixes
373
+
374
  = 7.5.22.727 - 2022/05/11 =
375
 
376
  * Mobile - "Force landscape orientation in fullscreen" is now always on and no longer a setting
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit5b65dba1942e41c973522db487ce2c1a::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit171958a01ff388d50470a695bb57587a::getLoader();
vendor/aws/aws-crt-php/.github/ISSUE_TEMPLATE/---bug-report.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: "\U0001F41B Bug report"
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: bug, needs-triage
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ Confirm by changing [ ] to [x] below to ensure that it's a bug:
11
+ - [ ] I've gone though [Developer Guide](https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/welcome.html) and [API reference](http://sdk.amazonaws.com/cpp/api/LATEST/index.html)
12
+ - [ ] I've searched for [previous similar issues](https://github.com/aws/aws-sdk-cpp/issues) and didn't find any solution
13
+
14
+ **Describe the bug**
15
+ A clear and concise description of what the bug is.
16
+
17
+ **SDK version number**
18
+
19
+ **Platform/OS/Hardware/Device**
20
+ What are you running the sdk on?
21
+
22
+ **To Reproduce (observed behavior)**
23
+ Steps to reproduce the behavior (please share code)
24
+
25
+ **Expected behavior**
26
+ A clear and concise description of what you expected to happen.
27
+
28
+ **Logs/output**
29
+ If applicable, add logs or error output.
30
+
31
+ *REMEMBER TO SANITIZE YOUR PERSONAL INFO*
32
+
33
+
34
+
35
+ **Additional context**
36
+ Add any other context about the problem here.
vendor/aws/aws-crt-php/.github/ISSUE_TEMPLATE/---feature-request.md ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: "\U0001F680 Feature request"
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: feature-request, needs-triage
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
vendor/aws/aws-crt-php/.github/ISSUE_TEMPLATE/---questions-help.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ name: "\U0001F4AC Questions / Help"
3
+ about: If you have questions, please check AWS Forums or StackOverflow
4
+ title: ''
5
+ labels: guidance, needs-triage
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ Confirm by changing [ ] to [x] below:
11
+ - [ ] I've searched for [previous similar issues](https://github.com/awslabs/aws-crt-php/issues) and didn't find any solution
12
+
13
+ **Platform/OS/Hardware/Device**
14
+ What are you running the sdk on?
15
+
16
+ **Describe the question**
17
+
18
+
19
+ **Logs/output**
20
+ If applicable, add logs or error output.
21
+
22
+ *REMEMBER TO SANITIZE YOUR PERSONAL INFO*
23
+
vendor/aws/aws-crt-php/.github/PULL_REQUEST_TEMPLATE.md ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ *Issue #, if available:*
2
+
3
+ *Description of changes:*
4
+
5
+
6
+ By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
vendor/aws/aws-crt-php/.github/workflows/ci.yml ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - '*'
7
+ - '!main'
8
+
9
+ env:
10
+ BUILDER_VERSION: v0.8.18
11
+ BUILDER_SOURCE: releases
12
+ BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
13
+ PACKAGE_NAME: aws-crt-php
14
+ LINUX_BASE_IMAGE: ubuntu-16-x64
15
+ RUN: ${{ github.run_id }}-${{ github.run_number }}
16
+
17
+ jobs:
18
+ php-5_5-linux-x64:
19
+ name: php-linux-x64 (5.5)
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - name: Setup PHP with Xdebug
23
+ uses: shivammathur/setup-php@v2
24
+ with:
25
+ coverage: xdebug
26
+ php-version: 5.5
27
+ ini-values: xdebug.overload_var_dump=0, memory_limit=4G, phar.readonly=false
28
+
29
+ - name: Checkout
30
+ uses: actions/checkout@v2
31
+ with:
32
+ submodules: recursive
33
+
34
+ - name: Install ancient PHPUnit
35
+ run: composer require --dev --ignore-platform-reqs phpunit/phpunit "4.8.36"
36
+
37
+ - name: Install depedencies
38
+ run: composer update --no-interaction
39
+
40
+ - name: Build for PHP 5.5
41
+ env:
42
+ CC: clang
43
+ CXX: clang++
44
+ run: |
45
+ phpize
46
+ ./configure
47
+ make
48
+
49
+ php-linux-x64:
50
+ runs-on: ubuntu-latest
51
+ strategy:
52
+ fail-fast: false
53
+ matrix:
54
+ version:
55
+ - "5.6"
56
+ - "7.0"
57
+ - "7.1"
58
+ - "7.2"
59
+ - "7.3"
60
+ - "7.4"
61
+ - "8.0"
62
+ steps:
63
+ - name: Setup PHP with Xdebug
64
+ uses: shivammathur/setup-php@v2
65
+ with:
66
+ coverage: xdebug
67
+ php-version: ${{matrix.version}}
68
+ ini-values: xdebug.overload_var_dump=0, memory_limit=4G, phar.readonly=false
69
+
70
+ - name: Checkout
71
+ uses: actions/checkout@v2
72
+ with:
73
+ submodules: recursive
74
+
75
+ - name: Install depedencies
76
+ run: composer update --no-interaction
77
+
78
+ - name: Run tests
79
+ env:
80
+ CC: clang
81
+ CXX: clang++
82
+ run: |
83
+ phpize
84
+ ./configure
85
+ make
86
+ make test
87
+
88
+
89
+ # linux-arm:
90
+ # name: ARM (${{ matrix.arch }})
91
+ # runs-on: ubuntu-latest
92
+ # strategy:
93
+ # matrix:
94
+ # arch: [armv6, armv7, arm64]
95
+ # steps:
96
+ # - name: Build ${{ env.PACKAGE_NAME }}
97
+ # run: |
98
+ # python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
99
+ # chmod a+x builder
100
+ # ./builder build -p ${{ env.PACKAGE_NAME }} --target=linux-${{ matrix.arch }} --spec=downstream
101
+
102
+ # windows-vc16:
103
+ # runs-on: windows-latest
104
+ # strategy:
105
+ # matrix:
106
+ # arch: [x64]
107
+ # steps:
108
+ # - uses: ilammy/msvc-dev-cmd@v1
109
+ # with:
110
+ # arch: ${{ matrix.arch }}
111
+ # uwp: false
112
+ # spectre: true
113
+ # - name: Build ${{ env.PACKAGE_NAME }} + consumers
114
+ # run: |
115
+ # python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
116
+ # python builder.pyz build -p ${{ env.PACKAGE_NAME }} --spec=downstream
117
+
118
+ # windows-vc14:
119
+ # runs-on: windows-latest
120
+ # strategy:
121
+ # matrix:
122
+ # arch: [x86, x64]
123
+ # steps:
124
+ # - uses: ilammy/msvc-dev-cmd@v1
125
+ # with:
126
+ # toolset: 14.0
127
+ # arch: ${{ matrix.arch }}
128
+ # uwp: false
129
+ # spectre: true
130
+ # - name: Build ${{ env.PACKAGE_NAME }} + consumers
131
+ # run: |
132
+ # python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
133
+ # python builder.pyz build -p ${{ env.PACKAGE_NAME }} downstream
134
+
135
+ macos:
136
+ runs-on: macos-${{ matrix.version }}
137
+ strategy:
138
+ matrix:
139
+ version: [10.15]
140
+ steps:
141
+ - name: Build PHP 8 extension and test
142
+ run: |
143
+ python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
144
+ chmod a+x builder
145
+ ./builder build -p ${{ env.PACKAGE_NAME }} --spec=downstream
vendor/aws/aws-crt-php/.github/workflows/lint.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Lint
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ clang-format:
7
+
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - name: Checkout Sources
12
+ uses: actions/checkout@v1
13
+
14
+ - name: clang-format lint
15
+ uses: DoozyX/clang-format-lint-action@v0.3.1
16
+ with:
17
+ # List of extensions to check
18
+ extensions: c
19
+
20
+ check-submodules:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - name: Checkout Source
24
+ uses: actions/checkout@v2
25
+ with:
26
+ submodules: true
27
+ fetch-depth: 0
28
+ - name: Check Submodules
29
+ uses: awslabs/aws-crt-builder/.github/actions/check-submodules@main
vendor/aws/aws-crt-php/.github/workflows/stale_issue.yml ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: "Close stale issues"
2
+
3
+ # Controls when the action will run.
4
+ on:
5
+ schedule:
6
+ - cron: "0 0 * * *"
7
+
8
+ jobs:
9
+ cleanup:
10
+ runs-on: ubuntu-latest
11
+ name: Stale issue job
12
+ steps:
13
+ - uses: aws-actions/stale-issue-cleanup@v3
14
+ with:
15
+ # Setting messages to an empty string will cause the automation to skip
16
+ # that category
17
+ ancient-issue-message: Greetings! Sorry to say but this is a very old issue that is probably not getting as much attention as it deservers. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to open a new one.
18
+ stale-issue-message: Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.
19
+ stale-pr-message: Greetings! It looks like this PR hasn’t been active in longer than a week, add a comment or an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.
20
+
21
+ # These labels are required
22
+ stale-issue-label: closing-soon
23
+ exempt-issue-label: automation-exempt
24
+ stale-pr-label: closing-soon
25
+ exempt-pr-label: pr/needs-review
26
+ response-requested-label: response-requested
27
+
28
+ # Don't set closed-for-staleness label to skip closing very old issues
29
+ # regardless of label
30
+ closed-for-staleness-label: closed-for-staleness
31
+
32
+ # Issue timing
33
+ days-before-stale: 7
34
+ days-before-close: 4
35
+ days-before-ancient: 365
36
+
37
+ # If you don't want to mark a issue as being ancient based on a
38
+ # threshold of "upvotes", you can set this here. An "upvote" is
39
+ # the total number of +1, heart, hooray, and rocket reactions
40
+ # on an issue.
41
+ minimum-upvotes-to-exempt: 1
42
+
43
+ repo-token: ${{ secrets.GITHUB_TOKEN }}
44
+ loglevel: DEBUG
45
+ # Set dry-run to true to not perform label or close actions.
46
+ dry-run: false
vendor/aws/aws-crt-php/.gitignore ADDED
@@ -0,0 +1,210 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Created by https://www.toptal.com/developers/gitignore/api/autotools,cmake,phpstorm
3
+ # Edit at https://www.toptal.com/developers/gitignore?templates=autotools,cmake,phpstorm
4
+
5
+ ### Autotools ###
6
+ # http://www.gnu.org/software/automake
7
+
8
+ Makefile.in
9
+ /ar-lib
10
+ /mdate-sh
11
+ /py-compile
12
+ /test-driver
13
+ /ylwrap
14
+ .deps/
15
+
16
+ # http://www.gnu.org/software/autoconf
17
+
18
+ autom4te.cache
19
+ /autoscan.log
20
+ /autoscan-*.log
21
+ /aclocal.m4
22
+ /compile
23
+ /config.guess
24
+ /config.h.in
25
+ /config.log
26
+ /config.status
27
+ /config.sub
28
+ /configure
29
+ /configure.scan
30
+ /depcomp
31
+ /install-sh
32
+ /missing
33
+ /stamp-h1
34
+
35
+ # https://www.gnu.org/software/libtool/
36
+
37
+ /ltmain.sh
38
+
39
+ # http://www.gnu.org/software/texinfo
40
+
41
+ /texinfo.tex
42
+
43
+ # http://www.gnu.org/software/m4/
44
+
45
+ m4/libtool.m4
46
+ m4/ltoptions.m4
47
+ m4/ltsugar.m4
48
+ m4/ltversion.m4
49
+ m4/lt~obsolete.m4
50
+
51
+ # Generated Makefile
52
+ # (meta build system like autotools,
53
+ # can automatically generate from config.status script
54
+ # (which is called by configure script))
55
+ Makefile
56
+
57
+ ### Autotools Patch ###
58
+
59
+ ### CMake ###
60
+ CMakeLists.txt.user
61
+ CMakeCache.txt
62
+ CMakeFiles
63
+ CMakeScripts
64
+ Testing
65
+ cmake_install.cmake
66
+ install_manifest.txt
67
+ compile_commands.json
68
+ CTestTestfile.cmake
69
+ _deps
70
+
71
+ ### CMake Patch ###
72
+ # External projects
73
+ *-prefix/
74
+
75
+ ### PhpStorm ###
76
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
77
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
78
+
79
+ # User-specific stuff
80
+ .idea/**/workspace.xml
81
+ .idea/**/tasks.xml
82
+ .idea/**/usage.statistics.xml
83
+ .idea/**/dictionaries
84
+ .idea/**/shelf
85
+ .idea/
86
+ # Generated files
87
+ .idea/**/contentModel.xml
88
+
89
+ # Sensitive or high-churn files
90
+ .idea/**/dataSources/
91
+ .idea/**/dataSources.ids
92
+ .idea/**/dataSources.local.xml
93
+ .idea/**/sqlDataSources.xml
94
+ .idea/**/dynamic.xml
95
+ .idea/**/uiDesigner.xml
96
+ .idea/**/dbnavigator.xml
97
+
98
+ # Gradle
99
+ .idea/**/gradle.xml
100
+ .idea/**/libraries
101
+
102
+ # Gradle and Maven with auto-import
103
+ # When using Gradle or Maven with auto-import, y