Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Updates app.bundle.js
George Politisbdca07be1733
diff --git a/libs/app.bundle.js b/libs/app.bundle.jsindex ec1b22f135..cc6684846d 100644--- a/libs/app.bundle.js+++ b/libs/app.bundle.js@@ -1,19 +1,4 @@(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.APP = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* jshint -W117 *//* application specific logic */@@ -74,21 +59,6 @@ module.exports = APP;},{"./modules/API/API":2,"./modules/DTMF/DTMF":3,"./modules/RTC/RTC":7,"./modules/UI/UI":9,"./modules/URLProcessor/URLProcessor":36,"./modules/connectionquality/connectionquality":37,"./modules/desktopsharing/desktopsharing":38,"./modules/keyboardshortcut/keyboardshortcut":39,"./modules/members/MemberList":40,"./modules/settings/Settings":41,"./modules/statistics/statistics":44,"./modules/translation/translation":45,"./modules/xmpp/xmpp":59}],2:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//*** Implements API class that communicates with external api class* and provides interface to access Jitsi Meet features by external@@ -320,22 +290,7 @@ var API = {};module.exports = API;-},{"../../service/xmpp/XMPPEvents":112}],3:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/xmpp/XMPPEvents":104}],3:[function(require,module,exports){/* global APP *//**@@ -385,21 +340,6 @@ module.exports = DTMF;},{}],4:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global Strophe, focusedVideoSrc*/// cache datachannels to avoid garbage collection@@ -617,22 +557,7 @@ function onPinnedEndpointChanged(userResource)module.exports = DataChannels;-},{"../../service/RTC/RTCEvents":103}],5:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/RTC/RTCEvents":95}],5:[function(require,module,exports){var StreamEventTypes = require("../../service/RTC/StreamEventTypes.js");@@ -740,22 +665,7 @@ LocalStream.prototype.getId = function () {module.exports = LocalStream;-},{"../../service/RTC/StreamEventTypes.js":105}],6:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/RTC/StreamEventTypes.js":97}],6:[function(require,module,exports){////These lines should be uncommented when require works in app.jsvar MediaStreamType = require("../../service/RTC/MediaStreamTypes");var StreamEventType = require("../../service/RTC/StreamEventTypes");@@ -817,22 +727,7 @@ MediaStream.prototype.setVideoType = function (value) {module.exports = MediaStream;-},{"../../service/RTC/MediaStreamTypes":101,"../../service/RTC/StreamEventTypes":105}],7:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/RTC/MediaStreamTypes":93,"../../service/RTC/StreamEventTypes":97}],7:[function(require,module,exports){var EventEmitter = require("events");var RTCUtils = require("./RTCUtils.js");var LocalStream = require("./LocalStream.js");@@ -1118,22 +1013,7 @@ var RTC = {module.exports = RTC;-},{"../../service/RTC/MediaStreamTypes":101,"../../service/RTC/RTCEvents.js":103,"../../service/RTC/StreamEventTypes.js":105,"../../service/UI/UIEvents":106,"../../service/desktopsharing/DesktopSharingEventTypes":109,"../../service/xmpp/XMPPEvents":112,"./DataChannels":4,"./LocalStream.js":5,"./MediaStream.js":6,"./RTCUtils.js":8,"events":62}],8:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/RTC/MediaStreamTypes":93,"../../service/RTC/RTCEvents.js":95,"../../service/RTC/StreamEventTypes.js":97,"../../service/UI/UIEvents":98,"../../service/desktopsharing/DesktopSharingEventTypes":101,"../../service/xmpp/XMPPEvents":104,"./DataChannels":4,"./LocalStream.js":5,"./MediaStream.js":6,"./RTCUtils.js":8,"events":62}],8:[function(require,module,exports){var RTCBrowserType = require("../../service/RTC/RTCBrowserType.js");var Resolutions = require("../../service/RTC/Resolutions");@@ -1607,22 +1487,7 @@ RTCUtils.prototype.createStream = function(stream, isVideo)module.exports = RTCUtils;-},{"../../service/RTC/RTCBrowserType.js":102,"../../service/RTC/Resolutions":104}],9:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/RTC/RTCBrowserType.js":94,"../../service/RTC/Resolutions":96}],9:[function(require,module,exports){var UI = {};var VideoLayout = require("./videolayout/VideoLayout.js");@@ -2435,22 +2300,7 @@ UI.setVideoMute = setVideoMute;module.exports = UI;-},{"../../service/RTC/RTCEvents":103,"../../service/RTC/StreamEventTypes":105,"../../service/connectionquality/CQEvents":108,"../../service/desktopsharing/DesktopSharingEventTypes":109,"../../service/members/Events":110,"../../service/xmpp/XMPPEvents":112,"./../settings/Settings":41,"./audio_levels/AudioLevels.js":10,"./authentication/Authentication":12,"./avatar/Avatar":14,"./etherpad/Etherpad.js":15,"./prezi/Prezi.js":16,"./side_pannels/SidePanelToggler":18,"./side_pannels/chat/Chat.js":19,"./side_pannels/contactlist/ContactList":23,"./side_pannels/settings/SettingsMenu":24,"./toolbars/BottomToolbar":25,"./toolbars/Toolbar":26,"./toolbars/ToolbarToggler":27,"./util/MessageHandler":29,"./util/NicknameHandler":30,"./util/UIUtil":31,"./videolayout/VideoLayout.js":33,"./welcome_page/RoomnameGenerator":34,"./welcome_page/WelcomePage":35,"events":62}],10:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/RTC/RTCEvents":95,"../../service/RTC/StreamEventTypes":97,"../../service/connectionquality/CQEvents":100,"../../service/desktopsharing/DesktopSharingEventTypes":101,"../../service/members/Events":102,"../../service/xmpp/XMPPEvents":104,"./../settings/Settings":41,"./audio_levels/AudioLevels.js":10,"./authentication/Authentication":12,"./avatar/Avatar":14,"./etherpad/Etherpad.js":15,"./prezi/Prezi.js":16,"./side_pannels/SidePanelToggler":18,"./side_pannels/chat/Chat.js":19,"./side_pannels/contactlist/ContactList":23,"./side_pannels/settings/SettingsMenu":24,"./toolbars/BottomToolbar":25,"./toolbars/Toolbar":26,"./toolbars/ToolbarToggler":27,"./util/MessageHandler":29,"./util/NicknameHandler":30,"./util/UIUtil":31,"./videolayout/VideoLayout.js":33,"./welcome_page/RoomnameGenerator":34,"./welcome_page/WelcomePage":35,"events":62}],10:[function(require,module,exports){var CanvasUtil = require("./CanvasUtils");var ASDrawContext = $('#activeSpeakerAudioLevel')[0].getContext('2d');@@ -2717,21 +2567,6 @@ var AudioLevels = (function(my) {module.exports = AudioLevels;},{"./CanvasUtils":11}],11:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//*** Utility class for drawing canvas shapes.*/@@ -2844,21 +2679,6 @@ var CanvasUtil = (function(my) {module.exports = CanvasUtil;},{}],12:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global $, APP*/var LoginDialog = require('./LoginDialog');@@ -2984,21 +2804,6 @@ var Authentication = {module.exports = Authentication;},{"../../xmpp/moderator":51,"./LoginDialog":13}],13:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global $, APP, config*/var XMPP = require('../../xmpp/xmpp');@@ -3228,21 +3033,6 @@ var LoginDialog = {module.exports = LoginDialog;},{"../../xmpp/moderator":51,"../../xmpp/xmpp":59}],14:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var Settings = require("../../settings/Settings");var MediaStreamType = require("../../../service/RTC/MediaStreamTypes");@@ -3405,22 +3195,7 @@ var Avatar = {module.exports = Avatar;-},{"../../../service/RTC/MediaStreamTypes":101,"../../settings/Settings":41,"../videolayout/VideoLayout":33}],15:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../../service/RTC/MediaStreamTypes":93,"../../settings/Settings":41,"../videolayout/VideoLayout":33}],15:[function(require,module,exports){/* global $, config,setLargeVideoVisible, Util */@@ -3603,21 +3378,6 @@ var Etherpad = {module.exports = Etherpad;},{"../prezi/Prezi":16,"../util/UIUtil":31,"../videolayout/VideoLayout":33}],16:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var ToolbarToggler = require("../toolbars/ToolbarToggler");var UIUtil = require("../util/UIUtil");var VideoLayout = require("../videolayout/VideoLayout");@@ -3994,21 +3754,6 @@ $(window).resize(function () {module.exports = Prezi;},{"../toolbars/ToolbarToggler":27,"../util/MessageHandler":29,"../util/UIUtil":31,"../videolayout/VideoLayout":33,"./PreziPlayer":17}],17:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */(function() {"use strict";var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };@@ -4305,21 +4050,6 @@ module.exports = Prezi;module.exports = PreziPlayer;},{}],18:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var Chat = require("./chat/Chat");var ContactList = require("./contactlist/ContactList");var Settings = require("./../../settings/Settings");@@ -4577,21 +4307,6 @@ var PanelToggler = (function(my) {module.exports = PanelToggler;},{"../toolbars/ToolbarToggler":27,"../util/UIUtil":31,"../videolayout/VideoLayout":33,"./../../settings/Settings":41,"./chat/Chat":19,"./contactlist/ContactList":23,"./settings/SettingsMenu":24}],19:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global $, Util, nickname:true */var Replacement = require("./Replacement");var CommandsProcessor = require("./Commands");@@ -4949,22 +4664,7 @@ var Chat = (function (my) {return my;}(Chat || {}));module.exports = Chat;-},{"../../../../service/UI/UIEvents":106,"../../toolbars/ToolbarToggler":27,"../../util/NicknameHandler":30,"../../util/UIUtil":31,"../SidePanelToggler":18,"./Commands":20,"./Replacement":21,"./smileys.json":22}],20:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../../../service/UI/UIEvents":98,"../../toolbars/ToolbarToggler":27,"../../util/NicknameHandler":30,"../../util/UIUtil":31,"../SidePanelToggler":18,"./Commands":20,"./Replacement":21,"./smileys.json":22}],20:[function(require,module,exports){var UIUtil = require("../../util/UIUtil");/**@@ -5063,21 +4763,6 @@ CommandsProcessor.prototype.processCommand = function()module.exports = CommandsProcessor;},{"../../util/UIUtil":31}],21:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var Smileys = require("./smileys.json");/*** Processes links and smileys in "body"@@ -5192,21 +4877,7 @@ module.exports={}},{}],23:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+var numberOfContacts = 0;var notificationInterval;@@ -5396,21 +5067,6 @@ var ContactList = {module.exports = ContactList;},{}],24:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var Avatar = require("../../avatar/Avatar");var Settings = require("./../../../settings/Settings");var UIUtil = require("../../util/UIUtil");@@ -5520,22 +5176,7 @@ var SettingsMenu = {module.exports = SettingsMenu;-},{"../../../../service/translation/languages":111,"../../avatar/Avatar":14,"../../util/UIUtil":31,"./../../../settings/Settings":41}],25:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../../../service/translation/languages":103,"../../avatar/Avatar":14,"../../util/UIUtil":31,"./../../../settings/Settings":41}],25:[function(require,module,exports){var PanelToggler = require("../side_pannels/SidePanelToggler");var buttonHandlers = {@@ -5581,21 +5222,6 @@ var BottomToolbar = (function (my) {module.exports = BottomToolbar;},{"../side_pannels/SidePanelToggler":18}],26:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global APP,$, buttonClick, config, lockRoom,setSharedKey, Util */var messageHandler = require("../util/MessageHandler");@@ -6244,22 +5870,7 @@ var Toolbar = (function (my) {}(Toolbar || {}));module.exports = Toolbar;-},{"../../../service/authentication/AuthenticationEvents":107,"../authentication/Authentication":12,"../etherpad/Etherpad":15,"../prezi/Prezi":16,"../side_pannels/SidePanelToggler":18,"../util/MessageHandler":29,"../util/UIUtil":31,"./BottomToolbar":25}],27:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../../service/authentication/AuthenticationEvents":99,"../authentication/Authentication":12,"../etherpad/Etherpad":15,"../prezi/Prezi":16,"../side_pannels/SidePanelToggler":18,"../util/MessageHandler":29,"../util/UIUtil":31,"./BottomToolbar":25}],27:[function(require,module,exports){/* global $, interfaceConfig, Moderator, DesktopStreaming.showDesktopSharingButton */var toolbarTimeoutObject,@@ -6378,21 +5989,6 @@ var ToolbarToggler = {module.exports = ToolbarToggler;},{}],28:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var JitsiPopover = (function () {/*** Constructs new JitsiPopover and attaches it to the element@@ -6517,21 +6113,6 @@ var JitsiPopover = (function () {module.exports = JitsiPopover;},{}],29:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global $, APP, jQuery, toastr */var messageHandler = (function(my) {@@ -6740,21 +6321,6 @@ module.exports = messageHandler;},{}],30:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var UIEvents = require("../../../service/UI/UIEvents");var nickname = null;@@ -6785,22 +6351,8 @@ var NickanameHandler = {};module.exports = NickanameHandler;-},{"../../../service/UI/UIEvents":106}],31:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *+},{"../../../service/UI/UIEvents":98}],31:[function(require,module,exports){+/*** Created by hristo on 12/22/14.*/module.exports = {@@ -6882,21 +6434,6 @@ module.exports = {};},{"../side_pannels/SidePanelToggler":18}],32:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var JitsiPopover = require("../util/JitsiPopover");/**@@ -7317,21 +6854,6 @@ ConnectionIndicator.prototype.hideIndicator = function () {module.exports = ConnectionIndicator;},{"../util/JitsiPopover":28}],33:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var AudioLevels = require("../audio_levels/AudioLevels");var Avatar = require("../avatar/Avatar");var Chat = require("../side_pannels/chat/Chat");@@ -9458,22 +8980,7 @@ var VideoLayout = (function (my) {}(VideoLayout || {}));module.exports = VideoLayout;-},{"../../../service/RTC/MediaStreamTypes":101,"../../../service/UI/UIEvents":106,"../audio_levels/AudioLevels":10,"../avatar/Avatar":14,"../etherpad/Etherpad":15,"../prezi/Prezi":16,"../side_pannels/chat/Chat":19,"../side_pannels/contactlist/ContactList":23,"../util/NicknameHandler":30,"../util/UIUtil":31,"./ConnectionIndicator":32}],34:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../../service/RTC/MediaStreamTypes":93,"../../../service/UI/UIEvents":98,"../audio_levels/AudioLevels":10,"../avatar/Avatar":14,"../etherpad/Etherpad":15,"../prezi/Prezi":16,"../side_pannels/chat/Chat":19,"../side_pannels/contactlist/ContactList":23,"../util/NicknameHandler":30,"../util/UIUtil":31,"./ConnectionIndicator":32}],34:[function(require,module,exports){//var nouns = [//];var pluralNouns = [@@ -9655,21 +9162,6 @@ var RoomNameGenerator = {module.exports = RoomNameGenerator;},{}],35:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var animateTimeout, updateTimeout;var RoomNameGenerator = require("./RoomnameGenerator");@@ -9772,21 +9264,6 @@ function setupWelcomePage()module.exports = setupWelcomePage;},{"./RoomnameGenerator":34}],36:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var params = {};function getConfigParamsFromUrl() {if(!location.hash)@@ -9828,21 +9305,6 @@ var URLProcessor = {module.exports = URLProcessor;},{}],37:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */var EventEmitter = require("events");var eventEmitter = new EventEmitter();var CQEvents = require("../../service/connectionquality/CQEvents");@@ -9977,22 +9439,7 @@ var ConnectionQuality = {};module.exports = ConnectionQuality;-},{"../../service/connectionquality/CQEvents":108,"../../service/xmpp/XMPPEvents":112,"events":62}],38:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/connectionquality/CQEvents":100,"../../service/xmpp/XMPPEvents":104,"events":62}],38:[function(require,module,exports){/* global $, alert, APP, changeLocalVideo, chrome, config, getConferenceHandler,getUserMediaWithConstraints *//**@@ -10362,22 +9809,7 @@ module.exports = {};-},{"../../service/desktopsharing/DesktopSharingEventTypes":109,"events":62}],39:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/desktopsharing/DesktopSharingEventTypes":101,"events":62}],39:[function(require,module,exports){//maps keycode to character, id of popover for given function and functionvar shortcuts = {67: {@@ -10471,21 +9903,6 @@ var KeyboardShortcut = {module.exports = KeyboardShortcut;},{}],40:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global APP *//**@@ -10616,22 +10033,7 @@ var Members = {module.exports = Members;-},{"../../service/members/Events":110,"../../service/xmpp/XMPPEvents":112,"events":62}],41:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/members/Events":102,"../../service/xmpp/XMPPEvents":104,"events":62}],41:[function(require,module,exports){var email = '';var displayName = '';var userId;@@ -10699,21 +10101,6 @@ var Settings =module.exports = Settings;},{}],42:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//*** Provides statistics for the local stream.*/@@ -10845,21 +10232,6 @@ LocalStatsCollector.prototype.stop = function () {module.exports = LocalStatsCollector;},{}],43:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global ssrc2jid *//* jshint -W117 */var RTCBrowserType = require("../../service/RTC/RTCBrowserType");@@ -11601,22 +10973,8 @@ StatsCollector.prototype.processAudioLevelReport = function ()};-},{"../../service/RTC/RTCBrowserType":102}],44:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *+},{"../../service/RTC/RTCBrowserType":94}],44:[function(require,module,exports){+/*** Created by hristo on 8/4/14.*/var LocalStats = require("./LocalStatsCollector.js");@@ -11748,22 +11106,7 @@ var statistics =module.exports = statistics;-},{"../../service/RTC/StreamEventTypes.js":105,"../../service/xmpp/XMPPEvents":112,"./LocalStatsCollector.js":42,"./RTPStatsCollector.js":43,"events":62}],45:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/RTC/StreamEventTypes.js":97,"../../service/xmpp/XMPPEvents":104,"./LocalStatsCollector.js":42,"./RTPStatsCollector.js":43,"events":62}],45:[function(require,module,exports){var i18n = require("i18next-client");var languages = require("../../service/translation/languages");var Settings = require("../settings/Settings");@@ -11902,22 +11245,7 @@ module.exports = {}};-},{"../../service/translation/languages":111,"../settings/Settings":41,"i18next-client":63}],46:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/translation/languages":103,"../settings/Settings":41,"i18next-client":63}],46:[function(require,module,exports){/* jshint -W117 */var TraceablePeerConnection = require("./TraceablePeerConnection");var SDPDiffer = require("./SDPDiffer");@@ -13311,22 +12639,7 @@ JingleSession.prototype.remoteStreamAdded = function (data, times) {module.exports = JingleSession;-},{"../../service/RTC/RTCBrowserType":102,"./SDP":47,"./SDPDiffer":48,"./SDPUtil":49,"./TraceablePeerConnection":50,"async":60,"sdp-transform":98}],47:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/RTC/RTCBrowserType":94,"./SDP":47,"./SDPDiffer":48,"./SDPUtil":49,"./TraceablePeerConnection":50,"async":60,"sdp-transform":90}],47:[function(require,module,exports){/* jshint -W117 */var SDPUtil = require("./SDPUtil");@@ -13949,21 +13262,6 @@ module.exports = SDP;},{"./SDPUtil":49}],48:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */function SDPDiffer(mySDP, otherSDP) {this.mySDP = mySDP;this.otherSDP = otherSDP;@@ -14130,21 +13428,6 @@ SDPDiffer.prototype.toJingle = function(modify) {module.exports = SDPDiffer;},{}],49:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */SDPUtil = {iceparams: function (mediadesc, sessiondesc) {var data = null;@@ -14495,21 +13778,6 @@ SDPUtil = {};module.exports = SDPUtil;},{}],50:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */function TraceablePeerConnection(ice_config, constraints) {var self = this;var RTCPeerconnection = navigator.mozGetUserMedia ? mozRTCPeerConnection : webkitRTCPeerConnection;@@ -14836,22 +14104,7 @@ TraceablePeerConnection.prototype.getStats = function(callback, errback) {module.exports = TraceablePeerConnection;-},{"sdp-interop":84,"sdp-simulcast":91}],51:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"sdp-interop":84,"sdp-simulcast":87}],51:[function(require,module,exports){/* global $, $iq, APP, config, connection, UI, messageHandler,roomName, sessionTerminated, Strophe, Util */var XMPPEvents = require("../../service/xmpp/XMPPEvents");@@ -15287,22 +14540,7 @@ module.exports = Moderator;-},{"../../service/authentication/AuthenticationEvents":107,"../../service/xmpp/XMPPEvents":112,"../settings/Settings":41}],52:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/authentication/AuthenticationEvents":99,"../../service/xmpp/XMPPEvents":104,"../settings/Settings":41}],52:[function(require,module,exports){/* global $, $iq, config, connection, focusMucJid, messageHandler, Moderator,Toolbar, Util */var Moderator = require("./moderator");@@ -15459,21 +14697,6 @@ var Recording = {module.exports = Recording;},{"./moderator":51}],53:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* jshint -W117 *//* a simple MUC connection plugin* can only handle a single MUC room@@ -16157,22 +15380,7 @@ module.exports = function(XMPP, eventEmitter) {};-},{"../../service/xmpp/XMPPEvents":112,"./JingleSession":46,"./moderator":51}],54:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/xmpp/XMPPEvents":104,"./JingleSession":46,"./moderator":51}],54:[function(require,module,exports){/* jshint -W117 */var JingleSession = require("./JingleSession");@@ -16521,22 +15729,7 @@ module.exports = function(XMPP, eventEmitter)};-},{"../../service/xmpp/XMPPEvents":112,"./JingleSession":46}],55:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{"../../service/xmpp/XMPPEvents":104,"./JingleSession":46}],55:[function(require,module,exports){/* global Strophe */module.exports = function () {@@ -16558,21 +15751,6 @@ module.exports = function () {});};},{}],56:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global $, $iq, config, connection, focusMucJid, forceMuted,setAudioMuted, Strophe *//**@@ -16632,21 +15810,6 @@ module.exports = function (XMPP) {});}},{}],57:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* jshint -W117 */module.exports = function() {Strophe.addConnectionPlugin('rayo',@@ -16744,21 +15907,6 @@ module.exports = function() {};},{}],58:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//*** Strophe logger implementation. Logs from level WARN and above.*/@@ -16803,21 +15951,6 @@ module.exports = function () {};},{}],59:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- *//* global $, APP, config, Strophe*/var Moderator = require("./moderator");var EventEmitter = require("events");@@ -17430,7 +16563,7 @@ var XMPP = {module.exports = XMPP;-},{"../../service/RTC/RTCEvents":103,"../../service/RTC/StreamEventTypes":105,"../../service/UI/UIEvents":106,"../../service/xmpp/XMPPEvents":112,"../settings/Settings":41,"./SDP":47,"./moderator":51,"./recording":52,"./strophe.emuc":53,"./strophe.jingle":54,"./strophe.logger":55,"./strophe.moderate":56,"./strophe.rayo":57,"./strophe.util":58,"events":62,"pako":64,"retry":80}],60:[function(require,module,exports){+},{"../../service/RTC/RTCEvents":95,"../../service/RTC/StreamEventTypes":97,"../../service/UI/UIEvents":98,"../../service/xmpp/XMPPEvents":104,"../settings/Settings":41,"./SDP":47,"./moderator":51,"./recording":52,"./strophe.emuc":53,"./strophe.jingle":54,"./strophe.logger":55,"./strophe.moderate":56,"./strophe.rayo":57,"./strophe.util":58,"events":62,"pako":64,"retry":80}],60:[function(require,module,exports){(function (process){/*!* async@@ -18563,32 +17696,64 @@ module.exports = XMPP;var process = module.exports = {};var queue = [];var draining = false;+var currentQueue;+var queueIndex = -1;++function cleanUpNextTick() {+ draining = false;+ if (currentQueue.length) {+ queue = currentQueue.concat(queue);+ } else {+ queueIndex = -1;+ }+ if (queue.length) {+ drainQueue();+ }+}function drainQueue() {if (draining) {return;}+ var timeout = setTimeout(cleanUpNextTick);draining = true;- var currentQueue;+var len = queue.length;while(len) {currentQueue = queue;queue = [];- var i = -1;- while (++i < len) {- currentQueue[i]();+ while (++queueIndex < len) {+ currentQueue[queueIndex].run();}+ queueIndex = -1;len = queue.length;}+ currentQueue = null;draining = false;+ clearTimeout(timeout);}+process.nextTick = function (fun) {- queue.push(fun);- if (!draining) {+ var args = new Array(arguments.length - 1);+ if (arguments.length > 1) {+ for (var i = 1; i < arguments.length; i++) {+ args[i - 1] = arguments[i];+ }+ }+ queue.push(new Item(fun, args));+ if (queue.length === 1 && !draining) {setTimeout(drainQueue, 0);}};+// v8 likes predictible objects+function Item(fun, array) {+ this.fun = fun;+ this.array = array;+}+Item.prototype.run = function () {+ this.fun.apply(null, this.array);+};process.title = 'browser';process.browser = true;process.env = {};@@ -21058,6 +20223,7 @@ var pako = {};assign(pako, deflate, inflate, constants);module.exports = pako;+},{"./lib/deflate":65,"./lib/inflate":66,"./lib/utils/common":67,"./lib/zlib/constants":70}],65:[function(require,module,exports){'use strict';@@ -21078,6 +20244,7 @@ var Z_FINISH = 4;var Z_OK = 0;var Z_STREAM_END = 1;+var Z_SYNC_FLUSH = 2;var Z_DEFAULT_COMPRESSION = -1;@@ -21107,7 +20274,9 @@ var Z_DEFLATED = 8;** Compressed result, generated by default [[Deflate#onData]]* and [[Deflate#onEnd]] handlers. Filled after you push last chunk- * (call [[Deflate#push]] with `Z_FINISH` / `true` param).+ * (call [[Deflate#push]] with `Z_FINISH` / `true` param) or if you+ * push a chunk with explicit flush (call [[Deflate#push]] with+ * `Z_SYNC_FLUSH` param).**//**@@ -21231,8 +20400,9 @@ var Deflate = function(options) {** Sends input data to deflate pipe, generating [[Deflate#onData]] calls with* new compressed chunks. Returns `true` on success. The last data block must have- * mode Z_FINISH (or `true`). That flush internal pending buffers and call- * [[Deflate#onEnd]].+ * mode Z_FINISH (or `true`). That will flush internal pending buffers and call+ * [[Deflate#onEnd]]. For interim explicit flushes (without ending the stream) you+ * can use mode Z_SYNC_FLUSH, keeping the compression context.** On fail call [[Deflate#onEnd]] with error code and return false.*@@ -21285,7 +20455,7 @@ Deflate.prototype.push = function(data, mode) {this.ended = true;return false;}- if (strm.avail_out === 0 || (strm.avail_in === 0 && _mode === Z_FINISH)) {+ if (strm.avail_out === 0 || (strm.avail_in === 0 && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH))) {if (this.options.to === 'string') {this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));} else {@@ -21302,6 +20472,13 @@ Deflate.prototype.push = function(data, mode) {return status === Z_OK;}+ // callback interim results if Z_SYNC_FLUSH.+ if (_mode === Z_SYNC_FLUSH) {+ this.onEnd(Z_OK);+ strm.avail_out = 0;+ return true;+ }+return true;};@@ -21325,8 +20502,9 @@ Deflate.prototype.onData = function(chunk) {* - status (Number): deflate status. 0 (Z_OK) on success,* other if not.*- * Called once after you tell deflate that input stream complete- * or error happenned. By default - join collected chunks,+ * Called once after you tell deflate that the input stream is+ * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)+ * or if an error happened. By default - join collected chunks,* free memory and fill `results` / `err` properties.**/Deflate.prototype.onEnd = function(status) {@@ -21423,6 +20601,7 @@ exports.Deflate = Deflate;exports.deflate = deflate;exports.deflateRaw = deflateRaw;exports.gzip = gzip;+},{"./utils/common":67,"./utils/strings":68,"./zlib/deflate.js":72,"./zlib/messages":77,"./zlib/zstream":79}],66:[function(require,module,exports){'use strict';@@ -21456,7 +20635,9 @@ var toString = Object.prototype.toString;** Uncompressed result, generated by default [[Inflate#onData]]* and [[Inflate#onEnd]] handlers. Filled after you push last chunk- * (call [[Inflate#push]] with `Z_FINISH` / `true` param).+ * (call [[Inflate#push]] with `Z_FINISH` / `true` param) or if you+ * push a chunk with explicit flush (call [[Inflate#push]] with+ * `Z_SYNC_FLUSH` param).**//**@@ -21576,8 +20757,9 @@ var Inflate = function(options) {** Sends input data to inflate pipe, generating [[Inflate#onData]] calls with* new output chunks. Returns `true` on success. The last data block must have- * mode Z_FINISH (or `true`). That flush internal pending buffers and call- * [[Inflate#onEnd]].+ * mode Z_FINISH (or `true`). That will flush internal pending buffers and call+ * [[Inflate#onEnd]]. For interim explicit flushes (without ending the stream) you+ * can use mode Z_SYNC_FLUSH, keeping the decompression context.** On fail call [[Inflate#onEnd]] with error code and return false.*@@ -21633,7 +20815,7 @@ Inflate.prototype.push = function(data, mode) {}if (strm.next_out) {- if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && _mode === c.Z_FINISH)) {+ if (strm.avail_out === 0 || status === c.Z_STREAM_END || (strm.avail_in === 0 && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH))) {if (this.options.to === 'string') {@@ -21659,6 +20841,7 @@ Inflate.prototype.push = function(data, mode) {if (status === c.Z_STREAM_END) {_mode = c.Z_FINISH;}+// Finalize on the last chunk.if (_mode === c.Z_FINISH) {status = zlib_inflate.inflateEnd(this.strm);@@ -21667,6 +20850,13 @@ Inflate.prototype.push = function(data, mode) {return status === c.Z_OK;}+ // callback interim results if Z_SYNC_FLUSH.+ if (_mode === c.Z_SYNC_FLUSH) {+ this.onEnd(c.Z_OK);+ strm.avail_out = 0;+ return true;+ }+return true;};@@ -21690,8 +20880,9 @@ Inflate.prototype.onData = function(chunk) {* - status (Number): inflate status. 0 (Z_OK) on success,* other if not.*- * Called once after you tell inflate that input stream complete- * or error happenned. By default - join collected chunks,+ * Called either after you tell inflate that the input stream is+ * complete (Z_FINISH) or should be flushed (Z_SYNC_FLUSH)+ * or if an error happened. By default - join collected chunks,* free memory and fill `results` / `err` properties.**/Inflate.prototype.onEnd = function(status) {@@ -21807,7 +20998,7 @@ exports.assign = function (obj /*from1, from2, from3, ...*/) {var source = sources.shift();if (!source) { continue; }- if (typeof(source) !== 'object') {+ if (typeof source !== 'object') {throw new TypeError(source + 'must be non-object');}@@ -21838,7 +21029,7 @@ var fnTyped = {return;}// Fallback to ordinary array- for(var i=0; i<len; i++) {+ for (var i=0; i<len; i++) {dest[dest_offs + i] = src[src_offs + i];}},@@ -21867,7 +21058,7 @@ var fnTyped = {var fnUntyped = {arraySet: function (dest, src, src_offs, len, dest_offs) {- for(var i=0; i<len; i++) {+ for (var i=0; i<len; i++) {dest[dest_offs + i] = src[src_offs + i];}},@@ -21895,6 +21086,7 @@ exports.setTyped = function (on) {};exports.setTyped(TYPED_OK);+},{}],68:[function(require,module,exports){// String encode/decode helpers'use strict';@@ -21919,8 +21111,8 @@ try { String.fromCharCode.apply(null, new Uint8Array(1)); } catch(__) { STR_APPL// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,// because max possible codepoint is 0x10ffffvar _utf8len = new utils.Buf8(256);-for (var i=0; i<256; i++) {- _utf8len[i] = (i >= 252 ? 6 : i >= 248 ? 5 : i >= 240 ? 4 : i >= 224 ? 3 : i >= 192 ? 2 : 1);+for (var q=0; q<256; q++) {+ _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);}_utf8len[254]=_utf8len[254]=1; // Invalid sequence start@@ -21989,7 +21181,7 @@ function buf2binstring(buf, len) {}var result = '';- for(var i=0; i < len; i++) {+ for (var i=0; i < len; i++) {result += String.fromCharCode(buf[i]);}return result;@@ -22005,7 +21197,7 @@ exports.buf2binstring = function(buf) {// Convert binary string (typed, when possible)exports.binstring2buf = function(str) {var buf = new utils.Buf8(str.length);- for(var i=0, len=buf.length; i < len; i++) {+ for (var i=0, len=buf.length; i < len; i++) {buf[i] = str.charCodeAt(i);}return buf;@@ -22090,9 +21282,9 @@ exports.utf8border = function(buf, max) {// Small size is preferable.function adler32(adler, buf, len, pos) {- var s1 = (adler & 0xffff) |0- , s2 = ((adler >>> 16) & 0xffff) |0- , n = 0;+ var s1 = (adler & 0xffff) |0,+ s2 = ((adler >>> 16) & 0xffff) |0,+ n = 0;while (len !== 0) {// Set limit ~ twice less than 5552, to keep@@ -22115,6 +21307,7 @@ function adler32(adler, buf, len, pos) {module.exports = adler32;+},{}],70:[function(require,module,exports){module.exports = {@@ -22163,6 +21356,7 @@ module.exports = {Z_DEFLATED: 8//Z_NULL: null // Use -1 or null inline, depending on var type};+},{}],71:[function(require,module,exports){'use strict';@@ -22175,9 +21369,9 @@ module.exports = {function makeTable() {var c, table = [];- for(var n =0; n < 256; n++){+ for (var n =0; n < 256; n++) {c = n;- for(var k =0; k < 8; k++){+ for (var k =0; k < 8; k++) {c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));}table[n] = c;@@ -22191,12 +21385,12 @@ var crcTable = makeTable();function crc32(crc, buf, len, pos) {- var t = crcTable- , end = pos + len;+ var t = crcTable,+ end = pos + len;crc = crc ^ (-1);- for (var i = pos; i < end; i++ ) {+ for (var i = pos; i < end; i++) {crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];}@@ -22205,6 +21399,7 @@ function crc32(crc, buf, len, pos) {module.exports = crc32;+},{}],72:[function(require,module,exports){'use strict';@@ -23742,7 +22937,7 @@ function deflate(strm, flush) {put_byte(s, val);} while (val !== 0);- if (s.gzhead.hcrc && s.pending > beg){+ if (s.gzhead.hcrc && s.pending > beg) {strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);}if (val === 0) {@@ -23971,6 +23166,7 @@ exports.deflatePending = deflatePending;exports.deflatePrime = deflatePrime;exports.deflateTune = deflateTune;*/+},{"../utils/common":67,"./adler32":69,"./crc32":71,"./messages":77,"./trees":78}],73:[function(require,module,exports){'use strict';@@ -23991,7 +23187,7 @@ function GZheader() {// but leave for few code modifications//- // Setup limits is not necessary because in js we should not preallocate memory+ // Setup limits is not necessary because in js we should not preallocate memory// for inflate use constant limit in 65536 bytes//@@ -24012,6 +23208,7 @@ function GZheader() {}module.exports = GZheader;+},{}],74:[function(require,module,exports){'use strict';@@ -25843,6 +25040,7 @@ exports.inflateSync = inflateSync;exports.inflateSyncPoint = inflateSyncPoint;exports.inflateUndermine = inflateUndermine;*/+},{"../utils/common":67,"./adler32":69,"./crc32":71,"./inffast":74,"./inftrees":76}],76:[function(require,module,exports){'use strict';@@ -26040,18 +25238,20 @@ module.exports = function inflate_table(type, lens, lens_index, codes, table, ta// poor man optimization - use if-else instead of switch,// to avoid deopts in old v8if (type === CODES) {- base = extra = work; /* dummy value--not used */- end = 19;+ base = extra = work; /* dummy value--not used */+ end = 19;+} else if (type === LENS) {- base = lbase;- base_index -= 257;- extra = lext;- extra_index -= 257;- end = 256;+ base = lbase;+ base_index -= 257;+ extra = lext;+ extra_index -= 257;+ end = 256;+} else { /* DISTS */- base = dbase;- extra = dext;- end = -1;+ base = dbase;+ extra = dext;+ end = -1;}/* initialize opts for loop */@@ -26184,6 +25384,7 @@ module.exports = {'-5': 'buffer error', /* Z_BUF_ERROR (-5) */'-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */};+},{}],78:[function(require,module,exports){'use strict';@@ -26618,7 +25819,7 @@ function tr_static_init() {}//Assert (dist == 256, "tr_static_init: dist != 256");dist >>= 7; /* from now on, all distances are divided by 128 */- for ( ; code < D_CODES; code++) {+ for (; code < D_CODES; code++) {base_dist[code] = dist << 7;for (n = 0; n < (1<<(extra_dbits[code]-7)); n++) {_dist_code[256 + dist++] = code;@@ -27384,6 +26585,7 @@ exports._tr_stored_block = _tr_stored_block;exports._tr_flush_block = _tr_flush_block;exports._tr_tally = _tr_tally;exports._tr_align = _tr_align;+},{"../utils/common":67}],79:[function(require,module,exports){'use strict';@@ -27414,6 +26616,7 @@ function ZStream() {}module.exports = ZStream;+},{}],80:[function(require,module,exports){module.exports = require('./lib/retry');},{"./lib/retry":81}],81:[function(require,module,exports){@@ -27578,21 +26781,6 @@ RetryOperation.prototype.mainError = function() {return mainError;};},{}],83:[function(require,module,exports){-/* Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-module.exports = function arrayEquals(array) {// if the other array is a falsy value, returnif (!array)@@ -27619,39 +26807,9 @@ module.exports = function arrayEquals(array) {},{}],84:[function(require,module,exports){-/* Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-exports.Interop = require('./interop');},{"./interop":85}],85:[function(require,module,exports){-/* Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-"use strict";var transform = require('./transform');@@ -28234,21 +27392,6 @@ Interop.prototype.toUnifiedPlan = function(desc) {};},{"./array-equals":83,"./transform":86}],86:[function(require,module,exports){-/* Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-var transform = require('sdp-transform');exports.write = function(session, opts) {@@ -28347,492 +27490,7 @@ exports.parse = function(sdp) {};-},{"sdp-transform":88}],87:[function(require,module,exports){-var grammar = module.exports = {- v: [{- name: 'version',- reg: /^(\d*)$/- }],- o: [{ //o=- 20518 0 IN IP4 203.0.113.1- // NB: sessionId will be a String in most cases because it is huge- name: 'origin',- reg: /^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,- names: ['username', 'sessionId', 'sessionVersion', 'netType', 'ipVer', 'address'],- format: "%s %s %d %s IP%d %s"- }],- // default parsing of these only (though some of these feel outdated)- s: [{ name: 'name' }],- i: [{ name: 'description' }],- u: [{ name: 'uri' }],- e: [{ name: 'email' }],- p: [{ name: 'phone' }],- z: [{ name: 'timezones' }], // TODO: this one can actually be parsed properly..- r: [{ name: 'repeats' }], // TODO: this one can also be parsed properly- //k: [{}], // outdated thing ignored- t: [{ //t=0 0- name: 'timing',- reg: /^(\d*) (\d*)/,- names: ['start', 'stop'],- format: "%d %d"- }],- c: [{ //c=IN IP4 10.47.197.26- name: 'connection',- reg: /^IN IP(\d) (\S*)/,- names: ['version', 'ip'],- format: "IN IP%d %s"- }],- b: [{ //b=AS:4000- push: 'bandwidth',- reg: /^(TIAS|AS|CT|RR|RS):(\d*)/,- names: ['type', 'limit'],- format: "%s:%s"- }],- m: [{ //m=video 51744 RTP/AVP 126 97 98 34 31- // NB: special - pushes to session- // TODO: rtp/fmtp should be filtered by the payloads found here?- reg: /^(\w*) (\d*) ([\w\/]*)(?: (.*))?/,- names: ['type', 'port', 'protocol', 'payloads'],- format: "%s %d %s %s"- }],- a: [- { //a=rtpmap:110 opus/48000/2- push: 'rtp',- reg: /^rtpmap:(\d*) ([\w\-]*)\/(\d*)(?:\s*\/(\S*))?/,- names: ['payload', 'codec', 'rate', 'encoding'],- format: function (o) {- return (o.encoding) ?- "rtpmap:%d %s/%s/%s":- "rtpmap:%d %s/%s";- }- },- { //a=fmtp:108 profile-level-id=24;object=23;bitrate=64000- push: 'fmtp',- reg: /^fmtp:(\d*) (\S*)/,- names: ['payload', 'config'],- format: "fmtp:%d %s"- },- { //a=control:streamid=0- name: 'control',- reg: /^control:(.*)/,- format: "control:%s"- },- { //a=rtcp:65179 IN IP4 193.84.77.194- name: 'rtcp',- reg: /^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,- names: ['port', 'netType', 'ipVer', 'address'],- format: function (o) {- return (o.address != null) ?- "rtcp:%d %s IP%d %s":- "rtcp:%d";- }- },- { //a=rtcp-fb:98 trr-int 100- push: 'rtcpFbTrrInt',- reg: /^rtcp-fb:(\*|\d*) trr-int (\d*)/,- names: ['payload', 'value'],- format: "rtcp-fb:%d trr-int %d"- },- { //a=rtcp-fb:98 nack rpsi- push: 'rtcpFb',- reg: /^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,- names: ['payload', 'type', 'subtype'],- format: function (o) {- return (o.subtype != null) ?- "rtcp-fb:%s %s %s":- "rtcp-fb:%s %s";- }- },- { //a=extmap:2 urn:ietf:params:rtp-hdrext:toffset- //a=extmap:1/recvonly URI-gps-string- push: 'ext',- reg: /^extmap:([\w_\/]*) (\S*)(?: (\S*))?/,- names: ['value', 'uri', 'config'], // value may include "/direction" suffix- format: function (o) {- return (o.config != null) ?- "extmap:%s %s %s":- "extmap:%s %s";- }- },- {- //a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:PS1uQCVeeCFCanVmcjkpPywjNWhcYD0mXXtxaVBR|2^20|1:32- push: 'crypto',- reg: /^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,- names: ['id', 'suite', 'config', 'sessionConfig'],- format: function (o) {- return (o.sessionConfig != null) ?- "crypto:%d %s %s %s":- "crypto:%d %s %s";- }- },- { //a=setup:actpass- name: 'setup',- reg: /^setup:(\w*)/,- format: "setup:%s"- },- { //a=mid:1- name: 'mid',- reg: /^mid:([^\s]*)/,- format: "mid:%s"- },- { //a=msid:0c8b064d-d807-43b4-b434-f92a889d8587 98178685-d409-46e0-8e16-7ef0db0db64a- name: 'msid',- reg: /^msid:(.*)/,- format: "msid:%s"- },- { //a=ptime:20- name: 'ptime',- reg: /^ptime:(\d*)/,- format: "ptime:%d"- },- { //a=maxptime:60- name: 'maxptime',- reg: /^maxptime:(\d*)/,- format: "maxptime:%d"- },- { //a=sendrecv- name: 'direction',- reg: /^(sendrecv|recvonly|sendonly|inactive)/- },- { //a=ice-lite- name: 'icelite',- reg: /^(ice-lite)/- },- { //a=ice-ufrag:F7gI- name: 'iceUfrag',- reg: /^ice-ufrag:(\S*)/,- format: "ice-ufrag:%s"- },- { //a=ice-pwd:x9cml/YzichV2+XlhiMu8g- name: 'icePwd',- reg: /^ice-pwd:(\S*)/,- format: "ice-pwd:%s"- },- { //a=fingerprint:SHA-1 00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33- name: 'fingerprint',- reg: /^fingerprint:(\S*) (\S*)/,- names: ['type', 'hash'],- format: "fingerprint:%s %s"- },- {- //a=candidate:0 1 UDP 2113667327 203.0.113.1 54400 typ host- //a=candidate:1162875081 1 udp 2113937151 192.168.34.75 60017 typ host generation 0- //a=candidate:3289912957 2 udp 1845501695 193.84.77.194 60017 typ srflx raddr 192.168.34.75 rport 60017 generation 0- push:'candidates',- reg: /^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: generation (\d*))?/,- names: ['foundation', 'component', 'transport', 'priority', 'ip', 'port', 'type', 'raddr', 'rport', 'generation'],- format: function (o) {- var str = "candidate:%s %d %s %d %s %d typ %s";- // NB: candidate has two optional chunks, so %void middle one if it's missing- str += (o.raddr != null) ? " raddr %s rport %d" : "%v%v";- if (o.generation != null) {- str += " generation %d";- }- return str;- }- },- { //a=end-of-candidates (keep after the candidates line for readability)- name: 'endOfCandidates',- reg: /^(end-of-candidates)/- },- { //a=remote-candidates:1 203.0.113.1 54400 2 203.0.113.1 54401 ...- name: 'remoteCandidates',- reg: /^remote-candidates:(.*)/,- format: "remote-candidates:%s"- },- { //a=ice-options:google-ice- name: 'iceOptions',- reg: /^ice-options:(\S*)/,- format: "ice-options:%s"- },- { //a=ssrc:2566107569 cname:t9YU8M1UxTF8Y1A1- push: "ssrcs",- reg: /^ssrc:(\d*) ([\w_]*):(.*)/,- names: ['id', 'attribute', 'value'],- format: "ssrc:%d %s:%s"- },- { //a=ssrc-group:FEC 1 2- push: "ssrcGroups",- reg: /^ssrc-group:(\w*) (.*)/,- names: ['semantics', 'ssrcs'],- format: "ssrc-group:%s %s"- },- { //a=msid-semantic: WMS Jvlam5X3SX1OP6pn20zWogvaKJz5Hjf9OnlV- name: "msidSemantic",- reg: /^msid-semantic:\s?(\w*) (\S*)/,- names: ['semantic', 'token'],- format: "msid-semantic: %s %s" // space after ":" is not accidental- },- { //a=group:BUNDLE audio video- push: 'groups',- reg: /^group:(\w*) (.*)/,- names: ['type', 'mids'],- format: "group:%s %s"- },- { //a=rtcp-mux- name: 'rtcpMux',- reg: /^(rtcp-mux)/- },- { //a=rtcp-rsize- name: 'rtcpRsize',- reg: /^(rtcp-rsize)/- },- { // any a= that we don't understand is kepts verbatim on media.invalid- push: 'invalid',- names: ["value"]- }- ]-};--// set sensible defaults to avoid polluting the grammar with boring details-Object.keys(grammar).forEach(function (key) {- var objs = grammar[key];- objs.forEach(function (obj) {- if (!obj.reg) {- obj.reg = /(.*)/;- }- if (!obj.format) {- obj.format = "%s";- }- });-});--},{}],88:[function(require,module,exports){-var parser = require('./parser');-var writer = require('./writer');--exports.write = writer;-exports.parse = parser.parse;-exports.parseFmtpConfig = parser.parseFmtpConfig;-exports.parsePayloads = parser.parsePayloads;-exports.parseRemoteCandidates = parser.parseRemoteCandidates;--},{"./parser":89,"./writer":90}],89:[function(require,module,exports){-var toIntIfInt = function (v) {- return String(Number(v)) === v ? Number(v) : v;-};--var attachProperties = function (match, location, names, rawName) {- if (rawName && !names) {- location[rawName] = toIntIfInt(match[1]);- }- else {- for (var i = 0; i < names.length; i += 1) {- if (match[i+1] != null) {- location[names[i]] = toIntIfInt(match[i+1]);- }- }- }-};--var parseReg = function (obj, location, content) {- var needsBlank = obj.name && obj.names;- if (obj.push && !location[obj.push]) {- location[obj.push] = [];- }- else if (needsBlank && !location[obj.name]) {- location[obj.name] = {};- }- var keyLocation = obj.push ?- {} : // blank object that will be pushed- needsBlank ? location[obj.name] : location; // otherwise, named location or root-- attachProperties(content.match(obj.reg), keyLocation, obj.names, obj.name);-- if (obj.push) {- location[obj.push].push(keyLocation);- }-};--var grammar = require('./grammar');-var validLine = RegExp.prototype.test.bind(/^([a-z])=(.*)/);--exports.parse = function (sdp) {- var session = {}- , media = []- , location = session; // points at where properties go under (one of the above)-- // parse lines we understand- sdp.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function (l) {- var type = l[0];- var content = l.slice(2);- if (type === 'm') {- media.push({rtp: [], fmtp: []});- location = media[media.length-1]; // point at latest media line- }-- for (var j = 0; j < (grammar[type] || []).length; j += 1) {- var obj = grammar[type][j];- if (obj.reg.test(content)) {- return parseReg(obj, location, content);- }- }- });-- session.media = media; // link it up- return session;-};--var fmtpReducer = function (acc, expr) {- var s = expr.split('=');- if (s.length === 2) {- acc[s[0]] = toIntIfInt(s[1]);- }- return acc;-};--exports.parseFmtpConfig = function (str) {- return str.split(';').reduce(fmtpReducer, {});-};--exports.parsePayloads = function (str) {- return str.split(' ').map(Number);-};--exports.parseRemoteCandidates = function (str) {- var candidates = [];- var parts = str.split(' ').map(toIntIfInt);- for (var i = 0; i < parts.length; i += 3) {- candidates.push({- component: parts[i],- ip: parts[i + 1],- port: parts[i + 2]- });- }- return candidates;-};--},{"./grammar":87}],90:[function(require,module,exports){-var grammar = require('./grammar');--// customized util.format - discards excess arguments and can void middle ones-var formatRegExp = /%[sdv%]/g;-var format = function (formatStr) {- var i = 1;- var args = arguments;- var len = args.length;- return formatStr.replace(formatRegExp, function (x) {- if (i >= len) {- return x; // missing argument- }- var arg = args[i];- i += 1;- switch (x) {- case '%%':- return '%';- case '%s':- return String(arg);- case '%d':- return Number(arg);- case '%v':- return '';- }- });- // NB: we discard excess arguments - they are typically undefined from makeLine-};--var makeLine = function (type, obj, location) {- var str = obj.format instanceof Function ?- (obj.format(obj.push ? location : location[obj.name])) :- obj.format;-- var args = [type + '=' + str];- if (obj.names) {- for (var i = 0; i < obj.names.length; i += 1) {- var n = obj.names[i];- if (obj.name) {- args.push(location[obj.name][n]);- }- else { // for mLine and push attributes- args.push(location[obj.names[i]]);- }- }- }- else {- args.push(location[obj.name]);- }- return format.apply(null, args);-};--// RFC specified order-// TODO: extend this with all the rest-var defaultOuterOrder = [- 'v', 'o', 's', 'i',- 'u', 'e', 'p', 'c',- 'b', 't', 'r', 'z', 'a'-];-var defaultInnerOrder = ['i', 'c', 'b', 'a'];---module.exports = function (session, opts) {- opts = opts || {};- // ensure certain properties exist- if (session.version == null) {- session.version = 0; // "v=0" must be there (only defined version atm)- }- if (session.name == null) {- session.name = " "; // "s= " must be there if no meaningful name set- }- session.media.forEach(function (mLine) {- if (mLine.payloads == null) {- mLine.payloads = "";- }- });-- var outerOrder = opts.outerOrder || defaultOuterOrder;- var innerOrder = opts.innerOrder || defaultInnerOrder;- var sdp = [];-- // loop through outerOrder for matching properties on session- outerOrder.forEach(function (type) {- grammar[type].forEach(function (obj) {- if (obj.name in session && session[obj.name] != null) {- sdp.push(makeLine(type, obj, session));- }- else if (obj.push in session && session[obj.push] != null) {- session[obj.push].forEach(function (el) {- sdp.push(makeLine(type, obj, el));- });- }- });- });-- // then for each media line, follow the innerOrder- session.media.forEach(function (mLine) {- sdp.push(makeLine('m', grammar.m[0], mLine));-- innerOrder.forEach(function (type) {- grammar[type].forEach(function (obj) {- if (obj.name in mLine && mLine[obj.name] != null) {- sdp.push(makeLine(type, obj, mLine));- }- else if (obj.push in mLine && mLine[obj.push] != null) {- mLine[obj.push].forEach(function (el) {- sdp.push(makeLine(type, obj, el));- });- }- });- });- });-- return sdp.join('\r\n') + '\r\n';-};--},{"./grammar":87}],91:[function(require,module,exports){-/* Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-+},{"sdp-transform":90}],87:[function(require,module,exports){var transform = require('sdp-transform');var transformUtils = require('./transform-utils');var parseSsrcs = transformUtils.parseSsrcs;@@ -29234,22 +27892,7 @@ Simulcast.prototype.mungeLocalDescription = function (desc) {module.exports = Simulcast;-},{"./transform-utils":92,"sdp-transform":94}],92:[function(require,module,exports){-/* Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */-+},{"./transform-utils":88,"sdp-transform":90}],88:[function(require,module,exports){exports.writeSsrcs = function(sources, order) {var ssrcs = [];@@ -29300,15 +27943,7 @@ exports.parseSsrcs = function (mLine) {};-},{}],93:[function(require,module,exports){-arguments[4][87][0].apply(exports,arguments)-},{"dup":87}],94:[function(require,module,exports){-arguments[4][88][0].apply(exports,arguments)-},{"./parser":95,"./writer":96,"dup":88}],95:[function(require,module,exports){-arguments[4][89][0].apply(exports,arguments)-},{"./grammar":93,"dup":89}],96:[function(require,module,exports){-arguments[4][90][0].apply(exports,arguments)-},{"./grammar":93,"dup":90}],97:[function(require,module,exports){+},{}],89:[function(require,module,exports){var grammar = module.exports = {v: [{name: 'version',@@ -29533,70 +28168,259 @@ var grammar = module.exports = {name: 'rtcpMux',reg: /^(rtcp-mux)/},+ { //a=rtcp-rsize+ name: 'rtcpRsize',+ reg: /^(rtcp-rsize)/+ },{ // any a= that we don't understand is kepts verbatim on media.invalidpush: 'invalid',names: ["value"]}- ]+ ]+};++// set sensible defaults to avoid polluting the grammar with boring details+Object.keys(grammar).forEach(function (key) {+ var objs = grammar[key];+ objs.forEach(function (obj) {+ if (!obj.reg) {+ obj.reg = /(.*)/;+ }+ if (!obj.format) {+ obj.format = "%s";+ }+ });+});++},{}],90:[function(require,module,exports){+var parser = require('./parser');+var writer = require('./writer');++exports.write = writer;+exports.parse = parser.parse;+exports.parseFmtpConfig = parser.parseFmtpConfig;+exports.parsePayloads = parser.parsePayloads;+exports.parseRemoteCandidates = parser.parseRemoteCandidates;++},{"./parser":91,"./writer":92}],91:[function(require,module,exports){+var toIntIfInt = function (v) {+ return String(Number(v)) === v ? Number(v) : v;+};++var attachProperties = function (match, location, names, rawName) {+ if (rawName && !names) {+ location[rawName] = toIntIfInt(match[1]);+ }+ else {+ for (var i = 0; i < names.length; i += 1) {+ if (match[i+1] != null) {+ location[names[i]] = toIntIfInt(match[i+1]);+ }+ }+ }+};++var parseReg = function (obj, location, content) {+ var needsBlank = obj.name && obj.names;+ if (obj.push && !location[obj.push]) {+ location[obj.push] = [];+ }+ else if (needsBlank && !location[obj.name]) {+ location[obj.name] = {};+ }+ var keyLocation = obj.push ?+ {} : // blank object that will be pushed+ needsBlank ? location[obj.name] : location; // otherwise, named location or root++ attachProperties(content.match(obj.reg), keyLocation, obj.names, obj.name);++ if (obj.push) {+ location[obj.push].push(keyLocation);+ }+};++var grammar = require('./grammar');+var validLine = RegExp.prototype.test.bind(/^([a-z])=(.*)/);++exports.parse = function (sdp) {+ var session = {}+ , media = []+ , location = session; // points at where properties go under (one of the above)++ // parse lines we understand+ sdp.split(/(\r\n|\r|\n)/).filter(validLine).forEach(function (l) {+ var type = l[0];+ var content = l.slice(2);+ if (type === 'm') {+ media.push({rtp: [], fmtp: []});+ location = media[media.length-1]; // point at latest media line+ }++ for (var j = 0; j < (grammar[type] || []).length; j += 1) {+ var obj = grammar[type][j];+ if (obj.reg.test(content)) {+ return parseReg(obj, location, content);+ }+ }+ });++ session.media = media; // link it up+ return session;};-// set sensible defaults to avoid polluting the grammar with boring details-Object.keys(grammar).forEach(function (key) {- var objs = grammar[key];- objs.forEach(function (obj) {- if (!obj.reg) {- obj.reg = /(.*)/;+var fmtpReducer = function (acc, expr) {+ var s = expr.split('=');+ if (s.length === 2) {+ acc[s[0]] = toIntIfInt(s[1]);+ }+ return acc;+};++exports.parseFmtpConfig = function (str) {+ return str.split(';').reduce(fmtpReducer, {});+};++exports.parsePayloads = function (str) {+ return str.split(' ').map(Number);+};++exports.parseRemoteCandidates = function (str) {+ var candidates = [];+ var parts = str.split(' ').map(toIntIfInt);+ for (var i = 0; i < parts.length; i += 3) {+ candidates.push({+ component: parts[i],+ ip: parts[i + 1],+ port: parts[i + 2]+ });+ }+ return candidates;+};++},{"./grammar":89}],92:[function(require,module,exports){+var grammar = require('./grammar');++// customized util.format - discards excess arguments and can void middle ones+var formatRegExp = /%[sdv%]/g;+var format = function (formatStr) {+ var i = 1;+ var args = arguments;+ var len = args.length;+ return formatStr.replace(formatRegExp, function (x) {+ if (i >= len) {+ return x; // missing argument}- if (!obj.format) {- obj.format = "%s";+ var arg = args[i];+ i += 1;+ switch (x) {+ case '%%':+ return '%';+ case '%s':+ return String(arg);+ case '%d':+ return Number(arg);+ case '%v':+ return '';}});-});+ // NB: we discard excess arguments - they are typically undefined from makeLine+};-},{}],98:[function(require,module,exports){-arguments[4][88][0].apply(exports,arguments)-},{"./parser":99,"./writer":100,"dup":88}],99:[function(require,module,exports){-arguments[4][89][0].apply(exports,arguments)-},{"./grammar":97,"dup":89}],100:[function(require,module,exports){-arguments[4][90][0].apply(exports,arguments)-},{"./grammar":97,"dup":90}],101:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+var makeLine = function (type, obj, location) {+ var str = obj.format instanceof Function ?+ (obj.format(obj.push ? location : location[obj.name])) :+ obj.format;++ var args = [type + '=' + str];+ if (obj.names) {+ for (var i = 0; i < obj.names.length; i += 1) {+ var n = obj.names[i];+ if (obj.name) {+ args.push(location[obj.name][n]);+ }+ else { // for mLine and push attributes+ args.push(location[obj.names[i]]);+ }+ }+ }+ else {+ args.push(location[obj.name]);+ }+ return format.apply(null, args);+};++// RFC specified order+// TODO: extend this with all the rest+var defaultOuterOrder = [+ 'v', 'o', 's', 'i',+ 'u', 'e', 'p', 'c',+ 'b', 't', 'r', 'z', 'a'+];+var defaultInnerOrder = ['i', 'c', 'b', 'a'];+++module.exports = function (session, opts) {+ opts = opts || {};+ // ensure certain properties exist+ if (session.version == null) {+ session.version = 0; // "v=0" must be there (only defined version atm)+ }+ if (session.name == null) {+ session.name = " "; // "s= " must be there if no meaningful name set+ }+ session.media.forEach(function (mLine) {+ if (mLine.payloads == null) {+ mLine.payloads = "";+ }+ });++ var outerOrder = opts.outerOrder || defaultOuterOrder;+ var innerOrder = opts.innerOrder || defaultInnerOrder;+ var sdp = [];++ // loop through outerOrder for matching properties on session+ outerOrder.forEach(function (type) {+ grammar[type].forEach(function (obj) {+ if (obj.name in session && session[obj.name] != null) {+ sdp.push(makeLine(type, obj, session));+ }+ else if (obj.push in session && session[obj.push] != null) {+ session[obj.push].forEach(function (el) {+ sdp.push(makeLine(type, obj, el));+ });+ }+ });+ });++ // then for each media line, follow the innerOrder+ session.media.forEach(function (mLine) {+ sdp.push(makeLine('m', grammar.m[0], mLine));++ innerOrder.forEach(function (type) {+ grammar[type].forEach(function (obj) {+ if (obj.name in mLine && mLine[obj.name] != null) {+ sdp.push(makeLine(type, obj, mLine));+ }+ else if (obj.push in mLine && mLine[obj.push] != null) {+ mLine[obj.push].forEach(function (el) {+ sdp.push(makeLine(type, obj, el));+ });+ }+ });+ });+ });++ return sdp.join('\r\n') + '\r\n';+};++},{"./grammar":89}],93:[function(require,module,exports){var MediaStreamType = {VIDEO_TYPE: "Video",AUDIO_TYPE: "Audio"};module.exports = MediaStreamType;-},{}],102:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],94:[function(require,module,exports){var RTCBrowserType = {RTC_BROWSER_CHROME: "rtc_browser.chrome",@@ -29604,22 +28428,7 @@ var RTCBrowserType = {};module.exports = RTCBrowserType;-},{}],103:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],95:[function(require,module,exports){var RTCEvents = {LASTN_CHANGED: "rtc.lastn_changed",DOMINANTSPEAKER_CHANGED: "rtc.dominantspeaker_changed",@@ -29628,22 +28437,7 @@ var RTCEvents = {};module.exports = RTCEvents;-},{}],104:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],96:[function(require,module,exports){var Resolutions = {"1080": {width: 1920,@@ -29697,22 +28491,7 @@ var Resolutions = {}};module.exports = Resolutions;-},{}],105:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],97:[function(require,module,exports){var StreamEventTypes = {EVENT_TYPE_LOCAL_CREATED: "stream.local_created",@@ -29728,44 +28507,14 @@ var StreamEventTypes = {};module.exports = StreamEventTypes;-},{}],106:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],98:[function(require,module,exports){var UIEvents = {NICKNAME_CHANGED: "UI.nickname_changed",SELECTED_ENDPOINT: "UI.selected_endpoint",PINNED_ENDPOINT: "UI.pinned_endpoint"};module.exports = UIEvents;-},{}],107:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],99:[function(require,module,exports){var AuthenticationEvents = {/*** Event callback arguments:@@ -29779,22 +28528,7 @@ var AuthenticationEvents = {};module.exports = AuthenticationEvents;-},{}],108:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],100:[function(require,module,exports){var CQEvents = {LOCALSTATS_UPDATED: "cq.localstats_updated",REMOTESTATS_UPDATED: "cq.remotestats_updated",@@ -29802,22 +28536,7 @@ var CQEvents = {};module.exports = CQEvents;-},{}],109:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],101:[function(require,module,exports){var DesktopSharingEventTypes = {INIT: "ds.init",@@ -29827,44 +28546,14 @@ var DesktopSharingEventTypes = {};module.exports = DesktopSharingEventTypes;-},{}],110:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],102:[function(require,module,exports){var Events = {DTMF_SUPPORT_CHANGED: "members.dtmf_support_changed"};module.exports = Events;-},{}],111:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],103:[function(require,module,exports){module.exports = {getLanguages : function () {var languages = [];@@ -29881,22 +28570,7 @@ module.exports = {TR: "tr",FR: "fr"}-},{}],112:[function(require,module,exports){-/*- * Copyright @ 2015 Atlassian Pty Ltd- *- * Licensed under the Apache License, Version 2.0 (the "License");- * you may not use this file except in compliance with the License.- * You may obtain a copy of the License at- *- * http://www.apache.org/licenses/LICENSE-2.0- *- * Unless required by applicable law or agreed to in writing, software- * distributed under the License is distributed on an "AS IS" BASIS,- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- * See the License for the specific language governing permissions and- * limitations under the License.- */+},{}],104:[function(require,module,exports){var XMPPEvents = {CONNECTION_FAILED: "xmpp.connection.failed",CONFERENCE_CREATED: "xmpp.conferenceCreated.jingle",