diff --git a/asset-manifest.json b/asset-manifest.json index 2d6e4e8..fb63d1e 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/front-end/static/css/main.0dc15aa6.css", - "main.js": "/front-end/static/js/main.8f070d11.js", + "main.js": "/front-end/static/js/main.3c4575d7.js", "static/js/787.46c27676.chunk.js": "/front-end/static/js/787.46c27676.chunk.js", "static/media/securian_name.png": "/front-end/static/media/securian_name.50bb371563c4321e8a8e.png", "static/media/securian_logo.png": "/front-end/static/media/securian_logo.3bad7ee848c35f17f298.png", @@ -10,11 +10,11 @@ "static/media/background.png": "/front-end/static/media/background.b418bbfa63a4205d5596.png", "index.html": "/front-end/index.html", "main.0dc15aa6.css.map": "/front-end/static/css/main.0dc15aa6.css.map", - "main.8f070d11.js.map": "/front-end/static/js/main.8f070d11.js.map", + "main.3c4575d7.js.map": "/front-end/static/js/main.3c4575d7.js.map", "787.46c27676.chunk.js.map": "/front-end/static/js/787.46c27676.chunk.js.map" }, "entrypoints": [ "static/css/main.0dc15aa6.css", - "static/js/main.8f070d11.js" + "static/js/main.3c4575d7.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 3c526d2..a187614 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
0){var W=1e3*l.measureText(O).width/o*c;if(G y?1:(p-G)/(p-y)),x=C-(C-R)*z,P=F-(F-O)*z,A=E-(E-L)*z;for(var W=Math.round(Math.min(_,S)),B=Math.round(Math.max(_,S)),U=f*G+4*W,H=W;H<=B;H++)(z=(_-H)/(_-S))<0?z=0:z>1&&(z=1),d[U++]=b-(b-x)*z|0,d[U++]=k-(k-P)*z|0,d[U++]=w-(w-A)*z|0,d[U++]=255}}function u(e,t,n){var r,a,i=t.coords,o=t.colors;switch(t.type){case"lattice":var s=t.verticesPerRow,l=Math.floor(i.length/s)-1,u=s-1;for(r=0;r 0){var W=1e3*l.measureText(O).width/o*c;if(G y?1:(p-G)/(p-y)),x=C-(C-R)*z,P=F-(F-O)*z,A=E-(E-L)*z;for(var W=Math.round(Math.min(_,S)),B=Math.round(Math.max(_,S)),U=f*G+4*W,H=W;H<=B;H++)(z=(_-H)/(_-S))<0?z=0:z>1&&(z=1),d[U++]=b-(b-x)*z|0,d[U++]=k-(k-P)*z|0,d[U++]=w-(w-A)*z|0,d[U++]=255}}function u(e,t,n){var r,a,i=t.coords,o=t.colors;switch(t.type){case"lattice":var s=t.verticesPerRow,l=Math.floor(i.length/s)-1,u=s-1;for(r=0;r1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=o,l>0&&this.desiredSize<=0&&(this.sinkCapability=new r.PromiseCapability,this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:a,stream:c,streamId:t,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:l,streamId:t}),delete o.streamSinks[t])},error:function(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:u,streamId:t,reason:p(e)}))},sinkCapability:new r.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,reason:p(e)})}))}function b(e){var t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,v=this.streamControllers[t],m=this.streamSinks[t];switch(e.stream){case h:e.success?v.startCall.resolve():v.startCall.reject(p(e.reason));break;case f:e.success?v.pullCall.resolve():v.pullCall.reject(p(e.reason));break;case d:if(!m){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,success:!0});break}m.desiredSize<=0&&e.desiredSize>0&&m.sinkCapability.resolve(),m.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=m.onPull)||void 0===t?void 0:t.call(m))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,reason:p(e)})}));break;case c:if((0,r.assert)(v,"enqueue should have stream controller"),v.isClosed)break;v.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(v,"close should have stream controller"),v.isClosed)break;v.isClosed=!0,v.controller.close(),_classPrivateMethodGet(this,g,k).call(this,v,t);break;case u:(0,r.assert)(v,"error should have stream controller"),v.controller.error(p(e.reason)),_classPrivateMethodGet(this,g,k).call(this,v,t);break;case s:e.success?v.cancelCall.resolve():v.cancelCall.reject(p(e.reason)),_classPrivateMethodGet(this,g,k).call(this,v,t);break;case o:if(!m)break;new Promise((function(t){var n;t(null===(n=m.onCancel)||void 0===n?void 0:n.call(m,p(e.reason)))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:s,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:s,streamId:t,reason:p(e)})})),m.sinkCapability.reject(p(e.reason)),m.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}function k(e,t){return w.apply(this,arguments)}function w(){return(w=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,n){var r,a,i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([null===(r=t.startCall)||void 0===r?void 0:r.promise,null===(a=t.pullCall)||void 0===a?void 0:a.promise,null===(i=t.cancelCall)||void 0===i?void 0:i.promise]);case 2:delete this.streamControllers[n];case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}t.MessageHandler=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1),a=new WeakMap,i=new WeakMap,o=function(){function e(t){var n=t.parsedData,r=t.rawData;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,a,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,i,{writable:!0,value:void 0}),_classPrivateFieldSet(this,a,n),_classPrivateFieldSet(this,i,r)}return _createClass(e,[{key:"getRaw",value:function(){return _classPrivateFieldGet(this,i)}},{key:"get",value:function(e){var t;return null!==(t=_classPrivateFieldGet(this,a).get(e))&&void 0!==t?t:null}},{key:"getAll",value:function(){return(0,r.objectFromMap)(_classPrivateFieldGet(this,a))}},{key:"has",value:function(e){return _classPrivateFieldGet(this,a).has(e)}}]),e}();t.Metadata=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1),a=n(8),i=Symbol("INTERNAL"),o=new WeakMap,s=function(){function e(t,n){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,o,{writable:!0,value:!0}),this.name=t,this.intent=n}return _createClass(e,[{key:"visible",get:function(){return _classPrivateFieldGet(this,o)}},{key:"_setVisible",value:function(e,t){e!==i&&(0,r.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(this,o,t)}}]),e}(),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakSet,h=function(){function e(t){if(_classCallCheck(this,e),_classPrivateMethodInitSpec(this,f),_classPrivateFieldInitSpec(this,l,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),this.name=null,this.creator=null,null!==t){this.name=t.name,this.creator=t.creator,_classPrivateFieldSet(this,d,t.order);var n,r=_createForOfIteratorHelper(t.groups);try{for(r.s();!(n=r.n()).done;){var a=n.value;_classPrivateFieldGet(this,c).set(a.id,new s(a.name,a.intent))}}catch(b){r.e(b)}finally{r.f()}if("OFF"===t.baseState){var o,h=_createForOfIteratorHelper(_classPrivateFieldGet(this,c).values());try{for(h.s();!(o=h.n()).done;)o.value._setVisible(i,!1)}catch(b){h.e(b)}finally{h.f()}}var p,v=_createForOfIteratorHelper(t.on);try{for(v.s();!(p=v.n()).done;){var m=p.value;_classPrivateFieldGet(this,c).get(m)._setVisible(i,!0)}}catch(b){v.e(b)}finally{v.f()}var g,y=_createForOfIteratorHelper(t.off);try{for(y.s();!(g=y.n()).done;){var _=g.value;_classPrivateFieldGet(this,c).get(_)._setVisible(i,!1)}}catch(b){y.e(b)}finally{y.f()}_classPrivateFieldSet(this,u,this.getHash())}}return _createClass(e,[{key:"isVisible",value:function(e){if(0===_classPrivateFieldGet(this,c).size)return!0;if(!e)return(0,r.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return _classPrivateFieldGet(this,c).has(e.id)?_classPrivateFieldGet(this,c).get(e.id).visible:((0,r.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return _classPrivateMethodGet(this,f,p).call(this,e.expression);if(!e.policy||"AnyOn"===e.policy){var t,n=_createForOfIteratorHelper(e.ids);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(!_classPrivateFieldGet(this,c).has(a))return(0,r.warn)("Optional content group not found: ".concat(a)),!0;if(_classPrivateFieldGet(this,c).get(a).visible)return!0}}catch(g){n.e(g)}finally{n.f()}return!1}if("AllOn"===e.policy){var i,o=_createForOfIteratorHelper(e.ids);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!_classPrivateFieldGet(this,c).has(s))return(0,r.warn)("Optional content group not found: ".concat(s)),!0;if(!_classPrivateFieldGet(this,c).get(s).visible)return!1}}catch(g){o.e(g)}finally{o.f()}return!0}if("AnyOff"===e.policy){var l,u=_createForOfIteratorHelper(e.ids);try{for(u.s();!(l=u.n()).done;){var d=l.value;if(!_classPrivateFieldGet(this,c).has(d))return(0,r.warn)("Optional content group not found: ".concat(d)),!0;if(!_classPrivateFieldGet(this,c).get(d).visible)return!0}}catch(g){u.e(g)}finally{u.f()}return!1}if("AllOff"===e.policy){var h,v=_createForOfIteratorHelper(e.ids);try{for(v.s();!(h=v.n()).done;){var m=h.value;if(!_classPrivateFieldGet(this,c).has(m))return(0,r.warn)("Optional content group not found: ".concat(m)),!0;if(_classPrivateFieldGet(this,c).get(m).visible)return!1}}catch(g){v.e(g)}finally{v.f()}return!0}return(0,r.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,r.warn)("Unknown group type ".concat(e.type,".")),!0}},{key:"setVisibility",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(this,c).has(e)?(_classPrivateFieldGet(this,c).get(e)._setVisible(i,!!t),_classPrivateFieldSet(this,l,null)):(0,r.warn)("Optional content group not found: ".concat(e))}},{key:"hasInitialVisibility",get:function(){return null===_classPrivateFieldGet(this,u)||this.getHash()===_classPrivateFieldGet(this,u)}},{key:"getOrder",value:function(){return _classPrivateFieldGet(this,c).size?_classPrivateFieldGet(this,d)?_classPrivateFieldGet(this,d).slice():_toConsumableArray(_classPrivateFieldGet(this,c).keys()):null}},{key:"getGroups",value:function(){return _classPrivateFieldGet(this,c).size>0?(0,r.objectFromMap)(_classPrivateFieldGet(this,c)):null}},{key:"getGroup",value:function(e){return _classPrivateFieldGet(this,c).get(e)||null}},{key:"getHash",value:function(){if(null!==_classPrivateFieldGet(this,l))return _classPrivateFieldGet(this,l);var e,t=new a.MurmurHash3_64,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,c));try{for(n.s();!(e=n.n()).done;){var r=_slicedToArray(e.value,2),i=r[0],o=r[1];t.update("".concat(i,":").concat(o.visible))}}catch(s){n.e(s)}finally{n.f()}return _classPrivateFieldSet(this,l,t.hexdigest())}}]),e}();function p(e){var t=e.length;if(t<2)return!0;for(var n=e[0],a=1;a=r.WARNINGS&&console.log("Warning: ".concat(e))}function o(e){throw new Error(e)}function s(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Object.defineProperty(e,t,{value:n,enumerable:!r,configurable:!0,writable:!1}),n}var l=function(){function e(t,n){this.constructor===e&&o("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=l;var c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,"PasswordException")).code=r,a}return _createClass(n)}(l);t.PasswordException=c;var u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,"UnknownErrorException")).details=r,a}return _createClass(n)}(l);t.UnknownErrorException=u;var d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,"InvalidPDFException")}return _createClass(n)}(l);t.InvalidPDFException=d;var f=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,"MissingPDFException")}return _createClass(n)}(l);t.MissingPDFException=f;var h=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,"UnexpectedResponseException")).status=r,a}return _createClass(n)}(l);t.UnexpectedResponseException=h;var p=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,"FormatError")}return _createClass(n)}(l);t.FormatError=p;var v=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e,"AbortException")}return _createClass(n)}(l);function m(e){"object"===typeof e&&void 0!==(null===e||void 0===e?void 0:e.length)||o("Invalid argument for bytesToString");var t=e.length,n=8192;if(t>>8,t[n++]=255&l)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");n=(t=e.slice()).byteLength}for(var c=n>>2,u=n-4*c,d=new Uint32Array(t.buffer,0,c),f=0,h=0,p=this.h1,v=this.h2,m=3432918353,g=461845907,y=11601,_=13715,b=0;b>8,e[i-2]=e[i-2]*o+n*s>>8,e[i-1]=e[i-1]*o+r*s>>8}}}function g(e,t,n){for(var r=e.length,a=3;a1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var l=this.desiredSize;this.desiredSize-=o,l>0&&this.desiredSize<=0&&(this.sinkCapability=new r.PromiseCapability,this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:a,stream:c,streamId:t,chunk:e},s)}},close:function(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:l,streamId:t}),delete o.streamSinks[t])},error:function(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:u,streamId:t,reason:p(e)}))},sinkCapability:new r.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};d.sinkCapability.resolve(),d.ready=d.sinkCapability.promise,this.streamSinks[t]=d,new Promise((function(t){t(s(e.data,d))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:h,streamId:t,reason:p(e)})}))}function b(e){var t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,v=this.streamControllers[t],m=this.streamSinks[t];switch(e.stream){case h:e.success?v.startCall.resolve():v.startCall.reject(p(e.reason));break;case f:e.success?v.pullCall.resolve():v.pullCall.reject(p(e.reason));break;case d:if(!m){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,success:!0});break}m.desiredSize<=0&&e.desiredSize>0&&m.sinkCapability.resolve(),m.desiredSize=e.desiredSize,new Promise((function(e){var t;e(null===(t=m.onPull)||void 0===t?void 0:t.call(m))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:f,streamId:t,reason:p(e)})}));break;case c:if((0,r.assert)(v,"enqueue should have stream controller"),v.isClosed)break;v.controller.enqueue(e.chunk);break;case l:if((0,r.assert)(v,"close should have stream controller"),v.isClosed)break;v.isClosed=!0,v.controller.close(),_classPrivateMethodGet(this,g,k).call(this,v,t);break;case u:(0,r.assert)(v,"error should have stream controller"),v.controller.error(p(e.reason)),_classPrivateMethodGet(this,g,k).call(this,v,t);break;case s:e.success?v.cancelCall.resolve():v.cancelCall.reject(p(e.reason)),_classPrivateMethodGet(this,g,k).call(this,v,t);break;case o:if(!m)break;new Promise((function(t){var n;t(null===(n=m.onCancel)||void 0===n?void 0:n.call(m,p(e.reason)))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:s,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:s,streamId:t,reason:p(e)})})),m.sinkCapability.reject(p(e.reason)),m.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}function k(e,t){return w.apply(this,arguments)}function w(){return(w=_asyncToGenerator(_regeneratorRuntime().mark((function e(t,n){var r,a,i;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.allSettled([null===(r=t.startCall)||void 0===r?void 0:r.promise,null===(a=t.pullCall)||void 0===a?void 0:a.promise,null===(i=t.cancelCall)||void 0===i?void 0:i.promise]);case 2:delete this.streamControllers[n];case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}t.MessageHandler=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1),a=new WeakMap,i=new WeakMap,o=function(){function e(t){var n=t.parsedData,r=t.rawData;_classCallCheck(this,e),_classPrivateFieldInitSpec(this,a,{writable:!0,value:void 0}),_classPrivateFieldInitSpec(this,i,{writable:!0,value:void 0}),_classPrivateFieldSet(this,a,n),_classPrivateFieldSet(this,i,r)}return _createClass(e,[{key:"getRaw",value:function(){return _classPrivateFieldGet(this,i)}},{key:"get",value:function(e){var t;return null!==(t=_classPrivateFieldGet(this,a).get(e))&&void 0!==t?t:null}},{key:"getAll",value:function(){return(0,r.objectFromMap)(_classPrivateFieldGet(this,a))}},{key:"has",value:function(e){return _classPrivateFieldGet(this,a).has(e)}}]),e}();t.Metadata=o},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1),a=n(8),i=Symbol("INTERNAL"),o=new WeakMap,s=function(){function e(t,n){_classCallCheck(this,e),_classPrivateFieldInitSpec(this,o,{writable:!0,value:!0}),this.name=t,this.intent=n}return _createClass(e,[{key:"visible",get:function(){return _classPrivateFieldGet(this,o)}},{key:"_setVisible",value:function(e,t){e!==i&&(0,r.unreachable)("Internal method `_setVisible` called."),_classPrivateFieldSet(this,o,t)}}]),e}(),l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakSet,h=function(){function e(t){if(_classCallCheck(this,e),_classPrivateMethodInitSpec(this,f),_classPrivateFieldInitSpec(this,l,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,c,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,u,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,d,{writable:!0,value:null}),this.name=null,this.creator=null,null!==t){this.name=t.name,this.creator=t.creator,_classPrivateFieldSet(this,d,t.order);var n,r=_createForOfIteratorHelper(t.groups);try{for(r.s();!(n=r.n()).done;){var a=n.value;_classPrivateFieldGet(this,c).set(a.id,new s(a.name,a.intent))}}catch(b){r.e(b)}finally{r.f()}if("OFF"===t.baseState){var o,h=_createForOfIteratorHelper(_classPrivateFieldGet(this,c).values());try{for(h.s();!(o=h.n()).done;)o.value._setVisible(i,!1)}catch(b){h.e(b)}finally{h.f()}}var p,v=_createForOfIteratorHelper(t.on);try{for(v.s();!(p=v.n()).done;){var m=p.value;_classPrivateFieldGet(this,c).get(m)._setVisible(i,!0)}}catch(b){v.e(b)}finally{v.f()}var g,y=_createForOfIteratorHelper(t.off);try{for(y.s();!(g=y.n()).done;){var _=g.value;_classPrivateFieldGet(this,c).get(_)._setVisible(i,!1)}}catch(b){y.e(b)}finally{y.f()}_classPrivateFieldSet(this,u,this.getHash())}}return _createClass(e,[{key:"isVisible",value:function(e){if(0===_classPrivateFieldGet(this,c).size)return!0;if(!e)return(0,r.warn)("Optional content group not defined."),!0;if("OCG"===e.type)return _classPrivateFieldGet(this,c).has(e.id)?_classPrivateFieldGet(this,c).get(e.id).visible:((0,r.warn)("Optional content group not found: ".concat(e.id)),!0);if("OCMD"===e.type){if(e.expression)return _classPrivateMethodGet(this,f,p).call(this,e.expression);if(!e.policy||"AnyOn"===e.policy){var t,n=_createForOfIteratorHelper(e.ids);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(!_classPrivateFieldGet(this,c).has(a))return(0,r.warn)("Optional content group not found: ".concat(a)),!0;if(_classPrivateFieldGet(this,c).get(a).visible)return!0}}catch(g){n.e(g)}finally{n.f()}return!1}if("AllOn"===e.policy){var i,o=_createForOfIteratorHelper(e.ids);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(!_classPrivateFieldGet(this,c).has(s))return(0,r.warn)("Optional content group not found: ".concat(s)),!0;if(!_classPrivateFieldGet(this,c).get(s).visible)return!1}}catch(g){o.e(g)}finally{o.f()}return!0}if("AnyOff"===e.policy){var l,u=_createForOfIteratorHelper(e.ids);try{for(u.s();!(l=u.n()).done;){var d=l.value;if(!_classPrivateFieldGet(this,c).has(d))return(0,r.warn)("Optional content group not found: ".concat(d)),!0;if(!_classPrivateFieldGet(this,c).get(d).visible)return!0}}catch(g){u.e(g)}finally{u.f()}return!1}if("AllOff"===e.policy){var h,v=_createForOfIteratorHelper(e.ids);try{for(v.s();!(h=v.n()).done;){var m=h.value;if(!_classPrivateFieldGet(this,c).has(m))return(0,r.warn)("Optional content group not found: ".concat(m)),!0;if(_classPrivateFieldGet(this,c).get(m).visible)return!1}}catch(g){v.e(g)}finally{v.f()}return!0}return(0,r.warn)("Unknown optional content policy ".concat(e.policy,".")),!0}return(0,r.warn)("Unknown group type ".concat(e.type,".")),!0}},{key:"setVisibility",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];_classPrivateFieldGet(this,c).has(e)?(_classPrivateFieldGet(this,c).get(e)._setVisible(i,!!t),_classPrivateFieldSet(this,l,null)):(0,r.warn)("Optional content group not found: ".concat(e))}},{key:"hasInitialVisibility",get:function(){return null===_classPrivateFieldGet(this,u)||this.getHash()===_classPrivateFieldGet(this,u)}},{key:"getOrder",value:function(){return _classPrivateFieldGet(this,c).size?_classPrivateFieldGet(this,d)?_classPrivateFieldGet(this,d).slice():_toConsumableArray(_classPrivateFieldGet(this,c).keys()):null}},{key:"getGroups",value:function(){return _classPrivateFieldGet(this,c).size>0?(0,r.objectFromMap)(_classPrivateFieldGet(this,c)):null}},{key:"getGroup",value:function(e){return _classPrivateFieldGet(this,c).get(e)||null}},{key:"getHash",value:function(){if(null!==_classPrivateFieldGet(this,l))return _classPrivateFieldGet(this,l);var e,t=new a.MurmurHash3_64,n=_createForOfIteratorHelper(_classPrivateFieldGet(this,c));try{for(n.s();!(e=n.n()).done;){var r=_slicedToArray(e.value,2),i=r[0],o=r[1];t.update("".concat(i,":").concat(o.visible))}}catch(s){n.e(s)}finally{n.f()}return _classPrivateFieldSet(this,l,t.hexdigest())}}]),e}();function p(e){var t=e.length;if(t<2)return!0;for(var n=e[0],a=1;a