UNPKG

@bbc/react-transcript-editor

Version:

A React component to make transcribing audio and video easier and faster.

8 lines 1.33 MB
module.exports=function(n){var e={};function t(A){if(e[A])return e[A].exports;var r=e[A]={i:A,l:!1,exports:{}};return n[A].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=n,t.c=e,t.d=function(n,e,A){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:A})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var A=Object.create(null);if(t.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var r in n)t.d(A,r,function(e){return n[e]}.bind(null,r));return A},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=49)}({115:function(n,e){n.exports=function(n,e){if(("string"==typeof n||n instanceof String)&&"undefined"!=typeof document){var t=document.createElement("DIV");t.innerHTML=n,n=(t.textContent||"").trim()}else"object"==typeof n&&n.textContent&&(n=(n.textContent||"").trim());return n}},116:function(n,e){e.endsWithChar=function(n,e){return e.length>1?e.indexOf(n.slice(-1))>-1:n.slice(-1)===e},e.endsWith=function(n,e){return n.slice(n.length-e.length)===e}},117:function(n,e){var t,A=["al","adj","assn","Ave","BSc","MSc","Cell","Ch","Co","cc","Corp","Dem","Dept","ed","eg","Eq","Eqs","est","est","etc","Ex","ext","Fig","fig","Figs","figs","i.e","ie","Inc","inc","Jan","Feb","Mar","Apr","Jun","Jul","Aug","Sep","Sept","Oct","Nov","Dec","jr","mi","Miss","Mrs","Mr","Ms","Mol","mt","mts","no","Nos","PhD","MD","BA","MA","MM","pl","pop","pp","Prof","Dr","pt","Ref","Refs","Rep","repr","rev","Sec","Secs","Sgt","Col","Gen","Rep","Sen","Gov","Lt","Maj","Capt","St","Sr","sr","Jr","jr","Rev","Sun","Mon","Tu","Tue","Tues","Wed","Th","Thu","Thur","Thurs","Fri","Sat","trans","Univ","Viz","Vol","vs","v"];e.setAbbreviations=function(n){t=n||A};var r=e.isCapitalized=function(n){return/^[A-Z][a-z].*/.test(n)||o(n)};e.isSentenceStarter=function(n){return r(n)||/``|"|'/.test(n.substring(0,2))},e.isCommonAbbreviation=function(n){var e=n.replace(/[-'`~!@#$%^&*()_|+=?;:'",.<>\{\}\[\]\\\/]/gi,"");return~t.indexOf(e)},e.isTimeAbbreviation=function(n,e){if(("a.m."===n||"p.m."===n)&&"day"===e.replace(/\W+/g,"").slice(-3).toLowerCase())return!0;return!1},e.isDottedAbbreviation=function(n){var e=n.replace(/[\(\)\[\]\{\}]/g,"").match(/(.\.)*/);return e&&e[0].length>0},e.isCustomAbbreviation=function(n){return n.length<=3||r(n)},e.isNameAbbreviation=function(n,e){return e.length>0&&(!!(n<5&&e[0].length<6&&r(e[0]))||e.filter((function(n){return/[A-Z]/.test(n.charAt(0))})).length>=3)};var o=e.isNumber=function(n,e){return e&&(n=n.slice(e-1,e+2)),!isNaN(n)};e.isPhoneNr=function(n){return n.match(/^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$/)},e.isURL=function(n){return n.match(/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/)},e.isConcatenated=function(n){var e=0;if(((e=n.indexOf("."))>-1||(e=n.indexOf("!"))>-1||(e=n.indexOf("?"))>-1)&&n.charAt(e+1).match(/[a-zA-Z].*/))return[n.slice(0,e),n.slice(e+1)];return!1},e.isBoundaryChar=function(n){return"."===n||"!"===n||"?"===n}},17:function(n,e,t){var A;"undefined"!=typeof self&&self,A=function(){return function(n){var e={};function t(A){if(e[A])return e[A].exports;var r=e[A]={i:A,l:!1,exports:{}};return n[A].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=n,t.c=e,t.d=function(n,e,A){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:A})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=130)}([function(n,e,t){"use strict";var A,r,o,l,s,i,c=(A="C:\\Users\\Dolan\\Documents\\docx\\src\\file\\xml-components\\index.ts",r="f524d3c619c6fe7baf64ebe54286badd7e1d73b1",o=new(0,function(){}.constructor)("return this")(),s={path:"C:\\Users\\Dolan\\Documents\\docx\\src\\file\\xml-components\\index.ts",statementMap:{0:{start:{line:3,column:4},end:{line:3,column:71}},1:{start:{line:3,column:21},end:{line:3,column:71}},2:{start:{line:3,column:53},end:{line:3,column:71}},3:{start:{line:5,column:0},end:{line:5,column:62}},4:{start:{line:6,column:0},end:{line:6,column:37}},5:{start:{line:7,column:0},end:{line:7,column:34}},6:{start:{line:8,column:0},end:{line:8,column:42}},7:{start:{line:9,column:0},end:{line:9,column:46}},8:{start:{line:10,column:0},end:{line:10,column:38}},9:{start:{line:11,column:0},end:{line:11,column:51}}},fnMap:{0:{name:"__export",decl:{start:{line:2,column:9},end:{line:2,column:17}},loc:{start:{line:2,column:21},end:{line:4,column:1}},line:2}},branchMap:{0:{loc:{start:{line:3,column:21},end:{line:3,column:71}},type:"if",locations:[{start:{line:3,column:21},end:{line:3,column:71}},{start:{line:3,column:21},end:{line:3,column:71}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:"C:/Users/Dolan/Documents/docx/src/file/xml-components/index.ts",sourceRoot:"C:/Users/Dolan/Documents/docx/",sources:["src\\file\\xml-components\\index.ts"],names:[],mappings:";;;;;AAAA,qCAAgC;AAChC,kCAA6B;AAC7B,0CAAqC;AACrC,8CAAyC;AACzC,sCAAiC;AACjC,mDAA8C",sourcesContent:['export * from "./xml-component";\r\nexport * from "./attributes";\r\nexport * from "./default-attributes";\r\nexport * from "./imported-xml-component";\r\nexport * from "./xmlable-object";\r\nexport * from "./initializable-xml-component";\r\n']},_coverageSchema:"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c"},(i=o[l="__coverage__"]||(o[l]={}))[A]&&i[A].hash===r?i[A]:(s.hash=r,i[A]=s));function a(n){for(var t in c.f[0]++,c.s[0]++,n)c.s[1]++,e.hasOwnProperty(t)?c.b[0][1]++:(c.b[0][0]++,c.s[2]++,e[t]=n[t])}c.s[3]++,Object.defineProperty(e,"__esModule",{value:!0}),c.s[4]++,a(t(131)),c.s[5]++,a(t(132)),c.s[6]++,a(t(53)),c.s[7]++,a(t(133)),c.s[8]++,a(t(149)),c.s[9]++,a(t(150))},function(n,e,t){"use strict";var A=t(6),r=t(109),o=t(24),l=t(298),s=t(17);function i(n){return n}function c(n,e){for(var t=0;t<n.length;++t)e[t]=255&n.charCodeAt(t);return e}e.newBlob=function(n,t){e.checkSupport("blob");try{return new Blob([n],{type:t})}catch(e){try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return A.append(n),A.getBlob(t)}catch(n){throw new Error("Bug : can't construct the Blob.")}}};var a={stringifyByChunk:function(n,e,t){var A=[],r=0,o=n.length;if(o<=t)return String.fromCharCode.apply(null,n);for(;r<o;)"array"===e||"nodebuffer"===e?A.push(String.fromCharCode.apply(null,n.slice(r,Math.min(r+t,o)))):A.push(String.fromCharCode.apply(null,n.subarray(r,Math.min(r+t,o)))),r+=t;return A.join("")},stringifyByChar:function(n){for(var e="",t=0;t<n.length;t++)e+=String.fromCharCode(n[t]);return e},applyCanBeUsed:{uint8array:function(){try{return A.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(n){return!1}}(),nodebuffer:function(){try{return A.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(n){return!1}}()}};function u(n){var t=65536,A=e.getTypeOf(n),r=!0;if("uint8array"===A?r=a.applyCanBeUsed.uint8array:"nodebuffer"===A&&(r=a.applyCanBeUsed.nodebuffer),r)for(;t>1;)try{return a.stringifyByChunk(n,A,t)}catch(n){t=Math.floor(t/2)}return a.stringifyByChar(n)}function C(n,e){for(var t=0;t<n.length;t++)e[t]=n[t];return e}e.applyFromCharCode=u;var m={};m.string={string:i,array:function(n){return c(n,new Array(n.length))},arraybuffer:function(n){return m.string.uint8array(n).buffer},uint8array:function(n){return c(n,new Uint8Array(n.length))},nodebuffer:function(n){return c(n,o.allocBuffer(n.length))}},m.array={string:u,array:i,arraybuffer:function(n){return new Uint8Array(n).buffer},uint8array:function(n){return new Uint8Array(n)},nodebuffer:function(n){return o.newBufferFrom(n)}},m.arraybuffer={string:function(n){return u(new Uint8Array(n))},array:function(n){return C(new Uint8Array(n),new Array(n.byteLength))},arraybuffer:i,uint8array:function(n){return new Uint8Array(n)},nodebuffer:function(n){return o.newBufferFrom(new Uint8Array(n))}},m.uint8array={string:u,array:function(n){return C(n,new Array(n.length))},arraybuffer:function(n){return n.buffer},uint8array:i,nodebuffer:function(n){return o.newBufferFrom(n)}},m.nodebuffer={string:u,array:function(n){return C(n,new Array(n.length))},arraybuffer:function(n){return m.nodebuffer.uint8array(n).buffer},uint8array:function(n){return C(n,new Uint8Array(n.length))},nodebuffer:i},e.transformTo=function(n,t){if(t||(t=""),!n)return t;e.checkSupport(n);var A=e.getTypeOf(t);return m[A][n](t)},e.getTypeOf=function(n){return"string"==typeof n?"string":"[object Array]"===Object.prototype.toString.call(n)?"array":A.nodebuffer&&o.isBuffer(n)?"nodebuffer":A.uint8array&&n instanceof Uint8Array?"uint8array":A.arraybuffer&&n instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(n){if(!A[n.toLowerCase()])throw new Error(n+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(n){var e,t,A="";for(t=0;t<(n||"").length;t++)A+="\\x"+((e=n.charCodeAt(t))<16?"0":"")+e.toString(16).toUpperCase();return A},e.delay=function(n,e,t){l((function(){n.apply(t||null,e||[])}))},e.inherits=function(n,e){var t=function(){};t.prototype=e.prototype,n.prototype=new t},e.extend=function(){var n,e,t={};for(n=0;n<arguments.length;n++)for(e in arguments[n])arguments[n].hasOwnProperty(e)&&void 0===t[e]&&(t[e]=arguments[n][e]);return t},e.prepareContent=function(n,t,o,l,i){return s.Promise.resolve(t).then((function(n){return A.blob&&(n instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(n)))&&"undefined"!=typeof FileReader?new s.Promise((function(e,t){var A=new FileReader;A.onload=function(n){e(n.target.result)},A.onerror=function(n){t(n.target.error)},A.readAsArrayBuffer(n)})):n})).then((function(t){var a,u=e.getTypeOf(t);return u?("arraybuffer"===u?t=e.transformTo("uint8array",t):"string"===u&&(i?t=r.decode(t):o&&!0!==l&&(t=c(a=t,A.uint8array?new Uint8Array(a.length):new Array(a.length)))),t):s.Promise.reject(new Error("Can't read the data of '"+n+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},function(n,e,t){"use strict";var A,r,o,l,s,i,c=(A="C:\\Users\\Dolan\\Documents\\docx\\src\\file\\paragraph\\index.ts",r="ecdaec61f4d657ab4aa4907c2d7b2af3b1f28af4",o=new(0,function(){}.constructor)("return this")(),s={path:"C:\\Users\\Dolan\\Documents\\docx\\src\\file\\paragraph\\index.ts",statementMap:{0:{start:{line:3,column:4},end:{line:3,column:71}},1:{start:{line:3,column:21},end:{line:3,column:71}},2:{start:{line:3,column:53},end:{line:3,column:71}},3:{start:{line:5,column:0},end:{line:5,column:62}},4:{start:{line:6,column:0},end:{line:6,column:34}},5:{start:{line:7,column:0},end:{line:7,column:33}},6:{start:{line:8,column:0},end:{line:8,column:34}},7:{start:{line:9,column:0},end:{line:9,column:27}},8:{start:{line:10,column:0},end:{line:10,column:29}},9:{start:{line:11,column:0},end:{line:11,column:29}}},fnMap:{0:{name:"__export",decl:{start:{line:2,column:9},end:{line:2,column:17}},loc:{start:{line:2,column:21},end:{line:4,column:1}},line:2}},branchMap:{0:{loc:{start:{line:3,column:21},end:{line:3,column:71}},type:"if",locations:[{start:{line:3,column:21},end:{line:3,column:71}},{start:{line:3,column:21},end:{line:3,column:71}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:"C:/Users/Dolan/Documents/docx/src/file/paragraph/index.ts",sourceRoot:"C:/Users/Dolan/Documents/docx/",sources:["src\\file\\paragraph\\index.ts"],names:[],mappings:";;;;;AAAA,kCAA6B;AAC7B,iCAA4B;AAC5B,kCAA6B;AAC7B,2BAAsB;AACtB,6BAAwB;AACxB,6BAAwB",sourcesContent:['export * from "./formatting";\r\nexport * from "./paragraph";\r\nexport * from "./properties";\r\nexport * from "./run";\r\nexport * from "./links";\r\nexport * from "./image";\r\n']},_coverageSchema:"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c"},(i=o[l="__coverage__"]||(o[l]={}))[A]&&i[A].hash===r?i[A]:(s.hash=r,i[A]=s));function a(n){for(var t in c.f[0]++,c.s[0]++,n)c.s[1]++,e.hasOwnProperty(t)?c.b[0][1]++:(c.b[0][0]++,c.s[2]++,e[t]=n[t])}c.s[3]++,Object.defineProperty(e,"__esModule",{value:!0}),c.s[4]++,a(t(50)),c.s[5]++,a(t(81)),c.s[6]++,a(t(22)),c.s[7]++,a(t(4)),c.s[8]++,a(t(210)),c.s[9]++,a(t(215))},function(n,e,t){"use strict";function A(n){this.name=n||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}A.prototype={push:function(n){this.emit("data",n)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(n){this.emit("error",n)}return!0},error:function(n){return!this.isFinished&&(this.isPaused?this.generatedError=n:(this.isFinished=!0,this.emit("error",n),this.previous&&this.previous.error(n),this.cleanUp()),!0)},on:function(n,e){return this._listeners[n].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(n,e){if(this._listeners[n])for(var t=0;t<this._listeners[n].length;t++)this._listeners[n][t].call(this,e)},pipe:function(n){return n.registerPrevious(this)},registerPrevious:function(n){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=n.streamInfo,this.mergeStreamInfo(),this.previous=n;var e=this;return n.on("data",(function(n){e.processChunk(n)})),n.on("end",(function(){e.end()})),n.on("error",(function(n){e.error(n)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var n=!1;return this.generatedError&&(this.error(this.generatedError),n=!0),this.previous&&this.previous.resume(),!n},flush:function(){},processChunk:function(n){this.push(n)},withStreamInfo:function(n,e){return this.extraStreamInfo[n]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var n in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(n)&&(this.streamInfo[n]=this.extraStreamInfo[n])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var n="Worker "+this.name;return this.previous?this.previous+" -> "+n:n}},n.exports=A},function(n,e,t){"use strict";var A,r,o,l,s,i,c=(A="C:\\Users\\Dolan\\Documents\\docx\\src\\file\\paragraph\\run\\index.ts",r="80e7478cd7ac0cd7e2c3559e83454f1a4acda802",o=new(0,function(){}.constructor)("return this")(),s={path:"C:\\Users\\Dolan\\Documents\\docx\\src\\file\\paragraph\\run\\index.ts",statementMap:{0:{start:{line:3,column:4},end:{line:3,column:71}},1:{start:{line:3,column:21},end:{line:3,column:71}},2:{start:{line:3,column:53},end:{line:3,column:71}},3:{start:{line:5,column:0},end:{line:5,column:62}},4:{start:{line:6,column:0},end:{line:6,column:27}},5:{start:{line:7,column:0},end:{line:7,column:32}},6:{start:{line:8,column:0},end:{line:8,column:35}},7:{start:{line:9,column:0},end:{line:9,column:45}}},fnMap:{0:{name:"__export",decl:{start:{line:2,column:9},end:{line:2,column:17}},loc:{start:{line:2,column:21},end:{line:4,column:1}},line:2}},branchMap:{0:{loc:{start:{line:3,column:21},end:{line:3,column:71}},type:"if",locations:[{start:{line:3,column:21},end:{line:3,column:71}},{start:{line:3,column:21},end:{line:3,column:71}}],line:3}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:"C:/Users/Dolan/Documents/docx/src/file/paragraph/run/index.ts",sourceRoot:"C:/Users/Dolan/Documents/docx/",sources:["src\\file\\paragraph\\run\\index.ts"],names:[],mappings:";;;;;AAAA,2BAAsB;AACtB,gCAA2B;AAC3B,mCAA8B;AAC9B,6CAAwC",sourcesContent:['export * from "./run";\r\nexport * from "./text-run";\r\nexport * from "./picture-run";\r\nexport * from "./sequential-identifier";\r\n']},_coverageSchema:"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c"},(i=o[l="__coverage__"]||(o[l]={}))[A]&&i[A].hash===r?i[A]:(s.hash=r,i[A]=s));function a(n){for(var t in c.f[0]++,c.s[0]++,n)c.s[1]++,e.hasOwnProperty(t)?c.b[0][1]++:(c.b[0][0]++,c.s[2]++,e[t]=n[t])}c.s[3]++,Object.defineProperty(e,"__esModule",{value:!0}),c.s[4]++,a(t(151)),c.s[5]++,a(t(156)),c.s[6]++,a(t(158)),c.s[7]++,a(t(206))},function(n,e,t){"use strict";(function(n){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */ var A=t(135),r=t(136),o=t(55);function l(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(n,e){if(l()<e)throw new RangeError("Invalid typed array length");return i.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(e)).__proto__=i.prototype:(null===n&&(n=new i(e)),n.length=e),n}function i(n,e,t){if(!(i.TYPED_ARRAY_SUPPORT||this instanceof i))return new i(n,e,t);if("number"==typeof n){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,n)}return c(this,n,e,t)}function c(n,e,t,A){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(n,e,t,A){if(e.byteLength,t<0||e.byteLength<t)throw new RangeError("'offset' is out of bounds");if(e.byteLength<t+(A||0))throw new RangeError("'length' is out of bounds");return e=void 0===t&&void 0===A?new Uint8Array(e):void 0===A?new Uint8Array(e,t):new Uint8Array(e,t,A),i.TYPED_ARRAY_SUPPORT?(n=e).__proto__=i.prototype:n=C(n,e),n}(n,e,t,A):"string"==typeof e?function(n,e,t){if("string"==typeof t&&""!==t||(t="utf8"),!i.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');var A=0|d(e,t),r=(n=s(n,A)).write(e,t);return r!==A&&(n=n.slice(0,r)),n}(n,e,t):function(n,e){if(i.isBuffer(e)){var t=0|m(e.length);return 0===(n=s(n,t)).length||e.copy(n,0,0,t),n}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(A=e.length)!=A?s(n,0):C(n,e);if("Buffer"===e.type&&o(e.data))return C(n,e.data)}var A;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(n,e)}function a(n){if("number"!=typeof n)throw new TypeError('"size" argument must be a number');if(n<0)throw new RangeError('"size" argument must not be negative')}function u(n,e){if(a(e),n=s(n,e<0?0:0|m(e)),!i.TYPED_ARRAY_SUPPORT)for(var t=0;t<e;++t)n[t]=0;return n}function C(n,e){var t=e.length<0?0:0|m(e.length);n=s(n,t);for(var A=0;A<t;A+=1)n[A]=255&e[A];return n}function m(n){if(n>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|n}function d(n,e){if(i.isBuffer(n))return n.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(n)||n instanceof ArrayBuffer))return n.byteLength;"string"!=typeof n&&(n=""+n);var t=n.length;if(0===t)return 0;for(var A=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return R(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return k(n).length;default:if(A)return R(n).length;e=(""+e).toLowerCase(),A=!0}}function p(n,e,t){var A=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(e>>>=0))return"";for(n||(n="utf8");;)switch(n){case"hex":return M(this,e,t);case"utf8":case"utf-8":return D(this,e,t);case"ascii":return _(this,e,t);case"latin1":case"binary":return v(this,e,t);case"base64":return x(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t);default:if(A)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),A=!0}}function h(n,e,t){var A=n[e];n[e]=n[t],n[t]=A}function f(n,e,t,A,r){if(0===n.length)return-1;if("string"==typeof t?(A=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=r?0:n.length-1),t<0&&(t=n.length+t),t>=n.length){if(r)return-1;t=n.length-1}else if(t<0){if(!r)return-1;t=0}if("string"==typeof e&&(e=i.from(e,A)),i.isBuffer(e))return 0===e.length?-1:I(n,e,t,A,r);if("number"==typeof e)return e&=255,i.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(n,e,t):Uint8Array.prototype.lastIndexOf.call(n,e,t):I(n,[e],t,A,r);throw new TypeError("val must be string, number or Buffer")}function I(n,e,t,A,r){var o,l=1,s=n.length,i=e.length;if(void 0!==A&&("ucs2"===(A=String(A).toLowerCase())||"ucs-2"===A||"utf16le"===A||"utf-16le"===A)){if(n.length<2||e.length<2)return-1;l=2,s/=2,i/=2,t/=2}function c(n,e){return 1===l?n[e]:n.readUInt16BE(e*l)}if(r){var a=-1;for(o=t;o<s;o++)if(c(n,o)===c(e,-1===a?0:o-a)){if(-1===a&&(a=o),o-a+1===i)return a*l}else-1!==a&&(o-=o-a),a=-1}else for(t+i>s&&(t=s-i),o=t;o>=0;o--){for(var u=!0,C=0;C<i;C++)if(c(n,o+C)!==c(e,C)){u=!1;break}if(u)return o}return-1}function b(n,e,t,A){t=Number(t)||0;var r=n.length-t;A?(A=Number(A))>r&&(A=r):A=r;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");A>o/2&&(A=o/2);for(var l=0;l<A;++l){var s=parseInt(e.substr(2*l,2),16);if(isNaN(s))return l;n[t+l]=s}return l}function g(n,e,t,A){return F(R(e,n.length-t),n,t,A)}function E(n,e,t,A){return F(function(n){for(var e=[],t=0;t<n.length;++t)e.push(255&n.charCodeAt(t));return e}(e),n,t,A)}function y(n,e,t,A){return E(n,e,t,A)}function B(n,e,t,A){return F(k(e),n,t,A)}function w(n,e,t,A){return F(function(n,e){for(var t,A,r,o=[],l=0;l<n.length&&!((e-=2)<0);++l)t=n.charCodeAt(l),A=t>>8,r=t%256,o.push(r),o.push(A);return o}(e,n.length-t),n,t,A)}function x(n,e,t){return 0===e&&t===n.length?A.fromByteArray(n):A.fromByteArray(n.slice(e,t))}function D(n,e,t){t=Math.min(n.length,t);for(var A=[],r=e;r<t;){var o,l,s,i,c=n[r],a=null,u=c>239?4:c>223?3:c>191?2:1;if(r+u<=t)switch(u){case 1:c<128&&(a=c);break;case 2:128==(192&(o=n[r+1]))&&(i=(31&c)<<6|63&o)>127&&(a=i);break;case 3:o=n[r+1],l=n[r+2],128==(192&o)&&128==(192&l)&&(i=(15&c)<<12|(63&o)<<6|63&l)>2047&&(i<55296||i>57343)&&(a=i);break;case 4:o=n[r+1],l=n[r+2],s=n[r+3],128==(192&o)&&128==(192&l)&&128==(192&s)&&(i=(15&c)<<18|(63&o)<<12|(63&l)<<6|63&s)>65535&&i<1114112&&(a=i)}null===a?(a=65533,u=1):a>65535&&(a-=65536,A.push(a>>>10&1023|55296),a=56320|1023&a),A.push(a),r+=u}return function(n){var e=n.length;if(e<=4096)return String.fromCharCode.apply(String,n);for(var t="",A=0;A<e;)t+=String.fromCharCode.apply(String,n.slice(A,A+=4096));return t}(A)}function _(n,e,t){var A="";t=Math.min(n.length,t);for(var r=e;r<t;++r)A+=String.fromCharCode(127&n[r]);return A}function v(n,e,t){var A="";t=Math.min(n.length,t);for(var r=e;r<t;++r)A+=String.fromCharCode(n[r]);return A}function M(n,e,t){var A,r=n.length;(!e||e<0)&&(e=0),(!t||t<0||t>r)&&(t=r);for(var o="",l=e;l<t;++l)o+=(A=n[l])<16?"0"+A.toString(16):A.toString(16);return o}function S(n,e,t){for(var A=n.slice(e,t),r="",o=0;o<A.length;o+=2)r+=String.fromCharCode(A[o]+256*A[o+1]);return r}function O(n,e,t){if(n%1!=0||n<0)throw new RangeError("offset is not uint");if(n+e>t)throw new RangeError("Trying to access beyond buffer length")}function Q(n,e,t,A,r,o){if(!i.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||e<o)throw new RangeError('"value" argument is out of bounds');if(t+A>n.length)throw new RangeError("Index out of range")}function K(n,e,t,A){e<0&&(e=65535+e+1);for(var r=0,o=Math.min(n.length-t,2);r<o;++r)n[t+r]=(e&255<<8*(A?r:1-r))>>>8*(A?r:1-r)}function G(n,e,t,A){e<0&&(e=4294967295+e+1);for(var r=0,o=Math.min(n.length-t,4);r<o;++r)n[t+r]=e>>>8*(A?r:3-r)&255}function U(n,e,t,A,r,o){if(t+A>n.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function P(n,e,t,A,o){return o||U(n,0,t,4),r.write(n,e,t,A,23,4),t+4}function T(n,e,t,A,o){return o||U(n,0,t,8),r.write(n,e,t,A,52,8),t+8}e.Buffer=i,e.SlowBuffer=function(n){return+n!=n&&(n=0),i.alloc(+n)},e.INSPECT_MAX_BYTES=50,i.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:function(){try{var n=new Uint8Array(1);return n.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===n.foo()&&"function"==typeof n.subarray&&0===n.subarray(1,1).byteLength}catch(n){return!1}}(),e.kMaxLength=l(),i.poolSize=8192,i._augment=function(n){return n.__proto__=i.prototype,n},i.from=function(n,e,t){return c(null,n,e,t)},i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0})),i.alloc=function(n,e,t){return function(n,e,t,A){return a(e),e<=0?s(n,e):void 0!==t?"string"==typeof A?s(n,e).fill(t,A):s(n,e).fill(t):s(n,e)}(null,n,e,t)},i.allocUnsafe=function(n){return u(null,n)},i.allocUnsafeSlow=function(n){return u(null,n)},i.isBuffer=function(n){return!(null==n||!n._isBuffer)},i.compare=function(n,e){if(!i.isBuffer(n)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(n===e)return 0;for(var t=n.length,A=e.length,r=0,o=Math.min(t,A);r<o;++r)if(n[r]!==e[r]){t=n[r],A=e[r];break}return t<A?-1:A<t?1:0},i.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(n,e){if(!o(n))throw new TypeError('"list" argument must be an Array of Buffers');if(0===n.length)return i.alloc(0);var t;if(void 0===e)for(e=0,t=0;t<n.length;++t)e+=n[t].length;var A=i.allocUnsafe(e),r=0;for(t=0;t<n.length;++t){var l=n[t];if(!i.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(A,r),r+=l.length}return A},i.byteLength=d,i.prototype._isBuffer=!0,i.prototype.swap16=function(){var n=this.length;if(n%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<n;e+=2)h(this,e,e+1);return this},i.prototype.swap32=function(){var n=this.length;if(n%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<n;e+=4)h(this,e,e+3),h(this,e+1,e+2);return this},i.prototype.swap64=function(){var n=this.length;if(n%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<n;e+=8)h(this,e,e+7),h(this,e+1,e+6),h(this,e+2,e+5),h(this,e+3,e+4);return this},i.prototype.toString=function(){var n=0|this.length;return 0===n?"":0===arguments.length?D(this,0,n):p.apply(this,arguments)},i.prototype.equals=function(n){if(!i.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n||0===i.compare(this,n)},i.prototype.inspect=function(){var n="",t=e.INSPECT_MAX_BYTES;return this.length>0&&(n=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(n+=" ... ")),"<Buffer "+n+">"},i.prototype.compare=function(n,e,t,A,r){if(!i.isBuffer(n))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===t&&(t=n?n.length:0),void 0===A&&(A=0),void 0===r&&(r=this.length),e<0||t>n.length||A<0||r>this.length)throw new RangeError("out of range index");if(A>=r&&e>=t)return 0;if(A>=r)return-1;if(e>=t)return 1;if(this===n)return 0;for(var o=(r>>>=0)-(A>>>=0),l=(t>>>=0)-(e>>>=0),s=Math.min(o,l),c=this.slice(A,r),a=n.slice(e,t),u=0;u<s;++u)if(c[u]!==a[u]){o=c[u],l=a[u];break}return o<l?-1:l<o?1:0},i.prototype.includes=function(n,e,t){return-1!==this.indexOf(n,e,t)},i.prototype.indexOf=function(n,e,t){return f(this,n,e,t,!0)},i.prototype.lastIndexOf=function(n,e,t){return f(this,n,e,t,!1)},i.prototype.write=function(n,e,t,A){if(void 0===e)A="utf8",t=this.length,e=0;else if(void 0===t&&"string"==typeof e)A=e,t=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(t)?(t|=0,void 0===A&&(A="utf8")):(A=t,t=void 0)}var r=this.length-e;if((void 0===t||t>r)&&(t=r),n.length>0&&(t<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");for(var o=!1;;)switch(A){case"hex":return b(this,n,e,t);case"utf8":case"utf-8":return g(this,n,e,t);case"ascii":return E(this,n,e,t);case"latin1":case"binary":return y(this,n,e,t);case"base64":return B(this,n,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,n,e,t);default:if(o)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),o=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.slice=function(n,e){var t,A=this.length;if((n=~~n)<0?(n+=A)<0&&(n=0):n>A&&(n=A),(e=void 0===e?A:~~e)<0?(e+=A)<0&&(e=0):e>A&&(e=A),e<n&&(e=n),i.TYPED_ARRAY_SUPPORT)(t=this.subarray(n,e)).__proto__=i.prototype;else{var r=e-n;t=new i(r,void 0);for(var o=0;o<r;++o)t[o]=this[o+n]}return t},i.prototype.readUIntLE=function(n,e,t){n|=0,e|=0,t||O(n,e,this.length);for(var A=this[n],r=1,o=0;++o<e&&(r*=256);)A+=this[n+o]*r;return A},i.prototype.readUIntBE=function(n,e,t){n|=0,e|=0,t||O(n,e,this.length);for(var A=this[n+--e],r=1;e>0&&(r*=256);)A+=this[n+--e]*r;return A},i.prototype.readUInt8=function(n,e){return e||O(n,1,this.length),this[n]},i.prototype.readUInt16LE=function(n,e){return e||O(n,2,this.length),this[n]|this[n+1]<<8},i.prototype.readUInt16BE=function(n,e){return e||O(n,2,this.length),this[n]<<8|this[n+1]},i.prototype.readUInt32LE=function(n,e){return e||O(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+16777216*this[n+3]},i.prototype.readUInt32BE=function(n,e){return e||O(n,4,this.length),16777216*this[n]+(this[n+1]<<16|this[n+2]<<8|this[n+3])},i.prototype.readIntLE=function(n,e,t){n|=0,e|=0,t||O(n,e,this.length);for(var A=this[n],r=1,o=0;++o<e&&(r*=256);)A+=this[n+o]*r;return A>=(r*=128)&&(A-=Math.pow(2,8*e)),A},i.prototype.readIntBE=function(n,e,t){n|=0,e|=0,t||O(n,e,this.length);for(var A=e,r=1,o=this[n+--A];A>0&&(r*=256);)o+=this[n+--A]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*e)),o},i.prototype.readInt8=function(n,e){return e||O(n,1,this.length),128&this[n]?-1*(255-this[n]+1):this[n]},i.prototype.readInt16LE=function(n,e){e||O(n,2,this.length);var t=this[n]|this[n+1]<<8;return 32768&t?4294901760|t:t},i.prototype.readInt16BE=function(n,e){e||O(n,2,this.length);var t=this[n+1]|this[n]<<8;return 32768&t?4294901760|t:t},i.prototype.readInt32LE=function(n,e){return e||O(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},i.prototype.readInt32BE=function(n,e){return e||O(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},i.prototype.readFloatLE=function(n,e){return e||O(n,4,this.length),r.read(this,n,!0,23,4)},i.prototype.readFloatBE=function(n,e){return e||O(n,4,this.length),r.read(this,n,!1,23,4)},i.prototype.readDoubleLE=function(n,e){return e||O(n,8,this.length),r.read(this,n,!0,52,8)},i.prototype.readDoubleBE=function(n,e){return e||O(n,8,this.length),r.read(this,n,!1,52,8)},i.prototype.writeUIntLE=function(n,e,t,A){n=+n,e|=0,t|=0,A||Q(this,n,e,t,Math.pow(2,8*t)-1,0);var r=1,o=0;for(this[e]=255&n;++o<t&&(r*=256);)this[e+o]=n/r&255;return e+t},i.prototype.writeUIntBE=function(n,e,t,A){n=+n,e|=0,t|=0,A||Q(this,n,e,t,Math.pow(2,8*t)-1,0);var r=t-1,o=1;for(this[e+r]=255&n;--r>=0&&(o*=256);)this[e+r]=n/o&255;return e+t},i.prototype.writeUInt8=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),this[e]=255&n,e+1},i.prototype.writeUInt16LE=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8):K(this,n,e,!0),e+2},i.prototype.writeUInt16BE=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=255&n):K(this,n,e,!1),e+2},i.prototype.writeUInt32LE=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=n>>>24,this[e+2]=n>>>16,this[e+1]=n>>>8,this[e]=255&n):G(this,n,e,!0),e+4},i.prototype.writeUInt32BE=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=255&n):G(this,n,e,!1),e+4},i.prototype.writeIntLE=function(n,e,t,A){if(n=+n,e|=0,!A){var r=Math.pow(2,8*t-1);Q(this,n,e,t,r-1,-r)}var o=0,l=1,s=0;for(this[e]=255&n;++o<t&&(l*=256);)n<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(n/l>>0)-s&255;return e+t},i.prototype.writeIntBE=function(n,e,t,A){if(n=+n,e|=0,!A){var r=Math.pow(2,8*t-1);Q(this,n,e,t,r-1,-r)}var o=t-1,l=1,s=0;for(this[e+o]=255&n;--o>=0&&(l*=256);)n<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(n/l>>0)-s&255;return e+t},i.prototype.writeInt8=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(n=Math.floor(n)),n<0&&(n=255+n+1),this[e]=255&n,e+1},i.prototype.writeInt16LE=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8):K(this,n,e,!0),e+2},i.prototype.writeInt16BE=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=n>>>8,this[e+1]=255&n):K(this,n,e,!1),e+2},i.prototype.writeInt32LE=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&n,this[e+1]=n>>>8,this[e+2]=n>>>16,this[e+3]=n>>>24):G(this,n,e,!0),e+4},i.prototype.writeInt32BE=function(n,e,t){return n=+n,e|=0,t||Q(this,n,e,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),i.TYPED_ARRAY_SUPPORT?(this[e]=n>>>24,this[e+1]=n>>>16,this[e+2]=n>>>8,this[e+3]=255&n):G(this,n,e,!1),e+4},i.prototype.writeFloatLE=function(n,e,t){return P(this,n,e,!0,t)},i.prototype.writeFloatBE=function(n,e,t){return P(this,n,e,!1,t)},i.prototype.writeDoubleLE=function(n,e,t){return T(this,n,e,!0,t)},i.prototype.writeDoubleBE=function(n,e,t){return T(this,n,e,!1,t)},i.prototype.copy=function(n,e,t,A){if(t||(t=0),A||0===A||(A=this.length),e>=n.length&&(e=n.length),e||(e=0),A>0&&A<t&&(A=t),A===t)return 0;if(0===n.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("sourceStart out of bounds");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),n.length-e<A-t&&(A=n.length-e+t);var r,o=A-t;if(this===n&&t<e&&e<A)for(r=o-1;r>=0;--r)n[r+e]=this[r+t];else if(o<1e3||!i.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)n[r+e]=this[r+t];else Uint8Array.prototype.set.call(n,this.subarray(t,t+o),e);return o},i.prototype.fill=function(n,e,t,A){if("string"==typeof n){if("string"==typeof e?(A=e,e=0,t=this.length):"string"==typeof t&&(A=t,t=this.length),1===n.length){var r=n.charCodeAt(0);r<256&&(n=r)}if(void 0!==A&&"string"!=typeof A)throw new TypeError("encoding must be a string");if("string"==typeof A&&!i.isEncoding(A))throw new TypeError("Unknown encoding: "+A)}else"number"==typeof n&&(n&=255);if(e<0||this.length<e||this.length<t)throw new RangeError("Out of range index");if(t<=e)return this;var o;if(e>>>=0,t=void 0===t?this.length:t>>>0,n||(n=0),"number"==typeof n)for(o=e;o<t;++o)this[o]=n;else{var l=i.isBuffer(n)?n:R(new i(n,A).toString()),s=l.length;for(o=0;o<t-e;++o)this[o+e]=l[o%s]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function R(n,e){var t;e=e||1/0;for(var A=n.length,r=null,o=[],l=0;l<A;++l){if((t=n.charCodeAt(l))>55295&&t<57344){if(!r){if(t>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(l+1===A){(e-=3)>-1&&o.push(239,191,189);continue}r=t;continue}if(t<56320){(e-=3)>-1&&o.push(239,191,189),r=t;continue}t=65536+(r-55296<<10|t-56320)}else r&&(e-=3)>-1&&o.push(239,191,189);if(r=null,t<128){if((e-=1)<0)break;o.push(t)}else if(t<2048){if((e-=2)<0)break;o.push(t>>6|192,63&t|128)}else if(t<65536){if((e-=3)<0)break;o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function k(n){return A.toByteArray(function(n){if((n=function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}(n).replace(Y,"")).length<2)return"";for(;n.length%4!=0;)n+="=";return n}(n))}function F(n,e,t,A){for(var r=0;r<A&&!(r+t>=e.length||r>=n.length);++r)e[r+t]=n[r];return r}}).call(e,t(8))},function(n,e,t){"use strict";(function(n){if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,e.nodebuffer=void 0!==n,e.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)e.blob=!1;else{var A=new ArrayBuffer(0);try{e.blob=0===new Blob([A],{type:"application/zip"}).size}catch(n){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(A),e.blob=0===r.getBlob("application/zip").size}catch(n){e.blob=!1}}}try{e.nodestream=!!t(108).Readable}catch(n){e.nodestream=!1}}).call(e,t(5).Buffer)},function(n,e,t){"use strict";var A="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(n,e){return Object.prototype.hasOwnProperty.call(n,e)}e.assign=function(n){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var t=e.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(var A in t)r(t,A)&&(n[A]=t[A])}}return n},e.shrinkBuf=function(n,e){return n.length===e?n:n.subarray?n.subarray(0,e):(n.length=e,n)};var o={arraySet:function(n,e,t,A,r){if(e.subarray&&n.subarray)n.set(e.subarray(t,t+A),r);else for(var o=0;o<A;o++)n[r+o]=e[t+o]},flattenChunks:function(n){var e,t,A,r,o,l;for(A=0,e=0,t=n.length;e<t;e++)A+=n[e].length;for(l=new Uint8Array(A),r=0,e=0,t=n.length;e<t;e++)o=n[e],l.set(o,r),r+=o.length;return l}},l={arraySet:function(n,e,t,A,r){for(var o=0;o<A;o++)n[r+o]=e[t+o]},flattenChunks:function(n){return[].concat.apply([],n)}};e.setTyped=function(n){n?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,l))},e.setTyped(A)},function(n,e){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n,e,t){"use strict";var A=t(18),r=Object.keys||function(n){var e=[];for(var t in n)e.push(t);return e};n.exports=u;var o=t(14);o.inherits=t(10);var l=t(56),s=t(31);o.inherits(u,l);for(var i=r(s.prototype),c=0;c<i.length;c++){var a=i[c];u.prototype[a]||(u.prototype[a]=s.prototype[a])}function u(n){if(!(this instanceof u))return new u(n);l.call(this,n),s.call(this,n),n&&!1===n.readable&&(this.readable=!1),n&&!1===n.writable&&(this.writable=!1),this.allowHalfOpen=!0,n&&!1===n.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",C)}function C(){this.allowHalfOpen||this._writableState.ended||A(m,this)}function m(n){n.end()}Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(n){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=n,this._writableState.destroyed=n)}}),u.prototype._destroy=function(n,e){this.push(null),this.end(),A(e,n)}},function(n,e){"function"==typeof Object.create?n.exports=function(n,e){n.super_=e,n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:n.exports=function(n,e){n.super_=e;var t=function(){};t.prototype=e.prototype,n.prototype=new t,n.prototype.constructor=n}},function(n,e,t){"use strict";var A,r,o,l,s,i,c=(A="C:\\Users\\Dolan\\Documents\\docx\\src\\file\\document\\document-attributes.ts",r="1d489b0d08fb9fe3de7ab47987f711e5fd7f303c",o=new(0,function(){}.constructor)("return this")(),s={path:"C:\\Users\\Dolan\\Documents\\docx\\src\\file\\document\\document-attributes.ts",statementMap:{0:{start:{line:2,column:0},end:{line:2,column:62}},1:{start:{line:3,column:25},end:{line:3,column:55}},2:{start:{line:6,column:8},end:{line:6,column:28}},3:{start:{line:7,column:8},end:{line:31,column:10}},4:{start:{line:34,column:0},end:{line:34,column:48}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:4},end:{line:5,column:5}},loc:{start:{line:5,column:18},end:{line:32,column:5}},line:5}},branchMap:{},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{},inputSourceMap:{version:3,file:"C:/Users/Dolan/Documents/docx/src/file/document/document-attributes.ts",sourceRoot:"C:/Users/Dolan/Documents/docx/",sources:["src\\file\\document\\document-attributes.ts"],names:[],mappings:";;AAAA,wDAA4D;AA4B5D,wBAAgC,SAAQ,sCAAoD;IAA5F;;QACuB,YAAO,GAAG;YACzB,GAAG,EAAE,WAAW;YAChB,EAAE,EAAE,UAAU;YACd,CAAC,EAAE,SAAS;YACZ,CAAC,EAAE,SAAS;YACZ,CAAC,EAAE,SAAS;YACZ,CAAC,EAAE,SAAS;YACZ,IAAI,EAAE,YAAY;YAClB,EAAE,EAAE,UAAU;YACd,GAAG,EAAE,WAAW;YAChB,CAAC,EAAE,SAAS;YACZ,GAAG,EAAE,WAAW;YAChB,GAAG,EAAE,WAAW;YAChB,GAAG,EAAE,WAAW;YAChB,GAAG,EAAE,WAAW;YAChB,GAAG,EAAE,WAAW;YAChB,GAAG,EAAE,WAAW;YAChB,SAAS,EAAE,cAAc;YACzB,EAAE,EAAE,UAAU;YACd,EAAE,EAAE,UAAU;YACd,OAAO,EAAE,eAAe;YACxB,QAAQ,EAAE,gBAAgB;YAC1B,GAAG,EAAE,WAAW;YAChB,IAAI,EAAE,UAAU;SACnB,CAAC;IACN,CAAC;CAAA;AA1BD,gDA0BC",sourcesContent:['import { XmlAttributeComponent } from "file/xml-components";\r\n\r\nexport interface IDocumentAttributesProperties {\r\n readonly wpc?: string;\r\n readonly mc?: string;\r\n readonly o?: string;\r\n readonly r?: string;\r\n readonly m?: string;\r\n readonly v?: string;\r\n readonly wp14?: string;\r\n readonly wp?: string;\r\n readonly w10?: string;\r\n readonly w?: string;\r\n readonly w14?: string;\r\n readonly w15?: string;\r\n readonly wpg?: string;\r\n readonly wpi?: string;\r\n readonly wne?: string;\r\n readonly wps?: string;\r\n readonly Ignorable?: string;\r\n readonly cp?: string;\r\n readonly dc?: string;\r\n readonly dcterms?: string;\r\n readonly dcmitype?: string;\r\n readonly xsi?: string;\r\n readonly type?: string;\r\n}\r\n\r\nexport class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {\r\n protected readonly xmlKeys = {\r\n wpc: "xmlns:wpc",\r\n mc: "xmlns:mc",\r\n o: "xmlns:o",\r\n r: "xmlns:r",\r\n m: "xmlns:m",\r\n v: "xmlns:v",\r\n wp14: "xmlns:wp14",\r\n wp: "xmlns:wp",\r\n w10: "xmlns:w10",\r\n w: "xmlns:w",\r\n w14: "xmlns:w14",\r\n w15: "xmlns:w15",\r\n wpg: "xmlns:wpg",\r\n wpi: "xmlns:wpi",\r\n wne: "xmlns:wne",\r\n wps: "xmlns:wps",\r\n Ignorable: "mc:Ignorable",\r\n cp: "xmlns:cp",\r\n dc: "xmlns:dc",\r\n dcterms: "xmlns:dcterms",\r\n dcmitype: "xmlns:dcmitype",\r\n xsi: "xmlns:xsi",\r\n type: "xsi:type",\r\n };\r\n}\r\n']},_coverageSchema:"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c"},(i=o[l="__coverage__"]||(o[l]={}))[A]&&i[A].hash===r?i[A]:(s.hash=r,i[A]=s));c.s[0]++,Object.defineProperty(e,"__esModule",{value:!0});const a=(c.s[1]++,t(0));class u extends a.XmlAttributeComponent{constructor(){c.f[0]++,c.s[2]++,super(...arguments),c.s[3]++,this.xmlKeys={wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"}}}c.s[4]++,e.DocumentAttributes=u},function(n,e,t){"use strict";for(var A=t(1),r=t(6),o=t(24),l=t(3),s=new Array(256),i=0;i<256;i++)s[i]=i>=252?6:i>=248?5:i>=240?4:i>=224?3:i>=192?2:1;function c(){l.call(this,"utf-8 decode"),this.leftOver=null}function a(){l.call(this,"utf-8 encode")}s[254]=s[254]=1,e.utf8encode=function(n){return r.nodebuffer?o.newBufferFrom(n,"utf-8"):function(n){var e,t,A,o,l,s=n.length,i=0;for(o=0;o<s;o++)55296==(64512&(t=n.charCodeAt(o)))&&o+1<s&&56320==(64512&(A=n.charCodeAt(o+1)))&&(t=65536+(t-55296<<10)+(A-56320),o++),i+=t<128?1:t<2048?2:t<65536?3:4;for(e=r.uint8array?new Uint8Array(i):new Array(i),l=0,o=0;l<i;o++)55296==(64512&(t=n.charCodeAt(o)))&&o+1<s&&56320==(64512&(A=n.charCodeAt(o+1)))&&(t=65536+(t-55296<<10)+(A-56320),o++),t<128?e[l++]=t:t<2048?(e[l++]=192|t>>>6,e[l++]=128|63&t):t<65536?(e[l++]=224|t>>>12,e[l++]=128|t>>>6&63,e[l++]=128|63&t):(e[l++]=240|t>>>18,e[l++]=128|t>>>12&63,e[l++]=128|t>>>6&63,e[l++]=128|63&t);return e}(n)},e.utf8decode=function(n){return r.nodebuffer?A.transformTo("nodebuffer",n).toString("utf-8"):function(n){var e,t,r,o,l=n.length,i=new Array(2*l);for(t=0,e=0;e<l;)if((r=n[e++])<128)i[t++]=r;else if((o=s[r])>4)i[t++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&e<l;)r=r<<6|63&n[e++],o--;o>1?i[t++]=65533:r<65536?i[t++]=r:(r-=65536,i[t++]=55296|r>>10&1023,i[t++]=56320|1023&r)}return i.length!==t&&(i.subarray?i=i.subarray(0,t):i.length=t),A.applyFromCharCode(i)}(n=A.transformTo(r.uint8array?"uint8array":"array",n))},A.inherits(c,l),c.prototype.processChunk=function(n){var t=A.transformTo(r.uint8array?"uint8array":"array",n.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var l=function(n,e){var t;for((e=e||n.length)>n.length&&(e=n.length),t=e-1;t>=0&&128==(192&n[t]);)t--;return t<0||0===t?e:t+s[n[t]]>e?t:e}(t),i=t;l!==t.length&&(r.uint8array?(i=t.subarray(0,l),this.leftOver=t.subarray(l,t.length)):(i=t.slice(0,l),this.leftOver=t.slice(l,t.length))),this.push({data:e.utf8decode(i),meta:n.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=c,A.inherits(a,l),a.prototype.processChunk=function(n){this.push({data:e.utf8encode(n.data),meta:n.meta})},e.Utf8EncodeWorker=a},function(n,e){var t,A,r=n.exports={};function o(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(n){if(t===setTimeout)return setTimeout(n,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(n,0);try{return t(n,0)}catch(e){try{return t.call(null,n,0)}catch(e){return t.call(this,n,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(n){t=o}try{A="function"==typeof clearTimeout?clearTimeout:l}catch(n){A=l}}();var i,c=[],a=!1,u=-1;function C(){a&&i&&(a=!1,i.length?c=i.concat(c):u=-1,c.length&&m())}function m(){if(!a){var n=s(C);a=!0;for(var e=c.length;e;){for(i=c,c=[];++u<e;)i&&i[u].run();u=-1,e=c.length}i=null,a=!1,function(n){if(A===clearTimeout)return clearTimeout(n);if((A===l||!A)&&clearTimeout)return A=clearTimeout,clearTimeout(n);try{A(n)}catch(e){try{return A.call(null,n)}catch(e){return A.call(this,n)}}}(n)}}function d(n,e){this.fun=n,this.array=e}function p(){}r.nextTick=function(n){var e=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)e[t-1]=arguments[t];c.push(new d(n,e)),1!==c.length||a||s(m)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(n){return[]},r.binding=function(n){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(n){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(n,e,t){(function(n){function t(n){return Object.prototype.toString.call(n)}e.isArray=function(n){return Array.isArray?Array.isArray(n):"[object Array]"===t(n)},e.isBoolean=function(n){return"boolean"==typeof n},e.isNull=function(n){return null===n},e.isNullOrUndefined=function(n){return null==n},e.isNumber=function(n){return"number"==typeof n},e.isString=function(n){return"string"==typeof n},e.isSymbol=function(n){return"symbol"==typeof n},e.isUndefined=function(n){return void 0===n},e.isRegExp=function(n){return"[object RegExp]"===t(n)},e.isObject=function(n){return"object"==typeof n&&null!==n},e.isDate=function(n){return"[object Date]"===t(n)},e.isError=function(n){return"[object Error]"===t(n)||n instanceof Error},e.isFunction=function(n){return"function"==typeof n},e.isPrimitive=function(n){return null===n||"boolean"==typeof n||"number"==typeof n||"string"==typeof n||"symbol"==typeof n||void 0===n},e.isBuffer=n.isBuffer}).call(e,t(5).Buffer)},function(n,e,t){"use strict";var A,r,o,l,s,i,c=(A="C:\\Users\\Dolan\\Documents\\docx\\src\\file\\paragraph\\run\\formatting.ts",r="c01f9e22f2c89c64381db15bedbe0002c347f3ae",o=new(0,function(){}.constructor)("return this")(),s={path:"C:\\Users\\Dolan\\Documents\\docx\\src\\file\\paragraph\\run\\formatting.ts",statementMap:{0:{start:{line:2,column:0},end:{line:2,column:62}},1:{start:{line:3,column:25},end:{line:3,column:55}},2:{start:{line:4,column:18},end:{line:4,column:40}},3:{start:{line:5,column:0},end:{line:5,column:42}},4:{start:{line:6,column:15},end:{line:6,column:34}},5:{start:{line:7,column:0},end:{line:7,column:39}},6:{start:{line:8,column:0},end:{line:8,column:43}},7:{start:{line:9,column:18},end:{line:9,column:40}},8:{start:{line:10,column:0},end:{line:10,column:40}},9:{start:{line:13,column:8},end:{line:13,column:21}},10:{start:{line:14,column:8},end:{line:16,column:12}},11:{start:{line:19,column:0},end:{line:19,column:20}},12:{start:{line:22,column:8},end:{line:22,column:23}},13:{start:{line:23,co