@elicecontents/content-ui 1.1.2 → 1.1.3-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AIAvatar-NYAGMJJ3.png +0 -0
- package/dist/index.cjs +12803 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +12748 -0
- package/dist/index.js.map +1 -0
- package/dist/types/breakpoints/breakpoints.d.ts +1 -1
- package/dist/types/components/AI-feedback/AIFeedback.d.ts +2 -2
- package/dist/types/components/AIDTTypography/AIDTTypography.d.ts +15 -4
- package/dist/types/components/Modal/Modal.d.ts +1 -1
- package/dist/types/components/badge/Badge.d.ts +1 -1
- package/dist/types/components/base-input/BaseInput.d.ts +1 -1
- package/dist/types/components/button/Button.d.ts +2 -2
- package/dist/types/components/chat/Chat.d.ts +14 -4
- package/dist/types/components/chat/TypingIndicator.d.ts +1 -1
- package/dist/types/components/dialog/Dialog.d.ts +2 -2
- package/dist/types/components/dotted-pagination/DottedPagination.d.ts +1 -0
- package/dist/types/components/fluid/EliceBox.d.ts +3 -0
- package/dist/types/components/fluid/EliceFluidLayout.d.ts +46 -0
- package/dist/types/components/fluid/EliceStack.d.ts +3 -0
- package/dist/types/components/fluid/EliceTypography.d.ts +2 -0
- package/dist/types/components/fluid/constants.d.ts +9 -0
- package/dist/types/components/fluid/index.d.ts +7 -0
- package/dist/types/components/fluid/types.d.ts +15 -0
- package/dist/types/components/header-title/HeaderTitle.d.ts +1 -1
- package/dist/types/components/html-viewer/HtmlViewer.d.ts +9 -0
- package/dist/types/components/html-viewer/HtmlViewerContent.d.ts +6 -0
- package/dist/types/components/html-viewer/HtmlViewerContext.d.ts +13 -0
- package/dist/types/components/html-viewer/HtmlViewerHighlightLayer.d.ts +8 -0
- package/dist/types/components/html-viewer/HtmlViewerMemoMenu.d.ts +8 -0
- package/dist/types/components/html-viewer/HtmlViewerToolbar.d.ts +1 -0
- package/dist/types/components/html-viewer/HtmlViewerTypes.d.ts +106 -0
- package/dist/types/components/html-viewer/hooks/useAnchorResolver.d.ts +13 -0
- package/dist/types/components/html-viewer/hooks/useAnnotationStorage.d.ts +9 -0
- package/dist/types/components/html-viewer/hooks/useGestureStateMachine.d.ts +16 -0
- package/dist/types/components/html-viewer/hooks/useHighlightRects.d.ts +2 -0
- package/dist/types/components/html-viewer/hooks/useIntersectionVisibility.d.ts +8 -0
- package/dist/types/components/html-viewer/index.d.ts +2 -0
- package/dist/types/components/icon-button/IconButton.d.ts +2 -2
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/layout/Footer/LayoutFooterPaging.d.ts +2 -2
- package/dist/types/components/layout/Footer/LayoutFooterSubmit.d.ts +2 -1
- package/dist/types/components/layout/Header/LayoutHeaderSubTitle.d.ts +2 -2
- package/dist/types/components/layout/Header/LayoutHeaderTitle.d.ts +2 -2
- package/dist/types/components/layout/Layout.d.ts +9 -28
- package/dist/types/components/layout/index.d.ts +10 -16
- package/dist/types/components/pagination-button/PaginationButton.d.ts +1 -1
- package/dist/types/components/recorder/Recorder.d.ts +3 -3
- package/dist/types/components/recorder-chat/RecorderChat.d.ts +1 -1
- package/dist/types/components/recorder-chat/TypingIndicator.d.ts +1 -1
- package/dist/types/components/recorder-step/RecorderContext.d.ts +2 -1
- package/dist/types/components/recorder-step/RecorderStep.d.ts +3 -3
- package/dist/types/components/selection/Selection.d.ts +2 -2
- package/dist/types/components/sound-visualizer/SoundVisualizer.d.ts +1 -1
- package/dist/types/components/subtitle-button/SubtitleButton.d.ts +2 -2
- package/dist/types/components/table/ColInfoTable.d.ts +1 -1
- package/dist/types/components/table/RowInfoTable.d.ts +1 -1
- package/dist/types/components/table/Table.d.ts +1 -1
- package/dist/types/components/textarea/Textarea.d.ts +9 -3
- package/dist/types/components/tooltip/Tooltip.d.ts +7 -3
- package/dist/types/components/video/VideoPlayer.d.ts +1 -1
- package/dist/types/components/video/VideoV2.d.ts +3 -1
- package/dist/types/components/video/VideoV3.d.ts +37 -0
- package/dist/types/components/video/index.d.ts +2 -0
- package/dist/types/hooks/useAIDTMediaQuery.d.ts +5 -1
- package/dist/types/icons/MoreColumn.d.ts +1 -1
- package/dist/types/icons/QuestionBubble.d.ts +1 -1
- package/dist/types/icons/ReadyRecord.d.ts +1 -1
- package/dist/types/icons/RecordPause.d.ts +1 -1
- package/dist/types/icons/RecordPlay.d.ts +1 -1
- package/dist/types/icons/Recording.d.ts +1 -1
- package/dist/types/icons/ScrollMoreIcon.d.ts +1 -1
- package/dist/types/icons/SearchIcon.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/palettes/_typing.d.ts +1 -1
- package/dist/types/palettes/eliceDefault.d.ts +1 -1
- package/dist/types/palettes/type1.d.ts +1 -1
- package/dist/types/palettes/type2.d.ts +1 -1
- package/dist/types/theme/AIDTTheme.d.ts +1 -1
- package/dist/types/theme/_base.d.ts +1 -1
- package/dist/types/theme/createAIDTTheme.d.ts +2 -3
- package/dist/types/theme/createEliceThemeOverride.d.ts +5 -3
- package/dist/types/theme/transitions.d.ts +1 -1
- package/dist/types/tokens/breakpoints/breakpoints.d.ts +2 -2
- package/dist/types/tokens/colors/_typing.d.ts +1 -1
- package/dist/types/tokens/colors/bluepurple.d.ts +1 -1
- package/dist/types/tokens/colors/bluesky.d.ts +1 -1
- package/dist/types/tokens/colors/common.d.ts +1 -1
- package/dist/types/tokens/colors/gray.d.ts +1 -1
- package/dist/types/tokens/colors/green.d.ts +1 -1
- package/dist/types/tokens/colors/mint.d.ts +1 -1
- package/dist/types/tokens/colors/orange.d.ts +1 -1
- package/dist/types/tokens/colors/pink.d.ts +1 -1
- package/dist/types/tokens/colors/purple.d.ts +1 -1
- package/dist/types/tokens/colors/yellow.d.ts +1 -1
- package/dist/types/types/theme-augmentation.d.ts +14 -1
- package/dist/types/types/theme.types.d.ts +4 -2
- package/dist/types/typography/TypographyType.d.ts +798 -42
- package/dist/types/typography/index.d.ts +1 -0
- package/dist/types/typography/typography.d.ts +393 -45
- package/dist/types/typography/typographyFontFamily.d.ts +1 -0
- package/package.json +21 -17
- package/dist/cjs/index.js +0 -797
- package/dist/cjs/index.js.map +0 -1
- package/dist/es/index.js +0 -17963
- package/dist/es/index.js.map +0 -1
- package/dist/utils-B-OwYxKc.js +0 -2
- package/dist/utils-B-OwYxKc.js.map +0 -1
- package/dist/utils-C6l9edAI.mjs +0 -33
- package/dist/utils-C6l9edAI.mjs.map +0 -1
- package/dist/video-BVmBZcCY.mjs +0 -29748
- package/dist/video-BVmBZcCY.mjs.map +0 -1
- package/dist/video-De6bH9lK.js +0 -213
- package/dist/video-De6bH9lK.js.map +0 -1
- package/dist/video-utils-CSAdDJJN.js +0 -9
- package/dist/video-utils-CSAdDJJN.js.map +0 -1
- package/dist/video-utils-DfKS4cGg.mjs +0 -5735
- package/dist/video-utils-DfKS4cGg.mjs.map +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";const N=require("./video-De6bH9lK.js");var Xt=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(u,i){this.listeners[u]||(this.listeners[u]=[]),this.listeners[u].push(i)},e.off=function(u,i){if(!this.listeners[u])return!1;var n=this.listeners[u].indexOf(i);return this.listeners[u]=this.listeners[u].slice(0),this.listeners[u].splice(n,1),n>-1},e.trigger=function(u){var i=this.listeners[u];if(i)if(arguments.length===2)for(var n=i.length,a=0;a<n;++a)i[a].call(this,arguments[1]);else for(var o=Array.prototype.slice.call(arguments,1),c=i.length,l=0;l<c;++l)i[l].apply(this,o)},e.dispose=function(){this.listeners={}},e.pipe=function(u){this.on("data",function(i){u.push(i)})},t}(),fr=function(e){return N.window$1.atob?N.window$1.atob(e):Buffer.from(e,"base64").toString("binary")};function Se(t){for(var e=fr(t),r=new Uint8Array(e.length),u=0;u<e.length;u++)r[u]=e.charCodeAt(u);return r}/*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 */class pr extends Xt{constructor(){super(),this.buffer=""}push(e){let r;for(this.buffer+=e,r=this.buffer.indexOf(`
|
|
2
|
-
`);r>-1;r=this.buffer.indexOf(`
|
|
3
|
-
`))this.trigger("data",this.buffer.substring(0,r)),this.buffer=this.buffer.substring(r+1)}}const mr=" ",xt=function(t){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(t||""),r={};return e[1]&&(r.length=parseInt(e[1],10)),e[2]&&(r.offset=parseInt(e[2],10)),r},gr=function(){const r="(?:"+"[^=]*"+")=(?:"+'"[^"]*"|[^,]*'+")";return new RegExp("(?:^|,)("+r+")")},F=function(t){const e={};if(!t)return e;const r=t.split(gr());let u=r.length,i;for(;u--;)r[u]!==""&&(i=/([^=]*)=(.*)/.exec(r[u]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),e[i[0]]=i[1]);return e},ue=t=>{const e=t.split("x"),r={};return e[0]&&(r.width=parseInt(e[0],10)),e[1]&&(r.height=parseInt(e[1],10)),r};class dr extends Xt{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let r,u;if(e=e.trim(),e.length===0)return;if(e[0]!=="#"){this.trigger("data",{type:"uri",uri:e});return}this.tagMappers.reduce((n,a)=>{const o=a(e);return o===e?n:n.concat([o])},[e]).forEach(n=>{for(let a=0;a<this.customParsers.length;a++)if(this.customParsers[a].call(this,n))return;if(n.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:n.slice(1)});return}if(n=n.replace("\r",""),r=/^#EXTM3U/.exec(n),r){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(r=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(n),r){u={type:"tag",tagType:"inf"},r[1]&&(u.duration=parseFloat(r[1])),r[2]&&(u.title=r[2]),this.trigger("data",u);return}if(r=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(n),r){u={type:"tag",tagType:"targetduration"},r[1]&&(u.duration=parseInt(r[1],10)),this.trigger("data",u);return}if(r=/^#EXT-X-VERSION:([0-9.]*)?/.exec(n),r){u={type:"tag",tagType:"version"},r[1]&&(u.version=parseInt(r[1],10)),this.trigger("data",u);return}if(r=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(n),r){u={type:"tag",tagType:"media-sequence"},r[1]&&(u.number=parseInt(r[1],10)),this.trigger("data",u);return}if(r=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(n),r){u={type:"tag",tagType:"discontinuity-sequence"},r[1]&&(u.number=parseInt(r[1],10)),this.trigger("data",u);return}if(r=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(n),r){u={type:"tag",tagType:"playlist-type"},r[1]&&(u.playlistType=r[1]),this.trigger("data",u);return}if(r=/^#EXT-X-BYTERANGE:(.*)?$/.exec(n),r){u=N._extends(xt(r[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",u);return}if(r=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(n),r){u={type:"tag",tagType:"allow-cache"},r[1]&&(u.allowed=!/NO/.test(r[1])),this.trigger("data",u);return}if(r=/^#EXT-X-MAP:(.*)$/.exec(n),r){if(u={type:"tag",tagType:"map"},r[1]){const a=F(r[1]);a.URI&&(u.uri=a.URI),a.BYTERANGE&&(u.byterange=xt(a.BYTERANGE))}this.trigger("data",u);return}if(r=/^#EXT-X-STREAM-INF:(.*)$/.exec(n),r){u={type:"tag",tagType:"stream-inf"},r[1]&&(u.attributes=F(r[1]),u.attributes.RESOLUTION&&(u.attributes.RESOLUTION=ue(u.attributes.RESOLUTION)),u.attributes.BANDWIDTH&&(u.attributes.BANDWIDTH=parseInt(u.attributes.BANDWIDTH,10)),u.attributes["FRAME-RATE"]&&(u.attributes["FRAME-RATE"]=parseFloat(u.attributes["FRAME-RATE"])),u.attributes["PROGRAM-ID"]&&(u.attributes["PROGRAM-ID"]=parseInt(u.attributes["PROGRAM-ID"],10))),this.trigger("data",u);return}if(r=/^#EXT-X-MEDIA:(.*)$/.exec(n),r){u={type:"tag",tagType:"media"},r[1]&&(u.attributes=F(r[1])),this.trigger("data",u);return}if(r=/^#EXT-X-ENDLIST/.exec(n),r){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(r=/^#EXT-X-DISCONTINUITY/.exec(n),r){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(r=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(n),r){u={type:"tag",tagType:"program-date-time"},r[1]&&(u.dateTimeString=r[1],u.dateTimeObject=new Date(r[1])),this.trigger("data",u);return}if(r=/^#EXT-X-KEY:(.*)$/.exec(n),r){u={type:"tag",tagType:"key"},r[1]&&(u.attributes=F(r[1]),u.attributes.IV&&(u.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(u.attributes.IV=u.attributes.IV.substring(2)),u.attributes.IV=u.attributes.IV.match(/.{8}/g),u.attributes.IV[0]=parseInt(u.attributes.IV[0],16),u.attributes.IV[1]=parseInt(u.attributes.IV[1],16),u.attributes.IV[2]=parseInt(u.attributes.IV[2],16),u.attributes.IV[3]=parseInt(u.attributes.IV[3],16),u.attributes.IV=new Uint32Array(u.attributes.IV))),this.trigger("data",u);return}if(r=/^#EXT-X-START:(.*)$/.exec(n),r){u={type:"tag",tagType:"start"},r[1]&&(u.attributes=F(r[1]),u.attributes["TIME-OFFSET"]=parseFloat(u.attributes["TIME-OFFSET"]),u.attributes.PRECISE=/YES/.test(u.attributes.PRECISE)),this.trigger("data",u);return}if(r=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(n),r){u={type:"tag",tagType:"cue-out-cont"},r[1]?u.data=r[1]:u.data="",this.trigger("data",u);return}if(r=/^#EXT-X-CUE-OUT:(.*)?$/.exec(n),r){u={type:"tag",tagType:"cue-out"},r[1]?u.data=r[1]:u.data="",this.trigger("data",u);return}if(r=/^#EXT-X-CUE-IN:?(.*)?$/.exec(n),r){u={type:"tag",tagType:"cue-in"},r[1]?u.data=r[1]:u.data="",this.trigger("data",u);return}if(r=/^#EXT-X-SKIP:(.*)$/.exec(n),r&&r[1]){u={type:"tag",tagType:"skip"},u.attributes=F(r[1]),u.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(u.attributes["SKIPPED-SEGMENTS"]=parseInt(u.attributes["SKIPPED-SEGMENTS"],10)),u.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(u.attributes["RECENTLY-REMOVED-DATERANGES"]=u.attributes["RECENTLY-REMOVED-DATERANGES"].split(mr)),this.trigger("data",u);return}if(r=/^#EXT-X-PART:(.*)$/.exec(n),r&&r[1]){u={type:"tag",tagType:"part"},u.attributes=F(r[1]),["DURATION"].forEach(function(a){u.attributes.hasOwnProperty(a)&&(u.attributes[a]=parseFloat(u.attributes[a]))}),["INDEPENDENT","GAP"].forEach(function(a){u.attributes.hasOwnProperty(a)&&(u.attributes[a]=/YES/.test(u.attributes[a]))}),u.attributes.hasOwnProperty("BYTERANGE")&&(u.attributes.byterange=xt(u.attributes.BYTERANGE)),this.trigger("data",u);return}if(r=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(n),r&&r[1]){u={type:"tag",tagType:"server-control"},u.attributes=F(r[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(a){u.attributes.hasOwnProperty(a)&&(u.attributes[a]=parseFloat(u.attributes[a]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(a){u.attributes.hasOwnProperty(a)&&(u.attributes[a]=/YES/.test(u.attributes[a]))}),this.trigger("data",u);return}if(r=/^#EXT-X-PART-INF:(.*)$/.exec(n),r&&r[1]){u={type:"tag",tagType:"part-inf"},u.attributes=F(r[1]),["PART-TARGET"].forEach(function(a){u.attributes.hasOwnProperty(a)&&(u.attributes[a]=parseFloat(u.attributes[a]))}),this.trigger("data",u);return}if(r=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(n),r&&r[1]){u={type:"tag",tagType:"preload-hint"},u.attributes=F(r[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(a){if(u.attributes.hasOwnProperty(a)){u.attributes[a]=parseInt(u.attributes[a],10);const o=a==="BYTERANGE-LENGTH"?"length":"offset";u.attributes.byterange=u.attributes.byterange||{},u.attributes.byterange[o]=u.attributes[a],delete u.attributes[a]}}),this.trigger("data",u);return}if(r=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(n),r&&r[1]){u={type:"tag",tagType:"rendition-report"},u.attributes=F(r[1]),["LAST-MSN","LAST-PART"].forEach(function(a){u.attributes.hasOwnProperty(a)&&(u.attributes[a]=parseInt(u.attributes[a],10))}),this.trigger("data",u);return}if(r=/^#EXT-X-DATERANGE:(.*)$/.exec(n),r&&r[1]){u={type:"tag",tagType:"daterange"},u.attributes=F(r[1]),["ID","CLASS"].forEach(function(o){u.attributes.hasOwnProperty(o)&&(u.attributes[o]=String(u.attributes[o]))}),["START-DATE","END-DATE"].forEach(function(o){u.attributes.hasOwnProperty(o)&&(u.attributes[o]=new Date(u.attributes[o]))}),["DURATION","PLANNED-DURATION"].forEach(function(o){u.attributes.hasOwnProperty(o)&&(u.attributes[o]=parseFloat(u.attributes[o]))}),["END-ON-NEXT"].forEach(function(o){u.attributes.hasOwnProperty(o)&&(u.attributes[o]=/YES/i.test(u.attributes[o]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(o){u.attributes.hasOwnProperty(o)&&(u.attributes[o]=u.attributes[o].toString(16))});const a=/^X-([A-Z]+-)+[A-Z]+$/;for(const o in u.attributes){if(!a.test(o))continue;const c=/[0-9A-Fa-f]{6}/g.test(u.attributes[o]),l=/^\d+(\.\d+)?$/.test(u.attributes[o]);u.attributes[o]=c?u.attributes[o].toString(16):l?parseFloat(u.attributes[o]):String(u.attributes[o])}this.trigger("data",u);return}if(r=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(n),r){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(r=/^#EXT-X-I-FRAMES-ONLY/.exec(n),r){this.trigger("data",{type:"tag",tagType:"i-frames-only"});return}if(r=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(n),r){u={type:"tag",tagType:"content-steering"},u.attributes=F(r[1]),this.trigger("data",u);return}if(r=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(n),r){u={type:"tag",tagType:"i-frame-playlist"},u.attributes=F(r[1]),u.attributes.URI&&(u.uri=u.attributes.URI),u.attributes.BANDWIDTH&&(u.attributes.BANDWIDTH=parseInt(u.attributes.BANDWIDTH,10)),u.attributes.RESOLUTION&&(u.attributes.RESOLUTION=ue(u.attributes.RESOLUTION)),u.attributes["AVERAGE-BANDWIDTH"]&&(u.attributes["AVERAGE-BANDWIDTH"]=parseInt(u.attributes["AVERAGE-BANDWIDTH"],10)),u.attributes["FRAME-RATE"]&&(u.attributes["FRAME-RATE"]=parseFloat(u.attributes["FRAME-RATE"])),this.trigger("data",u);return}if(r=/^#EXT-X-DEFINE:(.*)$/.exec(n),r){u={type:"tag",tagType:"define"},u.attributes=F(r[1]),this.trigger("data",u);return}this.trigger("data",{type:"tag",data:n.slice(4)})})}addParser({expression:e,customType:r,dataParser:u,segment:i}){typeof u!="function"&&(u=n=>n),this.customParsers.push(n=>{if(e.exec(n))return this.trigger("data",{type:"custom",data:u(n),customType:r,segment:i}),!0})}addTagMapper({expression:e,map:r}){const u=i=>e.test(i)?r(i):i;this.tagMappers.push(u)}}const hr=t=>t.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),Y=function(t){const e={};return Object.keys(t).forEach(function(r){e[hr(r)]=t[r]}),e},Pt=function(t){const{serverControl:e,targetDuration:r,partTargetDuration:u}=t;if(!e)return;const i="#EXT-X-SERVER-CONTROL",n="holdBack",a="partHoldBack",o=r&&r*3,c=u&&u*2;r&&!e.hasOwnProperty(n)&&(e[n]=o,this.trigger("info",{message:`${i} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&e[n]<o&&(this.trigger("warn",{message:`${i} clamping HOLD-BACK (${e[n]}) to targetDuration * 3 (${o})`}),e[n]=o),u&&!e.hasOwnProperty(a)&&(e[a]=u*3,this.trigger("info",{message:`${i} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${e[a]}).`})),u&&e[a]<c&&(this.trigger("warn",{message:`${i} clamping PART-HOLD-BACK (${e[a]}) to partTargetDuration * 2 (${c}).`}),e[a]=c)};class Dr extends Xt{constructor(e={}){super(),this.lineStream=new pr,this.parseStream=new dr,this.lineStream.pipe(this.parseStream),this.mainDefinitions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const r=this,u=[];let i={},n,a,o=!1;const c=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},f="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";let m=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let g=0,D=0;const h={};this.on("end",()=>{i.uri||!i.parts&&!i.preloadHints||(!i.map&&n&&(i.map=n),!i.key&&a&&(i.key=a),!i.timeline&&typeof m=="number"&&(i.timeline=m),this.manifest.preloadSegment=i)}),this.parseStream.on("data",function(s){let E,A;if(r.manifest.definitions){for(const d in r.manifest.definitions)if(s.uri&&(s.uri=s.uri.replace(`{$${d}}`,r.manifest.definitions[d])),s.attributes)for(const p in s.attributes)typeof s.attributes[p]=="string"&&(s.attributes[p]=s.attributes[p].replace(`{$${d}}`,r.manifest.definitions[d]))}({tag(){({version(){s.version&&(this.manifest.version=s.version)},"allow-cache"(){this.manifest.allowCache=s.allowed,"allowed"in s||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const d={};"length"in s&&(i.byterange=d,d.length=s.length,"offset"in s||(s.offset=g)),"offset"in s&&(i.byterange=d,d.offset=s.offset),g=d.offset+d.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),s.title&&(i.title=s.title),s.duration>0&&(i.duration=s.duration),s.duration===0&&(i.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=u},key(){if(!s.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(s.attributes.METHOD==="NONE"){a=null;return}if(!s.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(s.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:s.attributes};return}if(s.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:s.attributes.URI};return}if(s.attributes.KEYFORMAT===f){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(s.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(s.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),s.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(s.attributes.KEYID&&s.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:s.attributes.KEYFORMAT,keyId:s.attributes.KEYID.substring(2)},pssh:Se(s.attributes.URI.split(",")[1])};return}s.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),a={method:s.attributes.METHOD||"AES-128",uri:s.attributes.URI},typeof s.attributes.IV<"u"&&(a.iv=s.attributes.IV)},"media-sequence"(){if(!isFinite(s.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+s.number});return}this.manifest.mediaSequence=s.number},"discontinuity-sequence"(){if(!isFinite(s.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+s.number});return}this.manifest.discontinuitySequence=s.number,m=s.number},"playlist-type"(){if(!/VOD|EVENT/.test(s.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+s.playlist});return}this.manifest.playlistType=s.playlistType},map(){n={},s.uri&&(n.uri=s.uri),s.byterange&&(n.byterange=s.byterange),a&&(n.key=a)},"stream-inf"(){if(this.manifest.playlists=u,this.manifest.mediaGroups=this.manifest.mediaGroups||l,!s.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}i.attributes||(i.attributes={}),N._extends(i.attributes,s.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(s.attributes&&s.attributes.TYPE&&s.attributes["GROUP-ID"]&&s.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}const d=this.manifest.mediaGroups[s.attributes.TYPE];d[s.attributes["GROUP-ID"]]=d[s.attributes["GROUP-ID"]]||{},E=d[s.attributes["GROUP-ID"]],A={default:/yes/i.test(s.attributes.DEFAULT)},A.default?A.autoselect=!0:A.autoselect=/yes/i.test(s.attributes.AUTOSELECT),s.attributes.LANGUAGE&&(A.language=s.attributes.LANGUAGE),s.attributes.URI&&(A.uri=s.attributes.URI),s.attributes["INSTREAM-ID"]&&(A.instreamId=s.attributes["INSTREAM-ID"]),s.attributes.CHARACTERISTICS&&(A.characteristics=s.attributes.CHARACTERISTICS),s.attributes.FORCED&&(A.forced=/yes/i.test(s.attributes.FORCED)),E[s.attributes.NAME]=A},discontinuity(){m+=1,i.discontinuity=!0,this.manifest.discontinuityStarts.push(u.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=s.dateTimeString,this.manifest.dateTimeObject=s.dateTimeObject),i.dateTimeString=s.dateTimeString,i.dateTimeObject=s.dateTimeObject;const{lastProgramDateTime:d}=this;this.lastProgramDateTime=new Date(s.dateTimeString).getTime(),d===null&&this.manifest.segments.reduceRight((p,b)=>(b.programDateTime=p-b.duration*1e3,b.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(s.duration)||s.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+s.duration});return}this.manifest.targetDuration=s.duration,Pt.call(this,this.manifest)},start(){if(!s.attributes||isNaN(s.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:s.attributes["TIME-OFFSET"],precise:s.attributes.PRECISE}},"cue-out"(){i.cueOut=s.data},"cue-out-cont"(){i.cueOutCont=s.data},"cue-in"(){i.cueIn=s.data},skip(){this.manifest.skip=Y(s.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",s.attributes,["SKIPPED-SEGMENTS"])},part(){o=!0;const d=this.manifest.segments.length,p=Y(s.attributes);i.parts=i.parts||[],i.parts.push(p),p.byterange&&(p.byterange.hasOwnProperty("offset")||(p.byterange.offset=D),D=p.byterange.offset+p.byterange.length);const b=i.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${b} for segment #${d}`,s.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((x,I)=>{x.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${I} lacks required attribute(s): LAST-PART`})})},"server-control"(){const d=this.manifest.serverControl=Y(s.attributes);d.hasOwnProperty("canBlockReload")||(d.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),Pt.call(this,this.manifest),d.canSkipDateranges&&!d.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const d=this.manifest.segments.length,p=Y(s.attributes),b=p.type&&p.type==="PART";i.preloadHints=i.preloadHints||[],i.preloadHints.push(p),p.byterange&&(p.byterange.hasOwnProperty("offset")||(p.byterange.offset=b?D:0,b&&(D=p.byterange.offset+p.byterange.length)));const x=i.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${x} for segment #${d}`,s.attributes,["TYPE","URI"]),!!p.type)for(let I=0;I<i.preloadHints.length-1;I++){const W=i.preloadHints[I];W.type&&W.type===p.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${x} for segment #${d} has the same TYPE ${p.type} as preload hint #${I}`})}},"rendition-report"(){const d=Y(s.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(d);const p=this.manifest.renditionReports.length-1,b=["LAST-MSN","URI"];o&&b.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${p}`,s.attributes,b)},"part-inf"(){this.manifest.partInf=Y(s.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",s.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),Pt.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Y(s.attributes));const d=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${d}`,s.attributes,["ID","START-DATE"]);const p=this.manifest.dateRanges[d];p.endDate&&p.startDate&&new Date(p.endDate)<new Date(p.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),p.duration&&p.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),p.plannedDuration&&p.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const b=!!p.endOnNext;if(b&&!p.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),b&&(p.duration||p.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),p.duration&&p.endDate){const I=p.startDate.getTime()+p.duration*1e3;this.manifest.dateRanges[d].endDate=new Date(I)}if(!h[p.id])h[p.id]=p;else{for(const I in h[p.id])if(p[I]&&JSON.stringify(h[p.id][I])!==JSON.stringify(p[I])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const x=this.manifest.dateRanges.findIndex(I=>I.id===p.id);this.manifest.dateRanges[x]=N._extends(this.manifest.dateRanges[x],p),h[p.id]=N._extends(h[p.id],p),this.manifest.dateRanges.pop()}},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=Y(s.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",s.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const d=(p,b)=>{if(p in this.manifest.definitions){this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${p}`});return}this.manifest.definitions[p]=b};if("QUERYPARAM"in s.attributes){if("NAME"in s.attributes||"IMPORT"in s.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}const p=this.params.get(s.attributes.QUERYPARAM);if(!p){this.trigger("error",{message:`EXT-X-DEFINE: No query param ${s.attributes.QUERYPARAM}`});return}d(s.attributes.QUERYPARAM,decodeURIComponent(p));return}if("NAME"in s.attributes){if("IMPORT"in s.attributes){this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});return}if(!("VALUE"in s.attributes)||typeof s.attributes.VALUE!="string"){this.trigger("error",{message:`EXT-X-DEFINE: No value for ${s.attributes.NAME}`});return}d(s.attributes.NAME,s.attributes.VALUE);return}if("IMPORT"in s.attributes){if(!this.mainDefinitions[s.attributes.IMPORT]){this.trigger("error",{message:`EXT-X-DEFINE: No value ${s.attributes.IMPORT} to import, or IMPORT used on main playlist`});return}d(s.attributes.IMPORT,this.mainDefinitions[s.attributes.IMPORT]);return}this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:s.attributes,uri:s.uri,timeline:m}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",s.attributes,["BANDWIDTH","URI"])}}[s.tagType]||c).call(r)},uri(){i.uri=s.uri,u.push(i),this.manifest.targetDuration&&!("duration"in i)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),i.duration=this.manifest.targetDuration),a&&(i.key=a),i.timeline=m,n&&(i.map=n),D=0,this.lastProgramDateTime!==null&&(i.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=i.duration*1e3),i={}},comment(){},custom(){s.segment?(i.custom=i.custom||{},i.custom[s.customType]=s.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[s.customType]=s.data)}})[s.type].call(r)})}requiredCompatibilityversion(e,r){(e<r||!e)&&this.trigger("warn",{message:`manifest must be at least version ${r}`})}warnOnMissingAttributes_(e,r,u){const i=[];u.forEach(function(n){r.hasOwnProperty(n)||i.push(n)}),i.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${i.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push(`
|
|
4
|
-
`),this.manifest.dateRanges.length&&this.lastProgramDateTime===null&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var Er=function(e,r,u){r.forEach(function(i){for(var n in e.mediaGroups[i])for(var a in e.mediaGroups[i][n]){var o=e.mediaGroups[i][n][a];u(o,i,n,a)}})},j={},H={};function Ar(t,e,r){if(r===void 0&&(r=Array.prototype),t&&typeof r.find=="function")return r.find.call(t,e);for(var u=0;u<t.length;u++)if(Object.prototype.hasOwnProperty.call(t,u)){var i=t[u];if(e.call(void 0,i,u,t))return i}}function Gt(t,e){return e===void 0&&(e=Object),e&&typeof e.freeze=="function"?e.freeze(t):t}function br(t,e){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}var we=Gt({HTML:"text/html",isHTML:function(t){return t===we.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Ie=Gt({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===Ie.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});H.assign=br;H.find=Ar;H.freeze=Gt;H.MIME_TYPE=we;H.NAMESPACE=Ie;var ye=H,X=ye.find,ft=ye.NAMESPACE;function Tr(t){return t!==""}function Cr(t){return t?t.split(/[\t\n\f\r ]+/).filter(Tr):[]}function Nr(t,e){return t.hasOwnProperty(e)||(t[e]=!0),t}function ie(t){if(!t)return[];var e=Cr(t);return Object.keys(e.reduce(Nr,{}))}function vr(t){return function(e){return t&&t.indexOf(e)!==-1}}function ht(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function U(t,e){var r=t.prototype;if(!(r instanceof e)){let u=function(){};u.prototype=e.prototype,u=new u,ht(r,u),t.prototype=r=u}r.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),r.constructor=t)}var M={},_=M.ELEMENT_NODE=1,ut=M.ATTRIBUTE_NODE=2,Nt=M.TEXT_NODE=3,Re=M.CDATA_SECTION_NODE=4,Be=M.ENTITY_REFERENCE_NODE=5,Sr=M.ENTITY_NODE=6,Oe=M.PROCESSING_INSTRUCTION_NODE=7,Fe=M.COMMENT_NODE=8,xe=M.DOCUMENT_NODE=9,Pe=M.DOCUMENT_TYPE_NODE=10,V=M.DOCUMENT_FRAGMENT_NODE=11,wr=M.NOTATION_NODE=12,B={},R={};B.INDEX_SIZE_ERR=(R[1]="Index size error",1);B.DOMSTRING_SIZE_ERR=(R[2]="DOMString size error",2);var P=B.HIERARCHY_REQUEST_ERR=(R[3]="Hierarchy request error",3);B.WRONG_DOCUMENT_ERR=(R[4]="Wrong document",4);B.INVALID_CHARACTER_ERR=(R[5]="Invalid character",5);B.NO_DATA_ALLOWED_ERR=(R[6]="No data allowed",6);B.NO_MODIFICATION_ALLOWED_ERR=(R[7]="No modification allowed",7);var Ue=B.NOT_FOUND_ERR=(R[8]="Not found",8);B.NOT_SUPPORTED_ERR=(R[9]="Not supported",9);var ne=B.INUSE_ATTRIBUTE_ERR=(R[10]="Attribute in use",10);B.INVALID_STATE_ERR=(R[11]="Invalid state",11);B.SYNTAX_ERR=(R[12]="Syntax error",12);B.INVALID_MODIFICATION_ERR=(R[13]="Invalid modification",13);B.NAMESPACE_ERR=(R[14]="Invalid namespace",14);B.INVALID_ACCESS_ERR=(R[15]="Invalid access",15);function S(t,e){if(e instanceof Error)var r=e;else r=this,Error.call(this,R[t]),this.message=R[t],Error.captureStackTrace&&Error.captureStackTrace(this,S);return r.code=t,e&&(this.message=this.message+": "+e),r}S.prototype=Error.prototype;ht(B,S);function k(){}k.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,e){for(var r=[],u=0;u<this.length;u++)rt(this[u],r,t,e);return r.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function it(t,e){this._node=t,this._refresh=e,kt(this)}function kt(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==e){var r=t._refresh(t._node);if(ze(t,"length",r.length),!t.$$length||r.length<t.$$length)for(var u=r.length;u in t;u++)Object.prototype.hasOwnProperty.call(t,u)&&delete t[u];ht(r,t),t._inc=e}}it.prototype.item=function(t){return kt(this),this[t]||null};U(it,k);function vt(){}function Me(t,e){for(var r=t.length;r--;)if(t[r]===e)return r}function ae(t,e,r,u){if(u?e[Me(e,u)]=r:e[e.length++]=r,t){r.ownerElement=t;var i=t.ownerDocument;i&&(u&&_e(i,t,u),Ir(i,t,r))}}function se(t,e,r){var u=Me(e,r);if(u>=0){for(var i=e.length-1;u<i;)e[u]=e[++u];if(e.length=i,t){var n=t.ownerDocument;n&&(_e(n,t,r),r.ownerElement=null)}}else throw new S(Ue,new Error(t.tagName+"@"+r))}vt.prototype={length:0,item:k.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var r=this[e];if(r.nodeName==t)return r}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new S(ne);var r=this.getNamedItem(t.nodeName);return ae(this._ownerElement,this,t,r),r},setNamedItemNS:function(t){var e=t.ownerElement,r;if(e&&e!=this._ownerElement)throw new S(ne);return r=this.getNamedItemNS(t.namespaceURI,t.localName),ae(this._ownerElement,this,t,r),r},removeNamedItem:function(t){var e=this.getNamedItem(t);return se(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var r=this.getNamedItemNS(t,e);return se(this._ownerElement,this,r),r},getNamedItemNS:function(t,e){for(var r=this.length;r--;){var u=this[r];if(u.localName==e&&u.namespaceURI==t)return u}return null}};function Le(){}Le.prototype={hasFeature:function(t,e){return!0},createDocument:function(t,e,r){var u=new Dt;if(u.implementation=this,u.childNodes=new k,u.doctype=r||null,r&&u.appendChild(r),e){var i=u.createElementNS(t,e);u.appendChild(i)}return u},createDocumentType:function(t,e,r){var u=new It;return u.name=t,u.nodeName=t,u.publicId=e||"",u.systemId=r||"",u}};function T(){}T.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return St(this,t,e)},replaceChild:function(t,e){St(this,t,e,Ge),e&&this.removeChild(e)},removeChild:function(t){return Xe(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return Lt(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==Nt&&t.nodeType==Nt?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var r=e._nsMap;if(r){for(var u in r)if(Object.prototype.hasOwnProperty.call(r,u)&&r[u]===t)return u}e=e.nodeType==ut?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var r=e._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];e=e.nodeType==ut?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){var e=this.lookupPrefix(t);return e==null}};function qe(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}ht(M,T);ht(M,T.prototype);function pt(t,e){if(e(t))return!0;if(t=t.firstChild)do if(pt(t,e))return!0;while(t=t.nextSibling)}function Dt(){this.ownerDocument=this}function Ir(t,e,r){t&&t._inc++;var u=r.namespaceURI;u===ft.XMLNS&&(e._nsMap[r.prefix?r.localName:""]=r.value)}function _e(t,e,r,u){t&&t._inc++;var i=r.namespaceURI;i===ft.XMLNS&&delete e._nsMap[r.prefix?r.localName:""]}function Vt(t,e,r){if(t&&t._inc){t._inc++;var u=e.childNodes;if(r)u[u.length++]=r;else{for(var i=e.firstChild,n=0;i;)u[n++]=i,i=i.nextSibling;u.length=n,delete u[u.length]}}}function Xe(t,e){var r=e.previousSibling,u=e.nextSibling;return r?r.nextSibling=u:t.firstChild=u,u?u.previousSibling=r:t.lastChild=r,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,Vt(t.ownerDocument,t),e}function yr(t){return t&&(t.nodeType===T.DOCUMENT_NODE||t.nodeType===T.DOCUMENT_FRAGMENT_NODE||t.nodeType===T.ELEMENT_NODE)}function Rr(t){return t&&(G(t)||$t(t)||$(t)||t.nodeType===T.DOCUMENT_FRAGMENT_NODE||t.nodeType===T.COMMENT_NODE||t.nodeType===T.PROCESSING_INSTRUCTION_NODE)}function $(t){return t&&t.nodeType===T.DOCUMENT_TYPE_NODE}function G(t){return t&&t.nodeType===T.ELEMENT_NODE}function $t(t){return t&&t.nodeType===T.TEXT_NODE}function oe(t,e){var r=t.childNodes||[];if(X(r,G)||$(e))return!1;var u=X(r,$);return!(e&&u&&r.indexOf(u)>r.indexOf(e))}function ce(t,e){var r=t.childNodes||[];function u(n){return G(n)&&n!==e}if(X(r,u))return!1;var i=X(r,$);return!(e&&i&&r.indexOf(i)>r.indexOf(e))}function Br(t,e,r){if(!yr(t))throw new S(P,"Unexpected parent node type "+t.nodeType);if(r&&r.parentNode!==t)throw new S(Ue,"child not in parent");if(!Rr(e)||$(e)&&t.nodeType!==T.DOCUMENT_NODE)throw new S(P,"Unexpected node type "+e.nodeType+" for parent node type "+t.nodeType)}function Or(t,e,r){var u=t.childNodes||[],i=e.childNodes||[];if(e.nodeType===T.DOCUMENT_FRAGMENT_NODE){var n=i.filter(G);if(n.length>1||X(i,$t))throw new S(P,"More than one element or text in fragment");if(n.length===1&&!oe(t,r))throw new S(P,"Element in fragment can not be inserted before doctype")}if(G(e)&&!oe(t,r))throw new S(P,"Only one element can be added and only after doctype");if($(e)){if(X(u,$))throw new S(P,"Only one doctype is allowed");var a=X(u,G);if(r&&u.indexOf(a)<u.indexOf(r))throw new S(P,"Doctype can only be inserted before an element");if(!r&&a)throw new S(P,"Doctype can not be appended since element is present")}}function Ge(t,e,r){var u=t.childNodes||[],i=e.childNodes||[];if(e.nodeType===T.DOCUMENT_FRAGMENT_NODE){var n=i.filter(G);if(n.length>1||X(i,$t))throw new S(P,"More than one element or text in fragment");if(n.length===1&&!ce(t,r))throw new S(P,"Element in fragment can not be inserted before doctype")}if(G(e)&&!ce(t,r))throw new S(P,"Only one element can be added and only after doctype");if($(e)){if(X(u,function(c){return $(c)&&c!==r}))throw new S(P,"Only one doctype is allowed");var a=X(u,G);if(r&&u.indexOf(a)<u.indexOf(r))throw new S(P,"Doctype can only be inserted before an element")}}function St(t,e,r,u){Br(t,e,r),t.nodeType===T.DOCUMENT_NODE&&(u||Or)(t,e,r);var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===V){var n=e.firstChild;if(n==null)return e;var a=e.lastChild}else n=a=e;var o=r?r.previousSibling:t.lastChild;n.previousSibling=o,a.nextSibling=r,o?o.nextSibling=n:t.firstChild=n,r==null?t.lastChild=a:r.previousSibling=a;do{n.parentNode=t;var c=t.ownerDocument||t;mt(n,c)}while(n!==a&&(n=n.nextSibling));return Vt(t.ownerDocument||t,t),e.nodeType==V&&(e.firstChild=e.lastChild=null),e}function mt(t,e){if(t.ownerDocument!==e){if(t.ownerDocument=e,t.nodeType===_&&t.attributes)for(var r=0;r<t.attributes.length;r++){var u=t.attributes.item(r);u&&(u.ownerDocument=e)}for(var i=t.firstChild;i;)mt(i,e),i=i.nextSibling}}function Fr(t,e){e.parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,Vt(t.ownerDocument,t,e);var r=t.ownerDocument||t;return mt(e,r),e}Dt.prototype={nodeName:"#document",nodeType:xe,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==V){for(var r=t.firstChild;r;){var u=r.nextSibling;this.insertBefore(r,e),r=u}return t}return St(this,t,e),mt(t,this),this.documentElement===null&&t.nodeType===_&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),Xe(this,t)},replaceChild:function(t,e){St(this,t,e,Ge),mt(t,this),e&&this.removeChild(e),G(t)&&(this.documentElement=t)},importNode:function(t,e){return Ye(this,t,e)},getElementById:function(t){var e=null;return pt(this.documentElement,function(r){if(r.nodeType==_&&r.getAttribute("id")==t)return e=r,!0}),e},getElementsByClassName:function(t){var e=ie(t);return new it(this,function(r){var u=[];return e.length>0&&pt(r.documentElement,function(i){if(i!==r&&i.nodeType===_){var n=i.getAttribute("class");if(n){var a=t===n;if(!a){var o=ie(n);a=e.every(vr(o))}a&&u.push(i)}}}),u})},createElement:function(t){var e=new K;e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.localName=t,e.childNodes=new k;var r=e.attributes=new vt;return r._ownerElement=e,e},createDocumentFragment:function(){var t=new yt;return t.ownerDocument=this,t.childNodes=new k,t},createTextNode:function(t){var e=new Ht;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new Yt;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new zt;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var r=new Wt;return r.ownerDocument=this,r.tagName=r.nodeName=r.target=t,r.nodeValue=r.data=e,r},createAttribute:function(t){var e=new wt;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new jt;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var r=new K,u=e.split(":"),i=r.attributes=new vt;return r.childNodes=new k,r.ownerDocument=this,r.nodeName=e,r.tagName=e,r.namespaceURI=t,u.length==2?(r.prefix=u[0],r.localName=u[1]):r.localName=e,i._ownerElement=r,r},createAttributeNS:function(t,e){var r=new wt,u=e.split(":");return r.ownerDocument=this,r.nodeName=e,r.name=e,r.namespaceURI=t,r.specified=!0,u.length==2?(r.prefix=u[0],r.localName=u[1]):r.localName=e,r}};U(Dt,T);function K(){this._nsMap={}}K.prototype={nodeType:_,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+e,this.setAttributeNode(r)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===V?this.insertBefore(t,null):Fr(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,e){return this.getAttributeNodeNS(t,e)!=null},getAttributeNS:function(t,e){var r=this.getAttributeNodeNS(t,e);return r&&r.value||""},setAttributeNS:function(t,e,r){var u=this.ownerDocument.createAttributeNS(t,e);u.value=u.nodeValue=""+r,this.setAttributeNode(u)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new it(this,function(e){var r=[];return pt(e,function(u){u!==e&&u.nodeType==_&&(t==="*"||u.tagName==t)&&r.push(u)}),r})},getElementsByTagNameNS:function(t,e){return new it(this,function(r){var u=[];return pt(r,function(i){i!==r&&i.nodeType===_&&(t==="*"||i.namespaceURI===t)&&(e==="*"||i.localName==e)&&u.push(i)}),u})}};Dt.prototype.getElementsByTagName=K.prototype.getElementsByTagName;Dt.prototype.getElementsByTagNameNS=K.prototype.getElementsByTagNameNS;U(K,T);function wt(){}wt.prototype.nodeType=ut;U(wt,T);function Et(){}Et.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(R[P])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,r){var u=this.data.substring(0,t),i=this.data.substring(t+e);r=u+r+i,this.nodeValue=this.data=r,this.length=r.length}};U(Et,T);function Ht(){}Ht.prototype={nodeName:"#text",nodeType:Nt,splitText:function(t){var e=this.data,r=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var u=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(u,this.nextSibling),u}};U(Ht,Et);function Yt(){}Yt.prototype={nodeName:"#comment",nodeType:Fe};U(Yt,Et);function zt(){}zt.prototype={nodeName:"#cdata-section",nodeType:Re};U(zt,Et);function It(){}It.prototype.nodeType=Pe;U(It,T);function ke(){}ke.prototype.nodeType=wr;U(ke,T);function Ve(){}Ve.prototype.nodeType=Sr;U(Ve,T);function jt(){}jt.prototype.nodeType=Be;U(jt,T);function yt(){}yt.prototype.nodeName="#document-fragment";yt.prototype.nodeType=V;U(yt,T);function Wt(){}Wt.prototype.nodeType=Oe;U(Wt,T);function $e(){}$e.prototype.serializeToString=function(t,e,r){return He.call(t,e,r)};T.prototype.toString=He;function He(t,e){var r=[],u=this.nodeType==9&&this.documentElement||this,i=u.prefix,n=u.namespaceURI;if(n&&i==null){var i=u.lookupPrefix(n);if(i==null)var a=[{namespace:n,prefix:null}]}return rt(this,r,t,e,a),r.join("")}function le(t,e,r){var u=t.prefix||"",i=t.namespaceURI;if(!i||u==="xml"&&i===ft.XML||i===ft.XMLNS)return!1;for(var n=r.length;n--;){var a=r[n];if(a.prefix===u)return a.namespace!==i}return!0}function Ut(t,e,r){t.push(" ",e,'="',r.replace(/[<>&"\t\n\r]/g,qe),'"')}function rt(t,e,r,u,i){if(i||(i=[]),u)if(t=u(t),t){if(typeof t=="string"){e.push(t);return}}else return;switch(t.nodeType){case _:var n=t.attributes,a=n.length,A=t.firstChild,o=t.tagName;r=ft.isHTML(t.namespaceURI)||r;var c=o;if(!r&&!t.prefix&&t.namespaceURI){for(var l,f=0;f<n.length;f++)if(n.item(f).name==="xmlns"){l=n.item(f).value;break}if(!l)for(var m=i.length-1;m>=0;m--){var g=i[m];if(g.prefix===""&&g.namespace===t.namespaceURI){l=g.namespace;break}}if(l!==t.namespaceURI)for(var m=i.length-1;m>=0;m--){var g=i[m];if(g.namespace===t.namespaceURI){g.prefix&&(c=g.prefix+":"+o);break}}}e.push("<",c);for(var D=0;D<a;D++){var h=n.item(D);h.prefix=="xmlns"?i.push({prefix:h.localName,namespace:h.value}):h.nodeName=="xmlns"&&i.push({prefix:"",namespace:h.value})}for(var D=0;D<a;D++){var h=n.item(D);if(le(h,r,i)){var s=h.prefix||"",E=h.namespaceURI;Ut(e,s?"xmlns:"+s:"xmlns",E),i.push({prefix:s,namespace:E})}rt(h,e,r,u,i)}if(o===c&&le(t,r,i)){var s=t.prefix||"",E=t.namespaceURI;Ut(e,s?"xmlns:"+s:"xmlns",E),i.push({prefix:s,namespace:E})}if(A||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(o)){if(e.push(">"),r&&/^script$/i.test(o))for(;A;)A.data?e.push(A.data):rt(A,e,r,u,i.slice()),A=A.nextSibling;else for(;A;)rt(A,e,r,u,i.slice()),A=A.nextSibling;e.push("</",c,">")}else e.push("/>");return;case xe:case V:for(var A=t.firstChild;A;)rt(A,e,r,u,i.slice()),A=A.nextSibling;return;case ut:return Ut(e,t.name,t.value);case Nt:return e.push(t.data.replace(/[<&>]/g,qe));case Re:return e.push("<![CDATA[",t.data,"]]>");case Fe:return e.push("<!--",t.data,"-->");case Pe:var d=t.publicId,p=t.systemId;if(e.push("<!DOCTYPE ",t.name),d)e.push(" PUBLIC ",d),p&&p!="."&&e.push(" ",p),e.push(">");else if(p&&p!=".")e.push(" SYSTEM ",p,">");else{var b=t.internalSubset;b&&e.push(" [",b,"]"),e.push(">")}return;case Oe:return e.push("<?",t.target," ",t.data,"?>");case Be:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Ye(t,e,r){var u;switch(e.nodeType){case _:u=e.cloneNode(!1),u.ownerDocument=t;case V:break;case ut:r=!0;break}if(u||(u=e.cloneNode(!1)),u.ownerDocument=t,u.parentNode=null,r)for(var i=e.firstChild;i;)u.appendChild(Ye(t,i,r)),i=i.nextSibling;return u}function Lt(t,e,r){var u=new e.constructor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var n=e[i];typeof n!="object"&&n!=u[i]&&(u[i]=n)}switch(e.childNodes&&(u.childNodes=new k),u.ownerDocument=t,u.nodeType){case _:var a=e.attributes,o=u.attributes=new vt,c=a.length;o._ownerElement=u;for(var l=0;l<c;l++)u.setAttributeNode(Lt(t,a.item(l),!0));break;case ut:r=!0}if(r)for(var f=e.firstChild;f;)u.appendChild(Lt(t,f,r)),f=f.nextSibling;return u}function ze(t,e,r){t[e]=r}try{if(Object.defineProperty){let t=function(e){switch(e.nodeType){case _:case V:var r=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&r.push(t(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}};Object.defineProperty(it.prototype,"length",{get:function(){return kt(this),this.$$length}}),Object.defineProperty(T.prototype,"textContent",{get:function(){return t(this)},set:function(e){switch(this.nodeType){case _:case V:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ze=function(e,r,u){e["$$"+r]=u}}}catch{}j.DocumentType=It;j.DOMException=S;j.DOMImplementation=Le;j.Element=K;j.Node=T;j.NodeList=k;j.XMLSerializer=$e;var Rt={},je={};(function(t){var e=H.freeze;t.XML_ENTITIES=e({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=e({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
5
|
-
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),t.entityMap=t.HTML_ENTITIES})(je);var Kt={},gt=H.NAMESPACE,qt=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,fe=new RegExp("[\\-\\.0-9"+qt.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),pe=new RegExp("^"+qt.source+fe.source+"*(?::"+qt.source+fe.source+"*)?$"),ot=0,z=1,Q=2,ct=3,Z=4,J=5,lt=6,Tt=7;function nt(t,e){this.message=t,this.locator=e,Error.captureStackTrace&&Error.captureStackTrace(this,nt)}nt.prototype=new Error;nt.prototype.name=nt.name;function We(){}We.prototype={parse:function(t,e,r){var u=this.domBuilder;u.startDocument(),Ke(e,e={}),xr(t,e,r,u,this.errorHandler),u.endDocument()}};function xr(t,e,r,u,i){function n(v){if(v>65535){v-=65536;var q=55296+(v>>10),lr=56320+(v&1023);return String.fromCharCode(q,lr)}else return String.fromCharCode(v)}function a(v){var q=v.slice(1,-1);return Object.hasOwnProperty.call(r,q)?r[q]:q.charAt(0)==="#"?n(parseInt(q.substr(1).replace("x","0x"))):(i.error("entity not found:"+v),v)}function o(v){if(v>s){var q=t.substring(s,v).replace(/&#?\w+;/g,a);g&&c(s),u.characters(q,0,v-s),s=v}}function c(v,q){for(;v>=f&&(q=m.exec(t));)l=q.index,f=l+q[0].length,g.lineNumber++;g.columnNumber=v-l+1}for(var l=0,f=0,m=/.*(?:\r\n?|\n)|.*$/g,g=u.locator,D=[{currentNSMap:e}],h={},s=0;;){try{var E=t.indexOf("<",s);if(E<0){if(!t.substr(s).match(/^\s*$/)){var A=u.doc,d=A.createTextNode(t.substr(s));A.appendChild(d),u.currentElement=d}return}switch(E>s&&o(E),t.charAt(E+1)){case"/":var O=t.indexOf(">",E+3),p=t.substring(E+2,O).replace(/[ \t\n\r]+$/g,""),b=D.pop();O<0?(p=t.substring(E+2).replace(/[\s<].*/,""),i.error("end tag name: "+p+" is not complete:"+b.tagName),O=E+1+p.length):p.match(/\s</)&&(p=p.replace(/[\s<].*/,""),i.error("end tag name: "+p+" maybe not complete"),O=E+1+p.length);var x=b.localNSMap,I=b.tagName==p,W=I||b.tagName&&b.tagName.toLowerCase()==p.toLowerCase();if(W){if(u.endElement(b.uri,b.localName,p),x)for(var te in x)Object.prototype.hasOwnProperty.call(x,te)&&u.endPrefixMapping(te);I||i.fatalError("end tag name: "+p+" is not match the current start tagName:"+b.tagName)}else D.push(b);O++;break;case"?":g&&c(E),O=qr(t,E,u);break;case"!":g&&c(E),O=Lr(t,E,u,i);break;default:g&&c(E);var L=new Qe,Ot=D[D.length-1].currentNSMap,O=Pr(t,E,L,Ot,a,i),ee=L.length;if(!L.closed&&Mr(t,O,L.tagName,h)&&(L.closed=!0,r.nbsp||i.warning("unclosed xml attribute")),g&&ee){for(var cr=me(g,{}),Ft=0;Ft<ee;Ft++){var re=L[Ft];c(re.offset),re.locator=me(g,{})}u.locator=cr,ge(L,u,Ot)&&D.push(L),u.locator=g}else ge(L,u,Ot)&&D.push(L);gt.isHTML(L.uri)&&!L.closed?O=Ur(t,O,L.tagName,a,u):O++}}catch(v){if(v instanceof nt)throw v;i.error("element parse error: "+v),O=-1}O>s?s=O:o(Math.max(E,s)+1)}}function me(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function Pr(t,e,r,u,i,n){function a(g,D,h){r.attributeNames.hasOwnProperty(g)&&n.fatalError("Attribute "+g+" redefined"),r.addValue(g,D.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),h)}for(var o,c,l=++e,f=ot;;){var m=t.charAt(l);switch(m){case"=":if(f===z)o=t.slice(e,l),f=ct;else if(f===Q)f=ct;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(f===ct||f===z)if(f===z&&(n.warning('attribute value must after "="'),o=t.slice(e,l)),e=l+1,l=t.indexOf(m,e),l>0)c=t.slice(e,l),a(o,c,e-1),f=J;else throw new Error("attribute value no end '"+m+"' match");else if(f==Z)c=t.slice(e,l),a(o,c,e),n.warning('attribute "'+o+'" missed start quot('+m+")!!"),e=l+1,f=J;else throw new Error('attribute value must after "="');break;case"/":switch(f){case ot:r.setTagName(t.slice(e,l));case J:case lt:case Tt:f=Tt,r.closed=!0;case Z:case z:break;case Q:r.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return n.error("unexpected end of input"),f==ot&&r.setTagName(t.slice(e,l)),l;case">":switch(f){case ot:r.setTagName(t.slice(e,l));case J:case lt:case Tt:break;case Z:case z:c=t.slice(e,l),c.slice(-1)==="/"&&(r.closed=!0,c=c.slice(0,-1));case Q:f===Q&&(c=o),f==Z?(n.warning('attribute "'+c+'" missed quot(")!'),a(o,c,e)):((!gt.isHTML(u[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&n.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),a(c,c,e));break;case ct:throw new Error("attribute value missed!!")}return l;case"":m=" ";default:if(m<=" ")switch(f){case ot:r.setTagName(t.slice(e,l)),f=lt;break;case z:o=t.slice(e,l),f=Q;break;case Z:var c=t.slice(e,l);n.warning('attribute "'+c+'" missed quot(")!!'),a(o,c,e);case J:f=lt;break}else switch(f){case Q:r.tagName,(!gt.isHTML(u[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&n.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),a(o,o,e),e=l,f=z;break;case J:n.warning('attribute space is required"'+o+'"!!');case lt:f=z,e=l;break;case ct:f=Z,e=l;break;case Tt:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}function ge(t,e,r){for(var u=t.tagName,i=null,m=t.length;m--;){var n=t[m],a=n.qName,o=n.value,g=a.indexOf(":");if(g>0)var c=n.prefix=a.slice(0,g),l=a.slice(g+1),f=c==="xmlns"&&l;else l=a,c=null,f=a==="xmlns"&&"";n.localName=l,f!==!1&&(i==null&&(i={},Ke(r,r={})),r[f]=i[f]=o,n.uri=gt.XMLNS,e.startPrefixMapping(f,o))}for(var m=t.length;m--;){n=t[m];var c=n.prefix;c&&(c==="xml"&&(n.uri=gt.XML),c!=="xmlns"&&(n.uri=r[c||""]))}var g=u.indexOf(":");g>0?(c=t.prefix=u.slice(0,g),l=t.localName=u.slice(g+1)):(c=null,l=t.localName=u);var D=t.uri=r[c||""];if(e.startElement(D,l,u,t),t.closed){if(e.endElement(D,l,u),i)for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&e.endPrefixMapping(c)}else return t.currentNSMap=r,t.localNSMap=i,!0}function Ur(t,e,r,u,i){if(/^(?:script|textarea)$/i.test(r)){var n=t.indexOf("</"+r+">",e),a=t.substring(e+1,n);if(/[&<]/.test(a))return/^script$/i.test(r)?(i.characters(a,0,a.length),n):(a=a.replace(/&#?\w+;/g,u),i.characters(a,0,a.length),n)}return e+1}function Mr(t,e,r,u){var i=u[r];return i==null&&(i=t.lastIndexOf("</"+r+">"),i<e&&(i=t.lastIndexOf("</"+r)),u[r]=i),i<e}function Ke(t,e){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}function Lr(t,e,r,u){var i=t.charAt(e+2);switch(i){case"-":if(t.charAt(e+3)==="-"){var n=t.indexOf("-->",e+4);return n>e?(r.comment(t,e+4,n-e-4),n+3):(u.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(e+3,6)=="CDATA["){var n=t.indexOf("]]>",e+9);return r.startCDATA(),r.characters(t,e+9,n-e-9),r.endCDATA(),n+3}var a=_r(t,e),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var c=a[1][0],l=!1,f=!1;o>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],f=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(f=a[3][0]));var m=a[o-1];return r.startDTD(c,l,f),r.endDTD(),m.index+m[0].length}}return-1}function qr(t,e,r){var u=t.indexOf("?>",e);if(u){var i=t.substring(e,u).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,r.processingInstruction(i[1],i[2]),u+2):-1}return-1}function Qe(){this.attributeNames={}}Qe.prototype={setTagName:function(t){if(!pe.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,e,r){if(!pe.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:e,offset:r}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function _r(t,e){var r,u=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);r=i.exec(t);)if(u.push(r),r[1])return u}Kt.XMLReader=We;Kt.ParseError=nt;var Xr=H,Gr=j,de=je,Ze=Kt,kr=Gr.DOMImplementation,he=Xr.NAMESPACE,Vr=Ze.ParseError,$r=Ze.XMLReader;function Je(t){return t.replace(/\r[\n\u0085]/g,`
|
|
6
|
-
`).replace(/[\r\u0085\u2028]/g,`
|
|
7
|
-
`)}function tr(t){this.options=t||{locator:{}}}tr.prototype.parseFromString=function(t,e){var r=this.options,u=new $r,i=r.domBuilder||new At,n=r.errorHandler,a=r.locator,o=r.xmlns||{},c=/\/x?html?$/.test(e),l=c?de.HTML_ENTITIES:de.XML_ENTITIES;a&&i.setDocumentLocator(a),u.errorHandler=Hr(n,i,a),u.domBuilder=r.domBuilder||i,c&&(o[""]=he.HTML),o.xml=o.xml||he.XML;var f=r.normalizeLineEndings||Je;return t&&typeof t=="string"?u.parse(f(t),o,l):u.errorHandler.error("invalid doc source"),i.doc};function Hr(t,e,r){if(!t){if(e instanceof At)return e;t=e}var u={},i=t instanceof Function;r=r||{};function n(a){var o=t[a];!o&&i&&(o=t.length==2?function(c){t(a,c)}:t),u[a]=o&&function(c){o("[xmldom "+a+"] "+c+_t(r))}||function(){}}return n("warning"),n("error"),n("fatalError"),u}function At(){this.cdata=!1}function tt(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}At.prototype={startDocument:function(){this.doc=new kr().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,r,u){var i=this.doc,n=i.createElementNS(t,r||e),a=u.length;Ct(this,n),this.currentElement=n,this.locator&&tt(this.locator,n);for(var o=0;o<a;o++){var t=u.getURI(o),c=u.getValue(o),r=u.getQName(o),l=i.createAttributeNS(t,r);this.locator&&tt(u.getLocator(o),l),l.value=l.nodeValue=c,n.setAttributeNode(l)}},endElement:function(t,e,r){var u=this.currentElement;u.tagName,this.currentElement=u.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var r=this.doc.createProcessingInstruction(t,e);this.locator&&tt(this.locator,r),Ct(this,r)},ignorableWhitespace:function(t,e,r){},characters:function(t,e,r){if(t=De.apply(this,arguments),t){if(this.cdata)var u=this.doc.createCDATASection(t);else var u=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(u):/^\s*$/.test(t)&&this.doc.appendChild(u),this.locator&&tt(this.locator,u)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,r){t=De.apply(this,arguments);var u=this.doc.createComment(t);this.locator&&tt(this.locator,u),Ct(this,u)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,r){var u=this.doc.implementation;if(u&&u.createDocumentType){var i=u.createDocumentType(t,e,r);this.locator&&tt(this.locator,i),Ct(this,i),this.doc.doctype=i}},warning:function(t){console.warn("[xmldom warning] "+t,_t(this.locator))},error:function(t){console.error("[xmldom error] "+t,_t(this.locator))},fatalError:function(t){throw new Vr(t,this.locator)}};function _t(t){if(t)return`
|
|
8
|
-
@`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function De(t,e,r){return typeof t=="string"?t.substr(e,r):t.length>=e+r||e?new java.lang.String(t,e,r)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){At.prototype[t]=function(){return null}});function Ct(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}Rt.__DOMHandler=At;Rt.normalizeLineEndings=Je;Rt.DOMParser=tr;var Yr=Rt.DOMParser;/*! @name mpd-parser @version 1.3.1 @license Apache-2.0 */const Ee=t=>!!t&&typeof t=="object",y=(...t)=>t.reduce((e,r)=>(typeof r!="object"||Object.keys(r).forEach(u=>{Array.isArray(e[u])&&Array.isArray(r[u])?e[u]=e[u].concat(r[u]):Ee(e[u])&&Ee(r[u])?e[u]=y(e[u],r[u]):e[u]=r[u]}),e),{}),er=t=>Object.keys(t).map(e=>t[e]),zr=(t,e)=>{const r=[];for(let u=t;u<e;u++)r.push(u);return r},at=t=>t.reduce((e,r)=>e.concat(r),[]),rr=t=>{if(!t.length)return[];const e=[];for(let r=0;r<t.length;r++)e.push(t[r]);return e},jr=(t,e)=>t.reduce((r,u,i)=>(u[e]&&r.push(i),r),[]),Wr=(t,e)=>er(t.reduce((r,u)=>(u.forEach(i=>{r[e(i)]=i}),r),{}));var st={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};const dt=({baseUrl:t="",source:e="",range:r="",indexRange:u=""})=>{const i={uri:e,resolvedUri:N.resolveUrl(t||"",e)};if(r||u){const a=(r||u).split("-");let o=N.window$1.BigInt?N.window$1.BigInt(a[0]):parseInt(a[0],10),c=N.window$1.BigInt?N.window$1.BigInt(a[1]):parseInt(a[1],10);o<Number.MAX_SAFE_INTEGER&&typeof o=="bigint"&&(o=Number(o)),c<Number.MAX_SAFE_INTEGER&&typeof c=="bigint"&&(c=Number(c));let l;typeof c=="bigint"||typeof o=="bigint"?l=N.window$1.BigInt(c)-N.window$1.BigInt(o)+N.window$1.BigInt(1):l=c-o+1,typeof l=="bigint"&&l<Number.MAX_SAFE_INTEGER&&(l=Number(l)),i.byterange={length:l,offset:o}}return i},Kr=t=>{let e;return typeof t.offset=="bigint"||typeof t.length=="bigint"?e=N.window$1.BigInt(t.offset)+N.window$1.BigInt(t.length)-N.window$1.BigInt(1):e=t.offset+t.length-1,`${t.offset}-${e}`},Ae=t=>(t&&typeof t!="number"&&(t=parseInt(t,10)),isNaN(t)?null:t),Qr={static(t){const{duration:e,timescale:r=1,sourceDuration:u,periodDuration:i}=t,n=Ae(t.endNumber),a=e/r;return typeof n=="number"?{start:0,end:n}:typeof i=="number"?{start:0,end:i/a}:{start:0,end:u/a}},dynamic(t){const{NOW:e,clientOffset:r,availabilityStartTime:u,timescale:i=1,duration:n,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:c=1/0}=t,l=Ae(t.endNumber),f=(e+r)/1e3,m=u+a,D=f+o-m,h=Math.ceil(D*i/n),s=Math.floor((f-m-c)*i/n),E=Math.floor((f-m)*i/n);return{start:Math.max(0,s),end:typeof l=="number"?l:Math.min(h,E)}}},Zr=t=>e=>{const{duration:r,timescale:u=1,periodStart:i,startNumber:n=1}=t;return{number:n+e,duration:r/u,timeline:i,time:e*r}},Qt=t=>{const{type:e,duration:r,timescale:u=1,periodDuration:i,sourceDuration:n}=t,{start:a,end:o}=Qr[e](t),c=zr(a,o).map(Zr(t));if(e==="static"){const l=c.length-1,f=typeof i=="number"?i:n;c[l].duration=f-r/u*l}return c},ur=t=>{const{baseUrl:e,initialization:r={},sourceDuration:u,indexRange:i="",periodStart:n,presentationTime:a,number:o=0,duration:c}=t;if(!e)throw new Error(st.NO_BASE_URL);const l=dt({baseUrl:e,source:r.sourceURL,range:r.range}),f=dt({baseUrl:e,source:e,indexRange:i});if(f.map=l,c){const m=Qt(t);m.length&&(f.duration=m[0].duration,f.timeline=m[0].timeline)}else u&&(f.duration=u,f.timeline=n);return f.presentationTime=a||n,f.number=o,[f]},ir=(t,e,r)=>{const u=t.sidx.map?t.sidx.map:null,i=t.sidx.duration,n=t.timeline||0,a=t.sidx.byterange,o=a.offset+a.length,c=e.timescale,l=e.references.filter(E=>E.referenceType!==1),f=[],m=t.endList?"static":"dynamic",g=t.sidx.timeline;let D=g,h=t.mediaSequence||0,s;typeof e.firstOffset=="bigint"?s=N.window$1.BigInt(o)+e.firstOffset:s=o+e.firstOffset;for(let E=0;E<l.length;E++){const A=e.references[E],d=A.referencedSize,p=A.subsegmentDuration;let b;typeof s=="bigint"?b=s+N.window$1.BigInt(d)-N.window$1.BigInt(1):b=s+d-1;const x=`${s}-${b}`,W=ur({baseUrl:r,timescale:c,timeline:n,periodStart:g,presentationTime:D,number:h,duration:p,sourceDuration:i,indexRange:x,type:m})[0];u&&(W.map=u),f.push(W),typeof s=="bigint"?s+=N.window$1.BigInt(d):s+=d,D+=p/c,h++}return t.segments=f,t},Jr=["AUDIO","SUBTITLES"],tu=1/60,nr=t=>Wr(t,({timeline:e})=>e).sort((e,r)=>e.timeline>r.timeline?1:-1),eu=(t,e)=>{for(let r=0;r<t.length;r++)if(t[r].attributes.NAME===e)return t[r];return null},be=t=>{let e=[];return Er(t,Jr,(r,u,i,n)=>{e=e.concat(r.playlists||[])}),e},Te=({playlist:t,mediaSequence:e})=>{t.mediaSequence=e,t.segments.forEach((r,u)=>{r.number=t.mediaSequence+u})},ru=({oldPlaylists:t,newPlaylists:e,timelineStarts:r})=>{e.forEach(u=>{u.discontinuitySequence=r.findIndex(function({timeline:c}){return c===u.timeline});const i=eu(t,u.attributes.NAME);if(!i||u.sidx)return;const n=u.segments[0],a=i.segments.findIndex(function(c){return Math.abs(c.presentationTime-n.presentationTime)<tu});if(a===-1){Te({playlist:u,mediaSequence:i.mediaSequence+i.segments.length}),u.segments[0].discontinuity=!0,u.discontinuityStarts.unshift(0),(!i.segments.length&&u.timeline>i.timeline||i.segments.length&&u.timeline>i.segments[i.segments.length-1].timeline)&&u.discontinuitySequence--;return}i.segments[a].discontinuity&&!n.discontinuity&&(n.discontinuity=!0,u.discontinuityStarts.unshift(0),u.discontinuitySequence--),Te({playlist:u,mediaSequence:i.segments[a].number})})},uu=({oldManifest:t,newManifest:e})=>{const r=t.playlists.concat(be(t)),u=e.playlists.concat(be(e));return e.timelineStarts=nr([t.timelineStarts,e.timelineStarts]),ru({oldPlaylists:r,newPlaylists:u,timelineStarts:e.timelineStarts}),e},ar=t=>t&&t.uri+"-"+Kr(t.byterange),Mt=t=>{const e=t.reduce(function(u,i){return u[i.attributes.baseUrl]||(u[i.attributes.baseUrl]=[]),u[i.attributes.baseUrl].push(i),u},{});let r=[];return Object.values(e).forEach(u=>{const i=er(u.reduce((n,a)=>{const o=a.attributes.id+(a.attributes.lang||"");return n[o]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),n[o].segments.push(...a.segments)),a.attributes.contentProtection&&(n[o].attributes.contentProtection=a.attributes.contentProtection)):(n[o]=a,n[o].attributes.timelineStarts=[]),n[o].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),n},{}));r=r.concat(i)}),r.map(u=>(u.discontinuityStarts=jr(u.segments||[],"discontinuity"),u))},Zt=(t,e)=>{const r=ar(t.sidx),u=r&&e[r]&&e[r].sidx;return u&&ir(t,u,t.sidx.resolvedUri),t},iu=(t,e={})=>{if(!Object.keys(e).length)return t;for(const r in t)t[r]=Zt(t[r],e);return t},nu=({attributes:t,segments:e,sidx:r,mediaSequence:u,discontinuitySequence:i,discontinuityStarts:n},a)=>{const o={attributes:{NAME:t.id,BANDWIDTH:t.bandwidth,CODECS:t.codecs,"PROGRAM-ID":1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuitySequence:i,discontinuityStarts:n,timelineStarts:t.timelineStarts,mediaSequence:u,segments:e};return t.contentProtection&&(o.contentProtection=t.contentProtection),t.serviceLocation&&(o.attributes.serviceLocation=t.serviceLocation),r&&(o.sidx=r),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},au=({attributes:t,segments:e,mediaSequence:r,discontinuityStarts:u,discontinuitySequence:i})=>{typeof e>"u"&&(e=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);const n={NAME:t.id,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1};t.codecs&&(n.CODECS=t.codecs);const a={attributes:n,uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:u,discontinuitySequence:i,mediaSequence:r,segments:e};return t.serviceLocation&&(a.attributes.serviceLocation=t.serviceLocation),a},su=(t,e={},r=!1)=>{let u;const i=t.reduce((n,a)=>{const o=a.attributes.role&&a.attributes.role.value||"",c=a.attributes.lang||"";let l=a.attributes.label||"main";if(c&&!a.attributes.label){const m=o?` (${o})`:"";l=`${a.attributes.lang}${m}`}n[l]||(n[l]={language:c,autoselect:!0,default:o==="main",playlists:[],uri:""});const f=Zt(nu(a,r),e);return n[l].playlists.push(f),typeof u>"u"&&o==="main"&&(u=a,u.default=!0),n},{});if(!u){const n=Object.keys(i)[0];i[n].default=!0}return i},ou=(t,e={})=>t.reduce((r,u)=>{const i=u.attributes.label||u.attributes.lang||"text",n=u.attributes.lang||"und";return r[i]||(r[i]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),r[i].playlists.push(Zt(au(u),e)),r},{}),cu=t=>t.reduce((e,r)=>(r&&r.forEach(u=>{const{channel:i,language:n}=u;e[n]={autoselect:!1,default:!1,instreamId:i,language:n},u.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=u.aspectRatio),u.hasOwnProperty("easyReader")&&(e[n].easyReader=u.easyReader),u.hasOwnProperty("3D")&&(e[n]["3D"]=u["3D"])}),e),{}),lu=({attributes:t,segments:e,sidx:r,discontinuityStarts:u})=>{const i={attributes:{NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth,"PROGRAM-ID":1},uri:"",endList:t.type==="static",timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,discontinuityStarts:u,timelineStarts:t.timelineStarts,segments:e};return t.frameRate&&(i.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(i.contentProtection=t.contentProtection),t.serviceLocation&&(i.attributes.serviceLocation=t.serviceLocation),r&&(i.sidx=r),i},fu=({attributes:t})=>t.mimeType==="video/mp4"||t.mimeType==="video/webm"||t.contentType==="video",pu=({attributes:t})=>t.mimeType==="audio/mp4"||t.mimeType==="audio/webm"||t.contentType==="audio",mu=({attributes:t})=>t.mimeType==="text/vtt"||t.contentType==="text",gu=(t,e)=>{t.forEach(r=>{r.mediaSequence=0,r.discontinuitySequence=e.findIndex(function({timeline:u}){return u===r.timeline}),r.segments&&r.segments.forEach((u,i)=>{u.number=i})})},Ce=t=>t?Object.keys(t).reduce((e,r)=>{const u=t[r];return e.concat(u.playlists)},[]):[],du=({dashPlaylists:t,locations:e,contentSteering:r,sidxMapping:u={},previousManifest:i,eventStream:n})=>{if(!t.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:c,minimumUpdatePeriod:l}=t[0].attributes,f=Mt(t.filter(fu)).map(lu),m=Mt(t.filter(pu)),g=Mt(t.filter(mu)),D=t.map(b=>b.attributes.captionServices).filter(Boolean),h={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:iu(f,u)};l>=0&&(h.minimumUpdatePeriod=l*1e3),e&&(h.locations=e),r&&(h.contentSteering=r),o==="dynamic"&&(h.suggestedPresentationDelay=c),n&&n.length>0&&(h.eventStream=n);const s=h.playlists.length===0,E=m.length?su(m,u,s):null,A=g.length?ou(g,u):null,d=f.concat(Ce(E),Ce(A)),p=d.map(({timelineStarts:b})=>b);return h.timelineStarts=nr(p),gu(d,h.timelineStarts),E&&(h.mediaGroups.AUDIO.audio=E),A&&(h.mediaGroups.SUBTITLES.subs=A),D.length&&(h.mediaGroups["CLOSED-CAPTIONS"].cc=cu(D)),i?uu({oldManifest:i,newManifest:h}):h},hu=(t,e,r)=>{const{NOW:u,clientOffset:i,availabilityStartTime:n,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:c=0}=t,l=(u+i)/1e3,f=n+o,g=l+c-f;return Math.ceil((g*a-e)/r)},sr=(t,e)=>{const{type:r,minimumUpdatePeriod:u=0,media:i="",sourceDuration:n,timescale:a=1,startNumber:o=1,periodStart:c}=t,l=[];let f=-1;for(let m=0;m<e.length;m++){const g=e[m],D=g.d,h=g.r||0,s=g.t||0;f<0&&(f=s),s&&s>f&&(f=s);let E;if(h<0){const p=m+1;p===e.length?r==="dynamic"&&u>0&&i.indexOf("$Number$")>0?E=hu(t,f,D):E=(n*a-f)/D:E=(e[p].t-f)/D}else E=h+1;const A=o+l.length+E;let d=o+l.length;for(;d<A;)l.push({number:d,duration:D/a,time:f,timeline:c}),f+=D,d++}return l},Du=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Eu=t=>(e,r,u,i)=>{if(e==="$$")return"$";if(typeof t[r]>"u")return e;const n=""+t[r];return r==="RepresentationID"||(u?i=parseInt(i,10):i=1,n.length>=i)?n:`${new Array(i-n.length+1).join("0")}${n}`},Ne=(t,e)=>t.replace(Du,Eu(e)),Au=(t,e)=>!t.duration&&!e?[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]:t.duration?Qt(t):sr(t,e),bu=(t,e)=>{const r={RepresentationID:t.id,Bandwidth:t.bandwidth||0},{initialization:u={sourceURL:"",range:""}}=t,i=dt({baseUrl:t.baseUrl,source:Ne(u.sourceURL,r),range:u.range});return Au(t,e).map(a=>{r.Number=a.number,r.Time=a.time;const o=Ne(t.media||"",r),c=t.timescale||1,l=t.presentationTimeOffset||0,f=t.periodStart+(a.time-l)/c;return{uri:o,timeline:a.timeline,duration:a.duration,resolvedUri:N.resolveUrl(t.baseUrl||"",o),map:i,number:a.number,presentationTime:f}})},Tu=(t,e)=>{const{baseUrl:r,initialization:u={}}=t,i=dt({baseUrl:r,source:u.sourceURL,range:u.range}),n=dt({baseUrl:r,source:e.media,range:e.mediaRange});return n.map=i,n},Cu=(t,e)=>{const{duration:r,segmentUrls:u=[],periodStart:i}=t;if(!r&&!e||r&&e)throw new Error(st.SEGMENT_TIME_UNSPECIFIED);const n=u.map(c=>Tu(t,c));let a;return r&&(a=Qt(t)),e&&(a=sr(t,e)),a.map((c,l)=>{if(n[l]){const f=n[l],m=t.timescale||1,g=t.presentationTimeOffset||0;return f.timeline=c.timeline,f.duration=c.duration,f.number=c.number,f.presentationTime=i+(c.time-g)/m,f}}).filter(c=>c)},Nu=({attributes:t,segmentInfo:e})=>{let r,u;e.template?(u=bu,r=y(t,e.template)):e.base?(u=ur,r=y(t,e.base)):e.list&&(u=Cu,r=y(t,e.list));const i={attributes:t};if(!u)return i;const n=u(r,e.segmentTimeline);if(r.duration){const{duration:a,timescale:o=1}=r;r.duration=a/o}else n.length?r.duration=n.reduce((a,o)=>Math.max(a,Math.ceil(o.duration)),0):r.duration=0;return i.attributes=r,i.segments=n,e.base&&r.indexRange&&(i.sidx=n[0],i.segments=[]),i},vu=t=>t.map(Nu),C=(t,e)=>rr(t.childNodes).filter(({tagName:r})=>r===e),bt=t=>t.textContent.trim(),Su=t=>parseFloat(t.split("/").reduce((e,r)=>e/r)),et=t=>{const o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(t);if(!o)return 0;const[c,l,f,m,g,D]=o.slice(1);return parseFloat(c||0)*31536e3+parseFloat(l||0)*2592e3+parseFloat(f||0)*86400+parseFloat(m||0)*3600+parseFloat(g||0)*60+parseFloat(D||0)},wu=t=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),Date.parse(t)),ve={mediaPresentationDuration(t){return et(t)},availabilityStartTime(t){return wu(t)/1e3},minimumUpdatePeriod(t){return et(t)},suggestedPresentationDelay(t){return et(t)},type(t){return t},timeShiftBufferDepth(t){return et(t)},start(t){return et(t)},width(t){return parseInt(t,10)},height(t){return parseInt(t,10)},bandwidth(t){return parseInt(t,10)},frameRate(t){return Su(t)},startNumber(t){return parseInt(t,10)},timescale(t){return parseInt(t,10)},presentationTimeOffset(t){return parseInt(t,10)},duration(t){const e=parseInt(t,10);return isNaN(e)?et(t):e},d(t){return parseInt(t,10)},t(t){return parseInt(t,10)},r(t){return parseInt(t,10)},presentationTime(t){return parseInt(t,10)},DEFAULT(t){return t}},w=t=>t&&t.attributes?rr(t.attributes).reduce((e,r)=>{const u=ve[r.name]||ve.DEFAULT;return e[r.name]=u(r.value),e},{}):{},Iu={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},Bt=(t,e)=>e.length?at(t.map(function(r){return e.map(function(u){const i=bt(u),n=N.resolveUrl(r.baseUrl,i),a=y(w(u),{baseUrl:n});return n!==i&&!a.serviceLocation&&r.serviceLocation&&(a.serviceLocation=r.serviceLocation),a})})):t,Jt=t=>{const e=C(t,"SegmentTemplate")[0],r=C(t,"SegmentList")[0],u=r&&C(r,"SegmentURL").map(m=>y({tag:"SegmentURL"},w(m))),i=C(t,"SegmentBase")[0],n=r||e,a=n&&C(n,"SegmentTimeline")[0],o=r||i||e,c=o&&C(o,"Initialization")[0],l=e&&w(e);l&&c?l.initialization=c&&w(c):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});const f={template:l,segmentTimeline:a&&C(a,"S").map(m=>w(m)),list:r&&y(w(r),{segmentUrls:u,initialization:w(c)}),base:i&&y(w(i),{initialization:w(c)})};return Object.keys(f).forEach(m=>{f[m]||delete f[m]}),f},yu=(t,e,r)=>u=>{const i=C(u,"BaseURL"),n=Bt(e,i),a=y(t,w(u)),o=Jt(u);return n.map(c=>({segmentInfo:y(r,o),attributes:y(a,c)}))},Ru=t=>t.reduce((e,r)=>{const u=w(r);u.schemeIdUri&&(u.schemeIdUri=u.schemeIdUri.toLowerCase());const i=Iu[u.schemeIdUri];if(i){e[i]={attributes:u};const n=C(r,"cenc:pssh")[0];if(n){const a=bt(n);e[i].pssh=a&&Se(a)}}return e},{}),Bu=t=>{if(t.schemeIdUri==="urn:scte:dash:cc:cea-608:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(r=>{let u,i;return i=r,/^CC\d=/.test(r)?[u,i]=r.split("="):/^CC\d$/.test(r)&&(u=r),{channel:u,language:i}});if(t.schemeIdUri==="urn:scte:dash:cc:cea-708:2015")return(typeof t.value!="string"?[]:t.value.split(";")).map(r=>{const u={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(r)){const[i,n=""]=r.split("=");u.channel=i,u.language=r,n.split(",").forEach(a=>{const[o,c]=a.split(":");o==="lang"?u.language=c:o==="er"?u.easyReader=Number(c):o==="war"?u.aspectRatio=Number(c):o==="3D"&&(u["3D"]=Number(c))})}else u.language=r;return u.channel&&(u.channel="SERVICE"+u.channel),u})},Ou=t=>at(C(t.node,"EventStream").map(e=>{const r=w(e),u=r.schemeIdUri;return C(e,"Event").map(i=>{const n=w(i),a=n.presentationTime||0,o=r.timescale||1,c=n.duration||0,l=a/o+t.attributes.start;return{schemeIdUri:u,value:r.value,id:n.id,start:l,end:l+c/o,messageData:bt(i)||n.messageData,contentEncoding:r.contentEncoding,presentationTimeOffset:r.presentationTimeOffset||0}})})),Fu=(t,e,r)=>u=>{const i=w(u),n=Bt(e,C(u,"BaseURL")),a=C(u,"Role")[0],o={role:w(a)};let c=y(t,i,o);const l=C(u,"Accessibility")[0],f=Bu(w(l));f&&(c=y(c,{captionServices:f}));const m=C(u,"Label")[0];if(m&&m.childNodes.length){const E=m.childNodes[0].nodeValue.trim();c=y(c,{label:E})}const g=Ru(C(u,"ContentProtection"));Object.keys(g).length&&(c=y(c,{contentProtection:g}));const D=Jt(u),h=C(u,"Representation"),s=y(r,D);return at(h.map(yu(c,n,s)))},xu=(t,e)=>(r,u)=>{const i=Bt(e,C(r.node,"BaseURL")),n=y(t,{periodStart:r.attributes.start});typeof r.attributes.duration=="number"&&(n.periodDuration=r.attributes.duration);const a=C(r.node,"AdaptationSet"),o=Jt(r.node);return at(a.map(Fu(n,i,o)))},Pu=(t,e)=>{if(t.length>1&&e({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!t.length)return null;const r=y({serverURL:bt(t[0])},w(t[0]));return r.queryBeforeStart=r.queryBeforeStart==="true",r},Uu=({attributes:t,priorPeriodAttributes:e,mpdType:r})=>typeof t.start=="number"?t.start:e&&typeof e.start=="number"&&typeof e.duration=="number"?e.start+e.duration:!e&&r==="static"?0:null,Mu=(t,e={})=>{const{manifestUri:r="",NOW:u=Date.now(),clientOffset:i=0,eventHandler:n=function(){}}=e,a=C(t,"Period");if(!a.length)throw new Error(st.INVALID_NUMBER_OF_PERIOD);const o=C(t,"Location"),c=w(t),l=Bt([{baseUrl:r}],C(t,"BaseURL")),f=C(t,"ContentSteering");c.type=c.type||"static",c.sourceDuration=c.mediaPresentationDuration||0,c.NOW=u,c.clientOffset=i,o.length&&(c.locations=o.map(bt));const m=[];return a.forEach((g,D)=>{const h=w(g),s=m[D-1];h.start=Uu({attributes:h,priorPeriodAttributes:s?s.attributes:null,mpdType:c.type}),m.push({node:g,attributes:h})}),{locations:c.locations,contentSteeringInfo:Pu(f,n),representationInfo:at(m.map(xu(c,l))),eventStream:at(m.map(Ou))}},or=t=>{if(t==="")throw new Error(st.DASH_EMPTY_MANIFEST);const e=new Yr;let r,u;try{r=e.parseFromString(t,"application/xml"),u=r&&r.documentElement.tagName==="MPD"?r.documentElement:null}catch{}if(!u||u&&u.getElementsByTagName("parsererror").length>0)throw new Error(st.DASH_INVALID_XML);return u},Lu=t=>{const e=C(t,"UTCTiming")[0];if(!e)return null;const r=w(e);switch(r.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":r.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":r.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":r.method="DIRECT",r.value=Date.parse(r.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(st.UNSUPPORTED_UTC_TIMING_SCHEME)}return r},qu=(t,e={})=>{const r=Mu(or(t),e),u=vu(r.representationInfo);return du({dashPlaylists:u,locations:r.locations,contentSteering:r.contentSteeringInfo,sidxMapping:e.sidxMapping,previousManifest:e.previousManifest,eventStream:r.eventStream})},_u=t=>Lu(or(t));exports.Parser=Dr;exports.addSidxSegmentsToPlaylist$1=ir;exports.generateSidxKey=ar;exports.parse=qu;exports.parseUTCTiming=_u;
|
|
9
|
-
//# sourceMappingURL=video-utils-CSAdDJJN.js.map
|