ode-ngjs-front 1.4.11 → 1.4.12-dev.202507031207
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/669.js +2 -0
- package/dist/669.js.map +1 -0
- package/dist/ode-ngjs-front.js +4 -4
- package/dist/ode-ngjs-front.js.map +1 -1
- package/dist/ts/widgets/cantine-widget/cantine-widget.widget.d.ts.map +1 -1
- package/dist/version.txt +1 -1
- package/dist/widgets/agenda-widget/agenda-widget.widget.js +1 -1
- package/dist/widgets/agenda-widget/agenda-widget.widget.js.map +1 -1
- package/dist/widgets/bookmark-widget/bookmark-widget.widget.js +1 -1
- package/dist/widgets/bookmark-widget/bookmark-widget.widget.js.map +1 -1
- package/dist/widgets/briefme-widget/briefme-widget.widget.js +1 -1
- package/dist/widgets/briefme-widget/briefme-widget.widget.js.map +1 -1
- package/dist/widgets/calendar-widget/calendar-widget.widget.js +1 -1
- package/dist/widgets/calendar-widget/calendar-widget.widget.js.map +1 -1
- package/dist/widgets/cantine-widget/cantine-widget.widget.js +1 -1
- package/dist/widgets/cantine-widget/cantine-widget.widget.js.map +1 -1
- package/dist/widgets/carnet-de-bord/carnet-de-bord.widget.js +1 -1
- package/dist/widgets/carnet-de-bord/carnet-de-bord.widget.js.map +1 -1
- package/dist/widgets/cursus-widget/cursus-widget.widget.js +1 -1
- package/dist/widgets/cursus-widget/cursus-widget.widget.js.map +1 -1
- package/dist/widgets/dicodelazone-widget/dicodelazone-widget.widget.js +1 -1
- package/dist/widgets/dicodelazone-widget/dicodelazone-widget.widget.js.map +1 -1
- package/dist/widgets/edumalin-widget/edumalin-widget.widget.js +1 -1
- package/dist/widgets/edumalin-widget/edumalin-widget.widget.js.map +1 -1
- package/dist/widgets/last-infos-widget/last-infos-widget.widget.js +1 -1
- package/dist/widgets/last-infos-widget/last-infos-widget.widget.js.map +1 -1
- package/dist/widgets/maxicours-widget/maxicours-widget.widget.js +1 -1
- package/dist/widgets/maxicours-widget/maxicours-widget.widget.js.map +1 -1
- package/dist/widgets/mediacentre-widget/mediacentre-widget.widget.js +1 -1
- package/dist/widgets/mediacentre-widget/mediacentre-widget.widget.js.map +1 -1
- package/dist/widgets/my-apps/my-apps.widget.js +1 -1
- package/dist/widgets/my-apps/my-apps.widget.js.map +1 -1
- package/dist/widgets/qwant-widget/qwant-widget.widget.js +1 -1
- package/dist/widgets/qwant-widget/qwant-widget.widget.js.map +1 -1
- package/dist/widgets/record-me/record-me.widget.js +1 -1
- package/dist/widgets/record-me/record-me.widget.js.map +1 -1
- package/dist/widgets/rss-widget/rss-widget.widget.js +1 -1
- package/dist/widgets/rss-widget/rss-widget.widget.js.map +1 -1
- package/dist/widgets/school-widget/school-widget.widget.js +1 -1
- package/dist/widgets/school-widget/school-widget.widget.js.map +1 -1
- package/dist/widgets/universalis-widget/universalis-widget.widget.js +1 -1
- package/dist/widgets/universalis-widget/universalis-widget.widget.js.map +1 -1
- package/package.json +2 -2
package/dist/ode-ngjs-front.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(()=>{var __webpack_modules__={807:()=>{!function(e){var t="application/x-dnd",n="application/json",r="Text",i=["move","copy","link"];function o(e,t){return"all"==t?e:e.filter((function(e){return-1!=t.toLowerCase().indexOf(e)}))}e.directive("dndDraggable",["$parse","$timeout",function(e,s){return function(u,c,l){c.attr("draggable","true"),l.dndDisableIf&&u.$watch(l.dndDisableIf,(function(e){c.attr("draggable",!e)})),c.on("dragstart",(function(d){if(d=d.originalEvent||d,"false"==c.attr("draggable"))return!0;a.isDragging=!0,a.itemType=l.dndType&&u.$eval(l.dndType).toLowerCase(),a.dropEffect="none",a.effectAllowed=l.dndEffectAllowed||i[0],d.dataTransfer.effectAllowed=a.effectAllowed;var f=u.$eval(l.dndDraggable),h=t+(a.itemType?"-"+a.itemType:"");try{d.dataTransfer.setData(h,angular.toJson(f))}catch(e){var p=angular.toJson({item:f,type:a.itemType});try{d.dataTransfer.setData(n,p)}catch(e){var v=o(i,a.effectAllowed);d.dataTransfer.effectAllowed=v[0],d.dataTransfer.setData(r,p)}}if(c.addClass("dndDragging"),s((function(){c.addClass("dndDraggingSource")}),0),d._dndHandle&&d.dataTransfer.setDragImage&&d.dataTransfer.setDragImage(c[0],0,0),e(l.dndDragstart)(u,{event:d}),l.dndCallback){var m=e(l.dndCallback);a.callback=function(e){return m(u,e||{})}}d.stopPropagation()})),c.on("dragend",(function(t){t=t.originalEvent||t,u.$apply((function(){var n=a.dropEffect;e(l[{copy:"dndCopied",link:"dndLinked",move:"dndMoved",none:"dndCanceled"}[n]])(u,{event:t}),e(l.dndDragend)(u,{event:t,dropEffect:n})})),a.isDragging=!1,a.callback=void 0,c.removeClass("dndDragging"),c.removeClass("dndDraggingSource"),t.stopPropagation(),s((function(){c.removeClass("dndDraggingSource")}),0)})),c.on("click",(function(t){l.dndSelected&&(t=t.originalEvent||t,u.$apply((function(){e(l.dndSelected)(u,{event:t})})),t.stopPropagation())})),c.on("selectstart",(function(){this.dragDrop&&this.dragDrop()}))}}]),e.directive("dndList",["$parse",function(e){return function(s,u,c){var l=function(){var e;return angular.forEach(u.children(),(function(t){var n=angular.element(t);n.hasClass("dndPlaceholder")&&(e=n)})),e||angular.element("<li class='dndPlaceholder'></li>")}();l.remove();var d=l[0],f=u[0],h={};function p(e){if(!e)return r;for(var i=0;i<e.length;i++)if(e[i]==r||e[i]==n||e[i].substr(0,17)==t)return e[i];return null}function v(e){return a.isDragging?a.itemType||void 0:e==r||e==n?null:e&&e.substr(18)||void 0}function m(e){return!h.disabled&&(!(!h.externalSources&&!a.isDragging)&&(!h.allowedTypes||null===e||e&&-1!=h.allowedTypes.indexOf(e)))}function g(e,t){var n=i;return t||(n=o(n,e.dataTransfer.effectAllowed)),a.isDragging&&(n=o(n,a.effectAllowed)),c.dndEffectAllowed&&(n=o(n,c.dndEffectAllowed)),n.length?e.ctrlKey&&-1!=n.indexOf("copy")?"copy":e.altKey&&-1!=n.indexOf("link")?"link":n[0]:"none"}function b(){return l.remove(),u.removeClass("dndDragover"),!0}function y(t,n,r,i,o,u){return e(t)(s,{callback:a.callback,dropEffect:r,event:n,external:!a.isDragging,index:void 0!==o?o:w(),item:u||void 0,type:i})}function w(){return Array.prototype.indexOf.call(f.children,d)}u.on("dragenter",(function(e){e=e.originalEvent||e;var t=c.dndAllowedTypes&&s.$eval(c.dndAllowedTypes);h={allowedTypes:angular.isArray(t)&&t.join("|").toLowerCase().split("|"),disabled:c.dndDisableIf&&s.$eval(c.dndDisableIf),externalSources:c.dndExternalSources&&s.$eval(c.dndExternalSources),horizontal:c.dndHorizontalList&&s.$eval(c.dndHorizontalList)};var n=p(e.dataTransfer.types);if(!n||!m(v(n)))return!0;e.preventDefault()})),u.on("dragover",(function(e){var t=p((e=e.originalEvent||e).dataTransfer.types),n=v(t);if(!t||!m(n))return!0;if(d.parentNode!=f&&u.append(l),e.target!=f){for(var i=e.target;i.parentNode!=f&&i.parentNode;)i=i.parentNode;if(i.parentNode==f&&i!=d){var o=i.getBoundingClientRect();if(h.horizontal)var a=e.clientX<o.left+o.width/2;else a=e.clientY<o.top+o.height/2;f.insertBefore(d,a?i:i.nextSibling)}}var s=t==r,w=g(e,s);return"none"==w||c.dndDragover&&!y(c.dndDragover,e,w,n)?b():(e.preventDefault(),s||(e.dataTransfer.dropEffect=w),u.addClass("dndDragover"),e.stopPropagation(),!1)})),u.on("drop",(function(e){var t=p((e=e.originalEvent||e).dataTransfer.types),i=v(t);if(!t||!m(i))return!0;e.preventDefault();try{var o=JSON.parse(e.dataTransfer.getData(t))}catch(e){return b()}if((t==r||t==n)&&(i=o.type||void 0,o=o.item,!m(i)))return b();var u=t==r,l=g(e,u);if("none"==l)return b();var d=w();return c.dndDrop&&!(o=y(c.dndDrop,e,l,i,d,o))?b():(a.dropEffect=l,u||(e.dataTransfer.dropEffect=l),!0!==o&&s.$apply((function(){s.$eval(c.dndList).splice(d,0,o)})),y(c.dndInserted,e,l,i,d,o),b(),e.stopPropagation(),!1)})),u.on("dragleave",(function(e){e=e.originalEvent||e;var t=document.elementFromPoint(e.clientX,e.clientY);f.contains(t)&&!e._dndPhShown?e._dndPhShown=!0:b()}))}}]),e.directive("dndNodrag",(function(){return function(e,t,n){t.attr("draggable","true"),t.on("dragstart",(function(e){(e=e.originalEvent||e)._dndHandle||(e.dataTransfer.types&&e.dataTransfer.types.length||e.preventDefault(),e.stopPropagation())})),t.on("dragend",(function(e){(e=e.originalEvent||e)._dndHandle||e.stopPropagation()}))}})),e.directive("dndHandle",(function(){return function(e,t,n){t.attr("draggable","true"),t.on("dragstart dragend",(function(e){(e=e.originalEvent||e)._dndHandle=!0}))}}));var a={}}(angular.module("dndLists",[]))},925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"1ec99fe1d6b3b1542c0fbe083a7ae716.html"},6722:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"7f0136c03fe438995347a346ee478b3a.html"},5230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"2ebddef9552e6e74febdcc049e7b6cea.html"},41:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=' <div ng-class="{\'d-none\': !ctrl.showMenu || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <img class="img-fluid" skin-src="/img/illustrations/recorder-audio.svg" width="100" height="100" alt="recorder"> </div> <div ng-class="{ \'d-none\': !ctrl.showMenu || !ctrl.isAudioCompatible || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <button type="button" ng-click="ctrl.switchRecorder(\'audio\')" class="btn btn-circle" i18n-title="embed.audio.title"> <i class="fas fa-microphone"></i> </button> </div> <div ng-class="{ \'d-none\': !ctrl.showMenu || !ctrl.isVideoCompatible || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <button type="button" ng-click="ctrl.switchRecorder(\'video\')" class="btn btn-circle"> <i class="fas fa-video"></i> </button> </div> <div ng-if="!ctrl.isAudioCompatible && !ctrl.isVideoCompatible" class="flex-fill"> <p><i18n>recorder.not.supported</i18n></p> </div> <div ng-if="!ctrl.isVideoCompatible" class="flex-fill"> <div ng-if="VideoRecorder.isIncompatibleBrowser()"> <p><i18n>embed.video.incompatible.details</i18n></p> <p class="update"> <a href="https://www.google.fr/chrome/browser/desktop/" target="_blank"> <img src="/auth/public/img/chrome_logo.png"/> </a> <a href="https://www.mozilla.org/fr/firefox/new/" target="_blank"> <img src="/auth/public/img/firefox_logo.png"/> </a> </p> </div> <div ng-if="VideoRecorder.isIncompatibleDevice()"> <p><i18n>embed.video.incompatible.devices</i18n></p> <p><i18n>embed.video.incompatible.devices.footer</i18n></p> <img skin-src="images/emptyscreen-recorder-video.svg" height="150"> </div> </div> <div id="audioRecorder" class="flex-fill" ng-if="ctrl.selectedRecorder === \'audio\'"> <div class="record-timer"> <i class="fas fa-microphone"></i> [[ctrl.time()]] </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <input type="text" class="form-control" i18n-placeholder="title" ng-model="ctrl.recorder.title"/> </div> <div class="record-controls" ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <button id="btnAudioRecorder" type="button" class="btn btn-circle" ng-click="ctrl.switchAudioRecord()" ng-class="{ \'d-none\': ctrl.isVideo || !ctrl.isAudioCompatible }" ng-disabled="ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.isSaved"> <i class="fas" ng-class="{\'fa-microphone\': !ctrl.isRecording, \'fa-pause\': ctrl.isRecording}"></i> <span class="label" ng-if="ctrl.isIdle || ctrl.isStopped"><i18n>embed.record</i18n></span> <span class="label" ng-if="!ctrl.isRecording && !ctrl.isIdle && !ctrl.isStopped" ng-class="{\'d-none\': ctrl.isIdle}"><i18n>embed.resume</i18n></span> <span class="label" ng-if="ctrl.isRecording"><i18n>embed.suspend</i18n></span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.switchPlay()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading"> <i class="fas" ng-class="ctrl.isPlaying ? \'fa-pause\' : \'fa-play\'"></i> <span class="label" ng-if="!ctrl.isPlaying"><i18n>embed.play</i18n></span> <span class="label" ng-if="ctrl.isPlaying"><i18n>embed.pause</i18n></span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.saveRecord()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.recordIsSaved"> <i ng-class="ctrl.getSaveBtnClass()"></i> <span class="label"><i18n>embed.save</i18n></span> </button> <button type="button" class="btn btn-circle btn-danger" ng-click="ctrl.clean()" ng-disabled="ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i class="fas fa-times"></i> <span class="label"><i18n>embed.redo</i18n></span> </button> </div> </div> <div id="videoRecorder" class="flex-fill" navigation-guard="true" guard-root="videoCapturedGuard" ng-if="ctrl.selectedRecorder === \'video\'"> <div class="record-timer"> <i class="fas fa-video"></i> [[ctrl.msToTime(ctrl.recorder.elapsedTime)]]/[[ctrl.msToTime(ctrl.recordMaxTime)]] </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <select title="selectWebcam" class="form-select mb-2" ng-if="ctrl.videoInputDevices.length > 1" ng-options="vid as vid.label for vid in ctrl.videoInputDevices" ng-disabled="ctrl.isRecording" ng-model="ctrl.selectedVid" ng-change="ctrl.switchVideo(ctrl.selectedVid.deviceId)"> </select> </div> <div id="recorderWidgetVideoPlayer" class="record-widget-player"> </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <label class="visually-hidden" for="video-recorder"><i18n>title</i18n></label> <input type="text" id="video-recorder" class="form-control" i18n-placeholder="title" ng-model="ctrl.recorder.title"/> </div> <div class="record-controls" custom-guard="recordGuard" ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <button id="btnVideoRecorder" type="button" class="btn btn-circle" ng-if="!(ctrl.isAudio) && ctrl.isVideoCompatible" ng-click="ctrl.switchVideoRecord()" ng-disabled="ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.isSaved"> <i class="fas" ng-class="{\'fa-stop\': ctrl.isRecording, \'fa-video\': !ctrl.isRecording}"></i> <span class="label">[[ctrl.isRecording ? \'embed.stop\' : \'embed.record\' | i18n]]</span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.switchPlay()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading"> <i class="fas" ng-class="{\'fa-pause\': ctrl.isPlaying, \'fa-play\': !ctrl.isPlaying}"></i> <span class="label">[[ctrl.isPlaying ? \'embed.pause\' : \'embed.play\' | i18n]]</span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.saveRecord()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i ng-class="ctrl.getSaveBtnClass()"></i> <span class="label"> <i18n>embed.save</i18n> </span> </button> <button type="button" class="btn btn-circle btn-danger" ng-click="ctrl.clean()" ng-disabled="ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i class="fas fa-times"></i> <span class="label"><i18n>embed.redo</i18n></span> </button> </div> </div> <div ng-class="{\'d-none\': !ctrl.displaySavedMessage, \'d-block record-widget-message\': ctrl.displaySavedMessage}"> <p class="text-success">{{ctrl.recorder.title}} <i18n>embed.saved.file</i18n></p> <a ng-href="/workspace/workspace#/apps" class="btn btn btn-outline-third rounded-pill d-inline-block mx-auto"><i18n>embed.goto.file</i18n></a> <button class="btn btn-link d-block mx-auto" ng-click="ctrl.clean()"><i18n>embed.new.recording</i18n></button> </div>'},3146:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<ode-modal visible="ctrl.display.showAuthenticatedConnectorLightbox" on-close="ctrl.onClose()"> <ode-modal-title> <i18n>apps.authenticatedConnector.lightbox.title</i18n> </ode-modal-title> <ode-modal-body> <p class="text-center"> <i18n>apps.authenticatedConnector.lightbox.content</i18n> </p> </ode-modal-body> <ode-modal-footer> <button class="btn btn-light text-primary" ng-click="ctrl.onClose()"> <i18n>cancel</i18n> </button> <button class="btn btn-primary" ng-click="ctrl.onConfirm()"> <i18n>confirm</i18n> </button> </ode-modal-footer> </ode-modal> '},2306:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<i class="navbar-help ic-help" ng-click="onHelp()"></i> <ode-modal class="modal-help" visible="display.read" on-close="display.read = false"> <ode-modal-title></ode-modal-title> <ode-modal-body><div></div></ode-modal-body> </ode-modal> '},959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=' <header class="header no-2d" ng-if="ctrl.is1D"> <div class="container-fluid"> <nav class="navbar"><a class="navbar-title d-md-none text-truncate h4" href="/welcome?token=[[ctrl.version]]" ng-bind-html="ctrl.title"></a> <div class="d-none d-md-inline-flex gap-12 align-items-center"> <img ng-src="[[ctrl.avatar]]" alt=""/><span class="navbar-text" translate key="welcome"></span> </div> <ul class="navbar-nav gap-8" aria-hidden="false" aria-label="navbar.main.navigation" role="menubar"> <li class="nav-item" ng-if="me.hasWorkflow(\'org.entcore.conversation.controllers.ConversationController|view\')"><a href="/conversation/conversation" class="nav-link" i18n-title="navbar.messages" aria-label="navbar.messages"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon notification"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z" fill="currentColor"></path> </svg><span class="position-absolute badge rounded-pill bg-danger" ng-if="nbNewMessages">[[nbNewMessages]]<span class="visually-hidden"> <i18n>navbar.messages</i18n> </span></span></a></li> <li class="nav-item"><a href="/userbook/mon-compte" class="nav-link"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="icon user"> <g clip-path="url(#one-profile_svg__a)"> <path fill="currentColor" d="M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"> </path> </g> <defs> <clipPath id="one-profile_svg__a"> <path fill="#fff" d="M0 0h24v24H0z"></path> </clipPath> </defs> </svg><span class="visually-hidden"> <i18n>navbar.myaccount</i18n> </span></a></li> <li class="nav-item"><a href="/" class="nav-link" logout i18n-title="navbar.disconnect"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon logout"> <path d="M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z" fill="currentColor"></path> </svg><span class="visually-hidden"> <i18n>navbar.disconnect</i18n> </span></a></li> <li class="nav-item" ng-if="ctrl.currentLanguage == \'fr\' && me.hasWorkflow(\'org.entcore.portal.controllers.PortalController|oldHelpEnable\')" pulsar="{index:5, style:{zIndex:1021}, i18n:\'portal.pulsar.help\', position:\'bottom center\'}"> <a href="" i18n-title="navbar.help"> <help></help> </a> </li> <li class="nav-item d-md-none"><button class="nav-link btn btn-naked" type="button" aria-controls="navbarCollapsed" aria-expanded="false" aria-label="navbar.secondary.navigation"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon rafter-down"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z" fill="currentColor"></path> </svg></button></li> </ul> </nav> </div> <nav class="navbar no-2d navbar-secondary navbar-expand-md" aria-label="navbar.secondary.navigation"> <div class="container-fluid"> <div class="collapse navbar-collapse" id="navbarCollapsed"><a class="navbar-brand d-md-block" href="/timeline/timeline" aria-label="Accueil"><img class="logo" skin-src="img/illustrations/logo.png" alt="Logo de l\'ENT"> <span class="text-truncate d-md-none" ng-bind-html="ctrl.title"></span> </a> <ul class="navbar-nav gap-8"> <li class="nav-item"><a href="/timeline/timeline?token=[[ctrl.version]]" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" color="#fff" class="d-md-none"> <path fill="currentColor" d="M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"> </path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.whatsnew</i18n> </span></a></li> <li class="nav-item"><a href="/userbook/annuaire?myClass&token=[[ctrl.version]]" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" color="#fff" class="d-md-none"> <path d="M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z" fill="currentColor"></path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.classMembers</i18n> </span></a></li> <li class="nav-item"><a href="/welcome?token=[[ctrl.version]]" class="button"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff" class="d-md-none"> <path d="M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z" fill="currentColor"></path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.myapps</i18n> </span></a></li> </ul> </div> </div> </nav> </header> <header class="header no-1d" ng-if="ctrl.is2D"> <nav class="navbar navbar-expand-md"> <div class="container-fluid" style="max-width:1700px"> <a class="navbar-brand d-md-block" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'timeline\', \'from\':\'logo\'} })" href="/timeline/timeline?token=[[ctrl.version]]" i18n-title="navbar.home"> <img class="logo" skin-src="img/illustrations/logo.png" alt="logo NEO" width="300" height="52"> </a> <ul class="navbar-nav"> <li class="nav-item"> <a href="/timeline/timeline" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'timeline\', \'from\':\'menu\'} })" class="nav-link" i18n-title="navbar.home"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff"> <path d="M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.home</i18n> </span> </a> </li> <li class="nav-item position-relative popover-trigger" id=":r2:" aria-haspopup="true" aria-expanded="false" pulsar="{index:3, style:{zIndex:1021}, i18n:\'portal.pulsar.apps\', position:\'bottom center\'}"> <a href="/welcome" i18n-title="navbar.applications" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'welcome\', \'from\':\'menu\'} })" class="nav-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff"> <path d="M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.applications</i18n> </span> </a> <div aria-labelledby=":r2:" class="popover position-absolute top-100 start-50 translate-middle-x top-100" role="tooltip"> <div class="popover-body"> <div class="widget-body d-flex flex-wrap"> <div class="text-dark" ng-if="ctrl.apps.length === 0"> <i18n>navbar.myapps.more</i18n> </div> <a class="bookmarked-app" connector-lightbox-trigger="app" aria-label="[[app.displayName]]" target="[[app.target]]" href="[[app.address]]" i18n-title="[[app.displayName]]" ng-switch="app.icon.indexOf(\'/\')" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'app\', \'app\':app} })" ng-repeat="app in ctrl.apps | limitTo:6 track by $index"> <i class="fs-1" ng-class="ctrl.getIconClass(app)" ng-switch-when="-1"></i> <img skin-src="[[app.icon]]" ng-switch-default alt="[[app.displayName]]"/> </a> </div> </div> <div class="popover-footer widget-footer border-top border-ghost"> <div class="widget-footer"> <div class="widget-footer-action"> <a href="/welcome" class="link"> <i18n>plus</i18n> </a> </div> </div> </div> </div> </li> <li class="nav-item" ng-include="ctrl.conversationUnreadUrl"> <div class="nav-link conversation" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'conversation\'} })"></div> </li> <li class="nav-item" ng-if="ctrl.currentLanguage == \'fr\' && me.hasWorkflow(\'org.entcore.portal.controllers.PortalController|oldHelpEnable\')" pulsar="{index:5, style:{zIndex:1021}, i18n:\'portal.pulsar.help\', position:\'bottom center\'}"> <a href="" class="nav-link" i18n-title="navbar.help"> <help></help> </a> </li> <li class="nav-item"> <div class="dropdown"> <button class="nav-link btn btn-naked d-md-none" type="button" aria-controls="dropdown-navbar" aria-expanded="false" aria-label="navbar.open.menu" ng-click="dropdownToggle = !dropdownToggle"> <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon rafter-down" color="#fff"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z" fill="currentColor"></path> </svg> </button> <ul class="dropdown-menu dropdown-menu-end" id="dropdown-navbar" ng-class="{\'show\' : dropdownToggle}"> <li class="nav-item" data-community ng-if="me.hasWorkflow(\'net.atos.entng.community.controllers.CommunityController|view\')"> <a class="nav-link dropdown-item" href="/community" i18n-title="navbar.community" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'community\'} })"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true" class="icon community"><path fill="currentColor" d="M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"></path></svg> <span class="nav-text"><i18n>navbar.community</i18n></span> </a> </li> <li class="nav-item position-relative popover-trigger" id=":r3:" aria-haspopup="true" aria-expanded="false" ng-if="me.hasWorkflow(\'fr.openent.searchengine.controllers.SearchEngineController|view\')"> <a href="/searchengine" i18n-title="navbar.search" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'searchengine\', \'from\':\'menu\'} })" class="nav-link dropdown-item"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon search"> <path d="M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.search</i18n> </span> </a> <div aria-labelledby=":r3:" class="popover position-absolute top-100 start-50 translate-middle-x" role="tooltip"> <div class="search-text input-group py-8 px-12"> <input id="my-search-input" class="form-control form-control-sm" type="text" name="my-search-input" ng-model="ctrl.mysearch" ng-keyup="ctrl.launchSearch($event, \'key\');"/><button class="btn btn-filled btn-primary btn-sm btn-icon btn-sm btn-search btn-sm" i18n-title="navbar.search" ng-click="ctrl.launchSearch($event, \'button\');"> <span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true"> <path fill="currentColor" fill-rule="evenodd" d="M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z" clip-rule="evenodd"></path> </svg></span> </button> </div> </div> </li> <li class="nav-item"> <a href="/userbook/mon-compte" pulsar="{ index:4, style:{zIndex:1021}, i18n:\'portal.pulsar.account\', position:\'bottom center\'}" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'myaccount\'} })" i18n-title="navbar.myaccount" class="nav-link dropdown-item"> <div class="avatar avatar-sm rounded-circle bg-white"> <img data-ng-src="[[ctrl.avatar ? ctrl.avatar+\'?thumbnail=48x48\' : \'\']]" width="30" height="30" alt="[[ctrl.username]]"/> </div> <span class="nav-text"> <i18n>navbar.myaccount</i18n> </span> </a> </li> <li class="nav-item"> <hr class="dropdown-divider"> </li> <li class="nav-item"> <a href="" logout i18n-title="navbar.disconnect" class="nav-link dropdown-item"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon logout"> <path d="M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.disconnect</i18n> </span> </a> </li> </ul> </div> </li> </ul> </div> </nav> </header>'},4809:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="row"> <input type="text" ng-model="ctrl.search" i18n-placeholder="search" autocomplete="off"/> </div> '},9018:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="toast fade" role="alert" aria-live="assertive" aria-atomic="true"> <div class="toast-header"> <strong class="me-auto">[[header]]</strong> <small class="text-muted">[[since]]</small> <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close" ng-click="visible(false)"></button> </div> <div class="toast-body" ng-transclude></div> </div>'},9068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<section class="lightbox" ng-class="{\'lightbox\': !tiny, \'tiny-lightbox\': tiny}"> <div class="background"></div> <div class="content"> <div class="twelve cell" ng-transclude></div> <div class="close-lightbox"> <i class="close-2x"></i> </div> </div> </section>'},7597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="{{ctrl.id+\'Label\'}}" aria-hidden="true" ng-class="{show: ctrl.visible}" ng-style="ctrl.getStyle()"> <div class="modal-backdrop fade show" style="z-index:1040"></div> <div class="modal-dialog" ng-class="ctrl.getSizeClass()" role="document" style="z-index:1050"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="{{ctrl.id+\'Label\'}}" ng-transclude="title"></h5> <button type="button" class="btn-close" aria-label="Close" ng-if="ctrl.onClose" ng-click="ctrl.onClose()"> </button> </div> <div class="modal-body" ng-transclude="body"></div> <div class="modal-footer" ng-transclude="footer"></div> </div> </div> </div> '},9325:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<style id="pulsar-css">pulsar{z-index:1036;position:absolute;pointer-events:all}.pulsar-layer{box-shadow:0 0 0 99999px rgb(0 0 0 / 60%);position:absolute;border-radius:2px;z-index:1035}pulsar .content{background:#fff;width:300px;box-shadow:1px 1px 7px rgb(0 0 0 / 40%);padding:15px;box-sizing:border-box;border:6px solid #ddd;border-radius:2px;position:relative}pulsar .content .inf{position:absolute;left:10px;top:10px;color:#fff;background:#ffaa4d;border-radius:50%;line-height:22px;text-align:center;width:22px;height:22px}pulsar .content .inf::before{font-size:18px;content:\'i\';font-style:italic;font-weight:700;display:inline-block;margin-left:-1px}pulsar .content .close{position:absolute;right:10px;top:10px;width:22px;height:22px;line-height:17px;background:#ddd;border-radius:50%;color:#636363}pulsar i.close{font-family:generic-icons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none;font-weight:400!important;text-align:center;cursor:pointer;font-style:normal}pulsar .content>div.text{margin-top:25px;padding:10px;font-size:14px;line-height:18px}pulsar .content .close::before{content:\'\\e866\';font-size:9px}pulsar nav.dots ul{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:0;margin:15px 0 25px}pulsar nav.dots li.dot{list-style-type:none;margin:0 10px;cursor:pointer}pulsar nav.dots li.dot::before{content:" ";display:block;width:17px;height:17px;background:0 0;border:2px solid silver;border-radius:50%;box-sizing:border-box;transition:all 250ms ease}pulsar nav.dots li.dot:hover::before{border-color:#ff8500;background:0 0}nav.dots li.dot.active::before{color:#4bafd5}pulsar nav.dots li.dot.active::before{border-color:#ff8500;background:#ff8500}pulsar nav.dots li.dot::before{font-size:60px;width:12px;height:12px}pulsar nav.dots li.dot::before{content:" ";display:block;width:17px;height:17px;background:0 0;border:2px solid silver;border-radius:50%;box-sizing:border-box;transition:all 250ms ease}pulsar .arrow{width:0;height:0;border-style:solid;border-width:0 8.4px 14px 8.4px;border-color:transparent transparent #ddd transparent;z-index:1;position:absolute}pulsar.middle .arrow{left:calc(50% - 7px);top:-14px}pulsar.left .arrow{transform:rotate(90deg);right:-14px}pulsar.left.top .arrow{top:1px}pulsar.left.center .arrow{top:calc(50% - 7px)}pulsar.right.center .arrow{top:calc(50% - 7px)}pulsar.right .arrow{transform:rotate(270deg);left:-14px}pulsar.right.top .arrow{top:1px}pulsar.center.top .arrow{transform:rotate(180deg);top:100%;left:calc(50% - 7px)}pulsar.bottom .arrow{top:-14px}pulsar.bottom.center .arrow{left:calc(50% - 7px)}pulsar.bottom.left .arrow,pulsar.bottom.right .arrow{top:1px}pulsar.bottom.right .arrow{left:-14px;transform:rotate(-90deg)}pulsar.bottom.left .arrow{transform:rotate(90deg);right:-14px;left:auto}.pulsar-button{position:absolute;z-index:999;width:40px;height:40px}.pulsar-button::after,.pulsar-button::before{content:"";opacity:.5;position:absolute;z-index:-1;inset:-6px 0 0 -6px;height:42px;width:42px;content:"";border-radius:50%;box-shadow:0 0 5px 6px rgb(120 218 255 / 60%);transform:scale(.1,.1);transition:all 250ms ease;animation:pulsate 1s ease-out;animation-iteration-count:infinite}.pulsar-button::after{animation-delay:.3s}.pulse-spot{position:absolute;cursor:pointer;width:30px;height:30px;font-size:18px;text-align:center;line-height:21px;font-weight:700;color:#fff;border-radius:50%;border:4px solid transparent;background:#ff8500;transition:all 250ms ease}.pulse-spot::before{content:\'i\';font-style:italic;font-family:\'Times New Roman\',Times,serif}pulsar .row{flex-direction:row-reverse;justify-content:space-between;margin-left:0!important;margin-right:0!important;max-width:100%;width:100%;position:relative;clear:both;box-sizing:border-box}pulsar .row>*{width:auto}@keyframes pulsate{0%{transform:scale(.1,.1);opacity:0}50%{opacity:1}100%{transform:scale(1.2,1.2);opacity:0}}.pulsar-button{display:none}@media (min-width:992px){.pulsar-button{display:block}}</style>'},6066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<style id="widget-container-css">ul[dnd-list],ul[dnd-list]>li{position:relative}ul[dnd-list]{padding-left:0}ul[dnd-list][dnd-drop]{min-height:42px;transition:all .1s ease-in-out 0s}ul[dnd-list][dnd-dragover].dndReject{display:block;background-color:#ff8c8c;min-height:90px;border-radius:6px;margin-bottom:2em}ul[dnd-list] .dndDraggingSource{display:none}ul[dnd-list] .dndPlaceholder{display:block;background-color:#ffdbb7;min-height:90px;border-radius:6px;margin-bottom:2em}ul[dnd-list] li{list-style:none}.dndDragging:not(.dndDraggingSource){cursor:grabbing!important;border:1px solid rgb(255 133 0)}.dnDragover{cursor:grabbing}.dndDragging:not(.dndDraggingSource):active,.dndDragging:not(.dndDraggingSource):focus,.dndDragging:not(.dndDraggingSource):hover{cursor:grabbing;cursor:-webkit-grabbing}</style> <ul dnd-list dnd-allowed-types="[]" ng-if="ctrl.lockedWidgets.length"> <li ng-repeat="widget in ctrl.lockedWidgets track by widget.platformConf.id" class="widget widget-locked" ode-widget="widget"> </li> </ul> <ul dnd-list dnd-allowed-types="[\'left\',\'right\']" dnd-dragover="ctrl.onDnDDragOver(event, index, type, dropEffect)" dnd-drop="ctrl.onDnDDrop(event, item, index, dropEffect)"> <li ng-repeat="widget in ctrl.dndWidgets track by widget.platformConf.id" class="widget" ode-widget="widget" dnd-draggable="widget.platformConf.id" dnd-type="widget.userPref.position" dnd-disable-if="ctrl.isMobileView"> </li> </ul>'},2011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="<span>{{ctrl.sayHello()}}</span>"},991:function(e){e.exports=function(){var e=window,t=document,n={on:function(t,n,r){"addEventListener"in e?t.addEventListener(n,r,!1):t.attachEvent("on"+n,r)},off:function(t,n,r){"removeEventListener"in e?t.removeEventListener(n,r,!1):t.detachEvent("on"+n,r)},bind:function(e,t){return function(){e.apply(t,arguments)}},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},config:function(e,t){return null!=e?e:t},transSupport:!1,useFilter:/msie [678]/i.test(navigator.userAgent),_checkTransition:function(){var e=t.createElement("div"),n={webkit:"webkit",Moz:"",O:"o",ms:"MS"};for(var r in n)r+"Transition"in e.style&&(this.vendorPrefix=n[r],this.transSupport=!0)}};n._checkTransition();var r=function(t){t||(t={}),this.queue=[],this.baseCls=t.baseCls||"humane",this.addnCls=t.addnCls||"",this.timeout="timeout"in t?t.timeout:2500,this.waitForMove=t.waitForMove||!1,this.clickToClose=t.clickToClose||!1,this.timeoutAfterMove=t.timeoutAfterMove||!1,this.container=t.container;try{this._setupEl()}catch(t){n.on(e,"load",n.bind(this._setupEl,this))}};return r.prototype={constructor:r,_setupEl:function(){var e=t.createElement("div");if(e.style.display="none",!this.container){if(!t.body)throw"document.body is null";this.container=t.body}this.container.appendChild(e),this.el=e,this.removeEvent=n.bind((function(){var e=n.config(this.currentMsg.timeoutAfterMove,this.timeoutAfterMove);e?setTimeout(n.bind(this.remove,this),e):this.remove()}),this),this.transEvent=n.bind(this._afterAnimation,this),this._run()},_afterTimeout:function(){n.config(this.currentMsg.waitForMove,this.waitForMove)?this.removeEventsSet||(n.on(t.body,"mousemove",this.removeEvent),n.on(t.body,"click",this.removeEvent),n.on(t.body,"keypress",this.removeEvent),n.on(t.body,"touchstart",this.removeEvent),this.removeEventsSet=!0):this.remove()},_run:function(){if(!this._animating&&this.queue.length&&this.el){this._animating=!0,this.currentTimer&&(clearTimeout(this.currentTimer),this.currentTimer=null);var e=this.queue.shift();n.config(e.clickToClose,this.clickToClose)&&(n.on(this.el,"click",this.removeEvent),n.on(this.el,"touchstart",this.removeEvent));var t=n.config(e.timeout,this.timeout);t>0&&(this.currentTimer=setTimeout(n.bind(this._afterTimeout,this),t)),n.isArray(e.html)&&(e.html="<ul><li>"+e.html.join("<li>")+"</ul>"),this.el.innerHTML=e.html,this.currentMsg=e,this.el.className=this.baseCls,n.transSupport?(this.el.style.display="block",setTimeout(n.bind(this._showMsg,this),50)):this._showMsg()}},_setOpacity:function(e){if(n.useFilter)try{this.el.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=100*e}catch(e){}else this.el.style.opacity=String(e)},_showMsg:function(){var e=n.config(this.currentMsg.addnCls,this.addnCls);if(n.transSupport)this.el.className=this.baseCls+" "+e+" "+this.baseCls+"-animate";else{var t=0;this.el.className=this.baseCls+" "+e+" "+this.baseCls+"-js-animate",this._setOpacity(0),this.el.style.display="block";var r=this,i=setInterval((function(){t<1?((t+=.1)>1&&(t=1),r._setOpacity(t)):clearInterval(i)}),30)}},_hideMsg:function(){var e=n.config(this.currentMsg.addnCls,this.addnCls);if(n.transSupport)this.el.className=this.baseCls+" "+e,n.on(this.el,n.vendorPrefix?n.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent);else var t=1,r=this,i=setInterval((function(){t>0?((t-=.1)<0&&(t=0),r._setOpacity(t)):(r.el.className=r.baseCls+" "+e,clearInterval(i),r._afterAnimation())}),30)},_afterAnimation:function(){n.transSupport&&n.off(this.el,n.vendorPrefix?n.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent),this.currentMsg.cb&&this.currentMsg.cb(),this.el.style.display="none",this._animating=!1,this._run()},remove:function(e){var r="function"==typeof e?e:null;n.off(t.body,"mousemove",this.removeEvent),n.off(t.body,"click",this.removeEvent),n.off(t.body,"keypress",this.removeEvent),n.off(t.body,"touchstart",this.removeEvent),n.off(this.el,"click",this.removeEvent),n.off(this.el,"touchstart",this.removeEvent),this.removeEventsSet=!1,r&&this.currentMsg&&(this.currentMsg.cb=r),this._animating?this._hideMsg():r&&r()},log:function(e,t,n,r){var i={};if(r)for(var o in r)i[o]=r[o];if("function"==typeof t)n=t;else if(t)for(var o in t)i[o]=t[o];return i.html=e,n&&(i.cb=n),this.queue.push(i),this._run(),this},spawn:function(e){var t=this;return function(n,r,i){return t.log.call(t,n,r,i,e),t}},create:function(e){return new r(e)}},new r}()},9740:function(e,t,n){!function(e){"use strict";
|
|
1
|
+
(()=>{var __webpack_modules__={807:()=>{!function(e){var t="application/x-dnd",n="application/json",r="Text",i=["move","copy","link"];function o(e,t){return"all"==t?e:e.filter(function(e){return-1!=t.toLowerCase().indexOf(e)})}e.directive("dndDraggable",["$parse","$timeout",function(e,s){return function(u,c,l){c.attr("draggable","true"),l.dndDisableIf&&u.$watch(l.dndDisableIf,function(e){c.attr("draggable",!e)}),c.on("dragstart",function(d){if(d=d.originalEvent||d,"false"==c.attr("draggable"))return!0;a.isDragging=!0,a.itemType=l.dndType&&u.$eval(l.dndType).toLowerCase(),a.dropEffect="none",a.effectAllowed=l.dndEffectAllowed||i[0],d.dataTransfer.effectAllowed=a.effectAllowed;var f=u.$eval(l.dndDraggable),h=t+(a.itemType?"-"+a.itemType:"");try{d.dataTransfer.setData(h,angular.toJson(f))}catch(e){var p=angular.toJson({item:f,type:a.itemType});try{d.dataTransfer.setData(n,p)}catch(e){var v=o(i,a.effectAllowed);d.dataTransfer.effectAllowed=v[0],d.dataTransfer.setData(r,p)}}if(c.addClass("dndDragging"),s(function(){c.addClass("dndDraggingSource")},0),d._dndHandle&&d.dataTransfer.setDragImage&&d.dataTransfer.setDragImage(c[0],0,0),e(l.dndDragstart)(u,{event:d}),l.dndCallback){var m=e(l.dndCallback);a.callback=function(e){return m(u,e||{})}}d.stopPropagation()}),c.on("dragend",function(t){t=t.originalEvent||t,u.$apply(function(){var n=a.dropEffect;e(l[{copy:"dndCopied",link:"dndLinked",move:"dndMoved",none:"dndCanceled"}[n]])(u,{event:t}),e(l.dndDragend)(u,{event:t,dropEffect:n})}),a.isDragging=!1,a.callback=void 0,c.removeClass("dndDragging"),c.removeClass("dndDraggingSource"),t.stopPropagation(),s(function(){c.removeClass("dndDraggingSource")},0)}),c.on("click",function(t){l.dndSelected&&(t=t.originalEvent||t,u.$apply(function(){e(l.dndSelected)(u,{event:t})}),t.stopPropagation())}),c.on("selectstart",function(){this.dragDrop&&this.dragDrop()})}}]),e.directive("dndList",["$parse",function(e){return function(s,u,c){var l=function(){var e;return angular.forEach(u.children(),function(t){var n=angular.element(t);n.hasClass("dndPlaceholder")&&(e=n)}),e||angular.element("<li class='dndPlaceholder'></li>")}();l.remove();var d=l[0],f=u[0],h={};function p(e){if(!e)return r;for(var i=0;i<e.length;i++)if(e[i]==r||e[i]==n||e[i].substr(0,17)==t)return e[i];return null}function v(e){return a.isDragging?a.itemType||void 0:e==r||e==n?null:e&&e.substr(18)||void 0}function m(e){return!h.disabled&&(!(!h.externalSources&&!a.isDragging)&&(!h.allowedTypes||null===e||e&&-1!=h.allowedTypes.indexOf(e)))}function g(e,t){var n=i;return t||(n=o(n,e.dataTransfer.effectAllowed)),a.isDragging&&(n=o(n,a.effectAllowed)),c.dndEffectAllowed&&(n=o(n,c.dndEffectAllowed)),n.length?e.ctrlKey&&-1!=n.indexOf("copy")?"copy":e.altKey&&-1!=n.indexOf("link")?"link":n[0]:"none"}function b(){return l.remove(),u.removeClass("dndDragover"),!0}function y(t,n,r,i,o,u){return e(t)(s,{callback:a.callback,dropEffect:r,event:n,external:!a.isDragging,index:void 0!==o?o:w(),item:u||void 0,type:i})}function w(){return Array.prototype.indexOf.call(f.children,d)}u.on("dragenter",function(e){e=e.originalEvent||e;var t=c.dndAllowedTypes&&s.$eval(c.dndAllowedTypes);h={allowedTypes:angular.isArray(t)&&t.join("|").toLowerCase().split("|"),disabled:c.dndDisableIf&&s.$eval(c.dndDisableIf),externalSources:c.dndExternalSources&&s.$eval(c.dndExternalSources),horizontal:c.dndHorizontalList&&s.$eval(c.dndHorizontalList)};var n=p(e.dataTransfer.types);if(!n||!m(v(n)))return!0;e.preventDefault()}),u.on("dragover",function(e){var t=p((e=e.originalEvent||e).dataTransfer.types),n=v(t);if(!t||!m(n))return!0;if(d.parentNode!=f&&u.append(l),e.target!=f){for(var i=e.target;i.parentNode!=f&&i.parentNode;)i=i.parentNode;if(i.parentNode==f&&i!=d){var o=i.getBoundingClientRect();if(h.horizontal)var a=e.clientX<o.left+o.width/2;else a=e.clientY<o.top+o.height/2;f.insertBefore(d,a?i:i.nextSibling)}}var s=t==r,w=g(e,s);return"none"==w||c.dndDragover&&!y(c.dndDragover,e,w,n)?b():(e.preventDefault(),s||(e.dataTransfer.dropEffect=w),u.addClass("dndDragover"),e.stopPropagation(),!1)}),u.on("drop",function(e){var t=p((e=e.originalEvent||e).dataTransfer.types),i=v(t);if(!t||!m(i))return!0;e.preventDefault();try{var o=JSON.parse(e.dataTransfer.getData(t))}catch(e){return b()}if((t==r||t==n)&&(i=o.type||void 0,o=o.item,!m(i)))return b();var u=t==r,l=g(e,u);if("none"==l)return b();var d=w();return c.dndDrop&&!(o=y(c.dndDrop,e,l,i,d,o))?b():(a.dropEffect=l,u||(e.dataTransfer.dropEffect=l),!0!==o&&s.$apply(function(){s.$eval(c.dndList).splice(d,0,o)}),y(c.dndInserted,e,l,i,d,o),b(),e.stopPropagation(),!1)}),u.on("dragleave",function(e){e=e.originalEvent||e;var t=document.elementFromPoint(e.clientX,e.clientY);f.contains(t)&&!e._dndPhShown?e._dndPhShown=!0:b()})}}]),e.directive("dndNodrag",function(){return function(e,t,n){t.attr("draggable","true"),t.on("dragstart",function(e){(e=e.originalEvent||e)._dndHandle||(e.dataTransfer.types&&e.dataTransfer.types.length||e.preventDefault(),e.stopPropagation())}),t.on("dragend",function(e){(e=e.originalEvent||e)._dndHandle||e.stopPropagation()})}}),e.directive("dndHandle",function(){return function(e,t,n){t.attr("draggable","true"),t.on("dragstart dragend",function(e){(e=e.originalEvent||e)._dndHandle=!0})}});var a={}}(angular.module("dndLists",[]))},925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"1ec99fe1d6b3b1542c0fbe083a7ae716.html"},6722:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"7f0136c03fe438995347a346ee478b3a.html"},5230:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n.p+"2ebddef9552e6e74febdcc049e7b6cea.html"},41:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=' <div ng-class="{\'d-none\': !ctrl.showMenu || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <img class="img-fluid" skin-src="/img/illustrations/recorder-audio.svg" width="100" height="100" alt="recorder"> </div> <div ng-class="{ \'d-none\': !ctrl.showMenu || !ctrl.isAudioCompatible || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <button type="button" ng-click="ctrl.switchRecorder(\'audio\')" class="btn btn-circle" i18n-title="embed.audio.title"> <i class="fas fa-microphone"></i> </button> </div> <div ng-class="{ \'d-none\': !ctrl.showMenu || !ctrl.isVideoCompatible || ctrl.selectedRecorder !== \'none\'}" class="flex-fill"> <button type="button" ng-click="ctrl.switchRecorder(\'video\')" class="btn btn-circle"> <i class="fas fa-video"></i> </button> </div> <div ng-if="!ctrl.isAudioCompatible && !ctrl.isVideoCompatible" class="flex-fill"> <p><i18n>recorder.not.supported</i18n></p> </div> <div ng-if="!ctrl.isVideoCompatible" class="flex-fill"> <div ng-if="VideoRecorder.isIncompatibleBrowser()"> <p><i18n>embed.video.incompatible.details</i18n></p> <p class="update"> <a href="https://www.google.fr/chrome/browser/desktop/" target="_blank"> <img src="/auth/public/img/chrome_logo.png"/> </a> <a href="https://www.mozilla.org/fr/firefox/new/" target="_blank"> <img src="/auth/public/img/firefox_logo.png"/> </a> </p> </div> <div ng-if="VideoRecorder.isIncompatibleDevice()"> <p><i18n>embed.video.incompatible.devices</i18n></p> <p><i18n>embed.video.incompatible.devices.footer</i18n></p> <img skin-src="images/emptyscreen-recorder-video.svg" height="150"> </div> </div> <div id="audioRecorder" class="flex-fill" ng-if="ctrl.selectedRecorder === \'audio\'"> <div class="record-timer"> <i class="fas fa-microphone"></i> [[ctrl.time()]] </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <input type="text" class="form-control" i18n-placeholder="title" ng-model="ctrl.recorder.title"/> </div> <div class="record-controls" ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <button id="btnAudioRecorder" type="button" class="btn btn-circle" ng-click="ctrl.switchAudioRecord()" ng-class="{ \'d-none\': ctrl.isVideo || !ctrl.isAudioCompatible }" ng-disabled="ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.isSaved"> <i class="fas" ng-class="{\'fa-microphone\': !ctrl.isRecording, \'fa-pause\': ctrl.isRecording}"></i> <span class="label" ng-if="ctrl.isIdle || ctrl.isStopped"><i18n>embed.record</i18n></span> <span class="label" ng-if="!ctrl.isRecording && !ctrl.isIdle && !ctrl.isStopped" ng-class="{\'d-none\': ctrl.isIdle}"><i18n>embed.resume</i18n></span> <span class="label" ng-if="ctrl.isRecording"><i18n>embed.suspend</i18n></span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.switchPlay()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading"> <i class="fas" ng-class="ctrl.isPlaying ? \'fa-pause\' : \'fa-play\'"></i> <span class="label" ng-if="!ctrl.isPlaying"><i18n>embed.play</i18n></span> <span class="label" ng-if="ctrl.isPlaying"><i18n>embed.pause</i18n></span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.saveRecord()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.recordIsSaved"> <i ng-class="ctrl.getSaveBtnClass()"></i> <span class="label"><i18n>embed.save</i18n></span> </button> <button type="button" class="btn btn-circle btn-danger" ng-click="ctrl.clean()" ng-disabled="ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i class="fas fa-times"></i> <span class="label"><i18n>embed.redo</i18n></span> </button> </div> </div> <div id="videoRecorder" class="flex-fill" navigation-guard="true" guard-root="videoCapturedGuard" ng-if="ctrl.selectedRecorder === \'video\'"> <div class="record-timer"> <i class="fas fa-video"></i> [[ctrl.msToTime(ctrl.recorder.elapsedTime)]]/[[ctrl.msToTime(ctrl.recordMaxTime)]] </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <select title="selectWebcam" class="form-select mb-2" ng-if="ctrl.videoInputDevices.length > 1" ng-options="vid as vid.label for vid in ctrl.videoInputDevices" ng-disabled="ctrl.isRecording" ng-model="ctrl.selectedVid" ng-change="ctrl.switchVideo(ctrl.selectedVid.deviceId)"> </select> </div> <div id="recorderWidgetVideoPlayer" class="record-widget-player"> </div> <div ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <label class="visually-hidden" for="video-recorder"><i18n>title</i18n></label> <input type="text" id="video-recorder" class="form-control" i18n-placeholder="title" ng-model="ctrl.recorder.title"/> </div> <div class="record-controls" custom-guard="recordGuard" ng-class="{\'d-none\': ctrl.displaySavedMessage}"> <button id="btnVideoRecorder" type="button" class="btn btn-circle" ng-if="!(ctrl.isAudio) && ctrl.isVideoCompatible" ng-click="ctrl.switchVideoRecord()" ng-disabled="ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying || ctrl.isSaved"> <i class="fas" ng-class="{\'fa-stop\': ctrl.isRecording, \'fa-video\': !ctrl.isRecording}"></i> <span class="label">[[ctrl.isRecording ? \'embed.stop\' : \'embed.record\' | i18n]]</span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.switchPlay()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading"> <i class="fas" ng-class="{\'fa-pause\': ctrl.isPlaying, \'fa-play\': !ctrl.isPlaying}"></i> <span class="label">[[ctrl.isPlaying ? \'embed.pause\' : \'embed.play\' | i18n]]</span> </button> <button type="button" class="btn btn-circle" ng-click="ctrl.saveRecord()" ng-disabled="ctrl.disabledButtons || ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i ng-class="ctrl.getSaveBtnClass()"></i> <span class="label"> <i18n>embed.save</i18n> </span> </button> <button type="button" class="btn btn-circle btn-danger" ng-click="ctrl.clean()" ng-disabled="ctrl.isRecording || ctrl.isEncoding || ctrl.isUploading || ctrl.isPlaying"> <i class="fas fa-times"></i> <span class="label"><i18n>embed.redo</i18n></span> </button> </div> </div> <div ng-class="{\'d-none\': !ctrl.displaySavedMessage, \'d-block record-widget-message\': ctrl.displaySavedMessage}"> <p class="text-success">{{ctrl.recorder.title}} <i18n>embed.saved.file</i18n></p> <a ng-href="/workspace/workspace#/apps" class="btn btn btn-outline-third rounded-pill d-inline-block mx-auto"><i18n>embed.goto.file</i18n></a> <button class="btn btn-link d-block mx-auto" ng-click="ctrl.clean()"><i18n>embed.new.recording</i18n></button> </div>'},3146:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<ode-modal visible="ctrl.display.showAuthenticatedConnectorLightbox" on-close="ctrl.onClose()"> <ode-modal-title> <i18n>apps.authenticatedConnector.lightbox.title</i18n> </ode-modal-title> <ode-modal-body> <p class="text-center"> <i18n>apps.authenticatedConnector.lightbox.content</i18n> </p> </ode-modal-body> <ode-modal-footer> <button class="btn btn-light text-primary" ng-click="ctrl.onClose()"> <i18n>cancel</i18n> </button> <button class="btn btn-primary" ng-click="ctrl.onConfirm()"> <i18n>confirm</i18n> </button> </ode-modal-footer> </ode-modal> '},2306:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<i class="navbar-help ic-help" ng-click="onHelp()"></i> <ode-modal class="modal-help" visible="display.read" on-close="display.read = false"> <ode-modal-title></ode-modal-title> <ode-modal-body><div></div></ode-modal-body> </ode-modal> '},959:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=' <header class="header no-2d" ng-if="ctrl.is1D"> <div class="container-fluid"> <nav class="navbar"><a class="navbar-title d-md-none text-truncate h4" href="/welcome?token=[[ctrl.version]]" ng-bind-html="ctrl.title"></a> <div class="d-none d-md-inline-flex gap-12 align-items-center"> <img ng-src="[[ctrl.avatar]]" alt=""/><span class="navbar-text" translate key="welcome"></span> </div> <ul class="navbar-nav gap-8" aria-hidden="false" aria-label="navbar.main.navigation" role="menubar"> <li class="nav-item" ng-if="me.hasWorkflow(\'org.entcore.conversation.controllers.ConversationController|view\')"><a href="/conversation/conversation" class="nav-link" i18n-title="navbar.messages" aria-label="navbar.messages"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon notification"> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z" fill="currentColor"></path> </svg><span class="position-absolute badge rounded-pill bg-danger" ng-if="nbNewMessages">[[nbNewMessages]]<span class="visually-hidden"> <i18n>navbar.messages</i18n> </span></span></a></li> <li class="nav-item"><a href="/userbook/mon-compte" class="nav-link"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" class="icon user"> <g clip-path="url(#one-profile_svg__a)"> <path fill="currentColor" d="M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"> </path> </g> <defs> <clipPath id="one-profile_svg__a"> <path fill="#fff" d="M0 0h24v24H0z"></path> </clipPath> </defs> </svg><span class="visually-hidden"> <i18n>navbar.myaccount</i18n> </span></a></li> <li class="nav-item"><a href="/" class="nav-link" logout i18n-title="navbar.disconnect"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon logout"> <path d="M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z" fill="currentColor"></path> </svg><span class="visually-hidden"> <i18n>navbar.disconnect</i18n> </span></a></li> <li class="nav-item" ng-if="ctrl.currentLanguage == \'fr\' && me.hasWorkflow(\'org.entcore.portal.controllers.PortalController|oldHelpEnable\')" pulsar="{index:5, style:{zIndex:1021}, i18n:\'portal.pulsar.help\', position:\'bottom center\'}"> <a href="" i18n-title="navbar.help"> <help></help> </a> </li> <li class="nav-item d-md-none"><button class="nav-link btn btn-naked" type="button" aria-controls="navbarCollapsed" aria-expanded="false" aria-label="navbar.secondary.navigation"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon rafter-down"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z" fill="currentColor"></path> </svg></button></li> </ul> </nav> </div> <nav class="navbar no-2d navbar-secondary navbar-expand-md" aria-label="navbar.secondary.navigation"> <div class="container-fluid"> <div class="collapse navbar-collapse" id="navbarCollapsed"><a class="navbar-brand d-md-block" href="/timeline/timeline" aria-label="Accueil"><img class="logo" skin-src="img/illustrations/logo.png" alt="Logo de l\'ENT"> <span class="text-truncate d-md-none" ng-bind-html="ctrl.title"></span> </a> <ul class="navbar-nav gap-8"> <li class="nav-item"><a href="/timeline/timeline?token=[[ctrl.version]]" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" color="#fff" class="d-md-none"> <path fill="currentColor" d="M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"> </path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.whatsnew</i18n> </span></a></li> <li class="nav-item"><a href="/userbook/annuaire?myClass&token=[[ctrl.version]]" class="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" color="#fff" class="d-md-none"> <path d="M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z" fill="currentColor"></path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.classMembers</i18n> </span></a></li> <li class="nav-item"><a href="/welcome?token=[[ctrl.version]]" class="button"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff" class="d-md-none"> <path d="M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z" fill="currentColor"></path> </svg><span class="d-inline-block"> <i18n>portal.header.navigation.myapps</i18n> </span></a></li> </ul> </div> </div> </nav> </header> <header class="header no-1d" ng-if="ctrl.is2D"> <nav class="navbar navbar-expand-md"> <div class="container-fluid" style="max-width:1700px"> <a class="navbar-brand d-md-block" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'timeline\', \'from\':\'logo\'} })" href="/timeline/timeline?token=[[ctrl.version]]" i18n-title="navbar.home"> <img class="logo" skin-src="img/illustrations/logo.png" alt="logo NEO" width="300" height="52"> </a> <ul class="navbar-nav"> <li class="nav-item"> <a href="/timeline/timeline" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'timeline\', \'from\':\'menu\'} })" class="nav-link" i18n-title="navbar.home"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff"> <path d="M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.home</i18n> </span> </a> </li> <li class="nav-item position-relative popover-trigger" id=":r2:" aria-haspopup="true" aria-expanded="false" pulsar="{index:3, style:{zIndex:1021}, i18n:\'portal.pulsar.apps\', position:\'bottom center\'}"> <a href="/welcome" i18n-title="navbar.applications" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'welcome\', \'from\':\'menu\'} })" class="nav-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="#fff"> <path d="M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.applications</i18n> </span> </a> <div aria-labelledby=":r2:" class="popover position-absolute top-100 start-50 translate-middle-x top-100" role="tooltip"> <div class="popover-body"> <div class="widget-body d-flex flex-wrap"> <div class="text-dark" ng-if="ctrl.apps.length === 0"> <i18n>navbar.myapps.more</i18n> </div> <a class="bookmarked-app" connector-lightbox-trigger="app" aria-label="[[app.displayName]]" target="[[app.target]]" href="[[app.address]]" i18n-title="[[app.displayName]]" ng-switch="app.icon.indexOf(\'/\')" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'app\', \'app\':app} })" ng-repeat="app in ctrl.apps | limitTo:6 track by $index"> <i class="fs-1" ng-class="ctrl.getIconClass(app)" ng-switch-when="-1"></i> <img skin-src="[[app.icon]]" ng-switch-default alt="[[app.displayName]]"/> </a> </div> </div> <div class="popover-footer widget-footer border-top border-ghost"> <div class="widget-footer"> <div class="widget-footer-action"> <a href="/welcome" class="link"> <i18n>plus</i18n> </a> </div> </div> </div> </div> </li> <li class="nav-item" ng-include="ctrl.conversationUnreadUrl"> <div class="nav-link conversation" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'conversation\'} })"></div> </li> <li class="nav-item" ng-if="ctrl.currentLanguage == \'fr\' && me.hasWorkflow(\'org.entcore.portal.controllers.PortalController|oldHelpEnable\')" pulsar="{index:5, style:{zIndex:1021}, i18n:\'portal.pulsar.help\', position:\'bottom center\'}"> <a href="" class="nav-link" i18n-title="navbar.help"> <help></help> </a> </li> <li class="nav-item"> <div class="dropdown"> <button class="nav-link btn btn-naked d-md-none" type="button" aria-controls="dropdown-navbar" aria-expanded="false" aria-label="navbar.open.menu" ng-click="dropdownToggle = !dropdownToggle"> <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon rafter-down" color="#fff"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z" fill="currentColor"></path> </svg> </button> <ul class="dropdown-menu dropdown-menu-end" id="dropdown-navbar" ng-class="{\'show\' : dropdownToggle}"> <li class="nav-item" data-community ng-if="me.hasWorkflow(\'net.atos.entng.community.controllers.CommunityController|view\')"> <a class="nav-link dropdown-item" href="/community" i18n-title="navbar.community" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'community\'} })"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24" aria-hidden="true" class="icon community"><path fill="currentColor" d="M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"></path></svg> <span class="nav-text"><i18n>navbar.community</i18n></span> </a> </li> <li class="nav-item position-relative popover-trigger" id=":r3:" aria-haspopup="true" aria-expanded="false" ng-if="me.hasWorkflow(\'fr.openent.searchengine.controllers.SearchEngineController|view\')"> <a href="/searchengine" i18n-title="navbar.search" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'searchengine\', \'from\':\'menu\'} })" class="nav-link dropdown-item"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon search"> <path d="M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.search</i18n> </span> </a> <div aria-labelledby=":r3:" class="popover position-absolute top-100 start-50 translate-middle-x" role="tooltip"> <div class="search-text input-group py-8 px-12"> <input id="my-search-input" class="form-control form-control-sm" type="text" name="my-search-input" ng-model="ctrl.mysearch" ng-keyup="ctrl.launchSearch($event, \'key\');"/><button class="btn btn-filled btn-primary btn-sm btn-icon btn-sm btn-search btn-sm" i18n-title="navbar.search" ng-click="ctrl.launchSearch($event, \'button\');"> <span><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true"> <path fill="currentColor" fill-rule="evenodd" d="M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z" clip-rule="evenodd"></path> </svg></span> </button> </div> </div> </li> <li class="nav-item"> <a href="/userbook/mon-compte" pulsar="{ index:4, style:{zIndex:1021}, i18n:\'portal.pulsar.account\', position:\'bottom center\'}" ng-click="ctrl.trackEvent($event, {detail:{\'open\':\'myaccount\'} })" i18n-title="navbar.myaccount" class="nav-link dropdown-item"> <div class="avatar avatar-sm rounded-circle bg-white"> <img data-ng-src="[[ctrl.avatar ? ctrl.avatar+\'?thumbnail=48x48\' : \'\']]" width="30" height="30" alt="[[ctrl.username]]"/> </div> <span class="nav-text"> <i18n>navbar.myaccount</i18n> </span> </a> </li> <li class="nav-item"> <hr class="dropdown-divider"> </li> <li class="nav-item"> <a href="" logout i18n-title="navbar.disconnect" class="nav-link dropdown-item"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" class="icon logout"> <path d="M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z" fill="currentColor"></path> </svg> <span class="nav-text"> <i18n>navbar.disconnect</i18n> </span> </a> </li> </ul> </div> </li> </ul> </div> </nav> </header>'},4809:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="row"> <input type="text" ng-model="ctrl.search" i18n-placeholder="search" autocomplete="off"/> </div> '},9018:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="toast fade" role="alert" aria-live="assertive" aria-atomic="true"> <div class="toast-header"> <strong class="me-auto">[[header]]</strong> <small class="text-muted">[[since]]</small> <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close" ng-click="visible(false)"></button> </div> <div class="toast-body" ng-transclude></div> </div>'},9068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<section class="lightbox" ng-class="{\'lightbox\': !tiny, \'tiny-lightbox\': tiny}"> <div class="background"></div> <div class="content"> <div class="twelve cell" ng-transclude></div> <div class="close-lightbox"> <i class="close-2x"></i> </div> </div> </section>'},7597:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="{{ctrl.id+\'Label\'}}" aria-hidden="true" ng-class="{show: ctrl.visible}" ng-style="ctrl.getStyle()"> <div class="modal-backdrop fade show" style="z-index:1040"></div> <div class="modal-dialog" ng-class="ctrl.getSizeClass()" role="document" style="z-index:1050"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="{{ctrl.id+\'Label\'}}" ng-transclude="title"></h5> <button type="button" class="btn-close" aria-label="Close" ng-if="ctrl.onClose" ng-click="ctrl.onClose()"> </button> </div> <div class="modal-body" ng-transclude="body"></div> <div class="modal-footer" ng-transclude="footer"></div> </div> </div> </div> '},9325:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<style id="pulsar-css">pulsar{z-index:1036;position:absolute;pointer-events:all}.pulsar-layer{box-shadow:0 0 0 99999px rgb(0 0 0 / 60%);position:absolute;border-radius:2px;z-index:1035}pulsar .content{background:#fff;width:300px;box-shadow:1px 1px 7px rgb(0 0 0 / 40%);padding:15px;box-sizing:border-box;border:6px solid #ddd;border-radius:2px;position:relative}pulsar .content .inf{position:absolute;left:10px;top:10px;color:#fff;background:#ffaa4d;border-radius:50%;line-height:22px;text-align:center;width:22px;height:22px}pulsar .content .inf::before{font-size:18px;content:\'i\';font-style:italic;font-weight:700;display:inline-block;margin-left:-1px}pulsar .content .close{position:absolute;right:10px;top:10px;width:22px;height:22px;line-height:17px;background:#ddd;border-radius:50%;color:#636363}pulsar i.close{font-family:generic-icons;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none;font-weight:400!important;text-align:center;cursor:pointer;font-style:normal}pulsar .content>div.text{margin-top:25px;padding:10px;font-size:14px;line-height:18px}pulsar .content .close::before{content:\'\\e866\';font-size:9px}pulsar nav.dots ul{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:0;margin:15px 0 25px}pulsar nav.dots li.dot{list-style-type:none;margin:0 10px;cursor:pointer}pulsar nav.dots li.dot::before{content:" ";display:block;width:17px;height:17px;background:0 0;border:2px solid silver;border-radius:50%;box-sizing:border-box;transition:all 250ms ease}pulsar nav.dots li.dot:hover::before{border-color:#ff8500;background:0 0}nav.dots li.dot.active::before{color:#4bafd5}pulsar nav.dots li.dot.active::before{border-color:#ff8500;background:#ff8500}pulsar nav.dots li.dot::before{font-size:60px;width:12px;height:12px}pulsar nav.dots li.dot::before{content:" ";display:block;width:17px;height:17px;background:0 0;border:2px solid silver;border-radius:50%;box-sizing:border-box;transition:all 250ms ease}pulsar .arrow{width:0;height:0;border-style:solid;border-width:0 8.4px 14px 8.4px;border-color:transparent transparent #ddd transparent;z-index:1;position:absolute}pulsar.middle .arrow{left:calc(50% - 7px);top:-14px}pulsar.left .arrow{transform:rotate(90deg);right:-14px}pulsar.left.top .arrow{top:1px}pulsar.left.center .arrow{top:calc(50% - 7px)}pulsar.right.center .arrow{top:calc(50% - 7px)}pulsar.right .arrow{transform:rotate(270deg);left:-14px}pulsar.right.top .arrow{top:1px}pulsar.center.top .arrow{transform:rotate(180deg);top:100%;left:calc(50% - 7px)}pulsar.bottom .arrow{top:-14px}pulsar.bottom.center .arrow{left:calc(50% - 7px)}pulsar.bottom.left .arrow,pulsar.bottom.right .arrow{top:1px}pulsar.bottom.right .arrow{left:-14px;transform:rotate(-90deg)}pulsar.bottom.left .arrow{transform:rotate(90deg);right:-14px;left:auto}.pulsar-button{position:absolute;z-index:999;width:40px;height:40px}.pulsar-button::after,.pulsar-button::before{content:"";opacity:.5;position:absolute;z-index:-1;inset:-6px 0 0 -6px;height:42px;width:42px;content:"";border-radius:50%;box-shadow:0 0 5px 6px rgb(120 218 255 / 60%);transform:scale(.1,.1);transition:all 250ms ease;animation:pulsate 1s ease-out;animation-iteration-count:infinite}.pulsar-button::after{animation-delay:.3s}.pulse-spot{position:absolute;cursor:pointer;width:30px;height:30px;font-size:18px;text-align:center;line-height:21px;font-weight:700;color:#fff;border-radius:50%;border:4px solid transparent;background:#ff8500;transition:all 250ms ease}.pulse-spot::before{content:\'i\';font-style:italic;font-family:\'Times New Roman\',Times,serif}pulsar .row{flex-direction:row-reverse;justify-content:space-between;margin-left:0!important;margin-right:0!important;max-width:100%;width:100%;position:relative;clear:both;box-sizing:border-box}pulsar .row>*{width:auto}@keyframes pulsate{0%{transform:scale(.1,.1);opacity:0}50%{opacity:1}100%{transform:scale(1.2,1.2);opacity:0}}.pulsar-button{display:none}@media (min-width:992px){.pulsar-button{display:block}}</style>'},6066:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r='<style id="widget-container-css">ul[dnd-list],ul[dnd-list]>li{position:relative}ul[dnd-list]{padding-left:0}ul[dnd-list][dnd-drop]{min-height:42px;transition:all .1s ease-in-out 0s}ul[dnd-list][dnd-dragover].dndReject{display:block;background-color:#ff8c8c;min-height:90px;border-radius:6px;margin-bottom:2em}ul[dnd-list] .dndDraggingSource{display:none}ul[dnd-list] .dndPlaceholder{display:block;background-color:#ffdbb7;min-height:90px;border-radius:6px;margin-bottom:2em}ul[dnd-list] li{list-style:none}.dndDragging:not(.dndDraggingSource){cursor:grabbing!important;border:1px solid rgb(255 133 0)}.dnDragover{cursor:grabbing}.dndDragging:not(.dndDraggingSource):active,.dndDragging:not(.dndDraggingSource):focus,.dndDragging:not(.dndDraggingSource):hover{cursor:grabbing;cursor:-webkit-grabbing}</style> <ul dnd-list dnd-allowed-types="[]" ng-if="ctrl.lockedWidgets.length"> <li ng-repeat="widget in ctrl.lockedWidgets track by widget.platformConf.id" class="widget widget-locked" ode-widget="widget"> </li> </ul> <ul dnd-list dnd-allowed-types="[\'left\',\'right\']" dnd-dragover="ctrl.onDnDDragOver(event, index, type, dropEffect)" dnd-drop="ctrl.onDnDDrop(event, item, index, dropEffect)"> <li ng-repeat="widget in ctrl.dndWidgets track by widget.platformConf.id" class="widget" ode-widget="widget" dnd-draggable="widget.platformConf.id" dnd-type="widget.userPref.position" dnd-disable-if="ctrl.isMobileView"> </li> </ul>'},2011:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="<span>{{ctrl.sayHello()}}</span>"},991:function(e){e.exports=function(){var e=window,t=document,n={on:function(t,n,r){"addEventListener"in e?t.addEventListener(n,r,!1):t.attachEvent("on"+n,r)},off:function(t,n,r){"removeEventListener"in e?t.removeEventListener(n,r,!1):t.detachEvent("on"+n,r)},bind:function(e,t){return function(){e.apply(t,arguments)}},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},config:function(e,t){return null!=e?e:t},transSupport:!1,useFilter:/msie [678]/i.test(navigator.userAgent),_checkTransition:function(){var e=t.createElement("div"),n={webkit:"webkit",Moz:"",O:"o",ms:"MS"};for(var r in n)r+"Transition"in e.style&&(this.vendorPrefix=n[r],this.transSupport=!0)}};n._checkTransition();var r=function(t){t||(t={}),this.queue=[],this.baseCls=t.baseCls||"humane",this.addnCls=t.addnCls||"",this.timeout="timeout"in t?t.timeout:2500,this.waitForMove=t.waitForMove||!1,this.clickToClose=t.clickToClose||!1,this.timeoutAfterMove=t.timeoutAfterMove||!1,this.container=t.container;try{this._setupEl()}catch(t){n.on(e,"load",n.bind(this._setupEl,this))}};return r.prototype={constructor:r,_setupEl:function(){var e=t.createElement("div");if(e.style.display="none",!this.container){if(!t.body)throw"document.body is null";this.container=t.body}this.container.appendChild(e),this.el=e,this.removeEvent=n.bind(function(){var e=n.config(this.currentMsg.timeoutAfterMove,this.timeoutAfterMove);e?setTimeout(n.bind(this.remove,this),e):this.remove()},this),this.transEvent=n.bind(this._afterAnimation,this),this._run()},_afterTimeout:function(){n.config(this.currentMsg.waitForMove,this.waitForMove)?this.removeEventsSet||(n.on(t.body,"mousemove",this.removeEvent),n.on(t.body,"click",this.removeEvent),n.on(t.body,"keypress",this.removeEvent),n.on(t.body,"touchstart",this.removeEvent),this.removeEventsSet=!0):this.remove()},_run:function(){if(!this._animating&&this.queue.length&&this.el){this._animating=!0,this.currentTimer&&(clearTimeout(this.currentTimer),this.currentTimer=null);var e=this.queue.shift();n.config(e.clickToClose,this.clickToClose)&&(n.on(this.el,"click",this.removeEvent),n.on(this.el,"touchstart",this.removeEvent));var t=n.config(e.timeout,this.timeout);t>0&&(this.currentTimer=setTimeout(n.bind(this._afterTimeout,this),t)),n.isArray(e.html)&&(e.html="<ul><li>"+e.html.join("<li>")+"</ul>"),this.el.innerHTML=e.html,this.currentMsg=e,this.el.className=this.baseCls,n.transSupport?(this.el.style.display="block",setTimeout(n.bind(this._showMsg,this),50)):this._showMsg()}},_setOpacity:function(e){if(n.useFilter)try{this.el.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=100*e}catch(e){}else this.el.style.opacity=String(e)},_showMsg:function(){var e=n.config(this.currentMsg.addnCls,this.addnCls);if(n.transSupport)this.el.className=this.baseCls+" "+e+" "+this.baseCls+"-animate";else{var t=0;this.el.className=this.baseCls+" "+e+" "+this.baseCls+"-js-animate",this._setOpacity(0),this.el.style.display="block";var r=this,i=setInterval(function(){t<1?((t+=.1)>1&&(t=1),r._setOpacity(t)):clearInterval(i)},30)}},_hideMsg:function(){var e=n.config(this.currentMsg.addnCls,this.addnCls);if(n.transSupport)this.el.className=this.baseCls+" "+e,n.on(this.el,n.vendorPrefix?n.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent);else var t=1,r=this,i=setInterval(function(){t>0?((t-=.1)<0&&(t=0),r._setOpacity(t)):(r.el.className=r.baseCls+" "+e,clearInterval(i),r._afterAnimation())},30)},_afterAnimation:function(){n.transSupport&&n.off(this.el,n.vendorPrefix?n.vendorPrefix+"TransitionEnd":"transitionend",this.transEvent),this.currentMsg.cb&&this.currentMsg.cb(),this.el.style.display="none",this._animating=!1,this._run()},remove:function(e){var r="function"==typeof e?e:null;n.off(t.body,"mousemove",this.removeEvent),n.off(t.body,"click",this.removeEvent),n.off(t.body,"keypress",this.removeEvent),n.off(t.body,"touchstart",this.removeEvent),n.off(this.el,"click",this.removeEvent),n.off(this.el,"touchstart",this.removeEvent),this.removeEventsSet=!1,r&&this.currentMsg&&(this.currentMsg.cb=r),this._animating?this._hideMsg():r&&r()},log:function(e,t,n,r){var i={};if(r)for(var o in r)i[o]=r[o];if("function"==typeof t)n=t;else if(t)for(var o in t)i[o]=t[o];return i.html=e,n&&(i.cb=n),this.queue.push(i),this._run(),this},spawn:function(e){var t=this;return function(n,r,i){return t.log.call(t,n,r,i,e),t}},create:function(e){return new r(e)}},new r}()},9740:function(e,t,n){!function(e){"use strict";
|
|
2
2
|
//! moment.js locale configuration
|
|
3
3
|
function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(381))},5655:function(e,t,n){!function(e){"use strict";
|
|
4
4
|
//! moment.js locale configuration
|
|
@@ -8,7 +8,7 @@ var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|no
|
|
|
8
8
|
//! moment.js locale configuration
|
|
9
9
|
e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},9520:function(e,t,n){!function(e){"use strict";
|
|
10
10
|
//! moment.js locale configuration
|
|
11
|
-
e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},5323:(e,t,n)=>{var r={"./de":9740,"./de.js":9740,"./es":5655,"./es.js":5655,"./fr":4470,"./fr.js":4470,"./it":626,"./it.js":626,"./pt":9520,"./pt.js":9520};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=5323},381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function l(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function v(e,t,n,r){return Bn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function b(e){if(null==e._isValid){var t=g(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=v(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var w=i.momentProperties=[],_=!1;function x(e,t){var n,r,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),w.length>0)for(n=0;n<w.length;n++)l(i=t[r=w[n]])||(e[r]=i);return e}function k(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,i.updateOffset(this),_=!1)}function S(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function M(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,a,s=[];for(o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])u(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}M(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var O,T={};function P(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),T[e]||(M(t),T[e]=!0)}function C(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)u(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=p({},e);for(n in t)u(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&s(e[n])&&(r[n]=p({},r[n]));return r}function j(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r}function R(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},W={};function V(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(W[e]=i),t&&(W[t[0]]=function(){return R(i.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(Y);for(t=0,n=r.length;t<n;t++)W[r[t]]?r[t]=W[r[t]]:r[t]=U(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=C(r[i])?r[i].call(t,e):r[i];return o}}function $(e,t){return e.isValid()?(t=H(t,e.localeData()),F[t]=F[t]||G(t),F[t](e)):e.localeData().invalidDate()}function H(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Y).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var B="Invalid date";function Z(){return this._invalidDate}var J="%d",X=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var i=this._relativeTime[n];return C(i)?i(e,t,n,r):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function ie(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function oe(e){var t,n,r={};for(n in e)u(e,n)&&(t=ie(n))&&(r[t]=e[n]);return r}var ae={};function se(e,t){ae[e]=t}function ue(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}function fe(e,t){return function(n){return null!=n?(pe(this,e,n),i.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=de(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ve(e){return C(this[e=ie(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var n,r=ue(e=oe(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(C(this[e=ie(e)]))return this[e](t);return this}var ge,be=/\d/,ye=/\d\d/,we=/\d{3}/,_e=/\d{4}/,xe=/[+-]?\d{6}/,ke=/\d\d?/,Se=/\d\d\d\d?/,Me=/\d\d\d\d\d\d?/,De=/\d{1,3}/,Oe=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Pe=/\d+/,Ce=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,je=/[+-]?\d+(\.\d{1,3})?/,Ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ne(e,t,n){ge[e]=C(t)?t:function(e,r){return e&&n?n:t}}function Re(e,t){return u(ge,e)?ge[e](t._strict,t._locale):new RegExp(Ye(e))}function Ye(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Fe={};function We(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),d(t)&&(r=function(e,n){n[t]=de(e)}),n=0;n<e.length;n++)Fe[e[n]]=r}function Ve(e,t){We(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ue(e,t,n){null!=t&&u(Fe,e)&&Fe[e](t,n._a,n,e)}var Ge,$e=0,He=1,ze=2,qe=3,Be=4,Ze=5,Je=6,Xe=7,Ke=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?ce(e)?29:28:31-n%7%2}Ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},V("M",["MM",2],"Mo",(function(){return this.month()+1})),V("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),V("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),re("month","M"),se("month",8),Ne("M",ke),Ne("MM",ke,ye),Ne("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ne("MMMM",(function(e,t){return t.monthsRegex(e)})),We(["M","MM"],(function(e,t){t[He]=de(e)-1})),We(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[He]=i:g(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ie,ot=Ie;function at(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function st(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=v([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ge.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,a))||-1!==(i=Ge.call(this._longMonthsParse,a))?i:null:-1!==(i=Ge.call(this._longMonthsParse,a))||-1!==(i=Ge.call(this._shortMonthsParse,a))?i:null}function ct(e,t,n){var r,i,o;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=v([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function lt(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dt(e){return null!=e?(lt(this,e),i.updateOffset(this,!0),this):he(this,"Month")}function ft(){return et(this.year(),this.month())}function ht(e){return this._monthsParseExact?(u(this,"_monthsRegex")||vt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||vt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ot),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function vt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=v([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Le(r[t]),i[t]=Le(i[t]);for(t=0;t<24;t++)o[t]=Le(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return ce(e)?366:365}V("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),V(0,["YY",2],0,(function(){return this.year()%100})),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),re("year","y"),se("year",1),Ne("Y",Ce),Ne("YY",ke,ye),Ne("YYYY",Oe,_e),Ne("YYYYY",Te,xe),Ne("YYYYYY",Te,xe),We(["YYYYY","YYYYYY"],$e),We("YYYY",(function(e,t){t[$e]=2===e.length?i.parseTwoDigitYear(e):de(e)})),We("YY",(function(e,t){t[$e]=i.parseTwoDigitYear(e)})),We("Y",(function(e,t){t[$e]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var gt=fe("FullYear",!0);function bt(){return ce(this.year())}function yt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function wt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _t(e,t,n){var r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return s<=0?a=mt(o=e-1)+s:s>mt(e)?(o=e+1,a=s-mt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function kt(e,t,n){var r,i,o=_t(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+St(i=e.year()-1,t,n):a>St(e.year(),t,n)?(r=a-St(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function St(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(mt(e)-r+i)/7}function Mt(e){return kt(e,this._week.dow,this._week.doy).week}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),se("week",5),se("isoWeek",5),Ne("w",ke),Ne("ww",ke,ye),Ne("W",ke),Ne("WW",ke,ye),Ve(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=de(e)}));var Dt={dow:0,doy:6};function Ot(){return this._week.dow}function Tt(){return this._week.doy}function Pt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ct(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Et(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}V("d",0,"do","day"),V("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),V("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),V("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Ne("d",ke),Ne("e",ke),Ne("E",ke),Ne("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ne("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ne("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ve(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e})),Ve(["d","e","E"],(function(e,t,n,r){t[r]=de(e)}));var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yt=Ie,Lt=Ie,Ft=Ie;function Wt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?jt(n,this._week.dow):e?n[e.day()]:n}function Vt(e){return!0===e?jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=v([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,a))||-1!==(i=Ge.call(this._shortWeekdaysParse,a))||-1!==(i=Ge.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,a))||-1!==(i=Ge.call(this._weekdaysParse,a))||-1!==(i=Ge.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,a))||-1!==(i=Ge.call(this._weekdaysParse,a))||-1!==(i=Ge.call(this._shortWeekdaysParse,a))?i:null}function $t(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=v([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ht(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Et(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Bt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Yt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=v([2e3,1]).day(t),r=Le(this.weekdaysMin(n,"")),i=Le(this.weekdaysShort(n,"")),o=Le(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Kt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){V(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,Kt),V("k",["kk",2],0,Qt),V("hmm",0,0,(function(){return""+Kt.apply(this)+R(this.minutes(),2)})),V("hmmss",0,0,(function(){return""+Kt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),V("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),V("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),en("a",!0),en("A",!1),re("hour","h"),se("hour",13),Ne("a",tn),Ne("A",tn),Ne("H",ke),Ne("h",ke),Ne("k",ke),Ne("HH",ke,ye),Ne("hh",ke,ye),Ne("kk",ke,ye),Ne("hmm",Se),Ne("hmmss",Me),Ne("Hmm",Se),Ne("Hmmss",Me),We(["H","HH"],qe),We(["k","kk"],(function(e,t,n){var r=de(e);t[qe]=24===r?0:r})),We(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),We(["h","hh"],(function(e,t,n){t[qe]=de(e),g(n).bigHour=!0})),We("hmm",(function(e,t,n){var r=e.length-2;t[qe]=de(e.substr(0,r)),t[Be]=de(e.substr(r)),g(n).bigHour=!0})),We("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=de(e.substr(0,r)),t[Be]=de(e.substr(r,2)),t[Ze]=de(e.substr(i)),g(n).bigHour=!0})),We("Hmm",(function(e,t,n){var r=e.length-2;t[qe]=de(e.substr(0,r)),t[Be]=de(e.substr(r))})),We("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=de(e.substr(0,r)),t[Be]=de(e.substr(r,2)),t[Ze]=de(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,on=fe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,un={calendar:I,longDateFormat:z,invalidDate:B,ordinal:J,dayOfMonthOrdinalParse:X,relativeTime:Q,months:tt,monthsShort:nt,week:Dt,weekdays:It,weekdaysMin:Rt,weekdaysShort:Nt,meridiemParse:rn},cn={},ln={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=fn(e[o]).split("-")).length,n=(n=fn(e[o+1]))?n.split("-"):null;t>0;){if(r=pn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(i,n)>=t-1)break;t--}o++}return sn}function pn(t){var r=null;if(void 0===cn[t]&&e&&e.exports)try{r=sn._abbr,n(5323)("./"+t),vn(r)}catch(e){cn[t]=null}return cn[t]}function vn(e,t){var n;return e&&((n=l(t)?bn(e):mn(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function mn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=cn[e])P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new j(A(r,t)),ln[e]&&ln[e].forEach((function(e){mn(e.name,e.config)})),vn(e),cn[e]}return delete cn[e],null}function gn(e,t){if(null!=t){var n,r,i=un;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(A(cn[e]._config,t)):(null!=(r=pn(e))&&(i=r._config),t=A(i,t),null==r&&(t.abbr=e),(n=new j(t)).parentLocale=cn[e],cn[e]=n),vn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===vn()&&vn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!a(e)){if(t=pn(e))return t;e=[e]}return hn(e)}function yn(){return O(cn)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[He]<0||n[He]>11?He:n[ze]<1||n[ze]>et(n[$e],n[He])?ze:n[qe]<0||n[qe]>24||24===n[qe]&&(0!==n[Be]||0!==n[Ze]||0!==n[Je])?qe:n[Be]<0||n[Be]>59?Be:n[Ze]<0||n[Ze]>59?Ze:n[Je]<0||n[Je]>999?Je:-1,g(e)._overflowDayOfYear&&(t<$e||t>ze)&&(t=ze),g(e)._overflowWeeks&&-1===t&&(t=Xe),g(e)._overflowWeekday&&-1===t&&(t=Ke),g(e).overflow=t),e}var _n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Mn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((-?\d+)/i,On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(e){var t,n,r,i,o,a,s=e._i,u=_n.exec(s)||xn.exec(s);if(u){for(g(e).iso=!0,t=0,n=Sn.length;t<n;t++)if(Sn[t][1].exec(u[1])){i=Sn[t][0],r=!1!==Sn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=Mn.length;t<n;t++)if(Mn[t][1].exec(u[3])){o=(u[2]||" ")+Mn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!kn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Vn(e)}else e._isValid=!1}function Cn(e,t,n,r,i,o){var a=[En(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function En(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jn(e,t,n){return!e||Nt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function In(e,t,n){if(e)return Tn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Nn(e){var t,n=On.exec(An(e._i));if(n){if(t=Cn(n[4],n[3],n[2],n[5],n[6],n[7]),!jn(n[1],t,e))return;e._a=t,e._tzm=In(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var t=Dn.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,Nn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Yn(e,t,n){return null!=e?e:null!=t?t:n}function Ln(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=Ln(e),e._w&&null==e._a[ze]&&null==e._a[He]&&Wn(e),null!=e._dayOfYear&&(o=Yn(e._a[$e],r[$e]),(e._dayOfYear>mt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=wt(o,0,e._dayOfYear),e._a[He]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qe]&&0===e._a[Be]&&0===e._a[Ze]&&0===e._a[Je]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?wt:yt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Wn(e){var t,n,r,i,o,a,s,u,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Yn(t.GG,e._a[$e],kt(Zn(),1,4).year),r=Yn(t.W,1),((i=Yn(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=kt(Zn(),o,a),n=Yn(t.gg,e._a[$e],c.year),r=Yn(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>St(n,o,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(s=xt(n,r,i,o,a),e._a[$e]=s.year,e._dayOfYear=s.dayOfYear)}function Vn(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],g(e).empty=!0;var t,n,r,o,a,s,u=""+e._i,c=u.length,l=0;for(r=H(e._f,e._locale).match(Y)||[],t=0;t<r.length;t++)o=r[t],(n=(u.match(Re(o,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),l+=n.length),W[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),Ue(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);g(e).charsLeftOver=c-l,u.length>0&&g(e).unusedInput.push(u),e._a[qe]<=12&&!0===g(e).bigHour&&e._a[qe]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[qe]=Un(e._locale,e._a[qe],e._meridiem),null!==(s=g(e).era)&&(e._a[$e]=e._locale.erasConvertYear(s,e._a[$e])),Fn(e),wn(e)}else Nn(e);else Pn(e)}function Un(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Gn(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,a=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Vn(t),b(t)&&(a=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));p(e,n||t)}function $n(e){if(!e._d){var t=oe(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Fn(e)}}function Hn(e){var t=new k(wn(zn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new k(wn(t)):(f(t)?e._d=t:a(n)?Gn(e):n?Vn(e):qn(e),b(e)||(e._d=null),e))}function qn(e){var t=e._i;l(t)?e._d=new Date(i.now()):f(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Rn(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Fn(e)):s(t)?$n(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}function Bn(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&c(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Hn(o)}function Zn(e,t,n,r){return Bn(e,t,n,r,!1)}i.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Jn=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Xn=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Kn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Zn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Qn(){return Kn("isBefore",[].slice.call(arguments,0))}function er(){return Kn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1;for(t in e)if(u(e,t)&&(-1===Ge.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<nr.length;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==de(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return Tr(NaN)}function ar(e){var t=oe(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+l+1e3*c+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function sr(e){return e instanceof ar}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&de(e[r])!==de(t[r]))&&a++;return a+o}function lr(e,t){V(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+R(~~(e/60),2)+t+R(~~e%60,2)}))}lr("Z",":"),lr("ZZ",""),Ne("Z",Ae),Ne("ZZ",Ae),We(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(Ae,e)}));var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?r:-r}function hr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(S(e)||f(e)?e.valueOf():Zn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Zn(e).local()}function pr(e){return-Math.round(e._d.getTimezoneOffset())}function vr(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=pr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?jr(this,Tr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:pr(this)}function mr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pr(this),"m")),this}function yr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(Ee,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Zn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function _r(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=zn(t))._a?(e=t._isUTC?v(t._a):Zn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Dr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Tr(e,t){var n,r,i,o=e,a=null;return sr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Dr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:de(a[ze])*n,h:de(a[qe])*n,m:de(a[Be])*n,s:de(a[Ze])*n,ms:de(ur(1e3*a[Je]))*n}):(a=Or.exec(e))?(n="-"===a[1]?-1:1,o={y:Pr(a[2],n),M:Pr(a[3],n),w:Pr(a[4],n),d:Pr(a[5],n),h:Pr(a[6],n),m:Pr(a[7],n),s:Pr(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Er(Zn(o.from),Zn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),sr(e)&&u(e,"_locale")&&(r._locale=e._locale),sr(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function Pr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Er(e,t){var n;return e.isValid()&&t.isValid()?(t=hr(t,e),e.isBefore(t)?n=Cr(e,t):((n=Cr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ar(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(P(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),jr(this,Tr(n,r),e),this}}function jr(e,t,n,r){var o=t._milliseconds,a=ur(t._days),s=ur(t._months);e.isValid()&&(r=null==r||r,s&<(e,he(e,"Month")+s*n),a&&pe(e,"Date",he(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Tr.fn=ar.prototype,Tr.invalid=or;var Ir=Ar(1,"add"),Nr=Ar(-1,"subtract");function Rr(e){return"string"==typeof e||e instanceof String}function Yr(e){return S(e)||f(e)||Rr(e)||d(e)||Fr(e)||Lr(e)||null==e}function Lr(e){var t,n,r=s(e)&&!c(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],i=i||u(e,n);return r&&i}function Fr(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Rr(e)})).length),t&&n}function Wr(e){var t,n,r=s(e)&&!c(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||u(e,n);return r&&i}function Vr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ur(e,t){1===arguments.length&&(arguments[0]?Yr(arguments[0])?(e=arguments[0],t=void 0):Wr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Zn(),r=hr(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(C(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Zn(n)))}function Gr(){return new k(this)}function $r(e,t){var n=S(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Hr(e,t){var n=S(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function zr(e,t,n,r){var i=S(e)?e:Zn(e),o=S(t)?t:Zn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function qr(e,t){var n,r=S(e)?e:Zn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Br(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Zr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Jr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=hr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=ie(t)){case"year":o=Xr(this,r)/12;break;case"month":o=Xr(this,r);break;case"quarter":o=Xr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:le(o)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Kr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(S(e)&&e.isValid()||Zn(e).isValid())?Tr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from(Zn(),e)}function ii(e,t){return this.isValid()&&(S(e)&&e.isValid()||Zn(e).isValid())?Tr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to(Zn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var ci=1e3,li=60*ci,di=60*li,fi=3506328*di;function hi(e,t){return(e%t+t)%t}function pi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function vi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function mi(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hi(t+(this._isUTC?0:this.utcOffset()*li),di);break;case"minute":t=this._d.valueOf(),t-=hi(t,li);break;case"second":t=this._d.valueOf(),t-=hi(t,ci)}return this._d.setTime(t),i.updateOffset(this,!0),this}function gi(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-hi(t+(this._isUTC?0:this.utcOffset()*li),di)-1;break;case"minute":t=this._d.valueOf(),t+=li-hi(t,li)-1;break;case"second":t=this._d.valueOf(),t+=ci-hi(t,ci)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function yi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function _i(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ki(){return this.isValid()?this.toISOString():null}function Si(){return b(this)}function Mi(){return p({},g(this))}function Di(){return g(this).overflow}function Oi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ti(e,t){var n,r,o,a=this._eras||bn("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Pi(e,t,n){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]}function Ci(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function Ei(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function ji(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ii(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()}function Ni(e){return u(this,"_erasNameRegex")||Ui.call(this),e?this._erasNameRegex:this._erasRegex}function Ri(e){return u(this,"_erasAbbrRegex")||Ui.call(this),e?this._erasAbbrRegex:this._erasRegex}function Yi(e){return u(this,"_erasNarrowRegex")||Ui.call(this),e?this._erasNarrowRegex:this._erasRegex}function Li(e,t){return t.erasAbbrRegex(e)}function Fi(e,t){return t.erasNameRegex(e)}function Wi(e,t){return t.erasNarrowRegex(e)}function Vi(e,t){return t._eraYearOrdinalRegex||Pe}function Ui(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Le(a[e].name)),n.push(Le(a[e].abbr)),i.push(Le(a[e].narrow)),o.push(Le(a[e].name)),o.push(Le(a[e].abbr)),o.push(Le(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Gi(e,t){V(0,[e,e.length],0,t)}function $i(e){return Ji.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Hi(e){return Ji.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zi(){return St(this.year(),1,4)}function qi(){return St(this.isoWeekYear(),1,4)}function Bi(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Zi(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Ji(e,t,n,r,i){var o;return null==e?kt(this,r,i).year:(t>(o=St(e,r,i))&&(t=o),Xi.call(this,e,t,n,r,i))}function Xi(e,t,n,r,i){var o=xt(e,t,n,r,i),a=wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ki(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}V("N",0,0,"eraAbbr"),V("NN",0,0,"eraAbbr"),V("NNN",0,0,"eraAbbr"),V("NNNN",0,0,"eraName"),V("NNNNN",0,0,"eraNarrow"),V("y",["y",1],"yo","eraYear"),V("y",["yy",2],0,"eraYear"),V("y",["yyy",3],0,"eraYear"),V("y",["yyyy",4],0,"eraYear"),Ne("N",Li),Ne("NN",Li),Ne("NNN",Li),Ne("NNNN",Fi),Ne("NNNNN",Wi),We(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),Ne("y",Pe),Ne("yy",Pe),Ne("yyy",Pe),Ne("yyyy",Pe),Ne("yo",Vi),We(["y","yy","yyy","yyyy"],$e),We(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[$e]=n._locale.eraYearOrdinalParse(e,i):t[$e]=parseInt(e,10)})),V(0,["gg",2],0,(function(){return this.weekYear()%100})),V(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Gi("gggg","weekYear"),Gi("ggggg","weekYear"),Gi("GGGG","isoWeekYear"),Gi("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Ne("G",Ce),Ne("g",Ce),Ne("GG",ke,ye),Ne("gg",ke,ye),Ne("GGGG",Oe,_e),Ne("gggg",Oe,_e),Ne("GGGGG",Te,xe),Ne("ggggg",Te,xe),Ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=de(e)})),Ve(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),V("Q",0,"Qo","quarter"),re("quarter","Q"),se("quarter",7),Ne("Q",be),We("Q",(function(e,t){t[He]=3*(de(e)-1)})),V("D",["DD",2],"Do","date"),re("date","D"),se("date",9),Ne("D",ke),Ne("DD",ke,ye),Ne("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),We(["D","DD"],ze),We("Do",(function(e,t){t[ze]=de(e.match(ke)[0])}));var Qi=fe("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}V("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),se("dayOfYear",4),Ne("DDD",De),Ne("DDDD",we),We(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=de(e)})),V("m",["mm",2],0,"minute"),re("minute","m"),se("minute",14),Ne("m",ke),Ne("mm",ke,ye),We(["m","mm"],Be);var to=fe("Minutes",!1);V("s",["ss",2],0,"second"),re("second","s"),se("second",15),Ne("s",ke),Ne("ss",ke,ye),We(["s","ss"],Ze);var no,ro,io=fe("Seconds",!1);for(V("S",0,0,(function(){return~~(this.millisecond()/100)})),V(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),V(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),V(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),V(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),V(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),V(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),re("millisecond","ms"),se("millisecond",16),Ne("S",De,be),Ne("SS",De,ye),Ne("SSS",De,we),no="SSSS";no.length<=9;no+="S")Ne(no,Pe);function oo(e,t){t[Je]=de(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")We(no,oo);function ao(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ro=fe("Milliseconds",!1),V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var uo=k.prototype;function co(e){return Zn(1e3*e)}function lo(){return Zn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Ir,uo.calendar=Ur,uo.clone=Gr,uo.diff=Jr,uo.endOf=gi,uo.format=ti,uo.from=ni,uo.fromNow=ri,uo.to=ii,uo.toNow=oi,uo.get=ve,uo.invalidAt=Di,uo.isAfter=$r,uo.isBefore=Hr,uo.isBetween=zr,uo.isSame=qr,uo.isSameOrAfter=Br,uo.isSameOrBefore=Zr,uo.isValid=Si,uo.lang=si,uo.locale=ai,uo.localeData=ui,uo.max=Xn,uo.min=Jn,uo.parsingFlags=Mi,uo.set=me,uo.startOf=mi,uo.subtract=Nr,uo.toArray=_i,uo.toObject=xi,uo.toDate=wi,uo.toISOString=Qr,uo.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=ki,uo.toString=Kr,uo.unix=yi,uo.valueOf=bi,uo.creationData=Oi,uo.eraName=Ei,uo.eraNarrow=Ai,uo.eraAbbr=ji,uo.eraYear=Ii,uo.year=gt,uo.isLeapYear=bt,uo.weekYear=$i,uo.isoWeekYear=Hi,uo.quarter=uo.quarters=Ki,uo.month=dt,uo.daysInMonth=ft,uo.week=uo.weeks=Pt,uo.isoWeek=uo.isoWeeks=Ct,uo.weeksInYear=Bi,uo.weeksInWeekYear=Zi,uo.isoWeeksInYear=zi,uo.isoWeeksInISOWeekYear=qi,uo.date=Qi,uo.day=uo.days=Ht,uo.weekday=zt,uo.isoWeekday=qt,uo.dayOfYear=eo,uo.hour=uo.hours=on,uo.minute=uo.minutes=to,uo.second=uo.seconds=io,uo.millisecond=uo.milliseconds=ro,uo.utcOffset=vr,uo.utc=gr,uo.local=br,uo.parseZone=yr,uo.hasAlignedHourOffset=wr,uo.isDST=_r,uo.isLocal=kr,uo.isUtcOffset=Sr,uo.isUtc=Mr,uo.isUTC=Mr,uo.zoneAbbr=ao,uo.zoneName=so,uo.dates=D("dates accessor is deprecated. Use date instead.",Qi),uo.months=D("months accessor is deprecated. Use month instead",dt),uo.years=D("years accessor is deprecated. Use year instead",gt),uo.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),uo.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var ho=j.prototype;function po(e,t,n,r){var i=bn(),o=v().set(r,t);return i[n](o,e)}function vo(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return po(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=po(e,r,n,"month");return i}function mo(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,o=bn(),a=e?o._week.dow:0,s=[];if(null!=n)return po(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=po(t,(i+a)%7,r,"day");return s}function go(e,t){return vo(e,t,"months")}function bo(e,t){return vo(e,t,"monthsShort")}function yo(e,t,n){return mo(e,t,n,"weekdays")}function wo(e,t,n){return mo(e,t,n,"weekdaysShort")}function _o(e,t,n){return mo(e,t,n,"weekdaysMin")}ho.calendar=N,ho.longDateFormat=q,ho.invalidDate=Z,ho.ordinal=K,ho.preparse=fo,ho.postformat=fo,ho.relativeTime=ee,ho.pastFuture=te,ho.set=E,ho.eras=Ti,ho.erasParse=Pi,ho.erasConvertYear=Ci,ho.erasAbbrRegex=Ri,ho.erasNameRegex=Ni,ho.erasNarrowRegex=Yi,ho.months=at,ho.monthsShort=st,ho.monthsParse=ct,ho.monthsRegex=pt,ho.monthsShortRegex=ht,ho.week=Mt,ho.firstDayOfYear=Tt,ho.firstDayOfWeek=Ot,ho.weekdays=Wt,ho.weekdaysMin=Ut,ho.weekdaysShort=Vt,ho.weekdaysParse=$t,ho.weekdaysRegex=Bt,ho.weekdaysShortRegex=Zt,ho.weekdaysMinRegex=Jt,ho.isPM=nn,ho.meridiem=an,vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=D("moment.lang is deprecated. Use moment.locale instead.",vn),i.langData=D("moment.langData is deprecated. Use moment.localeData instead.",bn);var xo=Math.abs;function ko(){var e=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),e.milliseconds=xo(e.milliseconds),e.seconds=xo(e.seconds),e.minutes=xo(e.minutes),e.hours=xo(e.hours),e.months=xo(e.months),e.years=xo(e.years),this}function So(e,t,n,r){var i=Tr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Mo(e,t){return So(this,e,t,1)}function Do(e,t){return So(this,e,t,-1)}function Oo(e){return e<0?Math.floor(e):Math.ceil(e)}function To(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Oo(Co(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=le(o/1e3),u.seconds=e%60,t=le(e/60),u.minutes=t%60,n=le(t/60),u.hours=n%24,a+=le(n/24),s+=i=le(Po(a)),a-=Oo(Co(i)),r=le(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function Po(e){return 4800*e/146097}function Co(e){return 146097*e/4800}function Eo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Po(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Co(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function jo(e){return function(){return this.as(e)}}var Io=jo("ms"),No=jo("s"),Ro=jo("m"),Yo=jo("h"),Lo=jo("d"),Fo=jo("w"),Wo=jo("M"),Vo=jo("Q"),Uo=jo("y");function Go(){return Tr(this)}function $o(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Ho(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Ho("milliseconds"),qo=Ho("seconds"),Bo=Ho("minutes"),Zo=Ho("hours"),Jo=Ho("days"),Xo=Ho("months"),Ko=Ho("years");function Qo(){return le(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var i=Tr(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),u=ea(i.as("d")),c=ea(i.as("M")),l=ea(i.as("w")),d=ea(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||l<=1&&["w"]||l<n.w&&["ww",l]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,na.apply(null,f)}function ia(e){return void 0===e?ea:"function"==typeof e&&(ea=e,!0)}function oa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ta;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ra(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=sa(this._milliseconds)/1e3,c=sa(this._days),l=sa(this._months),d=this.asSeconds();return d?(e=le(u/60),t=le(e/60),u%=60,e%=60,n=le(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ua(this._months)!==ua(d)?"-":"",a=ua(this._days)!==ua(d)?"-":"",s=ua(this._milliseconds)!==ua(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var la=ar.prototype;return la.isValid=ir,la.abs=ko,la.add=Mo,la.subtract=Do,la.as=Eo,la.asMilliseconds=Io,la.asSeconds=No,la.asMinutes=Ro,la.asHours=Yo,la.asDays=Lo,la.asWeeks=Fo,la.asMonths=Wo,la.asQuarters=Vo,la.asYears=Uo,la.valueOf=Ao,la._bubble=To,la.clone=Go,la.get=$o,la.milliseconds=zo,la.seconds=qo,la.minutes=Bo,la.hours=Zo,la.days=Jo,la.weeks=Qo,la.months=Xo,la.years=Ko,la.humanize=aa,la.toISOString=ca,la.toString=ca,la.toJSON=ca,la.locale=ai,la.localeData=ui,la.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),la.lang=si,V("X",0,0,"unix"),V("x",0,0,"valueOf"),Ne("x",Ce),Ne("X",je),We("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),We("x",(function(e,t,n){n._d=new Date(de(e))})),
|
|
11
|
+
e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(381))},5323:(e,t,n)=>{var r={"./de":9740,"./de.js":9740,"./es":5655,"./es.js":5655,"./fr":4470,"./fr.js":4470,"./it":626,"./it.js":626,"./pt":9520,"./pt.js":9520};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=5323},381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function l(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function v(e,t,n,r){return Bn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function b(e){if(null==e._isValid){var t=g(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=v(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var w=i.momentProperties=[],_=!1;function x(e,t){var n,r,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),w.length>0)for(n=0;n<w.length;n++)l(i=t[r=w[n]])||(e[r]=i);return e}function k(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,i.updateOffset(this),_=!1)}function S(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function M(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return p(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,a,s=[];for(o=0;o<arguments.length;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])u(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}M(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var O,T={};function P(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),T[e]||(M(t),T[e]=!0)}function C(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)u(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=p({},e);for(n in t)u(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&s(e[n])&&(r[n]=p({},r[n]));return r}function j(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var I={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r}function R(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var Y=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},W={};function V(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(W[e]=i),t&&(W[t[0]]=function(){return R(i.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var t,n,r=e.match(Y);for(t=0,n=r.length;t<n;t++)W[r[t]]?r[t]=W[r[t]]:r[t]=U(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=C(r[i])?r[i].call(t,e):r[i];return o}}function $(e,t){return e.isValid()?(t=H(t,e.localeData()),F[t]=F[t]||G(t),F[t](e)):e.localeData().invalidDate()}function H(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var z={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(Y).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var B="Invalid date";function Z(){return this._invalidDate}var J="%d",X=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var i=this._relativeTime[n];return C(i)?i(e,t,n,r):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)}var ne={};function re(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function ie(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function oe(e){var t,n,r={};for(n in e)u(e,n)&&(t=ie(n))&&(r[t]=e[n]);return r}var ae={};function se(e,t){ae[e]=t}function ue(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function de(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}function fe(e,t){return function(n){return null!=n?(pe(this,e,n),i.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(n=de(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function ve(e){return C(this[e=ie(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var n,r=ue(e=oe(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(C(this[e=ie(e)]))return this[e](t);return this}var ge,be=/\d/,ye=/\d\d/,we=/\d{3}/,_e=/\d{4}/,xe=/[+-]?\d{6}/,ke=/\d\d?/,Se=/\d\d\d\d?/,Me=/\d\d\d\d\d\d?/,De=/\d{1,3}/,Oe=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Pe=/\d+/,Ce=/[+-]?\d+/,Ee=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,je=/[+-]?\d+(\.\d{1,3})?/,Ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ne(e,t,n){ge[e]=C(t)?t:function(e,r){return e&&n?n:t}}function Re(e,t){return u(ge,e)?ge[e](t._strict,t._locale):new RegExp(Ye(e))}function Ye(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Fe={};function We(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),d(t)&&(r=function(e,n){n[t]=de(e)}),n=0;n<e.length;n++)Fe[e[n]]=r}function Ve(e,t){We(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function Ue(e,t,n){null!=t&&u(Fe,e)&&Fe[e](t,n._a,n,e)}var Ge,$e=0,He=1,ze=2,qe=3,Be=4,Ze=5,Je=6,Xe=7,Ke=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?ce(e)?29:28:31-n%7%2}Ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},V("M",["MM",2],"Mo",function(){return this.month()+1}),V("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),V("MMMM",0,0,function(e){return this.localeData().months(this,e)}),re("month","M"),se("month",8),Ne("M",ke),Ne("MM",ke,ye),Ne("MMM",function(e,t){return t.monthsShortRegex(e)}),Ne("MMMM",function(e,t){return t.monthsRegex(e)}),We(["M","MM"],function(e,t){t[He]=de(e)-1}),We(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[He]=i:g(n).invalidMonth=e});var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ie,ot=Ie;function at(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||rt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function st(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[rt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=v([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ge.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ge.call(this._shortMonthsParse,a))||-1!==(i=Ge.call(this._longMonthsParse,a))?i:null:-1!==(i=Ge.call(this._longMonthsParse,a))||-1!==(i=Ge.call(this._shortMonthsParse,a))?i:null}function ct(e,t,n){var r,i,o;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=v([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function lt(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=de(t);else if(!d(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function dt(e){return null!=e?(lt(this,e),i.updateOffset(this,!0),this):he(this,"Month")}function ft(){return et(this.year(),this.month())}function ht(e){return this._monthsParseExact?(u(this,"_monthsRegex")||vt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||vt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ot),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function vt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=v([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Le(r[t]),i[t]=Le(i[t]);for(t=0;t<24;t++)o[t]=Le(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return ce(e)?366:365}V("Y",0,0,function(){var e=this.year();return e<=9999?R(e,4):"+"+e}),V(0,["YY",2],0,function(){return this.year()%100}),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),re("year","y"),se("year",1),Ne("Y",Ce),Ne("YY",ke,ye),Ne("YYYY",Oe,_e),Ne("YYYYY",Te,xe),Ne("YYYYYY",Te,xe),We(["YYYYY","YYYYYY"],$e),We("YYYY",function(e,t){t[$e]=2===e.length?i.parseTwoDigitYear(e):de(e)}),We("YY",function(e,t){t[$e]=i.parseTwoDigitYear(e)}),We("Y",function(e,t){t[$e]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return de(e)+(de(e)>68?1900:2e3)};var gt=fe("FullYear",!0);function bt(){return ce(this.year())}function yt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function wt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _t(e,t,n){var r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return s<=0?a=mt(o=e-1)+s:s>mt(e)?(o=e+1,a=s-mt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function kt(e,t,n){var r,i,o=_t(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+St(i=e.year()-1,t,n):a>St(e.year(),t,n)?(r=a-St(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function St(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(mt(e)-r+i)/7}function Mt(e){return kt(e,this._week.dow,this._week.doy).week}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),re("week","w"),re("isoWeek","W"),se("week",5),se("isoWeek",5),Ne("w",ke),Ne("ww",ke,ye),Ne("W",ke),Ne("WW",ke,ye),Ve(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=de(e)});var Dt={dow:0,doy:6};function Ot(){return this._week.dow}function Tt(){return this._week.doy}function Pt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ct(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Et(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}V("d",0,"do","day"),V("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),V("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),V("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),re("day","d"),re("weekday","e"),re("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Ne("d",ke),Ne("e",ke),Ne("E",ke),Ne("dd",function(e,t){return t.weekdaysMinRegex(e)}),Ne("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Ne("dddd",function(e,t){return t.weekdaysRegex(e)}),Ve(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e}),Ve(["d","e","E"],function(e,t,n,r){t[r]=de(e)});var It="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Nt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yt=Ie,Lt=Ie,Ft=Ie;function Wt(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?jt(n,this._week.dow):e?n[e.day()]:n}function Vt(e){return!0===e?jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ut(e){return!0===e?jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Gt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=v([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ge.call(this._weekdaysParse,a))||-1!==(i=Ge.call(this._shortWeekdaysParse,a))||-1!==(i=Ge.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ge.call(this._shortWeekdaysParse,a))||-1!==(i=Ge.call(this._weekdaysParse,a))||-1!==(i=Ge.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ge.call(this._minWeekdaysParse,a))||-1!==(i=Ge.call(this._weekdaysParse,a))||-1!==(i=Ge.call(this._shortWeekdaysParse,a))?i:null}function $t(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Gt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=v([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ht(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Et(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Bt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Yt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],u=[],c=[];for(t=0;t<7;t++)n=v([2e3,1]).day(t),r=Le(this.weekdaysMin(n,"")),i=Le(this.weekdaysShort(n,"")),o=Le(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Kt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){V(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,Kt),V("k",["kk",2],0,Qt),V("hmm",0,0,function(){return""+Kt.apply(this)+R(this.minutes(),2)}),V("hmmss",0,0,function(){return""+Kt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}),V("Hmm",0,0,function(){return""+this.hours()+R(this.minutes(),2)}),V("Hmmss",0,0,function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}),en("a",!0),en("A",!1),re("hour","h"),se("hour",13),Ne("a",tn),Ne("A",tn),Ne("H",ke),Ne("h",ke),Ne("k",ke),Ne("HH",ke,ye),Ne("hh",ke,ye),Ne("kk",ke,ye),Ne("hmm",Se),Ne("hmmss",Me),Ne("Hmm",Se),Ne("Hmmss",Me),We(["H","HH"],qe),We(["k","kk"],function(e,t,n){var r=de(e);t[qe]=24===r?0:r}),We(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),We(["h","hh"],function(e,t,n){t[qe]=de(e),g(n).bigHour=!0}),We("hmm",function(e,t,n){var r=e.length-2;t[qe]=de(e.substr(0,r)),t[Be]=de(e.substr(r)),g(n).bigHour=!0}),We("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=de(e.substr(0,r)),t[Be]=de(e.substr(r,2)),t[Ze]=de(e.substr(i)),g(n).bigHour=!0}),We("Hmm",function(e,t,n){var r=e.length-2;t[qe]=de(e.substr(0,r)),t[Be]=de(e.substr(r))}),We("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[qe]=de(e.substr(0,r)),t[Be]=de(e.substr(r,2)),t[Ze]=de(e.substr(i))});var rn=/[ap]\.?m?\.?/i,on=fe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,un={calendar:I,longDateFormat:z,invalidDate:B,ordinal:J,dayOfMonthOrdinalParse:X,relativeTime:Q,months:tt,monthsShort:nt,week:Dt,weekdays:It,weekdaysMin:Rt,weekdaysShort:Nt,meridiemParse:rn},cn={},ln={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=fn(e[o]).split("-")).length,n=(n=fn(e[o+1]))?n.split("-"):null;t>0;){if(r=pn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(i,n)>=t-1)break;t--}o++}return sn}function pn(t){var r=null;if(void 0===cn[t]&&e&&e.exports)try{r=sn._abbr,n(5323)("./"+t),vn(r)}catch(e){cn[t]=null}return cn[t]}function vn(e,t){var n;return e&&((n=l(t)?bn(e):mn(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function mn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=cn[e])P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=pn(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new j(A(r,t)),ln[e]&&ln[e].forEach(function(e){mn(e.name,e.config)}),vn(e),cn[e]}return delete cn[e],null}function gn(e,t){if(null!=t){var n,r,i=un;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(A(cn[e]._config,t)):(null!=(r=pn(e))&&(i=r._config),t=A(i,t),null==r&&(t.abbr=e),(n=new j(t)).parentLocale=cn[e],cn[e]=n),vn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===vn()&&vn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!a(e)){if(t=pn(e))return t;e=[e]}return hn(e)}function yn(){return O(cn)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[He]<0||n[He]>11?He:n[ze]<1||n[ze]>et(n[$e],n[He])?ze:n[qe]<0||n[qe]>24||24===n[qe]&&(0!==n[Be]||0!==n[Ze]||0!==n[Je])?qe:n[Be]<0||n[Be]>59?Be:n[Ze]<0||n[Ze]>59?Ze:n[Je]<0||n[Je]>999?Je:-1,g(e)._overflowDayOfYear&&(t<$e||t>ze)&&(t=ze),g(e)._overflowWeeks&&-1===t&&(t=Xe),g(e)._overflowWeekday&&-1===t&&(t=Ke),g(e).overflow=t),e}var _n=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Mn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((-?\d+)/i,On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(e){var t,n,r,i,o,a,s=e._i,u=_n.exec(s)||xn.exec(s);if(u){for(g(e).iso=!0,t=0,n=Sn.length;t<n;t++)if(Sn[t][1].exec(u[1])){i=Sn[t][0],r=!1!==Sn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=Mn.length;t<n;t++)if(Mn[t][1].exec(u[3])){o=(u[2]||" ")+Mn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!kn.exec(u[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Vn(e)}else e._isValid=!1}function Cn(e,t,n,r,i,o){var a=[En(e),nt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function En(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function An(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jn(e,t,n){return!e||Nt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function In(e,t,n){if(e)return Tn[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Nn(e){var t,n=On.exec(An(e._i));if(n){if(t=Cn(n[4],n[3],n[2],n[5],n[6],n[7]),!jn(n[1],t,e))return;e._a=t,e._tzm=In(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var t=Dn.exec(e._i);null===t?(Pn(e),!1===e._isValid&&(delete e._isValid,Nn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Yn(e,t,n){return null!=e?e:null!=t?t:n}function Ln(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=Ln(e),e._w&&null==e._a[ze]&&null==e._a[He]&&Wn(e),null!=e._dayOfYear&&(o=Yn(e._a[$e],r[$e]),(e._dayOfYear>mt(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=wt(o,0,e._dayOfYear),e._a[He]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qe]&&0===e._a[Be]&&0===e._a[Ze]&&0===e._a[Je]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?wt:yt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Wn(e){var t,n,r,i,o,a,s,u,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Yn(t.GG,e._a[$e],kt(Zn(),1,4).year),r=Yn(t.W,1),((i=Yn(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=kt(Zn(),o,a),n=Yn(t.gg,e._a[$e],c.year),r=Yn(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>St(n,o,a)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(s=xt(n,r,i,o,a),e._a[$e]=s.year,e._dayOfYear=s.dayOfYear)}function Vn(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],g(e).empty=!0;var t,n,r,o,a,s,u=""+e._i,c=u.length,l=0;for(r=H(e._f,e._locale).match(Y)||[],t=0;t<r.length;t++)o=r[t],(n=(u.match(Re(o,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),l+=n.length),W[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),Ue(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);g(e).charsLeftOver=c-l,u.length>0&&g(e).unusedInput.push(u),e._a[qe]<=12&&!0===g(e).bigHour&&e._a[qe]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[qe]=Un(e._locale,e._a[qe],e._meridiem),null!==(s=g(e).era)&&(e._a[$e]=e._locale.erasConvertYear(s,e._a[$e])),Fn(e),wn(e)}else Nn(e);else Pn(e)}function Un(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Gn(e){var t,n,r,i,o,a,s=!1;if(0===e._f.length)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,a=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Vn(t),b(t)&&(a=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));p(e,n||t)}function $n(e){if(!e._d){var t=oe(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Fn(e)}}function Hn(e){var t=new k(wn(zn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function zn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new k(wn(t)):(f(t)?e._d=t:a(n)?Gn(e):n?Vn(e):qn(e),b(e)||(e._d=null),e))}function qn(e){var t=e._i;l(t)?e._d=new Date(i.now()):f(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Rn(e):a(t)?(e._a=h(t.slice(0),function(e){return parseInt(e,10)}),Fn(e)):s(t)?$n(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}function Bn(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&c(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Hn(o)}function Zn(e,t,n,r){return Bn(e,t,n,r,!1)}i.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Jn=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()}),Xn=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()});function Kn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Zn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Qn(){return Kn("isBefore",[].slice.call(arguments,0))}function er(){return Kn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1;for(t in e)if(u(e,t)&&(-1===Ge.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<nr.length;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==de(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return Tr(NaN)}function ar(e){var t=oe(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+l+1e3*c+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function sr(e){return e instanceof ar}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function cr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&de(e[r])!==de(t[r]))&&a++;return a+o}function lr(e,t){V(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+R(~~(e/60),2)+t+R(~~e%60,2)})}lr("Z",":"),lr("ZZ",""),Ne("Z",Ae),Ne("ZZ",Ae),We(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=fr(Ae,e)});var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+de(n[2]))?0:"+"===n[0]?r:-r}function hr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(S(e)||f(e)?e.valueOf():Zn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Zn(e).local()}function pr(e){return-Math.round(e._d.getTimezoneOffset())}function vr(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=pr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?jr(this,Tr(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:pr(this)}function mr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(pr(this),"m")),this}function yr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(Ee,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Zn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function _r(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function xr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=zn(t))._a?(e=t._isUTC?v(t._a):Zn(t._a),this._isDSTShifted=this.isValid()&&cr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Dr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Tr(e,t){var n,r,i,o=e,a=null;return sr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Dr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:de(a[ze])*n,h:de(a[qe])*n,m:de(a[Be])*n,s:de(a[Ze])*n,ms:de(ur(1e3*a[Je]))*n}):(a=Or.exec(e))?(n="-"===a[1]?-1:1,o={y:Pr(a[2],n),M:Pr(a[3],n),w:Pr(a[4],n),d:Pr(a[5],n),h:Pr(a[6],n),m:Pr(a[7],n),s:Pr(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Er(Zn(o.from),Zn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),sr(e)&&u(e,"_locale")&&(r._locale=e._locale),sr(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function Pr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Er(e,t){var n;return e.isValid()&&t.isValid()?(t=hr(t,e),e.isBefore(t)?n=Cr(e,t):((n=Cr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ar(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(P(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),jr(this,Tr(n,r),e),this}}function jr(e,t,n,r){var o=t._milliseconds,a=ur(t._days),s=ur(t._months);e.isValid()&&(r=null==r||r,s&<(e,he(e,"Month")+s*n),a&&pe(e,"Date",he(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Tr.fn=ar.prototype,Tr.invalid=or;var Ir=Ar(1,"add"),Nr=Ar(-1,"subtract");function Rr(e){return"string"==typeof e||e instanceof String}function Yr(e){return S(e)||f(e)||Rr(e)||d(e)||Fr(e)||Lr(e)||null==e}function Lr(e){var t,n,r=s(e)&&!c(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<o.length;t+=1)n=o[t],i=i||u(e,n);return r&&i}function Fr(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!d(t)&&Rr(e)}).length),t&&n}function Wr(e){var t,n,r=s(e)&&!c(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||u(e,n);return r&&i}function Vr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ur(e,t){1===arguments.length&&(arguments[0]?Yr(arguments[0])?(e=arguments[0],t=void 0):Wr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Zn(),r=hr(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(C(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Zn(n)))}function Gr(){return new k(this)}function $r(e,t){var n=S(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Hr(e,t){var n=S(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function zr(e,t,n,r){var i=S(e)?e:Zn(e),o=S(t)?t:Zn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function qr(e,t){var n,r=S(e)?e:Zn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Br(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Zr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Jr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=hr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=ie(t)){case"year":o=Xr(this,r)/12;break;case"month":o=Xr(this,r);break;case"quarter":o=Xr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:le(o)}function Xr(e,t){if(e.date()<t.date())return-Xr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Kr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(S(e)&&e.isValid()||Zn(e).isValid())?Tr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from(Zn(),e)}function ii(e,t){return this.isValid()&&(S(e)&&e.isValid()||Zn(e).isValid())?Tr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to(Zn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function ui(){return this._locale}var ci=1e3,li=60*ci,di=60*li,fi=3506328*di;function hi(e,t){return(e%t+t)%t}function pi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function vi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function mi(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vi:pi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hi(t+(this._isUTC?0:this.utcOffset()*li),di);break;case"minute":t=this._d.valueOf(),t-=hi(t,li);break;case"second":t=this._d.valueOf(),t-=hi(t,ci)}return this._d.setTime(t),i.updateOffset(this,!0),this}function gi(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?vi:pi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-hi(t+(this._isUTC?0:this.utcOffset()*li),di)-1;break;case"minute":t=this._d.valueOf(),t+=li-hi(t,li)-1;break;case"second":t=this._d.valueOf(),t+=ci-hi(t,ci)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function yi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function _i(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function xi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ki(){return this.isValid()?this.toISOString():null}function Si(){return b(this)}function Mi(){return p({},g(this))}function Di(){return g(this).overflow}function Oi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ti(e,t){var n,r,o,a=this._eras||bn("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Pi(e,t,n){var r,i,o,a,s,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(s===e)return u[r]}else if([o,a,s].indexOf(e)>=0)return u[r]}function Ci(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function Ei(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function ji(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ii(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()}function Ni(e){return u(this,"_erasNameRegex")||Ui.call(this),e?this._erasNameRegex:this._erasRegex}function Ri(e){return u(this,"_erasAbbrRegex")||Ui.call(this),e?this._erasAbbrRegex:this._erasRegex}function Yi(e){return u(this,"_erasNarrowRegex")||Ui.call(this),e?this._erasNarrowRegex:this._erasRegex}function Li(e,t){return t.erasAbbrRegex(e)}function Fi(e,t){return t.erasNameRegex(e)}function Wi(e,t){return t.erasNarrowRegex(e)}function Vi(e,t){return t._eraYearOrdinalRegex||Pe}function Ui(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Le(a[e].name)),n.push(Le(a[e].abbr)),i.push(Le(a[e].narrow)),o.push(Le(a[e].name)),o.push(Le(a[e].abbr)),o.push(Le(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Gi(e,t){V(0,[e,e.length],0,t)}function $i(e){return Ji.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Hi(e){return Ji.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zi(){return St(this.year(),1,4)}function qi(){return St(this.isoWeekYear(),1,4)}function Bi(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Zi(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Ji(e,t,n,r,i){var o;return null==e?kt(this,r,i).year:(t>(o=St(e,r,i))&&(t=o),Xi.call(this,e,t,n,r,i))}function Xi(e,t,n,r,i){var o=xt(e,t,n,r,i),a=wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Ki(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}V("N",0,0,"eraAbbr"),V("NN",0,0,"eraAbbr"),V("NNN",0,0,"eraAbbr"),V("NNNN",0,0,"eraName"),V("NNNNN",0,0,"eraNarrow"),V("y",["y",1],"yo","eraYear"),V("y",["yy",2],0,"eraYear"),V("y",["yyy",3],0,"eraYear"),V("y",["yyyy",4],0,"eraYear"),Ne("N",Li),Ne("NN",Li),Ne("NNN",Li),Ne("NNNN",Fi),Ne("NNNNN",Wi),We(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e}),Ne("y",Pe),Ne("yy",Pe),Ne("yyy",Pe),Ne("yyyy",Pe),Ne("yo",Vi),We(["y","yy","yyy","yyyy"],$e),We(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[$e]=n._locale.eraYearOrdinalParse(e,i):t[$e]=parseInt(e,10)}),V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Gi("gggg","weekYear"),Gi("ggggg","weekYear"),Gi("GGGG","isoWeekYear"),Gi("GGGGG","isoWeekYear"),re("weekYear","gg"),re("isoWeekYear","GG"),se("weekYear",1),se("isoWeekYear",1),Ne("G",Ce),Ne("g",Ce),Ne("GG",ke,ye),Ne("gg",ke,ye),Ne("GGGG",Oe,_e),Ne("gggg",Oe,_e),Ne("GGGGG",Te,xe),Ne("ggggg",Te,xe),Ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=de(e)}),Ve(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),V("Q",0,"Qo","quarter"),re("quarter","Q"),se("quarter",7),Ne("Q",be),We("Q",function(e,t){t[He]=3*(de(e)-1)}),V("D",["DD",2],"Do","date"),re("date","D"),se("date",9),Ne("D",ke),Ne("DD",ke,ye),Ne("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),We(["D","DD"],ze),We("Do",function(e,t){t[ze]=de(e.match(ke)[0])});var Qi=fe("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}V("DDD",["DDDD",3],"DDDo","dayOfYear"),re("dayOfYear","DDD"),se("dayOfYear",4),Ne("DDD",De),Ne("DDDD",we),We(["DDD","DDDD"],function(e,t,n){n._dayOfYear=de(e)}),V("m",["mm",2],0,"minute"),re("minute","m"),se("minute",14),Ne("m",ke),Ne("mm",ke,ye),We(["m","mm"],Be);var to=fe("Minutes",!1);V("s",["ss",2],0,"second"),re("second","s"),se("second",15),Ne("s",ke),Ne("ss",ke,ye),We(["s","ss"],Ze);var no,ro,io=fe("Seconds",!1);for(V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),re("millisecond","ms"),se("millisecond",16),Ne("S",De,be),Ne("SS",De,ye),Ne("SSS",De,we),no="SSSS";no.length<=9;no+="S")Ne(no,Pe);function oo(e,t){t[Je]=de(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")We(no,oo);function ao(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ro=fe("Milliseconds",!1),V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var uo=k.prototype;function co(e){return Zn(1e3*e)}function lo(){return Zn.apply(null,arguments).parseZone()}function fo(e){return e}uo.add=Ir,uo.calendar=Ur,uo.clone=Gr,uo.diff=Jr,uo.endOf=gi,uo.format=ti,uo.from=ni,uo.fromNow=ri,uo.to=ii,uo.toNow=oi,uo.get=ve,uo.invalidAt=Di,uo.isAfter=$r,uo.isBefore=Hr,uo.isBetween=zr,uo.isSame=qr,uo.isSameOrAfter=Br,uo.isSameOrBefore=Zr,uo.isValid=Si,uo.lang=si,uo.locale=ai,uo.localeData=ui,uo.max=Xn,uo.min=Jn,uo.parsingFlags=Mi,uo.set=me,uo.startOf=mi,uo.subtract=Nr,uo.toArray=_i,uo.toObject=xi,uo.toDate=wi,uo.toISOString=Qr,uo.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(uo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),uo.toJSON=ki,uo.toString=Kr,uo.unix=yi,uo.valueOf=bi,uo.creationData=Oi,uo.eraName=Ei,uo.eraNarrow=Ai,uo.eraAbbr=ji,uo.eraYear=Ii,uo.year=gt,uo.isLeapYear=bt,uo.weekYear=$i,uo.isoWeekYear=Hi,uo.quarter=uo.quarters=Ki,uo.month=dt,uo.daysInMonth=ft,uo.week=uo.weeks=Pt,uo.isoWeek=uo.isoWeeks=Ct,uo.weeksInYear=Bi,uo.weeksInWeekYear=Zi,uo.isoWeeksInYear=zi,uo.isoWeeksInISOWeekYear=qi,uo.date=Qi,uo.day=uo.days=Ht,uo.weekday=zt,uo.isoWeekday=qt,uo.dayOfYear=eo,uo.hour=uo.hours=on,uo.minute=uo.minutes=to,uo.second=uo.seconds=io,uo.millisecond=uo.milliseconds=ro,uo.utcOffset=vr,uo.utc=gr,uo.local=br,uo.parseZone=yr,uo.hasAlignedHourOffset=wr,uo.isDST=_r,uo.isLocal=kr,uo.isUtcOffset=Sr,uo.isUtc=Mr,uo.isUTC=Mr,uo.zoneAbbr=ao,uo.zoneName=so,uo.dates=D("dates accessor is deprecated. Use date instead.",Qi),uo.months=D("months accessor is deprecated. Use month instead",dt),uo.years=D("years accessor is deprecated. Use year instead",gt),uo.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),uo.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",xr);var ho=j.prototype;function po(e,t,n,r){var i=bn(),o=v().set(r,t);return i[n](o,e)}function vo(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return po(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=po(e,r,n,"month");return i}function mo(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,o=bn(),a=e?o._week.dow:0,s=[];if(null!=n)return po(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=po(t,(i+a)%7,r,"day");return s}function go(e,t){return vo(e,t,"months")}function bo(e,t){return vo(e,t,"monthsShort")}function yo(e,t,n){return mo(e,t,n,"weekdays")}function wo(e,t,n){return mo(e,t,n,"weekdaysShort")}function _o(e,t,n){return mo(e,t,n,"weekdaysMin")}ho.calendar=N,ho.longDateFormat=q,ho.invalidDate=Z,ho.ordinal=K,ho.preparse=fo,ho.postformat=fo,ho.relativeTime=ee,ho.pastFuture=te,ho.set=E,ho.eras=Ti,ho.erasParse=Pi,ho.erasConvertYear=Ci,ho.erasAbbrRegex=Ri,ho.erasNameRegex=Ni,ho.erasNarrowRegex=Yi,ho.months=at,ho.monthsShort=st,ho.monthsParse=ct,ho.monthsRegex=pt,ho.monthsShortRegex=ht,ho.week=Mt,ho.firstDayOfYear=Tt,ho.firstDayOfWeek=Ot,ho.weekdays=Wt,ho.weekdaysMin=Ut,ho.weekdaysShort=Vt,ho.weekdaysParse=$t,ho.weekdaysRegex=Bt,ho.weekdaysShortRegex=Zt,ho.weekdaysMinRegex=Jt,ho.isPM=nn,ho.meridiem=an,vn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===de(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=D("moment.lang is deprecated. Use moment.locale instead.",vn),i.langData=D("moment.langData is deprecated. Use moment.localeData instead.",bn);var xo=Math.abs;function ko(){var e=this._data;return this._milliseconds=xo(this._milliseconds),this._days=xo(this._days),this._months=xo(this._months),e.milliseconds=xo(e.milliseconds),e.seconds=xo(e.seconds),e.minutes=xo(e.minutes),e.hours=xo(e.hours),e.months=xo(e.months),e.years=xo(e.years),this}function So(e,t,n,r){var i=Tr(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Mo(e,t){return So(this,e,t,1)}function Do(e,t){return So(this,e,t,-1)}function Oo(e){return e<0?Math.floor(e):Math.ceil(e)}function To(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Oo(Co(s)+a),a=0,s=0),u.milliseconds=o%1e3,e=le(o/1e3),u.seconds=e%60,t=le(e/60),u.minutes=t%60,n=le(t/60),u.hours=n%24,a+=le(n/24),s+=i=le(Po(a)),a-=Oo(Co(i)),r=le(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function Po(e){return 4800*e/146097}function Co(e){return 146097*e/4800}function Eo(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Po(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Co(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Ao(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*de(this._months/12):NaN}function jo(e){return function(){return this.as(e)}}var Io=jo("ms"),No=jo("s"),Ro=jo("m"),Yo=jo("h"),Lo=jo("d"),Fo=jo("w"),Wo=jo("M"),Vo=jo("Q"),Uo=jo("y");function Go(){return Tr(this)}function $o(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Ho(e){return function(){return this.isValid()?this._data[e]:NaN}}var zo=Ho("milliseconds"),qo=Ho("seconds"),Bo=Ho("minutes"),Zo=Ho("hours"),Jo=Ho("days"),Xo=Ho("months"),Ko=Ho("years");function Qo(){return le(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var i=Tr(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),u=ea(i.as("d")),c=ea(i.as("M")),l=ea(i.as("w")),d=ea(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||l<=1&&["w"]||l<n.w&&["ww",l]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,na.apply(null,f)}function ia(e){return void 0===e?ea:"function"==typeof e&&(ea=e,!0)}function oa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ta;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ra(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function ua(e){return(e>0)-(e<0)||+e}function ca(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,u=sa(this._milliseconds)/1e3,c=sa(this._days),l=sa(this._months),d=this.asSeconds();return d?(e=le(u/60),t=le(e/60),u%=60,e%=60,n=le(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ua(this._months)!==ua(d)?"-":"",a=ua(this._days)!==ua(d)?"-":"",s=ua(this._milliseconds)!==ua(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(l?o+l+"M":"")+(c?a+c+"D":"")+(t||e||u?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(u?s+r+"S":"")):"P0D"}var la=ar.prototype;return la.isValid=ir,la.abs=ko,la.add=Mo,la.subtract=Do,la.as=Eo,la.asMilliseconds=Io,la.asSeconds=No,la.asMinutes=Ro,la.asHours=Yo,la.asDays=Lo,la.asWeeks=Fo,la.asMonths=Wo,la.asQuarters=Vo,la.asYears=Uo,la.valueOf=Ao,la._bubble=To,la.clone=Go,la.get=$o,la.milliseconds=zo,la.seconds=qo,la.minutes=Bo,la.hours=Zo,la.days=Jo,la.weeks=Qo,la.months=Xo,la.years=Ko,la.humanize=aa,la.toISOString=ca,la.toString=ca,la.toJSON=ca,la.locale=ai,la.localeData=ui,la.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ca),la.lang=si,V("X",0,0,"unix"),V("x",0,0,"valueOf"),Ne("x",Ce),Ne("X",je),We("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),We("x",function(e,t,n){n._d=new Date(de(e))}),
|
|
12
12
|
//! moment.js
|
|
13
13
|
i.version="2.29.1",o(Zn),i.fn=uo,i.min=Qn,i.max=er,i.now=tr,i.utc=v,i.unix=co,i.months=go,i.isDate=f,i.locale=vn,i.invalid=y,i.duration=Tr,i.isMoment=S,i.weekdays=yo,i.parseZone=lo,i.localeData=bn,i.isDuration=sr,i.monthsShort=bo,i.weekdaysMin=_o,i.defineLocale=mn,i.updateLocale=gn,i.locales=yn,i.weekdaysShort=wo,i.normalizeUnits=ie,i.relativeTimeRounding=ia,i.relativeTimeThreshold=oa,i.calendarFormat=Vr,i.prototype=uo,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},7754:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:()=>ft,AsyncSubject:()=>ie,BehaviorSubject:()=>te,ConnectableObservable:()=>H,EMPTY:()=>Ee,EmptyError:()=>ct,NEVER:()=>nn,NotFoundError:()=>ht,Notification:()=>at,NotificationKind:()=>Re,ObjectUnsubscribedError:()=>K,Observable:()=>F,ReplaySubject:()=>re,Scheduler:()=>ve,SequenceError:()=>pt,Subject:()=>Q,Subscriber:()=>P,Subscription:()=>g,TimeoutError:()=>mt,UnsubscriptionError:()=>v,VirtualAction:()=>Ce,VirtualTimeScheduler:()=>Pe,animationFrame:()=>Te,animationFrameScheduler:()=>Oe,animationFrames:()=>B,asap:()=>ye,asapScheduler:()=>be,async:()=>_e,asyncScheduler:()=>we,audit:()=>gn,auditTime:()=>bn,bindCallback:()=>Mt,bindNodeCallback:()=>Dt,buffer:()=>yn,bufferCount:()=>wn,bufferTime:()=>_n,bufferToggle:()=>xn,bufferWhen:()=>kn,catchError:()=>Sn,combineAll:()=>En,combineLatest:()=>jt,combineLatestAll:()=>Cn,combineLatestWith:()=>jn,concat:()=>Wt,concatAll:()=>Ft,concatMap:()=>In,concatMapTo:()=>Nn,concatWith:()=>Yn,config:()=>_,connect:()=>Fn,connectable:()=>Gt,count:()=>Wn,debounce:()=>Vn,debounceTime:()=>Un,defaultIfEmpty:()=>Gn,defer:()=>Vt,delay:()=>Bn,delayWhen:()=>qn,dematerialize:()=>Zn,distinct:()=>Jn,distinctUntilChanged:()=>Xn,distinctUntilKeyChanged:()=>Qn,elementAt:()=>nr,empty:()=>Ae,endWith:()=>rr,every:()=>ir,exhaust:()=>ar,exhaustAll:()=>or,exhaustMap:()=>sr,expand:()=>ur,filter:()=>ln,finalize:()=>cr,find:()=>lr,findIndex:()=>fr,first:()=>hr,firstValueFrom:()=>dt,flatMap:()=>_r,forkJoin:()=>$t,from:()=>Be,fromEvent:()=>Bt,fromEventPattern:()=>Jt,generate:()=>Xt,groupBy:()=>pr,identity:()=>R,ignoreElements:()=>Hn,iif:()=>Kt,interval:()=>en,isEmpty:()=>mr,isObservable:()=>ut,last:()=>br,lastValueFrom:()=>lt,map:()=>wt,mapTo:()=>zn,materialize:()=>yr,max:()=>wr,merge:()=>tn,mergeAll:()=>Lt,mergeMap:()=>Yt,mergeMapTo:()=>xr,mergeScan:()=>kr,mergeWith:()=>Mr,min:()=>Dr,multicast:()=>Or,never:()=>rn,noop:()=>S,observable:()=>N,observeOn:()=>kt,of:()=>it,onErrorResumeNext:()=>sn,pairs:()=>un,pairwise:()=>Tr,partition:()=>dn,pipe:()=>Y,pluck:()=>Pr,publish:()=>Cr,publishBehavior:()=>Er,publishLast:()=>Ar,publishReplay:()=>jr,queue:()=>Se,queueScheduler:()=>ke,race:()=>fn,raceWith:()=>Ir,range:()=>pn,reduce:()=>Dn,refCount:()=>$,repeat:()=>Nr,repeatWhen:()=>Rr,retry:()=>Yr,retryWhen:()=>Lr,sample:()=>Fr,sampleTime:()=>Wr,scan:()=>Vr,scheduled:()=>qe,sequenceEqual:()=>Ur,share:()=>Gr,shareReplay:()=>Hr,single:()=>zr,skip:()=>qr,skipLast:()=>Br,skipUntil:()=>Zr,skipWhile:()=>Jr,startWith:()=>Xr,subscribeOn:()=>yt,switchAll:()=>Qr,switchMap:()=>Kr,switchMapTo:()=>ei,switchScan:()=>ti,take:()=>$n,takeLast:()=>gr,takeUntil:()=>ni,takeWhile:()=>ri,tap:()=>ii,throttle:()=>ai,throttleTime:()=>si,throwError:()=>ot,throwIfEmpty:()=>er,timeInterval:()=>ui,timeout:()=>gt,timeoutWith:()=>li,timer:()=>Qt,timestamp:()=>di,toArray:()=>Tn,using:()=>vn,window:()=>fi,windowCount:()=>hi,windowTime:()=>pi,windowToggle:()=>vi,windowWhen:()=>mi,withLatestFrom:()=>gi,zip:()=>mn,zipAll:()=>bi,zipWith:()=>wi});
|
|
14
14
|
/*! *****************************************************************************
|
|
@@ -25,7 +25,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
25
25
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
26
|
PERFORMANCE OF THIS SOFTWARE.
|
|
27
27
|
***************************************************************************** */
|
|
28
|
-
var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function l(e){return this instanceof l?(this.v=e,this):new l(e)}function d(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof l?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function f(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=s(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}Object.create;function h(e){return"function"==typeof e}function p(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var v=p((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function m(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var g=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=s(o),l=a.next();!l.done;l=a.next()){l.value.remove(this)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(h(d))try{d()}catch(e){i=e instanceof v?e.errors:[e]}var f=this._teardowns;if(f){this._teardowns=null;try{for(var p=s(f),m=p.next();!m.done;m=p.next()){var g=m.value;try{w(g)}catch(e){i=null!=i?i:[],e instanceof v?i=c(c([],u(i)),u(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}if(i)throw new v(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)w(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&m(t,e)},e.prototype.remove=function(t){var n=this._teardowns;n&&m(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),b=g.EMPTY;function y(e){return e instanceof g||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function w(e){h(e)?e():e.unsubscribe()}var _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},x={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=x.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,c([],u(e)))},clearTimeout:function(e){var t=x.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function k(e){x.setTimeout((function(){var t=_.onUnhandledError;if(!t)throw e;t(e)}))}function S(){}var M=D("C",void 0,void 0);function D(e,t,n){return{kind:e,value:t,error:n}}var O=null;function T(e){if(_.useDeprecatedSynchronousErrorHandling){var t=!O;if(t&&(O={errorThrown:!1,error:null}),e(),t){var n=O,r=n.errorThrown,i=n.error;if(O=null,r)throw i}}else e()}var P=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,y(t)&&t.add(n)):n.destination=I,n}return i(t,e),t.create=function(e,t,n){return new C(e,t,n)},t.prototype.next=function(e){this.isStopped?j(function(e){return D("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?j(D("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?j(M,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(g),C=function(e){function t(t,n,r){var i,o=e.call(this)||this;if(h(t))i=t;else if(t){var a;i=t.next,n=t.error,r=t.complete,o&&_.useDeprecatedNextContext?(a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()}:a=t,i=null==i?void 0:i.bind(a),n=null==n?void 0:n.bind(a),r=null==r?void 0:r.bind(a)}return o.destination={next:i?E(i,o):S,error:E(null!=n?n:A,o),complete:r?E(r,o):S},o}return i(t,e),t}(P);function E(e,t){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{e.apply(void 0,c([],u(t)))}catch(e){_.useDeprecatedSynchronousErrorHandling?function(e){_.useDeprecatedSynchronousErrorHandling&&O&&(O.errorThrown=!0,O.error=e)}(e):k(e)}}}function A(e){throw e}function j(e,t){var n=_.onStoppedNotification;n&&x.setTimeout((function(){return n(e,t)}))}var I={closed:!0,next:S,error:A,complete:S},N="function"==typeof Symbol&&Symbol.observable||"@@observable";function R(e){return e}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L(e)}function L(e){return 0===e.length?R:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var F=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof P||function(e){return e&&h(e.next)&&h(e.error)&&h(e.complete)}(r)&&y(r)?e:new C(e,t,n);return T((function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=W(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e),null==i||i.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[N]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=W(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function W(e){var t;return null!==(t=null!=e?e:_.Promise)&&void 0!==t?t:Promise}function V(e){return h(null==e?void 0:e.lift)}function U(e){return function(t){if(V(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}var G=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.onFinalize=o,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return i(t,e),t.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(P);function $(){return U((function(e,t){var n=null;e._refCount++;var r=new G(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),t.unsubscribe()}}));e.subscribe(r),r.closed||(n=e.connect())}))}var H=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,V(t)&&(r.lift=t.lift),r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new g;var n=this.getSubject();t.add(this.source.subscribe(new G(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=g.EMPTY)}return t},t.prototype.refCount=function(){return $()(this)},t}(F),z={now:function(){return(z.delegate||performance).now()},delegate:void 0},q={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=q.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var i=t((function(t){n=void 0,e(t)}));return new g((function(){return null==n?void 0:n(i)}))},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=q.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,c([],u(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=q.delegate;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,c([],u(e)))},delegate:void 0};function B(e){return e?Z(e):X}function Z(e){var t=q.schedule;return new F((function(n){var r=new g,i=e||z,o=i.now(),a=function(s){var u=i.now();n.next({timestamp:e?u:s,elapsed:u-o}),n.closed||r.add(t(a))};return r.add(t(a)),r}))}var J,X=Z(),K=p((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Q=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new ee(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new K},t.prototype.next=function(e){var t=this;T((function(){var n,r;if(t._throwIfClosed(),!t.isStopped){var i=t.observers.slice();try{for(var o=s(i),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;T((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;T((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=t.hasError,r=t.isStopped,i=t.observers;return n||r?b:(i.push(e),new g((function(){return m(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new F;return e.source=this,e},t.create=function(e,t){return new ee(e,t)},t}(F),ee=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return i(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:b},t}(Q),te=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Q),ne={now:function(){return(ne.delegate||Date).now()},delegate:void 0},re=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ne);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return i(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var a=n.now(),s=0,u=1;u<r.length&&r[u]<=a;u+=2)s=u;s&&r.splice(0,s+1)}},t}(Q),ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,i=t._value,o=t.thrownError,a=t.isStopped,s=t._isComplete;n?e.error(o):(a||s)&&(r&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(Q),oe=function(e){function t(t,n){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(g),ae={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ae.delegate;return((null==n?void 0:n.setInterval)||setInterval).apply(void 0,c([],u(e)))},clearInterval:function(e){var t=ae.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},se=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),ae.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;ae.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,m(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(oe),ue=1,ce={};function le(e){return e in ce&&(delete ce[e],!0)}var de=function(e){var t=ue++;return ce[t]=!0,J||(J=Promise.resolve()),J.then((function(){return le(t)&&e()})),t},fe=function(e){le(e)},he={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=he.delegate;return((null==n?void 0:n.setImmediate)||de).apply(void 0,c([],u(e)))},clearImmediate:function(e){var t=he.delegate;return((null==t?void 0:t.clearImmediate)||fe)(e)},delegate:void 0},pe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=he.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(he.clearImmediate(n),t._scheduled=void 0)},t}(se),ve=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=ne.now,e}(),me=function(e){function t(t,n){void 0===n&&(n=ve.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(ve),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var i=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this._active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(me),be=new ge(pe),ye=be,we=new me(se),_e=we,xe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(se),ke=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(me))(xe),Se=ke,Me=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=q.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(q.cancelAnimationFrame(n),t._scheduled=void 0)},t}(se),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var i=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this._active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(me),Oe=new De(Me),Te=Oe,Pe=function(e){function t(t,n){void 0===t&&(t=Ce),void 0===n&&(n=1/0);var r=e.call(this,t,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return i(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(me),Ce=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return i(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return g.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(se),Ee=new F((function(e){return e.complete()}));function Ae(e){return e?function(e){return new F((function(t){return e.schedule((function(){return t.complete()}))}))}(e):Ee}function je(e,t){return new F((function(n){var r=0;return t.schedule((function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())}))}))}var Ie=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Ne(e){return h(null==e?void 0:e.then)}var Re,Ye="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Le(e,t,n,r){void 0===r&&(r=0);var i=t.schedule((function(){try{n.call(this)}catch(t){e.error(t)}}),r);return e.add(i),i}function Fe(e,t){return new F((function(n){var r;return n.add(t.schedule((function(){r=e[Ye](),Le(n,t,(function(){var e=r.next(),t=e.value;e.done?n.complete():(n.next(t),this.schedule())}))}))),function(){return h(null==r?void 0:r.return)&&r.return()}}))}function We(e,t){if(!e)throw new Error("Iterable cannot be null");return new F((function(n){var r=new g;return r.add(t.schedule((function(){var i=e[Symbol.asyncIterator]();r.add(t.schedule((function(){var e=this;i.next().then((function(t){t.done?n.complete():(n.next(t.value),e.schedule())}))})))}))),r}))}function Ve(e){return h(e[N])}function Ue(e){return h(null==e?void 0:e[Ye])}function Ge(e){return Symbol.asyncIterator&&h(null==e?void 0:e[Symbol.asyncIterator])}function $e(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function He(e){return d(this,arguments,(function(){var t,n,r;return a(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,l(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,l(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,l(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function ze(e){return h(null==e?void 0:e.getReader)}function qe(e,t){if(null!=e){if(Ve(e))return function(e,t){return new F((function(n){var r=new g;return r.add(t.schedule((function(){var i=e[N]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(Ie(e))return je(e,t);if(Ne(e))return function(e,t){return new F((function(n){return t.schedule((function(){return e.then((function(e){n.add(t.schedule((function(){n.next(e),n.add(t.schedule((function(){return n.complete()})))})))}),(function(e){n.add(t.schedule((function(){return n.error(e)})))}))}))}))}(e,t);if(Ge(e))return We(e,t);if(Ue(e))return Fe(e,t);if(ze(e))return function(e,t){return We(He(e),t)}(e,t)}throw $e(e)}function Be(e,t){return t?qe(e,t):Ze(e)}function Ze(e){if(e instanceof F)return e;if(null!=e){if(Ve(e))return r=e,new F((function(e){var t=r[N]();if(h(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(Ie(e))return Je(e);if(Ne(e))return n=e,new F((function(e){n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,k)}));if(Ge(e))return Xe(e);if(Ue(e))return t=e,new F((function(e){var n,r;try{for(var i=s(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()}));if(ze(e))return Xe(He(e))}var t,n,r;throw $e(e)}function Je(e){return new F((function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()}))}function Xe(e){return new F((function(t){(function(e,t){var n,r,i,s;return o(this,void 0,void 0,(function(){var o,u;return a(this,(function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=f(e),a.label=1;case 1:return[4,n.next()];case 2:if((r=a.sent()).done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=a.sent(),i={error:u},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function Ke(e,t){return t?je(e,t):Je(e)}function Qe(e){return e&&h(e.schedule)}function et(e){return e[e.length-1]}function tt(e){return h(et(e))?e.pop():void 0}function nt(e){return Qe(et(e))?e.pop():void 0}function rt(e,t){return"number"==typeof et(e)?e.pop():t}function it(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return n?je(e,n):Ke(e)}function ot(e,t){var n=h(e)?e:function(){return e},r=function(e){return e.error(n())};return new F(t?function(e){return t.schedule(r,0,e)}:r)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(Re||(Re={}));var at=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return st(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,o=r.value,a=r.error;return"N"===i?null==e?void 0:e(o):"E"===i?null==t?void 0:t(a):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return h(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,i="N"===t?it(n):"E"===t?ot((function(){return r})):"C"===t?Ee:0;if(!i)throw new TypeError("Unexpected notification kind "+t);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function st(e,t){var n,r,i,o=e,a=o.kind,s=o.value,u=o.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(n=t.next)||void 0===n||n.call(t,s):"E"===a?null===(r=t.error)||void 0===r||r.call(t,u):null===(i=t.complete)||void 0===i||i.call(t)}function ut(e){return!!e&&(e instanceof F||h(e.lift)&&h(e.subscribe))}var ct=p((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function lt(e,t){var n="object"==typeof t;return new Promise((function(r,i){var o,a=!1;e.subscribe({next:function(e){o=e,a=!0},error:i,complete:function(){a?r(o):n?r(t.defaultValue):i(new ct)}})}))}function dt(e,t){var n="object"==typeof t;return new Promise((function(r,i){var o=new C({next:function(e){r(e),o.unsubscribe()},error:i,complete:function(){n?r(t.defaultValue):i(new ct)}});e.subscribe(o)}))}var ft=p((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),ht=p((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}})),pt=p((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}));function vt(e){return e instanceof Date&&!isNaN(e)}var mt=p((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function gt(e,t){var n=vt(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?bt:o,s=n.scheduler,u=void 0===s?null!=t?t:we:s,c=n.meta,l=void 0===c?null:c;if(null==r&&null==i)throw new TypeError("No timeout provided.");return U((function(e,t){var n,o,s=null,c=0,d=function(e){o=Le(t,u,(function(){n.unsubscribe(),Ze(a({meta:l,lastValue:s,seen:c})).subscribe(t)}),e)};n=e.subscribe(new G(t,(function(e){null==o||o.unsubscribe(),c++,t.next(s=e),i>0&&d(i)}),void 0,void 0,(function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null}))),d(null!=r?"number"==typeof r?r:+r-u.now():i)}))}function bt(e){throw new mt(e)}function yt(e,t){return void 0===t&&(t=0),U((function(n,r){r.add(e.schedule((function(){return n.subscribe(r)}),t))}))}function wt(e,t){return U((function(n,r){var i=0;n.subscribe(new G(r,(function(n){r.next(e.call(t,n,i++))})))}))}var _t=Array.isArray;function xt(e){return wt((function(t){return function(e,t){return _t(t)?e.apply(void 0,c([],u(t))):e(t)}(e,t)}))}function kt(e,t){return void 0===t&&(t=0),U((function(n,r){n.subscribe(new G(r,(function(n){return r.add(e.schedule((function(){return r.next(n)}),t))}),(function(){return r.add(e.schedule((function(){return r.complete()}),t))}),(function(n){return r.add(e.schedule((function(){return r.error(n)}),t))})))}))}function St(e,t,n,r){if(n){if(!Qe(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return St(e,t,r).apply(this,i).pipe(xt(n))};r=n}return r?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return St(e,t).apply(this,n).pipe(yt(r),kt(r))}:function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new ie,a=!0;return new F((function(i){var s=o.subscribe(i);if(a){a=!1;var l=!1,d=!1;t.apply(n,c(c([],u(r)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(null!=r)return void o.error(r)}o.next(1<t.length?t:t[0]),d=!0,l&&o.complete()}])),d&&o.complete(),l=!0}return s}))}}function Mt(e,t,n){return St(!1,e,t,n)}function Dt(e,t,n){return St(!0,e,t,n)}var Ot=Array.isArray,Tt=Object.getPrototypeOf,Pt=Object.prototype,Ct=Object.keys;function Et(e){if(1===e.length){var t=e[0];if(Ot(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&Tt(r)===Pt){var n=Ct(t);return{args:n.map((function(e){return t[e]})),keys:n}}}var r;return{args:e,keys:null}}function At(e,t){return e.reduce((function(e,n,r){return e[n]=t[r],e}),{})}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=tt(e),i=Et(e),o=i.args,a=i.keys;if(0===o.length)return Be([],n);var s=new F(It(o,n,a?function(e){return At(a,e)}:R));return r?s.pipe(xt(r)):s}function It(e,t,n){return void 0===n&&(n=R),function(r){Nt(t,(function(){for(var i=e.length,o=new Array(i),a=i,s=i,u=function(i){Nt(t,(function(){var u=Be(e[i],t),c=!1;u.subscribe(new G(r,(function(e){o[i]=e,c||(c=!0,s--),s||r.next(n(o.slice()))}),(function(){--a||r.complete()})))}),r)},c=0;c<i;c++)u(c)}),r)}}function Nt(e,t,n){e?n.add(e.schedule(t)):t()}function Rt(e,t,n,r,i,o,a,s){var u=[],c=0,l=0,d=!1,f=function(){!d||u.length||c||t.complete()},h=function(e){return c<r?p(e):u.push(e)},p=function(e){o&&t.next(e),c++;var s=!1;Ze(n(e,l++)).subscribe(new G(t,(function(e){null==i||i(e),o?h(e):t.next(e)}),(function(){s=!0}),void 0,(function(){if(s)try{c--;for(var e=function(){var e=u.shift();a?t.add(a.schedule((function(){return p(e)}))):p(e)};u.length&&c<r;)e();f()}catch(e){t.error(e)}})))};return e.subscribe(new G(t,h,(function(){d=!0,f()}))),function(){null==s||s()}}function Yt(e,t,n){return void 0===n&&(n=1/0),h(t)?Yt((function(n,r){return wt((function(e,i){return t(n,e,r,i)}))(Ze(e(n,r)))}),n):("number"==typeof t&&(n=t),U((function(t,r){return Rt(t,r,e,n)})))}function Lt(e){return void 0===e&&(e=1/0),Yt(R,e)}function Ft(){return Lt(1)}function Wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ft()(Ke(e,nt(e)))}function Vt(e){return new F((function(t){Ze(e()).subscribe(t)}))}var Ut={connector:function(){return new Q},resetOnDisconnect:!0};function Gt(e,t){void 0===t&&(t=Ut);var n=null,r=t.connector,i=t.resetOnDisconnect,o=void 0===i||i,a=r(),s=new F((function(e){return a.subscribe(e)}));return s.connect=function(){return n&&!n.closed||(n=Vt((function(){return e})).subscribe(a),o&&n.add((function(){return a=r()}))),n},s}function $t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=Et(e),i=r.args,o=r.keys,a=new F((function(e){var t=i.length;if(t)for(var n=new Array(t),r=t,a=t,s=function(t){var s=!1;Ze(i[t]).subscribe(new G(e,(function(e){s||(s=!0,a--),n[t]=e}),(function(){--r&&s||(a||e.next(o?At(o,n):n),e.complete())})))},u=0;u<t;u++)s(u);else e.complete()}));return n?a.pipe(xt(n)):a}var Ht=["addListener","removeListener"],zt=["addEventListener","removeEventListener"],qt=["on","off"];function Bt(e,t,n,r){if(h(n)&&(r=n,n=void 0),r)return Bt(e,t,n).pipe(xt(r));var i=u(function(e){return h(e.addEventListener)&&h(e.removeEventListener)}(e)?zt.map((function(r){return function(i){return e[r](t,i,n)}})):function(e){return h(e.addListener)&&h(e.removeListener)}(e)?Ht.map(Zt(e,t)):function(e){return h(e.on)&&h(e.off)}(e)?qt.map(Zt(e,t)):[],2),o=i[0],a=i[1];if(!o&&Ie(e))return Yt((function(e){return Bt(e,t,n)}))(Ke(e));if(!o)throw new TypeError("Invalid event target");return new F((function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return o(t),function(){return a(t)}}))}function Zt(e,t){return function(n){return function(r){return e[n](t,r)}}}function Jt(e,t,n){return n?Jt(e,t).pipe(xt(n)):new F((function(n){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)},i=e(r);return h(t)?function(){return t(r,i)}:void 0}))}function Xt(e,t,n,r,i){var o,s,u,c;function l(){var e;return a(this,(function(r){switch(r.label){case 0:e=c,r.label=1;case 1:return t&&!t(e)?[3,4]:[4,u(e)];case 2:r.sent(),r.label=3;case 3:return e=n(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(c=(o=e).initialState,t=o.condition,n=o.iterate,s=o.resultSelector,u=void 0===s?R:s,i=o.scheduler):(c=e,!r||Qe(r)?(u=R,i=r):u=r),Vt(i?function(){return Fe(l(),i)}:l)}function Kt(e,t,n){return Vt((function(){return e()?t:n}))}function Qt(e,t,n){void 0===e&&(e=0),void 0===n&&(n=_e);var r=-1;return null!=t&&(Qe(t)?n=t:r=t),new F((function(t){var i=vt(e)?+e-n.now():e;i<0&&(i=0);var o=0;return n.schedule((function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())}),i)}))}function en(e,t){return void 0===e&&(e=0),void 0===t&&(t=we),e<0&&(e=0),Qt(e,e,t)}function tn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0),i=e;return i.length?1===i.length?Ze(i[0]):Lt(r)(Ke(i,n)):Ee}var nn=new F(S);function rn(){return nn}var on=Array.isArray;function an(e){return 1===e.length&&on(e[0])?e[0]:e}function sn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=an(e);return U((function(e,t){var r=c([e],u(n)),i=function(){if(!t.closed)if(r.length>0){var e=void 0;try{e=Ze(r.shift())}catch(e){return void i()}var n=new G(t,void 0,S,S);t.add(e.subscribe(n)),n.add(i)}else t.complete()};i()}))}(an(e))(Ee)}function un(e,t){return Be(Object.entries(e),t)}function cn(e,t){return function(n,r){return!e.call(t,n,r)}}function ln(e,t){return U((function(n,r){var i=0;n.subscribe(new G(r,(function(n){return e.call(t,n,i++)&&r.next(n)})))}))}function dn(e,t,n){return[ln(t,n)(Ze(e)),ln(cn(t,n))(Ze(e))]}function fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=an(e)).length?Ze(e[0]):new F(hn(e))}function hn(e){return function(t){for(var n=[],r=function(r){n.push(Ze(e[r]).subscribe(new G(t,(function(e){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}t.next(e)}))))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}function pn(e,t,n){if(null==t&&(t=e,e=0),t<=0)return Ee;var r=t+e;return new F(n?function(t){var i=e;return n.schedule((function(){i<r?(t.next(i++),this.schedule()):t.complete()}))}:function(t){for(var n=e;n<r&&!t.closed;)t.next(n++);t.complete()})}function vn(e,t){return new F((function(n){var r=e(),i=t(r);return(i?Ze(i):Ee).subscribe(n),function(){r&&r.unsubscribe()}}))}function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=an(e);return r.length?new F((function(e){var t=r.map((function(){return[]})),i=r.map((function(){return!1}));e.add((function(){t=i=null}));for(var o=function(o){Ze(r[o]).subscribe(new G(e,(function(r){if(t[o].push(r),t.every((function(e){return e.length}))){var a=t.map((function(e){return e.shift()}));e.next(n?n.apply(void 0,c([],u(a))):a),t.some((function(e,t){return!e.length&&i[t]}))&&e.complete()}}),(function(){i[o]=!0,!t[o].length&&e.complete()})))},a=0;!e.closed&&a<r.length;a++)o(a);return function(){t=i=null}})):Ee}function gn(e){return U((function(t,n){var r=!1,i=null,o=null,a=!1,s=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var e=i;i=null,n.next(e)}a&&n.complete()},u=function(){o=null,a&&n.complete()};t.subscribe(new G(n,(function(t){r=!0,i=t,o||Ze(e(t)).subscribe(o=new G(n,s,u))}),(function(){a=!0,(!r||!o||o.closed)&&n.complete()})))}))}function bn(e,t){return void 0===t&&(t=_e),gn((function(){return Qt(e,t)}))}function yn(e){return U((function(t,n){var r=[];return t.subscribe(new G(n,(function(e){return r.push(e)}),(function(){n.next(r),n.complete()}))),e.subscribe(new G(n,(function(){var e=r;r=[],n.next(e)}),S)),function(){r=null}}))}function wn(e,t){return void 0===t&&(t=null),t=null!=t?t:e,U((function(n,r){var i=[],o=0;n.subscribe(new G(r,(function(n){var a,u,c,l,d=null;o++%t===0&&i.push([]);try{for(var f=s(i),h=f.next();!h.done;h=f.next()){(g=h.value).push(n),e<=g.length&&(d=null!=d?d:[]).push(g)}}catch(e){a={error:e}}finally{try{h&&!h.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}if(d)try{for(var p=s(d),v=p.next();!v.done;v=p.next()){var g=v.value;m(i,g),r.next(g)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}}),(function(){var e,t;try{for(var n=s(i),o=n.next();!o.done;o=n.next()){var a=o.value;r.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){i=null})))}))}function _n(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(t=nt(r))&&void 0!==t?t:we,a=null!==(n=r[0])&&void 0!==n?n:null,u=r[1]||1/0;return U((function(t,n){var r=[],i=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),m(r,e),n.next(t),i&&l()},l=function(){if(r){var t=new g;n.add(t);var i={buffer:[],subs:t};r.push(i),t.add(o.schedule((function(){return c(i)}),e))}};null!==a&&a>=0?n.add(o.schedule((function(){l(),!this.closed&&n.add(this.schedule(null,a))}),a)):i=!0,l();var d=new G(n,(function(e){var t,n,i=r.slice();try{for(var o=s(i),a=o.next();!a.done;a=o.next()){var l=a.value,d=l.buffer;d.push(e),u<=d.length&&c(l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}),(function(){for(;null==r?void 0:r.length;)n.next(r.shift().buffer);null==d||d.unsubscribe(),n.complete(),n.unsubscribe()}),void 0,(function(){return r=null}));t.subscribe(d)}))}function xn(e,t){return U((function(n,r){var i=[];Ze(e).subscribe(new G(r,(function(e){var n=[];i.push(n);var o=new g;o.add(Ze(t(e)).subscribe(new G(r,(function(){m(i,n),r.next(n),o.unsubscribe()}),S)))}),S)),n.subscribe(new G(r,(function(e){var t,n;try{for(var r=s(i),o=r.next();!o.done;o=r.next()){o.value.push(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(function(){for(;i.length>0;)r.next(i.shift());r.complete()})))}))}function kn(e){return U((function(t,n){var r=null,i=null,o=function(){null==i||i.unsubscribe();var t=r;r=[],t&&n.next(t),Ze(e()).subscribe(i=new G(n,o,S))};o(),t.subscribe(new G(n,(function(e){return null==r?void 0:r.push(e)}),(function(){r&&n.next(r),n.complete()}),void 0,(function(){return r=i=null})))}))}function Sn(e){return U((function(t,n){var r,i=null,o=!1;i=t.subscribe(new G(n,void 0,void 0,(function(a){r=Ze(e(a,Sn(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(n)):o=!0}))),o&&(i.unsubscribe(),i=null,r.subscribe(n))}))}function Mn(e,t,n,r,i){return function(o,a){var s=n,u=t,c=0;o.subscribe(new G(a,(function(t){var n=c++;u=s?e(u,t,n):(s=!0,t),r&&a.next(u)}),i&&function(){s&&a.next(u),a.complete()}))}}function Dn(e,t){return U(Mn(e,t,arguments.length>=2,!1,!0))}var On=function(e,t){return e.push(t),e};function Tn(){return U((function(e,t){Dn(On,[])(e).subscribe(t)}))}function Pn(e,t){return Y(Tn(),Yt((function(t){return e(t)})),t?xt(t):R)}function Cn(e){return Pn(jt,e)}var En=Cn;function An(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return n?Y(An.apply(void 0,c([],u(e))),xt(n)):U((function(t,n){It(c([t],u(an(e))))(n)}))}function jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return An.apply(void 0,c([],u(e)))}function In(e,t){return h(t)?Yt(e,t,1):Yt(e,1)}function Nn(e,t){return h(t)?In((function(){return e}),t):In((function(){return e}))}function Rn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return U((function(t,r){Ft()(Ke(c([t],u(e)),n)).subscribe(r)}))}function Yn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rn.apply(void 0,c([],u(e)))}var Ln={connector:function(){return new Q}};function Fn(e,t){void 0===t&&(t=Ln);var n=t.connector;return U((function(t,r){var i,o=n();Be(e((i=o,new F((function(e){return i.subscribe(e)}))))).subscribe(r),r.add(t.subscribe(o))}))}function Wn(e){return Dn((function(t,n,r){return!e||e(n,r)?t+1:t}),0)}function Vn(e){return U((function(t,n){var r=!1,i=null,o=null,a=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var e=i;i=null,n.next(e)}};t.subscribe(new G(n,(function(t){null==o||o.unsubscribe(),r=!0,i=t,o=new G(n,a,S),Ze(e(t)).subscribe(o)}),(function(){a(),n.complete()}),void 0,(function(){i=o=null})))}))}function Un(e,t){return void 0===t&&(t=we),U((function(n,r){var i=null,o=null,a=null,s=function(){if(i){i.unsubscribe(),i=null;var e=o;o=null,r.next(e)}};function u(){var n=a+e,o=t.now();if(o<n)return i=this.schedule(void 0,n-o),void r.add(i);s()}n.subscribe(new G(r,(function(n){o=n,a=t.now(),i||(i=t.schedule(u,e),r.add(i))}),(function(){s(),r.complete()}),void 0,(function(){o=i=null})))}))}function Gn(e){return U((function(t,n){var r=!1;t.subscribe(new G(n,(function(e){r=!0,n.next(e)}),(function(){r||n.next(e),n.complete()})))}))}function $n(e){return e<=0?function(){return Ee}:U((function(t,n){var r=0;t.subscribe(new G(n,(function(t){++r<=e&&(n.next(t),e<=r&&n.complete())})))}))}function Hn(){return U((function(e,t){e.subscribe(new G(t,S))}))}function zn(e){return wt((function(){return e}))}function qn(e,t){return t?function(n){return Wt(t.pipe($n(1),Hn()),n.pipe(qn(e)))}:Yt((function(t,n){return e(t,n).pipe($n(1),zn(t))}))}function Bn(e,t){void 0===t&&(t=we);var n=Qt(e,t);return qn((function(){return n}))}function Zn(){return U((function(e,t){e.subscribe(new G(t,(function(e){return st(e,t)})))}))}function Jn(e,t){return U((function(n,r){var i=new Set;n.subscribe(new G(r,(function(t){var n=e?e(t):t;i.has(n)||(i.add(n),r.next(t))}))),null==t||t.subscribe(new G(r,(function(){return i.clear()}),S))}))}function Xn(e,t){return void 0===t&&(t=R),e=null!=e?e:Kn,U((function(n,r){var i,o=!0;n.subscribe(new G(r,(function(n){var a=t(n);!o&&e(i,a)||(o=!1,i=a,r.next(n))})))}))}function Kn(e,t){return e===t}function Qn(e,t){return Xn((function(n,r){return t?t(n[e],r[e]):n[e]===r[e]}))}function er(e){return void 0===e&&(e=tr),U((function(t,n){var r=!1;t.subscribe(new G(n,(function(e){r=!0,n.next(e)}),(function(){return r?n.complete():n.error(e())})))}))}function tr(){return new ct}function nr(e,t){if(e<0)throw new ft;var n=arguments.length>=2;return function(r){return r.pipe(ln((function(t,n){return n===e})),$n(1),n?Gn(t):er((function(){return new ft})))}}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Wt(t,it.apply(void 0,c([],u(e))))}}function ir(e,t){return U((function(n,r){var i=0;n.subscribe(new G(r,(function(o){e.call(t,o,i++,n)||(r.next(!1),r.complete())}),(function(){r.next(!0),r.complete()})))}))}function or(){return U((function(e,t){var n=!1,r=null;e.subscribe(new G(t,(function(e){r||(r=Ze(e).subscribe(new G(t,void 0,(function(){r=null,n&&t.complete()}))))}),(function(){n=!0,!r&&t.complete()})))}))}var ar=or;function sr(e,t){return t?function(n){return n.pipe(sr((function(n,r){return Ze(e(n,r)).pipe(wt((function(e,i){return t(n,e,r,i)})))})))}:U((function(t,n){var r=0,i=null,o=!1;t.subscribe(new G(n,(function(t){i||(i=new G(n,void 0,(function(){i=null,o&&n.complete()})),Ze(e(t,r++)).subscribe(i))}),(function(){o=!0,!i&&n.complete()})))}))}function ur(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,U((function(r,i){return Rt(r,i,e,t,void 0,!0,n)}))}function cr(e){return U((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}function lr(e,t){return U(dr(e,t,"value"))}function dr(e,t,n){var r="index"===n;return function(n,i){var o=0;n.subscribe(new G(i,(function(a){var s=o++;e.call(t,a,s,n)&&(i.next(r?s:a),i.complete())}),(function(){i.next(r?-1:void 0),i.complete()})))}}function fr(e,t){return U(dr(e,t,"index"))}function hr(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln((function(t,n){return e(t,n,r)})):R,$n(1),n?Gn(t):er((function(){return new ct})))}}function pr(e,t,n,r){return U((function(i,o){var a;t&&"function"!=typeof t?(n=t.duration,a=t.element,r=t.connector):a=t;var s=new Map,u=function(e){s.forEach(e),e(o)},c=function(e){return u((function(t){return t.error(e)}))},l=new vr(o,(function(t){try{var i=e(t),u=s.get(i);if(!u){s.set(i,u=r?r():new Q);var d=(h=i,p=u,(v=new F((function(e){l.activeGroups++;var t=p.subscribe(e);return function(){t.unsubscribe(),0===--l.activeGroups&&l.teardownAttempted&&l.unsubscribe()}}))).key=h,v);if(o.next(d),n){var f=new G(u,(function(){u.complete(),null==f||f.unsubscribe()}),void 0,void 0,(function(){return s.delete(i)}));l.add(Ze(n(d)).subscribe(f))}}u.next(a?a(t):t)}catch(e){c(e)}var h,p,v}),(function(){return u((function(e){return e.complete()}))}),c,(function(){return s.clear()}));i.subscribe(l)}))}var vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeGroups=0,t.teardownAttempted=!1,t}return i(t,e),t.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&e.prototype.unsubscribe.call(this)},t}(G);function mr(){return U((function(e,t){e.subscribe(new G(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}function gr(e){return e<=0?function(){return Ee}:U((function(t,n){var r=[];t.subscribe(new G(n,(function(t){r.push(t),e<r.length&&r.shift()}),(function(){var e,t;try{for(var i=s(r),o=i.next();!o.done;o=i.next()){var a=o.value;n.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){r=null})))}))}function br(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln((function(t,n){return e(t,n,r)})):R,gr(1),n?Gn(t):er((function(){return new ct})))}}function yr(){return U((function(e,t){e.subscribe(new G(t,(function(e){t.next(at.createNext(e))}),(function(){t.next(at.createComplete()),t.complete()}),(function(e){t.next(at.createError(e)),t.complete()})))}))}function wr(e){return Dn(h(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var _r=Yt;function xr(e,t,n){return void 0===n&&(n=1/0),h(t)?Yt((function(){return e}),t,n):("number"==typeof t&&(n=t),Yt((function(){return e}),n))}function kr(e,t,n){return void 0===n&&(n=1/0),U((function(r,i){var o=t;return Rt(r,i,(function(t,n){return e(o,t,n)}),n,(function(e){o=e}),!1,void 0,(function(){return o=null}))}))}function Sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0);return e=an(e),U((function(t,i){Lt(r)(Ke(c([t],u(e)),n)).subscribe(i)}))}function Mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Sr.apply(void 0,c([],u(e)))}function Dr(e){return Dn(h(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Or(e,t){var n=h(e)?e:function(){return e};return h(t)?Fn(t,{connector:n}):function(e){return new H(e,n)}}function Tr(){return U((function(e,t){var n,r=!1;e.subscribe(new G(t,(function(e){var i=n;n=e,r&&t.next([i,e]),r=!0})))}))}function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return wt((function(t){for(var r=t,i=0;i<n;i++){var o=null==r?void 0:r[e[i]];if(void 0===o)return;r=o}return r}))}function Cr(e){return e?function(t){return Fn(e)(t)}:function(e){return Or(new Q)(e)}}function Er(e){return function(t){var n=new te(e);return new H(t,(function(){return n}))}}function Ar(){return function(e){var t=new ie;return new H(e,(function(){return t}))}}function jr(e,t,n,r){n&&!h(n)&&(r=n);var i=h(n)?n:void 0;return function(n){return Or(new re(e,t,r),i)(n)}}function Ir(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?U((function(t,n){hn(c([t],u(e)))(n)})):R}function Nr(e){return void 0===e&&(e=1/0),e<=0?function(){return Ee}:U((function(t,n){var r,i=0,o=function(){var a=!1;r=t.subscribe(new G(n,void 0,(function(){++i<e?r?(r.unsubscribe(),r=null,o()):a=!0:n.complete()}))),a&&(r.unsubscribe(),r=null,o())};o()}))}function Rr(e){return U((function(t,n){var r,i,o=!1,a=!1,s=!1,u=function(){return s&&a&&(n.complete(),!0)},c=function(){s=!1,r=t.subscribe(new G(n,void 0,(function(){s=!0,!u()&&(i||(i=new Q,e(i).subscribe(new G(n,(function(){r?c():o=!0}),(function(){a=!0,u()})))),i).next()}))),o&&(r.unsubscribe(),r=null,o=!1,c())};c()}))}function Yr(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,r=void 0===n?1/0:n,i=t.delay,o=t.resetOnSuccess,a=void 0!==o&&o;return r<=0?R:U((function(e,t){var n,o=0,s=function(){var u=!1;n=e.subscribe(new G(t,(function(e){a&&(o=0),t.next(e)}),void 0,(function(e){if(o++<r){var a=function(){n?(n.unsubscribe(),n=null,s()):u=!0};if(null!=i){var c="number"==typeof i?Qt(i):Ze(i(e,o)),l=new G(t,(function(){l.unsubscribe(),a()}),(function(){t.complete()}));c.subscribe(l)}else a()}else t.error(e)}))),u&&(n.unsubscribe(),n=null,s())};s()}))}function Lr(e){return U((function(t,n){var r,i,o=!1,a=function(){r=t.subscribe(new G(n,void 0,void 0,(function(t){i||(i=new Q,e(i).subscribe(new G(n,(function(){return r?a():o=!0})))),i&&i.next(t)}))),o&&(r.unsubscribe(),r=null,o=!1,a())};a()}))}function Fr(e){return U((function(t,n){var r=!1,i=null;t.subscribe(new G(n,(function(e){r=!0,i=e})));e.subscribe(new G(n,(function(){if(r){r=!1;var e=i;i=null,n.next(e)}}),S))}))}function Wr(e,t){return void 0===t&&(t=we),Fr(en(e,t))}function Vr(e,t){return U(Mn(e,t,arguments.length>=2,!0))}function Ur(e,t){return void 0===t&&(t=function(e,t){return e===t}),U((function(n,r){var i={buffer:[],complete:!1},o={buffer:[],complete:!1},a=function(e){r.next(e),r.complete()},s=function(e,n){var i=new G(r,(function(r){var i=n.buffer,o=n.complete;0===i.length?o?a(!1):e.buffer.push(r):!t(r,i.shift())&&a(!1)}),(function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&a(0===r.length),null==i||i.unsubscribe()}));return i};n.subscribe(s(i,o)),e.subscribe(s(o,i))}))}function Gr(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new Q}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,u=void 0===s||s;return function(e){var t=null,r=null,o=null,s=0,c=!1,l=!1,d=function(){null==r||r.unsubscribe(),r=null},f=function(){d(),t=o=null,c=l=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return U((function(e,p){s++,l||c||d();var v=o=null!=o?o:n();p.add((function(){0!==--s||l||c||(r=$r(h,u))})),v.subscribe(p),t||(t=new C({next:function(e){return v.next(e)},error:function(e){l=!0,d(),r=$r(f,i,e),v.error(e)},complete:function(){c=!0,d(),r=$r(f,a),v.complete()}}),Be(e).subscribe(t))}))(e)}}function $r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!0===t?(e(),null):!1===t?null:t.apply(void 0,c([],u(n))).pipe($n(1)).subscribe((function(){return e()}))}function Hr(e,t,n){var r,i,o,a=!1;return e&&"object"==typeof e?(o=null!==(r=e.bufferSize)&&void 0!==r?r:1/0,t=null!==(i=e.windowTime)&&void 0!==i?i:1/0,a=!!e.refCount,n=e.scheduler):o=null!=e?e:1/0,Gr({connector:function(){return new re(o,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function zr(e){return U((function(t,n){var r,i=!1,o=!1,a=0;t.subscribe(new G(n,(function(s){o=!0,e&&!e(s,a++,t)||(i&&n.error(new pt("Too many matching values")),i=!0,r=s)}),(function(){i?(n.next(r),n.complete()):n.error(o?new ht("No matching values"):new ct)})))}))}function qr(e){return ln((function(t,n){return e<=n}))}function Br(e){return e<=0?R:U((function(t,n){var r=new Array(e),i=0;return t.subscribe(new G(n,(function(t){var o=i++;if(o<e)r[o]=t;else{var a=o%e,s=r[a];r[a]=t,n.next(s)}}))),function(){r=null}}))}function Zr(e){return U((function(t,n){var r=!1,i=new G(n,(function(){null==i||i.unsubscribe(),r=!0}),S);Ze(e).subscribe(i),t.subscribe(new G(n,(function(e){return r&&n.next(e)})))}))}function Jr(e){return U((function(t,n){var r=!1,i=0;t.subscribe(new G(n,(function(t){return(r||(r=!e(t,i++)))&&n.next(t)})))}))}function Xr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return U((function(t,r){(n?Wt(e,t,n):Wt(e,t)).subscribe(r)}))}function Kr(e,t){return U((function(n,r){var i=null,o=0,a=!1,s=function(){return a&&!i&&r.complete()};n.subscribe(new G(r,(function(n){null==i||i.unsubscribe();var a=0,u=o++;Ze(e(n,u)).subscribe(i=new G(r,(function(e){return r.next(t?t(n,e,u,a++):e)}),(function(){i=null,s()})))}),(function(){a=!0,s()})))}))}function Qr(){return Kr(R)}function ei(e,t){return h(t)?Kr((function(){return e}),t):Kr((function(){return e}))}function ti(e,t){return U((function(n,r){var i=t;return Kr((function(t,n){return e(i,t,n)}),(function(e,t){return i=t,t}))(n).subscribe(r),function(){i=null}}))}function ni(e){return U((function(t,n){Ze(e).subscribe(new G(n,(function(){return n.complete()}),S)),!n.closed&&t.subscribe(n)}))}function ri(e,t){return void 0===t&&(t=!1),U((function(n,r){var i=0;n.subscribe(new G(r,(function(n){var o=e(n,i++);(o||t)&&r.next(n),!o&&r.complete()})))}))}function ii(e,t,n){var r=h(e)||t||n?{next:e,error:t,complete:n}:e;return r?U((function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var i=!0;e.subscribe(new G(t,(function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)}),(function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()}),(function(e){var n;i=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)}),(function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):R}var oi={leading:!0,trailing:!1};function ai(e,t){var n=void 0===t?oi:t,r=n.leading,i=n.trailing;return U((function(t,n){var o=!1,a=null,s=null,u=!1,c=function(){null==s||s.unsubscribe(),s=null,i&&(f(),u&&n.complete())},l=function(){s=null,u&&n.complete()},d=function(t){return s=Ze(e(t)).subscribe(new G(n,c,l))},f=function(){if(o){o=!1;var e=a;a=null,n.next(e),!u&&d(e)}};t.subscribe(new G(n,(function(e){o=!0,a=e,(!s||s.closed)&&(r?f():d(e))}),(function(){u=!0,(!(i&&o&&s)||s.closed)&&n.complete()})))}))}function si(e,t,n){void 0===t&&(t=we),void 0===n&&(n=oi);var r=Qt(e,t);return ai((function(){return r}),n)}function ui(e){return void 0===e&&(e=_e),function(t){return Vt((function(){return t.pipe(Vr((function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}}),{current:e.now(),value:void 0,last:void 0}),wt((function(e){var t=e.current,n=e.last,r=e.value;return new ci(r,t-n)})))}))}}var ci=function(e,t){this.value=e,this.interval=t};function li(e,t,n){var r,i,o;if(n=null!=n?n:_e,vt(e)?r=e:"number"==typeof e&&(i=e),!t)throw new TypeError("No observable provided to switch to");if(o=function(){return t},null==r&&null==i)throw new TypeError("No timeout provided.");return gt({first:r,each:i,scheduler:n,with:o})}function di(e){return void 0===e&&(e=ne),wt((function(t){return{value:t,timestamp:e.now()}}))}function fi(e){return U((function(t,n){var r=new Q;n.next(r.asObservable());var i=function(e){r.error(e),n.error(e)};return t.subscribe(new G(n,(function(e){return null==r?void 0:r.next(e)}),(function(){r.complete(),n.complete()}),i)),e.subscribe(new G(n,(function(){r.complete(),n.next(r=new Q)}),S,i)),function(){null==r||r.unsubscribe(),r=null}}))}function hi(e,t){void 0===t&&(t=0);var n=t>0?t:e;return U((function(t,r){var i=[new Q],o=0;r.next(i[0].asObservable()),t.subscribe(new G(r,(function(t){var a,u;try{for(var c=s(i),l=c.next();!l.done;l=c.next()){l.value.next(t)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}var d=o-e+1;if(d>=0&&d%n===0&&i.shift().complete(),++o%n===0){var f=new Q;i.push(f),r.next(f.asObservable())}}),(function(){for(;i.length>0;)i.shift().complete();r.complete()}),(function(e){for(;i.length>0;)i.shift().error(e);r.error(e)}),(function(){i=null})))}))}function pi(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(t=nt(r))&&void 0!==t?t:we,a=null!==(n=r[0])&&void 0!==n?n:null,s=r[1]||1/0;return U((function(t,n){var r=[],i=!1,u=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),m(r,e),i&&c()},c=function(){if(r){var t=new g;n.add(t);var i=new Q,a={window:i,subs:t,seen:0};r.push(a),n.next(i.asObservable()),t.add(o.schedule((function(){return u(a)}),e))}};null!==a&&a>=0?n.add(o.schedule((function(){c(),!this.closed&&n.add(this.schedule(null,a))}),a)):i=!0,c();var l=function(e){return r.slice().forEach(e)},d=function(e){l((function(t){var n=t.window;return e(n)})),e(n),n.unsubscribe()};return t.subscribe(new G(n,(function(e){l((function(t){t.window.next(e),s<=++t.seen&&u(t)}))}),(function(){return d((function(e){return e.complete()}))}),(function(e){return d((function(t){return t.error(e)}))}))),function(){r=null}}))}function vi(e,t){return U((function(n,r){var i=[],o=function(e){for(;0<i.length;)i.shift().error(e);r.error(e)};Ze(e).subscribe(new G(r,(function(e){var n=new Q;i.push(n);var a,s=new g;try{a=Ze(t(e))}catch(e){return void o(e)}r.next(n.asObservable()),s.add(a.subscribe(new G(r,(function(){m(i,n),n.complete(),s.unsubscribe()}),S,o)))}),S)),n.subscribe(new G(r,(function(e){var t,n,r=i.slice();try{for(var o=s(r),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}),(function(){for(;0<i.length;)i.shift().complete();r.complete()}),o,(function(){for(;0<i.length;)i.shift().unsubscribe()})))}))}function mi(e){return U((function(t,n){var r,i,o=function(e){r.error(e),n.error(e)},a=function(){var t;null==i||i.unsubscribe(),null==r||r.complete(),r=new Q,n.next(r.asObservable());try{t=Ze(e())}catch(e){return void o(e)}t.subscribe(i=new G(n,a,a,o))};a(),t.subscribe(new G(n,(function(e){return r.next(e)}),(function(){r.complete(),n.complete()}),o,(function(){null==i||i.unsubscribe(),r=null})))}))}function gi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return U((function(t,r){for(var i=e.length,o=new Array(i),a=e.map((function(){return!1})),s=!1,l=function(t){Ze(e[t]).subscribe(new G(r,(function(e){o[t]=e,s||a[t]||(a[t]=!0,(s=a.every(R))&&(a=null))}),S))},d=0;d<i;d++)l(d);t.subscribe(new G(r,(function(e){if(s){var t=c([e],u(o));r.next(n?n.apply(void 0,c([],u(t))):t)}})))}))}function bi(e){return Pn(mn,e)}function yi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U((function(t,n){mn.apply(void 0,c([t],u(e))).subscribe(n)}))}function wi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yi.apply(void 0,c([],u(e)))}},3030:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(e){this.richContentSvc=e,this.restrict="A",this.scope={bindHtml:"="}}return e.prototype.link=function(e,t,n,r){var i=this;e.$watch("bindHtml",(function(n){var r;return i.richContentSvc.apply(null!==(r=n)&&void 0!==r?r:"",t,e)}))},e}();function r(e){return new n(e)}t.DirectiveFactory=r,r.$inject=["odeRichContentService"]},1098:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var o=n(9419),a=n(9826),s=n(3148),u=function(){function e(){this.hasRecorded=!1}return e.prototype.guardObjectIsDirty=function(){return this.hasRecorded},e.prototype.guardObjectReset=function(){this.hasRecorded=!1},e}(),c=function(){function e(e,t){var n=this;this.videoUploadService=e,this.videoEventTrackerService=t,this._recorder=this.setRecorder("audio"),this.isAudioCompatible=a.audio_recorder.isCompatible(),this.isVideoCompatible=s.VideoRecorder.isCompatible()&&(0,o.session)().hasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture"),this.disabledButtons=!0,this.displaySavedMessage=!1,this.selectedRecorder="none",this.recordIsSaved=!1,this.msToTime=function(e){e/=1e3;var t=parseInt(""+e/60),r=parseInt(""+e%60);return t+":"+n.pad2(r)}}return e.prototype.setRecorder=function(e){return this._recorder="audio"===e?a.audio_recorder:new s.VideoRecorder(this.videoFactory,this.videoDurationHandler,this.videoUploadService,this.videoEventTrackerService,this.selectedVid),this._recorder.status(this.recorderStatus),this._recorder},Object.defineProperty(e.prototype,"recorder",{get:function(){return this._recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPermission",{get:function(){return"granted"===this.recorder.permission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIdle",{get:function(){return!this.recorder||"idle"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPreparing",{get:function(){return"preparing"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRecording",{get:function(){return"recording"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuspended",{get:function(){return"suspended"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return"paused"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPlaying",{get:function(){return"playing"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return"stopped"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEncoding",{get:function(){return"encoding"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUploading",{get:function(){return"uploading"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showMenu",{get:function(){return this.isIdle||this.isStopped||!this.hasPermission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showRecorder",{get:function(){return this.hasPermission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showActionButtons",{get:function(){return this.recorder&&this.recorder.elapsedTime>0&&!this.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAudio",{get:function(){return this._recorder===a.audio_recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVideo",{get:function(){return this._recorder!==a.audio_recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"recordMaxTime",{get:function(){return 60*this.videoUploadService.maxDuration*1e3},enumerable:!1,configurable:!0}),e.prototype.switchRecorder=function(e){var t,n;"audio"===e?(this.selectedRecorder="audio",this.setRecorder("audio")):(this.selectedRecorder="video",this.msToTime(0),this.setRecorder("video"),null===(n=null===(t=this.recorder)||void 0===t?void 0:t.prepare)||void 0===n||n.call(t))},e.prototype.switchAudioRecord=function(){var e,t;if(this.setRecorder("audio"),this.isRecording)this.disabledButtons=!1,this.recordIsSaved=!1,null===(e=this.recorder)||void 0===e||e.suspend();else{null===(t=this.recorder)||void 0===t||t.record();var n=document.getElementById("btnAudioRecorder");n&&this.trackEvent(n,{detail:{open:"audio"}})}},e.prototype.switchVideoRecord=function(){var e,t;if(this.isRecording)this.disabledButtons=!1,null===(e=this.recorder)||void 0===e||e.suspend();else{null===(t=this.recorder)||void 0===t||t.record();var n=document.getElementById("btnVideoRecorder");n&&this.trackEvent(n,{detail:{open:"video"}})}this.isPaused&&this.restart()},e.prototype.trackEvent=function(e,t){var n,r;void 0===t.bubbles&&(t.bubbles=!0);var i=null;!t||"audio"!==(null===(n=t.detail)||void 0===n?void 0:n.open)&&"video"!==(null===(r=t.detail)||void 0===r?void 0:r.open)||(i=new CustomEvent("ode-recorder",t)),i&&e&&e.dispatchEvent(i)},e.prototype.pad2=function(e){return(e<10?"0":"")+e},e.prototype.time=function(){return this.recorder?this.msToTime(1e3*this.recorder.elapsedTime):""},e.prototype.switchPlay=function(){this.recorder&&(this.isPlaying?this.recorder.pause():this.recorder.play())},e.prototype.switchVideo=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,(t=this.recorder).switchCamera(e)];case 1:return n.sent(),[4,t.record()];case 2:return n.sent(),[2]}}))}))},e.prototype.saveRecord=function(){var e;null===(e=this.recorder)||void 0===e||e.save(),this.recordIsSaved=!0},e.prototype.redo=function(){var e,t;null===(e=this.recorder)||void 0===e||e.flush(),null===(t=this.recorder)||void 0===t||t.record()},e.prototype.restart=function(){var e,t=this,n=document.getElementById("recorderWidgetVideoPlayer");null==n||n.removeChild(n.firstElementChild),null===(e=this.recorder)||void 0===e||e.flush(),this.switchRecorder("video"),setTimeout((function(){var e;null===(e=t.recorder)||void 0===e||e.record()}),100)},e.prototype.getSaveBtnClass=function(){return this.isEncoding||this.isUploading?"fas fa-spinner fa-spin":"fas fa-save"},e.prototype.getSavedStatus=function(e){return"saved"===e?(this.displaySavedMessage=!0,!0):(this.displaySavedMessage=!1,!1)},e.prototype.clean=function(){var e;this.displaySavedMessage=!1,this.recordIsSaved=!1,this.disabledButtons=!0,null===(e=this.recorder)||void 0===e||e.flush(),this.selectedRecorder="none"},e}();t.Controller=c;var l=function(){function e(e){this.helperSvc=e,this.restrict="EA",this.template=n(41).Z,this.scope={format:"@?",onUpload:"&?"},this.controller=["odeVideoUploadService","odeVideoEventTrackerService",c],this.controllerAs="ctrl",this.require=["odeRecorder"]}return e.prototype.link=function(e,t,n,r){var i=this,a=r?r[0]:null;if(a&&a.recorder){if(e.recordGuard=new u,a.isVideoCompatible){var s=(0,o.conf)().Platform.idiom,c={deviceId:"environment",label:s.translate("video.back.camera"),groupId:"",kind:"videoinput"},l={deviceId:"user",label:s.translate("video.front.camera"),groupId:"",kind:"videoinput"};a.videoUploadService.initialize().then((function(){return navigator.mediaDevices.enumerateDevices()})).then((function(e){return e.filter((function(e){return"videoinput"===e.kind}))})).then((function(e){switch(o.deviceType){case"Mobile":case"Tablet":e&&e.length>1?a.videoInputDevices=[c,l]:a.videoInputDevices=[c];break;default:a.videoInputDevices=e}})).catch((function(){console.error("[VideoController.videoInputDevices] An error occured while detecting cameras."),a.videoInputDevices=[c]})).finally((function(){a.videoInputDevices&&(a.selectedVid=a.videoInputDevices[0]),i.helperSvc.safeApply(e)}))}a.videoFactory=function(){var e=document.createElement("video");return e.setAttribute("style","max-width:100%"),e.setAttribute("playsinline","true"),e.setAttribute("autoplay",""),e.setAttribute("muted",""),setTimeout((function(){var t;null===(t=document.getElementById("recorderWidgetVideoPlayer"))||void 0===t||t.appendChild(e)}),100),e};var d={startedAt:0,endedAt:0};a.videoDurationHandler=function(t){var n;0===d.startedAt&&(d.startedAt=t.timeStamp),a.isRecording&&(d.endedAt=t.timeStamp,a.recorder.elapsedTime=d.endedAt-d.startedAt,a.recorder.elapsedTime>=a.recordMaxTime&&(a.disabledButtons=!1,null===(n=a.recorder)||void 0===n||n.suspend())),i.helperSvc.safeApply(e)},a.recorderStatus=function(t){switch(t){case"recording":d.endedAt=d.startedAt=0,e.recordGuard&&(e.recordGuard.hasRecorded=!0);break;case"saved":e.recordGuard&&e.recordGuard.guardObjectReset(),e.onUpload&&e.onUpload(),a.getSavedStatus(t);case"idle":e.recordGuard&&e.recordGuard.guardObjectReset()}i.helperSvc.safeApply(e)}}},e}();function d(e){return new l(e)}t.DirectiveFactory=d,d.$inject=["odeNgHelperService"]},4262:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.TriggerDirectiveFactory=t.Controller=void 0;var o=n(5262),a=n(9419),s=new o.RxJS.Subject,u=function(){function e(){this.restrict="A",this.scope={connectorLightboxTrigger:"="}}return e.prototype.link=function(e,t,n){t.on("click",(function(n){var r={app:e.connectorLightboxTrigger,element:t[0],$mutex:!1,ctrlKey:!!n.ctrlKey,metaKey:!!n.metaKey};return n.preventDefault(),s.next(r),!1})),e.$on("$destroy",(function(){t.off("click")}))},e}(),c=function(){function e(e){this.xitiSvc=e,this.display={showAuthenticatedConnectorLightbox:!1}}return e.prototype.onClose=function(){this.display.showAuthenticatedConnectorLightbox=!1},e.prototype.onConfirm=function(){var e=this;if(this._currentAppEvent){var t=this._currentAppEvent.app;this.onClose(),this.authenticatedConnectorsAccessed?this.authenticatedConnectorsAccessed.push(t.name):this.authenticatedConnectorsAccessed=[t.name];var n=this._currentAppEvent.ctrlKey||this._currentAppEvent.metaKey?"_blank":t.target?t.target:"_self";"_self"!==n?((0,a.conf)().User.preferences.update("authenticatedConnectorsAccessed",this.authenticatedConnectorsAccessed).save("authenticatedConnectorsAccessed"),this.windowOpen(t.address,n)):r(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,(0,a.conf)().User.preferences.update("authenticatedConnectorsAccessed",this.authenticatedConnectorsAccessed).save("authenticatedConnectorsAccessed")];case 1:return e.sent(),this.windowOpen(t.address,n),[2]}}))}))}},e.prototype.isAuthenticatedConnector=function(e){return!!e.casType||e.scope&&e.scope.length>0&&!!e.scope[0]},e.prototype.isAuthenticatedConnectorFirstAccess=function(e){return!this.authenticatedConnectorsAccessed||this.authenticatedConnectorsAccessed&&!this.authenticatedConnectorsAccessed.includes(e.name)},e.prototype.openAppWithCheck=function(e){if(this._currentAppEvent=e,!e.$mutex){e.$mutex=!0;var t=e.app;if(void 0===t)throw"ConnectorLightbox, Controller.openAppWithCheck failed : target app is undefined";var n=e.ctrlKey||e.metaKey?"_blank":t.target?t.target:"_self";!this.skipCheck&&this.isAuthenticatedConnector(t)&&this.isAuthenticatedConnectorFirstAccess(t)?(this.display.showAuthenticatedConnectorLightbox=!0,this.apply&&this.apply()):this.windowOpen(t.address,n)}},e.prototype.windowOpen=function(e,t){this._currentAppEvent&&this._currentAppEvent.app.isExternal?"_self"==t?this.xitiSvc.trackClick(this._currentAppEvent.app.name,this._currentAppEvent.element).finally((function(){window.open(e,t)})):(this.xitiSvc.trackClick(this._currentAppEvent.app.name,this._currentAppEvent.element).finally((function(){})),window.open(e,t)):window.open(e,t)},e}();t.Controller=c;var l=function(){function e(){this.restrict="E",this.template=n(3146).Z,this.scope={},this.controller=["odeXiti",c],this.controllerAs="ctrl",this.require=["connectorLightbox"]}return e.prototype.link=function(e,t,n,u){return r(this,void 0,void 0,(function(){var t,n,r,c,l;return i(this,(function(i){switch(i.label){case 0:return(t=u?u[0]:null)?(t.apply=function(){e.$apply()},n=s.subscribe((function(e){t.openAppWithCheck(e)})),e.$on("$destroy",(function(){n.unsubscribe()})),r=t,[4,(0,a.conf)().User.preferences.load("authenticatedConnectorsAccessed")]):[2];case 1:r.authenticatedConnectorsAccessed=i.sent(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,(0,a.conf)().Platform.apps.getPublicConf(o.APP.CAS)];case 3:return c=i.sent(),t.skipCheck=!!c.skip,[3,5];case 4:return l=i.sent(),console.warn("Failed to get public conf: ",l),[3,5];case 5:return[2]}}))}))},e}();t.TriggerDirectiveFactory=function(){return new u},t.DirectiveFactory=function(){return new l}},8961:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(9419),a=function(){function e(){this.restrict="E",this.template=n(2306).Z,this.scope={}}return e.prototype.link=function(e,t,n){return r(this,void 0,void 0,(function(){var t,n,r,a,s,u,c,l,d,f,h,p;return i(this,(function(i){switch(i.label){case 0:return t=(0,o.conf)().Platform.theme,null===(n=(0,o.session)().currentApp)?[2]:[4,t.getHelpPath()];case 1:return r=i.sent(),c=(0,o.conf)().Platform.idiom,l=$("ode-modal"),e.onHelp=function(){a?p(a):(0,o.http)().get(e.helpPath,{queryParams:{"index.html":(0,o.conf)().Platform.deploymentTag}}).then((function(t){404===(0,o.http)().latestResponse.status?(s=c.translate("help.notfound.title"),u="<p>"+c.translate("help.notfound.text")+"</p>",h(s,u)):p(a=t),e.$apply()}))},e.display={},e.helpPath=r+"/application/"+n+"/","."===n&&"/adapter"!==window.location.pathname?e.helpPath=r+"/application/portal/":"/adapter"===window.location.pathname?e.helpPath=r+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")&&(e.helpPath=r+"/application/parametrage-de-la-classe/"),h=function(t,n){l.find(".modal-title").html(t),l.find(".modal-body").html(n),e.display.read=!0,e.$apply("display")},p=function(t){(d=$("<div>"+t+"</div>")).find("> p").prev().insertAfter(d.find("> p")),d.find("img").each((function(t,n){$(n).attr("src",e.helpPath+"../.."+$(n).attr("src"))})),l.find("ode-modal-body > div").html(d.html()),l.find("li a").on("click",(function(e){var t;l.find(".section").slideUp(),$("div#"+(null===(t=$(e.target).attr("href"))||void 0===t?void 0:t.split("#")[1])).slideDown()})),l.find("div.paragraph a").on("click",(function(e){window.open($(e.target).closest("a").attr("href"),"_newtab")})),l.find("li a").first().click(),l.find("#TOC").wrap('<div id="burger-menu" class="burger-menu"></div>'),(f=l.find("#burger-menu")).prepend('<button id="burger-button" class="burger-button"><i class="burger-icon"></i></button>'),l.find("#burger-button").on("click",(function(e){f.toggleClass("active")})),l.find("#TOC > ul li a").on("click",(function(e){f.removeClass("active")}));var n=function(e){0==l.find("#TOC > ul").find(e.target).length&&0==f.find(e.target).length&&f.removeClass("active")};$("body").on("click",n),e.$on("$destroy",(function(){$("body").off("click",n)})),e.display.read=!0,e.$apply("display")},[2]}}))}))},e}();t.Directive=a,t.DirectiveFactory=function(){return new a}},737:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(9419),a=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,a){return r(this,void 0,void 0,(function(){return i(this,(function(e){return t.attr("href","/auth/logout?callback="+(0,o.conf)().Platform.theme.logoutCallback),[2]}))}))},e}();t.Directive=a,t.DirectiveFactory=function(){return new a}},6644:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=n(9419),o=r(n(3336)),a=function(){function e(e,t,n){this.session=e,this.helperSvc=t,this.themeSvc=n,this.currentLanguage="",this.username="",this.avatar="no-avatar.svg",this.messagerieLink="/zimbra/zimbra",this.mysearch="",this.apps=[],this.is1D=!1,this.is2D=!1}return e.prototype.refreshAvatar=function(){this.avatar=(0,i.session)().avatarUrl,this.username=(0,i.session)().description.displayName},e.prototype.openApps=function(e){var t=(0,o.default)(window).width();"number"==typeof t&&t<=700&&e.preventDefault()},e.prototype.launchSearch=function(e,t){var n=this.mysearch;"key"===t&&e.stopPropagation(),"button"!==t&&13!=e.keyCode||(this.trackEvent(e,{detail:{open:"searchengine",from:"search"}}),n=n&&""!==n?n:" ",this.mysearch="",window.location.href="/searchengine#/"+n)},e.prototype.getIconClass=function(e){var t=this.themeSvc.getIconCode(e);return"ic-app-".concat(t," color-app-").concat(t)},e.prototype.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("ode-navbar",t);n&&e.currentTarget&&e.currentTarget.dispatchEvent(n)},e}();t.Controller=a;var s=function(){function e(){this.restrict="E",this.template=n(959).Z,this.scope={title:"@?"},this.bindToController=!0,this.controller=["odeSession","odeNgHelperService","odeThemeHelperService",a],this.controllerAs="ctrl",this.require=["odeNavbar"]}return e.prototype.link=function(e,t,n,r){if(r){var o=r[0],a=(0,i.conf)().Platform;e.lang=a.idiom,e.nbNewMessages=0,e.version=a.deploymentTag,e.me={hasWorkflow:function(e){return(0,i.session)().hasWorkflow(e)}},e.goToMessagerie=function(){console.log(e.messagerieLink),(0,i.http)().get("/userbook/preference/zimbra").then((function(t){var n;try{t.preference&&(JSON.parse(t.preference).modeExpert&&(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth")))?(e.messagerieLink="/zimbra/preauth",window.open(e.messagerieLink)):(e.messagerieLink="/zimbra/zimbra",window.location.href=window.location.origin+e.messagerieLink),console.log(e.messagerieLink)}catch(t){e.messagerieLink="/zimbra/zimbra"}}))},e.refreshMails=function(){var t;(null===(t=e.me)||void 0===t?void 0:t.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view"))?(0,i.http)().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:(new Date).getTime()}}).then((function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")})):(0,i.http)().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:(new Date).getTime()}}).then((function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")}))},e.refreshAvatar=function(){o.refreshAvatar()},Promise.all([o.session.getLanguage(),a.theme.onOverrideReady(),o.session.getBookmarks(),a.theme.onFullyReady()]).then((function(t){o.skin=a.theme,o.is1D=a.theme.is1D,o.is2D=a.theme.is2D,o.currentLanguage=t[0];var n=t[1];n.portal&&-1!==n.portal.indexOf("conversation-unread")&&(o.conversationUnreadUrl="/assets/themes/"+a.theme.skin+"/template/portal/conversation-unread.html?hash="+a.deploymentTag),o.refreshAvatar(),e.refreshMails&&e.refreshMails(),o.apps=t[2],e.$apply()}))}},e}();t.DirectiveFactory=function(){return new s}},3010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var r=n(5262),i=n(9419),o=function(){function e(e){this.tracking=e,this.restrict="E",this.transclude={infotips:"odeInfotips"},this.scope={app:"@?",name:"@"}}return e.prototype.templateUrl=function(e,t){return t.templateUrl?t.templateUrl:n(925).Z},e.prototype.link=function(e,t,n){var o,a,s=(0,i.conf)().User.preferences;(0,i.notif)().onLangReady().promise.then((function(e){i.L10n.initialize(e)})),e.goToMyAccount=function(){document.location.href="/userbook/mon-compte",s.get(r.USER_PREFS.RGPD_COOKIES).showInfoTip=!1,s.save(r.USER_PREFS.RGPD_COOKIES)},e.me={hasWorkflow:function(e){return(0,i.session)().hasWorkflow(e)}},e.closeBanner=function(){e.showRgpd=!1,s.get(r.USER_PREFS.RGPD_COOKIES).showInfoTip=!1,s.save(r.USER_PREFS.RGPD_COOKIES)},e.app&&this.tracking.trackApp(e.app),(null===(o=e.me)||void 0===o?void 0:o.hasWorkflow("fr.openent.chatbot.controller.ChatbotController|view"))&&$.ajax("/chatbot/public/js/chatbot.js",{dataType:"script"}),(null===(a=e.me)||void 0===a?void 0:a.hasWorkflow("org.entcore.portal.controllers.PortalController|optionalFeatureCantoo"))&&(0,i.http)().get("/optionalFeature/cantoo").then((function(e){var t=document.createElement("script");t.src=e.scriptPath,t.async=!0,document.body.appendChild(t)})),this.addZendeskGuideWedget(e)},e.prototype.addZendeskGuideWedget=function(e){(0,i.http)().get("/zendeskGuide/config?module=timeline").then((function(t){if(t&&t.key){var n=document.createElement("script");n.id="ze-snippet",n.src="https://static.zdassets.com/ekr/snippet.js?key=".concat(t.key),document.body.appendChild(n).onload=function(){var n;"es"===(0,i.session)().currentLanguage?window.zE((function(){window.zE.setLocale("es-419")})):window.zE((function(){window.zE.setLocale("fr")})),t.module.default&&window.zE("webWidget","helpCenter:setSuggestions",{labels:[t.module.default]}),window.zE("webWidget","updateSettings",{webWidget:{color:{theme:t.color||"#ffc400"},zIndex:22,launcher:{mobile:{labelVisible:!0}},contactForm:{suppress:!(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))},helpCenter:{messageButton:{"*":"Assistance ENT","es-419":"Asistencia ENT"}}}}),window.addEventListener("scroll",(function(){window.zE("webWidget","updateSettings",{webWidget:{launcher:{mobile:{labelVisible:window.scrollY<=5}}}})})),window.zE("webWidget:on","open",(function(){var t;(null===(t=e.me)||void 0===t?void 0:t.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))&&window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!1}}})})),window.zE("webWidget:on","userEvent",(function(t){var n,r=t.category,i=t.action,o=t.properties;"Contact Form Shown"===i&&"Zendesk Web Widget"===r&&o&&"contact-form"===o.name&&(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))&&(window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!0}}}),window.zE("webWidget","close"),window.open("/support","_blank"))}))}}}))},e}();function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["odeTracking"]},8945:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(9419),a=function(){function e(){this.restrict="E",this.templateUrl=n(6722).Z}return e.prototype.link=function(e,t,n,a){var s=this,u=(0,o.conf)().Platform.theme,c=(0,o.session)().user;e.closeBanner=function(){e.setCookie("test",30),e.showBanner=!1},e.getCookie=function(){for(var e="smartBanner=",t=decodeURIComponent(document.cookie).split(";"),n=0;n<t.length;n++){for(var r=t[n];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(e))return r.substring(12,r.length)}return null},e.setCookie=function(e,t){var n=new Date;n.setTime(n.getTime()+24*t*60*60*1e3);var r="expires="+n.toUTCString();document.cookie="smartBanner="+e+";"+r},e.showBanner=!1,e.init=function(){return r(s,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,o.http)().get("/conf/smartBanner").then((function(e){return 200==(0,o.http)().latestResponse.status&&null!==e?e:null}))];case 1:if(null!=(t=r.sent())){if(e.banner=t,-1!=(e.banner["excludeUserTypes-".concat(u.skin)]||[]).indexOf(c.type))return[2];e.showBanner=null==e.getCookie(),n=(0,o.conf)().Platform.idiom,e.icon=n.translate("smartbanner.icon.uri"),e.showBanner&&(/Android/i.test(navigator.userAgent)?(e.store=n.translate("smartbanner.android.store"),e.appRef=n.translate("smartbanner.android.uri")):/iPhone|iPad|iPod/i.test(navigator.userAgent)?(e.store=n.translate("smartbanner.ios.store"),e.appRef=n.translate("smartbanner.ios.uri")):e.showBanner=!1)}return[3,3];case 2:return r.sent(),[3,3];case 3:return[2]}}))}))},e.init()},e}();t.DirectiveFactory=function(){return new a}},4452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(e){this.xitiSvc=e,this.restrict="E",this.scope=!1}return e.prototype.link=function(e,t,n){this.xitiSvc.runScript()},e}();function r(e){return new n(e)}t.DirectiveFactory=r,r.$inject=["odeXiti"]},5012:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var n=function(){function e(e){this.helperSvc=e,this.restrict="A"}return e.prototype.link=function(e,t,n,r){var i=this;n.$observe("skinSrc",(function(){t.attr("src",i.helperSvc.toSkinUrl(n.skinSrc))}))},e}();function r(e){return new n(e)}t.Directive=n,t.DirectiveFactory=r,r.$inject=["odeThemeHelperService"]},5103:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(5262),a=function(){function e(e){this.helperSvc=e,this.restrict="EA"}return e.prototype.link=function(e,t,n,a){return r(this,void 0,void 0,(function(){var e,n,r,a,s,u,c,l;return i(this,(function(i){switch(i.label){case 0:return[4,(e=o.ConfigurationFrameworkFactory.instance().Platform.theme).getConf()];case 1:return n=i.sent(),[4,e.onSkinReady()];case 2:for(i.sent(),r=e.themeName,a=e.skinName,s=e.themeUrl,u=0,c=n.overriding;u<c.length;u++)if((l=c[u]).child===r&&l.bootstrapVersion){s="".concat(this.helperSvc.CDN,"/assets/themes/").concat(l.bootstrapVersion,"/skins/").concat(a,"/"),t.addClass(l.bootstrapVersion),this.helperSvc.loadThemeJs(l.bootstrapVersion);break}return this.helperSvc.applyStyle(s),[2]}}))}))},e}();function s(e){return new a(e)}t.Directive=a,t.DirectiveFactory=s,s.$inject=["odeThemeHelperService"]},6507:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,r){},e}();t.DirectiveFactory=function(){return new n}},8190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=function(e){this.$timeout=e};t.Controller=r;var i=function(){function e(e){this.$compile=e,this.restrict="E",this.template=n(4809).Z,this.replace=!0,this.scope={options:"&",ngModel:"=",ngChange:"&",search:"=?"},this.bindToController=!0,this.controller=["$timeout",r],this.controllerAs="ctrl",this.require=["autocomplete"]}return e.prototype.link=function(e,t,n,r){r&&r[0];n.autocomplete},e}();function o(e){return new i(e)}t.DirectiveFactory=o,o.$inject=["$compile"]},9269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nBase=void 0;var r=n(5262),i=function(){function e(e){this.$compile=e}return Object.defineProperty(e.prototype,"idiom",{get:function(){return r.ConfigurationFrameworkFactory.instance().Platform.idiom},enumerable:!1,configurable:!0}),e}();t.I18nBase=i},9806:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nPlaceholder",(function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nPlaceholder)+"</span>")(e);setTimeout((function(){t.attr("placeholder",o.text())}),10)}))},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},848:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nTitle",(function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nTitle)+"</span>")(e);setTimeout((function(){t.attr("title",o.text())}),10)}))},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},4048:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nValue",(function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nValue)+"</span>")(e);setTimeout((function(){t.attr("value",o.text())}),10)}))},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},1586:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.restrict="E",t}return i(t,e),t.prototype.link=function(e,t,n,r){var i=t.text().trim(),o=this.idiom.translate(i);t.html(this.$compile('<span class="no-style">'+o+"</span>")(e).html())},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},7329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterFactory=void 0;var r=n(9419),i=function(e,t){return(0,r.conf)().Platform.idiom.translate(e,t)};t.FilterFactory=function(){return i}},7484:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.restrict="A",t.replace=!0,t}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("content",(function(r){n.content&&t.html(i.$compile('<span class="no-style">'+i.idiom.translate(n.content)+"</span>")(e).html())})),n.$observe("attr",(function(r){if(n.attr){var o=i.$compile("<span>"+i.idiom.translate(n[n.attr])+"</span>")(e);setTimeout((function(){t.attr(n.attr,o.text())}),10)}})),n.$observe("attrs",(function(r){if(n.attrs){var o=e.$eval(n.attrs),a=function(){var n=i.$compile("<span>"+i.idiom.translate(o[s])+"</span>")(e);setTimeout((function(){t.attr(s,n.text())}),0)};for(var s in o)a()}})),n.$observe("key",(function(r){n.key&&t.html(i.$compile('<span class="no-style">'+i.idiom.translate(n.key)+"</span>")(e).html())}))},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},1411:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var a=o(n(4202)),s=n(9419),u=function(){function e(){this.restrict="E",this.template=n(9018).Z,this.scope={header:"@?",since:"@?",userprefsKey:"@?",userprefsField:"@",onChange:"&?",saveOnChange:"=?",showOnce:"=?",show:"=?"},this.transclude=!0}return e.prototype.link=function(e,t,n,o){return r(this,void 0,void 0,(function(){var n,r,o;return i(this,(function(i){switch(i.label){case 0:return n="infotip",a.default.isString(e.userprefsKey)&&e.userprefsKey.trim().length>0&&(n=e.userprefsKey.trim()),r=function(n){var r=null!=n?n:e.visible();e.onChange&&e.onChange({$visible:r}),r?t.find(".toast").addClass("show"):t.find(".toast").removeClass("show")},[4,(o=(0,s.conf)().User.preferences).load(n)];case 1:return i.sent(),e.visible=function(t){if(arguments.length<=0)return!1!==o.get(n)[e.userprefsField];o.get(n)[e.userprefsField]=t,r(t),e.saveOnChange&&o.save(n)},e.$watch("show",(function(t){void 0!==t&&e.visible(t)})),r(),e.showOnce&&(o.get(n)[e.userprefsField]=!1,o.save(n)),[2]}}))}))},e}();t.DirectiveFactory=function(){return new u}},1504:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var a=o(n(3336)),s=(function(){function e(e){this.all=e}e.prototype.stayOpen=function(){return r(this,void 0,void 0,(function(){var e,t,n;return i(this,(function(r){switch(r.label){case 0:e=0,t=this.all,r.label=1;case 1:return e<t.length?(n=t[e])?[4,n.stayOpen()]:[3,3]:[3,4];case 2:if(r.sent())return[2,!0];r.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}}))}))}}(),function(){function e(){this.restrict="E",this.template=n(9068).Z,this.transclude=!0,this.scope={show:"=",tiny:"=",onShow:"&?",onClose:"&",delegate:"=",delegateClose:"&?"}}return e.prototype.link=function(e,t,n,o){var s=e.delegate;t.children(".lightbox").find("> .background").on("click",(function(o){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return 0!==t.children(".lightbox").find("image-editor, share-panel, .import-files, .split-screen, [template=entcore\\/image-editor\\/main]").length?[3,3]:s?[4,s.stayOpen()]:[3,2];case 1:if(!0===r.sent())return[2];r.label=2;case 2:if(n.delegateClose&&!0===e.delegateClose({$element:t}))return[2];t.children(".lightbox").first().fadeOut(),(0,a.default)("body").css({overflow:"auto"}),(0,a.default)("body").removeClass("lightbox-opened"),e.$eval(e.onClose),e.$apply(),e.show=!1,e.$$phase||e.$parent.$apply(),r.label=3;case 3:return[2]}}))}))})),t.children(".lightbox").find("> .content > .close-lightbox > i.close-2x").on("click",(function(o){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return 0!==t.children(".lightbox").find("share-panel").length?[3,3]:s?[4,s.stayOpen()]:[3,2];case 1:if(!0===r.sent())return[2];r.label=2;case 2:if(n.delegateClose&&!0===e.delegateClose({$element:t}))return[2];t.children(".lightbox").first().fadeOut(),(0,a.default)("body").css({overflow:"auto"}),(0,a.default)("body").removeClass("lightbox-opened"),e.$eval(e.onClose),e.$apply(),e.show=!1,e.$$phase||e.$parent.$apply(),r.label=3;case 3:return[2]}}))}))})),t.children(".lightbox").on("mousedown",(function(e){e.stopPropagation()})),e.$watch("show",(function(r){if(r){n.onShow&&e.onShow({$element:t}),t.trigger("lightboxvisible");var i=t.children(".lightbox"),o=t.parents();e.backup={overflow:o.filter((function(e,t){return"visible"!==(0,a.default)(t).css("overflow-x")||"visible"!==(0,a.default)(t).css("overflow-y")})),zIndex:o.map((function(e,t){var n,r="";return-1!==(null===(n=(0,a.default)(t).attr("style"))||void 0===n?void 0:n.indexOf("z-index"))&&(r=(0,a.default)(t).css("z-index")),{element:(0,a.default)(t),index:r}}))},e.backup.overflow.forEach((function(e){(0,a.default)(e).css({overflow:"visible"})})),e.backup.zIndex.forEach((function(e){e.element.css("z-index",99999)})),setTimeout((function(){0===t.parents("header.main").length&&(0,a.default)("body").addClass("lightbox-opened"),i.fadeIn()}),100),(0,a.default)("body").css({overflow:"hidden"})}else{var s=!0;(0,a.default)("lightbox .lightbox").each((function(e,n){n!==t.children(".lightbox")[0]&&"block"===(0,a.default)(n).css("display")&&(s=!1)})),s&&((0,a.default)("body").removeClass("lightbox-opened"),(0,a.default)("body").css({overflow:"auto"})),e.backup&&(e.backup.overflow.forEach((function(e){(0,a.default)(e).css("overflow","")})),e.backup.zIndex.forEach((function(e){e.element.css("z-index",e.index)}))),t.children(".lightbox").fadeOut()}})),e.$on("$destroy",(function(){t.parents("lightbox").length||((0,a.default)("body").removeClass("lightbox-opened"),(0,a.default)("body").css({overflow:"auto"}),e.backup&&(e.backup.overflow.forEach((function(e){(0,a.default)(e).css("overflow","")})),e.backup.zIndex.forEach((function(e){e.element.css("z-index",e.index)}))))}))},e}());t.DirectiveFactory=function(){return new s}},8151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var n=function(){this.name="default"};t.Controller=n;var r=function(){function e(){this.restrict="A",this.controller=[n],this.require=["odeModalContainer"]}return e.prototype.link=function(e,t,n,r){if(r){var i=r[0];"string"==typeof n.odeModalContainer&&n.odeModalContainer.trim().length>0&&(i.name=n.odeModalContainer),i.attach=function(e){t&&e&&t.append(e)}}},e}();t.DirectiveFactory=function(){return new r}},5248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=n(9294),i=function(){function e(){this.size="md",this.container="default",this.id=null}return e.prototype.getStyle=function(){return{display:this.visible?"block":"none","background-color":"transparent"}},e.prototype.getSizeClass=function(){switch(this.size){case"sm":return"modal-sm";case"lg":return"modal-lg";case"xl":return"modal-xl";default:return""}},e}();t.Controller=i;var o=function(){function e(){this.restrict="E",this.template=n(7597).Z,this.scope={id:"@",size:"@?",container:"=?",visible:"=?",onClose:"&?"},this.bindToController=!0,this.transclude={title:"?odeModalTitle",body:"odeModalBody",footer:"?odeModalFooter"},this.controller=[i],this.controllerAs="ctrl",this.require=["odeModal","?^^odeModalContainer"]}return e.prototype.link=function(e,t,n,i){if(i){var o=i[0],a=i[1];a&&a.attach&&a.name===o.container&&a.attach(t),void 0!==n.id&&0!==n.id.length||(o.id=r.L10n.moment(new Date).format("YYMMDDHHMMssSSS")+(1e3*Math.random()).toFixed(0))}},e}();t.DirectiveFactory=function(){return new o}},4358:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){var i=new o.ObjectGuard((function(){return e.$eval(n.customGuard)}));return e.$watch((function(){return e.$eval(n.customGuard)}),(function(){i.reset()})),i},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},6197:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard((function(){return r.$dirty}),(function(){return!1}))},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},2235:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard((function(){return"object"==typeof r.$modelValue&&r.$modelValue.id||""}),(function(){return"object"==typeof r.$modelValue&&r.$modelValue.id||""}),(function(e,t){return e&&t?e._id==t._id:!e&&!t}))},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},8900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericGuardDirective=void 0;var r=n(3848),i=function(){function e(){this.require=["?ngModel","?^^guardRoot"],this.restrict="A"}return e.prototype.link=function(e,t,n,i){var o=i?i[0]:null,a=i?i[0]:null,s=this.guardFactory(e,t,n,o),u=0;if(null!=s)if(null!=o?o.$formatters.push((function(e){return 0==u&&(setTimeout((function(){return s.reset()})),u++),e})):setTimeout((function(){return s.reset()})),null!=a)a.registerGuard(s),e.$on("$destroy",(function(){a.unregisterGuard(s)}));else{var c=r.navigationGuardService.registerIndependantGuard(s);e.$on("$destroy",(function(){r.navigationGuardService.unregisterIndependantGuard(c)}))}},e}();t.GenericGuardDirective=i},5509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=n(3848),i=function(){function e(){this.rootID=""}return e.prototype.registerGuard=function(e){r.navigationGuardService.registerGuard(this.rootID,e)},e.prototype.unregisterGuard=function(e){r.navigationGuardService.unregisterGuard(this.rootID,e)},e.prototype.reset=function(){r.navigationGuardService.reset(this.rootID)},e}();t.Controller=i;var o=function(){function e(){this.restrict="A",this.scope={guardRoot:"@?"},this.controller=[i],this.require=["guardRoot"]}return e.prototype.link=function(e,t,n,i){var o,a=i?i[0]:null;if(a){a.rootID=null!==(o=e.guardRoot)&&void 0!==o?o:r.navigationGuardService.generateID();var s=r.AngularJSRouteChangeListener.getInstance(e.$root);r.navigationGuardService.registerListener(s),r.navigationGuardService.registerListener(r.DOMRouteChangeListener.getInstance()),e.$on("$destroy",(function(){r.navigationGuardService.unregisterListener(s),r.navigationGuardService.unregisterListener(r.DOMRouteChangeListener.getInstance()),r.navigationGuardService.unregisterRoot(a.rootID)}))}},e}();t.DirectiveFactory=function(){return new o}},1367:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard((function(){return r.$viewValue||""}),(function(){return r.$viewValue||""}))},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},9071:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=n(3848),a=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,r){var a=e.$eval(n.navigationTriggerParam||"{onEvent:'click'}");a.rootGuardId=a.rootGuardId||"*";var s=new o.ManualChangeListener;o.navigationGuardService.registerListener(s);var u=[],c=function(t){t&&t.preventDefault(),s.onChange.next({checkGuardId:a.rootGuardId,confirmMessageKey:a.guardMessageKey,accept:function(){e.$eval(n.navigationTrigger)},reject:function(){}})},l=function(e,t,n){e.on(t,n),u.push((function(){return e.off(t,n)}))};i.default.isString(a.onEvent)?l(t,a.onEvent,c):i.default.isArray(a.onEvent)&&a.onEvent.forEach((function(e,n,r){i.default.isString(e)&&r.lastIndexOf(e)===n&&l(t,e,c)})),e.$on("$destroy",(function(){!function(){for(var e=0,t=u;e<t.length;e++)(0,t[e])();u=[]}(),o.navigationGuardService.unregisterListener(s)}))},e}();t.DirectiveFactory=function(){return new a}},9948:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(){function e(){this.require="?^guardRoot",this.restrict="A"}return e.prototype.link=function(e,t,n,a){var s=this,u=a?a[0]:null;if(u){var c=n.resetGuardId,l=function(){return r(s,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return(t=e.$eval(n.resetGuard))instanceof Promise?[4,t]:[3,2];case 1:return r.sent(),[3,3];case 2:console.warn("[resetGuard] result is not instance of Promise"),r.label=3;case 3:return null!=c&&""!=c?o.navigationGuardService.reset(c):null!=u?u.reset():(console.warn("[resetGuard] A reset directive has no root, resetting all guards..."),o.navigationGuardService.resetAll()),[2]}}))}))},d=function(){var e=n.resetGuardEvent;if("string"!=typeof e||!e.trim()){var r=(t.prop("tagName")||"").toLowerCase();e="form"==r?"submit":"click"}return t.on(e,l),function(){return t.off(e,l)}}();e.$on("$destroy",(function(){d()}))}},e}();t.DirectiveFactory=function(){return new a}},1682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(){this.require="^popover",this.restrict="E"}return e.prototype.link=function(e,t,n,r){t.addClass("d-none")},e}();t.DirectiveFactory=function(){return new n}},8700:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=function(){function e(){this.require="^popover"}return e.prototype.link=function(e,t,n,r){var o=function(e){e=e.toUpperCase();var n=t[0];do{n=n.parentNode}while(n&&n.nodeName.toUpperCase()!==e);return n?i.default.element(n):t}("popover"),a=o.attr("mouse-event")||"mouseover",s=o.find("popover-content");o.on(a,(function(e){"click"===a&&(s.hasClass("d-none")&&e.stopPropagation(),i.default.element(document.querySelector("body")).one("click",(function(e){o.triggerHandler("close"),s.addClass("d-none")})));var t=s.offset(),n=s.width()||0,r=$(window).width()||0,u=s.height()||0,c=$(window).width()||0;t&&(t.left+n>r&&s.addClass("right"),t.left<0&&s.addClass("left"),t.top+u>c&&s.addClass("bottom")),s.removeClass("d-none")})),"mouseover"===a&&o.on("mouseout",(function(e){o.triggerHandler("close"),s.addClass("d-none")}))},e}();t.DirectiveFactory=function(){return new o}},8245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.PulsarController=void 0;var n=function(){};t.PulsarController=n;var r=function(){function e(){this.controller=[n],this.restrict="E"}return e.prototype.link=function(e,t,n,r){t.on("close",(function(){n.onClose&&e.$eval(n.onClose)}))},e}();t.DirectiveFactory=function(){return new r}},3868:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=r(n(3336)),o=function(){function e(e){this.quickstart=e,this.show={assistant:!1},this.hidePulsars=function(){(0,i.default)(".pulsar-button").addClass("hidden")}}return e.prototype.clearTimeout=function(){this.token&&clearTimeout(this.token)},e.prototype.goTo=function(e){this.quickstart.goTo(e.index),this.currentStep=this.quickstart.assistantIndex},e.prototype.next=function(){this.quickstart.nextAssistantStep(),this.currentStep=this.quickstart.assistantIndex,this.quickstart.assistantIndex||(this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout())},e.prototype.previous=function(){this.quickstart.previousAssistantStep(),this.currentStep=this.quickstart.assistantIndex},e.prototype.seeLater=function(){this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout(),this.quickstart.seeAssistantLater()},e.prototype.closeAssistant=function(){this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout(),this.quickstart.state.assistant=-1,this.quickstart.save()},e}();t.Controller=o;var a=function(){function e(e){this.helperSvc=e,this.restrict="E",this.templateUrl=n(5230).Z,this.scope=!0,this.bindToController=!0,this.controller=["odeQuickstartService",o],this.controllerAs="ctrl",this.require=["assistant"]}return e.prototype.link=function(e,t,n,r){var i=r?r[0]:null;!i||this.helperSvc.viewport<=this.helperSvc.FAT_MOBILE||i.quickstart.load((function(){if(i){if(-1===i.quickstart.state.assistant||0===i.quickstart.mySteps.length)return;i.hidePulsars(),i.show.assistant=!0,i.currentStep=i.quickstart.assistantIndex,i.steps=i.quickstart.mySteps,e.$apply()}}))},e}();function s(e){return new a(e)}t.DirectiveFactory=s,s.$inject=["odeNgHelperService"]},7424:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=n(9419),a=r(n(3336)),s=function(){function e(e,t,n){this.$compile=e,this.helperSvc=t,this.quickstartSvc=n,this.restrict="A",this.scope=!0}return e.prototype.link=function(e,t,r,s){var u=this,c=(0,o.conf)().Platform.idiom;if(t&&(e.me={hasWorkflow:(0,o.session)().hasWorkflow},!(this.helperSvc.viewport<=this.helperSvc.TABLET)&&e.me.hasWorkflow("org.entcore.portal.controllers.PortalController|quickstart"))){var l=e.$eval(r.pulsar);if(!l.workflow||e.me.hasWorkflow(l.workflow)){e.pulsarInfos=l,e.pulsarInfos.steps=[];var d=(0,a.default)("[pulsar]");d.each((function(t,n){var r=i.default.element(n).scope().$eval((0,a.default)(n).attr("pulsar"));r.el=n,e.pulsarInfos.steps.push(r)})),"object"==typeof l&&void 0!==l.index||console.error("Invalid pulsar object. Should look like pulsar=\"{ index: 0, i18n: 'my.key', position: 'top bottom'}\"");var f=null,h=null,p=30,v=10,m=function(){l.position||(l.position="center center");var r="center";-1!==l.position.indexOf("left")&&(r="left"),-1!==l.position.indexOf("right")&&(r="right");var s="center";-1!==l.position.indexOf("top")&&(s="top"),-1!==l.position.indexOf("bottom")&&(s="bottom"),document.querySelector("style#pulsar-css")||(0,a.default)(n(9325).Z).appendTo("body"),f=(0,a.default)('\n\t\t\t\t<div class="pulsar-button">\n\t\t\t\t\t<div class="pulse-spot"></div>\n\t\t\t\t</div>\n\t\t\t').appendTo("body"),l.className&&l.className.split(" ").forEach((function(e){null==f||f.addClass(e)})),f.data("active",!0);var m=!0,g=function(){var e,n,i,o,u,d,b,y,w,_,x,k,S,M,D=0,O=0;"string"==typeof l.delta&&(l.delta=c.translate(l.delta),D=parseInt(l.delta.split(" ")[0]),O=parseInt(l.delta.split(" ")[1]));var T=null!==(e=t.offset())&&void 0!==e?e:{left:0,top:0},P=null!==(n=t.width())&&void 0!==n?n:0,C=null!==(i=t.height())&&void 0!==i?i:0,E={left:T.left-35,right:T.left+P+5,center:T.left+P/2-15},A={top:T.top,bottom:T.top+C+5,center:T.top+C/2-15};if("top center"===l.position&&(A.top=T.top-p-5),"none"!==(null==f?void 0:f.css("display"))&&(null==f||f.offset({left:E[r]+D,top:A[s]+O}),l.style&&"number"==typeof l.style.zIndex&&(null==f||f.css("z-index",l.style.zIndex))),h&&h.find(".arrow").length){var j=E[r]-(null!==(o=h.children(".content").width())&&void 0!==o?o:0)-15,I=A[s]-v;"top"===s&&"center"===r&&(I=A[s]-(null!==(u=h.children(".content").height())&&void 0!==u?u:0)-15),"center"===s&&(I=A[s]-(null!==(d=h.children(".content").height())&&void 0!==d?d:0)/2),"center"===r&&(j=E[r]-(null!==(b=h.children(".content").width())&&void 0!==b?b:0)/2-2),"center"===s&&"center"===r&&(h.addClass("middle"),s="bottom"),"right"===r&&(j=E[r]+v+10),"bottom"===s&&(I="center"===r?A[s]+v+10:A[s]-15);var N=null!==(y=(0,a.default)(window).width())&&void 0!==y?y:0,R=null!==(w=(0,a.default)(window).height())&&void 0!==w?w:0,Y=15,L=I,F=j,W=F+(null!==(_=h.width())&&void 0!==_?_:0)+Y,V=L+(null!==(x=h.height())&&void 0!==x?x:0)+Y,U=N-((null!==(k=h.width())&&void 0!==k?k:0)+Y),G=R-((null!==(S=h.height())&&void 0!==S?S:0)+Y),$=F-U,H=Y-F,z=L-G,q=Y-L,B=h.find(".arrow"),Z=B.position().left,J=B.position().top;W>N&&(j=N-((null!==(M=h.width())&&void 0!==M?M:0)+Y),"center"===r&&m&&(B.css({left:Z+$,right:"auto"}),m=!1)),j<=Y&&(j=Y,"center"===r&&m&&(B.css({left:H+v,right:"auto"}),m=!1)),V>R&&(I=G,"bottom"===s&&m&&(B.css({top:z+5,bottom:"auto"}),m=!1)),I<Y&&(I=Y,"center"===s&&"center"!==r&&m&&(B.css({top:J-q,bottom:"auto"}),m=!1)),h.offset({left:j+D,top:I+O})}setTimeout(g,100)};g();var b=function(){var e,n,r,i,o,s,u;(0,a.default)(".pulsar-layer").remove();var c="[pulsar-highlight="+l.index+"]",d=(0,a.default)("body").find(c);0!==d.length&&(u=d),u||(u=t),(0,a.default)('<div class="pulsar-layer"></div>').width((null!==(e=u.outerWidth())&&void 0!==e?e:0)+20).height((null!==(n=u.outerHeight())&&void 0!==n?n:0)+20).offset({top:(null!==(i=null===(r=null==u?void 0:u.offset())||void 0===r?void 0:r.top)&&void 0!==i?i:0)-v,left:(null!==(s=null===(o=null==u?void 0:u.offset())||void 0===o?void 0:o.left)&&void 0!==s?s:0)-v}).css({position:"absolute"}).hide().appendTo("body").fadeIn("slow")};f.on("click",(function(n){(0,a.default)("body").css("pointer-events","none"),(0,a.default)("body").on("scroll touchmove mousewheel",(function(e){return e.preventDefault(),e.stopPropagation(),!1})),e.pulsarInfos.index<=0&&e.trackEvent(t[0],{detail:{open:"true"}}),e.pulsarInfos.steps=[],(d=(0,a.default)("[pulsar]")).each((function(t,n){var r=i.default.element(n).scope().$eval((0,a.default)(n).attr("pulsar"));r.el=n,e.pulsarInfos.steps.push(r)})),h=(0,a.default)("<pulsar></pulsar>").addClass(r).addClass(s),l.className&&l.className.split(" ").forEach((function(e){null==h||h.addClass(e)})),null==f||f.hide(),b(),(0,a.default)(window).on("resize.placeLayers",b),(0,o.http)().get("/infra/public/template/pulsar.html").then((function(t){var n=(0,a.default)(t);n.find("button").addClass("btn btn-primary");var r=u.$compile(n)(e);null==h||h.html(r)})),(0,a.default)("body").append(h)}))};i.default.element(window).on("resize",(function(){f&&f.data("active")&&f.css("display","")}));var g=function(){null==h||h.find("button").css("pointer-events","none"),(0,a.default)(window).off("resize.placeLayers"),null==f||f.fadeOut("slow",(function(){null==f||f.remove()})),null==h||h.fadeOut("slow",(function(){null==h||h.remove()})),(0,a.default)(".pulsar-layer").remove(),(0,a.default)("body").off("scroll touchmove mousewheel"),(0,a.default)("body").css("pointer-events",""),null==f||f.data("active",!1)};e.closePulsar=function(){h&&f&&(h.fadeOut(0,(function(){null==h||h.remove()})),f.removeClass("hidden"),(0,a.default)(".pulsar-layer").fadeOut(0,(function(){(0,a.default)(".pulsar-layer").remove()})),(0,a.default)("body").off("scroll touchmove mousewheel"),(0,a.default)("body").css("pointer-events",""),f.data("active",!1))},i.default.element(document).on("click",(function(t){(0,a.default)(t.target).parents("pulsar").length>0||(0,a.default)(t.target).parents(".pulsar-button").length>0||(0,a.default)(t.target).hasClass("pulsar-button")||e.closePulsar()})),e.paintPulsar=function(){m(),null==f||f.triggerHandler("click")},e.isLastStep=function(){return void 0===e.pulsarInfos.steps.find((function(t){return t.index>e.pulsarInfos.index}))},e.goTo=function(e){g(),u.quickstartSvc.goToAppStep(e.index),e.el&&i.default.element(e.el).scope().paintPulsar()},e.next=function(){g();var n=u.quickstartSvc.nextAppStep(),r=e.pulsarInfos.steps.find((function(e){return e.index===n}));if(void 0===r){if(void 0!==e.pulsarInfos.steps.find((function(e){return e.index>n})))return void e.next()}else if(r.el)return void(i.default.element(r.el).data("skip-pulsar")?e.next():i.default.element(r.el).scope().paintPulsar());e.trackEvent(t[0],{detail:{open:"false"}})},e.previous=function(){g();var t=u.quickstartSvc.previousAppStep();if(void 0!==e.pulsarInfos.steps.find((function(e){return e.index===t})))for(var n=0;n<e.pulsarInfos.steps.length;n++){var r=e.pulsarInfos.steps[n];if(r.index===t&&r.el){if(i.default.element(r.el).data("skip-pulsar"))return void e.previous();i.default.element(r.el).scope().paintPulsar()}}else void 0!==e.pulsarInfos.steps.find((function(e){return e.index<t}))&&e.previous()},e.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("pulsar",t);n&&e&&e.dispatchEvent(n)},this.quickstartSvc.load((function(){u.quickstartSvc.appIndex()===l.index&&m()}))}else t.removeAttr("pulsar")}},e}();function u(e,t,n){return new s(e,t,n)}t.DirectiveFactory=u,u.$inject=["$compile","odeNgHelperService","odeQuickstartService"]},9445:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Widget=t.WidgetContainer=t.Recorder=t.Infotip=t.Logout=t.SkinSrc=t.WithTheme=t.Navbar=t.Portal=t.Xiti=t.BindHtml=t.Autocomplete=t.Help=t.SmartBanner=t.ConnectorLightbox=t.Lightbox=t.PopoverOpener=t.PopoverContent=t.Popover=t.Pulsar=t.Assistant=t.AppTitle=t.ResetGuard=t.CustomGuard=t.DocumentGuard=t.DirtyGuard=t.InputGuard=t.GuardRoot=t.NavigationTrigger=t.I18nFilter=t.I18nPlaceholder=t.I18nTitle=t.I18nValue=t.I18n=t.Translate=t.ModalContainer=t.Modal=void 0,t.Modal=o(n(5248)),t.ModalContainer=o(n(8151)),t.Translate=o(n(7484)),t.I18n=o(n(1586)),t.I18nValue=o(n(4048)),t.I18nTitle=o(n(848)),t.I18nPlaceholder=o(n(9806)),t.I18nFilter=o(n(7329)),t.NavigationTrigger=o(n(9071)),t.GuardRoot=o(n(5509)),t.InputGuard=o(n(1367)),t.DirtyGuard=o(n(6197)),t.DocumentGuard=o(n(2235)),t.CustomGuard=o(n(4358)),t.ResetGuard=o(n(9948)),t.AppTitle=o(n(6507)),t.Assistant=o(n(3868)),t.Pulsar=o(n(7424)),t.Popover=o(n(8245)),t.PopoverContent=o(n(1682)),t.PopoverOpener=o(n(8700)),t.Lightbox=o(n(1504)),t.ConnectorLightbox=o(n(4262)),t.SmartBanner=o(n(8945)),t.Help=o(n(8961)),t.Autocomplete=o(n(8190)),t.BindHtml=o(n(3030)),t.Xiti=o(n(4452)),t.Portal=o(n(3010)),t.Navbar=o(n(6644)),t.WithTheme=o(n(5103)),t.SkinSrc=o(n(5012)),t.Logout=o(n(737)),t.Infotip=o(n(1411)),t.Recorder=o(n(1098)),t.WidgetContainer=o(n(4406)),t.Widget=o(n(5210))},4406:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=r(n(4202)),o=n(5262),a=function(){function e(e,t){this.widgetSvc=e,this.helperSvc=t}return e.prototype.loadWidgets=function(){var e=this,t=function(e,t){return e.userPref.index<t.userPref.index?-1:e.userPref.index===t.userPref.index?0:1};this.dndWidgets=this.widgetSvc.list().filter((function(t){return t.userPref.position===e.position&&t.userPref.show&&!t.platformConf.mandatory})).sort(t),this.lockedWidgets=this.widgetSvc.list().filter((function(t){return t.userPref.position===e.position&&t.platformConf.mandatory})).sort(t)},e.prototype.updateAndSave=function(){var e;return null===(e=this.dndWidgets)||void 0===e||e.forEach((function(e,t){e.userPref.index=t})),o.WidgetFrameworkFactory.instance().saveUserPrefs()},e.prototype.checkPosition=function(e){var t,n;return(null===(t=e.userPref)||void 0===t?void 0:t.position)===this.position||"left"===(null===(n=e.userPref)||void 0===n?void 0:n.position)&&!this.position},Object.defineProperty(e.prototype,"allowedDndTypes",{get:function(){return[""+this.position]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileView",{get:function(){return this.helperSvc.viewport<992},enumerable:!1,configurable:!0}),e.prototype.onDnDDragOver=function(e,t,n,r){var i=n===this.position;return console.log("index="+t+", type="+n+", dropEffect="+r+", allowed="+i),i||this.signalReject&&this.signalReject(),i},e.prototype.onDnDDrop=function(e,t,n,r){if(this.dndWidgets&&0<=n&&n<=this.dndWidgets.length){var i=this.dndWidgets.findIndex((function(e){return e.platformConf.id===t}));if(-1===i||i===n)return!1;var o=this.dndWidgets[i];return this.dndWidgets.splice(i,1),n>0&&n>=i&&n--,this.dndWidgets.splice(n,0,o),this.trackEvent(e,{detail:{move:o.platformConf.name,from:i+1,to:n+1}}),this.updateAndSave(),!0}return!1},e.prototype.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("ode-widget-container",t);n&&e.currentTarget&&e.currentTarget.dispatchEvent(n)},e}();t.Controller=a;var s=function(){function e(){this.restrict="A",this.template=n(6066).Z,this.scope={},this.bindToController=!0,this.controller=["odeWidgetService","odeNgHelperService",a],this.controllerAs="ctrl",this.require=["odeWidgetContainer"]}return e.prototype.link=function(e,t,n,r){var o;if(r){var a=r[0],s={position:"left"},u=null!==(o=n.odeWidgetContainer)&&void 0!==o?o:s;if("string"==typeof u)try{u=i.default.fromJson(u)}catch(e){u=s}u.position||(u.position="left"),a.signalReject=function(){var e="dndReject",n=t.children("ul[dnd-list][dnd-dragover]");n.hasClass(e)||(n.addClass(e),setTimeout((function(){n.removeClass(e)}),1500))},a.widgetSvc.initialize().then((function(){a.position=u.position,a.loadWidgets(),e.$apply()}));var c=a.widgetSvc.onChange().subscribe({next:function(t){a.loadWidgets(),e.$apply()}});e.$on("$destroy",(function(){c&&c.unsubscribe()}))}},e}();t.DirectiveFactory=function(){return new s}},5210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var n=function(e){this.widgetSvc=e,this.widget=null};t.Controller=n;var r=function(){function e(e,t){this.$compile=e,this.widgetLoader=t,this.restrict="A",this.scope={widget:"=odeWidget"},this.bindToController=!0,this.controller=["odeWidgetService",n],this.controllerAs="ctrl",this.require=["odeWidget"]}return e.prototype.link=function(e,t,n,r){var i=this;if(r){var o=r[0];this.widgetLoader(o.widget.platformConf.name).then((function(){var n="<ode-".concat(o.widget.platformConf.name,"></ode-").concat(o.widget.platformConf.name,">"),r=i.$compile(n)(e);t.append(r)}))}},e}();function i(e,t){return new r(e,t)}t.DirectiveFactory=i,i.$inject=["$compile","odeWidgetLoader"]},9294:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Samples=void 0,t.Samples=o(n(4679)),a(n(9445),t),a(n(6731),t),a(n(1032),t),a(n(9419),t),"undefined"!=typeof window&&(window.entcore=window.entcore||{},window.entcore["ode-ngjs-front"]=e.exports)},6586:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeBaseModule=void 0;var i=r(n(4202)),o=n(6731),a=n(5262),s=i.default.module("odeBase",["ngSanitize","ngRoute"],["$interpolateProvider",function(e){e.startSymbol("[["),e.endSymbol("]]")}]).config(["$sceDelegateProvider",function(e){e.resourceUrlWhitelist(["self",a.ConfigurationFrameworkFactory.instance().Platform.cdnDomain+"/**"])}]);t.odeBaseModule=function(){return s.value("notify",o.notify).service("odeNotify",o.NotifyService).service("odeNgHelperService",o.NgHelperService).service("odeSession",o.SessionService).service("odeTracking",o.TrackingService).service("odeXiti",o.XitiService)}},7211:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeI18nModule=void 0;var i=r(n(4202)),o=n(9445),a=n(6731),s=i.default.module("odeI18n",[]);t.odeI18nModule=function(){return s.directive("translate",o.Translate.DirectiveFactory).directive("i18n",o.I18n.DirectiveFactory).directive("i18nValue",o.I18nValue.DirectiveFactory).directive("i18nPlaceholder",o.I18nPlaceholder.DirectiveFactory).directive("i18nTitle",o.I18nTitle.DirectiveFactory).filter("i18n",o.I18nFilter.FilterFactory).service("odeI18n",a.I18nService)}},1032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OdeModules=void 0;var r=n(6586),i=n(7211),o=n(6837),a=n(2357),s=function(){function e(){}return e.getBase=function(){return(0,r.odeBaseModule)().name},e.getI18n=function(){return(0,i.odeI18nModule)().name},e.getUi=function(){return(0,o.odeUiModule)().name},e.getWidgets=function(){return(0,a.odeWidgetModule)().name},e}();t.OdeModules=s},6837:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeUiModule=void 0;var i=r(n(4202)),o=n(9445),a=n(6731),s=(n(807),i.default.module("odeUi",["dndLists"]));t.odeUiModule=function(){return s.directive("odePortal",o.Portal.DirectiveFactory).directive("odeNavbar",o.Navbar.DirectiveFactory).directive("withTheme",o.WithTheme.DirectiveFactory).directive("odeModal",o.Modal.DirectiveFactory).directive("odeModalContainer",o.ModalContainer.DirectiveFactory).directive("odeInfotip",o.Infotip.DirectiveFactory).directive("navigationTrigger",o.NavigationTrigger.DirectiveFactory).directive("guardRoot",o.GuardRoot.DirectiveFactory).directive("inputGuard",o.InputGuard.DirectiveFactory).directive("dirtyGuard",o.DirtyGuard.DirectiveFactory).directive("documentGuard",o.DocumentGuard.DirectiveFactory).directive("customGuard",o.CustomGuard.DirectiveFactory).directive("resetGuard",o.ResetGuard.DirectiveFactory).directive("appTitle",o.AppTitle.DirectiveFactory).directive("logout",o.Logout.DirectiveFactory).directive("popover",o.Popover.DirectiveFactory).directive("popoverContent",o.PopoverContent.DirectiveFactory).directive("popoverOpener",o.PopoverOpener.DirectiveFactory).directive("assistant",o.Assistant.DirectiveFactory).directive("pulsar",o.Pulsar.DirectiveFactory).directive("lightbox",o.Lightbox.DirectiveFactory).directive("connectorLightbox",o.ConnectorLightbox.DirectiveFactory).directive("connectorLightboxTrigger",o.ConnectorLightbox.TriggerDirectiveFactory).directive("smartBanner",o.SmartBanner.DirectiveFactory).directive("help",o.Help.DirectiveFactory).directive("bindHtml",o.BindHtml.DirectiveFactory).directive("xiti",o.Xiti.DirectiveFactory).directive("autocomplete",o.Autocomplete.DirectiveFactory).directive("skinSrc",o.SkinSrc.DirectiveFactory).directive("odeRecorder",o.Recorder.DirectiveFactory).directive("odeWidgetContainer",o.WidgetContainer.DirectiveFactory).directive("odeWidget",o.Widget.DirectiveFactory).service("odeThemeHelperService",a.ThemeHelperService).service("odeQuickstartService",a.QuickstartService).service("odeWidgetService",a.WidgetService).service("odeRichContentService",a.RichContentService).service("odeVideoUploadService",a.VideoUploadService).service("odeVideoEventTrackerService",a.VideoEventTrackerService)}},2357:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeWidgetModule=t.KnownWidget=void 0;var a,s=o(n(4202));!function(e){e.maxicours="maxicours-widget",e.cursus="cursus-widget",e.school="school-widget",e.recordMe="record-me",e.agenda="agenda-widget",e.qwant="qwant",e.bookmark="bookmark-widget",e.rss="rss-widget",e.myApps="my-apps",e.carnetDeBord="carnet-de-bord",e.dicoDeLaZone="dicodelazone-widget",e.calendar="calendar-widget",e.universalis="universalis-widget",e.briefme="briefme-widget",e.lastInfos="last-infos-widget",e.edumalin="edumalin-widget",e.mediacentre="mediacentre-widget",e.cantine="cantine-widget"}(a=t.KnownWidget||(t.KnownWidget={}));var u=s.default.module("odeWidgets",[]).factory("odeWidgetLoader",["$injector",function(e){var t=this;return function(o){return r(t,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:switch(o){case a.maxicours:return[3,1];case a.cursus:return[3,3];case a.school:return[3,5];case a.recordMe:return[3,7];case a.agenda:return[3,9];case a.qwant:return[3,11];case a.bookmark:return[3,13];case a.rss:return[3,15];case a.myApps:return[3,17];case a.carnetDeBord:return[3,19];case a.dicoDeLaZone:return[3,21];case a.calendar:return[3,23];case a.universalis:return[3,25];case a.briefme:return[3,27];case a.lastInfos:return[3,29];case a.edumalin:return[3,31];case a.mediacentre:return[3,33];case a.cantine:return[3,35]}return[3,37];case 1:return[4,new Promise((function(e,t){n.e(536).then(function(t){var r=n(3132);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 2:case 4:case 6:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:return t.sent(),[3,38];case 3:return[4,new Promise((function(e,t){n.e(484).then(function(t){var r=n(1916);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 5:return[4,new Promise((function(e,t){n.e(306).then(function(t){var r=n(5623);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 7:return[4,new Promise((function(e,t){n.e(932).then(function(t){var r=n(1317);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 9:return[4,new Promise((function(e,t){n.e(815).then(function(t){var r=n(624);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 11:return[4,new Promise((function(e,t){n.e(165).then(function(t){var r=n(3399);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 13:return[4,new Promise((function(e,t){n.e(364).then(function(t){var r=n(9278);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 15:return[4,new Promise((function(e,t){n.e(390).then(function(t){var r=n(7377);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 17:return[4,new Promise((function(e,t){n.e(649).then(function(t){var r=n(1204);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 19:return[4,new Promise((function(e,t){n.e(438).then(function(t){var r=n(5613);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 21:return[4,new Promise((function(e,t){n.e(368).then(function(t){var r=n(2579);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 23:return[4,new Promise((function(e,t){n.e(556).then(function(t){var r=n(9492);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 25:return[4,new Promise((function(e,t){n.e(142).then(function(t){var r=n(462);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 27:return[4,new Promise((function(e,t){n.e(539).then(function(t){var r=n(2445);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 29:return[4,new Promise((function(e,t){n.e(376).then(function(t){var r=n(5479);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 31:return[4,new Promise((function(e,t){n.e(447).then(function(t){var r=n(3691);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 33:return[4,new Promise((function(e,t){n.e(820).then(function(t){var r=n(5116);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 35:return[4,new Promise((function(e,t){n.e(91).then(function(t){var r=n(8544);e(r.odeModuleName)}.bind(null,n)).catch((function(e){console.log(e),t()}))})).then((function(t){e.loadNewModules([t])}))];case 37:throw'Unknown widget "'.concat(o,'"');case 38:return[2]}}))}))}}]);t.odeWidgetModule=function(){return u}},4329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceFactory=t.AlertSvc=void 0;var n=function(){function e(e){this.$window=e}return e.prototype.alert=function(e){this.$window.alert(null!=e?e:"Undefined message...")},e}();function r(e){return new n(e)}t.AlertSvc=n,t.ServiceFactory=r,r.$inject=["$window"]},4679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AlertSvc=t.SaySomething=void 0,t.SaySomething=o(n(2285)),t.AlertSvc=o(n(4329))},2285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=t.Controller=void 0;var r=function(){function e(e){this.$http=e}return e.prototype.sayHello=function(){return"".concat(this.what,", ").concat(this.userName," !")},e}();t.Controller=r;var i=function(){function e(e){this.$compile=e,this.restrict="E",this.template=n(2011).Z,this.scope={what:"@",userName:"=ngModel"},this.bindToController=!0,this.controller=["$http",r],this.controllerAs="ctrl",this.require=["saySomething","ngModel"]}return e.prototype.link=function(e,t,n,r){var i=r?r[0]:null,o=r?r[1]:null;console.log(null==i?void 0:i.userName),console.log(o)},e}();function o(e){return new i(e)}t.Directive=i,t.DirectiveFactory=o,o.$inject=["$compile"]},1760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nService=void 0;var r=(0,n(9419).conf)().Platform.idiom,i=function(){function e(){}return e.prototype.translate=function(e){return r.translate(e)},e}();t.I18nService=i},6731:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(7774),t),i(n(1760),t),i(n(4763),t),i(n(1599),t),i(n(6615),t),i(n(1147),t),i(n(9698),t),i(n(7374),t),i(n(298),t),i(n(2411),t),i(n(8328),t),i(n(7291),t)},1147:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NgHelperService=void 0;var i=r(n(4202)),o=r(n(3336)),a=function(){function e(){}return e.prototype.safeApply=function(e,t){var n=e.$root.$$phase;"$apply"==n||"$digest"==n?i.default.isFunction(t)&&t(e):"string"==typeof t||i.default.isFunction(t)?e.$apply(t):e.$apply()},e.prototype.each=function(e,t){for(var n=0;n<(null==e?void 0:e.length);n++)t(n,e[n])},e.prototype.offset=function(e,t){if(void 0!==t&&e.css("position","relative").css("top",t.top+"px").css("left",t.left+"px"),!e[0].getClientRects().length)return{top:0,left:0};var n=e[0].getBoundingClientRect();return{top:n.top+window.pageYOffset,left:n.left+window.pageXOffset}},e.prototype.width=function(e){var t;return null!==(t=(0,o.default)(e).width())&&void 0!==t?t:0},e.prototype.height=function(e){var t;return null!==(t=(0,o.default)(e).height())&&void 0!==t?t:0},e.prototype.parents=function(e,t){for(var n=i.default.element("<div></div>"),r=0;r<(null==e?void 0:e.length);r++){var o=e[r];do{(o=o.parentNode).matches(t)&&n.append(o)}while(o)}return n.children()},Object.defineProperty(e.prototype,"viewport",{get:function(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"WIDE_SCREEN",{get:function(){return 1200},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"TABLET",{get:function(){return 800},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"FAT_MOBILE",{get:function(){return 550},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"SMALL_MOBILE",{get:function(){return 420},enumerable:!1,configurable:!0}),e}();t.NgHelperService=a},7774:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.notify=t.NotifyService=void 0;var i=r(n(4202)),o=n(9419),a=n(991);i.default.element("head").append('<style id="humane-js">\n .humane,\n .humane-original {\n position: fixed;\n -moz-transition: all 0.2s ease-out;\n -webkit-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n z-index: 100000;\n filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);\n }\n .humane,\n .humane-original {\n font-family: Ubuntu, Verdana, sans-serif;\n line-height: 40px;\n font-size: 25px;\n top: 25%;\n left: 25%;\n opacity: 0;\n width: 50%;\n min-height: 40px;\n padding: 10px;\n text-align: center;\n background-color: #000;\n color: #fff;\n -webkit-border-radius: 15px;\n border-radius: 15px;\n }\n .humane p,\n .humane-original p,\n .humane ul,\n .humane-original ul {\n margin: 0;\n padding: 0;\n }\n .humane ul,\n .humane-original ul {\n list-style: none;\n }\n .humane.humane-original-info,\n .humane-original.humane-original-info {\n background-color: #030;\n }\n .humane.humane-original-success,\n .humane-original.humane-original-success {\n background-color: #030;\n }\n .humane.humane-original-error,\n .humane-original.humane-original-error {\n background-color: #300;\n }\n .humane.humane-animate,\n .humane-original.humane-original-animate {\n opacity: 0.8;\n }\n .humane.humane-animate:hover,\n .humane-original.humane-original-animate:hover {\n opacity: 0.6;\n }\n .humane.humane-js-animate,\n .humane-original.humane-original-js-animate {\n opacity: 0.8;\n }\n .humane.humane-js-animate:hover,\n .humane-original.humane-original-js-animate:hover {\n opacity: 0.6;\n filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);\n }\n</style>');var s=function(){function e(){}return e.prototype.message=function(e,t,n){t=(0,o.conf)().Platform.idiom.translate(t);var r={addnCls:"humane-original-"+e};"number"==typeof n&&(r.timeout=n),a.spawn(r)(t)},e.prototype.error=function(e,t){this.message("error",e,t)},e.prototype.info=function(e,t){this.message("info",e,t)},e.prototype.success=function(e,t){this.message("success",e,t)},e}();t.NotifyService=s,t.notify=new s},9698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickstartService=void 0;var r=n(9419),i=(0,r.conf)().Platform.theme,o={get me(){return(0,r.session)().user}},a=function(){function e(){this.app="",this.steps={},this.state={},this.types={ENSEIGNANT:"teacher",ELEVE:"student",PERSEDUCNAT:"personnel",PERSRELELEVE:"relative",SUPERADMIN:""},this.mySteps=[],this.assistantIndex={},this.loaded=!1,this.loading=!1,this.awaiters=[]}return e.prototype.assistantStep=function(e){return i.basePath+"template/assistant/"+this.types[o.me.type]+"/"+e+".html"},e.prototype.nextAssistantStep=function(){this.state.assistant++,this.state.assistant===this.steps[this.types[o.me.type]]?(this.state.assistant=-1,this.assistantIndex=void 0):this.assistantIndex=this.mySteps[this.state.assistant],this.save()},Object.defineProperty(e.prototype,"assistantTimerFormat",{get:function(){return"MM/DD/YYYY HH:mm"},enumerable:!1,configurable:!0}),e.prototype.seeAssistantLater=function(){this.state.assistantTimer=r.L10n.moment().format(this.assistantTimerFormat),this.save()},e.prototype.getAppStep=function(){return this.state[i.skin][this.app]},e.prototype.goToAppStep=function(e){return this.state[i.skin][this.app]=e,this.save(),e},e.prototype.nextAppStep=function(){return this.goToAppStep(this.getAppStep()+1)},e.prototype.previousAppStep=function(){return this.goToAppStep(this.getAppStep()-1)},e.prototype.closeApp=function(){this.goToAppStep(-1)},e.prototype.appIndex=function(){return this.app=window.location.href.split("//")[1].split("/").slice(1).join("/"),this.state[i.skin]||(this.state[i.skin]={}),this.state[i.skin][this.app]||(this.state[i.skin][this.app]=0),this.state[i.skin][this.app]},e.prototype.previousAssistantStep=function(){this.state.assistant--,this.state.assistant<0&&(this.state.assistant=0),this.assistantIndex=this.mySteps[this.state.assistant],this.save()},e.prototype.save=function(e){(0,r.http)().putJson("/userbook/preference/quickstart",this.state).then((function(){"function"==typeof e&&e()}))},e.prototype.goTo=function(e){e>this.mySteps.length&&(e=-1),this.state.assistant=e,-1!==e&&(this.assistantIndex=this.mySteps[e]),this.save()},e.prototype.load=function(e){var t=this;this.loaded?"function"==typeof e&&e():(e&&this.awaiters.push(e),this.loading||(this.loading=!0,(0,r.http)().get("/userbook/preference/quickstart").then((function(e){var n;if(e.preference)try{n=JSON.parse(e.preference)}catch(e){console.log("Error parsing quickstart preferences")}n||(n={}),n.assistant||(n.assistant=0),n[i.skin]||(n[i.skin]={}),t.state=n,-1===n.assistant||n.assistantTimer&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).year()===r.L10n.moment().year()&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).dayOfYear()===r.L10n.moment().dayOfYear()&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).hour()===r.L10n.moment().hour()?(t.loaded=!0,t.awaiters.forEach((function(e){"function"==typeof e&&e()}))):(0,r.http)().get(i.basePath+"template/assistant/steps.json").then((function(e){t.steps=e;for(var n=t.steps[t.types[o.me.type]],r=0;r<n;r++)t.mySteps.push({index:r,path:t.assistantStep(r)}),t.assistantIndex=t.mySteps[t.state.assistant];t.loaded=!0,t.awaiters.forEach((function(e){"function"==typeof e&&e()}))}))}))))},e}();t.QuickstartService=a},2411:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RichContentService=void 0;var i=r(n(3336)),o=function(){function e(e){this.$compile=e}return e.prototype.apply=function(e,t,n){var r=(0,i.default)("<div>"+(e||"")+"</div>");r.find("[resizable]").removeAttr("resizable").css("cursor","initial"),r.find("[bind-html]").removeAttr("bind-html"),r.find("[ng-include]").removeAttr("ng-include"),r.find("[ng-transclude]").removeAttr("ng-transclude"),r.find("[draggable]").removeAttr("draggable").css("cursor","initial"),r.find("[contenteditable]").removeAttr("contenteditable"),r.find("script").remove(),r.find("*").each((function(e,t){for(var n=t.attributes,r=n.length-1;r>=0;r--)(n[r].name.startsWith("on")||n[r].value.includes("javascript:"))&&t.removeAttribute(n[r].name)}));var o=r[0].outerHTML;t.html(this.$compile(o)(n.$parent)),t.find("audio").each((function(e,t){var n=(0,i.default)(t).parent();(0,i.default)(t).attr("src",t.src).attr("preload","none").detach().appendTo(n)})),t.find("img").css({cursor:""})},e.$inject=["$compile"],e}();t.RichContentService=o},4763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionService=void 0;var r=n(9419),i=function(){function e(){}return e.prototype.hasWorkflow=function(e){return(0,r.session)().hasWorkflow(e)},e.prototype.getLanguage=function(){return(0,r.notif)().onSessionReady().promise.then((function(e){return(0,r.session)().currentLanguage}))},e.prototype.getBookmarks=function(){return(0,r.notif)().onSessionReady().promise.then((function(e){return(0,r.conf)().User.bookmarkedApps}))},e}();t.SessionService=i},6615:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeHelperService=void 0;var a=o(n(4202)),s=n(9419),u=o(n(3336)),c=function(){function e(e){this.ngHelperSvc=e,this.iconOfWidget={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme big","edumalin-widget":"ic-widget-edumalin","mediacentre-widget":"ic-widget-mediacentre","cantine-widget":"ic-widget-cantine"}}return Object.defineProperty(e.prototype,"platform",{get:function(){return(0,s.conf)().Platform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CDN",{get:function(){return this.platform.cdnDomain},enumerable:!1,configurable:!0}),e.prototype.getBootstrapThemePath=function(){return r(this,void 0,void 0,(function(){var e,t,n,r,o;return i(this,(function(i){switch(i.label){case 0:return e=this.platform.theme.themeName,[4,this.platform.theme.getConf()];case 1:for(t=i.sent(),n=0,r=t.overriding;n<r.length;n++)if((o=r[n]).child===e)return[2,"".concat(this.CDN,"/assets/themes/").concat(o.bootstrapVersion)];return[2,"".concat(this.CDN,"/assets/themes/").concat(e)]}}))}))},e.prototype.getBootstrapSkinPath=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,this.getBootstrapThemePath()];case 1:return e=t.sent(),[2,"".concat(e,"/skins/").concat(this.platform.theme.skinName)]}}))}))},e.prototype.toSkinUrl=function(e){if(!a.default.element(document.querySelectorAll("#theme")).attr("href"))return"";var t=this.platform.theme.basePath;return-1===e.indexOf("http://")&&-1===e.indexOf("https://")&&-1===e.indexOf("/workspace/")?t+e:e},e.prototype.loadOldWrappedTheme=function(e,t){(0,u.default)("#themeOld").remove();var n=a.default.element('<link rel="stylesheet" \n type="text/css" \n href="'.concat(this.platform.cdnDomain,"/assets/themes/").concat(e,"/skins/").concat(t,"/wrapped.theme.css?version=").concat(this.platform.deploymentTag,'"\n id="themeOld"\n crossorigin="anonymous" />'));(0,u.default)("head").append(n)},e.prototype.loadThemeJs=function(e){(0,u.default)("#themeJS").remove();var t=a.default.element('<script\n type="text/javascript"\n src="'.concat(this.platform.cdnDomain,"/assets/themes/").concat(e,"/js/theme.js?version=").concat(this.platform.deploymentTag,'"\n id="themeJS" />'));(0,u.default)("body").append(t)},e.prototype.applyStyle=function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){return e&&e.length>0&&e.lastIndexOf("/",e.length-1)!==e.length-1&&(e+="/"),e="".concat(e,"theme.css?version=").concat(this.platform.deploymentTag),0===(0,u.default)("#theme").length?(t=a.default.element('<link rel="stylesheet" \n type="text/css" \n href="'.concat(e,'"\n id="theme"\n crossorigin="anonymous" />')),n=a.default.element('<link rel="icon" href="'.concat(this.platform.theme.basePath,'img/illustrations/favicon.ico" />')),t.on("load",(function(e){(0,u.default)("body").show()})),(0,u.default)("head").append(t).append(n),setTimeout((function(){(0,u.default)("body").show()}),300)):(0,u.default)("#theme").attr("href",e),[2]}))}))},e.prototype.listThemes=function(){return this.platform.theme.listThemes()},e.prototype.setTheme=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,this.getBootstrapThemePath()];case 1:return t=n.sent(),this.applyStyle("".concat(t,"/skins/").concat(e._id)),this.platform.theme.setDefaultTheme(e),[2]}}))}))},e.prototype.getIconCode=function(e){var t=e.icon.trim().toLowerCase()||"";switch(t&&t.length>0?t.endsWith("-large")&&(t=t.replace("-large","")):t=e.displayName.trim().toLowerCase(),t=(0,s.conf)().Platform.idiom.removeAccents(t)){case"admin.title":t="admin";break;case"banques des savoirs":t="banquesavoir";break;case"collaborativewall":t="collaborative-wall";break;case"communautés":t="community";break;case"directory.user":t="userbook";break;case"emploi du temps":t="edt";break;case"messagerie":t="conversation";break;case"news":t="actualites";break;case"homeworks":case"cahier de texte":t="cahier-de-texte";break;case"diary":case"cahier de texte 2d":t="cahier-textes"}return t},e.prototype.getWidgetIconClass=function(e){return this.iconOfWidget[e.platformConf.name]},e.$inject=["odeNgHelperService"],e}();t.ThemeHelperService=c},7374:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackingService=void 0;var a=o(n(4202)),s=n(9419),u=function(){function e(e,t,n){this.$document=e,this.$location=t,this.$rootScope=n,this.hasOptedIn=!1}return e.prototype.loadParams=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return e=this,[4,(0,s.conf)().Platform.analytics.parameters("matomo")];case 1:return[2,e._params=t.sent()]}}))}))},e.prototype.trackApp=function(e){var t=this;this.loadParams().then((function(e){var n;if(e&&t.shouldTrackCurrentApp())try{var r=window._paq=null!==(n=window._paq)&&void 0!==n?n:[];r.push(["setRequestMethod","POST"]),e.UserId&&r.push(["setUserId",e.UserId]),e.Profile&&r.push(["setCustomDimension",1,e.Profile]),e.School&&r.push(["setCustomDimension",2,e.School]),e.Project&&r.push(["setCustomDimension",3,e.Project]),r.push(["trackPageView"]),r.push(["enableLinkTracking"]),function(){var t;r.push(["setTrackerUrl",e.url+"matomo.php"]),r.push(["setSiteId",e.siteId]);var n=document,i=n.createElement("script"),o=n.getElementsByTagName("script")[0];i.type="text/javascript",i.async=!0,i.src=e.url+"ode.js",null===(t=o.parentNode)||void 0===t||t.insertBefore(i,o)}();var i=t;if(r.push([function(){i.hasOptedIn=!this.isUserOptedOut(),i.$rootScope.$digest()}]),e.detailApps){var o=(0,s.session)().user;if(a.default.isArray(e.doNotTrack)&&a.default.isArray(o.apps))for(var u=0;u<o.apps.length;u++)if(o.apps[u]&&o.apps[u].address&&o.apps[u].name&&-1!==t.$location.absUrl().indexOf(o.apps[u].address)&&-1!==e.doNotTrack.indexOf(o.apps[u].name))return;var c=t.$location.absUrl().split("#")[0];t.trackPage(t.$document[0].title,c)}}catch(e){console.error('Invalid tracker object. Should look like {"siteId": 99999, "url":"http://your.matomo.server.com/"}"',e)}}))},e.prototype.trackPage=function(e,t){var n=this;this.loadParams().then((function(r){if(r&&n.shouldTrackCurrentApp()){var i=window._paq=window._paq||[];i.push(["setDocumentTitle",e]),i.push(["setCustomUrl",t]),i.push(["trackPageView"])}}))},e.prototype.willTrackEvent=function(e){var t=this._params;if(!t)return!1;var n=this.getCurrentMatchingApps();if(t.trackOnly&&t.trackOnly.length>0){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1!==t.trackOnly.indexOf("".concat(o.name,".").concat(e))||-1!==t.trackOnly.indexOf("*.".concat(e)))return!0}return!1}if(t.doNotTrack instanceof Array&&t.doNotTrack.length>0)for(var a=0,s=n;a<s.length;a++){o=s[a];if(-1!==t.doNotTrack.indexOf("".concat(o.name,".").concat(e))||-1!==t.doNotTrack.indexOf("*.".concat(e)))return!1}return!0},e.prototype.trackEvent=function(e,t,n,r){this.loadParams().then((function(i){if(i){var o=window._paq=window._paq||[],a=["trackEvent",e,t];"string"==typeof n&&(n=n.trim()).length>0&&a.push(n),"number"==typeof r&&a.push(r),o.push(a)}}))},e.prototype.saveOptIn=function(){var e=this;this.loadParams().then((function(t){t&&(window._paq=window._paq||[]).push(e.hasOptedIn?["forgetUserOptOut"]:["optUserOut"])}))},e.prototype.shouldTrackCurrentApp=function(){var e=this._params;if(!e)return!1;if(e.doNotTrack)for(var t=0,n=this.getCurrentMatchingApps();t<n.length;t++){var r=n[t];if(-1!==e.doNotTrack.indexOf(r.name))return!1}return!0},e.prototype.getCurrentMatchingApps=function(){var e=[],t=(0,s.session)().user.apps;if(t instanceof Array)for(var n=0;n<t.length;n++){var r=t[n];r&&r.address&&r.name&&-1!==location.href.indexOf(r.address)&&e.push(r)}return e},e.prototype.shouldTrackEvent=function(e,t){if(!e)return!1;var n=this.getCurrentMatchingApps();if(e.trackOnly&&e.trackOnly.length>0){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1!==e.trackOnly.indexOf("".concat(o.name,".").concat(t))||-1!==e.trackOnly.indexOf("*.".concat(t)))return!0}return!1}if(e.doNotTrack instanceof Array&&e.doNotTrack.length>0)for(var a=0,s=n;a<s.length;a++){o=s[a];if(-1!==e.doNotTrack.indexOf("".concat(o.name,".").concat(t))||-1!==e.doNotTrack.indexOf("*.".concat(t)))return!1}return!0},e}();t.TrackingService=u,u.$inject=["$document","$location","$rootScope"]},7291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoEventTrackerService=void 0;var r=n(9419),i=function(){function e(){}return e.asFormData=function(){var e=new FormData,t=r.devices.getBrowserInfo();return e.append("device",r.deviceType),e.append("browser",t.name+" "+t.version),e.append("url",window.location.hostname),e.append("app",(0,r.session)().currentApp||""),e},e.prototype.generateSaveEvent=function(e,t){var n=r.devices.getBrowserInfo(),i={videoId:t.videoworkspaceid,userId:(0,r.session)().user.userId,userProfile:(0,r.session)().description.profiles[0],device:r.deviceType,browser:n.name+" "+n.version,structure:(0,r.session)().user.structureNames[0],level:(0,r.session)().user.level,duration:Math.round(e),weight:t.videosize,captation:!0,url:window.location.hostname,app:(0,r.session)().currentApp};(0,r.http)().postJson("/video/event/save",i)},e}();t.VideoEventTrackerService=i},8328:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoUploadService=void 0;var o=n(5262),a=n(9419),s=n(7291),u=function(){function e(){this._maxWeight=50,this._maxDuration=3,this._acceptVideoUploadExtensions=["mp4","mov","avi"],this._initialized=!1}return Object.defineProperty(e.prototype,"validExtensions",{get:function(){return this._acceptVideoUploadExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWeight",{get:function(){return this._maxWeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDuration",{get:function(){return this._maxDuration},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){return r(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){switch(t.label){case 0:if(this._initialized)return[2];t.label=1;case 1:return t.trys.push([1,,3,4]),[4,(0,a.conf)().Platform.apps.initialize(o.APP.VIDEO,!1)];case 2:return t.sent(),(0,a.conf)().Platform.apps.getPublicConf(o.APP.VIDEO).then((function(t){e._maxWeight=e.safeValueOf(t,"max-videosize-mbytes",e._maxWeight),e._maxDuration=e.safeValueOf(t,"max-videoduration-minutes",e._maxDuration);var n=t["accept-videoupload-extensions"];n&&("string"==typeof n&&(n=[n]),e._acceptVideoUploadExtensions=n||e._acceptVideoUploadExtensions,e._acceptVideoUploadExtensions=e._acceptVideoUploadExtensions.map((function(e){return e.toUpperCase()})))})),[3,4];case 3:return this._initialized=!0,[7];case 4:return[2]}}))}))},e.prototype.safeValueOf=function(e,t,n){try{var r=parseInt(e[t]);return"number"!=typeof r||isNaN(r)?n:r}catch(e){return n}},e.prototype.checkValidExtension=function(e){return e=e.toUpperCase(),-1!==this._acceptVideoUploadExtensions.findIndex((function(t){return e===t}))},e.prototype.upload=function(e,t,n,o){return r(this,void 0,void 0,(function(){var r,u,c,l,d,f,h;return i(this,(function(p){switch(p.label){case 0:if(!e)throw new Error("Invalid video file.");if(!t)throw new Error("Invalid video filename.");return r="/video/encode?captation="+n,(u=s.VideoEventTrackerService.asFormData()).append("file",e,t),u.append("weight",""+e.size),u.append("captation",""+n),o&&(u.append("duration",""+o),r+="&duration="+o),[4,(0,a.http)().post(r,u)];case 1:if(p.sent(),202!=(0,a.http)().latestResponse.status)return[3,5];c="/video/status/"+(0,a.http)().latestResponse.data.processid,l=0,d=1,f=function(){var e,t;return i(this,(function(n){switch(n.label){case 0:return e=d+l,[4,new Promise((function(t){return setTimeout(t,1e3*e)}))];case 1:return n.sent(),l=d,d=Math.min(8,e),[4,(0,a.http)().get(c)];case 2:return t=n.sent(),201==(0,a.http)().latestResponse.status?[2,{value:t}]:202!=(0,a.http)().latestResponse.status?[2,"break"]:[2]}}))},p.label=2;case 2:return[5,f()];case 3:if("object"==typeof(h=p.sent()))return[2,h.value];if("break"===h)return[3,5];p.label=4;case 4:return[3,2];case 5:throw new Error("Video cannot be uploaded.")}}))}))},e}();t.VideoUploadService=u},1599:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetService=void 0;var r=n(5262),i=n(9419),o=function(){function e(){}return e.prototype.initialize=function(){return r.WidgetFrameworkFactory.instance().initialize(null,null)},e.prototype.list=function(){return r.WidgetFrameworkFactory.instance().list},e.prototype.onChange=function(){return(0,i.notif)().events().pipe(r.RxJS.filter((function(e){return e.layer===r.LAYER_NAME.WIDGETS&&e.name===r.EVENT_NAME.USERPREF_CHANGED})))},e}();t.WidgetService=o},298:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.XitiService=void 0;var utils_1=__webpack_require__(9419),ATTag,XitiService=function(){function XitiService(){}return XitiService.prototype.runScript=function(){var e=this;return Promise.all([(0,utils_1.conf)().Platform.analytics.xiti(),this.loadScript()]).then((function(t){var n=t[0];if(n)return console.debug("XiTi conf="+JSON.stringify(n)),e.run(n)})).catch((function(e){e&&console.debug("XiTi: run script error="+JSON.stringify(e))}))},XitiService.prototype.trackClick=function(e,t){var n=this;return Promise.all([(0,utils_1.conf)().Platform.analytics.xiti(),this.loadScript(),this.loadCasMapping(e)]).then((function(r){var i=r[0];if(i)return console.debug("XiTi conf="+JSON.stringify(i)),n.click(i,r[2],e,t)})).catch((function(e){e&&console.debug("XiTi: track click error="+JSON.stringify(e))}))},XitiService.prototype.loadScript=function(){return __awaiter(this,void 0,void 0,(function(){var scriptPath,response;return __generator(this,(function(_a){switch(_a.label){case 0:return"undefined"!=typeof ATInternet?[3,2]:(scriptPath="/xiti/public/js/lib/smarttag_ENT.js",[4,(0,utils_1.http)().get(scriptPath,{headers:{Accept:"application/javascript"}})]);case 1:if(response=_a.sent(),200!=(0,utils_1.http)().latestResponse.status)throw"Error while loading XiTi script";eval(response),_a.label=2;case 2:return[2]}}))}))},XitiService.prototype.loadCasMapping=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(r){switch(r.label){case 0:return t="/xiti/cas-infos?connector=".concat(e),[4,(0,utils_1.http)().get(t)];case 1:if(n=r.sent(),200!=(0,utils_1.http)().latestResponse.status)throw"Error while loading XiTi CAS mapping";if(!n.xitiService||!n.xitiOutil)throw"Malformed XiTi CAS mapping";return[2,n]}}))}))},XitiService.prototype.run=function(e,t){return void 0===t&&(t=window.location.pathname),__awaiter(this,void 0,void 0,(function(){var n,r,i;return __generator(this,(function(o){if(!ATInternet)return[2];for(r in n=e.LIBELLE_SERVICE.default||null,e.LIBELLE_SERVICE)if("default"!==r&&t.indexOf(r)>=0){n=e.LIBELLE_SERVICE[r];break}return i=function(e){if(e&&e.split("/").length>0){var t=window.location.pathname.split("/")[1];return"userbook"==t&&(t="directory"),"welcome"==t&&(t="."),t}}(t),(ATTag=new ATInternet.Tracker.Tag({site:e.STRUCT_ID})).setProps({SERVICE:n,TYPE:e.TYPE,OUTIL:e.OUTIL,UAI:e.STRUCT_UAI,PROJET:e.PROJET,EXPLOITANT:e.EXPLOITANT,PLATEFORME:e.PLATFORME,PROFIL:e.PROFILE},!0),ATTag.identifiedVisitor.set({id:e.ID_PERSO,category:e.PROFILE}),ATTag.page.set({name:"userbook"===i?"directory":i,chapter1:"",chapter2:"",chapter3:"",level2:e.STRUCT_UAI}),ATTag.dispatch(),[2]}))}))},XitiService.prototype.click=function(e,t,n,r){if(ATInternet&&ATTag){console.debug("xiti click !!!");var i={SERVICE:t.xitiService,TYPE:"TIERS",OUTIL:t.xitiOutil},o=n,a=e.STRUCT_UAI;ATTag.setProps(i,!1),ATTag.click.send({elem:r,name:o,type:"navigation",level2:a})}},XitiService}();exports.XitiService=XitiService},1880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Base64=void 0;var n=function(){function e(){}return e.encode=function(e){return btoa(e)},e.decode=function(e){return atob(e)},e}();t.Base64=n},3710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deviceType=t.devices=void 0;var r=n(2238);t.devices={getOSInfo:function(e){return new r.UAParser(e).getOS()},isIE:function(){return-1!==navigator.userAgent.indexOf("Trident")},isiOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isIphone:function(){return-1!=navigator.userAgent.indexOf("iPhone")},isIpod:function(){return-1!=navigator.userAgent.indexOf("iPod")},isIpad:function(){return-1!=navigator.userAgent.indexOf("iPad")},getBrowserInfo:function(){var e=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),"string"==typeof e?e.split(t):[]},t=navigator.userAgent;if(-1!==t.indexOf("OPR")){var n=e(t,"OPR/")[1];return{name:"Opera",version:parseInt(e(n,".")[0])}}if(-1!==t.indexOf("Edg")){var r=e(t,"Edg/")[1];return{name:"Edge",version:parseInt(e(r,".")[0])}}if(-1!==t.indexOf("Chrome")){var i=e(t,"Chrome/")[1];return{name:"Chrome",version:parseInt(e(i,".")[0])}}if(-1!==t.indexOf("IEMobile")){var o=e(t,"IEMobile/")[1];return{name:"MSIE",version:parseInt(e(o,";")[0])}}if(-1!==t.indexOf("AppleWebKit")&&-1===t.indexOf("Chrome")&&-1===t.indexOf("CriOS")&&-1===t.indexOf("FxiOS")){var a=e(t,"Version/")[1];return{name:"Safari",version:parseInt(e(a,".")[0])}}if(-1!==t.indexOf("Firefox")){var s=e(t,"Firefox/")[1];return{name:"Firefox",version:parseInt(e(s,".")[0])}}if(-1!==t.indexOf("MSIE")){var u=e(t,"MSIE ")[1];return{name:"MSIE",version:parseInt(e(u,";")[0])}}if(-1===t.indexOf("MSIE")&&-1!==t.indexOf("Trident")){u=e(t,"rv:")[1];return{name:"MSIE",version:parseInt(e(u,".")[0])}}if(-1!==t.indexOf("CriOS")){var c=e(t,"CriOS/")[1];return{name:"CriOS",version:parseInt(e(c,".")[0])}}if(-1!==t.indexOf("FxiOS")){var l=e(t,"FxiOS/")[1];return{name:"FxiOS",version:parseInt(e(l,".")[0])}}return{name:"unknown",version:0}}},navigator.userAgent.match(/Mobile/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/Windows Phone/i)||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/webOS/i)?(t.deviceType="Mobile",document.getElementsByTagName("html")[0].setAttribute("mobile-device","")):navigator.userAgent.match(/Tablet/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Nexus 7/i)||navigator.userAgent.match(/Nexus 10/i)||navigator.userAgent.match(/KFAPWI/i)?(t.deviceType="Tablet",document.getElementsByTagName("html")[0].setAttribute("tablet-device","")):(t.deviceType="Desktop",document.getElementsByTagName("html")[0].setAttribute("desktop-device",""))},9419:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackedActionFromWidget=void 0,i(n(2167),t),i(n(4943),t),i(n(6660),t),i(n(8701),t),i(n(1880),t),i(n(3710),t),i(n(5511),t);var o=n(2357);Object.defineProperty(t,"TrackedActionFromWidget",{enumerable:!0,get:function(){return o.KnownWidget}})},2167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8701:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.L10n=void 0;var i=r(n(381)),o=function(){function e(){}return e.initialize=function(e){var t={fr:{calendar:{lastDay:"[Hier à] HH[h]mm",sameDay:"[Aujourd'hui à] HH[h]mm",nextDay:"dddd D MMMM YYYY",lastWeek:"dddd D MMMM YYYY",nextWeek:"dddd D MMMM YYYY",sameElse:"dddd D MMMM YYYY"}}};i.default.locale(e),e in t&&i.default.updateLocale(e,t[e])},e.moment=function(e,t,n,r){return"boolean"!=typeof t||n||"boolean"==typeof r?(0,i.default)(e,t,n,r):(0,i.default)(e,r)},e.utc=function(e,t){return i.default.utc(e)},e.unix=function(e){return i.default.unix(e)},e}();t.L10n=o},3848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ManualChangeListener=t.DOMRouteChangeListener=t.AngularJSRouteChangeListener=t.ObjectGuard=t.InputGuard=t.navigationGuardService=t.NavigationGuardService=void 0;var r=n(7754),i=n(4943);function o(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function a(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}var s=function(){function e(){this.debounceMs=1e3,this._lastTime=null,this._lastResponse=null,this._listeners=new Map,this._guards=new Map,this._id_counter=0,this.onUserConfirmNavigate=new Array}return e.prototype.generateID=function(){return"__auto_guard_id_"+t.navigationGuardService._id_counter++},e.prototype._getGuardsMapByID=function(e){var n=t.navigationGuardService._guards.get(e);return null!=n?n:new Set},e.prototype.registerGuard=function(e,n){var r=t.navigationGuardService._getGuardsMapByID(e);r.add(n),t.navigationGuardService._guards.set(e,r)},e.prototype.unregisterGuard=function(e,n){var r=t.navigationGuardService._getGuardsMapByID(e);r.delete(n),0==r.size&&t.navigationGuardService.unregisterRoot(e)},e.prototype.unregisterRoot=function(e){t.navigationGuardService._guards.delete(e)},e.prototype.registerIndependantGuard=function(e){var n=t.navigationGuardService.generateID();return t.navigationGuardService.registerGuard(n,e),n},e.prototype.unregisterIndependantGuard=function(e){t.navigationGuardService.unregisterRoot(e)},e.prototype.registerListener=function(e){if(!t.navigationGuardService._listeners.has(e)){e.start();var n=e.onChange.subscribe((function(e){t.navigationGuardService.tryNavigate(e)}));t.navigationGuardService._listeners.set(e,n)}},e.prototype.unregisterListener=function(e){var n=t.navigationGuardService._listeners.get(e);n&&(n.unsubscribe(),e.stop(),t.navigationGuardService._listeners.delete(e))},e.prototype.tryNavigate=function(e){var n=t.navigationGuardService._lastTime||0,r=(new Date).getTime()-n,s=t.navigationGuardService._lastResponse;if(null!=s&&r<t.navigationGuardService.debounceMs)s?e.accept():e.reject();else{for(var u=e.confirmMessageKey||"navigation.guard.text",c=0,l=a(t.navigationGuardService._guards);c<l.length;c++){var d=l[c],f=t.navigationGuardService._guards.get(d);if(f&&(!e.checkGuardId||"*"===e.checkGuardId||e.checkGuardId===d))for(var h=0,p=o(f);h<p.length;h++){var v=p[h];if(!v.canNavigate()){for(var m=confirm((0,i.conf)().Platform.idiom.translate(u)),g=0,b=t.navigationGuardService.onUserConfirmNavigate;g<b.length;g++){(0,b[g])(m)}return v.onUserConfirmNavigate&&v.onUserConfirmNavigate(m),t.navigationGuardService._lastTime=(new Date).getTime(),t.navigationGuardService._lastResponse=m,void(m?(e.accept(),t.navigationGuardService.resetAll()):e.reject())}}}e.accept()}},e.prototype.reset=function(e){for(var n=0,r=o(t.navigationGuardService._getGuardsMapByID(e));n<r.length;n++){r[n].reset()}},e.prototype.resetAll=function(){for(var e=0,n=a(t.navigationGuardService._guards);e<n.length;e++){var r=n[e];t.navigationGuardService.reset(r)}},e}();t.NavigationGuardService=s,t.navigationGuardService=new s;var u=function(){function e(e,t,n){void 0===n&&(n=function(e,t){return e==t}),this.currentValue=e,this.resetter=t,this.comparator=n,this.reference=this.resetter()}return e.prototype.unNaN=function(e){return"number"==typeof e&&!0===isNaN(e)?null:e},e.prototype.reset=function(){this.reference=this.resetter()},e.prototype.canNavigate=function(){return this.comparator(this.unNaN(this.reference),this.unNaN(this.currentValue()))},e}();t.InputGuard=u;var c=function(){function e(e){this.currentValue=e}return e.prototype.reset=function(){this.currentValue().guardObjectReset()},e.prototype.canNavigate=function(){return!this.currentValue().guardObjectIsDirty()},e.prototype.onUserConfirmNavigate=function(e){var t=this.currentValue();t.guardOnUserConfirmNavigate&&t.guardOnUserConfirmNavigate(e)},e}();t.ObjectGuard=c;var l=function(){function e(e){this.$rootScope=e,this.subscription=null,this.onChange=new r.Subject;var n=this;e.$on("$destroy",(function(){t.navigationGuardService.unregisterListener(n)}))}return e.prototype.start=function(){var e=this;this.subscription||(this.subscription=this.$rootScope.$on("$locationChangeStart",(function(t,n,r){e.onChange.next({accept:function(){},reject:function(){t.preventDefault()}})})))},e.prototype.stop=function(){this.subscription&&this.subscription(),this.subscription=null},e.getInstance=function(t){return null==e._instance&&(e._instance=new e(t)),e._instance},e._instance=null,e}();t.AngularJSRouteChangeListener=l;var d=function(){function e(){var e=this;this.onChange=new r.Subject,this.callback=function(t){var n=!1;return e.onChange.next({accept:function(){n=!0},reject:function(){t.preventDefault(),t.returnValue=!1,n=!1}}),n}}return e.prototype.start=function(){window.addEventListener("beforeunload",this.callback,!1)},e.prototype.stop=function(){window.removeEventListener("beforeunload",this.callback)},e.getInstance=function(){return null==e._instance&&(e._instance=new e),e._instance},e._instance=null,e}();t.DOMRouteChangeListener=d;var f=function(){function e(){this.onChange=new r.Subject}return e.prototype.start=function(){},e.prototype.stop=function(){this.onChange.unsubscribe()},e}();t.ManualChangeListener=f},6660:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4202)),o=n(5262),a=n(9419);document.addEventListener("DOMContentLoaded",(function(){o.SessionFrameworkFactory.instance().initialize().then((function(){var e;return(0,a.conf)().initialize(null===(e=window.entcore)||void 0===e?void 0:e.deploymentTag,null)})).then((function(){i.default.bootstrap(document.querySelector("html"),["app"])}))}),{once:!0})},9826:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.audio_recorder=void 0;var a=n(9419),s=n(7774),u=o(n(3336)),c=null;function l(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return c?[3,2]:[4,u.default.ajax("/infra/public/js/zlib.min.js",{dataType:"script"})];case 1:c=e.sent(),e.label=2;case 2:return[2,c]}}))}))}var d={getUserMediaLegacy:navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,getUserMedia:navigator.mediaDevices&&navigator.mediaDevices.getUserMedia,AudioContext:window.AudioContext||window.webkitAudioContext};t.audio_recorder=function(){var e,t,n,o=(0,a.conf)().Platform.idiom,u=null,c=!0,f=new Audio,h=[],p=[],v=4096,m=!1,g=0,b=0,y=new Worker("/infra/public/js/audioEncoder.js"),w=[];function _(e){var t="https:"===window.location.protocol?"wss":"ws",n=window.location.host;return"localhost:8090"===window.location.host&&(n="localhost:6502"),"".concat(t+"://"+n,"/audio/").concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})),"?sampleRate=").concat(e)}function x(){var t=p.length;t>b&&(y.postMessage(["init",e.sampleRate]),y.postMessage(["chunk",h.slice(b,t),p.slice(b,t),(t-b)*v]),y.onmessage=function(e){if(c){var t=parseInt(""+performance.now()),n=new Zlib.Deflate(e.data);u&&u.send(n.compress()),parseInt(""+performance.now())-t>50&&(c=!1,u&&u.send("rawdata"))}else u&&u.send(e.data)},b=t)}function k(){u&&1===u.readyState&&u.close(),S()}function S(){u=null,h=[],p=[],b=0}function M(e,t){try{w.forEach((function(n){"function"==typeof n&&n(e,t)}))}catch(e){}}return{elapsedTime:0,loadComponents:function(){var r=this;this.title||(this.title=a.L10n.moment().format("YYYY-MM-DD HH[h]mm")+" "+o.translate("recorder.filename.audio")),m=!0;var i=function(i){r.permission="granted",e=new d.AudioContext,y.postMessage(["init",e.sampleRate]);var o=e.createMediaStreamSource(i);t=e.createGain(),o.connect(t),(n=e.createScriptProcessor(v,2,2)).onaudioprocess=function(e){if("recording"===r.state){var t=new Float32Array(e.inputBuffer.getChannelData(0));h.push(t);var n=new Float32Array(e.inputBuffer.getChannelData(1));p.push(n),g+=v,r.elapsedTime+=e.inputBuffer.duration,x(),M(r.state)}},t.connect(n),n.connect(e.destination)};void 0!==d.getUserMedia?d.getUserMedia.call(navigator.mediaDevices,{audio:!0}).then(i).catch((function(e){e&&(r.permission="denied",console.log("err:",e))})):void 0!==d.getUserMediaLegacy&&d.getUserMediaLegacy({audio:!0},i,(function(e){console.log("err:",e)}))},isCompatible:function(){return void 0!==d.AudioContext&&(void 0!==d.getUserMedia||void 0!==d.getUserMediaLegacy)},stop:function(){u&&u.send("cancel"),this.state="idle",f.pause(),f.currentTime>0&&(f.currentTime=0),h=[],p=[],M(this.state)},flush:function(){this.title="",this.stop(),this.elapsedTime=0,h=[],p=[],M(this.state)},record:function(){return r(this,void 0,void 0,(function(){var e,t=this;return i(this,(function(n){switch(n.label){case 0:return f.pause(),"preparing"==(e=this).state?[2]:(e.state="preparing",[4,l()]);case 1:return n.sent(),u?(e.state="recording",M(e.state),m||e.loadComponents()):((u=new WebSocket(_((new d.AudioContext).sampleRate))).onopen=function(){f.currentTime>0&&(f.currentTime=0),e.state="recording",M(e.state),c||u&&u.send("rawdata"),m||e.loadComponents()},u.onerror=function(t){console.log(t),e.state="stopped",M(e.state),k(),s.notify.error(t.error)},u.onmessage=function(e){return r(t,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return e.data&&e.data.indexOf&&"function"==typeof e.data.indexOf&&-1!==e.data.indexOf("error")?(console.log(e.data),k(),s.notify.error(e.data),[3,3]):[3,1];case 1:return e.data&&e.data.text&&"function"==typeof e.data.text&&"encoding"===this.state?(n=(t=JSON).parse,[4,e.data.text()]):[3,3];case 2:"ok"===n.apply(t,[r.sent()]).status?(k(),M("saved"),this.elapsedTime=0):(console.log(e.data),k(),s.notify.error(e.data)),r.label=3;case 3:return[2]}}))}))},u.onclose=function(t){e.state="stopped",e.elapsedTime=0,M(e.state),S()}),[2]}}))}))},suspend:function(){return this.state="suspended",f.pause(),M(this.state),Promise.resolve()},pause:function(){this.state="paused",f.pause(),M(this.state)},play:function(){this.pause(),this.state="playing";var t=new Worker("/infra/public/js/audioEncoder.js");t.postMessage(["init",e.sampleRate]),t.postMessage(["wav",p,h,g]),t.onmessage=function(e){f.src=window.URL.createObjectURL(e.data),f.play()},M(this.state)},status:function(e){w.push(e)},title:"",state:"idle",permission:"idle",save:function(){x(),u&&u.send("save-"+this.title),this.state="encoding",M(this.state)},mute:function(e){t.gain.value=e?0:1}}}()},3148:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoRecorder=void 0;var o=n(4943),a=n(8701),s=n(6731),u=n(3710),c=function(){function e(e,t,n,r,i){var o=this;this.videoFactory=e,this.handleDuration=t,this.uploader=n,this.tracker=r,this.defaultDevice=i,this._status="preparing",this.constraints={audio:!0,video:{width:640,height:360,facingMode:"environment"}},this.title="",this.elapsedTime=0,this.followers=[],this.videoEndedHandler=function(e){o.gumVideo&&(o.pause(),o.gumVideo.currentTime=0)},i&&this.setCamera(i.deviceId)}return Object.defineProperty(e.prototype,"permission",{get:function(){return(0,o.session)().hasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture")?"granted":"denied"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._status},enumerable:!1,configurable:!0}),e.prototype.status=function(e){this.followers.push(e)},e.prototype.updateStatus=function(e,t){this._status=e;try{this.followers.forEach((function(t){"function"==typeof t&&t(e)}))}catch(e){}},e.isCompatible=function(){var t;return"function"==typeof(null===(t=navigator.mediaDevices)||void 0===t?void 0:t.getSupportedConstraints)&&navigator.mediaDevices.getSupportedConstraints().deviceId&&!(e.isIncompatibleDevice()||e.isIncompatibleBrowser())||!1},e.isIncompatibleDevice=function(){var e=u.devices.getOSInfo();return!(e&&"iOS"===e.name&&e.version&&e.version>="14.3")&&(u.devices.isIphone()||u.devices.isIpad()||u.devices.isIpod())},e.isIncompatibleBrowser=function(){if(!window.MediaRecorder)return!0;var e=u.devices.getBrowserInfo();return-1===["Firefox","Chrome","Edge","Opera","Safari","CriOS","FxiOS"].findIndex((function(t){return e.name==t}))},e.prototype.suspend=function(){return this.stopRecording(!0)},e.prototype.flush=function(){this.stopStreaming(),this.title=""},e.prototype.save=function(){var e=this;this.title||(this.title="video-"+this.generateVideoId()),this.updateStatus("encoding"),this.uploader.upload(this.getBuffer(),this.title,!0,Math.round(this.elapsedTime)).then((function(t){"succeed"===t.state?(e.tracker.generateSaveEvent(e.elapsedTime,t),e.updateStatus("saved"),e.updateStatus("suspended")):"error"===t.state&&(e.updateStatus("suspended"),t.code&&s.notify.error(t.code))})).catch((function(t){e.updateStatus("suspended"),s.notify.error("video.file.error")}))},e.prototype.bindPlayEvents=function(){this.gumVideo&&(this.unbindPlayEvents(),this.gumVideo.addEventListener("ended",this.videoEndedHandler,!1))},e.prototype.unbindPlayEvents=function(){this.gumVideo&&this.gumVideo.removeEventListener("ended",this.videoEndedHandler,!1)},e.prototype.unbindRecordEvent=function(){this.gumVideo&&this.gumVideo.removeEventListener("timeupdate",this.handleDuration)},e.prototype.bindRecordEvent=function(){this.gumVideo&&(this.unbindRecordEvent(),this.gumVideo.addEventListener("timeupdate",this.handleDuration))},e.prototype.setCamera=function(e){"environment"===e||"user"===e?(delete this.constraints.video.deviceId,this.constraints.video.facingMode=e):e&&(delete this.constraints.video.facingMode,this.constraints.video.deviceId=e)},e.prototype.switchCamera=function(e){var t,n,r;return this.setCamera(e),this.stream&&("active"===(null===(t=this.mediaRecorder)||void 0===t?void 0:t.state)&&(null===(n=this.mediaRecorder)||void 0===n||n.requestData(),null===(r=this.mediaRecorder)||void 0===r||r.stop()),this.turnOffCamera(),delete this.stream),this.startStreaming()},e.prototype.play=function(){this.gumVideo?(this.preparePlay(),this.gumVideo.play(),this.updateStatus("playing")):console.warn("[VideoRecorder.play] stream not init")},e.prototype.preparePlay=function(){if("paused"!=this._status){this.unbindRecordEvent(),this.bindPlayEvents();var e=this.getBuffer();this.gumVideo&&(this.gumVideo.muted=!1,this.gumVideo.srcObject=null,this.gumVideo.autoplay=!1,this.gumVideo.src=window.URL.createObjectURL(e)),this.updateStatus("paused")}},e.prototype.pause=function(){this.gumVideo?(this.gumVideo.pause(),this.updateStatus("paused")):console.warn("[VideoRecorder.play] stream not init")},e.prototype.prepareRecord=function(){this.stream?"recording"!=this._status&&(this.gumVideo&&(this.gumVideo.muted=!0,this.gumVideo.volume=1,this.gumVideo.autoplay=!0,this.gumVideo.src&&window.URL.revokeObjectURL(this.gumVideo.src),this.gumVideo.srcObject=this.stream,this.gumVideo.controls=!1),this.unbindPlayEvents(),this.bindRecordEvent(),this.updateStatus("recording")):console.warn("[VideoRecorder.prepareRecord] stream not init")},e.prototype.stopStreaming=function(){if(this.gumVideo&&(this.unbindPlayEvents(),this.unbindRecordEvent()),this.stream){try{this.stopRecording(!1)}catch(e){}this.turnOffCamera(),delete this.stream}this.gumVideo&&delete this.gumVideo,this.updateStatus("idle")},e.prototype.startStreaming=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,10]),this.stream?[2]:(this.gumVideo||(this.gumVideo=this.videoFactory()),[4,navigator.mediaDevices.getUserMedia(this.constraints)]);case 1:return n=i.sent(),this.stream=n,this.prepareRecord(),[3,10];case 2:return(t=i.sent())?"NotAllowedError"!=t.name?[3,3]:e?[2,e()]:[3,8]:[3,9];case 3:if("NotReadableError"!=t.name)return[3,8];i.label=4;case 4:return i.trys.push([4,6,,7]),[4,navigator.mediaDevices.getUserMedia({})];case 5:return n=i.sent(),this.gumVideo||(this.gumVideo=this.videoFactory()),this.stream=n,this.prepareRecord(),[3,7];case 6:return r=i.sent(),alert(r),[3,7];case 7:return[2];case 8:alert(t),i.label=9;case 9:return[3,10];case 10:return[2]}}))}))},e.prototype.generateVideoId=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},e.prototype.resume=function(){var e;this.prepareRecord(),null===(e=this.mediaRecorder)||void 0===e||e.resume()},e.prototype.canStartRecording=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,(0,o.session)().latestQuotaAndUsage];case 1:return[2,(e=t.sent()).quota>e.storage]}}))}))},e.prototype.findBestSupportedMimeType=function(){return MediaRecorder.isTypeSupported?["video/webm;codecs=vp9",'video/mp4; codecs="avc1.424028, mp4a.40.2"',"video/webm;codecs=vp8,opus","video/webm"].find((function(e){return!!MediaRecorder.isTypeSupported(e)||(console.error("[VideoRecorder.startRecording] ".concat(e," is not Supported")),!1)}))||"video/ogg":"video/webm;codecs=vp8,opus"},e.prototype.prepare=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return this.gumVideo||(this.gumVideo=this.videoFactory()),[4,navigator.mediaDevices.getUserMedia(this.constraints)];case 1:return e=t.sent(),this.stream=e,this.stream?("recording"!==this._status&&this.gumVideo&&(this.gumVideo.muted=!0,this.gumVideo.volume=1,this.gumVideo.autoplay=!0,this.gumVideo.src&&window.URL.revokeObjectURL(this.gumVideo.src),this.gumVideo.srcObject=this.stream,this.gumVideo.controls=!1),[2]):(console.warn("[VideoRecorder.prepareRecord] stream not init"),[2])}}))}))},e.prototype.record=function(){return r(this,void 0,void 0,(function(){var e,t,n=this;return i(this,(function(r){switch(r.label){case 0:return[4,this.startStreaming()];case 1:if(r.sent(),!this.stream)return[2];e=(0,o.conf)().Platform.idiom,this.title||(this.title=a.L10n.moment().format("YYYY-MM-DD HH[h]mm")+" "+e.translate("recorder.filename.video")),this.prepareRecord(),this.recorded=new Array,t={mimeType:this.findBestSupportedMimeType()};try{this.mediaRecorder=new MediaRecorder(this.stream,t),this.recordMimeType=t.mimeType}catch(e){return console.error("[VideoRecorder.startRecording] Exception while creating MediaRecorder:",e),[2]}return this.mediaRecorder.onstop=function(){},this.mediaRecorder.ondataavailable=function(e){var t;e.data&&e.data.size>0&&(null===(t=n.recorded)||void 0===t||t.push(e.data))},this.mediaRecorder.start(1e3),[2]}}))}))},e.prototype.stopRecording=function(e){var t,n,r,i=this;return"recording"===(null===(t=this.mediaRecorder)||void 0===t?void 0:t.state)&&(null===(n=this.mediaRecorder)||void 0===n||n.requestData(),null===(r=this.mediaRecorder)||void 0===r||r.stop()),new Promise((function(t){e?setTimeout((function(){i.preparePlay(),t()}),0):(i.updateStatus("stopped"),t())}))},e.prototype.turnOffCamera=function(){if(this.stream)for(var e=0,t=this.stream.getTracks();e<t.length;e++){var n=t[e];try{n.stop()}catch(e){}}},e.prototype.getBuffer=function(){return new Blob(this.recorded,{type:this.recordMimeType})},e.prototype.clearBuffer=function(e){delete this.recorded,e&&this.prepareRecord()},e}();t.VideoRecorder=c},4943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.session=t.http=t.notif=t.conf=void 0;var r=n(5262);t.conf=function(){return r.ConfigurationFrameworkFactory.instance()},t.notif=function(){return r.NotifyFrameworkFactory.instance()},t.http=function(){return r.TransportFrameworkFactory.instance().http},t.session=function(){return r.SessionFrameworkFactory.instance().session}},2238:function(e,t,n){var r;
|
|
28
|
+
var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function o(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function c(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function l(e){return this instanceof l?(this.v=e,this):new l(e)}function d(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof l?Promise.resolve(n.value.v).then(u,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function f(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=s(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}Object.create;function h(e){return"function"==typeof e}function p(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var v=p(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function m(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var g=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=s(o),l=a.next();!l.done;l=a.next()){l.value.remove(this)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(h(d))try{d()}catch(e){i=e instanceof v?e.errors:[e]}var f=this._teardowns;if(f){this._teardowns=null;try{for(var p=s(f),m=p.next();!m.done;m=p.next()){var g=m.value;try{w(g)}catch(e){i=null!=i?i:[],e instanceof v?i=c(c([],u(i)),u(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=p.return)&&r.call(p)}finally{if(n)throw n.error}}}if(i)throw new v(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)w(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&m(t,e)},e.prototype.remove=function(t){var n=this._teardowns;n&&m(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),b=g.EMPTY;function y(e){return e instanceof g||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function w(e){h(e)?e():e.unsubscribe()}var _={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},x={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=x.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,c([],u(e)))},clearTimeout:function(e){var t=x.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function k(e){x.setTimeout(function(){var t=_.onUnhandledError;if(!t)throw e;t(e)})}function S(){}var M=D("C",void 0,void 0);function D(e,t,n){return{kind:e,value:t,error:n}}var O=null;function T(e){if(_.useDeprecatedSynchronousErrorHandling){var t=!O;if(t&&(O={errorThrown:!1,error:null}),e(),t){var n=O,r=n.errorThrown,i=n.error;if(O=null,r)throw i}}else e()}var P=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,y(t)&&t.add(n)):n.destination=I,n}return i(t,e),t.create=function(e,t,n){return new C(e,t,n)},t.prototype.next=function(e){this.isStopped?j(function(e){return D("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?j(D("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?j(M,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(g),C=function(e){function t(t,n,r){var i,o=e.call(this)||this;if(h(t))i=t;else if(t){var a;i=t.next,n=t.error,r=t.complete,o&&_.useDeprecatedNextContext?(a=Object.create(t)).unsubscribe=function(){return o.unsubscribe()}:a=t,i=null==i?void 0:i.bind(a),n=null==n?void 0:n.bind(a),r=null==r?void 0:r.bind(a)}return o.destination={next:i?E(i,o):S,error:E(null!=n?n:A,o),complete:r?E(r,o):S},o}return i(t,e),t}(P);function E(e,t){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{e.apply(void 0,c([],u(t)))}catch(e){_.useDeprecatedSynchronousErrorHandling?function(e){_.useDeprecatedSynchronousErrorHandling&&O&&(O.errorThrown=!0,O.error=e)}(e):k(e)}}}function A(e){throw e}function j(e,t){var n=_.onStoppedNotification;n&&x.setTimeout(function(){return n(e,t)})}var I={closed:!0,next:S,error:A,complete:S},N="function"==typeof Symbol&&Symbol.observable||"@@observable";function R(e){return e}function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L(e)}function L(e){return 0===e.length?R:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var F=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof P||function(e){return e&&h(e.next)&&h(e.error)&&h(e.complete)}(r)&&y(r)?e:new C(e,t,n);return T(function(){var e=i,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=W(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(e){r(e),null==i||i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[N]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return L(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=W(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function W(e){var t;return null!==(t=null!=e?e:_.Promise)&&void 0!==t?t:Promise}function V(e){return h(null==e?void 0:e.lift)}function U(e){return function(t){if(V(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}var G=function(e){function t(t,n,r,i,o){var a=e.call(this,t)||this;return a.onFinalize=o,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return i(t,e),t.prototype.unsubscribe=function(){var t,n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(P);function $(){return U(function(e,t){var n=null;e._refCount++;var r=new G(t,void 0,void 0,void 0,function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var r=e._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),t.unsubscribe()}});e.subscribe(r),r.closed||(n=e.connect())})}var H=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,V(t)&&(r.lift=t.lift),r}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new g;var n=this.getSubject();t.add(this.source.subscribe(new G(n,void 0,function(){e._teardown(),n.complete()},function(t){e._teardown(),n.error(t)},function(){return e._teardown()}))),t.closed&&(this._connection=null,t=g.EMPTY)}return t},t.prototype.refCount=function(){return $()(this)},t}(F),z={now:function(){return(z.delegate||performance).now()},delegate:void 0},q={schedule:function(e){var t=requestAnimationFrame,n=cancelAnimationFrame,r=q.delegate;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);var i=t(function(t){n=void 0,e(t)});return new g(function(){return null==n?void 0:n(i)})},requestAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=q.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,c([],u(e)))},cancelAnimationFrame:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=q.delegate;return((null==n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,c([],u(e)))},delegate:void 0};function B(e){return e?Z(e):X}function Z(e){var t=q.schedule;return new F(function(n){var r=new g,i=e||z,o=i.now(),a=function(s){var u=i.now();n.next({timestamp:e?u:s,elapsed:u-o}),n.closed||r.add(t(a))};return r.add(t(a)),r})}var J,X=Z(),K=p(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Q=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new ee(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new K},t.prototype.next=function(e){var t=this;T(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){var i=t.observers.slice();try{for(var o=s(i),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;T(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;T(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=t.hasError,r=t.isStopped,i=t.observers;return n||r?b:(i.push(e),new g(function(){return m(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new F;return e.source=this,e},t.create=function(e,t){return new ee(e,t)},t}(F),ee=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return i(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:b},t}(Q),te=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Q),ne={now:function(){return(ne.delegate||Date).now()},delegate:void 0},re=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ne);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return i(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(i.push(t),!o&&i.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,r=e._buffer,i=e._infiniteTimeWindow,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var a=n.now(),s=0,u=1;u<r.length&&r[u]<=a;u+=2)s=u;s&&r.splice(0,s+1)}},t}(Q),ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t._hasValue,i=t._value,o=t.thrownError,a=t.isStopped,s=t._isComplete;n?e.error(o):(a||s)&&(r&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,r=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,r),e.prototype.complete.call(this))},t}(Q),oe=function(e){function t(t,n){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(g),ae={setInterval:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ae.delegate;return((null==n?void 0:n.setInterval)||setInterval).apply(void 0,c([],u(e)))},clearInterval:function(e){var t=ae.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},se=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),ae.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;ae.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,r=!1;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,m(r,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(oe),ue=1,ce={};function le(e){return e in ce&&(delete ce[e],!0)}var de=function(e){var t=ue++;return ce[t]=!0,J||(J=Promise.resolve()),J.then(function(){return le(t)&&e()}),t},fe=function(e){le(e)},he={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=he.delegate;return((null==n?void 0:n.setImmediate)||de).apply(void 0,c([],u(e)))},clearImmediate:function(e){var t=he.delegate;return((null==t?void 0:t.clearImmediate)||fe)(e)},delegate:void 0},pe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=he.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(he.clearImmediate(n),t._scheduled=void 0)},t}(se),ve=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=ne.now,e}(),me=function(e){function t(t,n){void 0===n&&(n=ve.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(ve),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var i=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this._active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(me),be=new ge(pe),ye=be,we=new me(se),_e=we,xe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(se),ke=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(me))(xe),Se=ke,Me=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return i(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=q.requestAnimationFrame(function(){return t.flush(void 0)})))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(q.cancelAnimationFrame(n),t._scheduled=void 0)},t}(se),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0,this._scheduled=void 0;var t,n=this.actions,r=-1;e=e||n.shift();var i=n.length;do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this._active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(me),Oe=new De(Me),Te=Oe,Pe=function(e){function t(t,n){void 0===t&&(t=Ce),void 0===n&&(n=1/0);var r=e.call(this,t,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return i(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(me),Ce=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var i=e.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return i(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return g.EMPTY},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(se),Ee=new F(function(e){return e.complete()});function Ae(e){return e?function(e){return new F(function(t){return e.schedule(function(){return t.complete()})})}(e):Ee}function je(e,t){return new F(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}var Ie=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Ne(e){return h(null==e?void 0:e.then)}var Re,Ye="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Le(e,t,n,r){void 0===r&&(r=0);var i=t.schedule(function(){try{n.call(this)}catch(t){e.error(t)}},r);return e.add(i),i}function Fe(e,t){return new F(function(n){var r;return n.add(t.schedule(function(){r=e[Ye](),Le(n,t,function(){var e=r.next(),t=e.value;e.done?n.complete():(n.next(t),this.schedule())})})),function(){return h(null==r?void 0:r.return)&&r.return()}})}function We(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(function(n){var r=new g;return r.add(t.schedule(function(){var i=e[Symbol.asyncIterator]();r.add(t.schedule(function(){var e=this;i.next().then(function(t){t.done?n.complete():(n.next(t.value),e.schedule())})}))})),r})}function Ve(e){return h(e[N])}function Ue(e){return h(null==e?void 0:e[Ye])}function Ge(e){return Symbol.asyncIterator&&h(null==e?void 0:e[Symbol.asyncIterator])}function $e(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function He(e){return d(this,arguments,function(){var t,n,r;return a(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,l(t.read())];case 3:return n=i.sent(),r=n.value,n.done?[4,l(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,l(r)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ze(e){return h(null==e?void 0:e.getReader)}function qe(e,t){if(null!=e){if(Ve(e))return function(e,t){return new F(function(n){var r=new g;return r.add(t.schedule(function(){var i=e[N]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Ie(e))return je(e,t);if(Ne(e))return function(e,t){return new F(function(n){return t.schedule(function(){return e.then(function(e){n.add(t.schedule(function(){n.next(e),n.add(t.schedule(function(){return n.complete()}))}))},function(e){n.add(t.schedule(function(){return n.error(e)}))})})})}(e,t);if(Ge(e))return We(e,t);if(Ue(e))return Fe(e,t);if(ze(e))return function(e,t){return We(He(e),t)}(e,t)}throw $e(e)}function Be(e,t){return t?qe(e,t):Ze(e)}function Ze(e){if(e instanceof F)return e;if(null!=e){if(Ve(e))return r=e,new F(function(e){var t=r[N]();if(h(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if(Ie(e))return Je(e);if(Ne(e))return n=e,new F(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,k)});if(Ge(e))return Xe(e);if(Ue(e))return t=e,new F(function(e){var n,r;try{for(var i=s(t),o=i.next();!o.done;o=i.next()){var a=o.value;if(e.next(a),e.closed)return}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}e.complete()});if(ze(e))return Xe(He(e))}var t,n,r;throw $e(e)}function Je(e){return new F(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function Xe(e){return new F(function(t){(function(e,t){var n,r,i,s;return o(this,void 0,void 0,function(){var o,u;return a(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=f(e),a.label=1;case 1:return[4,n.next()];case 2:if((r=a.sent()).done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=a.sent(),i={error:u},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(s=n.return)?[4,s.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function Ke(e,t){return t?je(e,t):Je(e)}function Qe(e){return e&&h(e.schedule)}function et(e){return e[e.length-1]}function tt(e){return h(et(e))?e.pop():void 0}function nt(e){return Qe(et(e))?e.pop():void 0}function rt(e,t){return"number"==typeof et(e)?e.pop():t}function it(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return n?je(e,n):Ke(e)}function ot(e,t){var n=h(e)?e:function(){return e},r=function(e){return e.error(n())};return new F(t?function(e){return t.schedule(r,0,e)}:r)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(Re||(Re={}));var at=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return st(this,e)},e.prototype.do=function(e,t,n){var r=this,i=r.kind,o=r.value,a=r.error;return"N"===i?null==e?void 0:e(o):"E"===i?null==t?void 0:t(a):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var r;return h(null===(r=e)||void 0===r?void 0:r.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,r=e.error,i="N"===t?it(n):"E"===t?ot(function(){return r}):"C"===t?Ee:0;if(!i)throw new TypeError("Unexpected notification kind "+t);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function st(e,t){var n,r,i,o=e,a=o.kind,s=o.value,u=o.error;if("string"!=typeof a)throw new TypeError('Invalid notification, missing "kind"');"N"===a?null===(n=t.next)||void 0===n||n.call(t,s):"E"===a?null===(r=t.error)||void 0===r||r.call(t,u):null===(i=t.complete)||void 0===i||i.call(t)}function ut(e){return!!e&&(e instanceof F||h(e.lift)&&h(e.subscribe))}var ct=p(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function lt(e,t){var n="object"==typeof t;return new Promise(function(r,i){var o,a=!1;e.subscribe({next:function(e){o=e,a=!0},error:i,complete:function(){a?r(o):n?r(t.defaultValue):i(new ct)}})})}function dt(e,t){var n="object"==typeof t;return new Promise(function(r,i){var o=new C({next:function(e){r(e),o.unsubscribe()},error:i,complete:function(){n?r(t.defaultValue):i(new ct)}});e.subscribe(o)})}var ft=p(function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),ht=p(function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}),pt=p(function(e){return function(t){e(this),this.name="SequenceError",this.message=t}});function vt(e){return e instanceof Date&&!isNaN(e)}var mt=p(function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function gt(e,t){var n=vt(e)?{first:e}:"number"==typeof e?{each:e}:e,r=n.first,i=n.each,o=n.with,a=void 0===o?bt:o,s=n.scheduler,u=void 0===s?null!=t?t:we:s,c=n.meta,l=void 0===c?null:c;if(null==r&&null==i)throw new TypeError("No timeout provided.");return U(function(e,t){var n,o,s=null,c=0,d=function(e){o=Le(t,u,function(){n.unsubscribe(),Ze(a({meta:l,lastValue:s,seen:c})).subscribe(t)},e)};n=e.subscribe(new G(t,function(e){null==o||o.unsubscribe(),c++,t.next(s=e),i>0&&d(i)},void 0,void 0,function(){(null==o?void 0:o.closed)||null==o||o.unsubscribe(),s=null})),d(null!=r?"number"==typeof r?r:+r-u.now():i)})}function bt(e){throw new mt(e)}function yt(e,t){return void 0===t&&(t=0),U(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function wt(e,t){return U(function(n,r){var i=0;n.subscribe(new G(r,function(n){r.next(e.call(t,n,i++))}))})}var _t=Array.isArray;function xt(e){return wt(function(t){return function(e,t){return _t(t)?e.apply(void 0,c([],u(t))):e(t)}(e,t)})}function kt(e,t){return void 0===t&&(t=0),U(function(n,r){n.subscribe(new G(r,function(n){return r.add(e.schedule(function(){return r.next(n)},t))},function(){return r.add(e.schedule(function(){return r.complete()},t))},function(n){return r.add(e.schedule(function(){return r.error(n)},t))}))})}function St(e,t,n,r){if(n){if(!Qe(n))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return St(e,t,r).apply(this,i).pipe(xt(n))};r=n}return r?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return St(e,t).apply(this,n).pipe(yt(r),kt(r))}:function(){for(var n=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=new ie,a=!0;return new F(function(i){var s=o.subscribe(i);if(a){a=!1;var l=!1,d=!1;t.apply(n,c(c([],u(r)),[function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=t.shift();if(null!=r)return void o.error(r)}o.next(1<t.length?t:t[0]),d=!0,l&&o.complete()}])),d&&o.complete(),l=!0}return s})}}function Mt(e,t,n){return St(!1,e,t,n)}function Dt(e,t,n){return St(!0,e,t,n)}var Ot=Array.isArray,Tt=Object.getPrototypeOf,Pt=Object.prototype,Ct=Object.keys;function Et(e){if(1===e.length){var t=e[0];if(Ot(t))return{args:t,keys:null};if((r=t)&&"object"==typeof r&&Tt(r)===Pt){var n=Ct(t);return{args:n.map(function(e){return t[e]}),keys:n}}}var r;return{args:e,keys:null}}function At(e,t){return e.reduce(function(e,n,r){return e[n]=t[r],e},{})}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=tt(e),i=Et(e),o=i.args,a=i.keys;if(0===o.length)return Be([],n);var s=new F(It(o,n,a?function(e){return At(a,e)}:R));return r?s.pipe(xt(r)):s}function It(e,t,n){return void 0===n&&(n=R),function(r){Nt(t,function(){for(var i=e.length,o=new Array(i),a=i,s=i,u=function(i){Nt(t,function(){var u=Be(e[i],t),c=!1;u.subscribe(new G(r,function(e){o[i]=e,c||(c=!0,s--),s||r.next(n(o.slice()))},function(){--a||r.complete()}))},r)},c=0;c<i;c++)u(c)},r)}}function Nt(e,t,n){e?n.add(e.schedule(t)):t()}function Rt(e,t,n,r,i,o,a,s){var u=[],c=0,l=0,d=!1,f=function(){!d||u.length||c||t.complete()},h=function(e){return c<r?p(e):u.push(e)},p=function(e){o&&t.next(e),c++;var s=!1;Ze(n(e,l++)).subscribe(new G(t,function(e){null==i||i(e),o?h(e):t.next(e)},function(){s=!0},void 0,function(){if(s)try{c--;for(var e=function(){var e=u.shift();a?t.add(a.schedule(function(){return p(e)})):p(e)};u.length&&c<r;)e();f()}catch(e){t.error(e)}}))};return e.subscribe(new G(t,h,function(){d=!0,f()})),function(){null==s||s()}}function Yt(e,t,n){return void 0===n&&(n=1/0),h(t)?Yt(function(n,r){return wt(function(e,i){return t(n,e,r,i)})(Ze(e(n,r)))},n):("number"==typeof t&&(n=t),U(function(t,r){return Rt(t,r,e,n)}))}function Lt(e){return void 0===e&&(e=1/0),Yt(R,e)}function Ft(){return Lt(1)}function Wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ft()(Ke(e,nt(e)))}function Vt(e){return new F(function(t){Ze(e()).subscribe(t)})}var Ut={connector:function(){return new Q},resetOnDisconnect:!0};function Gt(e,t){void 0===t&&(t=Ut);var n=null,r=t.connector,i=t.resetOnDisconnect,o=void 0===i||i,a=r(),s=new F(function(e){return a.subscribe(e)});return s.connect=function(){return n&&!n.closed||(n=Vt(function(){return e}).subscribe(a),o&&n.add(function(){return a=r()})),n},s}function $t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=Et(e),i=r.args,o=r.keys,a=new F(function(e){var t=i.length;if(t)for(var n=new Array(t),r=t,a=t,s=function(t){var s=!1;Ze(i[t]).subscribe(new G(e,function(e){s||(s=!0,a--),n[t]=e},function(){--r&&s||(a||e.next(o?At(o,n):n),e.complete())}))},u=0;u<t;u++)s(u);else e.complete()});return n?a.pipe(xt(n)):a}var Ht=["addListener","removeListener"],zt=["addEventListener","removeEventListener"],qt=["on","off"];function Bt(e,t,n,r){if(h(n)&&(r=n,n=void 0),r)return Bt(e,t,n).pipe(xt(r));var i=u(function(e){return h(e.addEventListener)&&h(e.removeEventListener)}(e)?zt.map(function(r){return function(i){return e[r](t,i,n)}}):function(e){return h(e.addListener)&&h(e.removeListener)}(e)?Ht.map(Zt(e,t)):function(e){return h(e.on)&&h(e.off)}(e)?qt.map(Zt(e,t)):[],2),o=i[0],a=i[1];if(!o&&Ie(e))return Yt(function(e){return Bt(e,t,n)})(Ke(e));if(!o)throw new TypeError("Invalid event target");return new F(function(e){var t=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1<t.length?t:t[0])};return o(t),function(){return a(t)}})}function Zt(e,t){return function(n){return function(r){return e[n](t,r)}}}function Jt(e,t,n){return n?Jt(e,t).pipe(xt(n)):new F(function(n){var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)},i=e(r);return h(t)?function(){return t(r,i)}:void 0})}function Xt(e,t,n,r,i){var o,s,u,c;function l(){var e;return a(this,function(r){switch(r.label){case 0:e=c,r.label=1;case 1:return t&&!t(e)?[3,4]:[4,u(e)];case 2:r.sent(),r.label=3;case 3:return e=n(e),[3,1];case 4:return[2]}})}return 1===arguments.length?(c=(o=e).initialState,t=o.condition,n=o.iterate,s=o.resultSelector,u=void 0===s?R:s,i=o.scheduler):(c=e,!r||Qe(r)?(u=R,i=r):u=r),Vt(i?function(){return Fe(l(),i)}:l)}function Kt(e,t,n){return Vt(function(){return e()?t:n})}function Qt(e,t,n){void 0===e&&(e=0),void 0===n&&(n=_e);var r=-1;return null!=t&&(Qe(t)?n=t:r=t),new F(function(t){var i=vt(e)?+e-n.now():e;i<0&&(i=0);var o=0;return n.schedule(function(){t.closed||(t.next(o++),0<=r?this.schedule(void 0,r):t.complete())},i)})}function en(e,t){return void 0===e&&(e=0),void 0===t&&(t=we),e<0&&(e=0),Qt(e,e,t)}function tn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0),i=e;return i.length?1===i.length?Ze(i[0]):Lt(r)(Ke(i,n)):Ee}var nn=new F(S);function rn(){return nn}var on=Array.isArray;function an(e){return 1===e.length&&on(e[0])?e[0]:e}function sn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=an(e);return U(function(e,t){var r=c([e],u(n)),i=function(){if(!t.closed)if(r.length>0){var e=void 0;try{e=Ze(r.shift())}catch(e){return void i()}var n=new G(t,void 0,S,S);t.add(e.subscribe(n)),n.add(i)}else t.complete()};i()})}(an(e))(Ee)}function un(e,t){return Be(Object.entries(e),t)}function cn(e,t){return function(n,r){return!e.call(t,n,r)}}function ln(e,t){return U(function(n,r){var i=0;n.subscribe(new G(r,function(n){return e.call(t,n,i++)&&r.next(n)}))})}function dn(e,t,n){return[ln(t,n)(Ze(e)),ln(cn(t,n))(Ze(e))]}function fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=an(e)).length?Ze(e[0]):new F(hn(e))}function hn(e){return function(t){for(var n=[],r=function(r){n.push(Ze(e[r]).subscribe(new G(t,function(e){if(n){for(var i=0;i<n.length;i++)i!==r&&n[i].unsubscribe();n=null}t.next(e)})))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}function pn(e,t,n){if(null==t&&(t=e,e=0),t<=0)return Ee;var r=t+e;return new F(n?function(t){var i=e;return n.schedule(function(){i<r?(t.next(i++),this.schedule()):t.complete()})}:function(t){for(var n=e;n<r&&!t.closed;)t.next(n++);t.complete()})}function vn(e,t){return new F(function(n){var r=e(),i=t(r);return(i?Ze(i):Ee).subscribe(n),function(){r&&r.unsubscribe()}})}function mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e),r=an(e);return r.length?new F(function(e){var t=r.map(function(){return[]}),i=r.map(function(){return!1});e.add(function(){t=i=null});for(var o=function(o){Ze(r[o]).subscribe(new G(e,function(r){if(t[o].push(r),t.every(function(e){return e.length})){var a=t.map(function(e){return e.shift()});e.next(n?n.apply(void 0,c([],u(a))):a),t.some(function(e,t){return!e.length&&i[t]})&&e.complete()}},function(){i[o]=!0,!t[o].length&&e.complete()}))},a=0;!e.closed&&a<r.length;a++)o(a);return function(){t=i=null}}):Ee}function gn(e){return U(function(t,n){var r=!1,i=null,o=null,a=!1,s=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var e=i;i=null,n.next(e)}a&&n.complete()},u=function(){o=null,a&&n.complete()};t.subscribe(new G(n,function(t){r=!0,i=t,o||Ze(e(t)).subscribe(o=new G(n,s,u))},function(){a=!0,(!r||!o||o.closed)&&n.complete()}))})}function bn(e,t){return void 0===t&&(t=_e),gn(function(){return Qt(e,t)})}function yn(e){return U(function(t,n){var r=[];return t.subscribe(new G(n,function(e){return r.push(e)},function(){n.next(r),n.complete()})),e.subscribe(new G(n,function(){var e=r;r=[],n.next(e)},S)),function(){r=null}})}function wn(e,t){return void 0===t&&(t=null),t=null!=t?t:e,U(function(n,r){var i=[],o=0;n.subscribe(new G(r,function(n){var a,u,c,l,d=null;o++%t===0&&i.push([]);try{for(var f=s(i),h=f.next();!h.done;h=f.next()){(g=h.value).push(n),e<=g.length&&(d=null!=d?d:[]).push(g)}}catch(e){a={error:e}}finally{try{h&&!h.done&&(u=f.return)&&u.call(f)}finally{if(a)throw a.error}}if(d)try{for(var p=s(d),v=p.next();!v.done;v=p.next()){var g=v.value;m(i,g),r.next(g)}}catch(e){c={error:e}}finally{try{v&&!v.done&&(l=p.return)&&l.call(p)}finally{if(c)throw c.error}}},function(){var e,t;try{for(var n=s(i),o=n.next();!o.done;o=n.next()){var a=o.value;r.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()},void 0,function(){i=null}))})}function _n(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(t=nt(r))&&void 0!==t?t:we,a=null!==(n=r[0])&&void 0!==n?n:null,u=r[1]||1/0;return U(function(t,n){var r=[],i=!1,c=function(e){var t=e.buffer;e.subs.unsubscribe(),m(r,e),n.next(t),i&&l()},l=function(){if(r){var t=new g;n.add(t);var i={buffer:[],subs:t};r.push(i),t.add(o.schedule(function(){return c(i)},e))}};null!==a&&a>=0?n.add(o.schedule(function(){l(),!this.closed&&n.add(this.schedule(null,a))},a)):i=!0,l();var d=new G(n,function(e){var t,n,i=r.slice();try{for(var o=s(i),a=o.next();!a.done;a=o.next()){var l=a.value,d=l.buffer;d.push(e),u<=d.length&&c(l)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},function(){for(;null==r?void 0:r.length;)n.next(r.shift().buffer);null==d||d.unsubscribe(),n.complete(),n.unsubscribe()},void 0,function(){return r=null});t.subscribe(d)})}function xn(e,t){return U(function(n,r){var i=[];Ze(e).subscribe(new G(r,function(e){var n=[];i.push(n);var o=new g;o.add(Ze(t(e)).subscribe(new G(r,function(){m(i,n),r.next(n),o.unsubscribe()},S)))},S)),n.subscribe(new G(r,function(e){var t,n;try{for(var r=s(i),o=r.next();!o.done;o=r.next()){o.value.push(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},function(){for(;i.length>0;)r.next(i.shift());r.complete()}))})}function kn(e){return U(function(t,n){var r=null,i=null,o=function(){null==i||i.unsubscribe();var t=r;r=[],t&&n.next(t),Ze(e()).subscribe(i=new G(n,o,S))};o(),t.subscribe(new G(n,function(e){return null==r?void 0:r.push(e)},function(){r&&n.next(r),n.complete()},void 0,function(){return r=i=null}))})}function Sn(e){return U(function(t,n){var r,i=null,o=!1;i=t.subscribe(new G(n,void 0,void 0,function(a){r=Ze(e(a,Sn(e)(t))),i?(i.unsubscribe(),i=null,r.subscribe(n)):o=!0})),o&&(i.unsubscribe(),i=null,r.subscribe(n))})}function Mn(e,t,n,r,i){return function(o,a){var s=n,u=t,c=0;o.subscribe(new G(a,function(t){var n=c++;u=s?e(u,t,n):(s=!0,t),r&&a.next(u)},i&&function(){s&&a.next(u),a.complete()}))}}function Dn(e,t){return U(Mn(e,t,arguments.length>=2,!1,!0))}var On=function(e,t){return e.push(t),e};function Tn(){return U(function(e,t){Dn(On,[])(e).subscribe(t)})}function Pn(e,t){return Y(Tn(),Yt(function(t){return e(t)}),t?xt(t):R)}function Cn(e){return Pn(jt,e)}var En=Cn;function An(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return n?Y(An.apply(void 0,c([],u(e))),xt(n)):U(function(t,n){It(c([t],u(an(e))))(n)})}function jn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return An.apply(void 0,c([],u(e)))}function In(e,t){return h(t)?Yt(e,t,1):Yt(e,1)}function Nn(e,t){return h(t)?In(function(){return e},t):In(function(){return e})}function Rn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return U(function(t,r){Ft()(Ke(c([t],u(e)),n)).subscribe(r)})}function Yn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Rn.apply(void 0,c([],u(e)))}var Ln={connector:function(){return new Q}};function Fn(e,t){void 0===t&&(t=Ln);var n=t.connector;return U(function(t,r){var i,o=n();Be(e((i=o,new F(function(e){return i.subscribe(e)})))).subscribe(r),r.add(t.subscribe(o))})}function Wn(e){return Dn(function(t,n,r){return!e||e(n,r)?t+1:t},0)}function Vn(e){return U(function(t,n){var r=!1,i=null,o=null,a=function(){if(null==o||o.unsubscribe(),o=null,r){r=!1;var e=i;i=null,n.next(e)}};t.subscribe(new G(n,function(t){null==o||o.unsubscribe(),r=!0,i=t,o=new G(n,a,S),Ze(e(t)).subscribe(o)},function(){a(),n.complete()},void 0,function(){i=o=null}))})}function Un(e,t){return void 0===t&&(t=we),U(function(n,r){var i=null,o=null,a=null,s=function(){if(i){i.unsubscribe(),i=null;var e=o;o=null,r.next(e)}};function u(){var n=a+e,o=t.now();if(o<n)return i=this.schedule(void 0,n-o),void r.add(i);s()}n.subscribe(new G(r,function(n){o=n,a=t.now(),i||(i=t.schedule(u,e),r.add(i))},function(){s(),r.complete()},void 0,function(){o=i=null}))})}function Gn(e){return U(function(t,n){var r=!1;t.subscribe(new G(n,function(e){r=!0,n.next(e)},function(){r||n.next(e),n.complete()}))})}function $n(e){return e<=0?function(){return Ee}:U(function(t,n){var r=0;t.subscribe(new G(n,function(t){++r<=e&&(n.next(t),e<=r&&n.complete())}))})}function Hn(){return U(function(e,t){e.subscribe(new G(t,S))})}function zn(e){return wt(function(){return e})}function qn(e,t){return t?function(n){return Wt(t.pipe($n(1),Hn()),n.pipe(qn(e)))}:Yt(function(t,n){return e(t,n).pipe($n(1),zn(t))})}function Bn(e,t){void 0===t&&(t=we);var n=Qt(e,t);return qn(function(){return n})}function Zn(){return U(function(e,t){e.subscribe(new G(t,function(e){return st(e,t)}))})}function Jn(e,t){return U(function(n,r){var i=new Set;n.subscribe(new G(r,function(t){var n=e?e(t):t;i.has(n)||(i.add(n),r.next(t))})),null==t||t.subscribe(new G(r,function(){return i.clear()},S))})}function Xn(e,t){return void 0===t&&(t=R),e=null!=e?e:Kn,U(function(n,r){var i,o=!0;n.subscribe(new G(r,function(n){var a=t(n);!o&&e(i,a)||(o=!1,i=a,r.next(n))}))})}function Kn(e,t){return e===t}function Qn(e,t){return Xn(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}function er(e){return void 0===e&&(e=tr),U(function(t,n){var r=!1;t.subscribe(new G(n,function(e){r=!0,n.next(e)},function(){return r?n.complete():n.error(e())}))})}function tr(){return new ct}function nr(e,t){if(e<0)throw new ft;var n=arguments.length>=2;return function(r){return r.pipe(ln(function(t,n){return n===e}),$n(1),n?Gn(t):er(function(){return new ft}))}}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Wt(t,it.apply(void 0,c([],u(e))))}}function ir(e,t){return U(function(n,r){var i=0;n.subscribe(new G(r,function(o){e.call(t,o,i++,n)||(r.next(!1),r.complete())},function(){r.next(!0),r.complete()}))})}function or(){return U(function(e,t){var n=!1,r=null;e.subscribe(new G(t,function(e){r||(r=Ze(e).subscribe(new G(t,void 0,function(){r=null,n&&t.complete()})))},function(){n=!0,!r&&t.complete()}))})}var ar=or;function sr(e,t){return t?function(n){return n.pipe(sr(function(n,r){return Ze(e(n,r)).pipe(wt(function(e,i){return t(n,e,r,i)}))}))}:U(function(t,n){var r=0,i=null,o=!1;t.subscribe(new G(n,function(t){i||(i=new G(n,void 0,function(){i=null,o&&n.complete()}),Ze(e(t,r++)).subscribe(i))},function(){o=!0,!i&&n.complete()}))})}function ur(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,U(function(r,i){return Rt(r,i,e,t,void 0,!0,n)})}function cr(e){return U(function(t,n){try{t.subscribe(n)}finally{n.add(e)}})}function lr(e,t){return U(dr(e,t,"value"))}function dr(e,t,n){var r="index"===n;return function(n,i){var o=0;n.subscribe(new G(i,function(a){var s=o++;e.call(t,a,s,n)&&(i.next(r?s:a),i.complete())},function(){i.next(r?-1:void 0),i.complete()}))}}function fr(e,t){return U(dr(e,t,"index"))}function hr(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln(function(t,n){return e(t,n,r)}):R,$n(1),n?Gn(t):er(function(){return new ct}))}}function pr(e,t,n,r){return U(function(i,o){var a;t&&"function"!=typeof t?(n=t.duration,a=t.element,r=t.connector):a=t;var s=new Map,u=function(e){s.forEach(e),e(o)},c=function(e){return u(function(t){return t.error(e)})},l=new vr(o,function(t){try{var i=e(t),u=s.get(i);if(!u){s.set(i,u=r?r():new Q);var d=(h=i,p=u,(v=new F(function(e){l.activeGroups++;var t=p.subscribe(e);return function(){t.unsubscribe(),0===--l.activeGroups&&l.teardownAttempted&&l.unsubscribe()}})).key=h,v);if(o.next(d),n){var f=new G(u,function(){u.complete(),null==f||f.unsubscribe()},void 0,void 0,function(){return s.delete(i)});l.add(Ze(n(d)).subscribe(f))}}u.next(a?a(t):t)}catch(e){c(e)}var h,p,v},function(){return u(function(e){return e.complete()})},c,function(){return s.clear()});i.subscribe(l)})}var vr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeGroups=0,t.teardownAttempted=!1,t}return i(t,e),t.prototype.unsubscribe=function(){this.teardownAttempted=!0,0===this.activeGroups&&e.prototype.unsubscribe.call(this)},t}(G);function mr(){return U(function(e,t){e.subscribe(new G(t,function(){t.next(!1),t.complete()},function(){t.next(!0),t.complete()}))})}function gr(e){return e<=0?function(){return Ee}:U(function(t,n){var r=[];t.subscribe(new G(n,function(t){r.push(t),e<r.length&&r.shift()},function(){var e,t;try{for(var i=s(r),o=i.next();!o.done;o=i.next()){var a=o.value;n.next(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()},void 0,function(){r=null}))})}function br(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?ln(function(t,n){return e(t,n,r)}):R,gr(1),n?Gn(t):er(function(){return new ct}))}}function yr(){return U(function(e,t){e.subscribe(new G(t,function(e){t.next(at.createNext(e))},function(){t.next(at.createComplete()),t.complete()},function(e){t.next(at.createError(e)),t.complete()}))})}function wr(e){return Dn(h(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var _r=Yt;function xr(e,t,n){return void 0===n&&(n=1/0),h(t)?Yt(function(){return e},t,n):("number"==typeof t&&(n=t),Yt(function(){return e},n))}function kr(e,t,n){return void 0===n&&(n=1/0),U(function(r,i){var o=t;return Rt(r,i,function(t,n){return e(o,t,n)},n,function(e){o=e},!1,void 0,function(){return o=null})})}function Sr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e),r=rt(e,1/0);return e=an(e),U(function(t,i){Lt(r)(Ke(c([t],u(e)),n)).subscribe(i)})}function Mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Sr.apply(void 0,c([],u(e)))}function Dr(e){return Dn(h(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}function Or(e,t){var n=h(e)?e:function(){return e};return h(t)?Fn(t,{connector:n}):function(e){return new H(e,n)}}function Tr(){return U(function(e,t){var n,r=!1;e.subscribe(new G(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))})}function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return wt(function(t){for(var r=t,i=0;i<n;i++){var o=null==r?void 0:r[e[i]];if(void 0===o)return;r=o}return r})}function Cr(e){return e?function(t){return Fn(e)(t)}:function(e){return Or(new Q)(e)}}function Er(e){return function(t){var n=new te(e);return new H(t,function(){return n})}}function Ar(){return function(e){var t=new ie;return new H(e,function(){return t})}}function jr(e,t,n,r){n&&!h(n)&&(r=n);var i=h(n)?n:void 0;return function(n){return Or(new re(e,t,r),i)(n)}}function Ir(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?U(function(t,n){hn(c([t],u(e)))(n)}):R}function Nr(e){return void 0===e&&(e=1/0),e<=0?function(){return Ee}:U(function(t,n){var r,i=0,o=function(){var a=!1;r=t.subscribe(new G(n,void 0,function(){++i<e?r?(r.unsubscribe(),r=null,o()):a=!0:n.complete()})),a&&(r.unsubscribe(),r=null,o())};o()})}function Rr(e){return U(function(t,n){var r,i,o=!1,a=!1,s=!1,u=function(){return s&&a&&(n.complete(),!0)},c=function(){s=!1,r=t.subscribe(new G(n,void 0,function(){s=!0,!u()&&(i||(i=new Q,e(i).subscribe(new G(n,function(){r?c():o=!0},function(){a=!0,u()}))),i).next()})),o&&(r.unsubscribe(),r=null,o=!1,c())};c()})}function Yr(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,r=void 0===n?1/0:n,i=t.delay,o=t.resetOnSuccess,a=void 0!==o&&o;return r<=0?R:U(function(e,t){var n,o=0,s=function(){var u=!1;n=e.subscribe(new G(t,function(e){a&&(o=0),t.next(e)},void 0,function(e){if(o++<r){var a=function(){n?(n.unsubscribe(),n=null,s()):u=!0};if(null!=i){var c="number"==typeof i?Qt(i):Ze(i(e,o)),l=new G(t,function(){l.unsubscribe(),a()},function(){t.complete()});c.subscribe(l)}else a()}else t.error(e)})),u&&(n.unsubscribe(),n=null,s())};s()})}function Lr(e){return U(function(t,n){var r,i,o=!1,a=function(){r=t.subscribe(new G(n,void 0,void 0,function(t){i||(i=new Q,e(i).subscribe(new G(n,function(){return r?a():o=!0}))),i&&i.next(t)})),o&&(r.unsubscribe(),r=null,o=!1,a())};a()})}function Fr(e){return U(function(t,n){var r=!1,i=null;t.subscribe(new G(n,function(e){r=!0,i=e}));e.subscribe(new G(n,function(){if(r){r=!1;var e=i;i=null,n.next(e)}},S))})}function Wr(e,t){return void 0===t&&(t=we),Fr(en(e,t))}function Vr(e,t){return U(Mn(e,t,arguments.length>=2,!0))}function Ur(e,t){return void 0===t&&(t=function(e,t){return e===t}),U(function(n,r){var i={buffer:[],complete:!1},o={buffer:[],complete:!1},a=function(e){r.next(e),r.complete()},s=function(e,n){var i=new G(r,function(r){var i=n.buffer,o=n.complete;0===i.length?o?a(!1):e.buffer.push(r):!t(r,i.shift())&&a(!1)},function(){e.complete=!0;var t=n.complete,r=n.buffer;t&&a(0===r.length),null==i||i.unsubscribe()});return i};n.subscribe(s(i,o)),e.subscribe(s(o,i))})}function Gr(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new Q}:t,r=e.resetOnError,i=void 0===r||r,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,u=void 0===s||s;return function(e){var t=null,r=null,o=null,s=0,c=!1,l=!1,d=function(){null==r||r.unsubscribe(),r=null},f=function(){d(),t=o=null,c=l=!1},h=function(){var e=t;f(),null==e||e.unsubscribe()};return U(function(e,p){s++,l||c||d();var v=o=null!=o?o:n();p.add(function(){0!==--s||l||c||(r=$r(h,u))}),v.subscribe(p),t||(t=new C({next:function(e){return v.next(e)},error:function(e){l=!0,d(),r=$r(f,i,e),v.error(e)},complete:function(){c=!0,d(),r=$r(f,a),v.complete()}}),Be(e).subscribe(t))})(e)}}function $r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!0===t?(e(),null):!1===t?null:t.apply(void 0,c([],u(n))).pipe($n(1)).subscribe(function(){return e()})}function Hr(e,t,n){var r,i,o,a=!1;return e&&"object"==typeof e?(o=null!==(r=e.bufferSize)&&void 0!==r?r:1/0,t=null!==(i=e.windowTime)&&void 0!==i?i:1/0,a=!!e.refCount,n=e.scheduler):o=null!=e?e:1/0,Gr({connector:function(){return new re(o,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}function zr(e){return U(function(t,n){var r,i=!1,o=!1,a=0;t.subscribe(new G(n,function(s){o=!0,e&&!e(s,a++,t)||(i&&n.error(new pt("Too many matching values")),i=!0,r=s)},function(){i?(n.next(r),n.complete()):n.error(o?new ht("No matching values"):new ct)}))})}function qr(e){return ln(function(t,n){return e<=n})}function Br(e){return e<=0?R:U(function(t,n){var r=new Array(e),i=0;return t.subscribe(new G(n,function(t){var o=i++;if(o<e)r[o]=t;else{var a=o%e,s=r[a];r[a]=t,n.next(s)}})),function(){r=null}})}function Zr(e){return U(function(t,n){var r=!1,i=new G(n,function(){null==i||i.unsubscribe(),r=!0},S);Ze(e).subscribe(i),t.subscribe(new G(n,function(e){return r&&n.next(e)}))})}function Jr(e){return U(function(t,n){var r=!1,i=0;t.subscribe(new G(n,function(t){return(r||(r=!e(t,i++)))&&n.next(t)}))})}function Xr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=nt(e);return U(function(t,r){(n?Wt(e,t,n):Wt(e,t)).subscribe(r)})}function Kr(e,t){return U(function(n,r){var i=null,o=0,a=!1,s=function(){return a&&!i&&r.complete()};n.subscribe(new G(r,function(n){null==i||i.unsubscribe();var a=0,u=o++;Ze(e(n,u)).subscribe(i=new G(r,function(e){return r.next(t?t(n,e,u,a++):e)},function(){i=null,s()}))},function(){a=!0,s()}))})}function Qr(){return Kr(R)}function ei(e,t){return h(t)?Kr(function(){return e},t):Kr(function(){return e})}function ti(e,t){return U(function(n,r){var i=t;return Kr(function(t,n){return e(i,t,n)},function(e,t){return i=t,t})(n).subscribe(r),function(){i=null}})}function ni(e){return U(function(t,n){Ze(e).subscribe(new G(n,function(){return n.complete()},S)),!n.closed&&t.subscribe(n)})}function ri(e,t){return void 0===t&&(t=!1),U(function(n,r){var i=0;n.subscribe(new G(r,function(n){var o=e(n,i++);(o||t)&&r.next(n),!o&&r.complete()}))})}function ii(e,t,n){var r=h(e)||t||n?{next:e,error:t,complete:n}:e;return r?U(function(e,t){var n;null===(n=r.subscribe)||void 0===n||n.call(r);var i=!0;e.subscribe(new G(t,function(e){var n;null===(n=r.next)||void 0===n||n.call(r,e),t.next(e)},function(){var e;i=!1,null===(e=r.complete)||void 0===e||e.call(r),t.complete()},function(e){var n;i=!1,null===(n=r.error)||void 0===n||n.call(r,e),t.error(e)},function(){var e,t;i&&(null===(e=r.unsubscribe)||void 0===e||e.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)}))}):R}var oi={leading:!0,trailing:!1};function ai(e,t){var n=void 0===t?oi:t,r=n.leading,i=n.trailing;return U(function(t,n){var o=!1,a=null,s=null,u=!1,c=function(){null==s||s.unsubscribe(),s=null,i&&(f(),u&&n.complete())},l=function(){s=null,u&&n.complete()},d=function(t){return s=Ze(e(t)).subscribe(new G(n,c,l))},f=function(){if(o){o=!1;var e=a;a=null,n.next(e),!u&&d(e)}};t.subscribe(new G(n,function(e){o=!0,a=e,(!s||s.closed)&&(r?f():d(e))},function(){u=!0,(!(i&&o&&s)||s.closed)&&n.complete()}))})}function si(e,t,n){void 0===t&&(t=we),void 0===n&&(n=oi);var r=Qt(e,t);return ai(function(){return r},n)}function ui(e){return void 0===e&&(e=_e),function(t){return Vt(function(){return t.pipe(Vr(function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}},{current:e.now(),value:void 0,last:void 0}),wt(function(e){var t=e.current,n=e.last,r=e.value;return new ci(r,t-n)}))})}}var ci=function(e,t){this.value=e,this.interval=t};function li(e,t,n){var r,i,o;if(n=null!=n?n:_e,vt(e)?r=e:"number"==typeof e&&(i=e),!t)throw new TypeError("No observable provided to switch to");if(o=function(){return t},null==r&&null==i)throw new TypeError("No timeout provided.");return gt({first:r,each:i,scheduler:n,with:o})}function di(e){return void 0===e&&(e=ne),wt(function(t){return{value:t,timestamp:e.now()}})}function fi(e){return U(function(t,n){var r=new Q;n.next(r.asObservable());var i=function(e){r.error(e),n.error(e)};return t.subscribe(new G(n,function(e){return null==r?void 0:r.next(e)},function(){r.complete(),n.complete()},i)),e.subscribe(new G(n,function(){r.complete(),n.next(r=new Q)},S,i)),function(){null==r||r.unsubscribe(),r=null}})}function hi(e,t){void 0===t&&(t=0);var n=t>0?t:e;return U(function(t,r){var i=[new Q],o=0;r.next(i[0].asObservable()),t.subscribe(new G(r,function(t){var a,u;try{for(var c=s(i),l=c.next();!l.done;l=c.next()){l.value.next(t)}}catch(e){a={error:e}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(a)throw a.error}}var d=o-e+1;if(d>=0&&d%n===0&&i.shift().complete(),++o%n===0){var f=new Q;i.push(f),r.next(f.asObservable())}},function(){for(;i.length>0;)i.shift().complete();r.complete()},function(e){for(;i.length>0;)i.shift().error(e);r.error(e)},function(){i=null}))})}function pi(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=null!==(t=nt(r))&&void 0!==t?t:we,a=null!==(n=r[0])&&void 0!==n?n:null,s=r[1]||1/0;return U(function(t,n){var r=[],i=!1,u=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),m(r,e),i&&c()},c=function(){if(r){var t=new g;n.add(t);var i=new Q,a={window:i,subs:t,seen:0};r.push(a),n.next(i.asObservable()),t.add(o.schedule(function(){return u(a)},e))}};null!==a&&a>=0?n.add(o.schedule(function(){c(),!this.closed&&n.add(this.schedule(null,a))},a)):i=!0,c();var l=function(e){return r.slice().forEach(e)},d=function(e){l(function(t){var n=t.window;return e(n)}),e(n),n.unsubscribe()};return t.subscribe(new G(n,function(e){l(function(t){t.window.next(e),s<=++t.seen&&u(t)})},function(){return d(function(e){return e.complete()})},function(e){return d(function(t){return t.error(e)})})),function(){r=null}})}function vi(e,t){return U(function(n,r){var i=[],o=function(e){for(;0<i.length;)i.shift().error(e);r.error(e)};Ze(e).subscribe(new G(r,function(e){var n=new Q;i.push(n);var a,s=new g;try{a=Ze(t(e))}catch(e){return void o(e)}r.next(n.asObservable()),s.add(a.subscribe(new G(r,function(){m(i,n),n.complete(),s.unsubscribe()},S,o)))},S)),n.subscribe(new G(r,function(e){var t,n,r=i.slice();try{for(var o=s(r),a=o.next();!a.done;a=o.next()){a.value.next(e)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},function(){for(;0<i.length;)i.shift().complete();r.complete()},o,function(){for(;0<i.length;)i.shift().unsubscribe()}))})}function mi(e){return U(function(t,n){var r,i,o=function(e){r.error(e),n.error(e)},a=function(){var t;null==i||i.unsubscribe(),null==r||r.complete(),r=new Q,n.next(r.asObservable());try{t=Ze(e())}catch(e){return void o(e)}t.subscribe(i=new G(n,a,a,o))};a(),t.subscribe(new G(n,function(e){return r.next(e)},function(){r.complete(),n.complete()},o,function(){null==i||i.unsubscribe(),r=null}))})}function gi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=tt(e);return U(function(t,r){for(var i=e.length,o=new Array(i),a=e.map(function(){return!1}),s=!1,l=function(t){Ze(e[t]).subscribe(new G(r,function(e){o[t]=e,s||a[t]||(a[t]=!0,(s=a.every(R))&&(a=null))},S))},d=0;d<i;d++)l(d);t.subscribe(new G(r,function(e){if(s){var t=c([e],u(o));r.next(n?n.apply(void 0,c([],u(t))):t)}}))})}function bi(e){return Pn(mn,e)}function yi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return U(function(t,n){mn.apply(void 0,c([t],u(e))).subscribe(n)})}function wi(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yi.apply(void 0,c([],u(e)))}},3030:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(e){this.richContentSvc=e,this.restrict="A",this.scope={bindHtml:"="}}return e.prototype.link=function(e,t,n,r){var i=this;e.$watch("bindHtml",function(n){var r;return i.richContentSvc.apply(null!==(r=n)&&void 0!==r?r:"",t,e)})},e}();function r(e){return new n(e)}t.DirectiveFactory=r,r.$inject=["odeRichContentService"]},1098:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var o=n(9419),a=n(9826),s=n(3148),u=function(){function e(){this.hasRecorded=!1}return e.prototype.guardObjectIsDirty=function(){return this.hasRecorded},e.prototype.guardObjectReset=function(){this.hasRecorded=!1},e}(),c=function(){function e(e,t){var n=this;this.videoUploadService=e,this.videoEventTrackerService=t,this._recorder=this.setRecorder("audio"),this.isAudioCompatible=a.audio_recorder.isCompatible(),this.isVideoCompatible=s.VideoRecorder.isCompatible()&&(0,o.session)().hasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture"),this.disabledButtons=!0,this.displaySavedMessage=!1,this.selectedRecorder="none",this.recordIsSaved=!1,this.msToTime=function(e){e/=1e3;var t=parseInt(""+e/60),r=parseInt(""+e%60);return t+":"+n.pad2(r)}}return e.prototype.setRecorder=function(e){return this._recorder="audio"===e?a.audio_recorder:new s.VideoRecorder(this.videoFactory,this.videoDurationHandler,this.videoUploadService,this.videoEventTrackerService,this.selectedVid),this._recorder.status(this.recorderStatus),this._recorder},Object.defineProperty(e.prototype,"recorder",{get:function(){return this._recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPermission",{get:function(){return"granted"===this.recorder.permission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isIdle",{get:function(){return!this.recorder||"idle"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPreparing",{get:function(){return"preparing"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRecording",{get:function(){return"recording"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSuspended",{get:function(){return"suspended"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return"paused"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPlaying",{get:function(){return"playing"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return"stopped"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEncoding",{get:function(){return"encoding"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUploading",{get:function(){return"uploading"===this.recorder.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showMenu",{get:function(){return this.isIdle||this.isStopped||!this.hasPermission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showRecorder",{get:function(){return this.hasPermission},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showActionButtons",{get:function(){return this.recorder&&this.recorder.elapsedTime>0&&!this.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAudio",{get:function(){return this._recorder===a.audio_recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVideo",{get:function(){return this._recorder!==a.audio_recorder},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"recordMaxTime",{get:function(){return 60*this.videoUploadService.maxDuration*1e3},enumerable:!1,configurable:!0}),e.prototype.switchRecorder=function(e){var t,n;"audio"===e?(this.selectedRecorder="audio",this.setRecorder("audio")):(this.selectedRecorder="video",this.msToTime(0),this.setRecorder("video"),null===(n=null===(t=this.recorder)||void 0===t?void 0:t.prepare)||void 0===n||n.call(t))},e.prototype.switchAudioRecord=function(){var e,t;if(this.setRecorder("audio"),this.isRecording)this.disabledButtons=!1,this.recordIsSaved=!1,null===(e=this.recorder)||void 0===e||e.suspend();else{null===(t=this.recorder)||void 0===t||t.record();var n=document.getElementById("btnAudioRecorder");n&&this.trackEvent(n,{detail:{open:"audio"}})}},e.prototype.switchVideoRecord=function(){var e,t;if(this.isRecording)this.disabledButtons=!1,null===(e=this.recorder)||void 0===e||e.suspend();else{null===(t=this.recorder)||void 0===t||t.record();var n=document.getElementById("btnVideoRecorder");n&&this.trackEvent(n,{detail:{open:"video"}})}this.isPaused&&this.restart()},e.prototype.trackEvent=function(e,t){var n,r;void 0===t.bubbles&&(t.bubbles=!0);var i=null;!t||"audio"!==(null===(n=t.detail)||void 0===n?void 0:n.open)&&"video"!==(null===(r=t.detail)||void 0===r?void 0:r.open)||(i=new CustomEvent("ode-recorder",t)),i&&e&&e.dispatchEvent(i)},e.prototype.pad2=function(e){return(e<10?"0":"")+e},e.prototype.time=function(){return this.recorder?this.msToTime(1e3*this.recorder.elapsedTime):""},e.prototype.switchPlay=function(){this.recorder&&(this.isPlaying?this.recorder.pause():this.recorder.play())},e.prototype.switchVideo=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,(t=this.recorder).switchCamera(e)];case 1:return n.sent(),[4,t.record()];case 2:return n.sent(),[2]}})})},e.prototype.saveRecord=function(){var e;null===(e=this.recorder)||void 0===e||e.save(),this.recordIsSaved=!0},e.prototype.redo=function(){var e,t;null===(e=this.recorder)||void 0===e||e.flush(),null===(t=this.recorder)||void 0===t||t.record()},e.prototype.restart=function(){var e,t=this,n=document.getElementById("recorderWidgetVideoPlayer");null==n||n.removeChild(n.firstElementChild),null===(e=this.recorder)||void 0===e||e.flush(),this.switchRecorder("video"),setTimeout(function(){var e;null===(e=t.recorder)||void 0===e||e.record()},100)},e.prototype.getSaveBtnClass=function(){return this.isEncoding||this.isUploading?"fas fa-spinner fa-spin":"fas fa-save"},e.prototype.getSavedStatus=function(e){return"saved"===e?(this.displaySavedMessage=!0,!0):(this.displaySavedMessage=!1,!1)},e.prototype.clean=function(){var e;this.displaySavedMessage=!1,this.recordIsSaved=!1,this.disabledButtons=!0,null===(e=this.recorder)||void 0===e||e.flush(),this.selectedRecorder="none"},e}();t.Controller=c;var l=function(){function e(e){this.helperSvc=e,this.restrict="EA",this.template=n(41).Z,this.scope={format:"@?",onUpload:"&?"},this.controller=["odeVideoUploadService","odeVideoEventTrackerService",c],this.controllerAs="ctrl",this.require=["odeRecorder"]}return e.prototype.link=function(e,t,n,r){var i=this,a=r?r[0]:null;if(a&&a.recorder){if(e.recordGuard=new u,a.isVideoCompatible){var s=(0,o.conf)().Platform.idiom,c={deviceId:"environment",label:s.translate("video.back.camera"),groupId:"",kind:"videoinput"},l={deviceId:"user",label:s.translate("video.front.camera"),groupId:"",kind:"videoinput"};a.videoUploadService.initialize().then(function(){return navigator.mediaDevices.enumerateDevices()}).then(function(e){return e.filter(function(e){return"videoinput"===e.kind})}).then(function(e){switch(o.deviceType){case"Mobile":case"Tablet":e&&e.length>1?a.videoInputDevices=[c,l]:a.videoInputDevices=[c];break;default:a.videoInputDevices=e}}).catch(function(){console.error("[VideoController.videoInputDevices] An error occured while detecting cameras."),a.videoInputDevices=[c]}).finally(function(){a.videoInputDevices&&(a.selectedVid=a.videoInputDevices[0]),i.helperSvc.safeApply(e)})}a.videoFactory=function(){var e=document.createElement("video");return e.setAttribute("style","max-width:100%"),e.setAttribute("playsinline","true"),e.setAttribute("autoplay",""),e.setAttribute("muted",""),setTimeout(function(){var t;null===(t=document.getElementById("recorderWidgetVideoPlayer"))||void 0===t||t.appendChild(e)},100),e};var d={startedAt:0,endedAt:0};a.videoDurationHandler=function(t){var n;0===d.startedAt&&(d.startedAt=t.timeStamp),a.isRecording&&(d.endedAt=t.timeStamp,a.recorder.elapsedTime=d.endedAt-d.startedAt,a.recorder.elapsedTime>=a.recordMaxTime&&(a.disabledButtons=!1,null===(n=a.recorder)||void 0===n||n.suspend())),i.helperSvc.safeApply(e)},a.recorderStatus=function(t){switch(t){case"recording":d.endedAt=d.startedAt=0,e.recordGuard&&(e.recordGuard.hasRecorded=!0);break;case"saved":e.recordGuard&&e.recordGuard.guardObjectReset(),e.onUpload&&e.onUpload(),a.getSavedStatus(t);case"idle":e.recordGuard&&e.recordGuard.guardObjectReset()}i.helperSvc.safeApply(e)}}},e}();function d(e){return new l(e)}t.DirectiveFactory=d,d.$inject=["odeNgHelperService"]},4262:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.TriggerDirectiveFactory=t.Controller=void 0;var o=n(5262),a=n(9419),s=new o.RxJS.Subject,u=function(){function e(){this.restrict="A",this.scope={connectorLightboxTrigger:"="}}return e.prototype.link=function(e,t,n){t.on("click",function(n){var r={app:e.connectorLightboxTrigger,element:t[0],$mutex:!1,ctrlKey:!!n.ctrlKey,metaKey:!!n.metaKey};return n.preventDefault(),s.next(r),!1}),e.$on("$destroy",function(){t.off("click")})},e}(),c=function(){function e(e){this.xitiSvc=e,this.display={showAuthenticatedConnectorLightbox:!1}}return e.prototype.onClose=function(){this.display.showAuthenticatedConnectorLightbox=!1},e.prototype.onConfirm=function(){var e=this;if(this._currentAppEvent){var t=this._currentAppEvent.app;this.onClose(),this.authenticatedConnectorsAccessed?this.authenticatedConnectorsAccessed.push(t.name):this.authenticatedConnectorsAccessed=[t.name];var n=this._currentAppEvent.ctrlKey||this._currentAppEvent.metaKey?"_blank":t.target?t.target:"_self";"_self"!==n?((0,a.conf)().User.preferences.update("authenticatedConnectorsAccessed",this.authenticatedConnectorsAccessed).save("authenticatedConnectorsAccessed"),this.windowOpen(t.address,n)):r(e,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return[4,(0,a.conf)().User.preferences.update("authenticatedConnectorsAccessed",this.authenticatedConnectorsAccessed).save("authenticatedConnectorsAccessed")];case 1:return e.sent(),this.windowOpen(t.address,n),[2]}})})}},e.prototype.isAuthenticatedConnector=function(e){return!!e.casType||e.scope&&e.scope.length>0&&!!e.scope[0]},e.prototype.isAuthenticatedConnectorFirstAccess=function(e){return!this.authenticatedConnectorsAccessed||this.authenticatedConnectorsAccessed&&!this.authenticatedConnectorsAccessed.includes(e.name)},e.prototype.openAppWithCheck=function(e){if(this._currentAppEvent=e,!e.$mutex){e.$mutex=!0;var t=e.app;if(void 0===t)throw"ConnectorLightbox, Controller.openAppWithCheck failed : target app is undefined";var n=e.ctrlKey||e.metaKey?"_blank":t.target?t.target:"_self";!this.skipCheck&&this.isAuthenticatedConnector(t)&&this.isAuthenticatedConnectorFirstAccess(t)?(this.display.showAuthenticatedConnectorLightbox=!0,this.apply&&this.apply()):this.windowOpen(t.address,n)}},e.prototype.windowOpen=function(e,t){this._currentAppEvent&&this._currentAppEvent.app.isExternal?"_self"==t?this.xitiSvc.trackClick(this._currentAppEvent.app.name,this._currentAppEvent.element).finally(function(){window.open(e,t)}):(this.xitiSvc.trackClick(this._currentAppEvent.app.name,this._currentAppEvent.element).finally(function(){}),window.open(e,t)):window.open(e,t)},e}();t.Controller=c;var l=function(){function e(){this.restrict="E",this.template=n(3146).Z,this.scope={},this.controller=["odeXiti",c],this.controllerAs="ctrl",this.require=["connectorLightbox"]}return e.prototype.link=function(e,t,n,u){return r(this,void 0,void 0,function(){var t,n,r,c,l;return i(this,function(i){switch(i.label){case 0:return(t=u?u[0]:null)?(t.apply=function(){e.$apply()},n=s.subscribe(function(e){t.openAppWithCheck(e)}),e.$on("$destroy",function(){n.unsubscribe()}),r=t,[4,(0,a.conf)().User.preferences.load("authenticatedConnectorsAccessed")]):[2];case 1:r.authenticatedConnectorsAccessed=i.sent(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,(0,a.conf)().Platform.apps.getPublicConf(o.APP.CAS)];case 3:return c=i.sent(),t.skipCheck=!!c.skip,[3,5];case 4:return l=i.sent(),console.warn("Failed to get public conf: ",l),[3,5];case 5:return[2]}})})},e}();t.TriggerDirectiveFactory=function(){return new u},t.DirectiveFactory=function(){return new l}},8961:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(9419),a=function(){function e(){this.restrict="E",this.template=n(2306).Z,this.scope={}}return e.prototype.link=function(e,t,n){return r(this,void 0,void 0,function(){var t,n,r,a,s,u,c,l,d,f,h,p;return i(this,function(i){switch(i.label){case 0:return t=(0,o.conf)().Platform.theme,null===(n=(0,o.session)().currentApp)?[2]:[4,t.getHelpPath()];case 1:return r=i.sent(),c=(0,o.conf)().Platform.idiom,l=$("ode-modal"),e.onHelp=function(){a?p(a):(0,o.http)().get(e.helpPath,{queryParams:{"index.html":(0,o.conf)().Platform.deploymentTag}}).then(function(t){404===(0,o.http)().latestResponse.status?(s=c.translate("help.notfound.title"),u="<p>"+c.translate("help.notfound.text")+"</p>",h(s,u)):p(a=t),e.$apply()})},e.display={},e.helpPath=r+"/application/"+n+"/","."===n&&"/adapter"!==window.location.pathname?e.helpPath=r+"/application/portal/":"/adapter"===window.location.pathname?e.helpPath=r+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")&&(e.helpPath=r+"/application/parametrage-de-la-classe/"),h=function(t,n){l.find(".modal-title").html(t),l.find(".modal-body").html(n),e.display.read=!0,e.$apply("display")},p=function(t){(d=$("<div>"+t+"</div>")).find("> p").prev().insertAfter(d.find("> p")),d.find("img").each(function(t,n){$(n).attr("src",e.helpPath+"../.."+$(n).attr("src"))}),l.find("ode-modal-body > div").html(d.html()),l.find("li a").on("click",function(e){var t;l.find(".section").slideUp(),$("div#"+(null===(t=$(e.target).attr("href"))||void 0===t?void 0:t.split("#")[1])).slideDown()}),l.find("div.paragraph a").on("click",function(e){window.open($(e.target).closest("a").attr("href"),"_newtab")}),l.find("li a").first().click(),l.find("#TOC").wrap('<div id="burger-menu" class="burger-menu"></div>'),(f=l.find("#burger-menu")).prepend('<button id="burger-button" class="burger-button"><i class="burger-icon"></i></button>'),l.find("#burger-button").on("click",function(e){f.toggleClass("active")}),l.find("#TOC > ul li a").on("click",function(e){f.removeClass("active")});var n=function(e){0==l.find("#TOC > ul").find(e.target).length&&0==f.find(e.target).length&&f.removeClass("active")};$("body").on("click",n),e.$on("$destroy",function(){$("body").off("click",n)}),e.display.read=!0,e.$apply("display")},[2]}})})},e}();t.Directive=a,t.DirectiveFactory=function(){return new a}},737:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(9419),a=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,a){return r(this,void 0,void 0,function(){return i(this,function(e){return t.attr("href","/auth/logout?callback="+(0,o.conf)().Platform.theme.logoutCallback),[2]})})},e}();t.Directive=a,t.DirectiveFactory=function(){return new a}},6644:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=n(9419),o=r(n(3336)),a=function(){function e(e,t,n){this.session=e,this.helperSvc=t,this.themeSvc=n,this.currentLanguage="",this.username="",this.avatar="no-avatar.svg",this.messagerieLink="/zimbra/zimbra",this.mysearch="",this.apps=[],this.is1D=!1,this.is2D=!1}return e.prototype.refreshAvatar=function(){this.avatar=(0,i.session)().avatarUrl,this.username=(0,i.session)().description.displayName},e.prototype.openApps=function(e){var t=(0,o.default)(window).width();"number"==typeof t&&t<=700&&e.preventDefault()},e.prototype.launchSearch=function(e,t){var n=this.mysearch;"key"===t&&e.stopPropagation(),"button"!==t&&13!=e.keyCode||(this.trackEvent(e,{detail:{open:"searchengine",from:"search"}}),n=n&&""!==n?n:" ",this.mysearch="",window.location.href="/searchengine#/"+n)},e.prototype.getIconClass=function(e){var t=this.themeSvc.getIconCode(e);return"ic-app-".concat(t," color-app-").concat(t)},e.prototype.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("ode-navbar",t);n&&e.currentTarget&&e.currentTarget.dispatchEvent(n)},e}();t.Controller=a;var s=function(){function e(){this.restrict="E",this.template=n(959).Z,this.scope={title:"@?"},this.bindToController=!0,this.controller=["odeSession","odeNgHelperService","odeThemeHelperService",a],this.controllerAs="ctrl",this.require=["odeNavbar"]}return e.prototype.link=function(e,t,n,r){if(r){var o=r[0],a=(0,i.conf)().Platform;e.lang=a.idiom,e.nbNewMessages=0,e.version=a.deploymentTag,e.me={hasWorkflow:function(e){return(0,i.session)().hasWorkflow(e)}},e.goToMessagerie=function(){console.log(e.messagerieLink),(0,i.http)().get("/userbook/preference/zimbra").then(function(t){var n;try{t.preference&&(JSON.parse(t.preference).modeExpert&&(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|preauth")))?(e.messagerieLink="/zimbra/preauth",window.open(e.messagerieLink)):(e.messagerieLink="/zimbra/zimbra",window.location.href=window.location.origin+e.messagerieLink),console.log(e.messagerieLink)}catch(t){e.messagerieLink="/zimbra/zimbra"}})},e.refreshMails=function(){var t;(null===(t=e.me)||void 0===t?void 0:t.hasWorkflow("fr.openent.zimbra.controllers.ZimbraController|view"))?(0,i.http)().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:(new Date).getTime()}}).then(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")}):(0,i.http)().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:(new Date).getTime()}}).then(function(t){e.nbNewMessages=t.count,e.$apply("nbNewMessages")})},e.refreshAvatar=function(){o.refreshAvatar()},Promise.all([o.session.getLanguage(),a.theme.onOverrideReady(),o.session.getBookmarks(),a.theme.onFullyReady()]).then(function(t){o.skin=a.theme,o.is1D=a.theme.is1D,o.is2D=a.theme.is2D,o.currentLanguage=t[0];var n=t[1];n.portal&&-1!==n.portal.indexOf("conversation-unread")&&(o.conversationUnreadUrl="/assets/themes/"+a.theme.skin+"/template/portal/conversation-unread.html?hash="+a.deploymentTag),o.refreshAvatar(),e.refreshMails&&e.refreshMails(),o.apps=t[2],e.$apply()})}},e}();t.DirectiveFactory=function(){return new s}},3010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var r=n(5262),i=n(9419),o=function(){function e(e){this.tracking=e,this.restrict="E",this.transclude={infotips:"odeInfotips"},this.scope={app:"@?",name:"@"}}return e.prototype.templateUrl=function(e,t){return t.templateUrl?t.templateUrl:n(925).Z},e.prototype.link=function(e,t,n){var o,a,s=(0,i.conf)().User.preferences;(0,i.notif)().onLangReady().promise.then(function(e){i.L10n.initialize(e)}),e.goToMyAccount=function(){document.location.href="/userbook/mon-compte",s.get(r.USER_PREFS.RGPD_COOKIES).showInfoTip=!1,s.save(r.USER_PREFS.RGPD_COOKIES)},e.me={hasWorkflow:function(e){return(0,i.session)().hasWorkflow(e)}},e.closeBanner=function(){e.showRgpd=!1,s.get(r.USER_PREFS.RGPD_COOKIES).showInfoTip=!1,s.save(r.USER_PREFS.RGPD_COOKIES)},e.app&&this.tracking.trackApp(e.app),(null===(o=e.me)||void 0===o?void 0:o.hasWorkflow("fr.openent.chatbot.controller.ChatbotController|view"))&&$.ajax("/chatbot/public/js/chatbot.js",{dataType:"script"}),(null===(a=e.me)||void 0===a?void 0:a.hasWorkflow("org.entcore.portal.controllers.PortalController|optionalFeatureCantoo"))&&(0,i.http)().get("/optionalFeature/cantoo").then(function(e){var t=document.createElement("script");t.src=e.scriptPath,t.async=!0,document.body.appendChild(t)}),this.addZendeskGuideWedget(e)},e.prototype.addZendeskGuideWedget=function(e){(0,i.http)().get("/zendeskGuide/config?module=timeline").then(function(t){if(t&&t.key){var n=document.createElement("script");n.id="ze-snippet",n.src="https://static.zdassets.com/ekr/snippet.js?key=".concat(t.key),document.body.appendChild(n).onload=function(){var n;"es"===(0,i.session)().currentLanguage?window.zE(function(){window.zE.setLocale("es-419")}):window.zE(function(){window.zE.setLocale("fr")}),t.module.default&&window.zE("webWidget","helpCenter:setSuggestions",{labels:[t.module.default]}),window.zE("webWidget","updateSettings",{webWidget:{color:{theme:t.color||"#ffc400"},zIndex:22,launcher:{mobile:{labelVisible:!0}},contactForm:{suppress:!(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))},helpCenter:{messageButton:{"*":"Assistance ENT","es-419":"Asistencia ENT"}}}}),window.addEventListener("scroll",function(){window.zE("webWidget","updateSettings",{webWidget:{launcher:{mobile:{labelVisible:window.scrollY<=5}}}})}),window.zE("webWidget:on","open",function(){var t;(null===(t=e.me)||void 0===t?void 0:t.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))&&window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!1}}})}),window.zE("webWidget:on","userEvent",function(t){var n,r=t.category,i=t.action,o=t.properties;"Contact Form Shown"===i&&"Zendesk Web Widget"===r&&o&&"contact-form"===o.name&&(null===(n=e.me)||void 0===n?void 0:n.hasWorkflow("net.atos.entng.support.controllers.DisplayController|view"))&&(window.zE("webWidget","updateSettings",{webWidget:{contactForm:{suppress:!0}}}),window.zE("webWidget","close"),window.open("/support","_blank"))})}}})},e}();function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["odeTracking"]},8945:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(9419),a=function(){function e(){this.restrict="E",this.templateUrl=n(6722).Z}return e.prototype.link=function(e,t,n,a){var s=this,u=(0,o.conf)().Platform.theme,c=(0,o.session)().user;e.closeBanner=function(){e.setCookie("test",30),e.showBanner=!1},e.getCookie=function(){for(var e="smartBanner=",t=decodeURIComponent(document.cookie).split(";"),n=0;n<t.length;n++){for(var r=t[n];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(e))return r.substring(12,r.length)}return null},e.setCookie=function(e,t){var n=new Date;n.setTime(n.getTime()+24*t*60*60*1e3);var r="expires="+n.toUTCString();document.cookie="smartBanner="+e+";"+r},e.showBanner=!1,e.init=function(){return r(s,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,(0,o.http)().get("/conf/smartBanner").then(function(e){return 200==(0,o.http)().latestResponse.status&&null!==e?e:null})];case 1:if(null!=(t=r.sent())){if(e.banner=t,-1!=(e.banner["excludeUserTypes-".concat(u.skin)]||[]).indexOf(c.type))return[2];e.showBanner=null==e.getCookie(),n=(0,o.conf)().Platform.idiom,e.icon=n.translate("smartbanner.icon.uri"),e.showBanner&&(/Android/i.test(navigator.userAgent)?(e.store=n.translate("smartbanner.android.store"),e.appRef=n.translate("smartbanner.android.uri")):/iPhone|iPad|iPod/i.test(navigator.userAgent)?(e.store=n.translate("smartbanner.ios.store"),e.appRef=n.translate("smartbanner.ios.uri")):e.showBanner=!1)}return[3,3];case 2:return r.sent(),[3,3];case 3:return[2]}})})},e.init()},e}();t.DirectiveFactory=function(){return new a}},4452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(e){this.xitiSvc=e,this.restrict="E",this.scope=!1}return e.prototype.link=function(e,t,n){this.xitiSvc.runScript()},e}();function r(e){return new n(e)}t.DirectiveFactory=r,r.$inject=["odeXiti"]},5012:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var n=function(){function e(e){this.helperSvc=e,this.restrict="A"}return e.prototype.link=function(e,t,n,r){var i=this;n.$observe("skinSrc",function(){t.attr("src",i.helperSvc.toSkinUrl(n.skinSrc))})},e}();function r(e){return new n(e)}t.Directive=n,t.DirectiveFactory=r,r.$inject=["odeThemeHelperService"]},5103:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=void 0;var o=n(5262),a=function(){function e(e){this.helperSvc=e,this.restrict="EA"}return e.prototype.link=function(e,t,n,a){return r(this,void 0,void 0,function(){var e,n,r,a,s,u,c,l;return i(this,function(i){switch(i.label){case 0:return[4,(e=o.ConfigurationFrameworkFactory.instance().Platform.theme).getConf()];case 1:return n=i.sent(),[4,e.onSkinReady()];case 2:for(i.sent(),r=e.themeName,a=e.skinName,s=e.themeUrl,u=0,c=n.overriding;u<c.length;u++)if((l=c[u]).child===r&&l.bootstrapVersion){s="".concat(this.helperSvc.CDN,"/assets/themes/").concat(l.bootstrapVersion,"/skins/").concat(a,"/"),t.addClass(l.bootstrapVersion),this.helperSvc.loadThemeJs(l.bootstrapVersion);break}return this.helperSvc.applyStyle(s),[2]}})})},e}();function s(e){return new a(e)}t.Directive=a,t.DirectiveFactory=s,s.$inject=["odeThemeHelperService"]},6507:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,r){},e}();t.DirectiveFactory=function(){return new n}},8190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=function(e){this.$timeout=e};t.Controller=r;var i=function(){function e(e){this.$compile=e,this.restrict="E",this.template=n(4809).Z,this.replace=!0,this.scope={options:"&",ngModel:"=",ngChange:"&",search:"=?"},this.bindToController=!0,this.controller=["$timeout",r],this.controllerAs="ctrl",this.require=["autocomplete"]}return e.prototype.link=function(e,t,n,r){r&&r[0];n.autocomplete},e}();function o(e){return new i(e)}t.DirectiveFactory=o,o.$inject=["$compile"]},9269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nBase=void 0;var r=n(5262),i=function(){function e(e){this.$compile=e}return Object.defineProperty(e.prototype,"idiom",{get:function(){return r.ConfigurationFrameworkFactory.instance().Platform.idiom},enumerable:!1,configurable:!0}),e}();t.I18nBase=i},9806:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nPlaceholder",function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nPlaceholder)+"</span>")(e);setTimeout(function(){t.attr("placeholder",o.text())},10)})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},848:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nTitle",function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nTitle)+"</span>")(e);setTimeout(function(){t.attr("title",o.text())},10)})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},4048:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("i18nValue",function(r){var o=i.$compile("<span>"+i.idiom.translate(n.i18nValue)+"</span>")(e);setTimeout(function(){t.attr("value",o.text())},10)})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},1586:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.restrict="E",t}return i(t,e),t.prototype.link=function(e,t,n,r){var i=t.text().trim(),o=this.idiom.translate(i);t.html(this.$compile('<span class="no-style">'+o+"</span>")(e).html())},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},7329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterFactory=void 0;var r=n(9419),i=function(e,t){return(0,r.conf)().Platform.idiom.translate(e,t)};t.FilterFactory=function(){return i}},7484:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.restrict="A",t.replace=!0,t}return i(t,e),t.prototype.link=function(e,t,n,r){var i=this;n.$observe("content",function(r){n.content&&t.html(i.$compile('<span class="no-style">'+i.idiom.translate(n.content)+"</span>")(e).html())}),n.$observe("attr",function(r){if(n.attr){var o=i.$compile("<span>"+i.idiom.translate(n[n.attr])+"</span>")(e);setTimeout(function(){t.attr(n.attr,o.text())},10)}}),n.$observe("attrs",function(r){if(n.attrs){var o=e.$eval(n.attrs),a=function(){var n=i.$compile("<span>"+i.idiom.translate(o[s])+"</span>")(e);setTimeout(function(){t.attr(s,n.text())},0)};for(var s in o)a()}}),n.$observe("key",function(r){n.key&&t.html(i.$compile('<span class="no-style">'+i.idiom.translate(n.key)+"</span>")(e).html())})},t}(n(9269).I18nBase);function a(e){return new o(e)}t.DirectiveFactory=a,a.$inject=["$compile"]},1411:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var a=o(n(4202)),s=n(9419),u=function(){function e(){this.restrict="E",this.template=n(9018).Z,this.scope={header:"@?",since:"@?",userprefsKey:"@?",userprefsField:"@",onChange:"&?",saveOnChange:"=?",showOnce:"=?",show:"=?"},this.transclude=!0}return e.prototype.link=function(e,t,n,o){return r(this,void 0,void 0,function(){var n,r,o;return i(this,function(i){switch(i.label){case 0:return n="infotip",a.default.isString(e.userprefsKey)&&e.userprefsKey.trim().length>0&&(n=e.userprefsKey.trim()),r=function(n){var r=null!=n?n:e.visible();e.onChange&&e.onChange({$visible:r}),r?t.find(".toast").addClass("show"):t.find(".toast").removeClass("show")},[4,(o=(0,s.conf)().User.preferences).load(n)];case 1:return i.sent(),e.visible=function(t){if(arguments.length<=0)return!1!==o.get(n)[e.userprefsField];o.get(n)[e.userprefsField]=t,r(t),e.saveOnChange&&o.save(n)},e.$watch("show",function(t){void 0!==t&&e.visible(t)}),r(),e.showOnce&&(o.get(n)[e.userprefsField]=!1,o.save(n)),[2]}})})},e}();t.DirectiveFactory=function(){return new u}},1504:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var a=o(n(3336)),s=(function(){function e(e){this.all=e}e.prototype.stayOpen=function(){return r(this,void 0,void 0,function(){var e,t,n;return i(this,function(r){switch(r.label){case 0:e=0,t=this.all,r.label=1;case 1:return e<t.length?(n=t[e])?[4,n.stayOpen()]:[3,3]:[3,4];case 2:if(r.sent())return[2,!0];r.label=3;case 3:return e++,[3,1];case 4:return[2,!1]}})})}}(),function(){function e(){this.restrict="E",this.template=n(9068).Z,this.transclude=!0,this.scope={show:"=",tiny:"=",onShow:"&?",onClose:"&",delegate:"=",delegateClose:"&?"}}return e.prototype.link=function(e,t,n,o){var s=e.delegate;t.children(".lightbox").find("> .background").on("click",function(o){return r(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return 0!==t.children(".lightbox").find("image-editor, share-panel, .import-files, .split-screen, [template=entcore\\/image-editor\\/main]").length?[3,3]:s?[4,s.stayOpen()]:[3,2];case 1:if(!0===r.sent())return[2];r.label=2;case 2:if(n.delegateClose&&!0===e.delegateClose({$element:t}))return[2];t.children(".lightbox").first().fadeOut(),(0,a.default)("body").css({overflow:"auto"}),(0,a.default)("body").removeClass("lightbox-opened"),e.$eval(e.onClose),e.$apply(),e.show=!1,e.$$phase||e.$parent.$apply(),r.label=3;case 3:return[2]}})})}),t.children(".lightbox").find("> .content > .close-lightbox > i.close-2x").on("click",function(o){return r(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:return 0!==t.children(".lightbox").find("share-panel").length?[3,3]:s?[4,s.stayOpen()]:[3,2];case 1:if(!0===r.sent())return[2];r.label=2;case 2:if(n.delegateClose&&!0===e.delegateClose({$element:t}))return[2];t.children(".lightbox").first().fadeOut(),(0,a.default)("body").css({overflow:"auto"}),(0,a.default)("body").removeClass("lightbox-opened"),e.$eval(e.onClose),e.$apply(),e.show=!1,e.$$phase||e.$parent.$apply(),r.label=3;case 3:return[2]}})})}),t.children(".lightbox").on("mousedown",function(e){e.stopPropagation()}),e.$watch("show",function(r){if(r){n.onShow&&e.onShow({$element:t}),t.trigger("lightboxvisible");var i=t.children(".lightbox"),o=t.parents();e.backup={overflow:o.filter(function(e,t){return"visible"!==(0,a.default)(t).css("overflow-x")||"visible"!==(0,a.default)(t).css("overflow-y")}),zIndex:o.map(function(e,t){var n,r="";return-1!==(null===(n=(0,a.default)(t).attr("style"))||void 0===n?void 0:n.indexOf("z-index"))&&(r=(0,a.default)(t).css("z-index")),{element:(0,a.default)(t),index:r}})},e.backup.overflow.forEach(function(e){(0,a.default)(e).css({overflow:"visible"})}),e.backup.zIndex.forEach(function(e){e.element.css("z-index",99999)}),setTimeout(function(){0===t.parents("header.main").length&&(0,a.default)("body").addClass("lightbox-opened"),i.fadeIn()},100),(0,a.default)("body").css({overflow:"hidden"})}else{var s=!0;(0,a.default)("lightbox .lightbox").each(function(e,n){n!==t.children(".lightbox")[0]&&"block"===(0,a.default)(n).css("display")&&(s=!1)}),s&&((0,a.default)("body").removeClass("lightbox-opened"),(0,a.default)("body").css({overflow:"auto"})),e.backup&&(e.backup.overflow.forEach(function(e){(0,a.default)(e).css("overflow","")}),e.backup.zIndex.forEach(function(e){e.element.css("z-index",e.index)})),t.children(".lightbox").fadeOut()}}),e.$on("$destroy",function(){t.parents("lightbox").length||((0,a.default)("body").removeClass("lightbox-opened"),(0,a.default)("body").css({overflow:"auto"}),e.backup&&(e.backup.overflow.forEach(function(e){(0,a.default)(e).css("overflow","")}),e.backup.zIndex.forEach(function(e){e.element.css("z-index",e.index)})))})},e}());t.DirectiveFactory=function(){return new s}},8151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var n=function(){this.name="default"};t.Controller=n;var r=function(){function e(){this.restrict="A",this.controller=[n],this.require=["odeModalContainer"]}return e.prototype.link=function(e,t,n,r){if(r){var i=r[0];"string"==typeof n.odeModalContainer&&n.odeModalContainer.trim().length>0&&(i.name=n.odeModalContainer),i.attach=function(e){t&&e&&t.append(e)}}},e}();t.DirectiveFactory=function(){return new r}},5248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=n(9294),i=function(){function e(){this.size="md",this.container="default",this.id=null}return e.prototype.getStyle=function(){return{display:this.visible?"block":"none","background-color":"transparent"}},e.prototype.getSizeClass=function(){switch(this.size){case"sm":return"modal-sm";case"lg":return"modal-lg";case"xl":return"modal-xl";default:return""}},e}();t.Controller=i;var o=function(){function e(){this.restrict="E",this.template=n(7597).Z,this.scope={id:"@",size:"@?",container:"=?",visible:"=?",onClose:"&?"},this.bindToController=!0,this.transclude={title:"?odeModalTitle",body:"odeModalBody",footer:"?odeModalFooter"},this.controller=[i],this.controllerAs="ctrl",this.require=["odeModal","?^^odeModalContainer"]}return e.prototype.link=function(e,t,n,i){if(i){var o=i[0],a=i[1];a&&a.attach&&a.name===o.container&&a.attach(t),void 0!==n.id&&0!==n.id.length||(o.id=r.L10n.moment(new Date).format("YYMMDDHHMMssSSS")+(1e3*Math.random()).toFixed(0))}},e}();t.DirectiveFactory=function(){return new o}},4358:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){var i=new o.ObjectGuard(function(){return e.$eval(n.customGuard)});return e.$watch(function(){return e.$eval(n.customGuard)},function(){i.reset()}),i},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},6197:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard(function(){return r.$dirty},function(){return!1})},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},2235:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard(function(){return"object"==typeof r.$modelValue&&r.$modelValue.id||""},function(){return"object"==typeof r.$modelValue&&r.$modelValue.id||""},function(e,t){return e&&t?e._id==t._id:!e&&!t})},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},8900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericGuardDirective=void 0;var r=n(3848),i=function(){function e(){this.require=["?ngModel","?^^guardRoot"],this.restrict="A"}return e.prototype.link=function(e,t,n,i){var o=i?i[0]:null,a=i?i[0]:null,s=this.guardFactory(e,t,n,o),u=0;if(null!=s)if(null!=o?o.$formatters.push(function(e){return 0==u&&(setTimeout(function(){return s.reset()}),u++),e}):setTimeout(function(){return s.reset()}),null!=a)a.registerGuard(s),e.$on("$destroy",function(){a.unregisterGuard(s)});else{var c=r.navigationGuardService.registerIndependantGuard(s);e.$on("$destroy",function(){r.navigationGuardService.unregisterIndependantGuard(c)})}},e}();t.GenericGuardDirective=i},5509:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var r=n(3848),i=function(){function e(){this.rootID=""}return e.prototype.registerGuard=function(e){r.navigationGuardService.registerGuard(this.rootID,e)},e.prototype.unregisterGuard=function(e){r.navigationGuardService.unregisterGuard(this.rootID,e)},e.prototype.reset=function(){r.navigationGuardService.reset(this.rootID)},e}();t.Controller=i;var o=function(){function e(){this.restrict="A",this.scope={guardRoot:"@?"},this.controller=[i],this.require=["guardRoot"]}return e.prototype.link=function(e,t,n,i){var o,a=i?i[0]:null;if(a){a.rootID=null!==(o=e.guardRoot)&&void 0!==o?o:r.navigationGuardService.generateID();var s=r.AngularJSRouteChangeListener.getInstance(e.$root);r.navigationGuardService.registerListener(s),r.navigationGuardService.registerListener(r.DOMRouteChangeListener.getInstance()),e.$on("$destroy",function(){r.navigationGuardService.unregisterListener(s),r.navigationGuardService.unregisterListener(r.DOMRouteChangeListener.getInstance()),r.navigationGuardService.unregisterRoot(a.rootID)})}},e}();t.DirectiveFactory=function(){return new o}},1367:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.guardFactory=function(e,t,n,r){return new o.InputGuard(function(){return r.$viewValue||""},function(){return r.$viewValue||""})},t}(n(8900).GenericGuardDirective);t.DirectiveFactory=function(){return new a}},9071:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=n(3848),a=function(){function e(){this.restrict="A"}return e.prototype.link=function(e,t,n,r){var a=e.$eval(n.navigationTriggerParam||"{onEvent:'click'}");a.rootGuardId=a.rootGuardId||"*";var s=new o.ManualChangeListener;o.navigationGuardService.registerListener(s);var u=[],c=function(t){t&&t.preventDefault(),s.onChange.next({checkGuardId:a.rootGuardId,confirmMessageKey:a.guardMessageKey,accept:function(){e.$eval(n.navigationTrigger)},reject:function(){}})},l=function(e,t,n){e.on(t,n),u.push(function(){return e.off(t,n)})};i.default.isString(a.onEvent)?l(t,a.onEvent,c):i.default.isArray(a.onEvent)&&a.onEvent.forEach(function(e,n,r){i.default.isString(e)&&r.lastIndexOf(e)===n&&l(t,e,c)}),e.$on("$destroy",function(){!function(){for(var e=0,t=u;e<t.length;e++)(0,t[e])();u=[]}(),o.navigationGuardService.unregisterListener(s)})},e}();t.DirectiveFactory=function(){return new a}},9948:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var o=n(3848),a=function(){function e(){this.require="?^guardRoot",this.restrict="A"}return e.prototype.link=function(e,t,n,a){var s=this,u=a?a[0]:null;if(u){var c=n.resetGuardId,l=function(){return r(s,void 0,void 0,function(){var t;return i(this,function(r){switch(r.label){case 0:return(t=e.$eval(n.resetGuard))instanceof Promise?[4,t]:[3,2];case 1:return r.sent(),[3,3];case 2:console.warn("[resetGuard] result is not instance of Promise"),r.label=3;case 3:return null!=c&&""!=c?o.navigationGuardService.reset(c):null!=u?u.reset():(console.warn("[resetGuard] A reset directive has no root, resetting all guards..."),o.navigationGuardService.resetAll()),[2]}})})},d=function(){var e=n.resetGuardEvent;if("string"!=typeof e||!e.trim()){var r=(t.prop("tagName")||"").toLowerCase();e="form"==r?"submit":"click"}return t.on(e,l),function(){return t.off(e,l)}}();e.$on("$destroy",function(){d()})}},e}();t.DirectiveFactory=function(){return new a}},1682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var n=function(){function e(){this.require="^popover",this.restrict="E"}return e.prototype.link=function(e,t,n,r){t.addClass("d-none")},e}();t.DirectiveFactory=function(){return new n}},8700:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=function(){function e(){this.require="^popover"}return e.prototype.link=function(e,t,n,r){var o=function(e){e=e.toUpperCase();var n=t[0];do{n=n.parentNode}while(n&&n.nodeName.toUpperCase()!==e);return n?i.default.element(n):t}("popover"),a=o.attr("mouse-event")||"mouseover",s=o.find("popover-content");o.on(a,function(e){"click"===a&&(s.hasClass("d-none")&&e.stopPropagation(),i.default.element(document.querySelector("body")).one("click",function(e){o.triggerHandler("close"),s.addClass("d-none")}));var t=s.offset(),n=s.width()||0,r=$(window).width()||0,u=s.height()||0,c=$(window).width()||0;t&&(t.left+n>r&&s.addClass("right"),t.left<0&&s.addClass("left"),t.top+u>c&&s.addClass("bottom")),s.removeClass("d-none")}),"mouseover"===a&&o.on("mouseout",function(e){o.triggerHandler("close"),s.addClass("d-none")})},e}();t.DirectiveFactory=function(){return new o}},8245:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.PulsarController=void 0;var n=function(){};t.PulsarController=n;var r=function(){function e(){this.controller=[n],this.restrict="E"}return e.prototype.link=function(e,t,n,r){t.on("close",function(){n.onClose&&e.$eval(n.onClose)})},e}();t.DirectiveFactory=function(){return new r}},3868:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=r(n(3336)),o=function(){function e(e){this.quickstart=e,this.show={assistant:!1},this.hidePulsars=function(){(0,i.default)(".pulsar-button").addClass("hidden")}}return e.prototype.clearTimeout=function(){this.token&&clearTimeout(this.token)},e.prototype.goTo=function(e){this.quickstart.goTo(e.index),this.currentStep=this.quickstart.assistantIndex},e.prototype.next=function(){this.quickstart.nextAssistantStep(),this.currentStep=this.quickstart.assistantIndex,this.quickstart.assistantIndex||(this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout())},e.prototype.previous=function(){this.quickstart.previousAssistantStep(),this.currentStep=this.quickstart.assistantIndex},e.prototype.seeLater=function(){this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout(),this.quickstart.seeAssistantLater()},e.prototype.closeAssistant=function(){this.show.assistant=!1,(0,i.default)(".pulsar-button").removeClass("hidden"),this.clearTimeout(),this.quickstart.state.assistant=-1,this.quickstart.save()},e}();t.Controller=o;var a=function(){function e(e){this.helperSvc=e,this.restrict="E",this.templateUrl=n(5230).Z,this.scope=!0,this.bindToController=!0,this.controller=["odeQuickstartService",o],this.controllerAs="ctrl",this.require=["assistant"]}return e.prototype.link=function(e,t,n,r){var i=r?r[0]:null;!i||this.helperSvc.viewport<=this.helperSvc.FAT_MOBILE||i.quickstart.load(function(){if(i){if(-1===i.quickstart.state.assistant||0===i.quickstart.mySteps.length)return;i.hidePulsars(),i.show.assistant=!0,i.currentStep=i.quickstart.assistantIndex,i.steps=i.quickstart.mySteps,e.$apply()}})},e}();function s(e){return new a(e)}t.DirectiveFactory=s,s.$inject=["odeNgHelperService"]},7424:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=void 0;var i=r(n(4202)),o=n(9419),a=r(n(3336)),s=function(){function e(e,t,n){this.$compile=e,this.helperSvc=t,this.quickstartSvc=n,this.restrict="A",this.scope=!0}return e.prototype.link=function(e,t,r,s){var u=this,c=(0,o.conf)().Platform.idiom;if(t&&(e.me={hasWorkflow:(0,o.session)().hasWorkflow},!(this.helperSvc.viewport<=this.helperSvc.TABLET)&&e.me.hasWorkflow("org.entcore.portal.controllers.PortalController|quickstart"))){var l=e.$eval(r.pulsar);if(!l.workflow||e.me.hasWorkflow(l.workflow)){e.pulsarInfos=l,e.pulsarInfos.steps=[];var d=(0,a.default)("[pulsar]");d.each(function(t,n){var r=i.default.element(n).scope().$eval((0,a.default)(n).attr("pulsar"));r.el=n,e.pulsarInfos.steps.push(r)}),"object"==typeof l&&void 0!==l.index||console.error("Invalid pulsar object. Should look like pulsar=\"{ index: 0, i18n: 'my.key', position: 'top bottom'}\"");var f=null,h=null,p=30,v=10,m=function(){l.position||(l.position="center center");var r="center";-1!==l.position.indexOf("left")&&(r="left"),-1!==l.position.indexOf("right")&&(r="right");var s="center";-1!==l.position.indexOf("top")&&(s="top"),-1!==l.position.indexOf("bottom")&&(s="bottom"),document.querySelector("style#pulsar-css")||(0,a.default)(n(9325).Z).appendTo("body"),f=(0,a.default)('\n\t\t\t\t<div class="pulsar-button">\n\t\t\t\t\t<div class="pulse-spot"></div>\n\t\t\t\t</div>\n\t\t\t').appendTo("body"),l.className&&l.className.split(" ").forEach(function(e){null==f||f.addClass(e)}),f.data("active",!0);var m=!0,g=function(){var e,n,i,o,u,d,b,y,w,_,x,k,S,M,D=0,O=0;"string"==typeof l.delta&&(l.delta=c.translate(l.delta),D=parseInt(l.delta.split(" ")[0]),O=parseInt(l.delta.split(" ")[1]));var T=null!==(e=t.offset())&&void 0!==e?e:{left:0,top:0},P=null!==(n=t.width())&&void 0!==n?n:0,C=null!==(i=t.height())&&void 0!==i?i:0,E={left:T.left-35,right:T.left+P+5,center:T.left+P/2-15},A={top:T.top,bottom:T.top+C+5,center:T.top+C/2-15};if("top center"===l.position&&(A.top=T.top-p-5),"none"!==(null==f?void 0:f.css("display"))&&(null==f||f.offset({left:E[r]+D,top:A[s]+O}),l.style&&"number"==typeof l.style.zIndex&&(null==f||f.css("z-index",l.style.zIndex))),h&&h.find(".arrow").length){var j=E[r]-(null!==(o=h.children(".content").width())&&void 0!==o?o:0)-15,I=A[s]-v;"top"===s&&"center"===r&&(I=A[s]-(null!==(u=h.children(".content").height())&&void 0!==u?u:0)-15),"center"===s&&(I=A[s]-(null!==(d=h.children(".content").height())&&void 0!==d?d:0)/2),"center"===r&&(j=E[r]-(null!==(b=h.children(".content").width())&&void 0!==b?b:0)/2-2),"center"===s&&"center"===r&&(h.addClass("middle"),s="bottom"),"right"===r&&(j=E[r]+v+10),"bottom"===s&&(I="center"===r?A[s]+v+10:A[s]-15);var N=null!==(y=(0,a.default)(window).width())&&void 0!==y?y:0,R=null!==(w=(0,a.default)(window).height())&&void 0!==w?w:0,Y=15,L=I,F=j,W=F+(null!==(_=h.width())&&void 0!==_?_:0)+Y,V=L+(null!==(x=h.height())&&void 0!==x?x:0)+Y,U=N-((null!==(k=h.width())&&void 0!==k?k:0)+Y),G=R-((null!==(S=h.height())&&void 0!==S?S:0)+Y),$=F-U,H=Y-F,z=L-G,q=Y-L,B=h.find(".arrow"),Z=B.position().left,J=B.position().top;W>N&&(j=N-((null!==(M=h.width())&&void 0!==M?M:0)+Y),"center"===r&&m&&(B.css({left:Z+$,right:"auto"}),m=!1)),j<=Y&&(j=Y,"center"===r&&m&&(B.css({left:H+v,right:"auto"}),m=!1)),V>R&&(I=G,"bottom"===s&&m&&(B.css({top:z+5,bottom:"auto"}),m=!1)),I<Y&&(I=Y,"center"===s&&"center"!==r&&m&&(B.css({top:J-q,bottom:"auto"}),m=!1)),h.offset({left:j+D,top:I+O})}setTimeout(g,100)};g();var b=function(){var e,n,r,i,o,s,u;(0,a.default)(".pulsar-layer").remove();var c="[pulsar-highlight="+l.index+"]",d=(0,a.default)("body").find(c);0!==d.length&&(u=d),u||(u=t),(0,a.default)('<div class="pulsar-layer"></div>').width((null!==(e=u.outerWidth())&&void 0!==e?e:0)+20).height((null!==(n=u.outerHeight())&&void 0!==n?n:0)+20).offset({top:(null!==(i=null===(r=null==u?void 0:u.offset())||void 0===r?void 0:r.top)&&void 0!==i?i:0)-v,left:(null!==(s=null===(o=null==u?void 0:u.offset())||void 0===o?void 0:o.left)&&void 0!==s?s:0)-v}).css({position:"absolute"}).hide().appendTo("body").fadeIn("slow")};f.on("click",function(n){(0,a.default)("body").css("pointer-events","none"),(0,a.default)("body").on("scroll touchmove mousewheel",function(e){return e.preventDefault(),e.stopPropagation(),!1}),e.pulsarInfos.index<=0&&e.trackEvent(t[0],{detail:{open:"true"}}),e.pulsarInfos.steps=[],(d=(0,a.default)("[pulsar]")).each(function(t,n){var r=i.default.element(n).scope().$eval((0,a.default)(n).attr("pulsar"));r.el=n,e.pulsarInfos.steps.push(r)}),h=(0,a.default)("<pulsar></pulsar>").addClass(r).addClass(s),l.className&&l.className.split(" ").forEach(function(e){null==h||h.addClass(e)}),null==f||f.hide(),b(),(0,a.default)(window).on("resize.placeLayers",b),(0,o.http)().get("/infra/public/template/pulsar.html").then(function(t){var n=(0,a.default)(t);n.find("button").addClass("btn btn-primary");var r=u.$compile(n)(e);null==h||h.html(r)}),(0,a.default)("body").append(h)})};i.default.element(window).on("resize",function(){f&&f.data("active")&&f.css("display","")});var g=function(){null==h||h.find("button").css("pointer-events","none"),(0,a.default)(window).off("resize.placeLayers"),null==f||f.fadeOut("slow",function(){null==f||f.remove()}),null==h||h.fadeOut("slow",function(){null==h||h.remove()}),(0,a.default)(".pulsar-layer").remove(),(0,a.default)("body").off("scroll touchmove mousewheel"),(0,a.default)("body").css("pointer-events",""),null==f||f.data("active",!1)};e.closePulsar=function(){h&&f&&(h.fadeOut(0,function(){null==h||h.remove()}),f.removeClass("hidden"),(0,a.default)(".pulsar-layer").fadeOut(0,function(){(0,a.default)(".pulsar-layer").remove()}),(0,a.default)("body").off("scroll touchmove mousewheel"),(0,a.default)("body").css("pointer-events",""),f.data("active",!1))},i.default.element(document).on("click",function(t){(0,a.default)(t.target).parents("pulsar").length>0||(0,a.default)(t.target).parents(".pulsar-button").length>0||(0,a.default)(t.target).hasClass("pulsar-button")||e.closePulsar()}),e.paintPulsar=function(){m(),null==f||f.triggerHandler("click")},e.isLastStep=function(){return void 0===e.pulsarInfos.steps.find(function(t){return t.index>e.pulsarInfos.index})},e.goTo=function(e){g(),u.quickstartSvc.goToAppStep(e.index),e.el&&i.default.element(e.el).scope().paintPulsar()},e.next=function(){g();var n=u.quickstartSvc.nextAppStep(),r=e.pulsarInfos.steps.find(function(e){return e.index===n});if(void 0===r){if(void 0!==e.pulsarInfos.steps.find(function(e){return e.index>n}))return void e.next()}else if(r.el)return void(i.default.element(r.el).data("skip-pulsar")?e.next():i.default.element(r.el).scope().paintPulsar());e.trackEvent(t[0],{detail:{open:"false"}})},e.previous=function(){g();var t=u.quickstartSvc.previousAppStep();if(void 0!==e.pulsarInfos.steps.find(function(e){return e.index===t}))for(var n=0;n<e.pulsarInfos.steps.length;n++){var r=e.pulsarInfos.steps[n];if(r.index===t&&r.el){if(i.default.element(r.el).data("skip-pulsar"))return void e.previous();i.default.element(r.el).scope().paintPulsar()}}else void 0!==e.pulsarInfos.steps.find(function(e){return e.index<t})&&e.previous()},e.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("pulsar",t);n&&e&&e.dispatchEvent(n)},this.quickstartSvc.load(function(){u.quickstartSvc.appIndex()===l.index&&m()})}else t.removeAttr("pulsar")}},e}();function u(e,t,n){return new s(e,t,n)}t.DirectiveFactory=u,u.$inject=["$compile","odeNgHelperService","odeQuickstartService"]},9445:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Widget=t.WidgetContainer=t.Recorder=t.Infotip=t.Logout=t.SkinSrc=t.WithTheme=t.Navbar=t.Portal=t.Xiti=t.BindHtml=t.Autocomplete=t.Help=t.SmartBanner=t.ConnectorLightbox=t.Lightbox=t.PopoverOpener=t.PopoverContent=t.Popover=t.Pulsar=t.Assistant=t.AppTitle=t.ResetGuard=t.CustomGuard=t.DocumentGuard=t.DirtyGuard=t.InputGuard=t.GuardRoot=t.NavigationTrigger=t.I18nFilter=t.I18nPlaceholder=t.I18nTitle=t.I18nValue=t.I18n=t.Translate=t.ModalContainer=t.Modal=void 0,t.Modal=o(n(5248)),t.ModalContainer=o(n(8151)),t.Translate=o(n(7484)),t.I18n=o(n(1586)),t.I18nValue=o(n(4048)),t.I18nTitle=o(n(848)),t.I18nPlaceholder=o(n(9806)),t.I18nFilter=o(n(7329)),t.NavigationTrigger=o(n(9071)),t.GuardRoot=o(n(5509)),t.InputGuard=o(n(1367)),t.DirtyGuard=o(n(6197)),t.DocumentGuard=o(n(2235)),t.CustomGuard=o(n(4358)),t.ResetGuard=o(n(9948)),t.AppTitle=o(n(6507)),t.Assistant=o(n(3868)),t.Pulsar=o(n(7424)),t.Popover=o(n(8245)),t.PopoverContent=o(n(1682)),t.PopoverOpener=o(n(8700)),t.Lightbox=o(n(1504)),t.ConnectorLightbox=o(n(4262)),t.SmartBanner=o(n(8945)),t.Help=o(n(8961)),t.Autocomplete=o(n(8190)),t.BindHtml=o(n(3030)),t.Xiti=o(n(4452)),t.Portal=o(n(3010)),t.Navbar=o(n(6644)),t.WithTheme=o(n(5103)),t.SkinSrc=o(n(5012)),t.Logout=o(n(737)),t.Infotip=o(n(1411)),t.Recorder=o(n(1098)),t.WidgetContainer=o(n(4406)),t.Widget=o(n(5210))},4406:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var i=r(n(4202)),o=n(5262),a=function(){function e(e,t){this.widgetSvc=e,this.helperSvc=t}return e.prototype.loadWidgets=function(){var e=this,t=function(e,t){return e.userPref.index<t.userPref.index?-1:e.userPref.index===t.userPref.index?0:1};this.dndWidgets=this.widgetSvc.list().filter(function(t){return t.userPref.position===e.position&&t.userPref.show&&!t.platformConf.mandatory}).sort(t),this.lockedWidgets=this.widgetSvc.list().filter(function(t){return t.userPref.position===e.position&&t.platformConf.mandatory}).sort(t)},e.prototype.updateAndSave=function(){var e;return null===(e=this.dndWidgets)||void 0===e||e.forEach(function(e,t){e.userPref.index=t}),o.WidgetFrameworkFactory.instance().saveUserPrefs()},e.prototype.checkPosition=function(e){var t,n;return(null===(t=e.userPref)||void 0===t?void 0:t.position)===this.position||"left"===(null===(n=e.userPref)||void 0===n?void 0:n.position)&&!this.position},Object.defineProperty(e.prototype,"allowedDndTypes",{get:function(){return[""+this.position]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMobileView",{get:function(){return this.helperSvc.viewport<992},enumerable:!1,configurable:!0}),e.prototype.onDnDDragOver=function(e,t,n,r){var i=n===this.position;return console.log("index="+t+", type="+n+", dropEffect="+r+", allowed="+i),i||this.signalReject&&this.signalReject(),i},e.prototype.onDnDDrop=function(e,t,n,r){if(this.dndWidgets&&0<=n&&n<=this.dndWidgets.length){var i=this.dndWidgets.findIndex(function(e){return e.platformConf.id===t});if(-1===i||i===n)return!1;var o=this.dndWidgets[i];return this.dndWidgets.splice(i,1),n>0&&n>=i&&n--,this.dndWidgets.splice(n,0,o),this.trackEvent(e,{detail:{move:o.platformConf.name,from:i+1,to:n+1}}),this.updateAndSave(),!0}return!1},e.prototype.trackEvent=function(e,t){void 0===t.bubbles&&(t.bubbles=!0);var n=new CustomEvent("ode-widget-container",t);n&&e.currentTarget&&e.currentTarget.dispatchEvent(n)},e}();t.Controller=a;var s=function(){function e(){this.restrict="A",this.template=n(6066).Z,this.scope={},this.bindToController=!0,this.controller=["odeWidgetService","odeNgHelperService",a],this.controllerAs="ctrl",this.require=["odeWidgetContainer"]}return e.prototype.link=function(e,t,n,r){var o;if(r){var a=r[0],s={position:"left"},u=null!==(o=n.odeWidgetContainer)&&void 0!==o?o:s;if("string"==typeof u)try{u=i.default.fromJson(u)}catch(e){u=s}u.position||(u.position="left"),a.signalReject=function(){var e="dndReject",n=t.children("ul[dnd-list][dnd-dragover]");n.hasClass(e)||(n.addClass(e),setTimeout(function(){n.removeClass(e)},1500))},a.widgetSvc.initialize().then(function(){a.position=u.position,a.loadWidgets(),e.$apply()});var c=a.widgetSvc.onChange().subscribe({next:function(t){a.loadWidgets(),e.$apply()}});e.$on("$destroy",function(){c&&c.unsubscribe()})}},e}();t.DirectiveFactory=function(){return new s}},5210:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Controller=void 0;var n=function(e){this.widgetSvc=e,this.widget=null};t.Controller=n;var r=function(){function e(e,t){this.$compile=e,this.widgetLoader=t,this.restrict="A",this.scope={widget:"=odeWidget"},this.bindToController=!0,this.controller=["odeWidgetService",n],this.controllerAs="ctrl",this.require=["odeWidget"]}return e.prototype.link=function(e,t,n,r){var i=this;if(r){var o=r[0];this.widgetLoader(o.widget.platformConf.name).then(function(){var n="<ode-".concat(o.widget.platformConf.name,"></ode-").concat(o.widget.platformConf.name,">"),r=i.$compile(n)(e);t.append(r)})}},e}();function i(e,t){return new r(e,t)}t.DirectiveFactory=i,i.$inject=["$compile","odeWidgetLoader"]},9294:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.Samples=void 0,t.Samples=o(n(4679)),a(n(9445),t),a(n(6731),t),a(n(1032),t),a(n(9419),t),"undefined"!=typeof window&&(window.entcore=window.entcore||{},window.entcore["ode-ngjs-front"]=e.exports)},6586:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeBaseModule=void 0;var i=r(n(4202)),o=n(6731),a=n(5262),s=i.default.module("odeBase",["ngSanitize","ngRoute"],["$interpolateProvider",function(e){e.startSymbol("[["),e.endSymbol("]]")}]).config(["$sceDelegateProvider",function(e){e.resourceUrlWhitelist(["self",a.ConfigurationFrameworkFactory.instance().Platform.cdnDomain+"/**"])}]);t.odeBaseModule=function(){return s.value("notify",o.notify).service("odeNotify",o.NotifyService).service("odeNgHelperService",o.NgHelperService).service("odeSession",o.SessionService).service("odeTracking",o.TrackingService).service("odeXiti",o.XitiService)}},7211:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeI18nModule=void 0;var i=r(n(4202)),o=n(9445),a=n(6731),s=i.default.module("odeI18n",[]);t.odeI18nModule=function(){return s.directive("translate",o.Translate.DirectiveFactory).directive("i18n",o.I18n.DirectiveFactory).directive("i18nValue",o.I18nValue.DirectiveFactory).directive("i18nPlaceholder",o.I18nPlaceholder.DirectiveFactory).directive("i18nTitle",o.I18nTitle.DirectiveFactory).filter("i18n",o.I18nFilter.FilterFactory).service("odeI18n",a.I18nService)}},1032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OdeModules=void 0;var r=n(6586),i=n(7211),o=n(6837),a=n(2357),s=function(){function e(){}return e.getBase=function(){return(0,r.odeBaseModule)().name},e.getI18n=function(){return(0,i.odeI18nModule)().name},e.getUi=function(){return(0,o.odeUiModule)().name},e.getWidgets=function(){return(0,a.odeWidgetModule)().name},e}();t.OdeModules=s},6837:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeUiModule=void 0;var i=r(n(4202)),o=n(9445),a=n(6731),s=(n(807),i.default.module("odeUi",["dndLists"]));t.odeUiModule=function(){return s.directive("odePortal",o.Portal.DirectiveFactory).directive("odeNavbar",o.Navbar.DirectiveFactory).directive("withTheme",o.WithTheme.DirectiveFactory).directive("odeModal",o.Modal.DirectiveFactory).directive("odeModalContainer",o.ModalContainer.DirectiveFactory).directive("odeInfotip",o.Infotip.DirectiveFactory).directive("navigationTrigger",o.NavigationTrigger.DirectiveFactory).directive("guardRoot",o.GuardRoot.DirectiveFactory).directive("inputGuard",o.InputGuard.DirectiveFactory).directive("dirtyGuard",o.DirtyGuard.DirectiveFactory).directive("documentGuard",o.DocumentGuard.DirectiveFactory).directive("customGuard",o.CustomGuard.DirectiveFactory).directive("resetGuard",o.ResetGuard.DirectiveFactory).directive("appTitle",o.AppTitle.DirectiveFactory).directive("logout",o.Logout.DirectiveFactory).directive("popover",o.Popover.DirectiveFactory).directive("popoverContent",o.PopoverContent.DirectiveFactory).directive("popoverOpener",o.PopoverOpener.DirectiveFactory).directive("assistant",o.Assistant.DirectiveFactory).directive("pulsar",o.Pulsar.DirectiveFactory).directive("lightbox",o.Lightbox.DirectiveFactory).directive("connectorLightbox",o.ConnectorLightbox.DirectiveFactory).directive("connectorLightboxTrigger",o.ConnectorLightbox.TriggerDirectiveFactory).directive("smartBanner",o.SmartBanner.DirectiveFactory).directive("help",o.Help.DirectiveFactory).directive("bindHtml",o.BindHtml.DirectiveFactory).directive("xiti",o.Xiti.DirectiveFactory).directive("autocomplete",o.Autocomplete.DirectiveFactory).directive("skinSrc",o.SkinSrc.DirectiveFactory).directive("odeRecorder",o.Recorder.DirectiveFactory).directive("odeWidgetContainer",o.WidgetContainer.DirectiveFactory).directive("odeWidget",o.Widget.DirectiveFactory).service("odeThemeHelperService",a.ThemeHelperService).service("odeQuickstartService",a.QuickstartService).service("odeWidgetService",a.WidgetService).service("odeRichContentService",a.RichContentService).service("odeVideoUploadService",a.VideoUploadService).service("odeVideoEventTrackerService",a.VideoEventTrackerService)}},2357:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.odeWidgetModule=t.KnownWidget=void 0;var a,s=o(n(4202));!function(e){e.maxicours="maxicours-widget",e.cursus="cursus-widget",e.school="school-widget",e.recordMe="record-me",e.agenda="agenda-widget",e.qwant="qwant",e.bookmark="bookmark-widget",e.rss="rss-widget",e.myApps="my-apps",e.carnetDeBord="carnet-de-bord",e.dicoDeLaZone="dicodelazone-widget",e.calendar="calendar-widget",e.universalis="universalis-widget",e.briefme="briefme-widget",e.lastInfos="last-infos-widget",e.edumalin="edumalin-widget",e.mediacentre="mediacentre-widget",e.cantine="cantine-widget"}(a=t.KnownWidget||(t.KnownWidget={}));var u=s.default.module("odeWidgets",[]).factory("odeWidgetLoader",["$injector",function(e){var t=this;return function(o){return r(t,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:switch(o){case a.maxicours:return[3,1];case a.cursus:return[3,3];case a.school:return[3,5];case a.recordMe:return[3,7];case a.agenda:return[3,9];case a.qwant:return[3,11];case a.bookmark:return[3,13];case a.rss:return[3,15];case a.myApps:return[3,17];case a.carnetDeBord:return[3,19];case a.dicoDeLaZone:return[3,21];case a.calendar:return[3,23];case a.universalis:return[3,25];case a.briefme:return[3,27];case a.lastInfos:return[3,29];case a.edumalin:return[3,31];case a.mediacentre:return[3,33];case a.cantine:return[3,35]}return[3,37];case 1:return[4,new Promise(function(e,t){n.e(536).then(function(t){var r=n(3132);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 2:case 4:case 6:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:return t.sent(),[3,38];case 3:return[4,new Promise(function(e,t){n.e(484).then(function(t){var r=n(1916);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 5:return[4,new Promise(function(e,t){n.e(306).then(function(t){var r=n(5623);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 7:return[4,new Promise(function(e,t){n.e(932).then(function(t){var r=n(1317);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 9:return[4,new Promise(function(e,t){n.e(815).then(function(t){var r=n(624);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 11:return[4,new Promise(function(e,t){n.e(165).then(function(t){var r=n(3399);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 13:return[4,new Promise(function(e,t){n.e(364).then(function(t){var r=n(9278);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 15:return[4,new Promise(function(e,t){n.e(390).then(function(t){var r=n(7377);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 17:return[4,new Promise(function(e,t){n.e(649).then(function(t){var r=n(1204);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 19:return[4,new Promise(function(e,t){n.e(438).then(function(t){var r=n(5613);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 21:return[4,new Promise(function(e,t){n.e(368).then(function(t){var r=n(2579);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 23:return[4,new Promise(function(e,t){n.e(556).then(function(t){var r=n(9492);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 25:return[4,new Promise(function(e,t){n.e(142).then(function(t){var r=n(462);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 27:return[4,new Promise(function(e,t){n.e(539).then(function(t){var r=n(2445);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 29:return[4,new Promise(function(e,t){n.e(376).then(function(t){var r=n(5479);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 31:return[4,new Promise(function(e,t){n.e(447).then(function(t){var r=n(3691);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 33:return[4,new Promise(function(e,t){n.e(820).then(function(t){var r=n(5116);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 35:return[4,new Promise(function(e,t){Promise.all([n.e(669),n.e(91)]).then(function(t){var r=n(8544);e(r.odeModuleName)}.bind(null,n)).catch(function(e){console.log(e),t()})}).then(function(t){e.loadNewModules([t])})];case 37:throw'Unknown widget "'.concat(o,'"');case 38:return[2]}})})}}]);t.odeWidgetModule=function(){return u}},4329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceFactory=t.AlertSvc=void 0;var n=function(){function e(e){this.$window=e}return e.prototype.alert=function(e){this.$window.alert(null!=e?e:"Undefined message...")},e}();function r(e){return new n(e)}t.AlertSvc=n,t.ServiceFactory=r,r.$inject=["$window"]},4679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AlertSvc=t.SaySomething=void 0,t.SaySomething=o(n(2285)),t.AlertSvc=o(n(4329))},2285:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveFactory=t.Directive=t.Controller=void 0;var r=function(){function e(e){this.$http=e}return e.prototype.sayHello=function(){return"".concat(this.what,", ").concat(this.userName," !")},e}();t.Controller=r;var i=function(){function e(e){this.$compile=e,this.restrict="E",this.template=n(2011).Z,this.scope={what:"@",userName:"=ngModel"},this.bindToController=!0,this.controller=["$http",r],this.controllerAs="ctrl",this.require=["saySomething","ngModel"]}return e.prototype.link=function(e,t,n,r){var i=r?r[0]:null,o=r?r[1]:null;console.log(null==i?void 0:i.userName),console.log(o)},e}();function o(e){return new i(e)}t.Directive=i,t.DirectiveFactory=o,o.$inject=["$compile"]},1760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.I18nService=void 0;var r=(0,n(9419).conf)().Platform.idiom,i=function(){function e(){}return e.prototype.translate=function(e){return r.translate(e)},e}();t.I18nService=i},6731:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(7774),t),i(n(1760),t),i(n(4763),t),i(n(1599),t),i(n(6615),t),i(n(1147),t),i(n(9698),t),i(n(7374),t),i(n(298),t),i(n(2411),t),i(n(8328),t),i(n(7291),t)},1147:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NgHelperService=void 0;var i=r(n(4202)),o=r(n(3336)),a=function(){function e(){}return e.prototype.safeApply=function(e,t){var n=e.$root.$$phase;"$apply"==n||"$digest"==n?i.default.isFunction(t)&&t(e):"string"==typeof t||i.default.isFunction(t)?e.$apply(t):e.$apply()},e.prototype.each=function(e,t){for(var n=0;n<(null==e?void 0:e.length);n++)t(n,e[n])},e.prototype.offset=function(e,t){if(void 0!==t&&e.css("position","relative").css("top",t.top+"px").css("left",t.left+"px"),!e[0].getClientRects().length)return{top:0,left:0};var n=e[0].getBoundingClientRect();return{top:n.top+window.pageYOffset,left:n.left+window.pageXOffset}},e.prototype.width=function(e){var t;return null!==(t=(0,o.default)(e).width())&&void 0!==t?t:0},e.prototype.height=function(e){var t;return null!==(t=(0,o.default)(e).height())&&void 0!==t?t:0},e.prototype.parents=function(e,t){for(var n=i.default.element("<div></div>"),r=0;r<(null==e?void 0:e.length);r++){var o=e[r];do{(o=o.parentNode).matches(t)&&n.append(o)}while(o)}return n.children()},Object.defineProperty(e.prototype,"viewport",{get:function(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"WIDE_SCREEN",{get:function(){return 1200},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"TABLET",{get:function(){return 800},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"FAT_MOBILE",{get:function(){return 550},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"SMALL_MOBILE",{get:function(){return 420},enumerable:!1,configurable:!0}),e}();t.NgHelperService=a},7774:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.notify=t.NotifyService=void 0;var i=r(n(4202)),o=n(9419),a=n(991);i.default.element("head").append('<style id="humane-js">\n .humane,\n .humane-original {\n position: fixed;\n -moz-transition: all 0.2s ease-out;\n -webkit-transition: all 0.2s ease-out;\n -ms-transition: all 0.2s ease-out;\n -o-transition: all 0.2s ease-out;\n transition: all 0.2s ease-out;\n z-index: 100000;\n filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);\n }\n .humane,\n .humane-original {\n font-family: Ubuntu, Verdana, sans-serif;\n line-height: 40px;\n font-size: 25px;\n top: 25%;\n left: 25%;\n opacity: 0;\n width: 50%;\n min-height: 40px;\n padding: 10px;\n text-align: center;\n background-color: #000;\n color: #fff;\n -webkit-border-radius: 15px;\n border-radius: 15px;\n }\n .humane p,\n .humane-original p,\n .humane ul,\n .humane-original ul {\n margin: 0;\n padding: 0;\n }\n .humane ul,\n .humane-original ul {\n list-style: none;\n }\n .humane.humane-original-info,\n .humane-original.humane-original-info {\n background-color: #030;\n }\n .humane.humane-original-success,\n .humane-original.humane-original-success {\n background-color: #030;\n }\n .humane.humane-original-error,\n .humane-original.humane-original-error {\n background-color: #300;\n }\n .humane.humane-animate,\n .humane-original.humane-original-animate {\n opacity: 0.8;\n }\n .humane.humane-animate:hover,\n .humane-original.humane-original-animate:hover {\n opacity: 0.6;\n }\n .humane.humane-js-animate,\n .humane-original.humane-original-js-animate {\n opacity: 0.8;\n }\n .humane.humane-js-animate:hover,\n .humane-original.humane-original-js-animate:hover {\n opacity: 0.6;\n filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);\n }\n</style>');var s=function(){function e(){}return e.prototype.message=function(e,t,n){t=(0,o.conf)().Platform.idiom.translate(t);var r={addnCls:"humane-original-"+e};"number"==typeof n&&(r.timeout=n),a.spawn(r)(t)},e.prototype.error=function(e,t){this.message("error",e,t)},e.prototype.info=function(e,t){this.message("info",e,t)},e.prototype.success=function(e,t){this.message("success",e,t)},e}();t.NotifyService=s,t.notify=new s},9698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickstartService=void 0;var r=n(9419),i=(0,r.conf)().Platform.theme,o={get me(){return(0,r.session)().user}},a=function(){function e(){this.app="",this.steps={},this.state={},this.types={ENSEIGNANT:"teacher",ELEVE:"student",PERSEDUCNAT:"personnel",PERSRELELEVE:"relative",SUPERADMIN:""},this.mySteps=[],this.assistantIndex={},this.loaded=!1,this.loading=!1,this.awaiters=[]}return e.prototype.assistantStep=function(e){return i.basePath+"template/assistant/"+this.types[o.me.type]+"/"+e+".html"},e.prototype.nextAssistantStep=function(){this.state.assistant++,this.state.assistant===this.steps[this.types[o.me.type]]?(this.state.assistant=-1,this.assistantIndex=void 0):this.assistantIndex=this.mySteps[this.state.assistant],this.save()},Object.defineProperty(e.prototype,"assistantTimerFormat",{get:function(){return"MM/DD/YYYY HH:mm"},enumerable:!1,configurable:!0}),e.prototype.seeAssistantLater=function(){this.state.assistantTimer=r.L10n.moment().format(this.assistantTimerFormat),this.save()},e.prototype.getAppStep=function(){return this.state[i.skin][this.app]},e.prototype.goToAppStep=function(e){return this.state[i.skin][this.app]=e,this.save(),e},e.prototype.nextAppStep=function(){return this.goToAppStep(this.getAppStep()+1)},e.prototype.previousAppStep=function(){return this.goToAppStep(this.getAppStep()-1)},e.prototype.closeApp=function(){this.goToAppStep(-1)},e.prototype.appIndex=function(){return this.app=window.location.href.split("//")[1].split("/").slice(1).join("/"),this.state[i.skin]||(this.state[i.skin]={}),this.state[i.skin][this.app]||(this.state[i.skin][this.app]=0),this.state[i.skin][this.app]},e.prototype.previousAssistantStep=function(){this.state.assistant--,this.state.assistant<0&&(this.state.assistant=0),this.assistantIndex=this.mySteps[this.state.assistant],this.save()},e.prototype.save=function(e){(0,r.http)().putJson("/userbook/preference/quickstart",this.state).then(function(){"function"==typeof e&&e()})},e.prototype.goTo=function(e){e>this.mySteps.length&&(e=-1),this.state.assistant=e,-1!==e&&(this.assistantIndex=this.mySteps[e]),this.save()},e.prototype.load=function(e){var t=this;this.loaded?"function"==typeof e&&e():(e&&this.awaiters.push(e),this.loading||(this.loading=!0,(0,r.http)().get("/userbook/preference/quickstart").then(function(e){var n;if(e.preference)try{n=JSON.parse(e.preference)}catch(e){console.log("Error parsing quickstart preferences")}n||(n={}),n.assistant||(n.assistant=0),n[i.skin]||(n[i.skin]={}),t.state=n,-1===n.assistant||n.assistantTimer&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).year()===r.L10n.moment().year()&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).dayOfYear()===r.L10n.moment().dayOfYear()&&r.L10n.moment(n.assistantTimer,t.assistantTimerFormat).hour()===r.L10n.moment().hour()?(t.loaded=!0,t.awaiters.forEach(function(e){"function"==typeof e&&e()})):(0,r.http)().get(i.basePath+"template/assistant/steps.json").then(function(e){t.steps=e;for(var n=t.steps[t.types[o.me.type]],r=0;r<n;r++)t.mySteps.push({index:r,path:t.assistantStep(r)}),t.assistantIndex=t.mySteps[t.state.assistant];t.loaded=!0,t.awaiters.forEach(function(e){"function"==typeof e&&e()})})})))},e}();t.QuickstartService=a},2411:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RichContentService=void 0;var i=r(n(3336)),o=function(){function e(e){this.$compile=e}return e.prototype.apply=function(e,t,n){var r=(0,i.default)("<div>"+(e||"")+"</div>");r.find("[resizable]").removeAttr("resizable").css("cursor","initial"),r.find("[bind-html]").removeAttr("bind-html"),r.find("[ng-include]").removeAttr("ng-include"),r.find("[ng-transclude]").removeAttr("ng-transclude"),r.find("[draggable]").removeAttr("draggable").css("cursor","initial"),r.find("[contenteditable]").removeAttr("contenteditable"),r.find("script").remove(),r.find("*").each(function(e,t){for(var n=t.attributes,r=n.length-1;r>=0;r--)(n[r].name.startsWith("on")||n[r].value.includes("javascript:"))&&t.removeAttribute(n[r].name)});var o=r[0].outerHTML;t.html(this.$compile(o)(n.$parent)),t.find("audio").each(function(e,t){var n=(0,i.default)(t).parent();(0,i.default)(t).attr("src",t.src).attr("preload","none").detach().appendTo(n)}),t.find("img").css({cursor:""})},e.$inject=["$compile"],e}();t.RichContentService=o},4763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionService=void 0;var r=n(9419),i=function(){function e(){}return e.prototype.hasWorkflow=function(e){return(0,r.session)().hasWorkflow(e)},e.prototype.getLanguage=function(){return(0,r.notif)().onSessionReady().promise.then(function(e){return(0,r.session)().currentLanguage})},e.prototype.getBookmarks=function(){return(0,r.notif)().onSessionReady().promise.then(function(e){return(0,r.conf)().User.bookmarkedApps})},e}();t.SessionService=i},6615:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeHelperService=void 0;var a=o(n(4202)),s=n(9419),u=o(n(3336)),c=function(){function e(e){this.ngHelperSvc=e,this.iconOfWidget={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme big","edumalin-widget":"ic-widget-edumalin","mediacentre-widget":"ic-widget-mediacentre","cantine-widget":"ic-widget-cantine"}}return Object.defineProperty(e.prototype,"platform",{get:function(){return(0,s.conf)().Platform},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CDN",{get:function(){return this.platform.cdnDomain},enumerable:!1,configurable:!0}),e.prototype.getBootstrapThemePath=function(){return r(this,void 0,void 0,function(){var e,t,n,r,o;return i(this,function(i){switch(i.label){case 0:return e=this.platform.theme.themeName,[4,this.platform.theme.getConf()];case 1:for(t=i.sent(),n=0,r=t.overriding;n<r.length;n++)if((o=r[n]).child===e)return[2,"".concat(this.CDN,"/assets/themes/").concat(o.bootstrapVersion)];return[2,"".concat(this.CDN,"/assets/themes/").concat(e)]}})})},e.prototype.getBootstrapSkinPath=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,this.getBootstrapThemePath()];case 1:return e=t.sent(),[2,"".concat(e,"/skins/").concat(this.platform.theme.skinName)]}})})},e.prototype.toSkinUrl=function(e){if(!a.default.element(document.querySelectorAll("#theme")).attr("href"))return"";var t=this.platform.theme.basePath;return-1===e.indexOf("http://")&&-1===e.indexOf("https://")&&-1===e.indexOf("/workspace/")?t+e:e},e.prototype.loadOldWrappedTheme=function(e,t){(0,u.default)("#themeOld").remove();var n=a.default.element('<link rel="stylesheet" \n type="text/css" \n href="'.concat(this.platform.cdnDomain,"/assets/themes/").concat(e,"/skins/").concat(t,"/wrapped.theme.css?version=").concat(this.platform.deploymentTag,'"\n id="themeOld"\n crossorigin="anonymous" />'));(0,u.default)("head").append(n)},e.prototype.loadThemeJs=function(e){(0,u.default)("#themeJS").remove();var t=a.default.element('<script\n type="text/javascript"\n src="'.concat(this.platform.cdnDomain,"/assets/themes/").concat(e,"/js/theme.js?version=").concat(this.platform.deploymentTag,'"\n id="themeJS" />'));(0,u.default)("body").append(t)},e.prototype.applyStyle=function(e){return r(this,void 0,void 0,function(){var t,n;return i(this,function(r){return e&&e.length>0&&e.lastIndexOf("/",e.length-1)!==e.length-1&&(e+="/"),e="".concat(e,"theme.css?version=").concat(this.platform.deploymentTag),0===(0,u.default)("#theme").length?(t=a.default.element('<link rel="stylesheet" \n type="text/css" \n href="'.concat(e,'"\n id="theme"\n crossorigin="anonymous" />')),n=a.default.element('<link rel="icon" href="'.concat(this.platform.theme.basePath,'img/illustrations/favicon.ico" />')),t.on("load",function(e){(0,u.default)("body").show()}),(0,u.default)("head").append(t).append(n),setTimeout(function(){(0,u.default)("body").show()},300)):(0,u.default)("#theme").attr("href",e),[2]})})},e.prototype.listThemes=function(){return this.platform.theme.listThemes()},e.prototype.setTheme=function(e){return r(this,void 0,void 0,function(){var t;return i(this,function(n){switch(n.label){case 0:return[4,this.getBootstrapThemePath()];case 1:return t=n.sent(),this.applyStyle("".concat(t,"/skins/").concat(e._id)),this.platform.theme.setDefaultTheme(e),[2]}})})},e.prototype.getIconCode=function(e){var t=e.icon.trim().toLowerCase()||"";switch(t&&t.length>0?t.endsWith("-large")&&(t=t.replace("-large","")):t=e.displayName.trim().toLowerCase(),t=(0,s.conf)().Platform.idiom.removeAccents(t)){case"admin.title":t="admin";break;case"banques des savoirs":t="banquesavoir";break;case"collaborativewall":t="collaborative-wall";break;case"communautés":t="community";break;case"directory.user":t="userbook";break;case"emploi du temps":t="edt";break;case"messagerie":t="conversation";break;case"news":t="actualites";break;case"homeworks":case"cahier de texte":t="cahier-de-texte";break;case"diary":case"cahier de texte 2d":t="cahier-textes"}return t},e.prototype.getWidgetIconClass=function(e){return this.iconOfWidget[e.platformConf.name]},e.$inject=["odeNgHelperService"],e}();t.ThemeHelperService=c},7374:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackingService=void 0;var a=o(n(4202)),s=n(9419),u=function(){function e(e,t,n){this.$document=e,this.$location=t,this.$rootScope=n,this.hasOptedIn=!1}return e.prototype.loadParams=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return e=this,[4,(0,s.conf)().Platform.analytics.parameters("matomo")];case 1:return[2,e._params=t.sent()]}})})},e.prototype.trackApp=function(e){var t=this;this.loadParams().then(function(e){var n;if(e&&t.shouldTrackCurrentApp())try{var r=window._paq=null!==(n=window._paq)&&void 0!==n?n:[];r.push(["setRequestMethod","POST"]),e.UserId&&r.push(["setUserId",e.UserId]),e.Profile&&r.push(["setCustomDimension",1,e.Profile]),e.School&&r.push(["setCustomDimension",2,e.School]),e.Project&&r.push(["setCustomDimension",3,e.Project]),r.push(["trackPageView"]),r.push(["enableLinkTracking"]),function(){var t;r.push(["setTrackerUrl",e.url+"matomo.php"]),r.push(["setSiteId",e.siteId]);var n=document,i=n.createElement("script"),o=n.getElementsByTagName("script")[0];i.type="text/javascript",i.async=!0,i.src=e.url+"ode.js",null===(t=o.parentNode)||void 0===t||t.insertBefore(i,o)}();var i=t;if(r.push([function(){i.hasOptedIn=!this.isUserOptedOut(),i.$rootScope.$digest()}]),e.detailApps){var o=(0,s.session)().user;if(a.default.isArray(e.doNotTrack)&&a.default.isArray(o.apps))for(var u=0;u<o.apps.length;u++)if(o.apps[u]&&o.apps[u].address&&o.apps[u].name&&-1!==t.$location.absUrl().indexOf(o.apps[u].address)&&-1!==e.doNotTrack.indexOf(o.apps[u].name))return;var c=t.$location.absUrl().split("#")[0];t.trackPage(t.$document[0].title,c)}}catch(e){console.error('Invalid tracker object. Should look like {"siteId": 99999, "url":"http://your.matomo.server.com/"}"',e)}})},e.prototype.trackPage=function(e,t){var n=this;this.loadParams().then(function(r){if(r&&n.shouldTrackCurrentApp()){var i=window._paq=window._paq||[];i.push(["setDocumentTitle",e]),i.push(["setCustomUrl",t]),i.push(["trackPageView"])}})},e.prototype.willTrackEvent=function(e){var t=this._params;if(!t)return!1;var n=this.getCurrentMatchingApps();if(t.trackOnly&&t.trackOnly.length>0){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1!==t.trackOnly.indexOf("".concat(o.name,".").concat(e))||-1!==t.trackOnly.indexOf("*.".concat(e)))return!0}return!1}if(t.doNotTrack instanceof Array&&t.doNotTrack.length>0)for(var a=0,s=n;a<s.length;a++){o=s[a];if(-1!==t.doNotTrack.indexOf("".concat(o.name,".").concat(e))||-1!==t.doNotTrack.indexOf("*.".concat(e)))return!1}return!0},e.prototype.trackEvent=function(e,t,n,r){this.loadParams().then(function(i){if(i){var o=window._paq=window._paq||[],a=["trackEvent",e,t];"string"==typeof n&&(n=n.trim()).length>0&&a.push(n),"number"==typeof r&&a.push(r),o.push(a)}})},e.prototype.saveOptIn=function(){var e=this;this.loadParams().then(function(t){t&&(window._paq=window._paq||[]).push(e.hasOptedIn?["forgetUserOptOut"]:["optUserOut"])})},e.prototype.shouldTrackCurrentApp=function(){var e=this._params;if(!e)return!1;if(e.doNotTrack)for(var t=0,n=this.getCurrentMatchingApps();t<n.length;t++){var r=n[t];if(-1!==e.doNotTrack.indexOf(r.name))return!1}return!0},e.prototype.getCurrentMatchingApps=function(){var e=[],t=(0,s.session)().user.apps;if(t instanceof Array)for(var n=0;n<t.length;n++){var r=t[n];r&&r.address&&r.name&&-1!==location.href.indexOf(r.address)&&e.push(r)}return e},e.prototype.shouldTrackEvent=function(e,t){if(!e)return!1;var n=this.getCurrentMatchingApps();if(e.trackOnly&&e.trackOnly.length>0){for(var r=0,i=n;r<i.length;r++){var o=i[r];if(-1!==e.trackOnly.indexOf("".concat(o.name,".").concat(t))||-1!==e.trackOnly.indexOf("*.".concat(t)))return!0}return!1}if(e.doNotTrack instanceof Array&&e.doNotTrack.length>0)for(var a=0,s=n;a<s.length;a++){o=s[a];if(-1!==e.doNotTrack.indexOf("".concat(o.name,".").concat(t))||-1!==e.doNotTrack.indexOf("*.".concat(t)))return!1}return!0},e}();t.TrackingService=u,u.$inject=["$document","$location","$rootScope"]},7291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoEventTrackerService=void 0;var r=n(9419),i=function(){function e(){}return e.asFormData=function(){var e=new FormData,t=r.devices.getBrowserInfo();return e.append("device",r.deviceType),e.append("browser",t.name+" "+t.version),e.append("url",window.location.hostname),e.append("app",(0,r.session)().currentApp||""),e},e.prototype.generateSaveEvent=function(e,t){var n=r.devices.getBrowserInfo(),i={videoId:t.videoworkspaceid,userId:(0,r.session)().user.userId,userProfile:(0,r.session)().description.profiles[0],device:r.deviceType,browser:n.name+" "+n.version,structure:(0,r.session)().user.structureNames[0],level:(0,r.session)().user.level,duration:Math.round(e),weight:t.videosize,captation:!0,url:window.location.hostname,app:(0,r.session)().currentApp};(0,r.http)().postJson("/video/event/save",i)},e}();t.VideoEventTrackerService=i},8328:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoUploadService=void 0;var o=n(5262),a=n(9419),s=n(7291),u=function(){function e(){this._maxWeight=50,this._maxDuration=3,this._acceptVideoUploadExtensions=["mp4","mov","avi"],this._initialized=!1}return Object.defineProperty(e.prototype,"validExtensions",{get:function(){return this._acceptVideoUploadExtensions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWeight",{get:function(){return this._maxWeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDuration",{get:function(){return this._maxDuration},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){return r(this,void 0,void 0,function(){var e=this;return i(this,function(t){switch(t.label){case 0:if(this._initialized)return[2];t.label=1;case 1:return t.trys.push([1,,3,4]),[4,(0,a.conf)().Platform.apps.initialize(o.APP.VIDEO,!1)];case 2:return t.sent(),(0,a.conf)().Platform.apps.getPublicConf(o.APP.VIDEO).then(function(t){e._maxWeight=e.safeValueOf(t,"max-videosize-mbytes",e._maxWeight),e._maxDuration=e.safeValueOf(t,"max-videoduration-minutes",e._maxDuration);var n=t["accept-videoupload-extensions"];n&&("string"==typeof n&&(n=[n]),e._acceptVideoUploadExtensions=n||e._acceptVideoUploadExtensions,e._acceptVideoUploadExtensions=e._acceptVideoUploadExtensions.map(function(e){return e.toUpperCase()}))}),[3,4];case 3:return this._initialized=!0,[7];case 4:return[2]}})})},e.prototype.safeValueOf=function(e,t,n){try{var r=parseInt(e[t]);return"number"!=typeof r||isNaN(r)?n:r}catch(e){return n}},e.prototype.checkValidExtension=function(e){return e=e.toUpperCase(),-1!==this._acceptVideoUploadExtensions.findIndex(function(t){return e===t})},e.prototype.upload=function(e,t,n,o){return r(this,void 0,void 0,function(){var r,u,c,l,d,f,h;return i(this,function(p){switch(p.label){case 0:if(!e)throw new Error("Invalid video file.");if(!t)throw new Error("Invalid video filename.");return r="/video/encode?captation="+n,(u=s.VideoEventTrackerService.asFormData()).append("file",e,t),u.append("weight",""+e.size),u.append("captation",""+n),o&&(u.append("duration",""+o),r+="&duration="+o),[4,(0,a.http)().post(r,u)];case 1:if(p.sent(),202!=(0,a.http)().latestResponse.status)return[3,5];c="/video/status/"+(0,a.http)().latestResponse.data.processid,l=0,d=1,f=function(){var e,t;return i(this,function(n){switch(n.label){case 0:return e=d+l,[4,new Promise(function(t){return setTimeout(t,1e3*e)})];case 1:return n.sent(),l=d,d=Math.min(8,e),[4,(0,a.http)().get(c)];case 2:return t=n.sent(),201==(0,a.http)().latestResponse.status?[2,{value:t}]:202!=(0,a.http)().latestResponse.status?[2,"break"]:[2]}})},p.label=2;case 2:return[5,f()];case 3:if("object"==typeof(h=p.sent()))return[2,h.value];if("break"===h)return[3,5];p.label=4;case 4:return[3,2];case 5:throw new Error("Video cannot be uploaded.")}})})},e}();t.VideoUploadService=u},1599:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetService=void 0;var r=n(5262),i=n(9419),o=function(){function e(){}return e.prototype.initialize=function(){return r.WidgetFrameworkFactory.instance().initialize(null,null)},e.prototype.list=function(){return r.WidgetFrameworkFactory.instance().list},e.prototype.onChange=function(){return(0,i.notif)().events().pipe(r.RxJS.filter(function(e){return e.layer===r.LAYER_NAME.WIDGETS&&e.name===r.EVENT_NAME.USERPREF_CHANGED}))},e}();t.WidgetService=o},298:function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.XitiService=void 0;var utils_1=__webpack_require__(9419),ATTag,XitiService=function(){function XitiService(){}return XitiService.prototype.runScript=function(){var e=this;return Promise.all([(0,utils_1.conf)().Platform.analytics.xiti(),this.loadScript()]).then(function(t){var n=t[0];if(n)return console.debug("XiTi conf="+JSON.stringify(n)),e.run(n)}).catch(function(e){e&&console.debug("XiTi: run script error="+JSON.stringify(e))})},XitiService.prototype.trackClick=function(e,t){var n=this;return Promise.all([(0,utils_1.conf)().Platform.analytics.xiti(),this.loadScript(),this.loadCasMapping(e)]).then(function(r){var i=r[0];if(i)return console.debug("XiTi conf="+JSON.stringify(i)),n.click(i,r[2],e,t)}).catch(function(e){e&&console.debug("XiTi: track click error="+JSON.stringify(e))})},XitiService.prototype.loadScript=function(){return __awaiter(this,void 0,void 0,function(){var scriptPath,response;return __generator(this,function(_a){switch(_a.label){case 0:return"undefined"!=typeof ATInternet?[3,2]:(scriptPath="/xiti/public/js/lib/smarttag_ENT.js",[4,(0,utils_1.http)().get(scriptPath,{headers:{Accept:"application/javascript"}})]);case 1:if(response=_a.sent(),200!=(0,utils_1.http)().latestResponse.status)throw"Error while loading XiTi script";eval(response),_a.label=2;case 2:return[2]}})})},XitiService.prototype.loadCasMapping=function(e){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(r){switch(r.label){case 0:return t="/xiti/cas-infos?connector=".concat(e),[4,(0,utils_1.http)().get(t)];case 1:if(n=r.sent(),200!=(0,utils_1.http)().latestResponse.status)throw"Error while loading XiTi CAS mapping";if(!n.xitiService||!n.xitiOutil)throw"Malformed XiTi CAS mapping";return[2,n]}})})},XitiService.prototype.run=function(e,t){return void 0===t&&(t=window.location.pathname),__awaiter(this,void 0,void 0,function(){var n,r,i;return __generator(this,function(o){if(!ATInternet)return[2];for(r in n=e.LIBELLE_SERVICE.default||null,e.LIBELLE_SERVICE)if("default"!==r&&t.indexOf(r)>=0){n=e.LIBELLE_SERVICE[r];break}return i=function(e){if(e&&e.split("/").length>0){var t=window.location.pathname.split("/")[1];return"userbook"==t&&(t="directory"),"welcome"==t&&(t="."),t}}(t),(ATTag=new ATInternet.Tracker.Tag({site:e.STRUCT_ID})).setProps({SERVICE:n,TYPE:e.TYPE,OUTIL:e.OUTIL,UAI:e.STRUCT_UAI,PROJET:e.PROJET,EXPLOITANT:e.EXPLOITANT,PLATEFORME:e.PLATFORME,PROFIL:e.PROFILE},!0),ATTag.identifiedVisitor.set({id:e.ID_PERSO,category:e.PROFILE}),ATTag.page.set({name:"userbook"===i?"directory":i,chapter1:"",chapter2:"",chapter3:"",level2:e.STRUCT_UAI}),ATTag.dispatch(),[2]})})},XitiService.prototype.click=function(e,t,n,r){if(ATInternet&&ATTag){console.debug("xiti click !!!");var i={SERVICE:t.xitiService,TYPE:"TIERS",OUTIL:t.xitiOutil},o=n,a=e.STRUCT_UAI;ATTag.setProps(i,!1),ATTag.click.send({elem:r,name:o,type:"navigation",level2:a})}},XitiService}();exports.XitiService=XitiService},1880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Base64=void 0;var n=function(){function e(){}return e.encode=function(e){return btoa(e)},e.decode=function(e){return atob(e)},e}();t.Base64=n},3710:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deviceType=t.devices=void 0;var r=n(2238);t.devices={getOSInfo:function(e){return new r.UAParser(e).getOS()},isIE:function(){return-1!==navigator.userAgent.indexOf("Trident")},isiOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isIphone:function(){return-1!=navigator.userAgent.indexOf("iPhone")},isIpod:function(){return-1!=navigator.userAgent.indexOf("iPod")},isIpad:function(){return-1!=navigator.userAgent.indexOf("iPad")},getBrowserInfo:function(){var e=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),"string"==typeof e?e.split(t):[]},t=navigator.userAgent;if(-1!==t.indexOf("OPR")){var n=e(t,"OPR/")[1];return{name:"Opera",version:parseInt(e(n,".")[0])}}if(-1!==t.indexOf("Edg")){var r=e(t,"Edg/")[1];return{name:"Edge",version:parseInt(e(r,".")[0])}}if(-1!==t.indexOf("Chrome")){var i=e(t,"Chrome/")[1];return{name:"Chrome",version:parseInt(e(i,".")[0])}}if(-1!==t.indexOf("IEMobile")){var o=e(t,"IEMobile/")[1];return{name:"MSIE",version:parseInt(e(o,";")[0])}}if(-1!==t.indexOf("AppleWebKit")&&-1===t.indexOf("Chrome")&&-1===t.indexOf("CriOS")&&-1===t.indexOf("FxiOS")){var a=e(t,"Version/")[1];return{name:"Safari",version:parseInt(e(a,".")[0])}}if(-1!==t.indexOf("Firefox")){var s=e(t,"Firefox/")[1];return{name:"Firefox",version:parseInt(e(s,".")[0])}}if(-1!==t.indexOf("MSIE")){var u=e(t,"MSIE ")[1];return{name:"MSIE",version:parseInt(e(u,";")[0])}}if(-1===t.indexOf("MSIE")&&-1!==t.indexOf("Trident")){u=e(t,"rv:")[1];return{name:"MSIE",version:parseInt(e(u,".")[0])}}if(-1!==t.indexOf("CriOS")){var c=e(t,"CriOS/")[1];return{name:"CriOS",version:parseInt(e(c,".")[0])}}if(-1!==t.indexOf("FxiOS")){var l=e(t,"FxiOS/")[1];return{name:"FxiOS",version:parseInt(e(l,".")[0])}}return{name:"unknown",version:0}}},navigator.userAgent.match(/Mobile/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/Windows Phone/i)||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/webOS/i)?(t.deviceType="Mobile",document.getElementsByTagName("html")[0].setAttribute("mobile-device","")):navigator.userAgent.match(/Tablet/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Nexus 7/i)||navigator.userAgent.match(/Nexus 10/i)||navigator.userAgent.match(/KFAPWI/i)?(t.deviceType="Tablet",document.getElementsByTagName("html")[0].setAttribute("tablet-device","")):(t.deviceType="Desktop",document.getElementsByTagName("html")[0].setAttribute("desktop-device",""))},9419:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.TrackedActionFromWidget=void 0,i(n(2167),t),i(n(4943),t),i(n(6660),t),i(n(8701),t),i(n(1880),t),i(n(3710),t),i(n(5511),t);var o=n(2357);Object.defineProperty(t,"TrackedActionFromWidget",{enumerable:!0,get:function(){return o.KnownWidget}})},2167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8701:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.L10n=void 0;var i=r(n(381)),o=function(){function e(){}return e.initialize=function(e){var t={fr:{calendar:{lastDay:"[Hier à] HH[h]mm",sameDay:"[Aujourd'hui à] HH[h]mm",nextDay:"dddd D MMMM YYYY",lastWeek:"dddd D MMMM YYYY",nextWeek:"dddd D MMMM YYYY",sameElse:"dddd D MMMM YYYY"}}};i.default.locale(e),e in t&&i.default.updateLocale(e,t[e])},e.moment=function(e,t,n,r){return"boolean"!=typeof t||n||"boolean"==typeof r?(0,i.default)(e,t,n,r):(0,i.default)(e,r)},e.utc=function(e,t){return i.default.utc(e)},e.unix=function(e){return i.default.unix(e)},e}();t.L10n=o},3848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ManualChangeListener=t.DOMRouteChangeListener=t.AngularJSRouteChangeListener=t.ObjectGuard=t.InputGuard=t.navigationGuardService=t.NavigationGuardService=void 0;var r=n(7754),i=n(4943);function o(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function a(e){var t=[];return e.forEach(function(e,n){return t.push(n)}),t}var s=function(){function e(){this.debounceMs=1e3,this._lastTime=null,this._lastResponse=null,this._listeners=new Map,this._guards=new Map,this._id_counter=0,this.onUserConfirmNavigate=new Array}return e.prototype.generateID=function(){return"__auto_guard_id_"+t.navigationGuardService._id_counter++},e.prototype._getGuardsMapByID=function(e){var n=t.navigationGuardService._guards.get(e);return null!=n?n:new Set},e.prototype.registerGuard=function(e,n){var r=t.navigationGuardService._getGuardsMapByID(e);r.add(n),t.navigationGuardService._guards.set(e,r)},e.prototype.unregisterGuard=function(e,n){var r=t.navigationGuardService._getGuardsMapByID(e);r.delete(n),0==r.size&&t.navigationGuardService.unregisterRoot(e)},e.prototype.unregisterRoot=function(e){t.navigationGuardService._guards.delete(e)},e.prototype.registerIndependantGuard=function(e){var n=t.navigationGuardService.generateID();return t.navigationGuardService.registerGuard(n,e),n},e.prototype.unregisterIndependantGuard=function(e){t.navigationGuardService.unregisterRoot(e)},e.prototype.registerListener=function(e){if(!t.navigationGuardService._listeners.has(e)){e.start();var n=e.onChange.subscribe(function(e){t.navigationGuardService.tryNavigate(e)});t.navigationGuardService._listeners.set(e,n)}},e.prototype.unregisterListener=function(e){var n=t.navigationGuardService._listeners.get(e);n&&(n.unsubscribe(),e.stop(),t.navigationGuardService._listeners.delete(e))},e.prototype.tryNavigate=function(e){var n=t.navigationGuardService._lastTime||0,r=(new Date).getTime()-n,s=t.navigationGuardService._lastResponse;if(null!=s&&r<t.navigationGuardService.debounceMs)s?e.accept():e.reject();else{for(var u=e.confirmMessageKey||"navigation.guard.text",c=0,l=a(t.navigationGuardService._guards);c<l.length;c++){var d=l[c],f=t.navigationGuardService._guards.get(d);if(f&&(!e.checkGuardId||"*"===e.checkGuardId||e.checkGuardId===d))for(var h=0,p=o(f);h<p.length;h++){var v=p[h];if(!v.canNavigate()){for(var m=confirm((0,i.conf)().Platform.idiom.translate(u)),g=0,b=t.navigationGuardService.onUserConfirmNavigate;g<b.length;g++){(0,b[g])(m)}return v.onUserConfirmNavigate&&v.onUserConfirmNavigate(m),t.navigationGuardService._lastTime=(new Date).getTime(),t.navigationGuardService._lastResponse=m,void(m?(e.accept(),t.navigationGuardService.resetAll()):e.reject())}}}e.accept()}},e.prototype.reset=function(e){for(var n=0,r=o(t.navigationGuardService._getGuardsMapByID(e));n<r.length;n++){r[n].reset()}},e.prototype.resetAll=function(){for(var e=0,n=a(t.navigationGuardService._guards);e<n.length;e++){var r=n[e];t.navigationGuardService.reset(r)}},e}();t.NavigationGuardService=s,t.navigationGuardService=new s;var u=function(){function e(e,t,n){void 0===n&&(n=function(e,t){return e==t}),this.currentValue=e,this.resetter=t,this.comparator=n,this.reference=this.resetter()}return e.prototype.unNaN=function(e){return"number"==typeof e&&!0===isNaN(e)?null:e},e.prototype.reset=function(){this.reference=this.resetter()},e.prototype.canNavigate=function(){return this.comparator(this.unNaN(this.reference),this.unNaN(this.currentValue()))},e}();t.InputGuard=u;var c=function(){function e(e){this.currentValue=e}return e.prototype.reset=function(){this.currentValue().guardObjectReset()},e.prototype.canNavigate=function(){return!this.currentValue().guardObjectIsDirty()},e.prototype.onUserConfirmNavigate=function(e){var t=this.currentValue();t.guardOnUserConfirmNavigate&&t.guardOnUserConfirmNavigate(e)},e}();t.ObjectGuard=c;var l=function(){function e(e){this.$rootScope=e,this.subscription=null,this.onChange=new r.Subject;var n=this;e.$on("$destroy",function(){t.navigationGuardService.unregisterListener(n)})}return e.prototype.start=function(){var e=this;this.subscription||(this.subscription=this.$rootScope.$on("$locationChangeStart",function(t,n,r){e.onChange.next({accept:function(){},reject:function(){t.preventDefault()}})}))},e.prototype.stop=function(){this.subscription&&this.subscription(),this.subscription=null},e.getInstance=function(t){return null==e._instance&&(e._instance=new e(t)),e._instance},e._instance=null,e}();t.AngularJSRouteChangeListener=l;var d=function(){function e(){var e=this;this.onChange=new r.Subject,this.callback=function(t){var n=!1;return e.onChange.next({accept:function(){n=!0},reject:function(){t.preventDefault(),t.returnValue=!1,n=!1}}),n}}return e.prototype.start=function(){window.addEventListener("beforeunload",this.callback,!1)},e.prototype.stop=function(){window.removeEventListener("beforeunload",this.callback)},e.getInstance=function(){return null==e._instance&&(e._instance=new e),e._instance},e._instance=null,e}();t.DOMRouteChangeListener=d;var f=function(){function e(){this.onChange=new r.Subject}return e.prototype.start=function(){},e.prototype.stop=function(){this.onChange.unsubscribe()},e}();t.ManualChangeListener=f},6660:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(4202)),o=n(5262),a=n(9419);document.addEventListener("DOMContentLoaded",function(){o.SessionFrameworkFactory.instance().initialize().then(function(){var e;return(0,a.conf)().initialize(null===(e=window.entcore)||void 0===e?void 0:e.deploymentTag,null)}).then(function(){i.default.bootstrap(document.querySelector("html"),["app"])})},{once:!0})},9826:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.audio_recorder=void 0;var a=n(9419),s=n(7774),u=o(n(3336)),c=null;function l(){return r(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:return c?[3,2]:[4,u.default.ajax("/infra/public/js/zlib.min.js",{dataType:"script"})];case 1:c=e.sent(),e.label=2;case 2:return[2,c]}})})}var d={getUserMediaLegacy:navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,getUserMedia:navigator.mediaDevices&&navigator.mediaDevices.getUserMedia,AudioContext:window.AudioContext||window.webkitAudioContext};t.audio_recorder=function(){var e,t,n,o=(0,a.conf)().Platform.idiom,u=null,c=!0,f=new Audio,h=[],p=[],v=4096,m=!1,g=0,b=0,y=new Worker("/infra/public/js/audioEncoder.js"),w=[];function _(e){var t="https:"===window.location.protocol?"wss":"ws",n=window.location.host;return"localhost:8090"===window.location.host&&(n="localhost:6502"),"".concat(t+"://"+n,"/audio/").concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}),"?sampleRate=").concat(e)}function x(){var t=p.length;t>b&&(y.postMessage(["init",e.sampleRate]),y.postMessage(["chunk",h.slice(b,t),p.slice(b,t),(t-b)*v]),y.onmessage=function(e){if(c){var t=parseInt(""+performance.now()),n=new Zlib.Deflate(e.data);u&&u.send(n.compress()),parseInt(""+performance.now())-t>50&&(c=!1,u&&u.send("rawdata"))}else u&&u.send(e.data)},b=t)}function k(){u&&1===u.readyState&&u.close(),S()}function S(){u=null,h=[],p=[],b=0}function M(e,t){try{w.forEach(function(n){"function"==typeof n&&n(e,t)})}catch(e){}}return{elapsedTime:0,loadComponents:function(){var r=this;this.title||(this.title=a.L10n.moment().format("YYYY-MM-DD HH[h]mm")+" "+o.translate("recorder.filename.audio")),m=!0;var i=function(i){r.permission="granted",e=new d.AudioContext,y.postMessage(["init",e.sampleRate]);var o=e.createMediaStreamSource(i);t=e.createGain(),o.connect(t),(n=e.createScriptProcessor(v,2,2)).onaudioprocess=function(e){if("recording"===r.state){var t=new Float32Array(e.inputBuffer.getChannelData(0));h.push(t);var n=new Float32Array(e.inputBuffer.getChannelData(1));p.push(n),g+=v,r.elapsedTime+=e.inputBuffer.duration,x(),M(r.state)}},t.connect(n),n.connect(e.destination)};void 0!==d.getUserMedia?d.getUserMedia.call(navigator.mediaDevices,{audio:!0}).then(i).catch(function(e){e&&(r.permission="denied",console.log("err:",e))}):void 0!==d.getUserMediaLegacy&&d.getUserMediaLegacy({audio:!0},i,function(e){console.log("err:",e)})},isCompatible:function(){return void 0!==d.AudioContext&&(void 0!==d.getUserMedia||void 0!==d.getUserMediaLegacy)},stop:function(){u&&u.send("cancel"),this.state="idle",f.pause(),f.currentTime>0&&(f.currentTime=0),h=[],p=[],M(this.state)},flush:function(){this.title="",this.stop(),this.elapsedTime=0,h=[],p=[],M(this.state)},record:function(){return r(this,void 0,void 0,function(){var e,t=this;return i(this,function(n){switch(n.label){case 0:return f.pause(),"preparing"==(e=this).state?[2]:(e.state="preparing",[4,l()]);case 1:return n.sent(),u?(e.state="recording",M(e.state),m||e.loadComponents()):((u=new WebSocket(_((new d.AudioContext).sampleRate))).onopen=function(){f.currentTime>0&&(f.currentTime=0),e.state="recording",M(e.state),c||u&&u.send("rawdata"),m||e.loadComponents()},u.onerror=function(t){console.log(t),e.state="stopped",M(e.state),k(),s.notify.error(t.error)},u.onmessage=function(e){return r(t,void 0,void 0,function(){var t,n;return i(this,function(r){switch(r.label){case 0:return e.data&&e.data.indexOf&&"function"==typeof e.data.indexOf&&-1!==e.data.indexOf("error")?(console.log(e.data),k(),s.notify.error(e.data),[3,3]):[3,1];case 1:return e.data&&e.data.text&&"function"==typeof e.data.text&&"encoding"===this.state?(n=(t=JSON).parse,[4,e.data.text()]):[3,3];case 2:"ok"===n.apply(t,[r.sent()]).status?(k(),M("saved"),this.elapsedTime=0):(console.log(e.data),k(),s.notify.error(e.data)),r.label=3;case 3:return[2]}})})},u.onclose=function(t){e.state="stopped",e.elapsedTime=0,M(e.state),S()}),[2]}})})},suspend:function(){return this.state="suspended",f.pause(),M(this.state),Promise.resolve()},pause:function(){this.state="paused",f.pause(),M(this.state)},play:function(){this.pause(),this.state="playing";var t=new Worker("/infra/public/js/audioEncoder.js");t.postMessage(["init",e.sampleRate]),t.postMessage(["wav",p,h,g]),t.onmessage=function(e){f.src=window.URL.createObjectURL(e.data),f.play()},M(this.state)},status:function(e){w.push(e)},title:"",state:"idle",permission:"idle",save:function(){x(),u&&u.send("save-"+this.title),this.state="encoding",M(this.state)},mute:function(e){t.gain.value=e?0:1}}}()},3148:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}u((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.VideoRecorder=void 0;var o=n(4943),a=n(8701),s=n(6731),u=n(3710),c=function(){function e(e,t,n,r,i){var o=this;this.videoFactory=e,this.handleDuration=t,this.uploader=n,this.tracker=r,this.defaultDevice=i,this._status="preparing",this.constraints={audio:!0,video:{width:640,height:360,facingMode:"environment"}},this.title="",this.elapsedTime=0,this.followers=[],this.videoEndedHandler=function(e){o.gumVideo&&(o.pause(),o.gumVideo.currentTime=0)},i&&this.setCamera(i.deviceId)}return Object.defineProperty(e.prototype,"permission",{get:function(){return(0,o.session)().hasWorkflow("com.opendigitaleducation.video.controllers.VideoController|capture")?"granted":"denied"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._status},enumerable:!1,configurable:!0}),e.prototype.status=function(e){this.followers.push(e)},e.prototype.updateStatus=function(e,t){this._status=e;try{this.followers.forEach(function(t){"function"==typeof t&&t(e)})}catch(e){}},e.isCompatible=function(){var t;return"function"==typeof(null===(t=navigator.mediaDevices)||void 0===t?void 0:t.getSupportedConstraints)&&navigator.mediaDevices.getSupportedConstraints().deviceId&&!(e.isIncompatibleDevice()||e.isIncompatibleBrowser())||!1},e.isIncompatibleDevice=function(){var e=u.devices.getOSInfo();return!(e&&"iOS"===e.name&&e.version&&e.version>="14.3")&&(u.devices.isIphone()||u.devices.isIpad()||u.devices.isIpod())},e.isIncompatibleBrowser=function(){if(!window.MediaRecorder)return!0;var e=u.devices.getBrowserInfo();return-1===["Firefox","Chrome","Edge","Opera","Safari","CriOS","FxiOS"].findIndex(function(t){return e.name==t})},e.prototype.suspend=function(){return this.stopRecording(!0)},e.prototype.flush=function(){this.stopStreaming(),this.title=""},e.prototype.save=function(){var e=this;this.title||(this.title="video-"+this.generateVideoId()),this.updateStatus("encoding"),this.uploader.upload(this.getBuffer(),this.title,!0,Math.round(this.elapsedTime)).then(function(t){"succeed"===t.state?(e.tracker.generateSaveEvent(e.elapsedTime,t),e.updateStatus("saved"),e.updateStatus("suspended")):"error"===t.state&&(e.updateStatus("suspended"),t.code&&s.notify.error(t.code))}).catch(function(t){e.updateStatus("suspended"),s.notify.error("video.file.error")})},e.prototype.bindPlayEvents=function(){this.gumVideo&&(this.unbindPlayEvents(),this.gumVideo.addEventListener("ended",this.videoEndedHandler,!1))},e.prototype.unbindPlayEvents=function(){this.gumVideo&&this.gumVideo.removeEventListener("ended",this.videoEndedHandler,!1)},e.prototype.unbindRecordEvent=function(){this.gumVideo&&this.gumVideo.removeEventListener("timeupdate",this.handleDuration)},e.prototype.bindRecordEvent=function(){this.gumVideo&&(this.unbindRecordEvent(),this.gumVideo.addEventListener("timeupdate",this.handleDuration))},e.prototype.setCamera=function(e){"environment"===e||"user"===e?(delete this.constraints.video.deviceId,this.constraints.video.facingMode=e):e&&(delete this.constraints.video.facingMode,this.constraints.video.deviceId=e)},e.prototype.switchCamera=function(e){var t,n,r;return this.setCamera(e),this.stream&&("active"===(null===(t=this.mediaRecorder)||void 0===t?void 0:t.state)&&(null===(n=this.mediaRecorder)||void 0===n||n.requestData(),null===(r=this.mediaRecorder)||void 0===r||r.stop()),this.turnOffCamera(),delete this.stream),this.startStreaming()},e.prototype.play=function(){this.gumVideo?(this.preparePlay(),this.gumVideo.play(),this.updateStatus("playing")):console.warn("[VideoRecorder.play] stream not init")},e.prototype.preparePlay=function(){if("paused"!=this._status){this.unbindRecordEvent(),this.bindPlayEvents();var e=this.getBuffer();this.gumVideo&&(this.gumVideo.muted=!1,this.gumVideo.srcObject=null,this.gumVideo.autoplay=!1,this.gumVideo.src=window.URL.createObjectURL(e)),this.updateStatus("paused")}},e.prototype.pause=function(){this.gumVideo?(this.gumVideo.pause(),this.updateStatus("paused")):console.warn("[VideoRecorder.play] stream not init")},e.prototype.prepareRecord=function(){this.stream?"recording"!=this._status&&(this.gumVideo&&(this.gumVideo.muted=!0,this.gumVideo.volume=1,this.gumVideo.autoplay=!0,this.gumVideo.src&&window.URL.revokeObjectURL(this.gumVideo.src),this.gumVideo.srcObject=this.stream,this.gumVideo.controls=!1),this.unbindPlayEvents(),this.bindRecordEvent(),this.updateStatus("recording")):console.warn("[VideoRecorder.prepareRecord] stream not init")},e.prototype.stopStreaming=function(){if(this.gumVideo&&(this.unbindPlayEvents(),this.unbindRecordEvent()),this.stream){try{this.stopRecording(!1)}catch(e){}this.turnOffCamera(),delete this.stream}this.gumVideo&&delete this.gumVideo,this.updateStatus("idle")},e.prototype.startStreaming=function(e){return r(this,void 0,void 0,function(){var t,n,r;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,10]),this.stream?[2]:(this.gumVideo||(this.gumVideo=this.videoFactory()),[4,navigator.mediaDevices.getUserMedia(this.constraints)]);case 1:return n=i.sent(),this.stream=n,this.prepareRecord(),[3,10];case 2:return(t=i.sent())?"NotAllowedError"!=t.name?[3,3]:e?[2,e()]:[3,8]:[3,9];case 3:if("NotReadableError"!=t.name)return[3,8];i.label=4;case 4:return i.trys.push([4,6,,7]),[4,navigator.mediaDevices.getUserMedia({})];case 5:return n=i.sent(),this.gumVideo||(this.gumVideo=this.videoFactory()),this.stream=n,this.prepareRecord(),[3,7];case 6:return r=i.sent(),alert(r),[3,7];case 7:return[2];case 8:alert(t),i.label=9;case 9:return[3,10];case 10:return[2]}})})},e.prototype.generateVideoId=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},e.prototype.resume=function(){var e;this.prepareRecord(),null===(e=this.mediaRecorder)||void 0===e||e.resume()},e.prototype.canStartRecording=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return[4,(0,o.session)().latestQuotaAndUsage];case 1:return[2,(e=t.sent()).quota>e.storage]}})})},e.prototype.findBestSupportedMimeType=function(){return MediaRecorder.isTypeSupported?["video/webm;codecs=vp9",'video/mp4; codecs="avc1.424028, mp4a.40.2"',"video/webm;codecs=vp8,opus","video/webm"].find(function(e){return!!MediaRecorder.isTypeSupported(e)||(console.error("[VideoRecorder.startRecording] ".concat(e," is not Supported")),!1)})||"video/ogg":"video/webm;codecs=vp8,opus"},e.prototype.prepare=function(){return r(this,void 0,void 0,function(){var e;return i(this,function(t){switch(t.label){case 0:return this.gumVideo||(this.gumVideo=this.videoFactory()),[4,navigator.mediaDevices.getUserMedia(this.constraints)];case 1:return e=t.sent(),this.stream=e,this.stream?("recording"!==this._status&&this.gumVideo&&(this.gumVideo.muted=!0,this.gumVideo.volume=1,this.gumVideo.autoplay=!0,this.gumVideo.src&&window.URL.revokeObjectURL(this.gumVideo.src),this.gumVideo.srcObject=this.stream,this.gumVideo.controls=!1),[2]):(console.warn("[VideoRecorder.prepareRecord] stream not init"),[2])}})})},e.prototype.record=function(){return r(this,void 0,void 0,function(){var e,t,n=this;return i(this,function(r){switch(r.label){case 0:return[4,this.startStreaming()];case 1:if(r.sent(),!this.stream)return[2];e=(0,o.conf)().Platform.idiom,this.title||(this.title=a.L10n.moment().format("YYYY-MM-DD HH[h]mm")+" "+e.translate("recorder.filename.video")),this.prepareRecord(),this.recorded=new Array,t={mimeType:this.findBestSupportedMimeType()};try{this.mediaRecorder=new MediaRecorder(this.stream,t),this.recordMimeType=t.mimeType}catch(e){return console.error("[VideoRecorder.startRecording] Exception while creating MediaRecorder:",e),[2]}return this.mediaRecorder.onstop=function(){},this.mediaRecorder.ondataavailable=function(e){var t;e.data&&e.data.size>0&&(null===(t=n.recorded)||void 0===t||t.push(e.data))},this.mediaRecorder.start(1e3),[2]}})})},e.prototype.stopRecording=function(e){var t,n,r,i=this;return"recording"===(null===(t=this.mediaRecorder)||void 0===t?void 0:t.state)&&(null===(n=this.mediaRecorder)||void 0===n||n.requestData(),null===(r=this.mediaRecorder)||void 0===r||r.stop()),new Promise(function(t){e?setTimeout(function(){i.preparePlay(),t()},0):(i.updateStatus("stopped"),t())})},e.prototype.turnOffCamera=function(){if(this.stream)for(var e=0,t=this.stream.getTracks();e<t.length;e++){var n=t[e];try{n.stop()}catch(e){}}},e.prototype.getBuffer=function(){return new Blob(this.recorded,{type:this.recordMimeType})},e.prototype.clearBuffer=function(e){delete this.recorded,e&&this.prepareRecord()},e}();t.VideoRecorder=c},4943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.session=t.http=t.notif=t.conf=void 0;var r=n(5262);t.conf=function(){return r.ConfigurationFrameworkFactory.instance()},t.notif=function(){return r.NotifyFrameworkFactory.instance()},t.http=function(){return r.TransportFrameworkFactory.instance().http},t.session=function(){return r.SessionFrameworkFactory.instance().session}},2238:function(e,t,n){var r;
|
|
29
29
|
/*!@license
|
|
30
30
|
* UAParser.js v0.7.28
|
|
31
31
|
* Lightweight JavaScript-based User-Agent string parser
|
|
@@ -33,5 +33,5 @@ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
|
|
|
33
33
|
*
|
|
34
34
|
* Copyright © 2012-2021 Faisal Salman <f@faisalman.com>
|
|
35
35
|
* Licensed under MIT License
|
|
36
|
-
*/!function(i,o){"use strict";var a="function",s="undefined",u="object",c="string",l="model",d="name",f="type",h="vendor",p="version",v="architecture",m="console",g="mobile",b="tablet",y="smarttv",w="wearable",_="embedded",x={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return typeof e===c&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof t===s?e:e.substring(0,255)}},k={rgx:function(e,t){for(var n,r,i,s,c,l,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c;)if(c=f[n++].exec(e))for(i=0;i<h.length;i++)l=c[++r],typeof(s=h[i])===u&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(x.has(t[n][r],e))return"?"===n?o:n}else if(x.has(t[n],e))return"?"===n?o:n;return e}},S={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},M={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[d,p],[/opios[\/\s]+([\w\.]+)/i],[p,[d,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[p,[d,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[p,[d,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure Browser"],p],[/focus\/([\w\.]+)/i],[p,[d,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[p,[d,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[p,[d,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[d,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[d,p],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[d],[/;fbav\/([\w\.]+);/i],[p,[d,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[d,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[d,p],[/\bgsa\/([\w\.]+)\s.*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[d,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[d,"Chrome WebView"],p],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[p,[d,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[p,d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[d,[p,k.str,S.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[d,"Netscape"],p],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[p,[d,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[d,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,x.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[v,/ower/,"",x.lowerize]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,x.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[l,[h,"Samsung"],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[l,[h,"Samsung"],[f,g]],[/\((ip(?:hone|od)[\s\w]*);/i],[l,[h,"Apple"],[f,g]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[h,"Apple"],[f,b]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[l,[h,"Huawei"],[f,b]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[l,[h,"Huawei"],[f,g]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[l,/_/g," "],[h,"Xiaomi"],[f,g]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[l,/_/g," "],[h,"Xiaomi"],[f,b]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[l,[h,"OPPO"],[f,g]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[l,[h,"Vivo"],[f,g]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[l,[h,"Realme"],[f,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[l,[h,"Motorola"],[f,g]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[l,[h,"Motorola"],[f,b]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[l,[h,"LG"],[f,b]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[l,[h,"LG"],[f,g]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[l,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[l,/_/g," "],[h,"Nokia"],[f,g]],[/droid.+;\s(pixel\sc)[\s)]/i],[l,[h,"Google"],[f,b]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[l,[h,"Google"],[f,g]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[h,"Sony"],[f,g]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[l,"Xperia Tablet"],[h,"Sony"],[f,b]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[l,[h,"OnePlus"],[f,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[l,[h,"Amazon"],[f,b]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[l,"Fire Phone"],[h,"Amazon"],[f,g]],[/\((playbook);[\w\s\),;-]+(rim)/i],[l,h,[f,b]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[l,[h,"BlackBerry"],[f,g]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[l,[h,"ASUS"],[f,b]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[l,[h,"ASUS"],[f,g]],[/(nexus\s9)/i],[l,[h,"HTC"],[f,b]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[h,[l,/_/g," "],[f,g]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[l,[h,"Acer"],[f,b]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[l,[h,"Meizu"],[f,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[h,l,[f,g]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[h,l,[f,b]],[/\s(surface\sduo)\s/i],[l,[h,"Microsoft"],[f,b]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[l,[h,"Fairphone"],[f,g]],[/\s(u304aa)\sbuild/i],[l,[h,"AT&T"],[f,g]],[/sie-(\w*)/i],[l,[h,"Siemens"],[f,g]],[/[;\/]\s?(rct\w+)\sbuild/i],[l,[h,"RCA"],[f,b]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[l,[h,"Dell"],[f,b]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[l,[h,"Verizon"],[f,b]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[l,[h,"Barnes & Noble"],[f,b]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[l,[h,"NuVision"],[f,b]],[/;\s(k88)\sbuild/i],[l,[h,"ZTE"],[f,b]],[/;\s(nx\d{3}j)\sbuild/i],[l,[h,"ZTE"],[f,g]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[l,[h,"Swiss"],[f,g]],[/[;\/]\s?(zur\d{3})\sbuild/i],[l,[h,"Swiss"],[f,b]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[l,[h,"Zeki"],[f,b]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[h,"Dragon Touch"],l,[f,b]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[l,[h,"Insignia"],[f,b]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[l,[h,"NextBook"],[f,b]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[h,"Voice"],l,[f,g]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[h,"LvTel"],l,[f,g]],[/;\s(ph-1)\s/i],[l,[h,"Essential"],[f,g]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[l,[h,"Envizen"],[f,b]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[l,[h,"MachSpeed"],[f,b]],[/[;\/]\s?tu_(1491)\sbuild/i],[l,[h,"Rotor"],[f,b]],[/(shield[\w\s]+)\sbuild/i],[l,[h,"Nvidia"],[f,b]],[/(sprint)\s(\w+)/i],[h,l,[f,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[h,"Microsoft"],[f,g]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[h,"Zebra"],[f,b]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[h,"Zebra"],[f,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[h,l,[f,m]],[/droid.+;\s(shield)\sbuild/i],[l,[h,"Nvidia"],[f,m]],[/(playstation\s[345portablevi]+)/i],[l,[h,"Sony"],[f,m]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[l,[h,"Microsoft"],[f,m]],[/smart-tv.+(samsung)/i],[h,[f,y]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[h,"Samsung"],[f,y]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[h,"LG"],[f,y]],[/(apple)\s?tv/i],[h,[l,"Apple TV"],[f,y]],[/crkey/i],[[l,"Chromecast"],[h,"Google"],[f,y]],[/droid.+aft([\w])(\sbuild\/|\))/i],[l,[h,"Amazon"],[f,y]],[/\(dtv[\);].+(aquos)/i],[l,[h,"Sharp"],[f,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,x.trim],[l,x.trim],[f,y]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[f,y]],[/((pebble))app\/[\d\.]+\s/i],[h,l,[f,w]],[/droid.+;\s(glass)\s\d/i],[l,[h,"Google"],[f,w]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[l,[h,"Zebra"],[f,w]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[h,[f,_]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[l,[f,g]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[l,[f,b]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[f,x.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[l,[h,"Generic"]],[/(phone)/i],[[f,g]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[d,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[d,[p,k.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[d,"Windows"],[p,k.str,S.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[d,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[d,p],[/(sunos)\s?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[d,p]]},D=function(e,t){if("object"==typeof e&&(t=e,e=o),!(this instanceof D))return new D(e,t).getResult();var n=e||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?x.extend(M,t):M;return this.getBrowser=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.browser),e.major=x.major(e.version),e},this.getCPU=function(){var e={architecture:o};return k.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:o,model:o,type:o};return k.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>255?x.trim(e,255):e,this},this.setUA(n),this};D.VERSION="0.7.28",D.BROWSER={NAME:d,MAJOR:"major",VERSION:p},D.CPU={ARCHITECTURE:v},D.DEVICE={MODEL:l,VENDOR:h,TYPE:f,CONSOLE:m,MOBILE:g,SMARTTV:y,TABLET:b,WEARABLE:w,EMBEDDED:_},D.ENGINE={NAME:d,VERSION:p},D.OS={NAME:d,VERSION:p},typeof t!==s?(e.exports&&(t=e.exports=D),t.UAParser=D):(r=function(){return D}.call(t,n,t,e))===o||(e.exports=r);var O=void 0!==i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var T=new D;O.ua=T.getResult(),O.ua.get=function(){return T.getUA()},O.ua.set=function(e){T.setUA(e);var t=T.getResult();for(var n in t)O.ua[n]=t[n]}}}("object"==typeof window?window:this)},3336:e=>{"use strict";e.exports=$},4202:e=>{"use strict";e.exports=angular},5262:e=>{"use strict";e.exports=window.entcore["ode-ts-client"]}},__webpack_module_cache__={},inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce(((t,n)=>(__webpack_require__.f[n](e,t),t)),[])),__webpack_require__.u=e=>({91:"widgets/cantine-widget/cantine-widget.widget",142:"widgets/universalis-widget/universalis-widget.widget",165:"widgets/qwant-widget/qwant-widget.widget",306:"widgets/school-widget/school-widget.widget",364:"widgets/bookmark-widget/bookmark-widget.widget",368:"widgets/dicodelazone-widget/dicodelazone-widget.widget",376:"widgets/last-infos-widget/last-infos-widget.widget",390:"widgets/rss-widget/rss-widget.widget",438:"widgets/carnet-de-bord/carnet-de-bord.widget",447:"widgets/edumalin-widget/edumalin-widget.widget",484:"widgets/cursus-widget/cursus-widget.widget",536:"widgets/maxicours-widget/maxicours-widget.widget",539:"widgets/briefme-widget/briefme-widget.widget",556:"widgets/calendar-widget/calendar-widget.widget",649:"widgets/my-apps/my-apps.widget",815:"widgets/agenda-widget/agenda-widget.widget",820:"widgets/mediacentre-widget/mediacentre-widget.widget",932:"widgets/record-me/record-me.widget"}[e]+".js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="ode-ngjs-front:",__webpack_require__.l=(e,t,n,r)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var u=a[s];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==dataWebpackPrefix+n){i=u;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",dataWebpackPrefix+n),i.src=e),inProgress[e]=[t];var c=(t,n)=>{i.onerror=i.onload=null,clearTimeout(l);var r=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach((e=>e(n))),t)return t(n)},l=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={610:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,(n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,a,s]=n,u=0;if(o.some((t=>0!==e[t]))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)s(__webpack_require__)}for(t&&t(n);u<o.length;u++)i=o[u],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[o[u]]=0},n=self.webpackChunkode_ngjs_front=self.webpackChunkode_ngjs_front||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var __webpack_exports__=__webpack_require__(9294)})();
|
|
36
|
+
*/!function(i,o){"use strict";var a="function",s="undefined",u="object",c="string",l="model",d="name",f="type",h="vendor",p="version",v="architecture",m="console",g="mobile",b="tablet",y="smarttv",w="wearable",_="embedded",x={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return typeof e===c&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(e,t){return e=e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),typeof t===s?e:e.substring(0,255)}},k={rgx:function(e,t){for(var n,r,i,s,c,l,d=0;d<t.length&&!c;){var f=t[d],h=t[d+1];for(n=r=0;n<f.length&&!c;)if(c=f[n++].exec(e))for(i=0;i<h.length;i++)l=c[++r],typeof(s=h[i])===u&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):o:this[s[0]]=l?s[1].call(this,l,s[2]):o:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):o):this[s]=l||o;d+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===u&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(x.has(t[n][r],e))return"?"===n?o:n}else if(x.has(t[n],e))return"?"===n?o:n;return e}},S={browser:{oldSafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}},oldEdge:{version:{.1:"12.",21:"13.",31:"14.",39:"15.",41:"16.",42:"17.",44:"18."}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},M={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6})\b.+version\/([\w\.-]+)/i,/(opera)(?:.+version\/|[\/\s]+)([\w\.]+)/i],[d,p],[/opios[\/\s]+([\w\.]+)/i],[p,[d,"Opera Mini"]],[/\sopr\/([\w\.]+)/i],[p,[d,"Opera"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(ba?idubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i,/(rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/(?:[\s\/]uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[p,[d,"UCBrowser"]],[/(?:windowswechat)?\sqbcore\/([\w\.]+)\b.*(?:windowswechat)?/i],[p,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[:\s]([\w\.]{1,9})\b.+like\sgecko/i],[p,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure Browser"],p],[/focus\/([\w\.]+)/i],[p,[d,"Firefox Focus"]],[/opt\/([\w\.]+)/i],[p,[d,"Opera Touch"]],[/coc_coc_browser\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,"Opera Coast"]],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[p,[d,"Firefox"]],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[d,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 Browser"],p],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],p],[/\s(electron)\/([\w\.]+)\ssafari/i,/(tesla)(?:\sqtcarbrowser|\/(20[12]\d\.[\w\.-]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/\s]?([\w\.]+)/i],[d,p],[/(MetaSr)[\/\s]?([\w\.]+)/i,/(LBBROWSER)/i],[d],[/;fbav\/([\w\.]+);/i],[p,[d,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[d,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/\s]([\w\.-]+)/i],[d,p],[/\bgsa\/([\w\.]+)\s.*safari\//i],[p,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[p,[d,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[d,"Chrome WebView"],p],[/droid.+\sversion\/([\w\.]+)\b.+(?:mobile\ssafari|safari)/i],[p,[d,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[p,d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[d,[p,k.str,S.browser.oldSafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape)\/([\w\.-]+)/i],[[d,"Netscape"],p],[/ile\svr;\srv:([\w\.]+)\).+firefox/i],[p,[d,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[d,p]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,x.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|armv?8e?l?)\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows\s(ce|mobile);\sppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[v,/ower/,"",x.lowerize]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?:64|(?=v(?:[1-7]|[5-7]1)l?|;|eabi))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,x.lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus\s10)/i],[l,[h,"Samsung"],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy\snexus)/i,/\ssamsung[\s-]([\w-]+)/i,/sec-(sgh\w+)/i],[l,[h,"Samsung"],[f,g]],[/\((ip(?:hone|od)[\s\w]*);/i],[l,[h,"Apple"],[f,g]],[/\((ipad);[\w\s\),;-]+apple/i,/applecoremedia\/[\w\.]+\s\((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[h,"Apple"],[f,b]],[/\b((?:agr|ags[23]|bah2?|sht?)-a?[lw]\d{2})/i],[l,[h,"Huawei"],[f,b]],[/d\/huawei([\w\s-]+)[;\)]/i,/\b(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?|ele-l\d\d)/i,/\b(\w{2,4}-[atu][ln][01259][019])[;\)\s]/i],[l,[h,"Huawei"],[f,g]],[/\b(poco[\s\w]+)(?:\sbuild|\))/i,/\b;\s(\w+)\sbuild\/hm\1/i,/\b(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/\b(redmi[\s\-_]?(?:note|k)?[\w\s_]+)(?:\sbuild|\))/i,/\b(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[l,/_/g," "],[h,"Xiaomi"],[f,g]],[/\b(mi[\s\-_]?(?:pad)(?:[\w\s_]+))(?:\sbuild|\))/i],[[l,/_/g," "],[h,"Xiaomi"],[f,b]],[/;\s(\w+)\sbuild.+\soppo/i,/\s(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007)\b/i],[l,[h,"OPPO"],[f,g]],[/\svivo\s(\w+)(?:\sbuild|\))/i,/\s(v[12]\d{3}\w?[at])(?:\sbuild|;)/i],[l,[h,"Vivo"],[f,g]],[/\s(rmx[12]\d{3})(?:\sbuild|;)/i],[l,[h,"Realme"],[f,g]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)\b[\w\s]+build\//i,/\smot(?:orola)?[\s-](\w*)/i,/((?:moto[\s\w\(\)]+|xt\d{3,4}|nexus\s6)(?=\sbuild|\)))/i],[l,[h,"Motorola"],[f,g]],[/\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[l,[h,"Motorola"],[f,b]],[/((?=lg)?[vl]k\-?\d{3})\sbuild|\s3\.[\s\w;-]{10}lg?-([06cv9]{3,4})/i],[l,[h,"LG"],[f,b]],[/(lm-?f100[nv]?|nexus\s[45])/i,/lg[e;\s\/-]+((?!browser|netcast)\w+)/i,/\blg(\-?[\d\w]+)\sbuild/i],[l,[h,"LG"],[f,g]],[/(ideatab[\w\-\s]+)/i,/lenovo\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+)|yt[\d\w-]{6}|tb[\d\w-]{6})/i],[l,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia\s\d+)/i,/nokia[\s_-]?([\w\.-]*)/i],[[l,/_/g," "],[h,"Nokia"],[f,g]],[/droid.+;\s(pixel\sc)[\s)]/i],[l,[h,"Google"],[f,b]],[/droid.+;\s(pixel[\s\daxl]{0,6})(?:\sbuild|\))/i],[l,[h,"Google"],[f,g]],[/droid.+\s([c-g]\d{4}|so[-l]\w+|xq-a\w[4-7][12])(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[h,"Sony"],[f,g]],[/sony\stablet\s[ps]\sbuild\//i,/(?:sony)?sgp\w+(?:\sbuild\/|\))/i],[[l,"Xperia Tablet"],[h,"Sony"],[f,b]],[/\s(kb2005|in20[12]5|be20[12][59])\b/i,/\ba000(1)\sbuild/i,/\boneplus\s(a\d{4})[\s)]/i],[l,[h,"OnePlus"],[f,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)(\sbuild\/|\))/i,/(kf[a-z]+)(\sbuild\/|\)).+silk\//i],[l,[h,"Amazon"],[f,b]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[l,"Fire Phone"],[h,"Amazon"],[f,g]],[/\((playbook);[\w\s\),;-]+(rim)/i],[l,h,[f,b]],[/((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10;\s(\w+)/i],[l,[h,"BlackBerry"],[f,g]],[/(?:\b|asus_)(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus\s7|padfone|p00[cj])/i],[l,[h,"ASUS"],[f,b]],[/\s(z[es]6[027][01][km][ls]|zenfone\s\d\w?)\b/i],[l,[h,"ASUS"],[f,g]],[/(nexus\s9)/i],[l,[h,"HTC"],[f,b]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[h,[l,/_/g," "],[f,g]],[/droid[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[l,[h,"Acer"],[f,b]],[/droid.+;\s(m[1-5]\snote)\sbuild/i,/\bmz-([\w-]{2,})/i],[l,[h,"Meizu"],[f,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i,/(microsoft);\s(lumia[\s\w]+)/i,/(lenovo)[_\s-]?([\w-]+)/i,/linux;.+(jolla);/i,/droid.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[h,l,[f,g]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i,/[;\/]\s?(le[\s\-]+pan)[\s\-]+(\w{1,9})\sbuild/i,/[;\/]\s?(trinity)[\-\s]*(t\d{3})\sbuild/i,/\b(gigaset)[\s\-]+(q\w{1,9})\sbuild/i,/\b(vodafone)\s([\w\s]+)(?:\)|\sbuild)/i],[h,l,[f,b]],[/\s(surface\sduo)\s/i],[l,[h,"Microsoft"],[f,b]],[/droid\s[\d\.]+;\s(fp\du?)\sbuild/i],[l,[h,"Fairphone"],[f,g]],[/\s(u304aa)\sbuild/i],[l,[h,"AT&T"],[f,g]],[/sie-(\w*)/i],[l,[h,"Siemens"],[f,g]],[/[;\/]\s?(rct\w+)\sbuild/i],[l,[h,"RCA"],[f,b]],[/[;\/\s](venue[\d\s]{2,7})\sbuild/i],[l,[h,"Dell"],[f,b]],[/[;\/]\s?(q(?:mv|ta)\w+)\sbuild/i],[l,[h,"Verizon"],[f,b]],[/[;\/]\s(?:barnes[&\s]+noble\s|bn[rt])([\w\s\+]*)\sbuild/i],[l,[h,"Barnes & Noble"],[f,b]],[/[;\/]\s(tm\d{3}\w+)\sbuild/i],[l,[h,"NuVision"],[f,b]],[/;\s(k88)\sbuild/i],[l,[h,"ZTE"],[f,b]],[/;\s(nx\d{3}j)\sbuild/i],[l,[h,"ZTE"],[f,g]],[/[;\/]\s?(gen\d{3})\sbuild.*49h/i],[l,[h,"Swiss"],[f,g]],[/[;\/]\s?(zur\d{3})\sbuild/i],[l,[h,"Swiss"],[f,b]],[/[;\/]\s?((zeki)?tb.*\b)\sbuild/i],[l,[h,"Zeki"],[f,b]],[/[;\/]\s([yr]\d{2})\sbuild/i,/[;\/]\s(dragon[\-\s]+touch\s|dt)(\w{5})\sbuild/i],[[h,"Dragon Touch"],l,[f,b]],[/[;\/]\s?(ns-?\w{0,9})\sbuild/i],[l,[h,"Insignia"],[f,b]],[/[;\/]\s?((nxa|Next)-?\w{0,9})\sbuild/i],[l,[h,"NextBook"],[f,b]],[/[;\/]\s?(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05]))\sbuild/i],[[h,"Voice"],l,[f,g]],[/[;\/]\s?(lvtel\-)?(v1[12])\sbuild/i],[[h,"LvTel"],l,[f,g]],[/;\s(ph-1)\s/i],[l,[h,"Essential"],[f,g]],[/[;\/]\s?(v(100md|700na|7011|917g).*\b)\sbuild/i],[l,[h,"Envizen"],[f,b]],[/[;\/]\s?(trio[\s\w\-\.]+)\sbuild/i],[l,[h,"MachSpeed"],[f,b]],[/[;\/]\s?tu_(1491)\sbuild/i],[l,[h,"Rotor"],[f,b]],[/(shield[\w\s]+)\sbuild/i],[l,[h,"Nvidia"],[f,b]],[/(sprint)\s(\w+)/i],[h,l,[f,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[h,"Microsoft"],[f,g]],[/droid\s[\d\.]+;\s(cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[h,"Zebra"],[f,b]],[/droid\s[\d\.]+;\s(ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[h,"Zebra"],[f,g]],[/\s(ouya)\s/i,/(nintendo)\s([wids3utch]+)/i],[h,l,[f,m]],[/droid.+;\s(shield)\sbuild/i],[l,[h,"Nvidia"],[f,m]],[/(playstation\s[345portablevi]+)/i],[l,[h,"Sony"],[f,m]],[/[\s\(;](xbox(?:\sone)?(?!;\sxbox))[\s\);]/i],[l,[h,"Microsoft"],[f,m]],[/smart-tv.+(samsung)/i],[h,[f,y]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[h,"Samsung"],[f,y]],[/(?:linux;\snetcast.+smarttv|lg\snetcast\.tv-201\d)/i],[[h,"LG"],[f,y]],[/(apple)\s?tv/i],[h,[l,"Apple TV"],[f,y]],[/crkey/i],[[l,"Chromecast"],[h,"Google"],[f,y]],[/droid.+aft([\w])(\sbuild\/|\))/i],[l,[h,"Amazon"],[f,y]],[/\(dtv[\);].+(aquos)/i],[l,[h,"Sharp"],[f,y]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[h,x.trim],[l,x.trim],[f,y]],[/[\s\/\(](android\s|smart[-\s]?|opera\s)tv[;\)\s]/i],[[f,y]],[/((pebble))app\/[\d\.]+\s/i],[h,l,[f,w]],[/droid.+;\s(glass)\s\d/i],[l,[h,"Google"],[f,w]],[/droid\s[\d\.]+;\s(wt63?0{2,3})\)/i],[l,[h,"Zebra"],[f,w]],[/(tesla)(?:\sqtcarbrowser|\/20[12]\d\.[\w\.-]+)/i],[h,[f,_]],[/droid .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[l,[f,g]],[/droid .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[l,[f,b]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[f,x.lowerize]],[/(android[\w\.\s\-]{0,9});.+build/i],[l,[h,"Generic"]],[/(phone)/i],[[f,g]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[d,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[d,p],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)(?!.+xbox)/i],[d,[p,k.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[d,"Windows"],[p,k.str,S.os.windows.version]],[/ip[honead]{2,4}\b(?:.*os\s([\w]+)\slike\smac|;\sopera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)(?!.+haiku)/i],[[d,"Mac OS"],[p,/_/g,"."]],[/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/\((series40);/i],[d,p],[/\(bb(10);/i],[p,[d,"BlackBerry"]],[/(?:symbian\s?os|symbos|s60(?=;)|series60)[\/\s-]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[d,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[d,"Chromecast"]],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[d,"Chromium OS"],p],[/(nintendo|playstation)\s([wids345portablevuch]+)/i,/(xbox);\s+xbox\s([^\);]+)/i,/(mint)[\/\s\(\)]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?=\slinux)|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus|raspbian)(?:\sgnu\/linux)?(?:\slinux)?[\/\s-]?(?!chrom|package)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i,/\s([frentopc-]{0,4}bsd|dragonfly)\s?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku)\s(\w+)/i],[d,p],[/(sunos)\s?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[d,p]]},D=function(e,t){if("object"==typeof e&&(t=e,e=o),!(this instanceof D))return new D(e,t).getResult();var n=e||(void 0!==i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:""),r=t?x.extend(M,t):M;return this.getBrowser=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.browser),e.major=x.major(e.version),e},this.getCPU=function(){var e={architecture:o};return k.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:o,model:o,type:o};return k.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:o,version:o};return k.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===c&&e.length>255?x.trim(e,255):e,this},this.setUA(n),this};D.VERSION="0.7.28",D.BROWSER={NAME:d,MAJOR:"major",VERSION:p},D.CPU={ARCHITECTURE:v},D.DEVICE={MODEL:l,VENDOR:h,TYPE:f,CONSOLE:m,MOBILE:g,SMARTTV:y,TABLET:b,WEARABLE:w,EMBEDDED:_},D.ENGINE={NAME:d,VERSION:p},D.OS={NAME:d,VERSION:p},typeof t!==s?(e.exports&&(t=e.exports=D),t.UAParser=D):(r=function(){return D}.call(t,n,t,e))===o||(e.exports=r);var O=void 0!==i&&(i.jQuery||i.Zepto);if(O&&!O.ua){var T=new D;O.ua=T.getResult(),O.ua.get=function(){return T.getUA()},O.ua.set=function(e){T.setUA(e);var t=T.getResult();for(var n in t)O.ua[n]=t[n]}}}("object"==typeof window?window:this)},3336:e=>{"use strict";e.exports=$},4202:e=>{"use strict";e.exports=angular},5262:e=>{"use strict";e.exports=window.entcore["ode-ts-client"]}},__webpack_module_cache__={},inProgress,dataWebpackPrefix;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.f={},__webpack_require__.e=e=>Promise.all(Object.keys(__webpack_require__.f).reduce((t,n)=>(__webpack_require__.f[n](e,t),t),[])),__webpack_require__.u=e=>(({91:"widgets/cantine-widget/cantine-widget.widget",142:"widgets/universalis-widget/universalis-widget.widget",165:"widgets/qwant-widget/qwant-widget.widget",306:"widgets/school-widget/school-widget.widget",364:"widgets/bookmark-widget/bookmark-widget.widget",368:"widgets/dicodelazone-widget/dicodelazone-widget.widget",376:"widgets/last-infos-widget/last-infos-widget.widget",390:"widgets/rss-widget/rss-widget.widget",438:"widgets/carnet-de-bord/carnet-de-bord.widget",447:"widgets/edumalin-widget/edumalin-widget.widget",484:"widgets/cursus-widget/cursus-widget.widget",536:"widgets/maxicours-widget/maxicours-widget.widget",539:"widgets/briefme-widget/briefme-widget.widget",556:"widgets/calendar-widget/calendar-widget.widget",649:"widgets/my-apps/my-apps.widget",815:"widgets/agenda-widget/agenda-widget.widget",820:"widgets/mediacentre-widget/mediacentre-widget.widget",932:"widgets/record-me/record-me.widget"}[e]||e)+".js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),inProgress={},dataWebpackPrefix="ode-ngjs-front:",__webpack_require__.l=(e,t,n,r)=>{if(inProgress[e])inProgress[e].push(t);else{var i,o;if(void 0!==n)for(var a=document.getElementsByTagName("script"),s=0;s<a.length;s++){var u=a[s];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")==dataWebpackPrefix+n){i=u;break}}i||(o=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,__webpack_require__.nc&&i.setAttribute("nonce",__webpack_require__.nc),i.setAttribute("data-webpack",dataWebpackPrefix+n),i.src=e),inProgress[e]=[t];var c=(t,n)=>{i.onerror=i.onload=null,clearTimeout(l);var r=inProgress[e];if(delete inProgress[e],i.parentNode&&i.parentNode.removeChild(i),r&&r.forEach(e=>e(n)),t)return t(n)},l=setTimeout(c.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=c.bind(null,i.onerror),i.onload=c.bind(null,i.onload),o&&document.head.appendChild(i)}},__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})(),(()=>{var e={610:0};__webpack_require__.f.j=(t,n)=>{var r=__webpack_require__.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((n,i)=>r=e[t]=[n,i]);n.push(r[2]=i);var o=__webpack_require__.p+__webpack_require__.u(t),a=new Error;__webpack_require__.l(o,n=>{if(__webpack_require__.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",a.name="ChunkLoadError",a.type=i,a.request=o,r[1](a)}},"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[o,a,s]=n,u=0;if(o.some(t=>0!==e[t])){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);if(s)s(__webpack_require__)}for(t&&t(n);u<o.length;u++)i=o[u],__webpack_require__.o(e,i)&&e[i]&&e[i][0](),e[o[u]]=0},n=self.webpackChunkode_ngjs_front=self.webpackChunkode_ngjs_front||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var __webpack_exports__=__webpack_require__(9294)})();
|
|
37
37
|
//# sourceMappingURL=ode-ngjs-front.js.map
|