(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[375],{9134:function(t,e,r){"use strict";r.d(e,{Su:function(){return i},fS:function(){return o}}),r(3893);var n=r(23999),i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,r=Number(t);((0,n.i2)(r)||!(0,n.xV)(r))&&(r=0);var i=Number(e);(0,n.i2)(i)&&(i=8);var o="";if((0,n.U)(r)){if(i>0){o="".concat(r,".");for(var a=0;a=0||o.indexOf("E-")>=0)&&(o=r.toFixed(i+1));var s=(o=o.split("."))[0];if(0===i)return"".concat(s);var u=o[1];if(u.length1&&void 0!==arguments[1]?arguments[1]:0,r=i(t,e),n="(\\d)(?=(\\d{3})+\\.)";return -1===r.indexOf(".")&&(n="(\\d)(?=(\\d{3})+$)"),r.replace(RegExp(n,"g"),"$1,")}},23999:function(t,e,r){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.d(e,{xV:function(){return D},mf:function(){return O},U:function(){return I},i2:function(){return w},o8:function(){return m}});var i,o=Object.prototype,a=(void 0===r.g?"undefined":n(r.g))=="object"&&r.g&&r.g.Object===Object&&r.g,s=("undefined"==typeof self?"undefined":n(self))=="object"&&self&&self.Object===Object&&self,u=(a||s||Function("return this")()).isFinite,l=0/0,c=1/0,f=Symbol?Symbol.toStringTag:void 0,p=o.toString,d=(o.propertyIsEnumerable,o.hasOwnProperty),h=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,v=/^0o[0-7]+$/i,M=parseInt,_=o.toString,m=function(t){return void 0===t},b=function(t){return!!t&&"object"==n(t)},j=function(t){var e=n(t);return!!t&&("object"==e||"function"==e)},x=function(t){if("number"==typeof t)return t;if("symbol"==n(e=t)||b(e)&&"[object Symbol]"==_.call(e))return l;if(j(t)){var e,r="function"==typeof t.valueOf?t.valueOf():t;t=j(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(h,"");var i=g.test(t);return i||v.test(t)?M(t.slice(2),i?2:8):y.test(t)?l:+t},N=function(t){var e,r=(e=t)?(e=x(e))===c||e===-c?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0,n=r%1;return r==r?n?r-n:r:0},w=function(t){return("number"==typeof t||b(t)&&"[object Number]"==_.call(t))&&t!=+t},D=function(t){return"number"==typeof t&&u(t)},I=function(t){return"number"==typeof t&&t==N(t)},O=function(t){var e=j(t)?_.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e};b(i=function(){return arguments}())&&(null==i||(f&&f in Object(i)?function(t){var e=d.call(t,f),r=t[f];try{t[f]=void 0;var n=!0}catch(t){}var i=p.call(t);return n&&(e?t[f]=r:delete t[f]),i}(i):_(i)))},69198:function(t,e,r){"use strict";var n=r(99854),i=r(429);e.Z=n.z,(0,i.bh)("Button")},47039:function(t,e,r){"use strict";r.d(e,{Z:function(){return k}});var n,i,o,a,s,u,l,c,f,p,d,h={};r.r(h),r.d(h,{center:function(){return T},darkTheme:function(){return m},dashed:function(){return N},divider:function(){return b},dividerContent:function(){return D},end:function(){return O},horizontal:function(){return j},lightTheme:function(){return _},solid:function(){return w},start:function(){return I},vertical:function(){return x}});var y=r(429);r(15312);var g=r(40897),v=r(29517);function M(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var _=(0,v.iv)(n||(n=M(["\n --line-color: var(--bds-gray-ele-borde, #e9edf2);\n --color: var(--bds-gray-t3, #71757a);\n"]))),m=(0,v.iv)(i||(i=M(["\n --line-color: var(--bds-gray-ele-border, #404347);\n --color: var(--bds-gray-t3, #71757a);\n"]))),b=(0,v.iv)(o||(o=M(["\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 16px 0;\n font-family: var(--bds-font-family);\n color: var(--color);\n\n &::before {\n content: '';\n flex: 1;\n min-width: 10px;\n border-bottom: 1px var(--border-style) var(--line-color);\n }\n &::after {\n content: '';\n flex: 1;\n min-width: 10px;\n border-bottom: 1px var(--border-style) var(--line-color);\n }\n"]))),j=(0,v.iv)(a||(a=M(["\n flex-direction: row;\n"]))),x=(0,v.iv)(s||(s=M(["\n flex-direction: column;\n\n &::before,\n &::after {\n border-bottom: none;\n border-left: 1px var(--border-style) var(--line-color);\n }\n"]))),N=(0,v.iv)(u||(u=M(["\n --border-style: dashed;\n"]))),w=(0,v.iv)(l||(l=M(["\n --border-style: solid;\n"]))),D=(0,v.iv)(c||(c=M(["\n white-space: nowrap;\n margin-left: 0.5em;\n margin-right: 0.5em;\n"]))),I=(0,v.iv)(f||(f=M(["\n justify-content: flex-start;\n &:before {\n flex: 0;\n }\n"]))),O=(0,v.iv)(p||(p=M(["\n justify-content: flex-end;\n &:after {\n flex: 0;\n }\n"]))),T=(0,v.iv)(d||(d=M(["\n justify-content: center;\n"]))),A=r(26657);function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,c),_=g&&"small"===s&&[h.TRADE_LONG,h.TRADE_SHORT,h.TRADE_SECONDARY].includes(a),m="".concat(void 0!==v&&v?"w-full":""),b=_?(0,u.jsx)("button",p(p({className:(0,n.cn)(d({variant:a,size:s,className:r}),m,"pt-[4px] pb-[6px]"),ref:e},M),{},{children:(0,u.jsxs)("div",{className:"btn-content flex flex-col",children:[(0,u.jsx)("div",{className:"inner-children leading-[20px]",children:M.children}),(0,u.jsx)("div",{className:"subtitle font-regular text-xs opacity-70 leading-[10px]",children:g})]})})):(0,u.jsxs)("button",p(p({className:(0,n.cn)(d({variant:a,size:s,className:r}),m,{"bg-brandColor-bds-brand-600-hover":f&&a===h.PRIMARY,"text-base-bds-gray-t2":f&&a===h.SECONDARY,"text-brandColor-bds-brand-700-normal":f&&a===h.SECONDARY_BRAND,"bg-greenColor-bds-green-600-hover":f&&a===h.TRADE_LONG,"bg-redColor-bds-red-600-hover":f&&a===h.TRADE_SHORT,"bg-base-bds-gray-ele-line":f&&a===h.TRADE_SECONDARY,"pointer-events-none":f}),ref:e},M),{},{children:[f?(0,u.jsx)(o.HoD,{className:"mr-2 rtl:ml-2 animate-spin"}):null,M.children]}));return(0,u.jsx)(i.Z,{component:"Button",children:b})});y.displayName="Button"},40897:function(t,e,r){"use strict";r.d(e,{F:function(){return a}});var n=r(15312);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=1e3&&t<1e4?t:n.format(t)},u=function(t,e){if(""===e||null==e||0>+e||isNaN(e))return null==t?void 0:t.toString();var r=e?+e:0,n=t.toString(),i=n.indexOf(".");return -1!==i&&(n=n.slice(0,i+1+r),r<=0)?n.split(".")[0]:n},l=function(t,e,r){var n=a(e);return"TYPE1"===n?r&&!t.includes(",")?t.replace(/[,,]/g,"."):t.replace(/\./g,"").replace(/[,,]/g,"."):"TYPE2"===n?t.endsWith(".")?t.replace(/[,.]+$/g,""):t.replace(/\s/g,"").replace(/[,,]/g,"."):t.replace(/,/g,"").replace(/[。]/g,".")},c=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";if(0===t)return"0";if(!t||isNaN(+t))return t;var i=a(n),o=["TYPE1","TYPE2"].includes(i)?",":".",l=(null===(r=u(t,e))||void 0===r?void 0:r.replace(/\./g,o)).split(o);return l[0]=s(l[0],i),l.join(o)}},429:function(t,e,r){"use strict";r.d(e,{cn:function(){return U},kz:function(){return R},KX:function(){return Q},bh:function(){return Y},ey:function(){return P}});var n=r(22544),i=r(62070),o=r.n(i),a=/^\[(.+)\]$/;function s(t,e){var r=t;return e.split("-").forEach(function(t){r.nextPart.has(t)||r.nextPart.set(t,{nextPart:new Map,validators:[]}),r=r.nextPart.get(t)}),r}var u=/\s+/;function l(){for(var t,e,r=0,n="";rt&&(e=0,n=r,r=new Map)}return{get:function(t){var e=r.get(t);return void 0!==e?e:void 0!==(e=n.get(t))?(i(t,e),e):void 0},set:function(t,e){r.has(t)?r.set(t,e):i(t,e)}}}(t.cacheSize),splitModifiers:(r=1===(e=t.separator||":").length,n=e[0],i=e.length,function(t){for(var o,a=[],s=0,u=0,l=0;lu?o-u:void 0}}),...(c=t.theme,f=t.prefix,p={nextPart:new Map,validators:[]},(d=Object.entries(t.classGroups),f?d.map(function(t){return[t[0],t[1].map(function(t){return"string"==typeof t?f+t:"object"==typeof t?Object.fromEntries(Object.entries(t).map(function(t){return[f+t[0],t[1]]})):t})]}):d).forEach(function(t){var e=t[0];(function t(e,r,n,i){e.forEach(function(e){if("string"==typeof e){(""===e?r:s(r,e)).classGroupId=n;return}if("function"==typeof e){if(e.isThemeGetter){t(e(i),r,n,i);return}r.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(function(e){var o=e[0];t(e[1],s(r,o),n,i)})})})(t[1],p,e,c)}),o=t.conflictingClassGroups,l=void 0===(u=t.conflictingClassGroupModifiers)?{}:u,{getClassGroupId:function(t){var e=t.split("-");return""===e[0]&&1!==e.length&&e.shift(),function t(e,r){if(0===e.length)return r.classGroupId;var n=e[0],i=r.nextPart.get(n),o=i?t(e.slice(1),i):void 0;if(o)return o;if(0!==r.validators.length){var a=e.join("-");return r.validators.find(function(t){return(0,t.validator)(a)})?.classGroupId}}(e,p)||function(t){if(a.test(t)){var e=a.exec(t)[1],r=e?.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}}(t)},getConflictingClassGroupIds:function(t,e){var r=o[t]||[];return e&&l[t]?[].concat(r,l[t]):r}})}}(i.slice(1).reduce(function(t,e){return e(t)},o()))).cache.get,r=t.cache.set,c=f,f(n)};function f(n){var i,o,a,s,l,c=e(n);if(c)return c;var f=(o=(i=t).splitModifiers,a=i.getClassGroupId,s=i.getConflictingClassGroupIds,l=new Set,n.trim().split(u).map(function(t){var e=o(t),r=e.modifiers,n=e.hasImportantModifier,i=e.baseClassName,s=e.maybePostfixModifierPosition,u=a(s?i.substring(0,s):i),l=!!s;if(!u){if(!s||!(u=a(i)))return{isTailwindClass:!1,originalClassName:t};l=!1}var c=(function(t){if(t.length<=1)return t;var e=[],r=[];return t.forEach(function(t){"["===t[0]?(e.push.apply(e,r.sort().concat([t])),r=[]):r.push(t)}),e.push.apply(e,r.sort()),e})(r).join(":");return{isTailwindClass:!0,modifierId:n?c+"!":c,classGroupId:u,originalClassName:t,hasPostfixModifier:l}}).reverse().filter(function(t){if(!t.isTailwindClass)return!0;var e=t.modifierId,r=t.classGroupId,n=t.hasPostfixModifier,i=e+r;return!l.has(i)&&(l.add(i),s(r,n).forEach(function(t){return l.add(e+t)}),!0)}).reverse().map(function(t){return t.originalClassName}).join(" "));return r(n,f),f}return function(){return c(l.apply(null,arguments))}}(function(){var t=c("colors"),e=c("spacing"),r=c("blur"),n=c("brightness"),i=c("borderColor"),o=c("borderRadius"),a=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),l=c("grayscale"),f=c("hueRotate"),p=c("invert"),d=c("gap"),h=c("gradientColorStops"),y=c("gradientColorStopPositions"),g=c("inset"),A=c("margin"),z=c("opacity"),k=c("padding"),S=c("saturate"),E=c("scale"),L=c("sepia"),C=c("skew"),U=c("space"),P=c("translate"),Q=function(){return["auto","contain","none"]},Y=function(){return["auto","hidden","clip","visible","scroll"]},R=function(){return["auto",e]},F=function(){return["",v]},B=function(){return["auto",x,D]},Z=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},q=function(){return["solid","dashed","dotted","double","none"]},H=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},V=function(){return["start","end","center","between","around","evenly","stretch"]},W=function(){return["","0",D]},G=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},$=function(){return[x,j]},J=function(){return[x,D]};return{cacheSize:500,theme:{colors:[I],spacing:[v],blur:["none","",O,M],brightness:$(),borderColor:[t],borderRadius:["none","","full",O,M],borderSpacing:[e],borderWidth:F(),contrast:$(),grayscale:W(),hueRotate:J(),invert:W(),gap:[e],gradientColorStops:[t],gradientColorStopPositions:[N,M],inset:R(),margin:R(),opacity:$(),padding:[e],saturate:$(),scale:$(),sepia:W(),skew:J(),space:[e],translate:[e]},classGroups:{aspect:[{aspect:["auto","square","video",D]}],container:["container"],columns:[{columns:[O]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(Z(),[D])}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",w]}],basis:[{basis:R()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",D]}],grow:[{grow:W()}],shrink:[{shrink:W()}],order:[{order:["first","last","none",w]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:[w]},D]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[w]},D]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",D]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",D]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal"].concat(V())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(V(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(V(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[A]}],mx:[{mx:[A]}],my:[{my:[A]}],ms:[{ms:[A]}],me:[{me:[A]}],mt:[{mt:[A]}],mr:[{mr:[A]}],mb:[{mb:[A]}],ml:[{ml:[A]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",e]}],"min-w":[{"min-w":["min","max","fit",v]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[O]},O,M]}],h:[{h:[e,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",v]}],"max-h":[{"max-h":[e,"min","max","fit"]}],"font-size":[{text:["base",O,M]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",j]}],"font-family":[{font:[I]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",x,j]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",v]}],"list-image":[{"list-image":["none",D]}],"list-style-type":[{list:["none","disc","decimal",D]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[z]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(q(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",v]}],"underline-offset":[{"underline-offset":["auto",v]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[e]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[z]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(Z(),[m])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},b]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[z]}],"border-style":[{border:[].concat(q(),["hidden"])}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[z]}],"divide-style":[{divide:q()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(q())}],"outline-offset":[{"outline-offset":[v]}],"outline-w":[{outline:[v]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[z]}],"ring-offset-w":[{"ring-offset":[v]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",O,T]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[z]}],"mix-blend":[{"mix-blend":H()}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",O,D]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[S]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[z]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",D]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",D]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",D]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[w,D]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",D]}],accent:[{accent:["auto",t]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[e]}],"scroll-mx":[{"scroll-mx":[e]}],"scroll-my":[{"scroll-my":[e]}],"scroll-ms":[{"scroll-ms":[e]}],"scroll-me":[{"scroll-me":[e]}],"scroll-mt":[{"scroll-mt":[e]}],"scroll-mr":[{"scroll-mr":[e]}],"scroll-mb":[{"scroll-mb":[e]}],"scroll-ml":[{"scroll-ml":[e]}],"scroll-p":[{"scroll-p":[e]}],"scroll-px":[{"scroll-px":[e]}],"scroll-py":[{"scroll-py":[e]}],"scroll-ps":[{"scroll-ps":[e]}],"scroll-pe":[{"scroll-pe":[e]}],"scroll-pt":[{"scroll-pt":[e]}],"scroll-pr":[{"scroll-pr":[e]}],"scroll-pb":[{"scroll-pb":[e]}],"scroll-pl":[{"scroll-pl":[e]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[v,j]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function U(){for(var t=arguments.length,e=Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:2;e();var o=(0,tf.Z)(function(){i<=1?n({isCanceled:function(){return o!==t.current}}):r(n,i-1)});t.current=o},e]},td=[V,W,G,"end"],th=[V,$];function ty(t){return t===G||"end"===t}var tg=function(t,e,r){var n=(0,R.Z)(H),i=(0,T.Z)(n,2),o=i[0],a=i[1],s=tp(),u=(0,T.Z)(s,2),l=u[0],c=u[1],f=e?th:td;return tc(function(){if(o!==H&&"end"!==o){var t=f.indexOf(o),e=f[t+1],n=r(o);!1===n?a(e,!0):e&&l(function(t){function r(){t.isCanceled()||a(e,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[t,o]),h.useEffect(function(){return function(){c()}},[]),[function(){a(V,!0)},o]},tv=(u=to,"object"===(0,A.Z)(to)&&(u=to.transitionSupport),(l=h.forwardRef(function(t,e){var r=t.visible,n=void 0===r||r,i=t.removeOnLeave,o=void 0===i||i,a=t.forceRender,s=t.children,l=t.motionName,c=t.leavedClassName,f=t.eventProps,p=h.useContext(L).motion,d=!!(t.motionName&&u&&!1!==p),y=(0,h.useRef)(),g=(0,h.useRef)(),v=function(t,e,r,n){var i=n.motionEnter,o=void 0===i||i,a=n.motionAppear,s=void 0===a||a,u=n.motionLeave,l=void 0===u||u,c=n.motionDeadline,f=n.motionLeaveImmediately,p=n.onAppearPrepare,d=n.onEnterPrepare,y=n.onLeavePrepare,g=n.onAppearStart,v=n.onEnterStart,M=n.onLeaveStart,_=n.onAppearActive,m=n.onEnterActive,b=n.onLeaveActive,j=n.onAppearEnd,x=n.onEnterEnd,N=n.onLeaveEnd,w=n.onVisibleChanged,D=(0,R.Z)(),A=(0,T.Z)(D,2),z=A[0],k=A[1],S=(0,R.Z)(F),E=(0,T.Z)(S,2),L=E[0],C=E[1],U=(0,R.Z)(null),P=(0,T.Z)(U,2),Q=P[0],Y=P[1],H=(0,h.useRef)(!1),J=(0,h.useRef)(null),X=(0,h.useRef)(!1);function K(){C(F,!0),Y(null,!0)}function tt(t){var e,n=r();if(!t||t.deadline||t.target===n){var i=X.current;L===B&&i?e=null==j?void 0:j(n,t):L===Z&&i?e=null==x?void 0:x(n,t):L===q&&i&&(e=null==N?void 0:N(n,t)),L!==F&&i&&!1!==e&&K()}}var te=tl(tt),tr=(0,T.Z)(te,1)[0],tn=function(t){var e,r,n;switch(t){case B:return e={},(0,I.Z)(e,V,p),(0,I.Z)(e,W,g),(0,I.Z)(e,G,_),e;case Z:return r={},(0,I.Z)(r,V,d),(0,I.Z)(r,W,v),(0,I.Z)(r,G,m),r;case q:return n={},(0,I.Z)(n,V,y),(0,I.Z)(n,W,M),(0,I.Z)(n,G,b),n;default:return{}}},ti=h.useMemo(function(){return tn(L)},[L]),to=tg(L,!t,function(t){if(t===V){var e,n=ti[V];return!!n&&n(r())}return tu in ti&&Y((null===(e=ti[tu])||void 0===e?void 0:e.call(ti,r(),null))||null),tu===G&&(tr(r()),c>0&&(clearTimeout(J.current),J.current=setTimeout(function(){tt({deadline:!0})},c))),tu===$&&K(),!0}),ta=(0,T.Z)(to,2),ts=ta[0],tu=ta[1],tf=ty(tu);X.current=tf,tc(function(){k(e);var r,n=H.current;H.current=!0,!n&&e&&s&&(r=B),n&&e&&o&&(r=Z),(n&&!e&&l||!n&&f&&!e&&l)&&(r=q);var i=tn(r);r&&(t||i[V])?(C(r),ts()):C(F)},[e]),(0,h.useEffect)(function(){(L!==B||s)&&(L!==Z||o)&&(L!==q||l)||C(F)},[s,o,l]),(0,h.useEffect)(function(){return function(){H.current=!1,clearTimeout(J.current)}},[]);var tp=h.useRef(!1);(0,h.useEffect)(function(){z&&(tp.current=!0),void 0!==z&&L===F&&((tp.current||z)&&(null==w||w(z)),tp.current=!0)},[z,L]);var td=Q;return ti[V]&&tu===W&&(td=(0,O.Z)({transition:"none"},td)),[L,tu,td,null!=z?z:e]}(d,n,function(){try{return y.current instanceof HTMLElement?y.current:(0,S.ZP)(g.current)}catch(t){return null}},t),M=(0,T.Z)(v,4),_=M[0],m=M[1],b=M[2],j=M[3],x=h.useRef(j);j&&(x.current=!0);var N=h.useCallback(function(t){y.current=t,(0,E.mH)(e,t)},[e]),w=(0,O.Z)((0,O.Z)({},f),{},{visible:n});if(s){if(_===F)D=j?s((0,O.Z)({},w),N):!o&&x.current&&c?s((0,O.Z)((0,O.Z)({},w),{},{className:c}),N):!a&&(o||c)?null:s((0,O.Z)((0,O.Z)({},w),{},{style:{display:"none"}}),N);else{m===V?z="prepare":ty(m)?z="active":m===W&&(z="start");var D,A,z,C=tu(l,"".concat(_,"-").concat(z));D=s((0,O.Z)((0,O.Z)({},w),{},{className:k()(tu(l,_),(A={},(0,I.Z)(A,C,C&&z),(0,I.Z)(A,l,"string"==typeof l),A)),style:b}),N)}}else D=null;return h.isValidElement(D)&&(0,E.Yr)(D)&&!D.ref&&(D=h.cloneElement(D,{ref:N})),h.createElement(Y,{ref:g},D)})).displayName="CSSMotion",l),tM=r(27546),t_=r(30298),tm=r(76192),tb="keep",tj="remove",tx="removed";function tN(t){var e;return e=t&&"object"===(0,A.Z)(t)&&"key"in t?t:{key:t},(0,O.Z)((0,O.Z)({},e),{},{key:String(e.key)})}function tw(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(tN)}var tD=["component","children","onVisibleChanged","onAllRemoved"],tI=["status"],tO=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tv,r=function(t){(0,P.Z)(n,t);var r=(0,Q.Z)(n);function n(){var t;(0,C.Z)(this,n);for(var e=arguments.length,i=Array(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=0,i=e.length,o=tw(t),a=tw(e);o.forEach(function(t){for(var e=!1,o=n;o1}).forEach(function(t){(r=r.filter(function(e){var r=e.key,n=e.status;return r!==t||n!==tj})).forEach(function(e){e.key===t&&(e.status=tb)})}),r})(n,tw(r)).filter(function(t){var e=n.find(function(e){var r=e.key;return t.key===r});return!e||e.status!==tx||t.status!==tj})}}}]),n}(h.Component);(0,I.Z)(r,"defaultProps",{component:"div"})}(to);var tT=r(36870),tA="moly-wave-target";function tz(t){return Number.isNaN(t)?0:t}var tk=r(26657);function tS(t){return(tS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function tL(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0?h[m]+" "+b:p(b,/&\f/g,h[m])).trim())&&(u[_++]=j);return N(t,e,r,0===i?L:s,u,c,f)}function R(t,e,r,n){return N(t,e,r,C,y(t,0,n),y(t,n+1,-1),n)}var F=function(t,e,r){for(var n=0,i=0;n=i,i=I(),38===n&&12===i&&(e[r]=1),!O(i);)D();return y(x,t,b)},B=function(t,e){var r=-1,n=44;do switch(O(n)){case 0:38===n&&12===I()&&(e[r]=1),t[r]+=F(b-1,e,r);break;case 2:t[r]+=A(n);break;case 4:if(44===n){t[++r]=58===I()?"&\f":"",e[r]=t[r].length;break}default:t[r]+=c(n)}while(n=D());return t},Z=function(t,e){var r;return r=B(T(t),e),x="",r},q=new WeakMap,H=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,r=t.parent,n=t.column===r.column&&t.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||q.get(r))&&!n){q.set(t,!0);for(var i=[],o=Z(e,i),a=r.props,s=0,u=0;s-1&&!t.return)switch(t.type){case C:t.return=function t(e,r){switch(45^h(e,0)?(((r<<2^h(e,0))<<2^h(e,1))<<2^h(e,2))<<2^h(e,3):0){case 5103:return S+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return S+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return S+e+k+e+z+e+e;case 6828:case 4268:return S+e+z+e+e;case 6165:return S+e+z+"flex-"+e+e;case 5187:return S+e+p(e,/(\w+).+(:[^]+)/,S+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return S+e+z+"flex-item-"+p(e,/flex-|-self/,"")+e;case 4675:return S+e+z+"flex-line-pack"+p(e,/align-content|flex-|-self/,"")+e;case 5548:return S+e+z+p(e,"shrink","negative")+e;case 5292:return S+e+z+p(e,"basis","preferred-size")+e;case 6060:return S+"box-"+p(e,"-grow","")+S+e+z+p(e,"grow","positive")+e;case 4554:return S+p(e,/([^-])(transform)/g,"$1"+S+"$2")+e;case 6187:return p(p(p(e,/(zoom-|grab)/,S+"$1"),/(image-set)/,S+"$1"),e,"")+e;case 5495:case 3959:return p(e,/(image-set\([^]*)/,S+"$1$`$1");case 4968:return p(p(e,/(.+:)(flex-)?(.*)/,S+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+S+e+e;case 4095:case 3583:case 4068:case 2532:return p(e,/(.+)-inline(.+)/,S+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(g(e)-1-r>6)switch(h(e,r+1)){case 109:if(45!==h(e,r+4))break;case 102:return p(e,/(.+:)(.+)-([^]+)/,"$1"+S+"$2-$3$1"+k+(108==h(e,r+3)?"$3":"$2-$3"))+e;case 115:return~d(e,"stretch")?t(p(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==h(e,r+1))break;case 6444:switch(h(e,g(e)-3-(~d(e,"!important")&&10))){case 107:return p(e,":",":"+S)+e;case 101:return p(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+S+(45===h(e,14)?"inline-":"")+"box$3$1"+S+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(h(e,r+11)){case 114:return S+e+z+p(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return S+e+z+p(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return S+e+z+p(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return S+e+z+e+e}return e}(t.value,t.length);break;case U:return P([w(t,{value:p(t.value,"@","@"+S)})],n);case L:if(t.length){var i,o;return i=t.props,o=function(e){var r;switch(r=e,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return P([w(t,{props:[p(e,/:(read-\w+)/,":"+k+"$1")]})],n);case"::placeholder":return P([w(t,{props:[p(e,/:(plac\w+)/,":"+S+"input-$1")]}),w(t,{props:[p(e,/:(plac\w+)/,":"+k+"$1")]}),w(t,{props:[p(e,/:(plac\w+)/,z+"input-$1")]})],n)}return""},i.map(o).join("")}}}],G={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$=/[A-Z]|^ms/g,J=/_EMO_([^_]+?)_([^]*?)_EMO_/g,X=function(t){return 45===t.charCodeAt(1)},K=function(t){return null!=t&&"boolean"!=typeof t},tt=(i=function(t){return X(t)?t:t.replace($,"-$&").toLowerCase()},o=Object.create(null),function(t){return void 0===o[t]&&(o[t]=i(t)),o[t]}),te=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(J,function(t,e,r){return n={name:e,styles:r,next:n},e})}return 1===G[t]||X(t)||"number"!=typeof e||0===e?e:e+"px"};function tr(t,e,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(t,e,r){var n="";if(Array.isArray(r))for(var i=0;i=4;++n,i-=4)e=(65535&(e=255&t.charCodeAt(n)|(255&t.charCodeAt(++n))<<8|(255&t.charCodeAt(++n))<<16|(255&t.charCodeAt(++n))<<24))*1540483477+((e>>>16)*59797<<16),e^=e>>>24,r=(65535&e)*1540483477+((e>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&t.charCodeAt(n+2))<<16;case 2:r^=(255&t.charCodeAt(n+1))<<8;case 1:r^=255&t.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+l,styles:a,next:n}}function to(t,e,r){var n="";return r.split(" ").forEach(function(r){void 0!==t[r]?e.push(t[r]+";"):r&&(n+=r+" ")}),n}var ta=function(t,e,r){var n=t.key+"-"+e.name;!1===r&&void 0===t.registered[n]&&(t.registered[n]=e.styles)},ts=function(t,e,r){ta(t,e,r);var n=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var i=e;do t.insert(e===i?"."+n:"",i,t.sheet,!0),i=i.next;while(void 0!==i)}};function tu(t,e){if(void 0===t.inserted[e.name])return t.insert("",e,t.sheet,!0)}function tl(t,e,r){var n=[],i=to(t,n,r);return n.length<2?r:i+e(n)}var tc=function t(e){for(var r="",n=0;n2||O(j)>3?"":" "}(S);break;case 92:q+=function(t,e){for(var r;--e&&D()&&!(j<48)&&!(j>102)&&(!(j>57)||!(j<65))&&(!(j>70)||!(j<97)););return r=b+(e<6&&32==I()&&32==D()),y(x,t,r)}(b-1,7);continue;case 47:switch(I()){case 42:case 47:v(N(f=function(t,e){for(;D();)if(t+j===57)break;else if(t+j===84&&47===I())break;return"/*"+y(x,e,b-1)+"*"+c(47===t?t:D())}(D(),b),r,n,E,c(j),y(f,2,-2),0),l);break;default:q+="/"}break;case 123*L:u[m++]=g(q)*U;case 125*L:case 59:case 0:switch(P){case 0:case 125:C=0;case 59+w:-1==U&&(q=p(q,/\f/g,"")),k>0&&g(q)-T&&v(k>32?R(q+";",i,n,T-1):R(p(q," ","")+";",i,n,T-2),l);break;case 59:q+=";";default:if(v(Z=Y(q,r,n,m,w,o,u,Q,F=[],B=[],T),a),123===P){if(0===w)t(q,r,Z,Z,F,a,T,u,B);else switch(99===z&&110===h(q,3)?100:z){case 100:case 108:case 109:case 115:t(e,Z,Z,i&&v(Y(e,Z,Z,0,0,o,u,Q,o,F=[],T),B),o,B,T,u,i?F:B);break;default:t(q,Z,Z,Z,[""],B,0,u,B)}}}m=w=k=0,L=U=1,Q=q="",T=s;break;case 58:T=1+g(q),k=S;default:if(L<1){if(123==P)--L;else if(125==P&&0==L++&&125==(j=b>0?h(x,--b):0,_--,10===j&&(_=1,M--),j))continue}switch(q+=c(P),P*L){case 38:U=w>0?1:(q+="\f",-1);break;case 44:u[m++]=(g(q)-1)*U,U=1;break;case 64:45===I()&&(q+=A(D())),z=I(),w=T=g(Q=q+=function(t){for(;!O(I());)D();return y(x,t,b)}(b)),P++;break;case 45:45===S&&2==g(q)&&(L=0)}}return a}("",null,null,null,[""],e=T(e=t),0,[0],e),x="",r),z)};o=function(t,e,r,n){a=r,k(t?t+"{"+e.styles+"}":e.styles),n&&(S.inserted[e.name]=!0)};var S={key:s,sheet:new u({key:s,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:m,registered:{},insert:o};return S.sheet.hydrate(w),S}({key:"css"})).sheet.speedy=function(t){this.isSpeedy=t},a.compat=!0,{css:s=function(){for(var t=arguments.length,e=Array(t),r=0;r
';var o={};o='';var a={};a='';var s={};s='';var u={};u='';var l={};l='';var c={};c='';var f={};f='';var p={};p='';var d={};d='';let h=t=>{let e=String.fromCharCode(98,121,98,105,116),r=e.toUpperCase(),n=t||("undefined"!=typeof window?window?.location?.hostname:void 0);return n?n?.includes(`${e}-tr.com`)?"TUR":n?.includes(`${e}.kz`)?"KAZ":n?.includes(`${e}.eu`)?"EUR":n?.includes(`${e}.id`)?"IDN":n?.includes(`${e}georgia.ge`)?"GEO":n?.includes("byhkbit.com")?"HKG":n?.includes("abfinance.com")?"USA":n?.includes("moneypartners.co.jp")?"JPN":n?.includes("waanx.com")?"THA":r:r},y="",g="NAV_HEADER_LATEST_CACHE",v={navs:{left:[],right:[],language:""},isLogin:!1},M=()=>{let t=h();y=r(i),"TUR"===t&&(y=r(o)),"KAZ"===t&&(y=r(a)),"EUR"===t&&(y=r(s)),"GEO"===t&&(y=r(u)),"IDN"===t&&(y=r(l)),"HKG"===t&&(y=r(c)),"USA"===t&&(y=r(f)),"JPN"===t&&(y=r(p)),"THA"===t&&(y=r(d))},_=()=>{let t=null!==localStorage.getItem(g)?JSON.parse(localStorage.getItem(g)||""):{exchange:[],left:[],right:[],language:""};v.navs=t,v.isLogin=!!localStorage.getItem("GA_UID")},m=t=>{let e=document.createDocumentFragment();return t.forEach(t=>{let r=document.createElement("span");if(r.className="nav-item","WSOT"===t.name&&(r.className+=" wsot"),"PrimaryLink"===t.renderer&&(r.className+=" link"),"MoreDropdown"===t.renderer){r.className="nav-item more";let t=document.createElement("span");t.className="more",r.appendChild(t)}else r.textContent=t.name;e.appendChild(r)}),e},b=t=>{let e=t.querySelector(".nav-list.left");if(!e)return;let r=v.navs.left;if(!r||!r.length)return;let n=m(r);e.appendChild(n)},j=t=>{t.innerHTML=y},x=t=>{var e=document.createElement("style");try{e.appendChild(document.createTextNode(r(n))),t.prepend(e)}catch(t){console.error("加载css 失败 ",t)}},N=()=>{let t=document.createElement("div");return t.id="NAV_HEADER_SKELETON",document.body.insertBefore(t,document.body.childNodes[0]),t},w=t=>{localStorage.getItem("LANG_KEY")===v.navs.language&&b(t)},D=t=>{let e=document.getElementById(t||"");e||(e=N()),M(),_(),j(e),x(e),w(e)},I=`
`,O=`
`,T=`
`,A=`
`,z=`
`,k=`
`,S=`
`,E=`
`,L=`
`,C=`
`,U=t=>{let e=h(t);return"IDN"===e?k:"EUR"===e?A:"GEO"===e?z:"KAZ"===e?T:"TUR"===e?O:"HKG"===e?S:"USA"===e?E:"JPN"===e?L:"THA"===e?C:I}},56078:function(t,e,r){t=r.nmd(t),function(e,n,i,o,a){var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},u="function"==typeof s[o]&&s[o],l=u.cache||{},c="function"==typeof t.require&&t.require.bind(t);function f(t,r){if(!l[t]){if(!e[t]){var n="function"==typeof s[o]&&s[o];if(!r&&n)return n(t,!0);if(u)return u(t,!0);if(c&&"string"==typeof t)return c(t);var i=Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}p.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},p.cache={};var a=l[t]=new f.Module(t);e[t][0].call(a.exports,p,a,a.exports,this)}return l[t].exports;function p(t){var e=p.resolve(t);return!1===e?{}:f(e)}}f.isParcelRequire=!0,f.Module=function(t){this.id=t,this.bundle=f,this.exports={}},f.modules=e,f.cache=l,f.parent=u,f.register=function(t,r){e[t]=[function(t,e){e.exports=r},{}]},Object.defineProperty(f,"root",{get:function(){return s[o]}}),s[o]=f;for(var p=0;p{!function(t){let{version:e,utils:{errorHandle:r}}=t.constructor,n=e.split(".").map(Number);r(n[0]+n[1]/100>=5,`Artplayer.js@${e} is not compatible the artplayerPluginHlsQuality@${a.version}. Please update it to version Artplayer.js@5.x.x`)}(e);let{$video:r}=e.template,{errorHandle:n}=e.constructor.utils;function i(){let i=e.hls||window.hls;n(i&&i.media===r,'Cannot find instance of HLS from "art.hls" or "window.hls"');let a=t.auto||"Auto",s=t.title||"Quality",u=t.getResolution||(t=>(t.height||"Unknown ")+"P"),l=i.levels[i.currentLevel],c=l?u(l):a;t.control&&e.controls.update({name:"hls-quality",position:"right",html:c,style:{padding:"0 10px"},selector:i.levels.map((t,e)=>({html:u(t),level:t.level||e,default:l===t})),onSelect:t=>(i.currentLevel=t.level,e.loading.show=!0,t.html)}),t.setting&&e.setting.update({name:"hls-quality",tooltip:c,html:s,icon:o.default,width:200,selector:i.levels.map((t,e)=>({html:u(t),level:t.level||e,default:l===t})),onSelect:function(t){return i.currentLevel=t.level,e.loading.show=!0,t.html}})}return e.on("ready",i),e.on("restart",i),{name:"artplayerPluginHlsQuality"}}}r.default=a,a.env="production",a.version="2.0.0",a.build="2023-04-23 18:13:04","undefined"!=typeof window&&(window.artplayerPluginHlsQuality=a)},{"bundle-text:./image.svg":"5VXix","@parcel/transformer-js/src/esmodule-helpers.js":"9pCYc"}],"5VXix":[function(t,e,r){e.exports=''},{}],"9pCYc":[function(t,e,r){r.interopDefault=function(t){return t&&t.__esModule?t:{default:t}},r.defineInteropFlag=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.exportAll=function(t,e){return Object.keys(t).forEach(function(r){"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}),e},r.export=function(t,e,r){Object.defineProperty(t,e,{enumerable:!0,get:r})}},{}]},["eEHR6"],"eEHR6","parcelRequire4dc0")},13546:function(t,e,r){t=r.nmd(t),function(e,n,i,o,a){var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},u="function"==typeof s[o]&&s[o],l=u.cache||{},c="function"==typeof t.require&&t.require.bind(t);function f(t,r){if(!l[t]){if(!e[t]){var n="function"==typeof s[o]&&s[o];if(!r&&n)return n(t,!0);if(u)return u(t,!0);if(c&&"string"==typeof t)return c(t);var i=Error("Cannot find module '"+t+"'");throw i.code="MODULE_NOT_FOUND",i}p.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},p.cache={};var a=l[t]=new f.Module(t);e[t][0].call(a.exports,p,a,a.exports,this)}return l[t].exports;function p(t){var e=p.resolve(t);return!1===e?{}:f(e)}}f.isParcelRequire=!0,f.Module=function(t){this.id=t,this.bundle=f,this.exports={}},f.modules=e,f.cache=l,f.parent=u,f.register=function(t,r){e[t]=[function(t,e){e.exports=r},{}]},Object.defineProperty(f,"root",{get:function(){return s[o]}}),s[o]=f;for(var p=0;pe.call(this,this)),J.DEBUG){let t=t=>console.log(`[ART.${this.id}] -> ${t}`);t("Version@"+J.version),t("Env@"+J.env),t("Build@"+J.build);for(let e=0;et("Event@"+e.type))}$.push(this)}static get instances(){return $}static get version(){return"5.1.1"}static get env(){return"production"}static get build(){return"2024-01-11 10:39:44"}static get config(){return h.default}static get utils(){return c}static get scheme(){return p.default}static get Emitter(){return l.default}static get validator(){return s.default}static get kindOf(){return s.default.kindOf}static get html(){return g.default.html}static get option(){return{id:"",container:"#artplayer",url:"",poster:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,airplay:!1,layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],thumbnails:{url:"",number:60,column:10,width:0,height:0},subtitle:{url:"",type:"",style:{},name:"",escape:!0,encoding:"utf-8",onVttLoad:t=>t},moreVideoAttr:{controls:!1,preload:c.isSafari?"auto":"metadata"},i18n:{},icons:{},cssVar:{},customType:{},lang:navigator.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}get video(){return this.template.$video}destroy(t=!0){this.events.destroy(),this.template.destroy(t),$.splice($.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}r.default=J,J.DEBUG=!1,J.CONTEXTMENU=!0,J.NOTICE_TIME=2e3,J.SETTING_WIDTH=250,J.SETTING_ITEM_WIDTH=200,J.SETTING_ITEM_HEIGHT=35,J.RESIZE_TIME=200,J.SCROLL_TIME=200,J.SCROLL_GAP=50,J.AUTO_PLAYBACK_MAX=10,J.AUTO_PLAYBACK_MIN=5,J.AUTO_PLAYBACK_TIMEOUT=3e3,J.RECONNECT_TIME_MAX=5,J.RECONNECT_SLEEP_TIME=1e3,J.CONTROL_HIDE_TIME=3e3,J.DBCLICK_TIME=300,J.DBCLICK_FULLSCREEN=!0,J.MOBILE_DBCLICK_PLAY=!0,J.MOBILE_CLICK_PLAY=!1,J.AUTO_ORIENTATION_TIME=200,J.INFO_LOOP_TIME=1e3,J.FAST_FORWARD_VALUE=3,J.FAST_FORWARD_TIME=1e3,J.TOUCH_MOVE_RATIO=.5,J.VOLUME_STEP=.1,J.SEEK_STEP=5,J.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2],J.ASPECT_RATIO=["default","4:3","16:9"],J.FLIP=["normal","horizontal","vertical"],J.FULLSCREEN_WEB_IN_BODY=!1,J.LOG_VERSION=!0,J.USE_RAF=!1,c.isBrowser&&(window.Artplayer=J,c.setStyleText("artplayer-style",o.default),setTimeout(()=>{J.LOG_VERSION&&console.log(`%c ArtPlayer %c ${J.version} %c https://artplayer.org`,"color: #fff; background: #5f5f5f","color: #fff; background: #4bc729","")},100))},{"bundle-text:./style/index.less":"kfOe8","option-validator":"bAWi2","./utils/emitter":"2bGVu","./utils":"h3rH9","./scheme":"AdvwB","./config":"9Xmqu","./template":"2gKYH","./i18n":"1AdeF","./player":"556MW","./control":"14IBq","./contextmenu":"7iUum","./info":"hD2Lg","./subtitle":"lum0D","./events":"1Epl5","./hotkey":"eTow4","./layer":"4fDoD","./loading":"fE0Sp","./notice":"9PuGy","./mask":"2etr0","./icons":"6dYSr","./setting":"bRHiA","./storage":"f2Thp","./plugins":"96ThS","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kfOe8:[function(t,e,r){e.exports='.art-video-player{--art-theme:red;--art-font-color:#fff;--art-background-color:#000;--art-text-shadow-color:#00000080;--art-transition-duration:.2s;--art-padding:10px;--art-border-radius:3px;--art-progress-height:6px;--art-progress-color:#fff3;--art-hover-color:#fff3;--art-loaded-color:#fff3;--art-state-size:80px;--art-state-opacity:.8;--art-bottom-height:100px;--art-bottom-offset:20px;--art-bottom-gap:5px;--art-highlight-width:8px;--art-highlight-color:#ffffff80;--art-control-height:46px;--art-control-opacity:.75;--art-control-icon-size:36px;--art-control-icon-scale:1.1;--art-volume-height:120px;--art-volume-handle-size:14px;--art-lock-size:36px;--art-indicator-scale:0;--art-indicator-size:16px;--art-fullscreen-web-index:9999;--art-settings-icon-size:24px;--art-settings-max-height:300px;--art-selector-max-height:300px;--art-contextmenus-min-width:250px;--art-subtitle-font-size:20px;--art-subtitle-gap:5px;--art-subtitle-bottom:15px;--art-subtitle-border:#000;--art-widget-background:#000000d9;--art-tip-background:#00000080;--art-scrollbar-size:4px;--art-scrollbar-background:#ffffff40;--art-scrollbar-background-hover:#ffffff80;--art-mini-progress-height:2px}.art-bg-cover{background-position:50%;background-repeat:no-repeat;background-size:cover}.art-bottom-gradient{background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x}.art-backdrop-filter{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.art-video-player{width:100%;height:100%;zoom:1;text-align:left;direction:ltr;user-select:none;box-sizing:border-box;color:var(--art-font-color);background-color:var(--art-background-color);text-shadow:0 0 2px var(--art-text-shadow-color);-webkit-tap-highlight-color:#0000;-ms-touch-action:manipulation;touch-action:manipulation;-ms-high-contrast-adjust:none;outline:0;margin:0 auto;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft YaHei,Roboto,Arial,sans-serif;font-size:14px;line-height:1.3;position:relative}.art-video-player *,.art-video-player :before,.art-video-player :after{box-sizing:border-box}.art-video-player ::-webkit-scrollbar{width:var(--art-scrollbar-size);height:var(--art-scrollbar-size)}.art-video-player ::-webkit-scrollbar-thumb{background-color:var(--art-scrollbar-background)}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:var(--art-scrollbar-background-hover)}.art-video-player img{max-width:100%;vertical-align:top}.art-video-player svg{fill:var(--art-font-color)}.art-video-player a{color:var(--art-font-color);text-decoration:none}.art-icon{justify-content:center;align-items:center;line-height:1;display:flex}.art-video-player.art-backdrop .art-contextmenus,.art-video-player.art-backdrop .art-info,.art-video-player.art-backdrop .art-settings,.art-video-player.art-backdrop .art-layer-auto-playback,.art-video-player.art-backdrop .art-selector-list,.art-video-player.art-backdrop .art-volume-inner{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-video{z-index:10;width:100%;height:100%;cursor:pointer;position:absolute;inset:0}.art-poster{z-index:11;width:100%;height:100%;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:0}.art-video-player .art-subtitle{z-index:20;width:100%;text-align:center;pointer-events:none;justify-content:center;align-items:center;gap:var(--art-subtitle-gap);bottom:var(--art-subtitle-bottom);font-size:var(--art-subtitle-font-size);transition:bottom var(--art-transition-duration)ease;text-shadow:var(--art-subtitle-border)1px 0 1px,var(--art-subtitle-border)0 1px 1px,var(--art-subtitle-border)-1px 0 1px,var(--art-subtitle-border)0 -1px 1px,var(--art-subtitle-border)1px 1px 1px,var(--art-subtitle-border)-1px -1px 1px,var(--art-subtitle-border)1px -1px 1px,var(--art-subtitle-border)-1px 1px 1px;flex-direction:column;padding:0 5%;display:none;position:absolute}.art-video-player.art-subtitle-show .art-subtitle{display:flex}.art-video-player.art-control-show .art-subtitle{bottom:calc(var(--art-control-height) + var(--art-subtitle-bottom))}.art-danmuku{z-index:30;width:100%;height:100%;pointer-events:none;position:absolute;inset:0;overflow:hidden}.art-video-player .art-layers{z-index:40;width:100%;height:100%;pointer-events:none;display:none;position:absolute;inset:0}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:flex}.art-video-player .art-mask{z-index:50;width:100%;height:100%;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.art-video-player .art-mask .art-state{opacity:0;width:var(--art-state-size);height:var(--art-state-size);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;display:flex;transform:scale(2)}.art-video-player.art-mask-show .art-state{cursor:pointer;pointer-events:auto;opacity:var(--art-state-opacity);transform:scale(1)}.art-video-player.art-loading-show .art-state{display:none}.art-video-player .art-loading{z-index:70;width:100%;height:100%;pointer-events:none;justify-content:center;align-items:center;display:none;position:absolute;inset:0}.art-video-player.art-loading-show .art-loading{display:flex}.art-video-player .art-bottom{z-index:60;width:100%;height:100%;opacity:0;pointer-events:none;padding:0 var(--art-padding);transition:all var(--art-transition-duration)ease;background-size:100% var(--art-bottom-height);background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x;flex-direction:column;justify-content:flex-end;display:flex;position:absolute;inset:0;overflow:hidden}.art-video-player .art-bottom .art-controls,.art-video-player .art-bottom .art-progress{transform:translateY(var(--art-bottom-offset));transition:transform var(--art-transition-duration)ease}.art-video-player.art-control-show .art-bottom,.art-video-player.art-hover .art-bottom{opacity:1}.art-video-player.art-control-show .art-bottom .art-controls,.art-video-player.art-hover .art-bottom .art-controls,.art-video-player.art-control-show .art-bottom .art-progress,.art-video-player.art-hover .art-bottom .art-progress{transform:translateY(0)}.art-bottom .art-progress{z-index:0;pointer-events:auto;padding-bottom:var(--art-bottom-gap);position:relative}.art-bottom .art-progress .art-control-progress{cursor:pointer;height:var(--art-progress-height);justify-content:center;align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner{height:50%;width:100%;transition:height var(--art-transition-duration)ease;background-color:var(--art-progress-color);align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-hover{z-index:0;width:100%;height:100%;width:0%;background-color:var(--art-hover-color);display:none;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded{z-index:10;width:100%;height:100%;width:0%;background-color:var(--art-loaded-color);position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played{z-index:20;width:100%;height:100%;width:0%;background-color:var(--art-theme);position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight{z-index:30;width:100%;height:100%;pointer-events:none;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight span{z-index:0;width:100%;height:100%;pointer-events:auto;transform:translateX(calc(var(--art-highlight-width)/-2));background-color:var(--art-highlight-color);position:absolute;inset:0 auto 0 0;width:var(--art-highlight-width)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{z-index:40;width:var(--art-indicator-size);height:var(--art-indicator-size);transform:scale(var(--art-indicator-scale));margin-left:calc(var(--art-indicator-size)/-2);transition:transform var(--art-transition-duration)ease;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;left:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator .art-icon{width:100%;height:100%;pointer-events:none}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:hover{transform:scale(1.2)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:active{transform:scale(1)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-tip{z-index:50;border-radius:var(--art-border-radius);white-space:nowrap;background-color:var(--art-tip-background);padding:3px 5px;font-size:12px;line-height:1;display:none;position:absolute;top:-25px;left:0}.art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner{height:100%}.art-bottom .art-progress .art-control-thumbnails{bottom:calc(var(--art-bottom-gap) + 10px);border-radius:var(--art-border-radius);pointer-events:none;background-color:var(--art-widget-background);display:none;position:absolute;left:0;box-shadow:0 1px 3px #0003,0 1px 2px -1px #0003}.art-bottom:hover .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{transform:scale(1)}.art-controls{z-index:10;pointer-events:auto;height:var(--art-control-height);justify-content:space-between;align-items:center;display:flex;position:relative}.art-controls .art-controls-left,.art-controls .art-controls-right{height:100%;display:flex}.art-controls .art-controls-center{height:100%;flex:1;justify-content:center;align-items:center;padding:0 10px;display:none}.art-controls .art-controls-right{justify-content:flex-end}.art-controls .art-control{cursor:pointer;white-space:nowrap;opacity:var(--art-control-opacity);min-height:var(--art-control-height);min-width:var(--art-control-height);transition:opacity var(--art-transition-duration)ease;flex-shrink:0;justify-content:center;align-items:center;display:flex}.art-controls .art-control .art-icon{height:var(--art-control-icon-size);width:var(--art-control-icon-size);transform:scale(var(--art-control-icon-scale));transition:transform var(--art-transition-duration)ease}.art-controls .art-control .art-icon:active{transform:scale(calc(var(--art-control-icon-scale)*.8))}.art-controls .art-control:hover{opacity:1}.art-control-volume{position:relative}.art-control-volume .art-volume-panel{text-align:center;cursor:default;opacity:0;pointer-events:none;left:0;right:0;bottom:var(--art-control-height);width:var(--art-control-height);height:var(--art-volume-height);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;padding:0 5px;font-size:12px;display:flex;position:absolute;transform:translateY(10px)}.art-control-volume .art-volume-panel .art-volume-inner{height:100%;width:100%;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);flex-direction:column;align-items:center;gap:10px;padding:10px 0 12px;display:flex}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider{width:100%;cursor:pointer;flex:1;justify-content:center;display:flex;position:relative}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle{width:2px;border-radius:var(--art-border-radius);background-color:#ffffff40;justify-content:center;display:flex;position:relative;overflow:hidden}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle .art-volume-loaded{z-index:0;width:100%;height:100%;background-color:var(--art-theme);position:absolute;inset:0}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-indicator{width:var(--art-volume-handle-size);height:var(--art-volume-handle-size);margin-top:calc(var(--art-volume-handle-size)/-2);background-color:var(--art-theme);transition:transform var(--art-transition-duration)ease;border-radius:100%;flex-shrink:0;position:absolute;transform:scale(1)}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider:active .art-volume-indicator{transform:scale(.9)}.art-control-volume:hover .art-volume-panel{opacity:1;pointer-events:auto;transform:translateY(0)}.art-video-player .art-notice{z-index:80;width:100%;height:100%;height:auto;padding:var(--art-padding);pointer-events:none;display:none;position:absolute;inset:0 0 auto}.art-video-player .art-notice .art-notice-inner{border-radius:var(--art-border-radius);background-color:var(--art-tip-background);padding:5px;line-height:1;display:inline-flex}.art-video-player.art-notice-show .art-notice{display:flex}.art-video-player .art-contextmenus{z-index:120;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);min-width:var(--art-contextmenus-min-width);flex-direction:column;padding:5px 0;font-size:12px;display:none;position:absolute}.art-video-player .art-contextmenus .art-contextmenu{cursor:pointer;border-bottom:1px solid #ffffff1a;padding:10px 15px;display:flex}.art-video-player .art-contextmenus .art-contextmenu span{padding:0 8px}.art-video-player .art-contextmenus .art-contextmenu span:hover,.art-video-player .art-contextmenus .art-contextmenu span.art-current{color:var(--art-theme)}.art-video-player .art-contextmenus .art-contextmenu:hover{background-color:#ffffff1a}.art-video-player .art-contextmenus .art-contextmenu:last-child{border-bottom:none}.art-video-player.art-contextmenu-show .art-contextmenus{display:flex}.art-video-player .art-settings{z-index:90;border-radius:var(--art-border-radius);transform-origin:100% 100%;max-height:var(--art-settings-max-height);left:auto;right:var(--art-padding);bottom:var(--art-control-height);transform:scale(var(--art-settings-scale));transition:all var(--art-transition-duration)ease;background-color:var(--art-widget-background);flex-direction:column;display:none;position:absolute;overflow:hidden auto}.art-video-player .art-settings .art-setting-panel{flex-direction:column;display:none}.art-video-player .art-settings .art-setting-panel.art-current{display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item{cursor:pointer;transition:background-color var(--art-transition-duration)ease;justify-content:space-between;align-items:center;padding:0 5px;display:flex;overflow:hidden}.art-video-player .art-settings .art-setting-panel .art-setting-item:hover{background-color:#ffffff1a}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current{color:var(--art-theme)}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-icon-check{visibility:hidden;height:15px}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current .art-icon-check{visibility:visible}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left{justify-content:center;align-items:center;gap:5px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left .art-setting-item-left-icon{height:var(--art-settings-icon-size);width:var(--art-settings-icon-size);justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right{justify-content:center;align-items:center;gap:5px;font-size:12px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-tooltip{white-space:nowrap;color:#ffffff80}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-icon{min-width:32px;height:24px;justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-range{height:3px;width:80px;appearance:none;background-color:#fff3;outline:none}.art-video-player .art-settings .art-setting-panel .art-setting-item-back{border-bottom:1px solid #ffffff1a}.art-video-player.art-setting-show .art-settings{display:flex}.art-video-player .art-info{left:var(--art-padding);top:var(--art-padding);z-index:100;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);padding:10px;font-size:12px;display:none;position:absolute}.art-video-player .art-info .art-info-panel{flex-direction:column;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item{align-items:center;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item .art-info-title{width:100px;text-align:right}.art-video-player .art-info .art-info-panel .art-info-item .art-info-content{width:250px;text-overflow:ellipsis;white-space:nowrap;user-select:all;overflow:hidden}.art-video-player .art-info .art-info-close{cursor:pointer;position:absolute;top:5px;right:5px}.art-video-player.art-info-show .art-info{display:flex}.art-hide-cursor *{cursor:none!important}.art-video-player[data-aspect-ratio]{overflow:hidden}.art-video-player[data-aspect-ratio] .art-video{object-fit:fill;box-sizing:content-box}.art-fullscreen{--art-control-height:60px;--art-control-icon-scale:1.3}.art-fullscreen-web{--art-control-height:60px;--art-control-icon-scale:1.3;z-index:var(--art-fullscreen-web-index);width:100%;height:100%;position:fixed;inset:0}.art-mini-popup{z-index:9999;width:320px;height:180px;border-radius:var(--art-border-radius);cursor:move;user-select:none;background:#000;transition:opacity .2s;position:fixed;overflow:hidden;box-shadow:0 0 5px #00000080}.art-mini-popup svg{fill:#fff}.art-mini-popup .art-video{pointer-events:none}.art-mini-popup .art-mini-close{z-index:20;cursor:pointer;opacity:0;transition:opacity .2s;position:absolute;top:10px;right:10px}.art-mini-popup .art-mini-state{z-index:30;width:100%;height:100%;pointer-events:none;opacity:0;background-color:#00000040;justify-content:center;align-items:center;transition:opacity .2s;display:flex;position:absolute;inset:0}.art-mini-popup .art-mini-state .art-icon{opacity:.75;cursor:pointer;pointer-events:auto;transition:transform .2s;transform:scale(3)}.art-mini-popup .art-mini-state .art-icon:active{transform:scale(2.5)}.art-mini-popup.art-mini-droging{opacity:.9}.art-mini-popup:hover .art-mini-close,.art-mini-popup:hover .art-mini-state{opacity:1}.art-video-player[data-flip=horizontal] .art-video{transform:scaleX(-1)}.art-video-player[data-flip=vertical] .art-video{transform:scaleY(-1)}.art-video-player .art-layer-lock{height:var(--art-lock-size);width:var(--art-lock-size);top:50%;left:var(--art-padding);background-color:var(--art-tip-background);border-radius:50%;justify-content:center;align-items:center;display:none;position:absolute;transform:translateY(-50%)}.art-video-player .art-layer-auto-playback{border-radius:var(--art-border-radius);left:var(--art-padding);bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + 10px);background-color:var(--art-widget-background);align-items:center;gap:10px;padding:10px;line-height:1;display:none;position:absolute}.art-video-player .art-layer-auto-playback .art-auto-playback-close{cursor:pointer;justify-content:center;align-items:center;display:flex}.art-video-player .art-layer-auto-playback .art-auto-playback-close svg{width:15px;height:15px;fill:var(--art-theme)}.art-video-player .art-layer-auto-playback .art-auto-playback-jump{color:var(--art-theme);cursor:pointer}.art-video-player.art-lock .art-subtitle{bottom:var(--art-subtitle-bottom)!important}.art-video-player.art-mini-progress-bar .art-bottom,.art-video-player.art-lock .art-bottom{opacity:1;background-image:none;padding:0}.art-video-player.art-mini-progress-bar .art-bottom .art-controls,.art-video-player.art-lock .art-bottom .art-controls,.art-video-player.art-mini-progress-bar .art-bottom .art-progress,.art-video-player.art-lock .art-bottom .art-progress{transform:translateY(calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height)/4))}.art-video-player.art-mini-progress-bar .art-bottom .art-progress-indicator,.art-video-player.art-lock .art-bottom .art-progress-indicator{display:none!important}.art-video-player.art-control-show .art-layer-lock{display:flex}.art-control-selector{position:relative}.art-control-selector .art-selector-list{text-align:center;border-radius:var(--art-border-radius);opacity:0;pointer-events:none;bottom:var(--art-control-height);max-height:var(--art-selector-max-height);background-color:var(--art-widget-background);transition:all var(--art-transition-duration)ease;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden auto;transform:translateY(10px)}.art-control-selector .art-selector-list .art-selector-item{width:100%;flex-shrink:0;justify-content:center;align-items:center;padding:10px 15px;line-height:1;display:flex}.art-control-selector .art-selector-list .art-selector-item:hover{background-color:#ffffff1a}.art-control-selector .art-selector-list .art-selector-item:hover,.art-control-selector .art-selector-list .art-selector-item.art-current{color:var(--art-theme)}.art-control-selector:hover .art-selector-list{opacity:1;pointer-events:auto;transform:translateY(0)}[class*=hint--]{font-style:normal;display:inline-block;position:relative}[class*=hint--]:before,[class*=hint--]:after{visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;transition:all .3s;position:absolute;transform:translate(0,0)}[class*=hint--]:hover:before,[class*=hint--]:hover:after{visibility:visible;opacity:1;transition-delay:.1s}[class*=hint--]:before{content:"";z-index:1000001;background:0 0;border:6px solid #0000;position:absolute}[class*=hint--]:after{color:#fff;white-space:nowrap;background:#000;padding:8px 10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;line-height:12px}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label=""]:before,[aria-label=""]:after,[data-hint=""]:before,[data-hint=""]:after{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#000}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#000}.hint--left:before{border-left-color:#000}.hint--right:before{border-right-color:#000}.hint--top:before{margin-bottom:-11px}.hint--top:before,.hint--top:after{bottom:100%;left:50%}.hint--top:before{left:calc(50% - 6px)}.hint--top:after{transform:translate(-50%)}.hint--top:hover:before{transform:translateY(-8px)}.hint--top:hover:after{transform:translate(-50%)translateY(-8px)}.hint--bottom:before{margin-top:-11px}.hint--bottom:before,.hint--bottom:after{top:100%;left:50%}.hint--bottom:before{left:calc(50% - 6px)}.hint--bottom:after{transform:translate(-50%)}.hint--bottom:hover:before{transform:translateY(8px)}.hint--bottom:hover:after{transform:translate(-50%)translateY(8px)}.hint--right:before{margin-bottom:-6px;margin-left:-11px}.hint--right:after{margin-bottom:-14px}.hint--right:before,.hint--right:after{bottom:50%;left:100%}.hint--right:hover:before,.hint--right:hover:after{transform:translate(8px)}.hint--left:before{margin-bottom:-6px;margin-right:-11px}.hint--left:after{margin-bottom:-14px}.hint--left:before,.hint--left:after{bottom:50%;right:100%}.hint--left:hover:before,.hint--left:hover:after{transform:translate(-8px)}.hint--top-left:before{margin-bottom:-11px}.hint--top-left:before,.hint--top-left:after{bottom:100%;left:50%}.hint--top-left:before{left:calc(50% - 6px)}.hint--top-left:after{margin-left:12px;transform:translate(-100%)}.hint--top-left:hover:before{transform:translateY(-8px)}.hint--top-left:hover:after{transform:translate(-100%)translateY(-8px)}.hint--top-right:before{margin-bottom:-11px}.hint--top-right:before,.hint--top-right:after{bottom:100%;left:50%}.hint--top-right:before{left:calc(50% - 6px)}.hint--top-right:after{margin-left:-12px;transform:translate(0)}.hint--top-right:hover:before,.hint--top-right:hover:after{transform:translateY(-8px)}.hint--bottom-left:before{margin-top:-11px}.hint--bottom-left:before,.hint--bottom-left:after{top:100%;left:50%}.hint--bottom-left:before{left:calc(50% - 6px)}.hint--bottom-left:after{margin-left:12px;transform:translate(-100%)}.hint--bottom-left:hover:before{transform:translateY(8px)}.hint--bottom-left:hover:after{transform:translate(-100%)translateY(8px)}.hint--bottom-right:before{margin-top:-11px}.hint--bottom-right:before,.hint--bottom-right:after{top:100%;left:50%}.hint--bottom-right:before{left:calc(50% - 6px)}.hint--bottom-right:after{margin-left:-12px;transform:translate(0)}.hint--bottom-right:hover:before,.hint--bottom-right:hover:after{transform:translateY(8px)}.hint--small:after,.hint--medium:after,.hint--large:after{white-space:normal;word-wrap:break-word;line-height:1.4em}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}[class*=hint--]:after{text-shadow:0 -1px #000;box-shadow:4px 4px 8px #0000004d}.hint--error:after{text-shadow:0 -1px #592726;background-color:#b34e4d}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{text-shadow:0 -1px #6c5328;background-color:#c09854}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{text-shadow:0 -1px #1a3c4d;background-color:#3986ac}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{text-shadow:0 -1px #1a321a;background-color:#458746}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{transform:translateY(-8px)}.hint--always.hint--top:after{transform:translate(-50%)translateY(-8px)}.hint--always.hint--top-left:before{transform:translateY(-8px)}.hint--always.hint--top-left:after{transform:translate(-100%)translateY(-8px)}.hint--always.hint--top-right:before,.hint--always.hint--top-right:after{transform:translateY(-8px)}.hint--always.hint--bottom:before{transform:translateY(8px)}.hint--always.hint--bottom:after{transform:translate(-50%)translateY(8px)}.hint--always.hint--bottom-left:before{transform:translateY(8px)}.hint--always.hint--bottom-left:after{transform:translate(-100%)translateY(8px)}.hint--always.hint--bottom-right:before,.hint--always.hint--bottom-right:after{transform:translateY(8px)}.hint--always.hint--left:before,.hint--always.hint--left:after{transform:translate(-8px)}.hint--always.hint--right:before,.hint--always.hint--right:after{transform:translate(8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:before,.hint--no-animate:after{transition-duration:0s}.hint--bounce:before,.hint--bounce:after{-webkit-transition:opacity .3s,visibility .3s,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s,visibility .3s,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s,visibility .3s,transform .3s cubic-bezier(.71,1.7,.77,1.24)}.hint--no-shadow:before,.hint--no-shadow:after{text-shadow:initial;box-shadow:initial}.hint--no-arrow:before{display:none}.art-video-player.art-mobile{--art-bottom-gap:10px;--art-control-height:38px;--art-control-icon-scale:1;--art-state-size:60px;--art-settings-max-height:180px;--art-selector-max-height:180px;--art-indicator-scale:1;--art-control-opacity:1}.art-video-player.art-mobile .art-controls-left{margin-left:calc(var(--art-padding)/-1)}.art-video-player.art-mobile .art-controls-right{margin-right:calc(var(--art-padding)/-1)}'},{}],bAWi2:[function(t,e,r){e.exports=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var e=Object.prototype.toString,r=function(r){if(void 0===r)return"undefined";if(null===r)return"null";var i=t(r);if("boolean"===i)return"boolean";if("string"===i)return"string";if("number"===i)return"number";if("symbol"===i)return"symbol";if("function"===i)return"GeneratorFunction"===n(r)?"generatorfunction":"function";if(Array.isArray?Array.isArray(r):r instanceof Array)return"array";if(!(!r.constructor||"function"!=typeof r.constructor.isBuffer)&&r.constructor.isBuffer(r))return"buffer";if(function(t){try{if("number"==typeof t.length&&"function"==typeof t.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(r))return"arguments";if(r instanceof Date||"function"==typeof r.toDateString&&"function"==typeof r.getDate&&"function"==typeof r.setDate)return"date";if(r instanceof Error||"string"==typeof r.message&&r.constructor&&"number"==typeof r.constructor.stackTraceLimit)return"error";if(r instanceof RegExp||"string"==typeof r.flags&&"boolean"==typeof r.ignoreCase&&"boolean"==typeof r.multiline&&"boolean"==typeof r.global)return"regexp";switch(n(r)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if("function"==typeof r.throw&&"function"==typeof r.return&&"function"==typeof r.next)return"generator";switch(i=e.call(r)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return i.slice(8,-1).toLowerCase().replace(/\s/g,"")};function n(t){return t.constructor?t.constructor.name:null}function i(t,e){var n=2o),n.export(r,"queryAll",()=>a),n.export(r,"addClass",()=>s),n.export(r,"removeClass",()=>u),n.export(r,"hasClass",()=>l),n.export(r,"append",()=>c),n.export(r,"remove",()=>f),n.export(r,"setStyle",()=>p),n.export(r,"setStyles",()=>d),n.export(r,"getStyle",()=>h),n.export(r,"sublings",()=>y),n.export(r,"inverseClass",()=>g),n.export(r,"tooltip",()=>v),n.export(r,"isInViewport",()=>M),n.export(r,"includeFromEvent",()=>_),n.export(r,"replaceElement",()=>m),n.export(r,"createElement",()=>b),n.export(r,"getIcon",()=>j),n.export(r,"setStyleText",()=>x);var i=t("./compatibility");function o(t,e=document){return e.querySelector(t)}function a(t,e=document){return Array.from(e.querySelectorAll(t))}function s(t,e){return t.classList.add(e)}function u(t,e){return t.classList.remove(e)}function l(t,e){return t.classList.contains(e)}function c(t,e){return e instanceof Element?t.appendChild(e):t.insertAdjacentHTML("beforeend",String(e)),t.lastElementChild||t.lastChild}function f(t){return t.parentNode.removeChild(t)}function p(t,e,r){return t.style[e]=r,t}function d(t,e){for(let r in e)p(t,r,e[r]);return t}function h(t,e,r=!0){let n=window.getComputedStyle(t,null).getPropertyValue(e);return r?parseFloat(n):n}function y(t){return Array.from(t.parentElement.children).filter(e=>e!==t)}function g(t,e){y(t).forEach(t=>u(t,e)),s(t,e)}function v(t,e,r="top"){i.isMobile||(t.setAttribute("aria-label",e),s(t,"hint--rounded"),s(t,`hint--${r}`))}function M(t,e=0){let r=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,o=r.top-e<=n&&r.top+r.height+e>=0,a=r.left-e<=i+e&&r.left+r.width+e>=0;return o&&a}function _(t,e){return t.composedPath&&t.composedPath().indexOf(e)>-1}function m(t,e){return e.parentNode.replaceChild(t,e),t}function b(t){return document.createElement(t)}function j(t="",e=""){let r=b("i");return s(r,"art-icon"),s(r,`art-icon-${t}`),c(r,e),r}function x(t,e){let r=document.getElementById(t);if(r)r.textContent=e;else{let r=b("style");r.id=t,r.textContent=e,document.head.appendChild(r)}}},{"./compatibility":"luXC1","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],luXC1:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"userAgent",()=>i),n.export(r,"isSafari",()=>o),n.export(r,"isWechat",()=>a),n.export(r,"isIE",()=>s),n.export(r,"isAndroid",()=>u),n.export(r,"isIOS",()=>l),n.export(r,"isIOS13",()=>c),n.export(r,"isMobile",()=>f),n.export(r,"isBrowser",()=>p);let i="undefined"!=typeof navigator?navigator.userAgent:"",o=/^((?!chrome|android).)*safari/i.test(i),a=/MicroMessenger/i.test(i),s=/MSIE|Trident/i.test(i),u=/android/i.test(i),l=/iPad|iPhone|iPod/i.test(i)&&!window.MSStream,c=l||i.includes("Macintosh")&&navigator.maxTouchPoints>=1,f=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(i)||c,p="undefined"!=typeof window},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2nFlF":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ArtPlayerError",()=>i),n.export(r,"errorHandle",()=>o);class i extends Error{constructor(t,e){super(t),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e||this.constructor),this.name="ArtPlayerError"}}function o(t,e){if(!t)throw new i(e);return t}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],yqFoT:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t){return"WEBVTT \r\n\r\n".concat(t.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,(t,e,r)=>{let n=r.slice(0,3);return 1===r.length&&(n=r+"00"),2===r.length&&(n=r+"0"),`${e},${n}`}).replace(/\{\\([ibu])\}/g,"").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/{[\s\S]*?}/g,"").concat("\r\n\r\n"))}function o(t){return URL.createObjectURL(new Blob([t],{type:"text/vtt"}))}function a(t){let e=RegExp("Dialogue:\\s\\d,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}([\\s\\S]*)$","i");function r(t=""){return t.split(/[:.]/).map((t,e,r)=>{if(e===r.length-1){if(1===t.length)return`.${t}00`;if(2===t.length)return`.${t}0`}else if(1===t.length)return(0===e?"0":":0")+t;return 0===e?t:e===r.length-1?`.${t}`:`:${t}`}).join("")}return`WEBVTT ${t.split(/\r?\n/).map(t=>{let n=t.match(e);return n?{start:r(n[1].trim()),end:r(n[2].trim()),text:n[5].replace(/{[\s\S]*?}/g,"").replace(/(\\N)/g,"\n").trim().split(/\r?\n/).map(t=>t.trim()).join("\n")}:null}).filter(t=>t).map((t,e)=>t?`${e+1} ${t.start} --> ${t.end} ${t.text}`:"").filter(t=>t.trim()).join("\n\n")}`}n.defineInteropFlag(r),n.export(r,"srtToVtt",()=>i),n.export(r,"vttToBlob",()=>o),n.export(r,"assToVtt",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1VRQn":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t,e){let r=document.createElement("a");r.style.display="none",r.href=t,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r)}n.defineInteropFlag(r),n.export(r,"getExt",()=>function t(e){return e.includes("?")?t(e.split("?")[0]):e.includes("#")?t(e.split("#")[0]):e.trim().toLowerCase().split(".").pop()}),n.export(r,"download",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3weX2":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"def",()=>i),n.export(r,"has",()=>a),n.export(r,"get",()=>s),n.export(r,"mergeDeep",()=>function t(...e){let r=t=>t&&"object"==typeof t&&!Array.isArray(t);return e.reduce((e,n)=>(Object.keys(n).forEach(i=>{let o=e[i],a=n[i];Array.isArray(o)&&Array.isArray(a)?e[i]=o.concat(...a):r(o)&&r(a)?e[i]=t(o,a):e[i]=a}),e),{})});let i=Object.defineProperty,{hasOwnProperty:o}=Object.prototype;function a(t,e){return o.call(t,e)}function s(t,e){return Object.getOwnPropertyDescriptor(t,e)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7kBIx":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t=0){return new Promise(e=>setTimeout(e,t))}function o(t,e){let r;return function(...n){clearTimeout(r),r=setTimeout(()=>(r=null,t.apply(this,n)),e)}}function a(t,e){let r=!1;return function(...n){r||(t.apply(this,n),r=!0,setTimeout(function(){r=!1},e))}}n.defineInteropFlag(r),n.export(r,"sleep",()=>i),n.export(r,"debounce",()=>o),n.export(r,"throttle",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"13atT":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t,e,r){return Math.max(Math.min(t,Math.max(e,r)),Math.min(e,r))}function o(t){return t.charAt(0).toUpperCase()+t.slice(1)}function a(t){return["string","number"].includes(typeof t)}function s(t){if(!t)return"00:00";let e=Math.floor(t/3600),r=Math.floor((t-3600*e)/60),n=Math.floor(t-3600*e-60*r);return(e>0?[e,r,n]:[r,n]).map(t=>t<10?`0${t}`:String(t)).join(":")}function u(t){return t.replace(/[&<>'"]/g,t=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[t]||t)}function l(t){let e={"&":"&","<":"<",">":">","'":"'",""":'"'},r=RegExp(`(${Object.keys(e).join("|")})`,"g");return t.replace(r,t=>e[t]||t)}n.defineInteropFlag(r),n.export(r,"clamp",()=>i),n.export(r,"capitalize",()=>o),n.export(r,"isStringOrNumber",()=>a),n.export(r,"secondToTime",()=>s),n.export(r,"escape",()=>u),n.export(r,"unescape",()=>l)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],AdvwB:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ComponentOption",()=>p);var i=t("../utils");let o="array",a="boolean",s="string",u="number",l="object",c="function";function f(t,e,r){return(0,i.errorHandle)(e===s||e===u||t instanceof Element,`${r.join(".")} require '${s}' or 'Element' type`)}let p={html:f,disable:`?${a}`,name:`?${s}`,index:`?${u}`,style:`?${l}`,click:`?${c}`,mounted:`?${c}`,tooltip:`?${s}|${u}`,width:`?${u}`,selector:`?${o}`,onSelect:`?${c}`,switch:`?${a}`,onSwitch:`?${c}`,range:`?${o}`,onRange:`?${c}`,onChange:`?${c}`};r.default={id:s,container:f,url:s,poster:s,type:s,theme:s,lang:s,volume:u,isLive:a,muted:a,autoplay:a,autoSize:a,autoMini:a,loop:a,flip:a,playbackRate:a,aspectRatio:a,screenshot:a,setting:a,hotkey:a,pip:a,mutex:a,backdrop:a,fullscreen:a,fullscreenWeb:a,subtitleOffset:a,miniProgressBar:a,useSSR:a,playsInline:a,lock:a,fastForward:a,autoPlayback:a,autoOrientation:a,airplay:a,plugins:[c],layers:[p],contextmenu:[p],settings:[p],controls:[{...p,position:(t,e,r)=>{let n=["top","left","right"];return(0,i.errorHandle)(n.includes(t),`${r.join(".")} only accept ${n.toString()} as parameters`)}}],quality:[{default:`?${a}`,html:s,url:s}],highlight:[{time:u,text:s}],thumbnails:{url:s,number:u,column:u,width:u,height:u},subtitle:{url:s,name:s,type:s,style:l,escape:a,encoding:s,onVttLoad:c},moreVideoAttr:l,i18n:l,icons:l,cssVar:l,customType:l}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9Xmqu":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={propertys:["audioTracks","autoplay","buffered","controller","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","mediaGroup","muted","networkState","paused","playbackRate","played","preload","readyState","seekable","seeking","src","startDate","textTracks","videoTracks","volume"],methods:["addTextTrack","canPlayType","load","play","pause"],events:["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],prototypes:["width","height","videoWidth","videoHeight","poster","webkitDecodedFrameCount","webkitDroppedFrameCount","playsInline","webkitSupportsFullscreen","webkitDisplayingFullscreen","onenterpictureinpicture","onleavepictureinpicture","disablePictureInPicture","cancelVideoFrameCallback","requestVideoFrameCallback","getVideoPlaybackQuality","requestPictureInPicture","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen"]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2gKYH":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("./utils");class i{constructor(t){this.art=t;let{option:e,constructor:r}=t;e.container instanceof Element?this.$container=e.container:(this.$container=(0,n.query)(e.container),(0,n.errorHandle)(this.$container,`No container element found by ${e.container}`));let i=this.$container.tagName.toLowerCase();(0,n.errorHandle)("div"===i,`Unsupported container element type, only support 'div' but got '${i}'`),(0,n.errorHandle)(r.instances.every(t=>t.template.$container!==this.$container),"Cannot mount multiple instances on the same dom element"),this.query=this.query.bind(this),this.$container.dataset.artId=t.id,this.init()}static get html(){return'
Player version:
5.1.1
Video url:
Video volume:
Video time:
Video duration:
Video resolution:
x
[x]
'}query(t){return(0,n.query)(t,this.$container)}init(){let{option:t}=this.art;t.useSSR||(this.$container.innerHTML=i.html),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$track=this.query("track"),this.$poster=this.query(".art-poster"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsCenter=this.query(".art-controls-center"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$contextmenu=this.query(".art-contextmenus"),t.backdrop&&(0,n.addClass)(this.$player,"art-backdrop"),n.isMobile&&(0,n.addClass)(this.$player,"art-mobile")}destroy(t){t?this.$container.innerHTML="":(0,n.addClass)(this.$player,"art-destroy")}}r.default=i},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1AdeF":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),o=t("./zh-cn"),a=n.interopDefault(o);r.default=class{constructor(t){this.art=t,this.languages={"zh-cn":a.default},this.language={},this.update(t.option.i18n)}init(){let t=this.art.option.lang.toLowerCase();this.language=this.languages[t]||{}}get(t){return this.language[t]||t}update(t){this.languages=(0,i.mergeDeep)(this.languages,t),this.init()}}},{"../utils":"h3rH9","./zh-cn":"3ZSKq","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3ZSKq":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let n={"Video Info":"统计信息",Close:"关闭","Video Load Failed":"加载失败",Volume:"音量",Play:"播放",Pause:"暂停",Rate:"速度",Mute:"静音","Video Flip":"画面翻转",Horizontal:"水平",Vertical:"垂直",Reconnect:"重新连接","Show Setting":"显示设置","Hide Setting":"隐藏设置",Screenshot:"截图","Play Speed":"播放速度","Aspect Ratio":"画面比例",Default:"默认",Normal:"正常",Open:"打开","Switch Video":"切换","Switch Subtitle":"切换字幕",Fullscreen:"全屏","Exit Fullscreen":"退出全屏","Web Fullscreen":"网页全屏","Exit Web Fullscreen":"退出网页全屏","Mini Player":"迷你播放器","PIP Mode":"开启画中画","Exit PIP Mode":"退出画中画","PIP Not Supported":"不支持画中画","Fullscreen Not Supported":"不支持全屏","Subtitle Offset":"字幕偏移","Last Seen":"上次看到","Jump Play":"跳转播放",AirPlay:"隔空播放","AirPlay Not Available":"隔空播放不可用"};r.default=n,"undefined"!=typeof window&&(window["artplayer-i18n-zh-cn"]=n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"556MW":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./urlMix"),o=n.interopDefault(i),a=t("./attrMix"),s=n.interopDefault(a),u=t("./playMix"),l=n.interopDefault(u),c=t("./pauseMix"),f=n.interopDefault(c),p=t("./toggleMix"),d=n.interopDefault(p),h=t("./seekMix"),y=n.interopDefault(h),g=t("./volumeMix"),v=n.interopDefault(g),M=t("./currentTimeMix"),_=n.interopDefault(M),m=t("./durationMix"),b=n.interopDefault(m),j=t("./switchMix"),x=n.interopDefault(j),N=t("./playbackRateMix"),w=n.interopDefault(N),D=t("./aspectRatioMix"),I=n.interopDefault(D),O=t("./screenshotMix"),T=n.interopDefault(O),A=t("./fullscreenMix"),z=n.interopDefault(A),k=t("./fullscreenWebMix"),S=n.interopDefault(k),E=t("./pipMix"),L=n.interopDefault(E),C=t("./loadedMix"),U=n.interopDefault(C),P=t("./playedMix"),Q=n.interopDefault(P),Y=t("./playingMix"),R=n.interopDefault(Y),F=t("./autoSizeMix"),B=n.interopDefault(F),Z=t("./rectMix"),q=n.interopDefault(Z),H=t("./flipMix"),V=n.interopDefault(H),W=t("./miniMix"),G=n.interopDefault(W),$=t("./posterMix"),J=n.interopDefault($),X=t("./autoHeightMix"),K=n.interopDefault(X),tt=t("./cssVarMix"),te=n.interopDefault(tt),tr=t("./themeMix"),tn=n.interopDefault(tr),ti=t("./typeMix"),to=n.interopDefault(ti),ta=t("./stateMix"),ts=n.interopDefault(ta),tu=t("./subtitleOffsetMix"),tl=n.interopDefault(tu),tc=t("./airplayMix"),tf=n.interopDefault(tc),tp=t("./qualityMix"),td=n.interopDefault(tp),th=t("./optionInit"),ty=n.interopDefault(th),tg=t("./eventInit"),tv=n.interopDefault(tg);r.default=class{constructor(t){(0,o.default)(t),(0,s.default)(t),(0,l.default)(t),(0,f.default)(t),(0,d.default)(t),(0,y.default)(t),(0,v.default)(t),(0,_.default)(t),(0,b.default)(t),(0,x.default)(t),(0,w.default)(t),(0,I.default)(t),(0,T.default)(t),(0,z.default)(t),(0,S.default)(t),(0,L.default)(t),(0,U.default)(t),(0,Q.default)(t),(0,R.default)(t),(0,B.default)(t),(0,q.default)(t),(0,V.default)(t),(0,G.default)(t),(0,J.default)(t),(0,K.default)(t),(0,te.default)(t),(0,tn.default)(t),(0,to.default)(t),(0,ts.default)(t),(0,tl.default)(t),(0,tf.default)(t),(0,td.default)(t),(0,tv.default)(t),(0,ty.default)(t)}}},{"./urlMix":"2mRAc","./attrMix":"2EA19","./playMix":"fD2Tc","./pauseMix":"c3LGJ","./toggleMix":"fVsAa","./seekMix":"dmROF","./volumeMix":"9jtfB","./currentTimeMix":"7NCDR","./durationMix":"YS7JL","./switchMix":"dzUqN","./playbackRateMix":"5I2mT","./aspectRatioMix":"7m6R8","./screenshotMix":"2dgtR","./fullscreenMix":"fKDW8","./fullscreenWebMix":"lNvYI","./pipMix":"8j7oC","./loadedMix":"dwVOT","./playedMix":"dDeLx","./playingMix":"ceoBp","./autoSizeMix":"lcWXX","./rectMix":"f7y88","./flipMix":"l4qt5","./miniMix":"9ZPBQ","./posterMix":"5K8hA","./autoHeightMix":"3T5ls","./cssVarMix":"6KfHs","./themeMix":"7lcSc","./typeMix":"8JgTw","./stateMix":"cebt1","./subtitleOffsetMix":"hJvIy","./airplayMix":"4Tp0U","./qualityMix":"3wZgN","./optionInit":"iPdgW","./eventInit":"3mj0J","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2mRAc":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{option:e,template:{$video:r}}=t;(0,n.def)(t,"url",{get:()=>r.src,async set(i){if(i){let o=t.url,a=e.type||(0,n.getExt)(i),s=e.customType[a];a&&s?(await (0,n.sleep)(),t.loading.show=!0,s.call(t,r,i,t)):(URL.revokeObjectURL(o),r.src=i),o!==t.url&&(t.option.url=i,t.isReady&&o&&t.once("video:canplay",()=>{t.emit("restart",i)}))}else await (0,n.sleep)(),t.loading.show=!0}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2EA19":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{template:{$video:e}}=t;(0,n.def)(t,"attr",{value(t,r){if(void 0===r)return e[t];e[t]=r}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fD2Tc:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{i18n:e,notice:r,option:i,constructor:{instances:o},template:{$video:a}}=t;(0,n.def)(t,"play",{value:async function(){let n=await a.play();if(r.show=e.get("Play"),t.emit("play"),i.mutex)for(let e=0;et.playing?t.pause():t.play()})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dmROF:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{notice:e}=t;(0,n.def)(t,"seek",{set(r){t.currentTime=r,t.emit("seek",t.currentTime),t.duration&&(e.show=`${(0,n.secondToTime)(t.currentTime)} / ${(0,n.secondToTime)(t.duration)}`)}}),(0,n.def)(t,"forward",{set(e){t.seek=t.currentTime+e}}),(0,n.def)(t,"backward",{set(e){t.seek=t.currentTime-e}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9jtfB":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{template:{$video:e},i18n:r,notice:i,storage:o}=t;(0,n.def)(t,"volume",{get:()=>e.volume||0,set:t=>{e.volume=(0,n.clamp)(t,0,1),i.show=`${r.get("Volume")}: ${parseInt(100*e.volume,10)}`,0!==e.volume&&o.set("volume",e.volume)}}),(0,n.def)(t,"muted",{get:()=>e.muted,set:r=>{e.muted=r,t.emit("muted",r)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7NCDR":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{$video:e}=t.template;(0,n.def)(t,"currentTime",{get:()=>e.currentTime||0,set:r=>{Number.isNaN(r=parseFloat(r))||(e.currentTime=(0,n.clamp)(r,0,t.duration))}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],YS7JL:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"duration",{get:()=>{let{duration:e}=t.template.$video;return e===1/0?0:e||0}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dzUqN:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){function e(e,r){return new Promise((n,i)=>{if(e===t.url)return;let{playing:o,aspectRatio:a,playbackRate:s}=t;t.pause(),t.url=e,t.notice.show="",t.once("video:error",i),t.once("video:canplay",async()=>{t.playbackRate=s,t.aspectRatio=a,t.currentTime=r,o&&await t.play(),t.notice.show="",n()})})}(0,n.def)(t,"switchQuality",{value:r=>e(r,t.currentTime)}),(0,n.def)(t,"switchUrl",{value:t=>e(t,0)}),(0,n.def)(t,"switch",{set:t.switchUrl})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5I2mT":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{template:{$video:e},i18n:r,notice:i}=t;(0,n.def)(t,"playbackRate",{get:()=>e.playbackRate,set(n){n?n!==e.playbackRate&&(e.playbackRate=n,i.show=`${r.get("Rate")}: ${1===n?r.get("Normal"):`${n}x`}`):t.playbackRate=1}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7m6R8":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{i18n:e,notice:r,template:{$video:i,$player:o}}=t;(0,n.def)(t,"aspectRatio",{get:()=>o.dataset.aspectRatio||"default",set(a){if(a||(a="default"),"default"===a)(0,n.setStyle)(i,"width",null),(0,n.setStyle)(i,"height",null),(0,n.setStyle)(i,"margin",null),delete o.dataset.aspectRatio;else{let t=a.split(":").map(Number),{clientWidth:e,clientHeight:r}=o,s=t[0]/t[1];e/r>s?((0,n.setStyle)(i,"width",s*r+"px"),(0,n.setStyle)(i,"height","100%"),(0,n.setStyle)(i,"margin","0 auto")):((0,n.setStyle)(i,"width","100%"),(0,n.setStyle)(i,"height",e/s+"px"),(0,n.setStyle)(i,"margin","auto 0")),o.dataset.aspectRatio=a}r.show=`${e.get("Aspect Ratio")}: ${"default"===a?e.get("Default"):a}`,t.emit("aspectRatio",a)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2dgtR":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{notice:e,template:{$video:r}}=t,i=(0,n.createElement)("canvas");(0,n.def)(t,"getDataURL",{value:()=>new Promise((t,n)=>{try{i.width=r.videoWidth,i.height=r.videoHeight,i.getContext("2d").drawImage(r,0,0),t(i.toDataURL("image/png"))}catch(t){e.show=t,n(t)}})}),(0,n.def)(t,"getBlobUrl",{value:()=>new Promise((t,n)=>{try{i.width=r.videoWidth,i.height=r.videoHeight,i.getContext("2d").drawImage(r,0,0),i.toBlob(e=>{t(URL.createObjectURL(e))})}catch(t){e.show=t,n(t)}})}),(0,n.def)(t,"screenshot",{value:async()=>{let e=await t.getDataURL();return(0,n.download)(e,`artplayer_${(0,n.secondToTime)(r.currentTime)}.png`),t.emit("screenshot",e),e}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fKDW8:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../libs/screenfull"),o=n.interopDefault(i),a=t("../utils");r.default=function(t){let{i18n:e,notice:r,template:{$video:n,$player:i}}=t;t.once("video:loadedmetadata",()=>{o.default.isEnabled?(o.default.on("change",()=>{t.emit("fullscreen",o.default.isFullscreen)}),(0,a.def)(t,"fullscreen",{get:()=>o.default.isFullscreen,async set(e){e?(t.state="fullscreen",await o.default.request(i),(0,a.addClass)(i,"art-fullscreen")):(await o.default.exit(),(0,a.removeClass)(i,"art-fullscreen")),t.emit("resize")}})):document.fullscreenEnabled||n.webkitSupportsFullscreen?(0,a.def)(t,"fullscreen",{get:()=>n.webkitDisplayingFullscreen,set(e){e?(t.state="fullscreen",n.webkitEnterFullscreen(),t.emit("fullscreen",!0)):(n.webkitExitFullscreen(),t.emit("fullscreen",!1)),t.emit("resize")}}):(0,a.def)(t,"fullscreen",{get:()=>!1,set(){r.show=e.get("Fullscreen Not Supported")}}),(0,a.def)(t,"fullscreen",(0,a.get)(t,"fullscreen"))})}},{"../libs/screenfull":"lUahW","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lUahW:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i=(()=>{if("undefined"==typeof document)return!1;let t=n[0],e={};for(let r of n)if(r[1]in document){for(let[n,i]of r.entries())e[t[n]]=i;return e}return!1})(),o={change:i.fullscreenchange,error:i.fullscreenerror},a={request:(t=document.documentElement,e)=>new Promise((r,n)=>{let o=()=>{a.off("change",o),r()};a.on("change",o);let s=t[i.requestFullscreen](e);s instanceof Promise&&s.then(o).catch(n)}),exit:()=>new Promise((t,e)=>{if(!a.isFullscreen)return void t();let r=()=>{a.off("change",r),t()};a.on("change",r);let n=document[i.exitFullscreen]();n instanceof Promise&&n.then(r).catch(e)}),toggle:(t,e)=>a.isFullscreen?a.exit():a.request(t,e),onchange(t){a.on("change",t)},onerror(t){a.on("error",t)},on(t,e){let r=o[t];r&&document.addEventListener(r,e,!1)},off(t,e){let r=o[t];r&&document.removeEventListener(r,e,!1)},raw:i};Object.defineProperties(a,{isFullscreen:{get:()=>!!document[i.fullscreenElement]},element:{enumerable:!0,get:()=>document[i.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>!!document[i.fullscreenEnabled]}}),i||(a={isEnabled:!1}),r.default=a},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lNvYI:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{constructor:e,template:{$container:r,$player:i}}=t,o="";(0,n.def)(t,"fullscreenWeb",{get:()=>(0,n.hasClass)(i,"art-fullscreen-web"),set(a){a?(o=i.style.cssText,e.FULLSCREEN_WEB_IN_BODY&&(0,n.append)(document.body,i),t.state="fullscreenWeb",(0,n.setStyle)(i,"width","100%"),(0,n.setStyle)(i,"height","100%"),(0,n.addClass)(i,"art-fullscreen-web"),t.emit("fullscreenWeb",!0)):(e.FULLSCREEN_WEB_IN_BODY&&(0,n.append)(r,i),o&&(i.style.cssText=o,o=""),(0,n.removeClass)(i,"art-fullscreen-web"),t.emit("fullscreenWeb",!1)),t.emit("resize")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8j7oC":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{i18n:e,notice:r,template:{$video:i}}=t;document.pictureInPictureEnabled?function(t){let{template:{$video:e},proxy:r,notice:i}=t;e.disablePictureInPicture=!1,(0,n.def)(t,"pip",{get:()=>document.pictureInPictureElement,set(r){r?(t.state="pip",e.requestPictureInPicture().catch(t=>{throw i.show=t,t})):document.exitPictureInPicture().catch(t=>{throw i.show=t,t})}}),r(e,"enterpictureinpicture",()=>{t.emit("pip",!0)}),r(e,"leavepictureinpicture",()=>{t.emit("pip",!1)})}(t):i.webkitSupportsPresentationMode?function(t){let{$video:e}=t.template;e.webkitSetPresentationMode("inline"),(0,n.def)(t,"pip",{get:()=>"picture-in-picture"===e.webkitPresentationMode,set(r){r?(t.state="pip",e.webkitSetPresentationMode("picture-in-picture"),t.emit("pip",!0)):(e.webkitSetPresentationMode("inline"),t.emit("pip",!1))}})}(t):(0,n.def)(t,"pip",{get:()=>!1,set(){r.show=e.get("PIP Not Supported")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dwVOT:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{$video:e}=t.template;(0,n.def)(t,"loaded",{get:()=>t.loadedTime/e.duration}),(0,n.def)(t,"loadedTime",{get:()=>e.buffered.length?e.buffered.end(e.buffered.length-1):0})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dDeLx:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"played",{get:()=>t.currentTime/t.duration})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],ceoBp:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{$video:e}=t.template;(0,n.def)(t,"playing",{get:()=>!!(e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lcWXX:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{$container:e,$player:r,$video:i}=t.template;(0,n.def)(t,"autoSize",{value(){let{videoWidth:o,videoHeight:a}=i,{width:s,height:u}=e.getBoundingClientRect(),l=o/a;s/u>l?((0,n.setStyle)(r,"width",`${u*l/s*100}%`),(0,n.setStyle)(r,"height","100%")):((0,n.setStyle)(r,"width","100%"),(0,n.setStyle)(r,"height",`${s/l/u*100}%`)),t.emit("autoSize",{width:t.width,height:t.height})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f7y88:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"rect",{get:()=>t.template.$player.getBoundingClientRect()});let e=["bottom","height","left","right","top","width"];for(let r=0;rt.rect[i]})}(0,n.def)(t,"x",{get:()=>t.left+window.pageXOffset}),(0,n.def)(t,"y",{get:()=>t.top+window.pageYOffset})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],l4qt5:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{template:{$player:e},i18n:r,notice:i}=t;(0,n.def)(t,"flip",{get:()=>e.dataset.flip||"normal",set(o){o||(o="normal"),"normal"===o?delete e.dataset.flip:e.dataset.flip=o,i.show=`${r.get("Video Flip")}: ${r.get((0,n.capitalize)(o))}`,t.emit("flip",o)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9ZPBQ":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{icons:e,proxy:r,storage:i,template:{$player:o,$video:a}}=t,s=!1,u=0,l=0;function c(){let{$mini:e}=t.template;e&&((0,n.removeClass)(o,"art-mini"),(0,n.setStyle)(e,"display","none"),o.prepend(a),t.emit("mini",!1))}function f(e,r){t.playing?((0,n.setStyle)(e,"display","none"),(0,n.setStyle)(r,"display","flex")):((0,n.setStyle)(e,"display","flex"),(0,n.setStyle)(r,"display","none"))}function p(){let{$mini:e}=t.template,r=e.getBoundingClientRect(),o=window.innerHeight-r.height-50,a=window.innerWidth-r.width-50;i.set("top",o),i.set("left",a),(0,n.setStyle)(e,"top",`${o}px`),(0,n.setStyle)(e,"left",`${a}px`)}(0,n.def)(t,"mini",{get:()=>(0,n.hasClass)(o,"art-mini"),set(d){if(d){t.state="mini",(0,n.addClass)(o,"art-mini");let d=function(){let{$mini:o}=t.template;if(o)return(0,n.append)(o,a),(0,n.setStyle)(o,"display","flex");{let o=(0,n.createElement)("div");(0,n.addClass)(o,"art-mini-popup"),(0,n.append)(document.body,o),t.template.$mini=o,(0,n.append)(o,a);let p=(0,n.append)(o,'
');(0,n.append)(p,e.close),r(p,"click",c);let d=(0,n.append)(o,'
'),h=(0,n.append)(d,e.play),y=(0,n.append)(d,e.pause);return r(h,"click",()=>t.play()),r(y,"click",()=>t.pause()),f(h,y),t.on("video:playing",()=>f(h,y)),t.on("video:pause",()=>f(h,y)),t.on("video:timeupdate",()=>f(h,y)),r(o,"mousedown",t=>{s=0===t.button,u=t.pageX,l=t.pageY}),t.on("document:mousemove",t=>{if(s){(0,n.addClass)(o,"art-mini-droging");let e=t.pageX-u,r=t.pageY-l;(0,n.setStyle)(o,"transform",`translate(${e}px, ${r}px)`)}}),t.on("document:mouseup",()=>{if(s){s=!1,(0,n.removeClass)(o,"art-mini-droging");let t=o.getBoundingClientRect();i.set("left",t.left),i.set("top",t.top),(0,n.setStyle)(o,"left",`${t.left}px`),(0,n.setStyle)(o,"top",`${t.top}px`),(0,n.setStyle)(o,"transform",null)}}),o}}(),h=i.get("top"),y=i.get("left");h&&y?((0,n.setStyle)(d,"top",`${h}px`),(0,n.setStyle)(d,"left",`${y}px`),(0,n.isInViewport)(d)||p()):p(),t.emit("mini",!0)}else c()}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5K8hA":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{template:{$poster:e}}=t;(0,n.def)(t,"poster",{get:()=>{try{return e.style.backgroundImage.match(/"(.*)"/)[1]}catch(t){return""}},set(t){(0,n.setStyle)(e,"backgroundImage",`url(${t})`)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3T5ls":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{template:{$container:e,$video:r}}=t;(0,n.def)(t,"autoHeight",{value(){let{clientWidth:i}=e,{videoHeight:o,videoWidth:a}=r,s=i/a*o;(0,n.setStyle)(e,"height",s+"px"),t.emit("autoHeight",s)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6KfHs":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{$player:e}=t.template;(0,n.def)(t,"cssVar",{value:(t,r)=>r?e.style.setProperty(t,r):getComputedStyle(e).getPropertyValue(t)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7lcSc":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"theme",{get:()=>t.cssVar("--art-theme"),set(e){t.cssVar("--art-theme",e)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8JgTw":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"type",{get:()=>t.option.type,set(e){t.option.type=e}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],cebt1:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let e=["mini","pip","fullscreen","fullscreenWeb"];(0,n.def)(t,"state",{get:()=>e.find(e=>t[e])||"standard",set(r){for(let n=0;n{s=[]}),(0,n.def)(t,"subtitleOffset",{get:()=>a,set(n){if(i.$track&&i.$track.track){let u=Array.from(i.$track.track.cues);a=e(n,-5,5);for(let r=0;r{switch(t.availability){case"available":a=!0;break;case"not-available":a=!1}}):a=!1,(0,n.def)(t,"airplay",{value(){a?(o.webkitShowPlaybackTargetPicker(),t.emit("airplay")):r.show=e.get("AirPlay Not Available")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3wZgN":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){(0,n.def)(t,"quality",{set(e){let{controls:r,notice:n,i18n:i}=t,o=e.find(t=>t.default)||e[0];r.update({name:"quality",position:"right",index:10,style:{marginRight:"10px"},html:o?o.html:"",selector:e,async onSelect(e){await t.switchQuality(e.url),n.show=`${i.get("Switch Video")}: ${e.html}`}})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iPdgW:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{option:e,storage:r,template:{$video:i,$poster:o}}=t;for(let r in e.moreVideoAttr)t.attr(r,e.moreVideoAttr[r]);e.muted&&(t.muted=e.muted),e.volume&&(i.volume=(0,n.clamp)(e.volume,0,1));let a=r.get("volume");for(let r in"number"==typeof a&&(i.volume=(0,n.clamp)(a,0,1)),e.poster&&(0,n.setStyle)(o,"backgroundImage",`url(${e.poster})`),e.autoplay&&(i.autoplay=e.autoplay),e.playsInline&&(i.playsInline=!0,i["webkit-playsinline"]=!0),e.theme&&(e.cssVar["--art-theme"]=e.theme),e.cssVar)t.cssVar(r,e.cssVar[r]);t.url=e.url}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3mj0J":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../config"),o=n.interopDefault(i),a=t("../utils");r.default=function(t){let{i18n:e,notice:r,option:n,constructor:i,proxy:s,template:{$player:u,$video:l,$poster:c}}=t,f=0;for(let e=0;e{t.emit(`video:${e.type}`,e)});t.on("video:canplay",()=>{f=0,t.loading.show=!1}),t.once("video:canplay",()=>{t.loading.show=!1,t.controls.show=!0,t.mask.show=!0,t.isReady=!0,t.emit("ready")}),t.on("video:ended",()=>{n.loop?(t.seek=0,t.play(),t.controls.show=!1,t.mask.show=!1):(t.controls.show=!0,t.mask.show=!0)}),t.on("video:error",async o=>{f{t.emit("resize"),a.isMobile&&(t.loading.show=!1,t.controls.show=!0,t.mask.show=!0)}),t.on("video:loadstart",()=>{t.loading.show=!0,t.mask.show=!1,t.controls.show=!0}),t.on("video:pause",()=>{t.controls.show=!0,t.mask.show=!0}),t.on("video:play",()=>{t.mask.show=!1,(0,a.setStyle)(c,"display","none")}),t.on("video:playing",()=>{t.mask.show=!1}),t.on("video:progress",()=>{t.playing&&(t.loading.show=!1)}),t.on("video:seeked",()=>{t.loading.show=!1,t.mask.show=!0}),t.on("video:seeking",()=>{t.loading.show=!0,t.mask.show=!1}),t.on("video:timeupdate",()=>{t.mask.show=!1}),t.on("video:waiting",()=>{t.loading.show=!0,t.mask.show=!1})}},{"../config":"9Xmqu","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"14IBq":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),o=t("../utils/component"),a=n.interopDefault(o),s=t("./fullscreen"),u=n.interopDefault(s),l=t("./fullscreenWeb"),c=n.interopDefault(l),f=t("./pip"),p=n.interopDefault(f),d=t("./playAndPause"),h=n.interopDefault(d),y=t("./progress"),g=n.interopDefault(y),v=t("./time"),M=n.interopDefault(v),_=t("./volume"),m=n.interopDefault(_),b=t("./setting"),j=n.interopDefault(b),x=t("./thumbnails"),N=n.interopDefault(x),w=t("./screenshot"),D=n.interopDefault(w),I=t("./airplay"),O=n.interopDefault(I);class T extends a.default{constructor(t){super(t),this.name="control",this.timer=Date.now();let{constructor:e}=t,{$player:r}=this.art.template;t.on("mousemove",()=>{i.isMobile||(this.show=!0)}),t.on("click",()=>{i.isMobile?this.toggle():this.show=!0}),t.on("video:timeupdate",()=>{!t.isInput&&t.playing&&this.show&&Date.now()-this.timer>=e.CONTROL_HIDE_TIME&&(this.show=!1)}),t.on("control",t=>{t?((0,i.removeClass)(r,"art-hide-cursor"),(0,i.addClass)(r,"art-hover"),this.timer=Date.now()):((0,i.addClass)(r,"art-hide-cursor"),(0,i.removeClass)(r,"art-hover"))}),this.init()}init(){let{option:t}=this.art;t.isLive||this.add((0,g.default)({name:"progress",position:"top",index:10})),!t.thumbnails.url||t.isLive||i.isMobile||this.add((0,N.default)({name:"thumbnails",position:"top",index:20})),this.add((0,h.default)({name:"playAndPause",position:"left",index:10})),this.add((0,m.default)({name:"volume",position:"left",index:20})),t.isLive||this.add((0,M.default)({name:"time",position:"left",index:30})),t.quality.length&&(0,i.sleep)().then(()=>{this.art.quality=t.quality}),t.screenshot&&!i.isMobile&&this.add((0,D.default)({name:"screenshot",position:"right",index:20})),t.setting&&this.add((0,j.default)({name:"setting",position:"right",index:30})),t.pip&&this.add((0,p.default)({name:"pip",position:"right",index:40})),t.airplay&&window.WebKitPlaybackTargetAvailabilityEvent&&this.add((0,O.default)({name:"airplay",position:"right",index:50})),t.fullscreenWeb&&this.add((0,c.default)({name:"fullscreenWeb",position:"right",index:60})),t.fullscreen&&this.add((0,u.default)({name:"fullscreen",position:"right",index:70}));for(let e=0;eNumber(t.dataset.index)>=Number(o.dataset.index));c?c.insertAdjacentElement("beforebegin",o):(0,i.append)(this.$parent,o),e.html&&(0,i.append)(o,e.html),e.style&&(0,i.setStyles)(o,e.style),e.tooltip&&(0,i.tooltip)(o,e.tooltip);let f=[];if(e.click){let t=this.art.events.proxy(o,"click",t=>{t.preventDefault(),e.click.call(this.art,this,t)});f.push(t)}return e.selector&&["left","right"].includes(e.position)&&this.addSelector(e,o,f),this[r]=o,this.cache.set(r,{$ref:o,events:f,option:e}),e.mounted&&e.mounted.call(this.art,o),o}addSelector(t,e,r){let{hover:n,proxy:a}=this.art.events;(0,i.addClass)(e,"art-control-selector");let s=(0,i.createElement)("div");(0,i.addClass)(s,"art-selector-value"),(0,i.append)(s,t.html),e.innerText="",(0,i.append)(e,s);let u=t.selector.map((t,e)=>`
${t.html}
`).join(""),l=(0,i.createElement)("div");(0,i.addClass)(l,"art-selector-list"),(0,i.append)(l,u),(0,i.append)(e,l);let c=()=>{let t=(0,i.getStyle)(e,"width")/2-(0,i.getStyle)(l,"width")/2;l.style.left=`${t}px`};n(e,c);let f=a(l,"click",async e=>{let r=(e.composedPath()||[]).find(t=>(0,i.hasClass)(t,"art-selector-item"));if(!r)return;(0,i.inverseClass)(r,"art-current");let n=Number(r.dataset.index),a=t.selector[n]||{};if(s.innerText=r.innerText,t.onSelect){let n=await t.onSelect.call(this.art,a,r,e);(0,o.isStringOrNumber)(n)&&(s.innerHTML=n)}c()});r.push(f)}remove(t){let e=this.cache.get(t);(0,a.errorHandle)(e,`Can't find [${t}] from the [${this.name}]`),e.option.beforeUnmount&&e.option.beforeUnmount.call(this.art,e.$ref);for(let t=0;t({...t,tooltip:e.i18n.get("Fullscreen"),mounted:t=>{let{proxy:r,icons:i,i18n:o}=e,a=(0,n.append)(t,i.fullscreenOn),s=(0,n.append)(t,i.fullscreenOff);(0,n.setStyle)(s,"display","none"),r(t,"click",()=>{e.fullscreen=!e.fullscreen}),e.on("fullscreen",e=>{e?((0,n.tooltip)(t,o.get("Exit Fullscreen")),(0,n.setStyle)(a,"display","none"),(0,n.setStyle)(s,"display","inline-flex")):((0,n.tooltip)(t,o.get("Fullscreen")),(0,n.setStyle)(a,"display","inline-flex"),(0,n.setStyle)(s,"display","none"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"66eEC":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>({...t,tooltip:e.i18n.get("Web Fullscreen"),mounted:t=>{let{proxy:r,icons:i,i18n:o}=e,a=(0,n.append)(t,i.fullscreenWebOn),s=(0,n.append)(t,i.fullscreenWebOff);(0,n.setStyle)(s,"display","none"),r(t,"click",()=>{e.fullscreenWeb=!e.fullscreenWeb}),e.on("fullscreenWeb",e=>{e?((0,n.tooltip)(t,o.get("Exit Web Fullscreen")),(0,n.setStyle)(a,"display","none"),(0,n.setStyle)(s,"display","inline-flex")):((0,n.tooltip)(t,o.get("Web Fullscreen")),(0,n.setStyle)(a,"display","inline-flex"),(0,n.setStyle)(s,"display","none"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kCFkA:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>({...t,tooltip:e.i18n.get("PIP Mode"),mounted:t=>{let{proxy:r,icons:i,i18n:o}=e;(0,n.append)(t,i.pip),r(t,"click",()=>{e.pip=!e.pip}),e.on("pip",e=>{(0,n.tooltip)(t,o.get(e?"Exit PIP Mode":"PIP Mode"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iRhgD:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>({...t,mounted:t=>{let{proxy:r,icons:i,i18n:o}=e,a=(0,n.append)(t,i.play),s=(0,n.append)(t,i.pause);function u(){(0,n.setStyle)(a,"display","flex"),(0,n.setStyle)(s,"display","none")}function l(){(0,n.setStyle)(a,"display","none"),(0,n.setStyle)(s,"display","flex")}(0,n.tooltip)(a,o.get("Play")),(0,n.tooltip)(s,o.get("Pause")),r(a,"click",()=>{e.play()}),r(s,"click",()=>{e.pause()}),e.playing?l():u(),e.on("video:playing",()=>{l()}),e.on("video:pause",()=>{u()})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],aBBSH:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getPosFromEvent",()=>o),n.export(r,"setCurrentTime",()=>a);var i=t("../utils");function o(t,e){let{$progress:r}=t.template,{left:n}=r.getBoundingClientRect(),o=i.isMobile?e.touches[0].clientX:e.clientX,a=(0,i.clamp)(o-n,0,r.clientWidth),s=a/r.clientWidth*t.duration;return{second:s,time:(0,i.secondToTime)(s),width:a,percentage:(0,i.clamp)(a/r.clientWidth,0,1)}}function a(t,e){if(t.isRotate){let r=e.touches[0].clientY/t.height,n=r*t.duration;t.emit("setBar","played",r),t.seek=n}else{let{second:r,percentage:n}=o(t,e);t.emit("setBar","played",n),t.seek=r}}r.default=function(t){return e=>{let{icons:r,option:n,proxy:s}=e;return{...t,html:'
',mounted:t=>{let u=!1,l=(0,i.query)(".art-progress-hover",t),c=(0,i.query)(".art-progress-loaded",t),f=(0,i.query)(".art-progress-played",t),p=(0,i.query)(".art-progress-highlight",t),d=(0,i.query)(".art-progress-indicator",t),h=(0,i.query)(".art-progress-tip",t);function y(t,e){"loaded"===t&&(0,i.setStyle)(c,"width",100*e+"%"),"played"===t&&((0,i.setStyle)(f,"width",100*e+"%"),(0,i.setStyle)(d,"left",100*e+"%"))}r.indicator?(0,i.append)(d,r.indicator):(0,i.setStyle)(d,"backgroundColor","var(--art-theme)"),e.on("video:loadedmetadata",()=>{for(let t=0;t`;(0,i.append)(p,a)}}),y("loaded",e.loaded),e.on("setBar",(t,e)=>{y(t,e)}),e.on("video:progress",()=>{y("loaded",e.loaded)}),e.constructor.USE_RAF?e.on("raf",()=>{y("played",e.played)}):e.on("video:timeupdate",()=>{y("played",e.played)}),e.on("video:ended",()=>{y("played",1)}),i.isMobile||(s(t,"click",t=>{t.target!==d&&a(e,t)}),s(t,"mousemove",r=>{(function(t){let{width:r}=o(e,t);(0,i.setStyle)(l,"width",`${r}px`),(0,i.setStyle)(l,"display","flex")})(r),(0,i.setStyle)(h,"display","flex"),(0,i.includeFromEvent)(r,p)?function(r){let{width:n}=o(e,r),{text:a}=r.target.dataset;h.innerHTML=a;let s=h.clientWidth;n<=s/2?(0,i.setStyle)(h,"left",0):n>t.clientWidth-s/2?(0,i.setStyle)(h,"left",t.clientWidth-s+"px"):(0,i.setStyle)(h,"left",n-s/2+"px")}(r):function(r){let{width:n,time:a}=o(e,r);h.innerHTML=a;let s=h.clientWidth;n<=s/2?(0,i.setStyle)(h,"left",0):n>t.clientWidth-s/2?(0,i.setStyle)(h,"left",t.clientWidth-s+"px"):(0,i.setStyle)(h,"left",n-s/2+"px")}(r)}),s(t,"mouseleave",()=>{(0,i.setStyle)(h,"display","none"),(0,i.setStyle)(l,"display","none")}),s(t,"mousedown",t=>{u=0===t.button}),e.on("document:mousemove",t=>{if(u){let{second:r,percentage:n}=o(e,t);y("played",n),e.seek=r}}),e.on("document:mouseup",()=>{u&&(u=!1)}))}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7H0CE":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>({...t,style:n.isMobile?{fontSize:"12px",padding:"0 5px"}:{cursor:"auto",padding:"0 10px"},mounted:t=>{function r(){let r=`${(0,n.secondToTime)(e.currentTime)} / ${(0,n.secondToTime)(e.duration)}`;r!==t.innerText&&(t.innerText=r)}r();let i=["video:loadedmetadata","video:timeupdate","video:progress"];for(let t=0;t({...t,mounted:t=>{let{proxy:r,icons:i}=e,o=(0,n.append)(t,i.volume),a=(0,n.append)(t,i.volumeClose),s=(0,n.append)(t,'
'),u=(0,n.append)(s,'
'),l=(0,n.append)(u,'
'),c=(0,n.append)(u,'
'),f=(0,n.append)(c,'
'),p=(0,n.append)(f,'
'),d=(0,n.append)(c,'
');function h(t){let{top:e,height:r}=c.getBoundingClientRect();return 1-(t.clientY-e)/r}function y(){if(e.muted||0===e.volume)(0,n.setStyle)(o,"display","none"),(0,n.setStyle)(a,"display","flex"),(0,n.setStyle)(d,"top","100%"),(0,n.setStyle)(p,"top","100%"),l.innerText=0;else{let t=100*e.volume;(0,n.setStyle)(o,"display","flex"),(0,n.setStyle)(a,"display","none"),(0,n.setStyle)(d,"top",100-t+"%"),(0,n.setStyle)(p,"top",100-t+"%"),l.innerText=Math.floor(t)}}if(y(),e.on("video:volumechange",y),r(o,"click",()=>{e.muted=!0}),r(a,"click",()=>{e.muted=!1}),n.isMobile)(0,n.setStyle)(s,"display","none");else{let t=!1;r(c,"mousedown",r=>{t=0===r.button,e.volume=h(r)}),e.on("document:mousemove",r=>{t&&(e.muted=!1,e.volume=h(r))}),e.on("document:mouseup",()=>{t&&(t=!1)})}}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8BrCu":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>({...t,tooltip:e.i18n.get("Show Setting"),mounted:t=>{let{proxy:r,icons:i,i18n:o}=e;(0,n.append)(t,i.setting),r(t,"click",()=>{e.setting.toggle(),e.setting.updateStyle()}),e.on("setting",e=>{(0,n.tooltip)(t,o.get(e?"Hide Setting":"Show Setting"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2HiWx":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils"),i=t("./progress");r.default=function(t){return e=>({...t,mounted:t=>{let{option:r,template:{$progress:o,$video:a},events:{proxy:s,loadImg:u}}=e,l=null,c=!1,f=!1;s(o,"mousemove",async s=>{c||(c=!0,l=await u(r.thumbnails.url),f=!0),f&&((0,n.setStyle)(t,"display","flex"),function(s){let{width:u}=(0,i.getPosFromEvent)(e,s),{url:c,number:f,column:p,width:d,height:h}=r.thumbnails,y=d||l.naturalWidth/p,g=h||y/(a.videoWidth/a.videoHeight),v=Math.floor(u/(o.clientWidth/f));(0,n.setStyle)(t,"backgroundImage",`url(${c})`),(0,n.setStyle)(t,"height",`${g}px`),(0,n.setStyle)(t,"width",`${y}px`),(0,n.setStyle)(t,"backgroundPosition",`-${(v%p||p-1)*y}px -${(Math.ceil(v/p)-1)*g}px`),u<=y/2?(0,n.setStyle)(t,"left",0):u>o.clientWidth-y/2?(0,n.setStyle)(t,"left",o.clientWidth-y+"px"):(0,n.setStyle)(t,"left",u-y/2+"px")}(s))}),s(o,"mouseleave",()=>{(0,n.setStyle)(t,"display","none")}),e.on("hover",e=>{e||(0,n.setStyle)(t,"display","none")})}})}},{"../utils":"h3rH9","./progress":"aBBSH","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],c1GeG:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>({...t,tooltip:e.i18n.get("Screenshot"),mounted:t=>{let{proxy:r,icons:i}=e;(0,n.append)(t,i.screenshot),r(t,"click",()=>{e.screenshot()})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6GRju":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>({...t,tooltip:e.i18n.get("AirPlay"),mounted:t=>{let{proxy:r,icons:i}=e;(0,n.append)(t,i.airplay),r(t,"click",()=>e.airplay())}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7iUum":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),o=t("../utils/component"),a=n.interopDefault(o),s=t("./playbackRate"),u=n.interopDefault(s),l=t("./aspectRatio"),c=n.interopDefault(l),f=t("./flip"),p=n.interopDefault(f),d=t("./info"),h=n.interopDefault(d),y=t("./version"),g=n.interopDefault(y),v=t("./close"),M=n.interopDefault(v);class _ extends a.default{constructor(t){super(t),this.name="contextmenu",this.$parent=t.template.$contextmenu,i.isMobile||this.init()}init(){let{option:t,proxy:e,template:{$player:r,$contextmenu:n}}=this.art;t.playbackRate&&this.add((0,u.default)({name:"playbackRate",index:10})),t.aspectRatio&&this.add((0,c.default)({name:"aspectRatio",index:20})),t.flip&&this.add((0,p.default)({name:"flip",index:30})),this.add((0,h.default)({name:"info",index:40})),this.add((0,g.default)({name:"version",index:50})),this.add((0,M.default)({name:"close",index:60}));for(let e=0;e{if(t.preventDefault(),!this.art.constructor.CONTEXTMENU)return;this.show=!0;let e=t.clientX,o=t.clientY,{height:a,width:s,left:u,top:l}=r.getBoundingClientRect(),{height:c,width:f}=n.getBoundingClientRect(),p=e-u,d=o-l;e+f>u+s&&(p=s-f),o+c>l+a&&(d=a-c),(0,i.setStyles)(n,{top:`${d}px`,left:`${p}px`})}),e(r,"click",t=>{(0,i.includeFromEvent)(t,n)||(this.show=!1)}),this.art.on("blur",()=>{this.show=!1})}}r.default=_},{"../utils":"h3rH9","../utils/component":"guki8","./playbackRate":"f1W36","./aspectRatio":"afxZC","./flip":"9jCuX","./info":"k8wIZ","./version":"bb0TU","./close":"9zTkI","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f1W36:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>{let{i18n:r,constructor:{PLAYBACK_RATE:i}}=e,o=i.map(t=>`${1===t?r.get("Normal"):t.toFixed(1)}`).join("");return{...t,html:`${r.get("Play Speed")}: ${o}`,click:(t,r)=>{let{value:n}=r.target.dataset;n&&(e.playbackRate=Number(n),t.show=!1)},mounted:t=>{let r=(0,n.query)('[data-value="1"]',t);r&&(0,n.inverseClass)(r,"art-current"),e.on("video:ratechange",()=>{let r=(0,n.queryAll)("span",t).find(t=>Number(t.dataset.value)===e.playbackRate);r&&(0,n.inverseClass)(r,"art-current")})}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],afxZC:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>{let{i18n:r,constructor:{ASPECT_RATIO:i}}=e,o=i.map(t=>`${"default"===t?r.get("Default"):t}`).join("");return{...t,html:`${r.get("Aspect Ratio")}: ${o}`,click:(t,r)=>{let{value:n}=r.target.dataset;n&&(e.aspectRatio=n,t.show=!1)},mounted:t=>{let r=(0,n.query)('[data-value="default"]',t);r&&(0,n.inverseClass)(r,"art-current"),e.on("aspectRatio",e=>{let r=(0,n.queryAll)("span",t).find(t=>t.dataset.value===e);r&&(0,n.inverseClass)(r,"art-current")})}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9jCuX":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return e=>{let{i18n:r,constructor:{FLIP:i}}=e,o=i.map(t=>`${r.get((0,n.capitalize)(t))}`).join("");return{...t,html:`${r.get("Video Flip")}: ${o}`,click:(t,r)=>{let{value:n}=r.target.dataset;n&&(e.flip=n.toLowerCase(),t.show=!1)},mounted:t=>{let r=(0,n.query)('[data-value="normal"]',t);r&&(0,n.inverseClass)(r,"art-current"),e.on("flip",e=>{let r=(0,n.queryAll)("span",t).find(t=>t.dataset.value===e);r&&(0,n.inverseClass)(r,"art-current")})}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],k8wIZ:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){return e=>({...t,html:e.i18n.get("Video Info"),click:t=>{e.info.show=!0,t.show=!1}})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],bb0TU:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){return{...t,html:'ArtPlayer 5.1.1'}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9zTkI":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){return e=>({...t,html:e.i18n.get("Close"),click:t=>{t.show=!1}})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hD2Lg:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./utils"),o=t("./utils/component"),a=n.interopDefault(o);class s extends a.default{constructor(t){super(t),this.name="info",i.isMobile||this.init()}init(){let{proxy:t,constructor:e,template:{$infoPanel:r,$infoClose:n,$video:o}}=this.art;t(n,"click",()=>{this.show=!1});let a=null,s=(0,i.queryAll)("[data-video]",r)||[];this.art.on("destroy",()=>clearTimeout(a)),function t(){for(let t=0;tnull,this.init(t.option.subtitle);let e=!1;t.on("video:timeupdate",()=>{if(!this.url)return;let t=this.art.template.$video.webkitDisplayingFullscreen;"boolean"==typeof t&&t!==e&&(e=t,this.createTrack(t?"subtitles":"metadata",this.url))})}get url(){return this.art.template.$track.src}set url(t){this.switch(t)}get textTrack(){return this.art.template.$video.textTracks[0]}get activeCue(){return this.textTrack.activeCues[0]}style(t,e){let{$subtitle:r}=this.art.template;return"object"==typeof t?(0,i.setStyles)(r,t):(0,i.setStyle)(r,t,e)}update(){let{$subtitle:t}=this.art.template;t.innerHTML="",this.activeCue&&(this.art.option.subtitle.escape?t.innerHTML=this.activeCue.text.split(/\r?\n/).map(t=>`
${(0,i.escape)(t)}
`).join(""):t.innerHTML=this.activeCue.text,this.art.emit("subtitleUpdate",this.activeCue.text))}async switch(t,e={}){let{i18n:r,notice:n,option:i}=this.art,o={...i.subtitle,...e,url:t},a=await this.init(o);return e.name&&(n.show=`${r.get("Switch Subtitle")}: ${e.name}`),a}createTrack(t,e){let{template:r,proxy:n,option:o}=this.art,{$video:a,$track:s}=r,u=(0,i.createElement)("track");u.default=!0,u.kind=t,u.src=e,u.label=o.subtitle.name||"Artplayer",u.track.mode="hidden",this.eventDestroy(),(0,i.remove)(s),(0,i.append)(a,u),r.$track=u,this.eventDestroy=n(this.textTrack,"cuechange",()=>this.update())}async init(t){let{notice:e,template:{$subtitle:r}}=this.art;if((0,u.default)(t,c.default.subtitle),t.url)return this.style(t.style),fetch(t.url).then(t=>t.arrayBuffer()).then(e=>{let r=new TextDecoder(t.encoding).decode(e);switch(this.art.emit("subtitleLoad",t.url),t.type||(0,i.getExt)(t.url)){case"srt":{let e=(0,i.srtToVtt)(r),n=t.onVttLoad(e);return(0,i.vttToBlob)(n)}case"ass":{let e=(0,i.assToVtt)(r),n=t.onVttLoad(e);return(0,i.vttToBlob)(n)}case"vtt":{let e=t.onVttLoad(r);return(0,i.vttToBlob)(e)}default:return t.url}}).then(t=>(r.innerHTML="",this.url===t||(URL.revokeObjectURL(this.url),this.createTrack("metadata",t),this.art.emit("subtitleSwitch",t)),t)).catch(t=>{throw r.innerHTML="",e.show=t,t})}}r.default=f},{"./utils":"h3rH9","./utils/component":"guki8","option-validator":"bAWi2","./scheme":"AdvwB","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1Epl5":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils/error"),o=t("./clickInit"),a=n.interopDefault(o),s=t("./hoverInit"),u=n.interopDefault(s),l=t("./moveInit"),c=n.interopDefault(l),f=t("./resizeInit"),p=n.interopDefault(f),d=t("./gestureInit"),h=n.interopDefault(d),y=t("./viewInit"),g=n.interopDefault(y),v=t("./documentInit"),M=n.interopDefault(v),_=t("./updateInit"),m=n.interopDefault(_);r.default=class{constructor(t){this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),this.loadImg=this.loadImg.bind(this),(0,a.default)(t,this),(0,u.default)(t,this),(0,c.default)(t,this),(0,p.default)(t,this),(0,h.default)(t,this),(0,g.default)(t,this),(0,M.default)(t,this),(0,m.default)(t,this)}proxy(t,e,r,n={}){if(Array.isArray(e))return e.map(e=>this.proxy(t,e,r,n));t.addEventListener(e,r,n);let i=()=>t.removeEventListener(e,r,n);return this.destroyEvents.push(i),i}hover(t,e,r){e&&this.proxy(t,"mouseenter",e),r&&this.proxy(t,"mouseleave",r)}loadImg(t){return new Promise((e,r)=>{let n;if(t instanceof HTMLImageElement)n=t;else{if("string"!=typeof t)return r(new i.ArtPlayerError("Unable to get Image"));(n=new Image).src=t}if(n.complete)return e(n);this.proxy(n,"load",()=>e(n)),this.proxy(n,"error",()=>r(new i.ArtPlayerError(`Failed to load Image: ${n.src}`)))})}remove(t){let e=this.destroyEvents.indexOf(t);e>-1&&(t(),this.destroyEvents.splice(e,1))}destroy(){for(let t=0;t{(0,n.includeFromEvent)(e,i)?(t.isInput="INPUT"===e.target.tagName,t.isFocus=!0,t.emit("focus",e)):(t.isInput=!1,t.isFocus=!1,t.emit("blur",e))});let a=0;e.proxy(o,"click",e=>{let i=Date.now(),{MOBILE_CLICK_PLAY:o,DBCLICK_TIME:s,MOBILE_DBCLICK_PLAY:u,DBCLICK_FULLSCREEN:l}=r;i-a<=s?(t.emit("dblclick",e),n.isMobile?!t.isLock&&u&&t.toggle():l&&(t.fullscreen=!t.fullscreen)):(t.emit("click",e),n.isMobile?!t.isLock&&o&&t.toggle():t.toggle()),a=i})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kpTJf:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t,e){let{$player:r}=t.template;e.hover(r,e=>{(0,n.addClass)(r,"art-hover"),t.emit("hover",!0,e)},e=>{(0,n.removeClass)(r,"art-hover"),t.emit("hover",!1,e)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],ef6qz:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t,e){let{$player:r}=t.template;e.proxy(r,"mousemove",e=>{t.emit("mousemove",e)})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9TXOX":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t,e){let{option:r,constructor:i}=t;t.on("resize",()=>{let{aspectRatio:e,notice:n}=t;"standard"===t.state&&r.autoSize&&t.autoSize(),t.aspectRatio=e,n.show=""});let o=(0,n.debounce)(()=>t.emit("resize"),i.RESIZE_TIME);e.proxy(window,["orientationchange","resize"],()=>o()),screen&&screen.orientation&&screen.orientation.onchange&&e.proxy(screen.orientation,"change",()=>o())}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dePMU:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils"),i=t("../control/progress");r.default=function(t,e){if(n.isMobile&&!t.option.isLive){let{$video:r,$progress:o}=t.template,a=null,s=!1,u=0,l=0,c=0,f=e=>{if(1===e.touches.length&&!t.isLock){a===o&&(0,i.setCurrentTime)(t,e),s=!0;let{pageX:r,pageY:n}=e.touches[0];u=r,l=n,c=t.currentTime}},p=e=>{if(1===e.touches.length&&s&&t.duration){let{pageX:i,pageY:o}=e.touches[0],s=function(t,e,r,n){var i=e-n,o=r-t,a=0;if(2>Math.abs(o)&&2>Math.abs(i))return a;var s=180*Math.atan2(i,o)/Math.PI;return s>=-45&&s<45?a=4:s>=45&&s<135?a=1:s>=-135&&s<-45?a=2:(s>=135&&s<=180||s>=-180&&s<-135)&&(a=3),a}(u,l,i,o),f=[3,4].includes(s),p=[1,2].includes(s);if(f&&!t.isRotate||p&&t.isRotate){let e=(0,n.clamp)((i-u)/t.width,-1,1),s=(0,n.clamp)((o-l)/t.height,-1,1),f=t.isRotate?s:e,p=a===r?t.constructor.TOUCH_MOVE_RATIO:1,d=(0,n.clamp)(c+t.duration*f*p,0,t.duration);t.seek=d,t.emit("setBar","played",(0,n.clamp)(d/t.duration,0,1)),t.notice.show=`${(0,n.secondToTime)(d)} / ${(0,n.secondToTime)(t.duration)}`}}};e.proxy(o,"touchstart",t=>{a=o,f(t)}),e.proxy(r,"touchstart",t=>{a=r,f(t)}),e.proxy(r,"touchmove",p),e.proxy(o,"touchmove",p),e.proxy(document,"touchend",()=>{s&&(u=0,l=0,c=0,s=!1,a=null)})}}},{"../utils":"h3rH9","../control/progress":"aBBSH","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hDyWF:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t,e){let{option:r,constructor:i,template:{$container:o}}=t,a=(0,n.throttle)(()=>{t.emit("view",(0,n.isInViewport)(o,i.SCROLL_GAP))},i.SCROLL_TIME);e.proxy(window,"scroll",()=>a()),t.on("view",e=>{r.autoMini&&(t.mini=!e)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7RjDP":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t,e){e.proxy(document,"mousemove",e=>{t.emit("document:mousemove",e)}),e.proxy(document,"mouseup",e=>{t.emit("document:mouseup",e)})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8SmBT":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){if(t.constructor.USE_RAF){let e=null;(function r(){t.playing&&t.emit("raf"),t.isDestroy||(e=requestAnimationFrame(r))})(),t.on("destroy",()=>{cancelAnimationFrame(e)})}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],eTow4:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("./utils");r.default=class{constructor(t){this.art=t,this.keys={},t.option.hotkey&&!n.isMobile&&this.init()}init(){let{proxy:t,constructor:e}=this.art;this.add(27,()=>{this.art.fullscreenWeb&&(this.art.fullscreenWeb=!1)}),this.add(32,()=>{this.art.toggle()}),this.add(37,()=>{this.art.backward=e.SEEK_STEP}),this.add(38,()=>{this.art.volume+=e.VOLUME_STEP}),this.add(39,()=>{this.art.forward=e.SEEK_STEP}),this.add(40,()=>{this.art.volume-=e.VOLUME_STEP}),t(window,"keydown",t=>{if(this.art.isFocus){let e=document.activeElement.tagName.toUpperCase(),r=document.activeElement.getAttribute("contenteditable");if(!("INPUT"===e||"TEXTAREA"===e||""===r||"true"===r||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)){let e=this.keys[t.keyCode];if(e){t.preventDefault();for(let r=0;r{i.innerText="",(0,n.removeClass)(r,"art-notice-show")},e.NOTICE_TIME)):(0,n.removeClass)(r,"art-notice-show")}}},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2etr0":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./utils"),o=t("./utils/component"),a=n.interopDefault(o);class s extends a.default{constructor(t){super(t),this.name="mask";let{template:e,icons:r,events:n}=t,o=(0,i.append)(e.$state,r.state),a=(0,i.append)(e.$state,r.error);(0,i.setStyle)(a,"display","none"),t.on("destroy",()=>{(0,i.setStyle)(o,"display","none"),(0,i.setStyle)(a,"display",null)}),n.proxy(e.$state,"click",()=>t.play())}}r.default=s},{"./utils":"h3rH9","./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6dYSr":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),o=t("bundle-text:./loading.svg"),a=n.interopDefault(o),s=t("bundle-text:./state.svg"),u=n.interopDefault(s),l=t("bundle-text:./check.svg"),c=n.interopDefault(l),f=t("bundle-text:./play.svg"),p=n.interopDefault(f),d=t("bundle-text:./pause.svg"),h=n.interopDefault(d),y=t("bundle-text:./volume.svg"),g=n.interopDefault(y),v=t("bundle-text:./volume-close.svg"),M=n.interopDefault(v),_=t("bundle-text:./screenshot.svg"),m=n.interopDefault(_),b=t("bundle-text:./setting.svg"),j=n.interopDefault(b),x=t("bundle-text:./arrow-left.svg"),N=n.interopDefault(x),w=t("bundle-text:./arrow-right.svg"),D=n.interopDefault(w),I=t("bundle-text:./playback-rate.svg"),O=n.interopDefault(I),T=t("bundle-text:./aspect-ratio.svg"),A=n.interopDefault(T),z=t("bundle-text:./config.svg"),k=n.interopDefault(z),S=t("bundle-text:./pip.svg"),E=n.interopDefault(S),L=t("bundle-text:./lock.svg"),C=n.interopDefault(L),U=t("bundle-text:./unlock.svg"),P=n.interopDefault(U),Q=t("bundle-text:./fullscreen-off.svg"),Y=n.interopDefault(Q),R=t("bundle-text:./fullscreen-on.svg"),F=n.interopDefault(R),B=t("bundle-text:./fullscreen-web-off.svg"),Z=n.interopDefault(B),q=t("bundle-text:./fullscreen-web-on.svg"),H=n.interopDefault(q),V=t("bundle-text:./switch-on.svg"),W=n.interopDefault(V),G=t("bundle-text:./switch-off.svg"),$=n.interopDefault(G),J=t("bundle-text:./flip.svg"),X=n.interopDefault(J),K=t("bundle-text:./error.svg"),tt=n.interopDefault(K),te=t("bundle-text:./close.svg"),tr=n.interopDefault(te),tn=t("bundle-text:./airplay.svg"),ti=n.interopDefault(tn);r.default=class{constructor(t){let e={loading:a.default,state:u.default,play:p.default,pause:h.default,check:c.default,volume:g.default,volumeClose:M.default,screenshot:m.default,setting:j.default,pip:E.default,arrowLeft:N.default,arrowRight:D.default,playbackRate:O.default,aspectRatio:A.default,config:k.default,lock:C.default,flip:X.default,unlock:P.default,fullscreenOff:Y.default,fullscreenOn:F.default,fullscreenWebOff:Z.default,fullscreenWebOn:H.default,switchOn:W.default,switchOff:$.default,error:tt.default,close:tr.default,airplay:ti.default,...t.option.icons};for(let t in e)(0,i.def)(this,t,{get:()=>(0,i.getIcon)(t,e[t])})}}},{"../utils":"h3rH9","bundle-text:./loading.svg":"fY5Gt","bundle-text:./state.svg":"iNfLt","bundle-text:./check.svg":"jtE9u","bundle-text:./play.svg":"elgfY","bundle-text:./pause.svg":"eKokJ","bundle-text:./volume.svg":"hNB4y","bundle-text:./volume-close.svg":"i9vta","bundle-text:./screenshot.svg":"kB3Mf","bundle-text:./setting.svg":"3MONs","bundle-text:./arrow-left.svg":"iMCpk","bundle-text:./arrow-right.svg":"3oe4L","bundle-text:./playback-rate.svg":"liE22","bundle-text:./aspect-ratio.svg":"8HqYc","bundle-text:./config.svg":"hYAAH","bundle-text:./pip.svg":"jmNrH","bundle-text:./lock.svg":"cIqko","bundle-text:./unlock.svg":"65zy4","bundle-text:./fullscreen-off.svg":"jaJRT","bundle-text:./fullscreen-on.svg":"cRY1X","bundle-text:./fullscreen-web-off.svg":"3aVGL","bundle-text:./fullscreen-web-on.svg":"4DiVn","bundle-text:./switch-on.svg":"kwdKE","bundle-text:./switch-off.svg":"bWfXZ","bundle-text:./flip.svg":"h3zZ9","bundle-text:./error.svg":"7Oyth","bundle-text:./close.svg":"U5Jcy","bundle-text:./airplay.svg":"jK5Fx","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fY5Gt:[function(t,e,r){e.exports=''},{}],iNfLt:[function(t,e,r){e.exports=''},{}],jtE9u:[function(t,e,r){e.exports=''},{}],elgfY:[function(t,e,r){e.exports=''},{}],eKokJ:[function(t,e,r){e.exports=''},{}],hNB4y:[function(t,e,r){e.exports=''},{}],i9vta:[function(t,e,r){e.exports=''},{}],kB3Mf:[function(t,e,r){e.exports=''},{}],"3MONs":[function(t,e,r){e.exports=''},{}],iMCpk:[function(t,e,r){e.exports=''},{}],"3oe4L":[function(t,e,r){e.exports=''},{}],liE22:[function(t,e,r){e.exports=''},{}],"8HqYc":[function(t,e,r){e.exports=''},{}],hYAAH:[function(t,e,r){e.exports=''},{}],jmNrH:[function(t,e,r){e.exports=''},{}],cIqko:[function(t,e,r){e.exports=''},{}],"65zy4":[function(t,e,r){e.exports=''},{}],jaJRT:[function(t,e,r){e.exports=''},{}],cRY1X:[function(t,e,r){e.exports=''},{}],"3aVGL":[function(t,e,r){e.exports=''},{}],"4DiVn":[function(t,e,r){e.exports=''},{}],kwdKE:[function(t,e,r){e.exports=''},{}],bWfXZ:[function(t,e,r){e.exports=''},{}],h3zZ9:[function(t,e,r){e.exports=''},{}],"7Oyth":[function(t,e,r){e.exports=''},{}],U5Jcy:[function(t,e,r){e.exports=''},{}],jK5Fx:[function(t,e,r){e.exports=''},{}],bRHiA:[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("./flip"),o=n.interopDefault(i),a=t("./aspectRatio"),s=n.interopDefault(a),u=t("./playbackRate"),l=n.interopDefault(u),c=t("./subtitleOffset"),f=n.interopDefault(c),p=t("../utils/component"),d=n.interopDefault(p),h=t("../utils/error"),y=t("../utils");class g extends d.default{constructor(t){super(t);let{option:e,controls:r,template:{$setting:n}}=t;this.name="setting",this.$parent=n,this.option=[],this.events=[],this.cache=new Map,e.setting&&(this.init(),t.on("blur",()=>{this.show&&(this.show=!1,this.render(this.option))}),t.on("focus",t=>{let e=(0,y.includeFromEvent)(t,r.setting),n=(0,y.includeFromEvent)(t,this.$parent);!this.show||e||n||(this.show=!1,this.render(this.option))}))}static makeRecursion(t,e,r){for(let n=0;n'),a=(0,y.createElement)("div");(0,y.addClass)(a,"art-setting-item-left-icon"),(0,y.append)(a,e.arrowLeft),(0,y.append)(o,a),(0,y.append)(o,t.$parentItem.html);let s=r(i,"click",()=>this.render(t.$parentList));return this.events.push(s),i}creatItem(t,e){let{icons:r,proxy:n,constructor:i}=this.art,o=(0,y.createElement)("div");(0,y.addClass)(o,"art-setting-item"),(0,y.setStyle)(o,"height",`${i.SETTING_ITEM_HEIGHT}px`),(0,y.isStringOrNumber)(e.name)&&(o.dataset.name=e.name),(0,y.isStringOrNumber)(e.value)&&(o.dataset.value=e.value);let a=(0,y.append)(o,'
'),s=(0,y.append)(o,'
'),u=(0,y.createElement)("div");switch((0,y.addClass)(u,"art-setting-item-left-icon"),t){case"switch":case"range":(0,y.append)(u,(0,y.isStringOrNumber)(e.icon)||e.icon instanceof Element?e.icon:r.config);break;case"selector":e.selector&&e.selector.length?(0,y.append)(u,(0,y.isStringOrNumber)(e.icon)||e.icon instanceof Element?e.icon:r.config):(0,y.append)(u,r.check)}(0,y.append)(a,u),e.$icon=u,(0,y.def)(e,"icon",{configurable:!0,get:()=>u.innerHTML,set(t){(0,y.isStringOrNumber)(t)&&(u.innerHTML=t)}});let l=(0,y.createElement)("div");(0,y.addClass)(l,"art-setting-item-left-text"),(0,y.append)(l,e.html||""),(0,y.append)(a,l),e.$html=l,(0,y.def)(e,"html",{configurable:!0,get:()=>l.innerHTML,set(t){(0,y.isStringOrNumber)(t)&&(l.innerHTML=t)}});let c=(0,y.createElement)("div");switch((0,y.addClass)(c,"art-setting-item-right-tooltip"),(0,y.append)(c,e.tooltip||""),(0,y.append)(s,c),e.$tooltip=c,(0,y.def)(e,"tooltip",{configurable:!0,get:()=>c.innerHTML,set(t){(0,y.isStringOrNumber)(t)&&(c.innerHTML=t)}}),t){case"switch":{let t=(0,y.createElement)("div");(0,y.addClass)(t,"art-setting-item-right-icon");let n=(0,y.append)(t,r.switchOn),i=(0,y.append)(t,r.switchOff);(0,y.setStyle)(e.switch?i:n,"display","none"),(0,y.append)(s,t),e.$switch=e.switch,(0,y.def)(e,"switch",{configurable:!0,get:()=>e.$switch,set(t){e.$switch=t,t?((0,y.setStyle)(i,"display","none"),(0,y.setStyle)(n,"display",null)):((0,y.setStyle)(i,"display",null),(0,y.setStyle)(n,"display","none"))}});break}case"range":{let t=(0,y.createElement)("div");(0,y.addClass)(t,"art-setting-item-right-icon");let r=(0,y.append)(t,'');r.value=e.range[0]||0,r.min=e.range[1]||0,r.max=e.range[2]||10,r.step=e.range[3]||1,(0,y.addClass)(r,"art-setting-range"),(0,y.append)(s,t),e.$range=r,(0,y.def)(e,"range",{configurable:!0,get:()=>r.valueAsNumber,set(t){r.value=Number(t)}})}break;case"selector":if(e.selector&&e.selector.length){let t=(0,y.createElement)("div");(0,y.addClass)(t,"art-setting-item-right-icon"),(0,y.append)(t,r.arrowRight),(0,y.append)(s,t)}}switch(t){case"switch":if(e.onSwitch){let t=n(o,"click",async t=>{e.switch=await e.onSwitch.call(this.art,e,o,t)});this.events.push(t)}break;case"range":if(e.$range){if(e.onRange){let t=n(e.$range,"change",async t=>{e.tooltip=await e.onRange.call(this.art,e,o,t)});this.events.push(t)}if(e.onChange){let t=n(e.$range,"input",async t=>{e.tooltip=await e.onChange.call(this.art,e,o,t)});this.events.push(t)}}break;case"selector":{let t=n(o,"click",async t=>{if(e.selector&&e.selector.length)this.render(e.selector,e.width);else{(0,y.inverseClass)(o,"art-current");for(let t=0;tl?((0,y.setStyle)(i,"left",null),(0,y.setStyle)(i,"right",null)):((0,y.setStyle)(i,"left",`${c}px`),(0,y.setStyle)(i,"right","auto"))}}render(t,e){let{constructor:r}=this.art;if(this.cache.has(t)){let e=this.cache.get(t);(0,y.inverseClass)(e,"art-current"),(0,y.setStyle)(this.$parent,"width",`${e.dataset.width}px`),(0,y.setStyle)(this.$parent,"height",`${e.dataset.height}px`),this.updateStyle(Number(e.dataset.width))}else{let n=(0,y.createElement)("div");(0,y.addClass)(n,"art-setting-panel"),n.dataset.width=e||r.SETTING_WIDTH,n.dataset.height=t.length*r.SETTING_ITEM_HEIGHT,t[0]&&t[0].$parentItem&&((0,y.append)(n,this.creatHeader(t[0])),n.dataset.height=Number(n.dataset.height)+r.SETTING_ITEM_HEIGHT);for(let e=0;et.dataset.value===i);o&&(0,n.inverseClass)(o,"art-current")}return{width:i,name:"flip",html:e.get("Video Flip"),tooltip:e.get((0,n.capitalize)(t.flip)),icon:r.flip,selector:o.map(r=>({value:r,name:`aspect-ratio-${r}`,default:r===t.flip,html:e.get((0,n.capitalize)(r))})),onSelect:e=>(t.flip=e.value,e.html),mounted:(e,r)=>{a(e,r.$tooltip,t.flip),t.on("flip",()=>{a(e,r.$tooltip,t.flip)})}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5lAsp":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{i18n:e,icons:r,constructor:{SETTING_ITEM_WIDTH:i,ASPECT_RATIO:o}}=t;function a(t){return"default"===t?e.get("Default"):t}function s(t,e,r){e&&(e.innerText=a(r));let i=(0,n.queryAll)(".art-setting-item",t).find(t=>t.dataset.value===r);i&&(0,n.inverseClass)(i,"art-current")}return{width:i,name:"aspect-ratio",html:e.get("Aspect Ratio"),icon:r.aspectRatio,tooltip:a(t.aspectRatio),selector:o.map(e=>({value:e,name:`aspect-ratio-${e}`,default:e===t.aspectRatio,html:a(e)})),onSelect:e=>(t.aspectRatio=e.value,e.html),mounted:(e,r)=>{s(e,r.$tooltip,t.aspectRatio),t.on("aspectRatio",()=>{s(e,r.$tooltip,t.aspectRatio)})}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],e6hsR:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{i18n:e,icons:r,constructor:{SETTING_ITEM_WIDTH:i,PLAYBACK_RATE:o}}=t;function a(t){return 1===t?e.get("Normal"):t.toFixed(1)}function s(t,e,r){e&&(e.innerText=a(r));let i=(0,n.queryAll)(".art-setting-item",t).find(t=>Number(t.dataset.value)===r);i&&(0,n.inverseClass)(i,"art-current")}return{width:i,name:"playback-rate",html:e.get("Play Speed"),tooltip:a(t.playbackRate),icon:r.playbackRate,selector:o.map(e=>({value:e,name:`aspect-ratio-${e}`,default:e===t.playbackRate,html:a(e)})),onSelect:e=>(t.playbackRate=e.value,e.html),mounted:(e,r)=>{s(e,r.$tooltip,t.playbackRate),t.on("video:ratechange",()=>{s(e,r.$tooltip,t.playbackRate)})}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fFNEr:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(t){let{i18n:e,icons:r,constructor:n}=t;return{width:n.SETTING_ITEM_WIDTH,name:"subtitle-offset",html:e.get("Subtitle Offset"),icon:r.subtitle,tooltip:"0s",range:[0,-5,5,.1],onChange:e=>(t.subtitleOffset=e.range,e.range+"s")}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f2Thp:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=class{constructor(){this.name="artplayer_settings",this.settings={}}get(t){try{let e=JSON.parse(window.localStorage.getItem(this.name))||{};return t?e[t]:e}catch(e){return t?this.settings[t]:this.settings}}set(t,e){try{let r=Object.assign({},this.get(),{[t]:e});window.localStorage.setItem(this.name,JSON.stringify(r))}catch(r){this.settings[t]=e}}del(t){try{let e=this.get();delete e[t],window.localStorage.setItem(this.name,JSON.stringify(e))}catch(e){delete this.settings[t]}}clear(){try{window.localStorage.removeItem(this.name)}catch(t){this.settings={}}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"96ThS":[function(t,e,r){var n=t("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var i=t("../utils"),o=t("./miniProgressBar"),a=n.interopDefault(o),s=t("./autoOrientation"),u=n.interopDefault(s),l=t("./autoPlayback"),c=n.interopDefault(l),f=t("./fastForward"),p=n.interopDefault(f),d=t("./lock"),h=n.interopDefault(d);r.default=class{constructor(t){this.art=t,this.id=0;let{option:e}=t;e.miniProgressBar&&!e.isLive&&this.add(a.default),e.lock&&i.isMobile&&this.add(h.default),e.autoPlayback&&!e.isLive&&this.add(c.default),e.autoOrientation&&i.isMobile&&this.add(u.default),e.fastForward&&i.isMobile&&!e.isLive&&this.add(p.default);for(let t=0;tthis.next(t,e)):this.next(t,e)}next(t,e){let r=e&&e.name||t.name||`plugin${this.id}`;return(0,i.errorHandle)(!(0,i.has)(this,r),`Cannot add a plugin that already has the same name: ${r}`),(0,i.def)(this,r,{value:e}),this}}},{"../utils":"h3rH9","./miniProgressBar":"iBx4M","./autoOrientation":"2O9qO","./autoPlayback":"iiOc1","./fastForward":"d9NUE","./lock":"5dnKh","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iBx4M:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){return t.on("control",e=>{e?(0,n.removeClass)(t.template.$player,"art-mini-progress-bar"):(0,n.addClass)(t.template.$player,"art-mini-progress-bar")}),{name:"mini-progress-bar"}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2O9qO":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{constructor:e,template:{$player:r,$video:i}}=t;return t.on("fullscreenWeb",o=>{if(o){let{videoWidth:o,videoHeight:a}=i,{clientWidth:s,clientHeight:u}=document.documentElement;(o>a&&su)&&setTimeout(()=>{(0,n.setStyle)(r,"width",`${u}px`),(0,n.setStyle)(r,"height",`${s}px`),(0,n.setStyle)(r,"transform-origin","0 0"),(0,n.setStyle)(r,"transform",`rotate(90deg) translate(0, -${s}px)`),(0,n.addClass)(r,"art-auto-orientation"),t.isRotate=!0,t.emit("resize")},e.AUTO_ORIENTATION_TIME)}else(0,n.hasClass)(r,"art-auto-orientation")&&((0,n.removeClass)(r,"art-auto-orientation"),t.isRotate=!1,t.emit("resize"))}),t.on("fullscreen",async t=>{let e=screen.orientation.type;if(t){let{videoWidth:t,videoHeight:o}=i,{clientWidth:a,clientHeight:s}=document.documentElement;if(t>o&&as){let t=e.startsWith("portrait")?"landscape":"portrait";await screen.orientation.lock(t),(0,n.addClass)(r,"art-auto-orientation-fullscreen")}}else(0,n.hasClass)(r,"art-auto-orientation-fullscreen")&&(await screen.orientation.lock(e),(0,n.removeClass)(r,"art-auto-orientation-fullscreen"))}),{name:"autoOrientation",get state(){return(0,n.hasClass)(r,"art-auto-orientation")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iiOc1:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{i18n:e,icons:r,storage:i,constructor:o,proxy:a,template:{$poster:s}}=t,u=t.layers.add({name:"auto-playback",html:'
'}),l=(0,n.query)(".art-auto-playback-last",u),c=(0,n.query)(".art-auto-playback-jump",u),f=(0,n.query)(".art-auto-playback-close",u);return t.on("video:timeupdate",()=>{if(t.playing){let e=i.get("times")||{},r=Object.keys(e);r.length>o.AUTO_PLAYBACK_MAX&&delete e[r[0]],e[t.option.id||t.option.url]=t.currentTime,i.set("times",e)}}),t.on("ready",()=>{let p=(i.get("times")||{})[t.option.id||t.option.url];p&&p>=o.AUTO_PLAYBACK_MIN&&((0,n.append)(f,r.close),(0,n.setStyle)(u,"display","flex"),l.innerText=`${e.get("Last Seen")} ${(0,n.secondToTime)(p)}`,c.innerText=e.get("Jump Play"),a(f,"click",()=>{(0,n.setStyle)(u,"display","none")}),a(c,"click",()=>{t.seek=p,t.play(),(0,n.setStyle)(s,"display","none"),(0,n.setStyle)(u,"display","none")}),t.once("video:timeupdate",()=>{setTimeout(()=>{(0,n.setStyle)(u,"display","none")},o.AUTO_PLAYBACK_TIMEOUT)}))}),{name:"auto-playback",get times(){return i.get("times")||{}},clear:()=>i.del("times"),delete(t){let e=i.get("times")||{};return delete e[t],i.set("times",e),e}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],d9NUE:[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{constructor:e,proxy:r,template:{$player:i,$video:o}}=t,a=null,s=!1,u=1,l=()=>{clearTimeout(a),s&&(s=!1,t.playbackRate=u,(0,n.removeClass)(i,"art-fast-forward"))};return r(o,"touchstart",r=>{1===r.touches.length&&t.playing&&!t.isLock&&(a=setTimeout(()=>{s=!0,u=t.playbackRate,t.playbackRate=e.FAST_FORWARD_VALUE,(0,n.addClass)(i,"art-fast-forward")},e.FAST_FORWARD_TIME))}),r(document,"touchmove",l),r(document,"touchend",l),{name:"fastForward",get state(){return(0,n.hasClass)(i,"art-fast-forward")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5dnKh":[function(t,e,r){t("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=t("../utils");r.default=function(t){let{layers:e,icons:r,template:{$player:i}}=t;return e.add({name:"lock",mounted(e){let i=(0,n.append)(e,r.lock),o=(0,n.append)(e,r.unlock);(0,n.setStyle)(i,"display","none"),t.on("lock",t=>{t?((0,n.setStyle)(i,"display","inline-flex"),(0,n.setStyle)(o,"display","none")):((0,n.setStyle)(i,"display","none"),(0,n.setStyle)(o,"display","inline-flex"))})},click(){(0,n.hasClass)(i,"art-lock")?((0,n.removeClass)(i,"art-lock"),this.isLock=!1,t.emit("lock",!1)):((0,n.addClass)(i,"art-lock"),this.isLock=!0,t.emit("lock",!0))}}),{name:"lock",get state(){return(0,n.hasClass)(i,"art-lock")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}]},["abjMI"],"abjMI","parcelRequireb749")},95810:function(t,e,r){"use strict";var n,i,o,a,s,u,l,c;r.d(e,{DI:function(){return i},iX:function(){return o},jH:function(){return a},lB:function(){return n}}),(s=n||(n={})).MARKET_CANDLE="mktc",s.MARK_CANDLE="mrkc",(u=i||(i={})).IndexQuote20_H="index_quote_20.H.",u.IndexQuote200_H="index_quote_200.H.",u.InstrumentInfo_H="instrument_info.H.",u.InstrumentInfo_M="instrument_info.M.",u.InstrumentInfoAll="instrument_info_v3.all",u.PublicNotice="public.notice",u.OrderBook="orderBook_",u.RecentTrade="recently_trade.H.",(l=o||(o={})).BUY="Buy",l.SELL="Sell",(c=a||(a={})).CONNECT="connect",c.CONNECTED="connected",c.RECONNECT="reconnect",c.CLOSE="close",c.WSOT="WSOT",c.WSFCT="WSFCT",c.CLOSE_BY_OTHER="close_by_other",c.OPEN_ERROR="open_error",c.HEART_ERROR="heart_error",c.HEART_BACK="heart_back"},84274:function(t,e,r){"use strict";r.d(e,{Z:function(){return es}});var n=r(96636);function i(t){return"function"==typeof t}function o(t){var e=t(function(t){Error.call(t),t.stack=Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var a=o(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function s(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var u=function(){var t;function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t,e,r,o,s,u=this._parentage;if(u){if(this._parentage=null,Array.isArray(u))try{for(var l=(0,n.__values)(u),c=l.next();!c.done;c=l.next())c.value.remove(this)}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}else u.remove(this)}var p=this.initialTeardown;if(i(p))try{p()}catch(t){s=t instanceof a?t.errors:[t]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=(0,n.__values)(d),y=h.next();!y.done;y=h.next()){var g=y.value;try{f(g)}catch(t){s=null!=s?s:[],t instanceof a?s=(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(s)),(0,n.__read)(t.errors)):s.push(t)}}}catch(t){r={error:t}}finally{try{y&&!y.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(s)throw new a(s)}},e.prototype.add=function(t){var r;if(t&&t!==this){if(this.closed)f(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}}},e.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},e.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},e.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&s(e,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&s(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),l=u.EMPTY;function c(t){return t instanceof u||t&&"closed"in t&&i(t.remove)&&i(t.add)&&i(t.unsubscribe)}function f(t){i(t)?t():t.unsubscribe()}var p={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},d={setTimeout:function(t,e){for(var r=[],i=2;i0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?l:(this.currentObservers=null,i.push(t),new u(function(){e.currentObservers=null,s(i,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},e.prototype.asObservable=function(){var t=new O;return t.source=this,t},e.create=function(t,e){return new k(t,e)},e}(O),k=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return(0,n.__extends)(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:l},e}(z),S=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return(0,n.__extends)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r.closed||e.next(this._value),r},e.prototype.getValue=function(){var t=this.hasError,e=this.thrownError,r=this._value;if(t)throw e;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(z),E=r(87700),L=r(43426),C=r(92688),U=r(66332),P=r(84662),Q=r(28766),Y=r(30298),R=r(44227),F=r.n(R),B=r(3251),Z=r.n(B),q=r(86931),H=Object.prototype,V=(void 0===r.g?"undefined":(0,P.Z)(r.g))=="object"&&r.g&&r.g.Object===Object&&r.g,W=("undefined"==typeof self?"undefined":(0,P.Z)(self))=="object"&&self&&self.Object===Object&&self;(V||W||Function("return this")()).isFinite;var G=Symbol?Symbol.toStringTag:void 0,$=H.toString,J=(H.propertyIsEnumerable,H.hasOwnProperty),X=H.toString,K=function(t){var e=(0,P.Z)(t);return!!t&&("object"==e||"function"==e)},tt=function(t){var e=K(t)?X.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e};!function(t){t&&"object"==(0,P.Z)(t)&&(null==t||(G&&G in Object(t)?function(t){var e=J.call(t,G),r=t[G];try{t[G]=void 0;var n=!0}catch(t){}var i=$.call(t);return n&&(e?t[G]=r:delete t[G]),i}(t):X(t)))}(function(){return arguments}());var te=["op"];F()(WebSocket.prototype);var tr=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,E.Z)(this,t);var n=r.debug,i=r.closeCode,o=r.autoConnect,a=r.reconnectionAttempts,s=r.reconnectionDelay,u=r.reconnectionDelayMax,l=r.reconnectionReportThreshold,c=r.reconnectionReportInterval,f=r.reconnectionReportMax,p=r.randomizationFactor,d=r.timeout,h=r.reconnection,y=r.protocols,g=r.binaryType;this.closeCode=void 0===i?[1e3]:Array.isArray(i)?i:[i],this.uri=e,this.protocols=y,this.binaryType=g||"arraybuffer",this.debug=n||!1,this.autoConnect=void 0===o||o,this.reconnection=!1!==h,this.reconnectionReportThreshold=l||3,this.reconnectionReportInterval=c||3,this.reconnectionReportMax=f||22,this.reconnectionAttempts(a||1/0),this.reconnectionDelay(s||1e3),this.reconnectionDelayMax(u||5e3),this.randomizationFactor(p||.5),this.backoff=new(Z())({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(d||1e4),this.engine=null,this.connected=!1,this.readyState="closed",this.reconnecting=!1,this.skipReconect=!1,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.heartError=!1,this.pingInterval=15e3,this.pingTimeout=3e3,this.ev=[],this.connectStart=new Date().getTime(),this.openStart=null,this.autoConnect&&this.open(),this.debug&&console.log("%c[socket]","color: #49c9c9;","创建 socket 实例")}return(0,L.Z)(t,[{key:"changeUrl",value:function(t){this.uri=t}},{key:"getUrl",value:function(){var t=this.uri;return tt(t)?t():t}},{key:"open",value:function(){var t=this;if(this.openStart=new Date().getTime(),this.debug&&console.log("%c[socket]","color: #49c9c9;","open 开始状态:",this.readyState,"连接地址:",this.getUrl()),!~this.readyState.indexOf("open")){try{var e="undefined"!=typeof window&&navigator.userAgent.toLowerCase().match(/version\/([\d.]+).*safari/),r=e&&Number(e[1])>=15.1?"&c=0":"",n=/\?/.test(this.getUrl())?"".concat(this.getUrl(),"×tamp=").concat(new Date().getTime()).concat(r):"".concat(this.getUrl(),"?timestamp=").concat(new Date().getTime()).concat(r);this.engine=new WebSocket(n,this.protocols),this.engine.binaryType=this.binaryType}catch(t){this.debug&&console.error("[socket]创建实例发生错误",t),this.emit("open_error",{code:4998,reason:t.message||t})}if(this.readyState="opening",this.skipReconect=!1,this.addEventListeners(),this._timeout){var i=this._timeout;this.debug&&console.log("%c[socket]","color: #49c9c9;","超时将在开始重连",i);var o=setTimeout(function(){t.engine&&t.engine.emit("open_timeout",{code:4997,reason:"open_timeout"}),t.emit("connect_timeout",i)},i);this.ev.push({destroy:function(){clearTimeout(o)}})}}}},{key:"send",value:function(t){this.connected&&this.engine.send(JSON.stringify(t))}},{key:"close",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1005;this.onClose({code:t,reason:"close_by_user"})}},{key:"onOpen",value:function(){if(this.debug&&console.log("%c[socket]","color: #49c9c9;","WS prototype onOpen 执行"),this.readyState="open",this.clearEV(),this.setPing(),this.connected=!0,this.reconnecting){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.emit("reconnect",t)}else this.emit("connect")}},{key:"onData",value:function(t){var e=t.ret_msg,r=t.topic,n=t.request,i=t.success,o=t.type,a=t.conn_id,s=t.ping,u=t.op,l=t.timestampE6,c=t.timestamp_e6;if(s){this.send({pong:s});return}if("ping"===u){t.op;var f=(0,Y.Z)(t,te);this.send((0,Q.Z)({op:"pong"},f));return}if("pong"===e){clearTimeout(this.pingTimeoutTimer);var p=new Date().getTime();n.op;var d=n.args[0];d&&p-d<3e3&&this.heartError&&(this.emit("heart_back",{code:4995,reason:"heart_back"}),this.heartError=!1),this.setPing()}else if(r)this.emit(r,{type:o,data:t.data,timestampE6:c||l});else if(n){var h=n.op;i?this.emit("".concat(h,"_success"),a):this.emit("".concat(h,"_fail"),a)}else this.emit("data",t),this.emit("message",t)}},{key:"onClose",value:function(t){var e=t.code,r=t.reason;this.debug&&console.log("%c[socket]","color: #49c9c9;","WS prototype onClose 执行:",r),this.reconnecting=!1,this.connected=!1,clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer);var n=e;1006===n?n=4006:1005===n&&(n=4005),1001!==e&&this.engine.close(n),this.clearUp(),this.readyState="closed",this.emit("close",{code:e,reason:r}),this.closeCode.includes(e)?(this.skipReconect=!0,this.reconnecting=!1,this.readyState="closed_user",this.backoff.reset(),this.debug&&console.log("%c[socket]","color: #49c9c9;","用户主动关闭",r)):this.reconnection&&!this.skipReconect&&this.reconnect()}},{key:"onError",value:function(t){this.debug&&console.log("%c[socket]","color: #49c9c9;","onError 执行:",t),this.clearUp(),this.readyState="closed",this.emit("error",t),this.onClose(t)}},{key:"reconnect",value:function(){var t=this;if(this.debug&&console.log("%c[socket]","color: #49c9c9;","WS prototype reconnect 执行:"),!this.reconnecting&&!this.skipReconect){if(this.backoff.attempts>this._reconnectionAttempts)this.debug&&console.error("[socket]超过最大重连次数, 重连彻底失败"),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.engine.close(),this.clearUp(),this.backoff.reset(),this.emit("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();this.debug&&console.log("%c[socket]","color: #49c9c9;","第几次重连:",this.backoff.attempts,"等待 %dms 开始发起重连:",e),this.reconnecting=!0;var r=setTimeout(function(){t.skipReconect||(t.emit("reconnect_attempt",t.backoff.attempts),t.emit("reconnecting",t.backoff.attempts),t.backoff.attempts>t.reconnectionReportThreshold&&t.backoff.attempts%t.reconnectionReportInterval==0&&t.backoff.attemptsclearUp");var t=this.engine;t.onopen=function(){},t.onclose=function(){},t.onmessage=function(){},t.onerror=function(){},this.clearEV()}},{key:"clearEV",value:function(){for(var t=this.ev.length,e=0;e0&&(t.subscribe(e),t._toChannels={})}),this.on("reconnect",function(){var e=Object.keys(t.channels);e.length>0&&t.subscribe(e)}),this.on("close",function(e){var r=e.code;e.reason,1e3===r&&(t.channels={},t._toChannels={})}),this.on("subscribe_success",function(e){t.socketId=e}),this.on("subscribe_fail",function(e){t.socketId=e})}},{key:"subscribe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.send({op:"subscribe",args:t})}},{key:"unsubscribe",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.send({op:"unsubscribe",args:t})}},{key:"channel",value:function(t,e,r){if("closed_user"===this.readyState)return null;var n=this.channels[t];(!n||r)&&(this.channels[t]=e,this.on(t,e),this.connected?(n&&r&&this.unsubscribe([t]),this.subscribe([t])):this._toChannels[t]=e)}},{key:"leave",value:function(t){this.channels[t]&&(this.off(t,this.channels[t]),delete this.channels[t],this.connected?this.unsubscribe([t]):delete this._toChannels[t])}}]),r}(tr),ti=r(3893),to=r.n(ti),ta=r(95810),ts=function(){return(ts=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&t[0].Id>e;)t.shift();return t},tf=function(t,e){for(void 0===e&&(e=0);t&&0!==e&&t.length>0&&t[t.length-1].Id0&&(tg.depthGroupedBuyList=tl(tg.Buy,e,n,i)),tg.Sell.length>0&&(tg.depthGroupedSellList=tl(tg.Sell,e,n,i))),tg},tb=function(t,e,r,n){void 0===t&&(t={b:[],a:[]}),void 0===e&&(e={});var i,o=tv(e.symbolMeta),a=th(t,o,r),s=a[0],u=a[1];return s=(i=t_(s,u))[0],tg={loaded:!0,Sell:u=i[1],ask1Id:0,ask1Price:0,Buy:s,bid1Id:0,bid1Price:0,depthGroupedBuyList:[],depthGroupedSellList:[]},tm(e),n&&tM(t,o),tg},tj=function(t,e,r){void 0===t&&(t={b:[],a:[]}),void 0===e&&(e={});var n,i=tv(e.symbolMeta);tM(t,i);var o=th(t,i,r),a=o[0],s=o[1],u=tg.Buy,l=tg.Sell;return a.forEach(function(t){var e=u.findIndex(function(e){return t.Id===e.Id});-1===e?0!==t.size&&u.push(t):0===t.size?u.splice(e,1):u.splice(e,1,t)}),s.forEach(function(t){var e=l.findIndex(function(e){return t.Id===e.Id});-1===e?0!==t.size&&l.push(t):0===t.size?l.splice(e,1):l.splice(e,1,t)}),n=t_(tg.Buy,tg.Sell,tg.bid1Id,tg.ask1Id),tg.Buy=n[0],tg.Sell=n[1],tm(e),tg},tx="/realtime_w",tN={"+":"PlusTick","-":"MinusTick","0+":"ZeroPlusTick","0-":"ZeroMinusTick"},tw={s:"symbol",p:"lastPrice",b1:"bid1Price",a1:"ask1Price",p2:"prevPrice24h",p1:"prevPrice1h",pr:"price24hPcntE6",h:"highPrice24h",l:"lowPrice24h",td:"lastTickDirection",mp:"markPrice",xp:"indexPrice",o:"openInterest",to:"turnover24h",v:"volume24h",fr:"fundingRateE6",ft:"nextFundingTime",pf:"predictedFundingRateE6",nh:"fundingRateInterval",ts:"timestampE6",ds:"delistingStatus",rt:"timeToSettle",st:"settleTimeE9",fb:"fairBasisE8",br:"fairBasisRateE8",yr:"basisInYearE8",ep:"expectPrice",frgs:"fundingRateGraySymbol",ro:"reduceOnly",ew:"earlyWarning"},tD={p:"lastPrice",b1:"bid1Price",a1:"ask1Price",p2:"prevPrice24h",p1:"prevPrice1h",pr:"price24hPcntE6",h:"highPrice24h",l:"lowPrice24h",mp:"markPrice",xp:"indexPrice",o:"openInterest",to:"turnover24h",v:"volume24h",fr:"fundingRateE6",pf:"predictedFundingRateE6",nh:"fundingRateInterval",rt:"timeToSettle",st:"settleTimeE9",fb:"fairBasisE8",br:"fairBasisRateE8",yr:"basisInYearE8",ep:"expectPrice"},tI={list:[],loaded:!1},tO=function(t,e){return t.map(function(t){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6];return{execId:s,execPrice:n,execQty:i,execTime:o,side:"b"===a?ta.iX.BUY:ta.iX.SELL,symbol:e,tickDirection:tN[r],tradeType:u}})},tT=function(t,e){return tI={list:tO(t,e),loaded:!0}},tA=function(t,e){var r=tO(t,e),n=tI.list.length,i=r.length;return(0===n||n>0&&Date.parse(r[i-1].execTime)>=Date.parse(tI.list[0].execTime))&&(tI.list=r.reverse().concat(tI.list)),tI.list.length>100&&(tI.list=tI.list.slice(0,100)),tI.loaded=!0,tI},tz=function(){return tI},tk=function(t,e){var r=e.type,n=e.data;return"snapshot"===r&&n.d?tT(n.d,t):"delta"===r&&n.d&&n.d.length?tA(n.d,t):tz()},tS={},tE=function(t){var e={symbol:""};return Object.entries(t).forEach(function(t){var r,n=t[0],i=t[1];tw[n]?(e[tw[n]]=tD[n]?"number"==typeof(r=i)?r:"string"==typeof r?+r:NaN:i,"td"===n&&(e.lastTickDirection=i?tN[i]:void 0)):e[n]=i}),e},tL=function(t,e){return tS[t]=tE(e),tS[t]},tC=function(t,e){return Object.assign(tS[t],tE(e)),tS[t]},tU=function(){return(tU=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&(u.recentTrade=tA(a,s)),u},tY=function(t,e,r){var n=e.type,i=e.data,o=e.ts,a=e.timestampE6,s=o||a;return"snapshot"===n||"reset"===n?tP(t,i,r,s,"reset"===n):tQ(t,i,r,s)},tR=function(){return(tR=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&t[0].Id>e;)t.shift();return t},tq=function(t,e){for(void 0===e&&(e=0);t&&0!==e&&t.length>0&&t[t.length-1].Id-1){var n=t2[r];t2[r]=t4(t4({},n),e)}else t2.push(e)}),t2),t},t8=function(t,e){var r=e.type,n=e.data,i=e.ts,o=e.timestampE6,a=t5(t5({},n),{ts:i||o});return"snapshot"===r||"reset"===r?tL(t,a):tC(t,a)},t9=function(){return(t9=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0){var e=document.cookie.indexOf(t+"=");if(-1!=e){e=e+t.length+1;var r=document.cookie.indexOf(";",e);return -1==r&&(r=document.cookie.length),decodeURIComponent(document.cookie.substring(e,r))}}return""},es=function(t){var e=this,r=t.host,n=t.autoConnect,i=t.useOriginalData,o=t.showLog,a=void 0!==o&&o;if(this.allSymbolQuoteSubject=new S({}),this.instrumentSubject=new S({}),this.marketCandleSubject=new S({}),this.markCandleAllSubject=new S({}),this.indexQuoteSubject=new S({}),this.orderBookSubject=new S({}),this.recentTradeSubject=new S({}),this.publicNoticeSubject=new S({}),this.websocketEventSubject=new S({}),this.connect=function(){e.wsInstance=new tn(e.wsUrl,{autoConnect:!0}),e.wsEventCb()},this.changeUrl=function(t){e.wsUrl=""+t+tx,e.wsInstance.changeUrl(e.wsUrl)},this.wsEventCb=function(){e.wsInstance.on(ta.jH.CONNECT,function(){var t=new Date().getTime()-e.wsInstance.openStart;e.websocketEventSubject.next({type:ta.jH.CONNECTED,data:{WSFCT:t,socketId:e.wsInstance.socketId}})}),e.wsInstance.on(ta.jH.RECONNECT,function(){var t=new Date().getTime()-e.wsInstance.connectStart;e.websocketEventSubject.next({type:ta.jH.RECONNECT,data:{WSOT:t,socketId:e.wsInstance.socketId}})}),e.wsInstance.on(ta.jH.CLOSE,function(t){var r=t.code,n=t.reason,i=null;1e3===r&&(i={code:r,reason:n,socketId:e.wsInstance.socketId}),e.websocketEventSubject.next({type:ta.jH.CLOSE,data:i})}),e.wsInstance.on(ta.jH.OPEN_ERROR,function(t){var r=t.code,n=t.reason;e.websocketEventSubject.next({type:ta.jH.OPEN_ERROR,data:{code:r,reason:n,socketId:e.wsInstance.socketId}})}),e.wsInstance.on(ta.jH.HEART_ERROR,function(t){var r=t.code,n=t.reason;e.websocketEventSubject.next({type:ta.jH.HEART_ERROR,data:{code:r,reason:n,socketId:e.wsInstance.socketId}})}),e.wsInstance.on(ta.jH.HEART_BACK,function(t){var r=t.code,n=t.reason;e.websocketEventSubject.next({type:ta.jH.HEART_BACK,data:{code:r,reason:n,socketId:e.wsInstance.socketId}})})},this.subscribeTopic=function(t){var r=t.topic,n=t.symbol,i=t.obParams,o=n?""+r+n:r;if(r===ta.DI.OrderBook){var a=i.ratio;o=""+r+i.level+"@m"+a+".H."+n}e.wsInstance.channel(o,function(t){e.parseWsData({topic:r,nameSpace:n||"",result:t,obParams:i})})},this.unsubscribeTopic=function(t){var r=t.topic,n=t.symbol,i=t.obParams,o=n?""+r+n:r;if(r===ta.DI.OrderBook){var a=i.ratio;o=""+r+i.level+"@m"+a+".H."+n}e.wsInstance.leave(o)},this.subscribeTopicDirect=function(t,r){e.wsInstance.channel(t,function(n){e.parseWsData({topic:r,nameSpace:t,result:n})})},this.unsubscribeTopicDirect=function(t,r){void 0===r&&(r=!0),r&&(t.startsWith("candle")?e.marketCandleSubject.next({}):e.markCandleAllSubject.next({})),e.wsInstance.leave(t)},this.printLogger=function(t,e,r,n){void 0===n&&(n=!1),t===ta.lB.MARKET_CANDLE||t===ta.lB.MARK_CANDLE?eo("【"+e+"】"+(n?"Origin Data":"Parsed Data")+" Received",r):eo("【"+t+e+"】"+(n?"Origin Data":"Parsed Data")+" Received",r)},this.changeDepth=function(t){if(e.symbolDepth=t,!e.useOriginalData&&!t.noDepthGrouped){var r=tm(t);e.orderBookSubject.next(r)}},this.parseWsData=function(t){var r=t.topic,n=t.nameSpace,i=t.result,o=t.obParams;switch(e.showLog&&"origin"===e.showLog&&e.printLogger(r,n,JSON.parse(JSON.stringify(i)),!0),r){case ta.DI.IndexQuote20_H:case ta.DI.IndexQuote200_H:if(e.useOriginalData){var a=i.type,s=i.data,u=s.index,l=s.order,c=s.trade,f=s.s,p=i.ts,d=i.timestampE6,h={type:a,ts:p||d,data:{}};u&&(h.data={index:u,s:f},e.instrumentSubject.next(h)),l&&(h.data={order:l,s:f},e.orderBookSubject.next(h)),c&&(h.data={trade:c,s:f},e.recentTradeSubject.next(h))}else{var y=tY(n,i,e.symbolDepth),g=y.instrument,v=y.orderBook,M=y.recentTrade;g&&e.instrumentSubject.next(g),v&&e.orderBookSubject.next(v),M&&e.recentTradeSubject.next(M),e.showLog&&"parsed"===e.showLog&&e.printLogger(r,n,{instrument:g,orderBook:v,recentTrade:M})}break;case ta.DI.InstrumentInfo_H:case ta.DI.InstrumentInfo_M:var g=i;e.useOriginalData||(g=t8(n,i)),e.showLog&&"parsed"===e.showLog&&e.printLogger(r,n,g),e.instrumentSubject.next(g);break;case ta.DI.OrderBook:var v=t1(n,i,e.symbolDepth);if(e.showLog&&"parsed"===e.showLog){var _=o.level,m=o.ratio;e.printLogger(""+r+_+"@m"+m+".H.",n,v)}e.orderBookSubject.next(v);break;case ta.DI.RecentTrade:var M=tk(n,i);e.showLog&&"parsed"===e.showLog&&e.printLogger(r,n,M),e.recentTradeSubject.next(M);break;case ta.DI.InstrumentInfoAll:var b=i;e.useOriginalData||(b=t6(i)),e.showLog&&"parsed"===e.showLog&&e.printLogger(r,n,b),e.allSymbolQuoteSubject.next(b);break;case ta.DI.PublicNotice:e.publicNoticeSubject.next(i);break;case ta.lB.MARKET_CANDLE:e.marketCandleSubject.next(et(n,i));break;case ta.lB.MARK_CANDLE:e.markCandleAllSubject.next(en(n,i));break;default:console.warn("ByFbuPublicWs: topic type not support =>",r)}},this.autoConnect=void 0===n||n,this.useOriginalData=void 0!==i&&i,this.symbolDepth={},"undefined"!=typeof window||r)this.wsUrl=""+r+tx||""+window.origin+tx;else throw Error("need to host param");if("DedicatedWorkerGlobalScope"===globalThis.constructor.name)this.showLog=a;else{var s=ea("fbu.public.ws.log");this.showLog=s||a}this.autoConnect&&this.connect()}},22544:function(t,e,r){"use strict";function n(){for(var t,e,r=0,n="";r=e?t:""+Array(e+1-n.length).join(r)+t},d="en",h={};h[d]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||"th")+"]"}};var y="$isDayjsObject",g=function(t){return t instanceof m||!(!t||!t[y])},v=function t(e,r,n){var i;if(!e)return d;if("string"==typeof e){var o=e.toLowerCase();h[o]&&(i=o),r&&(h[o]=r,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;h[s]=e,i=s}return!n&&i&&(d=i),i||!n&&d},M=function(t,e){if(g(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new m(r)},_={s:p,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+p(Math.floor(r/60),2,"0")+":"+p(r%60,2,"0")},m:function t(e,r){if(e.date()=Math.abs(n)?60*n:n,s=this;if(i)return s.$offset=a,s.$u=0===n,s;if(0!==n){var u=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+u,t)).$offset=a,s.$x.$localOffset=u}else s=this.utc();return s};var c=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var p=a.diff;a.diff=function(t,e,r){if(t&&this.$u===t.$u)return p.call(this,t,e,r);var n=this.local(),i=o(t).local();return p.call(n,i,e,r)}}},t.exports=e()},3893:function(t,e,r){var n;!function(i){"use strict";var o,a,s,u="0123456789abcdef",l="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",c="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",f={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},p=!0,d="[DecimalError] ",h=d+"Invalid argument: ",y=d+"Precision limit exceeded",g=d+"crypto unavailable",v=Math.floor,M=Math.pow,_=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,m=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,b=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,j=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,x=l.length-1,N=c.length-1,w={name:"[object Decimal]"};function D(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;er)throw Error(h+t)}function O(t,e,r,n){var i,o,a,s;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),o=M(10,7-e),s=t[i]%o|0,null==n?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):a=(r<4&&s+1==o||r>3&&s+1==o/2)&&(t[i+1]/o/100|0)==M(10,e-2)-1||(s==o/2||0==s)&&(t[i+1]/o/100|0)==0:e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(n||r<4)&&9999==s||!n&&r>3&&4999==s):a=((n||r<4)&&s+1==o||!n&&r>3&&s+1==o/2)&&(t[i+1]/o/1e3|0)==M(10,e-3)-1,a}function T(t,e,r){for(var n,i,o=[0],a=0,s=t.length;ar-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}w.absoluteValue=w.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),z(t)},w.ceil=function(){return z(new this.constructor(this),this.e+1,2)},w.comparedTo=w.cmp=function(t){var e,r,n,i,o=this.d,a=(t=new this.constructor(t)).d,s=this.s,u=t.s;if(!o||!a)return s&&u?s!==u?s:o===a?0:!o^s<0?1:-1:NaN;if(!o[0]||!a[0])return o[0]?s:a[0]?-u:0;if(s!==u)return s;if(this.e!==t.e)return this.e>t.e^s<0?1:-1;for(e=0,r=(n=o.length)<(i=a.length)?n:i;ea[e]^s<0?1:-1;return n===i?0:n>i^s<0?1:-1},w.cosine=w.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(t,e){var r,n,i=e.d.length;i<32?n=(1/H(4,r=Math.ceil(i/3))).toString():(r=16,n="2.3283064365386962890625e-10"),t.precision+=r,e=q(t,1,e.times(n),new t(1));for(var o=r;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=r,e}(n,V(n,r)),n.precision=t,n.rounding=e,z(2==s||3==s?r.neg():r,t,e,!0)):new n(1):new n(NaN)},w.cubeRoot=w.cbrt=function(){var t,e,r,n,i,o,a,s,u,l,c=this.constructor;if(!this.isFinite()||this.isZero())return new c(this);for(p=!1,(o=this.s*M(this.s*this,1/3))&&Math.abs(o)!=1/0?n=new c(o.toString()):(r=D(this.d),(o=((t=this.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=M(r,1/3),t=v((t+1)/3)-(t%3==(t<0?-1:2)),(n=new c(r=o==1/0?"5e"+t:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+t)).s=this.s),a=(t=c.precision)+3;;)if(n=A((l=(u=(s=n).times(s).times(s)).plus(this)).plus(this).times(s),l.plus(u),a+2,1),D(s.d).slice(0,a)===(r=D(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(z(n,t+1,1),e=!n.times(n).times(n).eq(this));break}if(!i&&(z(s,t+1,0),s.times(s).times(s).eq(this))){n=s;break}a+=4,i=1}return p=!0,z(n,t,c.rounding,e)},w.decimalPlaces=w.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-v(this.e/7))*7,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},w.dividedBy=w.div=function(t){return A(this,new this.constructor(t))},w.dividedToIntegerBy=w.divToInt=function(t){var e=this.constructor;return z(A(this,new e(t),0,1,1),e.precision,e.rounding)},w.equals=w.eq=function(t){return 0===this.cmp(t)},w.floor=function(){return z(new this.constructor(this),this.e+1,3)},w.greaterThan=w.gt=function(t){return this.cmp(t)>0},w.greaterThanOrEqualTo=w.gte=function(t){var e=this.cmp(t);return 1==e||0===e},w.hyperbolicCosine=w.cosh=function(){var t,e,r,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/H(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=q(a,1,o.times(e),new a(1),!0);for(var u,l=t,c=new a(8);l--;)u=o.times(o),o=s.minus(u.times(c.minus(u.times(c))));return z(o,a.precision=r,a.rounding=n,!0)},w.hyperbolicSine=w.sinh=function(){var t,e,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,r=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=q(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=q(o,2,i=i.times(1/H(5,t)),i,!0);for(var a,s=new o(5),u=new o(16),l=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(l))))}return o.precision=e,o.rounding=r,z(i,e,r,!0)},w.hyperbolicTangent=w.tanh=function(){var t,e,r=this.constructor;return this.isFinite()?this.isZero()?new r(this):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,A(this.sinh(),this.cosh(),r.precision=t,r.rounding=e)):new r(this.s)},w.inverseCosine=w.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,o=r.rounding;return -1!==n?0===n?e.isNeg()?L(r,i,o):new r(0):new r(NaN):e.isZero()?L(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,e=e.asin(),t=L(r,i+4,o).times(.5),r.precision=i,r.rounding=o,t.minus(e))},w.inverseHyperbolicCosine=w.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,p=!1,r=r.times(r).minus(1).sqrt().plus(r),p=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},w.inverseHyperbolicSine=w.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,p=!1,r=r.times(r).plus(1).sqrt().plus(r),p=!0,n.precision=t,n.rounding=e,r.ln())},w.inverseHyperbolicTangent=w.atanh=function(){var t,e,r,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,Math.max(n=i.sd(),t)<-(2*i.e)-1)?z(new o(i),t,e,!0):(o.precision=r=n-i.e,i=A(i.plus(1),new o(1).minus(i),r+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5)):new o(NaN)},w.inverseSine=w.asin=function(){var t,e,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==e)?0===e?((t=L(o,r+4,n).times(.5)).s=i.s,t):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2))},w.inverseTangent=w.atan=function(){var t,e,r,n,i,o,a,s,u,l=this,c=l.constructor,f=c.precision,d=c.rounding;if(l.isFinite()){if(l.isZero())return new c(l);if(l.abs().eq(1)&&f+4<=N)return(a=L(c,f+4,d).times(.25)).s=l.s,a}else{if(!l.s)return new c(NaN);if(f+4<=N)return(a=L(c,f+4,d).times(.5)).s=l.s,a}for(c.precision=s=f+10,c.rounding=1,t=r=Math.min(28,s/7+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(p=!1,e=Math.ceil(s/7),n=1,u=l.times(l),a=new c(l),i=l;-1!==t;)if(i=i.times(u),o=a.minus(i.div(n+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(n+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return r&&(a=a.times(2<this.d.length-2},w.isNaN=function(){return!this.s},w.isNegative=w.isNeg=function(){return this.s<0},w.isPositive=w.isPos=function(){return this.s>0},w.isZero=function(){return!!this.d&&0===this.d[0]},w.lessThan=w.lt=function(t){return 0>this.cmp(t)},w.lessThanOrEqualTo=w.lte=function(t){return 1>this.cmp(t)},w.logarithm=w.log=function(t){var e,r,n,i,o,a,s,u=this.constructor,l=u.precision,c=u.rounding;if(null==t)t=new u(10),e=!0;else{if(r=(t=new u(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new u(NaN);e=t.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new u(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(e){if(r.length>1)i=!0;else{for(n=r[0];n%10==0;)n/=10;i=1!==n}}if(p=!1,O((s=A(F(this,a=l+5),e?E(u,a+10):F(t,a),a,1)).d,n=l,c))do if(a+=10,s=A(F(this,a),e?E(u,a+10):F(t,a),a,1),!i){+D(s.d).slice(n+1,n+15)+1==1e14&&(s=z(s,l+1,0));break}while(O(s.d,n+=10,c));return p=!0,z(s,l,c)},w.minus=w.sub=function(t){var e,r,n,i,o,a,s,u,l,c,f,d,h=this.constructor;if(t=new h(t),!this.d||!t.d)return this.s&&t.s?this.d?t.s=-t.s:t=new h(t.d||this.s!==t.s?this:NaN):t=new h(NaN),t;if(this.s!=t.s)return t.s=-t.s,this.plus(t);if(l=this.d,d=t.d,s=h.precision,u=h.rounding,!l[0]||!d[0]){if(d[0])t.s=-t.s;else{if(!l[0])return new h(3===u?-0:0);t=new h(this)}return p?z(t,s,u):t}if(r=v(t.e/7),c=v(this.e/7),l=l.slice(),o=c-r){for((f=o<0)?(e=l,o=-o,a=d.length):(e=d,r=c,a=l.length),o>(n=Math.max(Math.ceil(s/7),a)+2)&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for((f=(n=l.length)<(a=d.length))&&(a=n),n=0;n0;--n)l[a++]=0;for(n=d.length;n>o;){if(l[--n](a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=l.length)-(i=c.length)<0&&(i=a,r=c,c=l,l=r),e=0;i;)e=(l[--i]=l[i]+c[i]+e)/1e7|0,l[i]%=1e7;for(e&&(l.unshift(e),++n),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=S(l,n),p?z(t,s,u):t},w.precision=w.sd=function(t){var e;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(h+t);return this.d?(e=C(this.d),t&&this.e+1>e&&(e=this.e+1)):e=NaN,e},w.round=function(){var t=this.constructor;return z(new t(this),this.e+1,t.rounding)},w.sine=w.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return q(t,2,e,e);r=(r=1.4*Math.sqrt(n))>16?16:0|r,e=q(t,2,e=e.times(1/H(5,r)),e);for(var i,o=new t(5),a=new t(16),s=new t(20);r--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}(n,V(n,r)),n.precision=t,n.rounding=e,z(s>2?r.neg():r,t,e,!0)):new n(NaN)},w.squareRoot=w.sqrt=function(){var t,e,r,n,i,o,a=this.d,s=this.e,u=this.s,l=this.constructor;if(1!==u||!a||!a[0])return new l(!u||u<0&&(!a||a[0])?NaN:a?this:1/0);for(p=!1,0==(u=Math.sqrt(+this))||u==1/0?(((e=D(a)).length+s)%2==0&&(e+="0"),u=Math.sqrt(e),s=v((s+1)/2)-(s<0||s%2),n=new l(e=u==1/0?"1e"+s:(e=u.toExponential()).slice(0,e.indexOf("e")+1)+s)):n=new l(u.toString()),r=(s=l.precision)+3;;)if(n=(o=n).plus(A(this,o,r+2,1)).times(.5),D(o.d).slice(0,r)===(e=D(n.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(z(n,s+1,1),t=!n.times(n).eq(this));break}if(!i&&(z(o,s+1,0),o.times(o).eq(this))){n=o;break}r+=4,i=1}return p=!0,z(n,s,l.rounding,t)},w.tangent=w.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=A(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,z(2==s||4==s?r.neg():r,t,e,!0)):new n(NaN)},w.times=w.mul=function(t){var e,r,n,i,o,a,s,u,l,c=this.constructor,f=this.d,d=(t=new c(t)).d;if(t.s*=this.s,!f||!f[0]||!d||!d[0])return new c(t.s&&(!f||f[0]||d)&&(!d||d[0]||f)?f&&d?0*t.s:t.s/0:NaN);for(r=v(this.e/7)+v(t.e/7),(u=f.length)<(l=d.length)&&(o=f,f=d,d=o,a=u,u=l,l=a),o=[],n=a=u+l;n--;)o.push(0);for(n=l;--n>=0;){for(e=0,i=u+n;i>n;)s=o[i]+d[n]*f[i-n-1]+e,o[i--]=s%1e7|0,e=s/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=S(o,r),p?z(t,c.precision,c.rounding):t},w.toBinary=function(t,e){return W(this,2,t,e)},w.toDecimalPlaces=w.toDP=function(t,e){var r=this,n=r.constructor;return(r=new n(r),void 0===t)?r:(I(t,0,1e9),void 0===e?e=n.rounding:I(e,0,8),z(r,t+r.e+1,e))},w.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=k(n,!0):(I(t,0,1e9),void 0===e?e=i.rounding:I(e,0,8),r=k(n=z(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?"-"+r:r},w.toFixed=function(t,e){var r,n,i=this.constructor;return void 0===t?r=k(this):(I(t,0,1e9),void 0===e?e=i.rounding:I(e,0,8),r=k(n=z(new i(this),t+this.e+1,e),!1,t+n.e+1)),this.isNeg()&&!this.isZero()?"-"+r:r},w.toFraction=function(t){var e,r,n,i,o,a,s,u,l,c,f,d,y=this.d,g=this.constructor;if(!y)return new g(this);if(l=r=new g(1),n=u=new g(0),a=(o=(e=new g(n)).e=C(y)-this.e-1)%7,e.d[0]=M(10,a<0?7+a:a),null==t)t=o>0?e:l;else{if(!(s=new g(t)).isInt()||s.lt(l))throw Error(h+s);t=s.gt(e)?o>0?e:l:s}for(p=!1,s=new g(D(y)),c=g.precision,g.precision=o=14*y.length;f=A(s,e,0,1,1),1!=(i=r.plus(f.times(n))).cmp(t);)r=n,n=i,i=l,l=u.plus(f.times(i)),u=i,i=e,e=s.minus(f.times(i)),s=i;return i=A(t.minus(r),n,0,1,1),u=u.plus(i.times(l)),r=r.plus(i.times(n)),u.s=l.s=this.s,d=1>A(l,n,o,1).minus(this).abs().cmp(A(u,r,o,1).minus(this).abs())?[l,n]:[u,r],g.precision=c,p=!0,d},w.toHexadecimal=w.toHex=function(t,e){return W(this,16,t,e)},w.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:I(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(p=!1,r=A(r,t,0,e,1).times(t),p=!0,z(r)):(t.s=r.s,r=t),r},w.toNumber=function(){return+this},w.toOctal=function(t,e){return W(this,8,t,e)},w.toPower=w.pow=function(t){var e,r,n,i,o,a,s=this,u=s.constructor,l=+(t=new u(t));if(!s.d||!t.d||!s.d[0]||!t.d[0])return new u(M(+s,l));if((s=new u(s)).eq(1))return s;if(n=u.precision,o=u.rounding,t.eq(1))return z(s,n,o);if((e=v(t.e/7))>=t.d.length-1&&(r=l<0?-l:l)<=9007199254740991)return i=P(u,s,r,n),t.s<0?new u(1).div(i):z(i,n,o);if((a=s.s)<0){if(eu.maxE+1||e0?a/0:0):(p=!1,u.rounding=s.s=1,r=Math.min(12,(e+"").length),(i=R(t.times(F(s,n+r)),n)).d&&O((i=z(i,n+5,1)).d,n,o)&&(e=n+10,+D((i=z(R(t.times(F(s,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=z(i,n+1,0))),i.s=a,p=!0,u.rounding=o,z(i,n,o))},w.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=k(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(I(t,1,1e9),void 0===e?e=i.rounding:I(e,0,8),r=k(n=z(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?"-"+r:r},w.toSignificantDigits=w.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(I(t,1,1e9),void 0===e?e=r.rounding:I(e,0,8)),z(new r(this),t,e)},w.toString=function(){var t=this.constructor,e=k(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()&&!this.isZero()?"-"+e:e},w.truncated=w.trunc=function(){return z(new this.constructor(this),this.e+1,1)},w.valueOf=w.toJSON=function(){var t=this.constructor,e=k(this,this.e<=t.toExpNeg||this.e>=t.toExpPos);return this.isNeg()?"-"+e:e};var A=function(){function t(t,e,r){var n,i=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+i,t[o]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]1;)t.shift()}return function(n,i,o,s,u,l){var c,f,p,d,h,y,g,M,_,m,b,j,x,N,w,D,I,O,T,A,k=n.constructor,S=n.s==i.s?1:-1,E=n.d,L=i.d;if(!E||!E[0]||!L||!L[0])return new k(n.s&&i.s&&(E?!L||E[0]!=L[0]:L)?E&&0==E[0]||!L?0*S:S/0:NaN);for(l?(h=1,f=n.e-i.e):(l=1e7,h=7,f=v(n.e/h)-v(i.e/h)),T=L.length,I=E.length,m=(_=new k(S)).d=[],p=0;L[p]==(E[p]||0);p++);if(L[p]>(E[p]||0)&&f--,null==o?(N=o=k.precision,s=k.rounding):N=u?o+(n.e-i.e)+1:o,N<0)m.push(1),y=!0;else{if(N=N/h+2|0,p=0,1==T){for(d=0,L=L[0],N++;(p1&&(L=t(L,d,l),E=t(E,d,l),T=L.length,I=E.length),D=T,j=(b=E.slice(0,T)).length;j=l/2&&++O;do d=0,(c=e(L,b,T,j))<0?(x=b[0],T!=j&&(x=x*l+(b[1]||0)),(d=x/O|0)>1?(d>=l&&(d=l-1),M=(g=t(L,d,l)).length,j=b.length,1==(c=e(g,b,M,j))&&(d--,r(g,T=10;d/=10)p++;_.e=p+f*h-1,z(_,u?o+_.e+1:o,s,y)}return _}}();function z(t,e,r,n){var i,o,a,s,u,l,c,f,d,h=t.constructor;t:if(null!=e){if(!(f=t.d))return t;for(i=1,s=f[0];s>=10;s/=10)i++;if((o=e-i)<0)o+=7,a=e,u=(c=f[d=0])/M(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=f.length)){if(n){for(;s++<=d;)f.push(0);c=u=0,i=1,o%=7,a=o-7+1}else break t}else{for(i=1,c=s=f[d];s>=10;s/=10)i++;o%=7,u=(a=o-7+i)<0?0:c/M(10,i-a-1)%10|0}if(n=n||e<0||void 0!==f[d+1]||(a<0?c:c%M(10,i-a-1)),l=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?c/M(10,i-a):0:f[d-1])%10&1||r==(t.s<0?8:7)),e<1||!f[0])return f.length=0,l?(e-=t.e+1,f[0]=M(10,(7-e%7)%7),t.e=-e||0):f[0]=t.e=0,t;if(0==o?(f.length=d,s=1,d--):(f.length=d+1,s=M(10,7-o),f[d]=a>0?(c/M(10,i-a)%M(10,a)|0)*s:0),l)for(;;){if(0==d){for(o=1,a=f[0];a>=10;a/=10)o++;for(a=f[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(t.e++,1e7==f[0]&&(f[0]=1));break}if(f[d]+=s,1e7!=f[d])break;f[d--]=0,s=1}for(o=f.length;0===f[--o];)f.pop()}return p&&(t.e>h.maxE?(t.d=null,t.e=NaN):t.e0?o=o.charAt(0)+"."+o.slice(1)+U(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+U(-i-1)+o,r&&(n=r-a)>0&&(o+=U(n))):i>=a?(o+=U(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+U(n))):((n=i+1)0&&(i+1===a&&(o+="."),o+=U(n))),o}function S(t,e){var r=t[0];for(e*=7;r>=10;r/=10)e++;return e}function E(t,e,r){if(e>x)throw p=!0,r&&(t.precision=r),Error(y);return z(new t(l),e,1,!0)}function L(t,e,r){if(e>N)throw Error(y);return z(new t(c),e,r,!0)}function C(t){var e=t.length-1,r=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function U(t){for(var e="";t--;)e+="0";return e}function P(t,e,r,n){var i,o=new t(1),a=Math.ceil(n/7+4);for(p=!1;;){if(r%2&&G((o=o.times(e)).d,a)&&(i=!0),0===(r=v(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}G((e=e.times(e)).d,a)}return p=!0,o}function Q(t){return 1&t.d[t.d.length-1]}function Y(t,e,r){for(var n,i=new t(e[0]),o=0;++o17)return new d(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:0/0);for(null==e?(p=!1,u=y):u=e,s=new d(.03125);t.e>-2;)t=t.times(s),f+=5;for(u+=n=Math.log(M(2,f))/Math.LN10*2+5|0,r=o=a=new d(1),d.precision=u;;){if(o=z(o.times(t),u,1),r=r.times(++c),D((s=a.plus(A(o,r,u,1))).d).slice(0,u)===D(a.d).slice(0,u)){for(i=f;i--;)a=z(a.times(a),u,1);if(null!=e)return d.precision=y,a;if(!(l<3&&O(a.d,u-n,h,l)))return z(a,d.precision=y,h,p=!0);d.precision=u+=10,r=o=s=new d(1),c=0,l++}a=s}}function F(t,e){var r,n,i,o,a,s,u,l,c,f,d,h=1,y=t,g=y.d,v=y.constructor,M=v.rounding,_=v.precision;if(y.s<0||!g||!g[0]||!y.e&&1==g[0]&&1==g.length)return new v(g&&!g[0]?-1/0:1!=y.s?NaN:g?0:y);if(null==e?(p=!1,c=_):c=e,v.precision=c+=10,n=(r=D(g)).charAt(0),!(15e14>Math.abs(o=y.e)))return l=E(v,c+2,_).times(o+""),y=F(new v(n+"."+r.slice(1)),c-10).plus(l),v.precision=_,null==e?z(y,_,M,p=!0):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=D((y=y.times(t)).d)).charAt(0),h++;for(o=y.e,n>1?(y=new v("0."+r),o++):y=new v(n+"."+r.slice(1)),f=y,u=a=y=A(y.minus(1),y.plus(1),c,1),d=z(y.times(y),c,1),i=3;;){if(a=z(a.times(d),c,1),D((l=u.plus(A(a,new v(i),c,1))).d).slice(0,c)===D(u.d).slice(0,c)){if(u=u.times(2),0!==o&&(u=u.plus(E(v,c+2,_).times(o+""))),u=A(u,new v(h),c,1),null!=e)return v.precision=_,u;if(!O(u.d,c-10,M,s))return z(u,v.precision=_,M,p=!0);v.precision=c+=10,l=a=y=A(f.minus(1),f.plus(1),c,1),d=z(y.times(y),c,1),i=s=1}u=l,i+=2}}function B(t){return String(t.s*t.s/0)}function Z(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%7,r<0&&(n+=7),nt.constructor.maxE?(t.d=null,t.e=NaN):t.e=0&&(p=p.replace(".",""),(h=new y(1)).e=p.length-s,h.d=T(k(h),10,i),h.e=h.d.length),o=c=(d=T(p,10,i)).length;0==d[--c];)d.pop();if(d[0]){if(s<0?o--:((t=new y(t)).d=d,t.e=o,d=(t=A(t,h,r,n,0,i)).d,o=t.e,f=a),s=d[r],l=i/2,f=f||void 0!==d[r+1],f=n<4?(void 0!==s||f)&&(0===n||n===(t.s<0?3:2)):s>l||s===l&&(4===n||f||6===n&&1&d[r-1]||n===(t.s<0?8:7)),d.length=r,f)for(;++d[--r]>i-1;)d[r]=0,r||(++o,d.unshift(1));for(c=d.length;!d[c-1];--c);for(s=0,p="";s1){if(16==e||8==e){for(s=16==e?4:3,--c;c%s;c++)p+="0";for(c=(d=T(p,i,e)).length;!d[c-1];--c);for(s=1,p="1.";sc)for(o-=c;o--;)p+="0";else oe)return t.length=e,!0}function $(t){return new this(t).abs()}function J(t){return new this(t).acos()}function X(t){return new this(t).acosh()}function K(t,e){return new this(t).plus(e)}function tt(t){return new this(t).asin()}function te(t){return new this(t).asinh()}function tr(t){return new this(t).atan()}function tn(t){return new this(t).atanh()}function ti(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,o=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?L(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=L(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,r=this.atan(A(t,e,o,1)),e=L(this,o,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(A(t,e,o,1)):(r=L(this,o,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function to(t){return new this(t).cbrt()}function ta(t){return z(t=new this(t),t.e+1,2)}function ts(t){if(!t||"object"!=typeof t)throw Error(d+"Object expected");var e,r,n,i=!0===t.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(e=0;e=o[e+1]&&n<=o[e+2])this[r]=n;else throw Error(h+r+": "+n)}if(r="crypto",i&&(this[r]=f[r]),void 0!==(n=t[r])){if(!0===n||!1===n||0===n||1===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(g)}else this[r]=!1}else throw Error(h+r+": "+n)}return this}function tu(t){return new this(t).cos()}function tl(t){return new this(t).cosh()}function tc(t,e){return new this(t).div(e)}function tf(t){return new this(t).exp()}function tp(t){return z(t=new this(t),t.e+1,3)}function td(){var t,e,r=new this(0);for(t=0,p=!1;t=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);o=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=n/4}else throw Error(g)}else for(;o=10;i/=10)n++;n<7&&(r-=7-n)}return a.e=r,a.d=s,a}function tw(t){return z(t=new this(t),t.e+1,this.rounding)}function tD(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function tI(t){return new this(t).sin()}function tO(t){return new this(t).sinh()}function tT(t){return new this(t).sqrt()}function tA(t,e){return new this(t).sub(e)}function tz(t){return new this(t).tan()}function tk(t){return new this(t).tanh()}function tS(t){return z(t=new this(t),t.e+1,1)}(o=function t(e){var r,n,i;function a(t){var e,r,n;if(!(this instanceof a))return new a(t);if(this.constructor=a,t instanceof a){this.s=t.s,p?!t.d||t.e>a.maxE?(this.e=NaN,this.d=null):t.e=10;r/=10)e++;p?e>a.maxE?(this.e=NaN,this.d=null):e0?(l=+e.slice(a+1),e=e.substring(2,a)):e=e.slice(2),s=(a=e.indexOf("."))>=0,n=t.constructor,s&&(a=(u=(e=e.replace(".","")).length)-a,i=P(n,new n(r),a,2*a)),a=f=(c=T(e,r,1e7)).length-1;0===c[a];--a)c.pop();return a<0?new n(0*t.s):(t.e=S(c,f),t.d=c,p=!1,s&&(t=A(t,i,4*u)),l&&(t=t.times(54>Math.abs(l)?M(2,l):o.pow(2,l))),p=!0,t)}(this,t)}if(a.prototype=w,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.EUCLID=9,a.config=a.set=ts,a.clone=t,a.isDecimal=th,a.abs=$,a.acos=J,a.acosh=X,a.add=K,a.asin=tt,a.asinh=te,a.atan=tr,a.atanh=tn,a.atan2=ti,a.cbrt=to,a.ceil=ta,a.cos=tu,a.cosh=tl,a.div=tc,a.exp=tf,a.floor=tp,a.hypot=td,a.ln=ty,a.log=tg,a.log10=tM,a.log2=tv,a.max=t_,a.min=tm,a.mod=tb,a.mul=tj,a.pow=tx,a.random=tN,a.round=tw,a.sign=tD,a.sin=tI,a.sinh=tO,a.sqrt=tT,a.sub=tA,a.tan=tz,a.tanh=tk,a.trunc=tS,void 0===e&&(e={}),e&&!0!==e.defaults)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];r0}});return}var t=function(t){for(var e=t,r=i(e);r;)r=i(e=r.ownerDocument);return e}(window.document),e=[],r=null,n=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return r||(r=function(t,r){n=t&&r?p(t,r):c(),e.forEach(function(t){t._checkForIntersections()})}),r},a._resetCrossOriginUpdater=function(){r=null,n=null},a.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!(t&&1==t.nodeType))throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},a.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,r){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw Error("threshold must be a number between 0 and 1 inclusively");return t!==r[e-1]})},a.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},a.prototype._monitorIntersections=function(e){var r=e.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(e)){var n=this._checkForIntersections,o=null,a=null;if(this.POLL_INTERVAL?o=r.setInterval(n,this.POLL_INTERVAL):(s(r,"resize",n,!0),s(e,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(a=new r.MutationObserver(n)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push(function(){var t=e.defaultView;t&&(o&&t.clearInterval(o),u(t,"resize",n,!0)),u(e,"scroll",n,!0),a&&a.disconnect()}),e!=(this.root&&(this.root.ownerDocument||this.root)||t)){var l=i(e);l&&this._monitorIntersections(l.ownerDocument)}}},a.prototype._unmonitorIntersections=function(e){var r=this._monitoringDocuments.indexOf(e);if(-1!=r){var n=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some(function(t){var r=t.element.ownerDocument;if(r==e)return!0;for(;r&&r!=n;){var o=i(r);if((r=o&&o.ownerDocument)==e)return!0}return!1})){var o=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),o(),e!=n){var a=i(e);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e=0&&s>=0&&{top:r,bottom:n,left:i,right:o,width:a,height:s}||null}(c,a)),!a)break;s=s&&h(s)}return a}},a.prototype._getRootRect=function(){var e;if(this.root&&!y(this.root))e=l(this.root);else{var r=y(this.root)?this.root:t,n=r.documentElement,i=r.body;e={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(e)},a.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,r){return"px"==e.unit?e.value:e.value*(r%2?t.width:t.height)/100}),r={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},a.prototype._hasCrossedThreshold=function(t,e){var r=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(r!==n)for(var i=0;ie.indexOf(this)&&e.push(this)},a.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=o}function i(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function o(t){this.time=t.time,this.target=t.target,this.rootBounds=f(t.rootBounds),this.boundingClientRect=f(t.boundingClientRect),this.intersectionRect=f(t.intersectionRect||c()),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,r=e.width*e.height,n=this.intersectionRect,i=n.width*n.height;r?this.intersectionRatio=Number((i/r).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function a(t,e){var r,n,i,o=e||{};if("function"!=typeof t)throw Error("callback must be a function");if(o.root&&1!=o.root.nodeType&&9!=o.root.nodeType)throw Error("root must be a Document or Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){r(),i=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(o.rootMargin),this.thresholds=this._initThresholds(o.threshold),this.root=o.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(t,e,r,n){"function"==typeof t.addEventListener?t.addEventListener(e,r,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,r)}function u(t,e,r,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,r,n||!1):"function"==typeof t.detachEvent&&t.detachEvent("on"+e,r)}function l(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):c()}function c(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function p(t,e){var r=e.top-t.top,n=e.left-t.left;return{top:r,left:n,height:e.height,width:e.width,bottom:r+e.height,right:n+e.width}}function d(t,e){for(var r=e;r;){if(r==t)return!0;r=h(r)}return!1}function h(e){var r=e.parentNode;return 9==e.nodeType&&e!=t?i(e):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&11==r.nodeType&&r.host)?r.host:r}function y(t){return t&&9===t.nodeType}}()},92966:function(t,e,r){"use strict";r.d(e,{default:function(){return i.a}});var n=r(68543),i=r.n(n)},77650:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return _}});let n=r(79932),i=r(92040),o=r(26657),a=i._(r(15312)),s=n._(r(81470)),u=n._(r(95997)),l=r(13326),c=r(92895),f=r(37229);r(3502);let p=r(18634),d=n._(r(40808)),h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function y(t,e,r,n,i,o,a){let s=null==t?void 0:t.src;t&&t["data-loaded-src"]!==s&&(t["data-loaded-src"]=s,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&i(!0),null==r?void 0:r.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,i=!1;r.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{i=!0,e.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(t)}}))}function g(t){return a.use?{fetchPriority:t}:{fetchpriority:t}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,a.forwardRef)((t,e)=>{let{src:r,srcSet:n,sizes:i,height:s,width:u,decoding:l,className:c,style:f,fetchPriority:p,placeholder:d,loading:h,unoptimized:v,fill:M,onLoadRef:_,onLoadingCompleteRef:m,setBlurComplete:b,setShowAltText:j,sizesInput:x,onLoad:N,onError:w,...D}=t;return(0,o.jsx)("img",{...D,...g(p),loading:h,width:u,height:s,decoding:l,"data-nimg":M?"fill":"1",className:c,style:f,sizes:i,srcSet:n,src:r,ref:(0,a.useCallback)(t=>{e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(w&&(t.src=t.src),t.complete&&y(t,d,_,m,b,v,x))},[r,d,_,m,b,w,v,x,e]),onLoad:t=>{y(t.currentTarget,d,_,m,b,v,x)},onError:t=>{j(!0),"empty"!==d&&b(!0),w&&w(t)}})});function M(t){let{isAppRouter:e,imgAttributes:r}=t,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...g(r.fetchPriority)};return e&&s.default.preload?(s.default.preload(r.src,n),null):(0,o.jsx)(u.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let _=(0,a.forwardRef)((t,e)=>{let r=(0,a.useContext)(p.RouterContext),n=(0,a.useContext)(f.ImageConfigContext),i=(0,a.useMemo)(()=>{var t;let e=h||n||c.imageConfigDefault,r=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),i=e.deviceSizes.sort((t,e)=>t-e),o=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:s,onLoadingComplete:u}=t,y=(0,a.useRef)(s);(0,a.useEffect)(()=>{y.current=s},[s]);let g=(0,a.useRef)(u);(0,a.useEffect)(()=>{g.current=u},[u]);let[_,m]=(0,a.useState)(!1),[b,j]=(0,a.useState)(!1),{props:x,meta:N}=(0,l.getImgProps)(t,{defaultLoader:d.default,imgConf:i,blurComplete:_,showAltText:b});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...x,unoptimized:N.unoptimized,placeholder:N.placeholder,fill:N.fill,onLoadRef:y,onLoadingCompleteRef:g,setBlurComplete:m,setShowAltText:j,sizesInput:t.sizes,ref:e}),N.priority?(0,o.jsx)(M,{isAppRouter:!r,imgAttributes:x}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},56595:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(79932)._(r(15312)).default.createContext({})},68737:function(t,e){"use strict";function r(t){let{ampFirst:e=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===t?{}:t;return e||r&&n}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isInAmpMode",{enumerable:!0,get:function(){return r}})},13326:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return s}}),r(3502);let n=r(29335),i=r(92895);function o(t){return void 0!==t.default}function a(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function s(t,e){var r,s;let u,l,c,{src:f,sizes:p,unoptimized:d=!1,priority:h=!1,loading:y,className:g,quality:v,width:M,height:_,fill:m=!1,style:b,overrideSrc:j,onLoad:x,onLoadingComplete:N,placeholder:w="empty",blurDataURL:D,fetchPriority:I,decoding:O="async",layout:T,objectFit:A,objectPosition:z,lazyBoundary:k,lazyRoot:S,...E}=t,{imgConf:L,showAltText:C,blurComplete:U,defaultLoader:P}=e,Q=L||i.imageConfigDefault;if("allSizes"in Q)u=Q;else{let t=[...Q.deviceSizes,...Q.imageSizes].sort((t,e)=>t-e),e=Q.deviceSizes.sort((t,e)=>t-e),n=null==(r=Q.qualities)?void 0:r.sort((t,e)=>t-e);u={...Q,allSizes:t,deviceSizes:e,qualities:n}}if(void 0===P)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let Y=E.loader||P;delete E.loader,delete E.srcSet;let R="__next_img_default"in Y;if(R){if("custom"===u.loader)throw Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=Y;Y=e=>{let{config:r,...n}=e;return t(n)}}if(T){"fill"===T&&(m=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];t&&(b={...b,...t});let e={responsive:"100vw",fill:"100vw"}[T];e&&!p&&(p=e)}let F="",B=a(M),Z=a(_);if("object"==typeof(s=f)&&(o(s)||void 0!==s.src)){let t=o(f)?f.default:f;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(l=t.blurWidth,c=t.blurHeight,D=D||t.blurDataURL,F=t.src,!m){if(B||Z){if(B&&!Z){let e=B/t.width;Z=Math.round(t.height*e)}else if(!B&&Z){let e=Z/t.height;B=Math.round(t.width*e)}}else B=t.width,Z=t.height}}let q=!h&&("lazy"===y||void 0===y);(!(f="string"==typeof f?f:F)||f.startsWith("data:")||f.startsWith("blob:"))&&(d=!0,q=!1),u.unoptimized&&(d=!0),R&&f.endsWith(".svg")&&!u.dangerouslyAllowSVG&&(d=!0),h&&(I="high");let H=a(v),V=Object.assign(m?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:A,objectPosition:z}:{},C?{}:{color:"transparent"},b),W=U||"empty"===w?null:"blur"===w?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:B,heightInt:Z,blurWidth:l,blurHeight:c,blurDataURL:D||"",objectFit:V.objectFit})+'")':'url("'+w+'")',G=W?{backgroundSize:V.objectFit||"cover",backgroundPosition:V.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:W}:{},$=function(t){let{config:e,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=t;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:l}=function(t,e,r){let{deviceSizes:n,allSizes:i}=t;if(r){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let n;n=t.exec(r);n)e.push(parseInt(n[2]));if(e.length){let t=.01*Math.min(...e);return{widths:i.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>i.find(e=>e>=t)||i[i.length-1]))],kind:"x"}}(e,i,a),c=u.length-1;return{sizes:a||"w"!==l?a:"100vw",srcSet:u.map((t,n)=>s({config:e,src:r,quality:o,width:t})+" "+("w"===l?t:n+1)+l).join(", "),src:s({config:e,src:r,quality:o,width:u[c]})}}({config:u,src:f,unoptimized:d,width:B,quality:H,sizes:p,loader:Y});return{props:{...E,loading:q?"lazy":y,fetchPriority:I,width:B,height:Z,decoding:O,className:g,style:{...V,...G},sizes:$.sizes,srcSet:$.srcSet,src:j||$.src},meta:{unoptimized:d,priority:h,placeholder:w,fill:m}}}},95997:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{default:function(){return y},defaultHead:function(){return f}});let n=r(79932),i=r(92040),o=r(26657),a=i._(r(15312)),s=n._(r(51265)),u=r(56595),l=r(85702),c=r(68737);function f(t){void 0===t&&(t=!1);let e=[(0,o.jsx)("meta",{charSet:"utf-8"})];return t||e.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"})),e}function p(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===a.default.Fragment?t.concat(a.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}r(3502);let d=["name","httpEquiv","charSet","itemProp"];function h(t,e){let{inAmpMode:r}=e;return t.reduce(p,[]).reverse().concat(f(r).reverse()).filter(function(){let t=new Set,e=new Set,r=new Set,n={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let e=i.key.slice(i.key.indexOf("$")+1);t.has(e)?o=!1:t.add(e)}switch(i.type){case"title":case"base":e.has(i.type)?o=!1:e.add(i.type);break;case"meta":for(let t=0,e=d.length;t{let n=t.key||e;if(!r&&"link"===t.type&&t.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(e=>t.props.href.startsWith(e))){let e={...t.props||{}};return e["data-href"]=e.href,e.href=void 0,e["data-optimized-fonts"]=!0,a.default.cloneElement(t,e)}return a.default.cloneElement(t,{key:n})})}let y=function(t){let{children:e}=t,r=(0,a.useContext)(u.AmpStateContext),n=(0,a.useContext)(l.HeadManagerContext);return(0,o.jsx)(s.default,{reduceComponentsToState:h,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:e})};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},29335:function(t,e){"use strict";function r(t){let{widthInt:e,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=t,s=n?40*n:e,u=i?40*i:r,l=s&&u?"viewBox='0 0 "+s+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+l+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(l?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},37229:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(79932)._(r(15312)),i=r(92895),o=n.default.createContext(i.imageConfigDefault)},92895:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},68543:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(e,{default:function(){return u},getImageProps:function(){return s}});let n=r(79932),i=r(13326),o=r(77650),a=n._(r(40808));function s(t){let{props:e}=(0,i.getImgProps)(t,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,r]of Object.entries(e))void 0===r&&delete e[t];return{props:e}}let u=o.Image},40808:function(t,e){"use strict";function r(t){var e;let{config:r,src:n,width:i,quality:o}=t,a=o||(null==(e=r.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75){}:n.useLayoutEffect,a=i?()=>{}:n.useEffect;function s(t){let{headManager:e,reduceComponentsToState:r}=t;function s(){if(e&&e.mountedInstances){let i=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(r(i,t))}}if(i){var u;null==e||null==(u=e.mountedInstances)||u.add(t.children),s()}return o(()=>{var r;return null==e||null==(r=e.mountedInstances)||r.add(t.children),()=>{var r;null==e||null==(r=e.mountedInstances)||r.delete(t.children)}}),o(()=>(e&&(e._pendingUpdate=s),()=>{e&&(e._pendingUpdate=s)})),a(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},86931:function(t,e){!function(t){"use strict";var e=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do o=o+(i=i+e[n++]|0)|0;while(--a);i%=65521,o%=65521}return i|o<<16|0},r=new Uint32Array(function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}()),n=function(t,e,n,i){var o=i+n;t^=-1;for(var a=i;a>>8^r[255&(t^e[a])];return -1^t},i=function(t,e){var r,n,i,o,a,s,u,l,c,f,p,d,h,y,g,v,M,_,m,b,j,x,N,w,D=t.state;r=t.next_in,N=t.input,n=r+(t.avail_in-5),i=t.next_out,w=t.output,o=i-(e-t.avail_out),a=i+(t.avail_out-257),s=D.dmax,u=D.wsize,l=D.whave,c=D.wnext,f=D.window,p=D.hold,d=D.bits,h=D.lencode,y=D.distcode,g=(1<>>=_=M>>>24,d-=_,0==(_=M>>>16&255))w[i++]=65535&M;else{if(!(16&_)){if(0==(64&_)){M=h[(65535&M)+(p&(1<<_)-1)];continue}if(32&_){D.mode=12;break e}t.msg="invalid literal/length code",D.mode=30;break e}for(m=65535&M,(_&=15)&&(d<_&&(p+=N[r++]<>>=_,d-=_),d<15&&(p+=N[r++]<>>=_=M>>>24,d-=_,!(16&(_=M>>>16&255))){if(0==(64&_)){M=y[(65535&M)+(p&(1<<_)-1)];continue}t.msg="invalid distance code",D.mode=30;break e}if(b=65535&M,d<(_&=15)&&(p+=N[r++]<s){t.msg="invalid distance too far back",D.mode=30;break e}if(p>>>=_,d-=_,b>(_=i-o)){if((_=b-_)>l&&D.sane){t.msg="invalid distance too far back",D.mode=30;break e}if(j=0,x=f,0===c){if(j+=u-_,_2;)w[i++]=x[j++],w[i++]=x[j++],w[i++]=x[j++],m-=3;m&&(w[i++]=x[j++],m>1&&(w[i++]=x[j++]))}else{j=i-b;do w[i++]=w[j++],w[i++]=w[j++],w[i++]=w[j++],m-=3;while(m>2);m&&(w[i++]=w[j++],m>1&&(w[i++]=w[j++]))}break}}break}while(r>3,p&=(1<<(d-=m<<3))-1,t.next_in=r,t.next_out=i,t.avail_in=r=1&&0===E[w];w--);if(D>w&&(D=w),0===w)return i[l++]=20971520,i[l++]=20971520,f.bits=1,0;for(N=1;N0&&(0===t||1!==w))return -1;for(L[1]=0,j=1;j<15;j++)L[j+1]=L[j]+E[j];for(x=0;x852||2===t&&A>592)return 1;for(;;){M=j-O,c[x]v?(_=C[U+c[x]],m=k[S+c[x]]):(_=96,m=0),p=1<>O)+(d-=p)]=M<<24|_<<16|m|0;while(0!==d);for(p=1<>=1;if(0!==p?(z&=p-1,z+=p):z=0,x++,0==--E[j]){if(j===w)break;j=e[r+c[x]]}if(j>D&&(z&y)!==h){for(0===O&&(O=D),g+=N,T=1<<(I=j-O);I+O852||2===t&&A>592)return 1;i[h=z&y]=D<<24|I<<16|g-l|0}}return 0!==z&&(i[g+z]=j-O<<24|4194304),f.bits=D,0},c={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},f=c.Z_FINISH,p=c.Z_BLOCK,d=c.Z_TREES,h=c.Z_OK,y=c.Z_STREAM_END,g=c.Z_NEED_DICT,v=c.Z_STREAM_ERROR,M=c.Z_DATA_ERROR,_=c.Z_MEM_ERROR,m=c.Z_BUF_ERROR,b=c.Z_DEFLATED,j=function(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)};function x(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var N,w,D=function(t){if(!t||!t.state)return v;var e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,h},I=function(t){if(!t||!t.state)return v;var e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,D(t)},O=function(t,e){if(!t||!t.state)return v;var r,n=t.state;return e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?v:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,I(t))},T=!0,A=function(t){if(T){N=new Int32Array(512),w=new Int32Array(32);for(var e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(l(1,t.lens,0,288,N,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;l(2,t.lens,0,32,w,0,t.work,{bits:5}),T=!1}t.lencode=N,t.lenbits=9,t.distcode=w,t.distbits=5},z=function(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<=o.wsize?(o.window.set(e.subarray(r-o.wsize,r),0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),o.window.set(e.subarray(r-n,r-n+i),o.wnext),(n-=i)?(o.window.set(e.subarray(r-n,r),0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,o.check=n(o.check,q,2,0),w=0,D=0,o.mode=2;break}if(o.flags=0,o.head&&(o.head.done=!1),!(1&o.wrap)||(((255&w)<<8)+(w>>8))%31){t.msg="incorrect header check",o.mode=30;break}if((15&w)!==b){t.msg="unknown compression method",o.mode=30;break}if(D-=4,Y=8+(15&(w>>>=4)),0===o.wbits)o.wbits=Y;else if(Y>o.wbits){t.msg="invalid window size",o.mode=30;break}o.dmax=1<>8&1),512&o.flags&&(q[0]=255&w,q[1]=w>>>8&255,o.check=n(o.check,q,2,0)),w=0,D=0,o.mode=3;case 3:for(;D<32;){if(0===x)break e;x--,w+=a[u++]<>>8&255,q[2]=w>>>16&255,q[3]=w>>>24&255,o.check=n(o.check,q,4,0)),w=0,D=0,o.mode=4;case 4:for(;D<16;){if(0===x)break e;x--,w+=a[u++]<>8),512&o.flags&&(q[0]=255&w,q[1]=w>>>8&255,o.check=n(o.check,q,2,0)),w=0,D=0,o.mode=5;case 5:if(1024&o.flags){for(;D<16;){if(0===x)break e;x--,w+=a[u++]<>>8&255,o.check=n(o.check,q,2,0)),w=0,D=0}else o.head&&(o.head.extra=null);o.mode=6;case 6:if(1024&o.flags&&((T=o.length)>x&&(T=x),T&&(o.head&&(Y=o.head.extra_len-o.length,o.head.extra||(o.head.extra=new Uint8Array(o.head.extra_len)),o.head.extra.set(a.subarray(u,u+T),Y)),512&o.flags&&(o.check=n(o.check,a,T,u)),x-=T,u+=T,o.length-=T),o.length))break e;o.length=0,o.mode=7;case 7:if(2048&o.flags){if(0===x)break e;T=0;do Y=a[u+T++],o.head&&Y&&o.length<65536&&(o.head.name+=String.fromCharCode(Y));while(Y&&T>9&1,o.head.done=!0),t.adler=o.check=0,o.mode=12;break;case 10:for(;D<32;){if(0===x)break e;x--,w+=a[u++]<>>=7&D,D-=7&D,o.mode=27;break}for(;D<3;){if(0===x)break e;x--,w+=a[u++]<>>=1)){case 0:o.mode=14;break;case 1:if(A(o),o.mode=20,r===d){w>>>=2,D-=2;break e}break;case 2:o.mode=17;break;case 3:t.msg="invalid block type",o.mode=30}w>>>=2,D-=2;break;case 14:for(w>>>=7&D,D-=7&D;D<32;){if(0===x)break e;x--,w+=a[u++]<>>16^65535)){t.msg="invalid stored block lengths",o.mode=30;break}if(o.length=65535&w,w=0,D=0,o.mode=15,r===d)break e;case 15:o.mode=16;case 16:if(T=o.length){if(T>x&&(T=x),T>N&&(T=N),0===T)break e;s.set(a.subarray(u,u+T),c),x-=T,u+=T,N-=T,c+=T,o.length-=T;break}o.mode=12;break;case 17:for(;D<14;){if(0===x)break e;x--,w+=a[u++]<>>=5,D-=5,o.ndist=1+(31&w),w>>>=5,D-=5,o.ncode=4+(15&w),w>>>=4,D-=4,o.nlen>286||o.ndist>30){t.msg="too many length or distance symbols",o.mode=30;break}o.have=0,o.mode=18;case 18:for(;o.have>>=3,D-=3}for(;o.have<19;)o.lens[H[o.have++]]=0;if(o.lencode=o.lendyn,o.lenbits=7,F={bits:o.lenbits},R=l(0,o.lens,0,19,o.lencode,0,o.work,F),o.lenbits=F.bits,R){t.msg="invalid code lengths set",o.mode=30;break}o.have=0,o.mode=19;case 19:for(;o.have>>16&255,C=65535&Z,!((E=Z>>>24)<=D);){if(0===x)break e;x--,w+=a[u++]<>>=E,D-=E,o.lens[o.have++]=C;else{if(16===C){for(B=E+2;D>>=E,D-=E,0===o.have){t.msg="invalid bit length repeat",o.mode=30;break}Y=o.lens[o.have-1],T=3+(3&w),w>>>=2,D-=2}else if(17===C){for(B=E+3;D>>=E)),w>>>=3,D-=3}else{for(B=E+7;D>>=E)),w>>>=7,D-=7}if(o.have+T>o.nlen+o.ndist){t.msg="invalid bit length repeat",o.mode=30;break}for(;T--;)o.lens[o.have++]=Y}}if(30===o.mode)break;if(0===o.lens[256]){t.msg="invalid code -- missing end-of-block",o.mode=30;break}if(o.lenbits=9,F={bits:o.lenbits},R=l(1,o.lens,0,o.nlen,o.lencode,0,o.work,F),o.lenbits=F.bits,R){t.msg="invalid literal/lengths set",o.mode=30;break}if(o.distbits=6,o.distcode=o.distdyn,F={bits:o.distbits},R=l(2,o.lens,o.nlen,o.ndist,o.distcode,0,o.work,F),o.distbits=F.bits,R){t.msg="invalid distances set",o.mode=30;break}if(o.mode=20,r===d)break e;case 20:o.mode=21;case 21:if(x>=6&&N>=258){t.next_out=c,t.avail_out=N,t.next_in=u,t.avail_in=x,o.hold=w,o.bits=D,i(t,O),c=t.next_out,s=t.output,N=t.avail_out,u=t.next_in,a=t.input,x=t.avail_in,w=o.hold,D=o.bits,12===o.mode&&(o.back=-1);break}for(o.back=0;L=(Z=o.lencode[w&(1<>>16&255,C=65535&Z,!((E=Z>>>24)<=D);){if(0===x)break e;x--,w+=a[u++]<>U)])>>>16&255,C=65535&Z,!(U+(E=Z>>>24)<=D);){if(0===x)break e;x--,w+=a[u++]<>>=U,D-=U,o.back+=U}if(w>>>=E,D-=E,o.back+=E,o.length=C,0===L){o.mode=26;break}if(32&L){o.back=-1,o.mode=12;break}if(64&L){t.msg="invalid literal/length code",o.mode=30;break}o.extra=15&L,o.mode=22;case 22:if(o.extra){for(B=o.extra;D>>=o.extra,D-=o.extra,o.back+=o.extra}o.was=o.length,o.mode=23;case 23:for(;L=(Z=o.distcode[w&(1<>>16&255,C=65535&Z,!((E=Z>>>24)<=D);){if(0===x)break e;x--,w+=a[u++]<>U)])>>>16&255,C=65535&Z,!(U+(E=Z>>>24)<=D);){if(0===x)break e;x--,w+=a[u++]<>>=U,D-=U,o.back+=U}if(w>>>=E,D-=E,o.back+=E,64&L){t.msg="invalid distance code",o.mode=30;break}o.offset=C,o.extra=15&L,o.mode=24;case 24:if(o.extra){for(B=o.extra;D>>=o.extra,D-=o.extra,o.back+=o.extra}if(o.offset>o.dmax){t.msg="invalid distance too far back",o.mode=30;break}o.mode=25;case 25:if(0===N)break e;if(T=O-N,o.offset>T){if((T=o.offset-T)>o.whave&&o.sane){t.msg="invalid distance too far back",o.mode=30;break}T>o.wnext?(T-=o.wnext,k=o.wsize-T):k=o.wnext-T,T>o.length&&(T=o.length),S=o.window}else S=s,k=c-o.offset,T=o.length;T>N&&(T=N),N-=T,o.length-=T;do s[c++]=S[k++];while(--T);0===o.length&&(o.mode=21);break;case 26:if(0===N)break e;s[c++]=o.length,N--,o.mode=21;break;case 27:if(o.wrap){for(;D<32;){if(0===x)break e;x--,w|=a[u++]<=252?6:P>=248?5:P>=240?4:P>=224?3:P>=192?2:1;U[254]=U[254]=1;var Q=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,r,n,i,o,a=t.length,s=0;for(i=0;i>>6:(r<65536?e[o++]=224|r>>>12:(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63),e[o++]=128|r>>>6&63),e[o++]=128|63&r);return e},Y=function(t,e){var r,n,i=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));var o=Array(2*i);for(n=0,r=0;r4)o[n++]=65533,r+=s-1;else{for(a&=2===s?31:3===s?15:7;s>1&&r1?o[n++]=65533:a<65536?o[n++]=a:(a-=65536,o[n++]=55296|a>>10&1023,o[n++]=56320|1023&a)}}}return function(t,e){if(e<65534&&t.subarray&&C)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));for(var r="",n=0;nt.length&&(e=t.length);for(var r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+U[t[r]]>e?r:e},F={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},Z=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},q=Object.prototype.toString,H=c.Z_NO_FLUSH,V=c.Z_FINISH,W=c.Z_OK,G=c.Z_STREAM_END,$=c.Z_NEED_DICT,J=c.Z_STREAM_ERROR,X=c.Z_DATA_ERROR,K=c.Z_MEM_ERROR;function tt(t){this.options=E({chunkSize:65536,windowBits:15,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new B,this.strm.avail_out=0;var r=k.inflateInit2(this.strm,e.windowBits);if(r!==W||(this.header=new Z,k.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Q(e.dictionary):"[object ArrayBuffer]"===q.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=k.inflateSetDictionary(this.strm,e.dictionary))!==W)))throw Error(F[r])}function te(t,e){var r=new tt(e);if(r.push(t),r.err)throw r.msg||F[r.err];return r.result}tt.prototype.push=function(t,e){var r,n,i,o=this.strm,a=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(n=e===~~e?e:!0===e?V:H,"[object ArrayBuffer]"===q.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;;){for(0===o.avail_out&&(o.output=new Uint8Array(a),o.next_out=0,o.avail_out=a),(r=k.inflate(o,n))===$&&s&&((r=k.inflateSetDictionary(o,s))===W?r=k.inflate(o,n):r===X&&(r=$));o.avail_in>0&&r===G&&o.state.wrap>0&&0!==t[o.next_in];)k.inflateReset(o),r=k.inflate(o,n);switch(r){case J:case X:case $:case K:return this.onEnd(r),this.ended=!0,!1}if(i=o.avail_out,o.next_out&&(0===o.avail_out||r===G)){if("string"===this.options.to){var u=R(o.output,o.next_out),l=o.next_out-u,c=Y(o.output,u);o.next_out=l,o.avail_out=a-l,l&&o.output.set(o.output.subarray(u,u+l),0),this.onData(c)}else this.onData(o.output.length===o.next_out?o.output:o.output.subarray(0,o.next_out))}if(r!==W||0!==i){if(r===G)return r=k.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===o.avail_in)break}}return!0},tt.prototype.onData=function(t){this.chunks.push(t)},tt.prototype.onEnd=function(t){t===W&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=L(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var tr=function(t,e){return(e=e||{}).raw=!0,te(t,e)};t.Inflate=tt,t.constants=c,t.default={Inflate:tt,inflate:te,inflateRaw:tr,ungzip:te,constants:c},t.inflate=te,t.inflateRaw=tr,t.ungzip=te,Object.defineProperty(t,"__esModule",{value:!0})}(e)},38431:function(t,e){"use strict";e.Z=void 0,e.Z=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),r=e.width,n=e.height;if(r||n)return!0}if(t.getBoundingClientRect){var i=t.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1}},36870:function(t,e,r){"use strict";var n,i=r(70691).default,o=r(29695).default;e.sY=function(t,e){if(n){var r;y(!0),r=e[g]||n(e),y(!1),r.render(t),e[g]=r;return}d(t,e)},e.vE=function(t){return M.apply(this,arguments)};var a=o(r(89303)),s=o(r(82383)),u=o(r(21551)),l=o(r(5476)),c=i(r(81470)),f=(0,l.default)({},c),p=f.version,d=f.render,h=f.unmountComponentAtNode;try{Number((p||"").split(".")[0])>=18&&(n=f.createRoot)}catch(t){}function y(t){var e=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"===(0,u.default)(e)&&(e.usingClientEntryPoint=t)}var g="__rc_react_root__";function v(){return(v=(0,s.default)((0,a.default)().mark(function t(e){return(0,a.default)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve().then(function(){var t;null===(t=e[g])||void 0===t||t.unmount(),delete e[g]}));case 1:case"end":return t.stop()}},t)}))).apply(this,arguments)}function M(){return(M=(0,s.default)((0,a.default)().mark(function t(e){return(0,a.default)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(void 0!==n)){t.next=2;break}return t.abrupt("return",function(t){return v.apply(this,arguments)}(e));case 2:h(e);case 3:case"end":return t.stop()}},t)}))).apply(this,arguments)}},34942:function(t,e,r){"use strict";var n=r(70691).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,r){var n=i.useRef({});return(!("value"in n.current)||r(n.current.condition,e))&&(n.current.value=t(),n.current.condition=e),n.current.value};var i=n(r(15312))},38536:function(t,e){"use strict";e.Z=void 0;var r=function(t){return+setTimeout(t,16)},n=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(t){return window.requestAnimationFrame(t)},n=function(t){return window.cancelAnimationFrame(t)});var i=0,o=new Map,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i+=1;return!function e(i){if(0===i)o.delete(n),t();else{var a=r(function(){e(i-1)});o.set(n,a)}}(e),n};a.cancel=function(t){var e=o.get(t);return o.delete(e),n(e)},e.Z=a},80135:function(t,e,r){"use strict";var n=r(29695).default;e.sQ=function(){for(var t=arguments.length,e=Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:1,n=i+=1;return!function e(i){if(0===i)o.delete(n),t();else{var a=r(function(){e(i-1)});o.set(n,a)}}(e),n};a.cancel=function(t){var e=o.get(t);return o.delete(t),n(e)},e.Z=a},15082:function(t,e,r){"use strict";r.d(e,{sQ:function(){return l},mH:function(){return u},C4:function(){return d},Yr:function(){return f},x1:function(){return c}});var n=r(84662),i=r(15312),o=r(76675),a=r(11697),s=Number(i.version.split(".")[0]),u=function(t,e){"function"==typeof t?t(e):"object"===(0,n.Z)(t)&&t&&"current"in t&&(t.current=e)},l=function(){for(var t=arguments.length,e=Array(t),r=0;r=19)return!0;var e,r,n=(0,o.isMemo)(t)?t.type.type:t.type;return("function"!=typeof n||null!==(e=n.prototype)&&void 0!==e&&!!e.render||n.$$typeof===o.ForwardRef)&&("function"!=typeof t||null!==(r=t.prototype)&&void 0!==r&&!!r.render||t.$$typeof===o.ForwardRef)};function p(t){return(0,i.isValidElement)(t)&&!(0,a.Z)(t)}var d=function(t){return t&&p(t)?t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref:null}},59925:function(t,e){"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,M=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,m=r?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case c:case f:case o:case s:case a:case d:return t;default:switch(t=t&&t.$$typeof){case l:case p:case g:case y:case u:return t;default:return e}}case i:return e}}}function j(t){return b(t)===f}e.AsyncMode=c,e.ConcurrentMode=f,e.ContextConsumer=l,e.ContextProvider=u,e.Element=n,e.ForwardRef=p,e.Fragment=o,e.Lazy=g,e.Memo=y,e.Portal=i,e.Profiler=s,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return j(t)||b(t)===c},e.isConcurrentMode=j,e.isContextConsumer=function(t){return b(t)===l},e.isContextProvider=function(t){return b(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return b(t)===p},e.isFragment=function(t){return b(t)===o},e.isLazy=function(t){return b(t)===g},e.isMemo=function(t){return b(t)===y},e.isPortal=function(t){return b(t)===i},e.isProfiler=function(t){return b(t)===s},e.isStrictMode=function(t){return b(t)===a},e.isSuspense=function(t){return b(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===f||t===s||t===a||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===y||t.$$typeof===u||t.$$typeof===l||t.$$typeof===p||t.$$typeof===M||t.$$typeof===_||t.$$typeof===m||t.$$typeof===v)},e.typeOf=b},51604:function(t,e,r){"use strict";t.exports=r(59925)},62803:function(t,e){"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy");Symbol.for("react.offscreen"),Symbol.for("react.module.reference"),e.ForwardRef=c,e.isMemo=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case i:case a:case o:case f:case p:return t;default:switch(t=t&&t.$$typeof){case l:case u:case c:case h:case d:case s:return t;default:return e}}case n:return e}}}(t)===d}},76675:function(t,e,r){"use strict";t.exports=r(62803)},2638:function(t,e,r){"use strict";r.d(e,{X:function(){return S}});var n=r(96636);function i(t){return"function"==typeof t}function o(t){var e=t(function(t){Error.call(t),t.stack=Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var a=o(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function s(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var u=function(){var t;function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t,e,r,o,s,u=this._parentage;if(u){if(this._parentage=null,Array.isArray(u))try{for(var l=(0,n.__values)(u),c=l.next();!c.done;c=l.next())c.value.remove(this)}catch(e){t={error:e}}finally{try{c&&!c.done&&(e=l.return)&&e.call(l)}finally{if(t)throw t.error}}else u.remove(this)}var p=this.initialTeardown;if(i(p))try{p()}catch(t){s=t instanceof a?t.errors:[t]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=(0,n.__values)(d),y=h.next();!y.done;y=h.next()){var g=y.value;try{f(g)}catch(t){s=null!=s?s:[],t instanceof a?s=(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(s)),(0,n.__read)(t.errors)):s.push(t)}}}catch(t){r={error:t}}finally{try{y&&!y.done&&(o=h.return)&&o.call(h)}finally{if(r)throw r.error}}}if(s)throw new a(s)}},e.prototype.add=function(t){var r;if(t&&t!==this){if(this.closed)f(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}}},e.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},e.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},e.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&s(e,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&s(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),l=u.EMPTY;function c(t){return t instanceof u||t&&"closed"in t&&i(t.remove)&&i(t.add)&&i(t.unsubscribe)}function f(t){i(t)?t():t.unsubscribe()}var p={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},d={setTimeout:function(t,e){for(var r=[],i=2;i0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?l:(this.currentObservers=null,i.push(t),new u(function(){e.currentObservers=null,s(i,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},e.prototype.asObservable=function(){var t=new O;return t.source=this,t},e.create=function(t,e){return new k(t,e)},e}(O),k=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return(0,n.__extends)(e,t),e.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},e.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==r?r:l},e}(z),S=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return(0,n.__extends)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r.closed||e.next(this._value),r},e.prototype.getValue=function(){var t=this.hasError,e=this.thrownError,r=this._value;if(t)throw e;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(z)},25203:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.binary_search=e.equal_range=e.upper_bound=e.lower_bound=void 0;var n=r(79256),i=r(83116),o=r(29642);function a(t,e,r,n){void 0===n&&(n=o.less);for(var a=(0,i.distance)(t,e);a>0;){var s=Math.floor(a/2),u=(0,i.advance)(t,s);n(u.value,r)?(t=u.next(),a-=s+1):a=s}return t}function s(t,e,r,n){void 0===n&&(n=o.less);for(var a=(0,i.distance)(t,e);a>0;){var s=Math.floor(a/2),u=(0,i.advance)(t,s);n(r,u.value)?a=s:(t=u.next(),a-=s+1)}return t}e.lower_bound=a,e.upper_bound=s,e.equal_range=function(t,e,r,i){void 0===i&&(i=o.less);var u=s(t=a(t,e,r,i),e,r,i);return new n.Pair(t,u)},e.binary_search=function(t,e,r,n){return void 0===n&&(n=o.less),!(t=a(t,e,r,n)).equals(e)&&!n(r,t.value)}},11877:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sort_heap=e.is_heap_until=e.is_heap=e.pop_heap=e.push_heap=e.make_heap=void 0;var n=r(29642),i=r(83116);function o(t,e,r){void 0===r&&(r=n.less);var o=e.prev(),a=o.value;o.value=t.value,u(t,0,(0,i.distance)(t,e)-1,0,a,r)}function a(t,e,r){var o,a;void 0===r&&(r=n.less);for(var s=0,u=t.next();o=u,a=e.index(),o.base instanceof Function?a>1;r>e&&i(t.advance(o).value,n);o=r-1>>1)t.advance(r).value=t.advance(o).value,r=o;t.advance(r).value=n}function u(t,e,r,n,i,o){for(var a=2*n+2;a>1)+1;do{var s=t.advance(--a).value;u(t,a,o,a,s,r)}while(0!==a)}},e.push_heap=function(t,e,r){void 0===r&&(r=n.less);var o=e.prev().value;s(t,0,(0,i.distance)(t,e)-1,o,r)},e.pop_heap=o,e.is_heap=function(t,e,r){return void 0===r&&(r=n.less),a(t,e,r).equals(e)},e.is_heap_until=a,e.sort_heap=function(t,e,r){for(void 0===r&&(r=n.less);(0,i.distance)(t,e)>1;e=e.prev())o(t,e,r)}},6859:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(25203),e),i(r(11877),e),i(r(83477),e),i(r(96934),e),i(r(63609),e),i(r(76364),e),i(r(1408),e),i(r(79792),e),i(r(44200),e)},83477:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.count_if=e.count=e.mismatch=e.search_n=e.search=e.adjacent_find=e.find_first_of=e.find_end=e.find_if_not=e.find_if=e.find=e.lexicographical_compare=e.equal=e.none_of=e.any_of=e.all_of=e.for_each_n=e.for_each=void 0;var n=r(79256),i=r(29642),o=r(83116);function a(t,e,r){for(var n=t;!n.equals(e);n=n.next())if(!0===r(n.value))return!0;return!1}function s(t,e,r){for(var n=t;!n.equals(e);n=n.next())if(r(n.value))return n;return e}function u(t,e,r){for(var n=0,i=t;!i.equals(e);i=i.next())r(i.value)&&++n;return n}e.for_each=function(t,e,r){for(var n=t;!n.equals(e);n=n.next())r(n.value);return r},e.for_each_n=function(t,e,r){for(var n=0;n0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0;)t.value=r(),t=t.next();return t},e.is_unique=function(t,e,r){if(void 0===r&&(r=o.equal_to),t.equals(e))return!0;for(var n=t.next();!n.equals(e);n=n.next()){if(!0===r(t.value,n.value))return!1;t=t.next()}return!0},e.unique=function(t,e,r){if(void 0===r&&(r=o.equal_to),t.equals(e))return e;var n=t;for(t=t.next();!t.equals(e);t=t.next())r(n.value,t.value)||((n=n.next()).value=t.value);return n.next()},e.unique_copy=function(t,e,r,n){if(void 0===n&&(n=o.equal_to),t.equals(e))return r;for(r.value=t.value,t=t.next();!t.equals(e);t=t.next())n(t.value,r.value)||((r=r.next()).value=t.value);return r.next()},e.remove=function(t,e,r){return p(t,e,function(t){return(0,o.equal_to)(t,r)})},e.remove_if=p,e.remove_copy=function(t,e,r,n){return d(t,e,r,function(t){return(0,o.equal_to)(t,n)})},e.remove_copy_if=d,e.replace=function(t,e,r,n){return h(t,e,function(t){return(0,o.equal_to)(t,r)},n)},e.replace_if=h,e.replace_copy=function(t,e,r,n,i){return y(t,e,r,function(t){return(0,o.equal_to)(t,n)},i)},e.replace_copy_if=y,e.iter_swap=g,e.swap_ranges=function(t,e,r){for(;!t.equals(e);t=t.next())g(t,r),r=r.next();return r},e.reverse=function(t,e){for(;!1===t.equals(e)&&!1===t.equals(e=e.prev());)g(t,e),t=t.next()},e.reverse_copy=function(t,e,r){for(;!e.equals(t);)e=e.prev(),r.value=e.value,r=r.next();return r},e.shift_left=function(t,e,r){return u((0,s.advance)(t,r),e,t)},e.shift_right=function(t,e,r){return l(t,(0,s.advance)(e,-r),e)},e.rotate=function(t,e,r){for(;!t.equals(e)&&!e.equals(r);)g(t,e),t=t.next(),e=e.next();return t},e.rotate_copy=function(t,e,r,n){return n=u(e,r,n),u(t,e,n)},e.shuffle=function(t,e){for(var r=t;!r.equals(e);r=r.next()){var n=(0,a.randint)(t.index(),e.index()-1);r.index()!==n&&g(r,t.advance(n))}}},76364:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.partition_copy=e.stable_partition=e.partition=e.partition_point=e.is_partitioned=void 0;var n=r(79256),i=r(63609),o=r(83116);function a(t,e,r){for(;!t.equals(e)&&r(t.value);){for(;r(t.value);)if((t=t.next()).equals(e))return t;do if(e=e.prev(),t.equals(e))return t;while(!r(e.value));(0,i.iter_swap)(t,e),t=t.next()}return e}e.is_partitioned=function(t,e,r){for(;!t.equals(e)&&r(t.value);)t=t.next();for(;!t.equals(e);t=t.next())if(r(t.value))return!1;return!0},e.partition_point=function(t,e,r){for(var n=(0,o.distance)(t,e);n>0;){var i=Math.floor(n/2),a=(0,o.advance)(t,i);r(a.value)?(t=a.next(),n-=i+1):n=i}return t},e.partition=function(t,e,r){return a(t,e,r)},e.stable_partition=a,e.partition_copy=function(t,e,r,i,o){for(;!t.equals(e);t=t.next())o(t.value)?(r.value=t.value,r=r.next()):(i.value=t.value,i=i.next());return new n.Pair(r,i)}},1408:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.sample=e.randint=void 0;var i=r(4857),o=r(83116),a=r(79792);function s(t,e){return Math.floor(Math.random()*(e-t+1))+t}e.randint=s,e.sample=function(t,e,r,u){for(var l,c,f=(0,o.distance)(t,e),p=[],d=0;d=1;--d)h.set(d,h.at(d)-h.at(d-1));try{for(var g=n(h),v=g.next();!v.done;v=g.next()){var M=v.value;t=(0,o.advance)(t,M),r.value=t.value,r=r.next()}}catch(t){l={error:t}}finally{try{v&&!v.done&&(c=g.return)&&c.call(g)}finally{if(l)throw l.error}}return r}},79792:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.is_sorted_until=e.is_sorted=e.nth_element=e.partial_sort_copy=e.partial_sort=e.stable_sort=e.sort=void 0;var n=r(4857),i=r(29642),o=r(63609),a=r(83116);function s(t,e,r){void 0===r&&(r=i.less);var n=e.index()-t.index();if(!(n<=0)){var a=t.advance(Math.floor(n/2)),u=a.value;a.index()!==t.index()&&(0,o.iter_swap)(t,a);for(var l=1,c=1;cf?(0,o.copy)(p.begin(),p.begin().advance(f),r):(0,o.copy)(p.begin(),p.end(),r)},e.nth_element=function(t,e,r,n){void 0===n&&(n=i.less);for(var s=(0,a.distance)(t,e),u=t;!u.equals(r);u=u.next()){for(var l=0,c=t;!c.equals(r);c=c.next())if(u.equals(c))continue;else if(n(u.value,c.value)&&++l>s)break;if(l===s){(0,o.iter_swap)(e,u);return}}},e.is_sorted=function(t,e,r){return void 0===r&&(r=i.less),u(t,e,r).equals(e)},e.is_sorted_until=u},72571:function(t,e,r){"use strict";var n=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var i=r(3141),o=function(){function t(){}return t.prototype.empty=function(){return 0===this.size()},t.prototype.rbegin=function(){return this.end().reverse()},t.prototype.rend=function(){return this.begin().reverse()},t.prototype[Symbol.iterator]=function(){return new i.ForOfAdaptor(this.begin(),this.end())},t.prototype.toJSON=function(){var t,e,r=[];try{for(var i=n(this),o=i.next();!o.done;o=i.next()){var a=o.value;r.push(a)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return r},t}();e.Container=o},43155:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},39775:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},74141:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},55188:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9362:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},9296:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},22449:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},14779:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},2063:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MapContainer=void 0;var o=r(72571),a=r(89907),s=function(t){function e(e){var r=t.call(this)||this;return r.data_=e(r),r}return i(e,t),e.prototype.assign=function(t,e){this.clear(),this.insert(t,e)},e.prototype.clear=function(){this.data_.clear()},e.prototype.begin=function(){return this.data_.begin()},e.prototype.end=function(){return this.data_.end()},e.prototype.has=function(t){return!this.find(t).equals(this.end())},e.prototype.size=function(){return this.data_.size()},e.prototype.push=function(){for(var t=[],e=0;e0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},u=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0?this.insert(this.end(),r,void 0):r<0&&this.erase(this.end().advance(-r),this.end())},e.prototype.reserve=function(t){this._Reserve(e._Emend(t,"reserve"))},e.prototype._Reserve=function(t){for(var r=[[]],n=this._Compute_col_size(t),i=0;i (n = ").concat(t,")"));return t},e.prototype.size=function(){return this.size_},e.prototype.capacity=function(){return this.capacity_},e.prototype.nth=function(t){return new e.Iterator(this,t)},e.prototype[Symbol.iterator]=function(){return new e.ForOfAdaptor(this.matrix_)},e.prototype.source=function(){return this},e.prototype._At=function(t){var e=this._Fetch_index(t);return this.matrix_[e.first][e.second]},e.prototype._Set=function(t,e){var r=this._Fetch_index(t);this.matrix_[r.first][r.second]=e},e.prototype._Fetch_index=function(t){var e;for(e=0;e1&&this.matrix_.shift(),this.size_--},e.prototype._Pop_back=function(){var t=this.matrix_[this.matrix_.length-1];t.pop(),0===t.length&&this.matrix_.length>1&&this.matrix_.pop(),this.size_--},e.prototype._Insert_by_range=function(t,r,n){var i=this.size_+(0,y.distance)(r,n);if(i===this.size_)return t;if(!0===t.equals(this.end()))this._Try_expand_capacity(i),this._Insert_to_end(r,n),t=this.nth(this.size_);else if(i>this.capacity_){var o=new e;o._Reserve(Math.max(i,Math.floor(this.capacity_*e.MAGNIFIER))),o._Insert_to_end(this.begin(),t),o._Insert_to_end(r,n),o._Insert_to_end(t,this.end()),this._Swap(o)}else this._Insert_to_middle(t,r,n);return this.size_=i,t},e.prototype._Insert_to_middle=function(t,r,n){for(var i,o,a=this._Compute_col_size(),l=this._Fetch_index(t.index()),c=this.matrix_[l.first],f=l.second,p=c.splice(f);!r.equals(n);r=r.next()){if(c.length===a&&this.matrix_.length=r&&this.matrix_.length=t&&this.matrix_.length=this.size())return t;r=e.index()>=this.size()?this.size()-t.index():e.index()-t.index(),this.size_-=r;for(var r,n=null,i=null,o=0;0!==r;){var a=this._Fetch_index(t.index()),l=this.matrix_[a.first],c=a.second,f=Math.min(r,l.length-c);l.splice(c,f),0!==l.length&&(0===o?n=l:i=l),0===l.length&&this.matrix_.length>1&&this.matrix_.splice(a.first,1),r-=f,++o}return null!==n&&null!==i&&n.length+i.length<=this._Compute_col_size()&&(n.push.apply(n,u([],s(i),!1)),this.matrix_.splice(this.matrix_.indexOf(i),1)),t},e}(l.ArrayContainer);e.Deque=v,(i=v=e.Deque||(e.Deque={})).Iterator=c.ArrayIterator,i.ReverseIterator=f.ArrayReverseIterator,i.ROW_SIZE=8,i.MIN_CAPACITY=36,i.MAGNIFIER=1.5,o=function(){function t(t){this.matrix_=t,this.row_=0,this.col_=0}return t.prototype.next=function(){if(this.row_===this.matrix_.length)return{done:!0,value:void 0};var t=this.matrix_[this.row_][this.col_];return++this.col_===this.matrix_[this.row_].length&&(++this.row_,this.col_=0),{done:!1,value:t}},t.prototype[Symbol.iterator]=function(){return this},t}(),i.ForOfAdaptor=o,e.Deque=v},18003:function(t,e,r){"use strict";var n,i,o=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.ForwardList=void 0;var s=r(53038),u=r(3141),l=r(4857),c=r(74155),f=r(83116),p=r(29642),d=r(79792),h=function(){function t(){for(var e,r,n=[],i=0;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HashMultiMap=void 0;var l=r(55478),c=r(69608),f=r(8399),p=r(78386),d=r(89907),h=r(36172),y=function(t){function e(){for(var r=[],n=0;nthis.buckets_.capacity()&&this.reserve(Math.max(this.size(),2*this.buckets_.capacity())),this._Handle_insert(i,this.end())},e.prototype._Handle_insert=function(t,e){for(;!t.equals(e);t=t.next())this.buckets_.insert(t)},e.prototype._Handle_erase=function(t,e){for(;!t.equals(e);t=t.next())this.buckets_.erase(t)},e}(l.MultiMap);e.HashMultiMap=y,(i=y=e.HashMultiMap||(e.HashMultiMap={})).Iterator=f.MapElementList.Iterator,i.ReverseIterator=f.MapElementList.ReverseIterator,e.HashMultiMap=y},74052:function(t,e,r){"use strict";var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HashMultiSet=void 0;var l=r(21669),c=r(69608),f=r(67804),p=r(76245),d=function(t){function e(){for(var r=[],n=0;nthis.buckets_.capacity()&&this.reserve(Math.max(this.size(),2*this.buckets_.capacity())),this._Handle_insert(r,this.end())},e.prototype._Handle_insert=function(t,e){for(;!t.equals(e);t=t.next())this.buckets_.insert(t)},e.prototype._Handle_erase=function(t,e){for(;!t.equals(e);t=t.next())this.buckets_.erase(t)},e}(l.MultiSet);e.HashMultiSet=d,(i=d=e.HashMultiSet||(e.HashMultiSet={})).Iterator=f.SetElementList.Iterator,i.ReverseIterator=f.SetElementList.ReverseIterator,e.HashMultiSet=d},25962:function(t,e,r){"use strict";var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},l=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.PriorityQueue=void 0;var s=r(243),u=r(4857),l=r(11877),c=r(29642),f=function(t){function e(){for(var r=[],n=0;n=2&&r[0].next instanceof Function&&r[1].next instanceof Function?(3===r.length&&(o=r[2]),a=function(){var t=r[0],e=r[1];i.source_.assign(t,e)}):1===r.length&&(o=r[0]);return i.comp_=o,null!==a&&a(),i}return i(e,t),e.prototype.value_comp=function(){return this.comp_},e.prototype.top=function(){return this.source_.front()},e.prototype.push=function(){for(var t,e,r=[],n=0;n0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.VectorBoolean=void 0;var l=r(45215),c=r(6043),f=r(72040),p=r(76690),d=r(89907),h=r(79256),y=r(29642),g=function(t){function e(){for(var r=[],n=0;n0?this.insert(this.end(),e,!1):e<0&&this.erase(this.end().advance(-e),this.end())},e.prototype.flip=function(){var t,e;try{for(var r=u(this.data_),n=r.next();!n.done;n=r.next()){var i=n.value;i.second=!i.second}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}},e.prototype.swap=function(t){var e,r;e=a([t.data_,this.data_],2),this.data_=e[0],t.data_=e[1],r=a([t.size_,this.size_],2),this.size_=r[0],t.size_=r[1]},e.prototype.source=function(){return this},e.prototype.size=function(){return this.size_},e.prototype._At=function(t){return this._Find_node(t).second},e.prototype._Set=function(t,e){e=!!e;var r=this._Find_node(t);if(r.second!==e&&(r.first===t?r.second=e:r=this.data_.emplace(t,e).first,t!==this.size()-1)){var n=r.prev(),i=r.next();(0,y.not_equal_to)(n,this.data_.end())&&n.second===r.second&&this.data_.erase(r),!0===i.equals(this.data_.end())||i.first!==t+1||i.second!==e?this.data_.emplace(t+1,!e):this.data_.erase(i)}},e.prototype.nth=function(t){return new e.Iterator(this,t)},e.prototype._Find_node=function(t){return this.data_.upper_bound(t).prev()},e.prototype.push=function(){for(var t=[],e=0;e=2&&"number"==typeof e[0].valueOf()){var i=e[0],o=e[1];n.code_=new s.ErrorCode(i,o),n.message=e[2]}else n.code_=e[0],n.message=e[1];return n}return i(e,t),e.prototype.code=function(){return this.code_},e.prototype.toJSON=function(){return o(o({},t.prototype.toJSON.call(this)),{code:this.code_.toJSON()})},e}(a.RuntimeError);e.SystemError=u},62727:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.UnderflowError=void 0;var o=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(r(86672).RuntimeError);e.UnderflowError=o},79137:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(42913),e),i(r(24205),e),i(r(98854),e),i(r(4705),e),i(r(7919),e),i(r(86125),e),i(r(86672),e),i(r(98331),e),i(r(16230),e),i(r(62727),e),i(r(38623),e),i(r(79964),e),i(r(22798),e),i(r(15643),e)},54493:function(t,e,r){"use strict";var n,i,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),a=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.hash=void 0;var i=r(47052);function o(t,e){return a(t.toString(),e)}function a(t,e){for(var r=0;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=1&&o[0]instanceof Array?(e=function(){var e=o[0];t.push.apply(t,n([],r(e),!1))},i=o.slice(1)):o.length>=2&&o[0].next instanceof Function&&o[1].next instanceof Function?(e=function(){var e=o[0],r=o[1];t.assign(e,r)},i=o.slice(2)):(e=null,i=o),{ramda:e,tail:i}}},69608:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=1&&(f=h.tail[0]),h.tail.length>=2&&(p=h.tail[1])}r(f,p),null!==c&&c()}},51230:function(t,e,r){"use strict";var n,i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=1&&(c=p.tail[0])}r(c),null!==l&&l()},n.emplacable=function(t,e,r){var n=e.prev();return(n.equals(t.end())||t.value_comp()(n.value,r))&&(e.equals(t.end())||t.value_comp()(r,e.value))}},8399:function(t,e,r){"use strict";var n,i,o,a,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.MapElementList=void 0;var l=r(12451),c=r(4744),f=r(68218),p=function(t){function e(e){var r=t.call(this)||this;return r.associative_=e,r}return s(e,t),e.prototype._Create_iterator=function(t,r,n){return e.Iterator.create(this,t,r,n)},e._Swap_associative=function(t,e){var r;r=u([e.associative_,t.associative_],2),t.associative_=r[0],e.associative_=r[1]},e.prototype.associative=function(){return this.associative_},e}(l.ListContainer);e.MapElementList=p,i=p=e.MapElementList||(e.MapElementList={}),o=function(t){function e(e,r,n,i){var o=t.call(this,r,n,i)||this;return o.list_=e,o}return s(e,t),e.create=function(t,r,n,i){return new e(t,r,n,i)},e.prototype.reverse=function(){return new a(this)},e.prototype.source=function(){return this.list_.associative()},Object.defineProperty(e.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"second",{get:function(){return this.value.second},set:function(t){this.value.second=t},enumerable:!1,configurable:!0}),e}(c.ListIterator),i.Iterator=o,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype._Create_neighbor=function(t){return new e(t)},Object.defineProperty(e.prototype,"first",{get:function(){return this.base_.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"second",{get:function(){return this.base_.second},set:function(t){this.base_.second=t},enumerable:!1,configurable:!0}),e}(f.ReverseIterator),i.ReverseIterator=a,e.MapElementList=p},60941:function(t,e,r){"use strict";var n,i,o,a,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.MapElementVector=void 0;var l=r(63011),c=r(71189),f=r(84105),p=function(t){function e(e){var r=t.call(this)||this;return r.data_=[],r.associative_=e,r}return s(e,t),e.prototype.nth=function(t){return new e.Iterator(this,t)},e._Swap_associative=function(t,e){var r;r=u([e.associative_,t.associative_],2),t.associative_=r[0],e.associative_=r[1]},e.prototype.source=function(){return this.associative_},e}(l.VectorContainer);e.MapElementVector=p,i=p=e.MapElementVector||(e.MapElementVector={}),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.source=function(){return this._Get_array().source()},e.prototype.reverse=function(){return new a(this)},Object.defineProperty(e.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"second",{get:function(){return this.value.second},set:function(t){this.value.second=t},enumerable:!1,configurable:!0}),e}(c.ArrayIteratorBase),i.Iterator=o,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype._Create_neighbor=function(t){return new e(t)},Object.defineProperty(e.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"second",{get:function(){return this.value.second},set:function(t){this.value.second=t},enumerable:!1,configurable:!0}),e}(f.ArrayReverseIteratorBase),i.ReverseIterator=a,e.MapElementVector=p},17085:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MultiTreeMap=void 0;var o=r(55478),a=r(51230),s=r(36172),u=r(79256),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.find=function(t){var e=this.lower_bound(t);return!e.equals(this.end())&&this._Key_eq(t,e.first)?e:this.end()},e.prototype.count=function(t){for(var e=this.find(t),r=0;!e.equals(this.end())&&this._Key_eq(e.first,t);e=e.next())++r;return r},e.prototype.equal_range=function(t){return new u.Pair(this.lower_bound(t),this.upper_bound(t))},e.prototype.value_comp=function(){var t=this;return function(e,r){return t.key_comp()(e.first,r.first)}},e.prototype._Key_eq=function(t,e){return!this.key_comp()(t,e)&&!this.key_comp()(e,t)},e.prototype.emplace=function(t,e){var r=this.upper_bound(t);return r=this.data_.insert(r,new s.Entry(t,e)),this._Handle_insert(r,r.next()),r},e.prototype.emplace_hint=function(t,e,r){var n=new s.Entry(e,r);if(!a.ITreeContainer.emplacable(this,t,n))return this.emplace(e,r);var i=this.data_.insert(t,n);return this._Handle_insert(i,i.next()),i},e.prototype._Insert_by_range=function(t,e){for(var r=t;!r.equals(e);r=r.next())this.emplace(r.value.first,r.value.second)},e}(o.MultiMap);e.MultiTreeMap=l},58725:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MultiTreeSet=void 0;var o=r(21669),a=r(51230),s=r(79256),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.find=function(t){var e=this.lower_bound(t);return!e.equals(this.end())&&this._Key_eq(t,e.value)?e:this.end()},e.prototype.count=function(t){for(var e=this.find(t),r=0;!e.equals(this.end())&&this._Key_eq(e.value,t);e=e.next())++r;return r},e.prototype.equal_range=function(t){return new s.Pair(this.lower_bound(t),this.upper_bound(t))},e.prototype.value_comp=function(){return this.key_comp()},e.prototype._Key_eq=function(t,e){return!this.key_comp()(t,e)&&!this.key_comp()(e,t)},e.prototype._Insert_by_key=function(t){var e=this.upper_bound(t);return e=this.data_.insert(e,t),this._Handle_insert(e,e.next()),e},e.prototype._Insert_by_hint=function(t,e){if(!a.ITreeContainer.emplacable(this,t,e))return this._Insert_by_key(e);var r=this.data_.insert(t,e);return this._Handle_insert(r,r.next()),r},e.prototype._Insert_by_range=function(t,e){for(var r=t;!r.equals(e);r=r.next())this._Insert_by_key(r.value)},e}(o.MultiSet);e.MultiTreeSet=u},67804:function(t,e,r){"use strict";var n,i,o,a,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SetElementList=void 0;var l=r(12451),c=r(4744),f=r(68218),p=function(t){function e(e){var r=t.call(this)||this;return r.associative_=e,r}return s(e,t),e.prototype._Create_iterator=function(t,r,n){return e.Iterator.create(this,t,r,n)},e._Swap_associative=function(t,e){var r;r=u([e.associative_,t.associative_],2),t.associative_=r[0],e.associative_=r[1]},e.prototype.associative=function(){return this.associative_},e}(l.ListContainer);e.SetElementList=p,i=p=e.SetElementList||(e.SetElementList={}),o=function(t){function e(e,r,n,i){var o=t.call(this,r,n,i)||this;return o.source_=e,o}return s(e,t),e.create=function(t,r,n,i){return new e(t,r,n,i)},e.prototype.reverse=function(){return new a(this)},e.prototype.source=function(){return this.source_.associative()},e}(c.ListIterator),i.Iterator=o,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype._Create_neighbor=function(t){return new e(t)},e}(f.ReverseIterator),i.ReverseIterator=a,e.SetElementList=p},58003:function(t,e,r){"use strict";var n,i,o,a,s=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SetElementVector=void 0;var l=r(63011),c=r(71189),f=r(84105),p=function(t){function e(e){var r=t.call(this)||this;return r.data_=[],r.associative_=e,r}return s(e,t),e.prototype.nth=function(t){return new e.Iterator(this,t)},e._Swap_associative=function(t,e){var r;r=u([e.associative_,t.associative_],2),t.associative_=r[0],e.associative_=r[1]},e.prototype.source=function(){return this.associative_},e}(l.VectorContainer);e.SetElementVector=p,i=p=e.SetElementVector||(e.SetElementVector={}),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.source=function(){return this._Get_array().source()},e.prototype.reverse=function(){return new a(this)},e}(c.ArrayIteratorBase),i.Iterator=o,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype._Create_neighbor=function(t){return new e(t)},e}(f.ArrayReverseIteratorBase),i.ReverseIterator=a,e.SetElementVector=p},48396:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.UniqueTreeMap=void 0;var o=r(23217),a=r(51230),s=r(36172),u=r(79256),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.find=function(t){var e=this.lower_bound(t);return!e.equals(this.end())&&this._Key_eq(t,e.first)?e:this.end()},e.prototype.equal_range=function(t){var e=this.lower_bound(t);return new u.Pair(e,!e.equals(this.end())&&this._Key_eq(t,e.first)?e.next():e)},e.prototype.value_comp=function(){var t=this;return function(e,r){return t.key_comp()(e.first,r.first)}},e.prototype._Key_eq=function(t,e){return!this.key_comp()(t,e)&&!this.key_comp()(e,t)},e.prototype.emplace=function(t,e){var r=this.lower_bound(t);return!r.equals(this.end())&&this._Key_eq(r.first,t)?new u.Pair(r,!1):(r=this.data_.insert(r,new s.Entry(t,e)),this._Handle_insert(r,r.next()),new u.Pair(r,!0))},e.prototype.emplace_hint=function(t,e,r){var n=new s.Entry(e,r);if(!a.ITreeContainer.emplacable(this,t,n))return this.emplace(e,r).first;var i=this.data_.insert(t,n);return this._Handle_insert(i,i.next()),i},e}(o.UniqueMap);e.UniqueTreeMap=l},2658:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.UniqueTreeSet=void 0;var o=r(32044),a=r(51230),s=r(79256),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.find=function(t){var e=this.lower_bound(t);return!e.equals(this.end())&&this._Key_eq(t,e.value)?e:this.end()},e.prototype.equal_range=function(t){var e=this.lower_bound(t);return new s.Pair(e,!e.equals(this.end())&&this._Key_eq(t,e.value)?e.next():e)},e.prototype.value_comp=function(){return this.key_comp()},e.prototype._Key_eq=function(t,e){return!this.key_comp()(t,e)&&!this.key_comp()(e,t)},e.prototype._Insert_by_key=function(t){var e=this.lower_bound(t);return!e.equals(this.end())&&this._Key_eq(e.value,t)?new s.Pair(e,!1):(e=this.data_.insert(e,t),this._Handle_insert(e,e.next()),new s.Pair(e,!0))},e.prototype._Insert_by_hint=function(t,e){if(!a.ITreeContainer.emplacable(this,t,e))return this._Insert_by_key(e).first;var r=this.data_.insert(t,e);return this._Handle_insert(r,r.next()),r},e}(o.UniqueSet);e.UniqueTreeSet=u},243:function(t,e){"use strict";var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=this.size())throw a.ErrorGenerator.excessive_index(this.source(),"at",t,this.size());this._Set(t,e)},e.prototype.front=function(t){if(0==arguments.length)return this.at(0);this.set(0,t)},e.prototype.back=function(t){var e=this.size()-1;if(0==arguments.length)return this.at(e);this.set(e,t)},e.prototype.insert=function(t){for(var e=[],r=1;rt.index())throw a.ErrorGenerator.negative_iterator(this.source(),"insert",t.index());return t.index()>this.size()&&(t=this.end()),1===e.length?this._Insert_by_repeating_val(t,1,e[0]):2===e.length&&"number"==typeof e[0]?this._Insert_by_repeating_val(t,e[0],e[1]):this._Insert_by_range(t,e[0],e[1])},e.prototype._Insert_by_repeating_val=function(t,e,r){var n=new u.Repeater(0,r),i=new u.Repeater(e);return this._Insert_by_range(t,n,i)},e.prototype.pop_back=function(){if(!0===this.empty())throw a.ErrorGenerator.empty(this.source(),"pop_back");this._Pop_back()},e.prototype.erase=function(t,e){if(void 0===e&&(e=t.next()),t._Get_array()!==this||e._Get_array()!==this)throw a.ErrorGenerator.not_my_iterator(this.source(),"erase");if(0>t.index())throw a.ErrorGenerator.negative_iterator(this.source(),"erase",t.index());if(t.index()>e.index())throw new s.RangeError("Error on ".concat(a.ErrorGenerator.get_class_name(this.source()),".erase(): first iterator has greater index than last -> (first = ").concat(t.index(),", last = ").concat(e.index(),")."));return t.index()>=this.size()?this.end():this._Erase_by_range(t,e)},e}(o.Container);e.ArrayContainer=l},12451:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.ListContainer=void 0;var a=r(72571),s=r(4744),u=r(53038),l=r(89907),c=r(83116),f=r(74155),p=function(t){function e(){var e=t.call(this)||this;return e.end_=e._Create_iterator(null,null),e.clear(),e}return i(e,t),e.prototype.assign=function(t,e){this.clear(),this.insert(this.end(),t,e)},e.prototype.clear=function(){s.ListIterator._Set_prev(this.end_,this.end_),s.ListIterator._Set_next(this.end_,this.end_),this.begin_=this.end_,this.size_=0},e.prototype.resize=function(t){var e=t-this.size();e>0?this.insert(this.end(),e,void 0):e<0&&this.erase((0,c.advance)(this.end(),-e),this.end())},e.prototype.begin=function(){return this.begin_},e.prototype.end=function(){return this.end_},e.prototype.size=function(){return this.size_},e.prototype.push_front=function(t){this.insert(this.begin_,t)},e.prototype.push_back=function(t){this.insert(this.end_,t)},e.prototype.pop_front=function(){if(!0===this.empty())throw f.ErrorGenerator.empty(this.end_.source().constructor.name,"pop_front");this.erase(this.begin_)},e.prototype.pop_back=function(){if(!0===this.empty())throw f.ErrorGenerator.empty(this.end_.source().constructor.name,"pop_back");this.erase(this.end_.prev())},e.prototype.push=function(){for(var t=[],e=0;e0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=this.size()){for(var n,i=this.size();!e.equals(r);e=e.next())this.data_.push(e.value);return this.nth(i)}for(var s=this.data_.splice(t.index());!e.equals(r);e=e.next())this.data_.push(e.value);return(n=this.data_).push.apply(n,a([],o(s),!1)),t},e.prototype._Pop_back=function(){this.data_.pop()},e.prototype._Erase_by_range=function(t,e){return t.index()>=this.size()?t:e.index()>=this.size()?(this.data_.splice(t.index()),this.end()):(this.data_.splice(t.index(),e.index()-t.index()),t)},e.prototype.equals=function(t){return this.data_===t.data_},e.prototype.swap=function(t){var e;e=o([t.data_,this.data_],2),this.data_=e[0],t.data_=e[1]},e.prototype.toJSON=function(){return this.data_},e}(r(45215).ArrayContainer);e.VectorContainer=s},74155:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorGenerator=void 0;var n=r(4705),i=r(86125);!function(t){function e(t){if("string"==typeof t)return t;var e=t.constructor.name;return t.constructor.__MODULE&&(e="".concat(t.constructor.__MODULE,".").concat(e)),"std.".concat(e)}t.get_class_name=e,t.empty=function(t,r){return new i.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): it's empty container."))},t.negative_index=function(t,r,n){return new i.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): parametric index is negative -> (index = ").concat(n,")."))},t.excessive_index=function(t,r,n,o){return new i.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): parametric index is equal or greater than size -> (index = ").concat(n,", size: ").concat(o,")."))},t.not_my_iterator=function(t,r){return new n.InvalidArgument("Error on ".concat(e(t),".").concat(r,"(): parametric iterator is not this container's own."))},t.erased_iterator=function(t,r){return new n.InvalidArgument("Error on ".concat(e(t),".").concat(r,"(): parametric iterator, it already has been erased."))},t.negative_iterator=function(t,r,n){return new i.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): parametric iterator is directing negative position -> (index = ").concat(n,")."))},t.iterator_end_value=function(t,r){void 0===r&&(r="end");var n=e(t);return new i.OutOfRange("Error on ".concat(n,".Iterator.value: cannot access to the ").concat(n,".").concat(r,"().value."))},t.key_nout_found=function(t,r,n){throw new i.OutOfRange("Error on ".concat(e(t),".").concat(r,"(): unable to find the matched key -> ").concat(n))}}(e.ErrorGenerator||(e.ErrorGenerator={}))},61244:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorInstance=void 0;var r=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=null),this.assign(t,e)}return t.prototype.assign=function(t,e){this.category_=e,this.value_=t},t.prototype.clear=function(){this.value_=0},t.prototype.category=function(){return this.category_},t.prototype.value=function(){return this.value_},t.prototype.message=function(){return this.category_.message(this.value_)},t.prototype.to_bool=function(){return 0!==this.value_},t.prototype.toJSON=function(){return null===this.category_?{}:{cateogory:this.category_.name(),value:this.value(),message:this.message()}},t}();e.ErrorInstance=r},83262:function(t,e){"use strict";var r=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.HashBuckets=void 0;var n=function(){function t(t,e){this.fetcher_=t,this.hasher_=e,this.max_load_factor_=o,this.data_=[],this.size_=0,this.initialize()}return t.prototype.clear=function(){this.data_=[],this.size_=0,this.initialize()},t.prototype.rehash=function(t){t=Math.max(t,i);for(var e,n,o,a,s=[],u=0;uthis.capacity()&&(t=Math.floor(t/this.max_load_factor_),this.rehash(t))},t.prototype.initialize=function(){for(var t=0;te&&this.reserve(2*e);var r=this.index(t);this.data_[r].push(t)},t.prototype.erase=function(t){for(var e=this.index(t),r=this.data_[e],n=0;n0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.MapHashBuckets=void 0;var s=function(t){function e(e,r,n){var i=t.call(this,u,r)||this;return i.source_=e,i.key_eq_=n,i}return i(e,t),e._Swap_source=function(t,e){var r;r=o([e.source_,t.source_],2),t.source_=r[0],e.source_=r[1]},e.prototype.key_eq=function(){return this.key_eq_},e.prototype.find=function(t){var e,r,n=this.hash_function()(t)%this.length(),i=this.at(n);try{for(var o=a(i),s=o.next();!s.done;s=o.next()){var u=s.value;if(this.key_eq_(u.first,t))return u}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return this.source_.end()},e}(r(83262).HashBuckets);function u(t){return t.first}e.MapHashBuckets=s},76245:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__values||function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.SetHashBuckets=void 0;var s=function(t){function e(e,r,n){var i=t.call(this,u,r)||this;return i.source_=e,i.key_eq_=n,i}return i(e,t),e._Swap_source=function(t,e){var r;r=o([e.source_,t.source_],2),t.source_=r[0],e.source_=r[1]},e.prototype.key_eq=function(){return this.key_eq_},e.prototype.find=function(t){var e,r,n=this.hash_function()(t)%this.length(),i=this.at(n);try{for(var o=a(i),s=o.next();!s.done;s=o.next()){var u=s.value;if(this.key_eq_(u.value,t))return u}}catch(t){e={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return this.source_.end()},e}(r(83262).HashBuckets);function u(t){return t.value}e.SetHashBuckets=s},6043:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayIterator=void 0;var o=r(71189),a=r(72040),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.reverse=function(){return new a.ArrayReverseIterator(this)},e.prototype.source=function(){return this._Get_array()},e}(o.ArrayIteratorBase);e.ArrayIterator=s},71189:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayIteratorBase=void 0;var n=r(29642),i=function(){function t(t,e){this.array_=t,this.index_=e}return t.prototype._Get_array=function(){return this.array_},t.prototype.index=function(){return this.index_},Object.defineProperty(t.prototype,"value",{get:function(){return this.array_.at(this.index_)},set:function(t){this.array_.set(this.index_,t)},enumerable:!1,configurable:!0}),t.prototype.prev=function(){return this.advance(-1)},t.prototype.next=function(){return this.advance(1)},t.prototype.advance=function(t){return this.array_.nth(this.index_+t)},t.prototype.equals=function(t){return(0,n.equal_to)(this.array_,t.array_)&&this.index_===t.index_},t}();e.ArrayIteratorBase=i},72040:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayReverseIterator=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype._Create_neighbor=function(t){return new e(t)},e}(r(84105).ArrayReverseIteratorBase);e.ArrayReverseIterator=o},84105:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayReverseIteratorBase=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.advance=function(t){return this._Create_neighbor(this.base().advance(-t))},e.prototype.index=function(){return this.base_.index()},Object.defineProperty(e.prototype,"value",{get:function(){return this.base_.value},set:function(t){this.base_.value=t},enumerable:!1,configurable:!0}),e}(r(68218).ReverseIterator);e.ArrayReverseIteratorBase=o},40060:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InsertIteratorBase=void 0;var r=function(){function t(){}return t.prototype.next=function(){return this},t}();e.InsertIteratorBase=r},4744:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ListIterator=void 0;var n=r(74155),i=function(){function t(t,e,r){this.prev_=t,this.next_=e,this.value_=r}return t._Set_prev=function(t,e){t.prev_=e},t._Set_next=function(t,e){t.next_=e},t.prototype.prev=function(){return this.prev_},t.prototype.next=function(){return this.next_},Object.defineProperty(t.prototype,"value",{get:function(){return this._Try_value(),this.value_},enumerable:!1,configurable:!0}),t.prototype._Try_value=function(){if(void 0===this.value_&&!0===this.equals(this.source().end()))throw n.ErrorGenerator.iterator_end_value(this.source())},t.prototype.equals=function(t){return this===t},t}();e.ListIterator=i},68218:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReverseIterator=void 0;var r=function(){function t(t){this.base_=t.prev()}return t.prototype.source=function(){return this.base_.source()},t.prototype.base=function(){return this.base_.next()},Object.defineProperty(t.prototype,"value",{get:function(){return this.base_.value},enumerable:!1,configurable:!0}),t.prototype.prev=function(){return this._Create_neighbor(this.base().next())},t.prototype.next=function(){return this._Create_neighbor(this.base_)},t.prototype.equals=function(t){return this.base_.equals(t.base_)},t}();e.ReverseIterator=r},3141:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ForOfAdaptor=void 0;var r=function(){function t(t,e){this.it_=t,this.last_=e}return t.prototype.next=function(){if(this.it_.equals(this.last_))return{done:!0,value:void 0};var t=this.it_;return this.it_=this.it_.next(),{done:!1,value:t.value}},t.prototype[Symbol.iterator]=function(){return this},t}();e.ForOfAdaptor=r},89907:function(t,e){"use strict";var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.NativeArrayIterator=void 0;var n=function(){function t(t,e){this.data_=t,this.index_=e}return t.prototype.index=function(){return this.index_},Object.defineProperty(t.prototype,"value",{get:function(){return this.data_[this.index_]},enumerable:!1,configurable:!0}),t.prototype.prev=function(){return--this.index_,this},t.prototype.next=function(){return++this.index_,this},t.prototype.advance=function(t){return this.index_+=t,this},t.prototype.equals=function(t){return this.data_===t.data_&&this.index_===t.index_},t.prototype.swap=function(t){var e,n;e=r([t.data_,this.data_],2),this.data_=e[0],t.data_=e[1],n=r([t.index_,this.index_],2),this.index_=n[0],t.index_=n[1]},t}();e.NativeArrayIterator=n},53038:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Repeater=void 0;var r=function(){function t(t,e){this.index_=t,this.value_=e}return t.prototype.index=function(){return this.index_},Object.defineProperty(t.prototype,"value",{get:function(){return this.value_},enumerable:!1,configurable:!0}),t.prototype.next=function(){return++this.index_,this},t.prototype.equals=function(t){return this.index_===t.index_},t}();e.Repeater=r},49439:function(t,e){"use strict";var r,n,i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.MathUtil=void 0,(r=e.MathUtil||(e.MathUtil={})).factorial=function(t){if(n.length<=t)for(var e=n.length;e<=t;++e)n.push(n[e-1]*e);return n[t]},r.integral=function(t,e,r,n){if(void 0===n&&(n=1e5),e>r)e=(o=i([r,e],2))[0],r=o[1];else if(e===r)return 0;for(var o,a=(r-e)/n,s=0;e0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.MapTree=void 0;var a=r(57520),s=r(79256),u=function(t){function e(e,r,n){var i=t.call(this,n)||this;return i.source_=e,i.key_compare_=r,i.key_eq_=function(t,e){return!r(t,e)&&!r(e,t)},i.value_compare_=function(t,e){return r(t.first,e.first)},i}return i(e,t),e._Swap_source=function(t,e){var r;r=o([e.source_,t.source_],2),t.source_=r[0],e.source_=r[1]},e.prototype.get_by_key=function(t){var e=this.nearest_by_key(t);return null!==e&&this.key_eq_(t,e.value.first)?e:null},e.prototype.lower_bound=function(t){var e=this.nearest_by_key(t);return null===e?this.source().end():this.key_comp()(e.value.first,t)?e.value.next():e.value},e.prototype.equal_range=function(t){return new s.Pair(this.lower_bound(t),this.upper_bound(t))},e.prototype.source=function(){return this.source_},e.prototype.key_comp=function(){return this.key_compare_},e.prototype.key_eq=function(){return this.key_eq_},e.prototype.value_comp=function(){return this.value_compare_},e}(a.XTree);e.MapTree=u},84365:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MultiMapTree=void 0;var o=r(99013),a=r(47052),s=function(t){function e(e,r){return t.call(this,e,r,function(t,e){var n=r(t.first,e.first);return n||r(e.first,t.first)?n:(0,a.get_uid)(t)<(0,a.get_uid)(e)})||this}return i(e,t),e.prototype.insert=function(e){(0,a.get_uid)(e),t.prototype.insert.call(this,e)},e.prototype._Nearest_by_key=function(t,e){if(null===this.root_)return null;for(var r=this.root_,n=null;;){var i=r.value,o=null;if(this.key_comp()(t,i.first)?o=r.left:this.key_comp()(i.first,t)?o=r.right:(n=r,o=e(r)),null===o)break;r=o}return null!==n?n:r},e.prototype.nearest_by_key=function(t){return this._Nearest_by_key(t,function(t){return t.left})},e.prototype.upper_bound=function(t){var e=this._Nearest_by_key(t,function(t){return t.right});if(null===e)return this.source().end();var r=e.value;return this.key_comp()(t,r.first)?r:r.next()},e}(o.MapTree);e.MultiMapTree=s},61412:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.MultiSetTree=void 0;var o=r(12613),a=r(47052),s=function(t){function e(e,r){return t.call(this,e,r,function(t,e){var n=r(t.value,e.value);return n||r(e.value,t.value)?n:(0,a.get_uid)(t)<(0,a.get_uid)(e)})||this}return i(e,t),e.prototype.insert=function(e){(0,a.get_uid)(e),t.prototype.insert.call(this,e)},e.prototype._Nearest_by_key=function(t,e){if(null===this.root_)return null;for(var r=this.root_,n=null;;){var i=r.value,o=null;if(this.key_comp()(t,i.value)?o=r.left:this.key_comp()(i.value,t)?o=r.right:(n=r,o=e(r)),null===o)break;r=o}return null!==n?n:r},e.prototype.nearest_by_key=function(t){return this._Nearest_by_key(t,function(t){return t.left})},e.prototype.upper_bound=function(t){var e=this._Nearest_by_key(t,function(t){return t.right});if(null===e)return this.source().end();var r=e.value;return this.key_comp()(t,r.value)?r:r.next()},e}(o.SetTree);e.MultiSetTree=s},12613:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.SetTree=void 0;var a=r(57520),s=r(79256),u=function(t){function e(e,r,n){var i=t.call(this,n)||this;return i.source_=e,i.key_comp_=r,i.key_eq_=function(t,e){return!r(t,e)&&!r(e,t)},i}return i(e,t),e._Swap_source=function(t,e){var r;r=o([e.source_,t.source_],2),t.source_=r[0],e.source_=r[1]},e.prototype.get_by_key=function(t){var e=this.nearest_by_key(t);return null!==e&&this.key_eq_(t,e.value.value)?e:null},e.prototype.lower_bound=function(t){var e=this.nearest_by_key(t);return null===e?this.source_.end():this.key_comp_(e.value.value,t)?e.value.next():e.value},e.prototype.equal_range=function(t){return new s.Pair(this.lower_bound(t),this.upper_bound(t))},e.prototype.source=function(){return this.source_},e.prototype.key_comp=function(){return this.key_comp_},e.prototype.key_eq=function(){return this.key_eq_},e.prototype.value_comp=function(){return this.key_comp_},e}(a.XTree);e.SetTree=u},94676:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.UniqueMapTree=void 0;var o=function(t){function e(e,r){return t.call(this,e,r,function(t,e){return r(t.first,e.first)})||this}return i(e,t),e.prototype.nearest_by_key=function(t){if(null===this.root_)return null;for(var e=this.root_;;){var r=e.value,n=null;if(this.key_comp()(t,r.first))n=e.left;else if(this.key_comp()(r.first,t))n=e.right;else break;if(null===n)break;e=n}return e},e.prototype.upper_bound=function(t){var e=this.nearest_by_key(t);if(null===e)return this.source().end();var r=e.value;return this.key_comp()(t,r.first)?r:r.next()},e}(r(99013).MapTree);e.UniqueMapTree=o},91890:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.UniqueSetTree=void 0;var o=function(t){function e(e,r){return t.call(this,e,r,function(t,e){return r(t.value,e.value)})||this}return i(e,t),e.prototype.nearest_by_key=function(t){if(null===this.root_)return null;for(var e=this.root_;;){var r=e.value,n=null;if(this.key_comp()(t,r.value))n=e.left;else if(this.key_comp()(r.value,t))n=e.right;else break;if(null===n)break;e=n}return e},e.prototype.upper_bound=function(t){var e=this.nearest_by_key(t);if(null===e)return this.source().end();var r=e.value;return this.key_comp()(t,r.value)?r:r.next()},e}(r(12613).SetTree);e.UniqueSetTree=o},57520:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XTree=void 0;var n=r(66243),i=function(){function t(t){this.root_=null,this.comp_=t,this.equal_=function(e,r){return!t(e,r)&&!t(r,e)}}return t.prototype.clear=function(){this.root_=null},t.prototype.root=function(){return this.root_},t.prototype.get=function(t){var e=this.nearest(t);return null!==e&&this.equal_(t,e.value)?e:null},t.prototype.nearest=function(t){if(null===this.root_)return null;for(var e=this.root_;;){var r=null;if(this.comp_(t,e.value))r=e.left;else if(this.comp_(e.value,t))r=e.right;else break;if(null!==r)e=r;else break}return e},t.prototype._Fetch_maximum=function(t){for(;null!==t.right;)t=t.right;return t},t.prototype.insert=function(t){var e=this.nearest(t),r=new n.XTreeNode(t,1);null===e?this.root_=r:(r.parent=e,this.comp_(r.value,e.value)?e.left=r:e.right=r),this._Insert_case1(r)},t.prototype._Insert_case1=function(t){null===t.parent?t.color=0:this._Insert_case2(t)},t.prototype._Insert_case2=function(t){0!==this._Fetch_color(t.parent)&&this._Insert_case3(t)},t.prototype._Insert_case3=function(t){1===this._Fetch_color(t.uncle)?(t.parent.color=0,t.uncle.color=0,t.grand.color=1,this._Insert_case1(t.grand)):this._Insert_case4(t)},t.prototype._Insert_case4=function(t){t===t.parent.right&&t.parent===t.grand.left?(this._Rotate_left(t.parent),t=t.left):t===t.parent.left&&t.parent===t.grand.right&&(this._Rotate_right(t.parent),t=t.right),this._Insert_case5(t)},t.prototype._Insert_case5=function(t){t.parent.color=0,t.grand.color=1,t===t.parent.left&&t.parent===t.grand.left?this._Rotate_right(t.grand):this._Rotate_left(t.grand)},t.prototype.erase=function(t){var e=this.get(t);if(null!==e){if(null!==e.left&&null!==e.right){var r=this._Fetch_maximum(e.left);e.value=r.value,e=r}var n=null===e.right?e.left:e.right;0===this._Fetch_color(e)&&(e.color=this._Fetch_color(n),this._Erase_case1(e)),this._Replace_node(e,n),1===this._Fetch_color(this.root_)&&(this.root_.color=0)}},t.prototype._Erase_case1=function(t){null!==t.parent&&this._Erase_case2(t)},t.prototype._Erase_case2=function(t){1===this._Fetch_color(t.sibling)&&(t.parent.color=1,t.sibling.color=0,t===t.parent.left?this._Rotate_left(t.parent):this._Rotate_right(t.parent)),this._Erase_case3(t)},t.prototype._Erase_case3=function(t){0===this._Fetch_color(t.parent)&&0===this._Fetch_color(t.sibling)&&0===this._Fetch_color(t.sibling.left)&&0===this._Fetch_color(t.sibling.right)?(t.sibling.color=1,this._Erase_case1(t.parent)):this._Erase_case4(t)},t.prototype._Erase_case4=function(t){1===this._Fetch_color(t.parent)&&null!==t.sibling&&0===this._Fetch_color(t.sibling)&&0===this._Fetch_color(t.sibling.left)&&0===this._Fetch_color(t.sibling.right)?(t.sibling.color=1,t.parent.color=0):this._Erase_case5(t)},t.prototype._Erase_case5=function(t){t===t.parent.left&&null!==t.sibling&&0===this._Fetch_color(t.sibling)&&1===this._Fetch_color(t.sibling.left)&&0===this._Fetch_color(t.sibling.right)?(t.sibling.color=1,t.sibling.left.color=0,this._Rotate_right(t.sibling)):t===t.parent.right&&null!==t.sibling&&0===this._Fetch_color(t.sibling)&&0===this._Fetch_color(t.sibling.left)&&1===this._Fetch_color(t.sibling.right)&&(t.sibling.color=1,t.sibling.right.color=0,this._Rotate_left(t.sibling)),this._Erase_case6(t)},t.prototype._Erase_case6=function(t){t.sibling.color=this._Fetch_color(t.parent),t.parent.color=0,t===t.parent.left?(t.sibling.right.color=0,this._Rotate_left(t.parent)):(t.sibling.left.color=0,this._Rotate_right(t.parent))},t.prototype._Rotate_left=function(t){var e=t.right;this._Replace_node(t,e),t.right=e.left,null!==e.left&&(e.left.parent=t),e.left=t,t.parent=e},t.prototype._Rotate_right=function(t){var e=t.left;this._Replace_node(t,e),t.left=e.right,null!==e.right&&(e.right.parent=t),e.right=t,t.parent=e},t.prototype._Replace_node=function(t,e){null===t.parent?this.root_=e:t===t.parent.left?t.parent.left=e:t.parent.right=e,null!==e&&(e.parent=t.parent)},t.prototype._Fetch_color=function(t){return null===t?0:t.color},t}();e.XTree=i},66243:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XTreeNode=void 0;var r=function(){function t(t,e){this.value=t,this.color=e,this.parent=null,this.left=null,this.right=null}return Object.defineProperty(t.prototype,"grand",{get:function(){return this.parent.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sibling",{get:function(){return this===this.parent.left?this.parent.right:this.parent.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uncle",{get:function(){return this.parent.sibling},enumerable:!1,configurable:!0}),t}();e.XTreeNode=r},63307:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.BackInsertIterator=void 0;var o=r(40060),a=r(29642),s=function(t){function e(e){var r=t.call(this)||this;return r.source_=e,r}return i(e,t),Object.defineProperty(e.prototype,"value",{set:function(t){this.source_.push_back(t)},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return(0,a.equal_to)(this.source_,t.source_)},e}(o.InsertIteratorBase);e.BackInsertIterator=s},1221:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.FrontInsertIterator=void 0;var o=r(40060),a=r(29642),s=function(t){function e(e){var r=t.call(this)||this;return r.source_=e,r}return i(e,t),Object.defineProperty(e.prototype,"value",{set:function(t){this.source_.push_front(t)},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return(0,a.equal_to)(this.source_,t.source_)},e}(o.InsertIteratorBase);e.FrontInsertIterator=s},79024:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},41678:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},25801:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},86934:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},16237:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},49467:function(t,e,r){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.InsertIterator=void 0;var o=r(40060),a=r(29642),s=function(t){function e(e,r){var n=t.call(this)||this;return n.container_=e,n.it_=r,n}return i(e,t),Object.defineProperty(e.prototype,"value",{set:function(t){this.it_=this.container_.insert(this.it_,t),this.it_=this.it_.next()},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return(0,a.equal_to)(this.it_,t.it_)},e}(o.InsertIteratorBase);e.InsertIterator=s},46419:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.back_inserter=e.front_inserter=e.inserter=e.make_reverse_iterator=e.rend=e.rbegin=e.end=e.begin=void 0;var n=r(49467),i=r(1221),o=r(63307),a=r(4857);e.begin=function(t){return t instanceof Array&&(t=a.Vector.wrap(t)),t.begin()},e.end=function(t){return t instanceof Array&&(t=a.Vector.wrap(t)),t.end()},e.rbegin=function(t){return t instanceof Array&&(t=a.Vector.wrap(t)),t.rbegin()},e.rend=function(t){return t instanceof Array&&(t=a.Vector.wrap(t)),t.rend()},e.make_reverse_iterator=function(t){return t.reverse()},e.inserter=function(t,e){return new n.InsertIterator(t,e)},e.front_inserter=function(t){return new i.FrontInsertIterator(t)},e.back_inserter=function(t){return t instanceof Array&&(t=a.Vector.wrap(t)),new o.BackInsertIterator(t)}},83116:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.next=e.prev=e.advance=e.distance=e.size=e.empty=void 0;var n=r(4705);function i(t,e){var r;if(0===e)return t;if(t.advance instanceof Function)return t.advance(e);if(e<0){if(!(t.prev instanceof Function))throw new n.InvalidArgument("Error on std.advance(): parametric iterator is not a bi-directional iterator, thus advancing to negative direction is not possible.");r=function(t){return t.prev()},e=-e}else r=function(t){return t.next()};for(;e-- >0;)t=r(t);return t}e.empty=function(t){return t instanceof Array?0!==t.length:t.empty()},e.size=function(t){return t instanceof Array?t.length:t.size()},e.distance=function(t,e){if(t.index instanceof Function){var r,n,i;return n=(r=t).index(),i=e.index(),r.base instanceof Function?n-i:i-n}for(var o=0;!t.equals(e);t=t.next())++o;return o},e.advance=i,e.prev=function(t,e){return(void 0===e&&(e=1),1===e)?t.prev():i(t,-e)},e.next=function(t,e){return(void 0===e&&(e=1),1===e)?t.next():i(t,e)}},9294:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(41678),e),i(r(79024),e),i(r(25801),e),i(r(16237),e),i(r(86934),e),i(r(49467),e),i(r(1221),e),i(r(63307),e),i(r(46419),e),i(r(83116),e)},17871:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},a=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.ranges=e.experimental=e.base=void 0;var s=o(r(89022));e.base=s;var u=o(r(69549));e.experimental=u;var l=o(r(47618));e.ranges=l,a(r(91624),e),a(r(9294),e),a(r(6859),e),a(r(79137),e),a(r(18881),e),a(r(52939),e),a(r(4752),e),a(r(31625),e)},29210:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},52939:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(83577),e),i(r(96022),e),i(r(54241),e),i(r(29210),e)},96022:function(t,e,r){"use strict";var n=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(e,"__esModule",{value:!0}),e.transform_exclusive_scan=e.transform_inclusive_scan=e.exclusive_scan=e.inclusive_scan=e.partial_sum=e.adjacent_difference=e.inner_product=e.accumulate=e.iota=e.lcm=e.gcd=void 0;var i=r(83577);function o(t,e){var r;for(e=e.valueOf();0!==e;)t=(r=n([e,t%e],2))[0],e=r[1];return t}function a(t,e,r,i,o,a){var s,u;if(t.equals(e))return r;for(t=(s=n(l(t,r,o,a),3))[0],r=s[1],u=s[2];!t.equals(e);t=t.next())u=i(u,o(t.value)),r.value=u,r=r.next();return r}function s(t,e,r,i,o,a){if(t.equals(e))return r;var s,u,c=a(t.value);for(t=(s=n(l(t,r,a,i),3))[0],r=s[1],u=s[2];!t.equals(e);t=t.next())u=o(c,u),c=a(t.value),r.value=u,r=r.next();return r}function u(t,e,r){return l(t,e,function(t){return t},r)}function l(t,e,r,n){var i=r(void 0===n?t.value:n);return e.value=i,[t.next(),e.next(),i]}e.gcd=o,e.lcm=function(t,e){return t*e/o(t,e)},e.iota=function(t,e,r){for(;!t.equals(e);t=t.next())t.value=r++},e.accumulate=function(t,e,r,n){for(void 0===n&&(n=i.plus);!t.equals(e);t=t.next())r=n(r,t.value);return r},e.inner_product=function(t,e,r,n,o,a){for(void 0===o&&(o=i.plus),void 0===a&&(a=i.multiplies);!t.equals(e);t=t.next())n=o(n,a(t.value,r.value)),r=r.next();return n},e.adjacent_difference=function(t,e,r,o){var a,s;if(void 0===o&&(o=i.minus),t.equals(e))return r;for(t=(a=n(u(t,r),3))[0],r=a[1],s=a[2];!t.equals(e);t=t.next())r.value=o(t.value,s),s=t.value,r=r.next();return r},e.partial_sum=function(t,e,r,o){var a,s;if(void 0===o&&(o=i.plus),t.equals(e))return r;for(t=(a=n(u(t,r),3))[0],r=a[1],s=a[2];!t.equals(e);t=t.next())s=o(s,t.value),r.value=s,r=r.next();return r},e.inclusive_scan=function(t,e,r,n,o){return void 0===n&&(n=i.plus),a(t,e,r,n,function(t){return t},o)},e.exclusive_scan=function(t,e,r,n,o){return void 0===o&&(o=i.plus),s(t,e,r,n,o,function(t){return t})},e.transform_inclusive_scan=a,e.transform_exclusive_scan=s},83577:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.modules=e.divides=e.multiplies=e.negate=e.minus=e.plus=void 0,e.plus=function(t,e){return t.plus instanceof Function?t.plus(e):t+e},e.minus=function(t,e){return t.minus instanceof Function?t.minus(e):t-e},e.negate=function(t){return t.negate instanceof Function?t.negate():-t},e.multiplies=function(t,e){return t.multiplies instanceof Function?t.multiplies(e):t*e},e.divides=function(t,e){return t.divides instanceof Function?t.divides(e):t/e},e.modules=function(t,e){return t.modules instanceof Function?t.modules(e):t%e}},12891:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cyl_bessel_k=e.cyl_bessel_i=e.sph_neumann=e.sph_bessel=e.cyl_neumann=e.cyl_bessel_j=void 0;var n=r(49439),i=r(4705),o=r(37133);function a(t,e){if(e<0&&Math.floor(t)!==t)throw new i.InvalidArgument("Error on std.cyl_bessel_j(): n must be integer when x is negative -> (n = ".concat(t,", x = ").concat(e,")."));if(0===e&&0!==t)throw new i.InvalidArgument("Error on std.cyl_bessel_j(): n must be zero when x is zero -> (n = ".concat(t,", x = ").concat(e,")."));return t===Math.floor(t)&&t<0?Math.pow(-1,t)*u(-t,e):u(t,e)}function s(t,e){if(e<=0)throw new i.InvalidArgument("Error on std.cyl_neumann(): x must be greater than zero -> (x = ".concat(e,")."));return(a(t,e)*Math.cos(t*Math.PI)-a(-t,e))/Math.sin(t*Math.PI)}function u(t,e){return n.MathUtil.sigma(function(r){return Math.pow(-1,r)*Math.pow(e/2,t+2*r)/(n.MathUtil.factorial(r)*(0,o.tgamma)(t+r+1))},0,100)}function l(t,e){if(e<0&&Math.floor(t)!==t)throw new i.InvalidArgument("Error on std.cyl_bessel_i(): n must be integer when x is negative -> (n = ".concat(t,", x = ").concat(e,")."));if(0===e&&0!==t)throw new i.InvalidArgument("Error on std.cyl_bessel_i(): n must be zero when x is zero -> (n = ".concat(t,", x = ").concat(e,")."));return .5===t?Math.sqrt(2/(Math.PI*e))*Math.sinh(e):n.MathUtil.sigma(function(r){return Math.pow(e/2,t+2*r)/(n.MathUtil.factorial(r)*(0,o.tgamma)(t+r+1))},0,100)}e.cyl_bessel_j=a,e.cyl_neumann=s,e.sph_bessel=function(t,e){return Math.sqrt(Math.PI/(2*e))*a(t+.5,e)},e.sph_neumann=function(t,e){return Math.sqrt(Math.PI/(2*e))*s(t+.5,e)},e.cyl_bessel_i=l,e.cyl_bessel_k=function(t,e){if(e<=0)throw new i.InvalidArgument("Error on std.cyl_bessel_k(): requires x > 0 -> (x = ".concat(e,")."));return Math.PI/2*(l(-t,e)-l(t,e))/Math.sin(t*Math.PI)}},17163:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.beta=void 0;var n=r(37133);e.beta=function(t,e){return(0,n.tgamma)(t)*(0,n.tgamma)(e)/(0,n.tgamma)(t+e)}},3483:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.comp_ellint_3=e.ellint_3=e.comp_ellint_2=e.ellint_2=e.comp_ellint_1=e.ellint_1=void 0;var n=r(49439),i=r(4705);function o(t,e){return l("ellint_1",t,e,function(e){return 1/u(t,e)})}function a(t,e){return l("ellint_2",t,e,function(e){return u(t,e)})}function s(t,e,r){var n=1/Math.pow(Math.sin(r),2);if(e>n)throw new i.InvalidArgument("Error on std.ellint_3(): must be v < (1 / sin^2(phi)) -> (v = ".concat(e,", 1 / sin^2(phi) = ").concat(n,")."));return l("ellint_3",t,r,function(r){var n=1-e*Math.pow(Math.sin(r),2);return 1/(n*=u(t,r))})}function u(t,e){return Math.sqrt(1-Math.pow(t*Math.sin(e),2))}function l(t,e,r,o){if(Math.abs(e)>1)throw new i.InvalidArgument("Error on std.".concat(t,"(): must be |k| <= 1 -> (k = ").concat(e,")."));var a=n.MathUtil.integral(o,0,r);return r<0?-a:a}e.ellint_1=o,e.comp_ellint_1=function(t){return o(t,Math.PI/2)},e.ellint_2=a,e.comp_ellint_2=function(t){return a(t,Math.PI/2)},e.ellint_3=s,e.comp_ellint_3=function(t,e){return s(t,e,Math.PI/2)}},54854:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expint=void 0;var n=r(49439);e.expint=function(t){var e,r,l,c,f,p;return 0===t?-1/0:t<0?-(l=20/47*Math.pow(r=e=-t,Math.sqrt(31/26)),c=1/(1+Math.pow(r,1.5))+u*l/(1+l),f=a+(1-a)*Math.pow(Math.E,-e/(1-a)),(f=Math.pow(Math.E,-e)/f)*(Math.log(1+a/e-(1-a)/Math.pow(c+s*e,2))/Math.log(Math.E))):i+Math.log(Math.abs(t))/Math.log(Math.E)+n.MathUtil.sigma(function(e){return Math.pow(t,e)/(e*n.MathUtil.factorial(e))},1,o)};var i=.5772156649015329,o=150,a=.5614594835668851,s=Math.sqrt(2*.43854051643311487/.8076822154465769),u=.43854051643311487*(.31523675168719334-3.368756901401311+12)/(3.4856507739670834*s)},37133:function(t,e){"use strict";function r(t){if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*r(1-t));for(var e=n[0],o=(t-=1)+i+.5,a=1;a (n = ".concat(t,")."));return function t(e,r,n){if(n.length>e)return n[e];var i=t(e-1,r,n),o=t(e-2,r,n),a=r*i-(e-1)*o;return a*=2,n[e]=a,a}(t,e,[1,2*e])}},54241:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(17163),e),i(r(37133),e),i(r(12891),e),i(r(3483),e),i(r(54854),e),i(r(54435),e),i(r(17321),e),i(r(22650),e),i(r(46210),e)},22650:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assoc_laguerre=e.laguerre=void 0;var n=r(4705);function i(t,e,r){if((t=Math.floor(t))<0||(e=Math.floor(e))<0)throw new n.InvalidArgument("Error on std.assoc_laguerre(): both n and m must be unsigned integer -> (n = ".concat(t,", m = ").concat(e,")."));var i=[1,-r+e+1];return function t(e,r,n,i){if(i.length>e)return i[e];var o=t(e-1,r,n,i),a=t(e-2,r,n,i),s=(2*e-1+r-n)*o-(e+r-1)*a;return s/=e,i[e]=s,s}(t,e,r,i)}e.laguerre=function(t,e){return i(t,0,e)},e.assoc_laguerre=i},17321:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assoc_legendre=e.legendre=void 0;var n=r(4705);function i(t,e,r){if((t=Math.floor(t))<0||(e=Math.floor(e))<0)throw new n.InvalidArgument("Error on std.assoc_legendre(): both n and m must be unsigned integer -> (n = ".concat(t,", m = ").concat(e,")."));if(Math.abs(r)>1)throw new n.InvalidArgument("Error on std.assoc_legendre(): must be |x| <= 1 -> (x = ".concat(r,")."));var i=[[1,r]];i.length=e+1;for(var o=1;oe)return n[e];var i=t(e-1,r,n),o=t(e-2,r,n),a=(2*e-1)*r*i-(e-1)*o;return a/=e,n[e]=a,a}(e,n,i[0]);if(i[r].length>e&&void 0!==i[r][e])return i[r][e];var o=((e-r+1)*(e-r+2)*t(e+1,r-1,n,i)-(e+r-1)*(e+r)*t(e-1,r-1,n,i))/(2*e+1);return o/=Math.sqrt(1-n*n),i[r][e]=o,o}(t,e,r,i)}e.legendre=function(t,e){return i(t,0,e)},e.assoc_legendre=i},46210:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.riemann_zeta=void 0;var n=r(49439),i=r(37133);e.riemann_zeta=function t(e){return e<0?Math.pow(2,e)*Math.pow(Math.PI,e-1)*Math.sin(Math.PI*e/2)*(0,i.tgamma)(1-e)*t(1-e):0===e?-.5:e<1?n.MathUtil.sigma(function(t){return Math.pow(-1,t-1)*Math.pow(t,-e)},1,o)/(1-Math.pow(2,1-e)):1===e?1/0:n.MathUtil.sigma(function(t){return Math.pow(t,-e)},1,o)};var o=1e5},30429:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.binary_search=e.equal_range=e.upper_bound=e.lower_bound=void 0;var a=o(r(25203)),s=r(46419),u=r(29642);e.lower_bound=function(t,e,r){return void 0===r&&(r=u.less),a.lower_bound((0,s.begin)(t),(0,s.end)(t),e,r)},e.upper_bound=function(t,e,r){return void 0===r&&(r=u.less),a.upper_bound((0,s.begin)(t),(0,s.end)(t),e,r)},e.equal_range=function(t,e,r){return void 0===r&&(r=u.less),a.equal_range((0,s.begin)(t),(0,s.end)(t),e,r)},e.binary_search=function(t,e,r){return void 0===r&&(r=u.less),a.binary_search((0,s.begin)(t),(0,s.end)(t),e,r)}},84910:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.sort_heap=e.is_heap_until=e.is_heap=e.pop_heap=e.push_heap=e.make_heap=void 0;var a=o(r(11877)),s=r(46419),u=r(29642);e.make_heap=function(t,e){return void 0===e&&(e=u.less),a.make_heap((0,s.begin)(t),(0,s.end)(t),e)},e.push_heap=function(t,e){return void 0===e&&(e=u.less),a.push_heap((0,s.begin)(t),(0,s.end)(t),e)},e.pop_heap=function(t,e){return void 0===e&&(e=u.less),a.pop_heap((0,s.begin)(t),(0,s.end)(t),e)},e.is_heap=function(t,e){return void 0===e&&(e=u.less),a.is_heap((0,s.begin)(t),(0,s.end)(t),e)},e.is_heap_until=function(t,e){return void 0===e&&(e=u.less),a.is_heap_until((0,s.begin)(t),(0,s.end)(t),e)},e.sort_heap=function(t,e){return void 0===e&&(e=u.less),a.sort_heap((0,s.begin)(t),(0,s.end)(t),e)}},34544:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(30429),e),i(r(84910),e),i(r(34241),e),i(r(68768),e),i(r(81895),e),i(r(24694),e),i(r(77563),e),i(r(89380),e),i(r(28214),e)},34241:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.count_if=e.count=e.mismatch=e.search_n=e.search=e.adjacent_find=e.find_first_of=e.find_end=e.find_if_not=e.find_if=e.find=e.lexicographical_compare=e.equal=e.none_of=e.any_of=e.all_of=e.for_each_n=e.for_each=void 0;var a=o(r(83477)),s=r(79256),u=r(46419),l=r(83116),c=r(29642);e.for_each=function(t,e){return a.for_each((0,u.begin)(t),(0,u.end)(t),e)},e.for_each_n=function(t,e,r){return a.for_each_n((0,u.begin)(t),e,r)},e.all_of=function(t,e){return a.all_of((0,u.begin)(t),(0,u.end)(t),e)},e.any_of=function(t,e){return a.any_of((0,u.begin)(t),(0,u.end)(t),e)},e.none_of=function(t,e){return a.none_of((0,u.begin)(t),(0,u.end)(t),e)},e.equal=function(t,e,r){return void 0===r&&(r=c.equal_to),(0,l.size)(t)===(0,l.size)(e)&&a.equal((0,u.begin)(t),(0,u.end)(t),(0,u.begin)(e),r)},e.lexicographical_compare=function(t,e,r){return void 0===r&&(r=c.less),a.lexicographical_compare((0,u.begin)(t),(0,u.end)(t),(0,u.begin)(e),(0,u.end)(e),r)},e.find=function(t,e){return a.find((0,u.begin)(t),(0,u.end)(t),e)},e.find_if=function(t,e){return a.find_if((0,u.begin)(t),(0,u.end)(t),e)},e.find_if_not=function(t,e){return a.find_if_not((0,u.begin)(t),(0,u.end)(t),e)},e.find_end=function(t,e,r){return void 0===r&&(r=c.equal_to),a.find_end((0,u.begin)(t),(0,u.end)(t),(0,u.begin)(e),(0,u.end)(e),r)},e.find_first_of=function(t,e,r){return void 0===r&&(r=c.equal_to),a.find_first_of((0,u.begin)(t),(0,u.end)(t),(0,u.begin)(e),(0,u.end)(e),r)},e.adjacent_find=function(t,e){return void 0===e&&(e=c.equal_to),a.adjacent_find((0,u.begin)(t),(0,u.end)(t),e)},e.search=function(t,e,r){return void 0===r&&(r=c.equal_to),a.search((0,u.begin)(t),(0,u.end)(t),(0,u.begin)(e),(0,u.end)(e),r)},e.search_n=function(t,e,r,n){return void 0===n&&(n=c.equal_to),a.search_n((0,u.begin)(t),(0,u.end)(t),e,r,n)},e.mismatch=function(t,e,r){if(void 0===r&&(r=c.equal_to),(0,l.size)(t)===(0,l.size)(e))return a.mismatch((0,u.begin)(t),(0,u.end)(t),(0,u.begin)(e),r);for(var n=Math.min((0,l.size)(t),(0,l.size)(e)),i=(0,u.begin)(t),o=(0,u.begin)(e),f=0;f0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.ConditionVariable=void 0;var a=r(32484),s=r(74810),u=function(){function t(){this.resolvers_=new a.List}return t.prototype.wait=function(t){return n(this,void 0,void 0,function(){return i(this,function(e){switch(e.label){case 0:if(t)return[3,2];return[4,this._Wait()];case 1:return[2,e.sent()];case 2:return[4,t()];case 3:if(e.sent())return[3,5];return[4,this._Wait()];case 4:return e.sent(),[3,2];case 5:return[2]}})})},t.prototype.wait_for=function(t,e){var r=new Date(Date.now()+t);return this.wait_until(r,e)},t.prototype.wait_until=function(t,e){return n(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:if(e)return[3,2];return[4,this._Wait_until(t)];case 1:case 5:return[2,r.sent()];case 2:return[4,e()];case 3:if(r.sent())return[3,7];return[4,this._Wait_until(t)];case 4:if(r.sent())return[3,6];return[4,e()];case 6:return[3,2];case 7:return[2,!0]}})})},t.prototype._Wait=function(){var t=this;return new Promise(function(e){t.resolvers_.push_back({handler:e,lockType:0})})},t.prototype._Wait_until=function(t){var e=this;return new Promise(function(r){var n=e.resolvers_.insert(e.resolvers_.end(),{handler:r,lockType:1});(0,s.sleep_until)(t).then(function(){!0!==n.erased_&&(e.resolvers_.erase(n),r(!1))})})},t.prototype.notify_one=function(){return n(this,void 0,void 0,function(){var t;return i(this,function(e){return this.resolvers_.empty()||(t=this.resolvers_.begin(),this.resolvers_.erase(t),0===t.value.lockType?t.value.handler():t.value.handler(!0)),[2]})})},t.prototype.notify_all=function(){return n(this,void 0,void 0,function(){var t,e,r,n,a,s;return i(this,function(i){if(this.resolvers_.empty())return[2];t=this.resolvers_.toJSON(),this.resolvers_.clear();try{for(r=(e=o(t)).next();!r.done;r=e.next())n=r.value,0===n.lockType?n.handler():n.handler(!0)}catch(t){a={error:t}}finally{try{r&&!r.done&&(s=e.return)&&s.call(e)}finally{if(a)throw a.error}}return[2]})})},t}();e.ConditionVariable=u},14512:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.Semaphore=void 0;var l=r(32484),c=r(4705),f=r(86125),p=r(74810),d=function(){function t(t){this.queue_=new l.List,this.acquiring_=0,this.max_=t}return t.prototype.max=function(){return this.max_},t.prototype.acquire=function(){var t=this;return new Promise(function(e){t.acquiring_ (n = ".concat(t,")."));if(t>this.max_)throw new f.OutOfRange("Error on std.Semaphore.release(): parametric n is greater than max -> (n = ".concat(t,", max = ").concat(this.max_,")."));if(t>this.acquiring_)throw new f.OutOfRange("Error on std.Semaphore.release(): parametric n is greater than acquiring -> (n = ".concat(t,", acquiring = ").concat(this.acquiring_,")."));for(e=[];!1===this.queue_.empty()&&e.length0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:!0}),e.SharedTimedMutex=void 0;var s=r(32484),u=r(4705),l=r(74810),c=function(){function t(t){void 0===t&&(t=null),this.source_=null!==t?t:this,this.queue_=new s.List,this.writing_=0,this.reading_=0}return t.prototype._Current_access_type=function(){return this.queue_.empty()?null:this.queue_.front().accessType},t.prototype.lock=function(){var t=this;return new Promise(function(e){var r={handler:0==t.writing_++&&0===t.reading_?null:e,accessType:0,lockType:0};t.queue_.push_back(r),null===r.handler&&e()})},t.prototype.try_lock=function(){return i(this,void 0,void 0,function(){return o(this,function(t){return 0!==this.writing_||0!==this.reading_?[2,!1]:(this.queue_.push_back({handler:null,accessType:0,lockType:1}),++this.writing_,[2,!0])})})},t.prototype.try_lock_for=function(t){var e=this;return new Promise(function(r){var n=e.queue_.insert(e.queue_.end(),{handler:0==e.writing_++&&0===e.reading_?null:r,accessType:0,lockType:1});null===n.value.handler?r(!0):(0,l.sleep_for)(t).then(function(){null!==n.value.handler&&(--e.writing_,e._Cancel(n))})})},t.prototype.try_lock_until=function(t){return i(this,void 0,void 0,function(){var e,r;return o(this,function(n){switch(n.label){case 0:return e=new Date,r=t.getTime()-e.getTime(),[4,this.try_lock_for(r)];case 1:return[2,n.sent()]}})})},t.prototype.unlock=function(){return i(this,void 0,void 0,function(){return o(this,function(t){if(0!==this._Current_access_type())throw new u.InvalidArgument("Error on std.".concat(this.source_.constructor.name,".unlock(): this mutex is free on the unique lock."));return--this.writing_,this.queue_.pop_front(),this._Release(),[2]})})},t.prototype.lock_shared=function(){var t=this;return new Promise(function(e){var r={handler:0===t.writing_?null:e,accessType:1,lockType:0};t.queue_.push_back(r),++t.reading_,null===r.handler&&e()})},t.prototype.try_lock_shared=function(){return i(this,void 0,void 0,function(){return o(this,function(t){return 0!==this.writing_?[2,!1]:(++this.reading_,this.queue_.push_back({handler:null,accessType:1,lockType:1}),[2,!0])})})},t.prototype.try_lock_shared_for=function(t){var e=this;return new Promise(function(r){var n=e.queue_.insert(e.queue_.end(),{handler:0===e.writing_?null:r,accessType:1,lockType:1});++e.reading_,null===n.value.handler?r(!0):(0,l.sleep_for)(t).then(function(){null!==n.value.handler&&(--e.reading_,e._Cancel(n))})})},t.prototype.try_lock_shared_until=function(t){return i(this,void 0,void 0,function(){var e,r;return o(this,function(n){switch(n.label){case 0:return e=new Date,r=t.getTime()-e.getTime(),[4,this.try_lock_shared_for(r)];case 1:return[2,n.sent()]}})})},t.prototype.unlock_shared=function(){return i(this,void 0,void 0,function(){return o(this,function(t){if(1!==this._Current_access_type())throw new u.InvalidArgument("Error on std.".concat(this.source_.constructor.name,".unlock_shared(): this mutex is free on the shared lock."));return--this.reading_,this.queue_.pop_front(),this._Release(),[2]})})},t.prototype._Release=function(){var t,e,r,i,o=this._Current_access_type(),s=[];try{for(var u=a(this.queue_),l=u.next();!l.done;l=u.next()){var c=l.value;if(c.accessType!==o||(null!==c.handler&&(s.push(n({},c)),c.handler=null),0===c.accessType))break}}catch(e){t={error:e}}finally{try{l&&!l.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}try{for(var f=a(s),p=f.next();!p.done;p=f.next()){var c=p.value;0===c.lockType?c.handler():c.handler(!0)}}catch(t){r={error:t}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}},t.prototype._Cancel=function(t){this.queue_.erase(t);var e=t.value.handler;t.value.handler=null;var r=t.prev();!1===r.equals(this.queue_.end())&&null===r.value.handler&&this._Release(),e(!1)},t}();e.SharedTimedMutex=c},34340:function(t,e){"use strict";var r=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i=this.expired_at_&&(this.expired_at_=Date.now()+this.interval_,this.value_=this.closure_.apply(this,n([],r(t),!1))),this.value_},t}();e.TimedSingleton=i},10300:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UniqueLock=void 0;var n,i=r(43431),o=function(){};e.UniqueLock=o,(n=o=e.UniqueLock||(e.UniqueLock={})).lock=function(t,e){return i.SafeLock.lock(function(){return t.lock()},function(){return t.unlock()},e)},n.try_lock=function(t,e){return i.SafeLock.try_lock(function(){return t.try_lock()},function(){return t.unlock()},e)},n.try_lock_for=function(t,e,r){return i.SafeLock.try_lock(function(){return t.try_lock_for(e)},function(){return t.unlock()},r)},n.try_lock_until=function(t,e,r){return i.SafeLock.try_lock(function(){return t.try_lock_until(e)},function(){return t.unlock()},r)},e.UniqueLock=o},87726:function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(a,s)}u((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function o(t){return new Promise(function(e){setTimeout(e,t)})}Object.defineProperty(e,"__esModule",{value:!0}),e.try_lock=e.lock=e.sleep_until=e.sleep_for=void 0,e.sleep_for=o,e.sleep_until=function(t){var e=new Date;return o(t.getTime()-e.getTime())},e.lock=function(){for(var t=[],e=0;e3?(i=h===n)&&(s=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=d&&((i=t<2&&dn||n>h)&&(o[4]=t,o[5]=n,p.n=h,a=0))}if(i||t>1)return l;throw f=!0,n}return function(i,c,h){if(u>1)throw TypeError("Generator is already running");for(f&&1===c&&d(c,h),a=c,s=h;(r=a<2?e:s)||!f;){o||(a?a<3?(a>1&&(p.n=-1),d(a,s)):p.n=s:p.v=s);try{if(u=2,o){if(a||(i="next"),r=o[i]){if(!(r=r.call(o,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,a<2&&(a=0)}else 1===a&&(r=o.return)&&r.call(o),a<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),a=1);o=e}else if((r=(f=p.n<0)?s:t.call(n,p))!==l)break}catch(t){o=e,a=1,s=t}finally{u=1}}return{value:r,done:f}}}(t,o,a),!0),s}var l={};function c(){}function f(){}function p(){}r=Object.getPrototypeOf;var d=[][a]?r(r([][a]())):(n(r={},a,function(){return this}),r),h=p.prototype=c.prototype=Object.create(d);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,n(t,s,"GeneratorFunction")),t.prototype=Object.create(h),t}return f.prototype=p,n(h,"constructor",p),n(p,"constructor",f),f.displayName="GeneratorFunction",n(p,s,"GeneratorFunction"),n(h),n(h,s,"Generator"),n(h,a,function(){return this}),n(h,"toString",function(){return"[object Generator]"}),(t.exports=i=function(){return{w:u,m:y}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},89440:function(t,e,r){var n=r(54430);t.exports=function(t,e,r,i,o){var a=n(t,e,r,i,o);return a.next().then(function(t){return t.done?t.value:a.next()})},t.exports.__esModule=!0,t.exports.default=t.exports},54430:function(t,e,r){var n=r(62856),i=r(66252);t.exports=function(t,e,r,o,a){return new i(n().w(t,e,r,o),a||Promise)},t.exports.__esModule=!0,t.exports.default=t.exports},66252:function(t,e,r){var n=r(89429),i=r(52324);t.exports=function t(e,r){var o;this.next||(i(t.prototype),i(t.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),i(this,"_invoke",function(t,i,a){function s(){return new r(function(i,o){(function t(i,o,a,s){try{var u=e[i](o),l=u.value;return l instanceof n?r.resolve(l.v).then(function(e){t("next",e,a,s)},function(e){t("throw",e,a,s)}):r.resolve(l).then(function(t){u.value=t,a(u)},function(e){return t("throw",e,a,s)})}catch(t){s(t)}})(t,a,i,o)})}return o=o?o.then(s,s):s()},!0)},t.exports.__esModule=!0,t.exports.default=t.exports},52324:function(t){function e(r,n,i,o){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}t.exports=e=function(t,r,n,i){function o(r,n){e(t,r,function(t){return this._invoke(r,n,t)})}r?a?a(t,r,{value:n,enumerable:!i,configurable:!i,writable:!i}):t[r]=n:(o("next",0),o("throw",1),o("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n,i,o)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},58980:function(t){t.exports=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},t.exports.__esModule=!0,t.exports.default=t.exports},89303:function(t,e,r){var n=r(89429),i=r(62856),o=r(89440),a=r(54430),s=r(66252),u=r(58980),l=r(24528);function c(){"use strict";var e=i(),r=e.m(c),f=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function p(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))}var d={throw:1,return:2,break:3,continue:3};function h(t){var e,r;return function(n){e||(e={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(t,e){return r(n.a,d[t],e)},delegateYield:function(t,i,o){return e.resultName=i,r(n.d,l(t),o)},finish:function(t){return r(n.f,t)}},r=function(t,r,i){n.p=e.prev,n.n=e.next;try{return t(r,i)}finally{e.next=n.n}}),e.resultName&&(e[e.resultName]=n.v,e.resultName=void 0),e.sent=n.v,e.next=n.n;try{return t.call(this,e)}finally{n.p=e.prev,n.n=e.next}}}return(t.exports=c=function(){return{wrap:function(t,r,n,i){return e.w(h(t),r,n,i&&i.reverse())},isGeneratorFunction:p,mark:e.m,awrap:function(t,e){return new n(t,e)},AsyncIterator:s,async:function(t,e,r,n,i){return(p(e)?a:o)(h(t),e,r,n,i)},keys:u,values:l}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports},24528:function(t,e,r){var n=r(21551).default;t.exports=function(t){if(null!=t){var e=t["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}throw TypeError(n(t)+" is not iterable")},t.exports.__esModule=!0,t.exports.default=t.exports},46925:function(t,e,r){var n=r(21551).default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},2199:function(t,e,r){var n=r(21551).default,i=r(46925);t.exports=function(t){var e=i(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},21551:function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},33184:function(t,e){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t="",e=0;e"boolean"==typeof t?"".concat(t):0===t?"0":t,o=n.Z,a=(t,e)=>r=>{var n;if((null==e?void 0:e.variants)==null)return o(t,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:s}=e,u=Object.keys(a).map(t=>{let e=null==r?void 0:r[t],n=null==s?void 0:s[t];if(null===e)return null;let o=i(e)||i(n);return a[t][o]}),l=r&&Object.entries(r).reduce((t,e)=>{let[r,n]=e;return void 0===n||(t[r]=n),t},{});return o(t,u,null==e?void 0:null===(n=e.compoundVariants)||void 0===n?void 0:n.reduce((t,e)=>{let{class:r,className:n,...i}=e;return Object.entries(i).every(t=>{let[e,r]=t;return Array.isArray(r)?r.includes({...s,...l}[e]):({...s,...l})[e]===r})?[...t,r,n]:t},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},97832:function(t,e,r){"use strict";r.d(e,{default:function(){return o}});var n=r(12856),i=r(26657);function o(t){let{locale:e,...r}=t;if(!e)throw Error(void 0);return(0,i.jsx)(n.Pj,{locale:e,...r})}},17257:function(t,e,r){"use strict";r.d(e,{SV:function(){return a}});var n=r(15312);let i=(0,n.createContext)(null),o={didCatch:!1,error:null};class a extends n.Component{static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(null!==t){for(var e,r,n=arguments.length,i=Array(n),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some((t,r)=>!Object.is(t,e[r]))}(t.resetKeys,n)){var i,a;null===(i=(a=this.props).onReset)||void 0===i||i.call(a,{next:n,prev:t.resetKeys,reason:"keys"}),this.setState(o)}}render(){let{children:t,fallbackRender:e,FallbackComponent:r,fallback:o}=this.props,{didCatch:a,error:s}=this.state,u=t;if(a){let t={error:s,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof e)u=e(t);else if(r)u=(0,n.createElement)(r,t);else if(void 0!==o)u=o;else throw s}return(0,n.createElement)(i.Provider,{value:{didCatch:a,error:s,resetErrorBoundary:this.resetErrorBoundary}},u)}constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=o}}}}]); //# sourceMappingURL=375-27bb9b898bd229f8.js.map