diff --git a/README.md b/README.md index af45447..08aade1 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,12 @@ Stop russian war. **🇺🇦 Free Ukraine!** # apijs -JavaScript pop-ups and slideshow. +JavaScript pop-ups and slideshow for all websites. -For more information, go to https://www.luigifab.fr/apijs (IPv6 is required, it's not a joke). No IPv6? It's possible to get an IPv6 thanks to *Miredo*. Run `sudo apt install miredo` and `sudo service miredo force-start`. +For more information, go to https://www.luigifab.fr/apijs (IPv6 is required). -This repository is a releases mirror. To install it, please read the documentation. - -- Current version: 6.9.4 (06/06/2023) +- Current version: 6.9.6 (01/01/2024) - Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+ -- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) / Chinese (zh), Czech (cs), Dutch (nl), Greek (el), Hungarian (hu), Japanese (ja), Polish (pl), Romanian (ro), Russian (ru), Slovak (sk), Turkish (tr), Ukrainian (uk) -- License: GNU GPL 2+ +- License: GNU GPL 2.0+ If you like, take some of your time to improve the translations, go to https://bit.ly/2HyCCEc. diff --git a/src/javascripts/dialog.js b/src/javascripts/dialog.js index 37fff20..48de0fc 100644 --- a/src/javascripts/dialog.js +++ b/src/javascripts/dialog.js @@ -1,8 +1,8 @@ /** * Created D/12/04/2009 - * Updated S/14/01/2023 + * Updated D/03/12/2023 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify @@ -316,8 +316,8 @@ apijs.core.dialog = function () { var that = apijs.dialog, elem = ev.target, brk = false; // dialogues du diaporama (suivant/précédent) - // https://github.com/hammerjs/hammer.js - // https://github.com/john-doherty/swiped-events + // @see https://github.com/hammerjs/hammer.js + // @see https://github.com/john-doherty/swiped-events if ( that.has('slideshow') && !that.has('playing') && !['OPTION', 'SELECT'].has(elem.nodeName) && ['DOMMouseScroll', 'mousewheel', 'swipeleft', 'swiperight', 'swipeup', 'swipedown', 'swiped-left', 'swiped-right', 'swiped-up', 'swiped-down'].has(ev.type) @@ -661,7 +661,7 @@ apijs.core.dialog = function () { this.toggle('start', 'ready'); this.t1 = old; // this.t1.appendChild(this.t0.firstChild.firstChild); - // https://stackoverflow.com/a/24775765/2980105 + // @see https://stackoverflow.com/a/24775765/2980105 apijs.toArray(this.t0.firstChild.childNodes).forEach(function (node) { this.t1.appendChild(node); }, this); // pour que ci-dessus this = this diff --git a/src/javascripts/i18n.js b/src/javascripts/i18n.js index 7aa58b7..8d085c6 100644 --- a/src/javascripts/i18n.js +++ b/src/javascripts/i18n.js @@ -1,8 +1,8 @@ /** * Created S/05/06/2010 - * Updated S/03/07/2021 + * Updated D/03/12/2023 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify @@ -20,7 +20,7 @@ apijs.core.i18n = function () { "use strict"; this.data = { - // https://docs.google.com/spreadsheets/d/1UUpKZ-YAAlcfvGHYwt6aUM9io390j0-fIL0vMRh1pW0/edit?usp=sharing + // @see https://docs.google.com/spreadsheets/d/1UUpKZ-YAAlcfvGHYwt6aUM9io390j0-fIL0vMRh1pW0/edit?usp=sharing // auto start cs: { 103: "Zrušit", diff --git a/src/javascripts/main.js b/src/javascripts/main.js index a0c00e5..f52cd09 100644 --- a/src/javascripts/main.js +++ b/src/javascripts/main.js @@ -1,8 +1,8 @@ /** * Created J/03/12/2009 - * Updated J/21/09/2023 + * Updated S/23/12/2023 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify @@ -46,7 +46,7 @@ var apijs = new (function () { "use strict"; this.core = {}; - this.version = 695; + this.version = 696; this.config = { lang: 'auto', @@ -123,7 +123,7 @@ var apijs = new (function () { try { str = new Intl.NumberFormat(this.config.lang, { minimumFractionDigits: dgt, maximumFractionDigits: dgt }).format(nb); } - catch (ignore) { + catch (e) { str = nb.toFixed(dgt); } @@ -191,7 +191,7 @@ var apijs = new (function () { var data = []; filter = (typeof filter == 'string') ? filter : ''; - // https://gomakethings.com/how-to-serialize-form-data-with-vanilla-js/ + // @see https://gomakethings.com/how-to-serialize-form-data-with-vanilla-js/ Array.prototype.forEach.call(form.elements, function (elem, idx) { if (!elem.name || elem.disabled || ['file', 'reset', 'submit', 'button'].has(elem.type) || (elem.name.indexOf(filter) !== 0)) diff --git a/src/javascripts/player.js b/src/javascripts/player.js index 57c6a97..b460b02 100644 --- a/src/javascripts/player.js +++ b/src/javascripts/player.js @@ -1,8 +1,8 @@ /** * Created D/11/01/2015 - * Updated S/02/07/2022 + * Updated D/03/12/2023 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify @@ -33,7 +33,7 @@ apijs.core.player = function (video, url) { video.removeAttribute('controls'); video.classList.add('apijsplayer'); - // https://developer.mozilla.org/fr/docs/Web/Guide/DOM/Events/evenement_medias + // @see https://developer.mozilla.org/fr/docs/Web/Guide/DOM/Events/evenement_medias video.onloadedmetadata = function (ev) { this.stalled = false; this.onTimeupdate(ev); @@ -147,7 +147,7 @@ apijs.core.player = function (video, url) { if (typeof tracks == 'object') { // si la vidéo contient plusieurs pistes vidéo - // https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack + // @see https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack if (tracks.length > 1) { for (idx = 0; idx < tracks.length; idx++) { if (tracks[idx].language && (tracks[idx].language.toLowerCase().replace(/[-_]/g, '').indexOf(lang) == 0)) @@ -171,7 +171,7 @@ apijs.core.player = function (video, url) { if (typeof tracks == 'object') { // si la vidéo contient plusieurs pistes audio - // https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack + // @see https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack if (tracks.length > 1) { for (idx = 0; idx < tracks.length; idx++) { if (tracks[idx].language && (tracks[idx].language.toLowerCase().replace(/[-_]/g, '').indexOf(lang) == 0)) diff --git a/src/javascripts/slideshow.js b/src/javascripts/slideshow.js index f1d5795..5008ab1 100644 --- a/src/javascripts/slideshow.js +++ b/src/javascripts/slideshow.js @@ -1,8 +1,8 @@ /** * Created J/13/05/2010 - * Updated J/11/08/2022 + * Updated S/04/11/2023 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify @@ -150,7 +150,8 @@ apijs.core.slideshow = function () { media.url = source.getAttribute('href'); media.type = source.getAttribute('type').substring(0, 5).replace('image', 'dialogPhoto').replace('video', 'dialogVideo').replace('audio', 'dialogVideo'); media.type = (media.type.indexOf('dialog') === 0) ? media.type : 'dialogPhoto'; - media.styles = apijs.html(media.prefix, true).getAttribute('class').replace(/gallery|album/g, '').trim(); + media.styles = apijs.html(media.prefix, true); + media.styles = media.styles.hasAttribute('class') ? media.styles.getAttribute('class').replace(/gallery|album/g, '').trim() : ''; // demande l'affichage du dialogue // lors d'un clic sur l'image principale du mode gallery diff --git a/src/javascripts/upload.js b/src/javascripts/upload.js index 5a76cd4..da6b4ef 100644 --- a/src/javascripts/upload.js +++ b/src/javascripts/upload.js @@ -1,8 +1,8 @@ /** * Created L/13/04/2009 - * Updated V/24/06/2022 + * Updated D/03/12/2023 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify @@ -141,7 +141,7 @@ apijs.core.upload = function () { if (this.exts) { // 1048576 octet = 1 Mo - // https://stackoverflow.com/a/24775765/2980105 + // @see https://stackoverflow.com/a/24775765/2980105 apijs.toArray(elem.files, (this.allmax > 0) ? 999 : 1).forEach(function (file, idx) { var txt = file.size / 1048576; @@ -202,8 +202,8 @@ apijs.core.upload = function () { form.append(apijs.config.upload.tokenName, apijs.config.upload.tokenValue); } - // https://bugzilla.mozilla.org/show_bug.cgi?id=637002 - // https://stackoverflow.com/a/15491086 + // @see https://bugzilla.mozilla.org/show_bug.cgi?id=637002 + // @see https://stackoverflow.com/a/15491086 // loadstart - When the request starts // progress - While sending and loading data // load - When the request has successfully completed even if the server hasn't responded that it finished diff --git a/src/readme b/src/readme index 07664db..0cd27ae 100644 --- a/src/readme +++ b/src/readme @@ -1,31 +1,33 @@ Docs : https://www.luigifab.fr/apijs Tracker : https://github.com/luigifab/apijs -JS-App : Apijs -License : GNU GPL 2+ (https://opensource.org/licenses/gpl-2.0) -Copyright : 2008-2023 Fabrice Creuzot (luigifab) +Composer : https://packagist.org/packages/luigifab/apijs +JS-App : Apijs (original) +License : GNU GPL 2.0+ (https://opensource.org/licenses/gpl-2.0) +Copyright : 2008-2024 Fabrice Creuzot (luigifab) +CSS AND JS FILES ARE MINIFIED WITH clean-css (github.com/jakubpawlowicz/clean-css) AND uglify-js (github.com/mishoo/uglifyjs) +ALL FILES ARE LICENSED UNDER THE TERMS OF THE GNU GPL 2.0+ LICENSE +THAT BEING SAID SOME FILES COME FROM OTHER PROJECTS AND ARE UNDER OTHER LICENSES (SEE AT THE END OF THIS FILE) -IF YOU FOUND A MISTAKE OR A BUG, PLEASE CONTACT ME (IN FRENCH OR IN ENGLISH). -CSS AND JS FILES ARE MINIFIED WITH clean-css (github.com/jakubpawlowicz/clean-css) AND uglify-js (github.com/mishoo/uglifyjs). -ALL FILES (INCLUDING DOCUMENTATION AND TRANSLATIONS) ARE LICENSED UNDER THE TERMS OF THE GNU GPL 2+ LICENSE. -THAT BEING SAID SOME FILES COME FROM OTHER PROJECTS AND ARE UNDER OTHER LICENSES (SEE AT THE END OF THIS FILE). Notes - For the app, read: https://www.luigifab.fr/apijs - For the Redmine plugin, read: https://www.luigifab.fr/redmine/apijs - For the OpenMage module, read: https://www.luigifab.fr/openmage/apijs +- For the Dolibarr module, read install: https://www.luigifab.fr/apijs +- For the Symfony bundle, read install: https://www.luigifab.fr/apijs Translations in de-DE (deutsch/Deutschland) by: - Philip Junietz 2016 - Pamela Steinborn 2016 Translations in en-US (english/United-States) by: -- Fabrice Creuzot (luigifab) 2008-2023 +- Fabrice Creuzot (luigifab) 2008-2024 - Brian Legrand 2012 - Pascale Scellier 2016 Translations in es-ES (español/España) by: @@ -35,7 +37,7 @@ Translations in es-ES (español/España) by: - Hélène Vergine 2017, 2020 - Guillaume Genetet 2018 https://fr.tipeee.com/william-broome Translations in fr-FR (français/France) by: -- Fabrice Creuzot (luigifab) 2008-2023 +- Fabrice Creuzot (luigifab) 2008-2024 - Pascale Scellier 2016 Translations in it-IT (italiano/Italia) by: - Maria Grasso 2016-2017 diff --git a/src/styles/album.css b/src/styles/album.css index c8650de..2a8b3f1 100644 --- a/src/styles/album.css +++ b/src/styles/album.css @@ -2,7 +2,7 @@ * Created V/08/05/2009 * Updated J/12/09/2019 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify diff --git a/src/styles/dialog.css b/src/styles/dialog.css index 2a92c47..cbbb072 100644 --- a/src/styles/dialog.css +++ b/src/styles/dialog.css @@ -1,8 +1,8 @@ /** * Created V/08/05/2009 - * Updated L/02/10/2023 + * Updated V/17/10/2023 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify @@ -19,13 +19,10 @@ /* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */ div[id="apijsDialog"] * { margin:0; padding:0; } -#apijsDialog button, #apijsDialog label { cursor:pointer; } -#apijsDialog button:disabled { cursor:default; } - #apijsDialog { - position:fixed; top:0; right:0; bottom:0; left:0; width:100%; height:100%; text-align:center; direction:ltr; z-index:99000; - user-select:none; -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none; - transition:background-color 0.5s, opacity 0.25s; opacity:0; + position:fixed; top:0; right:0; bottom:0; left:0; width:100%; height:100%; margin:0; padding:0; text-align:center; z-index:99000; + direction:ltr; user-select:none; -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none; + border:0; transition:background-color 0.5s, opacity 0.25s; opacity:0; } #apijsDialog.ready { background-color:rgba(0, 0, 0, 0.65); opacity:1; } @@ -33,9 +30,12 @@ div[id="apijsDialog"] * { margin:0; padding:0; } #apijsDialog.progress, #apijsDialog.waiting, #apijsDialog.loading { cursor:progress; } #apijsDialog.reduce, #apijsDialog.reduce * { transition:none !important; } +#apijsDialog button, #apijsDialog label { cursor:pointer; } +#apijsDialog button:disabled { cursor:default; } + #apijsBox { position:relative; top:21%; display:inline-block; padding:0.6em 0.8em 2.4em; width:26rem; max-width:26rem; min-height:9em; overflow:hidden; - text-align:left; color:black; border-radius:0.8em; background-color:white; box-shadow:0 0 2.5em #111; + text-align:left; color:black; border:0; border-radius:0.8em; background-color:white; box-shadow:0 0 2.5em #111; } #apijsBox.photo, #apijsBox.video { diff --git a/src/styles/player.css b/src/styles/player.css index bb5e5ed..e1b15de 100644 --- a/src/styles/player.css +++ b/src/styles/player.css @@ -2,7 +2,7 @@ * Created V/01/01/2021 * Updated S/02/07/2022 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify diff --git a/src/styles/print.css b/src/styles/print.css index b7fe195..ca9b6a0 100644 --- a/src/styles/print.css +++ b/src/styles/print.css @@ -2,7 +2,7 @@ * Created J/20/06/2013 * Updated L/02/10/2023 * - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) * https://github.com/luigifab/apijs * * This program is free software, you can redistribute it or modify diff --git a/src/zip/apijs-print.min.css b/src/zip/apijs-print.min.css index ac70382..b0700e2 100644 --- a/src/zip/apijs-print.min.css +++ b/src/zip/apijs-print.min.css @@ -1,6 +1,6 @@ /*! - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) - * https://github.com/luigifab/apijs - 6.9.5 + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) + * https://github.com/luigifab/apijs - 6.9.6 * This program is free software, you can redistribute it or modify * it under the terms of the GNU General Public License (GPL). */ diff --git a/src/zip/apijs-print.min.css.map b/src/zip/apijs-print.min.css.map index 84cacbd..7654f4b 100644 --- a/src/zip/apijs-print.min.css.map +++ b/src/zip/apijs-print.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["349df","../code/apijs/src/styles/print.css"],"names":[],"mappings":"AAAA;;;;;;ACmBa,UAAb,YAAyB,UAAU,MAClB,cAAjB,gBAAiC,QAAQ,MAAO,OAAO,KAAM,SAAS,OAAQ,MAAM,YACrB,kBAAzC,mBAAoB,oBAA1C,qBAAmF,QAAQ,KAE3F,YAAc,QAAQ,aACtB,cAAgB,QAAQ,aAAc,gBAAgB,KACtD,eAAiB,OAAO,EAAG,QAAQ,EAAG,WAAW,KACjD,eAAiB,QAAQ,aAAc,OAAO,EAAG,QAAQ,EAAG,eAAe,OAC3E,iBAAmB,QAAQ,MAAO,OAAO,KACzC,yBAA2B,aAAa,KAExC,UAAY,WAAW,OACvB,aAAe,QAAQ,aAAc,OAAO,KAAM,KAAO,eAAe,IACxE,eAAiB,QAAQ,MAAO,gBAAgB,KAChD,aAAe,OAAO,KAAM,EAAE,EAE9B,aAAe,QAAQ","sourcesContent":["/*!\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs - 6.9.5\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL).\n */\n","/**\n * Created J/20/06/2013\n * Updated L/02/10/2023\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv.gallery, div.album { font-size:0.85em; }\ndiv.gallery img, div.album img { display:block; margin:auto; overflow:hidden; color:transparent; }\ndiv.gallery a:before, div.album a:before, div.gallery a:after, div.album a:after { display:none; }\n\ndiv.gallery { display:inline-block; }\ndiv.gallery a { display:inline-block; text-decoration:none; }\ndiv.gallery ul { margin:0; padding:0; list-style:none; }\ndiv.gallery li { display:inline-block; margin:0; padding:0; vertical-align:middle; }\ndiv.gallery li a { display:block; margin:0.2em; }\ndiv.gallery li a.current { border-color:#808080; }\n\ndiv.album { text-align:center; }\ndiv.album dl { display:inline-block; margin:0.5em 0.4em; vertical-align:top; }\ndiv.album dt a { display:block; text-decoration:none; }\ndiv.album dd { margin:0.4em 0 0; }\n\n#apijsDialog { display:none; }"]} \ No newline at end of file +{"version":3,"sources":["349df","../code/apijs/src/styles/print.css"],"names":[],"mappings":"AAAA;;;;;;ACmBa,UAAb,YAAyB,UAAU,MAClB,cAAjB,gBAAiC,QAAQ,MAAO,OAAO,KAAM,SAAS,OAAQ,MAAM,YACrB,kBAAzC,mBAAoB,oBAA1C,qBAAmF,QAAQ,KAE3F,YAAc,QAAQ,aACtB,cAAgB,QAAQ,aAAc,gBAAgB,KACtD,eAAiB,OAAO,EAAG,QAAQ,EAAG,WAAW,KACjD,eAAiB,QAAQ,aAAc,OAAO,EAAG,QAAQ,EAAG,eAAe,OAC3E,iBAAmB,QAAQ,MAAO,OAAO,KACzC,yBAA2B,aAAa,KAExC,UAAY,WAAW,OACvB,aAAe,QAAQ,aAAc,OAAO,KAAM,KAAO,eAAe,IACxE,eAAiB,QAAQ,MAAO,gBAAgB,KAChD,aAAe,OAAO,KAAM,EAAE,EAE9B,aAAe,QAAQ","sourcesContent":["/*!\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs - 6.9.6\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL).\n */\n","/**\n * Created J/20/06/2013\n * Updated L/02/10/2023\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv.gallery, div.album { font-size:0.85em; }\ndiv.gallery img, div.album img { display:block; margin:auto; overflow:hidden; color:transparent; }\ndiv.gallery a:before, div.album a:before, div.gallery a:after, div.album a:after { display:none; }\n\ndiv.gallery { display:inline-block; }\ndiv.gallery a { display:inline-block; text-decoration:none; }\ndiv.gallery ul { margin:0; padding:0; list-style:none; }\ndiv.gallery li { display:inline-block; margin:0; padding:0; vertical-align:middle; }\ndiv.gallery li a { display:block; margin:0.2em; }\ndiv.gallery li a.current { border-color:#808080; }\n\ndiv.album { text-align:center; }\ndiv.album dl { display:inline-block; margin:0.5em 0.4em; vertical-align:top; }\ndiv.album dt a { display:block; text-decoration:none; }\ndiv.album dd { margin:0.4em 0 0; }\n\n#apijsDialog { display:none; }"]} \ No newline at end of file diff --git a/src/zip/apijs-screen-rtl.min.css b/src/zip/apijs-screen-rtl.min.css index ff81837..fad4cfb 100644 --- a/src/zip/apijs-screen-rtl.min.css +++ b/src/zip/apijs-screen-rtl.min.css @@ -1,8 +1,8 @@ /*! - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) - * https://github.com/luigifab/apijs - 6.9.5 + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) + * https://github.com/luigifab/apijs - 6.9.6 * This program is free software, you can redistribute it or modify * it under the terms of the GNU General Public License (GPL). */ -div.album img,div.gallery img{display:block;margin:auto;overflow:hidden;color:transparent;background-color:#efefef;transition:background-color .3s}div.album a:after,div.album a:before,div.gallery a:after,div.gallery a:before{display:none;content:""}div.gallery{display:inline-flex;flex-direction:column;padding:.5em;vertical-align:top}div.gallery a{display:block;text-decoration:none;border:1px solid transparent}div.gallery ul{display:flex;flex-wrap:wrap;justify-content:space-around;margin:.3em 0 0;padding:0;list-style:none}div.gallery li{margin:.1em 0;padding:0}div.gallery li a{opacity:.7}div.gallery li a.current{border:1px solid #fff;opacity:1}div.album{padding:.4em;text-align:center}div.album dl{display:inline-block;margin:.3em .1em;padding:.5em .5em .45em;vertical-align:top;border:1px solid #efefef;border-radius:.6em;background-color:transparent;transition:border-color .3s,background-color .3s}div.album dl.current{border:1px solid #fff;background-color:#efefef}div.album dt a{display:block;text-decoration:none;border:1px solid transparent}div.album dd{margin:.5em .5em 0;overflow:hidden;font-size:.8em;white-space:nowrap;text-overflow:ellipsis;transition:color .3s}div.album dl:hover{border-color:#ccc;background-color:#efefef}div.album dl.current img,div.album dl:hover img{background-color:#fff}div[id=apijsDialog] *{margin:0;padding:0}#apijsDialog button,#apijsDialog label{cursor:pointer}#apijsDialog button:disabled{cursor:default}#apijsDialog{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;text-align:center;direction:rtl;z-index:99000;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;transition:background-color .5s,opacity .25s;opacity:0}#apijsDialog.ready{background-color:rgba(0,0,0,.65);opacity:1}#apijsDialog.fullscreen .nofullscreen{display:none!important}#apijsDialog.loading,#apijsDialog.progress,#apijsDialog.waiting{cursor:progress}#apijsDialog.reduce,#apijsDialog.reduce *{transition:none!important}#apijsBox{position:relative;top:21%;display:inline-block;padding:.6em .8em 2.4em;width:26rem;max-width:26rem;min-height:9em;overflow:hidden;text-align:right;color:#000;border-radius:.8em;background-color:#fff;box-shadow:0 0 2.5em #111}#apijsBox.photo,#apijsBox.video{display:flex;flex-direction:column;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;width:auto;max-width:inherit;min-height:inherit;text-align:center;border-radius:0;background-color:rgba(0,0,0,.8);box-shadow:none}#apijsBox.video{background-color:#000}#apijsBox.photo.error,#apijsBox.video.error{background-image:url("../images/apijs/tv.gif");background-repeat:repeat}#apijsBox.options,#apijsBox.progress,#apijsBox.upload{min-height:15em}#apijsBox.ajax,#apijsBox.iframe{padding:2.5em .8em 1em}#apijsBox.mobile:not(.photo):not(.video){position:absolute;top:1.5em;left:.5em;right:.5em;width:auto;min-height:inherit}#apijsBox.tiny div.navigation button{padding:0 1em}#apijsDialog.drag:before{position:absolute;top:1em;left:1em;bottom:1em;right:1em;content:"";border:2px dashed #fff}#apijsDialog p.drag{position:absolute;left:0;bottom:0;margin:1.5em;font-size:1.3em;color:#fff}#apijsBox div.bbcode{user-select:text;-moz-user-select:text;-ms-user-select:text;-webkit-user-select:text}#apijsBox h1{margin:.15em 0 .7em;height:32px;line-height:32px;font-size:1.49em;font-weight:700}#apijsBox pre{margin:1em auto;line-height:1.42857143;font-size:.7rem;white-space:pre-wrap}#apijsBox p{margin:1em auto;line-height:1.42857143;font-size:1em}#apijsBox ul{margin:-.4em auto 1em}#apijsBox iframe{display:block;width:100%;border:0}#apijsBox iframe.loading{pointer-events:none}#apijsBox.progress p.anim:before{content:attr(data-old);-webkit-animation:apijsReplace 1s linear 2s forwards;animation:apijsReplace 1s linear 2s forwards}#apijsBox.progress span.info{position:absolute;left:1em;bottom:.8em}#apijsBox.progress svg{position:relative;display:block;margin:18px auto;width:80%;height:20px;overflow:hidden;outline:1px solid #333;background-color:#aaa}#apijsBox.progress rect{position:absolute;top:0;bottom:0;right:0;display:block;background:#03ff00 repeating-linear-gradient(45deg,#03ff00 0,#03ff00 10px,#00ef00 10px,#00ef00 20px);background-size:28px 100%}#apijsBox.progress rect.auto{width:20%;-webkit-animation:apijsProgress 10s infinite linear;animation:apijsProgress 10s infinite linear}#apijsBox.progress rect.end{width:100%;-webkit-animation:apijsProgress 10s infinite 3s linear;animation:apijsProgress 10s infinite 3s linear}#apijsBox svg.loader{position:absolute;display:none;margin:auto;width:128px;height:128px;pointer-events:none}#apijsBox svg.loader path{fill:#808080}#apijsBox.loading svg.loader,#apijsBox.waiting svg.loader{display:block;left:-40px;bottom:-40px;transform:scale(.2);-webkit-transform:scale(.2)}#apijsBox.photo svg.loader,#apijsBox.video svg.loader{left:0;bottom:calc(50% - 64px);right:0;transform:none;-webkit-transform:none}#apijsBox.ajax svg.loader,#apijsBox.iframe svg.loader{left:0;bottom:calc(50% - 64px);right:0}#apijsBox button{font-size:.85em;text-decoration:none;border:0;transition:color .4s,border-color .4s,background-color .4s,opacity .4s}#apijsBox button::-moz-focus-inner{padding:0;outline:0;border:0}#apijsBox button:active,#apijsBox button:focus,#apijsBox button:hover{outline:0}#apijsBox div.btns{position:absolute;left:.8em;bottom:.6em}#apijsBox div.btns.upload{position:relative;left:inherit;right:inherit}#apijsBox div.btns.upload input{display:none}#apijsBox div.btns.upload div.filenames{max-height:11em;overflow-y:auto}#apijsBox div.btns.upload table{border-spacing:0}#apijsBox div.btns.upload td+td{padding-right:.6em}#apijsBox div.btns.upload td.nb{font-size:.85em;color:#676767;vertical-align:bottom}#apijsBox div.btns.upload td.size{white-space:nowrap;color:#676767}#apijsBox div.btns.upload td.err{color:#e41101}#apijsBox div.btns button{padding:0 .7em;height:auto;line-height:24px;color:#000;border:1px solid #bbb;border-radius:.4em;background-color:#e2e2e2}#apijsBox div.btns button:disabled{opacity:.5}#apijsBox div.btns button.cancel{float:right;margin:0 .5em}#apijsBox div.btns button.browse{display:inline-block;margin:.5em 0}#apijsBox div.btns button:active:not(:disabled),#apijsBox div.btns button:focus:not(:disabled),#apijsBox div.btns button:hover:not(:disabled){border-color:#555;background-color:#f4f4f4}#apijsBox div.btns button:focus:not(:hover){-webkit-animation:apijsFocus 1s infinite;animation:apijsFocus 1s infinite}#apijsBox dl.media{display:flex;flex-direction:column-reverse;flex:1;overflow:hidden;color:#fff}#apijsBox dl.media dt{position:relative;display:flex;flex-direction:column;flex:1;overflow:hidden}#apijsBox dl.media dt iframe,#apijsBox dl.media dt img,#apijsBox dl.media dt video{flex:1 1 auto;height:100%;visibility:hidden}#apijsBox dl.media dt img{image-rendering:optimizeQuality;image-rendering:-moz-crisp-edges;object-fit:scale-down}#apijsBox dl.media dt video{outline:0;cursor:pointer}#apijsBox dl.media dt div.apijsplayer{position:absolute;left:0;bottom:0;right:0}#apijsBox dl.media dd{line-height:1.5rem;font-size:.85em;background-color:#666}#apijsBox dl.media dd span{margin:0 .6em;font-size:.9em;font-style:italic}#apijsBox div.close{position:absolute;top:-2px;left:-2px;padding:0 3em 3em 0;z-index:99600}#apijsBox div.close button{padding:0 1.4em;line-height:2.6em;font-size:.8em;font-weight:700;text-transform:uppercase;color:#fff;border:2px solid #fff;border-radius:0 0 .8em 0;background-color:#000}#apijsBox div.navigation button{position:absolute;top:5rem;bottom:5rem;background-color:transparent;opacity:.5}#apijsBox div.navigation button:active,#apijsBox div.navigation button:focus,#apijsBox div.navigation button:hover{opacity:1}#apijsBox div.navigation button:disabled{opacity:0;cursor:default}#apijsBox div.navigation button span{display:block;width:2em;height:2em;border-top:2px solid #fff;border-right:2px solid #fff}#apijsBox div.navigation button.prev{right:0;padding:0 2em 0 20%}#apijsBox div.navigation button.prev span{transform:rotate(45deg);-webkit-transform:rotate(45deg)}#apijsBox div.navigation button.next{left:0;padding:0 20% 0 2em}#apijsBox div.navigation button.next span{transform:rotate(225deg);-webkit-transform:rotate(225deg)}#apijsBox ul.kbd{display:flex;justify-content:center;margin:0;text-align:center;font-size:.8em;white-space:nowrap;list-style:none;background-color:#777}#apijsBox ul.kbd li{margin:0 .5em;line-height:1.2rem}#apijsBox ul.kbd li kbd:last-child{margin-left:.4em}#apijsBox kbd{margin-left:.2em;padding:0 .21em;font-size:inherit;font-weight:700;text-transform:uppercase;border:0;background-color:#888}@font-face{src:url("../fonts/apijs/fontello.woff2") format("woff2"),url("../fonts/apijs/fontello.woff") format("woff");font-family:apijsFontello;font-weight:400;font-style:normal}#apijsBox div.btns button span:before,#apijsBox h1:before,#apijsBox kbd:before,div.apijsplayer span.fnt{font-family:apijsFontello;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;text-decoration:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}#apijsBox h1:before{float:right;width:1.3em;text-align:center;font-size:1.5em}#apijsBox.information h1:before{content:"\E80B\0000A0"}#apijsBox.confirmation h1:before{content:"\E80C\0000A0"}#apijsBox.options h1:before{content:"\E80E\0000A0"}#apijsBox.upload h1:before{content:"\F15B\0000A0"}#apijsBox.progress h1:before{content:"\F1D8\0000A0"}#apijsBox.waiting h1:before{content:"\F1D8\0000A0"}#apijsBox.download h1:before{content:"\F15B\0000A0"}#apijsBox.print h1:before{content:"\E80D\0000A0"}#apijsBox.error h1:before{content:"\E80A\0000A0"}#apijsBox.warning h1:before{content:"\E80A\0000A0"}#apijsBox div.btns button span:before{float:right}#apijsBox div.btns button.cancel span:before{content:"\E801\0000A0"}#apijsBox div.btns button.confirm span:before{content:"\E800\0000A0"}#apijsBox div.btns button.browse span:before{content:"\E802\0000A0"}#apijsBox kbd.start:before{content:"\E807";display:inline-block;transform:rotate(45deg);-webkit-transform:rotate(45deg)}#apijsBox kbd.bottom:before{content:"\E804"}#apijsBox kbd.left:before{content:"\E805"}#apijsBox kbd.right:before{content:"\E806"}#apijsBox kbd.topk:before{content:"\E807"}#apijsBox kbd.plus:before{content:"\E809"}#apijsBox kbd.minus:before{content:"\E808"}@keyframes apijsProgress{0%{width:20%}50%{transform:translate(-400%,0)}100%{width:20%}}@-webkit-keyframes apijsProgress{0%{width:20%}50%{right:80%}100%{width:20%}}@keyframes apijsFocus{50%{border-color:#bbb}}@-webkit-keyframes apijsFocus{50%{border-color:#bbb}}@keyframes apijsReplace{50%{color:transparent}100%{content:attr(data-new)}}@-webkit-keyframes apijsReplace{50%{color:transparent}100%{content:attr(data-new)}} +div.album img,div.gallery img{display:block;margin:auto;overflow:hidden;color:transparent;background-color:#efefef;transition:background-color .3s}div.album a:after,div.album a:before,div.gallery a:after,div.gallery a:before{display:none;content:""}div.gallery{display:inline-flex;flex-direction:column;padding:.5em;vertical-align:top}div.gallery a{display:block;text-decoration:none;border:1px solid transparent}div.gallery ul{display:flex;flex-wrap:wrap;justify-content:space-around;margin:.3em 0 0;padding:0;list-style:none}div.gallery li{margin:.1em 0;padding:0}div.gallery li a{opacity:.7}div.gallery li a.current{border:1px solid #fff;opacity:1}div.album{padding:.4em;text-align:center}div.album dl{display:inline-block;margin:.3em .1em;padding:.5em .5em .45em;vertical-align:top;border:1px solid #efefef;border-radius:.6em;background-color:transparent;transition:border-color .3s,background-color .3s}div.album dl.current{border:1px solid #fff;background-color:#efefef}div.album dt a{display:block;text-decoration:none;border:1px solid transparent}div.album dd{margin:.5em .5em 0;overflow:hidden;font-size:.8em;white-space:nowrap;text-overflow:ellipsis;transition:color .3s}div.album dl:hover{border-color:#ccc;background-color:#efefef}div.album dl.current img,div.album dl:hover img{background-color:#fff}div[id=apijsDialog] *{margin:0;padding:0}#apijsDialog{position:fixed;top:0;left:0;bottom:0;right:0;width:100%;height:100%;margin:0;padding:0;text-align:center;z-index:99000;direction:rtl;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;border:0;transition:background-color .5s,opacity .25s;opacity:0}#apijsDialog.ready{background-color:rgba(0,0,0,.65);opacity:1}#apijsDialog.fullscreen .nofullscreen{display:none!important}#apijsDialog.loading,#apijsDialog.progress,#apijsDialog.waiting{cursor:progress}#apijsDialog.reduce,#apijsDialog.reduce *{transition:none!important}#apijsDialog button,#apijsDialog label{cursor:pointer}#apijsDialog button:disabled{cursor:default}#apijsBox{position:relative;top:21%;display:inline-block;padding:.6em .8em 2.4em;width:26rem;max-width:26rem;min-height:9em;overflow:hidden;text-align:right;color:#000;border:0;border-radius:.8em;background-color:#fff;box-shadow:0 0 2.5em #111}#apijsBox.photo,#apijsBox.video{display:flex;flex-direction:column;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;width:auto;max-width:inherit;min-height:inherit;text-align:center;border-radius:0;background-color:rgba(0,0,0,.8);box-shadow:none}#apijsBox.video{background-color:#000}#apijsBox.photo.error,#apijsBox.video.error{background-image:url("../images/apijs/tv.gif");background-repeat:repeat}#apijsBox.options,#apijsBox.progress,#apijsBox.upload{min-height:15em}#apijsBox.ajax,#apijsBox.iframe{padding:2.5em .8em 1em}#apijsBox.mobile:not(.photo):not(.video){position:absolute;top:1.5em;left:.5em;right:.5em;width:auto;min-height:inherit}#apijsBox.tiny div.navigation button{padding:0 1em}#apijsDialog.drag:before{position:absolute;top:1em;left:1em;bottom:1em;right:1em;content:"";border:2px dashed #fff}#apijsDialog p.drag{position:absolute;left:0;bottom:0;margin:1.5em;font-size:1.3em;color:#fff}#apijsBox div.bbcode{user-select:text;-moz-user-select:text;-ms-user-select:text;-webkit-user-select:text}#apijsBox h1{margin:.15em 0 .7em;height:32px;line-height:32px;font-size:1.49em;font-weight:700}#apijsBox pre{margin:1em auto;line-height:1.42857143;font-size:.7rem;white-space:pre-wrap}#apijsBox p{margin:1em auto;line-height:1.42857143;font-size:1em}#apijsBox ul{margin:-.4em auto 1em}#apijsBox iframe{display:block;width:100%;border:0}#apijsBox iframe.loading{pointer-events:none}#apijsBox.progress p.anim:before{content:attr(data-old);-webkit-animation:apijsReplace 1s linear 2s forwards;animation:apijsReplace 1s linear 2s forwards}#apijsBox.progress span.info{position:absolute;left:1em;bottom:.8em}#apijsBox.progress svg{position:relative;display:block;margin:18px auto;width:80%;height:20px;overflow:hidden;outline:1px solid #333;background-color:#aaa}#apijsBox.progress rect{position:absolute;top:0;bottom:0;right:0;display:block;background:#03ff00 repeating-linear-gradient(45deg,#03ff00 0,#03ff00 10px,#00ef00 10px,#00ef00 20px);background-size:28px 100%}#apijsBox.progress rect.auto{width:20%;-webkit-animation:apijsProgress 10s infinite linear;animation:apijsProgress 10s infinite linear}#apijsBox.progress rect.end{width:100%;-webkit-animation:apijsProgress 10s infinite 3s linear;animation:apijsProgress 10s infinite 3s linear}#apijsBox svg.loader{position:absolute;display:none;margin:auto;width:128px;height:128px;pointer-events:none}#apijsBox svg.loader path{fill:#808080}#apijsBox.loading svg.loader,#apijsBox.waiting svg.loader{display:block;left:-40px;bottom:-40px;transform:scale(.2);-webkit-transform:scale(.2)}#apijsBox.photo svg.loader,#apijsBox.video svg.loader{left:0;bottom:calc(50% - 64px);right:0;transform:none;-webkit-transform:none}#apijsBox.ajax svg.loader,#apijsBox.iframe svg.loader{left:0;bottom:calc(50% - 64px);right:0}#apijsBox button{font-size:.85em;text-decoration:none;border:0;transition:color .4s,border-color .4s,background-color .4s,opacity .4s}#apijsBox button::-moz-focus-inner{padding:0;outline:0;border:0}#apijsBox button:active,#apijsBox button:focus,#apijsBox button:hover{outline:0}#apijsBox div.btns{position:absolute;left:.8em;bottom:.6em}#apijsBox div.btns.upload{position:relative;left:inherit;right:inherit}#apijsBox div.btns.upload input{display:none}#apijsBox div.btns.upload div.filenames{max-height:11em;overflow-y:auto}#apijsBox div.btns.upload table{border-spacing:0}#apijsBox div.btns.upload td+td{padding-right:.6em}#apijsBox div.btns.upload td.nb{font-size:.85em;color:#676767;vertical-align:bottom}#apijsBox div.btns.upload td.size{white-space:nowrap;color:#676767}#apijsBox div.btns.upload td.err{color:#e41101}#apijsBox div.btns button{padding:0 .7em;height:auto;line-height:24px;color:#000;border:1px solid #bbb;border-radius:.4em;background-color:#e2e2e2}#apijsBox div.btns button:disabled{opacity:.5}#apijsBox div.btns button.cancel{float:right;margin:0 .5em}#apijsBox div.btns button.browse{display:inline-block;margin:.5em 0}#apijsBox div.btns button:active:not(:disabled),#apijsBox div.btns button:focus:not(:disabled),#apijsBox div.btns button:hover:not(:disabled){border-color:#555;background-color:#f4f4f4}#apijsBox div.btns button:focus:not(:hover){-webkit-animation:apijsFocus 1s infinite;animation:apijsFocus 1s infinite}#apijsBox dl.media{display:flex;flex-direction:column-reverse;flex:1;overflow:hidden;color:#fff}#apijsBox dl.media dt{position:relative;display:flex;flex-direction:column;flex:1;overflow:hidden}#apijsBox dl.media dt iframe,#apijsBox dl.media dt img,#apijsBox dl.media dt video{flex:1 1 auto;height:100%;visibility:hidden}#apijsBox dl.media dt img{image-rendering:optimizeQuality;image-rendering:-moz-crisp-edges;object-fit:scale-down}#apijsBox dl.media dt video{outline:0;cursor:pointer}#apijsBox dl.media dt div.apijsplayer{position:absolute;left:0;bottom:0;right:0}#apijsBox dl.media dd{line-height:1.5rem;font-size:.85em;background-color:#666}#apijsBox dl.media dd span{margin:0 .6em;font-size:.9em;font-style:italic}#apijsBox div.close{position:absolute;top:-2px;left:-2px;padding:0 3em 3em 0;z-index:99600}#apijsBox div.close button{padding:0 1.4em;line-height:2.6em;font-size:.8em;font-weight:700;text-transform:uppercase;color:#fff;border:2px solid #fff;border-radius:0 0 .8em 0;background-color:#000}#apijsBox div.navigation button{position:absolute;top:5rem;bottom:5rem;background-color:transparent;opacity:.5}#apijsBox div.navigation button:active,#apijsBox div.navigation button:focus,#apijsBox div.navigation button:hover{opacity:1}#apijsBox div.navigation button:disabled{opacity:0;cursor:default}#apijsBox div.navigation button span{display:block;width:2em;height:2em;border-top:2px solid #fff;border-right:2px solid #fff}#apijsBox div.navigation button.prev{right:0;padding:0 2em 0 20%}#apijsBox div.navigation button.prev span{transform:rotate(45deg);-webkit-transform:rotate(45deg)}#apijsBox div.navigation button.next{left:0;padding:0 20% 0 2em}#apijsBox div.navigation button.next span{transform:rotate(225deg);-webkit-transform:rotate(225deg)}#apijsBox ul.kbd{display:flex;justify-content:center;margin:0;text-align:center;font-size:.8em;white-space:nowrap;list-style:none;background-color:#777}#apijsBox ul.kbd li{margin:0 .5em;line-height:1.2rem}#apijsBox ul.kbd li kbd:last-child{margin-left:.4em}#apijsBox kbd{margin-left:.2em;padding:0 .21em;font-size:inherit;font-weight:700;text-transform:uppercase;border:0;background-color:#888}@font-face{src:url("../fonts/apijs/fontello.woff2") format("woff2"),url("../fonts/apijs/fontello.woff") format("woff");font-family:apijsFontello;font-weight:400;font-style:normal}#apijsBox div.btns button span:before,#apijsBox h1:before,#apijsBox kbd:before,div.apijsplayer span.fnt{font-family:apijsFontello;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;text-decoration:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}#apijsBox h1:before{float:right;width:1.3em;text-align:center;font-size:1.5em}#apijsBox.information h1:before{content:"\E80B\0000A0"}#apijsBox.confirmation h1:before{content:"\E80C\0000A0"}#apijsBox.options h1:before{content:"\E80E\0000A0"}#apijsBox.upload h1:before{content:"\F15B\0000A0"}#apijsBox.progress h1:before{content:"\F1D8\0000A0"}#apijsBox.waiting h1:before{content:"\F1D8\0000A0"}#apijsBox.download h1:before{content:"\F15B\0000A0"}#apijsBox.print h1:before{content:"\E80D\0000A0"}#apijsBox.error h1:before{content:"\E80A\0000A0"}#apijsBox.warning h1:before{content:"\E80A\0000A0"}#apijsBox div.btns button span:before{float:right}#apijsBox div.btns button.cancel span:before{content:"\E801\0000A0"}#apijsBox div.btns button.confirm span:before{content:"\E800\0000A0"}#apijsBox div.btns button.browse span:before{content:"\E802\0000A0"}#apijsBox kbd.start:before{content:"\E807";display:inline-block;transform:rotate(45deg);-webkit-transform:rotate(45deg)}#apijsBox kbd.bottom:before{content:"\E804"}#apijsBox kbd.left:before{content:"\E805"}#apijsBox kbd.right:before{content:"\E806"}#apijsBox kbd.topk:before{content:"\E807"}#apijsBox kbd.plus:before{content:"\E809"}#apijsBox kbd.minus:before{content:"\E808"}@keyframes apijsProgress{0%{width:20%}50%{transform:translate(-400%,0)}100%{width:20%}}@-webkit-keyframes apijsProgress{0%{width:20%}50%{right:80%}100%{width:20%}}@keyframes apijsFocus{50%{border-color:#bbb}}@-webkit-keyframes apijsFocus{50%{border-color:#bbb}}@keyframes apijsReplace{50%{color:transparent}100%{content:attr(data-new)}}@-webkit-keyframes apijsReplace{50%{color:transparent}100%{content:attr(data-new)}} /*# sourceMappingURL=apijs-screen-rtl.min.css.map */ \ No newline at end of file diff --git a/src/zip/apijs-screen-rtl.min.css.map b/src/zip/apijs-screen-rtl.min.css.map index ca76df9..929b396 100644 --- a/src/zip/apijs-screen-rtl.min.css.map +++ b/src/zip/apijs-screen-rtl.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["dceca","../code/apijs/src/styles/album-rtl.css","../code/apijs/src/styles/dialog-rtl.css"],"names":[],"mappings":"AAAA;;;;;;ACmBiB,cAAjB,gBACC,QAAQ,MAAO,OAAO,KAAM,SAAS,OACrC,MAAM,YAAa,iBAAiB,QAAS,WAAW,iBAAiB,IAGX,kBAApB,mBAArB,oBAAtB,qBAAmF,QAAQ,KAAM,QAAQ,GAGzG,YAAc,QAAQ,YAAa,eAAe,OAAQ,QAAQ,KAAO,eAAe,IAExF,cAAgB,QAAQ,MAAO,gBAAgB,KAAM,OAAO,IAAI,MAAM,YACtE,eAAiB,QAAQ,KAAM,UAAU,KAAM,gBAAgB,aAAc,OAAO,KAAM,EAAE,EAAG,QAAQ,EAAG,WAAW,KACrH,eAAiB,OAAO,KAAM,EAAG,QAAQ,EACzC,iBAAmB,QAAQ,GAC3B,yBAA2B,OAAO,IAAI,MAAM,KAAO,QAAQ,EAG3D,UAAY,QAAQ,KAAO,WAAW,OAEtC,aACC,QAAQ,aAAc,OAAO,KAAM,KAAO,QAAQ,KAAM,KAAM,MAAQ,eAAe,IACrF,OAAO,IAAI,MAAM,QAAS,cAAc,KAAO,iBAAiB,YAAa,WAAW,aAAa,GAAI,CAAE,iBAAiB,IAG7H,qBAAuB,OAAO,IAA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9.5\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL).\n */\n","/**\n * Created V/08/05/2009\n * Updated J/12/09/2019\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv.gallery img, div.album img {\n\tdisplay:block; margin:auto; overflow:hidden;\n\tcolor:transparent; background-color:#EFEFEF; transition:background-color 0.3s;\n}\n\ndiv.gallery a:before, div.gallery a:after, div.album a:before, div.album a:after { display:none; content:\"\"; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& gallery &&& */\ndiv.gallery { display:inline-flex; flex-direction:column; padding:0.5em; vertical-align:top; }\n\ndiv.gallery a { display:block; text-decoration:none; border:1px solid transparent; }\ndiv.gallery ul { display:flex; flex-wrap:wrap; justify-content:space-around; margin:0.3em 0 0; padding:0; list-style:none; }\ndiv.gallery li { margin:0.1em 0; padding:0; }\ndiv.gallery li a { opacity:0.7; }\ndiv.gallery li a.current { border:1px solid white; opacity:1; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& album &&& */\ndiv.album { padding:0.4em; text-align:center; }\n\ndiv.album dl {\n\tdisplay:inline-block; margin:0.3em 0.1em; padding:0.5em 0.5em 0.45em; vertical-align:top;\n\tborder:1px solid #EFEFEF; border-radius:0.6em; background-color:transparent; transition:border-color 0.3s, background-color 0.3s;\n}\n\ndiv.album dl.current { border:1px solid white; background-color:#EFEFEF; }\ndiv.album dt a { display:block; text-decoration:none; border:1px solid transparent; }\n\ndiv.album dd {\n\tmargin:0.5em 0.5em 0; overflow:hidden;\n\tfont-size:0.8em; white-space:nowrap; text-overflow:ellipsis; transition:color 0.3s;\n}\n\ndiv.album dl:hover { border-color:#CCC; background-color:#EFEFEF; }\ndiv.album dl:hover img, div.album dl.current img { background-color:white; }","/**\n * Created V/08/05/2009\n * Updated L/02/10/2023\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv[id=\"apijsDialog\"] * { margin:0; padding:0; }\n\n#apijsDialog button, #apijsDialog label { cursor:pointer; }\n#apijsDialog button:disabled { cursor:default; }\n\n#apijsDialog {\n\tposition:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; text-align:center; direction:rtl; z-index:99000;\n\tuser-select:none; -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none;\n\ttransition:background-color 0.5s, opacity 0.25s; opacity:0;\n}\n\n#apijsDialog.ready { background-color:rgba(0, 0, 0, 0.65); opacity:1; }\n#apijsDialog.fullscreen .nofullscreen { display:none !important; }\n#apijsDialog.progress, #apijsDialog.waiting, #apijsDialog.loading { cursor:progress; }\n#apijsDialog.reduce, #apijsDialog.reduce * { transition:none !important; }\n\n#apijsBox {\n\tposition:relative; top:21%; display:inline-block; padding:0.6em 0.8em 2.4em; width:26rem; max-width:26rem; min-height:9em; overflow:hidden;\n\ttext-align:right; color:black; border-radius:0.8em; background-color:white; box-shadow:0 0 2.5em #111;\n}\n\n#apijsBox.photo, #apijsBox.video {\n\tdisplay:flex; flex-direction:column;\n\tposition:absolute; top:0; left:0; bottom:0; right:0; padding:0; width:auto; max-width:inherit; min-height:inherit; text-align:center;\n\tborder-radius:0; background-color:rgba(0, 0, 0, 0.8); box-shadow:none;\n}\n\n#apijsBox.video { background-color:black; }\n#apijsBox.photo.error, #apijsBox.video.error { background-image:url(\"../images/apijs/tv.gif\"); background-repeat:repeat; }\n#apijsBox.options, #apijsBox.upload, #apijsBox.progress { min-height:15em; }\n#apijsBox.iframe, #apijsBox.ajax { padding:2.5em 0.8em 1em; }\n\n#apijsBox.mobile:not(.photo):not(.video) { position:absolute; top:1.5em; left:0.5em; right:0.5em; width:auto; min-height:inherit; }\n#apijsBox.tiny div.navigation button { padding:0 1em; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& glisser/déposer &&& */\n#apijsDialog.drag:before {\n\tposition:absolute; top:1em; left:1em; bottom:1em; right:1em; content:\"\";\n\tborder: 2px dashed white;\n}\n\n#apijsDialog p.drag { position:absolute; left:0; bottom:0; margin:1.5em; font-size:1.3em; color:white; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& texte &&& */\n#apijsBox div.bbcode { user-select:text; -moz-user-select:text; -ms-user-select:text; -webkit-user-select:text; }\n\n#apijsBox h1 { margin:0.15em 0 0.7em; height:32px; line-height:32px; font-size:1.49em; font-weight:700; }\n#apijsBox pre { margin:1em auto; line-height:1.42857143; font-size:0.7rem; white-space:pre-wrap; }\n#apijsBox p { margin:1em auto; line-height:1.42857143; font-size:1em; }\n#apijsBox ul { margin:-0.4em auto 1em; }\n\n#apijsBox iframe { display:block; width:100%; border:0; }\n#apijsBox iframe.loading { pointer-events:none; }\n\n#apijsBox.progress p.anim:before {\n\tcontent:attr(data-old);\n\t-webkit-animation:apijsReplace 1s linear 2s forwards; animation:apijsReplace 1s linear 2s forwards;\n}\n\n#apijsBox.progress span.info { position:absolute; left:1em; bottom:0.8em; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& barre de progression &&& */\n#apijsBox.progress svg {\n\tposition:relative; display:block; margin:18px auto; width:80%; height:20px; overflow:hidden;\n\toutline:1px solid #333; background-color:#AAA;\n}\n\n#apijsBox.progress rect {\n\tposition:absolute; top:0; bottom:0; right:0; display:block;\n\tbackground:#03FF00 repeating-linear-gradient(45deg, #03FF00 0, #03FF00 10px, #00EF00 10px, #00EF00 20px); background-size:28px 100%;\n}\n\n#apijsBox.progress rect.auto { width:20%; -webkit-animation:apijsProgress 10s infinite linear; animation:apijsProgress 10s infinite linear; }\n#apijsBox.progress rect.end { width:100%; -webkit-animation:apijsProgress 10s infinite 3s linear; animation:apijsProgress 10s infinite 3s linear; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& image d'attente &&& **\n * (loading) waiting photo video iframe ajax */\n#apijsBox svg.loader { position:absolute; display:none; margin:auto; width:128px; height:128px; pointer-events:none; }\n#apijsBox svg.loader path { fill:#808080; }\n\n#apijsBox.loading svg.loader, #apijsBox.waiting svg.loader {\n\tdisplay:block; left:-40px; bottom:-40px;\n\ttransform:scale(0.2); -webkit-transform:scale(0.2);\n}\n\n#apijsBox.photo svg.loader, #apijsBox.video svg.loader { left:0; bottom:calc(50% - 64px); right:0; transform:none; -webkit-transform:none; }\n#apijsBox.iframe svg.loader, #apijsBox.ajax svg.loader { left:0; bottom:calc(50% - 64px); right:0; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& boutons &&& */\n#apijsBox button {\n\tfont-size:0.85em; text-decoration:none; border:0;\n\ttransition:color 0.4s, border-color 0.4s, background-color 0.4s, opacity 0.4s;\n}\n\n#apijsBox button::-moz-focus-inner { padding:0; outline:0; border:0; }\n#apijsBox button:hover, #apijsBox button:active, #apijsBox button:focus { outline:0; }\n\n#apijsBox div.btns { position:absolute; left:0.8em; bottom:0.6em; }\n#apijsBox div.btns.upload { position:relative; left:inherit; right:inherit; }\n#apijsBox div.btns.upload input { display:none; }\n#apijsBox div.btns.upload div.filenames { max-height:11em; overflow-y:auto; }\n#apijsBox div.btns.upload table { border-spacing:0; }\n#apijsBox div.btns.upload td + td { padding-right:0.6em; }\n#apijsBox div.btns.upload td.nb { font-size:0.85em; color:#676767; vertical-align:bottom; }\n#apijsBox div.btns.upload td.size { white-space:nowrap; color:#676767; }\n#apijsBox div.btns.upload td.err { color:#E41101; }\n\n#apijsBox div.btns button {\n\tpadding:0 0.7em; height:auto; line-height:24px;\n\tcolor:black; border:1px solid #BBB; border-radius:0.4em; background-color:#E2E2E2;\n}\n\n#apijsBox div.btns button:disabled { opacity:0.5; }\n#apijsBox div.btns button.cancel { float:right; margin:0 0.5em; }\n#apijsBox div.btns button.browse { display:inline-block; margin:0.5em 0; }\n\n#apijsBox div.btns button:hover:not(:disabled), #apijsBox div.btns button:active:not(:disabled),\n#apijsBox div.btns button:focus:not(:disabled) { border-color:#555; background-color:#F4F4F4; }\n#apijsBox div.btns button:focus:not(:hover) { -webkit-animation:apijsFocus 1s infinite; animation:apijsFocus 1s infinite; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& dialogues photo et vidéo &&& */\n#apijsBox dl.media { display:flex; flex-direction:column-reverse; flex:1; overflow:hidden; color:white; }\n\n#apijsBox dl.media dt { position:relative; display:flex; flex-direction:column; flex:1; overflow:hidden; }\n#apijsBox dl.media dt img, #apijsBox dl.media dt video, #apijsBox dl.media dt iframe { flex:1 1 auto; height:100%; visibility:hidden; }\n#apijsBox dl.media dt img { image-rendering:optimizeQuality; image-rendering:-moz-crisp-edges; object-fit:scale-down; }\n#apijsBox dl.media dt video { outline:0; cursor:pointer; }\n#apijsBox dl.media dt div.apijsplayer { position:absolute; left:0; bottom:0; right:0; }\n\n#apijsBox dl.media dd { line-height:1.5rem; font-size:0.85em; background-color:#666; }\n#apijsBox dl.media dd span { margin:0 0.6em; font-size:0.9em; font-style:italic; }\n\n/* &&&&&&&&&&&&&&&&&&&& bouton de fermeture &&& */\n#apijsBox div.close { position:absolute; top:-2px; left:-2px; padding:0 3em 3em 0; z-index:99600; }\n\n#apijsBox div.close button {\n\tpadding:0 1.4em; line-height:2.6em;\n\tfont-size:0.8em; font-weight:700; text-transform:uppercase;\n\tcolor:white; border:2px solid white; border-radius:0 0 0.8em 0; background-color:black;\n}\n\n/* &&&&&&&&&&&&&&&&&& boutons de navigation &&& */\n#apijsBox div.navigation button { position:absolute; top:5rem; bottom:5rem; background-color:transparent; opacity:0.5; }\n#apijsBox div.navigation button:hover, #apijsBox div.navigation button:active, #apijsBox div.navigation button:focus { opacity:1; }\n#apijsBox div.navigation button:disabled { opacity:0; cursor:default; }\n\n#apijsBox div.navigation button span {\n\tdisplay:block; width:2em; height:2em;\n\tborder-top:2px solid white; border-right:2px solid white;\n}\n\n#apijsBox div.navigation button.prev { right:0; padding:0 2em 0 20%; }\n#apijsBox div.navigation button.prev span { transform:rotate(45deg); -webkit-transform:rotate(45deg); }\n#apijsBox div.navigation button.next { left:0; padding:0 20% 0 2em; }\n#apijsBox div.navigation button.next span { transform:rotate(225deg); -webkit-transform:rotate(225deg); }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& clavier &&& */\n#apijsBox ul.kbd {\n\tdisplay:flex; justify-content:center; margin:0; text-align:center;\n\tfont-size:0.8em; white-space:nowrap; list-style:none; background-color:#777;\n}\n\n#apijsBox ul.kbd li { margin:0 0.5em; line-height:1.2rem; }\n#apijsBox ul.kbd li kbd:last-child { margin-left:0.4em; }\n\n#apijsBox kbd {\n\tmargin-left:0.2em; padding:0 0.21em;\n\tfont-size:inherit; font-weight:700; text-transform:uppercase; border:0; background-color:#888;\n}\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& images &&& */\n@font-face {\n\tsrc:url(\"../fonts/apijs/fontello.woff2\") format(\"woff2\"), url(\"../fonts/apijs/fontello.woff\") format(\"woff\");\n\tfont-family:apijsFontello; font-weight:400; font-style:normal;\n}\n\n#apijsBox h1:before, #apijsBox div.btns button span:before, #apijsBox kbd:before, div.apijsplayer span.fnt {\n\tfont-family:apijsFontello; font-style:normal; font-weight:400; font-variant:normal; text-transform:none; text-decoration:inherit;\n\t-moz-osx-font-smoothing:grayscale; -webkit-font-smoothing:antialiased;\n}\n\n#apijsBox h1:before { float:right; width:1.3em; text-align:center; font-size:1.5em; }\n#apijsBox.information h1:before { content:\"\\E80B\\0000A0\"; }\n#apijsBox.confirmation h1:before { content:\"\\E80C\\0000A0\"; }\n#apijsBox.options h1:before { content:\"\\E80E\\0000A0\"; }\n#apijsBox.upload h1:before { content:\"\\F15B\\0000A0\"; }\n#apijsBox.progress h1:before { content:\"\\F1D8\\0000A0\"; }\n#apijsBox.waiting h1:before { content:\"\\F1D8\\0000A0\"; }\n#apijsBox.download h1:before { content:\"\\F15B\\0000A0\"; }\n#apijsBox.print h1:before { content:\"\\E80D\\0000A0\"; }\n#apijsBox.error h1:before { content:\"\\E80A\\0000A0\"; }\n#apijsBox.warning h1:before { content:\"\\E80A\\0000A0\"; }\n\n#apijsBox div.btns button span:before { float:right; }\n#apijsBox div.btns button.cancel span:before { content:\"\\E801\\0000A0\"; }\n#apijsBox div.btns button.confirm span:before { content:\"\\E800\\0000A0\"; }\n#apijsBox div.btns button.browse span:before { content:\"\\E802\\0000A0\"; }\n\n#apijsBox kbd.start:before { content:\"\\E807\"; display:inline-block; transform:rotate(45deg); -webkit-transform:rotate(45deg); }\n#apijsBox kbd.bottom:before { content:\"\\E804\"; }\n#apijsBox kbd.left:before { content:\"\\E805\"; }\n#apijsBox kbd.right:before { content:\"\\E806\"; }\n#apijsBox kbd.topk:before { content:\"\\E807\"; }\n#apijsBox kbd.plus:before { content:\"\\E809\"; }\n#apijsBox kbd.minus:before { content:\"\\E808\"; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& animations &&& */\n@keyframes apijsProgress { 0% { width:20%; } 50% { transform:translate(-400%, 0); } 100% { width:20%; } }\n@-webkit-keyframes apijsProgress { 0% { width:20%; } 50% { right:80%; } 100% { width:20%; } }\n@keyframes apijsFocus { 50% { border-color:#BBB; } }\n@-webkit-keyframes apijsFocus { 50% { border-color:#BBB; } }\n@keyframes apijsReplace { 50% { color:transparent; } 100% { content:attr(data-new); } }\n@-webkit-keyframes apijsReplace { 50% { color:transparent; } 100% { content:attr(data-new); } }"]} \ No newline at end of file +{"version":3,"sources":["dceca","../code/apijs/src/styles/album-rtl.css","../code/apijs/src/styles/dialog-rtl.css"],"names":[],"mappings":"AAAA;;;;;;ACmBiB,cAAjB,gBACC,QAAQ,MAAO,OAAO,KAAM,SAAS,OACrC,MAAM,YAAa,iBAAiB,QAAS,WAAW,iBAAiB,IAGX,kBAApB,mBAArB,oBAAtB,qBAAmF,QAAQ,KAAM,QAAQ,GAGzG,YAAc,QAAQ,YAAa,eAAe,OAAQ,QAAQ,KAAO,eAAe,IAExF,cAAgB,QAAQ,MAAO,gBAAgB,KAAM,OAAO,IAAI,MAAM,YACtE,eAAiB,QAAQ,KAAM,UAAU,KAAM,gBAAgB,aAAc,OAAO,KAAM,EAAE,EAAG,QAAQ,EAAG,WAAW,KACrH,eAAiB,OAAO,KAAM,EAAG,QAAQ,EACzC,iBAAmB,QAAQ,GAC3B,yBAA2B,OAAO,IAAI,MAAM,KAAO,QAAQ,EAG3D,UAAY,QAAQ,KAAO,WAAW,OAEtC,aACC,QAAQ,aAAc,OAAO,KAAM,KAAO,QAAQ,KAAM,KAAM,MAAQ,eAAe,IACrF,OAAO,IAAI,MAAM,QAAS,cAAc,KAAO,iBAAiB,YAAa,WAAW,aAAa,GAAI,CAAE,iBAAiB,IAG7H,qBAAuB,OAAO,I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2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs - 6.9.6\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL).\n */\n","/**\n * Created V/08/05/2009\n * Updated J/12/09/2019\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv.gallery img, div.album img {\n\tdisplay:block; margin:auto; overflow:hidden;\n\tcolor:transparent; background-color:#EFEFEF; transition:background-color 0.3s;\n}\n\ndiv.gallery a:before, div.gallery a:after, div.album a:before, div.album a:after { display:none; content:\"\"; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& gallery &&& */\ndiv.gallery { display:inline-flex; flex-direction:column; padding:0.5em; vertical-align:top; }\n\ndiv.gallery a { display:block; text-decoration:none; border:1px solid transparent; }\ndiv.gallery ul { display:flex; flex-wrap:wrap; justify-content:space-around; margin:0.3em 0 0; padding:0; list-style:none; }\ndiv.gallery li { margin:0.1em 0; padding:0; }\ndiv.gallery li a { opacity:0.7; }\ndiv.gallery li a.current { border:1px solid white; opacity:1; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& album &&& */\ndiv.album { padding:0.4em; text-align:center; }\n\ndiv.album dl {\n\tdisplay:inline-block; margin:0.3em 0.1em; padding:0.5em 0.5em 0.45em; vertical-align:top;\n\tborder:1px solid #EFEFEF; border-radius:0.6em; background-color:transparent; transition:border-color 0.3s, background-color 0.3s;\n}\n\ndiv.album dl.current { border:1px solid white; background-color:#EFEFEF; }\ndiv.album dt a { display:block; text-decoration:none; border:1px solid transparent; }\n\ndiv.album dd {\n\tmargin:0.5em 0.5em 0; overflow:hidden;\n\tfont-size:0.8em; white-space:nowrap; text-overflow:ellipsis; transition:color 0.3s;\n}\n\ndiv.album dl:hover { border-color:#CCC; background-color:#EFEFEF; }\ndiv.album dl:hover img, div.album dl.current img { background-color:white; }","/**\n * Created V/08/05/2009\n * Updated V/17/10/2023\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv[id=\"apijsDialog\"] * { margin:0; padding:0; }\n\n#apijsDialog {\n\tposition:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; margin:0; padding:0; text-align:center; z-index:99000;\n\tdirection:rtl; user-select:none; -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none;\n\tborder:0; transition:background-color 0.5s, opacity 0.25s; opacity:0;\n}\n\n#apijsDialog.ready { background-color:rgba(0, 0, 0, 0.65); opacity:1; }\n#apijsDialog.fullscreen .nofullscreen { display:none !important; }\n#apijsDialog.progress, #apijsDialog.waiting, #apijsDialog.loading { cursor:progress; }\n#apijsDialog.reduce, #apijsDialog.reduce * { transition:none !important; }\n\n#apijsDialog button, #apijsDialog label { cursor:pointer; }\n#apijsDialog button:disabled { cursor:default; }\n\n#apijsBox {\n\tposition:relative; top:21%; display:inline-block; padding:0.6em 0.8em 2.4em; width:26rem; max-width:26rem; min-height:9em; overflow:hidden;\n\ttext-align:right; color:black; border:0; border-radius:0.8em; background-color:white; box-shadow:0 0 2.5em #111;\n}\n\n#apijsBox.photo, #apijsBox.video {\n\tdisplay:flex; flex-direction:column;\n\tposition:absolute; top:0; left:0; bottom:0; right:0; padding:0; width:auto; max-width:inherit; min-height:inherit; text-align:center;\n\tborder-radius:0; background-color:rgba(0, 0, 0, 0.8); box-shadow:none;\n}\n\n#apijsBox.video { background-color:black; }\n#apijsBox.photo.error, #apijsBox.video.error { background-image:url(\"../images/apijs/tv.gif\"); background-repeat:repeat; }\n#apijsBox.options, #apijsBox.upload, #apijsBox.progress { min-height:15em; }\n#apijsBox.iframe, #apijsBox.ajax { padding:2.5em 0.8em 1em; }\n\n#apijsBox.mobile:not(.photo):not(.video) { position:absolute; top:1.5em; left:0.5em; right:0.5em; width:auto; min-height:inherit; }\n#apijsBox.tiny div.navigation button { padding:0 1em; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& glisser/déposer &&& */\n#apijsDialog.drag:before {\n\tposition:absolute; top:1em; left:1em; bottom:1em; right:1em; content:\"\";\n\tborder: 2px dashed white;\n}\n\n#apijsDialog p.drag { position:absolute; left:0; bottom:0; margin:1.5em; font-size:1.3em; color:white; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& texte &&& */\n#apijsBox div.bbcode { user-select:text; -moz-user-select:text; -ms-user-select:text; -webkit-user-select:text; }\n\n#apijsBox h1 { margin:0.15em 0 0.7em; height:32px; line-height:32px; font-size:1.49em; font-weight:700; }\n#apijsBox pre { margin:1em auto; line-height:1.42857143; font-size:0.7rem; white-space:pre-wrap; }\n#apijsBox p { margin:1em auto; line-height:1.42857143; font-size:1em; }\n#apijsBox ul { margin:-0.4em auto 1em; }\n\n#apijsBox iframe { display:block; width:100%; border:0; }\n#apijsBox iframe.loading { pointer-events:none; }\n\n#apijsBox.progress p.anim:before {\n\tcontent:attr(data-old);\n\t-webkit-animation:apijsReplace 1s linear 2s forwards; animation:apijsReplace 1s linear 2s forwards;\n}\n\n#apijsBox.progress span.info { position:absolute; left:1em; bottom:0.8em; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& barre de progression &&& */\n#apijsBox.progress svg {\n\tposition:relative; display:block; margin:18px auto; width:80%; height:20px; overflow:hidden;\n\toutline:1px solid #333; background-color:#AAA;\n}\n\n#apijsBox.progress rect {\n\tposition:absolute; top:0; bottom:0; right:0; display:block;\n\tbackground:#03FF00 repeating-linear-gradient(45deg, #03FF00 0, #03FF00 10px, #00EF00 10px, #00EF00 20px); background-size:28px 100%;\n}\n\n#apijsBox.progress rect.auto { width:20%; -webkit-animation:apijsProgress 10s infinite linear; animation:apijsProgress 10s infinite linear; }\n#apijsBox.progress rect.end { width:100%; -webkit-animation:apijsProgress 10s infinite 3s linear; animation:apijsProgress 10s infinite 3s linear; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& image d'attente &&& **\n * (loading) waiting photo video iframe ajax */\n#apijsBox svg.loader { position:absolute; display:none; margin:auto; width:128px; height:128px; pointer-events:none; }\n#apijsBox svg.loader path { fill:#808080; }\n\n#apijsBox.loading svg.loader, #apijsBox.waiting svg.loader {\n\tdisplay:block; left:-40px; bottom:-40px;\n\ttransform:scale(0.2); -webkit-transform:scale(0.2);\n}\n\n#apijsBox.photo svg.loader, #apijsBox.video svg.loader { left:0; bottom:calc(50% - 64px); right:0; transform:none; -webkit-transform:none; }\n#apijsBox.iframe svg.loader, #apijsBox.ajax svg.loader { left:0; bottom:calc(50% - 64px); right:0; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& boutons &&& */\n#apijsBox button {\n\tfont-size:0.85em; text-decoration:none; border:0;\n\ttransition:color 0.4s, border-color 0.4s, background-color 0.4s, opacity 0.4s;\n}\n\n#apijsBox button::-moz-focus-inner { padding:0; outline:0; border:0; }\n#apijsBox button:hover, #apijsBox button:active, #apijsBox button:focus { outline:0; }\n\n#apijsBox div.btns { position:absolute; left:0.8em; bottom:0.6em; }\n#apijsBox div.btns.upload { position:relative; left:inherit; right:inherit; }\n#apijsBox div.btns.upload input { display:none; }\n#apijsBox div.btns.upload div.filenames { max-height:11em; overflow-y:auto; }\n#apijsBox div.btns.upload table { border-spacing:0; }\n#apijsBox div.btns.upload td + td { padding-right:0.6em; }\n#apijsBox div.btns.upload td.nb { font-size:0.85em; color:#676767; vertical-align:bottom; }\n#apijsBox div.btns.upload td.size { white-space:nowrap; color:#676767; }\n#apijsBox div.btns.upload td.err { color:#E41101; }\n\n#apijsBox div.btns button {\n\tpadding:0 0.7em; height:auto; line-height:24px;\n\tcolor:black; border:1px solid #BBB; border-radius:0.4em; background-color:#E2E2E2;\n}\n\n#apijsBox div.btns button:disabled { opacity:0.5; }\n#apijsBox div.btns button.cancel { float:right; margin:0 0.5em; }\n#apijsBox div.btns button.browse { display:inline-block; margin:0.5em 0; }\n\n#apijsBox div.btns button:hover:not(:disabled), #apijsBox div.btns button:active:not(:disabled),\n#apijsBox div.btns button:focus:not(:disabled) { border-color:#555; background-color:#F4F4F4; }\n#apijsBox div.btns button:focus:not(:hover) { -webkit-animation:apijsFocus 1s infinite; animation:apijsFocus 1s infinite; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& dialogues photo et vidéo &&& */\n#apijsBox dl.media { display:flex; flex-direction:column-reverse; flex:1; overflow:hidden; color:white; }\n\n#apijsBox dl.media dt { position:relative; display:flex; flex-direction:column; flex:1; overflow:hidden; }\n#apijsBox dl.media dt img, #apijsBox dl.media dt video, #apijsBox dl.media dt iframe { flex:1 1 auto; height:100%; visibility:hidden; }\n#apijsBox dl.media dt img { image-rendering:optimizeQuality; image-rendering:-moz-crisp-edges; object-fit:scale-down; }\n#apijsBox dl.media dt video { outline:0; cursor:pointer; }\n#apijsBox dl.media dt div.apijsplayer { position:absolute; left:0; bottom:0; right:0; }\n\n#apijsBox dl.media dd { line-height:1.5rem; font-size:0.85em; background-color:#666; }\n#apijsBox dl.media dd span { margin:0 0.6em; font-size:0.9em; font-style:italic; }\n\n/* &&&&&&&&&&&&&&&&&&&& bouton de fermeture &&& */\n#apijsBox div.close { position:absolute; top:-2px; left:-2px; padding:0 3em 3em 0; z-index:99600; }\n\n#apijsBox div.close button {\n\tpadding:0 1.4em; line-height:2.6em;\n\tfont-size:0.8em; font-weight:700; text-transform:uppercase;\n\tcolor:white; border:2px solid white; border-radius:0 0 0.8em 0; background-color:black;\n}\n\n/* &&&&&&&&&&&&&&&&&& boutons de navigation &&& */\n#apijsBox div.navigation button { position:absolute; top:5rem; bottom:5rem; background-color:transparent; opacity:0.5; }\n#apijsBox div.navigation button:hover, #apijsBox div.navigation button:active, #apijsBox div.navigation button:focus { opacity:1; }\n#apijsBox div.navigation button:disabled { opacity:0; cursor:default; }\n\n#apijsBox div.navigation button span {\n\tdisplay:block; width:2em; height:2em;\n\tborder-top:2px solid white; border-right:2px solid white;\n}\n\n#apijsBox div.navigation button.prev { right:0; padding:0 2em 0 20%; }\n#apijsBox div.navigation button.prev span { transform:rotate(45deg); -webkit-transform:rotate(45deg); }\n#apijsBox div.navigation button.next { left:0; padding:0 20% 0 2em; }\n#apijsBox div.navigation button.next span { transform:rotate(225deg); -webkit-transform:rotate(225deg); }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& clavier &&& */\n#apijsBox ul.kbd {\n\tdisplay:flex; justify-content:center; margin:0; text-align:center;\n\tfont-size:0.8em; white-space:nowrap; list-style:none; background-color:#777;\n}\n\n#apijsBox ul.kbd li { margin:0 0.5em; line-height:1.2rem; }\n#apijsBox ul.kbd li kbd:last-child { margin-left:0.4em; }\n\n#apijsBox kbd {\n\tmargin-left:0.2em; padding:0 0.21em;\n\tfont-size:inherit; font-weight:700; text-transform:uppercase; border:0; background-color:#888;\n}\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& images &&& */\n@font-face {\n\tsrc:url(\"../fonts/apijs/fontello.woff2\") format(\"woff2\"), url(\"../fonts/apijs/fontello.woff\") format(\"woff\");\n\tfont-family:apijsFontello; font-weight:400; font-style:normal;\n}\n\n#apijsBox h1:before, #apijsBox div.btns button span:before, #apijsBox kbd:before, div.apijsplayer span.fnt {\n\tfont-family:apijsFontello; font-style:normal; font-weight:400; font-variant:normal; text-transform:none; text-decoration:inherit;\n\t-moz-osx-font-smoothing:grayscale; -webkit-font-smoothing:antialiased;\n}\n\n#apijsBox h1:before { float:right; width:1.3em; text-align:center; font-size:1.5em; }\n#apijsBox.information h1:before { content:\"\\E80B\\0000A0\"; }\n#apijsBox.confirmation h1:before { content:\"\\E80C\\0000A0\"; }\n#apijsBox.options h1:before { content:\"\\E80E\\0000A0\"; }\n#apijsBox.upload h1:before { content:\"\\F15B\\0000A0\"; }\n#apijsBox.progress h1:before { content:\"\\F1D8\\0000A0\"; }\n#apijsBox.waiting h1:before { content:\"\\F1D8\\0000A0\"; }\n#apijsBox.download h1:before { content:\"\\F15B\\0000A0\"; }\n#apijsBox.print h1:before { content:\"\\E80D\\0000A0\"; }\n#apijsBox.error h1:before { content:\"\\E80A\\0000A0\"; }\n#apijsBox.warning h1:before { content:\"\\E80A\\0000A0\"; }\n\n#apijsBox div.btns button span:before { float:right; }\n#apijsBox div.btns button.cancel span:before { content:\"\\E801\\0000A0\"; }\n#apijsBox div.btns button.confirm span:before { content:\"\\E800\\0000A0\"; }\n#apijsBox div.btns button.browse span:before { content:\"\\E802\\0000A0\"; }\n\n#apijsBox kbd.start:before { content:\"\\E807\"; display:inline-block; transform:rotate(45deg); -webkit-transform:rotate(45deg); }\n#apijsBox kbd.bottom:before { content:\"\\E804\"; }\n#apijsBox kbd.left:before { content:\"\\E805\"; }\n#apijsBox kbd.right:before { content:\"\\E806\"; }\n#apijsBox kbd.topk:before { content:\"\\E807\"; }\n#apijsBox kbd.plus:before { content:\"\\E809\"; }\n#apijsBox kbd.minus:before { content:\"\\E808\"; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& animations &&& */\n@keyframes apijsProgress { 0% { width:20%; } 50% { transform:translate(-400%, 0); } 100% { width:20%; } }\n@-webkit-keyframes apijsProgress { 0% { width:20%; } 50% { right:80%; } 100% { width:20%; } }\n@keyframes apijsFocus { 50% { border-color:#BBB; } }\n@-webkit-keyframes apijsFocus { 50% { border-color:#BBB; } }\n@keyframes apijsReplace { 50% { color:transparent; } 100% { content:attr(data-new); } }\n@-webkit-keyframes apijsReplace { 50% { color:transparent; } 100% { content:attr(data-new); } }"]} \ No newline at end of file diff --git a/src/zip/apijs-screen.min.css b/src/zip/apijs-screen.min.css index b056049..5c55439 100644 --- a/src/zip/apijs-screen.min.css +++ b/src/zip/apijs-screen.min.css @@ -1,8 +1,8 @@ /*! - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) - * https://github.com/luigifab/apijs - 6.9.5 + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) + * https://github.com/luigifab/apijs - 6.9.6 * This program is free software, you can redistribute it or modify * it under the terms of the GNU General Public License (GPL). */ -div.album img,div.gallery img{display:block;margin:auto;overflow:hidden;color:transparent;background-color:#efefef;transition:background-color .3s}div.album a:after,div.album a:before,div.gallery a:after,div.gallery a:before{display:none;content:""}div.gallery{display:inline-flex;flex-direction:column;padding:.5em;vertical-align:top}div.gallery a{display:block;text-decoration:none;border:1px solid transparent}div.gallery ul{display:flex;flex-wrap:wrap;justify-content:space-around;margin:.3em 0 0;padding:0;list-style:none}div.gallery li{margin:.1em 0;padding:0}div.gallery li a{opacity:.7}div.gallery li a.current{border:1px solid #fff;opacity:1}div.album{padding:.4em;text-align:center}div.album dl{display:inline-block;margin:.3em .1em;padding:.5em .5em .45em;vertical-align:top;border:1px solid #efefef;border-radius:.6em;background-color:transparent;transition:border-color .3s,background-color .3s}div.album dl.current{border:1px solid #fff;background-color:#efefef}div.album dt a{display:block;text-decoration:none;border:1px solid transparent}div.album dd{margin:.5em .5em 0;overflow:hidden;font-size:.8em;white-space:nowrap;text-overflow:ellipsis;transition:color .3s}div.album dl:hover{border-color:#ccc;background-color:#efefef}div.album dl.current img,div.album dl:hover img{background-color:#fff}div[id=apijsDialog] *{margin:0;padding:0}#apijsDialog button,#apijsDialog label{cursor:pointer}#apijsDialog button:disabled{cursor:default}#apijsDialog{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;text-align:center;direction:ltr;z-index:99000;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;transition:background-color .5s,opacity .25s;opacity:0}#apijsDialog.ready{background-color:rgba(0,0,0,.65);opacity:1}#apijsDialog.fullscreen .nofullscreen{display:none!important}#apijsDialog.loading,#apijsDialog.progress,#apijsDialog.waiting{cursor:progress}#apijsDialog.reduce,#apijsDialog.reduce *{transition:none!important}#apijsBox{position:relative;top:21%;display:inline-block;padding:.6em .8em 2.4em;width:26rem;max-width:26rem;min-height:9em;overflow:hidden;text-align:left;color:#000;border-radius:.8em;background-color:#fff;box-shadow:0 0 2.5em #111}#apijsBox.photo,#apijsBox.video{display:flex;flex-direction:column;position:absolute;top:0;right:0;bottom:0;left:0;padding:0;width:auto;max-width:inherit;min-height:inherit;text-align:center;border-radius:0;background-color:rgba(0,0,0,.8);box-shadow:none}#apijsBox.video{background-color:#000}#apijsBox.photo.error,#apijsBox.video.error{background-image:url("../images/apijs/tv.gif");background-repeat:repeat}#apijsBox.options,#apijsBox.progress,#apijsBox.upload{min-height:15em}#apijsBox.ajax,#apijsBox.iframe{padding:2.5em .8em 1em}#apijsBox.mobile:not(.photo):not(.video){position:absolute;top:1.5em;right:.5em;left:.5em;width:auto;min-height:inherit}#apijsBox.tiny div.navigation button{padding:0 1em}#apijsDialog.drag:before{position:absolute;top:1em;right:1em;bottom:1em;left:1em;content:"";border:2px dashed #fff}#apijsDialog p.drag{position:absolute;right:0;bottom:0;margin:1.5em;font-size:1.3em;color:#fff}#apijsBox div.bbcode{user-select:text;-moz-user-select:text;-ms-user-select:text;-webkit-user-select:text}#apijsBox h1{margin:.15em 0 .7em;height:32px;line-height:32px;font-size:1.49em;font-weight:700}#apijsBox pre{margin:1em auto;line-height:1.42857143;font-size:.7rem;white-space:pre-wrap}#apijsBox p{margin:1em auto;line-height:1.42857143;font-size:1em}#apijsBox ul{margin:-.4em auto 1em}#apijsBox iframe{display:block;width:100%;border:0}#apijsBox iframe.loading{pointer-events:none}#apijsBox.progress p.anim:before{content:attr(data-old);-webkit-animation:apijsReplace 1s linear 2s forwards;animation:apijsReplace 1s linear 2s forwards}#apijsBox.progress span.info{position:absolute;right:1em;bottom:.8em}#apijsBox.progress svg{position:relative;display:block;margin:18px auto;width:80%;height:20px;overflow:hidden;outline:1px solid #333;background-color:#aaa}#apijsBox.progress rect{position:absolute;top:0;bottom:0;left:0;display:block;background:#03ff00 repeating-linear-gradient(-45deg,#03ff00 0,#03ff00 10px,#00ef00 10px,#00ef00 20px);background-size:28px 100%}#apijsBox.progress rect.auto{width:20%;-webkit-animation:apijsProgress 10s infinite linear;animation:apijsProgress 10s infinite linear}#apijsBox.progress rect.end{width:100%;-webkit-animation:apijsProgress 10s infinite 3s linear;animation:apijsProgress 10s infinite 3s linear}#apijsBox svg.loader{position:absolute;display:none;margin:auto;width:128px;height:128px;pointer-events:none}#apijsBox svg.loader path{fill:#808080}#apijsBox.loading svg.loader,#apijsBox.waiting svg.loader{display:block;right:-40px;bottom:-40px;transform:scale(.2);-webkit-transform:scale(.2)}#apijsBox.photo svg.loader,#apijsBox.video svg.loader{right:0;bottom:calc(50% - 64px);left:0;transform:none;-webkit-transform:none}#apijsBox.ajax svg.loader,#apijsBox.iframe svg.loader{right:0;bottom:calc(50% - 64px);left:0}#apijsBox button{font-size:.85em;text-decoration:none;border:0;transition:color .4s,border-color .4s,background-color .4s,opacity .4s}#apijsBox button::-moz-focus-inner{padding:0;outline:0;border:0}#apijsBox button:active,#apijsBox button:focus,#apijsBox button:hover{outline:0}#apijsBox div.btns{position:absolute;right:.8em;bottom:.6em}#apijsBox div.btns.upload{position:relative;right:inherit;left:inherit}#apijsBox div.btns.upload input{display:none}#apijsBox div.btns.upload div.filenames{max-height:11em;overflow-y:auto}#apijsBox div.btns.upload table{border-spacing:0}#apijsBox div.btns.upload td+td{padding-left:.6em}#apijsBox div.btns.upload td.nb{font-size:.85em;color:#676767;vertical-align:bottom}#apijsBox div.btns.upload td.size{white-space:nowrap;color:#676767}#apijsBox div.btns.upload td.err{color:#e41101}#apijsBox div.btns button{padding:0 .7em;height:auto;line-height:24px;color:#000;border:1px solid #bbb;border-radius:.4em;background-color:#e2e2e2}#apijsBox div.btns button:disabled{opacity:.5}#apijsBox div.btns button.cancel{float:left;margin:0 .5em}#apijsBox div.btns button.browse{display:inline-block;margin:.5em 0}#apijsBox div.btns button:active:not(:disabled),#apijsBox div.btns button:focus:not(:disabled),#apijsBox div.btns button:hover:not(:disabled){border-color:#555;background-color:#f4f4f4}#apijsBox div.btns button:focus:not(:hover){-webkit-animation:apijsFocus 1s infinite;animation:apijsFocus 1s infinite}#apijsBox dl.media{display:flex;flex-direction:column-reverse;flex:1;overflow:hidden;color:#fff}#apijsBox dl.media dt{position:relative;display:flex;flex-direction:column;flex:1;overflow:hidden}#apijsBox dl.media dt iframe,#apijsBox dl.media dt img,#apijsBox dl.media dt video{flex:1 1 auto;height:100%;visibility:hidden}#apijsBox dl.media dt img{image-rendering:optimizeQuality;image-rendering:-moz-crisp-edges;object-fit:scale-down}#apijsBox dl.media dt video{outline:0;cursor:pointer}#apijsBox dl.media dt div.apijsplayer{position:absolute;right:0;bottom:0;left:0}#apijsBox dl.media dd{line-height:1.5rem;font-size:.85em;background-color:#666}#apijsBox dl.media dd span{margin:0 .6em;font-size:.9em;font-style:italic}#apijsBox div.close{position:absolute;top:-2px;right:-2px;padding:0 0 3em 3em;z-index:99600}#apijsBox div.close button{padding:0 1.4em;line-height:2.6em;font-size:.8em;font-weight:700;text-transform:uppercase;color:#fff;border:2px solid #fff;border-radius:0 0 0 .8em;background-color:#000}#apijsBox div.navigation button{position:absolute;top:5rem;bottom:5rem;background-color:transparent;opacity:.5}#apijsBox div.navigation button:active,#apijsBox div.navigation button:focus,#apijsBox div.navigation button:hover{opacity:1}#apijsBox div.navigation button:disabled{opacity:0;cursor:default}#apijsBox div.navigation button span{display:block;width:2em;height:2em;border-top:2px solid #fff;border-left:2px solid #fff}#apijsBox div.navigation button.prev{left:0;padding:0 20% 0 2em}#apijsBox div.navigation button.prev span{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}#apijsBox div.navigation button.next{right:0;padding:0 2em 0 20%}#apijsBox div.navigation button.next span{transform:rotate(-225deg);-webkit-transform:rotate(-225deg)}#apijsBox ul.kbd{display:flex;justify-content:center;margin:0;text-align:center;font-size:.8em;white-space:nowrap;list-style:none;background-color:#777}#apijsBox ul.kbd li{margin:0 .5em;line-height:1.2rem}#apijsBox ul.kbd li kbd:last-child{margin-right:.4em}#apijsBox kbd{margin-right:.2em;padding:0 .21em;font-size:inherit;font-weight:700;text-transform:uppercase;border:0;background-color:#888}@font-face{src:url("../fonts/apijs/fontello.woff2") format("woff2"),url("../fonts/apijs/fontello.woff") format("woff");font-family:apijsFontello;font-weight:400;font-style:normal}#apijsBox div.btns button span:before,#apijsBox h1:before,#apijsBox kbd:before,div.apijsplayer span.fnt{font-family:apijsFontello;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;text-decoration:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}#apijsBox h1:before{float:left;width:1.3em;text-align:center;font-size:1.5em}#apijsBox.information h1:before{content:"\E80B\0000A0"}#apijsBox.confirmation h1:before{content:"\E80C\0000A0"}#apijsBox.options h1:before{content:"\E80E\0000A0"}#apijsBox.upload h1:before{content:"\F15B\0000A0"}#apijsBox.progress h1:before{content:"\F1D8\0000A0"}#apijsBox.waiting h1:before{content:"\F1D8\0000A0"}#apijsBox.download h1:before{content:"\F15B\0000A0"}#apijsBox.print h1:before{content:"\E80D\0000A0"}#apijsBox.error h1:before{content:"\E80A\0000A0"}#apijsBox.warning h1:before{content:"\E80A\0000A0"}#apijsBox div.btns button span:before{float:left}#apijsBox div.btns button.cancel span:before{content:"\E801\0000A0"}#apijsBox div.btns button.confirm span:before{content:"\E800\0000A0"}#apijsBox div.btns button.browse span:before{content:"\E802\0000A0"}#apijsBox kbd.start:before{content:"\E807";display:inline-block;transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}#apijsBox kbd.bottom:before{content:"\E804"}#apijsBox kbd.left:before{content:"\E805"}#apijsBox kbd.right:before{content:"\E806"}#apijsBox kbd.topk:before{content:"\E807"}#apijsBox kbd.plus:before{content:"\E809"}#apijsBox kbd.minus:before{content:"\E808"}@keyframes apijsProgress{0%{width:20%}50%{transform:translate(400%,0)}100%{width:20%}}@-webkit-keyframes apijsProgress{0%{width:20%}50%{left:80%}100%{width:20%}}@keyframes apijsFocus{50%{border-color:#bbb}}@-webkit-keyframes apijsFocus{50%{border-color:#bbb}}@keyframes apijsReplace{50%{color:transparent}100%{content:attr(data-new)}}@-webkit-keyframes apijsReplace{50%{color:transparent}100%{content:attr(data-new)}}div.apijsvideoplayer{background-color:#000}div.apijsvideoplayer.fullscreen{margin:0!important;padding:0!important;height:100vh!important}div.apijsvideoplayer.fullscreen.playing video{cursor:none!important}div.apijsvideoplayer.fullscreen .nofullscreen{display:none!important}div.apijsvideoplayer.fullscreen.playing .noplaying,div.apijsvideoplayer.playing .noplaying,div.apijsvideoplayer.playing.fullscreen .nofullplaying{transition:opacity .5s;opacity:0}div.apijsvideoplayer.fullscreen.playing .noplaying:hover,div.apijsvideoplayer.playing .noplaying:hover,div.apijsvideoplayer.playing.fullscreen .nofullplaying:hover{opacity:1!important}div.apijsvideoplayer.tiny label{position:initial}div.apijsvideoplayer.tiny label select{left:0;right:0;width:100%}video.apijsplayer{display:block;margin:auto;width:100%;height:calc(100% - 1.8rem)!important;cursor:pointer}div.apijsplayer *{margin:0;padding:0}div.apijsplayer{position:relative;display:flex;align-items:center;z-index:99600;margin-top:-9vh;padding-top:9vh;height:1.8rem;line-height:1.8rem;font-size:.85em;color:#fff;text-align:center;direction:ltr}div.apijsplayer span{padding:0 .4em;height:1.8rem;background-color:#070707}div.apijsplayer span.btn{padding:0;min-width:2.6em;cursor:pointer}div.apijsplayer span.svg{display:flex;align-items:center;height:100%}div.apijsplayer span.bar{flex:1}div.apijsplayer span.vol{width:7em}div.apijsplayer label{position:relative;height:1.8rem;padding:0 .4em;background-color:#070707}div.apijsplayer label option{padding:.2em .4em}div.apijsplayer label option:checked{font-weight:700}div.apijsplayer label option:disabled{font-style:italic;color:#aaa}div.apijsplayer label em{padding-left:.25em;font-style:normal}div.apijsplayer label select{display:none;position:absolute;right:0;bottom:1.8rem;min-width:20em;overflow-y:scroll;color:#000;outline:0;border:0;background:#fff;appearance:none;-moz-appearance:none;-webkit-appearance:none;overscroll-behavior:none}div.apijsplayer label:hover,div.apijsplayer span.btn:hover{color:#000;background-color:#fff}div.apijsplayer label:hover select{display:block}div.apijsplayer svg{position:relative;flex:1;height:30%;overflow:hidden;border-radius:.4em;background-color:#222;cursor:pointer}div.apijsplayer rect{position:absolute;top:0;bottom:0;left:0;display:block;z-index:99460;background-color:#00b6f0}div.apijsplayer rect.buffer{z-index:99440;background-color:#515151}div.apijsplayer svg.vol rect{width:100%;background-color:#fff} +div.album img,div.gallery img{display:block;margin:auto;overflow:hidden;color:transparent;background-color:#efefef;transition:background-color .3s}div.album a:after,div.album a:before,div.gallery a:after,div.gallery a:before{display:none;content:""}div.gallery{display:inline-flex;flex-direction:column;padding:.5em;vertical-align:top}div.gallery a{display:block;text-decoration:none;border:1px solid transparent}div.gallery ul{display:flex;flex-wrap:wrap;justify-content:space-around;margin:.3em 0 0;padding:0;list-style:none}div.gallery li{margin:.1em 0;padding:0}div.gallery li a{opacity:.7}div.gallery li a.current{border:1px solid #fff;opacity:1}div.album{padding:.4em;text-align:center}div.album dl{display:inline-block;margin:.3em .1em;padding:.5em .5em .45em;vertical-align:top;border:1px solid #efefef;border-radius:.6em;background-color:transparent;transition:border-color .3s,background-color .3s}div.album dl.current{border:1px solid #fff;background-color:#efefef}div.album dt a{display:block;text-decoration:none;border:1px solid transparent}div.album dd{margin:.5em .5em 0;overflow:hidden;font-size:.8em;white-space:nowrap;text-overflow:ellipsis;transition:color .3s}div.album dl:hover{border-color:#ccc;background-color:#efefef}div.album dl.current img,div.album dl:hover img{background-color:#fff}div[id=apijsDialog] *{margin:0;padding:0}#apijsDialog{position:fixed;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:0;text-align:center;z-index:99000;direction:ltr;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;border:0;transition:background-color .5s,opacity .25s;opacity:0}#apijsDialog.ready{background-color:rgba(0,0,0,.65);opacity:1}#apijsDialog.fullscreen .nofullscreen{display:none!important}#apijsDialog.loading,#apijsDialog.progress,#apijsDialog.waiting{cursor:progress}#apijsDialog.reduce,#apijsDialog.reduce *{transition:none!important}#apijsDialog button,#apijsDialog label{cursor:pointer}#apijsDialog button:disabled{cursor:default}#apijsBox{position:relative;top:21%;display:inline-block;padding:.6em .8em 2.4em;width:26rem;max-width:26rem;min-height:9em;overflow:hidden;text-align:left;color:#000;border:0;border-radius:.8em;background-color:#fff;box-shadow:0 0 2.5em #111}#apijsBox.photo,#apijsBox.video{display:flex;flex-direction:column;position:absolute;top:0;right:0;bottom:0;left:0;padding:0;width:auto;max-width:inherit;min-height:inherit;text-align:center;border-radius:0;background-color:rgba(0,0,0,.8);box-shadow:none}#apijsBox.video{background-color:#000}#apijsBox.photo.error,#apijsBox.video.error{background-image:url("../images/apijs/tv.gif");background-repeat:repeat}#apijsBox.options,#apijsBox.progress,#apijsBox.upload{min-height:15em}#apijsBox.ajax,#apijsBox.iframe{padding:2.5em .8em 1em}#apijsBox.mobile:not(.photo):not(.video){position:absolute;top:1.5em;right:.5em;left:.5em;width:auto;min-height:inherit}#apijsBox.tiny div.navigation button{padding:0 1em}#apijsDialog.drag:before{position:absolute;top:1em;right:1em;bottom:1em;left:1em;content:"";border:2px dashed #fff}#apijsDialog p.drag{position:absolute;right:0;bottom:0;margin:1.5em;font-size:1.3em;color:#fff}#apijsBox div.bbcode{user-select:text;-moz-user-select:text;-ms-user-select:text;-webkit-user-select:text}#apijsBox h1{margin:.15em 0 .7em;height:32px;line-height:32px;font-size:1.49em;font-weight:700}#apijsBox pre{margin:1em auto;line-height:1.42857143;font-size:.7rem;white-space:pre-wrap}#apijsBox p{margin:1em auto;line-height:1.42857143;font-size:1em}#apijsBox ul{margin:-.4em auto 1em}#apijsBox iframe{display:block;width:100%;border:0}#apijsBox iframe.loading{pointer-events:none}#apijsBox.progress p.anim:before{content:attr(data-old);-webkit-animation:apijsReplace 1s linear 2s forwards;animation:apijsReplace 1s linear 2s forwards}#apijsBox.progress span.info{position:absolute;right:1em;bottom:.8em}#apijsBox.progress svg{position:relative;display:block;margin:18px auto;width:80%;height:20px;overflow:hidden;outline:1px solid #333;background-color:#aaa}#apijsBox.progress rect{position:absolute;top:0;bottom:0;left:0;display:block;background:#03ff00 repeating-linear-gradient(-45deg,#03ff00 0,#03ff00 10px,#00ef00 10px,#00ef00 20px);background-size:28px 100%}#apijsBox.progress rect.auto{width:20%;-webkit-animation:apijsProgress 10s infinite linear;animation:apijsProgress 10s infinite linear}#apijsBox.progress rect.end{width:100%;-webkit-animation:apijsProgress 10s infinite 3s linear;animation:apijsProgress 10s infinite 3s linear}#apijsBox svg.loader{position:absolute;display:none;margin:auto;width:128px;height:128px;pointer-events:none}#apijsBox svg.loader path{fill:#808080}#apijsBox.loading svg.loader,#apijsBox.waiting svg.loader{display:block;right:-40px;bottom:-40px;transform:scale(.2);-webkit-transform:scale(.2)}#apijsBox.photo svg.loader,#apijsBox.video svg.loader{right:0;bottom:calc(50% - 64px);left:0;transform:none;-webkit-transform:none}#apijsBox.ajax svg.loader,#apijsBox.iframe svg.loader{right:0;bottom:calc(50% - 64px);left:0}#apijsBox button{font-size:.85em;text-decoration:none;border:0;transition:color .4s,border-color .4s,background-color .4s,opacity .4s}#apijsBox button::-moz-focus-inner{padding:0;outline:0;border:0}#apijsBox button:active,#apijsBox button:focus,#apijsBox button:hover{outline:0}#apijsBox div.btns{position:absolute;right:.8em;bottom:.6em}#apijsBox div.btns.upload{position:relative;right:inherit;left:inherit}#apijsBox div.btns.upload input{display:none}#apijsBox div.btns.upload div.filenames{max-height:11em;overflow-y:auto}#apijsBox div.btns.upload table{border-spacing:0}#apijsBox div.btns.upload td+td{padding-left:.6em}#apijsBox div.btns.upload td.nb{font-size:.85em;color:#676767;vertical-align:bottom}#apijsBox div.btns.upload td.size{white-space:nowrap;color:#676767}#apijsBox div.btns.upload td.err{color:#e41101}#apijsBox div.btns button{padding:0 .7em;height:auto;line-height:24px;color:#000;border:1px solid #bbb;border-radius:.4em;background-color:#e2e2e2}#apijsBox div.btns button:disabled{opacity:.5}#apijsBox div.btns button.cancel{float:left;margin:0 .5em}#apijsBox div.btns button.browse{display:inline-block;margin:.5em 0}#apijsBox div.btns button:active:not(:disabled),#apijsBox div.btns button:focus:not(:disabled),#apijsBox div.btns button:hover:not(:disabled){border-color:#555;background-color:#f4f4f4}#apijsBox div.btns button:focus:not(:hover){-webkit-animation:apijsFocus 1s infinite;animation:apijsFocus 1s infinite}#apijsBox dl.media{display:flex;flex-direction:column-reverse;flex:1;overflow:hidden;color:#fff}#apijsBox dl.media dt{position:relative;display:flex;flex-direction:column;flex:1;overflow:hidden}#apijsBox dl.media dt iframe,#apijsBox dl.media dt img,#apijsBox dl.media dt video{flex:1 1 auto;height:100%;visibility:hidden}#apijsBox dl.media dt img{image-rendering:optimizeQuality;image-rendering:-moz-crisp-edges;object-fit:scale-down}#apijsBox dl.media dt video{outline:0;cursor:pointer}#apijsBox dl.media dt div.apijsplayer{position:absolute;right:0;bottom:0;left:0}#apijsBox dl.media dd{line-height:1.5rem;font-size:.85em;background-color:#666}#apijsBox dl.media dd span{margin:0 .6em;font-size:.9em;font-style:italic}#apijsBox div.close{position:absolute;top:-2px;right:-2px;padding:0 0 3em 3em;z-index:99600}#apijsBox div.close button{padding:0 1.4em;line-height:2.6em;font-size:.8em;font-weight:700;text-transform:uppercase;color:#fff;border:2px solid #fff;border-radius:0 0 0 .8em;background-color:#000}#apijsBox div.navigation button{position:absolute;top:5rem;bottom:5rem;background-color:transparent;opacity:.5}#apijsBox div.navigation button:active,#apijsBox div.navigation button:focus,#apijsBox div.navigation button:hover{opacity:1}#apijsBox div.navigation button:disabled{opacity:0;cursor:default}#apijsBox div.navigation button span{display:block;width:2em;height:2em;border-top:2px solid #fff;border-left:2px solid #fff}#apijsBox div.navigation button.prev{left:0;padding:0 20% 0 2em}#apijsBox div.navigation button.prev span{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}#apijsBox div.navigation button.next{right:0;padding:0 2em 0 20%}#apijsBox div.navigation button.next span{transform:rotate(-225deg);-webkit-transform:rotate(-225deg)}#apijsBox ul.kbd{display:flex;justify-content:center;margin:0;text-align:center;font-size:.8em;white-space:nowrap;list-style:none;background-color:#777}#apijsBox ul.kbd li{margin:0 .5em;line-height:1.2rem}#apijsBox ul.kbd li kbd:last-child{margin-right:.4em}#apijsBox kbd{margin-right:.2em;padding:0 .21em;font-size:inherit;font-weight:700;text-transform:uppercase;border:0;background-color:#888}@font-face{src:url("../fonts/apijs/fontello.woff2") format("woff2"),url("../fonts/apijs/fontello.woff") format("woff");font-family:apijsFontello;font-weight:400;font-style:normal}#apijsBox div.btns button span:before,#apijsBox h1:before,#apijsBox kbd:before,div.apijsplayer span.fnt{font-family:apijsFontello;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;text-decoration:inherit;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}#apijsBox h1:before{float:left;width:1.3em;text-align:center;font-size:1.5em}#apijsBox.information h1:before{content:"\E80B\0000A0"}#apijsBox.confirmation h1:before{content:"\E80C\0000A0"}#apijsBox.options h1:before{content:"\E80E\0000A0"}#apijsBox.upload h1:before{content:"\F15B\0000A0"}#apijsBox.progress h1:before{content:"\F1D8\0000A0"}#apijsBox.waiting h1:before{content:"\F1D8\0000A0"}#apijsBox.download h1:before{content:"\F15B\0000A0"}#apijsBox.print h1:before{content:"\E80D\0000A0"}#apijsBox.error h1:before{content:"\E80A\0000A0"}#apijsBox.warning h1:before{content:"\E80A\0000A0"}#apijsBox div.btns button span:before{float:left}#apijsBox div.btns button.cancel span:before{content:"\E801\0000A0"}#apijsBox div.btns button.confirm span:before{content:"\E800\0000A0"}#apijsBox div.btns button.browse span:before{content:"\E802\0000A0"}#apijsBox kbd.start:before{content:"\E807";display:inline-block;transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}#apijsBox kbd.bottom:before{content:"\E804"}#apijsBox kbd.left:before{content:"\E805"}#apijsBox kbd.right:before{content:"\E806"}#apijsBox kbd.topk:before{content:"\E807"}#apijsBox kbd.plus:before{content:"\E809"}#apijsBox kbd.minus:before{content:"\E808"}@keyframes apijsProgress{0%{width:20%}50%{transform:translate(400%,0)}100%{width:20%}}@-webkit-keyframes apijsProgress{0%{width:20%}50%{left:80%}100%{width:20%}}@keyframes apijsFocus{50%{border-color:#bbb}}@-webkit-keyframes apijsFocus{50%{border-color:#bbb}}@keyframes apijsReplace{50%{color:transparent}100%{content:attr(data-new)}}@-webkit-keyframes apijsReplace{50%{color:transparent}100%{content:attr(data-new)}}div.apijsvideoplayer{background-color:#000}div.apijsvideoplayer.fullscreen{margin:0!important;padding:0!important;height:100vh!important}div.apijsvideoplayer.fullscreen.playing video{cursor:none!important}div.apijsvideoplayer.fullscreen .nofullscreen{display:none!important}div.apijsvideoplayer.fullscreen.playing .noplaying,div.apijsvideoplayer.playing .noplaying,div.apijsvideoplayer.playing.fullscreen .nofullplaying{transition:opacity .5s;opacity:0}div.apijsvideoplayer.fullscreen.playing .noplaying:hover,div.apijsvideoplayer.playing .noplaying:hover,div.apijsvideoplayer.playing.fullscreen .nofullplaying:hover{opacity:1!important}div.apijsvideoplayer.tiny label{position:initial}div.apijsvideoplayer.tiny label select{left:0;right:0;width:100%}video.apijsplayer{display:block;margin:auto;width:100%;height:calc(100% - 1.8rem)!important;cursor:pointer}div.apijsplayer *{margin:0;padding:0}div.apijsplayer{position:relative;display:flex;align-items:center;z-index:99600;margin-top:-9vh;padding-top:9vh;height:1.8rem;line-height:1.8rem;font-size:.85em;color:#fff;text-align:center;direction:ltr}div.apijsplayer span{padding:0 .4em;height:1.8rem;background-color:#070707}div.apijsplayer span.btn{padding:0;min-width:2.6em;cursor:pointer}div.apijsplayer span.svg{display:flex;align-items:center;height:100%}div.apijsplayer span.bar{flex:1}div.apijsplayer span.vol{width:7em}div.apijsplayer label{position:relative;height:1.8rem;padding:0 .4em;background-color:#070707}div.apijsplayer label option{padding:.2em .4em}div.apijsplayer label option:checked{font-weight:700}div.apijsplayer label option:disabled{font-style:italic;color:#aaa}div.apijsplayer label em{padding-left:.25em;font-style:normal}div.apijsplayer label select{display:none;position:absolute;right:0;bottom:1.8rem;min-width:20em;overflow-y:scroll;color:#000;outline:0;border:0;background:#fff;appearance:none;-moz-appearance:none;-webkit-appearance:none;overscroll-behavior:none}div.apijsplayer label:hover,div.apijsplayer span.btn:hover{color:#000;background-color:#fff}div.apijsplayer label:hover select{display:block}div.apijsplayer svg{position:relative;flex:1;height:30%;overflow:hidden;border-radius:.4em;background-color:#222;cursor:pointer}div.apijsplayer rect{position:absolute;top:0;bottom:0;left:0;display:block;z-index:99460;background-color:#00b6f0}div.apijsplayer rect.buffer{z-index:99440;background-color:#515151}div.apijsplayer svg.vol rect{width:100%;background-color:#fff} /*# sourceMappingURL=apijs-screen.min.css.map */ \ No newline at end of file diff --git a/src/zip/apijs-screen.min.css.map b/src/zip/apijs-screen.min.css.map index ba2eff5..1221930 100644 --- a/src/zip/apijs-screen.min.css.map +++ b/src/zip/apijs-screen.min.css.map @@ -1 +1 @@ -{"version":3,"sources":["cc8bb","../code/apijs/src/styles/album.css","../code/apijs/src/styles/dialog.css","../code/apijs/src/styles/player.css"],"names":[],"mappings":"AAAA;;;;;;ACmBiB,cAAjB,gBACC,QAAQ,MAAO,OAAO,KAAM,SAAS,OACrC,MAAM,YAAa,iBAAiB,QAAS,WAAW,iBAAiB,IAGX,kBAApB,mBAArB,oBAAtB,qBAAmF,QAAQ,KAAM,QAAQ,GAGzG,YAAc,QAAQ,YAAa,eAAe,OAAQ,QAAQ,KAAO,eAAe,IAExF,cAAgB,QAAQ,MAAO,gBAAgB,KAAM,OAAO,IAAI,MAAM,YACtE,eAAiB,QAAQ,KAAM,UAAU,KAAM,gBAAgB,aAAc,OAAO,KAAM,EAAE,EAAG,QAAQ,EAAG,WAAW,KACrH,eAAiB,OAAO,KAAM,EAAG,QAAQ,EACzC,iBAAmB,QAAQ,GAC3B,yBAA2B,OAAO,IAAI,MAAM,KAAO,QAAQ,EAG3D,UAAY,QAAQ,KAAO,WAAW,OAEtC,aACC,QAAQ,aAAc,OAAO,KAAM,KAAO,QAAQ,KAAM,KAAM,MAAQ,eAAe,IACrF,OAAO,IAAI,MAAM,QAAS,cAAc,KAAO,iBAAiB,YAAa,WAAW,aAAa,GAAI,CAAE,iBAAiB,IAG7H,qBAAuB,OAAO,IAAI,MAAM,KAAO,iBAAiB,QAChE,eAAiB,QAAQ,MAAO,gBAAgB,KAAM,OAAO,IAAI,MAAM,YAEvE,aACC,OAAO,KAAM,KAAM,EAAG,SAAS,OAC/B,UAAU,KAAO,YAAY,OAAQ,cAAc,SAAU,WAAW,MAAM,IAG/E,mBAAqB,aAAa,KAAM,iBAAiB,QACjC,yBAAxB,uBAAmD,iBAAiB,KCjCpE,sBAA0B,OAAO,EAAG,QAAQ,EAE5C,oBAAqB,mBAAqB,OAAO,QACjD,6BAA+B,OAAO,QAEtC,aACC,SAA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AY,OAAQ,QAAQ,MAC7D,WAAW,KAAM,YAAY,IAAK,OAAO,OAAQ,YAAY,OAC7D,UAAU,MAAQ,MAAM,KAAO,WAAW,OAAQ,UAAU,IAG7D,qBAAuB,QAAQ,EAAE,KAAO,OAAO,OAAQ,iBAAiB,QACxE,yBAA2B,QAAQ,EAAG,UAAU,MAAO,OAAO,QAC9D,yBAA2B,QAAQ,KAAM,YAAY,OAAQ,OAAO,KACpE,yBAA2B,KAAK,EAChC,yBAA2B,MAAM,IACjC,sBAAwB,SAAS,SAAU,OAAO,OAAQ,QAAQ,EAAE,KAAO,iBAAiB,QAC5F,6BAA+B,QAAQ,KAAM,KAC7C,qCAAuC,YAAY,IACnD,sCAAwC,WAAW,OAAQ,MAAM,KACjE,yBAA2B,aAAa,MAAQ,WAAW,OAE3D,6BACC,QAAQ,KAAM,SAAS,SAAU,MAAM,EAAG,OAAO,OAAQ,UAAU,KAAM,WAAW,OACpF,MAAM,KAAO,QAAQ,EAAG,OAAO,EAAG,WAAW,KAAO,WAAW,KAAM,gBAAgB,KAAM,mBAAmB,KAC9G,oBAAoB,KAGrB,4BAA6B,+BAAiC,MAAM,KAAO,iBAAiB,KAC5F,mCAAqC,QAAQ,MAE7C,oBAAuB,SAAS,SAAU,KAAK,EAAG,OAAO,IAAK,SAAS,OAAQ,cAAc,KAAO,iBAAiB,KAAM,OAAO,QAClI,qBAAuB,SAAS,SAAU,IAAI,EAAG,OAAO,EAAG,KAAK,EAAG,QAAQ,MAAO,QAAQ,MAAO,iBAAiB,QAClH,4BAA8B,QAAQ,MAAO,iBAAiB,QAC9D,6BAA+B,MAAM,KAAM,iBAAiB","sourcesContent":["/*!\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs - 6.9.5\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL).\n */\n","/**\n * Created V/08/05/2009\n * Updated J/12/09/2019\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv.gallery img, div.album img {\n\tdisplay:block; margin:auto; overflow:hidden;\n\tcolor:transparent; background-color:#EFEFEF; transition:background-color 0.3s;\n}\n\ndiv.gallery a:before, div.gallery a:after, div.album a:before, div.album a:after { display:none; content:\"\"; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& gallery &&& */\ndiv.gallery { display:inline-flex; flex-direction:column; padding:0.5em; vertical-align:top; }\n\ndiv.gallery a { display:block; text-decoration:none; border:1px solid transparent; }\ndiv.gallery ul { display:flex; flex-wrap:wrap; justify-content:space-around; margin:0.3em 0 0; padding:0; list-style:none; }\ndiv.gallery li { margin:0.1em 0; padding:0; }\ndiv.gallery li a { opacity:0.7; }\ndiv.gallery li a.current { border:1px solid white; opacity:1; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& album &&& */\ndiv.album { padding:0.4em; text-align:center; }\n\ndiv.album dl {\n\tdisplay:inline-block; margin:0.3em 0.1em; padding:0.5em 0.5em 0.45em; vertical-align:top;\n\tborder:1px solid #EFEFEF; border-radius:0.6em; background-color:transparent; transition:border-color 0.3s, background-color 0.3s;\n}\n\ndiv.album dl.current { border:1px solid white; background-color:#EFEFEF; }\ndiv.album dt a { display:block; text-decoration:none; border:1px solid transparent; }\n\ndiv.album dd {\n\tmargin:0.5em 0.5em 0; overflow:hidden;\n\tfont-size:0.8em; white-space:nowrap; text-overflow:ellipsis; transition:color 0.3s;\n}\n\ndiv.album dl:hover { border-color:#CCC; background-color:#EFEFEF; }\ndiv.album dl:hover img, div.album dl.current img { background-color:white; }","/**\n * Created V/08/05/2009\n * Updated L/02/10/2023\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv[id=\"apijsDialog\"] * { margin:0; padding:0; }\n\n#apijsDialog button, #apijsDialog label { cursor:pointer; }\n#apijsDialog button:disabled { cursor:default; }\n\n#apijsDialog {\n\tposition:fixed; top:0; right:0; bottom:0; left:0; width:100%; height:100%; text-align:center; direction:ltr; z-index:99000;\n\tuser-select:none; -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none;\n\ttransition:background-color 0.5s, opacity 0.25s; opacity:0;\n}\n\n#apijsDialog.ready { background-color:rgba(0, 0, 0, 0.65); opacity:1; }\n#apijsDialog.fullscreen .nofullscreen { display:none !important; }\n#apijsDialog.progress, #apijsDialog.waiting, #apijsDialog.loading { cursor:progress; }\n#apijsDialog.reduce, #apijsDialog.reduce * { transition:none !important; }\n\n#apijsBox {\n\tposition:relative; top:21%; display:inline-block; padding:0.6em 0.8em 2.4em; width:26rem; max-width:26rem; min-height:9em; overflow:hidden;\n\ttext-align:left; color:black; border-radius:0.8em; background-color:white; box-shadow:0 0 2.5em #111;\n}\n\n#apijsBox.photo, #apijsBox.video {\n\tdisplay:flex; flex-direction:column;\n\tposition:absolute; top:0; right:0; bottom:0; left:0; padding:0; width:auto; max-width:inherit; min-height:inherit; text-align:center;\n\tborder-radius:0; background-color:rgba(0, 0, 0, 0.8); box-shadow:none;\n}\n\n#apijsBox.video { background-color:black; }\n#apijsBox.photo.error, #apijsBox.video.error { background-image:url(\"../images/apijs/tv.gif\"); background-repeat:repeat; }\n#apijsBox.options, #apijsBox.upload, #apijsBox.progress { min-height:15em; }\n#apijsBox.iframe, #apijsBox.ajax { padding:2.5em 0.8em 1em; }\n\n#apijsBox.mobile:not(.photo):not(.video) { position:absolute; top:1.5em; right:0.5em; left:0.5em; width:auto; min-height:inherit; }\n#apijsBox.tiny div.navigation button { padding:0 1em; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& glisser/déposer &&& */\n#apijsDialog.drag:before {\n\tposition:absolute; top:1em; right:1em; bottom:1em; left:1em; content:\"\";\n\tborder: 2px dashed white;\n}\n\n#apijsDialog p.drag { position:absolute; right:0; bottom:0; margin:1.5em; font-size:1.3em; color:white; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& texte &&& */\n#apijsBox div.bbcode { user-select:text; -moz-user-select:text; -ms-user-select:text; -webkit-user-select:text; }\n\n#apijsBox h1 { margin:0.15em 0 0.7em; height:32px; line-height:32px; font-size:1.49em; font-weight:700; }\n#apijsBox pre { margin:1em auto; line-height:1.42857143; font-size:0.7rem; white-space:pre-wrap; }\n#apijsBox p { margin:1em auto; line-height:1.42857143; font-size:1em; }\n#apijsBox ul { margin:-0.4em auto 1em; }\n\n#apijsBox iframe { display:block; width:100%; border:0; }\n#apijsBox iframe.loading { pointer-events:none; }\n\n#apijsBox.progress p.anim:before {\n\tcontent:attr(data-old);\n\t-webkit-animation:apijsReplace 1s linear 2s forwards; animation:apijsReplace 1s linear 2s forwards;\n}\n\n#apijsBox.progress span.info { position:absolute; right:1em; bottom:0.8em; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& barre de progression &&& */\n#apijsBox.progress svg {\n\tposition:relative; display:block; margin:18px auto; width:80%; height:20px; overflow:hidden;\n\toutline:1px solid #333; background-color:#AAA;\n}\n\n#apijsBox.progress rect {\n\tposition:absolute; top:0; bottom:0; left:0; display:block;\n\tbackground:#03FF00 repeating-linear-gradient(-45deg, #03FF00 0, #03FF00 10px, #00EF00 10px, #00EF00 20px); background-size:28px 100%;\n}\n\n#apijsBox.progress rect.auto { width:20%; -webkit-animation:apijsProgress 10s infinite linear; animation:apijsProgress 10s infinite linear; }\n#apijsBox.progress rect.end { width:100%; -webkit-animation:apijsProgress 10s infinite 3s linear; animation:apijsProgress 10s infinite 3s linear; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& image d'attente &&& **\n * (loading) waiting photo video iframe ajax */\n#apijsBox svg.loader { position:absolute; display:none; margin:auto; width:128px; height:128px; pointer-events:none; }\n#apijsBox svg.loader path { fill:#808080; }\n\n#apijsBox.loading svg.loader, #apijsBox.waiting svg.loader {\n\tdisplay:block; right:-40px; bottom:-40px;\n\ttransform:scale(0.2); -webkit-transform:scale(0.2);\n}\n\n#apijsBox.photo svg.loader, #apijsBox.video svg.loader { right:0; bottom:calc(50% - 64px); left:0; transform:none; -webkit-transform:none; }\n#apijsBox.iframe svg.loader, #apijsBox.ajax svg.loader { right:0; bottom:calc(50% - 64px); left:0; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& boutons &&& */\n#apijsBox button {\n\tfont-size:0.85em; text-decoration:none; border:0;\n\ttransition:color 0.4s, border-color 0.4s, background-color 0.4s, opacity 0.4s;\n}\n\n#apijsBox button::-moz-focus-inner { padding:0; outline:0; border:0; }\n#apijsBox button:hover, #apijsBox button:active, #apijsBox button:focus { outline:0; }\n\n#apijsBox div.btns { position:absolute; right:0.8em; bottom:0.6em; }\n#apijsBox div.btns.upload { position:relative; right:inherit; left:inherit; }\n#apijsBox div.btns.upload input { display:none; }\n#apijsBox div.btns.upload div.filenames { max-height:11em; overflow-y:auto; }\n#apijsBox div.btns.upload table { border-spacing:0; }\n#apijsBox div.btns.upload td + td { padding-left:0.6em; }\n#apijsBox div.btns.upload td.nb { font-size:0.85em; color:#676767; vertical-align:bottom; }\n#apijsBox div.btns.upload td.size { white-space:nowrap; color:#676767; }\n#apijsBox div.btns.upload td.err { color:#E41101; }\n\n#apijsBox div.btns button {\n\tpadding:0 0.7em; height:auto; line-height:24px;\n\tcolor:black; border:1px solid #BBB; border-radius:0.4em; background-color:#E2E2E2;\n}\n\n#apijsBox div.btns button:disabled { opacity:0.5; }\n#apijsBox div.btns button.cancel { float:left; margin:0 0.5em; }\n#apijsBox div.btns button.browse { display:inline-block; margin:0.5em 0; }\n\n#apijsBox div.btns button:hover:not(:disabled), #apijsBox div.btns button:active:not(:disabled),\n#apijsBox div.btns button:focus:not(:disabled) { border-color:#555; background-color:#F4F4F4; }\n#apijsBox div.btns button:focus:not(:hover) { -webkit-animation:apijsFocus 1s infinite; animation:apijsFocus 1s infinite; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& dialogues photo et vidéo &&& */\n#apijsBox dl.media { display:flex; flex-direction:column-reverse; flex:1; overflow:hidden; color:white; }\n\n#apijsBox dl.media dt { position:relative; display:flex; flex-direction:column; flex:1; overflow:hidden; }\n#apijsBox dl.media dt img, #apijsBox dl.media dt video, #apijsBox dl.media dt iframe { flex:1 1 auto; height:100%; visibility:hidden; }\n#apijsBox dl.media dt img { image-rendering:optimizeQuality; image-rendering:-moz-crisp-edges; object-fit:scale-down; }\n#apijsBox dl.media dt video { outline:0; cursor:pointer; }\n#apijsBox dl.media dt div.apijsplayer { position:absolute; right:0; bottom:0; left:0; }\n\n#apijsBox dl.media dd { line-height:1.5rem; font-size:0.85em; background-color:#666; }\n#apijsBox dl.media dd span { margin:0 0.6em; font-size:0.9em; font-style:italic; }\n\n/* &&&&&&&&&&&&&&&&&&&& bouton de fermeture &&& */\n#apijsBox div.close { position:absolute; top:-2px; right:-2px; padding:0 0 3em 3em; z-index:99600; }\n\n#apijsBox div.close button {\n\tpadding:0 1.4em; line-height:2.6em;\n\tfont-size:0.8em; font-weight:700; text-transform:uppercase;\n\tcolor:white; border:2px solid white; border-radius:0 0 0 0.8em; background-color:black;\n}\n\n/* &&&&&&&&&&&&&&&&&& boutons de navigation &&& */\n#apijsBox div.navigation button { position:absolute; top:5rem; bottom:5rem; background-color:transparent; opacity:0.5; }\n#apijsBox div.navigation button:hover, #apijsBox div.navigation button:active, #apijsBox div.navigation button:focus { opacity:1; }\n#apijsBox div.navigation button:disabled { opacity:0; cursor:default; }\n\n#apijsBox div.navigation button span {\n\tdisplay:block; width:2em; height:2em;\n\tborder-top:2px solid white; border-left:2px solid white;\n}\n\n#apijsBox div.navigation button.prev { left:0; padding:0 20% 0 2em; }\n#apijsBox div.navigation button.prev span { transform:rotate(-45deg); -webkit-transform:rotate(-45deg); }\n#apijsBox div.navigation button.next { right:0; padding:0 2em 0 20%; }\n#apijsBox div.navigation button.next span { transform:rotate(-225deg); -webkit-transform:rotate(-225deg); }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& clavier &&& */\n#apijsBox ul.kbd {\n\tdisplay:flex; justify-content:center; margin:0; text-align:center;\n\tfont-size:0.8em; white-space:nowrap; list-style:none; background-color:#777;\n}\n\n#apijsBox ul.kbd li { margin:0 0.5em; line-height:1.2rem; }\n#apijsBox ul.kbd li kbd:last-child { margin-right:0.4em; }\n\n#apijsBox kbd {\n\tmargin-right:0.2em; padding:0 0.21em;\n\tfont-size:inherit; font-weight:700; text-transform:uppercase; border:0; background-color:#888;\n}\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& images &&& */\n@font-face {\n\tsrc:url(\"../fonts/apijs/fontello.woff2\") format(\"woff2\"), url(\"../fonts/apijs/fontello.woff\") format(\"woff\");\n\tfont-family:apijsFontello; font-weight:400; font-style:normal;\n}\n\n#apijsBox h1:before, #apijsBox div.btns button span:before, #apijsBox kbd:before, div.apijsplayer span.fnt {\n\tfont-family:apijsFontello; font-style:normal; font-weight:400; font-variant:normal; text-transform:none; text-decoration:inherit;\n\t-moz-osx-font-smoothing:grayscale; -webkit-font-smoothing:antialiased;\n}\n\n#apijsBox h1:before { float:left; width:1.3em; text-align:center; font-size:1.5em; }\n#apijsBox.information h1:before { content:\"\\E80B\\0000A0\"; }\n#apijsBox.confirmation h1:before { content:\"\\E80C\\0000A0\"; }\n#apijsBox.options h1:before { content:\"\\E80E\\0000A0\"; }\n#apijsBox.upload h1:before { content:\"\\F15B\\0000A0\"; }\n#apijsBox.progress h1:before { content:\"\\F1D8\\0000A0\"; }\n#apijsBox.waiting h1:before { content:\"\\F1D8\\0000A0\"; }\n#apijsBox.download h1:before { content:\"\\F15B\\0000A0\"; }\n#apijsBox.print h1:before { content:\"\\E80D\\0000A0\"; }\n#apijsBox.error h1:before { content:\"\\E80A\\0000A0\"; }\n#apijsBox.warning h1:before { content:\"\\E80A\\0000A0\"; }\n\n#apijsBox div.btns button span:before { float:left; }\n#apijsBox div.btns button.cancel span:before { content:\"\\E801\\0000A0\"; }\n#apijsBox div.btns button.confirm span:before { content:\"\\E800\\0000A0\"; }\n#apijsBox div.btns button.browse span:before { content:\"\\E802\\0000A0\"; }\n\n#apijsBox kbd.start:before { content:\"\\E807\"; display:inline-block; transform:rotate(-45deg); -webkit-transform:rotate(-45deg); }\n#apijsBox kbd.bottom:before { content:\"\\E804\"; }\n#apijsBox kbd.left:before { content:\"\\E805\"; }\n#apijsBox kbd.right:before { content:\"\\E806\"; }\n#apijsBox kbd.topk:before { content:\"\\E807\"; }\n#apijsBox kbd.plus:before { content:\"\\E809\"; }\n#apijsBox kbd.minus:before { content:\"\\E808\"; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& animations &&& */\n@keyframes apijsProgress { 0% { width:20%; } 50% { transform:translate(400%, 0); } 100% { width:20%; } }\n@-webkit-keyframes apijsProgress { 0% { width:20%; } 50% { left:80%; } 100% { width:20%; } }\n@keyframes apijsFocus { 50% { border-color:#BBB; } }\n@-webkit-keyframes apijsFocus { 50% { border-color:#BBB; } }\n@keyframes apijsReplace { 50% { color:transparent; } 100% { content:attr(data-new); } }\n@-webkit-keyframes apijsReplace { 50% { color:transparent; } 100% { content:attr(data-new); } }","/**\n * Created V/01/01/2021\n * Updated S/02/07/2022\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& player &&& */\ndiv.apijsvideoplayer { background-color:black; }\ndiv.apijsvideoplayer.fullscreen { margin:0 !important; padding:0 !important; height:100vh !important; }\ndiv.apijsvideoplayer.fullscreen.playing video { cursor:none !important; }\n\ndiv.apijsvideoplayer.fullscreen .nofullscreen { display:none !important; }\n\ndiv.apijsvideoplayer.playing.fullscreen .nofullplaying,\ndiv.apijsvideoplayer.fullscreen.playing .noplaying,\ndiv.apijsvideoplayer.playing .noplaying { transition:opacity 0.5s; opacity:0; }\n\ndiv.apijsvideoplayer.playing.fullscreen .nofullplaying:hover,\ndiv.apijsvideoplayer.fullscreen.playing .noplaying:hover,\ndiv.apijsvideoplayer.playing .noplaying:hover { opacity:1 !important; }\n\ndiv.apijsvideoplayer.tiny label { position:initial; }\ndiv.apijsvideoplayer.tiny label select { left:0; right:0; width:100%; }\n\nvideo.apijsplayer { display:block; margin:auto; width:100%; height:calc(100% - 1.8rem) !important; cursor:pointer; }\n\n/*rtl:begin:ignore*/\ndiv.apijsplayer * { margin:0; padding:0; }\n\ndiv.apijsplayer {\n\tposition:relative; display:flex; align-items:center; z-index:99600;\n\tmargin-top:-9vh; padding-top:9vh; height:1.8rem; line-height:1.8rem;\n\tfont-size:0.85em; color:white; text-align:center; direction:ltr;\n}\n\ndiv.apijsplayer span { padding:0 0.4em; height:1.8rem; background-color:#070707; }\ndiv.apijsplayer span.btn { padding:0; min-width:2.6em; cursor:pointer; }\ndiv.apijsplayer span.svg { display:flex; align-items:center; height:100%; }\ndiv.apijsplayer span.bar { flex:1; }\ndiv.apijsplayer span.vol { width:7em; }\ndiv.apijsplayer label { position:relative; height:1.8rem; padding:0 0.4em; background-color:#070707; }\ndiv.apijsplayer label option { padding:0.2em 0.4em; }\ndiv.apijsplayer label option:checked { font-weight:700; }\ndiv.apijsplayer label option:disabled { font-style:italic; color:#AAA; }\ndiv.apijsplayer label em { padding-left:0.25em; font-style:normal; }\n\ndiv.apijsplayer label select {\n\tdisplay:none; position:absolute; right:0; bottom:1.8rem; min-width:20em; overflow-y:scroll;\n\tcolor:black; outline:0; border:0; background:white; appearance:none; -moz-appearance:none; -webkit-appearance:none;\n\toverscroll-behavior:none;\n}\n\ndiv.apijsplayer label:hover, div.apijsplayer span.btn:hover { color:black; background-color:white; }\ndiv.apijsplayer label:hover select { display:block; }\n\ndiv.apijsplayer svg { position:relative; flex:1; height:30%; overflow:hidden; border-radius:0.4em; background-color:#222; cursor:pointer; }\ndiv.apijsplayer rect { position:absolute; top:0; bottom:0; left:0; display:block; z-index:99460; background-color:#00B6F0; }\ndiv.apijsplayer rect.buffer { z-index:99440; background-color:#515151; }\ndiv.apijsplayer svg.vol rect { width:100%; background-color:white; }\n/*rtl:end:ignore*/\n/*rtl:raw:div.apijsplayer label { direction:rtl; }*/"]} \ No newline at end of file +{"version":3,"sources":["cc8bb","../code/apijs/src/styles/album.css","../code/apijs/src/styles/dialog.css","../code/apijs/src/styles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AO,WAAW,OAAQ,UAAU,IAG7D,qBAAuB,QAAQ,EAAE,KAAO,OAAO,OAAQ,iBAAiB,QACxE,yBAA2B,QAAQ,EAAG,UAAU,MAAO,OAAO,QAC9D,yBAA2B,QAAQ,KAAM,YAAY,OAAQ,OAAO,KACpE,yBAA2B,KAAK,EAChC,yBAA2B,MAAM,IACjC,sBAAwB,SAAS,SAAU,OAAO,OAAQ,QAAQ,EAAE,KAAO,iBAAiB,QAC5F,6BAA+B,QAAQ,KAAM,KAC7C,qCAAuC,YAAY,IACnD,sCAAwC,WAAW,OAAQ,MAAM,KACjE,yBAA2B,aAAa,MAAQ,WAAW,OAE3D,6BACC,QAAQ,KAAM,SAAS,SAAU,MAAM,EAAG,OAAO,OAAQ,UAAU,KAAM,WAAW,OACpF,MAAM,KAAO,QAAQ,EAAG,OAAO,EAAG,WAAW,KAAO,WAAW,KAAM,gBAAgB,KAAM,mBAAmB,KAC9G,oBAAoB,KAGrB,4BAA6B,+BAAiC,MAAM,KAAO,iBAAiB,KAC5F,mCAAqC,QAAQ,MAE7C,oBAAuB,SAAS,SAAU,KAAK,EAAG,OAAO,IAAK,SAAS,OAAQ,cAAc,KAAO,iBAAiB,KAAM,OAAO,QAClI,qBAAuB,SAAS,SAAU,IAAI,EAAG,OAAO,EAAG,KAAK,EAAG,QAAQ,MAAO,QAAQ,MAAO,iBAAiB,QAClH,4BAA8B,QAAQ,MAAO,iBAAiB,QAC9D,6BAA+B,MAAM,KAAM,iBAAiB","sourcesContent":["/*!\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs - 6.9.6\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL).\n */\n","/**\n * Created V/08/05/2009\n * Updated J/12/09/2019\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv.gallery img, div.album img {\n\tdisplay:block; margin:auto; overflow:hidden;\n\tcolor:transparent; background-color:#EFEFEF; transition:background-color 0.3s;\n}\n\ndiv.gallery a:before, div.gallery a:after, div.album a:before, div.album a:after { display:none; content:\"\"; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& gallery &&& */\ndiv.gallery { display:inline-flex; flex-direction:column; padding:0.5em; vertical-align:top; }\n\ndiv.gallery a { display:block; text-decoration:none; border:1px solid transparent; }\ndiv.gallery ul { display:flex; flex-wrap:wrap; justify-content:space-around; margin:0.3em 0 0; padding:0; list-style:none; }\ndiv.gallery li { margin:0.1em 0; padding:0; }\ndiv.gallery li a { opacity:0.7; }\ndiv.gallery li a.current { border:1px solid white; opacity:1; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& album &&& */\ndiv.album { padding:0.4em; text-align:center; }\n\ndiv.album dl {\n\tdisplay:inline-block; margin:0.3em 0.1em; padding:0.5em 0.5em 0.45em; vertical-align:top;\n\tborder:1px solid #EFEFEF; border-radius:0.6em; background-color:transparent; transition:border-color 0.3s, background-color 0.3s;\n}\n\ndiv.album dl.current { border:1px solid white; background-color:#EFEFEF; }\ndiv.album dt a { display:block; text-decoration:none; border:1px solid transparent; }\n\ndiv.album dd {\n\tmargin:0.5em 0.5em 0; overflow:hidden;\n\tfont-size:0.8em; white-space:nowrap; text-overflow:ellipsis; transition:color 0.3s;\n}\n\ndiv.album dl:hover { border-color:#CCC; background-color:#EFEFEF; }\ndiv.album dl:hover img, div.album dl.current img { background-color:white; }","/**\n * Created V/08/05/2009\n * Updated V/17/10/2023\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& conteneurs &&& */\ndiv[id=\"apijsDialog\"] * { margin:0; padding:0; }\n\n#apijsDialog {\n\tposition:fixed; top:0; right:0; bottom:0; left:0; width:100%; height:100%; margin:0; padding:0; text-align:center; z-index:99000;\n\tdirection:ltr; user-select:none; -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none;\n\tborder:0; transition:background-color 0.5s, opacity 0.25s; opacity:0;\n}\n\n#apijsDialog.ready { background-color:rgba(0, 0, 0, 0.65); opacity:1; }\n#apijsDialog.fullscreen .nofullscreen { display:none !important; }\n#apijsDialog.progress, #apijsDialog.waiting, #apijsDialog.loading { cursor:progress; }\n#apijsDialog.reduce, #apijsDialog.reduce * { transition:none !important; }\n\n#apijsDialog button, #apijsDialog label { cursor:pointer; }\n#apijsDialog button:disabled { cursor:default; }\n\n#apijsBox {\n\tposition:relative; top:21%; display:inline-block; padding:0.6em 0.8em 2.4em; width:26rem; max-width:26rem; min-height:9em; overflow:hidden;\n\ttext-align:left; color:black; border:0; border-radius:0.8em; background-color:white; box-shadow:0 0 2.5em #111;\n}\n\n#apijsBox.photo, #apijsBox.video {\n\tdisplay:flex; flex-direction:column;\n\tposition:absolute; top:0; right:0; bottom:0; left:0; padding:0; width:auto; max-width:inherit; min-height:inherit; text-align:center;\n\tborder-radius:0; background-color:rgba(0, 0, 0, 0.8); box-shadow:none;\n}\n\n#apijsBox.video { background-color:black; }\n#apijsBox.photo.error, #apijsBox.video.error { background-image:url(\"../images/apijs/tv.gif\"); background-repeat:repeat; }\n#apijsBox.options, #apijsBox.upload, #apijsBox.progress { min-height:15em; }\n#apijsBox.iframe, #apijsBox.ajax { padding:2.5em 0.8em 1em; }\n\n#apijsBox.mobile:not(.photo):not(.video) { position:absolute; top:1.5em; right:0.5em; left:0.5em; width:auto; min-height:inherit; }\n#apijsBox.tiny div.navigation button { padding:0 1em; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& glisser/déposer &&& */\n#apijsDialog.drag:before {\n\tposition:absolute; top:1em; right:1em; bottom:1em; left:1em; content:\"\";\n\tborder: 2px dashed white;\n}\n\n#apijsDialog p.drag { position:absolute; right:0; bottom:0; margin:1.5em; font-size:1.3em; color:white; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& texte &&& */\n#apijsBox div.bbcode { user-select:text; -moz-user-select:text; -ms-user-select:text; -webkit-user-select:text; }\n\n#apijsBox h1 { margin:0.15em 0 0.7em; height:32px; line-height:32px; font-size:1.49em; font-weight:700; }\n#apijsBox pre { margin:1em auto; line-height:1.42857143; font-size:0.7rem; white-space:pre-wrap; }\n#apijsBox p { margin:1em auto; line-height:1.42857143; font-size:1em; }\n#apijsBox ul { margin:-0.4em auto 1em; }\n\n#apijsBox iframe { display:block; width:100%; border:0; }\n#apijsBox iframe.loading { pointer-events:none; }\n\n#apijsBox.progress p.anim:before {\n\tcontent:attr(data-old);\n\t-webkit-animation:apijsReplace 1s linear 2s forwards; animation:apijsReplace 1s linear 2s forwards;\n}\n\n#apijsBox.progress span.info { position:absolute; right:1em; bottom:0.8em; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& barre de progression &&& */\n#apijsBox.progress svg {\n\tposition:relative; display:block; margin:18px auto; width:80%; height:20px; overflow:hidden;\n\toutline:1px solid #333; background-color:#AAA;\n}\n\n#apijsBox.progress rect {\n\tposition:absolute; top:0; bottom:0; left:0; display:block;\n\tbackground:#03FF00 repeating-linear-gradient(-45deg, #03FF00 0, #03FF00 10px, #00EF00 10px, #00EF00 20px); background-size:28px 100%;\n}\n\n#apijsBox.progress rect.auto { width:20%; -webkit-animation:apijsProgress 10s infinite linear; animation:apijsProgress 10s infinite linear; }\n#apijsBox.progress rect.end { width:100%; -webkit-animation:apijsProgress 10s infinite 3s linear; animation:apijsProgress 10s infinite 3s linear; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& image d'attente &&& **\n * (loading) waiting photo video iframe ajax */\n#apijsBox svg.loader { position:absolute; display:none; margin:auto; width:128px; height:128px; pointer-events:none; }\n#apijsBox svg.loader path { fill:#808080; }\n\n#apijsBox.loading svg.loader, #apijsBox.waiting svg.loader {\n\tdisplay:block; right:-40px; bottom:-40px;\n\ttransform:scale(0.2); -webkit-transform:scale(0.2);\n}\n\n#apijsBox.photo svg.loader, #apijsBox.video svg.loader { right:0; bottom:calc(50% - 64px); left:0; transform:none; -webkit-transform:none; }\n#apijsBox.iframe svg.loader, #apijsBox.ajax svg.loader { right:0; bottom:calc(50% - 64px); left:0; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& boutons &&& */\n#apijsBox button {\n\tfont-size:0.85em; text-decoration:none; border:0;\n\ttransition:color 0.4s, border-color 0.4s, background-color 0.4s, opacity 0.4s;\n}\n\n#apijsBox button::-moz-focus-inner { padding:0; outline:0; border:0; }\n#apijsBox button:hover, #apijsBox button:active, #apijsBox button:focus { outline:0; }\n\n#apijsBox div.btns { position:absolute; right:0.8em; bottom:0.6em; }\n#apijsBox div.btns.upload { position:relative; right:inherit; left:inherit; }\n#apijsBox div.btns.upload input { display:none; }\n#apijsBox div.btns.upload div.filenames { max-height:11em; overflow-y:auto; }\n#apijsBox div.btns.upload table { border-spacing:0; }\n#apijsBox div.btns.upload td + td { padding-left:0.6em; }\n#apijsBox div.btns.upload td.nb { font-size:0.85em; color:#676767; vertical-align:bottom; }\n#apijsBox div.btns.upload td.size { white-space:nowrap; color:#676767; }\n#apijsBox div.btns.upload td.err { color:#E41101; }\n\n#apijsBox div.btns button {\n\tpadding:0 0.7em; height:auto; line-height:24px;\n\tcolor:black; border:1px solid #BBB; border-radius:0.4em; background-color:#E2E2E2;\n}\n\n#apijsBox div.btns button:disabled { opacity:0.5; }\n#apijsBox div.btns button.cancel { float:left; margin:0 0.5em; }\n#apijsBox div.btns button.browse { display:inline-block; margin:0.5em 0; }\n\n#apijsBox div.btns button:hover:not(:disabled), #apijsBox div.btns button:active:not(:disabled),\n#apijsBox div.btns button:focus:not(:disabled) { border-color:#555; background-color:#F4F4F4; }\n#apijsBox div.btns button:focus:not(:hover) { -webkit-animation:apijsFocus 1s infinite; animation:apijsFocus 1s infinite; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& dialogues photo et vidéo &&& */\n#apijsBox dl.media { display:flex; flex-direction:column-reverse; flex:1; overflow:hidden; color:white; }\n\n#apijsBox dl.media dt { position:relative; display:flex; flex-direction:column; flex:1; overflow:hidden; }\n#apijsBox dl.media dt img, #apijsBox dl.media dt video, #apijsBox dl.media dt iframe { flex:1 1 auto; height:100%; visibility:hidden; }\n#apijsBox dl.media dt img { image-rendering:optimizeQuality; image-rendering:-moz-crisp-edges; object-fit:scale-down; }\n#apijsBox dl.media dt video { outline:0; cursor:pointer; }\n#apijsBox dl.media dt div.apijsplayer { position:absolute; right:0; bottom:0; left:0; }\n\n#apijsBox dl.media dd { line-height:1.5rem; font-size:0.85em; background-color:#666; }\n#apijsBox dl.media dd span { margin:0 0.6em; font-size:0.9em; font-style:italic; }\n\n/* &&&&&&&&&&&&&&&&&&&& bouton de fermeture &&& */\n#apijsBox div.close { position:absolute; top:-2px; right:-2px; padding:0 0 3em 3em; z-index:99600; }\n\n#apijsBox div.close button {\n\tpadding:0 1.4em; line-height:2.6em;\n\tfont-size:0.8em; font-weight:700; text-transform:uppercase;\n\tcolor:white; border:2px solid white; border-radius:0 0 0 0.8em; background-color:black;\n}\n\n/* &&&&&&&&&&&&&&&&&& boutons de navigation &&& */\n#apijsBox div.navigation button { position:absolute; top:5rem; bottom:5rem; background-color:transparent; opacity:0.5; }\n#apijsBox div.navigation button:hover, #apijsBox div.navigation button:active, #apijsBox div.navigation button:focus { opacity:1; }\n#apijsBox div.navigation button:disabled { opacity:0; cursor:default; }\n\n#apijsBox div.navigation button span {\n\tdisplay:block; width:2em; height:2em;\n\tborder-top:2px solid white; border-left:2px solid white;\n}\n\n#apijsBox div.navigation button.prev { left:0; padding:0 20% 0 2em; }\n#apijsBox div.navigation button.prev span { transform:rotate(-45deg); -webkit-transform:rotate(-45deg); }\n#apijsBox div.navigation button.next { right:0; padding:0 2em 0 20%; }\n#apijsBox div.navigation button.next span { transform:rotate(-225deg); -webkit-transform:rotate(-225deg); }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& clavier &&& */\n#apijsBox ul.kbd {\n\tdisplay:flex; justify-content:center; margin:0; text-align:center;\n\tfont-size:0.8em; white-space:nowrap; list-style:none; background-color:#777;\n}\n\n#apijsBox ul.kbd li { margin:0 0.5em; line-height:1.2rem; }\n#apijsBox ul.kbd li kbd:last-child { margin-right:0.4em; }\n\n#apijsBox kbd {\n\tmargin-right:0.2em; padding:0 0.21em;\n\tfont-size:inherit; font-weight:700; text-transform:uppercase; border:0; background-color:#888;\n}\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& images &&& */\n@font-face {\n\tsrc:url(\"../fonts/apijs/fontello.woff2\") format(\"woff2\"), url(\"../fonts/apijs/fontello.woff\") format(\"woff\");\n\tfont-family:apijsFontello; font-weight:400; font-style:normal;\n}\n\n#apijsBox h1:before, #apijsBox div.btns button span:before, #apijsBox kbd:before, div.apijsplayer span.fnt {\n\tfont-family:apijsFontello; font-style:normal; font-weight:400; font-variant:normal; text-transform:none; text-decoration:inherit;\n\t-moz-osx-font-smoothing:grayscale; -webkit-font-smoothing:antialiased;\n}\n\n#apijsBox h1:before { float:left; width:1.3em; text-align:center; font-size:1.5em; }\n#apijsBox.information h1:before { content:\"\\E80B\\0000A0\"; }\n#apijsBox.confirmation h1:before { content:\"\\E80C\\0000A0\"; }\n#apijsBox.options h1:before { content:\"\\E80E\\0000A0\"; }\n#apijsBox.upload h1:before { content:\"\\F15B\\0000A0\"; }\n#apijsBox.progress h1:before { content:\"\\F1D8\\0000A0\"; }\n#apijsBox.waiting h1:before { content:\"\\F1D8\\0000A0\"; }\n#apijsBox.download h1:before { content:\"\\F15B\\0000A0\"; }\n#apijsBox.print h1:before { content:\"\\E80D\\0000A0\"; }\n#apijsBox.error h1:before { content:\"\\E80A\\0000A0\"; }\n#apijsBox.warning h1:before { content:\"\\E80A\\0000A0\"; }\n\n#apijsBox div.btns button span:before { float:left; }\n#apijsBox div.btns button.cancel span:before { content:\"\\E801\\0000A0\"; }\n#apijsBox div.btns button.confirm span:before { content:\"\\E800\\0000A0\"; }\n#apijsBox div.btns button.browse span:before { content:\"\\E802\\0000A0\"; }\n\n#apijsBox kbd.start:before { content:\"\\E807\"; display:inline-block; transform:rotate(-45deg); -webkit-transform:rotate(-45deg); }\n#apijsBox kbd.bottom:before { content:\"\\E804\"; }\n#apijsBox kbd.left:before { content:\"\\E805\"; }\n#apijsBox kbd.right:before { content:\"\\E806\"; }\n#apijsBox kbd.topk:before { content:\"\\E807\"; }\n#apijsBox kbd.plus:before { content:\"\\E809\"; }\n#apijsBox kbd.minus:before { content:\"\\E808\"; }\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& animations &&& */\n@keyframes apijsProgress { 0% { width:20%; } 50% { transform:translate(400%, 0); } 100% { width:20%; } }\n@-webkit-keyframes apijsProgress { 0% { width:20%; } 50% { left:80%; } 100% { width:20%; } }\n@keyframes apijsFocus { 50% { border-color:#BBB; } }\n@-webkit-keyframes apijsFocus { 50% { border-color:#BBB; } }\n@keyframes apijsReplace { 50% { color:transparent; } 100% { content:attr(data-new); } }\n@-webkit-keyframes apijsReplace { 50% { color:transparent; } 100% { content:attr(data-new); } }","/**\n * Created V/01/01/2021\n * Updated S/02/07/2022\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\n/* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& player &&& */\ndiv.apijsvideoplayer { background-color:black; }\ndiv.apijsvideoplayer.fullscreen { margin:0 !important; padding:0 !important; height:100vh !important; }\ndiv.apijsvideoplayer.fullscreen.playing video { cursor:none !important; }\n\ndiv.apijsvideoplayer.fullscreen .nofullscreen { display:none !important; }\n\ndiv.apijsvideoplayer.playing.fullscreen .nofullplaying,\ndiv.apijsvideoplayer.fullscreen.playing .noplaying,\ndiv.apijsvideoplayer.playing .noplaying { transition:opacity 0.5s; opacity:0; }\n\ndiv.apijsvideoplayer.playing.fullscreen .nofullplaying:hover,\ndiv.apijsvideoplayer.fullscreen.playing .noplaying:hover,\ndiv.apijsvideoplayer.playing .noplaying:hover { opacity:1 !important; }\n\ndiv.apijsvideoplayer.tiny label { position:initial; }\ndiv.apijsvideoplayer.tiny label select { left:0; right:0; width:100%; }\n\nvideo.apijsplayer { display:block; margin:auto; width:100%; height:calc(100% - 1.8rem) !important; cursor:pointer; }\n\n/*rtl:begin:ignore*/\ndiv.apijsplayer * { margin:0; padding:0; }\n\ndiv.apijsplayer {\n\tposition:relative; display:flex; align-items:center; z-index:99600;\n\tmargin-top:-9vh; padding-top:9vh; height:1.8rem; line-height:1.8rem;\n\tfont-size:0.85em; color:white; text-align:center; direction:ltr;\n}\n\ndiv.apijsplayer span { padding:0 0.4em; height:1.8rem; background-color:#070707; }\ndiv.apijsplayer span.btn { padding:0; min-width:2.6em; cursor:pointer; }\ndiv.apijsplayer span.svg { display:flex; align-items:center; height:100%; }\ndiv.apijsplayer span.bar { flex:1; }\ndiv.apijsplayer span.vol { width:7em; }\ndiv.apijsplayer label { position:relative; height:1.8rem; padding:0 0.4em; background-color:#070707; }\ndiv.apijsplayer label option { padding:0.2em 0.4em; }\ndiv.apijsplayer label option:checked { font-weight:700; }\ndiv.apijsplayer label option:disabled { font-style:italic; color:#AAA; }\ndiv.apijsplayer label em { padding-left:0.25em; font-style:normal; }\n\ndiv.apijsplayer label select {\n\tdisplay:none; position:absolute; right:0; bottom:1.8rem; min-width:20em; overflow-y:scroll;\n\tcolor:black; outline:0; border:0; background:white; appearance:none; -moz-appearance:none; -webkit-appearance:none;\n\toverscroll-behavior:none;\n}\n\ndiv.apijsplayer label:hover, div.apijsplayer span.btn:hover { color:black; background-color:white; }\ndiv.apijsplayer label:hover select { display:block; }\n\ndiv.apijsplayer svg { position:relative; flex:1; height:30%; overflow:hidden; border-radius:0.4em; background-color:#222; cursor:pointer; }\ndiv.apijsplayer rect { position:absolute; top:0; bottom:0; left:0; display:block; z-index:99460; background-color:#00B6F0; }\ndiv.apijsplayer rect.buffer { z-index:99440; background-color:#515151; }\ndiv.apijsplayer svg.vol rect { width:100%; background-color:white; }\n/*rtl:end:ignore*/\n/*rtl:raw:div.apijsplayer label { direction:rtl; }*/"]} \ No newline at end of file diff --git a/src/zip/apijs.min.js b/src/zip/apijs.min.js index 0788468..21ca0e8 100644 --- a/src/zip/apijs.min.js +++ b/src/zip/apijs.min.js @@ -1,8 +1,8 @@ /*! - * Copyright 2008-2023 | Fabrice Creuzot (luigifab) - * https://github.com/luigifab/apijs - 6.9.5 + * Copyright 2008-2024 | Fabrice Creuzot (luigifab) + * https://github.com/luigifab/apijs - 6.9.6 * This program is free software, you can redistribute it or modify * it under the terms of the GNU General Public License (GPL). */ -Array.prototype.has||(Array.prototype.has=function(t,e){if(t instanceof Array){for(e in t)if(t.hasOwnProperty(e)&&this.has(t[e]))return!0}else for(e in this)if(this.hasOwnProperty(e)&&this[e]===t)return!0;return!1}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(t,e,i){for(e=e||window,i=0;ie.scroll+1)&&(e.scroll=i,s=0i.offsetHeight&&"HTML"!==i.nodeName&&((s=0=i.body.offsetHeight-1||!e&&i.defaultView.scrollY<=0)&&(t.preventDefault(),t.stopPropagation())},this.onKey=function(t){var e,i=apijs.dialog,s=i.media;i.has("progress","waiting","lock")?(t.ctrlKey&&[81,87,82,115,116].has(t.keyCode)||t.altKey&&115===t.keyCode||[27,116].has(t.keyCode))&&t.preventDefault():i.has("photo","video")&&122===t.keyCode?(t.preventDefault(),apijs.requestFullscreen(i.t1)):i.has("slideshow")?27===t.keyCode?(t.preventDefault(),i.actionClose()):35===t.keyCode?(t.preventDefault(),apijs.slideshow.actionLast()):36===t.keyCode?(t.preventDefault(),apijs.slideshow.actionFirst()):37===t.keyCode?(t.preventDefault(),apijs.slideshow.actionPrev()):39===t.keyCode&&(t.preventDefault(),apijs.slideshow.actionNext()):27===t.keyCode&&(t.preventDefault(),i.actionClose()),i.has("video")&&!i.has("videoiframe")&&([32,80].has(t.keyCode)?(t.preventDefault(),[1,2].has(s.networkState)&&(s.ended||s.paused?s.play():s.pause())):[38,33].has(t.keyCode)?(t.preventDefault(),e=38===t.keyCode?10:60,[1,2].has(s.networkState)&&s.duration!==1/0&&!isNaN(s.duration)&&(s.currentTime>e?s.currentTime-=e:s.currentTime=0)):[40,34].has(t.keyCode)?(t.preventDefault(),[1,2].has(s.networkState)&&s.duration!==1/0&&!isNaN(s.duration)&&(e=40===t.keyCode?10:60,s.currentTime/g,">").replace(/\[/g,"<").replace(/]/g,">"),this.t2.appendChild(this.a)),0/g,">").replace(/\[/g,"<").replace(/]/g,">"),this.a.querySelectorAll("a.popup").forEach(function(t){t.addEventListener("click",apijs.openTab)}),this.t2.appendChild(this.a)),this},this.htmlBtnOk=function(){return this.a=document.createElement("div"),this.a.setAttribute("class","btns"),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("class","confirm"),this.b.setAttribute("onclick","apijs.dialog.actionClose();"),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(102)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlBtnConfirm=function(t,e){return this.a=document.createElement("div"),this.a.setAttribute("class","btns"),this.b=document.createElement("button"),this.b.setAttribute("type",t),this.b.setAttribute("class","confirm"),"submit"!==t&&this.b.setAttribute("onclick",e),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(104)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("class","cancel"),this.b.setAttribute("onclick","apijs.dialog.actionClose();"),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(103)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlBtnNavigation=function(){return this.a=document.createElement("div"),this.a.setAttribute("class","navigation noplaying"),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("disabled","disabled"),this.b.setAttribute("class","prev"),this.b.setAttribute("id","apijsPrev"),this.b.setAttribute("onclick","apijs.slideshow.actionPrev();"),this.c=document.createElement("span"),this.b.appendChild(this.c),this.a.appendChild(this.b),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("disabled","disabled"),this.b.setAttribute("class","next"),this.b.setAttribute("id","apijsNext"),this.b.setAttribute("onclick","apijs.slideshow.actionNext();"),this.c=document.createElement("span"),this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a),"function"==typeof Hammer&&(this.hammer=new Hammer(this.t2),this.hammer.get("swipe").set({direction:Hammer.DIRECTION_ALL}),this.hammer.on("swiperight swipedown swipeleft swipeup",apijs.dialog.onSlideshowSwipe)),this},this.htmlBtnClose=function(t){return!1!==t&&(this.a=document.createElement("div"),this.a.setAttribute("class","close nofullplaying"),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("class","close"),this.b.setAttribute("onclick","apijs.dialog.actionClose();"),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(105)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a)),this},this.htmlUpload=function(t,e,i){return this.a=document.createElement("div"),this.a.setAttribute("class","btns upload"),this.t3=document.createElement("input"),this.t3.setAttribute("type","file"),this.t3.setAttribute("name",e?t+"[]":t),this.t3.setAttribute("id","apijsFile"),e&&this.t3.setAttribute("multiple","multiple"),this.t3.setAttribute("onchange",i),this.a.appendChild(this.t3),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("class","browse"),this.b.setAttribute("onclick","this.previousSibling.click();"),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(e?109:108)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.b=document.createElement("div"),this.b.setAttribute("class","filenames scrollable"),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlSvgProgress=function(){return this.a=document.createElement("span"),this.a.setAttribute("class","info"),this.t2.appendChild(this.a),this.a=document.createElement("svg"),this.a.setAttribute("id","apijsProgress"),this.b=document.createElement("rect"),this.b.setAttribute("class","auto"),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlSvgLoader=function(t){return this.a=document.createElementNS(this.ns,"svg"),this.a.setAttribute("class","loader"),this.b=document.createElementNS(this.ns,"path"),!1!==t&&this.b.setAttribute("style","opacity:0;"),this.b.setAttribute("d","M75.4 126.63a11.43 11.43 0 0 1-2.1-22.65 40.9 40.9 0 0 0 30.5-30.6 11.4 11.4 0 1 1 22.27 4.87h.02a63.77 63.77 0 0 1-47.8 48.05v-.02a11.38 11.38 0 0 1-2.93.37z"),this.c=document.createElementNS(this.ns,"animateTransform"),this.c.setAttribute("attributeName","transform"),this.c.setAttribute("type","rotate"),this.c.setAttribute("from","0 64 64"),this.c.setAttribute("to","360 64 64"),this.c.setAttribute("dur","5s"),this.c.setAttribute("repeatCount","indefinite"),this.b.appendChild(this.c),this.c=document.createElementNS(this.ns,"animate"),this.c.setAttribute("attributeName","opacity"),this.c.setAttribute("to","1"),this.c.setAttribute("dur","0.01s"),this.c.setAttribute("begin","1s"),this.c.setAttribute("fill","freeze"),!1!==t&&this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlMedia=function(t,e,i,s){var a;return this.a=document.createElement("dl"),this.a.setAttribute("class","media"),this.b=document.createElement("dt"),this.has("photo")?(this.media=document.createElement("img"),this.media.setAttribute("alt",s.replace('"',""))):0'+(s?(new Date).toTimeString().substring(0,8):e+1)+"":"")+''+t.name+''+apijs.i18n.translate(166,i)+"","*"===this.exts.join()||this.exts.has(t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase())?t.size>1048576*this.onemax?i+=''+apijs.i18n.translate(168)+"":t.size<=0?i+=''+apijs.i18n.translate(169)+"":i+="":i+=''+apijs.i18n.translate(167)+"",a.push(""+i+""),n+=t.size/1048576},this),0=this.allmax&&a.push(''+apijs.i18n.translate(166,apijs.formatNumber(n))+''+apijs.i18n.translate(168)+""),apijs.html("div.filenames").innerHTML=""+a.join("")+"
",apijs.html("div.filenames .err"))?e.setAttribute("disabled","disabled"):(e.removeAttribute("disabled"),e.focus())},this.actionConfirm=function(){var t,e;return 0=this.end+2?(this.end=r,0<(e=Math.floor(100*t.loaded/t.total))&&e<100&&(this.updateTitle(e),n=100*(r=r-this.start)/e+10,24e.scroll+1)&&(e.scroll=i,s=0i.offsetHeight&&"HTML"!==i.nodeName&&((s=0=i.body.offsetHeight-1||!e&&i.defaultView.scrollY<=0)&&(t.preventDefault(),t.stopPropagation())},this.onKey=function(t){var e,i=apijs.dialog,s=i.media;i.has("progress","waiting","lock")?(t.ctrlKey&&[81,87,82,115,116].has(t.keyCode)||t.altKey&&115===t.keyCode||[27,116].has(t.keyCode))&&t.preventDefault():i.has("photo","video")&&122===t.keyCode?(t.preventDefault(),apijs.requestFullscreen(i.t1)):i.has("slideshow")?27===t.keyCode?(t.preventDefault(),i.actionClose()):35===t.keyCode?(t.preventDefault(),apijs.slideshow.actionLast()):36===t.keyCode?(t.preventDefault(),apijs.slideshow.actionFirst()):37===t.keyCode?(t.preventDefault(),apijs.slideshow.actionPrev()):39===t.keyCode&&(t.preventDefault(),apijs.slideshow.actionNext()):27===t.keyCode&&(t.preventDefault(),i.actionClose()),i.has("video")&&!i.has("videoiframe")&&([32,80].has(t.keyCode)?(t.preventDefault(),[1,2].has(s.networkState)&&(s.ended||s.paused?s.play():s.pause())):[38,33].has(t.keyCode)?(t.preventDefault(),e=38===t.keyCode?10:60,[1,2].has(s.networkState)&&s.duration!==1/0&&!isNaN(s.duration)&&(s.currentTime>e?s.currentTime-=e:s.currentTime=0)):[40,34].has(t.keyCode)?(t.preventDefault(),[1,2].has(s.networkState)&&s.duration!==1/0&&!isNaN(s.duration)&&(e=40===t.keyCode?10:60,s.currentTime/g,">").replace(/\[/g,"<").replace(/]/g,">"),this.t2.appendChild(this.a)),0/g,">").replace(/\[/g,"<").replace(/]/g,">"),this.a.querySelectorAll("a.popup").forEach(function(t){t.addEventListener("click",apijs.openTab)}),this.t2.appendChild(this.a)),this},this.htmlBtnOk=function(){return this.a=document.createElement("div"),this.a.setAttribute("class","btns"),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("class","confirm"),this.b.setAttribute("onclick","apijs.dialog.actionClose();"),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(102)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlBtnConfirm=function(t,e){return this.a=document.createElement("div"),this.a.setAttribute("class","btns"),this.b=document.createElement("button"),this.b.setAttribute("type",t),this.b.setAttribute("class","confirm"),"submit"!==t&&this.b.setAttribute("onclick",e),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(104)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("class","cancel"),this.b.setAttribute("onclick","apijs.dialog.actionClose();"),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(103)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlBtnNavigation=function(){return this.a=document.createElement("div"),this.a.setAttribute("class","navigation noplaying"),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("disabled","disabled"),this.b.setAttribute("class","prev"),this.b.setAttribute("id","apijsPrev"),this.b.setAttribute("onclick","apijs.slideshow.actionPrev();"),this.c=document.createElement("span"),this.b.appendChild(this.c),this.a.appendChild(this.b),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("disabled","disabled"),this.b.setAttribute("class","next"),this.b.setAttribute("id","apijsNext"),this.b.setAttribute("onclick","apijs.slideshow.actionNext();"),this.c=document.createElement("span"),this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a),"function"==typeof Hammer&&(this.hammer=new Hammer(this.t2),this.hammer.get("swipe").set({direction:Hammer.DIRECTION_ALL}),this.hammer.on("swiperight swipedown swipeleft swipeup",apijs.dialog.onSlideshowSwipe)),this},this.htmlBtnClose=function(t){return!1!==t&&(this.a=document.createElement("div"),this.a.setAttribute("class","close nofullplaying"),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("class","close"),this.b.setAttribute("onclick","apijs.dialog.actionClose();"),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(105)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a)),this},this.htmlUpload=function(t,e,i){return this.a=document.createElement("div"),this.a.setAttribute("class","btns upload"),this.t3=document.createElement("input"),this.t3.setAttribute("type","file"),this.t3.setAttribute("name",e?t+"[]":t),this.t3.setAttribute("id","apijsFile"),e&&this.t3.setAttribute("multiple","multiple"),this.t3.setAttribute("onchange",i),this.a.appendChild(this.t3),this.b=document.createElement("button"),this.b.setAttribute("type","button"),this.b.setAttribute("class","browse"),this.b.setAttribute("onclick","this.previousSibling.click();"),this.c=document.createElement("span"),this.c.appendChild(apijs.i18n.translateNode(e?109:108)),this.b.appendChild(this.c),this.a.appendChild(this.b),this.b=document.createElement("div"),this.b.setAttribute("class","filenames scrollable"),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlSvgProgress=function(){return this.a=document.createElement("span"),this.a.setAttribute("class","info"),this.t2.appendChild(this.a),this.a=document.createElement("svg"),this.a.setAttribute("id","apijsProgress"),this.b=document.createElement("rect"),this.b.setAttribute("class","auto"),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlSvgLoader=function(t){return this.a=document.createElementNS(this.ns,"svg"),this.a.setAttribute("class","loader"),this.b=document.createElementNS(this.ns,"path"),!1!==t&&this.b.setAttribute("style","opacity:0;"),this.b.setAttribute("d","M75.4 126.63a11.43 11.43 0 0 1-2.1-22.65 40.9 40.9 0 0 0 30.5-30.6 11.4 11.4 0 1 1 22.27 4.87h.02a63.77 63.77 0 0 1-47.8 48.05v-.02a11.38 11.38 0 0 1-2.93.37z"),this.c=document.createElementNS(this.ns,"animateTransform"),this.c.setAttribute("attributeName","transform"),this.c.setAttribute("type","rotate"),this.c.setAttribute("from","0 64 64"),this.c.setAttribute("to","360 64 64"),this.c.setAttribute("dur","5s"),this.c.setAttribute("repeatCount","indefinite"),this.b.appendChild(this.c),this.c=document.createElementNS(this.ns,"animate"),this.c.setAttribute("attributeName","opacity"),this.c.setAttribute("to","1"),this.c.setAttribute("dur","0.01s"),this.c.setAttribute("begin","1s"),this.c.setAttribute("fill","freeze"),!1!==t&&this.b.appendChild(this.c),this.a.appendChild(this.b),this.t2.appendChild(this.a),this},this.htmlMedia=function(t,e,i,s){var a;return this.a=document.createElement("dl"),this.a.setAttribute("class","media"),this.b=document.createElement("dt"),this.has("photo")?(this.media=document.createElement("img"),this.media.setAttribute("alt",s.replace('"',""))):0'+(s?(new Date).toTimeString().substring(0,8):e+1)+"":"")+''+t.name+''+apijs.i18n.translate(166,i)+"","*"===this.exts.join()||this.exts.has(t.name.slice(t.name.lastIndexOf(".")+1).toLowerCase())?t.size>1048576*this.onemax?i+=''+apijs.i18n.translate(168)+"":t.size<=0?i+=''+apijs.i18n.translate(169)+"":i+="":i+=''+apijs.i18n.translate(167)+"",a.push(""+i+""),n+=t.size/1048576},this),0=this.allmax&&a.push(''+apijs.i18n.translate(166,apijs.formatNumber(n))+''+apijs.i18n.translate(168)+""),apijs.html("div.filenames").innerHTML=""+a.join("")+"
",apijs.html("div.filenames .err"))?e.setAttribute("disabled","disabled"):(e.removeAttribute("disabled"),e.focus())},this.actionConfirm=function(){var t,e;return 0=this.end+2?(this.end=r,0<(e=Math.floor(100*t.loaded/t.total))&&e<100&&(this.updateTitle(e),n=100*(r=r-this.start)/e+10,24\n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\nif (!Array.prototype.has) {\n\tArray.prototype.has = function (needle, key) {\n\t\tif (needle instanceof Array) {\n\t\t\tfor (key in needle) if (needle.hasOwnProperty(key)) {\n\t\t\t\tif (this.has(needle[key]))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfor (key in this) if (this.hasOwnProperty(key)) {\n\t\t\t\tif (this[key] === needle)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t};\n}\n\nif (window.NodeList && !NodeList.prototype.forEach) {\n\tNodeList.prototype.forEach = function (callback, that, i) {\n\t\tthat = that || window;\n\t\tfor (i = 0; i < this.length; i++)\n\t\t\tcallback.call(that, this[i], i, this);\n\t};\n}\n\nvar apijs = new (function () {\n\n\t\"use strict\";\n\tthis.core = {};\n\tthis.version = 695;\n\n\tthis.config = {\n\t\tlang: 'auto',\n\t\tdebug: false,\n\t\t//select: { },\n\t\tdialog: {\n\t\t\tcloseOnClick: false,\n\t\t\trestrictNavigation: true,\n\t\t\tplayer: true\n\t\t},\n\t\tslideshow: {\n\t\t\tids: 'slideshow',\n\t\t\tanchor: true\n\t\t},\n\t\tupload: {\n\t\t\ttokenName: 'X-CSRF-Token',\n\t\t\ttokenValue: null\n\t\t}\n\t};\n\n\tthis.start = function () {\n\n\t\tvar elem;\n\n\t\t// bonjour\n\t\tconsole.info('APIJS ' + this.version.toString().split('').join('.') + ' - hello - 1 MB/Mo = 1024 kB/ko');\n\t\tif (document.getElementById('oldBrowser'))\n\t\t\tthrow new Error('APIJS canceled, #oldBrowser detected!');\n\n\t\tif (elem = document.querySelector('link[href*=\"apijs/fontello.woff2\"]')) {\n\t\t\tif (elem.getAttribute('href').indexOf('?a3ab5acff3') < 0)\n\t\t\t\tconsole.error('APIJS warning invalid cachekey for link:fontello.woff2?x, it must be ?a3ab5acff3');\n\t\t}\n\t\tif (elem = document.querySelector('script[src*=\"apijs.min.js?v=\"]')) {\n\t\t\tif (elem.getAttribute('src').indexOf('?v=' + this.version) < 0)\n\t\t\t\tconsole.error('APIJS warning invalid cachekey for script:apijs.min.js?x, it must be ?v=' + this.version);\n\t\t}\n\n\t\t// instancie\n\t\tthis.i18n = new this.core.i18n();\n\t\t//this.select = new this.core.select();\n\t\tthis.dialog = new this.core.dialog();\n\t\tthis.upload = new this.core.upload();\n\t\tthis.slideshow = new this.core.slideshow();\n\t\tself.dispatchEvent(new CustomEvent('apijsbeforeload'));\n\n\t\t// démarre\n\t\tthis.i18n.init();\n\t\tthis.slideshow.init();\n\t\t//this.select.init();\n\t\tdocument.querySelectorAll('video.apijsplayer[data-src]').forEach(function (elem) {\n\t\t\tapijs.startPlayer(elem, elem.getAttribute('data-src'));\n\t\t});\n\n\t\tself.addEventListener('popstate', this.slideshow.onPopState);\n\t\tself.addEventListener('hashchange', this.slideshow.onPopState);\n\n\t\tif (this.config.debug) {\n\t\t\tconsole.info('APIJS available languages: ' + Object.keys(this.i18n.data).join(' '));\n\t\t\tconsole.info('APIJS language loaded: ' + this.config.lang);\n\t\t\tconsole.info('APIJS successfully started');\n\t\t}\n\n\t\t// événement\n\t\tself.dispatchEvent(new CustomEvent('apijsload'));\n\t};\n\n\tthis.formatNumber = function (nb, dec) {\n\n\t\t// par défaut 2 chiffres\n\t\tvar dgt = (typeof dec == 'number') ? dec : ((dec === false) ? 0 : 2), str;\n\n\t\t// Firefox 29+ pas 27+, (iOS) Safari 10+ pas 9+\n\t\ttry {\n\t\t\tstr = new Intl.NumberFormat(this.config.lang, { minimumFractionDigits: dgt, maximumFractionDigits: dgt }).format(nb);\n\t\t}\n\t\tcatch (ignore) {\n\t\t\tstr = nb.toFixed(dgt);\n\t\t}\n\n\t\t// conserve 00 si on veut vraiment 2 chiffres\n\t\treturn (typeof dec == 'number') ? str : str.replace(/[.,]00$/, '');\n\t};\n\n\tthis.startPlayer = function (elem, url) {\n\n\t\tif (this.config.dialog.player === true) {\n\t\t\telem.videoPlayer = new this.core.player(elem, url);\n\t\t\telem.parentNode.classList.add('apijsvideoplayer');\n\t\t\treturn true;\n\t\t}\n\n\t\tif (typeof this.config.dialog.player == 'function') {\n\t\t\tthis.config.dialog.player(elem, url);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t};\n\n\tthis.toArray = function (data, max) {\n\t\treturn Array.prototype.slice.call(data, 0, max);\n\t};\n\n\tthis.openTab = function (ev) {\n\t\tev.preventDefault();\n\t\tif (this.href.length > 0)\n\t\t\tself.open(this.href);\n\t};\n\n\tthis.log = function (txt) {\n\t\tif (this.config.debug)\n\t\t\tconsole.info('APIJS ' + txt);\n\t};\n\n\tthis.html = function (selector, id) {\n\t\tif ((id === true) || (selector.indexOf('#') === 0))\n\t\t\treturn document.getElementById(selector.replace('#', 'apijs'));\n\t\telse if (this.dialog.t1)\n\t\t\treturn this.dialog.t1.querySelector(selector);\n\t\telse\n\t\t\treturn null;\n\t};\n\n\tthis.requestFullscreen = function (elem) {\n\t\tif (document.webkitFullscreenElement)\n\t\t\tdocument.webkitCancelFullScreen();\n\t\telse if (document.mozFullScreenElement)\n\t\t\tdocument.mozCancelFullScreen();\n\t\telse if (document.fullscreenElement)\n\t\t\tdocument.cancelFullScreen();\n\t\telse if (elem.webkitRequestFullscreen)\n\t\t\telem.webkitRequestFullscreen();\n\t\telse if (elem.requestFullscreen)\n\t\t\telem.requestFullscreen();\n\t\telse if (elem.mozRequestFullScreen)\n\t\t\telem.mozRequestFullScreen();\n\t};\n\n\tthis.serialize = function (form, filter) {\n\n\t\tvar data = [];\n\t\tfilter = (typeof filter == 'string') ? filter : '';\n\n\t\t// https://gomakethings.com/how-to-serialize-form-data-with-vanilla-js/\n\t\tArray.prototype.forEach.call(form.elements, function (elem, idx) {\n\n\t\t\tif (!elem.name || elem.disabled || ['file', 'reset', 'submit', 'button'].has(elem.type) || (elem.name.indexOf(filter) !== 0))\n\t\t\t\treturn;\n\n\t\t\tif (elem.type === 'select-multiple') {\n\t\t\t\tfor (idx = 0; idx < elem.options.length; idx++) {\n\t\t\t\t\tif (elem.options[idx].selected)\n\t\t\t\t\t\tdata.push(encodeURIComponent(elem.name) + '=' + encodeURIComponent(elem.options[idx].value));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (!['checkbox', 'radio'].has(elem.type) || elem.checked) {\n\t\t\t\tdata.push(encodeURIComponent(elem.name) + '=' + encodeURIComponent(elem.value));\n\t\t\t}\n\t\t});\n\n\t\treturn data.join('&');\n\t};\n\n})();\n\nif (typeof self.addEventListener == 'function')\n\tself.addEventListener('load', apijs.start.bind(apijs));","/**\n * Created S/05/06/2010\n * Updated S/03/07/2021\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.i18n = function () {\n\n\t\"use strict\";\n\tthis.data = {\n\t\t// https://docs.google.com/spreadsheets/d/1UUpKZ-YAAlcfvGHYwt6aUM9io390j0-fIL0vMRh1pW0/edit?usp=sharing\n\t\t// auto start\n\t\tcs: {\n\t\t\t103: \"Zrušit\",\n\t\t\t104: \"Potvrzení\",\n\t\t\t105: \"Zavřít\",\n\t\t\t106: \"Předchozí\",\n\t\t\t107: \"Následující\",\n\t\t\t108: \"Vybrat soubor\",\n\t\t\t132: \"video stopa\",\n\t\t\t133: \"zvuková stopa\",\n\t\t\t134: \"titulky\",\n\t\t\t135: \"vypnuto\",\n\t\t\t142: \"předchozí/následující\",\n\t\t\t143: \"přehrát/pozastavit\",\n\t\t\t144: \"zpět/vpřed\",\n\t\t\t145: \"snížit/zvýšit hlasitost\",\n\t\t\t146: \"ztlumit\",\n\t\t\t148: \"ukončit\",\n\t\t\t149: \"Konec\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tde: {\n\t\t\t103: \"Abbrechen\",\n\t\t\t104: \"Bestätigen\",\n\t\t\t105: \"Schließen\",\n\t\t\t106: \"Vorheriges\",\n\t\t\t107: \"Nächstes\",\n\t\t\t108: \"Datei wählen\",\n\t\t\t109: \"Dateien wählen\",\n\t\t\t124: \"Verarbeitung läuft...\",\n\t\t\t132: \"videospur\",\n\t\t\t133: \"audiospur\",\n\t\t\t134: \"untertitel\",\n\t\t\t135: \"aus\",\n\t\t\t142: \"vorheriges/nächstes\",\n\t\t\t143: \"wiedergabe/pause\",\n\t\t\t144: \"rückwärts/vorwärts\",\n\t\t\t145: \"leiser/lauter\",\n\t\t\t146: \"ton aus\",\n\t\t\t147: \"vollbild\",\n\t\t\t148: \"beenden\",\n\t\t\t149: \"Ende\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Alle Dateien wurden akzeptiert.\",\n\t\t\t162: \"Akzeptiertes Dateiformat: §.\",\n\t\t\t163: \"Akzeptiertes Dateiformate: § und §.\",\n\t\t\t164: \"Maximale Größe: § MB.\",\n\t\t\t167: \"Unerlaubtes Format\",\n\t\t\t168: \"Format zu gross\",\n\t\t\t169: \"Leere Datei\",\n\t\t\t181: \"§% - § kB/s - Noch § Minuten\",\n\t\t\t182: \"§% - § kB/s - Noch § Minute\",\n\t\t\t183: \"§% - § kB/s - Noch § Sekunden\",\n\t\t\t185: \"§% - bis § kB/s in § Minuten\",\n\t\t\t186: \"§% - bis § kB/s in § Minute\",\n\t\t\t187: \"§% - bis § kB/s in § Sekunden\",\n\t\t\t188: \"§% - bis § kB/s\",\n\t\t\t191: \"Abbrechen\",\n\t\t\t192: \"Sind Sie sicher? [span]Ja[/span] - Nein\",\n\t\t\t193: \"Es ist ein unerwarteter Fehler aufgetreten... Bitte versuchen Sie es noch einmal.\",\n\t\t\t194: \"Es ist ein Fehler beim Senden.\",\n\t\t\t195: \"Es ist ein Fehler bei der Verarbeitung.\",\n\t\t\t196: \"Wir laden Sie ein es erneut zu [a §]versuchen[/a].\"\n\t\t},\n\t\tel: {\n\t\t\t102: \"Εντάξει\",\n\t\t\t103: \"Ακύρωση\",\n\t\t\t105: \"Κλείσιμο\",\n\t\t\t106: \"Προηγούμενο\",\n\t\t\t107: \"Επόμενο\",\n\t\t\t108: \"Επιλέξτε ένα αρχείο\",\n\t\t\t131: \"βίντεο\",\n\t\t\t132: \"κομμάτι βίντεο\",\n\t\t\t133: \"κομμάτι ήχου\",\n\t\t\t134: \"υπότιτλοι\",\n\t\t\t135: \"απενεργοποίηση\",\n\t\t\t142: \"προηγούμενο/επόμενο\",\n\t\t\t143: \"αναπαραγωγή/παύση\",\n\t\t\t144: \"προς τα πίσω/εμπρός\",\n\t\t\t145: \"μείωση/αύξηση έντασης ήχου\",\n\t\t\t146: \"σίγαση\",\n\t\t\t147: \"πλήρης οθόνη\",\n\t\t\t148: \"έξοδος\",\n\t\t\t149: \"Τέλος\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\ten: {\n\t\t\t102: \"Ok\",\n\t\t\t103: \"Cancel\",\n\t\t\t104: \"Confirm\",\n\t\t\t105: \"Close\",\n\t\t\t106: \"Previous\",\n\t\t\t107: \"Next\",\n\t\t\t108: \"Choose a file\",\n\t\t\t109: \"Choose one or multiple files\",\n\t\t\t124: \"Operation in progress...\",\n\t\t\t125: \"Upload in progress...\",\n\t\t\t126: \"Processing file in progress...\",\n\t\t\t127: \"Drag and drop your files here\",\n\t\t\t131: \"video\",\n\t\t\t132: \"video track\",\n\t\t\t133: \"audio track\",\n\t\t\t134: \"subtitles\",\n\t\t\t135: \"off\",\n\t\t\t141: \"first/last\",\n\t\t\t142: \"previous/next\",\n\t\t\t143: \"play/pause\",\n\t\t\t144: \"backward/forward\",\n\t\t\t145: \"decrease/increase the volume\",\n\t\t\t146: \"mute\",\n\t\t\t147: \"full screen\",\n\t\t\t148: \"quit\",\n\t\t\t149: \"End\",\n\t\t\t150: \"Escape\",\n\t\t\t161: \"All files are accepted.\",\n\t\t\t162: \"Accepted file format: §.\",\n\t\t\t163: \"Accepted file formats: § and §.\",\n\t\t\t164: \"Maximum size: § MB.\",\n\t\t\t165: \"Maximum size by file: § MB.|Total maximum size: § MB.\",\n\t\t\t166: \"§ MB\",\n\t\t\t167: \"Format not allowed\",\n\t\t\t168: \"Size too large\",\n\t\t\t169: \"File empty\",\n\t\t\t181: \"§% - § kB/s - § minutes left\",\n\t\t\t182: \"§% - § kB/s - § minute left\",\n\t\t\t183: \"§% - § kB/s - § seconds left\",\n\t\t\t184: \"§% - § kB/s\",\n\t\t\t185: \"§% - at § kB/s in § minutes\",\n\t\t\t186: \"§% - at § kB/s in § minute\",\n\t\t\t187: \"§% - at § kB/s in § seconds\",\n\t\t\t188: \"§% - at § kB/s\",\n\t\t\t191: \"Interrupt\",\n\t\t\t192: \"Are you sure? [span]Yes[/span] - No\",\n\t\t\t193: \"It seems that an unlikely mistake just happened... Please try again.\",\n\t\t\t194: \"An error occurred while sending.\",\n\t\t\t195: \"An error occurred while processing.\",\n\t\t\t196: \"We invite you to [a §]try again[/a].\"\n\t\t},\n\t\tes: {\n\t\t\t102: \"Aceptar\",\n\t\t\t103: \"Cancelar\",\n\t\t\t104: \"Confirmar\",\n\t\t\t105: \"Cerrar\",\n\t\t\t106: \"Anterior\",\n\t\t\t107: \"Siguiente\",\n\t\t\t108: \"Elegir un fichero\",\n\t\t\t109: \"Elegir uno o varios ficheros\",\n\t\t\t124: \"Operación en curso...\",\n\t\t\t125: \"Envío en progreso...\",\n\t\t\t126: \"Tratamiento en curso...\",\n\t\t\t131: \"vídeo\",\n\t\t\t132: \"pista de vídeo\",\n\t\t\t133: \"pista de audio\",\n\t\t\t134: \"subtítulos\",\n\t\t\t135: \"desactivar\",\n\t\t\t142: \"anterior/siguiente\",\n\t\t\t143: \"reproducir/pausa\",\n\t\t\t144: \"retroceder/avanzar\",\n\t\t\t145: \"bajar/subir volumen\",\n\t\t\t146: \"silenciar\",\n\t\t\t147: \"pantalla completa\",\n\t\t\t148: \"salir\",\n\t\t\t149: \"Fin\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Se aceptan todos los archivos.\",\n\t\t\t162: \"Formato de archivo aceptado: §.\",\n\t\t\t163: \"Formatos de archivos aceptados: § y §.\",\n\t\t\t164: \"Tamaño máximo: § MB.\",\n\t\t\t165: \"Tamaño máximo por fichero: § Mo.|Tamaño máximo total: § Mo.\",\n\t\t\t167: \"Formato no autorizado\",\n\t\t\t168: \"Tamaño demasiado importante\",\n\t\t\t169: \"Fichero vacío\",\n\t\t\t181: \"§% - § kB/s - § minutos restantes\",\n\t\t\t182: \"§% - § kB/s - § minuto restantes\",\n\t\t\t183: \"§% - § kB/s - § segundos restantes\",\n\t\t\t185: \"§% - a § kB/s en § minutos\",\n\t\t\t186: \"§% - a § kB/s en § minuto\",\n\t\t\t187: \"§% - a § kB/s en § segundos\",\n\t\t\t188: \"§% - a § kB/s\",\n\t\t\t191: \"Interrumpir\",\n\t\t\t192: \"¿Está seguro(a)? [span]Sí[/span] - No\",\n\t\t\t193: \"Parece que un error improbable acabo de ocurrir... Por favor, inténtelo de nuevo.\",\n\t\t\t194: \"Se produjo un error durante el envío.\",\n\t\t\t195: \"Se produjo un error durante el procesamiento.\",\n\t\t\t196: \"Le invitamos a [a §]intentar de nuevo[/a].\"\n\t\t},\n\t\tfr: {\n\t\t\t103: \"Annuler\",\n\t\t\t104: \"Valider\",\n\t\t\t105: \"Fermer\",\n\t\t\t106: \"Précédent\",\n\t\t\t107: \"Suivant\",\n\t\t\t108: \"Choisir un fichier\",\n\t\t\t109: \"Choisir un ou plusieurs fichiers\",\n\t\t\t124: \"Opération en cours...\",\n\t\t\t125: \"Envoi en cours...\",\n\t\t\t126: \"Traitement en cours...\",\n\t\t\t127: \"Faites glisser et déposez vos fichiers ici\",\n\t\t\t131: \"vidéo\",\n\t\t\t132: \"piste vidéo\",\n\t\t\t133: \"piste audio\",\n\t\t\t134: \"sous-titres\",\n\t\t\t141: \"premier/dernier\",\n\t\t\t142: \"précédent/suivant\",\n\t\t\t143: \"lecture/pause\",\n\t\t\t144: \"reculer/avancer\",\n\t\t\t145: \"réduire/augmenter le volume\",\n\t\t\t146: \"couper le son\",\n\t\t\t147: \"plein écran\",\n\t\t\t148: \"quitter\",\n\t\t\t149: \"Fin\",\n\t\t\t150: \"Échap\",\n\t\t\t161: \"Tous les fichiers sont acceptés.\",\n\t\t\t162: \"Format de fichier accepté : §.\",\n\t\t\t163: \"Formats de fichier acceptés : § et §.\",\n\t\t\t164: \"Taille maximale : § Mo.\",\n\t\t\t165: \"Taille maximale par fichier : § Mo.|Taille maximale total : § Mo.\",\n\t\t\t166: \"§ Mo\",\n\t\t\t167: \"Format non autorisé\",\n\t\t\t168: \"Taille trop importante\",\n\t\t\t169: \"Fichier vide\",\n\t\t\t181: \"§% - § ko/s - § minutes restantes\",\n\t\t\t182: \"§% - § ko/s - § minute restante\",\n\t\t\t183: \"§% - § ko/s - § secondes restantes\",\n\t\t\t184: \"§% - § ko/s\",\n\t\t\t185: \"§% - à § ko/s en § minutes\",\n\t\t\t186: \"§% - à § ko/s en § minute\",\n\t\t\t187: \"§% - à § ko/s en § secondes\",\n\t\t\t188: \"§% - à § ko/s\",\n\t\t\t191: \"Interrompre\",\n\t\t\t192: \"Êtes-vous sûr(e) ? [span]Oui[/span] - Non\",\n\t\t\t193: \"Il semblerait qu'une erreur improbable vient de se produire... Veuillez réessayer.\",\n\t\t\t194: \"Une erreur est survenue lors de l'envoi.\",\n\t\t\t195: \"Une erreur est survenue lors du traitement.\",\n\t\t\t196: \"Nous vous invitons à [a §]réessayer[/a].\"\n\t\t},\n\t\thu: {\n\t\t\t103: \"Mégsem\",\n\t\t\t104: \"Megerősít\",\n\t\t\t105: \"Bezár\",\n\t\t\t106: \"Előző\",\n\t\t\t107: \"Következő\",\n\t\t\t108: \"Válasszon fájlt\",\n\t\t\t131: \"videó\",\n\t\t\t132: \"videosáv\",\n\t\t\t133: \"hangsáv\",\n\t\t\t134: \"feliratok\",\n\t\t\t135: \"ki\",\n\t\t\t142: \"előző/következő\",\n\t\t\t143: \"lejátszás/szünet\",\n\t\t\t144: \"vissza/előre\",\n\t\t\t145: \"hangerő csökkentés/növelése\",\n\t\t\t146: \"némítás\",\n\t\t\t147: \"teljes képernyő\",\n\t\t\t148: \"kilépés\",\n\t\t\t149: \"Befejezés\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tit: {\n\t\t\t103: \"Annulla\",\n\t\t\t104: \"Conferma\",\n\t\t\t105: \"Chiudi\",\n\t\t\t106: \"Precedente\",\n\t\t\t107: \"Successivo\",\n\t\t\t108: \"Scegli un file\",\n\t\t\t109: \"Scegli uno o più file\",\n\t\t\t124: \"Operazione in corso...\",\n\t\t\t125: \"Invio in corso...\",\n\t\t\t126: \"Trattamento in corso...\",\n\t\t\t132: \"traccia video\",\n\t\t\t133: \"traccia audio\",\n\t\t\t134: \"sottotitoli\",\n\t\t\t135: \"inattivo\",\n\t\t\t142: \"precedente/successivo\",\n\t\t\t143: \"riproduci/pausa\",\n\t\t\t144: \"indietro/avanti\",\n\t\t\t145: \"riduci/aumenta volume\",\n\t\t\t146: \"silenzio\",\n\t\t\t147: \"schermo intero\",\n\t\t\t148: \"esci\",\n\t\t\t149: \"Fine\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Tutti i file sono accettati.\",\n\t\t\t162: \"Formato del file accettato: §.\",\n\t\t\t163: \"Formati accettati: § et §.\",\n\t\t\t164: \"Dimensione massima: § MB.\",\n\t\t\t167: \"Formato non autorizzato\",\n\t\t\t168: \"Dimensione troppo importante\",\n\t\t\t169: \"File vuoto\",\n\t\t\t181: \"§% - § kB/s - § minuti rimanenti\",\n\t\t\t182: \"§% - § kB/s - § minuto rimanente\",\n\t\t\t183: \"§% - § kB/s - § secondi rimanenti\",\n\t\t\t185: \"§% - a § kB/s in § minuti\",\n\t\t\t186: \"§% - a § kB/s in § minuto\",\n\t\t\t187: \"§% - a § kB/s in § secondi\",\n\t\t\t188: \"§% - a § kB/s\",\n\t\t\t191: \"Interrompere\",\n\t\t\t192: \"Sei sicuro? [span]Si[/span] - No\",\n\t\t\t193: \"Sembra che un errore inaspettato si sia verificato... Riprova.\",\n\t\t\t194: \"Un errore si è verificato durante l'invio.\",\n\t\t\t195: \"Un errore si è verificato durante il trattamento.\",\n\t\t\t196: \"Vi invitiamo a [a §]riprovare[/a].\"\n\t\t},\n\t\tja: {\n\t\t\t103: \"キャンセル\",\n\t\t\t104: \"承認\",\n\t\t\t105: \"閉じる\",\n\t\t\t106: \"前へ\",\n\t\t\t107: \"次へ\",\n\t\t\t108: \"ファイルを選択する\",\n\t\t\t131: \"ビデオ\",\n\t\t\t132: \"ビデオトラック\",\n\t\t\t133: \"オーディオトラック\",\n\t\t\t134: \"字幕\",\n\t\t\t135: \"オフ\",\n\t\t\t142: \"前へ/次へ\",\n\t\t\t143: \"再生/一時停止\",\n\t\t\t144: \"戻る/進む\",\n\t\t\t146: \"ミュート\",\n\t\t\t147: \"全画面表示\",\n\t\t\t148: \"終了\",\n\t\t\t149: \"終了\",\n\t\t\t150: \"Esc\",\n\t\t\t166: \"§ Mo\",\n\t\t\t184: \"§% - § Ko/s\",\n\t\t\t192: \"よろしいですか?[span]はい[/span] - いいえ\"\n\t\t},\n\t\tnl: {\n\t\t\t103: \"Annuleren\",\n\t\t\t104: \"Bevestigen\",\n\t\t\t105: \"Sluiten\",\n\t\t\t106: \"Vorige\",\n\t\t\t107: \"Volgende\",\n\t\t\t108: \"Kies een bestand\",\n\t\t\t132: \"videospoor\",\n\t\t\t133: \"audiospoor\",\n\t\t\t134: \"ondertitels\",\n\t\t\t135: \"uit\",\n\t\t\t142: \"vorige/volgende\",\n\t\t\t143: \"afspelen/pauzeren\",\n\t\t\t144: \"achteruit/vooruit\",\n\t\t\t145: \"volume omlaag/omhoog\",\n\t\t\t146: \"dempen\",\n\t\t\t147: \"schermvullend\",\n\t\t\t148: \"afsluiten\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tpl: {\n\t\t\t103: \"Anuluj\",\n\t\t\t104: \"Potwierdź\",\n\t\t\t105: \"Zamknij\",\n\t\t\t106: \"Poprzedni\",\n\t\t\t107: \"Następny\",\n\t\t\t108: \"Wybierz plik\",\n\t\t\t131: \"obraz\",\n\t\t\t132: \"ścieżka obrazu\",\n\t\t\t133: \"ścieżka dźwiękowa\",\n\t\t\t134: \"napisy\",\n\t\t\t135: \"wyłączone\",\n\t\t\t142: \"poprzedni/następny\",\n\t\t\t143: \"odtwarzaj/wstrzymaj\",\n\t\t\t144: \"wstecz/przodu\",\n\t\t\t145: \"ciszej/głośniej\",\n\t\t\t146: \"wycisz\",\n\t\t\t147: \"pełny ekran\",\n\t\t\t148: \"zakończ\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tpt: {\n\t\t\t103: \"Cancelar\",\n\t\t\t104: \"Confirmar\",\n\t\t\t105: \"Fechar\",\n\t\t\t106: \"Anterior\",\n\t\t\t107: \"Seguinte\",\n\t\t\t108: \"Escolha um ficheiro\",\n\t\t\t124: \"Operação em processo...\",\n\t\t\t125: \"Envio em processo...\",\n\t\t\t126: \"Tratamento em processo...\",\n\t\t\t131: \"vídeo\",\n\t\t\t132: \"faixa de vídeo\",\n\t\t\t133: \"faixa de áudio\",\n\t\t\t134: \"legendas\",\n\t\t\t135: \"não\",\n\t\t\t142: \"anterior/seguinte\",\n\t\t\t143: \"reprodução/pausa\",\n\t\t\t144: \"recuar/avançar\",\n\t\t\t145: \"diminuir/aumentar volume\",\n\t\t\t146: \"sem som\",\n\t\t\t147: \"ecrã completo\",\n\t\t\t148: \"sair\",\n\t\t\t149: \"Fim\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Todos os ficheiros foram aceites.\",\n\t\t\t162: \"Formato do ficheiro aceite: §.\",\n\t\t\t163: \"Formatos de ficheiro aceites: § e §.\",\n\t\t\t164: \"Tamanho máximo: § MB.\",\n\t\t\t181: \"§% - § kB/s - § minutos restantes\",\n\t\t\t182: \"§% - § kB/s - § minuto restantes\",\n\t\t\t183: \"§% - § kB/s - § segundos restantes\",\n\t\t\t185: \"§% - § kB/s em § minutos\",\n\t\t\t186: \"§% - § kB/s em § minuto\",\n\t\t\t187: \"§% - § kB/s em § segundos\",\n\t\t\t188: \"§% - § kB/s\",\n\t\t\t192: \"Tem a certeza? [span]Sim[/span] - Não\",\n\t\t\t193: \"Parece ter acontecido um erro imprevisto. Por favor, tente novamente.\",\n\t\t\t194: \"Ocorreu um erro ao enviar.\",\n\t\t\t195: \"Ocorreu um erro ao processar.\",\n\t\t\t196: \"Convidamo-lo a [a §]tentar novamente[/a].\"\n\t\t},\n\t\tptbr: {\n\t\t\t107: \"Próximo\",\n\t\t\t108: \"Escolher um arquivo\",\n\t\t\t124: \"Operação em andamento...\",\n\t\t\t125: \"Envio em andamento...\",\n\t\t\t126: \"Tratamento em andamento...\",\n\t\t\t132: \"trilha de vídeo\",\n\t\t\t133: \"trilha de áudio\",\n\t\t\t135: \"desligado\",\n\t\t\t142: \"anterior/próximo\",\n\t\t\t143: \"reproduzir/pausar\",\n\t\t\t144: \"retroceder/avançar\",\n\t\t\t146: \"sem áudio\",\n\t\t\t147: \"tela inteira\",\n\t\t\t148: \"fechar\",\n\t\t\t149: \"Final\"\n\t\t},\n\t\tro: {\n\t\t\t103: \"Anuleaza\",\n\t\t\t104: \"Confirmare\",\n\t\t\t105: \"Inchide\",\n\t\t\t106: \"Anteriorul\",\n\t\t\t107: \"Urmatorul\",\n\t\t\t108: \"Alege un fișier\",\n\t\t\t132: \"pistă video\",\n\t\t\t133: \"pistă audio\",\n\t\t\t134: \"subtitluri\",\n\t\t\t135: \"oprit\",\n\t\t\t142: \"anteriorul/urmatorul\",\n\t\t\t143: \"redare/pauză\",\n\t\t\t144: \"înapoi/înaintează\",\n\t\t\t145: \"scade/crește volumul\",\n\t\t\t146: \"mut\",\n\t\t\t147: \"pe tot ecranul\",\n\t\t\t148: \"ieșire\",\n\t\t\t149: \"Sfârșit\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tru: {\n\t\t\t102: \"Ок\",\n\t\t\t103: \"Отмена\",\n\t\t\t104: \"Подтвердить\",\n\t\t\t105: \"Закрыть\",\n\t\t\t106: \"Предыдущий\",\n\t\t\t107: \"Следующий\",\n\t\t\t108: \"Выберите файл\",\n\t\t\t124: \"Операция в процессе...\",\n\t\t\t131: \"видео\",\n\t\t\t132: \"видеодорожка\",\n\t\t\t133: \"аудиодорожка\",\n\t\t\t134: \"субтитры\",\n\t\t\t135: \"выключено\",\n\t\t\t142: \"предыдущий/следующий\",\n\t\t\t143: \"воспроизведение/пауза\",\n\t\t\t144: \"назад/вперед\",\n\t\t\t145: \"понизить/повысить громкость\",\n\t\t\t146: \"выключить звук\",\n\t\t\t147: \"полноэкранный режим\",\n\t\t\t148: \"выйти\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Все файлы приняты.\",\n\t\t\t162: \"Формат файла: §.\",\n\t\t\t163: \"Форматы файлов: § и §.\",\n\t\t\t164: \"Максимальный размер: § Мб.\",\n\t\t\t166: \"§ Мб\",\n\t\t\t181: \"§% - § Кб/s - осталось § минут\",\n\t\t\t182: \"§% - § Кб/s - осталось § минут\",\n\t\t\t183: \"§% - § Кб/s - осталось § секунд\",\n\t\t\t184: \"§% - § Кб/s\",\n\t\t\t185: \"§% - § Кб/s за § минут\",\n\t\t\t186: \"§% - § Кб/s за § минут\",\n\t\t\t187: \"§% - § Кб/s за § секунд\",\n\t\t\t188: \"§% - § Кб/s\",\n\t\t\t192: \"Вы уверены? [span]Да[/span] - нет\",\n\t\t\t193: \"Кажется произошла не предусмотренная ошибка... Попробуйте еще раз.\",\n\t\t\t194: \"Возникла ошибка при отправке файла.\",\n\t\t\t195: \"Возникла ошибка при обработке файла.\"\n\t\t},\n\t\tsk: {\n\t\t\t103: \"Zrušiť\",\n\t\t\t104: \"Potvrdiť\",\n\t\t\t105: \"Zavrieť\",\n\t\t\t106: \"Dozadu\",\n\t\t\t107: \"Ďalej\",\n\t\t\t108: \"Zvoľte si súbor\",\n\t\t\t133: \"zvuková stopa\",\n\t\t\t134: \"titulky\",\n\t\t\t135: \"vypnuté\",\n\t\t\t142: \"dozadu/ďalej\",\n\t\t\t143: \"prehrať/pozastaviť\",\n\t\t\t144: \"dozadu/dopredu\",\n\t\t\t145: \"znizit/zvysit hlasitost\",\n\t\t\t146: \"stlmiť\",\n\t\t\t148: \"koniec\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\ttr: {\n\t\t\t102: \"Tamam\",\n\t\t\t103: \"İptal\",\n\t\t\t104: \"Onayla\",\n\t\t\t105: \"Kapat\",\n\t\t\t106: \"Önceki\",\n\t\t\t107: \"Sonraki\",\n\t\t\t108: \"Bir dosya seçin\",\n\t\t\t131: \"görüntü\",\n\t\t\t132: \"görüntü kaydı\",\n\t\t\t133: \"ses kaydı\",\n\t\t\t134: \"altyazılar\",\n\t\t\t135: \"kapalı\",\n\t\t\t142: \"önceki/sonraki\",\n\t\t\t143: \"duraklatma/oynatma\",\n\t\t\t144: \"geri/i̇leri\",\n\t\t\t145: \"ses kısar/açar\",\n\t\t\t146: \"sesi kapatma\",\n\t\t\t147: \"tam ekran\",\n\t\t\t148: \"çıkış\",\n\t\t\t149: \"Son\",\n\t\t\t150: \"Esc\",\n\t\t\t192: \"Emin misiniz ? [span]Evet[/span] - Hayır\"\n\t\t},\n\t\tuk: {\n\t\t\t102: \"Гаразд\",\n\t\t\t103: \"Відмінити\",\n\t\t\t104: \"Підтвердити\",\n\t\t\t105: \"Закрити\",\n\t\t\t106: \"Попередній\",\n\t\t\t107: \"Наступний\",\n\t\t\t108: \"Вибрати файл\",\n\t\t\t131: \"відео\",\n\t\t\t132: \"відеодоріжка\",\n\t\t\t133: \"звукова доріжка\",\n\t\t\t134: \"субтитри\",\n\t\t\t135: \"вимкнено\",\n\t\t\t142: \"попередній/наступний\",\n\t\t\t143: \"відтворити/призупинити\",\n\t\t\t144: \"назад/вперед\",\n\t\t\t145: \"зменшити/збільшити гучність\",\n\t\t\t146: \"вимкнути звук\",\n\t\t\t148: \"вийти\",\n\t\t\t149: \"Кінець\",\n\t\t\t150: \"Esc\",\n\t\t\t166: \"§ МБ\",\n\t\t\t184: \"§% - § кБ/s\"\n\t\t},\n\t\tzh: {\n\t\t\t102: \"确定\",\n\t\t\t103: \"取消\",\n\t\t\t104: \"确认\",\n\t\t\t105: \"关闭\",\n\t\t\t106: \"上一个\",\n\t\t\t107: \"下一个\",\n\t\t\t108: \"选择文件\",\n\t\t\t131: \"视频\",\n\t\t\t132: \"视频轨道\",\n\t\t\t133: \"音频轨道\",\n\t\t\t134: \"字幕\",\n\t\t\t135: \"关\",\n\t\t\t142: \"上一个/下一个\",\n\t\t\t143: \"播放/暂停\",\n\t\t\t144: \"快退/快进\",\n\t\t\t145: \"音量减/增\",\n\t\t\t146: \"静音\",\n\t\t\t147: \"全屏\",\n\t\t\t148: \"退出\",\n\t\t\t150: \"Esc\",\n\t\t\t192: \"您确定吗?[span]是[/span] - 否\"\n\t\t}\n\t\t// auto end\n\t};\n\n\tthis.init = function () {\n\n\t\tvar value = apijs.config.lang, html = document.querySelector('html');\n\n\t\tif (value.indexOf('auto') > -1) {\n\t\t\tvalue = html.getAttribute('xml:lang') || html.getAttribute('lang'); // pt-BR fr-FR\n\t\t\tif (typeof value == 'string') {\n\t\t\t\tvalue = value.replace(/[-_]/g, '').toLowerCase();\n\t\t\t\tvalue = value.slice(0, 4); // ptbr frfr\n\t\t\t\tif (!this.data.hasOwnProperty(value))\n\t\t\t\t\tvalue = value.slice(0, 2); // pt fr\n\t\t\t\tif (this.data.hasOwnProperty(value))\n\t\t\t\t\tapijs.config.lang = value;\n\t\t\t}\n\t\t}\n\n\t\tif (!this.data.hasOwnProperty(value))\n\t\t\tapijs.config.lang = 'en';\n\t};\n\n\n\t// TRADUIT (public return string|domelement|boolean)\n\n\tthis.translate = function (word) {\n\n\t\tvar lang = apijs.config.lang, idx = 1, translation = '';\n\n\t\t// mot clef inexistant dans la langue configurée\n\t\t// test avec la langue par défaut pour éventuellement continuer\n\t\tif (typeof this.data[lang][word] != 'string') {\n\t\t\tif ((lang.length > 3) && (typeof this.data[lang.slice(0, 2)][word] == 'string'))\n\t\t\t\tlang = lang.slice(0, 2);\n\t\t\telse if ((lang !== 'en') && (typeof this.data.en[word] == 'string'))\n\t\t\t\tlang = 'en';\n\t\t\telse\n\t\t\t\treturn word;\n\t\t}\n\n\t\t// chaîne de caractères configurable\n\t\tif (arguments.length > 1) {\n\t\t\tthis.data[lang][word].split('§').forEach(function (data) {\n\t\t\t\ttranslation += (idx < this.length) ? data + this[idx++] : data;\n\t\t\t}, arguments); // pour que ci-dessus this = arguments\n\t\t\treturn translation;\n\t\t}\n\n\t\t// chaîne de caractères simple\n\t\treturn this.data[lang][word];\n\t};\n\n\tthis.translateNode = function () {\n\n\t\t// apply fait une copie des arguments\n\t\t// c'est comme si on avait appelé this.translate directement\n\t\treturn document.createTextNode(this.translate.apply(this, arguments));\n\t};\n\n\tthis.changeLang = function (lang) {\n\n\t\tif (typeof lang == 'string') {\n\n\t\t\tif (lang.indexOf('auto') > -1) {\n\t\t\t\tapijs.config.lang = 'auto';\n\t\t\t\tthis.init();\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tlang = lang.replace(/[-_]/g, '');\n\n\t\t\tif (this.data.hasOwnProperty(lang)) {\n\t\t\t\tapijs.config.lang = lang;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t};\n};","/**\n * Created L/02/03/2020\n * Updated L/02/03/2020\n *\n * Copyright 2008-2020 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.select = function () {\n\n\t\"use strict\";\n\n\tthis.init = function () {\n\n\t};\n};","/**\n * Created D/11/01/2015\n * Updated S/02/07/2022\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.player = function (video, url) {\n\n\t\"use strict\";\n\tthis.video = video;\n\tthis.stalled = false;\n\tthis.subload = false;\n\n\n\t// GÉNÉRATION DES ÉLÉMENTS (private return this|void|domelement)\n\n\tthis.autoRun = function (video, url) { // todo\n\n\t\tvideo.removeAttribute('src');\n\t\tvideo.removeAttribute('data-src');\n\t\tvideo.removeAttribute('controls');\n\t\tvideo.classList.add('apijsplayer');\n\n\t\t// https://developer.mozilla.org/fr/docs/Web/Guide/DOM/Events/evenement_medias\n\t\tvideo.onloadedmetadata = function (ev) {\n\t\t\tthis.stalled = false;\n\t\t\tthis.onTimeupdate(ev);\n\t\t\tthis.onProgress(ev);\n\t\t\tthis.onVideotrack();\n\t\t\tthis.onAudiotrack();\n\t\t}.bind(this);\n\t\tvideo.onstalled = function (ev) {\n\t\t\tthis.stalled = true;\n\t\t\tthis.onWaiting(ev);\n\t\t}.bind(this);\n\t\tvideo.onplaying = this.onPlay.bind(this);\n\t\tvideo.onpause = this.onPlay.bind(this);\n\t\tvideo.onended = this.onPlay.bind(this);\n\t\tvideo.onprogress = this.onProgress.bind(this);\n\t\tvideo.ontimeupdate = this.onTimeupdate.bind(this);\n\t\tvideo.onseeking = this.onTimeupdate.bind(this);\n\t\tvideo.onseeked = this.onWaiting.bind(this);\n\t\tvideo.onwaiting = this.onWaiting.bind(this);\n\t\tvideo.onloadstart = this.onWaiting.bind(this);\n\t\tvideo.oncanplay = this.onWaiting.bind(this);\n\t\tvideo.onclick = this.actionPlay.bind(this);\n\t\tvideo.onvolumechange = this.actionVolume.bind(this);\n\t\tvideo.ondurationchange = apijs.dialog.onMediaLoad;\n\t\tvideo.onerror = apijs.dialog.onMediaLoad;\n\n\t\t// ajoute les contrôles\n\t\tvideo.parentNode.appendChild(this.htmlSvgPlayer());\n\n\t\t// charge les sources\n\t\tif (url.indexOf('m3u') < 0) {\n\t\t\tvideo.appendChild(this.htmlSource(url));\n\t\t\treturn this;\n\t\t}\n\n\t\tvar xhr = new XMLHttpRequest();\n\t\txhr.open('GET', url, true);\n\t\txhr.onreadystatechange = function () {\n\t\t\tif (xhr.readyState === 4) {\n\t\t\t\tself.dispatchEvent(new CustomEvent('apijsajaxresponse', { detail: { from: 'apijsplayer.init', xhr: xhr } }));\n\t\t\t\tif (!video || (video.childNodes.length > 0)) {\n\t\t\t\t\txhr.abort();\n\t\t\t\t}\n\t\t\t\telse if ([0, 200].has(xhr.status)) {\n\n\t\t\t\t\tvar url, txt = 0, nbv = 0, nbt = 0, data = xhr.responseText.trim().split(\"\\n\");\n\t\t\t\t\twhile (typeof (url = data.shift()) == 'string') {\n\n\t\t\t\t\t\t// #APIJS#attr|name|value\n\t\t\t\t\t\tif (url.indexOf('#APIJS#attr') === 0) {\n\t\t\t\t\t\t\ttxt = url.split('|');\n\t\t\t\t\t\t\tvideo.setAttribute(txt[1], txt[2]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// #APIJS#track|kind|label|srclang|src\n\t\t\t\t\t\telse if (url.indexOf('#APIJS#track|subtitles') === 0) {\n\t\t\t\t\t\t\ttxt = url.split('|');\n\t\t\t\t\t\t\tthis.html('.tracks.texttrack select').appendChild(this.htmlOption(nbt++, txt[3] + ' - ' + txt[2]));\n\t\t\t\t\t\t\tvideo.appendChild(this.htmlTrack(txt));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// #EXTINF: Text\n\t\t\t\t\t\telse if (url.indexOf('#EXTINF') === 0) {\n\t\t\t\t\t\t\ttxt = url.replace(/#EXTINF:\\d+,/, '');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// http\n\t\t\t\t\t\telse if ((url.length > 5) && (url[0] !== '#')) {\n\t\t\t\t\t\t\tthis.html('.tracks.video select').appendChild(this.htmlOption(nbv++, (typeof txt == 'string') ? txt : nbv));\n\t\t\t\t\t\t\tvideo.appendChild(this.htmlSource(url));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.updateSelect('video', nbv);\n\t\t\t\t\tif (typeof video.textTracks == 'object')\n\t\t\t\t\t\tthis.updateSelect('texttrack', video.textTracks.length || nbt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tapijs.dialog.onMediaLoad({ type: 'error' });\n\t\t\t\t}\n\t\t\t}\n\t\t}.bind(this);\n\t\txhr.send();\n\n\t\treturn this;\n\t};\n\n\tthis.updateSelect = function (css, total) {\n\n\t\t// s'il y une seule option on affiche pas, sauf pour les sous titres\n\t\tvar adjust = (css === 'texttrack') ? 1 : 0;\n\t\tif (total > adjust) {\n\t\t\tthis.html('.tracks.' + css).removeAttribute('style');\n\t\t\tthis.html('.tracks.' + css + ' em').textContent = '(' + total + ')';\n\t\t\tthis.html('.tracks.' + css + ' select').setAttribute('size', (total < 10) ? total + adjust : 10);\n\t\t}\n\t\telse {\n\t\t\tthis.html('.tracks.' + css).setAttribute('style', 'display:none;');\n\t\t\tthis.html('.tracks.' + css + ' select').innerHTML = '';\n\t\t}\n\t};\n\n\tthis.html = function (selector) {\n\t\treturn this.video.parentNode.querySelector(selector);\n\t};\n\n\n\t// GESTION DES ÉVÉNEMENTS (private return void)\n\n\tthis.onVideotrack = function () {\n\n\t\tvar tracks = this.video.videoTracks, select = this.html('.tracks.videotrack select'), lang = apijs.config.lang, auto = -1, idx;\n\n\t\tif (typeof tracks == 'object') {\n\n\t\t\t// si la vidéo contient plusieurs pistes vidéo\n\t\t\t// https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack\n\t\t\tif (tracks.length > 1) {\n\t\t\t\tfor (idx = 0; idx < tracks.length; idx++) {\n\t\t\t\t\tif (tracks[idx].language && (tracks[idx].language.toLowerCase().replace(/[-_]/g, '').indexOf(lang) == 0))\n\t\t\t\t\t\tauto = (auto < 0) ? idx : auto;\n\t\t\t\t\tselect.appendChild(this.htmlOption(idx, tracks[idx]));\n\t\t\t\t}\n\t\t\t\tthis.updateSelect('videotrack', tracks.length);\n\t\t\t}\n\n\t\t\t// sélectionne éventuellement la piste dans la bonne langue\n\t\t\tselect.selectedIndex = Math.max(0, auto);\n\t\t\tif (auto >= 0)\n\t\t\t\tthis.actionVideotrack(auto);\n\t\t}\n\t};\n\n\tthis.onAudiotrack = function () {\n\n\t\tvar tracks = this.video.audioTracks, select = this.html('.tracks.audiotrack select'), lang = apijs.config.lang, auto = -1, idx;\n\n\t\tif (typeof tracks == 'object') {\n\n\t\t\t// si la vidéo contient plusieurs pistes audio\n\t\t\t// https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack\n\t\t\tif (tracks.length > 1) {\n\t\t\t\tfor (idx = 0; idx < tracks.length; idx++) {\n\t\t\t\t\tif (tracks[idx].language && (tracks[idx].language.toLowerCase().replace(/[-_]/g, '').indexOf(lang) == 0))\n\t\t\t\t\t\tauto = (auto < 0) ? idx : auto;\n\t\t\t\t\tselect.appendChild(this.htmlOption(idx, tracks[idx]));\n\t\t\t\t}\n\t\t\t\tthis.updateSelect('audiotrack', tracks.length);\n\t\t\t}\n\n\t\t\t// sélectionne éventuellement la piste dans la bonne langue\n\t\t\tselect.selectedIndex = Math.max(0, auto);\n\t\t\tif (auto >= 0)\n\t\t\t\tthis.actionAudiotrack(auto);\n\t\t}\n\t};\n\n\tthis.onTimeupdate = function (ev) {\n\n\t\tvar time = this.video.currentTime, duration = this.video.duration, text = '--:--', hh, mm, ss;\n\n\t\tif (!isNaN(time) && (duration !== Infinity) && !isNaN(duration)) {\n\n\t\t\thh = Math.floor(time / 3600);\n\t\t\tmm = Math.floor((time % 3600) / 60);\n\t\t\tss = Math.floor(time % 60);\n\t\t\tif (ss < 10) ss = '0' + ss;\n\t\t\tif (mm < 10) mm = '0' + mm;\n\n\t\t\thh = (hh > 0) ? hh + ':' : '';\n\t\t\ttext = hh + mm + ':' + ss;\n\n\t\t\thh = Math.floor(duration / 3600);\n\t\t\tmm = Math.floor((duration % 3600) / 60);\n\t\t\tss = Math.floor(duration % 60);\n\t\t\tif (ss < 10) ss = '0' + ss;\n\t\t\tif (mm < 10) mm = '0' + mm;\n\n\t\t\thh = (hh > 0) ? hh + ':' : '';\n\t\t\ttext += ' / ' + hh + mm + ':' + ss;\n\n\t\t\tthis.html('svg.bar rect').style.width = (time / duration * 100) + '%';\n\t\t}\n\n\t\tthis.html('span.time').textContent = text;\n\n\t\t// loader stalled sauf par les tracks\n\t\tif (this.stalled && !this.subload) {\n\t\t\tthis.stalled = false;\n\t\t\tthis.onWaiting(ev);\n\t\t}\n\t};\n\n\tthis.onProgress = function () {\n\n\t\tvar video = this.video, elem = this.html('svg.bar'), idx = video.buffered.length, width, buffer;\n\n\t\tif ((idx > 0) && (video.duration !== Infinity) && !isNaN(video.duration)) {\n\n\t\t\telem.querySelectorAll('.buffer').forEach(function (node) { node.remove(); });\n\t\t\twhile (idx-- > 0) {\n\n\t\t\t\tbuffer = document.createElement('rect');\n\t\t\t\tbuffer.setAttribute('class', 'buffer');\n\n\t\t\t\twidth = (video.buffered.end(idx) - video.buffered.start(idx)) / video.duration * 100;\n\t\t\t\tif (width > 99.8)\n\t\t\t\t\tbuffer.setAttribute('style', 'left:0%; width:100%;');\n\t\t\t\telse\n\t\t\t\t\tbuffer.setAttribute('style', 'left:' + (video.buffered.start(idx) / video.duration * 100) + '%; width:' + width + '%;');\n\n\t\t\t\telem.appendChild(buffer);\n\t\t\t}\n\t\t}\n\t};\n\n\tthis.onPlay = function () { // todo\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(this.video.networkState)) {\n\n\t\t\tif (this.video.paused) {\n\t\t\t\tthis.html('span.play').textContent = '\\uE810';\n\t\t\t\t// via un dialogue ou en direct\n\t\t\t\tif (apijs.dialog.t1)\n\t\t\t\t\tapijs.dialog.remove('playing');\n\t\t\t\telse\n\t\t\t\t\tthis.video.parentNode.classList.remove('playing');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.html('span.play').textContent = '\\uE811';\n\t\t\t\t// via un dialogue ou en direct\n\t\t\t\tif (apijs.dialog.t1)\n\t\t\t\t\tapijs.dialog.add('playing');\n\t\t\t\telse\n\t\t\t\t\tthis.video.parentNode.classList.add('playing');\n\t\t\t}\n\t\t}\n\t};\n\n\tthis.onWaiting = function (ev) { // todo\n\t\tapijs.log('player:video:onWaiting:' + ev.type + ' stalled:' + this.stalled + '/subload:' + this.subload);\n\t\tapijs.dialog[['loadstart', 'waiting', 'seeking', 'stalled'].has(ev.type) ? 'add' : 'remove']('loading');\n\t};\n\n\n\t// GESTION DES INTERACTIONS (private return void)\n\n\tthis.actionPlay = function () {\n\n\t\tvar video = this.video;\n\n\t\t// ignore le clic du swipe en mode slideshow\n\t\tif (apijs.dialog.swipe)\n\t\t\treturn false;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(video.networkState)) {\n\t\t\tif (video.ended || video.paused)\n\t\t\t\tvideo.play();\n\t\t\telse\n\t\t\t\tvideo.pause();\n\t\t}\n\t};\n\n\tthis.actionVolume = function (ev) {\n\n\t\tvar video = this.video, elem = this.html('svg.vol'), width = elem.offsetWidth, value = 0;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(video.networkState)) {\n\n\t\t\tif ((typeof ev == 'object') && !isNaN(ev.clientX)) {\n\n\t\t\t\tdo { value += elem.offsetLeft; }\n\t\t\t\twhile (elem = elem.offsetParent);\n\n\t\t\t\tvalue = ((ev.clientX - value) * 100 / width) / 100;\n\t\t\t\tvalue = (value < 0.2) ? 0 : ((value > 0.92) ? 1 : value);\n\n\t\t\t\t//if (self.getComputedStyle(this.html('svg.vol')).direction === 'rtl')\n\t\t\t\t//\tvalue = 1 - value;\n\n\t\t\t\tvideo.volume = value;\n\t\t\t\tvideo.muted = false;\n\t\t\t}\n\n\t\t\tthis.html('svg.vol rect').style.width = video.muted ? 0 : (video.volume * 100) + '%';\n\t\t}\n\t};\n\n\tthis.actionPosition = function (ev) {\n\n\t\tvar video = this.video, elem = this.html('svg.bar'), width = elem.offsetWidth, value = 0;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif (([1,2].has(video.networkState)) && (video.duration !== Infinity) && !isNaN(video.duration) && (typeof ev == 'object')) {\n\n\t\t\tdo { value += elem.offsetLeft; }\n\t\t\twhile (elem = elem.offsetParent);\n\n\t\t\tvalue = (video.duration * (ev.clientX - value) * 100 / width) / 100;\n\t\t\tvalue = (value <= 1) ? 0 : value;\n\n\t\t\t//if (self.getComputedStyle(this.html('svg.vol')).direction === 'rtl')\n\t\t\t//\tvalue = video.duration - value;\n\n\t\t\tvideo.currentTime = value;\n\t\t}\n\t};\n\n\tthis.actionVideotrack = function (ev) {\n\n\t\tvar tracks = this.video.videoTracks, value = (typeof ev == 'object') ? ev.target.value : ev, idx;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(this.video.networkState)) {\n\n\t\t\tfor (idx = 0; idx < tracks.length; idx++)\n\t\t\t\ttracks[idx].enabled = (idx == value);\n\n\t\t\tvideo.currentTime -= 1;\n\t\t}\n\n\t\tif (typeof ev == 'object')\n\t\t\tev.target.blur();\n\t};\n\n\tthis.actionAudiotrack = function (ev) {\n\n\t\tvar tracks = this.video.audioTracks, value = (typeof ev == 'object') ? ev.target.value : ev, idx;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(this.video.networkState)) {\n\n\t\t\tfor (idx = 0; idx < tracks.length; idx++)\n\t\t\t\ttracks[idx].enabled = (idx == value);\n\n\t\t\tvideo.currentTime -= 1;\n\t\t}\n\n\t\tif (typeof ev == 'object')\n\t\t\tev.target.blur();\n\t};\n\n\tthis.actionTexttrack = function (ev) {\n\n\t\tvar tracks = this.video.textTracks, value = (typeof ev == 'object') ? ev.target.value : ev, idx;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(this.video.networkState)) {\n\n\t\t\tfor (idx = 0; idx < tracks.length; idx++)\n\t\t\t\ttracks[idx].mode = (idx == value) ? 'showing' : 'hidden';\n\n\t\t\tthis.subload = true;\n\t\t}\n\n\t\tif (typeof ev == 'object')\n\t\t\tev.target.blur();\n\t};\n\n\tthis.actionVideo = function (ev) {\n\n\t\tthis.html('svg.bar rect').style.width = '0';\n\t\tthis.html('svg.bar').querySelectorAll('.buffer').forEach(function (node) { node.remove(); });\n\t\tthis.html('span.play').textContent = '\\uE810';\n\n\t\tthis.updateSelect('videotrack', 0);\n\t\tthis.updateSelect('audiotrack', 0);\n\n\t\tthis.video.src = this.video.querySelectorAll('source')[(typeof ev == 'object') ? ev.target.value : ev].src;\n\t\tif (typeof ev == 'object')\n\t\t\tev.target.blur();\n\t};\n\n\tthis.actionFullscreen = function () {\n\n\t\t// en direct\n\t\tvar res = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement;\n\t\tthis.video.parentNode.classList[res ? 'add' : 'remove']('fullscreen');\n\t},\n\n\n\t// GÉNÉRATION DES ÉLÉMENTS (private return domelement)\n\n\tthis.htmlSvgPlayer = function () {\n\n\t\tvar d, c, b, a = document.createElement('div');\n\t\ta.setAttribute('class', 'apijsplayer noplaying');\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'btn play fnt');\n\t\t\tb.appendChild(document.createTextNode('\\uE810'));\n\t\t\tb.onclick = this.actionPlay.bind(this);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'svg bar');\n\n\t\t\t\tc = document.createElement('svg');\n\t\t\t\tc.setAttribute('class', 'bar');\n\t\t\t\tc.onclick = this.actionPosition.bind(this);\n\n\t\t\t\t\td = document.createElement('rect');\n\n\t\t\t\tc.appendChild(d);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'time');\n\t\t\tb.appendChild(document.createTextNode('--:--'));\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'svg vol');\n\n\t\t\t\tc = document.createElement('svg');\n\t\t\t\tc.setAttribute('class', 'vol');\n\t\t\t\tc.onclick = this.actionVolume.bind(this);\n\n\t\t\t\t\td = document.createElement('rect');\n\n\t\t\t\tc.appendChild(d);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('label');\n\t\t\tb.setAttribute('class', 'tracks audiotrack');\n\t\t\tb.setAttribute('style', 'display:none;');\n\t\t\tb.appendChild(apijs.i18n.translateNode(133));\n\n\t\t\t\tc = document.createElement('em');\n\n\t\t\tb.appendChild(c);\n\n\t\t\t\tc = document.createElement('select');\n\t\t\t\tc.setAttribute('lang', 'mul');\n\t\t\t\tc.onchange = this.actionAudiotrack.bind(this);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('label');\n\t\t\tb.setAttribute('class', 'tracks videotrack');\n\t\t\tb.setAttribute('style', 'display:none;');\n\t\t\tb.appendChild(apijs.i18n.translateNode(132));\n\n\t\t\t\tc = document.createElement('em');\n\n\t\t\tb.appendChild(c);\n\n\t\t\t\tc = document.createElement('select');\n\t\t\t\tc.setAttribute('lang', 'mul');\n\t\t\t\tc.onchange = this.actionVideotrack.bind(this);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('label');\n\t\t\tb.setAttribute('class', 'tracks video');\n\t\t\tb.setAttribute('style', 'display:none;');\n\t\t\tb.appendChild(apijs.i18n.translateNode(131));\n\n\t\t\t\tc = document.createElement('em');\n\n\t\t\tb.appendChild(c);\n\n\t\t\t\tc = document.createElement('select');\n\t\t\t\tc.setAttribute('lang', 'mul');\n\t\t\t\tc.onchange = this.actionVideo.bind(this);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('label');\n\t\t\tb.setAttribute('class', 'tracks texttrack');\n\t\t\tb.setAttribute('style', 'display:none;');\n\t\t\tb.appendChild(apijs.i18n.translateNode(134));\n\n\t\t\t\tc = document.createElement('em');\n\n\t\t\tb.appendChild(c);\n\n\t\t\t\tc = document.createElement('select');\n\t\t\t\tc.setAttribute('lang', 'mul');\n\t\t\t\tc.onchange = this.actionTexttrack.bind(this);\n\n\t\t\t\t\td = document.createElement('option');\n\t\t\t\t\td.appendChild(apijs.i18n.translateNode(135)); // off\n\n\t\t\t\tc.appendChild(d);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'btn full fnt');\n\t\t\tb.appendChild(document.createTextNode('\\uE80F'));\n\t\t\tb.onclick = function () {\n\t\t\t\t// via un dialogue ou en direct\n\t\t\t\tif (apijs.dialog.t1) {\n\t\t\t\t\tapijs.requestFullscreen(apijs.dialog.t1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (document.webkitFullscreenEnabled)\n\t\t\t\t\t\tdocument.addEventListener('webkitfullscreenchange', this.actionFullscreen.bind(this));\n\t\t\t\t\telse if (document.fullscreenEnabled)\n\t\t\t\t\t\tdocument.addEventListener('fullscreenchange', this.actionFullscreen.bind(this));\n\t\t\t\t\telse if (document.mozFullScreenEnabled)\n\t\t\t\t\t\tdocument.addEventListener('mozfullscreenchange', this.actionFullscreen.bind(this));\n\t\t\t\t\tapijs.requestFullscreen(this.video.parentNode);\n\t\t\t\t}\n\n\t\t\t}.bind(this);\n\n\t\ta.appendChild(b);\n\n\t\treturn a;\n\t};\n\n\tthis.htmlTrack = function (data) { // todo\n\n\t\tvar a = document.createElement('track');\n\t\ta.setAttribute('kind', data[1]);\n\t\ta.setAttribute('label', data[2]);\n\t\ta.setAttribute('srclang', data[3]);\n\t\ta.setAttribute('src', data[4]);\n\n\t\ta.onload = function (ev) {\n\t\t\tapijs.log('player:track:onload ' + ev.target.src.slice(ev.target.src.lastIndexOf('/') + 1));\n\t\t\tif (ev.target.track.mode === 'showing') {\n\t\t\t\tthis.onWaiting(ev);\n\t\t\t\tthis.subload = false;\n\t\t\t}\n\t\t}.bind(this);\n\n\t\ta.onerror = function (ev) {\n\t\t\tapijs.log('player:track:onerror ' + ev.target.src.slice(ev.target.src.lastIndexOf('/') + 1));\n\t\t\tif (ev.target.track.mode === 'showing') {\n\t\t\t\tthis.onWaiting(ev);\n\t\t\t\tthis.subload = false;\n\t\t\t}\n\t\t}.bind(this);\n\n\t\treturn a;\n\t};\n\n\tthis.htmlSource = function (url) {\n\n\t\tvar a = document.createElement('source');\n\t\ta.setAttribute('src', url);\n\t\ta.onerror = apijs.dialog.onMediaLoad;\n\n\t\treturn a;\n\t};\n\n\tthis.htmlOption = function (idx, txt) {\n\n\t\tif (typeof txt == 'object')\n\t\t\ttxt = (txt.label === '') ? txt.language.toLowerCase() : txt.language.toLowerCase() + ' - ' + txt.label;\n\n\t\tvar a = document.createElement('option');\n\t\ta.setAttribute('value', idx);\n\t\ta.appendChild(document.createTextNode(txt));\n\n\t\treturn a;\n\t};\n\n\n\tthis.autoRun(video, url);\n};","/**\n * Created D/12/04/2009\n * Updated S/14/01/2023\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.dialog = function () {\n\n\t\"use strict\";\n\tthis.klass = [];\n\tthis.height = 0;\n\tthis.scroll = 0; // time\n\tthis.callback = null;\n\tthis.args = null;\n\tthis.xhr = null;\n\n\tthis.ft = /information|confirmation|options|upload|progress|waiting|photo|video|iframe|ajax|start|ready|end|reduce|mobile|tiny|fullscreen/g;\n\tthis.ti = 'a,area,button,input,textarea,select,object,iframe';\n\tthis.ns = 'http://www.w3.org/2000/svg';\n\n\tthis.swipe = false;\n\tthis.media = null;\n\tthis.t0 = null; // fragment\n\tthis.t1 = null; // div id=apijsDialog\n\tthis.t2 = null; // div/form id=apijsBox\n\tthis.t3 = null; // input file\n\tthis.a = null;\n\tthis.b = null;\n\tthis.c = null;\n\n\n\t// GÉNÉRATION DES BOÎTES DE DIALOGUE (public return boolean)\n\n\tthis.dialogInformation = function (title, text, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string')) {\n\t\t\treturn this.init('information', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlBtnOk()\n\t\t\t\t.show('button.confirm');\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogInformation invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogConfirmation = function (title, text, callback, args, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string') && (typeof callback == 'function')) {\n\t\t\tthis.callback = callback;\n\t\t\tthis.args = args;\n\t\t\treturn this.init('confirmation', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlBtnConfirm('button', 'apijs.dialog.actionConfirm();')\n\t\t\t\t.show('button.confirm');\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogConfirmation invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogFormOptions = function (title, text, action, callback, args, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string') && (typeof action == 'string') && (typeof callback == 'function')) {\n\t\t\tthis.callback = callback;\n\t\t\tthis.args = args;\n\t\t\treturn this.init('options', icon)\n\t\t\t\t.htmlParent(action, 'apijs.dialog.actionConfirm();')\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlBtnConfirm('submit')\n\t\t\t\t.show(true);\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogFormOptions invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogFormUpload = function (title, text, action, input, multiple, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string') && (typeof action == 'string') && (typeof input == 'string')) {\n\t\t\treturn this.init('upload', icon)\n\t\t\t\t.htmlParent(action, 'apijs.upload.actionConfirm();', 'apijs.upload.actionDrag(event);')\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlUpload(input, (typeof multiple == 'boolean') ? multiple : false, 'apijs.upload.actionChoose(this);')\n\t\t\t\t.htmlBtnConfirm('submit')\n\t\t\t\t.show('button.browse');\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogFormUpload invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogProgress = function (title, text, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string')) {\n\t\t\treturn this.init('progress', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlSvgProgress()\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogProgress invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogWaiting = function (title, text, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string')) {\n\t\t\treturn this.init('waiting', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlSvgLoader(false)\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogWaiting invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogPhoto = function (url, name, date, legend, icon) {\n\n\t\tvar slideshow = (typeof icon == 'string');\n\t\ticon = slideshow ? 'notransition slideshow loading ' + icon : 'notransition loading';\n\n\t\tif ((typeof url == 'string') && (typeof name == 'string') && (typeof date == 'string') && (typeof legend == 'string')) {\n\t\t\treturn this.init('photo', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlMedia(url, name, date, legend)\n\t\t\t\t.htmlHelp(slideshow, false)\n\t\t\t\t.htmlBtnClose()\n\t\t\t\t.htmlBtnNavigation()\n\t\t\t\t.htmlSvgLoader()\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogPhoto invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogVideo = function (url, name, date, legend, icon) {\n\n\t\tvar slideshow = (typeof icon == 'string');\n\t\ticon = slideshow ? 'notransition slideshow loading ' + icon : 'notransition loading';\n\n\t\tif ((typeof url == 'string') && (typeof name == 'string') && (typeof date == 'string') && (typeof legend == 'string')) {\n\t\t\treturn this.init('video', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlMedia(url, name, date, legend)\n\t\t\t\t.htmlHelp(slideshow, url.indexOf('iframe') < 0) // true si pas iframe\n\t\t\t\t.htmlBtnClose()\n\t\t\t\t.htmlBtnNavigation()\n\t\t\t\t.htmlSvgLoader()\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogVideo invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogIframe = function (url, close, icon) {\n\n\t\tif ((typeof url == 'string') && (typeof close == 'boolean')) {\n\t\t\treturn this.init('iframe', (typeof icon == 'string') ? icon + ' loading' : 'loading', !close)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlIframe(url)\n\t\t\t\t.htmlBtnClose(close)\n\t\t\t\t.htmlSvgLoader(false)\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogIframe invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogAjax = function (url, close, callback, args, icon) {\n\n\t\tif ((typeof url == 'string') && (typeof close == 'boolean') && (typeof callback == 'function')) {\n\t\t\t// dialogue\n\t\t\tthis.callback = callback;\n\t\t\tthis.args = args;\n\t\t\tthis.init('ajax', (typeof icon == 'string') ? icon + ' loading' : 'loading', !close)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlBtnClose(close)\n\t\t\t\t.htmlSvgLoader(false)\n\t\t\t\t.show();\n\t\t\t// ajax\n\t\t\tthis.xhr = new XMLHttpRequest();\n\t\t\tthis.xhr.open('GET', url, true);\n\t\t\tthis.xhr.onreadystatechange = function () {\n\t\t\t\tif ((this.xhr.readyState === 4) && (typeof this.callback == 'function')) {\n\t\t\t\t\tthis.callback(this.xhr, this.args);\n\t\t\t\t\tthis.remove('loading');\n\t\t\t\t}\n\t\t\t}.bind(this); // pour que ci-dessus this = this\n\t\t\tthis.xhr.send();\n\t\t\treturn this;\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogAjax invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\n\t// GESTION DES CLASSES CSS (public sauf update private, return this sauf has return true)\n\n\tthis.update = function () {\n\n\t\t// il n'est pas question de mettre à jour les attributs class sans l'une des 3 classes de base\n\t\tif (this.has('start', 'ready', 'end')) {\n\t\t\tif (this.t1)\n\t\t\t\tthis.t1.setAttribute('class', this.klass.join(' '));\n\t\t\tif (this.t2)\n\t\t\t\tthis.t2.setAttribute('class', this.klass.join(' '));\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.add = function () {\n\n\t\tArray.prototype.forEach.call(arguments, function (css) {\n\t\t\tif (typeof css != 'string')\n\t\t\t\tconsole.error('apijs.dialog.add argument is not a string', css);\n\t\t\tif (this.klass.indexOf(css) < 0)\n\t\t\t\tthis.klass.push(css);\n\t\t}, this); // pour que ci-dessus this = this\n\n\t\treturn this.update();\n\t};\n\n\tthis.remove = function () {\n\n\t\tArray.prototype.forEach.call(arguments, function (css) {\n\t\t\tif (typeof css != 'string')\n\t\t\t\tconsole.error('apijs.dialog.remove argument is not a string', css);\n\t\t\tif (this.klass.indexOf(css) > -1)\n\t\t\t\tthis.klass.splice(this.klass.indexOf(css), 1);\n\t\t}, this); // pour que ci-dessus this = this\n\n\t\treturn this.update();\n\t};\n\n\tthis.toggle = function (search, replace) {\n\n\t\tif ((typeof search != 'string') || (typeof replace != 'string'))\n\t\t\tconsole.error('apijs.dialog.toggle argument is not a string', search, replace);\n\n\t\tif (this.has(search))\n\t\t\tthis.remove(search);\n\t\tif (!this.has(replace))\n\t\t\tthis.add(replace);\n\n\t\treturn this.update();\n\t};\n\n\tthis.has = function () {\n\t\treturn this.klass.has(apijs.toArray(arguments)); // true if one found\n\t};\n\n\n\t// GESTION DES INTERACTIONS (private sauf actionClose)\n\n\tthis.actionClose = function (ev) {\n\n\t\t// \\\\ au lieu de \\ sinon Bad or unnecessary escaping\n\t\tif (apijs.config.slideshow.anchor && (typeof history.pushState == 'function')) {\n\t\t\tif (new RegExp('#(' + apijs.config.slideshow.ids + '[\\-\\\\.]\\\\d+[\\-\\\\.]\\\\d+)').test(self.location.href))\n\t\t\t\thistory.pushState({}, '', self.location.href.slice(0, self.location.href.indexOf('#')));\n\t\t}\n\n\t\tif (typeof ev == 'object') {\n\t\t\tif ((ev.target.getAttribute('id') === 'apijsDialog') && !apijs.dialog.has('photo', 'video', 'progress', 'waiting', 'lock'))\n\t\t\t\tapijs.dialog.clear(true);\n\t\t}\n\t\telse if (this.t1) {\n\t\t\tthis.clear(true);\n\t\t}\n\t};\n\n\tthis.onCloseBrowser = function (ev) {\n\n\t\tif (apijs.dialog.has('progress', 'waiting', 'lock')) {\n\t\t\tev.preventDefault();\n\t\t\tev.stopPropagation();\n\t\t\tev.m = apijs.i18n.translate(124);\n\t\t\tev.returnValue = ev.m; // Gecko, Trident, Chrome 34+\n\t\t\treturn ev.m; // Gecko, WebKit, Chrome\n\t\t}\n\t};\n\n\tthis.onResizeBrowser = function () {\n\n\t\tvar width = document.querySelector('body').clientWidth;\n\n\t\tapijs.dialog[(width <= (apijs.dialog.has('photo', 'video') ? 900 : 460)) ? 'add' : 'remove']('mobile');\n\t\tapijs.dialog[(width <= 300) ? 'add' : 'remove']('tiny');\n\t};\n\n\tthis.onScrollBrowser = function (ev) {\n\n\t\tvar that = apijs.dialog, elem = ev.target, brk = false;\n\n\t\t// dialogues du diaporama (suivant/précédent)\n\t\t// https://github.com/hammerjs/hammer.js\n\t\t// https://github.com/john-doherty/swiped-events\n\t\tif (\n\t\t\tthat.has('slideshow') && !that.has('playing') &&\n\t\t\t!['OPTION', 'SELECT'].has(elem.nodeName) && ['DOMMouseScroll', 'mousewheel', 'swipeleft', 'swiperight', 'swipeup', 'swipedown', 'swiped-left', 'swiped-right', 'swiped-up', 'swiped-down'].has(ev.type)\n\t\t) {\n\t\t\telem = new Date().getTime() / 1000;\n\t\t\tif ((that.scroll < 1) || (elem > (that.scroll + 1))) {\n\t\t\t\tthat.scroll = elem;\n\t\t\t\t// ev.detail > 0 si vers le bas avec Firefox\n\t\t\t\t// ev.wheelDelta < 0 si vers le bas avec Chromium/Opera/Edge...\n\t\t\t\tbrk = (ev.detail > 0) || (ev.wheelDelta < 0); // true si vers le bas\n\t\t\t\tapijs.slideshow[(['swipeleft', 'swipeup', 'swiped-left', 'swiped-up'].has(ev.type) || brk) ? 'actionNext' : 'actionPrev']();\n\t\t\t}\n\t\t}\n\t\t// autorise éventuellement le défilement\n\t\t// recherche l'éventuel élément scrollable\n\t\telse {\n\t\t\tif (elem.nodeName === 'OPTION') {\n\t\t\t\telem = elem.parentNode;\n\t\t\t}\n\t\t\telse if (!['TEXTAREA', 'SELECT'].has(elem.nodeName)) {\n\t\t\t\twhile ((brk !== true) && (elem.nodeName !== 'HTML')) {\n\t\t\t\t\tif (elem.classList.contains('scrollable'))\n\t\t\t\t\t\tbrk = true;\n\t\t\t\t\telse\n\t\t\t\t\t\telem = elem.parentNode;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// elem = select | textarea | scrollable\n\t\t\tif ((elem.scrollHeight > elem.offsetHeight) && (elem.nodeName !== 'HTML')) {\n\t\t\t\t// ev.detail > 0 si vers le bas avec Firefox\n\t\t\t\t// ev.wheelDelta < 0 si vers le bas avec Chromium/Opera/Edge...\n\t\t\t\tbrk = (ev.detail > 0) || (ev.wheelDelta < 0); // true si vers le bas\n\t\t\t\tif ((brk && (elem.scrollTop < (elem.scrollHeight - elem.offsetHeight - 1))) || (!brk && (elem.scrollTop > 0)))\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// empèche le défilement\n\t\tev.preventDefault();\n\t\tev.stopPropagation();\n\t};\n\n\tthis.onScrollIframe = function (ev) {\n\n\t\tvar elem = ev.target, brk;\n\t\twhile (elem.parentNode)\n\t\t\telem = elem.parentNode;\n\n\t\t// ev.detail > 0 si vers le bas avec Firefox\n\t\t// ev.wheelDelta < 0 si vers le bas avec Chromium/Opera/Edge...\n\t\tbrk = (ev.detail > 0) || (ev.wheelDelta < 0); // true si vers le bas\n\n\t\t// empèche le défilement (elem = iframe document)\n\t\tif (\n\t\t\t(brk && ((elem.defaultView.innerHeight + elem.defaultView.scrollY) >= (elem.body.offsetHeight - 1))) ||\n\t\t\t(!brk && (elem.defaultView.scrollY <= 0))\n\t\t) {\n\t\t\tev.preventDefault();\n\t\t\tev.stopPropagation();\n\t\t}\n\t};\n\n\tthis.onKey = function (ev) {\n\n\t\tvar that = apijs.dialog, elem = that.media, time;\n\n\t\t// dialogues d'attente et de progresssion ou tout autre dialogue verrouillé\n\t\t// ctrl + q | ctrl + w | ctrl + r | ctrl + f4 | ctrl + f5 // alt + f4 // échap | f5\n\t\tif (that.has('progress', 'waiting', 'lock')) {\n\n\t\t\tif ((ev.ctrlKey && [81, 87, 82, 115, 116].has(ev.keyCode)) || (ev.altKey && (ev.keyCode === 115)) || [27, 116].has(ev.keyCode))\n\t\t\t\tev.preventDefault();\n\t\t}\n\t\t// dialogues photo et vidéo\n\t\t// f11 (ne fonctionne plus sur Opera 74 Windows)\n\t\telse if (that.has('photo', 'video') && (ev.keyCode === 122)) {\n\t\t\tev.preventDefault();\n\t\t\tapijs.requestFullscreen(that.t1);\n\t\t}\n\t\t// dialogues photo et vidéo du diaporama\n\t\t// échap // fin // début // gauche // droite\n\t\telse if (that.has('slideshow')) {\n\n\t\t\tif (ev.keyCode === 27) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tthat.actionClose();\n\t\t\t}\n\t\t\telse if (ev.keyCode === 35) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tapijs.slideshow.actionLast();\n\t\t\t}\n\t\t\telse if (ev.keyCode === 36) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tapijs.slideshow.actionFirst();\n\t\t\t}\n\t\t\telse if (ev.keyCode === 37) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tapijs.slideshow.actionPrev();\n\t\t\t}\n\t\t\telse if (ev.keyCode === 39) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tapijs.slideshow.actionNext();\n\t\t\t}\n\t\t}\n\t\t// pour tous les autres\n\t\t// échap\n\t\telse if (ev.keyCode === 27) {\n\t\t\tev.preventDefault();\n\t\t\tthat.actionClose();\n\t\t}\n\n\t\t// dialogue vidéo\n\t\t// espace | p // haut | page haut // bas | page bas // + // - // m\n\t\tif (that.has('video') && !that.has('videoiframe')) {\n\n\t\t\t// espace | p\n\t\t\tif ([32, 80].has(ev.keyCode)) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif ([1, 2].has(elem.networkState)) {\n\t\t\t\t\tif (elem.ended || elem.paused)\n\t\t\t\t\t\telem.play();\n\t\t\t\t\telse\n\t\t\t\t\t\telem.pause();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// haut | page haut\n\t\t\telse if ([38, 33].has(ev.keyCode)) {\n\t\t\t\tev.preventDefault();\n\t\t\t\ttime = (ev.keyCode === 38) ? 10 : 60;\n\t\t\t\tif (([1, 2].has(elem.networkState)) && (elem.duration !== Infinity) && !isNaN(elem.duration)) {\n\t\t\t\t\tif (elem.currentTime > time)\n\t\t\t\t\t\telem.currentTime -= time;\n\t\t\t\t\telse\n\t\t\t\t\t\telem.currentTime = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// bas | page bas\n\t\t\telse if ([40, 34].has(ev.keyCode)) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif (([1, 2].has(elem.networkState)) && (elem.duration !== Infinity) && !isNaN(elem.duration)) {\n\t\t\t\t\ttime = (ev.keyCode === 40) ? 10 : 60;\n\t\t\t\t\tif (elem.currentTime < (elem.duration - time))\n\t\t\t\t\t\telem.currentTime += time;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// +\n\t\t\telse if (ev.keyCode === 107) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif ([1, 2].has(elem.networkState)) {\n\t\t\t\t\tif (elem.muted)\n\t\t\t\t\t\telem.muted = false;\n\t\t\t\t\tif (elem.volume < 0.8)\n\t\t\t\t\t\telem.volume += 0.2;\n\t\t\t\t\telse\n\t\t\t\t\t\telem.volume = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// -\n\t\t\telse if (ev.keyCode === 109) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif ([1, 2].has(elem.networkState)) {\n\t\t\t\t\tif (elem.muted)\n\t\t\t\t\t\telem.muted = false;\n\t\t\t\t\tif (elem.volume > 0.21)\n\t\t\t\t\t\telem.volume -= 0.2;\n\t\t\t\t\telse\n\t\t\t\t\t\telem.volume = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// m\n\t\t\telse if (ev.keyCode === 77) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif ([1, 2].has(elem.networkState)) {\n\t\t\t\t\telem.muted = !elem.muted; // inverse\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// défilement de la page pour tous (renvoi sur actionScrollBrowser)\n\t\t// espace | page haut | page bas | fin | début | haut | bas\n\t\tif ([32, 33, 34, 35, 36, 38, 40].has(ev.keyCode)) {\n\n\t\t\t// empèche le défilement\n\t\t\tif (!ev.target || (!['INPUT','TEXTAREA','OPTION','SELECT'].has(ev.target.nodeName) && !ev.target.classList.contains('scrollable'))) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tev.stopPropagation();\n\t\t\t}\n\t\t}\n\t};\n\n\tthis.onFullscreen = function (ev) {\n\n\t\tvar res = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement;\n\t\tif (ev) apijs.log('dialog:onFullscreen:' + (res ? 'in' : 'out'));\n\n\t\tapijs.dialog[res ? 'add' : 'remove']('fullscreen');\n\t};\n\n\tthis.onIframeLoad = function (elem) { // todo\n\n\t\telem.removeAttribute('class');\n\t\tapijs.dialog.remove('loading');\n\n\t\telem.contentWindow.document.addEventListener('keydown', window.parent.apijs.dialog.onKey);\n\t\telem.contentWindow.addEventListener('DOMMouseScroll', window.parent.apijs.dialog.onScrollIframe, { passive: false });\n\t\telem.contentWindow.addEventListener('mousewheel', window.parent.apijs.dialog.onScrollIframe, { passive: false });\n\t\telem.contentWindow.addEventListener('touchmove', window.parent.apijs.dialog.onScrollIframe, { passive: false });\n\t};\n\n\tthis.onMediaLoad = function (ev) { // todo\n\n\t\tvar that = apijs.dialog, media = that.media, src, elem, elems;\n\t\tif (ev && ev.target) {\n\t\t\tsrc = ev.target.currentSrc || ev.target.src;\n\t\t\tapijs.log('dialog:onMediaLoad:' + ev.type + ' ' + (src ? src.slice(src.lastIndexOf('/') + 1) : ''));\n\t\t}\n\n\t\tif (media && ['load', 'durationchange'].has(ev.type)) {\n\t\t\tthat.remove('loading', 'error');\n\t\t\tmedia.style.visibility = 'visible';\n\t\t\tif (!media.hasAttribute('src') && (media.nodeName === 'IMG'))\n\t\t\t\tmedia.setAttribute('src', media.imageLoader.src);\n\t\t}\n\t\telse if (media && (ev.type === 'error')) {\n\t\t\tthat.toggle('loading', 'error');\n\t\t\tmedia.removeAttribute('style');\n\t\t\t// player vidéo (désactive l'option et active la suivante)\n\t\t\telem = apijs.html('.tracks.video select');\n\t\t\tif (elem && ev && ev.target) {\n\t\t\t\telems = elem.querySelectorAll('option');\n\t\t\t\tif ((elems.length > 0) && (elem.value.length > 0)) {\n\t\t\t\t\telems[elem.value].setAttribute('disabled', 'disabled');\n\t\t\t\t\telem.selectedIndex += 1;\n\t\t\t\t\t// charge la vidéo suivante (si erreur au clic sur le select)\n\t\t\t\t\tif ((ev.target.nodeName === 'VIDEO') && (elem.value !== ''))\n\t\t\t\t\t\tmedia.videoPlayer.actionVideo(elem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\tthis.onSlideshowSwipe = function (ev) {\n\n\t\tapijs.dialog.swipe = true;\n\t\tself.setTimeout(function () { apijs.dialog.swipe = false; }, 150);\n\n\t\tif (['swiperight', 'swipedown', 'swiped-right', 'swiped-down'].has(ev.type))\n\t\t\tapijs.slideshow.actionPrev();\n\t\telse // swipeleft swipeup swiped-left swiped-up\n\t\t\tapijs.slideshow.actionNext();\n\t};\n\n\tthis.actionConfirm = function () { // todo\n\n\t\t// vérifie le dialogue d'options\n\t\t// arrêt du traitement si c'est pas bon\n\t\tif (this.has('options')) {\n\t\t\tif (this.callback(false, this.args) !== true)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t// verrouille le dialogue et affiche le loader\n\t\tthis.add('lock', 'loading');\n\t\tthis.htmlSvgLoader(false);\n\n\t\t// masque les boutons et le texte du dialogue\n\t\tapijs.html('div.btns').style.visibility = 'hidden';\n\t\tapijs.html('div.bbcode').style.visibility = 'hidden';\n\n\t\t// appelle la fonction de rappel\n\t\t// ne déverrouille pas le dialogue\n\t\tself.setTimeout(function () {\n\t\t\tif ((this.t2) && (this.t2.nodeName === 'FORM'))\n\t\t\t\tthis.callback(this.t2.getAttribute('action'), this.args);\n\t\t\telse if (this.t2)\n\t\t\t\tthis.callback(this.args);\n\t\t}.bind(this), 12); // pour que ci-dessus this = this\n\n\t\treturn false; // très important\n\t};\n\n\n\t// GESTION DES CONTENEURS (private return this|boolean)\n\n\tthis.init = function (type, icon, isLocked) { // todo\n\n\t\tisLocked = (isLocked === true);\n\t\tif (typeof icon == 'string') {\n\t\t\ticon = icon.replace(this.ft, '').trim();\n\t\t\ticon = (icon.length > 0) ? (isLocked ? icon + ' lock' : icon) : (isLocked ? 'lock' : null);\n\t\t}\n\t\telse if (isLocked) {\n\t\t\ticon = 'lock';\n\t\t}\n\n\t\t// préparation\n\t\tif (this.t0)\n\t\t\tthis.clear(false);\n\n\t\t// css\n\t\tthis.klass.push('start');\n\t\tthis.klass.push(type);\n\n\t\tif (self.matchMedia('prefers-reduced-motion:reduce').matches)\n\t\t\tthis.klass.push('reduce');\n\n\t\tif (typeof icon == 'string')\n\t\t\tthis.klass = this.klass.concat(icon.split(' '));\n\n\t\t// création du fragment\n\t\tthis.t0 = document.createDocumentFragment();\n\n\t\t// surveillance des touches et du navigateur\n\t\tdocument.addEventListener('keydown', this.onKey);\n\t\tself.addEventListener('beforeunload', this.onCloseBrowser);\n\t\tself.addEventListener('DOMMouseScroll', this.onScrollBrowser, { passive: false });\n\t\tself.addEventListener('mousewheel', this.onScrollBrowser, { passive: false });\n\t\tself.addEventListener('touchmove', this.onScrollBrowser, { passive: false });\n\t\tself.addEventListener('resize', this.onResizeBrowser);\n\n\t\t// restriction de la navigation\n\t\tif (apijs.config.dialog.restrictNavigation)\n\t\t\tdocument.querySelectorAll(this.ti).forEach(function (elem) { elem.setAttribute('tabindex', '-1'); });\n\n\t\treturn this;\n\t};\n\n\tthis.show = function (focus) { // todo\n\n\t\t// design\n\t\tthis.onResizeBrowser();\n\t\tthis.onFullscreen();\n\n\t\tif ((this.height > 0) && !this.has('photo', 'video'))\n\t\t\tthis.t2.style.minHeight = this.height + 'px';\n\n\t\t// affichage du dialogue sans/sans/avec transitions CSS\n\t\tvar old = apijs.html('#Dialog');\n\t\tif (old) {\n\t\t\tthis.toggle('start', 'ready');\n\t\t\tthis.t1 = old;\n\t\t\t// this.t1.appendChild(this.t0.firstChild.firstChild);\n\t\t\t// https://stackoverflow.com/a/24775765/2980105\n\t\t\tapijs.toArray(this.t0.firstChild.childNodes).forEach(function (node) {\n\t\t\t\tthis.t1.appendChild(node);\n\t\t\t}, this); // pour que ci-dessus this = this\n\t\t\tthis.t1.setAttribute('class', this.t2.getAttribute('class'));\n\t\t}\n\t\telse if (this.has('notransition')) {\n\t\t\tthis.toggle('start', 'ready');\n\t\t\tdocument.querySelector('body').appendChild(this.t0);\n\t\t}\n\t\telse {\n\t\t\tdocument.querySelector('body').appendChild(this.t0);\n\t\t\tself.setTimeout(function () { apijs.dialog.toggle('start', 'ready'); }, 12);\n\t\t}\n\n\t\t// fermeture des popups au clic\n\t\tif (apijs.config.dialog.closeOnClick && !this.has('progress', 'waiting', 'lock'))\n\t\t\tdocument.addEventListener('click', this.actionClose);\n\n\t\t// passage en plein écran\n\t\tif (this.has('photo', 'video')) {\n\n\t\t\tif (document.webkitFullscreenEnabled)\n\t\t\t\tdocument.addEventListener('webkitfullscreenchange', this.onFullscreen);\n\t\t\telse if (document.fullscreenEnabled)\n\t\t\t\tdocument.addEventListener('fullscreenchange', this.onFullscreen);\n\t\t\telse if (document.mozFullScreenEnabled)\n\t\t\t\tdocument.addEventListener('mozfullscreenchange', this.onFullscreen);\n\t\t}\n\t\t// copier coller\n\t\telse if (this.has('upload')) {\n\t\t\twindow.addEventListener('paste', apijs.upload.actionDrag);\n\t\t}\n\n\t\t// auto-focus\n\t\tif (focus === true)\n\t\t\tself.setTimeout(function () { apijs.html('input:not([readonly]),textarea:not([readonly]),select:not([disabled])').focus(); }, 12);\n\t\telse if (typeof focus == 'string')\n\t\t\tapijs.html(focus).focus();\n\n\t\treturn true;\n\t};\n\n\tthis.clear = function (isAll) { // todo\n\n\t\tif (isAll && this.xhr) {\n\t\t\tthis.callback = null; // très important\n\t\t\tthis.xhr.abort();\n\t\t}\n\n\t\tif (this.hammer) { // (depuis htmlBtnNavigation)\n\t\t\tthis.hammer.off('swiperight swipedown swipeleft swipeup', apijs.dialog.onSlideshowSwipe).destroy();\n\t\t\tdelete this.hammer;\n\t\t}\n\n\t\t// surveillance des touches et du navigateur (depuis initDialog)\n\t\tdocument.removeEventListener('keydown', this.onKey);\n\t\tself.removeEventListener('beforeunload', this.onCloseBrowser);\n\t\tself.removeEventListener('DOMMouseScroll', this.onScrollBrowser, { passive: false });\n\t\tself.removeEventListener('mousewheel', this.onScrollBrowser, { passive: false });\n\t\tself.removeEventListener('touchmove', this.onScrollBrowser, { passive: false });\n\t\tself.removeEventListener('resize', this.onResizeBrowser);\n\n\t\t// restriction de la navigation (depuis initDialog)\n\t\tif (apijs.config.dialog.restrictNavigation)\n\t\t\tdocument.querySelectorAll(this.ti).forEach(function (elem) { elem.removeAttribute('tabindex'); });\n\n\t\t// fermeture des popups au clic (depuis showDialog)\n\t\tif (apijs.config.dialog.closeOnClick)\n\t\t\tdocument.removeEventListener('click', this.actionClose);\n\n\t\t// spécial\n\t\tif (this.has('photo', 'video')) {\n\n\t\t\t// pour ne pas déclencher les fonctions\n\t\t\t// supprime tous les ontruc et les src\n\t\t\tif (this.has('video') && !this.has('videoiframe')) {\n\t\t\t\tthis.t2.querySelectorAll('video, source, track').forEach(function (elem) {\n\t\t\t\t\tfor (var name in elem) {\n\t\t\t\t\t\tif (name.indexOf('on') === 0)\n\t\t\t\t\t\t\telem[name] = null;\n\t\t\t\t\t}\n\t\t\t\t\telem.removeAttribute('src');\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.media.videoPlayer = null;\n\t\t\tthis.media.imageLoader = null;\n\n\t\t\t// passage en plein écran (depuis showDialog)\n\t\t\tif (document.webkitFullscreenEnabled)\n\t\t\t\tdocument.removeEventListener('webkitfullscreenchange', this.onFullscreen);\n\t\t\telse if (document.fullscreenEnabled)\n\t\t\t\tdocument.removeEventListener('fullscreenchange', this.onFullscreen);\n\t\t\telse if (document.mozFullScreenEnabled)\n\t\t\t\tdocument.removeEventListener('mozfullscreenchange', this.onFullscreen);\n\t\t}\n\t\telse {\n\t\t\t// copier coller\n\t\t\tif (this.has('upload'))\n\t\t\t\twindow.removeEventListener('paste', apijs.upload.actionDrag);\n\n\t\t\t// mémorise la hauteur du dialogue\n\t\t\tthis.height = parseFloat(self.getComputedStyle(this.t2).height);\n\t\t}\n\n\t\t// supprime le dialogue\n\t\tif (isAll) {\n\t\t\tthis.toggle('ready', 'end');\n\t\t\tthis.t1.remove();\n\t\t}\n\t\telse {\n\t\t\twhile (this.t1.firstChild)\n\t\t\t\tthis.t1.firstChild.remove();\n\t\t}\n\n\t\t// réinitialise toutes les variables (sauf ft/ti/ns et swipe)\n\t\tthis.klass = [];\n\t\tif (isAll) {\n\t\t\tthis.height = 0;\n\t\t\tthis.scroll = 0; // time\n\t\t\tthis.callback = null;\n\t\t\tthis.args = null;\n\t\t\tthis.xhr = null;\n\t\t}\n\t\tthis.media = null;\n\t\tthis.t0 = null; // fragment\n\t\tthis.t1 = null; // div id=apijsDialog\n\t\tthis.t2 = null; // div/form id=apijsBox\n\t\tthis.t3 = null; // input file\n\t\tthis.a = null;\n\t\tthis.b = null;\n\t\tthis.c = null;\n\n\t\treturn true;\n\t};\n\n\n\t// GÉNÉRATION DES ÉLÉMENTS (private return this)\n\n\tthis.htmlParent = function (action, submit, drag) {\n\n\t\tthis.t1 = document.createElement('div');\n\t\tthis.t1.setAttribute('id', 'apijsDialog');\n\n\t\tif (typeof drag == 'string') {\n\n\t\t\tthis.t1.setAttribute('ondragenter', drag);\n\t\t\tthis.t1.setAttribute('ondragleave', drag);\n\t\t\tthis.t1.setAttribute('ondragover', drag);\n\t\t\tthis.t1.setAttribute('ondrop', drag);\n\t\t\tthis.t1.setAttribute('onpaste', drag); // Firefox\n\n\t\t\tthis.a = document.createElement('p');\n\t\t\tthis.a.setAttribute('class', 'drag');\n\t\t\tthis.a.appendChild(apijs.i18n.translateNode(127));\n\t\t\tthis.t1.appendChild(this.a);\n\t\t}\n\t\telse {\n\t\t\tthis.t1.setAttribute('ondragstart', 'return false;');\n\t\t}\n\n\t\tif (typeof action == 'string') {\n\t\t\tthis.t2 = document.createElement('form');\n\t\t\tthis.t2.setAttribute('action', action);\n\t\t\tthis.t2.setAttribute('method', 'post');\n\t\t\tthis.t2.setAttribute('enctype', 'multipart/form-data');\n\t\t\tthis.t2.setAttribute('onsubmit', 'return ' + submit);\n\t\t}\n\t\telse {\n\t\t\tthis.t2 = document.createElement('div');\n\t\t}\n\n\t\tthis.t2.setAttribute('id', 'apijsBox');\n\t\tthis.t1.appendChild(this.t2);\n\t\tthis.t0.appendChild(this.t1);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlContent = function (title, text) {\n\n\t\tif (title.length > 0) {\n\t\t\tthis.a = document.createElement('h1');\n\t\t\tthis.a.innerHTML = title.replace(//g, '>').replace(/\\[/g, '<').replace(/]/g, '>');\n\t\t\tthis.t2.appendChild(this.a);\n\t\t}\n\n\t\tif (text.length > 0) {\n\t\t\tthis.a = document.createElement('div');\n\t\t\tthis.a.setAttribute('class', 'bbcode');\n\t\t\tif (text[0] !== '[') text = '[p]' + text + '[/p]';\n\t\t\tthis.a.innerHTML = text.replace(//g, '>').replace(/\\[/g, '<').replace(/]/g, '>');\n\t\t\tthis.a.querySelectorAll('a.popup').forEach(function (elem) { elem.addEventListener('click', apijs.openTab); });\n\t\t\tthis.t2.appendChild(this.a);\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.htmlBtnOk = function () {\n\n\t\tthis.a = document.createElement('div');\n\t\tthis.a.setAttribute('class', 'btns');\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('class', 'confirm');\n\t\t\tthis.b.setAttribute('onclick', 'apijs.dialog.actionClose();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(102));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlBtnConfirm = function (type, click) {\n\n\t\tthis.a = document.createElement('div');\n\t\tthis.a.setAttribute('class', 'btns');\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', type);\n\t\t\tthis.b.setAttribute('class', 'confirm');\n\t\t\tif (type !== 'submit') this.b.setAttribute('onclick', click);\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(104));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('class', 'cancel');\n\t\t\tthis.b.setAttribute('onclick', 'apijs.dialog.actionClose();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(103));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlBtnNavigation = function () {\n\n\t\tthis.a = document.createElement('div');\n\t\tthis.a.setAttribute('class', 'navigation noplaying');\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('disabled', 'disabled');\n\t\t\tthis.b.setAttribute('class', 'prev');\n\t\t\tthis.b.setAttribute('id', 'apijsPrev');\n\t\t\tthis.b.setAttribute('onclick', 'apijs.slideshow.actionPrev();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\t//this.c.appendChild(apijs.i18n.translateNode(106));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('disabled', 'disabled');\n\t\t\tthis.b.setAttribute('class', 'next');\n\t\t\tthis.b.setAttribute('id', 'apijsNext');\n\t\t\tthis.b.setAttribute('onclick', 'apijs.slideshow.actionNext();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\t//this.c.appendChild(apijs.i18n.translateNode(107));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\tif (typeof Hammer == 'function') {\n\t\t\tthis.hammer = new Hammer(this.t2);\n\t\t\tthis.hammer.get('swipe').set({ direction: Hammer.DIRECTION_ALL });\n\t\t\tthis.hammer.on('swiperight swipedown swipeleft swipeup', apijs.dialog.onSlideshowSwipe);\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.htmlBtnClose = function (close) {\n\n\t\tif (close !== false) {\n\n\t\t\tthis.a = document.createElement('div');\n\t\t\tthis.a.setAttribute('class', 'close nofullplaying');\n\n\t\t\t\tthis.b = document.createElement('button');\n\t\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\t\tthis.b.setAttribute('class', 'close');\n\t\t\t\tthis.b.setAttribute('onclick', 'apijs.dialog.actionClose();');\n\n\t\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(105));\n\n\t\t\t\tthis.b.appendChild(this.c);\n\n\t\t\tthis.a.appendChild(this.b);\n\t\t\tthis.t2.appendChild(this.a);\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.htmlUpload = function (input, isMultiple, change) {\n\n\t\tthis.a = document.createElement('div');\n\t\tthis.a.setAttribute('class', 'btns upload');\n\n\t\t\tthis.t3 = document.createElement('input');\n\t\t\tthis.t3.setAttribute('type', 'file');\n\t\t\tthis.t3.setAttribute('name', isMultiple ? input + '[]' : input);\n\t\t\tthis.t3.setAttribute('id', 'apijsFile');\n\t\t\tif (isMultiple) this.t3.setAttribute('multiple', 'multiple');\n\t\t\tthis.t3.setAttribute('onchange', change);\n\n\t\tthis.a.appendChild(this.t3);\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('class', 'browse');\n\t\t\tthis.b.setAttribute('onclick', 'this.previousSibling.click();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(isMultiple ? 109 : 108));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\n\t\t\tthis.b = document.createElement('div');\n\t\t\tthis.b.setAttribute('class', 'filenames scrollable');\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlSvgProgress = function () {\n\n\t\tthis.a = document.createElement('span');\n\t\tthis.a.setAttribute('class', 'info');\n\t\tthis.t2.appendChild(this.a);\n\n\t\tthis.a = document.createElement('svg');\n\t\tthis.a.setAttribute('id', 'apijsProgress');\n\n\t\t\tthis.b = document.createElement('rect');\n\t\t\tthis.b.setAttribute('class', 'auto');\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlSvgLoader = function (isDelayed) {\n\n\t\tthis.a = document.createElementNS(this.ns, 'svg');\n\t\tthis.a.setAttribute('class', 'loader');\n\n\t\t\tthis.b = document.createElementNS(this.ns, 'path');\n\t\t\tif (isDelayed !== false) this.b.setAttribute('style', 'opacity:0;');\n\t\t\tthis.b.setAttribute('d', 'M75.4 126.63a11.43 11.43 0 0 1-2.1-22.65 40.9 40.9 0 0 0 30.5-30.6 11.4 11.4 0 1 1 22.27 4.87h.02a63.77 63.77 0 0 1-47.8 48.05v-.02a11.38 11.38 0 0 1-2.93.37z');\n\n\t\t\t\tthis.c = document.createElementNS(this.ns, 'animateTransform');\n\t\t\t\tthis.c.setAttribute('attributeName', 'transform');\n\t\t\t\tthis.c.setAttribute('type', 'rotate');\n\t\t\t\tthis.c.setAttribute('from', '0 64 64');\n\t\t\t\tthis.c.setAttribute('to', '360 64 64');\n\t\t\t\tthis.c.setAttribute('dur', '5s');\n\t\t\t\tthis.c.setAttribute('repeatCount', 'indefinite');\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\t\t\tthis.c = document.createElementNS(this.ns, 'animate');\n\t\t\t\tthis.c.setAttribute('attributeName', 'opacity');\n\t\t\t\tthis.c.setAttribute('to', '1');\n\t\t\t\tthis.c.setAttribute('dur', '0.01s');\n\t\t\t\tthis.c.setAttribute('begin', '1s');\n\t\t\t\tthis.c.setAttribute('fill', 'freeze');\n\n\t\t\tif (isDelayed !== false) this.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlMedia = function (url, name, date, legend) {\n\n\t\tthis.a = document.createElement('dl');\n\t\tthis.a.setAttribute('class', 'media');\n\n\t\t\tthis.b = document.createElement('dt');\n\n\t\t\tif (this.has('photo')) {\n\t\t\t\tthis.media = document.createElement('img');\n\t\t\t\tthis.media.setAttribute('alt', legend.replace('\"', ''));\n\t\t\t}\n\t\t\telse if (url.indexOf('iframe') > 0) {\n\t\t\t\tthis.media = document.createElement('iframe');\n\t\t\t\tthis.media.setAttribute('type', 'text/html');\n\t\t\t\tthis.media.setAttribute('scrolling', 'no');\n\t\t\t\tthis.media.setAttribute('src', url);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.media = document.createElement('video');\n\t\t\t\tthis.media.setAttribute('controls', 'controls');\n\t\t\t\tthis.media.setAttribute('preload', 'metadata');\n\t\t\t}\n\n\t\t\tthis.media.setAttribute('id', 'apijsMedia');\n\t\t\tthis.b.appendChild(this.media);\n\n\t\tthis.a.appendChild(this.b);\n\n\t\t\tthis.b = document.createElement('dd');\n\t\t\tthis.b.setAttribute('class', 'nofullplaying');\n\n\t\t\tif ((name !== 'false') || (date !== 'false')) {\n\n\t\t\t\tvar fileid = url.slice(url.lastIndexOf('/') + 1);\n\t\t\t\tthis.c = document.createElement('span');\n\n\t\t\t\t// name + date\n\t\t\t\tif ((name !== 'false') && (name !== 'auto') && (date !== 'false'))\n\t\t\t\t\tthis.c.appendChild(document.createTextNode(name + ' (' + date + ') '));\n\t\t\t\t// name\n\t\t\t\telse if ((name !== 'false') && (name !== 'auto'))\n\t\t\t\t\tthis.c.appendChild(document.createTextNode(name + ' '));\n\t\t\t\t// auto name + date\n\t\t\t\telse if ((name === 'auto') && (date !== 'false'))\n\t\t\t\t\tthis.c.appendChild(document.createTextNode(fileid + ' (' + date + ') '));\n\t\t\t\t// auto name\n\t\t\t\telse if (name === 'auto')\n\t\t\t\t\tthis.c.appendChild(document.createTextNode(fileid + ' '));\n\t\t\t\t// date\n\t\t\t\telse if (date !== 'false')\n\t\t\t\t\tthis.c.appendChild(document.createTextNode('(' + date + ') '));\n\n\t\t\t\tthis.b.appendChild(this.c);\n\t\t\t}\n\n\t\t\tthis.b.appendChild(document.createTextNode(legend));\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\t// au choix : photo / vidéo avec iframe / vidéo avec lecteur / vidéo simple\n\t\t// lecteur créé v5.2 / supprimé v5.3 / refait v6.0 / extrait v6.6\n\t\tif (this.has('photo')) {\n\t\t\tthis.media.imageLoader = new Image();\n\t\t\tthis.media.imageLoader.src = url;\n\t\t\tthis.media.imageLoader.onload = this.onMediaLoad;\n\t\t\tthis.media.imageLoader.onerror = this.onMediaLoad;\n\t\t}\n\t\telse if (url.indexOf('iframe') > 0) {\n\t\t\tthis.media.onload = function (ev) {\n\t\t\t\tthis.onIframeLoad(this.media);\n\t\t\t\tthis.onMediaLoad(ev);\n\t\t\t}.bind(this); // pour que ci-dessus this = this\n\t\t\tthis.add('videoiframe');\n\t\t}\n\t\telse if (apijs.startPlayer(this.media, url)) {\n\t\t\tthis.add('apijsvideoplayer');\n\t\t}\n\t\telse {\n\t\t\tthis.c = document.createElement('source');\n\t\t\tthis.c.setAttribute('src', url);\n\t\t\tthis.c.onerror = this.onMediaLoad;\n\t\t\tthis.media.appendChild(this.c);\n\t\t\tthis.media.ondurationchange = this.onMediaLoad;\n\t\t\tthis.media.onerror = this.onMediaLoad;\n\t\t\tthis.add('videosource');\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.htmlHelp = function (isSlideshow, isVideo) {\n\n\t\t// pas d'aide en mobile car pas de clavier\n\t\tif (('ontouchstart' in window) && navigator.userAgent.match(/mobi/i))\n\t\t\treturn this;\n\n\t\tvar items, item, keys = [\n\t\t\tisSlideshow ? ['start', 149, 141] : [], // début/fin\n\t\t\tisSlideshow ? ['left', 'right', 142] : [],\n\t\t\tisVideo ? ['topk', 'bottom', 144] : [],\n\t\t\tisVideo ? ['minus', 'plus', 145] : [],\n\t\t\tisVideo ? ['M', 146] : [],\n\t\t\tisVideo ? ['P', 143] : [],\n\t\t\t['F11', 147],\n\t\t\t[150, 148] // échap\n\t\t];\n\n\t\tthis.a = document.createElement('ul');\n\t\tthis.a.setAttribute('class', 'kbd nofullscreen');\n\n\t\twhile (items = keys.shift()) {\n\n\t\t\tif (items.length > 0) {\n\n\t\t\t\tthis.b = document.createElement('li');\n\n\t\t\t\twhile (item = items.shift()) {\n\t\t\t\t\tif (items.length > 0) {\n\t\t\t\t\t\tthis.c = document.createElement('kbd');\n\t\t\t\t\t\tif (['M', 'P', 'F11'].has(item))\n\t\t\t\t\t\t\tthis.c.appendChild(document.createTextNode(item));\n\t\t\t\t\t\telse if (typeof item == 'string')\n\t\t\t\t\t\t\tthis.c.setAttribute('class', item);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(item));\n\t\t\t\t\t\tthis.b.appendChild(this.c);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.b.appendChild(apijs.i18n.translateNode(item));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.a.appendChild(this.b);\n\t\t\t}\n\t\t}\n\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlIframe = function (url) {\n\n\t\tthis.a = document.createElement('iframe');\n\t\tthis.a.setAttribute('src', url);\n\t\tthis.a.setAttribute('class', 'loading');\n\t\tthis.a.setAttribute('onload', 'apijs.dialog.onIframeLoad(this);');\n\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n};","/**\n * Created J/13/05/2010\n * Updated J/11/08/2022\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.slideshow = function () {\n\n\t\"use strict\";\n\tthis.current = null;\n\n\n\t// AFFICHAGE DE LA BOÎTE DE DIALOGUE (public return void|boolean)\n\n\tthis.init = function () {\n\n\t\tvar i, j, elem, ids = apijs.config.slideshow.ids, hoverload = false;\n\n\t\tfor (i = 0; elem = apijs.html(ids + '.' + i, true); i++) {\n\n\t\t\thoverload = elem.classList.contains('hoverload');\n\n\t\t\tfor (j = 0; elem = apijs.html(ids + '.' + i + '.' + j, true); j++) {\n\t\t\t\telem.addEventListener('click', this.show);\n\t\t\t\tif (hoverload)\n\t\t\t\t\telem.addEventListener('mouseover', this.show);\n\t\t\t}\n\n\t\t\tif (elem = apijs.html(ids + '.' + i + '.99999', true))\n\t\t\t\telem.addEventListener('click', this.show);\n\t\t}\n\n\t\tthis.onPopState();\n\t};\n\n\tthis.onPopState = function () {\n\n\t\t// \\\\ au lieu de \\ sinon Bad or unnecessary escaping\n\t\tif (new RegExp('#(' + apijs.config.slideshow.ids + '[\\-\\\\.]\\\\d+[\\-\\\\.]\\\\d+)').test(self.location.href)) {\n\t\t\tvar id = RegExp.$1.replace(/-/g, '.');\n\t\t\tif (apijs.html(id, true) && !apijs.dialog.has('slideshow')) // Chrome 31 et Opera 19 passent 2 fois sans le !has\n\t\t\t\tapijs.slideshow.show(id, false);\n\t\t}\n\t\telse if (apijs.slideshow.current) {\n\t\t\tapijs.dialog.actionClose();\n\t\t}\n\t};\n\n\tthis.show = function (ev, push) { // todo\n\n\t\tvar source, show = false, media = {}, src, srcset, total, hash;\n\n\t\t// recherche de la source (élément a)\n\t\t// recherche des informations du média (1/4, id)\n\t\t// la source est soit une miniature (ev=click/mouseover/stringId) soit l'image principale (ev=click)\n\t\tif (typeof ev == 'string') {\n\t\t\tshow = true;\n\t\t\tsource = apijs.html(ev, true);\n\t\t\tmedia.id = ev;\n\t\t}\n\t\telse {\n\t\t\tev.preventDefault();\n\t\t\tsource = ev.target;\n\t\t\twhile (source.nodeName !== 'A')\n\t\t\t\tsource = source.parentNode;\n\n\t\t\t// stop sur miniature déjà à jour en mode gallery\n\t\t\tif ((ev.type === 'mouseover') && source.classList.contains('current'))\n\t\t\t\treturn false;\n\n\t\t\tmedia.id = source.getAttribute('id');\n\t\t}\n\n\t\t// recherche des informations du média (2/4, prefix|number|gallery)\n\t\tmedia.prefix = apijs.config.slideshow.ids + '.' + media.id.split('.')[1];\n\t\tmedia.number = parseInt(media.id.split('.')[2], 10);\n\t\tmedia.gallery = apijs.html(media.prefix + '.99999', true);\n\n\t\t// SI SOURCE N'EST PAS L'IMAGE PRINCIPALE DU MODE GALLERY\n\t\t// marque la source avec la class current\n\t\t// prend soin de supprimer les anciennes class current\n\t\t// v5.1 soit sur le lien (avant sur l'image elle même), soit sur le dl\n\t\tif (media.number !== 99999) {\n\n\t\t\tvar links = apijs.html(media.prefix, true).querySelectorAll('a[id][type]'),\n\t\t\t conts = apijs.html(media.prefix, true).querySelectorAll('dl');\n\n\t\t\tif (media.gallery || (links.length !== conts.length)) {\n\t\t\t\tlinks.forEach(function (elem) { elem.classList.remove('current'); });\n\t\t\t\tsource.setAttribute('class', 'current');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconts.forEach(function (elem) { elem.classList.remove('current'); });\n\t\t\t\tsource.parentNode.parentNode.setAttribute('class', 'current');\n\t\t\t}\n\t\t}\n\n\t\t// UNIQUEMENT EN MODE GALLERY\n\t\t// recherche des informations du média (3/4, [number]|config)\n\t\t// réaffecte la source sur la miniature et non sur l'image principale SI SOURCE = IMAGE PRINCIPALE\n\t\t// réaffecte le numéro du média sur la miniature et non sur l'image principale SI SOURCE = IMAGE PRINCIPALE\n\t\t// supprime l'adresse de l'image principale de la configuration du média (media.config = url|name|date|legend)\n\t\t// met à jour l'image principale SAUF SI SOURCE = IMAGE PRINCIPALE (puisque tout est déjà correct)\n\t\tif (media.gallery) {\n\n\t\t\tif (media.number === 99999) {\n\t\t\t\tshow = true;\n\t\t\t\tsource = (media.gallery.hasAttribute('class')) ? media.gallery.getAttribute('class') : media.prefix + '.0';\n\t\t\t\tsource = apijs.html(source, true);\n\t\t\t\tmedia.number = parseInt(source.getAttribute('id').split('.')[2], 10);\n\t\t\t\tmedia.id = media.id.replace('99999', media.number);\n\t\t\t}\n\n\t\t\tmedia.config = source.querySelector('input').getAttribute('value').split('|');\n\n\t\t\tsrc = media.config.shift();\n\t\t\tif (src.indexOf(';') > 0) {\n\t\t\t\tsrc = src.split(';');\n\t\t\t\tsrcset = src[1].trim();\n\t\t\t\tsrc = src[0].trim();\n\t\t\t}\n\n\t\t\tmedia.gallery.setAttribute('href', source.getAttribute('href'));\n\t\t\tmedia.gallery.querySelector('img').setAttribute('src', src);\n\t\t\tmedia.gallery.querySelector('img').setAttribute('srcset', srcset ? srcset : '');\n\t\t\tmedia.gallery.querySelector('img').setAttribute('alt', source.querySelector('img').getAttribute('alt'));\n\t\t\tmedia.gallery.setAttribute('class', media.id);\n\t\t}\n\t\t// UNIQUEMENT EN MODE ALBUM\n\t\t// recherche des informations du média (3/4, config)\n\t\telse {\n\t\t\tshow = true;\n\t\t\tmedia.config = source.querySelector('input').getAttribute('value').split('|');\n\t\t}\n\n\t\t// recherche des informations du média (4/4, url|type|styles)\n\t\t// défini le type de dialogue à partir du mimetype du lien de la source si cela est possible\n\t\tmedia.url = source.getAttribute('href');\n\t\tmedia.type = source.getAttribute('type').substring(0, 5).replace('image', 'dialogPhoto').replace('video', 'dialogVideo').replace('audio', 'dialogVideo');\n\t\tmedia.type = (media.type.indexOf('dialog') === 0) ? media.type : 'dialogPhoto';\n\t\tmedia.styles = apijs.html(media.prefix, true).getAttribute('class').replace(/gallery|album/g, '').trim();\n\n\t\t// demande l'affichage du dialogue\n\t\t// lors d'un clic sur l'image principale du mode gallery\n\t\t// ou lors d'un clic sur les miniatures en mode album\n\t\t// ou lors d'un appel direct\n\t\tif (show) {\n\n\t\t\tapijs.dialog[media.type](media.url, media.config[0], media.config[1], media.config[2], media.styles);\n\n\t\t\ttotal = apijs.html(media.prefix, true).querySelectorAll('a[id][type]').length - (media.gallery ? 2 : 1);\n\t\t\tapijs.slideshow.current = {\n\t\t\t\tnumber: media.number,\n\t\t\t\tfirst: media.prefix + '.0',\n\t\t\t\tprev: (media.number > 0) ? media.prefix + '.' + (media.number - 1) : null,\n\t\t\t\tnext: (media.number < total) ? media.prefix + '.' + (media.number + 1) : null,\n\t\t\t\tlast: media.prefix + '.' + total,\n\t\t\t\ttotal: total\n\t\t\t};\n\n\t\t\t// boutons précédent et suivant\n\t\t\tif (apijs.slideshow.current.prev)\n\t\t\t\tapijs.html('#Prev').removeAttribute('disabled');\n\t\t\tif (apijs.slideshow.current.next)\n\t\t\t\tapijs.html('#Next').removeAttribute('disabled');\n\n\t\t\t// gestion de l'historique\n\t\t\t// met à jour l'ancre uniquement si l'utilisateur ne joue pas avec son historique\n\t\t\tif (apijs.config.slideshow.anchor && (typeof history.pushState == 'function') && ((typeof push == 'boolean') ? push : true)) {\n\t\t\t\thash = self.location.href;\n\t\t\t\thash = (hash.indexOf('#') > 0) ? hash.slice(0, hash.indexOf('#')) : hash;\n\t\t\t\thash += '#' + (media.prefix + '.' + ((media.number === 99999) ? 0 : media.number)).replace(/\\./g,'-');\n\t\t\t\thistory.pushState({}, '', hash);\n\t\t\t}\n\t\t}\n\n\t\treturn show;\n\t};\n\n\n\t// GESTION DES INTERACTIONS (public return boolean)\n\n\tthis.actionFirst = function () {\n\n\t\tif (this.current && (this.current.number > 0) && (this.current.number <= this.current.total))\n\t\t\treturn this.show(this.current.first);\n\n\t\treturn false;\n\t};\n\n\tthis.actionPrev = function () {\n\n\t\tif (this.current && this.current.prev && (this.current.number > 0))\n\t\t\treturn this.show(this.current.prev);\n\n\t\treturn false;\n\t};\n\n\tthis.actionNext = function () {\n\n\t\tif (this.current && this.current.next && (this.current.number < this.current.total))\n\t\t\treturn this.show(this.current.next);\n\n\t\treturn false;\n\t};\n\n\tthis.actionLast = function () {\n\n\t\tif (this.current && (this.current.number >= 0) && (this.current.number < this.current.total))\n\t\t\treturn this.show(this.current.last);\n\n\t\treturn false;\n\t};\n};","/**\n * Created L/13/04/2009\n * Updated V/24/06/2022\n *\n * Copyright 2008-2023 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.upload = function () {\n\n\t\"use strict\";\n\tthis.title = null;\n\tthis.action = null;\n\tthis.input = null;\n\tthis.onemax = 0; // taille d'un seul fichier\n\tthis.allmax = 0; // taille de tous les fichiers\n\tthis.exts = null;\n\tthis.callback = null;\n\tthis.args = null;\n\tthis.icon = null;\n\n\tthis.start = 0; // time\n\tthis.end = 0; // time\n\n\n\t// AFFICHAGE DE LA BOÎTE DE DIALOGUE (public return boolean)\n\n\tthis.sendFile = function (title, action, input, onemax, exts, callback, args, icon) {\n\n\t\tvar res = this.sendFiles(title, action, input, onemax, 0, exts, callback, args, icon);\n\t\tif (!res) console.error('apijs.upload.sendFile invalid arguments', arguments);\n\n\t\treturn res;\n\t};\n\n\tthis.sendFiles = function (title, action, input, onemax, allmax, exts, callback, args, icon) {\n\n\t\tif (title !== true) {\n\t\t\tthis.title = title;\n\t\t\tthis.action = action;\n\t\t\tthis.input = input;\n\t\t\tthis.onemax = onemax;\n\t\t\tthis.allmax = allmax;\n\t\t\tthis.exts = (typeof exts == 'string') ? exts.split(',') : ['*'];\n\t\t\tthis.callback = callback;\n\t\t\tthis.args = args;\n\t\t\tthis.icon = icon;\n\t\t}\n\n\t\tif ((typeof this.title == 'string') && (typeof this.action == 'string') && (typeof this.input == 'string') &&\n\t\t (typeof this.onemax == 'number') && (typeof this.allmax == 'number') && (typeof this.callback == 'function')) {\n\n\t\t\tvar text, multiple = this.allmax > 0;\n\n\t\t\tif (this.exts.join() === '*')\n\t\t\t\ttext = apijs.i18n.translate(161);\n\t\t\telse if (this.exts.length === 1)\n\t\t\t\ttext = apijs.i18n.translate(162, this.exts.join());\n\t\t\telse\n\t\t\t\ttext = apijs.i18n.translate(163, this.exts.slice(0, -1).join(', '), this.exts.slice(-1));\n\n\t\t\ttext += '[br]' + apijs.i18n.translate(\n\t\t\t\tmultiple ? 165 : 164, // clef de traduction\n\t\t\t\tapijs.formatNumber(this.onemax), // taille d'un fichier\n\t\t\t\tmultiple ? apijs.formatNumber(this.allmax) : '' // taille de tous les fichiers\n\t\t\t).replace('|', '[br]');\n\n\t\t\treturn apijs.dialog.dialogFormUpload(this.title, text, this.action, this.input, multiple, this.icon);\n\t\t}\n\n\t\tif ((typeof this.allmax != 'number') || (this.allmax > 0))\n\t\t\tconsole.error('apijs.upload.sendFiles invalid arguments', arguments);\n\n\t\treturn false;\n\t};\n\n\n\t// GESTION DES INTERACTIONS (private return void)\n\n\tthis.actionDrag = function (ev) {\n\n\t\tvar elem = apijs.dialog.t3, stop = true;\n\n\t\tif (ev.type === 'dragenter') {\n\t\t\tapijs.dialog.add('drag');\n\t\t}\n\t\telse if (ev.type === 'dragleave') {\n\t\t\tapijs.dialog.remove('drag');\n\t\t}\n\t\t// drag and drop\n\t\telse if (ev.dataTransfer && ev.dataTransfer.files && (ev.dataTransfer.files.length > 0)) {\n\n\t\t\ttry {\n\t\t\t\telem.files = ev.dataTransfer.files; // Firefox 57+\n\t\t\t\tapijs.upload.actionChoose(elem);\n\t\t\t}\n\t\t\tcatch (e) {\n\t\t\t\tconsole.error(e);\n\t\t\t\tapijs.html('.drag').remove();\n\t\t\t}\n\n\t\t\tapijs.dialog.remove('drag');\n\t\t}\n\t\t// copy and paste\n\t\telse if (ev.clipboardData && ev.clipboardData.files && (ev.clipboardData.files.length > 0)) {\n\n\t\t\t// Firefox 22+, Chrome 58+, Opera 45+, Safari 10.1+\n\t\t\ttry {\n\t\t\t\telem.files = ev.clipboardData.files; // Firefox 57+\n\t\t\t\tapijs.upload.actionChoose(elem, true);\n\t\t\t}\n\t\t\tcatch (e) {\n\t\t\t\tconsole.error(e);\n\t\t\t\tapijs.html('.drag').remove();\n\t\t\t}\n\t\t}\n\t\telse if (ev.clipboardData) {\n\t\t\tstop = false;\n\t\t}\n\n\t\tif (stop) {\n\t\t\tev.stopPropagation();\n\t\t\tev.preventDefault();\n\t\t}\n\t};\n\n\tthis.actionChoose = function (elem, paste) {\n\n\t\tvar html = [], size = 0, btn = apijs.html('button.confirm');\n\n\t\tif (this.exts) {\n\n\t\t\t// 1048576 octet = 1 Mo\n\t\t\t// https://stackoverflow.com/a/24775765/2980105\n\t\t\tapijs.toArray(elem.files, (this.allmax > 0) ? 999 : 1).forEach(function (file, idx) {\n\n\t\t\t\tvar txt = file.size / 1048576;\n\t\t\t\ttxt = apijs.formatNumber((txt < 0.01) ? 0.01 : txt);\n\t\t\t\ttxt = ((paste || (this.allmax > 0)) ?\n\t\t\t\t\t'' + (paste ? (new Date()).toTimeString().substring(0, 8) : idx + 1) + '' : '') +\n\t\t\t\t\t'' + file.name + '' +\n\t\t\t\t\t'' + apijs.i18n.translate(166, txt) + '';\n\n\t\t\t\tif ((this.exts.join() !== '*') && !this.exts.has(file.name.slice(file.name.lastIndexOf('.') + 1).toLowerCase())) {\n\t\t\t\t\ttxt += '' + apijs.i18n.translate(167) + '';\n\t\t\t\t}\n\t\t\t\telse if (file.size > (this.onemax * 1048576)) {\n\t\t\t\t\ttxt += '' + apijs.i18n.translate(168) + '';\n\t\t\t\t}\n\t\t\t\telse if (file.size <= 0) {\n\t\t\t\t\ttxt += '' + apijs.i18n.translate(169) + '';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttxt += '';\n\t\t\t\t}\n\n\t\t\t\thtml.push('' + txt + '');\n\t\t\t\tsize += file.size / 1048576;\n\n\t\t\t}, this); // pour que ci-dessus this = this\n\n\t\t\t// multiple\n\t\t\tif ((this.allmax > 0) && (size >= this.allmax)) {\n\t\t\t\thtml.push('' + apijs.i18n.translate(166, apijs.formatNumber(size)) + '' + apijs.i18n.translate(168) + '');\n\t\t\t}\n\n\t\t\t// ok ou ko\n\t\t\tapijs.html('div.filenames').innerHTML = '' + html.join('') + '
';\n\t\t\tif (apijs.html('div.filenames .err')) {\n\t\t\t\tbtn.setAttribute('disabled', 'disabled');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbtn.removeAttribute('disabled');\n\t\t\t\tbtn.focus();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tbtn.setAttribute('disabled', 'disabled');\n\t\t}\n\t};\n\n\tthis.actionConfirm = function () {\n\n\t\tif (apijs.dialog.t3.files.length > 0) {\n\n\t\t\tvar form = new FormData(apijs.dialog.t2), xhr = new XMLHttpRequest();\n\t\t\txhr.open('POST', this.action + ((this.action.indexOf('?') > 0) ? '&isAjax=true' : '?isAjax=true'), true);\n\n\t\t\t// token\n\t\t\tif (typeof apijs.config.upload.tokenValue == 'string') {\n\t\t\t\txhr.setRequestHeader(apijs.config.upload.tokenName, apijs.config.upload.tokenValue);\n\t\t\t\tform.append(apijs.config.upload.tokenName, apijs.config.upload.tokenValue);\n\t\t\t}\n\n\t\t\t// https://bugzilla.mozilla.org/show_bug.cgi?id=637002\n\t\t\t// https://stackoverflow.com/a/15491086\n\t\t\t// loadstart - When the request starts\n\t\t\t// progress - While sending and loading data\n\t\t\t// load - When the request has successfully completed even if the server hasn't responded that it finished\n\t\t\t// loadend - When the request has completed even if the server hasn't responded that it finished processing the request\n\t\t\t// error - When the request has failed\n\t\t\t// abort - When the request has been aborted (by invoking the abort method)\n\t\t\t// timeout - When the author specified timeout has passed before the request could complete\n\t\t\txhr.onreadystatechange = function (text) {\n\t\t\t\tif (xhr.readyState === 4) {\n\t\t\t\t\ttext = xhr.responseText.trim();\n\t\t\t\t\tif ([0, 200].has(xhr.status)) {\n\t\t\t\t\t\tself.dispatchEvent(new CustomEvent('apijsajaxresponse', { detail: { from: 'apijs.upload.send', xhr: xhr } }));\n\t\t\t\t\t\tapijs.log('upload:onreadystatechange status:200 message:' + text);\n\t\t\t\t\t\tif (text.indexOf('success-') === 0) {\n\t\t\t\t\t\t\tthis.updateTitle();\n\t\t\t\t\t\t\tthis.callback(text.slice(8), this.args);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.onError(195, text);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tapijs.log('upload:onreadystatechange status:' + xhr.status + ' message: ' + text);\n\t\t\t\t\t\tthis.onError(194, xhr.status);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}.bind(this); // pour que ci-dessus this = this\n\n\t\t\txhr.upload.onloadstart = this.onStart.bind(this);\n\t\t\txhr.upload.onprogress = this.onProgress.bind(this);\n\t\t\txhr.upload.onload = this.onProgress.bind(this);\n\t\t\txhr.upload.onerror = this.onError.bind(this);\n\t\t\txhr.send(form);\n\t\t}\n\t\telse {\n\t\t\tapijs.html('button.browse').focus();\n\t\t}\n\n\t\treturn false; // très important\n\t};\n\n\tthis.onStart = function () {\n\n\t\tthis.start = this.end = Math.round(new Date().getTime() / 1000);\n\t\tapijs.dialog.dialogProgress(this.title, apijs.i18n.translate(125), this.icon);\n\t};\n\n\tthis.onError = function (key, txt) {\n\n\t\tthis.updateTitle();\n\n\t\tif (typeof key == 'number')\n\t\t\ttxt = '[p]' + apijs.i18n.translate(key) + '[/p] ' + txt;\n\t\telse if (typeof txt != 'string')\n\t\t\ttxt = '[p]' + apijs.i18n.translate(193) + '[/p]';\n\n\t\ttxt += '[p]' + apijs.i18n.translate(196, 'href=\"apijs://restart\" onclick=\"apijs.upload.sendFile(true); return false;\"') + '[/p]';\n\t\tapijs.dialog.dialogInformation(this.title, txt, (typeof this.icon == 'string') ? 'upload error ' + this.icon : 'upload error');\n\t};\n\n\tthis.onProgress = function (ev) {\n\n\t\tvar percent, key, rate, time, elapsedTime, totalTime, currentTime = Math.round(new Date().getTime() / 1000), mins;\n\n\t\t// Cherche à actualiser la barre de progression toutes les 2 secondes (uniquement de 1 à 99%)\n\t\t// affiche le pourcentage, la vitesse à partir de 25 secondes, le temps restant à partir de 40 secondes ET 90 secondes de temps total\n\t\tif (ev.lengthComputable && (ev.type === 'progress') && (currentTime >= (this.end + 2))) {\n\n\t\t\tthis.end = currentTime;\n\n\t\t\t// Math.floor = entier inférieur, Math.ceil = entier supérieur, Math.round = au mieux\n\t\t\t// ev.loaded = nombre d'octet envoyé sur le serveur\n\t\t\t// ev.total = nombre d'octet à envoyer sur le serveur\n\t\t\t// pourcentage = nombre d'octet envoyé * 100 / nombre d'octet à envoyer\n\t\t\tpercent = Math.floor((ev.loaded * 100) / ev.total);\n\n\t\t\tif ((percent > 0) && (percent < 100)) {\n\n\t\t\t\tthis.updateTitle(percent);\n\n\t\t\t\t// temps écoulé = maintenant - départ\n\t\t\t\t// temps total = temps écoulé * 100 / pourcentage + 10 secondes\n\t\t\t\telapsedTime = currentTime - this.start;\n\t\t\t\ttotalTime = elapsedTime * 100 / percent + 10;\n\n\t\t\t\tif (elapsedTime > 24) {\n\n\t\t\t\t\t// temps restant = temps total - temps écoulé\n\t\t\t\t\ttime = Math.round(totalTime - elapsedTime);\n\t\t\t\t\ttime = Math.ceil(time / 10) * 10;\n\t\t\t\t\tmins = Math.ceil(time / 60);\n\n\t\t\t\t\t// vitesse = taille téléchargé / temps écoulé / 1024\n\t\t\t\t\trate = Math.round(ev.loaded / elapsedTime / 1024);\n\n\t\t\t\t\tif ((elapsedTime < 40) || (totalTime < 90)) { key = 184; time = null; } // \"§% - § ko/s\"\n\t\t\t\t\telse if (mins > 1) { key = 181; time = mins; } // \"§% - § ko/s - § minutes restantes\"\n\t\t\t\t\telse if (time > 50) { key = 182; time = 1; } // \"§% - § ko/s - § minute restante\"\n\t\t\t\t\telse { key = 183; } // \"§% - § ko/s - § secondes restantes\"\n\t\t\t\t}\n\n\t\t\t\tthis.updateProgress(percent, key, rate, time);\n\t\t\t}\n\t\t}\n\t\t// Cherche à actualiser la barre de progression lorsque l'envoi du fichier est terminé (donc à 100%)\n\t\t// affiche le pourcentage, le temps total à partir de 20 secondes, la vitesse si possible\n\t\telse if (ev.type === 'load') {\n\n\t\t\t// temps total = temps actuel - temps du départ\n\t\t\ttime = Math.round(new Date().getTime() / 1000) - this.start;\n\t\t\tmins = Math.ceil(time / 60);\n\n\t\t\t// vitesse = taille total / temps total / 1024\n\t\t\trate = Math.round(ev.loaded / time / 1024);\n\n\t\t\tif ((rate > 0) && (rate !== Infinity)) {\n\t\t\t\tif (mins > 1) { key = 185; time = mins; } // \"§% - à § ko/s en § minutes\"\n\t\t\t\telse if (time > 50) { key = 186; time = 1; } // \"§% - à § ko/s en § minute\"\n\t\t\t\telse if (time > 20) { key = 187; } // \"§% - à § ko/s en § secondes\"\n\t\t\t\telse { key = 188; time = null; } // \"§% - à § ko/s\"\n\t\t\t}\n\t\t\telse {\n\t\t\t\trate = null; time = null; // 100%\n\t\t\t}\n\n\t\t\tthis.updateTitle(100);\n\t\t\tthis.updateProgress(100, key, rate, time);\n\t\t}\n\t};\n\n\tthis.updateProgress = function (percent, key, rate, time) {\n\n\t\tvar rect = apijs.html('rect'), text = apijs.html('span.info'), data;\n\n\t\tif (percent > 99) {\n\t\t\tdata = '100%';\n\t\t\trect.setAttribute('class', 'end');\n\t\t\trect.style.width = '';\n\t\t\tvar elem = apijs.html('p');\n\t\t\telem.setAttribute('data-old', elem.textContent);\n\t\t\telem.setAttribute('data-new', apijs.i18n.translate(126));\n\t\t\telem.setAttribute('class', 'anim');\n\t\t\telem.textContent = '';\n\t\t}\n\t\telse {\n\t\t\trect.style.width = data = percent + '%';\n\t\t\tif (rect.hasAttribute('class'))\n\t\t\t\trect.removeAttribute('class');\n\t\t}\n\n\t\tif ((typeof key == 'number') && (typeof rate == 'number') && (typeof time == 'number'))\n\t\t\tdata = apijs.i18n.translate(key, percent, apijs.formatNumber(rate, false), time);\n\t\telse if ((typeof key == 'number') && (typeof rate == 'number'))\n\t\t\tdata = apijs.i18n.translate(key, percent, apijs.formatNumber(rate, false));\n\n\t\ttext.textContent = data;\n\t};\n\n\tthis.updateTitle = function (percent) {\n\n\t\tif (typeof percent == 'number') {\n\t\t\tdocument.title = (/^\\d{1,3}% - /.test(document.title)) ?\n\t\t\t\tpercent + '% - ' + document.title.slice(document.title.indexOf(' - ') + 3) : percent + '% - ' + document.title;\n\t\t}\n\t\telse if (/^\\d{1,3}% - /.test(document.title)) {\n\t\t\tdocument.title = document.title.slice(document.title.indexOf(' - ') + 3);\n\t\t}\n\t};\n};"],"names":["Array","prototype","has","needle","key","hasOwnProperty","this","window","NodeList","forEach","callback","that","i","length","call","apijs","core","version","config","lang","debug","dialog","closeOnClick","restrictNavigation","player","slideshow","ids","anchor","upload","tokenName","tokenValue","start","elem","console","info","toString","split","join","document","getElementById","Error","querySelector","getAttribute","indexOf","error","i18n","self","dispatchEvent","CustomEvent","init","querySelectorAll","startPlayer","addEventListener","onPopState","Object","keys","data","formatNumber","nb","dec","str","dgt","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","format","ignore","toFixed","replace","url","videoPlayer","parentNode","classList","add","toArray","max","slice","openTab","ev","preventDefault","href","open","log","txt","html","selector","id","t1","requestFullscreen","webkitFullscreenElement","webkitCancelFullScreen","mozFullScreenElement","mozCancelFullScreen","fullscreenElement","cancelFullScreen","webkitRequestFullscreen","mozRequestFullScreen","serialize","form","filter","elements","idx","name","disabled","type","options","selected","push","encodeURIComponent","value","checked","bind","cs","103","104","105","106","107","108","132","133","134","135","142","143","144","145","146","148","149","150","de","109","124","147","161","162","163","164","167","168","169","181","182","183","185","186","187","188","191","192","193","194","195","196","el","102","131","en","125","126","127","141","165","166","184","es","fr","hu","it","ja","nl","pl","pt","ptbr","ro","ru","sk","tr","uk","zh","toLowerCase","translate","word","translation","arguments","translateNode","createTextNode","apply","changeLang","select","video","stalled","subload","autoRun","xhr","removeAttribute","onloadedmetadata","onTimeupdate","onProgress","onVideotrack","onAudiotrack","onstalled","onWaiting","onplaying","onPlay","onpause","onended","onprogress","ontimeupdate","onseeking","onseeked","onwaiting","onloadstart","oncanplay","onclick","actionPlay","onvolumechange","actionVolume","ondurationchange","onMediaLoad","onerror","appendChild","htmlSvgPlayer","htmlSource","XMLHttpRequest","onreadystatechange","readyState","detail","from","childNodes","abort","status","nbv","nbt","responseText","trim","shift","setAttribute","htmlOption","htmlTrack","updateSelect","textTracks","send","css","total","adjust","textContent","innerHTML","tracks","videoTracks","auto","language","selectedIndex","Math","actionVideotrack","audioTracks","actionAudiotrack","hh","mm","ss","time","currentTime","duration","text","isNaN","Infinity","floor","style","width","buffer","buffered","node","remove","createElement","end","networkState","paused","swipe","ended","play","pause","offsetWidth","clientX","offsetLeft","offsetParent","volume","muted","actionPosition","target","enabled","blur","actionTexttrack","mode","actionVideo","src","actionFullscreen","res","d","c","b","a","onchange","webkitFullscreenEnabled","fullscreenEnabled","mozFullScreenEnabled","onload","lastIndexOf","track","label","klass","height","scroll","args","ft","ti","ns","media","t0","t2","t3","dialogInformation","title","icon","htmlParent","htmlContent","htmlBtnOk","show","dialogConfirmation","htmlBtnConfirm","dialogFormOptions","action","dialogFormUpload","input","multiple","htmlUpload","dialogProgress","htmlSvgProgress","dialogWaiting","htmlSvgLoader","dialogPhoto","date","legend","htmlMedia","htmlHelp","htmlBtnClose","htmlBtnNavigation","dialogVideo","dialogIframe","close","htmlIframe","dialogAjax","update","splice","toggle","search","actionClose","history","pushState","RegExp","test","location","clear","onCloseBrowser","stopPropagation","m","returnValue","onResizeBrowser","clientWidth","onScrollBrowser","brk","nodeName","Date","getTime","wheelDelta","contains","scrollHeight","offsetHeight","scrollTop","onScrollIframe","defaultView","innerHeight","scrollY","body","onKey","ctrlKey","keyCode","altKey","actionLast","actionFirst","actionPrev","actionNext","onFullscreen","onIframeLoad","contentWindow","parent","passive","currentSrc","visibility","hasAttribute","imageLoader","elems","onSlideshowSwipe","setTimeout","actionConfirm","isLocked","matchMedia","matches","concat","createDocumentFragment","focus","minHeight","old","firstChild","actionDrag","isAll","hammer","off","destroy","removeEventListener","parseFloat","getComputedStyle","submit","drag","click","Hammer","get","set","direction","DIRECTION_ALL","on","isMultiple","change","isDelayed","createElementNS","fileid","Image","isSlideshow","isVideo","navigator","userAgent","match","items","item","current","j","hoverload","$1","source","srcset","conts","prefix","number","parseInt","gallery","links","substring","styles","first","prev","next","last","hash","onemax","allmax","exts","sendFile","sendFiles","stop","dataTransfer","files","actionChoose","e","clipboardData","paste","size","btn","file","toTimeString","FormData","setRequestHeader","append","updateTitle","onError","onStart","round","percent","rate","totalTime","mins","lengthComputable","loaded","elapsedTime","ceil","updateProgress","rect"],"mappings":";;;;;GAkBKA;MAAMC,UAAUC,MACpBF,MAAMC,UAAUC,IAAM,SAAUC,EAAQC,GACvC,GAAID,aAAkBH,OACrB,IAAKI,KAAOD,EAAQ,GAAIA,EAAOE,eAAeD,CAAG,GAC5CE,KAAKJ,IAAIC,EAAOC,EAAI,EACvB,MAAO,CAAA,CACT,MAGA,IAAKA,KAAOE,KAAM,GAAIA,KAAKD,eAAeD,CAAG,GACxCE,KAAKF,KAASD,EACjB,MAAO,CAAA,EAGV,MAAO,CAAA,CACR,GAGGI,OAAOC,UAAY,CAACA,SAASP,UAAUQ,UAC1CD,SAASP,UAAUQ,QAAU,SAAUC,EAAUC,EAAMC,GAEtD,IADAD,EAAOA,GAAQJ,OACVK,EAAI,EAAGA,EAAIN,KAAKO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apijs/src/javascripts/select.js","../code/apijs/src/javascripts/player.js","../code/apijs/src/javascripts/dialog.js","../code/apijs/src/javascripts/slideshow.js","../code/apijs/src/javascripts/upload.js"],"sourcesContent":["/**\n * Created J/03/12/2009\n * Updated S/23/12/2023\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\nif (!Array.prototype.has) {\n\tArray.prototype.has = function (needle, key) {\n\t\tif (needle instanceof Array) {\n\t\t\tfor (key in needle) if (needle.hasOwnProperty(key)) {\n\t\t\t\tif (this.has(needle[key]))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfor (key in this) if (this.hasOwnProperty(key)) {\n\t\t\t\tif (this[key] === needle)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t};\n}\n\nif (window.NodeList && !NodeList.prototype.forEach) {\n\tNodeList.prototype.forEach = function (callback, that, i) {\n\t\tthat = that || window;\n\t\tfor (i = 0; i < this.length; i++)\n\t\t\tcallback.call(that, this[i], i, this);\n\t};\n}\n\nvar apijs = new (function () {\n\n\t\"use strict\";\n\tthis.core = {};\n\tthis.version = 696;\n\n\tthis.config = {\n\t\tlang: 'auto',\n\t\tdebug: false,\n\t\t//select: { },\n\t\tdialog: {\n\t\t\tcloseOnClick: false,\n\t\t\trestrictNavigation: true,\n\t\t\tplayer: true\n\t\t},\n\t\tslideshow: {\n\t\t\tids: 'slideshow',\n\t\t\tanchor: true\n\t\t},\n\t\tupload: {\n\t\t\ttokenName: 'X-CSRF-Token',\n\t\t\ttokenValue: null\n\t\t}\n\t};\n\n\tthis.start = function () {\n\n\t\tvar elem;\n\n\t\t// bonjour\n\t\tconsole.info('APIJS ' + this.version.toString().split('').join('.') + ' - hello - 1 MB/Mo = 1024 kB/ko');\n\t\tif (document.getElementById('oldBrowser'))\n\t\t\tthrow new Error('APIJS canceled, #oldBrowser detected!');\n\n\t\tif (elem = document.querySelector('link[href*=\"apijs/fontello.woff2\"]')) {\n\t\t\tif (elem.getAttribute('href').indexOf('?a3ab5acff3') < 0)\n\t\t\t\tconsole.error('APIJS warning invalid cachekey for link:fontello.woff2?x, it must be ?a3ab5acff3');\n\t\t}\n\t\tif (elem = document.querySelector('script[src*=\"apijs.min.js?v=\"]')) {\n\t\t\tif (elem.getAttribute('src').indexOf('?v=' + this.version) < 0)\n\t\t\t\tconsole.error('APIJS warning invalid cachekey for script:apijs.min.js?x, it must be ?v=' + this.version);\n\t\t}\n\n\t\t// instancie\n\t\tthis.i18n = new this.core.i18n();\n\t\t//this.select = new this.core.select();\n\t\tthis.dialog = new this.core.dialog();\n\t\tthis.upload = new this.core.upload();\n\t\tthis.slideshow = new this.core.slideshow();\n\t\tself.dispatchEvent(new CustomEvent('apijsbeforeload'));\n\n\t\t// démarre\n\t\tthis.i18n.init();\n\t\tthis.slideshow.init();\n\t\t//this.select.init();\n\t\tdocument.querySelectorAll('video.apijsplayer[data-src]').forEach(function (elem) {\n\t\t\tapijs.startPlayer(elem, elem.getAttribute('data-src'));\n\t\t});\n\n\t\tself.addEventListener('popstate', this.slideshow.onPopState);\n\t\tself.addEventListener('hashchange', this.slideshow.onPopState);\n\n\t\tif (this.config.debug) {\n\t\t\tconsole.info('APIJS available languages: ' + Object.keys(this.i18n.data).join(' '));\n\t\t\tconsole.info('APIJS language loaded: ' + this.config.lang);\n\t\t\tconsole.info('APIJS successfully started');\n\t\t}\n\n\t\t// événement\n\t\tself.dispatchEvent(new CustomEvent('apijsload'));\n\t};\n\n\tthis.formatNumber = function (nb, dec) {\n\n\t\t// par défaut 2 chiffres\n\t\tvar dgt = (typeof dec == 'number') ? dec : ((dec === false) ? 0 : 2), str;\n\n\t\t// Firefox 29+ pas 27+, (iOS) Safari 10+ pas 9+\n\t\ttry {\n\t\t\tstr = new Intl.NumberFormat(this.config.lang, { minimumFractionDigits: dgt, maximumFractionDigits: dgt }).format(nb);\n\t\t}\n\t\tcatch (e) {\n\t\t\tstr = nb.toFixed(dgt);\n\t\t}\n\n\t\t// conserve 00 si on veut vraiment 2 chiffres\n\t\treturn (typeof dec == 'number') ? str : str.replace(/[.,]00$/, '');\n\t};\n\n\tthis.startPlayer = function (elem, url) {\n\n\t\tif (this.config.dialog.player === true) {\n\t\t\telem.videoPlayer = new this.core.player(elem, url);\n\t\t\telem.parentNode.classList.add('apijsvideoplayer');\n\t\t\treturn true;\n\t\t}\n\n\t\tif (typeof this.config.dialog.player == 'function') {\n\t\t\tthis.config.dialog.player(elem, url);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t};\n\n\tthis.toArray = function (data, max) {\n\t\treturn Array.prototype.slice.call(data, 0, max);\n\t};\n\n\tthis.openTab = function (ev) {\n\t\tev.preventDefault();\n\t\tif (this.href.length > 0)\n\t\t\tself.open(this.href);\n\t};\n\n\tthis.log = function (txt) {\n\t\tif (this.config.debug)\n\t\t\tconsole.info('APIJS ' + txt);\n\t};\n\n\tthis.html = function (selector, id) {\n\t\tif ((id === true) || (selector.indexOf('#') === 0))\n\t\t\treturn document.getElementById(selector.replace('#', 'apijs'));\n\t\telse if (this.dialog.t1)\n\t\t\treturn this.dialog.t1.querySelector(selector);\n\t\telse\n\t\t\treturn null;\n\t};\n\n\tthis.requestFullscreen = function (elem) {\n\t\tif (document.webkitFullscreenElement)\n\t\t\tdocument.webkitCancelFullScreen();\n\t\telse if (document.mozFullScreenElement)\n\t\t\tdocument.mozCancelFullScreen();\n\t\telse if (document.fullscreenElement)\n\t\t\tdocument.cancelFullScreen();\n\t\telse if (elem.webkitRequestFullscreen)\n\t\t\telem.webkitRequestFullscreen();\n\t\telse if (elem.requestFullscreen)\n\t\t\telem.requestFullscreen();\n\t\telse if (elem.mozRequestFullScreen)\n\t\t\telem.mozRequestFullScreen();\n\t};\n\n\tthis.serialize = function (form, filter) {\n\n\t\tvar data = [];\n\t\tfilter = (typeof filter == 'string') ? filter : '';\n\n\t\t// @see https://gomakethings.com/how-to-serialize-form-data-with-vanilla-js/\n\t\tArray.prototype.forEach.call(form.elements, function (elem, idx) {\n\n\t\t\tif (!elem.name || elem.disabled || ['file', 'reset', 'submit', 'button'].has(elem.type) || (elem.name.indexOf(filter) !== 0))\n\t\t\t\treturn;\n\n\t\t\tif (elem.type === 'select-multiple') {\n\t\t\t\tfor (idx = 0; idx < elem.options.length; idx++) {\n\t\t\t\t\tif (elem.options[idx].selected)\n\t\t\t\t\t\tdata.push(encodeURIComponent(elem.name) + '=' + encodeURIComponent(elem.options[idx].value));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (!['checkbox', 'radio'].has(elem.type) || elem.checked) {\n\t\t\t\tdata.push(encodeURIComponent(elem.name) + '=' + encodeURIComponent(elem.value));\n\t\t\t}\n\t\t});\n\n\t\treturn data.join('&');\n\t};\n\n})();\n\nif (typeof self.addEventListener == 'function')\n\tself.addEventListener('load', apijs.start.bind(apijs));","/**\n * Created S/05/06/2010\n * Updated D/03/12/2023\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.i18n = function () {\n\n\t\"use strict\";\n\tthis.data = {\n\t\t// @see https://docs.google.com/spreadsheets/d/1UUpKZ-YAAlcfvGHYwt6aUM9io390j0-fIL0vMRh1pW0/edit?usp=sharing\n\t\t// auto start\n\t\tcs: {\n\t\t\t103: \"Zrušit\",\n\t\t\t104: \"Potvrzení\",\n\t\t\t105: \"Zavřít\",\n\t\t\t106: \"Předchozí\",\n\t\t\t107: \"Následující\",\n\t\t\t108: \"Vybrat soubor\",\n\t\t\t132: \"video stopa\",\n\t\t\t133: \"zvuková stopa\",\n\t\t\t134: \"titulky\",\n\t\t\t135: \"vypnuto\",\n\t\t\t142: \"předchozí/následující\",\n\t\t\t143: \"přehrát/pozastavit\",\n\t\t\t144: \"zpět/vpřed\",\n\t\t\t145: \"snížit/zvýšit hlasitost\",\n\t\t\t146: \"ztlumit\",\n\t\t\t148: \"ukončit\",\n\t\t\t149: \"Konec\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tde: {\n\t\t\t103: \"Abbrechen\",\n\t\t\t104: \"Bestätigen\",\n\t\t\t105: \"Schließen\",\n\t\t\t106: \"Vorheriges\",\n\t\t\t107: \"Nächstes\",\n\t\t\t108: \"Datei wählen\",\n\t\t\t109: \"Dateien wählen\",\n\t\t\t124: \"Verarbeitung läuft...\",\n\t\t\t132: \"videospur\",\n\t\t\t133: \"audiospur\",\n\t\t\t134: \"untertitel\",\n\t\t\t135: \"aus\",\n\t\t\t142: \"vorheriges/nächstes\",\n\t\t\t143: \"wiedergabe/pause\",\n\t\t\t144: \"rückwärts/vorwärts\",\n\t\t\t145: \"leiser/lauter\",\n\t\t\t146: \"ton aus\",\n\t\t\t147: \"vollbild\",\n\t\t\t148: \"beenden\",\n\t\t\t149: \"Ende\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Alle Dateien wurden akzeptiert.\",\n\t\t\t162: \"Akzeptiertes Dateiformat: §.\",\n\t\t\t163: \"Akzeptiertes Dateiformate: § und §.\",\n\t\t\t164: \"Maximale Größe: § MB.\",\n\t\t\t167: \"Unerlaubtes Format\",\n\t\t\t168: \"Format zu gross\",\n\t\t\t169: \"Leere Datei\",\n\t\t\t181: \"§% - § kB/s - Noch § Minuten\",\n\t\t\t182: \"§% - § kB/s - Noch § Minute\",\n\t\t\t183: \"§% - § kB/s - Noch § Sekunden\",\n\t\t\t185: \"§% - bis § kB/s in § Minuten\",\n\t\t\t186: \"§% - bis § kB/s in § Minute\",\n\t\t\t187: \"§% - bis § kB/s in § Sekunden\",\n\t\t\t188: \"§% - bis § kB/s\",\n\t\t\t191: \"Abbrechen\",\n\t\t\t192: \"Sind Sie sicher? [span]Ja[/span] - Nein\",\n\t\t\t193: \"Es ist ein unerwarteter Fehler aufgetreten... Bitte versuchen Sie es noch einmal.\",\n\t\t\t194: \"Es ist ein Fehler beim Senden.\",\n\t\t\t195: \"Es ist ein Fehler bei der Verarbeitung.\",\n\t\t\t196: \"Wir laden Sie ein es erneut zu [a §]versuchen[/a].\"\n\t\t},\n\t\tel: {\n\t\t\t102: \"Εντάξει\",\n\t\t\t103: \"Ακύρωση\",\n\t\t\t105: \"Κλείσιμο\",\n\t\t\t106: \"Προηγούμενο\",\n\t\t\t107: \"Επόμενο\",\n\t\t\t108: \"Επιλέξτε ένα αρχείο\",\n\t\t\t131: \"βίντεο\",\n\t\t\t132: \"κομμάτι βίντεο\",\n\t\t\t133: \"κομμάτι ήχου\",\n\t\t\t134: \"υπότιτλοι\",\n\t\t\t135: \"απενεργοποίηση\",\n\t\t\t142: \"προηγούμενο/επόμενο\",\n\t\t\t143: \"αναπαραγωγή/παύση\",\n\t\t\t144: \"προς τα πίσω/εμπρός\",\n\t\t\t145: \"μείωση/αύξηση έντασης ήχου\",\n\t\t\t146: \"σίγαση\",\n\t\t\t147: \"πλήρης οθόνη\",\n\t\t\t148: \"έξοδος\",\n\t\t\t149: \"Τέλος\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\ten: {\n\t\t\t102: \"Ok\",\n\t\t\t103: \"Cancel\",\n\t\t\t104: \"Confirm\",\n\t\t\t105: \"Close\",\n\t\t\t106: \"Previous\",\n\t\t\t107: \"Next\",\n\t\t\t108: \"Choose a file\",\n\t\t\t109: \"Choose one or multiple files\",\n\t\t\t124: \"Operation in progress...\",\n\t\t\t125: \"Upload in progress...\",\n\t\t\t126: \"Processing file in progress...\",\n\t\t\t127: \"Drag and drop your files here\",\n\t\t\t131: \"video\",\n\t\t\t132: \"video track\",\n\t\t\t133: \"audio track\",\n\t\t\t134: \"subtitles\",\n\t\t\t135: \"off\",\n\t\t\t141: \"first/last\",\n\t\t\t142: \"previous/next\",\n\t\t\t143: \"play/pause\",\n\t\t\t144: \"backward/forward\",\n\t\t\t145: \"decrease/increase the volume\",\n\t\t\t146: \"mute\",\n\t\t\t147: \"full screen\",\n\t\t\t148: \"quit\",\n\t\t\t149: \"End\",\n\t\t\t150: \"Escape\",\n\t\t\t161: \"All files are accepted.\",\n\t\t\t162: \"Accepted file format: §.\",\n\t\t\t163: \"Accepted file formats: § and §.\",\n\t\t\t164: \"Maximum size: § MB.\",\n\t\t\t165: \"Maximum size by file: § MB.|Total maximum size: § MB.\",\n\t\t\t166: \"§ MB\",\n\t\t\t167: \"Format not allowed\",\n\t\t\t168: \"Size too large\",\n\t\t\t169: \"File empty\",\n\t\t\t181: \"§% - § kB/s - § minutes left\",\n\t\t\t182: \"§% - § kB/s - § minute left\",\n\t\t\t183: \"§% - § kB/s - § seconds left\",\n\t\t\t184: \"§% - § kB/s\",\n\t\t\t185: \"§% - at § kB/s in § minutes\",\n\t\t\t186: \"§% - at § kB/s in § minute\",\n\t\t\t187: \"§% - at § kB/s in § seconds\",\n\t\t\t188: \"§% - at § kB/s\",\n\t\t\t191: \"Interrupt\",\n\t\t\t192: \"Are you sure? [span]Yes[/span] - No\",\n\t\t\t193: \"It seems that an unlikely mistake just happened... Please try again.\",\n\t\t\t194: \"An error occurred while sending.\",\n\t\t\t195: \"An error occurred while processing.\",\n\t\t\t196: \"We invite you to [a §]try again[/a].\"\n\t\t},\n\t\tes: {\n\t\t\t102: \"Aceptar\",\n\t\t\t103: \"Cancelar\",\n\t\t\t104: \"Confirmar\",\n\t\t\t105: \"Cerrar\",\n\t\t\t106: \"Anterior\",\n\t\t\t107: \"Siguiente\",\n\t\t\t108: \"Elegir un fichero\",\n\t\t\t109: \"Elegir uno o varios ficheros\",\n\t\t\t124: \"Operación en curso...\",\n\t\t\t125: \"Envío en progreso...\",\n\t\t\t126: \"Tratamiento en curso...\",\n\t\t\t131: \"vídeo\",\n\t\t\t132: \"pista de vídeo\",\n\t\t\t133: \"pista de audio\",\n\t\t\t134: \"subtítulos\",\n\t\t\t135: \"desactivar\",\n\t\t\t142: \"anterior/siguiente\",\n\t\t\t143: \"reproducir/pausa\",\n\t\t\t144: \"retroceder/avanzar\",\n\t\t\t145: \"bajar/subir volumen\",\n\t\t\t146: \"silenciar\",\n\t\t\t147: \"pantalla completa\",\n\t\t\t148: \"salir\",\n\t\t\t149: \"Fin\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Se aceptan todos los archivos.\",\n\t\t\t162: \"Formato de archivo aceptado: §.\",\n\t\t\t163: \"Formatos de archivos aceptados: § y §.\",\n\t\t\t164: \"Tamaño máximo: § MB.\",\n\t\t\t165: \"Tamaño máximo por fichero: § Mo.|Tamaño máximo total: § Mo.\",\n\t\t\t167: \"Formato no autorizado\",\n\t\t\t168: \"Tamaño demasiado importante\",\n\t\t\t169: \"Fichero vacío\",\n\t\t\t181: \"§% - § kB/s - § minutos restantes\",\n\t\t\t182: \"§% - § kB/s - § minuto restantes\",\n\t\t\t183: \"§% - § kB/s - § segundos restantes\",\n\t\t\t185: \"§% - a § kB/s en § minutos\",\n\t\t\t186: \"§% - a § kB/s en § minuto\",\n\t\t\t187: \"§% - a § kB/s en § segundos\",\n\t\t\t188: \"§% - a § kB/s\",\n\t\t\t191: \"Interrumpir\",\n\t\t\t192: \"¿Está seguro(a)? [span]Sí[/span] - No\",\n\t\t\t193: \"Parece que un error improbable acabo de ocurrir... Por favor, inténtelo de nuevo.\",\n\t\t\t194: \"Se produjo un error durante el envío.\",\n\t\t\t195: \"Se produjo un error durante el procesamiento.\",\n\t\t\t196: \"Le invitamos a [a §]intentar de nuevo[/a].\"\n\t\t},\n\t\tfr: {\n\t\t\t103: \"Annuler\",\n\t\t\t104: \"Valider\",\n\t\t\t105: \"Fermer\",\n\t\t\t106: \"Précédent\",\n\t\t\t107: \"Suivant\",\n\t\t\t108: \"Choisir un fichier\",\n\t\t\t109: \"Choisir un ou plusieurs fichiers\",\n\t\t\t124: \"Opération en cours...\",\n\t\t\t125: \"Envoi en cours...\",\n\t\t\t126: \"Traitement en cours...\",\n\t\t\t127: \"Faites glisser et déposez vos fichiers ici\",\n\t\t\t131: \"vidéo\",\n\t\t\t132: \"piste vidéo\",\n\t\t\t133: \"piste audio\",\n\t\t\t134: \"sous-titres\",\n\t\t\t141: \"premier/dernier\",\n\t\t\t142: \"précédent/suivant\",\n\t\t\t143: \"lecture/pause\",\n\t\t\t144: \"reculer/avancer\",\n\t\t\t145: \"réduire/augmenter le volume\",\n\t\t\t146: \"couper le son\",\n\t\t\t147: \"plein écran\",\n\t\t\t148: \"quitter\",\n\t\t\t149: \"Fin\",\n\t\t\t150: \"Échap\",\n\t\t\t161: \"Tous les fichiers sont acceptés.\",\n\t\t\t162: \"Format de fichier accepté : §.\",\n\t\t\t163: \"Formats de fichier acceptés : § et §.\",\n\t\t\t164: \"Taille maximale : § Mo.\",\n\t\t\t165: \"Taille maximale par fichier : § Mo.|Taille maximale total : § Mo.\",\n\t\t\t166: \"§ Mo\",\n\t\t\t167: \"Format non autorisé\",\n\t\t\t168: \"Taille trop importante\",\n\t\t\t169: \"Fichier vide\",\n\t\t\t181: \"§% - § ko/s - § minutes restantes\",\n\t\t\t182: \"§% - § ko/s - § minute restante\",\n\t\t\t183: \"§% - § ko/s - § secondes restantes\",\n\t\t\t184: \"§% - § ko/s\",\n\t\t\t185: \"§% - à § ko/s en § minutes\",\n\t\t\t186: \"§% - à § ko/s en § minute\",\n\t\t\t187: \"§% - à § ko/s en § secondes\",\n\t\t\t188: \"§% - à § ko/s\",\n\t\t\t191: \"Interrompre\",\n\t\t\t192: \"Êtes-vous sûr(e) ? [span]Oui[/span] - Non\",\n\t\t\t193: \"Il semblerait qu'une erreur improbable vient de se produire... Veuillez réessayer.\",\n\t\t\t194: \"Une erreur est survenue lors de l'envoi.\",\n\t\t\t195: \"Une erreur est survenue lors du traitement.\",\n\t\t\t196: \"Nous vous invitons à [a §]réessayer[/a].\"\n\t\t},\n\t\thu: {\n\t\t\t103: \"Mégsem\",\n\t\t\t104: \"Megerősít\",\n\t\t\t105: \"Bezár\",\n\t\t\t106: \"Előző\",\n\t\t\t107: \"Következő\",\n\t\t\t108: \"Válasszon fájlt\",\n\t\t\t131: \"videó\",\n\t\t\t132: \"videosáv\",\n\t\t\t133: \"hangsáv\",\n\t\t\t134: \"feliratok\",\n\t\t\t135: \"ki\",\n\t\t\t142: \"előző/következő\",\n\t\t\t143: \"lejátszás/szünet\",\n\t\t\t144: \"vissza/előre\",\n\t\t\t145: \"hangerő csökkentés/növelése\",\n\t\t\t146: \"némítás\",\n\t\t\t147: \"teljes képernyő\",\n\t\t\t148: \"kilépés\",\n\t\t\t149: \"Befejezés\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tit: {\n\t\t\t103: \"Annulla\",\n\t\t\t104: \"Conferma\",\n\t\t\t105: \"Chiudi\",\n\t\t\t106: \"Precedente\",\n\t\t\t107: \"Successivo\",\n\t\t\t108: \"Scegli un file\",\n\t\t\t109: \"Scegli uno o più file\",\n\t\t\t124: \"Operazione in corso...\",\n\t\t\t125: \"Invio in corso...\",\n\t\t\t126: \"Trattamento in corso...\",\n\t\t\t132: \"traccia video\",\n\t\t\t133: \"traccia audio\",\n\t\t\t134: \"sottotitoli\",\n\t\t\t135: \"inattivo\",\n\t\t\t142: \"precedente/successivo\",\n\t\t\t143: \"riproduci/pausa\",\n\t\t\t144: \"indietro/avanti\",\n\t\t\t145: \"riduci/aumenta volume\",\n\t\t\t146: \"silenzio\",\n\t\t\t147: \"schermo intero\",\n\t\t\t148: \"esci\",\n\t\t\t149: \"Fine\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Tutti i file sono accettati.\",\n\t\t\t162: \"Formato del file accettato: §.\",\n\t\t\t163: \"Formati accettati: § et §.\",\n\t\t\t164: \"Dimensione massima: § MB.\",\n\t\t\t167: \"Formato non autorizzato\",\n\t\t\t168: \"Dimensione troppo importante\",\n\t\t\t169: \"File vuoto\",\n\t\t\t181: \"§% - § kB/s - § minuti rimanenti\",\n\t\t\t182: \"§% - § kB/s - § minuto rimanente\",\n\t\t\t183: \"§% - § kB/s - § secondi rimanenti\",\n\t\t\t185: \"§% - a § kB/s in § minuti\",\n\t\t\t186: \"§% - a § kB/s in § minuto\",\n\t\t\t187: \"§% - a § kB/s in § secondi\",\n\t\t\t188: \"§% - a § kB/s\",\n\t\t\t191: \"Interrompere\",\n\t\t\t192: \"Sei sicuro? [span]Si[/span] - No\",\n\t\t\t193: \"Sembra che un errore inaspettato si sia verificato... Riprova.\",\n\t\t\t194: \"Un errore si è verificato durante l'invio.\",\n\t\t\t195: \"Un errore si è verificato durante il trattamento.\",\n\t\t\t196: \"Vi invitiamo a [a §]riprovare[/a].\"\n\t\t},\n\t\tja: {\n\t\t\t103: \"キャンセル\",\n\t\t\t104: \"承認\",\n\t\t\t105: \"閉じる\",\n\t\t\t106: \"前へ\",\n\t\t\t107: \"次へ\",\n\t\t\t108: \"ファイルを選択する\",\n\t\t\t131: \"ビデオ\",\n\t\t\t132: \"ビデオトラック\",\n\t\t\t133: \"オーディオトラック\",\n\t\t\t134: \"字幕\",\n\t\t\t135: \"オフ\",\n\t\t\t142: \"前へ/次へ\",\n\t\t\t143: \"再生/一時停止\",\n\t\t\t144: \"戻る/進む\",\n\t\t\t146: \"ミュート\",\n\t\t\t147: \"全画面表示\",\n\t\t\t148: \"終了\",\n\t\t\t149: \"終了\",\n\t\t\t150: \"Esc\",\n\t\t\t166: \"§ Mo\",\n\t\t\t184: \"§% - § Ko/s\",\n\t\t\t192: \"よろしいですか?[span]はい[/span] - いいえ\"\n\t\t},\n\t\tnl: {\n\t\t\t103: \"Annuleren\",\n\t\t\t104: \"Bevestigen\",\n\t\t\t105: \"Sluiten\",\n\t\t\t106: \"Vorige\",\n\t\t\t107: \"Volgende\",\n\t\t\t108: \"Kies een bestand\",\n\t\t\t132: \"videospoor\",\n\t\t\t133: \"audiospoor\",\n\t\t\t134: \"ondertitels\",\n\t\t\t135: \"uit\",\n\t\t\t142: \"vorige/volgende\",\n\t\t\t143: \"afspelen/pauzeren\",\n\t\t\t144: \"achteruit/vooruit\",\n\t\t\t145: \"volume omlaag/omhoog\",\n\t\t\t146: \"dempen\",\n\t\t\t147: \"schermvullend\",\n\t\t\t148: \"afsluiten\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tpl: {\n\t\t\t103: \"Anuluj\",\n\t\t\t104: \"Potwierdź\",\n\t\t\t105: \"Zamknij\",\n\t\t\t106: \"Poprzedni\",\n\t\t\t107: \"Następny\",\n\t\t\t108: \"Wybierz plik\",\n\t\t\t131: \"obraz\",\n\t\t\t132: \"ścieżka obrazu\",\n\t\t\t133: \"ścieżka dźwiękowa\",\n\t\t\t134: \"napisy\",\n\t\t\t135: \"wyłączone\",\n\t\t\t142: \"poprzedni/następny\",\n\t\t\t143: \"odtwarzaj/wstrzymaj\",\n\t\t\t144: \"wstecz/przodu\",\n\t\t\t145: \"ciszej/głośniej\",\n\t\t\t146: \"wycisz\",\n\t\t\t147: \"pełny ekran\",\n\t\t\t148: \"zakończ\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tpt: {\n\t\t\t103: \"Cancelar\",\n\t\t\t104: \"Confirmar\",\n\t\t\t105: \"Fechar\",\n\t\t\t106: \"Anterior\",\n\t\t\t107: \"Seguinte\",\n\t\t\t108: \"Escolha um ficheiro\",\n\t\t\t124: \"Operação em processo...\",\n\t\t\t125: \"Envio em processo...\",\n\t\t\t126: \"Tratamento em processo...\",\n\t\t\t131: \"vídeo\",\n\t\t\t132: \"faixa de vídeo\",\n\t\t\t133: \"faixa de áudio\",\n\t\t\t134: \"legendas\",\n\t\t\t135: \"não\",\n\t\t\t142: \"anterior/seguinte\",\n\t\t\t143: \"reprodução/pausa\",\n\t\t\t144: \"recuar/avançar\",\n\t\t\t145: \"diminuir/aumentar volume\",\n\t\t\t146: \"sem som\",\n\t\t\t147: \"ecrã completo\",\n\t\t\t148: \"sair\",\n\t\t\t149: \"Fim\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Todos os ficheiros foram aceites.\",\n\t\t\t162: \"Formato do ficheiro aceite: §.\",\n\t\t\t163: \"Formatos de ficheiro aceites: § e §.\",\n\t\t\t164: \"Tamanho máximo: § MB.\",\n\t\t\t181: \"§% - § kB/s - § minutos restantes\",\n\t\t\t182: \"§% - § kB/s - § minuto restantes\",\n\t\t\t183: \"§% - § kB/s - § segundos restantes\",\n\t\t\t185: \"§% - § kB/s em § minutos\",\n\t\t\t186: \"§% - § kB/s em § minuto\",\n\t\t\t187: \"§% - § kB/s em § segundos\",\n\t\t\t188: \"§% - § kB/s\",\n\t\t\t192: \"Tem a certeza? [span]Sim[/span] - Não\",\n\t\t\t193: \"Parece ter acontecido um erro imprevisto. Por favor, tente novamente.\",\n\t\t\t194: \"Ocorreu um erro ao enviar.\",\n\t\t\t195: \"Ocorreu um erro ao processar.\",\n\t\t\t196: \"Convidamo-lo a [a §]tentar novamente[/a].\"\n\t\t},\n\t\tptbr: {\n\t\t\t107: \"Próximo\",\n\t\t\t108: \"Escolher um arquivo\",\n\t\t\t124: \"Operação em andamento...\",\n\t\t\t125: \"Envio em andamento...\",\n\t\t\t126: \"Tratamento em andamento...\",\n\t\t\t132: \"trilha de vídeo\",\n\t\t\t133: \"trilha de áudio\",\n\t\t\t135: \"desligado\",\n\t\t\t142: \"anterior/próximo\",\n\t\t\t143: \"reproduzir/pausar\",\n\t\t\t144: \"retroceder/avançar\",\n\t\t\t146: \"sem áudio\",\n\t\t\t147: \"tela inteira\",\n\t\t\t148: \"fechar\",\n\t\t\t149: \"Final\"\n\t\t},\n\t\tro: {\n\t\t\t103: \"Anuleaza\",\n\t\t\t104: \"Confirmare\",\n\t\t\t105: \"Inchide\",\n\t\t\t106: \"Anteriorul\",\n\t\t\t107: \"Urmatorul\",\n\t\t\t108: \"Alege un fișier\",\n\t\t\t132: \"pistă video\",\n\t\t\t133: \"pistă audio\",\n\t\t\t134: \"subtitluri\",\n\t\t\t135: \"oprit\",\n\t\t\t142: \"anteriorul/urmatorul\",\n\t\t\t143: \"redare/pauză\",\n\t\t\t144: \"înapoi/înaintează\",\n\t\t\t145: \"scade/crește volumul\",\n\t\t\t146: \"mut\",\n\t\t\t147: \"pe tot ecranul\",\n\t\t\t148: \"ieșire\",\n\t\t\t149: \"Sfârșit\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\tru: {\n\t\t\t102: \"Ок\",\n\t\t\t103: \"Отмена\",\n\t\t\t104: \"Подтвердить\",\n\t\t\t105: \"Закрыть\",\n\t\t\t106: \"Предыдущий\",\n\t\t\t107: \"Следующий\",\n\t\t\t108: \"Выберите файл\",\n\t\t\t124: \"Операция в процессе...\",\n\t\t\t131: \"видео\",\n\t\t\t132: \"видеодорожка\",\n\t\t\t133: \"аудиодорожка\",\n\t\t\t134: \"субтитры\",\n\t\t\t135: \"выключено\",\n\t\t\t142: \"предыдущий/следующий\",\n\t\t\t143: \"воспроизведение/пауза\",\n\t\t\t144: \"назад/вперед\",\n\t\t\t145: \"понизить/повысить громкость\",\n\t\t\t146: \"выключить звук\",\n\t\t\t147: \"полноэкранный режим\",\n\t\t\t148: \"выйти\",\n\t\t\t150: \"Esc\",\n\t\t\t161: \"Все файлы приняты.\",\n\t\t\t162: \"Формат файла: §.\",\n\t\t\t163: \"Форматы файлов: § и §.\",\n\t\t\t164: \"Максимальный размер: § Мб.\",\n\t\t\t166: \"§ Мб\",\n\t\t\t181: \"§% - § Кб/s - осталось § минут\",\n\t\t\t182: \"§% - § Кб/s - осталось § минут\",\n\t\t\t183: \"§% - § Кб/s - осталось § секунд\",\n\t\t\t184: \"§% - § Кб/s\",\n\t\t\t185: \"§% - § Кб/s за § минут\",\n\t\t\t186: \"§% - § Кб/s за § минут\",\n\t\t\t187: \"§% - § Кб/s за § секунд\",\n\t\t\t188: \"§% - § Кб/s\",\n\t\t\t192: \"Вы уверены? [span]Да[/span] - нет\",\n\t\t\t193: \"Кажется произошла не предусмотренная ошибка... Попробуйте еще раз.\",\n\t\t\t194: \"Возникла ошибка при отправке файла.\",\n\t\t\t195: \"Возникла ошибка при обработке файла.\"\n\t\t},\n\t\tsk: {\n\t\t\t103: \"Zrušiť\",\n\t\t\t104: \"Potvrdiť\",\n\t\t\t105: \"Zavrieť\",\n\t\t\t106: \"Dozadu\",\n\t\t\t107: \"Ďalej\",\n\t\t\t108: \"Zvoľte si súbor\",\n\t\t\t133: \"zvuková stopa\",\n\t\t\t134: \"titulky\",\n\t\t\t135: \"vypnuté\",\n\t\t\t142: \"dozadu/ďalej\",\n\t\t\t143: \"prehrať/pozastaviť\",\n\t\t\t144: \"dozadu/dopredu\",\n\t\t\t145: \"znizit/zvysit hlasitost\",\n\t\t\t146: \"stlmiť\",\n\t\t\t148: \"koniec\",\n\t\t\t150: \"Esc\"\n\t\t},\n\t\ttr: {\n\t\t\t102: \"Tamam\",\n\t\t\t103: \"İptal\",\n\t\t\t104: \"Onayla\",\n\t\t\t105: \"Kapat\",\n\t\t\t106: \"Önceki\",\n\t\t\t107: \"Sonraki\",\n\t\t\t108: \"Bir dosya seçin\",\n\t\t\t131: \"görüntü\",\n\t\t\t132: \"görüntü kaydı\",\n\t\t\t133: \"ses kaydı\",\n\t\t\t134: \"altyazılar\",\n\t\t\t135: \"kapalı\",\n\t\t\t142: \"önceki/sonraki\",\n\t\t\t143: \"duraklatma/oynatma\",\n\t\t\t144: \"geri/i̇leri\",\n\t\t\t145: \"ses kısar/açar\",\n\t\t\t146: \"sesi kapatma\",\n\t\t\t147: \"tam ekran\",\n\t\t\t148: \"çıkış\",\n\t\t\t149: \"Son\",\n\t\t\t150: \"Esc\",\n\t\t\t192: \"Emin misiniz ? [span]Evet[/span] - Hayır\"\n\t\t},\n\t\tuk: {\n\t\t\t102: \"Гаразд\",\n\t\t\t103: \"Відмінити\",\n\t\t\t104: \"Підтвердити\",\n\t\t\t105: \"Закрити\",\n\t\t\t106: \"Попередній\",\n\t\t\t107: \"Наступний\",\n\t\t\t108: \"Вибрати файл\",\n\t\t\t131: \"відео\",\n\t\t\t132: \"відеодоріжка\",\n\t\t\t133: \"звукова доріжка\",\n\t\t\t134: \"субтитри\",\n\t\t\t135: \"вимкнено\",\n\t\t\t142: \"попередній/наступний\",\n\t\t\t143: \"відтворити/призупинити\",\n\t\t\t144: \"назад/вперед\",\n\t\t\t145: \"зменшити/збільшити гучність\",\n\t\t\t146: \"вимкнути звук\",\n\t\t\t148: \"вийти\",\n\t\t\t149: \"Кінець\",\n\t\t\t150: \"Esc\",\n\t\t\t166: \"§ МБ\",\n\t\t\t184: \"§% - § кБ/s\"\n\t\t},\n\t\tzh: {\n\t\t\t102: \"确定\",\n\t\t\t103: \"取消\",\n\t\t\t104: \"确认\",\n\t\t\t105: \"关闭\",\n\t\t\t106: \"上一个\",\n\t\t\t107: \"下一个\",\n\t\t\t108: \"选择文件\",\n\t\t\t131: \"视频\",\n\t\t\t132: \"视频轨道\",\n\t\t\t133: \"音频轨道\",\n\t\t\t134: \"字幕\",\n\t\t\t135: \"关\",\n\t\t\t142: \"上一个/下一个\",\n\t\t\t143: \"播放/暂停\",\n\t\t\t144: \"快退/快进\",\n\t\t\t145: \"音量减/增\",\n\t\t\t146: \"静音\",\n\t\t\t147: \"全屏\",\n\t\t\t148: \"退出\",\n\t\t\t150: \"Esc\",\n\t\t\t192: \"您确定吗?[span]是[/span] - 否\"\n\t\t}\n\t\t// auto end\n\t};\n\n\tthis.init = function () {\n\n\t\tvar value = apijs.config.lang, html = document.querySelector('html');\n\n\t\tif (value.indexOf('auto') > -1) {\n\t\t\tvalue = html.getAttribute('xml:lang') || html.getAttribute('lang'); // pt-BR fr-FR\n\t\t\tif (typeof value == 'string') {\n\t\t\t\tvalue = value.replace(/[-_]/g, '').toLowerCase();\n\t\t\t\tvalue = value.slice(0, 4); // ptbr frfr\n\t\t\t\tif (!this.data.hasOwnProperty(value))\n\t\t\t\t\tvalue = value.slice(0, 2); // pt fr\n\t\t\t\tif (this.data.hasOwnProperty(value))\n\t\t\t\t\tapijs.config.lang = value;\n\t\t\t}\n\t\t}\n\n\t\tif (!this.data.hasOwnProperty(value))\n\t\t\tapijs.config.lang = 'en';\n\t};\n\n\n\t// TRADUIT (public return string|domelement|boolean)\n\n\tthis.translate = function (word) {\n\n\t\tvar lang = apijs.config.lang, idx = 1, translation = '';\n\n\t\t// mot clef inexistant dans la langue configurée\n\t\t// test avec la langue par défaut pour éventuellement continuer\n\t\tif (typeof this.data[lang][word] != 'string') {\n\t\t\tif ((lang.length > 3) && (typeof this.data[lang.slice(0, 2)][word] == 'string'))\n\t\t\t\tlang = lang.slice(0, 2);\n\t\t\telse if ((lang !== 'en') && (typeof this.data.en[word] == 'string'))\n\t\t\t\tlang = 'en';\n\t\t\telse\n\t\t\t\treturn word;\n\t\t}\n\n\t\t// chaîne de caractères configurable\n\t\tif (arguments.length > 1) {\n\t\t\tthis.data[lang][word].split('§').forEach(function (data) {\n\t\t\t\ttranslation += (idx < this.length) ? data + this[idx++] : data;\n\t\t\t}, arguments); // pour que ci-dessus this = arguments\n\t\t\treturn translation;\n\t\t}\n\n\t\t// chaîne de caractères simple\n\t\treturn this.data[lang][word];\n\t};\n\n\tthis.translateNode = function () {\n\n\t\t// apply fait une copie des arguments\n\t\t// c'est comme si on avait appelé this.translate directement\n\t\treturn document.createTextNode(this.translate.apply(this, arguments));\n\t};\n\n\tthis.changeLang = function (lang) {\n\n\t\tif (typeof lang == 'string') {\n\n\t\t\tif (lang.indexOf('auto') > -1) {\n\t\t\t\tapijs.config.lang = 'auto';\n\t\t\t\tthis.init();\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tlang = lang.replace(/[-_]/g, '');\n\n\t\t\tif (this.data.hasOwnProperty(lang)) {\n\t\t\t\tapijs.config.lang = lang;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t};\n};","/**\n * Created L/02/03/2020\n * Updated L/02/03/2020\n *\n * Copyright 2008-2020 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.select = function () {\n\n\t\"use strict\";\n\n\tthis.init = function () {\n\n\t};\n};","/**\n * Created D/11/01/2015\n * Updated D/03/12/2023\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.player = function (video, url) {\n\n\t\"use strict\";\n\tthis.video = video;\n\tthis.stalled = false;\n\tthis.subload = false;\n\n\n\t// GÉNÉRATION DES ÉLÉMENTS (private return this|void|domelement)\n\n\tthis.autoRun = function (video, url) { // todo\n\n\t\tvideo.removeAttribute('src');\n\t\tvideo.removeAttribute('data-src');\n\t\tvideo.removeAttribute('controls');\n\t\tvideo.classList.add('apijsplayer');\n\n\t\t// @see https://developer.mozilla.org/fr/docs/Web/Guide/DOM/Events/evenement_medias\n\t\tvideo.onloadedmetadata = function (ev) {\n\t\t\tthis.stalled = false;\n\t\t\tthis.onTimeupdate(ev);\n\t\t\tthis.onProgress(ev);\n\t\t\tthis.onVideotrack();\n\t\t\tthis.onAudiotrack();\n\t\t}.bind(this);\n\t\tvideo.onstalled = function (ev) {\n\t\t\tthis.stalled = true;\n\t\t\tthis.onWaiting(ev);\n\t\t}.bind(this);\n\t\tvideo.onplaying = this.onPlay.bind(this);\n\t\tvideo.onpause = this.onPlay.bind(this);\n\t\tvideo.onended = this.onPlay.bind(this);\n\t\tvideo.onprogress = this.onProgress.bind(this);\n\t\tvideo.ontimeupdate = this.onTimeupdate.bind(this);\n\t\tvideo.onseeking = this.onTimeupdate.bind(this);\n\t\tvideo.onseeked = this.onWaiting.bind(this);\n\t\tvideo.onwaiting = this.onWaiting.bind(this);\n\t\tvideo.onloadstart = this.onWaiting.bind(this);\n\t\tvideo.oncanplay = this.onWaiting.bind(this);\n\t\tvideo.onclick = this.actionPlay.bind(this);\n\t\tvideo.onvolumechange = this.actionVolume.bind(this);\n\t\tvideo.ondurationchange = apijs.dialog.onMediaLoad;\n\t\tvideo.onerror = apijs.dialog.onMediaLoad;\n\n\t\t// ajoute les contrôles\n\t\tvideo.parentNode.appendChild(this.htmlSvgPlayer());\n\n\t\t// charge les sources\n\t\tif (url.indexOf('m3u') < 0) {\n\t\t\tvideo.appendChild(this.htmlSource(url));\n\t\t\treturn this;\n\t\t}\n\n\t\tvar xhr = new XMLHttpRequest();\n\t\txhr.open('GET', url, true);\n\t\txhr.onreadystatechange = function () {\n\t\t\tif (xhr.readyState === 4) {\n\t\t\t\tself.dispatchEvent(new CustomEvent('apijsajaxresponse', { detail: { from: 'apijsplayer.init', xhr: xhr } }));\n\t\t\t\tif (!video || (video.childNodes.length > 0)) {\n\t\t\t\t\txhr.abort();\n\t\t\t\t}\n\t\t\t\telse if ([0, 200].has(xhr.status)) {\n\n\t\t\t\t\tvar url, txt = 0, nbv = 0, nbt = 0, data = xhr.responseText.trim().split(\"\\n\");\n\t\t\t\t\twhile (typeof (url = data.shift()) == 'string') {\n\n\t\t\t\t\t\t// #APIJS#attr|name|value\n\t\t\t\t\t\tif (url.indexOf('#APIJS#attr') === 0) {\n\t\t\t\t\t\t\ttxt = url.split('|');\n\t\t\t\t\t\t\tvideo.setAttribute(txt[1], txt[2]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// #APIJS#track|kind|label|srclang|src\n\t\t\t\t\t\telse if (url.indexOf('#APIJS#track|subtitles') === 0) {\n\t\t\t\t\t\t\ttxt = url.split('|');\n\t\t\t\t\t\t\tthis.html('.tracks.texttrack select').appendChild(this.htmlOption(nbt++, txt[3] + ' - ' + txt[2]));\n\t\t\t\t\t\t\tvideo.appendChild(this.htmlTrack(txt));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// #EXTINF: Text\n\t\t\t\t\t\telse if (url.indexOf('#EXTINF') === 0) {\n\t\t\t\t\t\t\ttxt = url.replace(/#EXTINF:\\d+,/, '');\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// http\n\t\t\t\t\t\telse if ((url.length > 5) && (url[0] !== '#')) {\n\t\t\t\t\t\t\tthis.html('.tracks.video select').appendChild(this.htmlOption(nbv++, (typeof txt == 'string') ? txt : nbv));\n\t\t\t\t\t\t\tvideo.appendChild(this.htmlSource(url));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.updateSelect('video', nbv);\n\t\t\t\t\tif (typeof video.textTracks == 'object')\n\t\t\t\t\t\tthis.updateSelect('texttrack', video.textTracks.length || nbt);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tapijs.dialog.onMediaLoad({ type: 'error' });\n\t\t\t\t}\n\t\t\t}\n\t\t}.bind(this);\n\t\txhr.send();\n\n\t\treturn this;\n\t};\n\n\tthis.updateSelect = function (css, total) {\n\n\t\t// s'il y une seule option on affiche pas, sauf pour les sous titres\n\t\tvar adjust = (css === 'texttrack') ? 1 : 0;\n\t\tif (total > adjust) {\n\t\t\tthis.html('.tracks.' + css).removeAttribute('style');\n\t\t\tthis.html('.tracks.' + css + ' em').textContent = '(' + total + ')';\n\t\t\tthis.html('.tracks.' + css + ' select').setAttribute('size', (total < 10) ? total + adjust : 10);\n\t\t}\n\t\telse {\n\t\t\tthis.html('.tracks.' + css).setAttribute('style', 'display:none;');\n\t\t\tthis.html('.tracks.' + css + ' select').innerHTML = '';\n\t\t}\n\t};\n\n\tthis.html = function (selector) {\n\t\treturn this.video.parentNode.querySelector(selector);\n\t};\n\n\n\t// GESTION DES ÉVÉNEMENTS (private return void)\n\n\tthis.onVideotrack = function () {\n\n\t\tvar tracks = this.video.videoTracks, select = this.html('.tracks.videotrack select'), lang = apijs.config.lang, auto = -1, idx;\n\n\t\tif (typeof tracks == 'object') {\n\n\t\t\t// si la vidéo contient plusieurs pistes vidéo\n\t\t\t// @see https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack\n\t\t\tif (tracks.length > 1) {\n\t\t\t\tfor (idx = 0; idx < tracks.length; idx++) {\n\t\t\t\t\tif (tracks[idx].language && (tracks[idx].language.toLowerCase().replace(/[-_]/g, '').indexOf(lang) == 0))\n\t\t\t\t\t\tauto = (auto < 0) ? idx : auto;\n\t\t\t\t\tselect.appendChild(this.htmlOption(idx, tracks[idx]));\n\t\t\t\t}\n\t\t\t\tthis.updateSelect('videotrack', tracks.length);\n\t\t\t}\n\n\t\t\t// sélectionne éventuellement la piste dans la bonne langue\n\t\t\tselect.selectedIndex = Math.max(0, auto);\n\t\t\tif (auto >= 0)\n\t\t\t\tthis.actionVideotrack(auto);\n\t\t}\n\t};\n\n\tthis.onAudiotrack = function () {\n\n\t\tvar tracks = this.video.audioTracks, select = this.html('.tracks.audiotrack select'), lang = apijs.config.lang, auto = -1, idx;\n\n\t\tif (typeof tracks == 'object') {\n\n\t\t\t// si la vidéo contient plusieurs pistes audio\n\t\t\t// @see https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack\n\t\t\tif (tracks.length > 1) {\n\t\t\t\tfor (idx = 0; idx < tracks.length; idx++) {\n\t\t\t\t\tif (tracks[idx].language && (tracks[idx].language.toLowerCase().replace(/[-_]/g, '').indexOf(lang) == 0))\n\t\t\t\t\t\tauto = (auto < 0) ? idx : auto;\n\t\t\t\t\tselect.appendChild(this.htmlOption(idx, tracks[idx]));\n\t\t\t\t}\n\t\t\t\tthis.updateSelect('audiotrack', tracks.length);\n\t\t\t}\n\n\t\t\t// sélectionne éventuellement la piste dans la bonne langue\n\t\t\tselect.selectedIndex = Math.max(0, auto);\n\t\t\tif (auto >= 0)\n\t\t\t\tthis.actionAudiotrack(auto);\n\t\t}\n\t};\n\n\tthis.onTimeupdate = function (ev) {\n\n\t\tvar time = this.video.currentTime, duration = this.video.duration, text = '--:--', hh, mm, ss;\n\n\t\tif (!isNaN(time) && (duration !== Infinity) && !isNaN(duration)) {\n\n\t\t\thh = Math.floor(time / 3600);\n\t\t\tmm = Math.floor((time % 3600) / 60);\n\t\t\tss = Math.floor(time % 60);\n\t\t\tif (ss < 10) ss = '0' + ss;\n\t\t\tif (mm < 10) mm = '0' + mm;\n\n\t\t\thh = (hh > 0) ? hh + ':' : '';\n\t\t\ttext = hh + mm + ':' + ss;\n\n\t\t\thh = Math.floor(duration / 3600);\n\t\t\tmm = Math.floor((duration % 3600) / 60);\n\t\t\tss = Math.floor(duration % 60);\n\t\t\tif (ss < 10) ss = '0' + ss;\n\t\t\tif (mm < 10) mm = '0' + mm;\n\n\t\t\thh = (hh > 0) ? hh + ':' : '';\n\t\t\ttext += ' / ' + hh + mm + ':' + ss;\n\n\t\t\tthis.html('svg.bar rect').style.width = (time / duration * 100) + '%';\n\t\t}\n\n\t\tthis.html('span.time').textContent = text;\n\n\t\t// loader stalled sauf par les tracks\n\t\tif (this.stalled && !this.subload) {\n\t\t\tthis.stalled = false;\n\t\t\tthis.onWaiting(ev);\n\t\t}\n\t};\n\n\tthis.onProgress = function () {\n\n\t\tvar video = this.video, elem = this.html('svg.bar'), idx = video.buffered.length, width, buffer;\n\n\t\tif ((idx > 0) && (video.duration !== Infinity) && !isNaN(video.duration)) {\n\n\t\t\telem.querySelectorAll('.buffer').forEach(function (node) { node.remove(); });\n\t\t\twhile (idx-- > 0) {\n\n\t\t\t\tbuffer = document.createElement('rect');\n\t\t\t\tbuffer.setAttribute('class', 'buffer');\n\n\t\t\t\twidth = (video.buffered.end(idx) - video.buffered.start(idx)) / video.duration * 100;\n\t\t\t\tif (width > 99.8)\n\t\t\t\t\tbuffer.setAttribute('style', 'left:0%; width:100%;');\n\t\t\t\telse\n\t\t\t\t\tbuffer.setAttribute('style', 'left:' + (video.buffered.start(idx) / video.duration * 100) + '%; width:' + width + '%;');\n\n\t\t\t\telem.appendChild(buffer);\n\t\t\t}\n\t\t}\n\t};\n\n\tthis.onPlay = function () { // todo\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(this.video.networkState)) {\n\n\t\t\tif (this.video.paused) {\n\t\t\t\tthis.html('span.play').textContent = '\\uE810';\n\t\t\t\t// via un dialogue ou en direct\n\t\t\t\tif (apijs.dialog.t1)\n\t\t\t\t\tapijs.dialog.remove('playing');\n\t\t\t\telse\n\t\t\t\t\tthis.video.parentNode.classList.remove('playing');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.html('span.play').textContent = '\\uE811';\n\t\t\t\t// via un dialogue ou en direct\n\t\t\t\tif (apijs.dialog.t1)\n\t\t\t\t\tapijs.dialog.add('playing');\n\t\t\t\telse\n\t\t\t\t\tthis.video.parentNode.classList.add('playing');\n\t\t\t}\n\t\t}\n\t};\n\n\tthis.onWaiting = function (ev) { // todo\n\t\tapijs.log('player:video:onWaiting:' + ev.type + ' stalled:' + this.stalled + '/subload:' + this.subload);\n\t\tapijs.dialog[['loadstart', 'waiting', 'seeking', 'stalled'].has(ev.type) ? 'add' : 'remove']('loading');\n\t};\n\n\n\t// GESTION DES INTERACTIONS (private return void)\n\n\tthis.actionPlay = function () {\n\n\t\tvar video = this.video;\n\n\t\t// ignore le clic du swipe en mode slideshow\n\t\tif (apijs.dialog.swipe)\n\t\t\treturn false;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(video.networkState)) {\n\t\t\tif (video.ended || video.paused)\n\t\t\t\tvideo.play();\n\t\t\telse\n\t\t\t\tvideo.pause();\n\t\t}\n\t};\n\n\tthis.actionVolume = function (ev) {\n\n\t\tvar video = this.video, elem = this.html('svg.vol'), width = elem.offsetWidth, value = 0;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(video.networkState)) {\n\n\t\t\tif ((typeof ev == 'object') && !isNaN(ev.clientX)) {\n\n\t\t\t\tdo { value += elem.offsetLeft; }\n\t\t\t\twhile (elem = elem.offsetParent);\n\n\t\t\t\tvalue = ((ev.clientX - value) * 100 / width) / 100;\n\t\t\t\tvalue = (value < 0.2) ? 0 : ((value > 0.92) ? 1 : value);\n\n\t\t\t\t//if (self.getComputedStyle(this.html('svg.vol')).direction === 'rtl')\n\t\t\t\t//\tvalue = 1 - value;\n\n\t\t\t\tvideo.volume = value;\n\t\t\t\tvideo.muted = false;\n\t\t\t}\n\n\t\t\tthis.html('svg.vol rect').style.width = video.muted ? 0 : (video.volume * 100) + '%';\n\t\t}\n\t};\n\n\tthis.actionPosition = function (ev) {\n\n\t\tvar video = this.video, elem = this.html('svg.bar'), width = elem.offsetWidth, value = 0;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif (([1,2].has(video.networkState)) && (video.duration !== Infinity) && !isNaN(video.duration) && (typeof ev == 'object')) {\n\n\t\t\tdo { value += elem.offsetLeft; }\n\t\t\twhile (elem = elem.offsetParent);\n\n\t\t\tvalue = (video.duration * (ev.clientX - value) * 100 / width) / 100;\n\t\t\tvalue = (value <= 1) ? 0 : value;\n\n\t\t\t//if (self.getComputedStyle(this.html('svg.vol')).direction === 'rtl')\n\t\t\t//\tvalue = video.duration - value;\n\n\t\t\tvideo.currentTime = value;\n\t\t}\n\t};\n\n\tthis.actionVideotrack = function (ev) {\n\n\t\tvar tracks = this.video.videoTracks, value = (typeof ev == 'object') ? ev.target.value : ev, idx;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(this.video.networkState)) {\n\n\t\t\tfor (idx = 0; idx < tracks.length; idx++)\n\t\t\t\ttracks[idx].enabled = (idx == value);\n\n\t\t\tvideo.currentTime -= 1;\n\t\t}\n\n\t\tif (typeof ev == 'object')\n\t\t\tev.target.blur();\n\t};\n\n\tthis.actionAudiotrack = function (ev) {\n\n\t\tvar tracks = this.video.audioTracks, value = (typeof ev == 'object') ? ev.target.value : ev, idx;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(this.video.networkState)) {\n\n\t\t\tfor (idx = 0; idx < tracks.length; idx++)\n\t\t\t\ttracks[idx].enabled = (idx == value);\n\n\t\t\tvideo.currentTime -= 1;\n\t\t}\n\n\t\tif (typeof ev == 'object')\n\t\t\tev.target.blur();\n\t};\n\n\tthis.actionTexttrack = function (ev) {\n\n\t\tvar tracks = this.video.textTracks, value = (typeof ev == 'object') ? ev.target.value : ev, idx;\n\n\t\t// NETWORK_IDLE, NETWORK_LOADING\n\t\tif ([1,2].has(this.video.networkState)) {\n\n\t\t\tfor (idx = 0; idx < tracks.length; idx++)\n\t\t\t\ttracks[idx].mode = (idx == value) ? 'showing' : 'hidden';\n\n\t\t\tthis.subload = true;\n\t\t}\n\n\t\tif (typeof ev == 'object')\n\t\t\tev.target.blur();\n\t};\n\n\tthis.actionVideo = function (ev) {\n\n\t\tthis.html('svg.bar rect').style.width = '0';\n\t\tthis.html('svg.bar').querySelectorAll('.buffer').forEach(function (node) { node.remove(); });\n\t\tthis.html('span.play').textContent = '\\uE810';\n\n\t\tthis.updateSelect('videotrack', 0);\n\t\tthis.updateSelect('audiotrack', 0);\n\n\t\tthis.video.src = this.video.querySelectorAll('source')[(typeof ev == 'object') ? ev.target.value : ev].src;\n\t\tif (typeof ev == 'object')\n\t\t\tev.target.blur();\n\t};\n\n\tthis.actionFullscreen = function () {\n\n\t\t// en direct\n\t\tvar res = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement;\n\t\tthis.video.parentNode.classList[res ? 'add' : 'remove']('fullscreen');\n\t},\n\n\n\t// GÉNÉRATION DES ÉLÉMENTS (private return domelement)\n\n\tthis.htmlSvgPlayer = function () {\n\n\t\tvar d, c, b, a = document.createElement('div');\n\t\ta.setAttribute('class', 'apijsplayer noplaying');\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'btn play fnt');\n\t\t\tb.appendChild(document.createTextNode('\\uE810'));\n\t\t\tb.onclick = this.actionPlay.bind(this);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'svg bar');\n\n\t\t\t\tc = document.createElement('svg');\n\t\t\t\tc.setAttribute('class', 'bar');\n\t\t\t\tc.onclick = this.actionPosition.bind(this);\n\n\t\t\t\t\td = document.createElement('rect');\n\n\t\t\t\tc.appendChild(d);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'time');\n\t\t\tb.appendChild(document.createTextNode('--:--'));\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'svg vol');\n\n\t\t\t\tc = document.createElement('svg');\n\t\t\t\tc.setAttribute('class', 'vol');\n\t\t\t\tc.onclick = this.actionVolume.bind(this);\n\n\t\t\t\t\td = document.createElement('rect');\n\n\t\t\t\tc.appendChild(d);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('label');\n\t\t\tb.setAttribute('class', 'tracks audiotrack');\n\t\t\tb.setAttribute('style', 'display:none;');\n\t\t\tb.appendChild(apijs.i18n.translateNode(133));\n\n\t\t\t\tc = document.createElement('em');\n\n\t\t\tb.appendChild(c);\n\n\t\t\t\tc = document.createElement('select');\n\t\t\t\tc.setAttribute('lang', 'mul');\n\t\t\t\tc.onchange = this.actionAudiotrack.bind(this);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('label');\n\t\t\tb.setAttribute('class', 'tracks videotrack');\n\t\t\tb.setAttribute('style', 'display:none;');\n\t\t\tb.appendChild(apijs.i18n.translateNode(132));\n\n\t\t\t\tc = document.createElement('em');\n\n\t\t\tb.appendChild(c);\n\n\t\t\t\tc = document.createElement('select');\n\t\t\t\tc.setAttribute('lang', 'mul');\n\t\t\t\tc.onchange = this.actionVideotrack.bind(this);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('label');\n\t\t\tb.setAttribute('class', 'tracks video');\n\t\t\tb.setAttribute('style', 'display:none;');\n\t\t\tb.appendChild(apijs.i18n.translateNode(131));\n\n\t\t\t\tc = document.createElement('em');\n\n\t\t\tb.appendChild(c);\n\n\t\t\t\tc = document.createElement('select');\n\t\t\t\tc.setAttribute('lang', 'mul');\n\t\t\t\tc.onchange = this.actionVideo.bind(this);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('label');\n\t\t\tb.setAttribute('class', 'tracks texttrack');\n\t\t\tb.setAttribute('style', 'display:none;');\n\t\t\tb.appendChild(apijs.i18n.translateNode(134));\n\n\t\t\t\tc = document.createElement('em');\n\n\t\t\tb.appendChild(c);\n\n\t\t\t\tc = document.createElement('select');\n\t\t\t\tc.setAttribute('lang', 'mul');\n\t\t\t\tc.onchange = this.actionTexttrack.bind(this);\n\n\t\t\t\t\td = document.createElement('option');\n\t\t\t\t\td.appendChild(apijs.i18n.translateNode(135)); // off\n\n\t\t\t\tc.appendChild(d);\n\n\t\t\tb.appendChild(c);\n\n\t\ta.appendChild(b);\n\n\t\t\tb = document.createElement('span');\n\t\t\tb.setAttribute('class', 'btn full fnt');\n\t\t\tb.appendChild(document.createTextNode('\\uE80F'));\n\t\t\tb.onclick = function () {\n\t\t\t\t// via un dialogue ou en direct\n\t\t\t\tif (apijs.dialog.t1) {\n\t\t\t\t\tapijs.requestFullscreen(apijs.dialog.t1);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (document.webkitFullscreenEnabled)\n\t\t\t\t\t\tdocument.addEventListener('webkitfullscreenchange', this.actionFullscreen.bind(this));\n\t\t\t\t\telse if (document.fullscreenEnabled)\n\t\t\t\t\t\tdocument.addEventListener('fullscreenchange', this.actionFullscreen.bind(this));\n\t\t\t\t\telse if (document.mozFullScreenEnabled)\n\t\t\t\t\t\tdocument.addEventListener('mozfullscreenchange', this.actionFullscreen.bind(this));\n\t\t\t\t\tapijs.requestFullscreen(this.video.parentNode);\n\t\t\t\t}\n\n\t\t\t}.bind(this);\n\n\t\ta.appendChild(b);\n\n\t\treturn a;\n\t};\n\n\tthis.htmlTrack = function (data) { // todo\n\n\t\tvar a = document.createElement('track');\n\t\ta.setAttribute('kind', data[1]);\n\t\ta.setAttribute('label', data[2]);\n\t\ta.setAttribute('srclang', data[3]);\n\t\ta.setAttribute('src', data[4]);\n\n\t\ta.onload = function (ev) {\n\t\t\tapijs.log('player:track:onload ' + ev.target.src.slice(ev.target.src.lastIndexOf('/') + 1));\n\t\t\tif (ev.target.track.mode === 'showing') {\n\t\t\t\tthis.onWaiting(ev);\n\t\t\t\tthis.subload = false;\n\t\t\t}\n\t\t}.bind(this);\n\n\t\ta.onerror = function (ev) {\n\t\t\tapijs.log('player:track:onerror ' + ev.target.src.slice(ev.target.src.lastIndexOf('/') + 1));\n\t\t\tif (ev.target.track.mode === 'showing') {\n\t\t\t\tthis.onWaiting(ev);\n\t\t\t\tthis.subload = false;\n\t\t\t}\n\t\t}.bind(this);\n\n\t\treturn a;\n\t};\n\n\tthis.htmlSource = function (url) {\n\n\t\tvar a = document.createElement('source');\n\t\ta.setAttribute('src', url);\n\t\ta.onerror = apijs.dialog.onMediaLoad;\n\n\t\treturn a;\n\t};\n\n\tthis.htmlOption = function (idx, txt) {\n\n\t\tif (typeof txt == 'object')\n\t\t\ttxt = (txt.label === '') ? txt.language.toLowerCase() : txt.language.toLowerCase() + ' - ' + txt.label;\n\n\t\tvar a = document.createElement('option');\n\t\ta.setAttribute('value', idx);\n\t\ta.appendChild(document.createTextNode(txt));\n\n\t\treturn a;\n\t};\n\n\n\tthis.autoRun(video, url);\n};","/**\n * Created D/12/04/2009\n * Updated D/03/12/2023\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.dialog = function () {\n\n\t\"use strict\";\n\tthis.klass = [];\n\tthis.height = 0;\n\tthis.scroll = 0; // time\n\tthis.callback = null;\n\tthis.args = null;\n\tthis.xhr = null;\n\n\tthis.ft = /information|confirmation|options|upload|progress|waiting|photo|video|iframe|ajax|start|ready|end|reduce|mobile|tiny|fullscreen/g;\n\tthis.ti = 'a,area,button,input,textarea,select,object,iframe';\n\tthis.ns = 'http://www.w3.org/2000/svg';\n\n\tthis.swipe = false;\n\tthis.media = null;\n\tthis.t0 = null; // fragment\n\tthis.t1 = null; // div id=apijsDialog\n\tthis.t2 = null; // div/form id=apijsBox\n\tthis.t3 = null; // input file\n\tthis.a = null;\n\tthis.b = null;\n\tthis.c = null;\n\n\n\t// GÉNÉRATION DES BOÎTES DE DIALOGUE (public return boolean)\n\n\tthis.dialogInformation = function (title, text, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string')) {\n\t\t\treturn this.init('information', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlBtnOk()\n\t\t\t\t.show('button.confirm');\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogInformation invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogConfirmation = function (title, text, callback, args, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string') && (typeof callback == 'function')) {\n\t\t\tthis.callback = callback;\n\t\t\tthis.args = args;\n\t\t\treturn this.init('confirmation', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlBtnConfirm('button', 'apijs.dialog.actionConfirm();')\n\t\t\t\t.show('button.confirm');\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogConfirmation invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogFormOptions = function (title, text, action, callback, args, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string') && (typeof action == 'string') && (typeof callback == 'function')) {\n\t\t\tthis.callback = callback;\n\t\t\tthis.args = args;\n\t\t\treturn this.init('options', icon)\n\t\t\t\t.htmlParent(action, 'apijs.dialog.actionConfirm();')\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlBtnConfirm('submit')\n\t\t\t\t.show(true);\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogFormOptions invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogFormUpload = function (title, text, action, input, multiple, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string') && (typeof action == 'string') && (typeof input == 'string')) {\n\t\t\treturn this.init('upload', icon)\n\t\t\t\t.htmlParent(action, 'apijs.upload.actionConfirm();', 'apijs.upload.actionDrag(event);')\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlUpload(input, (typeof multiple == 'boolean') ? multiple : false, 'apijs.upload.actionChoose(this);')\n\t\t\t\t.htmlBtnConfirm('submit')\n\t\t\t\t.show('button.browse');\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogFormUpload invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogProgress = function (title, text, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string')) {\n\t\t\treturn this.init('progress', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlSvgProgress()\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogProgress invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogWaiting = function (title, text, icon) {\n\n\t\tif ((typeof title == 'string') && (typeof text == 'string')) {\n\t\t\treturn this.init('waiting', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlContent(title, text)\n\t\t\t\t.htmlSvgLoader(false)\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogWaiting invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogPhoto = function (url, name, date, legend, icon) {\n\n\t\tvar slideshow = (typeof icon == 'string');\n\t\ticon = slideshow ? 'notransition slideshow loading ' + icon : 'notransition loading';\n\n\t\tif ((typeof url == 'string') && (typeof name == 'string') && (typeof date == 'string') && (typeof legend == 'string')) {\n\t\t\treturn this.init('photo', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlMedia(url, name, date, legend)\n\t\t\t\t.htmlHelp(slideshow, false)\n\t\t\t\t.htmlBtnClose()\n\t\t\t\t.htmlBtnNavigation()\n\t\t\t\t.htmlSvgLoader()\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogPhoto invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogVideo = function (url, name, date, legend, icon) {\n\n\t\tvar slideshow = (typeof icon == 'string');\n\t\ticon = slideshow ? 'notransition slideshow loading ' + icon : 'notransition loading';\n\n\t\tif ((typeof url == 'string') && (typeof name == 'string') && (typeof date == 'string') && (typeof legend == 'string')) {\n\t\t\treturn this.init('video', icon)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlMedia(url, name, date, legend)\n\t\t\t\t.htmlHelp(slideshow, url.indexOf('iframe') < 0) // true si pas iframe\n\t\t\t\t.htmlBtnClose()\n\t\t\t\t.htmlBtnNavigation()\n\t\t\t\t.htmlSvgLoader()\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogVideo invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogIframe = function (url, close, icon) {\n\n\t\tif ((typeof url == 'string') && (typeof close == 'boolean')) {\n\t\t\treturn this.init('iframe', (typeof icon == 'string') ? icon + ' loading' : 'loading', !close)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlIframe(url)\n\t\t\t\t.htmlBtnClose(close)\n\t\t\t\t.htmlSvgLoader(false)\n\t\t\t\t.show();\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogIframe invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\tthis.dialogAjax = function (url, close, callback, args, icon) {\n\n\t\tif ((typeof url == 'string') && (typeof close == 'boolean') && (typeof callback == 'function')) {\n\t\t\t// dialogue\n\t\t\tthis.callback = callback;\n\t\t\tthis.args = args;\n\t\t\tthis.init('ajax', (typeof icon == 'string') ? icon + ' loading' : 'loading', !close)\n\t\t\t\t.htmlParent()\n\t\t\t\t.htmlBtnClose(close)\n\t\t\t\t.htmlSvgLoader(false)\n\t\t\t\t.show();\n\t\t\t// ajax\n\t\t\tthis.xhr = new XMLHttpRequest();\n\t\t\tthis.xhr.open('GET', url, true);\n\t\t\tthis.xhr.onreadystatechange = function () {\n\t\t\t\tif ((this.xhr.readyState === 4) && (typeof this.callback == 'function')) {\n\t\t\t\t\tthis.callback(this.xhr, this.args);\n\t\t\t\t\tthis.remove('loading');\n\t\t\t\t}\n\t\t\t}.bind(this); // pour que ci-dessus this = this\n\t\t\tthis.xhr.send();\n\t\t\treturn this;\n\t\t}\n\n\t\tconsole.error('apijs.dialog.dialogAjax invalid arguments', arguments);\n\t\treturn false;\n\t};\n\n\n\t// GESTION DES CLASSES CSS (public sauf update private, return this sauf has return true)\n\n\tthis.update = function () {\n\n\t\t// il n'est pas question de mettre à jour les attributs class sans l'une des 3 classes de base\n\t\tif (this.has('start', 'ready', 'end')) {\n\t\t\tif (this.t1)\n\t\t\t\tthis.t1.setAttribute('class', this.klass.join(' '));\n\t\t\tif (this.t2)\n\t\t\t\tthis.t2.setAttribute('class', this.klass.join(' '));\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.add = function () {\n\n\t\tArray.prototype.forEach.call(arguments, function (css) {\n\t\t\tif (typeof css != 'string')\n\t\t\t\tconsole.error('apijs.dialog.add argument is not a string', css);\n\t\t\tif (this.klass.indexOf(css) < 0)\n\t\t\t\tthis.klass.push(css);\n\t\t}, this); // pour que ci-dessus this = this\n\n\t\treturn this.update();\n\t};\n\n\tthis.remove = function () {\n\n\t\tArray.prototype.forEach.call(arguments, function (css) {\n\t\t\tif (typeof css != 'string')\n\t\t\t\tconsole.error('apijs.dialog.remove argument is not a string', css);\n\t\t\tif (this.klass.indexOf(css) > -1)\n\t\t\t\tthis.klass.splice(this.klass.indexOf(css), 1);\n\t\t}, this); // pour que ci-dessus this = this\n\n\t\treturn this.update();\n\t};\n\n\tthis.toggle = function (search, replace) {\n\n\t\tif ((typeof search != 'string') || (typeof replace != 'string'))\n\t\t\tconsole.error('apijs.dialog.toggle argument is not a string', search, replace);\n\n\t\tif (this.has(search))\n\t\t\tthis.remove(search);\n\t\tif (!this.has(replace))\n\t\t\tthis.add(replace);\n\n\t\treturn this.update();\n\t};\n\n\tthis.has = function () {\n\t\treturn this.klass.has(apijs.toArray(arguments)); // true if one found\n\t};\n\n\n\t// GESTION DES INTERACTIONS (private sauf actionClose)\n\n\tthis.actionClose = function (ev) {\n\n\t\t// \\\\ au lieu de \\ sinon Bad or unnecessary escaping\n\t\tif (apijs.config.slideshow.anchor && (typeof history.pushState == 'function')) {\n\t\t\tif (new RegExp('#(' + apijs.config.slideshow.ids + '[\\-\\\\.]\\\\d+[\\-\\\\.]\\\\d+)').test(self.location.href))\n\t\t\t\thistory.pushState({}, '', self.location.href.slice(0, self.location.href.indexOf('#')));\n\t\t}\n\n\t\tif (typeof ev == 'object') {\n\t\t\tif ((ev.target.getAttribute('id') === 'apijsDialog') && !apijs.dialog.has('photo', 'video', 'progress', 'waiting', 'lock'))\n\t\t\t\tapijs.dialog.clear(true);\n\t\t}\n\t\telse if (this.t1) {\n\t\t\tthis.clear(true);\n\t\t}\n\t};\n\n\tthis.onCloseBrowser = function (ev) {\n\n\t\tif (apijs.dialog.has('progress', 'waiting', 'lock')) {\n\t\t\tev.preventDefault();\n\t\t\tev.stopPropagation();\n\t\t\tev.m = apijs.i18n.translate(124);\n\t\t\tev.returnValue = ev.m; // Gecko, Trident, Chrome 34+\n\t\t\treturn ev.m; // Gecko, WebKit, Chrome\n\t\t}\n\t};\n\n\tthis.onResizeBrowser = function () {\n\n\t\tvar width = document.querySelector('body').clientWidth;\n\n\t\tapijs.dialog[(width <= (apijs.dialog.has('photo', 'video') ? 900 : 460)) ? 'add' : 'remove']('mobile');\n\t\tapijs.dialog[(width <= 300) ? 'add' : 'remove']('tiny');\n\t};\n\n\tthis.onScrollBrowser = function (ev) {\n\n\t\tvar that = apijs.dialog, elem = ev.target, brk = false;\n\n\t\t// dialogues du diaporama (suivant/précédent)\n\t\t// @see https://github.com/hammerjs/hammer.js\n\t\t// @see https://github.com/john-doherty/swiped-events\n\t\tif (\n\t\t\tthat.has('slideshow') && !that.has('playing') &&\n\t\t\t!['OPTION', 'SELECT'].has(elem.nodeName) && ['DOMMouseScroll', 'mousewheel', 'swipeleft', 'swiperight', 'swipeup', 'swipedown', 'swiped-left', 'swiped-right', 'swiped-up', 'swiped-down'].has(ev.type)\n\t\t) {\n\t\t\telem = new Date().getTime() / 1000;\n\t\t\tif ((that.scroll < 1) || (elem > (that.scroll + 1))) {\n\t\t\t\tthat.scroll = elem;\n\t\t\t\t// ev.detail > 0 si vers le bas avec Firefox\n\t\t\t\t// ev.wheelDelta < 0 si vers le bas avec Chromium/Opera/Edge...\n\t\t\t\tbrk = (ev.detail > 0) || (ev.wheelDelta < 0); // true si vers le bas\n\t\t\t\tapijs.slideshow[(['swipeleft', 'swipeup', 'swiped-left', 'swiped-up'].has(ev.type) || brk) ? 'actionNext' : 'actionPrev']();\n\t\t\t}\n\t\t}\n\t\t// autorise éventuellement le défilement\n\t\t// recherche l'éventuel élément scrollable\n\t\telse {\n\t\t\tif (elem.nodeName === 'OPTION') {\n\t\t\t\telem = elem.parentNode;\n\t\t\t}\n\t\t\telse if (!['TEXTAREA', 'SELECT'].has(elem.nodeName)) {\n\t\t\t\twhile ((brk !== true) && (elem.nodeName !== 'HTML')) {\n\t\t\t\t\tif (elem.classList.contains('scrollable'))\n\t\t\t\t\t\tbrk = true;\n\t\t\t\t\telse\n\t\t\t\t\t\telem = elem.parentNode;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// elem = select | textarea | scrollable\n\t\t\tif ((elem.scrollHeight > elem.offsetHeight) && (elem.nodeName !== 'HTML')) {\n\t\t\t\t// ev.detail > 0 si vers le bas avec Firefox\n\t\t\t\t// ev.wheelDelta < 0 si vers le bas avec Chromium/Opera/Edge...\n\t\t\t\tbrk = (ev.detail > 0) || (ev.wheelDelta < 0); // true si vers le bas\n\t\t\t\tif ((brk && (elem.scrollTop < (elem.scrollHeight - elem.offsetHeight - 1))) || (!brk && (elem.scrollTop > 0)))\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// empèche le défilement\n\t\tev.preventDefault();\n\t\tev.stopPropagation();\n\t};\n\n\tthis.onScrollIframe = function (ev) {\n\n\t\tvar elem = ev.target, brk;\n\t\twhile (elem.parentNode)\n\t\t\telem = elem.parentNode;\n\n\t\t// ev.detail > 0 si vers le bas avec Firefox\n\t\t// ev.wheelDelta < 0 si vers le bas avec Chromium/Opera/Edge...\n\t\tbrk = (ev.detail > 0) || (ev.wheelDelta < 0); // true si vers le bas\n\n\t\t// empèche le défilement (elem = iframe document)\n\t\tif (\n\t\t\t(brk && ((elem.defaultView.innerHeight + elem.defaultView.scrollY) >= (elem.body.offsetHeight - 1))) ||\n\t\t\t(!brk && (elem.defaultView.scrollY <= 0))\n\t\t) {\n\t\t\tev.preventDefault();\n\t\t\tev.stopPropagation();\n\t\t}\n\t};\n\n\tthis.onKey = function (ev) {\n\n\t\tvar that = apijs.dialog, elem = that.media, time;\n\n\t\t// dialogues d'attente et de progresssion ou tout autre dialogue verrouillé\n\t\t// ctrl + q | ctrl + w | ctrl + r | ctrl + f4 | ctrl + f5 // alt + f4 // échap | f5\n\t\tif (that.has('progress', 'waiting', 'lock')) {\n\n\t\t\tif ((ev.ctrlKey && [81, 87, 82, 115, 116].has(ev.keyCode)) || (ev.altKey && (ev.keyCode === 115)) || [27, 116].has(ev.keyCode))\n\t\t\t\tev.preventDefault();\n\t\t}\n\t\t// dialogues photo et vidéo\n\t\t// f11 (ne fonctionne plus sur Opera 74 Windows)\n\t\telse if (that.has('photo', 'video') && (ev.keyCode === 122)) {\n\t\t\tev.preventDefault();\n\t\t\tapijs.requestFullscreen(that.t1);\n\t\t}\n\t\t// dialogues photo et vidéo du diaporama\n\t\t// échap // fin // début // gauche // droite\n\t\telse if (that.has('slideshow')) {\n\n\t\t\tif (ev.keyCode === 27) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tthat.actionClose();\n\t\t\t}\n\t\t\telse if (ev.keyCode === 35) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tapijs.slideshow.actionLast();\n\t\t\t}\n\t\t\telse if (ev.keyCode === 36) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tapijs.slideshow.actionFirst();\n\t\t\t}\n\t\t\telse if (ev.keyCode === 37) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tapijs.slideshow.actionPrev();\n\t\t\t}\n\t\t\telse if (ev.keyCode === 39) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tapijs.slideshow.actionNext();\n\t\t\t}\n\t\t}\n\t\t// pour tous les autres\n\t\t// échap\n\t\telse if (ev.keyCode === 27) {\n\t\t\tev.preventDefault();\n\t\t\tthat.actionClose();\n\t\t}\n\n\t\t// dialogue vidéo\n\t\t// espace | p // haut | page haut // bas | page bas // + // - // m\n\t\tif (that.has('video') && !that.has('videoiframe')) {\n\n\t\t\t// espace | p\n\t\t\tif ([32, 80].has(ev.keyCode)) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif ([1, 2].has(elem.networkState)) {\n\t\t\t\t\tif (elem.ended || elem.paused)\n\t\t\t\t\t\telem.play();\n\t\t\t\t\telse\n\t\t\t\t\t\telem.pause();\n\t\t\t\t}\n\t\t\t}\n\t\t\t// haut | page haut\n\t\t\telse if ([38, 33].has(ev.keyCode)) {\n\t\t\t\tev.preventDefault();\n\t\t\t\ttime = (ev.keyCode === 38) ? 10 : 60;\n\t\t\t\tif (([1, 2].has(elem.networkState)) && (elem.duration !== Infinity) && !isNaN(elem.duration)) {\n\t\t\t\t\tif (elem.currentTime > time)\n\t\t\t\t\t\telem.currentTime -= time;\n\t\t\t\t\telse\n\t\t\t\t\t\telem.currentTime = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// bas | page bas\n\t\t\telse if ([40, 34].has(ev.keyCode)) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif (([1, 2].has(elem.networkState)) && (elem.duration !== Infinity) && !isNaN(elem.duration)) {\n\t\t\t\t\ttime = (ev.keyCode === 40) ? 10 : 60;\n\t\t\t\t\tif (elem.currentTime < (elem.duration - time))\n\t\t\t\t\t\telem.currentTime += time;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// +\n\t\t\telse if (ev.keyCode === 107) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif ([1, 2].has(elem.networkState)) {\n\t\t\t\t\tif (elem.muted)\n\t\t\t\t\t\telem.muted = false;\n\t\t\t\t\tif (elem.volume < 0.8)\n\t\t\t\t\t\telem.volume += 0.2;\n\t\t\t\t\telse\n\t\t\t\t\t\telem.volume = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// -\n\t\t\telse if (ev.keyCode === 109) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif ([1, 2].has(elem.networkState)) {\n\t\t\t\t\tif (elem.muted)\n\t\t\t\t\t\telem.muted = false;\n\t\t\t\t\tif (elem.volume > 0.21)\n\t\t\t\t\t\telem.volume -= 0.2;\n\t\t\t\t\telse\n\t\t\t\t\t\telem.volume = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// m\n\t\t\telse if (ev.keyCode === 77) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tif ([1, 2].has(elem.networkState)) {\n\t\t\t\t\telem.muted = !elem.muted; // inverse\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// défilement de la page pour tous (renvoi sur actionScrollBrowser)\n\t\t// espace | page haut | page bas | fin | début | haut | bas\n\t\tif ([32, 33, 34, 35, 36, 38, 40].has(ev.keyCode)) {\n\n\t\t\t// empèche le défilement\n\t\t\tif (!ev.target || (!['INPUT','TEXTAREA','OPTION','SELECT'].has(ev.target.nodeName) && !ev.target.classList.contains('scrollable'))) {\n\t\t\t\tev.preventDefault();\n\t\t\t\tev.stopPropagation();\n\t\t\t}\n\t\t}\n\t};\n\n\tthis.onFullscreen = function (ev) {\n\n\t\tvar res = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement;\n\t\tif (ev) apijs.log('dialog:onFullscreen:' + (res ? 'in' : 'out'));\n\n\t\tapijs.dialog[res ? 'add' : 'remove']('fullscreen');\n\t};\n\n\tthis.onIframeLoad = function (elem) { // todo\n\n\t\telem.removeAttribute('class');\n\t\tapijs.dialog.remove('loading');\n\n\t\telem.contentWindow.document.addEventListener('keydown', window.parent.apijs.dialog.onKey);\n\t\telem.contentWindow.addEventListener('DOMMouseScroll', window.parent.apijs.dialog.onScrollIframe, { passive: false });\n\t\telem.contentWindow.addEventListener('mousewheel', window.parent.apijs.dialog.onScrollIframe, { passive: false });\n\t\telem.contentWindow.addEventListener('touchmove', window.parent.apijs.dialog.onScrollIframe, { passive: false });\n\t};\n\n\tthis.onMediaLoad = function (ev) { // todo\n\n\t\tvar that = apijs.dialog, media = that.media, src, elem, elems;\n\t\tif (ev && ev.target) {\n\t\t\tsrc = ev.target.currentSrc || ev.target.src;\n\t\t\tapijs.log('dialog:onMediaLoad:' + ev.type + ' ' + (src ? src.slice(src.lastIndexOf('/') + 1) : ''));\n\t\t}\n\n\t\tif (media && ['load', 'durationchange'].has(ev.type)) {\n\t\t\tthat.remove('loading', 'error');\n\t\t\tmedia.style.visibility = 'visible';\n\t\t\tif (!media.hasAttribute('src') && (media.nodeName === 'IMG'))\n\t\t\t\tmedia.setAttribute('src', media.imageLoader.src);\n\t\t}\n\t\telse if (media && (ev.type === 'error')) {\n\t\t\tthat.toggle('loading', 'error');\n\t\t\tmedia.removeAttribute('style');\n\t\t\t// player vidéo (désactive l'option et active la suivante)\n\t\t\telem = apijs.html('.tracks.video select');\n\t\t\tif (elem && ev && ev.target) {\n\t\t\t\telems = elem.querySelectorAll('option');\n\t\t\t\tif ((elems.length > 0) && (elem.value.length > 0)) {\n\t\t\t\t\telems[elem.value].setAttribute('disabled', 'disabled');\n\t\t\t\t\telem.selectedIndex += 1;\n\t\t\t\t\t// charge la vidéo suivante (si erreur au clic sur le select)\n\t\t\t\t\tif ((ev.target.nodeName === 'VIDEO') && (elem.value !== ''))\n\t\t\t\t\t\tmedia.videoPlayer.actionVideo(elem);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n\n\tthis.onSlideshowSwipe = function (ev) {\n\n\t\tapijs.dialog.swipe = true;\n\t\tself.setTimeout(function () { apijs.dialog.swipe = false; }, 150);\n\n\t\tif (['swiperight', 'swipedown', 'swiped-right', 'swiped-down'].has(ev.type))\n\t\t\tapijs.slideshow.actionPrev();\n\t\telse // swipeleft swipeup swiped-left swiped-up\n\t\t\tapijs.slideshow.actionNext();\n\t};\n\n\tthis.actionConfirm = function () { // todo\n\n\t\t// vérifie le dialogue d'options\n\t\t// arrêt du traitement si c'est pas bon\n\t\tif (this.has('options')) {\n\t\t\tif (this.callback(false, this.args) !== true)\n\t\t\t\treturn false;\n\t\t}\n\n\t\t// verrouille le dialogue et affiche le loader\n\t\tthis.add('lock', 'loading');\n\t\tthis.htmlSvgLoader(false);\n\n\t\t// masque les boutons et le texte du dialogue\n\t\tapijs.html('div.btns').style.visibility = 'hidden';\n\t\tapijs.html('div.bbcode').style.visibility = 'hidden';\n\n\t\t// appelle la fonction de rappel\n\t\t// ne déverrouille pas le dialogue\n\t\tself.setTimeout(function () {\n\t\t\tif ((this.t2) && (this.t2.nodeName === 'FORM'))\n\t\t\t\tthis.callback(this.t2.getAttribute('action'), this.args);\n\t\t\telse if (this.t2)\n\t\t\t\tthis.callback(this.args);\n\t\t}.bind(this), 12); // pour que ci-dessus this = this\n\n\t\treturn false; // très important\n\t};\n\n\n\t// GESTION DES CONTENEURS (private return this|boolean)\n\n\tthis.init = function (type, icon, isLocked) { // todo\n\n\t\tisLocked = (isLocked === true);\n\t\tif (typeof icon == 'string') {\n\t\t\ticon = icon.replace(this.ft, '').trim();\n\t\t\ticon = (icon.length > 0) ? (isLocked ? icon + ' lock' : icon) : (isLocked ? 'lock' : null);\n\t\t}\n\t\telse if (isLocked) {\n\t\t\ticon = 'lock';\n\t\t}\n\n\t\t// préparation\n\t\tif (this.t0)\n\t\t\tthis.clear(false);\n\n\t\t// css\n\t\tthis.klass.push('start');\n\t\tthis.klass.push(type);\n\n\t\tif (self.matchMedia('prefers-reduced-motion:reduce').matches)\n\t\t\tthis.klass.push('reduce');\n\n\t\tif (typeof icon == 'string')\n\t\t\tthis.klass = this.klass.concat(icon.split(' '));\n\n\t\t// création du fragment\n\t\tthis.t0 = document.createDocumentFragment();\n\n\t\t// surveillance des touches et du navigateur\n\t\tdocument.addEventListener('keydown', this.onKey);\n\t\tself.addEventListener('beforeunload', this.onCloseBrowser);\n\t\tself.addEventListener('DOMMouseScroll', this.onScrollBrowser, { passive: false });\n\t\tself.addEventListener('mousewheel', this.onScrollBrowser, { passive: false });\n\t\tself.addEventListener('touchmove', this.onScrollBrowser, { passive: false });\n\t\tself.addEventListener('resize', this.onResizeBrowser);\n\n\t\t// restriction de la navigation\n\t\tif (apijs.config.dialog.restrictNavigation)\n\t\t\tdocument.querySelectorAll(this.ti).forEach(function (elem) { elem.setAttribute('tabindex', '-1'); });\n\n\t\treturn this;\n\t};\n\n\tthis.show = function (focus) { // todo\n\n\t\t// design\n\t\tthis.onResizeBrowser();\n\t\tthis.onFullscreen();\n\n\t\tif ((this.height > 0) && !this.has('photo', 'video'))\n\t\t\tthis.t2.style.minHeight = this.height + 'px';\n\n\t\t// affichage du dialogue sans/sans/avec transitions CSS\n\t\tvar old = apijs.html('#Dialog');\n\t\tif (old) {\n\t\t\tthis.toggle('start', 'ready');\n\t\t\tthis.t1 = old;\n\t\t\t// this.t1.appendChild(this.t0.firstChild.firstChild);\n\t\t\t// @see https://stackoverflow.com/a/24775765/2980105\n\t\t\tapijs.toArray(this.t0.firstChild.childNodes).forEach(function (node) {\n\t\t\t\tthis.t1.appendChild(node);\n\t\t\t}, this); // pour que ci-dessus this = this\n\t\t\tthis.t1.setAttribute('class', this.t2.getAttribute('class'));\n\t\t}\n\t\telse if (this.has('notransition')) {\n\t\t\tthis.toggle('start', 'ready');\n\t\t\tdocument.querySelector('body').appendChild(this.t0);\n\t\t}\n\t\telse {\n\t\t\tdocument.querySelector('body').appendChild(this.t0);\n\t\t\tself.setTimeout(function () { apijs.dialog.toggle('start', 'ready'); }, 12);\n\t\t}\n\n\t\t// fermeture des popups au clic\n\t\tif (apijs.config.dialog.closeOnClick && !this.has('progress', 'waiting', 'lock'))\n\t\t\tdocument.addEventListener('click', this.actionClose);\n\n\t\t// passage en plein écran\n\t\tif (this.has('photo', 'video')) {\n\n\t\t\tif (document.webkitFullscreenEnabled)\n\t\t\t\tdocument.addEventListener('webkitfullscreenchange', this.onFullscreen);\n\t\t\telse if (document.fullscreenEnabled)\n\t\t\t\tdocument.addEventListener('fullscreenchange', this.onFullscreen);\n\t\t\telse if (document.mozFullScreenEnabled)\n\t\t\t\tdocument.addEventListener('mozfullscreenchange', this.onFullscreen);\n\t\t}\n\t\t// copier coller\n\t\telse if (this.has('upload')) {\n\t\t\twindow.addEventListener('paste', apijs.upload.actionDrag);\n\t\t}\n\n\t\t// auto-focus\n\t\tif (focus === true)\n\t\t\tself.setTimeout(function () { apijs.html('input:not([readonly]),textarea:not([readonly]),select:not([disabled])').focus(); }, 12);\n\t\telse if (typeof focus == 'string')\n\t\t\tapijs.html(focus).focus();\n\n\t\treturn true;\n\t};\n\n\tthis.clear = function (isAll) { // todo\n\n\t\tif (isAll && this.xhr) {\n\t\t\tthis.callback = null; // très important\n\t\t\tthis.xhr.abort();\n\t\t}\n\n\t\tif (this.hammer) { // (depuis htmlBtnNavigation)\n\t\t\tthis.hammer.off('swiperight swipedown swipeleft swipeup', apijs.dialog.onSlideshowSwipe).destroy();\n\t\t\tdelete this.hammer;\n\t\t}\n\n\t\t// surveillance des touches et du navigateur (depuis initDialog)\n\t\tdocument.removeEventListener('keydown', this.onKey);\n\t\tself.removeEventListener('beforeunload', this.onCloseBrowser);\n\t\tself.removeEventListener('DOMMouseScroll', this.onScrollBrowser, { passive: false });\n\t\tself.removeEventListener('mousewheel', this.onScrollBrowser, { passive: false });\n\t\tself.removeEventListener('touchmove', this.onScrollBrowser, { passive: false });\n\t\tself.removeEventListener('resize', this.onResizeBrowser);\n\n\t\t// restriction de la navigation (depuis initDialog)\n\t\tif (apijs.config.dialog.restrictNavigation)\n\t\t\tdocument.querySelectorAll(this.ti).forEach(function (elem) { elem.removeAttribute('tabindex'); });\n\n\t\t// fermeture des popups au clic (depuis showDialog)\n\t\tif (apijs.config.dialog.closeOnClick)\n\t\t\tdocument.removeEventListener('click', this.actionClose);\n\n\t\t// spécial\n\t\tif (this.has('photo', 'video')) {\n\n\t\t\t// pour ne pas déclencher les fonctions\n\t\t\t// supprime tous les ontruc et les src\n\t\t\tif (this.has('video') && !this.has('videoiframe')) {\n\t\t\t\tthis.t2.querySelectorAll('video, source, track').forEach(function (elem) {\n\t\t\t\t\tfor (var name in elem) {\n\t\t\t\t\t\tif (name.indexOf('on') === 0)\n\t\t\t\t\t\t\telem[name] = null;\n\t\t\t\t\t}\n\t\t\t\t\telem.removeAttribute('src');\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tthis.media.videoPlayer = null;\n\t\t\tthis.media.imageLoader = null;\n\n\t\t\t// passage en plein écran (depuis showDialog)\n\t\t\tif (document.webkitFullscreenEnabled)\n\t\t\t\tdocument.removeEventListener('webkitfullscreenchange', this.onFullscreen);\n\t\t\telse if (document.fullscreenEnabled)\n\t\t\t\tdocument.removeEventListener('fullscreenchange', this.onFullscreen);\n\t\t\telse if (document.mozFullScreenEnabled)\n\t\t\t\tdocument.removeEventListener('mozfullscreenchange', this.onFullscreen);\n\t\t}\n\t\telse {\n\t\t\t// copier coller\n\t\t\tif (this.has('upload'))\n\t\t\t\twindow.removeEventListener('paste', apijs.upload.actionDrag);\n\n\t\t\t// mémorise la hauteur du dialogue\n\t\t\tthis.height = parseFloat(self.getComputedStyle(this.t2).height);\n\t\t}\n\n\t\t// supprime le dialogue\n\t\tif (isAll) {\n\t\t\tthis.toggle('ready', 'end');\n\t\t\tthis.t1.remove();\n\t\t}\n\t\telse {\n\t\t\twhile (this.t1.firstChild)\n\t\t\t\tthis.t1.firstChild.remove();\n\t\t}\n\n\t\t// réinitialise toutes les variables (sauf ft/ti/ns et swipe)\n\t\tthis.klass = [];\n\t\tif (isAll) {\n\t\t\tthis.height = 0;\n\t\t\tthis.scroll = 0; // time\n\t\t\tthis.callback = null;\n\t\t\tthis.args = null;\n\t\t\tthis.xhr = null;\n\t\t}\n\t\tthis.media = null;\n\t\tthis.t0 = null; // fragment\n\t\tthis.t1 = null; // div id=apijsDialog\n\t\tthis.t2 = null; // div/form id=apijsBox\n\t\tthis.t3 = null; // input file\n\t\tthis.a = null;\n\t\tthis.b = null;\n\t\tthis.c = null;\n\n\t\treturn true;\n\t};\n\n\n\t// GÉNÉRATION DES ÉLÉMENTS (private return this)\n\n\tthis.htmlParent = function (action, submit, drag) {\n\n\t\tthis.t1 = document.createElement('div');\n\t\tthis.t1.setAttribute('id', 'apijsDialog');\n\n\t\tif (typeof drag == 'string') {\n\n\t\t\tthis.t1.setAttribute('ondragenter', drag);\n\t\t\tthis.t1.setAttribute('ondragleave', drag);\n\t\t\tthis.t1.setAttribute('ondragover', drag);\n\t\t\tthis.t1.setAttribute('ondrop', drag);\n\t\t\tthis.t1.setAttribute('onpaste', drag); // Firefox\n\n\t\t\tthis.a = document.createElement('p');\n\t\t\tthis.a.setAttribute('class', 'drag');\n\t\t\tthis.a.appendChild(apijs.i18n.translateNode(127));\n\t\t\tthis.t1.appendChild(this.a);\n\t\t}\n\t\telse {\n\t\t\tthis.t1.setAttribute('ondragstart', 'return false;');\n\t\t}\n\n\t\tif (typeof action == 'string') {\n\t\t\tthis.t2 = document.createElement('form');\n\t\t\tthis.t2.setAttribute('action', action);\n\t\t\tthis.t2.setAttribute('method', 'post');\n\t\t\tthis.t2.setAttribute('enctype', 'multipart/form-data');\n\t\t\tthis.t2.setAttribute('onsubmit', 'return ' + submit);\n\t\t}\n\t\telse {\n\t\t\tthis.t2 = document.createElement('div');\n\t\t}\n\n\t\tthis.t2.setAttribute('id', 'apijsBox');\n\t\tthis.t1.appendChild(this.t2);\n\t\tthis.t0.appendChild(this.t1);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlContent = function (title, text) {\n\n\t\tif (title.length > 0) {\n\t\t\tthis.a = document.createElement('h1');\n\t\t\tthis.a.innerHTML = title.replace(//g, '>').replace(/\\[/g, '<').replace(/]/g, '>');\n\t\t\tthis.t2.appendChild(this.a);\n\t\t}\n\n\t\tif (text.length > 0) {\n\t\t\tthis.a = document.createElement('div');\n\t\t\tthis.a.setAttribute('class', 'bbcode');\n\t\t\tif (text[0] !== '[') text = '[p]' + text + '[/p]';\n\t\t\tthis.a.innerHTML = text.replace(//g, '>').replace(/\\[/g, '<').replace(/]/g, '>');\n\t\t\tthis.a.querySelectorAll('a.popup').forEach(function (elem) { elem.addEventListener('click', apijs.openTab); });\n\t\t\tthis.t2.appendChild(this.a);\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.htmlBtnOk = function () {\n\n\t\tthis.a = document.createElement('div');\n\t\tthis.a.setAttribute('class', 'btns');\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('class', 'confirm');\n\t\t\tthis.b.setAttribute('onclick', 'apijs.dialog.actionClose();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(102));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlBtnConfirm = function (type, click) {\n\n\t\tthis.a = document.createElement('div');\n\t\tthis.a.setAttribute('class', 'btns');\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', type);\n\t\t\tthis.b.setAttribute('class', 'confirm');\n\t\t\tif (type !== 'submit') this.b.setAttribute('onclick', click);\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(104));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('class', 'cancel');\n\t\t\tthis.b.setAttribute('onclick', 'apijs.dialog.actionClose();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(103));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlBtnNavigation = function () {\n\n\t\tthis.a = document.createElement('div');\n\t\tthis.a.setAttribute('class', 'navigation noplaying');\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('disabled', 'disabled');\n\t\t\tthis.b.setAttribute('class', 'prev');\n\t\t\tthis.b.setAttribute('id', 'apijsPrev');\n\t\t\tthis.b.setAttribute('onclick', 'apijs.slideshow.actionPrev();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\t//this.c.appendChild(apijs.i18n.translateNode(106));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('disabled', 'disabled');\n\t\t\tthis.b.setAttribute('class', 'next');\n\t\t\tthis.b.setAttribute('id', 'apijsNext');\n\t\t\tthis.b.setAttribute('onclick', 'apijs.slideshow.actionNext();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\t//this.c.appendChild(apijs.i18n.translateNode(107));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\tif (typeof Hammer == 'function') {\n\t\t\tthis.hammer = new Hammer(this.t2);\n\t\t\tthis.hammer.get('swipe').set({ direction: Hammer.DIRECTION_ALL });\n\t\t\tthis.hammer.on('swiperight swipedown swipeleft swipeup', apijs.dialog.onSlideshowSwipe);\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.htmlBtnClose = function (close) {\n\n\t\tif (close !== false) {\n\n\t\t\tthis.a = document.createElement('div');\n\t\t\tthis.a.setAttribute('class', 'close nofullplaying');\n\n\t\t\t\tthis.b = document.createElement('button');\n\t\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\t\tthis.b.setAttribute('class', 'close');\n\t\t\t\tthis.b.setAttribute('onclick', 'apijs.dialog.actionClose();');\n\n\t\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(105));\n\n\t\t\t\tthis.b.appendChild(this.c);\n\n\t\t\tthis.a.appendChild(this.b);\n\t\t\tthis.t2.appendChild(this.a);\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.htmlUpload = function (input, isMultiple, change) {\n\n\t\tthis.a = document.createElement('div');\n\t\tthis.a.setAttribute('class', 'btns upload');\n\n\t\t\tthis.t3 = document.createElement('input');\n\t\t\tthis.t3.setAttribute('type', 'file');\n\t\t\tthis.t3.setAttribute('name', isMultiple ? input + '[]' : input);\n\t\t\tthis.t3.setAttribute('id', 'apijsFile');\n\t\t\tif (isMultiple) this.t3.setAttribute('multiple', 'multiple');\n\t\t\tthis.t3.setAttribute('onchange', change);\n\n\t\tthis.a.appendChild(this.t3);\n\n\t\t\tthis.b = document.createElement('button');\n\t\t\tthis.b.setAttribute('type', 'button');\n\t\t\tthis.b.setAttribute('class', 'browse');\n\t\t\tthis.b.setAttribute('onclick', 'this.previousSibling.click();');\n\n\t\t\t\tthis.c = document.createElement('span');\n\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(isMultiple ? 109 : 108));\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\n\t\t\tthis.b = document.createElement('div');\n\t\t\tthis.b.setAttribute('class', 'filenames scrollable');\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlSvgProgress = function () {\n\n\t\tthis.a = document.createElement('span');\n\t\tthis.a.setAttribute('class', 'info');\n\t\tthis.t2.appendChild(this.a);\n\n\t\tthis.a = document.createElement('svg');\n\t\tthis.a.setAttribute('id', 'apijsProgress');\n\n\t\t\tthis.b = document.createElement('rect');\n\t\t\tthis.b.setAttribute('class', 'auto');\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlSvgLoader = function (isDelayed) {\n\n\t\tthis.a = document.createElementNS(this.ns, 'svg');\n\t\tthis.a.setAttribute('class', 'loader');\n\n\t\t\tthis.b = document.createElementNS(this.ns, 'path');\n\t\t\tif (isDelayed !== false) this.b.setAttribute('style', 'opacity:0;');\n\t\t\tthis.b.setAttribute('d', 'M75.4 126.63a11.43 11.43 0 0 1-2.1-22.65 40.9 40.9 0 0 0 30.5-30.6 11.4 11.4 0 1 1 22.27 4.87h.02a63.77 63.77 0 0 1-47.8 48.05v-.02a11.38 11.38 0 0 1-2.93.37z');\n\n\t\t\t\tthis.c = document.createElementNS(this.ns, 'animateTransform');\n\t\t\t\tthis.c.setAttribute('attributeName', 'transform');\n\t\t\t\tthis.c.setAttribute('type', 'rotate');\n\t\t\t\tthis.c.setAttribute('from', '0 64 64');\n\t\t\t\tthis.c.setAttribute('to', '360 64 64');\n\t\t\t\tthis.c.setAttribute('dur', '5s');\n\t\t\t\tthis.c.setAttribute('repeatCount', 'indefinite');\n\n\t\t\tthis.b.appendChild(this.c);\n\n\t\t\t\tthis.c = document.createElementNS(this.ns, 'animate');\n\t\t\t\tthis.c.setAttribute('attributeName', 'opacity');\n\t\t\t\tthis.c.setAttribute('to', '1');\n\t\t\t\tthis.c.setAttribute('dur', '0.01s');\n\t\t\t\tthis.c.setAttribute('begin', '1s');\n\t\t\t\tthis.c.setAttribute('fill', 'freeze');\n\n\t\t\tif (isDelayed !== false) this.b.appendChild(this.c);\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlMedia = function (url, name, date, legend) {\n\n\t\tthis.a = document.createElement('dl');\n\t\tthis.a.setAttribute('class', 'media');\n\n\t\t\tthis.b = document.createElement('dt');\n\n\t\t\tif (this.has('photo')) {\n\t\t\t\tthis.media = document.createElement('img');\n\t\t\t\tthis.media.setAttribute('alt', legend.replace('\"', ''));\n\t\t\t}\n\t\t\telse if (url.indexOf('iframe') > 0) {\n\t\t\t\tthis.media = document.createElement('iframe');\n\t\t\t\tthis.media.setAttribute('type', 'text/html');\n\t\t\t\tthis.media.setAttribute('scrolling', 'no');\n\t\t\t\tthis.media.setAttribute('src', url);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.media = document.createElement('video');\n\t\t\t\tthis.media.setAttribute('controls', 'controls');\n\t\t\t\tthis.media.setAttribute('preload', 'metadata');\n\t\t\t}\n\n\t\t\tthis.media.setAttribute('id', 'apijsMedia');\n\t\t\tthis.b.appendChild(this.media);\n\n\t\tthis.a.appendChild(this.b);\n\n\t\t\tthis.b = document.createElement('dd');\n\t\t\tthis.b.setAttribute('class', 'nofullplaying');\n\n\t\t\tif ((name !== 'false') || (date !== 'false')) {\n\n\t\t\t\tvar fileid = url.slice(url.lastIndexOf('/') + 1);\n\t\t\t\tthis.c = document.createElement('span');\n\n\t\t\t\t// name + date\n\t\t\t\tif ((name !== 'false') && (name !== 'auto') && (date !== 'false'))\n\t\t\t\t\tthis.c.appendChild(document.createTextNode(name + ' (' + date + ') '));\n\t\t\t\t// name\n\t\t\t\telse if ((name !== 'false') && (name !== 'auto'))\n\t\t\t\t\tthis.c.appendChild(document.createTextNode(name + ' '));\n\t\t\t\t// auto name + date\n\t\t\t\telse if ((name === 'auto') && (date !== 'false'))\n\t\t\t\t\tthis.c.appendChild(document.createTextNode(fileid + ' (' + date + ') '));\n\t\t\t\t// auto name\n\t\t\t\telse if (name === 'auto')\n\t\t\t\t\tthis.c.appendChild(document.createTextNode(fileid + ' '));\n\t\t\t\t// date\n\t\t\t\telse if (date !== 'false')\n\t\t\t\t\tthis.c.appendChild(document.createTextNode('(' + date + ') '));\n\n\t\t\t\tthis.b.appendChild(this.c);\n\t\t\t}\n\n\t\t\tthis.b.appendChild(document.createTextNode(legend));\n\n\t\tthis.a.appendChild(this.b);\n\t\tthis.t2.appendChild(this.a);\n\n\t\t// au choix : photo / vidéo avec iframe / vidéo avec lecteur / vidéo simple\n\t\t// lecteur créé v5.2 / supprimé v5.3 / refait v6.0 / extrait v6.6\n\t\tif (this.has('photo')) {\n\t\t\tthis.media.imageLoader = new Image();\n\t\t\tthis.media.imageLoader.src = url;\n\t\t\tthis.media.imageLoader.onload = this.onMediaLoad;\n\t\t\tthis.media.imageLoader.onerror = this.onMediaLoad;\n\t\t}\n\t\telse if (url.indexOf('iframe') > 0) {\n\t\t\tthis.media.onload = function (ev) {\n\t\t\t\tthis.onIframeLoad(this.media);\n\t\t\t\tthis.onMediaLoad(ev);\n\t\t\t}.bind(this); // pour que ci-dessus this = this\n\t\t\tthis.add('videoiframe');\n\t\t}\n\t\telse if (apijs.startPlayer(this.media, url)) {\n\t\t\tthis.add('apijsvideoplayer');\n\t\t}\n\t\telse {\n\t\t\tthis.c = document.createElement('source');\n\t\t\tthis.c.setAttribute('src', url);\n\t\t\tthis.c.onerror = this.onMediaLoad;\n\t\t\tthis.media.appendChild(this.c);\n\t\t\tthis.media.ondurationchange = this.onMediaLoad;\n\t\t\tthis.media.onerror = this.onMediaLoad;\n\t\t\tthis.add('videosource');\n\t\t}\n\n\t\treturn this;\n\t};\n\n\tthis.htmlHelp = function (isSlideshow, isVideo) {\n\n\t\t// pas d'aide en mobile car pas de clavier\n\t\tif (('ontouchstart' in window) && navigator.userAgent.match(/mobi/i))\n\t\t\treturn this;\n\n\t\tvar items, item, keys = [\n\t\t\tisSlideshow ? ['start', 149, 141] : [], // début/fin\n\t\t\tisSlideshow ? ['left', 'right', 142] : [],\n\t\t\tisVideo ? ['topk', 'bottom', 144] : [],\n\t\t\tisVideo ? ['minus', 'plus', 145] : [],\n\t\t\tisVideo ? ['M', 146] : [],\n\t\t\tisVideo ? ['P', 143] : [],\n\t\t\t['F11', 147],\n\t\t\t[150, 148] // échap\n\t\t];\n\n\t\tthis.a = document.createElement('ul');\n\t\tthis.a.setAttribute('class', 'kbd nofullscreen');\n\n\t\twhile (items = keys.shift()) {\n\n\t\t\tif (items.length > 0) {\n\n\t\t\t\tthis.b = document.createElement('li');\n\n\t\t\t\twhile (item = items.shift()) {\n\t\t\t\t\tif (items.length > 0) {\n\t\t\t\t\t\tthis.c = document.createElement('kbd');\n\t\t\t\t\t\tif (['M', 'P', 'F11'].has(item))\n\t\t\t\t\t\t\tthis.c.appendChild(document.createTextNode(item));\n\t\t\t\t\t\telse if (typeof item == 'string')\n\t\t\t\t\t\t\tthis.c.setAttribute('class', item);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthis.c.appendChild(apijs.i18n.translateNode(item));\n\t\t\t\t\t\tthis.b.appendChild(this.c);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tthis.b.appendChild(apijs.i18n.translateNode(item));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.a.appendChild(this.b);\n\t\t\t}\n\t\t}\n\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n\n\tthis.htmlIframe = function (url) {\n\n\t\tthis.a = document.createElement('iframe');\n\t\tthis.a.setAttribute('src', url);\n\t\tthis.a.setAttribute('class', 'loading');\n\t\tthis.a.setAttribute('onload', 'apijs.dialog.onIframeLoad(this);');\n\n\t\tthis.t2.appendChild(this.a);\n\n\t\treturn this;\n\t};\n};","/**\n * Created J/13/05/2010\n * Updated S/04/11/2023\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.slideshow = function () {\n\n\t\"use strict\";\n\tthis.current = null;\n\n\n\t// AFFICHAGE DE LA BOÎTE DE DIALOGUE (public return void|boolean)\n\n\tthis.init = function () {\n\n\t\tvar i, j, elem, ids = apijs.config.slideshow.ids, hoverload = false;\n\n\t\tfor (i = 0; elem = apijs.html(ids + '.' + i, true); i++) {\n\n\t\t\thoverload = elem.classList.contains('hoverload');\n\n\t\t\tfor (j = 0; elem = apijs.html(ids + '.' + i + '.' + j, true); j++) {\n\t\t\t\telem.addEventListener('click', this.show);\n\t\t\t\tif (hoverload)\n\t\t\t\t\telem.addEventListener('mouseover', this.show);\n\t\t\t}\n\n\t\t\tif (elem = apijs.html(ids + '.' + i + '.99999', true))\n\t\t\t\telem.addEventListener('click', this.show);\n\t\t}\n\n\t\tthis.onPopState();\n\t};\n\n\tthis.onPopState = function () {\n\n\t\t// \\\\ au lieu de \\ sinon Bad or unnecessary escaping\n\t\tif (new RegExp('#(' + apijs.config.slideshow.ids + '[\\-\\\\.]\\\\d+[\\-\\\\.]\\\\d+)').test(self.location.href)) {\n\t\t\tvar id = RegExp.$1.replace(/-/g, '.');\n\t\t\tif (apijs.html(id, true) && !apijs.dialog.has('slideshow')) // Chrome 31 et Opera 19 passent 2 fois sans le !has\n\t\t\t\tapijs.slideshow.show(id, false);\n\t\t}\n\t\telse if (apijs.slideshow.current) {\n\t\t\tapijs.dialog.actionClose();\n\t\t}\n\t};\n\n\tthis.show = function (ev, push) { // todo\n\n\t\tvar source, show = false, media = {}, src, srcset, total, hash;\n\n\t\t// recherche de la source (élément a)\n\t\t// recherche des informations du média (1/4, id)\n\t\t// la source est soit une miniature (ev=click/mouseover/stringId) soit l'image principale (ev=click)\n\t\tif (typeof ev == 'string') {\n\t\t\tshow = true;\n\t\t\tsource = apijs.html(ev, true);\n\t\t\tmedia.id = ev;\n\t\t}\n\t\telse {\n\t\t\tev.preventDefault();\n\t\t\tsource = ev.target;\n\t\t\twhile (source.nodeName !== 'A')\n\t\t\t\tsource = source.parentNode;\n\n\t\t\t// stop sur miniature déjà à jour en mode gallery\n\t\t\tif ((ev.type === 'mouseover') && source.classList.contains('current'))\n\t\t\t\treturn false;\n\n\t\t\tmedia.id = source.getAttribute('id');\n\t\t}\n\n\t\t// recherche des informations du média (2/4, prefix|number|gallery)\n\t\tmedia.prefix = apijs.config.slideshow.ids + '.' + media.id.split('.')[1];\n\t\tmedia.number = parseInt(media.id.split('.')[2], 10);\n\t\tmedia.gallery = apijs.html(media.prefix + '.99999', true);\n\n\t\t// SI SOURCE N'EST PAS L'IMAGE PRINCIPALE DU MODE GALLERY\n\t\t// marque la source avec la class current\n\t\t// prend soin de supprimer les anciennes class current\n\t\t// v5.1 soit sur le lien (avant sur l'image elle même), soit sur le dl\n\t\tif (media.number !== 99999) {\n\n\t\t\tvar links = apijs.html(media.prefix, true).querySelectorAll('a[id][type]'),\n\t\t\t conts = apijs.html(media.prefix, true).querySelectorAll('dl');\n\n\t\t\tif (media.gallery || (links.length !== conts.length)) {\n\t\t\t\tlinks.forEach(function (elem) { elem.classList.remove('current'); });\n\t\t\t\tsource.setAttribute('class', 'current');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tconts.forEach(function (elem) { elem.classList.remove('current'); });\n\t\t\t\tsource.parentNode.parentNode.setAttribute('class', 'current');\n\t\t\t}\n\t\t}\n\n\t\t// UNIQUEMENT EN MODE GALLERY\n\t\t// recherche des informations du média (3/4, [number]|config)\n\t\t// réaffecte la source sur la miniature et non sur l'image principale SI SOURCE = IMAGE PRINCIPALE\n\t\t// réaffecte le numéro du média sur la miniature et non sur l'image principale SI SOURCE = IMAGE PRINCIPALE\n\t\t// supprime l'adresse de l'image principale de la configuration du média (media.config = url|name|date|legend)\n\t\t// met à jour l'image principale SAUF SI SOURCE = IMAGE PRINCIPALE (puisque tout est déjà correct)\n\t\tif (media.gallery) {\n\n\t\t\tif (media.number === 99999) {\n\t\t\t\tshow = true;\n\t\t\t\tsource = (media.gallery.hasAttribute('class')) ? media.gallery.getAttribute('class') : media.prefix + '.0';\n\t\t\t\tsource = apijs.html(source, true);\n\t\t\t\tmedia.number = parseInt(source.getAttribute('id').split('.')[2], 10);\n\t\t\t\tmedia.id = media.id.replace('99999', media.number);\n\t\t\t}\n\n\t\t\tmedia.config = source.querySelector('input').getAttribute('value').split('|');\n\n\t\t\tsrc = media.config.shift();\n\t\t\tif (src.indexOf(';') > 0) {\n\t\t\t\tsrc = src.split(';');\n\t\t\t\tsrcset = src[1].trim();\n\t\t\t\tsrc = src[0].trim();\n\t\t\t}\n\n\t\t\tmedia.gallery.setAttribute('href', source.getAttribute('href'));\n\t\t\tmedia.gallery.querySelector('img').setAttribute('src', src);\n\t\t\tmedia.gallery.querySelector('img').setAttribute('srcset', srcset ? srcset : '');\n\t\t\tmedia.gallery.querySelector('img').setAttribute('alt', source.querySelector('img').getAttribute('alt'));\n\t\t\tmedia.gallery.setAttribute('class', media.id);\n\t\t}\n\t\t// UNIQUEMENT EN MODE ALBUM\n\t\t// recherche des informations du média (3/4, config)\n\t\telse {\n\t\t\tshow = true;\n\t\t\tmedia.config = source.querySelector('input').getAttribute('value').split('|');\n\t\t}\n\n\t\t// recherche des informations du média (4/4, url|type|styles)\n\t\t// défini le type de dialogue à partir du mimetype du lien de la source si cela est possible\n\t\tmedia.url = source.getAttribute('href');\n\t\tmedia.type = source.getAttribute('type').substring(0, 5).replace('image', 'dialogPhoto').replace('video', 'dialogVideo').replace('audio', 'dialogVideo');\n\t\tmedia.type = (media.type.indexOf('dialog') === 0) ? media.type : 'dialogPhoto';\n\t\tmedia.styles = apijs.html(media.prefix, true);\n\t\tmedia.styles = media.styles.hasAttribute('class') ? media.styles.getAttribute('class').replace(/gallery|album/g, '').trim() : '';\n\n\t\t// demande l'affichage du dialogue\n\t\t// lors d'un clic sur l'image principale du mode gallery\n\t\t// ou lors d'un clic sur les miniatures en mode album\n\t\t// ou lors d'un appel direct\n\t\tif (show) {\n\n\t\t\tapijs.dialog[media.type](media.url, media.config[0], media.config[1], media.config[2], media.styles);\n\n\t\t\ttotal = apijs.html(media.prefix, true).querySelectorAll('a[id][type]').length - (media.gallery ? 2 : 1);\n\t\t\tapijs.slideshow.current = {\n\t\t\t\tnumber: media.number,\n\t\t\t\tfirst: media.prefix + '.0',\n\t\t\t\tprev: (media.number > 0) ? media.prefix + '.' + (media.number - 1) : null,\n\t\t\t\tnext: (media.number < total) ? media.prefix + '.' + (media.number + 1) : null,\n\t\t\t\tlast: media.prefix + '.' + total,\n\t\t\t\ttotal: total\n\t\t\t};\n\n\t\t\t// boutons précédent et suivant\n\t\t\tif (apijs.slideshow.current.prev)\n\t\t\t\tapijs.html('#Prev').removeAttribute('disabled');\n\t\t\tif (apijs.slideshow.current.next)\n\t\t\t\tapijs.html('#Next').removeAttribute('disabled');\n\n\t\t\t// gestion de l'historique\n\t\t\t// met à jour l'ancre uniquement si l'utilisateur ne joue pas avec son historique\n\t\t\tif (apijs.config.slideshow.anchor && (typeof history.pushState == 'function') && ((typeof push == 'boolean') ? push : true)) {\n\t\t\t\thash = self.location.href;\n\t\t\t\thash = (hash.indexOf('#') > 0) ? hash.slice(0, hash.indexOf('#')) : hash;\n\t\t\t\thash += '#' + (media.prefix + '.' + ((media.number === 99999) ? 0 : media.number)).replace(/\\./g,'-');\n\t\t\t\thistory.pushState({}, '', hash);\n\t\t\t}\n\t\t}\n\n\t\treturn show;\n\t};\n\n\n\t// GESTION DES INTERACTIONS (public return boolean)\n\n\tthis.actionFirst = function () {\n\n\t\tif (this.current && (this.current.number > 0) && (this.current.number <= this.current.total))\n\t\t\treturn this.show(this.current.first);\n\n\t\treturn false;\n\t};\n\n\tthis.actionPrev = function () {\n\n\t\tif (this.current && this.current.prev && (this.current.number > 0))\n\t\t\treturn this.show(this.current.prev);\n\n\t\treturn false;\n\t};\n\n\tthis.actionNext = function () {\n\n\t\tif (this.current && this.current.next && (this.current.number < this.current.total))\n\t\t\treturn this.show(this.current.next);\n\n\t\treturn false;\n\t};\n\n\tthis.actionLast = function () {\n\n\t\tif (this.current && (this.current.number >= 0) && (this.current.number < this.current.total))\n\t\t\treturn this.show(this.current.last);\n\n\t\treturn false;\n\t};\n};","/**\n * Created L/13/04/2009\n * Updated D/03/12/2023\n *\n * Copyright 2008-2024 | Fabrice Creuzot (luigifab) \n * https://github.com/luigifab/apijs\n *\n * This program is free software, you can redistribute it or modify\n * it under the terms of the GNU General Public License (GPL) as published\n * by the free software foundation, either version 2 of the license, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but without any warranty, without even the implied warranty of\n * merchantability or fitness for a particular purpose. See the\n * GNU General Public License (GPL) for more details.\n */\n\napijs.core.upload = function () {\n\n\t\"use strict\";\n\tthis.title = null;\n\tthis.action = null;\n\tthis.input = null;\n\tthis.onemax = 0; // taille d'un seul fichier\n\tthis.allmax = 0; // taille de tous les fichiers\n\tthis.exts = null;\n\tthis.callback = null;\n\tthis.args = null;\n\tthis.icon = null;\n\n\tthis.start = 0; // time\n\tthis.end = 0; // time\n\n\n\t// AFFICHAGE DE LA BOÎTE DE DIALOGUE (public return boolean)\n\n\tthis.sendFile = function (title, action, input, onemax, exts, callback, args, icon) {\n\n\t\tvar res = this.sendFiles(title, action, input, onemax, 0, exts, callback, args, icon);\n\t\tif (!res) console.error('apijs.upload.sendFile invalid arguments', arguments);\n\n\t\treturn res;\n\t};\n\n\tthis.sendFiles = function (title, action, input, onemax, allmax, exts, callback, args, icon) {\n\n\t\tif (title !== true) {\n\t\t\tthis.title = title;\n\t\t\tthis.action = action;\n\t\t\tthis.input = input;\n\t\t\tthis.onemax = onemax;\n\t\t\tthis.allmax = allmax;\n\t\t\tthis.exts = (typeof exts == 'string') ? exts.split(',') : ['*'];\n\t\t\tthis.callback = callback;\n\t\t\tthis.args = args;\n\t\t\tthis.icon = icon;\n\t\t}\n\n\t\tif ((typeof this.title == 'string') && (typeof this.action == 'string') && (typeof this.input == 'string') &&\n\t\t (typeof this.onemax == 'number') && (typeof this.allmax == 'number') && (typeof this.callback == 'function')) {\n\n\t\t\tvar text, multiple = this.allmax > 0;\n\n\t\t\tif (this.exts.join() === '*')\n\t\t\t\ttext = apijs.i18n.translate(161);\n\t\t\telse if (this.exts.length === 1)\n\t\t\t\ttext = apijs.i18n.translate(162, this.exts.join());\n\t\t\telse\n\t\t\t\ttext = apijs.i18n.translate(163, this.exts.slice(0, -1).join(', '), this.exts.slice(-1));\n\n\t\t\ttext += '[br]' + apijs.i18n.translate(\n\t\t\t\tmultiple ? 165 : 164, // clef de traduction\n\t\t\t\tapijs.formatNumber(this.onemax), // taille d'un fichier\n\t\t\t\tmultiple ? apijs.formatNumber(this.allmax) : '' // taille de tous les fichiers\n\t\t\t).replace('|', '[br]');\n\n\t\t\treturn apijs.dialog.dialogFormUpload(this.title, text, this.action, this.input, multiple, this.icon);\n\t\t}\n\n\t\tif ((typeof this.allmax != 'number') || (this.allmax > 0))\n\t\t\tconsole.error('apijs.upload.sendFiles invalid arguments', arguments);\n\n\t\treturn false;\n\t};\n\n\n\t// GESTION DES INTERACTIONS (private return void)\n\n\tthis.actionDrag = function (ev) {\n\n\t\tvar elem = apijs.dialog.t3, stop = true;\n\n\t\tif (ev.type === 'dragenter') {\n\t\t\tapijs.dialog.add('drag');\n\t\t}\n\t\telse if (ev.type === 'dragleave') {\n\t\t\tapijs.dialog.remove('drag');\n\t\t}\n\t\t// drag and drop\n\t\telse if (ev.dataTransfer && ev.dataTransfer.files && (ev.dataTransfer.files.length > 0)) {\n\n\t\t\ttry {\n\t\t\t\telem.files = ev.dataTransfer.files; // Firefox 57+\n\t\t\t\tapijs.upload.actionChoose(elem);\n\t\t\t}\n\t\t\tcatch (e) {\n\t\t\t\tconsole.error(e);\n\t\t\t\tapijs.html('.drag').remove();\n\t\t\t}\n\n\t\t\tapijs.dialog.remove('drag');\n\t\t}\n\t\t// copy and paste\n\t\telse if (ev.clipboardData && ev.clipboardData.files && (ev.clipboardData.files.length > 0)) {\n\n\t\t\t// Firefox 22+, Chrome 58+, Opera 45+, Safari 10.1+\n\t\t\ttry {\n\t\t\t\telem.files = ev.clipboardData.files; // Firefox 57+\n\t\t\t\tapijs.upload.actionChoose(elem, true);\n\t\t\t}\n\t\t\tcatch (e) {\n\t\t\t\tconsole.error(e);\n\t\t\t\tapijs.html('.drag').remove();\n\t\t\t}\n\t\t}\n\t\telse if (ev.clipboardData) {\n\t\t\tstop = false;\n\t\t}\n\n\t\tif (stop) {\n\t\t\tev.stopPropagation();\n\t\t\tev.preventDefault();\n\t\t}\n\t};\n\n\tthis.actionChoose = function (elem, paste) {\n\n\t\tvar html = [], size = 0, btn = apijs.html('button.confirm');\n\n\t\tif (this.exts) {\n\n\t\t\t// 1048576 octet = 1 Mo\n\t\t\t// @see https://stackoverflow.com/a/24775765/2980105\n\t\t\tapijs.toArray(elem.files, (this.allmax > 0) ? 999 : 1).forEach(function (file, idx) {\n\n\t\t\t\tvar txt = file.size / 1048576;\n\t\t\t\ttxt = apijs.formatNumber((txt < 0.01) ? 0.01 : txt);\n\t\t\t\ttxt = ((paste || (this.allmax > 0)) ?\n\t\t\t\t\t'' + (paste ? (new Date()).toTimeString().substring(0, 8) : idx + 1) + '' : '') +\n\t\t\t\t\t'' + file.name + '' +\n\t\t\t\t\t'' + apijs.i18n.translate(166, txt) + '';\n\n\t\t\t\tif ((this.exts.join() !== '*') && !this.exts.has(file.name.slice(file.name.lastIndexOf('.') + 1).toLowerCase())) {\n\t\t\t\t\ttxt += '' + apijs.i18n.translate(167) + '';\n\t\t\t\t}\n\t\t\t\telse if (file.size > (this.onemax * 1048576)) {\n\t\t\t\t\ttxt += '' + apijs.i18n.translate(168) + '';\n\t\t\t\t}\n\t\t\t\telse if (file.size <= 0) {\n\t\t\t\t\ttxt += '' + apijs.i18n.translate(169) + '';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttxt += '';\n\t\t\t\t}\n\n\t\t\t\thtml.push('' + txt + '');\n\t\t\t\tsize += file.size / 1048576;\n\n\t\t\t}, this); // pour que ci-dessus this = this\n\n\t\t\t// multiple\n\t\t\tif ((this.allmax > 0) && (size >= this.allmax)) {\n\t\t\t\thtml.push('' + apijs.i18n.translate(166, apijs.formatNumber(size)) + '' + apijs.i18n.translate(168) + '');\n\t\t\t}\n\n\t\t\t// ok ou ko\n\t\t\tapijs.html('div.filenames').innerHTML = '' + html.join('') + '
';\n\t\t\tif (apijs.html('div.filenames .err')) {\n\t\t\t\tbtn.setAttribute('disabled', 'disabled');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbtn.removeAttribute('disabled');\n\t\t\t\tbtn.focus();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tbtn.setAttribute('disabled', 'disabled');\n\t\t}\n\t};\n\n\tthis.actionConfirm = function () {\n\n\t\tif (apijs.dialog.t3.files.length > 0) {\n\n\t\t\tvar form = new FormData(apijs.dialog.t2), xhr = new XMLHttpRequest();\n\t\t\txhr.open('POST', this.action + ((this.action.indexOf('?') > 0) ? '&isAjax=true' : '?isAjax=true'), true);\n\n\t\t\t// token\n\t\t\tif (typeof apijs.config.upload.tokenValue == 'string') {\n\t\t\t\txhr.setRequestHeader(apijs.config.upload.tokenName, apijs.config.upload.tokenValue);\n\t\t\t\tform.append(apijs.config.upload.tokenName, apijs.config.upload.tokenValue);\n\t\t\t}\n\n\t\t\t// @see https://bugzilla.mozilla.org/show_bug.cgi?id=637002\n\t\t\t// @see https://stackoverflow.com/a/15491086\n\t\t\t// loadstart - When the request starts\n\t\t\t// progress - While sending and loading data\n\t\t\t// load - When the request has successfully completed even if the server hasn't responded that it finished\n\t\t\t// loadend - When the request has completed even if the server hasn't responded that it finished processing the request\n\t\t\t// error - When the request has failed\n\t\t\t// abort - When the request has been aborted (by invoking the abort method)\n\t\t\t// timeout - When the author specified timeout has passed before the request could complete\n\t\t\txhr.onreadystatechange = function (text) {\n\t\t\t\tif (xhr.readyState === 4) {\n\t\t\t\t\ttext = xhr.responseText.trim();\n\t\t\t\t\tif ([0, 200].has(xhr.status)) {\n\t\t\t\t\t\tself.dispatchEvent(new CustomEvent('apijsajaxresponse', { detail: { from: 'apijs.upload.send', xhr: xhr } }));\n\t\t\t\t\t\tapijs.log('upload:onreadystatechange status:200 message:' + text);\n\t\t\t\t\t\tif (text.indexOf('success-') === 0) {\n\t\t\t\t\t\t\tthis.updateTitle();\n\t\t\t\t\t\t\tthis.callback(text.slice(8), this.args);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tthis.onError(195, text);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tapijs.log('upload:onreadystatechange status:' + xhr.status + ' message: ' + text);\n\t\t\t\t\t\tthis.onError(194, xhr.status);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}.bind(this); // pour que ci-dessus this = this\n\n\t\t\txhr.upload.onloadstart = this.onStart.bind(this);\n\t\t\txhr.upload.onprogress = this.onProgress.bind(this);\n\t\t\txhr.upload.onload = this.onProgress.bind(this);\n\t\t\txhr.upload.onerror = this.onError.bind(this);\n\t\t\txhr.send(form);\n\t\t}\n\t\telse {\n\t\t\tapijs.html('button.browse').focus();\n\t\t}\n\n\t\treturn false; // très important\n\t};\n\n\tthis.onStart = function () {\n\n\t\tthis.start = this.end = Math.round(new Date().getTime() / 1000);\n\t\tapijs.dialog.dialogProgress(this.title, apijs.i18n.translate(125), this.icon);\n\t};\n\n\tthis.onError = function (key, txt) {\n\n\t\tthis.updateTitle();\n\n\t\tif (typeof key == 'number')\n\t\t\ttxt = '[p]' + apijs.i18n.translate(key) + '[/p] ' + txt;\n\t\telse if (typeof txt != 'string')\n\t\t\ttxt = '[p]' + apijs.i18n.translate(193) + '[/p]';\n\n\t\ttxt += '[p]' + apijs.i18n.translate(196, 'href=\"apijs://restart\" onclick=\"apijs.upload.sendFile(true); return false;\"') + '[/p]';\n\t\tapijs.dialog.dialogInformation(this.title, txt, (typeof this.icon == 'string') ? 'upload error ' + this.icon : 'upload error');\n\t};\n\n\tthis.onProgress = function (ev) {\n\n\t\tvar percent, key, rate, time, elapsedTime, totalTime, currentTime = Math.round(new Date().getTime() / 1000), mins;\n\n\t\t// Cherche à actualiser la barre de progression toutes les 2 secondes (uniquement de 1 à 99%)\n\t\t// affiche le pourcentage, la vitesse à partir de 25 secondes, le temps restant à partir de 40 secondes ET 90 secondes de temps total\n\t\tif (ev.lengthComputable && (ev.type === 'progress') && (currentTime >= (this.end + 2))) {\n\n\t\t\tthis.end = currentTime;\n\n\t\t\t// Math.floor = entier inférieur, Math.ceil = entier supérieur, Math.round = au mieux\n\t\t\t// ev.loaded = nombre d'octet envoyé sur le serveur\n\t\t\t// ev.total = nombre d'octet à envoyer sur le serveur\n\t\t\t// pourcentage = nombre d'octet envoyé * 100 / nombre d'octet à envoyer\n\t\t\tpercent = Math.floor((ev.loaded * 100) / ev.total);\n\n\t\t\tif ((percent > 0) && (percent < 100)) {\n\n\t\t\t\tthis.updateTitle(percent);\n\n\t\t\t\t// temps écoulé = maintenant - départ\n\t\t\t\t// temps total = temps écoulé * 100 / pourcentage + 10 secondes\n\t\t\t\telapsedTime = currentTime - this.start;\n\t\t\t\ttotalTime = elapsedTime * 100 / percent + 10;\n\n\t\t\t\tif (elapsedTime > 24) {\n\n\t\t\t\t\t// temps restant = temps total - temps écoulé\n\t\t\t\t\ttime = Math.round(totalTime - elapsedTime);\n\t\t\t\t\ttime = Math.ceil(time / 10) * 10;\n\t\t\t\t\tmins = Math.ceil(time / 60);\n\n\t\t\t\t\t// vitesse = taille téléchargé / temps écoulé / 1024\n\t\t\t\t\trate = Math.round(ev.loaded / elapsedTime / 1024);\n\n\t\t\t\t\tif ((elapsedTime < 40) || (totalTime < 90)) { key = 184; time = null; } // \"§% - § ko/s\"\n\t\t\t\t\telse if (mins > 1) { key = 181; time = mins; } // \"§% - § ko/s - § minutes restantes\"\n\t\t\t\t\telse if (time > 50) { key = 182; time = 1; } // \"§% - § ko/s - § minute restante\"\n\t\t\t\t\telse { key = 183; } // \"§% - § ko/s - § secondes restantes\"\n\t\t\t\t}\n\n\t\t\t\tthis.updateProgress(percent, key, rate, time);\n\t\t\t}\n\t\t}\n\t\t// Cherche à actualiser la barre de progression lorsque l'envoi du fichier est terminé (donc à 100%)\n\t\t// affiche le pourcentage, le temps total à partir de 20 secondes, la vitesse si possible\n\t\telse if (ev.type === 'load') {\n\n\t\t\t// temps total = temps actuel - temps du départ\n\t\t\ttime = Math.round(new Date().getTime() / 1000) - this.start;\n\t\t\tmins = Math.ceil(time / 60);\n\n\t\t\t// vitesse = taille total / temps total / 1024\n\t\t\trate = Math.round(ev.loaded / time / 1024);\n\n\t\t\tif ((rate > 0) && (rate !== Infinity)) {\n\t\t\t\tif (mins > 1) { key = 185; time = mins; } // \"§% - à § ko/s en § minutes\"\n\t\t\t\telse if (time > 50) { key = 186; time = 1; } // \"§% - à § ko/s en § minute\"\n\t\t\t\telse if (time > 20) { key = 187; } // \"§% - à § ko/s en § secondes\"\n\t\t\t\telse { key = 188; time = null; } // \"§% - à § ko/s\"\n\t\t\t}\n\t\t\telse {\n\t\t\t\trate = null; time = null; // 100%\n\t\t\t}\n\n\t\t\tthis.updateTitle(100);\n\t\t\tthis.updateProgress(100, key, rate, time);\n\t\t}\n\t};\n\n\tthis.updateProgress = function (percent, key, rate, time) {\n\n\t\tvar rect = apijs.html('rect'), text = apijs.html('span.info'), data;\n\n\t\tif (percent > 99) {\n\t\t\tdata = '100%';\n\t\t\trect.setAttribute('class', 'end');\n\t\t\trect.style.width = '';\n\t\t\tvar elem = apijs.html('p');\n\t\t\telem.setAttribute('data-old', elem.textContent);\n\t\t\telem.setAttribute('data-new', apijs.i18n.translate(126));\n\t\t\telem.setAttribute('class', 'anim');\n\t\t\telem.textContent = '';\n\t\t}\n\t\telse {\n\t\t\trect.style.width = data = percent + '%';\n\t\t\tif (rect.hasAttribute('class'))\n\t\t\t\trect.removeAttribute('class');\n\t\t}\n\n\t\tif ((typeof key == 'number') && (typeof rate == 'number') && (typeof time == 'number'))\n\t\t\tdata = apijs.i18n.translate(key, percent, apijs.formatNumber(rate, false), time);\n\t\telse if ((typeof key == 'number') && (typeof rate == 'number'))\n\t\t\tdata = apijs.i18n.translate(key, percent, apijs.formatNumber(rate, false));\n\n\t\ttext.textContent = data;\n\t};\n\n\tthis.updateTitle = function (percent) {\n\n\t\tif (typeof percent == 'number') {\n\t\t\tdocument.title = (/^\\d{1,3}% - /.test(document.title)) ?\n\t\t\t\tpercent + '% - ' + document.title.slice(document.title.indexOf(' - ') + 3) : percent + '% - ' + document.title;\n\t\t}\n\t\telse if (/^\\d{1,3}% - /.test(document.title)) {\n\t\t\tdocument.title = document.title.slice(document.title.indexOf(' - ') + 3);\n\t\t}\n\t};\n};"],"names":["Array","prototype","has","needle","key","hasOwnProperty","this","window","NodeList","forEach","callback","that","i","length","call","apijs","core","version","config","lang","debug","dialog","closeOnClick","restrictNavigation","player","slideshow","ids","anchor","upload","tokenName","tokenValue","start","elem","console","info","toString","split","join","document","getElementById","Error","querySelector","getAttribute","indexOf","error","i18n","self","dispatchEvent","CustomEvent","init","querySelectorAll","startPlayer","addEventListener","onPopState","Object","keys","data","formatNumber","nb","dec","str","dgt","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","format","e","toFixed","replace","url","videoPlayer","parentNode","classList","add","toArray","max","slice","openTab","ev","preventDefault","href","open","log","txt","html","selector","id","t1","requestFullscreen","webkitFullscreenElement","webkitCancelFullScreen","mozFullScreenElement","mozCancelFullScreen","fullscreenElement","cancelFullScreen","webkitRequestFullscreen","mozRequestFullScreen","serialize","form","filter","elements","idx","name","disabled","type","options","selected","push","encodeURIComponent","value","checked","bind","cs","103","104","105","106","107","108","132","133","134","135","142","143","144","145","146","148","149","150","de","109","124","147","161","162","163","164","167","168","169","181","182","183","185","186","187","188","191","192","193","194","195","196","el","102","131","en","125","126","127","141","165","166","184","es","fr","hu","it","ja","nl","pl","pt","ptbr","ro","ru","sk","tr","uk","zh","toLowerCase","translate","word","translation","arguments","translateNode","createTextNode","apply","changeLang","select","video","stalled","subload","autoRun","xhr","removeAttribute","onloadedmetadata","onTimeupdate","onProgress","onVideotrack","onAudiotrack","onstalled","onWaiting","onplaying","onPlay","onpause","onended","onprogress","ontimeupdate","onseeking","onseeked","onwaiting","onloadstart","oncanplay","onclick","actionPlay","onvolumechange","actionVolume","ondurationchange","onMediaLoad","onerror","appendChild","htmlSvgPlayer","htmlSource","XMLHttpRequest","onreadystatechange","readyState","detail","from","childNodes","abort","status","nbv","nbt","responseText","trim","shift","setAttribute","htmlOption","htmlTrack","updateSelect","textTracks","send","css","total","adjust","textContent","innerHTML","tracks","videoTracks","auto","language","selectedIndex","Math","actionVideotrack","audioTracks","actionAudiotrack","hh","mm","ss","time","currentTime","duration","text","isNaN","Infinity","floor","style","width","buffer","buffered","node","remove","createElement","end","networkState","paused","swipe","ended","play","pause","offsetWidth","clientX","offsetLeft","offsetParent","volume","muted","actionPosition","target","enabled","blur","actionTexttrack","mode","actionVideo","src","actionFullscreen","res","d","c","b","a","onchange","webkitFullscreenEnabled","fullscreenEnabled","mozFullScreenEnabled","onload","lastIndexOf","track","label","klass","height","scroll","args","ft","ti","ns","media","t0","t2","t3","dialogInformation","title","icon","htmlParent","htmlContent","htmlBtnOk","show","dialogConfirmation","htmlBtnConfirm","dialogFormOptions","action","dialogFormUpload","input","multiple","htmlUpload","dialogProgress","htmlSvgProgress","dialogWaiting","htmlSvgLoader","dialogPhoto","date","legend","htmlMedia","htmlHelp","htmlBtnClose","htmlBtnNavigation","dialogVideo","dialogIframe","close","htmlIframe","dialogAjax","update","splice","toggle","search","actionClose","history","pushState","RegExp","test","location","clear","onCloseBrowser","stopPropagation","m","returnValue","onResizeBrowser","clientWidth","onScrollBrowser","brk","nodeName","Date","getTime","wheelDelta","contains","scrollHeight","offsetHeight","scrollTop","onScrollIframe","defaultView","innerHeight","scrollY","body","onKey","ctrlKey","keyCode","altKey","actionLast","actionFirst","actionPrev","actionNext","onFullscreen","onIframeLoad","contentWindow","parent","passive","currentSrc","visibility","hasAttribute","imageLoader","elems","onSlideshowSwipe","setTimeout","actionConfirm","isLocked","matchMedia","matches","concat","createDocumentFragment","focus","minHeight","old","firstChild","actionDrag","isAll","hammer","off","destroy","removeEventListener","parseFloat","getComputedStyle","submit","drag","click","Hammer","get","set","direction","DIRECTION_ALL","on","isMultiple","change","isDelayed","createElementNS","fileid","Image","isSlideshow","isVideo","navigator","userAgent","match","items","item","current","j","hoverload","$1","source","srcset","conts","prefix","number","parseInt","gallery","links","substring","styles","first","prev","next","last","hash","onemax","allmax","exts","sendFile","sendFiles","stop","dataTransfer","files","actionChoose","clipboardData","paste","size","btn","file","toTimeString","FormData","setRequestHeader","append","updateTitle","onError","onStart","round","percent","rate","totalTime","mins","lengthComputable","loaded","elapsedTime","ceil","updateProgress","rect"],"mappings":";;;;;GAkBKA;MAAMC,UAAUC,MACpBF,MAAMC,UAAUC,IAAM,SAAUC,EAAQC,GACvC,GAAID,aAAkBH,OACrB,IAAKI,KAAOD,EAAQ,GAAIA,EAAOE,eAAeD,CAAG,GAC5CE,KAAKJ,IAAIC,EAAOC,EAAI,EACvB,MAAO,CAAA,CACT,MAGA,IAAKA,KAAOE,KAAM,GAAIA,KAAKD,eAAeD,CAAG,GACxCE,KAAKF,KAASD,EACjB,MAAO,CAAA,EAGV,MAAO,CAAA,CACR,GAGGI,OAAOC,UAAY,CAACA,SAASP,UAAUQ,UAC1CD,SAASP,UAAUQ,QAAU,SAAUC,EAAUC,EAAMC,GAEtD,IADAD,EAAOA,GAAQJ,OACVK,EAAI,EAAGA,EAAIN,KAAKO,OAAQD,CAAC,GAC7BF,EAASI,KAAKH,EAAML,KAAKM,GAAIA,EAAGN,IAAI,CACtC,GAGD,IAAIS,MAAQ,IAAI,WAEf,aACAT,KAAKU,KAAO,GACZV,KAAKW,QAAU,IAEfX,KAAKY,OAAS,CACbC,KAAM,OACNC,MAAO,CAAA,EAEPC,OAAQ,CACPC,aAAc,CAAA,EACdC,mBAAoB,CAAA,EACpBC,OAAQ,CAAA,CACT,EACAC,UAAW,CACVC,IAAK,YACLC,OAAQ,CAAA,CACT,EACAC,OAAQ,CACPC,UAAW,eACXC,WAAY,IACb,CACD,EAEAxB,KAAKyB,MAAQ,WAEZ,IAAIC,EAIJ,GADAC,QAAQC,KAAK,SAAW5B,KAAKW,QAAQkB,SAAS,EAAEC,MAAM,EAAE,EAAEC,KAAK,GAAG,EAA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