1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9874],{64756:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.Controls=void 0;var o=n(r(67294)),s=r(88339);t.Controls=function(e){var t,r,n,i,a,c,u=e.status!==s.CAMERA_STATUS.OPEN&&e.status!==s.CAMERA_STATUS.RECORDING&&e.status!==s.CAMERA_STATUS.PREVIEW,l=e.status!==s.CAMERA_STATUS.CLOSED&&(e.status===s.CAMERA_STATUS.OPEN||s.CAMERA_STATUS.RECORDING),d=e.status===s.CAMERA_STATUS.OPEN,p=e.status===s.CAMERA_STATUS.RECORDING,h=e.status===s.CAMERA_STATUS.PREVIEW,f=e.status===s.CAMERA_STATUS.PREVIEW;return o.default.createElement(o.default.Fragment,null,o.default.createElement("style",null,"\n ."+e.cssNamespace+"__controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: normal;\n -ms-flex-flow: row nowrap;\n flex-flow: row nowrap;\n }\n "),o.default.createElement("div",{className:e.cssNamespace+"__controls"},u&&o.default.createElement("button",{className:e.cssNamespace+"__controls-button",onClick:e.openCamera},(null===(t=e.labels)||void 0===t?void 0:t.OPEN)||s.BUTTON_LABELS.OPEN),l&&o.default.createElement("button",{className:e.cssNamespace+"__controls-button",onClick:e.closeCamera},(null===(r=e.labels)||void 0===r?void 0:r.CLOSE)||s.BUTTON_LABELS.CLOSE),d&&o.default.createElement("button",{className:e.cssNamespace+"__controls-button",onClick:e.start},(null===(n=e.labels)||void 0===n?void 0:n.START)||s.BUTTON_LABELS.START),p&&o.default.createElement("button",{className:e.cssNamespace+"__controls-button",onClick:e.stop},(null===(i=e.labels)||void 0===i?void 0:i.STOP)||s.BUTTON_LABELS.STOP),h&&o.default.createElement("button",{className:e.cssNamespace+"__controls-button",onClick:e.retake},(null===(a=e.labels)||void 0===a?void 0:a.RETAKE)||s.BUTTON_LABELS.RETAKE),f&&o.default.createElement("button",{className:e.cssNamespace+"__controls-button",onClick:e.download},(null===(c=e.labels)||void 0===c?void 0:c.DOWNLOAD)||s.BUTTON_LABELS.DOWNLOAD)))}},32436:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.Video=void 0;var o=n(r(67294));t.Video=o.default.forwardRef((function(e,t){var r=e.autoPlay,n=e.cssNamespace,s=e.muted,i=e.loop,a=e.style;return o.default.createElement("video",{style:a,className:n+"__video",autoPlay:r,muted:s,ref:t,loop:i})}))},79463:function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=this&&this.__assign||function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,s){function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.RecordWebcam=void 0;var u=c(r(67294)),l=r(32436),d=r(64756),p=r(76539),h=r(9977),f=r(88339),v=function(e){function t(t){var r,n,o,i,a,c,l,d,p,h,v,R,m=e.call(this,t)||this;return m.state={status:f.CAMERA_STATUS.CLOSED},m.recorderOptions=s(s({},f.RECORDER_OPTIONS),{mimeType:"video/"+((null===(r=m.props.options)||void 0===r?void 0:r.fileType)||"mp4")+";codecs="+((null===(o=null===(n=m.props.options)||void 0===n?void 0:n.codec)||void 0===o?void 0:o.video)||"webm"===(null===(i=m.props.options)||void 0===i?void 0:i.fileType)?"vp8":"avc")+","+((null===(c=null===(a=m.props.options)||void 0===a?void 0:a.codec)||void 0===c?void 0:c.audio)||"webm"===(null===(l=m.props.options)||void 0===l?void 0:l.fileType)?"opus":"aac"),width:(null===(d=m.props.options)||void 0===d?void 0:d.width)||f.RECORDER_OPTIONS.width,height:(null===(p=m.props.options)||void 0===p?void 0:p.height)||f.RECORDER_OPTIONS.height,aspectRatio:(null===(h=m.props.options)||void 0===h?void 0:h.aspectRatio)||f.RECORDER_OPTIONS.aspectRatio,isNewSize:Boolean((null===(v=m.props.options)||void 0===v?void 0:v.width)||(null===(R=m.props.options)||void 0===R?void 0:R.height))}),m.webcamRef=u.default.createRef(),m.previewRef=u.default.createRef(),m.closeCamera=m.closeCamera.bind(m),m.download=m.download.bind(m),m.getRecording=m.getRecording.bind(m),m.handleOpenCamera=m.handleOpenCamera.bind(m),m.handleError=m.handleError.bind(m),m.handleCloseCamera=m.handleCloseCamera.bind(m),m.handleRetakeRecording=m.handleRetakeRecording.bind(m),m.handleStartRecording=m.handleStartRecording.bind(m),m.handleStopRecording=m.handleStopRecording.bind(m),m.openCamera=m.openCamera.bind(m),m}return o(t,e),t.prototype.componentDidUpdate=function(e,t){this.state.status!==t.status&&this.props.getStatus&&this.props.getStatus(this.state.status)},t.prototype.openCamera=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,p.mediaRecorder(this.recorderOptions)];case 1:return e=t.sent(),this.recorder=e,this.webcamRef.current&&(this.webcamRef.current.srcObject=e.stream),[4,new Promise((function(e){return setTimeout(e,1700)}))];case 2:return t.sent(),[2]}}))}))},t.prototype.closeCamera=function(){this.recorder.stream.id&&this.recorder.stream.stop()},t.prototype.handleCloseCamera=function(){this.previewRef.current&&(this.previewRef.current.removeAttribute("src"),this.previewRef.current.load()),this.setState({status:f.CAMERA_STATUS.CLOSED}),this.closeCamera()},t.prototype.handleError=function(e){this.setState({status:f.CAMERA_STATUS.ERROR}),console.error({error:e})},t.prototype.handleOpenCamera=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),this.setState({status:f.CAMERA_STATUS.INIT}),[4,this.openCamera()];case 1:return t.sent(),this.setState({status:f.CAMERA_STATUS.OPEN}),[3,3];case 2:return e=t.sent(),this.handleError(e),[3,3];case 3:return[2]}}
1))}))},t.prototype.handleStartRecording=function(){var e;return i(this,void 0,void 0,(function(){var t,r;return a(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),[4,this.recorder.startRecording()];case 1:return n.sent(),this.setState({status:f.CAMERA_STATUS.RECORDING}),(null===(e=this.props.options)||void 0===e?void 0:e.recordingLength)?(t=1e3*this.props.options.recordingLength,[4,new Promise((function(e){return setTimeout(e,t)}))]):[3,4];case 2:return n.sent(),[4,this.handleStopRecording()];case 3:n.sent(),this.closeCamera(),n.label=4;case 4:return[3,6];case 5:return r=n.sent(),this.handleError(r),[3,6];case 6:return[2]}}))}))},t.prototype.handleStopRecording=function(){return i(this,void 0,void 0,(function(){var e,t,r;return a(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,this.recorder.stopRecording()];case 1:return n.sent(),[4,this.recorder.getBlob()];case 2:return e=n.sent(),t=window.URL.createObjectURL(e),this.previewRef.current&&(this.previewRef.current.src=t),this.closeCamera(),this.setState({status:f.CAMERA_STATUS.PREVIEW}),[3,4];case 3:return r=n.sent(),this.handleError(r),[3,4];case 4:return[2]}}
1))}))},t.prototype.handleRetakeRecording=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.handleOpenCamera()];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),this.handleError(e),[3,3];case 3:return[2]}}))}))},t.prototype.download=function(){var e,t;return i(this,void 0,void 0,(function(){var r,n,o;return a(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.recorder.getBlob()];case 1:return r=s.sent(),n=((null===(e=this.props.options)||void 0===e?void 0:e.filename)||(new Date).getTime())+"."+((null===(t=this.props.options)||void 0===t?void 0:t.fileType)||"mp4"),h.saveFile(n,r),[3,3];case 2:return o=s.sent(),this.handleError(o),[3,3];case 3:return[2]}}))}))},t.prototype.getRecording=function(){var e;return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,null===(e=this.recorder)||void 0===e?void 0:e.getBlob()];case 1:return[2,r.sent()];case 2:return t=r.sent(),this.handleError(t),[2];case 3:return[2]}}
1))}))},t.prototype.render=function(){var e,t;return u.default.createElement(u.default.Fragment,null,u.default.createElement("style",null,"\n ."+this.props.cssNamespace+"__wrapper {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-flow: column nowrap;\n flex-flow: column nowrap;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n }\n ."+this.props.cssNamespace+"__status {\n margin: 1rem 0;\n }\n "),u.default.createElement("div",{className:this.props.cssNamespace+"__wrapper"},null===(t=null===(e=this.props)||void 0===e?void 0:e.render)||void 0===t?void 0:t.call(e,{openCamera:this.handleOpenCamera,closeCamera:this.handleCloseCamera,start:this.handleStartRecording,stop:this.handleStopRecording,retake:this.handleRetakeRecording,download:this.download,getRecording:this.getRecording,status:this.state.status}),!this.props.render&&u.default.createElement("div",{className:this.props.cssNamespace+"__status"},"Status: "+this.state.status),!this.props.render&&u.default.createElement(d.Controls,{closeCamera:this.handleCloseCamera,cssNamespace:this.props.cssNamespace,download:this.download,getRecording:this.getRecording,labels:this.props.controlLabels,openCamera:this.handleOpenCamera,retake:this.handleRetakeRecording,start:this.handleStartRecording,status:this.state.status,stop:this.handleStopRecording}),u.default.createElement(l.Video,{cssNamespace:this.props.cssNamespace,style:{display:this.state.status===f.CAMERA_STATUS.CLOSED||this.state.status!==f.CAMERA_STATUS.OPEN&&this.state.status!==f.CAMERA_STATUS.RECORDING?"none":"block"},autoPlay:!0,muted:!0,loop:!0,ref:this.webcamRef}),u.default.createElement(l.Video,{cssNamespace:this.props.cssNamespace,style:{display:this.state.status!==f.CAMERA_STATUS.CLOSED&&this.state.status===f.CAMERA_STATUS.PREVIEW?"block":"none"},autoPlay:!0,muted:!0,loop:!0,ref:this.previewRef})))},t.defaultProps={cssNamespace:f.NAMESPACES.CSS},t}(u.default.PureComponent);t.RecordWebcam=v},88339:function(e,t){t.__esModule=!0,t.NAMESPACES=t.BUTTON_LABELS=t.CAMERA_STATUS=t.RECORDER_OPTIONS=t.OPTIONS=void 0,t.OPTIONS={filename:String((new Date).getTime()),recordingLength:3,fileType:"mp4",width:1920,height:1080,aspectRatio:1.777777778},t.RECORDER_OPTIONS={type:"video",mimeType:"video/mp4",disableLogs:!0,width:1280,height:720,aspectRatio:1.77,isNewSize:!1},t.CAMERA_STATUS={INIT:"INIT",CLOSED:"CLOSED",OPEN:"OPEN",RECORDING:"RECORDING",PREVIEW:"PREVIEW",ERROR:"ERROR"},t.BUTTON_LABELS={OPEN:"Open camera",CLOSE:"Close camera",START:"Start recording",STOP:"Stop recording",RETAKE:"Retake recording",DOWNLOAD:"Download recording"},t.NAMESPACES={CSS:"react-record-webcam"}},4943:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,s){function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}}
1,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.useRecordWebcam=void 0;var a=i(r(67294)),c=r(76539),u=r(9977),l=r(88339);t.useRecordWebcam=function(e){var t=this,r=a.default.useRef(null),i=a.default.useRef(null),d=a.default.useState(l.CAMERA_STATUS.CLOSED),p=d[0],h=d[1],f=a.default.useState(null),v=f[0],R=f[1],m=a.default.useState(l.RECORDER_OPTIONS),E=m[0],S=m[1];a.default.useEffect((function(){var t,r;e&&S(n(n({},l.RECORDER_OPTIONS),{mimeType:"video/"+(e.fileType||"mp4")+";codecs="+((null===(t=null==e?void 0:e.codec)||void 0===t?void 0:t.video)||"webm"===e.fileType?"vp8":"avc")+","+((null===(r=null==e?void 0:e.codec)||void 0===r?void 0:r.audio)||"webm"===e.fileType?"opus":"aac"),width:e.width||l.RECORDER_OPTIONS.width,height:e.height||l.RECORDER_OPTIONS.height,aspectRatio:(null==e?void 0:e.aspectRatio)||l.RECORDER_OPTIONS.aspectRatio,isNewSize:Boolean((null==e?void 0:e.width)||(null==e?void 0:e.height))}))}),[]);var b=function(){(null==v?void 0:v.stream.id)&&v.stream.stop()},w=function(){return o(t,void 0,void 0,(function(){var e;return s(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),h(l.CAMERA_STATUS.INIT),[4,o(t,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,c.mediaRecorder(E)];case 1:return e=t.sent(),R(e),(null==r?void 0:r.current)&&(r.current.srcObject=e.stream),[4,new Promise((function(e){return setTimeout(e,1700)}))];case 2:return t.sent(),[2]}}))}))];case 1:return n.sent(),h(l.CAMERA_STATUS.OPEN),[3,3];case 2:return e=n.sent(),h(l.CAMERA_STATUS.ERROR),console.error({error:e}),[3,3];case 3:return[2]}}
1))}))},_=function(){return o(t,void 0,void 0,(function(){var e,t,r;return s(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),(null==v?void 0:v.stopRecording)?[4,v.stopRecording()]:[3,3];case 1:return n.sent(),[4,v.getBlob()];case 2:return e=n.sent(),t=window.URL.createObjectURL(e),i.current&&(i.current.src=t),b(),h(l.CAMERA_STATUS.PREVIEW),[2];case 3:throw new Error("Stop recording error!");case 4:return r=n.sent(),h(l.CAMERA_STATUS.ERROR),console.error({error:r}),[3,5];case 5:return[2]}}))}))};return{close:function(){(null==i?void 0:i.current)&&(i.current.removeAttribute("src"),i.current.load()),h(l.CAMERA_STATUS.CLOSED),b()},download:function(){return o(t,void 0,void 0,(function(){var t,r,n;return s(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),(null==v?void 0:v.getBlob)?[4,v.getBlob()]:[3,2];case 1:return t=o.sent(),r=((null==e?void 0:e.filename)||(new Date).getTime())+"."+((null==e?void 0:e.fileType)||"mp4"),u.saveFile(r,t),[2];case 2:throw new Error("Error downloading file!");case 3:return n=o.sent(),h(l.CAMERA_STATUS.ERROR),console.error({error:n}),[3,4];case 4:return[2]}}
1))}))},open:w,previewRef:i,retake:function(){return o(t,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,w()];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),h(l.CAMERA_STATUS.ERROR),console.error({error:e}),[3,3];case 3:return[2]}}))}))},getRecording:function(){return o(t,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,null==v?void 0:v.getBlob()];case 1:return[2,t.sent()];case 2:return e=t.sent(),h(l.CAMERA_STATUS.ERROR),console.error({error:e}),[2];case 3:return[2]}}))}))},start:function(){return o(t,void 0,void 0,(function(){var t,r;return s(this,(function(n){switch(n.label){case 0:return n.trys.push([0,6,,7]),(null==v?void 0:v.startRecording)?[4,v.startRecording()]:[3,5];case 1:return n.sent(),h(l.CAMERA_STATUS.RECORDING),(null==e?void 0:e.recordingLength)?(t=1e3*e.recordingLength,[4,new Promise((function(e){return setTimeout(e,t)}))]):[3,4];case 2:return n.sent(),[4,_()];case 3:n.sent(),b(),n.label=4;case 4:return[2];case 5:throw new Error("Recorder not initialized!");case 6:return r=n.sent(),h(l.CAMERA_STATUS.ERROR),console.error({error:r}),[3,7];case 7:return[2]}}
1))}))},status:p,stop:_,stopStream:b,webcamRef:r}}},79874:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};t.__esModule=!0,o(r(79463),t),o(r(4943),t),o(r(81152),t),o(r(88339),t)},76539:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,s){function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var r,n,o,s,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};t.__esModule=!0,t.mediaRecorder=t.captureUserMedia=void 0;var i=r(75212);function a(e){return o(this,void 0,void 0,(function(){var t,r;return s(this,(function(o){switch(o.label){case 0:return[4,navigator.mediaDevices.getUserMedia({video:!0,audio:!0})];case 1:return t=o.sent(),r=new i.RecordRTCPromisesHandler(t,n({},e)),[2,{stream:t,recordRtc:r}]}}))}))}t.captureUserMedia=a,t.mediaRecorder=function(e){return o(this,void 0,void 0,(function(){var t,r,o,i;return s(this,(function(s){switch(s.label){case 0:if(!navigator.mediaDevices.getUserMedia)throw new Error("Browser does not support getUserMedia");return[4,a(e)];case 1:return t=s.sent(),r=t.stream,o=t.recordRtc,(i=navigator.mediaDevices.getSupportedConstraints()).width&&i.height||console.error("Media device does not support setting width/height!"),e.isNewSize&&i.width&&i.height&&r.getTracks().forEach((function(t){"video"===t.kind&&t.applyConstraints({width:e.width,height:e.height,aspectRatio:e.aspectRatio})})),[2,n(n({},o),{stream:r})]}}))}))}},81152:function(e,t){t.__esModule=!0},9977:function(e,t){t.__esModule=!0,t.saveFile=void 0,t.saveFile=function(e,t){if(void 0===window.navigator.msSaveOrOpenBlob){var r=window.document.createElement("a");r.style.display="none",r.href=window.URL.createObjectURL(t),r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}else window.navigator.msSaveBlob(t,e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.