Sindbad~EG File Manager
/*! For license information please see dist.js.LICENSE.txt */
(()=>{var e={4476:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,".block-interaction-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.85);z-index:60}",""]);const l=a},6151:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.wrapper{width:100%;height:100%}.canvas{width:100%;height:100%;background-color:#f1f3f6;position:relative;overflow:hidden}.canvas .loading{padding:1rem}.canvas .vertical-line,.canvas .horizontal-line{position:absolute;background:#c5cae0}.canvas .vertical-line{width:2px}.canvas .horizontal-line{height:2px}.treewrap{position:relative;width:100%;height:100%}.treewrap.dark{background-color:rgba(0,0,0,.85)}.nodetree{position:absolute;transform-origin:top left;backface-visibility:hidden}.nodetree>*{transition:opacity 50ms linear}.start-canvas{width:100%;height:100%}.alternative-ball{position:absolute;color:#fff;border-radius:50%;font-size:.625em;width:2.4em;height:2.4em;line-height:2.4;text-align:center;font-weight:bold;border:solid 2px #396ad1;background-color:#396ad1;cursor:pointer;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none}.alternative-ball::after{position:absolute;font-family:"Material Icons";display:block;top:-1.2em;left:1.5em;font-size:.9rem;color:#f31635;font-weight:normal}.alternative-ball.endscreen{background-color:#f2f2f2;background:#f2f2f2;color:#396ad1;border:solid 2px #396ad1}.alternative-ball.endscreenCustom::after{content:""}.dark-tooltip{padding:.25em 1em;font-size:.8125rem;font-weight:normal;background:#000;color:#fff;position:absolute;bottom:200%;z-index:11;left:50%;transform:translateX(-50%);line-height:1.75;box-shadow:rgba(0,0,0,.4) 0 3px 10px;pointer-events:none;opacity:0;visibility:hidden;transition:visibility 0s linear .1s,opacity .1s linear,bottom .1s linear}.alternative-ball:hover>.dark-tooltip,.draggable.ready.hovered>.dark-tooltip{visibility:visible;opacity:1;transition-delay:0s;bottom:140%}.dark-tooltip:after{display:block;background:#000;box-shadow:rgba(0,0,0,.4) 0 3px 10px;content:" ";width:.75em;height:.75em;position:absolute;left:50%;top:100%;transform:translateX(-50%) translateY(-50%) rotate(45deg)}.dark-text-wrap{max-width:30em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dark .draggable{pointer-events:none}.dark .draggable:not(.fade) .draggable-wrapper{border:solid 1px #8fc3ff;box-shadow:0 0 8px #51c0ff}.dark .fade{opacity:.15;box-shadow:none}.click-overlay{position:absolute;width:100%;height:100%;top:0;left:0;z-index:22}.alternative-ball .loop-back{position:absolute;display:block;top:-1.15em;left:1.6em;font-size:.9rem;transform:rotate(-45deg);cursor:pointer}.alternative-ball .loop-back:after{font-family:"Material Icons";content:"";border-radius:50%;padding:.1em;color:#fff;font-weight:normal;background:linear-gradient(0deg, #b83737 1%, #e8668d 100%);box-shadow:0px 3px 6px rgba(0,0,0,.4)}.alternative-ball .loop-back:hover:after{background:linear-gradient(0deg, #852828 0%, #b83737 100%)}.draggable .loop-back{position:absolute;display:block;top:-0.85em;right:-1.05em;font-size:.9rem;transform:rotate(-45deg);cursor:pointer}.draggable .loop-back:after{font-family:"Material Icons";content:"";border-radius:50%;padding:.1em;color:#fff;font-weight:normal;background:linear-gradient(0deg, #b83737 1%, #e8668d 100%);box-shadow:0px 3px 6px rgba(0,0,0,.4)}.draggable .loop-back:hover:after{background:linear-gradient(0deg, #852828 0%, #b83737 100%)}.draggable:after{position:absolute;font-family:"Material Icons";display:block;top:-0.5em;right:-0.9em;font-size:.9rem;color:#f31635}.draggable.endscreenCustom:after{content:""}',""]);const l=a},4284:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,"",""]);const l=a},1275:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.content-type-menu{display:inline-block;background-color:#363b42;height:55em;width:11.5em;min-width:11.5em}.content-type-menu .loading{padding:1em;color:#fff}.tree.h5peditor-semi-fullscreen .content-type-menu{height:100%}.label-info{position:relative;color:#fff;font-size:.75em;line-height:1.25em;padding-top:1.3333333333em;padding-left:1.3333333333em;padding-bottom:0;font-weight:300;display:flex;margin-bottom:.6666666667em;margin-top:.6666666667em}.content-type-buttons{list-style-type:none;display:block;padding:1em;margin-top:0;border-bottom:solid 1px #525863;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.content-type-buttons li{width:9.5rem;height:2.2rem;background:#2b2f36;padding:.5rem;display:block;box-sizing:border-box;font-size:.7em;margin-bottom:.5rem;cursor:pointer;line-height:.875rem;color:#e9ebee;font-weight:400;border:solid 2px #2b2f36;border-radius:3px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.content-type-buttons li:hover{color:#e9ebee;background-color:#525863;border:solid 2px #9ea2a8}.content-type-buttons li:active{border:solid 1px #1773da;background-color:#191e22}.content-type-buttons li:before{font-family:"Material Icons";display:block;float:left;padding-bottom:.2rem;font-size:.875rem;margin-right:.6rem}.content-type-buttons li.video:before{content:""}.content-type-buttons li.coursepresentation:before{content:""}.content-type-buttons li.advancedtext:before{content:""}.content-type-buttons li.image:before{content:""}.content-type-buttons li.interactivevideo:before{content:""}.content-type-buttons li.imagehotspots:before{content:""}.content-type-buttons li.branchingquestion{background-color:#396ad1;border-color:#396ad1;color:#fff}.content-type-buttons li.branchingquestion:before{font-family:"bs-editor";content:""}.content-type-buttons li.reuse-question.disabled{border-color:rgba(0,0,0,0);background:#2b2f36;opacity:.5;cursor:not-allowed}.content-type-buttons li.reuse-question.disabled:before{content:""}.content-type-buttons li.reuse-question:before{font-family:"H5P";content:""}.content-type-buttons li.greyout{border-color:#30333a;background-color:#30333a;color:#525358}.content-type-buttons li.greyout.branchingquestion{background-color:#2b51a0;border-color:#2b51a0;color:#5a7cc4}',""]);const l=a},4002:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.draggable{position:absolute;height:2rem;box-sizing:border-box;background:#2b2f36;margin-bottom:.5rem;font-size:.7rem;font-weight:400;list-style-type:none;cursor:pointer;line-height:.875rem;color:#fff;border-radius:3px;text-overflow:ellipsis;white-space:nowrap;z-index:10;transition:box-shadow .2s ease}.draggable.dragging:hover{box-shadow:rgba(0,0,0,.4) 0 3px 10px;transition:box-shadow .2s ease}.draggable.branchingquestion{background:#396ad1;color:#fff}.draggable.branchingquestion:hover{box-shadow:none}.draggable .dropzone-wrapper{position:absolute;width:calc(100% + 3px);height:calc(100% + 8px);top:50%;left:50%;transform:translate(-50%, -50%);border-radius:3px;color:#1773da;background-color:#c4ddf9;border:dotted 2px #1773da;visibility:hidden}.canvas.placing-draggable .draggable:not(.selected) .dropzone-wrapper{visibility:visible}.selected{z-index:20}.active,.dragging{z-index:50}.draggable-wrapper{height:100%;border-radius:3px;position:relative;background:#2b2f36;z-index:1;border:solid 2px rgba(0,0,0,0);overflow:hidden}.canvas .draggable-wrapper{transform:translateY(-2px)}.draggable.branchingquestion .draggable-wrapper{background:#396ad1}.selected .draggable-wrapper{border-color:#fa488c}.canvas .draggable-wrapper{border-width:3px;transform:translateY(-3px)}.canvas .selected .draggable-wrapper{box-shadow:rgba(0,0,0,.4) 0 3px 10px}.draggable.highlight .dropzone-wrapper{border-color:#eb2626;background-color:#f6cfd2}.draggable.highlight .draggable-wrapper{background-color:#882537}.canvas.placing-draggable .draggable.not-disabled.hovered .draggable-wrapper{background-color:#882537}.canvas.placing-draggable .draggable.hovered .dropzone-wrapper{border-color:#eb2626;background-color:#f6cfd2}.draggable-label{margin:.5rem 2rem .5rem .5rem;overflow:hidden;text-overflow:ellipsis;user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none}.draggable-label:before{font-family:"Material Icons";display:block;float:left;padding-bottom:.2rem;font-size:.875rem;margin-right:.6rem;color:#d7d8d9}.draggable-label.advancedtext:before{content:""}.draggable-label.coursepresentation:before{content:""}.draggable-label.image:before{content:""}.draggable-label.imagehotspots:before{content:""}.draggable-label.interactivevideo:before{content:""}.draggable-label.video:before{content:""}.draggable-label.branchingquestion:before{font-family:"bs-editor";content:"";color:#bbcff7}.content-menu-button{top:0;background:#000;opacity:0;width:1.9rem;height:2.1rem;padding:.3rem;cursor:pointer;font-size:1rem;box-sizing:border-box;position:absolute;left:calc(100% - 1.8rem);line-height:1.3;text-align:center;color:#fff;border-radius:0 3px;transition:visibility 0s linear .1s,opacity .1s linear;visibility:hidden}.content-menu-button:before{font-family:"Material Icons";content:""}.content-menu-button.active,.draggable.ready .draggable-wrapper:hover .content-menu-button{opacity:1;visibility:visible;transition-delay:0s}',""]);const l=a},5076:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.dropzone{position:absolute;width:2.6em;height:2em;padding-top:.3rem;box-sizing:border-box;color:#1773da;background-color:#c4ddf9;border:dotted 2px #1773da;cursor:pointer;text-align:center}.dropzone:before{font-family:"Material Icons";content:"";font-size:1.5em;line-height:.75em}.dropzone:hover,.dropzone.highlight{border-color:#125bac;color:#125bac;background-color:#96c2f4}.dropzone.disabled{pointer-events:none}.dropzone-editor-path{background-color:#d9eaf4;border-color:#c3e3ee;color:#335cb4;margin-top:.7rem;padding:.7rem}',""]);const l=a},5838:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i),l=n(3021),s=n.n(l),c=new URL(n(8977),n.b),u=new URL(n(9681),n.b),d=new URL(n(5863),n.b),p=new URL(n(9639),n.b),f=new URL(n(6790),n.b),h=new URL(n(5996),n.b),m=new URL(n(9206),n.b),b=new URL(n(2956),n.b),g=new URL(n(6946),n.b),y=new URL(n(7888),n.b),v=a()(o()),w=s()(c),x=s()(u),E=s()(d),S=s()(p),k=s()(f),C=s()(h),T=s()(m),P=s()(b),O=s()(g),N=s()(y);v.push([e.id,`@font-face{font-family:"H5PRoboto";font-style:normal;font-weight:400;src:local("Roboto"),local("Roboto-Regular"),url(${w}) format("woff2"),url(${x}) format("woff")}@font-face{font-family:"H5PRoboto";font-style:italic;font-weight:400;src:local("Roboto Italic"),local("Roboto-Italic"),url(${E}) format("woff2"),url(${S}) format("woff")}@font-face{font-family:"H5PRoboto";font-style:normal;font-weight:700;src:local("Roboto Bold"),local("Roboto-Bold"),url(${k}) format("woff2"),url(${C}) format("woff")}@font-face{font-family:"H5PRoboto";font-style:italic;font-weight:700;src:local("Roboto Bold Italic"),local("Roboto-BoldItalic"),url(${T}) format("woff2"),url(${P}) format("woff")}@font-face{font-family:"H5PRoboto";font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(${O}) format("woff2"),url(${N}) format("woff")}.h5p-hub{max-width:960px}.bswrapper{font-family:"H5PRoboto";font-size:1rem}.bswrapper.preview .topbar{background:#396ad1}.editor-overlay-content,#translate-interface>.tab-view-white-box,#metadata .h5p-metadata-wrapper{font-family:"Open Sans",sans-serif}.h5peditor.h5p-branchingscenario-editor>.h5peditor-form{padding:0}.tree.h5peditor-semi-fullscreen{border:0;height:100%}.topbar{background:#191e22;color:#d1d2d2;width:100%;display:flex;align-items:center}.topbar>.field.text{margin:0}.topbar>.field.text .h5p-editor-flex-wrapper,.topbar>.field.text .h5peditor-label-wrapper,.topbar>.field.text .h5peditor-field-description,.topbar>.field.text .h5p-errors{display:none}.topbar>.field.text input.h5peditor-text{background:rgba(0,0,0,.5);padding:.53em .5em;color:#fff;border:solid 1px #191e22;margin:.47em;min-width:15.3em;max-width:25em;font-size:.9375em;min-height:auto;flex-shrink:1;flex-grow:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar>.field.text input.h5peditor-text:hover{border-color:#575b61}.topbar>.field.text input.h5peditor-text:focus{border:solid 1px #8fc3ff;box-shadow:inset 0 1px 1px #000,0 0 8px #51c0ff}.fullscreen-button{cursor:pointer;text-align:center;width:3em;padding:.8125em 0;line-height:1;flex-grow:0;min-width:3em;transition:background .2s linear;color:#fff}.fullscreen-button:hover{background:#363b42}.fullscreen-button:before{font-family:"bs-editor";font-size:1.3em;content:""}.fullscreen-button.active:before{content:""}.bswrapper.preview .fullscreen-button:hover{background:#0d396c}.field-name-extraTitle{flex-grow:1}.proceed-button{cursor:pointer;background:#166df7;color:#fff;font-size:1em;font-weight:bold;padding:.5em 1em;border-radius:.208em;flex-shrink:0;margin-right:.4em;margin-left:.4em;transition:background .2s linear}.proceed-button:hover{background:#0f56e5}.preview-button{cursor:pointer;background:rgba(0,0,0,0);color:#fff;border:none;text-transform:uppercase;font-size:.875em;font-weight:bold;padding:.47em .75em;margin-right:.4em;margin-left:.4em;border-radius:.25em;transition:background .2s linear}.preview-button[disabled]{cursor:default;opacity:.25}.preview-button:not([disabled]):hover{background:#363b42}.preview-button.back:hover{background:#0d396c}.preview-button:before{font-family:"Material Icons";content:"";font-size:1.1em;padding-right:.75em;vertical-align:text-bottom;font-weight:normal}.preview-button.back:before{content:""}.bswrapper{height:100%}.bswrapper.tour{background:#000}.bswrapper.content-node-tour .content-type-menu{background:#000}.bswrapper.content-node-tour .info-container-buttons{background-color:#363b42;pointer-events:none}.bswrapper.branching-node-tour .content-type-menu{background:#000}.bswrapper.branching-node-tour .branching-container-buttons{background-color:#363b42;pointer-events:none}.link-look{color:#1773da;cursor:pointer}.tour-fade{opacity:.15;pointer-events:none}.tour-active{pointer-events:none}.tour-box{position:absolute;width:1em;height:1em;border:2px solid #8a24f3;z-index:110}.tour-box.right-top .tour-circle{top:0;left:92%}.tour-box.right-top .tour-dialog{top:0;left:126%}.tour-box.right-top .tour-dialog:after{left:0;top:2%}@keyframes flashing1{from{background:#8a24f3}to{background:rgba(138,36,243,.1)}}@keyframes flashing2{from{background:#fff;transform:scale(0.6, 0.6)}to{background:hsla(0,0%,100%,.1);transform:scale(0.8, 0.8)}}.tour-circle{position:absolute;top:80%;left:-80%;border-radius:50%;width:2em;height:2em;animation:1s infinite normal flashing1}.tour-circle:before{content:" ";position:absolute;width:100%;height:100%;border-radius:50%;animation:1s infinite normal flashing2}.tour-circle:after{content:" ";position:absolute;width:100%;height:100%;border-radius:50%;background:#8a24f3;transform:scale(0.4, 0.4)}.tour-dialog{position:absolute;top:125%;right:-35%;background:#8a24f3;color:#fff;padding:.75em 1em;width:16.875em}.tour-dialog:after{display:block;background:#8a24f3;content:" ";width:.75em;height:.75em;position:absolute;right:5%;bottom:100%;transform:translateX(-50%) translateY(50%) rotate(45deg)}.tour-button{border:1px solid #fff;color:#fff;background:rgba(0,0,0,0);padding:.75em 1em;display:inline-block;margin-top:.75em;cursor:pointer}.tour-button:hover{background:#fff;color:#8a24f3}`,""]);const _=v},6022:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.editor-overlay{background:#fff;border-radius:5px;width:90%;max-width:53rem;max-height:90%;height:90%;position:absolute;right:50%;bottom:50%;transform:translate(50%, 50%);box-shadow:0 0 30px rgba(0,0,0,.2);font-size:.7rem;z-index:61;display:flex;flex-direction:column;overflow:hidden;padding:0}.editor-overlay.move-down{z-index:59}.editor-overlay .form-manager-footer{display:none}.editor-overlay .editor-overlay-header{margin:0;padding:0;box-sizing:border-box;height:3rem;border-bottom:.042rem solid #eee;clear:both;position:relative;box-shadow:0 2px 2px rgba(18,14,14,.1);display:flex;flex-direction:row;flex-shrink:0;width:100%}.editor-overlay.inconspicuous .editor-overlay-header{visibility:hidden;height:41px}.editor-overlay.inconspicuous .form-manager-head{position:fixed;width:100%;left:0;top:0}.editor-overlay.inconspicuous .editor-overlay-content{padding-top:0;padding-bottom:0;overflow-x:hidden}.editor-overlay.inconspicuous .form-manager-movable{top:0;border-left:0}.editor-overlay.inconspicuous .form-manager-form.form-manager-slidein{left:0}.editor-overlay .editor-overlay-content .editor-overlay-label{font-weight:600;font-size:16px;color:#454347}.editor-overlay .editor-overlay-content .editor-overlay-label-red{margin-left:.25em;color:#da0001}.editor-overlay .editor-overlay-content .editor-overlay-library .form-manager{border:0}.editor-overlay .editor-overlay-content .editor-overlay-library .form-manager.libwrap>.form-manager-form{padding:0;border:0}.editor-overlay .editor-overlay-header .editor-overlay-icon{width:2.5rem}.editor-overlay .editor-overlay-header .editor-overlay-title{padding-left:1.3rem;box-sizing:border-box;width:100%;float:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#363b42;font-size:1rem;font-weight:bold;padding-top:.8em}.editor-overlay .editor-overlay-header .editor-overlay-title:before{float:inherit;font-family:"Material Icons";font-size:1rem;font-weight:normal;margin-right:.3rem;padding-right:.5em}.editor-overlay .editor-overlay-header .editor-overlay-title.editor-overlay-icon-course-presentation:before{content:""}.editor-overlay .editor-overlay-header .editor-overlay-title.editor-overlay-icon-advanced-text:before{content:""}.editor-overlay .editor-overlay-header .editor-overlay-title.editor-overlay-icon-image:before{content:""}.editor-overlay .editor-overlay-header .editor-overlay-title.editor-overlay-icon-image-hotspots:before{content:""}.editor-overlay .editor-overlay-header .editor-overlay-title.editor-overlay-icon-interactive-video:before{content:""}.editor-overlay .editor-overlay-header .editor-overlay-title.editor-overlay-icon-video:before{content:""}.editor-overlay .editor-overlay-header .editor-overlay-title.editor-overlay-icon-branching-question:before{font-family:"bs-editor";content:""}.editor-overlay .editor-overlay-header .buttons{padding:.7em;white-space:nowrap}.editor-overlay .editor-overlay-header .buttons .button{font-size:100%;padding:.4rem 1rem;text-decoration:none;border-radius:2px;cursor:pointer;margin-left:.5rem;color:#1773da;border:solid 2px rgba(0,0,0,0);background-color:rgba(0,0,0,0)}.editor-overlay .editor-overlay-header .buttons .button:hover{background-color:#dbdee3}.editor-overlay .editor-overlay-header .buttons .button-blue{font-size:.85rem;font-weight:bold;font-family:H5PRoboto;padding:.4rem 1rem;text-decoration:none;border-radius:2px;cursor:pointer;color:#fff;background-color:#1773da;border:solid 2px #1773da}.editor-overlay .editor-overlay-header .buttons .button-blue:not(:first-child){margin-left:1em}.editor-overlay .editor-overlay-header .buttons .button-blue:hover{background-color:#1567c3}.editor-overlay .editor-overlay-header .buttons .button-remove{font-size:.85rem;font-family:H5PRoboto;padding:.4rem 1rem;text-decoration:none;border-radius:2px;cursor:pointer;color:#a00;background:none;border:none}.editor-overlay .editor-overlay-header .buttons .button-remove:not(:first-child){margin-left:1em}.editor-overlay .editor-overlay-titlefield{width:100%;font-weight:bold;border-radius:4px;font-size:16px}.editor-overlay .editor-overlay-content{padding:1.125rem 1.5rem 1.5rem 1.5rem;box-sizing:border-box;overflow-y:auto}.editor-overlay .editor-overlay-footer{margin:0;padding:0;box-sizing:border-box;border-top:.042rem solid #eee;clear:both;position:relative;display:flex;flex-shrink:0;width:100%}.field.wizard .h5peditor-tab-a.h5peditor-tab-video:before{content:""}.field.wizard .h5peditor-tab-a.h5peditor-tab-assets:before{content:""}.field.wizard .h5peditor-tab-a.h5peditor-tab-summary:before{content:""}.editor-overlay .editor-overlay-content:not(.dynamic-score) .h5p-editor-branching-question .content.hide-score .field-name-endScreenScore{display:none}.editor-overlay .editor-overlay-content.hide-scores .h5p-editor-branching-question .field-name-endScreenScore{display:none}.editor-overlay .editor-overlay-feedback-semantics{margin:2em 0}.editor-overlay .editor-overlay-content:not(.dynamic-score) .editor-overlay-feedback-semantics.hide-score .field-name-endScreenScore{display:none}.editor-overlay.h5p-branching-question .editor-overlay-feedback-semantics{display:none}.editor-overlay-semantics{margin-bottom:20px}',""]);const l=a},4777:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.legend{cursor:pointer;width:8rem;background-color:#fff;position:absolute;left:calc(100% - 9rem);top:1.5rem;text-align:center;padding:.5rem;box-sizing:border-box;font-weight:bold;transition:all .1s ease;user-select:none;z-index:10;overflow:hidden}.legend:hover{-webkit-box-shadow:rgba(0,0,0,.2) 0 3px 10px;-moz-box-shadow:rgba(0,0,0,.2) 0 3px 10px;box-shadow:rgba(0,0,0,.2) 0 3px 10px}.legend>span{font-size:.875rem}.legend.fade{pointer-events:none;opacity:.15}.legend .close{text-decoration:none;text-align:right;padding:.3rem;font-size:.6rem;text-align:right;color:#1773da}.legend.expanded{width:20rem;left:calc(100% - 21rem)}.legend-content{min-width:19rem;display:none;opacity:0;transition:opacity .1s ease}.legend-content ul{list-style:none;margin:.6em 0 0 0;padding:1rem 1rem 0;border-top:solid 1px #e9ebee}.legend-content ul li{margin-bottom:.5rem;font-size:.708rem;font-weight:normal;list-style-position:inside;text-align:left;padding-left:2rem;padding-bottom:.85em}.legend-content ul li:before{font-size:1rem;width:1rem;height:1rem;position:absolute;left:1.5rem;border:solid 1px;border-radius:3px}.legend-content ul li:nth-child(1):before{color:#1773da;background-color:rgb(196.2033195021,221.0165975104,248.7966804979);font-family:"Material Icons";content:"";border:2px dotted #1773da}.legend-content ul li:nth-child(2):before{border-color:#191e22;background-color:#191e22;content:""}.legend-content ul li:nth-child(3):before{border-color:#1773da;background-color:#1773da;content:""}.legend-content ul li:nth-child(4):before{border-color:#1773da;background-color:#1773da;border-radius:3rem;content:""}.legend-content ul li:nth-child(5):before{background:#fff;border-radius:3rem;border-color:#1773da;content:" "}.legend-content ul li:nth-child(6):before{font-family:"Material Icons";color:#1773da;content:"";color:#f31635;border:none}.legend-content ul li:nth-child(7):before{font-family:"Material Icons";content:"";border-radius:50%;padding:.1em;color:#fff;font-weight:normal;background:linear-gradient(0deg, #b83737 1%, #e8668d 100%);box-shadow:0px 3px 6px rgba(0,0,0,.4);border:none;transform:rotate(-45deg)}.legend-content ul li:last-child{border-top:solid 1px #e9ebee;padding-top:1rem;font-size:.75rem;text-align:center;padding-left:0;padding-bottom:0}.legend-content.expanded{display:inherit;opacity:1}',""]);const l=a},9461:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,".startscreen-wrapper{width:100%;height:100%;background:#f1f3f6;display:flex;flex-direction:column;justify-content:space-between;position:absolute;top:0}.startscreen-header{text-align:center}.startscreen-header h1{font-size:2rem;display:block;font-weight:300;color:#1773da;margin:1.6em 0 .25em 0}.startscreen-header p{font-size:.75rem;margin-top:.3rem;display:block;color:#626262}.startscreen-footer{text-align:center;margin-top:.3rem;margin-bottom:3.8em;font-size:.75rem;display:block;color:#626262}.startscreen-footer a{cursor:pointer;color:#1773da;text-decoration:underline}",""]);const l=a},1516:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.submenu{position:absolute;left:calc(100% - 1.8rem);top:100%;color:#000;background-color:#fff;border:1px solid rgba(0,0,0,.15);border-radius:4px;box-shadow:0 10px 20px rgba(0,0,0,.2);margin:0;list-style:none;padding:.25rem;font-size:.75rem;z-index:1}.submenu li{padding:.5rem;line-height:.708rem;color:#363b42;padding-left:.6rem;align-items:center}.submenu li:hover{background-color:#f1f3f6}.submenu li:first-child{background-color:#f1f3f6;font-weight:bold;border-bottom:solid .042rem #f1f3f6;cursor:auto}.submenu li:last-child{border-top:solid .042rem #f1f3f6}.submenu li:before{font-family:"Material Icons";margin-right:.3em;line-height:1;vertical-align:bottom}.submenu li.edit-content:before{content:""}.submenu li.preview-content:before{content:""}.submenu li.copy-content:before{font-family:"bs-editor";content:""}.submenu li.delete-content:before{content:""}.submenu .active{opacity:1}',""]);const l=a},7994:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.h5p-branchingscenario-editor .h5peditor-form .tab-panel{display:none;overflow:hidden;position:relative}.h5p-branchingscenario-editor .h5peditor-form .tab-panel.active{display:flex;width:100%;height:100%}.h5p-branchingscenario-editor .h5peditor-form .tab-view-wrapper{height:100%;overflow-y:hidden;overflow-x:hidden;margin:0;padding:0}.h5p-branchingscenario-editor .h5peditor-form .tab-view-full-page{width:100%;background-color:#f1f3f6;box-sizing:border-box;display:block;width:100%;box-sizing:border-box;display:block;position:absolute;height:100%;margin-right:6rem}.h5p-branchingscenario-editor .h5peditor-form .tab-view-full-page fieldset{border:solid .042rem #e2e5ee;border-radius:4px;margin-bottom:1rem}.h5p-branchingscenario-editor .h5peditor-form .tab-view-full-page fieldset legend{color:#363b42;background-color:#fff;padding:.6rem;font-weight:bold;font-size:.85rem}.h5p-branchingscenario-editor .h5peditor-form .large-padding{padding:1.5rem}.h5p-branchingscenario-editor .h5peditor-form .tab-view-white-box{border:solid .042rem #e2e5ee;border-radius:4px;background-color:#fff;padding:1rem;margin-top:1rem;max-height:calc(100% - 7.55rem);overflow-y:auto;max-width:900px}.h5p-branchingscenario-editor .h5peditor-form .tab-view-title{font-size:2rem;display:block;font-weight:300;color:#1773da;max-width:900px}.h5p-branchingscenario-editor .h5peditor-form .tab-view-description{font-size:.75rem;margin-top:.3rem;display:block;color:#626262;max-width:900px}.h5p-branchingscenario-editor .h5peditor-form .tab-view-info{position:relative;display:flex}.h5p-branchingscenario-editor .h5peditor-form .tab-view-info-tip{display:none;position:absolute;bottom:130%;min-width:15rem;background-color:#fff;z-index:2000;padding:.6rem;border-radius:5px;font-weight:normal;padding-left:3.5rem;text-align:left;-webkit-box-shadow:0 1px 5px 1px rgba(0,0,0,.1);-moz-box-shadow:0 1px 5px 1px rgba(0,0,0,.1);box-shadow:0 1px 5px 1px rgba(0,0,0,.1);font-size:.75rem;line-height:.9rem;font-family:"Roboto";color:#363b42}.h5p-branchingscenario-editor .h5peditor-form .tab-view-info-tip::before{position:absolute;content:"";font-size:1.3rem;color:#1773da;left:.6rem;top:.6rem;border-right:solid 1px #e9ebee;padding-right:.6rem;height:calc(100% - 1rem);font-weight:normal}',""]);const l=a},9020:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.tabs{display:flex;flex-direction:row;height:55em}.tabs.hidden{display:none}.tree.h5peditor-semi-fullscreen .tabs{height:100%}.tabs-nav{height:100%;margin-top:0;margin-bottom:0;padding:0;background:gray;list-style-type:none;background-color:#191e22}.tabs-nav li{padding:1em 0;width:3em;box-sizing:border-box;text-align:center;color:#d1d2d2;cursor:pointer;transition:all .1s ease-in-out;border-left:solid 3px #191e22;border-right:solid 3px rgba(0,0,0,0)}.tabs-nav li:hover{background-color:#363b42;border-left-color:#363b42;color:#fff}.tabs-nav li:before{font-family:"Material Icons";display:inline-block;width:100%;text-align:center;font-size:1.3em}.tabs-nav li.bs-editor-content-tab::before{content:"";font-size:1.15em;line-height:1.3em}.tabs-nav li.bs-editor-settings-tab::before{content:""}.tabs-nav li.bs-editor-translations-tab::before{content:""}.tabs-nav li.bs-editor-tutorial-tab::before{content:""}.tabs-nav li.bs-editor-metadata-tab::before{font-family:"bs-editor";content:""}.tabs-nav li.active{background-color:#f1f3f6;border-left-color:#f1f3f6}.tabs-nav li.active:before{color:#363b42}.tabs-nav li.active:hover{background-color:#f1f3f6;border-left-color:#f1f3f6}.tabs-nav li.has-submenu{border-left-color:#191e22}.tabs-nav li.has-submenu:before{color:#d1d2d2}.tabs-nav li.has-submenu:hover{border-left-color:#363b42}.tabs-nav li.has-submenu.active{background-color:#363b42;border-left-color:#1773da}.tabs-nav li.has-submenu.active:before{color:#fff}',""]);const l=a},5302:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,".h5p-branchingscenario-editor .tabs #metadata .h5p-metadata-wrapper{visibility:visible;opacity:1;height:auto;padding:1em;margin:0;position:relative;width:auto;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;display:flex;flex-direction:column}.h5p-branchingscenario-editor .tabs #metadata .h5p-metadata-wrapper .h5p-metadata-header{display:none}.h5p-branchingscenario-editor .tabs #metadata .h5p-metadata-wrapper .h5p-metadata-fields-wrapper{margin:0}.h5p-branchingscenario-editor .tabs #metadata .h5p-metadata-wrapper:after{display:none}",""]);const l=a},8542:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,".tab-view-full-page .no-display{display:none}.tab-view-full-page .tooltip-title{font-weight:600}",""]);const l=a},2291:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,"",""]);const l=a},1241:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,"#help .tab-view-white-box{height:calc(100% - 7.55rem);overflow:hidden}",""]);const l=a},2476:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.tips{display:flex;align-items:center;justify-content:center;background-color:#fc0;padding:.5rem .8rem;position:absolute;width:100%;z-index:1;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.tips::before{flex-shrink:0;content:"";font-family:"Material Icons";color:#121212;font-size:1rem;padding-right:.5rem;font-weight:600}',""]);const l=a},9030:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.toolbar{position:absolute;bottom:0;left:0;width:100%;height:2em;background-color:#191e22;color:#e9ebee;display:flex}.tree.h5peditor-semi-fullscreen .toolbar{position:fixed}.missing-end-scenarios{border:2px solid #3cfda5;color:#3cfda5;font-weight:600;border-radius:25%;min-width:1.25em;height:1.25em;text-align:center;float:right;line-height:1.25em;cursor:pointer;margin-top:.25em;font-size:1em;margin-right:.25em;padding:0 .15em}.missing-end-scenarios:hover{background-color:#153e29}.info-popup{position:absolute;width:20em;bottom:0;right:1em;padding:1em 2.5em 1em 1.5em;color:#000;background:#fff;font-size:.875em;box-shadow:0 1px 5px 1px rgba(0,0,0,.1);opacity:0;visibility:hidden;transition:visibility 0s linear .1s,opacity .1s linear,bottom .1s linear}.info-popup.visible{visibility:visible;opacity:1;bottom:3em;transition-delay:0s;z-index:3}.highlight-end-scenarios-button{cursor:pointer;text-decoration:underline;color:#1773da}.close-info-popup-button{position:absolute;width:1em;height:1em;line-height:1em;cursor:pointer;right:.5em;top:.5em}.close-info-popup-button:after{font-family:"Material Icons";content:""}.zoom-wrapper{padding:.5em;vertical-align:middle;align-content:center;text-align:center;line-height:1.45em;font-size:.875em;display:flex;align-items:center;flex-grow:1;justify-content:center}.zoom-in,.zoom-out{font-size:1.5em;cursor:pointer;padding:.125em;line-height:1;height:1em}.zoom-in:before{font-family:"Material Icons";content:""}.zoom-out:before{font-family:"Material Icons";content:""}.zoom-status{width:3em;padding:0 1em 0 1em}.fit-to-canvas-icon{margin-left:2em;margin-top:.2em}.fit-to-canvas{cursor:pointer;padding:.125em .3em .125em .125em;margin-left:1em;line-height:1.6em}.fit-to-canvas:before{font-family:"Material Icons";content:"";font-size:1.5em;vertical-align:middle;margin-right:.125em}.zoom-in:hover,.zoom-out:hover,.fit-to-canvas:hover{background:#32393f}.zoom-in:active,.zoom-out:active,.fit-to-canvas:active{background:#020405}.zoom-in.disabled,.zoom-out.disabled,.fit-to-canvas.disabled{opacity:.5;cursor:default}.zoom-in.disabled:hover,.zoom-in.disabled:active,.zoom-out.disabled:hover,.zoom-out.disabled:active,.fit-to-canvas.disabled:hover,.fit-to-canvas.disabled:active{background:rgba(0,0,0,0)}',""]);const l=a},3142:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.h5p-branchingscenario-editor .tooltip{position:absolute;bottom:98%;top:auto;width:15rem;background-color:#fff;z-index:2000;padding:.6rem;border-radius:5px;font-weight:normal;padding-left:3.5rem;text-align:left;box-shadow:0 1px 5px 1px rgba(0,0,0,.1);font-size:.75rem;line-height:.9rem;color:#363b42}.h5p-branchingscenario-editor .tooltip p:first-child{margin-top:0}.h5p-branchingscenario-editor .tooltip p:last-child{margin-bottom:0}.h5p-branchingscenario-editor .tooltip.below{bottom:auto;top:120%}.h5p-branchingscenario-editor .tooltip.wide{width:32rem}.h5p-branchingscenario-editor .tooltip:before{font-family:"Material Icons";position:absolute;content:"";font-size:1.3rem;color:#1773da;left:.6rem;top:.6rem;border-right:solid 1px #e9ebee;padding-right:.6rem;height:calc(100% - 1rem);font-weight:normal}',""]);const l=a},3178:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.tooltip-wrapper{display:inline;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.tooltip-button:after{font-family:"Material Icons";top:0;color:#88a7ca;font-size:1.325em;font-weight:normal;cursor:pointer;padding-left:.3rem;content:""}.tab-view-info .tooltip-wrapper .tooltip-button:after{color:#999;font-size:1.325em;font-weight:normal}',""]);const l=a},6710:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,".editor-overlay-branching-options select{width:100%}.editor-overlay-branching-options .field{margin-bottom:0}",""]);const l=a},2408:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.confirmation-dialog-header .icon-delete:before{font-family:"Material Icons";content:"";font-size:1.3rem;margin-right:.5em}',""]);const l=a},5057:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.confirmation-dialog{position:absolute;width:90%;max-width:50rem;max-height:80%;top:50%;left:50%;background:#fff;border-radius:5px;display:flex;flex-direction:column;transform:translate(-50%, -50%);transition:all 5s ease-in-out;box-shadow:0 0 30px rgba(0,0,0,.2);font-size:1em;z-index:61}.confirmation-dialog-header{padding:1rem 1rem 1rem 1.5rem;border-bottom:.042rem solid #eec;flex:0 1 auto;align-items:center;display:flex}.confirmation-dialog-header .header-text{font-weight:bold}.confirmation-dialog-body{padding:1.5rem;display:flex;flex-direction:column;justify-content:space-between;flex:1 1 auto}.confirmation-dialog-body .confirmation-dialog-body-split{display:flex}.confirmation-dialog-body .confirmation-dialog-body-split .confirmation-dialog-body-left-content{flex-grow:1;flex-basis:0}.confirmation-dialog-body .confirmation-dialog-body-split .confirmation-dialog-body-right-content{flex-grow:1;flex-basis:0;margin-left:1rem}.confirmation-dialog-body .confirmation-dialog-body-split .confirmation-dialog-body-right-content img{width:100%}.confirmation-dialog-body .confirmation-question{margin-top:0}.confirmation-dialog-body .confirmation-details{background-color:#fffcdb;border:solid 1px #f7f4d0;color:#8a6d3b;margin:.7rem 0;padding:.85rem;font-size:.85rem}.confirmation-dialog-body .confirmation-details p{margin:0}.confirmation-dialog-body .confirmation-details ul{margin:0;list-style-type:none;padding-left:0;max-height:6.5em;overflow:auto}.confirmation-dialog-body .confirmation-details ul>li:before{content:"- ";text-indent:-5px}.confirmation-dialog-body .dialog-buttons{display:flex;margin-top:1rem}.confirmation-dialog-body .dialog-confirm{margin-right:.2em;padding:.5rem 1rem;text-decoration:none;border-radius:2px;cursor:pointer;color:#fff;background-color:#1773da;border:solid 2px #1773da}.confirmation-dialog-body .dialog-confirm:hover{background-color:#1567c3}.confirmation-dialog-body .dialog-confirm-red{margin-right:.2em;padding:.5rem 1rem;text-decoration:none;border-radius:2px;cursor:pointer;color:#fff;background-color:#e40c29;border:solid 2px #e40c29}.confirmation-dialog-body .dialog-confirm-red:hover{background-color:#c71129;border-color:#c71129}.confirmation-dialog-body .dialog-confirm-red:active{background-color:#b90b22;border-color:#b90b22}.confirmation-dialog-body .dialog-cancel{padding:.5rem 1rem;text-decoration:none;border-radius:2px;cursor:pointer;color:#363b42}.confirmation-dialog-body .dialog-cancel:hover{background-color:#dbdee3}',""]);const l=a},2100:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,".h5p-branchingscenario-editor .confirmation-dialog.full-screen-dialog{top:3em;max-width:34em;transform:translateX(-50%)}.h5p-branchingscenario-editor .confirmation-dialog.full-screen-dialog .header-text{font-weight:bold}.h5p-branchingscenario-editor .confirmation-dialog.full-screen-dialog .dialog-cancel{color:#1773da}",""]);const l=a},4229:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,'.h5p-branchingscenario-editor .empty-preview-wrapper{text-align:center;padding:2em 1em}.h5p-branchingscenario-editor .empty-preview-icon:before{font-family:"Material Icons";content:"";font-size:11em;color:#e9ebee}.h5p-branchingscenario-editor .empty-preview-title{font-size:2rem;display:block;font-weight:300;color:#1773da;margin-bottom:.25em}.h5p-branchingscenario-editor .empty-preview-description{font-size:.75rem;margin-top:.3rem;display:block;color:#626262}.h5p-branchingscenario-editor .editor-link{text-decoration:underline}',""]);const l=a},1990:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,".h5p-branchingscenario-editor .loading-wrapper{text-align:center;padding:2em}.h5p-branchingscenario-editor .loading-graphics{width:5em}.h5p-branchingscenario-editor .loading-text{font-size:2em;color:#1773da;padding:1em}",""]);const l=a},138:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,".h5peditor-semi-fullscreen .preview-wrapper{padding-bottom:0;max-width:68em}.preview-wrapper{max-width:50em;margin:auto;position:relative;overflow:hidden;padding-bottom:3em}.preview-wrapper .h5p-branching-scenario .h5p-start-screen,.preview-wrapper .h5p-branching-scenario .h5p-end-screen{min-height:initial}.preview-container{overflow:auto;max-height:calc(100% - 3.15em);background:#fff;min-height:40em}",""]);const l=a},4487:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i)()(o());a.push([e.id,".h5p-branchingscenario-editor .preview-scene-selection-wrapper{text-align:center;padding:2em}.h5p-branchingscenario-editor .scene-selector{padding:.8em;border:1px solid #d0d0d1;font-size:.9em;border-radius:.2em;background:#fff}",""]);const l=a},3659:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(8645),o=n.n(r),i=n(278),a=n.n(i),l=n(3021),s=n.n(l),c=new URL(n(3684),n.b),u=new URL(n(5558),n.b),d=new URL(n(2902),n.b),p=new URL(n(6106),n.b),f=a()(o()),h=s()(c),m=s()(c,{hash:"#iefix"}),b=s()(u),g=s()(d),y=s()(p,{hash:"#bs"});f.push([e.id,`@font-face{font-family:"bs-editor";src:url(${h});src:url(${m}) format("embedded-opentype"),url(${b}) format("truetype"),url(${g}) format("woff"),url(${y}) format("svg");font-weight:normal;font-style:normal}.h5p-branchingscenario-editor .tree{margin:0;padding:0;max-width:none}.h5p-branchingscenario-editor .h5p-coursepresentation-editor .h5p-shape-editor .sp-container{left:auto !important;right:0}`,""]);const v=f},278:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},3021:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8645:e=>{"use strict";e.exports=function(e){return e[1]}},1664:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var c in i=Object(arguments[s]))n.call(i,c)&&(l[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l}},362:(e,t,n)=>{"use strict";var r=n(6441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},2688:(e,t,n)=>{e.exports=n(362)()},6441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6067:(e,t,n)=>{"use strict";var r=n(3696),o=n(1664),i=n(1434);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function l(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var s=!1,c=null,u=!1,d=null,p={onError:function(e){s=!0,c=e}};function f(e,t,n,r,o,i,a,u,d){s=!1,c=null,l.apply(p,arguments)}var h=null,m=null,b=null;function g(e,t,n){var r=e.type||"unknown-event";e.currentTarget=b(n),function(e,t,n,r,o,i,l,p,h){if(f.apply(this,arguments),s){if(!s)throw Error(a(198));var m=c;s=!1,c=null,u||(u=!0,d=m)}}(r,t,void 0,e),e.currentTarget=null}var y=null,v={};function w(){if(y)for(var e in v){var t=v[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!E[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in E[n]=t,n=t.eventTypes){var o=void 0,i=n[r],l=t,s=r;if(S.hasOwnProperty(s))throw Error(a(99,s));S[s]=i;var c=i.phasedRegistrationNames;if(c){for(o in c)c.hasOwnProperty(o)&&x(c[o],l,s);o=!0}else i.registrationName?(x(i.registrationName,l,s),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function x(e,t,n){if(k[e])throw Error(a(100,e));k[e]=t,C[e]=t.eventTypes[n].dependencies}var E=[],S={},k={},C={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!v.hasOwnProperty(t)||v[t]!==r){if(v[t])throw Error(a(102,t));v[t]=r,n=!0}}n&&w()}var P=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),O=null,N=null,_=null;function I(e){if(e=m(e)){if("function"!=typeof O)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),O(e.stateNode,e.type,t))}}function j(e){N?_?_.push(e):_=[e]:N=e}function z(){if(N){var e=N,t=_;if(_=N=null,I(e),t)for(e=0;e<t.length;e++)I(t[e])}}function A(e,t){return e(t)}function M(e,t,n,r,o){return e(t,n,r,o)}function D(){}var R=A,F=!1,L=!1;function B(){null===N&&null===_||(D(),z())}function H(e,t,n){if(L)return e(t,n);L=!0;try{return R(e,t,n)}finally{L=!1,B()}}var Q=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,U=Object.prototype.hasOwnProperty,W={},$={};function V(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){q[e]=new V(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];q[t]=new V(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){q[e]=new V(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){q[e]=new V(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){q[e]=new V(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){q[e]=new V(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){q[e]=new V(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){q[e]=new V(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){q[e]=new V(e,5,!1,e.toLowerCase(),null,!1)}));var G=/[\-:]([a-z])/g;function X(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(G,X);q[t]=new V(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(G,X);q[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(G,X);q[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){q[e]=new V(e,1,!1,e.toLowerCase(),null,!1)})),q.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){q[e]=new V(e,1,!1,e.toLowerCase(),null,!0)}));var K=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e,t,n,r){var o=q.hasOwnProperty(t)?q[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!U.call($,e)||!U.call(W,e)&&(Q.test(e)?$[e]=!0:(W[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}K.hasOwnProperty("ReactCurrentDispatcher")||(K.ReactCurrentDispatcher={current:null}),K.hasOwnProperty("ReactCurrentBatchConfig")||(K.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"==typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,oe=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,le=J?Symbol.for("react.concurrent_mode"):60111,se=J?Symbol.for("react.forward_ref"):60112,ce=J?Symbol.for("react.suspense"):60113,ue=J?Symbol.for("react.suspense_list"):60120,de=J?Symbol.for("react.memo"):60115,pe=J?Symbol.for("react.lazy"):60116,fe=J?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function be(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case de:return be(e.type);case fe:return be(e.render);case pe:if(e=1===e._status?e._result:null)return be(e)}return null}function ge(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=be(e.type);n=null,r&&(n=be(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(Z,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ve(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Se(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&Y(e,"checked",t,!1)}function Ce(e,t){ke(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pe(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Pe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Oe(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function _e(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function je(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ze(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var De,Re,Fe=(Re=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((De=De||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=De.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Re(e,t)}))}:Re);function Le(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Be(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:Be("Animation","AnimationEnd"),animationiteration:Be("Animation","AnimationIteration"),animationstart:Be("Animation","AnimationStart"),transitionend:Be("Transition","TransitionEnd")},Qe={},Ue={};function We(e){if(Qe[e])return Qe[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ue)return Qe[e]=n[t];return e}P&&(Ue=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);var $e=We("animationend"),Ve=We("animationiteration"),qe=We("animationstart"),Ge=We("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ke=new("function"==typeof WeakMap?WeakMap:Map);function Ye(e){var t=Ke.get(e);return void 0===t&&(t=new Map,Ke.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Je(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function et(e){if(Ze(e)!==e)throw Error(a(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return et(o),e;if(i===r)return et(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function nt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function it(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)g(e,t[r],n[r]);else t&&g(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function at(e){if(null!==e&&(ot=nt(ot,e)),e=ot,ot=null,e){if(rt(e,it),ot)throw Error(a(95));if(u)throw e=d,u=!1,d=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function st(e){if(!P)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ct=[];function ut(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function dt(e,t,n,r){if(ct.length){var o=ct.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=In(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=lt(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var l=null,s=0;s<E.length;s++){var c=E[s];c&&(c=c.extractEvents(r,t,i,o,a))&&(l=nt(l,c))}at(l)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":qt(t,"scroll",!0);break;case"focus":case"blur":qt(t,"focus",!0),qt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":st(e)&&qt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Vt(e,t)}n.set(e,null)}}var ht,mt,bt,gt=!1,yt=[],vt=null,wt=null,xt=null,Et=new Map,St=new Map,kt=[],Ct="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Pt(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Ot(e,t){switch(e){case"focus":case"blur":vt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":xt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=Pt(t,n,r,o,i),null!==t&&null!==(t=jn(t))&&mt(t),e):(e.eventSystemFlags|=r,e)}function _t(e){var t=In(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Je(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){bt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=jn(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function jt(e,t,n){It(e)&&n.delete(t)}function zt(){for(gt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=jn(e.blockedOn))&&ht(e);break}var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yt.shift()}null!==vt&&It(vt)&&(vt=null),null!==wt&&It(wt)&&(wt=null),null!==xt&&It(xt)&&(xt=null),Et.forEach(jt),St.forEach(jt)}function At(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,zt)))}function Mt(e){function t(t){return At(t,e)}if(0<yt.length){At(yt[0],e);for(var n=1;n<yt.length;n++){var r=yt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==vt&&At(vt,e),null!==wt&&At(wt,e),null!==xt&&At(xt,e),Et.forEach(t),St.forEach(t),n=0;n<kt.length;n++)(r=kt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<kt.length&&null===(n=kt[0]).blockedOn;)_t(n),null===n.blockedOn&&kt.shift()}var Dt={},Rt=new Map,Ft=new Map,Lt=["abort","abort",$e,"animationEnd",Ve,"animationIteration",qe,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ge,"transitionEnd","waiting","waiting"];function Bt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Ft.set(r,t),Rt.set(r,i),Dt[o]=i}}Bt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Bt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Bt(Lt,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Qt=0;Qt<Ht.length;Qt++)Ft.set(Ht[Qt],0);var Ut=i.unstable_UserBlockingPriority,Wt=i.unstable_runWithPriority,$t=!0;function Vt(e,t){qt(t,e,!1)}function qt(e,t,n){var r=Ft.get(t);switch(void 0===r?2:r){case 0:r=Gt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Kt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Gt(e,t,n,r){F||D();var o=Kt,i=F;F=!0;try{M(o,e,t,n,r)}finally{(F=i)||B()}}function Xt(e,t,n,r){Wt(Ut,Kt.bind(null,e,t,n,r))}function Kt(e,t,n,r){if($t)if(0<yt.length&&-1<Ct.indexOf(e))e=Pt(null,e,t,n,r),yt.push(e);else{var o=Yt(e,t,n,r);if(null===o)Ot(e,r);else if(-1<Ct.indexOf(e))e=Pt(o,e,t,n,r),yt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return vt=Nt(vt,e,t,n,r,o),!0;case"dragenter":return wt=Nt(wt,e,t,n,r,o),!0;case"mouseover":return xt=Nt(xt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Et.set(i,Nt(Et.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,St.set(i,Nt(St.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Ot(e,r),e=dt(e,r,null,t);try{H(pt,e)}finally{ut(e)}}}}function Yt(e,t,n,r){if(null!==(n=In(n=lt(r)))){var o=Ze(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=Je(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=dt(e,r,n,t);try{H(pt,e)}finally{ut(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Jt=["Webkit","ms","Moz","O"];function en(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function tn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=en(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(Zt).forEach((function(e){Jt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var nn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(nn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var an="http://www.w3.org/1999/xhtml";function ln(e,t){var n=Ye(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=C[t];for(var r=0;r<t.length;r++)ft(t[r],e,n)}function sn(){}function cn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=un(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=un(r)}}function pn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fn(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn="$",bn="/$",gn="$?",yn="$!",vn=null,wn=null;function xn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function En(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Sn="function"==typeof setTimeout?setTimeout:void 0,kn="function"==typeof clearTimeout?clearTimeout:void 0;function Cn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Tn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===mn||n===yn||n===gn){if(0===t)return e;t--}else n===bn&&t++}e=e.previousSibling}return null}var Pn=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+Pn,Nn="__reactEventHandlers$"+Pn,_n="__reactContainere$"+Pn;function In(e){var t=e[On];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_n]||n[On]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Tn(e);null!==e;){if(n=e[On])return n;e=Tn(e)}return t}n=(e=n).parentNode}return null}function jn(e){return!(e=e[On]||e[_n])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function zn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function An(e){return e[Nn]||null}function Mn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Dn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Rn(e,t,n){(t=Dn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Fn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Mn(t);for(t=n.length;0<t--;)Rn(n[t],"captured",e);for(t=0;t<n.length;t++)Rn(n[t],"bubbled",e)}}function Ln(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Dn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Bn(e){e&&e.dispatchConfig.registrationName&&Ln(e._targetInst,null,e)}function Hn(e){rt(e,Fn)}var Qn=null,Un=null,Wn=null;function $n(){if(Wn)return Wn;var e,t,n=Un,r=n.length,o="value"in Qn?Qn.value:Qn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Wn=o.slice(e,1<t?1-t:void 0)}function Vn(){return!0}function qn(){return!1}function Gn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:qn,this.isPropagationStopped=qn,this}function Xn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Yn(e){e.eventPool=[],e.getPooled=Xn,e.release=Kn}o(Gn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:qn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),Gn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Yn(n),n},Yn(Gn);var Zn=Gn.extend({data:null}),Jn=Gn.extend({data:null}),er=[9,13,27,32],tr=P&&"CompositionEvent"in window,nr=null;P&&"documentMode"in document&&(nr=document.documentMode);var rr=P&&"TextEvent"in window&&!nr,or=P&&(!tr||nr&&8<nr&&11>=nr),ir=String.fromCharCode(32),ar={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},lr=!1;function sr(e,t){switch(e){case"keyup":return-1!==er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function cr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ur=!1,dr={eventTypes:ar,extractEvents:function(e,t,n,r){var o;if(tr)e:{switch(e){case"compositionstart":var i=ar.compositionStart;break e;case"compositionend":i=ar.compositionEnd;break e;case"compositionupdate":i=ar.compositionUpdate;break e}i=void 0}else ur?sr(e,n)&&(i=ar.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=ar.compositionStart);return i?(or&&"ko"!==n.locale&&(ur||i!==ar.compositionStart?i===ar.compositionEnd&&ur&&(o=$n()):(Un="value"in(Qn=r)?Qn.value:Qn.textContent,ur=!0)),i=Zn.getPooled(i,t,n,r),(o||null!==(o=cr(n)))&&(i.data=o),Hn(i),o=i):o=null,(e=rr?function(e,t){switch(e){case"compositionend":return cr(t);case"keypress":return 32!==t.which?null:(lr=!0,ir);case"textInput":return(e=t.data)===ir&&lr?null:e;default:return null}}(e,n):function(e,t){if(ur)return"compositionend"===e||!tr&&sr(e,t)?(e=$n(),Wn=Un=Qn=null,ur=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return or&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Jn.getPooled(ar.beforeInput,t,n,r)).data=e,Hn(t)):t=null,null===o?t:null===t?o:[o,t]}},pr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!pr[e.type]:"textarea"===t}var hr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function mr(e,t,n){return(e=Gn.getPooled(hr.change,e,t,n)).type="change",j(n),Hn(e),e}var br=null,gr=null;function yr(e){at(e)}function vr(e){if(xe(zn(e)))return e}function wr(e,t){if("change"===e)return t}var xr=!1;function Er(){br&&(br.detachEvent("onpropertychange",Sr),gr=br=null)}function Sr(e){if("value"===e.propertyName&&vr(gr))if(e=mr(gr,e,lt(e)),F)at(e);else{F=!0;try{A(yr,e)}finally{F=!1,B()}}}function kr(e,t,n){"focus"===e?(Er(),gr=n,(br=t).attachEvent("onpropertychange",Sr)):"blur"===e&&Er()}function Cr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vr(gr)}function Tr(e,t){if("click"===e)return vr(t)}function Pr(e,t){if("input"===e||"change"===e)return vr(t)}P&&(xr=st("input")&&(!document.documentMode||9<document.documentMode));var Or={eventTypes:hr,_isInputEventSupported:xr,extractEvents:function(e,t,n,r){var o=t?zn(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=wr;else if(fr(o))if(xr)a=Pr;else{a=Cr;var l=kr}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Tr);if(a&&(a=a(e,t)))return mr(a,n,r);l&&l(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Pe(o,"number",o.value)}},Nr=Gn.extend({view:null,detail:null}),_r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ir(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_r[e])&&!!t[e]}function jr(){return Ir}var zr=0,Ar=0,Mr=!1,Dr=!1,Rr=Nr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:jr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=zr;return zr=e.screenX,Mr?"mousemove"===e.type?e.screenX-t:0:(Mr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ar;return Ar=e.screenY,Dr?"mousemove"===e.type?e.screenY-t:0:(Dr=!0,0)}}),Fr=Rr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Lr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Br={eventTypes:Lr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&!(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?In(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var l=Rr,s=Lr.mouseLeave,c=Lr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Fr,s=Lr.pointerLeave,c=Lr.pointerEnter,u="pointer");if(e=null==a?i:zn(a),i=null==t?i:zn(t),(s=l.getPooled(s,a,n,r)).type=u+"leave",s.target=e,s.relatedTarget=i,(n=l.getPooled(c,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,a=0,e=l=r;e;e=Mn(e))a++;for(e=0,t=c;t;t=Mn(t))e++;for(;0<a-e;)l=Mn(l),a--;for(;0<e-a;)c=Mn(c),e--;for(;a--;){if(l===c||l===c.alternate)break e;l=Mn(l),c=Mn(c)}l=null}else l=null;for(c=l,l=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)l.push(r),r=Mn(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=Mn(u);for(u=0;u<l.length;u++)Ln(l[u],"bubbled",s);for(u=r.length;0<u--;)Ln(r[u],"captured",n);return 64&o?[s,n]:[s]}},Hr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Qr=Object.prototype.hasOwnProperty;function Ur(e,t){if(Hr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Qr.call(t,n[r])||!Hr(e[n[r]],t[n[r]]))return!1;return!0}var Wr=P&&"documentMode"in document&&11>=document.documentMode,$r={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,qr=null,Gr=null,Xr=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Xr||null==Vr||Vr!==cn(n)?null:(n="selectionStart"in(n=Vr)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gr&&Ur(Gr,n)?null:(Gr=n,(e=Gn.getPooled($r.select,qr,e,t)).type="select",e.target=Vr,Hn(e),e))}var Yr={eventTypes:$r,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Ye(o),i=C.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?zn(t):window,e){case"focus":(fr(o)||"true"===o.contentEditable)&&(Vr=o,qr=t,Gr=null);break;case"blur":Gr=qr=Vr=null;break;case"mousedown":Xr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Xr=!1,Kr(n,r);case"selectionchange":if(Wr)break;case"keydown":case"keyup":return Kr(n,r)}return null}},Zr=Gn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=Gn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eo=Nr.extend({relatedTarget:null});function to(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var no={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ro={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oo=Nr.extend({key:function(e){if(e.key){var t=no[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=to(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ro[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:jr,charCode:function(e){return"keypress"===e.type?to(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?to(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),io=Rr.extend({dataTransfer:null}),ao=Nr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:jr}),lo=Gn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),so=Rr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),co={eventTypes:Dt,extractEvents:function(e,t,n,r){var o=Rt.get(e);if(!o)return null;switch(e){case"keypress":if(0===to(n))return null;case"keydown":case"keyup":e=oo;break;case"blur":case"focus":e=eo;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Rr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=io;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ao;break;case $e:case Ve:case qe:e=Zr;break;case Ge:e=lo;break;case"scroll":e=Nr;break;case"wheel":e=so;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Fr;break;default:e=Gn}return Hn(t=e.getPooled(o,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=An,m=jn,b=zn,T({SimpleEventPlugin:co,EnterLeaveEventPlugin:Br,ChangeEventPlugin:Or,SelectEventPlugin:Yr,BeforeInputEventPlugin:dr});var uo=[],po=-1;function fo(e){0>po||(e.current=uo[po],uo[po]=null,po--)}function ho(e,t){po++,uo[po]=e.current,e.current=t}var mo={},bo={current:mo},go={current:!1},yo=mo;function vo(e,t){var n=e.type.contextTypes;if(!n)return mo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wo(e){return null!=e.childContextTypes}function xo(){fo(go),fo(bo)}function Eo(e,t,n){if(bo.current!==mo)throw Error(a(168));ho(bo,t),ho(go,n)}function So(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,be(t)||"Unknown",i));return o({},n,{},r)}function ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mo,yo=bo.current,ho(bo,e),ho(go,go.current),!0}function Co(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=So(e,t,yo),r.__reactInternalMemoizedMergedChildContext=e,fo(go),fo(bo),ho(bo,e)):fo(go),ho(go,n)}var To=i.unstable_runWithPriority,Po=i.unstable_scheduleCallback,Oo=i.unstable_cancelCallback,No=i.unstable_requestPaint,_o=i.unstable_now,Io=i.unstable_getCurrentPriorityLevel,jo=i.unstable_ImmediatePriority,zo=i.unstable_UserBlockingPriority,Ao=i.unstable_NormalPriority,Mo=i.unstable_LowPriority,Do=i.unstable_IdlePriority,Ro={},Fo=i.unstable_shouldYield,Lo=void 0!==No?No:function(){},Bo=null,Ho=null,Qo=!1,Uo=_o(),Wo=1e4>Uo?_o:function(){return _o()-Uo};function $o(){switch(Io()){case jo:return 99;case zo:return 98;case Ao:return 97;case Mo:return 96;case Do:return 95;default:throw Error(a(332))}}function Vo(e){switch(e){case 99:return jo;case 98:return zo;case 97:return Ao;case 96:return Mo;case 95:return Do;default:throw Error(a(332))}}function qo(e,t){return e=Vo(e),To(e,t)}function Go(e,t,n){return e=Vo(e),Po(e,t,n)}function Xo(e){return null===Bo?(Bo=[e],Ho=Po(jo,Yo)):Bo.push(e),Ro}function Ko(){if(null!==Ho){var e=Ho;Ho=null,Oo(e)}Yo()}function Yo(){if(!Qo&&null!==Bo){Qo=!0;var e=0;try{var t=Bo;qo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bo=null}catch(t){throw null!==Bo&&(Bo=Bo.slice(e+1)),Po(jo,Ko),t}finally{Qo=!1}}}function Zo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Jo(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ei={current:null},ti=null,ni=null,ri=null;function oi(){ri=ni=ti=null}function ii(e){var t=ei.current;fo(ei),e.type._context._currentValue=t}function ai(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function li(e,t){ti=e,ri=ni=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Aa=!0),e.firstContext=null)}function si(e,t){if(ri!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ri=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ni){if(null===ti)throw Error(a(308));ni=t,ti.dependencies={expirationTime:0,firstContext:t,responders:null}}else ni=ni.next=t;return e._currentValue}var ci=!1;function ui(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function pi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function fi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function hi(e,t){var n=e.alternate;null!==n&&di(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function mi(e,t,n,r){var i=e.updateQueue;ci=!1;var a=i.baseQueue,l=i.shared.pending;if(null!==l){if(null!==a){var s=a.next;a.next=l.next,l.next=s}a=l,i.shared.pending=null,null!==(s=e.alternate)&&null!==(s=s.updateQueue)&&(s.baseQueue=l)}if(null!==a){s=a.next;var c=i.baseState,u=0,d=null,p=null,f=null;if(null!==s)for(var h=s;;){if((l=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===f?(p=f=m,d=c):f=f.next=m,l>u&&(u=l)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ws(l,h.suspenseConfig);e:{var b=e,g=h;switch(l=t,m=n,g.tag){case 1:if("function"==typeof(b=g.payload)){c=b.call(m,c,l);break e}c=b;break e;case 3:b.effectTag=-4097&b.effectTag|64;case 0:if(null==(l="function"==typeof(b=g.payload)?b.call(m,c,l):b))break e;c=o({},c,l);break e;case 2:ci=!0}}null!==h.callback&&(e.effectTag|=32,null===(l=i.effects)?i.effects=[h]:l.push(h))}if(null===(h=h.next)||h===s){if(null===(l=i.shared.pending))break;h=a.next=l.next,l.next=s,i.baseQueue=a=l,i.shared.pending=null}}null===f?d=c:f.next=p,i.baseState=d,i.baseQueue=f,xs(u),e.expirationTime=u,e.memoizedState=c}}function bi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!=typeof r)throw Error(a(191,r));r.call(o)}}}var gi=K.ReactCurrentBatchConfig,yi=(new r.Component).refs;function vi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var wi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ls(),o=gi.suspense;(o=pi(r=ss(r,e,o),o)).payload=t,null!=n&&(o.callback=n),fi(e,o),cs(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ls(),o=gi.suspense;(o=pi(r=ss(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),fi(e,o),cs(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ls(),r=gi.suspense;(r=pi(n=ss(n,e,r),r)).tag=2,null!=t&&(r.callback=t),fi(e,r),cs(e,n)}};function xi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&Ur(n,r)&&Ur(o,i))}function Ei(e,t,n){var r=!1,o=mo,i=t.contextType;return"object"==typeof i&&null!==i?i=si(i):(o=wo(t)?yo:bo.current,i=(r=null!=(r=t.contextTypes))?vo(e,o):mo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=wi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Si(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wi.enqueueReplaceState(t,t.state,null)}function ki(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=yi,ui(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=si(i):(i=wo(t)?yo:bo.current,o.context=vo(e,i)),mi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&wi.enqueueReplaceState(o,o.state,null),mi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Ci=Array.isArray;function Ti(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===yi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Pi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Hs(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ws(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ti(e,t,n),r.return=e,r):((r=Qs(n.type,n.key,n.props,null,e.mode,r)).ref=Ti(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$s(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Us(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ws(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Qs(t.type,t.key,t.props,null,e.mode,n)).ref=Ti(e,null,t),n.return=e,n;case te:return(t=$s(t,e.mode,n)).return=e,t}if(Ci(t)||me(t))return(t=Us(t,e.mode,n,null)).return=e,t;Pi(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case te:return n.key===o?u(e,t,n,r):null}if(Ci(n)||me(n))return null!==o?null:d(e,t,n,r,null);Pi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ci(r)||me(r))return d(t,e=e.get(n)||null,r,o,null);Pi(t,r)}return null}function m(o,a,l,s){for(var c=null,u=null,d=a,m=a=0,b=null;null!==d&&m<l.length;m++){d.index>m?(b=d,d=null):b=d.sibling;var g=f(o,d,l[m],s);if(null===g){null===d&&(d=b);break}e&&d&&null===g.alternate&&t(o,d),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g,d=b}if(m===l.length)return n(o,d),c;if(null===d){for(;m<l.length;m++)null!==(d=p(o,l[m],s))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<l.length;m++)null!==(b=h(d,o,m,l[m],s))&&(e&&null!==b.alternate&&d.delete(null===b.key?m:b.key),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b);return e&&d.forEach((function(e){return t(o,e)})),c}function b(o,l,s,c){var u=me(s);if("function"!=typeof u)throw Error(a(150));if(null==(s=u.call(s)))throw Error(a(151));for(var d=u=null,m=l,b=l=0,g=null,y=s.next();null!==m&&!y.done;b++,y=s.next()){m.index>b?(g=m,m=null):g=m.sibling;var v=f(o,m,y.value,c);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),l=i(v,l,b),null===d?u=v:d.sibling=v,d=v,m=g}if(y.done)return n(o,m),u;if(null===m){for(;!y.done;b++,y=s.next())null!==(y=p(o,y.value,c))&&(l=i(y,l,b),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(o,m);!y.done;b++,y=s.next())null!==(y=h(m,o,b,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?b:y.key),l=i(y,l,b),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,s){var c="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===ne){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=Ti(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=Us(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Qs(i.type,i.key,i.props,null,e.mode,s)).ref=Ti(e,r,i),s.return=e,e=s)}return l(e);case te:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$s(i,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Ws(i,e.mode,s)).return=e,e=r),l(e);if(Ci(i))return m(e,r,i,s);if(me(i))return b(e,r,i,s);if(u&&Pi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ni=Oi(!0),_i=Oi(!1),Ii={},ji={current:Ii},zi={current:Ii},Ai={current:Ii};function Mi(e){if(e===Ii)throw Error(a(174));return e}function Di(e,t){switch(ho(Ai,t),ho(zi,e),ho(ji,Ii),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Me(null,"");break;default:t=Me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}fo(ji),ho(ji,t)}function Ri(){fo(ji),fo(zi),fo(Ai)}function Fi(e){Mi(Ai.current);var t=Mi(ji.current),n=Me(t,e.type);t!==n&&(ho(zi,e),ho(ji,n))}function Li(e){zi.current===e&&(fo(ji),fo(zi))}var Bi={current:0};function Hi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===gn||n.data===yn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(64&t.effectTag)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Qi(e,t){return{responder:e,props:t}}var Ui=K.ReactCurrentDispatcher,Wi=K.ReactCurrentBatchConfig,$i=0,Vi=null,qi=null,Gi=null,Xi=!1;function Ki(){throw Error(a(321))}function Yi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Hr(e[n],t[n]))return!1;return!0}function Zi(e,t,n,r,o,i){if($i=i,Vi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ui.current=null===e||null===e.memoizedState?xa:Ea,e=n(r,o),t.expirationTime===$i){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Gi=qi=null,t.updateQueue=null,Ui.current=Sa,e=n(r,o)}while(t.expirationTime===$i)}if(Ui.current=wa,t=null!==qi&&null!==qi.next,$i=0,Gi=qi=Vi=null,Xi=!1,t)throw Error(a(300));return e}function Ji(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Gi?Vi.memoizedState=Gi=e:Gi=Gi.next=e,Gi}function ea(){if(null===qi){var e=Vi.alternate;e=null!==e?e.memoizedState:null}else e=qi.next;var t=null===Gi?Vi.memoizedState:Gi.next;if(null!==t)Gi=t,qi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(qi=e).memoizedState,baseState:qi.baseState,baseQueue:qi.baseQueue,queue:qi.queue,next:null},null===Gi?Vi.memoizedState=Gi=e:Gi=Gi.next=e}return Gi}function ta(e,t){return"function"==typeof t?t(e):t}function na(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=qi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var s=l=i=null,c=o;do{var u=c.expirationTime;if(u<$i){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,u>Vi.expirationTime&&(Vi.expirationTime=u,xs(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),ws(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==o);null===s?i=r:s.next=l,Hr(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ra(e){var t=ea(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);Hr(i,t.memoizedState)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function oa(e){var t=Ji();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e}).dispatch=va.bind(null,Vi,e),[t.memoizedState,e]}function ia(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Vi.updateQueue)?(t={lastEffect:null},Vi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function aa(){return ea().memoizedState}function la(e,t,n,r){var o=Ji();Vi.effectTag|=e,o.memoizedState=ia(1|t,n,void 0,void 0===r?null:r)}function sa(e,t,n,r){var o=ea();r=void 0===r?null:r;var i=void 0;if(null!==qi){var a=qi.memoizedState;if(i=a.destroy,null!==r&&Yi(r,a.deps))return void ia(t,n,i,r)}Vi.effectTag|=e,o.memoizedState=ia(1|t,n,i,r)}function ca(e,t){return la(516,4,e,t)}function ua(e,t){return sa(516,4,e,t)}function da(e,t){return sa(4,2,e,t)}function pa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function fa(e,t,n){return n=null!=n?n.concat([e]):null,sa(4,2,pa.bind(null,t,e),n)}function ha(){}function ma(e,t){return Ji().memoizedState=[e,void 0===t?null:t],e}function ba(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Yi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ga(e,t){var n=ea();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Yi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ya(e,t,n){var r=$o();qo(98>r?98:r,(function(){e(!0)})),qo(97<r?97:r,(function(){var r=Wi.suspense;Wi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Wi.suspense=r}}))}function va(e,t,n){var r=ls(),o=gi.suspense;o={expirationTime:r=ss(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Vi||null!==i&&i===Vi)Xi=!0,o.expirationTime=$i,Vi.expirationTime=$i;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.eagerReducer=i,o.eagerState=l,Hr(l,a))return}catch(e){}cs(e,r)}}var wa={readContext:si,useCallback:Ki,useContext:Ki,useEffect:Ki,useImperativeHandle:Ki,useLayoutEffect:Ki,useMemo:Ki,useReducer:Ki,useRef:Ki,useState:Ki,useDebugValue:Ki,useResponder:Ki,useDeferredValue:Ki,useTransition:Ki},xa={readContext:si,useCallback:ma,useContext:si,useEffect:ca,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,la(4,2,pa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return la(4,2,e,t)},useMemo:function(e,t){var n=Ji();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ji();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,Vi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ji().memoizedState=e},useState:oa,useDebugValue:ha,useResponder:Qi,useDeferredValue:function(e,t){var n=oa(e),r=n[0],o=n[1];return ca((function(){var n=Wi.suspense;Wi.suspense=void 0===t?null:t;try{o(e)}finally{Wi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=oa(!1),n=t[0];return t=t[1],[ma(ya.bind(null,t,e),[t,e]),n]}},Ea={readContext:si,useCallback:ba,useContext:si,useEffect:ua,useImperativeHandle:fa,useLayoutEffect:da,useMemo:ga,useReducer:na,useRef:aa,useState:function(){return na(ta)},useDebugValue:ha,useResponder:Qi,useDeferredValue:function(e,t){var n=na(ta),r=n[0],o=n[1];return ua((function(){var n=Wi.suspense;Wi.suspense=void 0===t?null:t;try{o(e)}finally{Wi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(ta),n=t[0];return t=t[1],[ba(ya.bind(null,t,e),[t,e]),n]}},Sa={readContext:si,useCallback:ba,useContext:si,useEffect:ua,useImperativeHandle:fa,useLayoutEffect:da,useMemo:ga,useReducer:ra,useRef:aa,useState:function(){return ra(ta)},useDebugValue:ha,useResponder:Qi,useDeferredValue:function(e,t){var n=ra(ta),r=n[0],o=n[1];return ua((function(){var n=Wi.suspense;Wi.suspense=void 0===t?null:t;try{o(e)}finally{Wi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ra(ta),n=t[0];return t=t[1],[ba(ya.bind(null,t,e),[t,e]),n]}},ka=null,Ca=null,Ta=!1;function Pa(e,t){var n=Ls(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Oa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Na(e){if(Ta){var t=Ca;if(t){var n=t;if(!Oa(e,t)){if(!(t=Cn(n.nextSibling))||!Oa(e,t))return e.effectTag=-1025&e.effectTag|2,Ta=!1,void(ka=e);Pa(ka,n)}ka=e,Ca=Cn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ta=!1,ka=e}}function _a(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ka=e}function Ia(e){if(e!==ka)return!1;if(!Ta)return _a(e),Ta=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!En(t,e.memoizedProps))for(t=Ca;t;)Pa(e,t),t=Cn(t.nextSibling);if(_a(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===bn){if(0===t){Ca=Cn(e.nextSibling);break e}t--}else n!==mn&&n!==yn&&n!==gn||t++}e=e.nextSibling}Ca=null}}else Ca=ka?Cn(e.stateNode.nextSibling):null;return!0}function ja(){Ca=ka=null,Ta=!1}var za=K.ReactCurrentOwner,Aa=!1;function Ma(e,t,n,r){t.child=null===e?_i(t,null,n,r):Ni(t,e.child,n,r)}function Da(e,t,n,r,o){n=n.render;var i=t.ref;return li(t,o),r=Zi(e,t,n,r,i,o),null===e||Aa?(t.effectTag|=1,Ma(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ja(e,t,o))}function Ra(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Bs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Qs(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Ur)(o,r)&&e.ref===t.ref)?Ja(e,t,i):(t.effectTag|=1,(e=Hs(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,o,i){return null!==e&&Ur(e.memoizedProps,r)&&e.ref===t.ref&&(Aa=!1,o<i)?(t.expirationTime=e.expirationTime,Ja(e,t,i)):Ba(e,t,n,r,i)}function La(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ba(e,t,n,r,o){var i=wo(n)?yo:bo.current;return i=vo(t,i),li(t,o),n=Zi(e,t,n,r,i,o),null===e||Aa?(t.effectTag|=1,Ma(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ja(e,t,o))}function Ha(e,t,n,r,o){if(wo(n)){var i=!0;ko(t)}else i=!1;if(li(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ei(t,n,r),ki(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;c="object"==typeof c&&null!==c?si(c):vo(t,c=wo(n)?yo:bo.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&Si(t,a,r,c),ci=!1;var p=t.memoizedState;a.state=p,mi(t,r,a,o),s=t.memoizedState,l!==r||p!==s||go.current||ci?("function"==typeof u&&(vi(t,n,u,r),s=t.memoizedState),(l=ci||xi(t,n,l,r,p,s,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,di(e,t),l=t.memoizedProps,a.props=t.type===t.elementType?l:Jo(t.type,l),s=a.context,c="object"==typeof(c=n.contextType)&&null!==c?si(c):vo(t,c=wo(n)?yo:bo.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&Si(t,a,r,c),ci=!1,s=t.memoizedState,a.state=s,mi(t,r,a,o),p=t.memoizedState,l!==r||s!==p||go.current||ci?("function"==typeof u&&(vi(t,n,u,r),p=t.memoizedState),(u=ci||xi(t,n,l,r,s,p,c))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),r=!1);return Qa(e,t,n,r,i,o)}function Qa(e,t,n,r,o,i){La(e,t);var a=!!(64&t.effectTag);if(!r&&!a)return o&&Co(t,n,!1),Ja(e,t,i);r=t.stateNode,za.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Ni(t,e.child,null,i),t.child=Ni(t,null,l,i)):Ma(e,t,l,i),t.memoizedState=r.state,o&&Co(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?Eo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Eo(0,t.context,!1),Di(e,t.containerInfo)}var Wa,$a,Va,qa,Ga={dehydrated:null,retryTime:0};function Xa(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Bi.current,l=!1;if((r=!!(64&t.effectTag))||(r=!!(2&a)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ho(Bi,1&a),null===e){if(void 0!==i.fallback&&Na(t),l){if(l=i.fallback,(i=Us(null,o,0,null)).return=t,!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Us(l,o,n,null)).return=t,i.sibling=n,t.memoizedState=Ga,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=_i(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,l){if(i=i.fallback,(n=Hs(e,e.pendingProps)).return=t,!(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;return(o=Hs(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Ga,t.child=n,o}return n=Ni(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=i.fallback,(i=Us(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),!(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Us(l,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ga,t.child=i,n}return t.memoizedState=null,t.child=Ni(t,e,i.children,n)}function Ka(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ai(e.return,t)}function Ya(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Za(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ma(e,t,r.children,n),2&(r=Bi.current))r=1&r|2,t.effectTag|=64;else{if(null!==e&&64&e.effectTag)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ka(e,n);else if(19===e.tag)Ka(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ho(Bi,r),2&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Hi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ya(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Hi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ya(t,!0,n,null,i,t.lastEffect);break;case"together":Ya(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ja(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&xs(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Hs(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hs(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function el(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return wo(t.type)&&xo(),null;case 3:return Ri(),fo(go),fo(bo),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ia(t)||(t.effectTag|=4),$a(t),null;case 5:Li(t),n=Mi(Ai.current);var i=t.type;if(null!==e&&null!=t.stateNode)Va(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Mi(ji.current),Ia(t)){r=t.stateNode,i=t.type;var l=t.memoizedProps;switch(r[On]=t,r[Nn]=l,i){case"iframe":case"object":case"embed":Vt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Vt(Xe[e],r);break;case"source":Vt("error",r);break;case"img":case"image":case"link":Vt("error",r),Vt("load",r);break;case"form":Vt("reset",r),Vt("submit",r);break;case"details":Vt("toggle",r);break;case"input":Se(r,l),Vt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Vt("invalid",r),ln(n,"onChange");break;case"textarea":Ie(r,l),Vt("invalid",r),ln(n,"onChange")}for(var s in rn(i,l),e=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):k.hasOwnProperty(s)&&null!=c&&ln(n,s)}switch(i){case"input":we(r),Te(r,l,!0);break;case"textarea":we(r),ze(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(s=9===n.nodeType?n:n.ownerDocument,e===an&&(e=Ae(i)),e===an?"script"===i?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(i,{is:r.is}):(e=s.createElement(i),"select"===i&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,i),e[On]=t,e[Nn]=r,Wa(e,t,!1,!1),t.stateNode=e,s=on(i,r),i){case"iframe":case"object":case"embed":Vt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Xe.length;c++)Vt(Xe[c],e);c=r;break;case"source":Vt("error",e),c=r;break;case"img":case"image":case"link":Vt("error",e),Vt("load",e),c=r;break;case"form":Vt("reset",e),Vt("submit",e),c=r;break;case"details":Vt("toggle",e),c=r;break;case"input":Se(e,r),c=Ee(e,r),Vt("invalid",e),ln(n,"onChange");break;case"option":c=Oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=o({},r,{value:void 0}),Vt("invalid",e),ln(n,"onChange");break;case"textarea":Ie(e,r),c=_e(e,r),Vt("invalid",e),ln(n,"onChange");break;default:c=r}rn(i,c);var u=c;for(l in u)if(u.hasOwnProperty(l)){var d=u[l];"style"===l?tn(e,d):"dangerouslySetInnerHTML"===l?null!=(d=d?d.__html:void 0)&&Fe(e,d):"children"===l?"string"==typeof d?("textarea"!==i||""!==d)&&Le(e,d):"number"==typeof d&&Le(e,""+d):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(k.hasOwnProperty(l)?null!=d&&ln(n,l):null!=d&&Y(e,l,d,s))}switch(i){case"input":we(e),Te(e,r,!1);break;case"textarea":we(e),ze(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ne(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=sn)}xn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Mi(Ai.current),Mi(ji.current),Ia(t)?(n=t.stateNode,r=t.memoizedProps,n[On]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[On]=t,t.stateNode=n)}return null;case 13:return fo(Bi),r=t.memoizedState,64&t.effectTag?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ia(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(l=t.firstEffect)?(t.firstEffect=i,i.nextEffect=l):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&2&t.mode&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||1&Bi.current?Hl===Il&&(Hl=Al):(Hl!==Il&&Hl!==Al||(Hl=Ml),0!==Vl&&null!==Fl&&(Gs(Fl,Bl),Xs(Fl,Vl)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ri(),$a(t),null;case 10:return ii(t),null;case 19:if(fo(Bi),null===(r=t.memoizedState))return null;if(i=!!(64&t.effectTag),null===(l=r.rendering)){if(i)el(r,!1);else if(Hl!==Il||null!==e&&64&e.effectTag)for(l=t.child;null!==l;){if(null!==(e=Hi(l))){for(t.effectTag|=64,el(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)l=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=l,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,l=e.dependencies,i.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),r=r.sibling;return ho(Bi,1&Bi.current|2),t.child}l=l.sibling}}else{if(!i)if(null!==(e=Hi(l))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),el(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,el(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Wo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Wo(),n.sibling=null,t=Bi.current,ho(Bi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function nl(e){switch(e.tag){case 1:wo(e.type)&&xo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ri(),fo(go),fo(bo),64&(t=e.effectTag))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Li(e),null;case 13:return fo(Bi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return fo(Bi),null;case 4:return Ri(),null;case 10:return ii(e),null;default:return null}}function rl(e,t){return{value:e,source:t,stack:ge(t)}}Wa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$a=function(){},Va=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l,s,c=t.stateNode;switch(Mi(ji.current),e=null,n){case"input":a=Ee(c,a),r=Ee(c,r),e=[];break;case"option":a=Oe(c,a),r=Oe(c,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=_e(c,a),r=_e(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=sn)}for(l in rn(n,r),n=null,a)if(!r.hasOwnProperty(l)&&a.hasOwnProperty(l)&&null!=a[l])if("style"===l)for(s in c=a[l])c.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(k.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in r){var u=r[l];if(c=null!=a?a[l]:void 0,r.hasOwnProperty(l)&&u!==c&&(null!=u||null!=c))if("style"===l)if(c){for(s in c)!c.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&c[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(e||(e=[]),e.push(l,n)),n=u;else"dangerouslySetInnerHTML"===l?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(l,u)):"children"===l?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(l,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(k.hasOwnProperty(l)?(null!=u&&ln(i,l),e||c===u||(e=[])):(e=e||[]).push(l,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},qa=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ol="function"==typeof WeakSet?WeakSet:Set;function il(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ge(n)),null!==n&&be(n.type),t=t.value,null!==e&&1===e.tag&&be(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function al(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){zs(e,t)}else t.current=null}function ll(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Jo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function sl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function cl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ul(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void cl(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Jo(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&bi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}bi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&xn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Mt(n)))))}throw Error(a(163))}function dl(e,t,n){switch("function"==typeof Rs&&Rs(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;qo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){zs(o,e)}}e=e.next}while(e!==r)}))}break;case 1:al(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){zs(e,t)}}(t,n);break;case 5:al(t);break;case 4:gl(e,t,n)}}function pl(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&pl(t)}function fl(e){return 5===e.tag||3===e.tag||4===e.tag}function hl(e){e:{for(var t=e.return;null!==t;){if(fl(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Le(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||fl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?ml(e,n,t):bl(e,n,t)}function ml(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=sn));else if(4!==r&&null!==(e=e.child))for(ml(e,t,n),e=e.sibling;null!==e;)ml(e,t,n),e=e.sibling}function bl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(bl(e,t,n),e=e.sibling;null!==e;)bl(e,t,n),e=e.sibling}function gl(e,t,n){for(var r,o,i=t,l=!1;;){if(!l){l=i.return;e:for(;;){if(null===l)throw Error(a(160));switch(r=l.stateNode,l.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}l=l.return}l=!0}if(5===i.tag||6===i.tag){e:for(var s=e,c=i,u=n,d=c;;)if(dl(s,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break e;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(s=r,c=i.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(dl(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(l=!1)}i.sibling.return=i.return,i=i.sibling}}function yl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void sl(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Nn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),on(e,o),t=on(e,r),o=0;o<i.length;o+=2){var l=i[o],s=i[o+1];"style"===l?tn(n,s):"dangerouslySetInnerHTML"===l?Fe(n,s):"children"===l?Le(n,s):Y(n,l,s,t)}switch(e){case"input":Ce(n,r);break;case"textarea":je(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ne(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ne(n,!!r.multiple,r.defaultValue,!0):Ne(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Mt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Gl=Wo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=en("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void vl(t);case 19:return void vl(t)}throw Error(a(163))}function vl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ol),t.forEach((function(t){var r=Ms.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var wl="function"==typeof WeakMap?WeakMap:Map;function xl(e,t,n){(n=pi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yl||(Yl=!0,Zl=r),il(e,t)},n}function El(e,t,n){(n=pi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return il(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Jl?Jl=new Set([this]):Jl.add(this),il(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Sl,kl=Math.ceil,Cl=K.ReactCurrentDispatcher,Tl=K.ReactCurrentOwner,Pl=0,Ol=8,Nl=16,_l=32,Il=0,jl=1,zl=2,Al=3,Ml=4,Dl=5,Rl=Pl,Fl=null,Ll=null,Bl=0,Hl=Il,Ql=null,Ul=1073741823,Wl=1073741823,$l=null,Vl=0,ql=!1,Gl=0,Xl=500,Kl=null,Yl=!1,Zl=null,Jl=null,es=!1,ts=null,ns=90,rs=null,os=0,is=null,as=0;function ls(){return(Rl&(Nl|_l))!==Pl?1073741821-(Wo()/10|0):0!==as?as:as=1073741821-(Wo()/10|0)}function ss(e,t,n){if(!(2&(t=t.mode)))return 1073741823;var r=$o();if(!(4&t))return 99===r?1073741823:1073741822;if((Rl&Nl)!==Pl)return Bl;if(null!==n)e=Zo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Zo(e,150,100);break;case 97:case 96:e=Zo(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Fl&&e===Bl&&--e,e}function cs(e,t){if(50<os)throw os=0,is=null,Error(a(185));if(null!==(e=us(e,t))){var n=$o();1073741823===t?(Rl&Ol)!==Pl&&(Rl&(Nl|_l))===Pl?hs(e):(ps(e),Rl===Pl&&Ko()):ps(e),(4&Rl)===Pl||98!==n&&99!==n||(null===rs?rs=new Map([[e,t]]):(void 0===(n=rs.get(e))||n>t)&&rs.set(e,t))}}function us(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Fl===o&&(xs(t),Hl===Ml&&Gs(o,Bl)),Xs(o,t)),o}function ds(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!qs(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function ps(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Xo(hs.bind(null,e));else{var t=ds(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=ls();if(r=1073741823===t?99:1===t||2===t?95:0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==Ro&&Oo(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Xo(hs.bind(null,e)):Go(r,fs.bind(null,e),{timeout:10*(1073741821-t)-Wo()}),e.callbackNode=t}}}function fs(e,t){if(as=0,t)return Ks(e,t=ls()),ps(e),null;var n=ds(e);if(0!==n){if(t=e.callbackNode,(Rl&(Nl|_l))!==Pl)throw Error(a(327));if(_s(),e===Fl&&n===Bl||gs(e,n),null!==Ll){var r=Rl;Rl|=Nl;for(var o=vs();;)try{Ss();break}catch(t){ys(e,t)}if(oi(),Rl=r,Cl.current=o,Hl===jl)throw t=Ql,gs(e,n),Gs(e,n),ps(e),t;if(null===Ll)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Hl,Fl=null,r){case Il:case jl:throw Error(a(345));case zl:Ks(e,2<n?2:n);break;case Al:if(Gs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ts(o)),1073741823===Ul&&10<(o=Gl+Xl-Wo())){if(ql){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,gs(e,n);break}}if(0!==(i=ds(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Sn(Ps.bind(null,e),o);break}Ps(e);break;case Ml:if(Gs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Ts(o)),ql&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,gs(e,n);break}if(0!==(o=ds(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Wl?r=10*(1073741821-Wl)-Wo():1073741823===Ul?r=0:(r=10*(1073741821-Ul)-5e3,0>(r=(o=Wo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kl(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=Sn(Ps.bind(null,e),r);break}Ps(e);break;case Dl:if(1073741823!==Ul&&null!==$l){i=Ul;var l=$l;if(0>=(r=0|l.busyMinDurationMs)?r=0:(o=0|l.busyDelayMs,r=(i=Wo()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Gs(e,n),e.timeoutHandle=Sn(Ps.bind(null,e),r);break}}Ps(e);break;default:throw Error(a(329))}if(ps(e),e.callbackNode===t)return fs.bind(null,e)}}return null}function hs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Rl&(Nl|_l))!==Pl)throw Error(a(327));if(_s(),e===Fl&&t===Bl||gs(e,t),null!==Ll){var n=Rl;Rl|=Nl;for(var r=vs();;)try{Es();break}catch(t){ys(e,t)}if(oi(),Rl=n,Cl.current=r,Hl===jl)throw n=Ql,gs(e,t),Gs(e,t),ps(e),n;if(null!==Ll)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Fl=null,Ps(e),ps(e)}return null}function ms(e,t){var n=Rl;Rl|=1;try{return e(t)}finally{(Rl=n)===Pl&&Ko()}}function bs(e,t){var n=Rl;Rl&=-2,Rl|=Ol;try{return e(t)}finally{(Rl=n)===Pl&&Ko()}}function gs(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,kn(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&xo();break;case 3:Ri(),fo(go),fo(bo);break;case 5:Li(r);break;case 4:Ri();break;case 13:case 19:fo(Bi);break;case 10:ii(r)}n=n.return}Fl=e,Ll=Hs(e.current,null),Bl=t,Hl=Il,Ql=null,Wl=Ul=1073741823,$l=null,Vl=0,ql=!1}function ys(e,t){for(;;){try{if(oi(),Ui.current=wa,Xi)for(var n=Vi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if($i=0,Gi=qi=Vi=null,Xi=!1,null===Ll||null===Ll.return)return Hl=jl,Ql=t,Ll=null;e:{var o=e,i=Ll.return,a=Ll,l=t;if(t=Bl,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var s=l;if(!(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=!!(1&Bi.current),d=i;do{var p;if(p=13===d.tag){var f=d.memoizedState;if(null!==f)p=null!==f.dehydrated;else{var h=d.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(p){var m=d.updateQueue;if(null===m){var b=new Set;b.add(s),d.updateQueue=b}else m.add(s);if(!(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=pi(1073741823,null);g.tag=2,fi(a,g)}a.expirationTime=1073741823;break e}l=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new wl,l=new Set,y.set(s,l)):void 0===(l=y.get(s))&&(l=new Set,y.set(s,l)),!l.has(a)){l.add(a);var v=As.bind(null,o,s,a);s.then(v,v)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);l=Error((be(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ge(a))}Hl!==Dl&&(Hl=zl),l=rl(l,a),d=i;do{switch(d.tag){case 3:s=l,d.effectTag|=4096,d.expirationTime=t,hi(d,xl(d,s,t));break e;case 1:s=l;var w=d.type,x=d.stateNode;if(!(64&d.effectTag||"function"!=typeof w.getDerivedStateFromError&&(null===x||"function"!=typeof x.componentDidCatch||null!==Jl&&Jl.has(x)))){d.effectTag|=4096,d.expirationTime=t,hi(d,El(d,s,t));break e}}d=d.return}while(null!==d)}Ll=Cs(Ll)}catch(e){t=e;continue}break}}function vs(){var e=Cl.current;return Cl.current=wa,null===e?wa:e}function ws(e,t){e<Ul&&2<e&&(Ul=e),null!==t&&e<Wl&&2<e&&(Wl=e,$l=t)}function xs(e){e>Vl&&(Vl=e)}function Es(){for(;null!==Ll;)Ll=ks(Ll)}function Ss(){for(;null!==Ll&&!Fo();)Ll=ks(Ll)}function ks(e){var t=Sl(e.alternate,e,Bl);return e.memoizedProps=e.pendingProps,null===t&&(t=Cs(e)),Tl.current=null,t}function Cs(e){Ll=e;do{var t=Ll.alternate;if(e=Ll.return,2048&Ll.effectTag){if(null!==(t=nl(Ll)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(t=tl(t,Ll,Bl),1===Bl||1!==Ll.childExpirationTime){for(var n=0,r=Ll.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Ll.childExpirationTime=n}if(null!==t)return t;null!==e&&!(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ll.firstEffect),null!==Ll.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ll.firstEffect),e.lastEffect=Ll.lastEffect),1<Ll.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ll:e.firstEffect=Ll,e.lastEffect=Ll))}if(null!==(t=Ll.sibling))return t;Ll=e}while(null!==Ll);return Hl===Il&&(Hl=Dl),null}function Ts(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Ps(e){var t=$o();return qo(99,Os.bind(null,e,t)),null}function Os(e,t){do{_s()}while(null!==ts);if((Rl&(Nl|_l))!==Pl)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=Ts(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Fl&&(Ll=Fl=null,Bl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Rl;Rl|=_l,Tl.current=null,vn=$t;var l=fn();if(hn(l)){if("selectionStart"in l)var s={start:l.selectionStart,end:l.selectionEnd};else e:{var c=(s=(s=l.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var u=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{s.nodeType,d.nodeType}catch(e){s=null;break e}var p=0,f=-1,h=-1,m=0,b=0,g=l,y=null;t:for(;;){for(var v;g!==s||0!==u&&3!==g.nodeType||(f=p+u),g!==d||0!==c&&3!==g.nodeType||(h=p+c),3===g.nodeType&&(p+=g.nodeValue.length),null!==(v=g.firstChild);)y=g,g=v;for(;;){if(g===l)break t;if(y===s&&++m===u&&(f=p),y===d&&++b===c&&(h=p),null!==(v=g.nextSibling))break;y=(g=y).parentNode}g=v}s=-1===f||-1===h?null:{start:f,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;wn={activeElementDetached:null,focusedElem:l,selectionRange:s},$t=!1,Kl=o;do{try{Ns()}catch(e){if(null===Kl)throw Error(a(330));zs(Kl,e),Kl=Kl.nextEffect}}while(null!==Kl);Kl=o;do{try{for(l=e,s=t;null!==Kl;){var w=Kl.effectTag;if(16&w&&Le(Kl.stateNode,""),128&w){var x=Kl.alternate;if(null!==x){var E=x.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&w){case 2:hl(Kl),Kl.effectTag&=-3;break;case 6:hl(Kl),Kl.effectTag&=-3,yl(Kl.alternate,Kl);break;case 1024:Kl.effectTag&=-1025;break;case 1028:Kl.effectTag&=-1025,yl(Kl.alternate,Kl);break;case 4:yl(Kl.alternate,Kl);break;case 8:gl(l,u=Kl,s),pl(u)}Kl=Kl.nextEffect}}catch(e){if(null===Kl)throw Error(a(330));zs(Kl,e),Kl=Kl.nextEffect}}while(null!==Kl);if(E=wn,x=fn(),w=E.focusedElem,s=E.selectionRange,x!==w&&w&&w.ownerDocument&&pn(w.ownerDocument.documentElement,w)){null!==s&&hn(w)&&(x=s.start,void 0===(E=s.end)&&(E=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(E,w.value.length)):(E=(x=w.ownerDocument||document)&&x.defaultView||window).getSelection&&(E=E.getSelection(),u=w.textContent.length,l=Math.min(s.start,u),s=void 0===s.end?l:Math.min(s.end,u),!E.extend&&l>s&&(u=s,s=l,l=u),u=dn(w,l),d=dn(w,s),u&&d&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==d.node||E.focusOffset!==d.offset)&&((x=x.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),l>s?(E.addRange(x),E.extend(d.node,d.offset)):(x.setEnd(d.node,d.offset),E.addRange(x))))),x=[];for(E=w;E=E.parentNode;)1===E.nodeType&&x.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<x.length;w++)(E=x[w]).element.scrollLeft=E.left,E.element.scrollTop=E.top}$t=!!vn,wn=vn=null,e.current=n,Kl=o;do{try{for(w=e;null!==Kl;){var S=Kl.effectTag;if(36&S&&ul(w,Kl.alternate,Kl),128&S){x=void 0;var k=Kl.ref;if(null!==k){var C=Kl.stateNode;Kl.tag,x=C,"function"==typeof k?k(x):k.current=x}}Kl=Kl.nextEffect}}catch(e){if(null===Kl)throw Error(a(330));zs(Kl,e),Kl=Kl.nextEffect}}while(null!==Kl);Kl=null,Lo(),Rl=i}else e.current=n;if(es)es=!1,ts=e,ns=t;else for(Kl=o;null!==Kl;)t=Kl.nextEffect,Kl.nextEffect=null,Kl=t;if(0===(t=e.firstPendingTime)&&(Jl=null),1073741823===t?e===is?os++:(os=0,is=e):os=0,"function"==typeof Ds&&Ds(n.stateNode,r),ps(e),Yl)throw Yl=!1,e=Zl,Zl=null,e;return(Rl&Ol)!==Pl||Ko(),null}function Ns(){for(;null!==Kl;){var e=Kl.effectTag;256&e&&ll(Kl.alternate,Kl),!(512&e)||es||(es=!0,Go(97,(function(){return _s(),null}))),Kl=Kl.nextEffect}}function _s(){if(90!==ns){var e=97<ns?97:ns;return ns=90,qo(e,Is)}}function Is(){if(null===ts)return!1;var e=ts;if(ts=null,(Rl&(Nl|_l))!==Pl)throw Error(a(331));var t=Rl;for(Rl|=_l,e=e.current.firstEffect;null!==e;){try{var n=e;if(512&n.effectTag)switch(n.tag){case 0:case 11:case 15:case 22:sl(5,n),cl(5,n)}}catch(t){if(null===e)throw Error(a(330));zs(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Rl=t,Ko(),!0}function js(e,t,n){fi(e,t=xl(e,t=rl(n,t),1073741823)),null!==(e=us(e,1073741823))&&ps(e)}function zs(e,t){if(3===e.tag)js(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){js(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Jl||!Jl.has(r))){fi(n,e=El(n,e=rl(t,e),1073741823)),null!==(n=us(n,1073741823))&&ps(n);break}}n=n.return}}function As(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Fl===e&&Bl===n?Hl===Ml||Hl===Al&&1073741823===Ul&&Wo()-Gl<Xl?gs(e,Bl):ql=!0:qs(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,ps(e)))}function Ms(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=ss(t=ls(),e,null)),null!==(e=us(e,t))&&ps(e)}Sl=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||go.current)Aa=!0;else{if(r<n){switch(Aa=!1,t.tag){case 3:Ua(t),ja();break;case 5:if(Fi(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:wo(t.type)&&ko(t);break;case 4:Di(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,ho(ei,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Xa(e,t,n):(ho(Bi,1&Bi.current),null!==(t=Ja(e,t,n))?t.sibling:null);ho(Bi,1&Bi.current);break;case 19:if(r=t.childExpirationTime>=n,64&e.effectTag){if(r)return Za(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),ho(Bi,Bi.current),!r)return null}return Ja(e,t,n)}Aa=!1}}else Aa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=vo(t,bo.current),li(t,n),o=Zi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,wo(r)){var i=!0;ko(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ui(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&vi(t,r,l,e),o.updater=wi,t.stateNode=o,o._reactInternalFiber=t,ki(t,r,e,n),t=Qa(null,t,r,!0,i,n)}else t.tag=0,Ma(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"==typeof e)return Bs(e)?1:0;if(null!=e){if((e=e.$$typeof)===se)return 11;if(e===de)return 14}return 2}(o),e=Jo(o,e),i){case 0:t=Ba(null,t,o,e,n);break e;case 1:t=Ha(null,t,o,e,n);break e;case 11:t=Da(null,t,o,e,n);break e;case 14:t=Ra(null,t,o,Jo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ha(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 3:if(Ua(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,di(e,t),mi(t,r,null,n),(r=t.memoizedState.element)===o)ja(),t=Ja(e,t,n);else{if((o=t.stateNode.hydrate)&&(Ca=Cn(t.stateNode.containerInfo.firstChild),ka=t,o=Ta=!0),o)for(n=_i(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ma(e,t,r,n),ja();t=t.child}return t;case 5:return Fi(t),null===e&&Na(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,En(r,o)?l=null:null!==i&&En(r,i)&&(t.effectTag|=16),La(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ma(e,t,l,n),t=t.child),t;case 6:return null===e&&Na(t),null;case 13:return Xa(e,t,n);case 4:return Di(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ni(t,null,r,n):Ma(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Da(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 7:return Ma(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ma(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var s=t.type._context;if(ho(ei,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0==(i=Hr(s,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===o.children&&!go.current){t=Ja(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&u.observedBits&i){1===s.tag&&((u=pi(n,null)).tag=2,fi(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ai(s.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Ma(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,li(t,n),r=r(o=si(o,i.unstable_observedBits)),t.effectTag|=1,Ma(e,t,r,n),t.child;case 14:return i=Jo(o=t.type,t.pendingProps),Ra(e,t,o,i=Jo(o.type,i),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,wo(r)?(e=!0,ko(t)):e=!1,li(t,n),Ei(t,r,o),ki(t,r,o,n),Qa(null,t,r,!0,e,n);case 19:return Za(e,t,n)}throw Error(a(156,t.tag))};var Ds=null,Rs=null;function Fs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ls(e,t,n,r){return new Fs(e,t,n,r)}function Bs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hs(e,t){var n=e.alternate;return null===n?((n=Ls(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qs(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Bs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case ne:return Us(n.children,o,i,t);case le:l=8,o|=7;break;case re:l=8,o|=1;break;case oe:return(e=Ls(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case ce:return(e=Ls(13,n,t,o)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=Ls(19,n,t,o)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:l=10;break e;case ae:l=9;break e;case se:l=11;break e;case de:l=14;break e;case pe:l=16,r=null;break e;case fe:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ls(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Us(e,t,n,r){return(e=Ls(7,e,r,t)).expirationTime=n,e}function Ws(e,t,n){return(e=Ls(6,e,null,t)).expirationTime=n,e}function $s(e,t,n){return(t=Ls(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vs(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function qs(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Gs(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Xs(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Ks(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ys(e,t,n,r){var o=t.current,i=ls(),l=gi.suspense;i=ss(i,o,l);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(wo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var c=n.type;if(wo(c)){n=So(n,c,s);break e}}n=s}else n=mo;return null===t.context?t.context=n:t.pendingContext=n,(t=pi(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fi(o,t),cs(o,i),i}function Zs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Js(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function ec(e,t){Js(e,t),(e=e.alternate)&&Js(e,t)}function tc(e,t,n){var r=new Vs(e,t,n=null!=n&&!0===n.hydrate),o=Ls(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,ui(o),e[_n]=r.current,n&&0!==t&&function(e,t){var n=Ye(t);Ct.forEach((function(e){ft(e,t,n)})),Tt.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Zs(a);l.call(e)}}Ys(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=Zs(a);s.call(e)}}bs((function(){Ys(t,a,e,o)}))}return Zs(a)}function oc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}tc.prototype.render=function(e){Ys(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ys(null,e,null,(function(){t[_n]=null}))},ht=function(e){if(13===e.tag){var t=Zo(ls(),150,100);cs(e,t),ec(e,t)}},mt=function(e){13===e.tag&&(cs(e,3),ec(e,3))},bt=function(e){if(13===e.tag){var t=ls();cs(e,t=ss(t,e,null)),ec(e,t)}},O=function(e,t,n){switch(t){case"input":if(Ce(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=An(r);if(!o)throw Error(a(90));xe(r),Ce(r,o)}}}break;case"textarea":je(e,n);break;case"select":null!=(t=n.value)&&Ne(e,!!n.multiple,t,!1)}},A=ms,M=function(e,t,n,r,o){var i=Rl;Rl|=4;try{return qo(98,e.bind(null,t,n,r,o))}finally{(Rl=i)===Pl&&Ko()}},D=function(){(Rl&(1|Nl|_l))===Pl&&(function(){if(null!==rs){var e=rs;rs=null,e.forEach((function(e,t){Ks(t,e),ps(t)})),Ko()}}(),_s())},R=function(e,t){var n=Rl;Rl|=2;try{return e(t)}finally{(Rl=n)===Pl&&Ko()}};var ic={Events:[jn,zn,An,T,S,Hn,function(e){rt(e,Bn)},j,z,Kt,at,_s,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;!function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ds=function(e){try{t.onCommitFiberRoot(n,e,void 0,!(64&~e.current.effectTag))}catch(e){}},Rs=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:K.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=tt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:In,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ic,t.createPortal=oc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=tt(t))?null:e.stateNode},t.flushSync=function(e,t){if((Rl&(Nl|_l))!==Pl)throw Error(a(187));var n=Rl;Rl|=1;try{return qo(99,e.bind(null,t))}finally{Rl=n,Ko()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(a(40));return!!e._reactRootContainer&&(bs((function(){rc(null,null,e,!1,(function(){e._reactRootContainer=null,e[_n]=null}))})),!0)},t.unstable_batchedUpdates=ms,t.unstable_createPortal=function(e,t){return oc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return rc(e,t,n,!1,r)},t.version="16.14.0"},8325:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6067)},4403:(e,t,n)=>{"use strict";var r=n(1664),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,b="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||y}function x(){}function E(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var S=E.prototype=new x;S.constructor=E,r(S,w.prototype),S.isPureReactComponent=!0;var k={current:null},C=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:k.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var N=/\/+/g,_=[];function I(e,t,n,r){if(_.length){var o=_.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>_.length&&_.push(e)}function z(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return n(r,e,""===t?"."+M(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=t+M(o=e[s],s);l+=z(o,c,n,r)}else if("function"==typeof(c=null===e||"object"!=typeof e?null:"function"==typeof(c=b&&e[b]||e["@@iterator"])?c:null))for(e=c.call(e),s=0;!(o=e.next()).done;)l+=z(o=o.value,c=t+M(o,s++),n,r);else if("object"===o)throw n=""+e,Error(g(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return l}function A(e,t,n){return null==e?0:z(e,"",t,n)}function M(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function R(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(O(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(N,"$&/")+"/"),A(e,R,t=I(t,i,r,o)),j(t)}var L={current:null};function B(){var e=L.current;if(null===e)throw Error(g(321));return e}var H={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;A(e,D,t=I(null,null,t,n)),j(t)},count:function(e){return A(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!O(e))throw Error(g(143));return e}},t.Component=w,t.Fragment=l,t.Profiler=c,t.PureComponent=E,t.StrictMode=s,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,t.cloneElement=function(e,t,n){if(null==e)throw Error(g(267,e));var o=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)C.call(t,u)&&!T.hasOwnProperty(u)&&(o[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},3696:(e,t,n)=>{"use strict";e.exports=n(4403)},7699:(e,t)=>{"use strict";var n,r,o,i,a;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,s=null,c=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(c,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(c,0))},r=function(e,t){s=setTimeout(e,t)},o=function(){clearTimeout(s)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,f=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var b=p.now();t.unstable_now=function(){return p.now()-b}}var g=!1,y=null,v=-1,w=5,x=0;i=function(){return t.unstable_now()>=x},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,S=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();x=e+w;try{y(!0,e)?S.postMessage(null):(g=!1,y=null)}catch(e){throw S.postMessage(null),e}}else g=!1},n=function(e){y=e,g||(g=!0,S.postMessage(null))},r=function(e,n){v=f((function(){e(t.unstable_now())}),n)},o=function(){h(v),v=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<P(o,t)))break e;e[r]=t,e[n]=o,n=r}}function C(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,s=e[l];if(void 0!==a&&0>P(a,n))void 0!==s&&0>P(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>P(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function P(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],N=[],_=1,I=null,j=3,z=!1,A=!1,M=!1;function D(e){for(var t=C(N);null!==t;){if(null===t.callback)T(N);else{if(!(t.startTime<=e))break;T(N),t.sortIndex=t.expirationTime,k(O,t)}t=C(N)}}function R(e){if(M=!1,D(e),!A)if(null!==C(O))A=!0,n(F);else{var t=C(N);null!==t&&r(R,t.startTime-e)}}function F(e,n){A=!1,M&&(M=!1,o()),z=!0;var a=j;try{for(D(n),I=C(O);null!==I&&(!(I.expirationTime>n)||e&&!i());){var l=I.callback;if(null!==l){I.callback=null,j=I.priorityLevel;var s=l(I.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?I.callback=s:I===C(O)&&T(O),D(n)}else T(O);I=C(O)}if(null!==I)var c=!0;else{var u=C(N);null!==u&&r(R,u.startTime-n),c=!1}return c}finally{I=null,j=a,z=!1}}function L(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||z||(A=!0,n(F))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return C(O)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();if("object"==typeof a&&null!==a){var s=a.delay;s="number"==typeof s&&0<s?l+s:l,a="number"==typeof a.timeout?a.timeout:L(e)}else a=L(e),s=l;return e={id:_++,callback:i,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>l?(e.sortIndex=s,k(N,e),null===C(O)&&e===C(N)&&(M?o():M=!0,r(R,s-l))):(e.sortIndex=a,k(O,e),A||z||(A=!0,n(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var n=C(O);return n!==I&&null!==I&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<I.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},1434:(e,t,n)=>{"use strict";e.exports=n(7699)},5292:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],l=0;l<e.length;l++){var s=e[l],c=r.base?s[0]+r.base:s[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var p=n(d),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=o(f,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=n(i[a]);t[l].references--}for(var s=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=s}}},9383:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9088:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},6884:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},9893:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},7997:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7888:(e,t,n)=>{"use strict";e.exports=n.p+"d4c409dfe110747b1763.woff"},6946:(e,t,n)=>{"use strict";e.exports=n.p+"815babffe97b00a1f30b.woff2"},5996:(e,t,n)=>{"use strict";e.exports=n.p+"2b389797cf8bdbea58fb.woff"},6790:(e,t,n)=>{"use strict";e.exports=n.p+"1ab7bbddcdbde1b6f274.woff2"},2956:(e,t,n)=>{"use strict";e.exports=n.p+"399c3cc75ca92df8083c.woff"},9206:(e,t,n)=>{"use strict";e.exports=n.p+"d8ba12774e48a5a73c24.woff2"},9639:(e,t,n)=>{"use strict";e.exports=n.p+"55cf6665278898f1149c.woff"},5863:(e,t,n)=>{"use strict";e.exports=n.p+"06db94b5fad70e44175d.woff2"},9681:(e,t,n)=>{"use strict";e.exports=n.p+"fbebe70817c0f48eb4ee.woff"},8977:(e,t,n)=>{"use strict";e.exports=n.p+"cb41c1e71debe927815c.woff2"},3684:(e,t,n)=>{"use strict";e.exports=n.p+"698b70db8a5ab239d57c.eot?l2n71k"},6106:(e,t,n)=>{"use strict";e.exports=n.p+"82aa10655eda523c6f67.svg?l2n71k"},5558:(e,t,n)=>{"use strict";e.exports=n.p+"8ac824aa6974fb101dad.ttf?l2n71k"},2902:(e,t,n)=>{"use strict";e.exports=n.p+"32aa3b477617cac74648.woff?l2n71k"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),n.b=document.baseURI||self.location.href,n.nc=void 0,(()=>{"use strict";var e=n(3696),t=n(8325),r=n(2688),o=n.n(r),i=n(5292),a=n.n(i),l=n(9893),s=n.n(l),c=n(9383),u=n.n(c),d=n(6884),p=n.n(d),f=n(9088),h=n.n(f),m=n(7997),b=n.n(m),g=n(3659),y={};function v(){for(var e=["H5PEditor.BranchingScenario"],t=0;t<arguments.length;t++)e.push(arguments[t]);return H5PEditor.t.apply(window,e)}y.styleTagTransform=b(),y.setAttributes=p(),y.insert=u().bind(null,"head"),y.domAPI=s(),y.insertStyleElement=h(),a()(g.A,y),g.A&&g.A.locals&&g.A.locals;var w=n(5838),x={};x.styleTagTransform=b(),x.setAttributes=p(),x.insert=u().bind(null,"head"),x.domAPI=s(),x.insertStyleElement=h(),a()(w.A,x),w.A&&w.A.locals&&w.A.locals;var E=n(9020),S={};function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,N(r.key),r)}}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function N(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}S.styleTagTransform=b(),S.setAttributes=p(),S.insert=u().bind(null,"head"),S.domAPI=s(),S.insertStyleElement=h(),a()(E.A,S),E.A&&E.A.locals&&E.A.locals;var _=function(t){function n(t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(r=function(e,t,n){return t=P(t),function(e,t){if(t&&("object"==k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(t,n||[],P(e).constructor):t.apply(e,n))}(this,n,[t]),"renderNavItem",(function(t){var n=r.props.children[t];return e.createElement("li",{key:t,title:n.props.title,className:[n.props.className,r.props.activeIndex==t?"active":""].join(" "),onClick:function(){return r.props.onChange(t)}})})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){var t=0,n=this.props.activeIndex,r=e.Children.map(this.props.children,(function(r){return e.cloneElement(r,{active:!0===r.props.active||n==t++})})),o="tabs"+(this.props.isHidden?" hidden":"")+(!1===this.props.tour.fadeActive?" tour-fade":""),i="tabs-nav"+(!0===this.props.tour.fadeActive?" tour-fade":"");return e.createElement("div",{className:o},e.createElement("ul",{className:i},Object.keys(this.props.children).map(this.renderNavItem)),r)}}])&&C(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);_.propTypes={tour:o().oneOfType([o().shape({fadeActive:o().bool.isRequired}),o().bool])};var I=n(7994),j={};function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}function M(e){var t=function(e){if("object"!=z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==z(t)?t:t+""}function D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(D=function(){return!!e})()}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}j.styleTagTransform=b(),j.setAttributes=p(),j.insert=u().bind(null,"head"),j.domAPI=s(),j.insertStyleElement=h(),a()(I.A,j),I.A&&I.A.locals&&I.A.locals;var L=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){return t=R(t),function(e,t){if(t&&("object"==z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,D()?Reflect.construct(t,n||[],R(e).constructor):t.apply(e,n))}(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){return e.createElement("div",{className:"tab-panel"+(!0===this.props.active?" active":"")},this.props.children)}}])&&A(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);L.propTypes={active:o().bool};var B=n(1275),H={};H.styleTagTransform=b(),H.setAttributes=p(),H.insert=u().bind(null,"head"),H.domAPI=s(),H.insertStyleElement=h(),a()(B.A,H),B.A&&B.A.locals&&B.A.locals;var Q=n(3142),U={};function W(e){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(e)}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X(r.key),r)}}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V=function(){return!!e})()}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}function X(e){var t=function(e){if("object"!=W(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=W(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==W(t)?t:t+""}U.styleTagTransform=b(),U.setAttributes=p(),U.insert=u().bind(null,"head"),U.domAPI=s(),U.insertStyleElement=h(),a()(Q.A,U),Q.A&&Q.A.locals&&Q.A.locals;var K=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(t=function(e,t,n){return t=q(t),function(e,t){if(t&&("object"==W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,V()?Reflect.construct(t,n||[],q(e).constructor):t.apply(e,n))}(this,n,[e]),"handleDocumentClick",(function(e){e.target!==t.tooltip&&t.props.onClose()})),t.state={showTooltip:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(n,t),r=n,(o=[{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocumentClick)}},{key:"render",value:function(){var t=this,n=this.props.tooltipClass||"tooltip";return e.createElement("div",{ref:function(e){return t.tooltip=e},className:n,dangerouslySetInnerHTML:{__html:this.props.text}})}}])&&$(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);K.propTypes={children:o().array};var Y=n(3178),Z={};function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oe(r.key),r)}}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(te=function(){return!!e})()}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function re(e,t){return re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},re(e,t)}function oe(e){var t=function(e){if("object"!=J(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==J(t)?t:t+""}Z.styleTagTransform=b(),Z.setAttributes=p(),Z.insert=u().bind(null,"head"),Z.domAPI=s(),Z.insertStyleElement=h(),a()(Y.A,Z),Y.A&&Y.A.locals&&Y.A.locals;var ie=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){(t=oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(t=function(e,t,n){return t=ne(t),function(e,t){if(t&&("object"==J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,te()?Reflect.construct(t,n||[],ne(e).constructor):t.apply(e,n))}(this,n,[e]),"handleClick",(function(){t.setState((function(e){return{showTooltip:!e.showTooltip}}))})),t.state={showTooltip:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&re(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){var t=this.props.tooltipClass||"tooltip";return e.createElement("div",{className:"tooltip-wrapper"},e.createElement("a",{className:"tooltip-button",onClick:this.handleClick}),this.state.showTooltip&&e.createElement(K,{text:this.props.text,tooltipClass:t,onClose:this.handleClick}))}}])&&ee(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);ie.propTypes={children:o().array};var ae=n(4284),le={};le.styleTagTransform=b(),le.setAttributes=p(),le.insert=u().bind(null,"head"),le.domAPI=s(),le.insertStyleElement=h(),a()(ae.A,le),ae.A&&ae.A.locals&&ae.A.locals;var se=n(4002),ce={};function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ye(r.key),r)}}function he(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(he=function(){return!!e})()}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},me(e)}function be(e,t){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},be(e,t)}function ge(e,t,n){return(t=ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){var t=function(e){if("object"!=ue(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ue(t)?t:t+""}ce.styleTagTransform=b(),ce.setAttributes=p(),ce.insert=u().bind(null,"head"),ce.domAPI=s(),ce.insertStyleElement=h(),a()(se.A,ce),se.A&&se.A.locals&&se.A.locals;var ve=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),ge(t=function(e,t,n){return t=me(t),function(e,t){if(t&&("object"==ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,he()?Reflect.construct(t,n||[],me(e).constructor):t.apply(e,n))}(this,n,[e]),"handleMouseDown",(function(e){var r=e.target.classList.contains("loop-back")||e.target.classList.contains("content-menu-button");0!==e.button||t.props.disabled||n.inUse||r||(t.setState(t.prepareMouseMove({startX:e.pageX,startY:e.pageY})),t.props.onStarted&&t.props.onStarted())})),ge(t,"prepareMouseMove",(function(e){return n.inUse=!0,window.addEventListener("mouseup",t.handleMouseUp),window.addEventListener("mousemove",t.handleMouseMove),{moving:e}})),ge(t,"handleMouseMove",(function(e){var n;if(!t.state.moving.started){if(!(e.pageX>t.state.moving.startX+5||e.pageX<t.state.moving.startX-5||e.pageY>t.state.moving.startY+5||e.pageY<t.state.moving.startY-5))return;n={moving:pe(pe({},t.state.moving),{},{started:!0}),offset:t.props.position},document.body.style.userSelect="none"}var r=(n=n||{}).offset?n.offset:t.state.offset,o=t.props.scale?1/t.props.scale:1,i={x:(e.pageX-t.state.moving.startX)*o+r.x,y:(e.pageY-t.state.moving.startY)*o+r.y};t.props.limits&&t.props.limits(i),t.setState(n),t.props.onMoved&&t.props.onMoved(i)})),ge(t,"handleMouseUp",(function(){var e=t.state.moving.started;e&&(t.setState({moving:null}),document.body.style.userSelect=""),window.removeEventListener("mouseup",t.handleMouseUp),window.removeEventListener("mousemove",t.handleMouseMove),n.inUse=!1,t.props.onStopped&&t.props.onStopped(e)})),ge(t,"getBoundingClientRect",(function(){return t.element.getBoundingClientRect()})),t.state=e.started?t.prepareMouseMove(e.started):{moving:null},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&be(e,t)}(n,t),r=n,(o=[{key:"componentDidUpdate",value:function(e){this.props.started&&e.started!==this.props.started&&(this.state=this.prepareMouseMove(this.props.started))}},{key:"render",value:function(){var t=this;return e.createElement("div",{ref:function(e){return t.element=e},className:this.props.className,onMouseOver:function(){t.props.draggableMouseOver&&t.props.draggableMouseOver(t.props.id)},onMouseOut:function(){t.props.draggableMouseOut&&t.props.draggableMouseOut()},onMouseDown:this.handleMouseDown,style:this.props.style},this.props.children)}}])&&fe(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);ve.propTypes={className:o().string,position:o().object,style:o().object,disabled:o().bool,limits:o().func,onStarted:o().func,onMoved:o().func,onStopped:o().func,id:o().number,draggableMouseOver:o().func,draggableMouseOut:o().func,draggableHovered:o().number};var we=n(1516),xe={};function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function Se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ke(r.key),r)}}function ke(e){var t=function(e){if("object"!=Ee(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ee(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ee(t)?t:t+""}function Ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ce=function(){return!!e})()}function Te(e){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Te(e)}function Pe(e,t){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pe(e,t)}xe.styleTagTransform=b(),xe.setAttributes=p(),xe.insert=u().bind(null,"head"),xe.domAPI=s(),xe.insertStyleElement=h(),a()(we.A,xe),we.A&&we.A.locals&&we.A.locals;var Oe=function(t){function n(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){return t=Te(t),function(e,t){if(t&&("object"==Ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ce()?Reflect.construct(t,n||[],Te(e).constructor):t.apply(e,n))}(this,n,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pe(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){return e.createElement("ul",{className:"submenu"},e.createElement("li",null,this.props.isContent?v("contentOptions"):v("branchingQuestionOptions")),e.createElement("li",{className:"preview-content",onClick:this.props.onPreview},v("startPreview")),e.createElement("li",{className:"edit-content",onClick:this.props.onEdit},this.props.isContent?v("editContent"):v("editQuestionOrAlternative")),e.createElement("li",{className:"copy-content",onClick:this.props.onCopy},v("copy")),e.createElement("li",{className:"delete-content",onClick:this.props.onDelete},v("delete")))}}])&&Se(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);function Ne(e){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Me(r.key),r)}}function Ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ie=function(){return!!e})()}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},je(e)}function ze(e,t){return ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ze(e,t)}function Ae(e,t,n){return(t=Me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(e){var t=function(e){if("object"!=Ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ne(t)?t:t+""}Oe.propTypes={onPreview:o().func,onEdit:o().func,onCopy:o().func,onDelete:o().func};var De=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Ae(t=function(e,t,n){return t=je(t),function(e,t){if(t&&("object"==Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ie()?Reflect.construct(t,n||[],je(e).constructor):t.apply(e,n))}(this,n,[e]),"getPoints",(function(){var e=t.element.getBoundingClientRect();return[{x:e.left,y:e.top},{x:e.left+e.width,y:e.top+e.height}]})),Ae(t,"overlap",(function(e){var n=t.getPoints();return!(e[1].y<n[0].y||e[0].y>n[1].y||e[1].x<n[0].x||e[0].x>n[1].x)})),Ae(t,"intersection",(function(e){var n=t.getPoints(),r=Math.min(n[1].x,e[1].x)-Math.max(n[0].x,e[0].x);if(r<=0)return 0;var o=Math.min(n[1].y,e[1].y)-Math.max(n[0].y,e[0].y);return o<=0?0:r*o})),Ae(t,"handleMoved",(function(e){t.setState({temporaryPosition:e},t.props.onMove)})),Ae(t,"handleStopped",(function(e){e&&t.props.onDropped(),t.element&&t.setState({temporaryPosition:null})})),Ae(t,"handleMenuButtonClick",(function(){t.state.contentMenuActive||(t.setState({contentMenuActive:!0}),document.addEventListener("click",t.handleDocumentClick)),t.props.onDropped()})),Ae(t,"handleDocumentClick",(function(e){0!==e.button||e.defaultPrevented||(t.setState({contentMenuActive:!1}),document.removeEventListener("click",t.handleDocumentClick))})),Ae(t,"handleSubMenuAction",(function(e){t.props[e](),t.props.onDropped(),t.props.draggableMouseOut()})),t.state={contentMenuActive:!1},e.inserting&&(t.libraryName=t.props.inserting.target.dataset.libraryName),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ze(e,t)}(n,t),function(e,t,n){return t&&_e(e.prototype,t),n&&_e(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"highlight",value:function(){this.props.disabled||(this.element.element.classList.add("highlight"),this.props.onHighlight())}},{key:"dehighlight",value:function(){this.element.element.classList.remove("highlight")}},{key:"render",value:function(){var t=this,n=!!this.state.temporaryPosition,r=this.state.temporaryPosition?this.state.temporaryPosition:this.props.position,o=this.props.contentClass+" draggable";this.props.selected&&(o+=" selected",n&&(o+=" dragging",o+=" active")),n||this.props.inserting||(o+=" ready");var i="content-menu-button";return this.state.contentMenuActive&&(o+=" active",i+=" active"),this.props.fade&&(o+=" fade"),this.props.hasCustomEndScreen&&(o+=" endscreenCustom"),this.props.disabled||(o+=" not-disabled"),null!==this.props.draggableHovered&&this.props.draggableHovered===this.props.id&&(o+=" hovered"),e.createElement(ve,{id:this.props.id,ref:function(e){return t.element=e},className:o,style:{left:r.x+"px",top:r.y+"px",width:this.props.width+"px",transform:this.props.inserting&&n?"scale("+this.props.scale+","+this.props.scale+")":""},scale:this.props.inserting&&n?1:this.props.scale,started:this.props.inserting?this.props.inserting:null,position:r,draggableMouseOver:this.props.draggableMouseOver,draggableMouseOut:this.props.draggableMouseOut,draggableHovered:this.props.draggableHovered,onStarted:this.props.onPlacing,onMoved:this.handleMoved,onStopped:this.handleStopped,disabled:this.props.disabled},e.createElement("div",{className:"draggable-wrapper",onDoubleClick:this.props.onEdit},e.createElement("div",{className:"draggable-label "+this.props.contentClass},this.props.children),e.createElement("div",{className:i,onClick:this.handleMenuButtonClick})),this.props.tooltip&&e.createElement("div",{className:"dark-tooltip"},e.createElement("div",{className:"dark-text-wrap"},this.props.tooltip)),this.state.contentMenuActive&&e.createElement(Oe,{isContent:"branchingquestion"!==this.props.contentClass,onEdit:function(){return t.handleSubMenuAction("onEdit")},onPreview:function(){return t.handleSubMenuAction("onPreview")},onCopy:function(){return t.handleSubMenuAction("onCopy")},onDelete:function(){t.props.onDelete(),t.props.draggableMouseOut()}}),this.props.hasLoopBack&&e.createElement("div",{className:"loop-back",onClick:function(){return t.props.highlightLinkedContent()}}),!this.props.disabled&&e.createElement("div",{className:"dropzone-wrapper"}))}}],[{key:"getTooltip",value:function(e,t){var r,o=e.params.type.library,i=e.params.type.library.split(" ")[0],a=H5PEditor.LibraryListCache.libraryCache[o],l=a&&a.title?a.title:"";if(l||(l=i.replace("H5P.","")),t)return l;var s=e.params.type.params;switch(i){case"H5P.AdvancedText":return s.text&&(r=n.stripHTML(s.text)),void 0===r&&e.params.type.metadata&&(r=e.params.type.metadata.title),void 0!==r?r:l;case"H5P.BranchingQuestion":return s.branchingQuestion&&s.branchingQuestion.question&&s.branchingQuestion.question.trim().length>0?n.stripHTML(s.branchingQuestion.question):e.params.type.metadata&&e.params.type.metadata.title&&e.params.type.metadata.title.trim().length>0?e.params.type.metadata.title:l;default:return e.params.type.metadata&&e.params.type.metadata.title?n.stripHTML(e.params.type.metadata.title):l}}},{key:"stripHTML",value:function(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}}])}(e.Component);De.propTypes={width:o().number,contentClass:o().string,content:o().string,inserting:o().object,fade:o().bool,scale:o().number,draggableMouseOver:o().func,draggableMouseOut:o().func,draggableHovered:o().number};var Re=function(e){return"H5P.BranchingQuestion"===Fe(e)},Fe=function(e){var t=e;return e.params&&e.params.type&&e.params.type.library&&(t=e.params.type.library),t.split(" ")[0]},Le=function(e){var t=Fe(e).split(".")[1].replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace(/^Advanced Text$/,"Text"),n=De.getTooltip(e);return(n.length>70?n.substr(0,67)+"...":n)+" ("+(t.length>30?t.substr(0,27)+"...":t)+")"},Be=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Re(e)){if(null!==n&&(n=0),void 0!==e.params.type.params.branchingQuestion.alternatives)for(var r=0;r<e.params.type.params.branchingQuestion.alternatives.length;r++)if(e.params.type.params.branchingQuestion.alternatives[r].nextContentId===t){if(null===n)return r;n++}return n}return e.params.nextContentId===t?null!==n?1:-1:null!==n?0:null},He=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return e[n]};function Qe(e){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qe(e)}function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ge(r.key),r)}}function We(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(We=function(){return!!e})()}function $e(e){return $e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$e(e)}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function qe(e,t,n){return(t=Ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(e){var t=function(e){if("object"!=Qe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qe(t)?t:t+""}var Xe=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),qe(t=function(e,t,n){return t=$e(t),function(e,t){if(t&&("object"==Qe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,We()?Reflect.construct(t,n||[],$e(e).constructor):t.apply(e,n))}(this,n,[e]),"handleMouseDown",(function(e,n){if(0===e.button){var r,o=n;if("reuse-question"===n){!1===t.state.canPaste.canPaste&&t.displayNoPasteExplanation();var i=H5P.getClipboard();if(!i||!i.generic||!i.generic.library)return;if(void 0===(n=t.props.libraries?He(t.props.libraries,(function(e){return e.name===i.generic.library})):void 0))return;Re(n.name)&&i.generic.params.branchingQuestion.alternatives.forEach((function(e){e.nextContentId=-1})),r=i}t.setState({inUse:"reuse-question"===o?o:n}),t.props.onMouseDown({target:e.target,startX:e.pageX,startY:e.pageY,position:{x:e.currentTarget.offsetLeft,y:e.currentTarget.offsetTop},library:n,pasted:r?H5P.jQuery.extend(!0,{},r):null})}})),qe(t,"displayNoPasteExplanation",(function(){"pasteTooOld"===t.state.canPaste.reason||"pasteTooNew"===t.state.canPaste.reason?t.confirmPasteError(t.state.canPaste.description,document,(function(){})):H5PEditor.attachToastTo(t.reuseButton,t.state.canPaste.description,{position:{horizontal:"center",vertical:"above",noOverflowX:!0}})})),qe(t,"setCanPaste",(function(e){e=e.map((function(e){var t=H5P.libraryFromString(e.name);return t.name=Fe(e.name),t})),t.setState({canPaste:H5PEditor.canPastePlus(H5P.getClipboard(),e)})})),qe(t,"confirmPasteError",(function(e,t,n){var r=new H5P.ConfirmationDialog({headerText:H5PEditor.t("core","pasteError"),dialogText:e,cancelText:" ",confirmText:H5PEditor.t("core","ok")}).appendTo(document.body);r.on("confirmed",n),r.show(t)})),t.l10n={tooltipInfo:v("tooltipInfo"),tooltipBranching:v("tooltipBranching"),tooltipReuse:v("tooltipReuse")},t.state={canPaste:{canPaste:null,reason:"pasteNoContent"}},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ve(e,t)}(n,t),r=n,(o=[{key:"componentDidMount",value:function(){var e=this;H5P.externalDispatcher.on("datainclipboard",(function(){e.props.libraries&&e.setCanPaste(e.props.libraries)}))}},{key:"componentWillUnmount",value:function(){H5P.externalDispatcher.off("datainclipboard")}},{key:"componentDidUpdate",value:function(){null===this.state.canPaste.canPaste&&this.props.libraries&&this.setCanPaste(this.props.libraries)}},{key:"renderDnDButtons",value:function(){var t=this;if(!this.props.libraries)return e.createElement("div",{className:"loading"},v("loading"));var n=this.props.libraries.map((function(n){if("branchingquestion"===n.className)return"";var r=n.className;return t.props.inserting&&t.props.inserting.library===n&&t.state.inUse===n&&(r+=" greyout"),e.createElement("li",{key:r,className:r,onMouseDown:function(e){return t.handleMouseDown(e,n)}},n.title)}));return e.createElement("ul",{className:"content-type-buttons"},n)}},{key:"renderSecondButtons",value:function(){var t=this;if(!this.props.libraries)return e.createElement("div",{className:"loading"},v("loading"));var n=He(this.props.libraries,(function(e){return"branchingquestion"===e.className})),r=n.className;return this.props.inserting&&this.props.inserting.library===n&&this.state.inUse===n&&(r+=" greyout"),e.createElement("ul",{className:"content-type-buttons"},e.createElement("li",{ref:function(e){return e?t.props.onNodeSize(e.getBoundingClientRect()):void 0},className:r,title:v("addNew")+" "+v("branchingQuestion"),onMouseDown:function(e){return t.handleMouseDown(e,n)}},v("branchingQuestion")))}},{key:"renderReuseButton",value:function(){var t=this;if(!this.props.libraries)return e.createElement("div",{className:"loading"},v("loading"));var n="reuse-question";return this.props.inserting&&this.state.inUse===n&&(n+=" greyout"),this.state.canPaste.canPaste||(n+=" disabled"),e.createElement("ul",{className:"content-type-buttons"},e.createElement("li",{ref:function(e){return t.reuseButton=e},className:n,title:v("addFromClipboard"),onMouseDown:function(e){return t.handleMouseDown(e,"reuse-question")}},v("paste")))}},{key:"render",value:function(){return e.createElement("div",{className:"content-type-menu"},e.createElement("div",{className:"info-container-buttons"+("branching-node"===this.props.tourState?" tour-fade":"")},e.createElement("label",{className:"label-info"},v("contentInfo"),e.createElement(ie,{text:this.l10n.tooltipInfo,tooltipClass:"tooltip below"})),this.renderDnDButtons()),e.createElement("div",{className:"branching-container-buttons"+("content-node"===this.props.tourState?" tour-fade":"")},e.createElement("label",{className:"label-info"},v("contentBranching"),e.createElement(ie,{text:this.l10n.tooltipBranching})),this.renderSecondButtons()),e.createElement("div",{className:"reuse-container-buttons"+(this.props.tourState?" tour-fade":"")},e.createElement("label",{className:"label-info"},v("contentReuse"),e.createElement(ie,{text:this.l10n.tooltipReuse})),this.renderReuseButton()))}}])&&Ue(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);Xe.propTypes={libraries:o().array,tourState:o().string,handleMouseDown:o().func};var Ke=n(6151),Ye={};Ye.styleTagTransform=b(),Ye.setAttributes=p(),Ye.insert=u().bind(null,"head"),Ye.domAPI=s(),Ye.insertStyleElement=h(),a()(Ke.A,Ye),Ke.A&&Ke.A.locals&&Ke.A.locals;var Ze=n(9461),Je={};function et(e){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(e)}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nt(r.key),r)}}function nt(e){var t=function(e){if("object"!=et(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==et(t)?t:t+""}function rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rt=function(){return!!e})()}function ot(e){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ot(e)}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}Je.styleTagTransform=b(),Je.setAttributes=p(),Je.insert=u().bind(null,"head"),Je.domAPI=s(),Je.insertStyleElement=h(),a()(Ze.A,Je),Ze.A&&Ze.A.locals&&Ze.A.locals;var at=function(t){function n(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){return t=ot(t),function(e,t){if(t&&("object"==et(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,rt()?Reflect.construct(t,n||[],ot(e).constructor):t.apply(e,n))}(this,n,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&it(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){return e.createElement("div",{className:"startscreen-wrapper",onClick:this.props.handleClick},e.createElement("div",{className:"startscreen-header"},e.createElement("h1",null,v("noContentAdded")),e.createElement("p",null,v("dragIconFromMenu")),this.props.children),e.createElement("div",{className:"startscreen-footer"},e.createElement("p",null,e.createElement("a",{onClick:this.props.handleTutorialClick},v("stepByStepTutorial")))))}}])&&tt(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);at.propTypes={handleClick:o().func,handleTutorialClick:o().func};var lt=n(2476),st={};st.styleTagTransform=b(),st.setAttributes=p(),st.insert=u().bind(null,"head"),st.domAPI=s(),st.insertStyleElement=h(),a()(lt.A,st),lt.A&<.A.locals&<.A.locals;var ct=function(t){var n;switch(t.scenario){case"NEW_CONTENT_ON_DROPZONE":n=v("newContentOnDropzone",{":newContentTypeName":t.newContentTypeTitle});break;case"EXISTING_CONTENT_ON_DROPZONE":n=v("existingContentOnDropzone",{":existingContentName":t.currentContentTypeTitle});break;case"EXISTING_CONTENT_ON_EXISTING_CONTENT":n=v("existingContentOnExisitingContent",{":existingContentName":t.currentContentTypeTitle,":newContentTypeName":t.newContentTypeTitle});break;case"EXISTING_CONTENT_ON_EXISTING_BQ":n=v("existingContentOnExisitingBQ",{":existingContentName":t.currentContentTypeTitle,":newContentTypeName":t.newContentTypeTitle});break;case"NEW_CONTENT_ON_EXISTING_CONTENT":n=v("newContentOnExisitingContent",{":existingContentName":t.currentContentTypeTitle,":newContentTypeName":t.newContentTypeTitle});break;case"NEW_CONTENT_ON_EXISTING_BQ":n=v("newContentOnExisitingBQ",{":existingContentName":t.currentContentTypeTitle,":newContentTypeName":t.newContentTypeTitle});break;case"PASTED_CONTENT_ON_DROPZONE":n=v("pastedContentOnDropzone",{":newContentTypeName":t.newContentTypeTitle});break;case"PASTED_CONTENT_ON_EXISTING_CONTENT":n=v("pastedContentOnExisitingContent",{":existingContentName":t.currentContentTypeTitle,":newContentTypeName":t.newContentTypeTitle});break;case"PASTED_CONTENT_ON_EXISTING_BQ":n=v("pastedContentOnExisitingBQ",{":existingContentName":t.currentContentTypeTitle,":newContentTypeName":t.newContentTypeTitle});break;case"NEW_BQ_ON_LT_DROPZONE":n=v("newBQOnLastDropzone");break;case"NEW_BQ_ON_DROPZONE":n=v("newBQOnDropzone");break;case"NEW_BQ_ON_EXISTING_CONTENT":n=v("newBQOnExisitingContent",{":existingContentName":t.currentContentTypeTitle});break;case"PASTED_BQ_ON_DROPZONE":n=v("pastedBQOnDropzone",{":newContentTypeName":t.newContentTypeTitle});break;case"PASTED_BQ_ON_EXISTING_CONTENT":n=v("pastedBQOnExisitingContent",{":existingContentName":t.currentContentTypeTitle,":newContentTypeName":t.newContentTypeTitle})}return e.createElement("div",{className:"tips"},n)};ct.propTypes={scenario:o().string,currentContentType:o().string,newContentType:o().string};const ut=ct;var dt=n(5076),pt={};function ft(e){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ft(e)}function ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yt(r.key),r)}}function mt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mt=function(){return!!e})()}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}function gt(e,t){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gt(e,t)}function yt(e){var t=function(e){if("object"!=ft(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ft(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ft(t)?t:t+""}pt.styleTagTransform=b(),pt.setAttributes=p(),pt.insert=u().bind(null,"head"),pt.domAPI=s(),pt.insertStyleElement=h(),a()(dt.A,pt),dt.A&&dt.A.locals&&dt.A.locals;var vt=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){(t=yt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(t=function(e,t,n){return t=bt(t),function(e,t){if(t&&("object"==ft(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mt()?Reflect.construct(t,n||[],bt(e).constructor):t.apply(e,n))}(this,n,[e]),"getType",(function(){return t.props.type})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&>(e,t)}(n,t),r=n,(o=[{key:"getPoints",value:function(){var e=this.element.getBoundingClientRect();return[{x:e.left,y:e.top},{x:e.left+e.width,y:e.top+e.height}]}},{key:"overlap",value:function(e){var t=this.getPoints();return!(e[1].y<t[0].y||e[0].y>t[1].y||e[1].x<t[0].x||e[0].x>t[1].x)}},{key:"intersection",value:function(e){var t=this.getPoints(),n=Math.min(t[1].x,e[1].x)-Math.max(t[0].x,e[0].x);if(n<=0)return 0;var r=Math.min(t[1].y,e[1].y)-Math.max(t[0].y,e[0].y);return r<=0?0:n*r}},{key:"highlight",value:function(){this.element.classList.add("highlight"),this.props.onFocus()}},{key:"dehighlight",value:function(){this.element.classList.remove("highlight")}},{key:"render",value:function(){var t=this;return e.createElement("div",{ref:function(e){return t.element=e},className:this.props.elementClass,style:this.props.style,onFocus:this.props.onFocus,onClick:this.props.onClick,onMouseOver:this.props.onFocus,onMouseOut:this.props.onMouseOut,type:this.props.type},this.props.innerHTML)}}])&&ht(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tt(r.key),r)}}function Et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Et=function(){return!!e})()}function St(e){return St=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},St(e)}function kt(e,t){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kt(e,t)}function Ct(e,t,n){return(t=Tt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tt(e){var t=function(e){if("object"!=wt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wt(t)?t:t+""}var Pt=function(t){function n(t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Ct(r=function(e,t,n){return t=St(t),function(e,t){if(t&&("object"==wt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Et()?Reflect.construct(t,n||[],St(e).constructor):t.apply(e,n))}(this,n,[t]),"createTreeLayout",(function(){return r.xs=[],r.processed=[],r.createBranch(0,0,1)})),Ct(r,"isAlreadyProcessed",(function(e){return-1!==r.processed.indexOf(e)})),Ct(r,"createBranch",(function(e,t,n){if(void 0===e||e<0||!r.props.content[e])return r.createNode(null,t,n);if(r.isAlreadyProcessed(e))return r.createNode(e,t,n,!0);r.processed.push(e);for(var o=r.props.content[e],i=Re(o),a=r.getChildren(o,i),l=r.createNode(e,t,n),s=0;s<a.length;s++)if(!(void 0===a[s]||a[s]<0)||i){var c=r.createBranch(a[s],t+n,i?2:1);(i||!c||!c.loop)&&c&&(l.children.push(c),c.parent=l.id,c.num=s,r.movePreviousSiblingsLeft(l,s,c.beautyModifier))}return r.determineBeautyModifier(l),l})),Ct(r,"getChildren",(function(e,t){var n=t?function(e){if(e.params.type&&e.params.type.params&&e.params.type.params.branchingQuestion&&e.params.type.params.branchingQuestion.alternatives&&e.params.type.params.branchingQuestion.alternatives.length){for(var t=[],n=0;n<e.params.type.params.branchingQuestion.alternatives.length;n++)t.push(e.params.type.params.branchingQuestion.alternatives[n].nextContentId);return t}}(e):[e.params.nextContentId];return n||(n=[]),n})),Ct(r,"createNode",(function(e,t,n,o){var i=0;t+=n;for(var a=0;a<n;a++)void 0===r.xs[t-a]&&(r.xs[t-a]=0),r.xs[t-a]>i&&(i=r.xs[t-a]);for(var l={id:e,x:i,y:t,children:[],beautyModifier:0,parent:null,num:0,loop:!!o,isBranching:null!==e&&Re(r.props.content[e])},s=0;s<n;s++)r.xs[t-s]=i+r.getNodeWidth(l);return l})),Ct(r,"movePreviousSiblingsLeft",(function(e,t,n){if(n<0)for(var r=1;r<=t;r++){var o=e.children[t-r];if(!o||o.beautyModifier)break;o.beautyModifier=n}})),Ct(r,"determineBeautyModifier",(function(e){if(e.children.length){var t=e.children[0],n=e.children[e.children.length-1],o=n.x+r.getNodeWidth(n)-t.x;o&&(o=o/2-.5),o+=t.x,t.beautyModifier<0&&(o-=t.beautyModifier),e.beautyModifier=e.x-o}})),Ct(r,"renderTree",(function(e){r.xs=[],r.nodes=[];var t=r.createPosition(r.renderBranch(e,0));return t.nodes=r.nodes,t})),Ct(r,"renderBranch",(function(e,t,n){r.applyBeautyModifiers(e,t);for(var o=r.updateIndentation(e,n),i=r.createSize(e),a=0;a<e.children.length;a++){var l=e.beautyModifier>0?e.beautyModifier:0,s=r.renderBranch(e.children[a],l+t+o,e.isBranching);r.updateSize(i,s)}return r.centerParent(e),r.renderNode(e),i})),Ct(r,"applyBeautyModifiers",(function(e,t){e.x+=t,e.beautyModifier<0&&(e.x-=e.beautyModifier)})),Ct(r,"updateIndentation",(function(e,t){var n=0;return void 0!==r.xs[e.y]&&e.x<r.xs[e.y]&&(n=r.xs[e.y]-e.x,e.x=r.xs[e.y]),t&&void 0!==r.xs[e.y-1]&&e.x<r.xs[e.y-1]&&(n+=r.xs[e.y-1]-e.x,e.x=r.xs[e.y-1]),r.xs[e.y]=e.x+r.getNodeWidth(e),t&&(r.xs[e.y-1]=r.xs[e.y]),n})),Ct(r,"updateSize",(function(e,t){t.x>e.x&&(e.x=t.x),t.y>e.y&&(e.y=t.y),e.beautyModifier+=t.beautyModifier})),Ct(r,"centerParent",(function(e){if(e.children.length){var t=e.children[0],n=e.children[e.children.length-1],o=n.x+r.getNodeWidth(n)-t.x;o&&(o=o/2-.5),o+=t.x,e.x=o,r.xs[e.y]=e.x+1}})),Ct(r,"renderNode",(function(t){if(null!==t.id&&!t.loop){var n=r.props.content[t.id],o=t.isBranching,i="H5P.BranchingQuestion"===n.params.type.library.split(" ")[0];void 0!==n.params.nextContentId||i||(n.params.nextContentId=-1);var a=r.createPosition(t),l=De.getTooltip(r.props.content[t.id]),s=!t.children.length&&n.params.nextContentId>=0,c=!o&&r.hasCustomFeedback(n),u=r.isPlacing()&&!(o&&r.isPlacingNewBranching()),d=null!==r.props.highlight;null===r.props.onlyThisBall||r.props.highlight!==t.id&&r.props.onlyThisBall!==t.id||(d=!1),-1!==r.props.highlight||-1!==n.params.nextContentId||c||i||(d=!1),r.nodes.push(e.createElement(De,{key:t.id,id:t.id,fade:d,ref:function(e){r["draggable-"+t.id]=e,u&&r.props.dropzones.push(e)},position:a,width:r.props.nodeSize.width,selected:r.props.placing===t.id,onPlacing:function(){return r.props.onPlacing(t.id)},onMove:function(){return r.handleMove(t.id,r["draggable-"+t.id])},onDropped:function(){return r.handleDropped(t.id,r["draggable-"+t.id])},draggableMouseOver:function(e){r.props.draggableMouseOver(e),r.props.onMouseOver(t.id)},draggableMouseOut:function(){r.props.draggableMouseOut(),r.props.onMouseOut()},draggableHovered:r.props.draggableHovered,contentClass:r.getClassName(t.id),onEdit:function(){return r.props.onEdit(t.id)},onHighlight:function(){return r.props.onHighlight(r.tips.newContentTypeId,r.tips.currentContentTypeId)},onPreview:function(){return r.props.onPreview(t.id)},onCopy:function(){return r.props.onCopy(t.id)},onDelete:function(){return r.props.onDelete(t.id)},disabled:r.isPlacing()?!u:o,tooltip:l,scale:r.props.scale,hasCustomEndScreen:c&&-1===n.params.nextContentId,hasLoopBack:s,highlightLinkedContent:function(){n.params.nextContentId>-1&&r.props.onHighlightLoop(n.params.nextContentId,t.id)}},l));var p=a.x+r.props.nodeSize.width/2,f=r.props.nodeSize.spacing.y+r.dzSpecs.height;if(0!==t.id&&r.renderLine("vertical",t.id+"-vabove",f-3,p-1,a.y-f),o){r.renderLine("vertical",t.id+"-vbelow",f,p-1,a.y+r.props.nodeSize.height-1);var h=r.renderAlternativeBalls(t);r.renderLine("horizontal",t.id+"-hbelow",h.lastX-h.firstX+2,h.firstX+13,a.y+r.props.nodeSize.height+f-1)}if(r.isPlacing()&&!r.isPlacing(t.id)){if(!r.isPlacing(t.parent)){var m=t.parent?r.props.content[t.parent]:null,b=m&&Re(m);r.renderDropzone(t.id,p-r.dzSpecs.width/2,a.y-f+r.props.nodeSize.spacing.y/2-2,b?m:void 0,t.num,b)}o||t.children.length||r.renderDropzone(t.id,p-r.dzSpecs.width/2,a.y+r.props.nodeSize.height+r.props.nodeSize.spacing.y/2-2,t.id,t.num+1)}}})),Ct(r,"renderLine",(function(t,n,o,i,a){var l={left:i+"px",top:a+"px"};l["vertical"===t?"height":"width"]=o+"px",r.nodes.push(e.createElement("div",{key:n,className:t+"-line"+(null!==r.props.highlight?" fade":""),style:l}))})),Ct(r,"renderDropzone",(function(t,n,o,i,a,l){var s=void 0===i||l?t:void 0;void 0===a&&(a=0);var c=-9===t;r.nodes.push(e.createElement(vt,{key:(t<0?"f--"+t+"/"+i:t)+"-dz-"+a,ref:function(e){c&&(r.initialDropzone=e),r.props.dropzones.push(e)},nextContentId:s,parent:i,alternative:a,position:{x:n,y:o},elementClass:"dropzone"+(c&&!r.props.inserting?" disabled":""),style:{left:n+"px",top:o+"px"},onMouseOver:function(){return r.props.onDropzoneHighlight(t)},onMouseOut:function(){return r.props.onFocus()},onFocus:function(){return r.props.onDropzoneHighlight(t)},onClick:function(){return r.props.onDropzoneClick(s,i,a)}}))})),Ct(r,"renderAlternativeBalls",(function(t){for(var n=r.props.content[t.id].params.type.params.branchingQuestion.alternatives,o=0,i=0,a=function(){var a=t.children[l],s=null===a.id,c=t.id+"-abox-"+l,u=n[l].text,d=r.hasCustomFeedback(n[l]),p=null!==r.props.highlight,f="alternative-ball";a.loop?f+=" loop":s&&(d?f+=" endscreenCustom":(f+=" endscreen",-1===r.props.highlight&&(p=!1))),r.props.onlyThisBall===c&&(p=!1),p&&(f+=" fade");var h=r.createPosition(t.children[l],0,-1);i=h.x+(s||a.loop?r.dzSpecs.width:r.props.nodeSize.width)/2-14,o||(o=i);var m=.375*r.props.nodeSize.spacing.y;r.renderLine("vertical",t.id+"-vabovebs-"+l,m,i+13,h.y+1),r.nodes.push(e.createElement("div",{key:c,className:f,"aria-label":v("alternative")+" "+(l+1),onDoubleClick:function(){r.props.onEdit(t.id)},style:{left:i+"px",top:h.y+7+"px"}},"A",l+1,a.loop&&e.createElement("div",{className:"loop-back",onClick:function(){return r.props.onHighlightLoop(a.id,c)}}),e.createElement("div",{className:"dark-tooltip"},e.createElement("div",{className:"dark-text-wrap"},u?De.stripHTML(u):v("alternative")+" "+(l+1))))),(s||a.loop)&&r.isPlacing()&&r.renderDropzone(-1,h.x,h.y+r.props.nodeSize.height+r.props.nodeSize.spacing.y/2-2,t.id,l)},l=0;l<t.children.length;l++)a();return{firstX:o,lastX:i}})),Ct(r,"createSize",(function(e){return{x:e.x+r.getNodeWidth(e),y:e.y+1}})),Ct(r,"createPosition",(function(e,t,n){var o=r.props.nodeSize.spacing.y+r.dzSpecs.height;return{x:(e.x+(t||0))*(r.props.nodeSize.width+r.props.nodeSize.spacing.x),y:(e.y+(n||0))*(r.props.nodeSize.height+o)}})),Ct(r,"getNodeWidth",(function(e){return null===e.id||e.loop?.3463414634146341:1})),Ct(r,"getClassName",(function(e){return r.props.getLibrary(r.props.content[e].params.type.library).className})),Ct(r,"handleMove",(function(e,t){var n=r.getIntersections(t),o=1;r.props.dropzones.forEach((function(i){i&&i!==t&&(0===n.length||i!==n[0]?i.dehighlight():(o=0,r.tips.newContentTypeId=e,r.tips.currentContentTypeId=n[0],i.highlight()))})),o&&r.props.onFocus()})),Ct(r,"handleDropped",(function(e,t){var n=r.getIntersections(t);r.props.onDropped(e,n.length>0?n[0]:null)})),Ct(r,"getIntersections",(function(e){var t=e.getPoints();return r.props.dropzones.filter((function(n){return n&&n!==e&&n.overlap(t)})).map((function(e){return{dropzone:e,intersection:e.intersection(t)}})).sort((function(e,t){return t.intersection-e.intersection})).map((function(e){return e.dropzone}))})),Ct(r,"hasCustomFeedback",(function(e){return void 0!==(e=e.params||e).feedback&&(e.feedback.title&&""!==e.feedback.title.trim()||e.feedback.subtitle||e.feedback.image||void 0!==e.feedback.endScreenScore&&"static-end-score"===r.props.scoringOption)})),Ct(r,"isPlacingNewBranching",(function(){return-1===r.props.placing&&r.props.library&&"Branching Question"===r.props.library.title})),Ct(r,"isPlacing",(function(e){return void 0===e?null!==r.props.placing:r.props.placing===e})),r.dzSpecs={width:42,height:32},r.tips={newContentTypeId:null,currentContentTypeId:null},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kt(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){var t=this,n=this.createTreeLayout(),r=this.renderTree(n);return e.createElement("div",{className:"nodetree",ref:function(e){return t.element=e},style:{width:r.x+"px",height:r.y+"px",transform:"translate("+this.props.panning.x+"px,"+this.props.panning.y+"px) scale("+this.props.scale+","+this.props.scale+")"}},r.nodes)}}])&&xt(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);Pt.propTypes={};var Ot=n(5057),Nt={};Nt.styleTagTransform=b(),Nt.setAttributes=p(),Nt.insert=u().bind(null,"head"),Nt.domAPI=s(),Nt.insertStyleElement=h(),a()(Ot.A,Nt),Ot.A&&Ot.A.locals&&Ot.A.locals;const _t=function(t){return e.createElement("div",{className:"confirmation-dialog ".concat(void 0!==t.classes?t.classes:"")},e.createElement("div",{className:"confirmation-dialog-header"},t.icon,e.createElement("span",{className:"header-text"},t.headerText)),e.createElement("div",{className:"confirmation-dialog-body"},e.createElement("div",{className:"confirmation-dialog-body-split"},e.createElement("div",{className:"confirmation-dialog-body-left-content"},e.createElement("p",{className:"confirmation-question"},t.body),t.children),t.graphics&&e.createElement("div",{className:"confirmation-dialog-body-right-content"},e.createElement("img",{className:"replace-graphics",src:t.graphics,alt:t.graphicsAltText}))),e.createElement("div",{className:"dialog-buttons"},e.createElement("a",{className:t.styleConfirm||"dialog-confirm",onClick:t.handleConfirm},t.textConfirm),e.createElement("a",{className:"dialog-cancel",onClick:t.handleCancel},t.textCancel))))},It=n.p+"1a6e90a744a5b861553d.gif";var jt=n(2408),zt={};zt.styleTagTransform=b(),zt.setAttributes=p(),zt.insert=u().bind(null,"head"),zt.domAPI=s(),zt.insertStyleElement=h(),a()(jt.A,zt),jt.A&&jt.A.locals&&jt.A.locals;const At=function(t){var n,r,o,i,a;switch(t.action){case"delete":n=v("deleteContent"),r=v("confirmDeleteContent"),o=v("delete");break;case"delete alternative":n=v("deleteAlternative"),r=v("confirmDeleteAlternative"),o=v("delete");break;case"replace":n=v("replaceContent"),r=v("confirmReplaceContent"),o=v("replace"),t.isBQ||(i=It),a=v("replaceContent")}return e.createElement(_t,{icon:e.createElement("span",{className:"icon-"+t.action}),action:t.action,graphics:i,graphicsAltText:a,headerText:n,body:r,handleConfirm:t.onConfirm,handleCancel:t.onCancel,textConfirm:o,textCancel:v("cancel"),styleConfirm:"dialog-confirm-red"},t.children)};var Mt=n(6022),Dt={};Dt.styleTagTransform=b(),Dt.setAttributes=p(),Dt.insert=u().bind(null,"head"),Dt.domAPI=s(),Dt.insertStyleElement=h(),a()(Mt.A,Dt),Mt.A&&Mt.A.locals&&Mt.A.locals;var Rt=n(6710),Ft={};function Lt(e){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(e)}function Bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$t(r.key),r)}}function Ht(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ht=function(){return!!e})()}function Qt(e){return Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qt(e)}function Ut(e,t){return Ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ut(e,t)}function Wt(e,t,n){return(t=$t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(e){var t=function(e){if("object"!=Lt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lt(t)?t:t+""}Ft.styleTagTransform=b(),Ft.setAttributes=p(),Ft.insert=u().bind(null,"head"),Ft.domAPI=s(),Ft.insertStyleElement=h(),a()(Rt.A,Ft),Rt.A&&Rt.A.locals&&Rt.A.locals;var Vt=function(t){function n(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Wt(t=function(e,t,n){return t=Qt(t),function(e,t){if(t&&("object"==Lt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ht()?Reflect.construct(t,n||[],Qt(e).constructor):t.apply(e,n))}(this,n,[e]),"handleExistingContentChange",(function(e){t.updateContentSelected(e.target.value)})),Wt(t,"updateContentSelected",(function(e){t.props.onChangeContent&&t.props.onChangeContent(e)})),Wt(t,"handleMainOptionChange",(function(e){var n=e.target.value;switch(t.setState({selectedMainOption:n}),n){case"new-content":t.updateContentSelected(-1),t.props.feedbackGroup&&(t.props.feedbackGroup.children[0].$input.val("").change(),t.props.feedbackGroup.children[1].$input.val("").change(),t.props.feedbackGroup.children[2].removeImage());break;case"end-scenario":t.updateContentSelected(-1),t.props.feedbackGroup&&t.props.feedbackGroup.params&&(t.props.feedbackGroup.params.title=" ");break;case"old-content":t.updateContentSelected(t.props.validAlternatives[0].id)}})),t.specialActionSelectId=H5PEditor.getNextFieldId({name:"specialAction"}),t.nextContentSelectId=H5PEditor.getNextFieldId({name:"nextContent"});var r=t.props.nextContentId>=0?"old-content":t.props.isInserting?"new-content":"end-scenario";return t.state={expanded:!1,selectedMainOption:r},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ut(e,t)}(n,t),function(e,t,n){return t&&Bt(e.prototype,t),n&&Bt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"componentDidMount",value:function(){this.props.feedbackGroup&&void 0!==this.props.feedbackGroup&&this.props.feedbackGroup.$group.appendTo(this.contentWrapper)}},{key:"componentDidUpdate",value:function(){if(this.props.feedbackGroup&&void 0!==this.props.feedbackGroup&&(H5PEditor.Html&&H5PEditor.Html.removeWysiwyg(),this.props.feedbackGroup.$group.appendTo(this.contentWrapper),this.props.feedbackGroup.$group.toggle("new-content"!==this.state.selectedMainOption),"new-content"!==this.state.selectedMainOption)){this.props.feedbackGroup.$title.html("end-scenario"===this.state.selectedMainOption?v("feedbackOnEndScreen"):this.props.feedbackGroup.field.label),this.props.feedbackGroup.children[0].$item.find(".h5peditor-label").html("end-scenario"===this.state.selectedMainOption?v("feedbackTitle"):this.props.feedbackGroup.children[0].field.label),this.props.feedbackGroup.children[1].$item.find(".h5peditor-label").html("end-scenario"===this.state.selectedMainOption?v("feedbackText"):this.props.feedbackGroup.children[1].field.label),this.props.feedbackGroup.children[2].$item&&this.props.feedbackGroup.children[2].$item.children(".h5peditor-label-wrapper").children(".h5peditor-label").html("end-scenario"===this.state.selectedMainOption?v("feedbackImage"):this.props.feedbackGroup.children[2].field.label);var e=!(this.props.nextContentId>-1),t="dynamic-score"===this.props.scoringOption&&!e,n="static-end-score"===this.props.scoringOption&&e;this.props.feedbackGroup.children[3].$item.toggle(t||n)}this.props.contentBehaviourGroup&&this.props.contentBehaviourGroup.$item.appendTo(this.contentWrapper)}},{key:"render",value:function(){var t=this;return e.createElement("div",{className:"editor-overlay-branching-options"},e.createElement("fieldset",{className:"field group"+(this.state.expanded?" expanded":"")},e.createElement("div",{className:"title",title:v("expandCollapse"),role:"button",onClick:function(){return t.setState((function(e){return{expanded:!e.expanded}}))},onKeyPress:function(e){32===e.which&&t.setState((function(e){return{expanded:!e.expanded}}))},tabIndex:"0"},v("advancedBranchingOptions")),e.createElement("div",{className:"content",ref:function(e){return t.contentWrapper=e}},!this.props.isBranchingQuestion&&e.createElement("div",{className:"field text importance-low"},e.createElement("label",{className:"h5peditor-label-wrapper",htmlFor:this.specialActionSelectId},e.createElement("span",{className:"h5peditor-label"},this.props.nextContentLabel||v("specialActionAfterContent"))),e.createElement("select",{id:this.specialActionSelectId,value:this.state.selectedMainOption,onChange:this.handleMainOptionChange},e.createElement("option",{key:"default",value:"new-content"}," - "),e.createElement("option",{key:"end-scenario",value:"end-scenario"},v("customEndScenario")),this.props.validAlternatives.length>0&&e.createElement("option",{key:"old-content",value:"old-content"},v("jumpToOtherBranch")))),this.props.nextContentId>=0&&e.createElement("div",{className:"field text importance-low"},e.createElement("label",{className:"h5peditor-label-wrapper",htmlFor:this.nextContentSelectId},e.createElement("span",{className:"h5peditor-label h5peditor-required"},v("selectABranchToJump"))),e.createElement("select",{id:this.nextContentSelectId,value:this.props.nextContentId,onChange:this.handleExistingContentChange},this.props.validAlternatives.map((function(t){return e.createElement("option",{key:"next-path-"+t.id,value:t.id},t.label)})))))))}}],[{key:"getDerivedStateFromProps",value:function(e){return{selectedMainOption:e.nextContentId>=0?"old-content":n.hasFeedback(e)?"end-scenario":"new-content"}}},{key:"hasFeedback",value:function(e){return!e.isBranchingQuestion&&void 0!==e.feedbackGroup&&void 0!==e.feedbackGroup.params&&!!(e.feedbackGroup.params.title||e.feedbackGroup.params.subtitle||e.feedbackGroup.params.image||void 0!==e.feedbackGroup.params.endScreenScore)}}])}(e.Component);function qt(e){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(e)}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jt(r.key),r)}}function Xt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xt=function(){return!!e})()}function Kt(e){return Kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kt(e)}function Yt(e,t){return Yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yt(e,t)}function Zt(e,t,n){return(t=Jt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(e){var t=function(e){if("object"!=qt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qt(t)?t:t+""}Vt.propTypes={nextContentId:o().number,isBranchingQuestion:o().bool,validAlternatives:o().array,onChangeContent:o().func};var en=function(n){function r(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Zt(n=function(e,t,n){return t=Kt(t),function(e,t){if(t&&("object"==qt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Xt()?Reflect.construct(t,n||[],Kt(e).constructor):t.apply(e,n))}(this,r,[t]),"ready",(function(){if(n.isBranchingQuestion){var e=n.findField("type/branchingQuestion");n.addBranchingOptionsToEditor(e,n.props.validAlternatives,n.props.content.params.type.params.branchingQuestion.alternatives),e.children.forEach((function(e){if(void 0!==e.getName&&"alternatives"===e.getName())return e.widget.setConfirmHandler((function(t,r,o,i){n.props.onNextContentChange(n.props.content.params.type.params.branchingQuestion.alternatives[r],-2,null)?n.renderBranchingOptions[r]=i:e.widget.defaultConfirmHandler(t,r,o,i)})),!1})),n.findField("showContentTitle").$item.remove();var t=n.findField("contentBehaviour");t&&t.$item[0]&&t.$item[0].remove()}var r=n.findField("type");H5PEditor.findField("title",r.metadataForm).$input.on("change",(function(){return n.forceUpdate()})),n.modifyRequiresFinishingField(r);var o=r.children[0]instanceof H5P.DragNBar.FormManager?r.children[0]:r.children[0].children&&r.children[0].children[1]instanceof H5P.DragNBar.FormManager?r.children[0].children[1]:null;o&&(o.on("formopened",(function(e){var t=n.findField("type").params.library.split(" ")[0];"H5P.CoursePresentation"!==t&&"H5P.InteractiveVideo"!==t||(n.setState({isSubFrom:!0}),n.handleVisibilityOfFields(!1))})),o.on("formclose",(function(e){var t=n.findField("type").params.library.split(" ")[0];"H5P.CoursePresentation"!==t&&"H5P.InteractiveVideo"!==t||(n.setState({isSubFrom:!1}),n.handleVisibilityOfFields(!0))})),o.setAlwaysShowButtons(!0),o.off("formremove"),o.off("formdone"),o.on("formremove",(function(e){1===e.data&&n.handleRemove()})),o.on("formdone",(function(e){1===e.data&&n.handleDone()}))),H5P.$window.trigger("resize")})),Zt(n,"findField",(function(e){return H5PEditor.findField(e,{children:n.props.content.formChildren})})),Zt(n,"validate",(function(){for(var e=!0,t=0;t<n.props.content.formChildren.length;t++)!1===n.props.content.formChildren[t].validate()&&(e=!1);return e})),Zt(n,"handleNextContentIdChange",(function(e){n.props.onNextContentChange(n.props.content.params,parseInt(e))})),Zt(n,"handleRemove",(function(){n.finalizeForm(),n.props.onRemove()})),Zt(n,"handleVisibilityOfFields",(function(e){e?(n.findField("showContentTitle").$item[0].style.display="block",n.findField("forceContentFinished").$item[0].style.display="block",n.findField("contentBehaviour").$item[0].style.display="block",n.findField("proceedButtonText").$item[0].style.display="block"):(n.findField("showContentTitle").$item[0].style.display="none",n.findField("forceContentFinished").$item[0].style.display="none",n.findField("contentBehaviour").$item[0].style.display="none",n.findField("proceedButtonText").$item[0].style.display="none")})),Zt(n,"handleDone",(function(){n.finalizeForm(),n.props.onDone()})),Zt(n,"finalizeForm",(function(){if(n.validate(),H5PEditor.Html&&H5PEditor.Html.removeWysiwyg(),n.isBranchingQuestion){var e=n.props.content.params.type.params.branchingQuestion.alternatives||[];e.forEach((function(t,n){void 0===t.nextContentId&&(e[n].nextContentId=-1)}));var t=n.findField("type/branchingQuestion");t&&t.collapseListAlternatives()}})),n.form=e.createRef(),n.feedbackForm=e.createRef(),n.isBranchingQuestion=Re(n.props.content),n.state={isSubFrom:!1},n.validAltCount=n.props.validAlternatives?n.props.validAlternatives.length:0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yt(e,t)}(r,n),o=r,i=[{key:"componentDidMount",value:function(){this.attachEditorForm()}},{key:"componentDidUpdate",value:function(){var e=this.props.validAlternatives?this.props.validAlternatives.length:0;e!==this.validAltCount&&(this.attachEditorForm(),this.validAltCount=e)}},{key:"attachEditorForm",value:function(){for(var e=this.feedbackForm.current;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(this.props.content.feedbackFormWrapper);for(var t=this.form.current;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(this.props.content.formWrapper),!0===this.props.content.ready?this.ready():this.props.content.ready=this.ready}},{key:"modifyRequiresFinishingField",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params&&e.params.library?e.params.library.split(" ")[0]:null,n=this.findField("forceContentFinished");t&&n&&n.$item&&("H5P.CoursePresentation"===t?this.overrideBooleanField(n.$item,{label:v("requiresFinishingCoursePresentationLabel"),description:v("requiresFinishingCoursePresentationDescription")}):"H5P.InteractiveVideo"===t||"H5P.Video"===t?this.overrideBooleanField(n.$item,{label:v("requiresFinishingVideoLabel"),description:v("requiresFinishingVideoDescription")}):n.$item.remove())}},{key:"overrideBooleanField",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){if(t.label){var n=e.find(".h5peditor-label"),r=n.find("input").detach();n.html(t.label).prepend(r)}t.description&&e.find(".h5peditor-field-description").html(t.description)}}},{key:"addBranchingOptionsToEditor",value:function(n,r,o){var i=this;if(!n)throw Error("Unable to locate Branching Question Editor. Did someone change Core?");this.renderBranchingOptions=[],n.setAlternatives((function(a,l,s){var c=void 0===o||a+1>o.length?-1:o[a].nextContentId,u=function(e){i.props.onNextContentChange(o[a],parseInt(e),d)},d=function(n){t.render(e.createElement(Vt,{nextContentId:n,validAlternatives:r,onChangeContent:u,alternativeIndex:a,nextContentLabel:v("specialActionSelected"),feedbackGroup:s,scoringOption:i.props.scoringOption}),l)};i.renderBranchingOptions[a]=d;var p=""===c?-1:c;n.setNextContentId(a,p),d(c)}))}},{key:"render",value:function(){var t=this.props.content.params.type.library.split(" ")[0],n="editor-overlay-title editor-overlay-icon-".concat(In.camelToKebab(t.split(".")[1])),r="no-score"===this.props.scoringOption?" hide-scores":"";"dynamic-score"===this.props.scoringOption&&(r=" dynamic-score");var o="editor-overlay";this.isBranchingQuestion&&(o+=" h5p-branching-question"),this.props.moveDown&&(o+=" move-down"),"H5P.CoursePresentation"!==t&&"H5P.InteractiveVideo"!==t||(o+=" inconspicuous");var i=-1!==this.props.content.params.nextContentId?" hide-score":"",a=this.props.content.params.type.metadata,l=a&&a.title&&a.title.trim().length>0?De.stripHTML(a.title):De.getTooltip(this.props.content,!0),s=this.isBranchingQuestion?null:this.findField("feedback"),c=this.findField("contentBehaviour");return e.createElement("div",{className:o},e.createElement("div",{className:"editor-overlay-header"},e.createElement("span",{className:n},l),e.createElement("span",{className:"buttons"},e.createElement("button",{className:"button-remove",onClick:this.handleRemove},v("remove")),e.createElement("button",{className:"button-blue",onClick:this.handleDone},v("done")))),e.createElement("div",{className:"editor-overlay-content".concat(r)},e.createElement("div",{className:"editor-overlay-semantics",ref:this.form}),!this.state.isSubFrom&&e.createElement("div",null,e.createElement(Vt,{isBranchingQuestion:this.isBranchingQuestion,nextContentId:this.props.content.params.nextContentId,validAlternatives:this.props.validAlternatives,onChangeContent:this.handleNextContentIdChange,isInserting:this.props.isInserting,feedbackGroup:s,contentBehaviourGroup:c,scoringOption:this.props.scoringOption})),e.createElement("div",{className:"editor-overlay-feedback-semantics".concat(i),ref:this.feedbackForm})))}}],i&&Gt(o.prototype,i),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,i}(e.Component);en.propTypes={content:o().object,validAlternatives:o().array,onDone:o().func};var tn=function(e,t){return t===e||!!t.parentElement&&tn(e,t.parentElement)},nn=n(4777),rn={};function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dn(r.key),r)}}function ln(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ln=function(){return!!e})()}function sn(e){return sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sn(e)}function cn(e,t){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cn(e,t)}function un(e,t,n){return(t=dn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e){var t=function(e){if("object"!=on(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==on(t)?t:t+""}rn.styleTagTransform=b(),rn.setAttributes=p(),rn.insert=u().bind(null,"head"),rn.domAPI=s(),rn.insertStyleElement=h(),a()(nn.A,rn),nn.A&&nn.A.locals&&nn.A.locals;var pn=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),un(t=function(e,t,n){return t=sn(t),function(e,t){if(t&&("object"==on(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ln()?Reflect.construct(t,n||[],sn(e).constructor):t.apply(e,n))}(this,n,[e]),"handleDocumentClick",(function(e){t.state.expanded&&!tn(t.legend,e.target)&&t.setState({expanded:!1})})),un(t,"handleToggle",(function(){t.setState((function(e){return{expanded:!e.expanded}}))})),t.state={expanded:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cn(e,t)}(n,t),r=n,(o=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleDocumentClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleDocumentClick)}},{key:"render",value:function(){var t=this,n=this.state.expanded?" expanded":"",r=this.props.fade?" fade":"";return e.createElement("div",{className:"legend"+n+r,onClick:this.handleToggle,ref:function(e){return t.legend=e}},e.createElement("span",null,v("quickInfo"),e.createElement("span",{className:"close link-look"},this.state.expanded?v("hide"):v("show"))),e.createElement("div",{className:"legend-content"+n},e.createElement("ul",null,e.createElement("li",null,e.createElement("strong",null,v("dropzone")),"- ",v("legendDropzone")),e.createElement("li",null,e.createElement("strong",null,v("content"))),e.createElement("li",null,e.createElement("strong",null,v("branchingQuestion")),"- ",v("legendBranchingQuestion")),e.createElement("li",null,v("legendAlternative")),e.createElement("li",null,v("legendPathEndDefault")),e.createElement("li",null,v("legendPathEndCustom")),e.createElement("li",null,v("legendPathRetread")),e.createElement("li",null,e.createElement("span",{className:"link-look",onClick:this.props.onTutorialOpen},v("stepByStepTutorial"))))))}}])&&an(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);pn.propTypes={fade:o().bool,l10n:o().object,onOpenTutorial:o().func};var fn=n(4476),hn={};function mn(e){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(e)}function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gn(r.key),r)}}function gn(e){var t=function(e){if("object"!=mn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mn(t)?t:t+""}function yn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yn=function(){return!!e})()}function vn(e){return vn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vn(e)}function wn(e,t){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wn(e,t)}hn.styleTagTransform=b(),hn.setAttributes=p(),hn.insert=u().bind(null,"head"),hn.domAPI=s(),hn.insertStyleElement=h(),a()(fn.A,hn),fn.A&&fn.A.locals&&fn.A.locals;var xn=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){return t=vn(t),function(e,t){if(t&&("object"==mn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,yn()?Reflect.construct(t,n||[],vn(e).constructor):t.apply(e,n))}(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wn(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){return e.createElement("div",{className:"block-interaction-overlay"},this.props.children)}}])&&bn(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);function En(e){return En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},En(e)}function Sn(e){return function(e){if(Array.isArray(e))return kn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return kn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_n(r.key),r)}}function Tn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tn=function(){return!!e})()}function Pn(e){return Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pn(e)}function On(e,t){return On=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},On(e,t)}function Nn(e,t,n){return(t=_n(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _n(e){var t=function(e){if("object"!=En(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=En(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==En(t)?t:t+""}var In=function(t){function n(t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Nn(r=function(e,t,n){return t=Pn(t),function(e,t){if(t&&("object"==En(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Tn()?Reflect.construct(t,n||[],Pn(e).constructor):t.apply(e,n))}(this,n,[t]),"handleDocumentKeyDown",(function(e){46===e.which&&null!==r.state.placing&&r.handleContentDelete(r.state.placing)})),Nn(r,"handlePlacing",(function(e){null!==r.state.placing&&r.state.placing!==e?r.setState({tips:!1,isPlacingOnBQ:!!(e>-1&&r.state.content[e].params.type.params.branchingQuestion),deleting:e,confirmReplace:!0,dialog:"replace"},r.setIsEditing):r.setState({placing:e})})),Nn(r,"handleMouseOver",(function(e){null!==r.state.placing&&r.state.placing!==e&&void 0!==r.state.content[e]&&r.handleContentHighlight(r.state.placing,r.state.content[e])})),Nn(r,"handleMouseLeft",(function(){r.handleTreeFocus()})),Nn(r,"handleContentHighlight",(function(e,t){var n,o="NEW_CONTENT_ON_EXISTING_CONTENT";if(r.state.placing>-1&&(o="EXISTING_CONTENT_ON_EXISTING_CONTENT"),-1===e){if(void 0===r.props.getNewContent(r.getNewContentParams()).params.type.metadata)return!1;n=r.props.getNewContent(r.getNewContentParams()).params.type.metadata.contentType,r.props.inserting&&r.props.inserting.pasted&&(n=r.props.inserting.pasted.generic.metadata.title,o="PASTED_CONTENT_ON_EXISTING_CONTENT"),r.props.inserting&&"H5P.BranchingQuestion"===r.props.inserting.library.name.split(" ")[0]&&(o="NEW_BQ_ON_EXISTING_CONTENT"),r.props.inserting&&r.props.inserting.pasted&&"H5P.BranchingQuestion"===r.props.inserting.library.name.split(" ")[0]&&(o="PASTED_BQ_ON_EXISTING_CONTENT")}else n=r.state.content[e].params.type.metadata.title;var i=void 0!==t.props?r.state.content[t.props.id]:t;return!(void 0===i.params||r.props.inserting&&"H5P.BranchingQuestion"===r.props.inserting.library.name.split(" ")[0]&&i.params.type.params.branchingQuestion)&&(i.params.type.params.branchingQuestion&&(o="NEW_CONTENT_ON_EXISTING_BQ",r.props.inserting&&r.props.inserting.pasted&&(n=r.props.inserting.pasted.generic.metadata.title,o="PASTED_CONTENT_ON_EXISTING_BQ"),r.state.placing>-1&&(o="EXISTING_CONTENT_ON_EXISTING_BQ")),r.setState({tips:{scenario:o,newContentTypeTitle:n,currentContentTypeTitle:i.params.type.metadata.title}}),r.props.onHighlight)})),Nn(r,"handleTreeFocus",(function(){r.setState({tips:null})})),Nn(r,"handleDropzoneHighlight",(function(e){if(r.state.insertingId&&r.setState({tips:{scenario:"NEW_CONTENT_ON_DROPZONE",newContentTypeTitle:r.state.library.title}}),r.state.placing>-1&&r.setState({tips:{scenario:"EXISTING_CONTENT_ON_DROPZONE",currentContentTypeTitle:r.state.content[r.state.placing].params.type.metadata.title}}),r.props.inserting&&r.props.inserting.pasted){var t=r.props.inserting.pasted.generic.metadata.title?r.props.inserting.pasted.generic.metadata.title:r.state.library.title;r.setState({tips:{scenario:"PASTED_CONTENT_ON_DROPZONE",newContentTypeTitle:t}})}if(r.props.inserting&&"H5P.BranchingQuestion"===r.props.inserting.library.name.split(" ")[0]&&(null!=e&&-1===e||null!==r.tree.tips.currentContentTypeId&&void 0===r.tree.tips.currentContentTypeId.props.nextContentId?r.setState({tips:{scenario:"NEW_BQ_ON_LT_DROPZONE",newContentTypeTitle:r.state.library.title}}):r.setState({tips:{scenario:"NEW_BQ_ON_DROPZONE",newContentTypeTitle:r.state.library.title}})),r.props.inserting&&r.props.inserting.pasted&&"H5P.BranchingQuestion"===r.props.inserting.library.name.split(" ")[0]){var n=r.props.inserting.pasted.generic.metadata.title?r.props.inserting.pasted.generic.metadata.title:r.state.library.title;r.setState({tips:{scenario:"PASTED_BQ_ON_DROPZONE",newContentTypeTitle:n}})}})),Nn(r,"getParent",(function(e,t){return r.tree.processed.slice(0,r.tree.processed.indexOf(e)).filter((function(e){return e>-1})).map((function(e){return t[e]})).filter((function(t){return Re(t)?t.params.type.params.branchingQuestion.alternatives.some((function(t){return t.nextContentId===e})):t.params.nextContentId===e})).slice(-1).pop()})),Nn(r,"handleDropped",(function(e,t){if(!t||t instanceof De&&t.props.disabled)return r.setState({placing:null,tips:null}),void r.props.onDropped();t instanceof De&&!r.state.editing?r.handlePlacing(t.props.id):r.placeInTree(e,t.props.nextContentId,t.props.parent,t.props.alternative)})),Nn(r,"handleDropzoneClick",(function(e,t,n){null!==r.state.placing&&r.placeInTree(r.state.placing,e,t,n)})),Nn(r,"handleContentEdit",(function(e){H5PEditor.$(r.tree["draggable-".concat(e)].element.element).click(),r.setState({editing:e,placing:null},r.setIsEditing)})),Nn(r,"handleContentCopy",(function(e){var t=new H5P.ClipboardItem(r.state.content[e].params,"type","H5PEditor.BranchingScenario");H5P.clipboardify(t)})),Nn(r,"handleContentDelete",(function(e){r.setState({deleting:e,dialog:"delete"},r.setIsEditing)})),Nn(r,"getChildrenTitles",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r.getChildrenIds(e,!0,!1,n).filter((function(e){return e!==t})).sort((function(e,t){return e-t})).map((function(e){return Le(r.state.content[e])}))})),Nn(r,"getChildrenIds",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(e<0||e===o)return[];var i=r.state.content[e],a=[],l=Re(i);return n&&(!l||l&&t)&&a.push(e),(l?(i.params.type.params.branchingQuestion.alternatives||[]).map((function(e){return e.nextContentId})):[i.params.nextContentId]).filter((function(e){return void 0!==e&&e>-1})).filter((function(t){return r.tree.processed.indexOf(t)>r.tree.processed.indexOf(e)})).forEach((function(e){a=a.concat(r.getChildrenIds(e,t,!0,o))})),a.filter((function(e,t){return a.indexOf(e)===t}))})),Nn(r,"getNewContentParams",(function(){if(r.props.inserting&&r.props.inserting.pasted){var e=function(e){for(var t=0;t<r.props.libraries.length;t++)if(!0!==r.props.libraries[t].restricted&&r.props.libraries[t].name===e)return!0;return!1};if("H5PEditor.BranchingScenario"===r.props.inserting.pasted.from&&(!r.props.inserting.pasted.generic||e(r.props.inserting.pasted.generic.library)))return Re({params:r.props.inserting.pasted.specific})||(r.props.inserting.pasted.specific.nextContentId=-1),r.props.inserting.pasted.specific;if(r.props.inserting.pasted.generic&&e(r.props.inserting.pasted.generic.library))return{type:r.props.inserting.pasted.generic,showContentTitle:!1}}return{type:{library:r.state.library.name,params:"branchingquestion"!==r.state.library.className?{}:{branchingQuestion:{alternatives:[{nextContentId:-1},{nextContentId:-1}]}},subContentId:H5P.createUUID()},showContentTitle:!1}})),Nn(r,"updateNextContentId",(function(e,t,n,o,i){var a=!1;0===t&&e.nextContentId===n&&(e.nextContentId=0,a=!0),e.nextContentId===t&&(!1===r.hasChangedOldParentLink?(e.nextContentId=n<0?void 0:n,r.hasChangedOldParentLink=!0):0===o&&(e.nextContentId=0,a=!0)),void 0!==o&&e.nextContentId===o&&0!==o&&!1===r.hasChangedNewParentLink&&(e.nextContentId=t,r.hasChangedNewParentLink=!0),!a&&e.nextContentId>-1&&e.nextContentId<i&&e.nextContentId++})),Nn(r,"replaceChild",(function(e,t,r){if(e&&void 0!==t)if(Re(e)){var o=e.params.type.params.branchingQuestion.alternatives;r?o.forEach((function(e){e.nextContentId===r&&(e.nextContentId=t)})):n.attachChild(e,t)}else r&&e.params.nextContentId!==r||(e.params.nextContentId=t)})),Nn(r,"hasFeedback",(function(e){return void 0!==(e=e.params||e).feedback&&(e.feedback.title&&""!==e.feedback.title.trim()||e.feedback.subtitle||e.feedback.image||void 0!==e.feedback.endScreenScore)})),Nn(r,"hasEndScreen",(function(e){return!(e.params&&Re(e)||-1!==(e=e.params||e).nextContentId&&void 0!==e.nextContentId)})),Nn(r,"hasCustomEndScreen",(function(e){return(!e.params||!Re(e))&&(e=e.params||e,r.hasEndScreen(e)&&r.hasFeedback(e))})),Nn(r,"spliceInfoNode",(function(e,t){if(!(t>=e.length)){if(0===t&&e.length>1&&-1!==e[0].params.nextContentId){var n=e[0].params.nextContentId;r.swapNodes(e,0,e[t].params.nextContentId),e[n].params.nextContentId=0,t=n}var o=e[t];r.replaceNodeIds(e,t,o.params.nextContentId),r.setNodeOffset(e,t,-1),r.tree.processed=r.tree.processed.map((function(e){return e>t?e-1:e})),e.splice(t,1),r.tree.processed=r.tree.processed.filter((function(e){return e!==t})),H5PEditor.removeChildren(o.formChildren)}})),Nn(r,"spliceBranchingQuestion",(function(e,t){for(var n=r.getChildrenIds(t,!0,!0),o=function(){var t=n.pop();r.spliceInfoNode(e,t),n=n.map((function(e){return e>t?e-=1:e}))};n.length>0;)o()})),Nn(r,"replaceNodeIds",(function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.forEach((function(e,i){(Re(e)?e.params.type.params.branchingQuestion.alternatives||[]:[e.params]).forEach((function(e){e.nextContentId===t&&(!0!==o.keepLoops&&r.tree.processed.indexOf(n)<=r.tree.processed.indexOf(i)?e.nextContentId=-1:e.nextContentId=n)}))}))})),Nn(r,"setNodeOffset",(function(e,t,n){e.forEach((function(e){(Re(e)?e.params.type.params.branchingQuestion.alternatives||[]:[e.params]).forEach((function(e){e.nextContentId>t&&(e.nextContentId=e.nextContentId+n)}))}))})),Nn(r,"removeNode",(function(e,t){Re(e[t])?r.spliceBranchingQuestion(e,t):r.spliceInfoNode(e,t)})),Nn(r,"handleDelete",(function(){r.setState((function(e){var t={deleting:null,dialog:null,setNextContentId:null,content:Sn(e.content)};if(null!==e.setNextContentId){var o=t.content[e.editing],i=Be(o,e.deleting);-1===i?o.params.nextContentId=e.setNextContentId:null!==i&&(-2!==e.setNextContentId&&(o.params.type.params.branchingQuestion.alternatives[i].nextContentId=e.setNextContentId),r.editorOverlay.renderBranchingOptions[i](e.setNextContentId)),r.removeNode(t.content,e.deleting);for(var a=0;a<t.content.length;a++)t.content[a]===o&&(t.editing=a);return t}if(t.inserting=null,t.editing=null,t.placing=null,null!==e.placing&&e.placing!==e.deleting){var l=Re(e.content[e.deleting])?-1:e.content[e.deleting].params.nextContentId;if(t.content[e.deleting].formChildren.forEach((function(e){return e.remove()})),-1===e.placing)t.content[e.deleting]=r.props.getNewContent(r.getNewContentParams()),n.attachChild(t.content[e.deleting],l),t.editing=e.deleting;else{if(t.content[e.placing].params.nextContentId!==e.deleting&&t.content[e.deleting].params.nextContentId!==e.placing){var s=Re(t.content[e.placing])?-1:t.content[e.placing].params.nextContentId,c=0===e.placing?t.content[e.placing].params.nextContentId:void 0;r.replaceChild(r.getParent(e.placing,t.content),s,e.placing),r.replaceChild(t.content[e.placing],t.content[e.deleting].params.nextContentId,t.content[e.placing].params.nextContentId),0===e.deleting?r.replaceChild(t.content[e.deleting],e.placing):r.replaceChild(r.getParent(e.deleting,t.content),e.placing,e.deleting),c&&r.swapNodes(t.content,0,c)}r.removeNode(t.content,e.deleting)}r.tree["draggable-".concat(e.deleting)].dehighlight(),r.props.inserting&&r.props.onDropped()}else null!==e.deleting&&r.removeNode(t.content,null!==e.editing?e.editing:e.deleting);return t}),(function(){r.contentChanged(),r.setIsEditing()}))})),Nn(r,"swapNodes",(function(e,t,n){e.forEach((function(e){(Re(e)?e.params.type.params.branchingQuestion.alternatives:[e.params]).forEach((function(e){e.nextContentId===t?e.nextContentId=n:e.nextContentId===n&&(e.nextContentId=t)}))}));var r=e[t];e[t]=e[n],e[n]=r})),Nn(r,"handleCancel",(function(){null!==r.state.deleting&&r.tree["draggable-".concat(r.state.deleting)]&&r.tree["draggable-".concat(r.state.deleting)].dehighlight();var e={deleting:null,dialog:null};null!==r.state.setNextContentId?(e.setNextContentId=null,-1===Be(r.state.content[r.state.editing],r.state.deleting)&&r.editorOverlay.forceUpdate()):(e.placing=null,e.editing=null,e.inserting=null),r.setState(e,r.setIsEditing),r.props.inserting&&r.props.onDropped()})),Nn(r,"countDefaultEndScenarios",(function(){var e=0;return r.state.content.forEach((function(t){Re(t)?(t.params.type.params.branchingQuestion.alternatives||[]).forEach((function(t){r.hasEndScreen(t)&&!r.hasCustomEndScreen(t)&&e++})):r.hasEndScreen(t)&&!r.hasCustomEndScreen(t)&&e++})),e})),Nn(r,"contentChanged",(function(){r.props.onContentChanged(r.state.content.map((function(e){return e.params})),r.countDefaultEndScenarios())})),Nn(r,"setIsEditing",(function(){r.props.onIsEditing(null!==r.state.editing||null!==r.state.dialog)})),Nn(r,"handleEditorDone",(function(){r.setState({editing:null,inserting:null},(function(){r.contentChanged(),r.setIsEditing()}))})),Nn(r,"handleEditorRemove",(function(){r.setState((function(e){return{editing:null,inserting:null,placing:e.editing,deleting:e.editing,dialog:"delete"}}),(function(){r.contentChanged(),r.setIsEditing()}))})),Nn(r,"panningLimits",(function(e){var t=r.treewrap.getBoundingClientRect(),n=r.tree.element.getBoundingClientRect(),o=64*r.props.scale,i=n.width+4*o>t.width,a=n.height+o>t.height;i?e.x>o?e.x=o:t.width-e.x-4*o>n.width&&(e.x=t.width-n.width-4*o):e.x<o/2?e.x=o/2:e.x+n.width+o>t.width&&(e.x=t.width-n.width-o),a?e.y>o?e.y=o:t.height-e.y-4*o>n.height&&(e.y=t.height-n.height-4*o):e.y<0?e.y=0:e.y+n.height+o>t.height&&(e.y=t.height-n.height-o)})),Nn(r,"handleMoved",(function(e){r.setState({panning:e})})),Nn(r,"handleStopped",(function(e){e||(r.props.onHighlight(null),setTimeout((function(){null!==r.state.placing&&null===r.state.deleting&&(r.setState({placing:null,tips:null}),r.props.onDropped())}),0))})),Nn(r,"handleNextContentChange",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e.nextContentId>-1){for(var o=0,i=0;i<r.state.content.length;i++){var a=Be(r.state.content[i],e.nextContentId,!0),l=r.tree.processed.indexOf(e.nextContentId)<r.tree.processed.indexOf(i);if(a&&!l&&(o+=Be(r.state.content[i],e.nextContentId,!0)),o>1)break}if(o<2&&r.tree.processed.indexOf(e.nextContentId)>r.tree.processed.indexOf(r.state.editing))return r.setState({setNextContentId:t,deleting:e.nextContentId,dialog:"delete"+(-2===t?" alternative":"")},r.setIsEditing),!0}-2!==t&&(e.nextContentId=t,null!==n?n(t):r.forceUpdate())})),Nn(r,"renderConfirmationDialogContent",(function(){if(-2===r.state.setNextContentId||null!==r.state.setNextContentId){var t=r.getChildrenTitles(r.state.deleting,null,r.state.setNextContentId);return t.unshift(Le(r.state.content[r.state.deleting])),e.createElement("div",{className:"confirmation-details"},e.createElement("p",null,v("shiftConfirmationAlternative"),":"),e.createElement("ul",null,t.map((function(t,n){return e.createElement("li",{key:n},t)}))))}return Re(r.state.content[r.state.deleting])?e.createElement("div",{className:"confirmation-details"},e.createElement("p",null,v("shiftConfirmationBranch"),":"),e.createElement("ul",null,r.getChildrenTitles(r.state.deleting,r.state.placing).map((function(t,n){return e.createElement("li",{key:n},t)})))):e.createElement("div",{className:"confirmation-details"},e.createElement("p",null,v("contentDeletionConfirmation")))})),r.state={placing:null,isPlacingOnBQ:!1,deleting:null,inserting:null,editing:null,editorContents:{top:{icon:"",title:"",saveButton:v("saveChanges"),closeButton:v("close")},content:{}},dzSpecs:{width:42,height:32},insertingId:null,content:r.props.content,dialog:null,panning:{x:0,y:0},setNextContentId:null,tips:null},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&On(e,t)}(n,t),function(e,t,n){return t&&Cn(e.prototype,t),n&&Cn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(n,[{key:"componentDidMount",value:function(){this.props.onContentChanged(null,this.countDefaultEndScenarios()),document.addEventListener("keydown",this.handleDocumentKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleDocumentKeyDown)}},{key:"placeInTree",value:function(e,t,r,o){var i=this;this.setState((function(a,l){var s={placing:null,tips:null,editing:null,inserting:null,content:Sn(a.content)};if(-1===e&&(s.content.push(i.props.getNewContent(i.getNewContentParams())),e=s.content.length-1,s.editing=e,0===e))return Re(s.content[0])||(s.content[0].params.nextContentId=-1),l.onDropped(),s;void 0!==r&&(r=s.content[r]);var c=r&&Re(r),u=s.content[e].params.nextContentId;i.tree.processed.indexOf(u)<i.tree.processed.indexOf(e)&&(u=-1);var d=-1;if(0===t&&(s.content.splice(0,0,s.content[e]),null!==s.editing&&(s.editing=0),d=e+1,s.content.splice(d,1),n.attachChild(s.content[0],1)),0===e?(s.content.splice(0,0,s.content[u]),d=u+1,s.content.splice(d,1),n.attachChild(s.content[1],t===u?u+1:t),i.hasChangedOldParentLink=!0):i.hasChangedOldParentLink=!1,i.hasChangedNewParentLink=!1,0!==t&&0!==e){var p=t;if(!Re(s.content[e])){var f=s.content[e].params.nextContentId;void 0===p&&i.tree.processed.indexOf(f)<i.tree.processed.indexOf(e)&&(p=f)}n.attachChild(s.content[e],p)}var h=[],m=function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;r.forEach((function(r,l){if(void 0!==r&&-1!==r){var c=null===o,p=c?s.content[r]:null;if(c){if(-1!==h.indexOf(r))return;h.push(r)}var f=c&&Re(p),b=c?null:o.params.type.params.branchingQuestion.alternatives[l];f||0===t&&(0===r&&c||0===a)||i.updateNextContentId(c?p.params:b,e,u,t,d);var g=f?n.getBranchingChildren(p):[c?p.params.nextContentId:b.nextContentId];g&&m(g,f?p:null,f?r:null)}}))};return m([0]),void 0!==r&&(c?r.params.type.params.branchingQuestion.alternatives[o].nextContentId=0===e?1:e:r.params.nextContentId=0===e?1:e),l.onDropped(),s}),(function(){i.contentChanged(),i.setIsEditing()}))}},{key:"getLibrary",value:function(e){for(var t=0;t<this.props.libraries.length;t++)if(this.props.libraries[t].name===e)return this.props.libraries[t];var n=Fe(e),r=n.replace("H5P.","");return{title:r,name:n,className:r.toLocaleLowerCase()}}},{key:"componentDidUpdate",value:function(){var e=this;if(this.props.center&&this.tree&&this.tree.element&&this.tree["draggable-0"]){var t=this.treewrap.getBoundingClientRect().width;if(0!==t){var n={x:0,y:0};if(this.props.centerWholeTree)n.x=(t-this.tree.element.getBoundingClientRect().width)/2;else{var r=t/2-this.props.nodeSize.width*this.props.scale/2;n.x=r-this.tree["draggable-0"].props.position.x*this.props.scale}this.setState({panning:n},this.props.onCanvasCentered)}}if(this.initialDropzone){var o=this.treewrap.getBoundingClientRect().width;if(0!==o){var i=o/2-20.795;this.initialDropzone.element.style.left=i+"px"}}this.props.translate&&!this.props.center&&this.setState((function(t){return{panning:{x:t.panning.x+e.props.translate.x,y:t.panning.y+e.props.translate.y}}}),this.props.onCanvasTranslated)}},{key:"render",value:function(){var t=this;this.dropzones=[];var n=this.state.content[this.state.editing],r=[];return n&&this.state.content.forEach((function(e,n){n!==t.state.editing&&r.push({id:n,label:Le(e)})})),e.createElement("div",{className:"wrapper"+(this.props.isTourActive?" tour-fade":"")},null!==this.state.editing&&e.createElement(en,Nn({ref:function(e){return t.editorOverlay=e},content:n,semantics:this.props.semantics,validAlternatives:r,scoringOption:this.props.scoringOption,onRemove:this.handleEditorRemove,onDone:this.handleEditorDone,onNextContentChange:this.handleNextContentChange,isInserting:this.props.inserting,moveDown:null!==this.state.dialog},"scoringOption",this.props.scoringOption)),(null!==this.state.deleting||null!==this.state.editing)&&e.createElement(xn,null),!!this.props.inserting&&this.state.placing&&e.createElement(De,{inserting:this.props.inserting,ref:function(e){return t["draggable--1"]=e},width:this.props.nodeSize.insertingWidth,selected:-1===this.state.placing,onMove:function(){return t.tree.handleMove(-1,t["draggable--1"])},onDropped:function(){return t.tree.handleDropped(-1,t["draggable--1"])},contentClass:this.props.inserting.library.className,position:this.props.inserting.position,onPlacing:function(){return t.handlePlacing(-1)},scale:this.props.scale,onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseLeft},this.props.inserting.library.title),e.createElement("div",{className:"canvas".concat(null!==this.state.placing?" placing-draggable":"")},this.state.tips&&e.createElement(ut,{scenario:this.state.tips.scenario,currentContentTypeTitle:this.state.tips.currentContentTypeTitle,newContentTypeTitle:this.state.tips.newContentTypeTitle}),e.createElement(ve,{ref:function(e){return t.treewrap=e},className:"treewrap"+(null!==this.props.highlight?" dark":""),position:this.state.panning,limits:this.panningLimits,onMoved:this.handleMoved,onStopped:this.handleStopped},!this.props.libraries&&e.createElement("div",{key:"loading",className:"loading"},v("loading")),this.props.libraries&&e.createElement(Pt,{ref:function(e){return t.tree=e},content:this.state.content,panning:this.state.panning,scale:this.props.scale,highlight:this.props.highlight,onlyThisBall:this.props.onlyThisBall,nodeSize:this.props.nodeSize,placing:this.state.placing,library:this.state.library,getLibrary:function(e){return t.getLibrary(e)},dropzones:this.dropzones,scoringOption:this.props.scoringOption,onPlacing:this.handlePlacing,onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseLeft,onDropped:this.handleDropped,onEdit:this.handleContentEdit,onPreview:this.props.onContentPreview,onCopy:this.handleContentCopy,onDelete:this.handleContentDelete,onHighlightLoop:this.props.onHighlight,onHighlight:this.handleContentHighlight,onDropzoneHighlight:this.handleDropzoneHighlight,onFocus:this.handleTreeFocus,onDropzoneClick:this.handleDropzoneClick,draggableMouseOver:this.props.draggableMouseOver,draggableMouseOut:this.props.draggableMouseOut,draggableHovered:this.props.draggableHovered})),!this.state.content.length&&e.createElement(at,{handleClick:this.props.onDropped,handleTutorialClick:this.props.handleOpenTutorial},e.createElement(vt,{key:"f---9/undefined-dz-0",ref:function(e){t.initialDropzone=e,t.dropzones.push(e)},nextContentId:-9,parent:void 0,alternative:0,position:{x:361.635,y:130},elementClass:"dropzone"+(this.props.inserting?"":" disabled"),style:{left:"361.635px",top:"130px"},onFocus:function(){return t.handleDropzoneHighlight()},onMouseOut:function(){return t.handleTreeFocus()},onClick:function(){return t.handleDropzoneClick(-9,void 0,0)}})),this.state.content.length&&e.createElement(pn,{fade:null!==this.props.highlight,onTutorialOpen:this.props.handleOpenTutorial})),null!==this.state.dialog&&e.createElement(At,{action:this.state.dialog,isBQ:this.state.isPlacingOnBQ,onConfirm:this.handleDelete,onCancel:this.handleCancel},this.renderConfirmationDialogContent()))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.inserting&&e.insertingId!==t.insertingId?{insertingId:e.insertingId,tips:null,placing:-1,library:e.inserting.library}:null}},{key:"attachChild",value:function(e,t){(void 0===t||t<0)&&(t=-1),Re(e)?t>-1&&(e.params.type.params.branchingQuestion.alternatives[0].nextContentId=t):e.params.nextContentId=t}},{key:"getBranchingChildren",value:function(e){if(e.params.type&&e.params.type.params&&e.params.type.params.branchingQuestion&&e.params.type.params.branchingQuestion.alternatives&&e.params.type.params.branchingQuestion.alternatives.length){var t=[];return e.params.type.params.branchingQuestion.alternatives.forEach((function(e){t.push(e.nextContentId)})),t}}},{key:"camelToKebab",value:function(e){return e.split("").map((function(e,t){return 0===t?e.toLowerCase():e===e.toUpperCase()?"-".concat(e.toLowerCase()):e})).join("")}}])}(e.Component);In.propTypes={width:o().number,inserting:o().object,highlight:o().number,onlyThisBall:o().oneOfType([o().string,o().number]),scale:o().number,center:o().bool,onCanvasCentered:o().func,translate:o().object,onCanvasTranslated:o().func,onContentPreview:o().func,draggableMouseOver:o().func,draggableMouseOut:o().func,draggableHovered:o().number,isTourActive:o().bool};var jn=n(9030),zn={};function An(e){return An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},An(e)}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bn(r.key),r)}}function Dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dn=function(){return!!e})()}function Rn(e){return Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rn(e)}function Fn(e,t){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fn(e,t)}function Ln(e,t,n){return(t=Bn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(e){var t=function(e){if("object"!=An(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=An(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==An(t)?t:t+""}zn.styleTagTransform=b(),zn.setAttributes=p(),zn.insert=u().bind(null,"head"),zn.domAPI=s(),zn.insertStyleElement=h(),a()(jn.A,zn),jn.A&&jn.A.locals&&jn.A.locals;var Hn=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Ln(t=function(e,t,n){return t=Rn(t),function(e,t){if(t&&("object"==An(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Dn()?Reflect.construct(t,n||[],Rn(e).constructor):t.apply(e,n))}(this,n,[e]),"handleShowPopup",(function(){t.setState({showInfoPopup:!0})})),Ln(t,"handleClosePopup",(function(){t.setState({showInfoPopup:!1})})),Ln(t,"handleHighlight",(function(){t.props.onHighlight(-1),t.handleClosePopup()})),Ln(t,"handleScaleChanged",(function(e,n){e&&(e=Math.max(e,t.zoomLevels[0]),e=Math.min(e,t.zoomLevels[t.zoomLevels.length-1]),t.setState({scale:e}),t.props.onScaleChanged(e,{center:n.center,translate:n.translate}))})),Ln(t,"handleZoom",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!t.props.disabled){var n,r=t.zoomLevels.indexOf(t.state.scale);-1===r&&(r=t.state.scale<t.zoomLevels[0]?0:t.state.scale>t.zoomLevels[t.zoomLevels.length-1]?t.zoomLevels.length-1:t.zoomLevels.indexOf(He(t.zoomLevels,(function(e){return e>t.state.scale})))),n=e?r+1>=t.zoomLevels.length?t.state.scale:t.zoomLevels[r+1]:r<=0?t.state.scale:t.zoomLevels[r-1];var o=t.props.contentRect.getBoundingClientRect();t.handleScaleChanged(n,{translate:{x:(o.width-o.width/t.state.scale*n)/4,y:(o.height-o.height/t.state.scale*n)/4}})}})),Ln(t,"handleFitToCanvas",(function(){if(t.props.containerRect&&t.props.contentRect){var e=t.props.containerRect.getBoundingClientRect(),n=t.props.contentRect.getBoundingClientRect(),r=e.width/e.height,o=n.width/n.height<r?e.height*t.zoomFitPadding/n.height:e.width*t.zoomFitPadding/n.width,i=Math.min(t.defaultScale,t.state.scale*o);t.handleScaleChanged(i,{center:!0})}})),t.zoomLevels=[.1,.25,.33,.5,.67,.75,.8,.9,1,1.1,1.25,1.5,1.75,2,2.5],t.zoomFitPadding=.9,t.defaultScale=1,t.state={showInfoPopup:!1,scale:t.defaultScale},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fn(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){var t=this,n="info-popup";this.state.showInfoPopup&&(n+=" visible");var r="zoom-out";(this.props.disabled||this.state.scale<=this.zoomLevels[0])&&(r+=" disabled");var o="zoom-in";return(this.props.disabled||this.state.scale>=this.zoomLevels[this.zoomLevels.length-1])&&(o+=" disabled"),e.createElement("div",{className:"toolbar"+(this.props.isTourActive?" tour-fade":"")},e.createElement("div",{className:"zoom-wrapper"},e.createElement("span",{className:r,title:v("zoomOut"),tabIndex:"0",role:"button",onClick:function(){return t.handleZoom(!1)}}),e.createElement("span",{className:"zoom-status"},"".concat(Math.round(100*this.state.scale)," %")),e.createElement("span",{className:o,title:v("zoomIn"),tabIndex:"0",role:"button",onClick:function(){return t.handleZoom(!0)}}),e.createElement("span",{className:"fit-to-canvas"+(this.props.disabled?" disabled":""),title:v("zoomToFit"),tabIndex:"0",role:"button",onClick:this.handleFitToCanvas},v("zoomToFit"))),e.createElement("div",{className:"missing-end-scenarios",title:"".concat(this.props.numDefaultEndScenarios," ").concat(v("alternativeWithoutCustomEnd")),role:"button",tabIndex:"0",onClick:this.handleShowPopup},this.props.numDefaultEndScenarios),e.createElement("div",{className:n},this.props.numDefaultEndScenarios," ",v("alternativesMissing"),!!this.props.numDefaultEndScenarios&&e.createElement("span",null," ",e.createElement("span",{className:"highlight-end-scenarios-button",role:"button",tabIndex:"0",onClick:this.handleHighlight},v("clickHereToHighlight"))),e.createElement("div",{className:"close-info-popup-button",onClick:this.handleClosePopup,"aria-label":v("close")})))}}])&&Mn(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);Hn.propTypes={numDefaultEndScenarios:o().number,onHighlight:o().func,scale:o().number,onScaleChanged:o().func,containerRect:o().object,contentRect:o().object,isTourActive:o().bool};var Qn=n(8542),Un={};function Wn(e){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function $n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vn(r.key),r)}}function Vn(e){var t=function(e){if("object"!=Wn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wn(t)?t:t+""}function qn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qn=function(){return!!e})()}function Gn(e){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gn(e)}function Xn(e,t){return Xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xn(e,t)}Un.styleTagTransform=b(),Un.setAttributes=p(),Un.insert=u().bind(null,"head"),Un.domAPI=s(),Un.insertStyleElement=h(),a()(Qn.A,Un),Qn.A&&Qn.A.locals&&Qn.A.locals;var Kn=function(t){function n(t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=function(e,t,n){return t=Gn(t),function(e,t){if(t&&("object"==Wn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qn()?Reflect.construct(t,n||[],Gn(e).constructor):t.apply(e,n))}(this,n,[t])).refStartScreen=e.createRef(),r.refEndScreen=e.createRef(),r.refScoringOption=e.createRef(),r.refBehaviour=e.createRef();var o=r.props.main.params,i=H5PEditor.findSemanticsField("startScreen",r.props.main.field);r.startScreenWrapper=document.createElement("div");var a=H5PEditor.findSemanticsField("endScreens",r.props.main.field);r.endScreenWrapper=document.createElement("div");var l=H5PEditor.findSemanticsField("scoringOption",r.props.main.field),s=H5PEditor.findSemanticsField("scoringOptionGroup",r.props.main.field);r.scoringOptionWrapper=document.createElement("div");var c=H5PEditor.findSemanticsField("behaviour",r.props.main.field);r.behaviourWrapper=document.createElement("div"),H5PEditor.processSemanticsChunk([i],o,H5PEditor.$(r.startScreenWrapper),r.props.main);var u=[].concat(r.props.main.children),d={};return d[a.field.name]=o.endScreens[0],H5PEditor.processSemanticsChunk([a.field],d,H5PEditor.$(r.endScreenWrapper),r.props.main),u=u.concat(r.props.main.children),H5PEditor.processSemanticsChunk([s],o,H5PEditor.$(r.scoringOptionWrapper),r.props.main),u=u.concat(r.props.main.children),H5PEditor.processSemanticsChunk([c],o,H5PEditor.$(r.behaviourWrapper),r.props.main),u=u.concat(r.props.main.children),r.props.main.children=u,r.$scoringField=H5PEditor.$(r.endScreenWrapper).find(".field-name-endScreenScore"),H5PEditor.followField(r.props.main,s.name+"/"+l.name,(function(){r.$scoringField.toggleClass("no-display",void 0!==o.scoringOptionGroup.scoringOption&&"static-end-score"!==o.scoringOptionGroup.scoringOption),r.props.updateScoringOption()})),r.l10n={tooltipStartingScreen:v("tooltipStartingScreen"),tooltipEndScenario:v("tooltipEndScenario"),tooltipEndFeedback:v("tooltopEndFeedback"),tooltipScoringOptions:"<span class='tooltip-title'>".concat(v("tooltipStaticScoreTitle"),"</span><p>").concat(v("tooltipStaticScoreText"),"</p>\n <span class='tooltip-title'>").concat(v("tooltipDynamicScoreTitle"),"</span><p>").concat(v("tooltipDynamicScoreText"),"</p>\n <span class='tooltip-title'>").concat(v("tooltipNoScoreTitle"),"</span><p>").concat(v("tooltipNoScoreText"),"</p>")},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xn(e,t)}(n,t),r=n,(o=[{key:"componentDidMount",value:function(){this.refStartScreen.current.appendChild(this.startScreenWrapper),this.refEndScreen.current.appendChild(this.endScreenWrapper),this.refScoringOption.current.appendChild(this.scoringOptionWrapper),this.refBehaviour.current.appendChild(this.behaviourWrapper)}},{key:"render",value:function(){return e.createElement("div",{id:"settings",className:"tab tab-view-full-page large-padding"},e.createElement("span",{className:"tab-view-title"},v("settings")),e.createElement("span",{className:"tab-view-description"},v("branchingQuestionSettingsDescription")),e.createElement("div",{className:"tab-view-white-box"},e.createElement("fieldset",null,e.createElement("legend",{className:"tab-view-info"},v("configureStartScreen"),e.createElement(ie,{text:this.l10n.tooltipStartingScreen,tooltipClass:"tooltip below"})),e.createElement("div",{ref:this.refStartScreen,className:"h5p-scoring-option-wrapper"})),e.createElement("fieldset",null,e.createElement("legend",{className:"tab-view-info"},v("configureEndScenario"),e.createElement(ie,{text:this.l10n.tooltipEndScenario})),e.createElement("div",{ref:this.refEndScreen,className:"h5p-scoring-option-wrapper"})),e.createElement("fieldset",null,e.createElement("legend",{className:"tab-view-info"},v("scoringOptions"),e.createElement(ie,{text:this.l10n.tooltipScoringOptions,tooltipClass:"tooltip wide"})),e.createElement("div",{ref:this.refScoringOption,className:"h5p-scoring-option-wrapper"})),e.createElement("fieldset",null,e.createElement("legend",{className:"tab-view-info"},v("behaviouralSettings")),e.createElement("div",{ref:this.refBehaviour,className:"h5p-scoring-option-wrapper"}))))}}])&&$n(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);Kn.propTypes={main:o().object,updateScoringOption:o().func};var Yn=n(2291),Zn={};function Jn(e){return Jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jn(e)}function er(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tr(r.key),r)}}function tr(e){var t=function(e){if("object"!=Jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jn(t)?t:t+""}function nr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nr=function(){return!!e})()}function rr(e){return rr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rr(e)}function or(e,t){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},or(e,t)}Zn.styleTagTransform=b(),Zn.setAttributes=p(),Zn.insert=u().bind(null,"head"),Zn.domAPI=s(),Zn.insertStyleElement=h(),a()(Yn.A,Zn),Yn.A&&Yn.A.locals&&Yn.A.locals;var ir=function(t){function n(t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(r=function(e,t,n){return t=rr(t),function(e,t){if(t&&("object"==Jn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nr()?Reflect.construct(t,n||[],rr(e).constructor):t.apply(e,n))}(this,n,[t])).commonFields=e.createRef(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&or(e,t)}(n,t),r=n,(o=[{key:"componentDidMount",value:function(){this.props.parent.$common.find("p.desc").remove(),H5PEditor.setCommonFieldsWrapper(this.props.parent,this.commonFields.current)}},{key:"render",value:function(){return e.createElement("div",{id:"translate-interface",className:"tab tab-view-full-page large-padding"},e.createElement("span",{className:"tab-view-title"},v("translations")),e.createElement("span",{className:"tab-view-description"},v("translationsDescription")),e.createElement("div",{className:"tab-view-white-box",ref:this.commonFields}))}}])&&er(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component),ar=n(1241),lr={};function sr(e){return sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(e)}function cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ur(r.key),r)}}function ur(e){var t=function(e){if("object"!=sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sr(t)?t:t+""}function dr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dr=function(){return!!e})()}function pr(e){return pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pr(e)}function fr(e,t){return fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fr(e,t)}lr.styleTagTransform=b(),lr.setAttributes=p(),lr.insert=u().bind(null,"head"),lr.domAPI=s(),lr.insertStyleElement=h(),a()(ar.A,lr),ar.A&&ar.A.locals&&ar.A.locals;var hr=function(t){function n(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){return t=pr(t),function(e,t){if(t&&("object"==sr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dr()?Reflect.construct(t,n||[],pr(e).constructor):t.apply(e,n))}(this,n,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fr(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){return e.createElement("div",{id:"help",className:"tab tab-view-full-page large-padding"},e.createElement("span",{className:"tab-view-title"},v("tutorial")),e.createElement("span",{className:"tab-view-description"},v("tutorialDescription")),e.createElement("div",{className:"tab-view-white-box"},e.createElement("iframe",{src:"https://documentation.h5p.com/content/1290532202058682888/embed",width:"100%",height:"100%",frameBorder:"0",allowFullScreen:"allowfullscreen",allow:"geolocation *; microphone *; camera *; midi *; encrypted-media *"})))}}])&&cr(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component),mr=n(5302),br={};function gr(e){return gr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gr(e)}function yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vr(r.key),r)}}function vr(e){var t=function(e){if("object"!=gr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gr(t)?t:t+""}function wr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wr=function(){return!!e})()}function xr(e){return xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xr(e)}function Er(e,t){return Er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Er(e,t)}br.styleTagTransform=b(),br.setAttributes=p(),br.insert=u().bind(null,"head"),br.domAPI=s(),br.insertStyleElement=h(),a()(mr.A,br),mr.A&&mr.A.locals&&mr.A.locals;var Sr=function(t){function n(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){return t=xr(t),function(e,t){if(t&&("object"==gr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,wr()?Reflect.construct(t,n||[],xr(e).constructor):t.apply(e,n))}(this,n,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Er(e,t)}(n,t),r=n,(o=[{key:"componentDidMount",value:function(){this.props.metadataForm.appendTo(this.form)}},{key:"render",value:function(){var t=this;return e.createElement("div",{id:"metadata",className:"tab tab-view-full-page large-padding"},e.createElement("span",{className:"tab-view-title"},v("metadata")),e.createElement("span",{className:"tab-view-description"},v("addMetadata")),e.createElement("div",{className:"tab-view-white-box"},e.createElement("fieldset",null,e.createElement("legend",{className:"tab-view-info"},v("metadata"),e.createElement(ie,{text:v("metadataDescription"),tooltipClass:"tooltip below"})),e.createElement("div",{ref:function(e){return t.form=e}}))))}}])&&yr(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component),kr=n(2100),Cr={};Cr.styleTagTransform=b(),Cr.setAttributes=p(),Cr.insert=u().bind(null,"head"),Cr.domAPI=s(),Cr.insertStyleElement=h(),a()(kr.A,Cr),kr.A&&kr.A.locals&&kr.A.locals;const Tr=function(t){return e.createElement(_t,{classes:"full-screen-dialog",headerText:v("fullScreenMode"),body:v("fullScreenRecommendation"),textConfirm:v("editFullScreen"),textCancel:v("editWindow"),handleConfirm:t.handleConfirm,handleCancel:t.handleCancel})};var Pr=n(138),Or={};Or.styleTagTransform=b(),Or.setAttributes=p(),Or.insert=u().bind(null,"head"),Or.domAPI=s(),Or.insertStyleElement=h(),a()(Pr.A,Or),Pr.A&&Pr.A.locals&&Pr.A.locals;var Nr=n(4487),_r={};function Ir(e){return Ir="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ir(e)}function jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rr(r.key),r)}}function zr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zr=function(){return!!e})()}function Ar(e){return Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ar(e)}function Mr(e,t){return Mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mr(e,t)}function Dr(e,t,n){return(t=Rr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rr(e){var t=function(e){if("object"!=Ir(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ir(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ir(t)?t:t+""}_r.styleTagTransform=b(),_r.setAttributes=p(),_r.insert=u().bind(null,"head"),_r.domAPI=s(),_r.insertStyleElement=h(),a()(Nr.A,_r),Nr.A&&Nr.A.locals&&Nr.A.locals;var Fr=function(t){function n(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Dr(t=function(e,t,n){return t=Ar(t),function(e,t){if(t&&("object"==Ir(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zr()?Reflect.construct(t,n||[],Ar(e).constructor):t.apply(e,n))}(this,n,[e]),"setContentId",(function(e){e!==n.defaultValue?(t.setState({value:e}),t.navigateToContent(e)):t.props.previewInstance.trigger("restarted")})),t.previewSceneSelectId=H5PEditor.getNextFieldId({name:"previewScene"});var r=null!==e.initialContentId?e.initialContentId:n.defaultValue;return r!==n.defaultValue&&t.navigateToContent(r),t.state={value:r},e.previewInstance.on("navigated",(function(e){t.setState({value:parseInt(e.data.nextContentId)})})),e.previewInstance.on("started",(function(){t.setState({value:0})})),e.previewInstance.on("restarted",(function(){t.setState({value:n.defaultValue})})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mr(e,t)}(n,t),r=n,o=[{key:"navigateToContent",value:function(e){this.props.previewInstance.trigger("navigated",{nextContentId:e})}},{key:"render",value:function(){var t=this;return e.createElement("div",{className:"preview-scene-selection-wrapper"},e.createElement("label",{className:"preview-introduction",htmlFor:this.previewSceneSelectId},v("previewSelectorTitle"),":"),e.createElement("div",{className:"preview-selector field"},e.createElement("select",{id:this.previewSceneSelectId,className:"scene-selector",value:this.state.value,onChange:function(e){return t.setContentId(e.target.value)},disabled:this.props.isDisabled},e.createElement("option",{value:n.defaultValue},v("previewFromBeginning")),this.props.params.branchingScenario.content.map((function(t){var n=Le({params:t});return e.createElement("option",{key:t.contentId,value:t.contentId},n)})))))}}],o&&jr(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);Dr(Fr,"defaultValue","start"),Fr.propTypes={previewInstance:o().object,params:o().object,isDisabled:o().bool,initialContentId:o().number};var Lr=n(4229),Br={};Br.styleTagTransform=b(),Br.setAttributes=p(),Br.insert=u().bind(null,"head"),Br.domAPI=s(),Br.insertStyleElement=h(),a()(Lr.A,Br),Lr.A&&Lr.A.locals&&Lr.A.locals;var Hr=function(t){return e.createElement("div",{className:"empty-preview-wrapper"},e.createElement("div",{className:"empty-preview-icon"}),e.createElement("div",{className:"empty-preview-title"},v("noPreviewContentTitle")),e.createElement("div",{className:"empty-preview-description"},e.createElement("a",{className:"editor-link",onClick:t.goToEditor,href:"#"},v("noPreviewContentText"))))};const Qr=Hr;Hr.propTypes={goToEditor:o().func};const Ur=n.p+"bcd324b5f61dbf14f28b.gif";var Wr=n(1990),$r={};$r.styleTagTransform=b(),$r.setAttributes=p(),$r.insert=u().bind(null,"head"),$r.domAPI=s(),$r.insertStyleElement=h(),a()(Wr.A,$r),Wr.A&&Wr.A.locals&&Wr.A.locals;const Vr=function(){return e.createElement("div",{className:"loading-wrapper"},e.createElement("img",{className:"loading-graphics",src:Ur,alt:""}),e.createElement("div",{className:"loading-text"},v("previewLoading")))};var qr=function(t){return e.createElement("div",{className:"info-popup visible"},e.createElement("div",{className:"info-popup-header"},v("previewMode")),e.createElement("div",{className:"info-popup-body"},v("previewModeBody")),e.createElement("div",{className:"close-info-popup-button",onClick:t.hideInfoPopup,"aria-label":v("close")}))};qr.propTypes={hideInfoPopup:o().func};const Gr=qr;function Xr(e){return Xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xr(e)}function Kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eo(r.key),r)}}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yr=function(){return!!e})()}function Zr(e){return Zr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zr(e)}function Jr(e,t){return Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jr(e,t)}function eo(e){var t=function(e){if("object"!=Xr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xr(t)?t:t+""}var to=function(t){function n(t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){(t=eo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(r=function(e,t,n){return t=Zr(t),function(e,t){if(t&&("object"==Xr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yr()?Reflect.construct(t,n||[],Zr(e).constructor):t.apply(e,n))}(this,n,[t]),"handleWindowResize",(function(){r.resizeTimeout=null,r.resizeTimeout||(r.resizeTimeout=setTimeout((function(){r.resizeTimeout=null,r.preview&&r.preview.trigger("resize")}),66))})),r.previewContainer=e.createRef(),r.state={isInitialized:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jr(e,t)}(n,t),r=n,(o=[{key:"componentDidMount",value:function(){this.props.hasLoadedLibraries&&!this.state.isInitialized&&this.initializeInstance(),window.addEventListener("resize",this.handleWindowResize)}},{key:"componentDidUpdate",value:function(){this.props.hasLoadedLibraries&&!this.state.isInitialized&&this.initializeInstance()}},{key:"initializeInstance",value:function(){if(!(this.props.params.branchingScenario.content.length<=0)){this.setState({isInitialized:!1});var e=this.previewContainer.current;e.firstChild&&e.removeChild(e.firstChild);var t=Object.keys(H5PEditor.libraryLoaded).filter((function(e){return"H5P.BranchingScenario"===e.split(" ")[0]}))[0];this.props.params.branchingScenario.preventXAPI=!0,this.preview=H5P.newRunnable({library:t,params:this.props.params},H5PEditor.contentId||1,H5P.jQuery(e)),this.setState({isInitialized:!0})}}},{key:"render",value:function(){return this.props.params.branchingScenario.content.length<=0?e.createElement("div",{className:"preview-container"},e.createElement(Qr,{goToEditor:this.props.goToEditor})):this.state.isInitialized?e.createElement("div",{className:"preview-container"+(this.props.tour?" tour-fade":"")},e.createElement(Fr,{previewInstance:this.preview,params:this.props.params,initialContentId:this.props.previewId}),e.createElement("div",{className:"preview-wrapper h5p-frame"},e.createElement("div",{ref:this.previewContainer})),this.props.isShowingInfoPopup&&e.createElement(Gr,{hideInfoPopup:this.props.hideInfoPopup})):e.createElement("div",{className:"preview-container"},e.createElement(Vr,null),e.createElement("div",{className:"preview-wrapper"},e.createElement("div",{ref:this.previewContainer})))}}])&&Kr(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);function no(e){return no="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},no(e)}function ro(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oo(r.key),r)}}function oo(e){var t=function(e){if("object"!=no(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=no(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==no(t)?t:t+""}function io(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(io=function(){return!!e})()}function ao(e){return ao=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ao(e)}function lo(e,t){return lo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lo(e,t)}to.propTypes={params:o().object,hasLoadedLibraries:o().bool,isShowingInfoPopup:o().bool,previewId:o().number,goToEditor:o().func,hideInfoPopup:o().func};var so=function(t){function n(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,t,n){return t=ao(t),function(e,t){if(t&&("object"==no(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,io()?Reflect.construct(t,n||[],ao(e).constructor):t.apply(e,n))}(this,n,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lo(e,t)}(n,t),r=n,(o=[{key:"render",value:function(){return e.createElement("div",{className:"tour-box "+this.props.markerPosition,style:this.props.position},e.createElement("div",{className:"tour-circle"},e.createElement("div",{className:"tour-dialog"},this.props.message,e.createElement("br",null),e.createElement("button",{type:"button",className:"tour-button",onClick:this.props.onClose},v("iGotIt")))))}}])&&ro(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component),co=function(e,t){var n;void 0!==window.localStorage&&(n=!!window.localStorage.getItem(e));try{H5P.getUserData(0,e,(function(e,r){e||(n=r),t(n)}))}catch(e){t(n)}},uo=function(e,t){void 0!==window.localStorage&&window.localStorage.setItem(e,t);try{H5P.setUserData(0,e,t)}catch(e){}};function po(e){return po="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},po(e)}function fo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yo(r.key),r)}}function ho(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ho=function(){return!!e})()}function mo(e){return mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mo(e)}function bo(e,t){return bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bo(e,t)}function go(e,t,n){return(t=yo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yo(e){var t=function(e){if("object"!=po(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=po(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==po(t)?t:t+""}var vo=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),go(t=function(e,t,n){return t=mo(t),function(e,t){if(t&&("object"==po(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ho()?Reflect.construct(t,n||[],mo(e).constructor):t.apply(e,n))}(this,n,[e]),"setTourState",(function(e){var n=document.querySelector(t.state.fullscreen?".tree.h5peditor-semi-fullscreen":".h5peditor-form").getBoundingClientRect(),r=6;switch(e){case"screen-size":var o=t.topbar.children[2].getBoundingClientRect();t.setState({tour:{state:"screen-size",additionalClass:!1,markerPosition:"left-bottom",fadeActive:!1,message:v("fullScreenModeButton"),width:o.width-18+"px",height:o.height-18+"px",left:o.left+r-n.left+"px",top:o.top+r-n.top+"px"}});break;case"content-node":var i=document.querySelector(".info-container-buttons").getBoundingClientRect();r=5,t.setState({tour:{state:"content-node",additionalClass:"content-node-tour",markerPosition:"right-top",fadeActive:!0,message:v("dragContentTypesBelow"),width:i.width-r+"px",height:i.height-r+"px",left:i.left-n.left+"px",top:i.top-n.top+"px"}});break;case"branching-node":var a=document.querySelector(".branching-container-buttons").getBoundingClientRect();r=5,t.setState({tour:{state:"branching-node",additionalClass:"branching-node-tour",markerPosition:"right-top",fadeActive:!0,message:v("dragBranchingQuestionBelow"),width:a.width-r+"px",height:a.height-r+"px",left:a.left-n.left+"px",top:a.top-n.top+"px"}})}})),go(t,"handleWindowResize",(function(){t.resizeTimeout=null,t.resizeTimeout||(t.resizeTimeout=setTimeout((function(){t.resizeTimeout=null,t.setState({center:!0}),t.state.tour&&t.setTourState("screen-size")}),66))})),go(t,"handleLibrariesFetched",(function(e){for(var n=[],r=0;r<e.length;r++)!0!==e[r].restricted&&n.push({title:e[r].title,name:e[r].uberName,className:e[r].name.replace("H5P.","").toLocaleLowerCase()});t.setState({libraries:n}),t.handleLibrariesLoaded(e)})),go(t,"handleLibrariesLoaded",(function(e){var n=0;e.forEach((function(r){window.H5PEditor.loadLibrary(r.uberName,(function(){(n+=1)>=e.length&&t.setState({hasLoadedLibraries:!0})}))}))})),go(t,"handleMouseDown",(function(e){t.setState((function(t){return{inserting:e,insertingId:t.insertingId+1,highlight:null}}))})),go(t,"handleOpenCanvas",(function(){t.setState({activeIndex:0})})),go(t,"handleOpenTutorial",(function(){t.setState({activeIndex:3})})),go(t,"setActiveIndex",(function(e){t.setState({activeIndex:e})})),go(t,"handleIsEditing",(function(e){t.setState({isEditing:e})})),go(t,"handleHighlight",(function(e,n){t.setState({highlight:e,onlyThisBall:void 0===n?null:n})})),go(t,"handleScaleChanged",(function(e,n){t.setState((function(t){return{scale:e||t.scale,center:n.center||t.center,centerWholeTree:n.center||t.center,translate:n.translate||t.translate}}))})),go(t,"handleContentChanged",(function(e,n){var r={numDefaultEndScenarios:n};null!==e&&(t.props.onContentChanged(e),r.zoomDisabled=0===e.length),t.setState(r),null!==e&&1===e.length&&t.state.isEditing&&(void 0!==e[0].type.params.branchingQuestion?co("h5p-editor-branching-scenario-information-content-tour-v1-seen",(function(e){!0!==e&&setTimeout((function(){0==t.state.activeIndex&&!1===t.state.isEditing&&!1===t.state.isShowingPreview&&t.setTourState("content-node")}),2e3)})):co("h5p-editor-branching-scenario-branching-content-tour-v1-seen",(function(e){!0!==e&&setTimeout((function(){0==t.state.activeIndex&&!1===t.state.isEditing&&!1===t.state.isShowingPreview&&t.setTourState("branching-node")}),2e3)})))})),go(t,"handleScoringOptionChange",(function(){t.setState({scoringOption:t.props.main.params.scoringOptionGroup.scoringOption})})),go(t,"handleCanvasCentered",(function(){t.setState({center:!1,centerWholeTree:!1})})),go(t,"handleCanvasTranslated",(function(){t.setState({translate:null})})),go(t,"handleInsertingDone",(function(){t.setState((function(e){return{insertingId:e.insertingId+1,inserting:null}}))})),go(t,"handleToggleFullscreen",(function(){t.setState((function(e){return t.props.onToggleFullscreen(!e.fullscreen),{fullscreen:!e.fullscreen}}))})),go(t,"onFullScreenDialogAction",(function(e){e&&t.props.onToggleFullscreen(!0),t.setState({showFullScreenDialog:!1})})),go(t,"handleNodeSize",(function(e){var n;e.width&&(n=Math.ceil(e.width*(176/152))),(e.width&&t.state.nodeSize.width!==n||e.height&&t.state.nodeSize.height!==e.height)&&t.setState({nodeSize:{insertingWidth:e.width,width:n,height:e.height,spacing:{x:29,y:17}}})})),go(t,"togglePreview",(function(e){t.setState((function(t){return{isShowingPreview:!t.isShowingPreview,previewId:e>=0?e:null,draggableHovered:null}}))})),go(t,"hidePreviewInfoPopup",(function(){t.setState({isShowingPreviewInfoPopup:!1})})),go(t,"draggableMouseOver",(function(e){t.setState({draggableHovered:e})})),go(t,"draggableMouseOut",(function(){t.setState({draggableHovered:null})})),go(t,"handleCloseTour",(function(){"screen-size"===t.state.tour.state?(t.topbar.firstChild.classList.remove("tour-fade"),uo("h5p-editor-branching-scenario-tour-v1-seen",!0)):"branching-node"===t.state.tour.state?uo("h5p-editor-branching-scenario-branching-content-tour-v1-seen",!0):"content-node"===t.state.tour.state&&uo("h5p-editor-branching-scenario-information-content-tour-v1-seen",!0),t.setState({tour:!1})})),t.state={insertingId:0,activeIndex:0,libraries:null,numDefaultEndScenarios:0,highlight:null,onlyThisBall:null,scale:1,center:!0,centerWholeTree:!1,translate:null,scoringOption:null,fullscreen:!1,showFullScreenDialog:!1,nodeSize:{width:176,height:32,spacing:{x:29,y:17}},zoomDisabled:!t.props.content||0===t.props.content.length,isShowingPreview:!1,hasLoadedLibraries:!1,isShowingPreviewInfoPopup:!0,draggableHovered:null,isEditing:!1,tour:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bo(e,t)}(n,t),r=n,(o=[{key:"componentDidMount",value:function(){var e=this;window.H5PEditor.LibraryListCache.getLibraries(this.props.libraries,this.handleLibrariesFetched);var t=this.props.main.parent.metadataForm.getExtraTitleField();t.$item.find("input")[0].placeholder=v("enterTitleHere"),t.$item.prependTo(this.topbar),void 0!==H5PEditor.semiFullscreen&&co("h5p-editor-branching-scenario-tour-v1-seen",(function(t){!0!==t&&(e.setTourState("screen-size"),e.topbar.firstChild.classList.add("tour-fade"))})),window.addEventListener("resize",this.handleWindowResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleWindowResize)}},{key:"render",value:function(){var t=this;!this.treewrap&&this.canvas&&this.canvas.treewrap&&this.canvas.treewrap.element&&(this.treewrap=this.canvas.treewrap.element),!this.tree&&this.canvas&&this.canvas.tree&&this.canvas.tree.element&&(this.tree=this.canvas&&this.canvas.tree&&this.canvas.tree.element);var n="bswrapper";return this.state.isShowingPreview&&(n+=" preview"),this.state.tour&&(n+=" tour"),e.createElement("div",{className:n+(this.state.tour.additionalClass?" "+this.state.tour.additionalClass:"")},this.state.showFullScreenDialog&&e.createElement(xn,null,e.createElement(Tr,{handleConfirm:this.onFullScreenDialogAction.bind(this,!0),handleCancel:this.onFullScreenDialogAction.bind(this,!1)})),e.createElement("div",{className:"topbar "+("branching-node"===this.state.tour.state||"content-node"===this.state.tour.state?" tour-fade":""),ref:function(e){return t.topbar=e}},this.state.isShowingPreview?e.createElement("button",{className:"preview-button back"+(this.state.tour?" tour-fade":""),title:v("backToEdit"),onClick:function(){return t.togglePreview()},disabled:this.state.isEditing},v("backToEdit")):e.createElement("button",{className:"preview-button"+(this.state.tour?" tour-fade":""),title:v("preview"),onClick:function(){return t.togglePreview()},disabled:this.state.isEditing},v("preview")),void 0!==H5PEditor.semiFullscreen&&e.createElement("div",{className:"fullscreen-button"+(this.state.fullscreen?" active":"")+(this.state.tour?" tour-active":""),title:(this.state.fullscreen?v("exit"):v("enter"))+" "+v("fullScreenMode"),role:"button",tabIndex:"0",onClick:this.handleToggleFullscreen}),this.state.fullscreen&&e.createElement("div",{className:"proceed-button"+(this.state.tour?" tour-fade":""),title:v("proceedToSaveBranchingScenario"),role:"button",tabIndex:"0",onClick:this.handleToggleFullscreen},v("proceedToSave"))),e.createElement(_,{tour:this.state.tour,activeIndex:this.state.activeIndex,onChange:function(e){return t.setActiveIndex(e)},isHidden:this.state.isShowingPreview},e.createElement(L,{onMouseUp:this.handleMouseUp,title:"Create content",className:"bs-editor-content-tab has-submenu"},e.createElement(Xe,{ref:function(e){return t.contentypemenu=e},inserting:this.state.inserting,libraries:this.state.libraries,tourState:this.state.tour.state,onMouseDown:this.handleMouseDown,onNodeSize:this.handleNodeSize}),e.createElement(In,{ref:function(e){return t.canvas=e},inserting:this.state.inserting,libraries:this.state.libraries,getNewContent:this.props.getNewContent,saveData:this.props.saveData,content:this.props.content,handleOpenTutorial:this.handleOpenTutorial,onIsEditing:this.handleIsEditing,onContentChanged:this.handleContentChanged,onContentPreview:this.togglePreview,onHighlight:this.handleHighlight,highlight:this.state.highlight,onlyThisBall:this.state.onlyThisBall,onDropped:this.handleInsertingDone,scale:this.state.scale,center:this.state.center,centerWholeTree:this.state.centerWholeTree,onCanvasCentered:this.handleCanvasCentered,translate:this.state.translate,onCanvasTranslated:this.handleCanvasTranslated,scoringOption:this.state.scoringOption,nodeSize:this.state.nodeSize,insertingId:this.state.insertingId,draggableMouseOver:this.draggableMouseOver,draggableMouseOut:this.draggableMouseOut,draggableHovered:this.state.draggableHovered,isTourActive:!!this.state.tour}),e.createElement(Hn,{disabled:this.state.zoomDisabled,numDefaultEndScenarios:this.state.numDefaultEndScenarios,onHighlight:this.handleHighlight,scale:this.state.scale,onScaleChanged:this.handleScaleChanged,containerRect:this.treewrap,contentRect:this.tree,isTourActive:!!this.state.tour})),e.createElement(L,{title:v("settings"),className:"bs-editor-settings-tab"},e.createElement(Kn,{main:this.props.main,updateScoringOption:this.handleScoringOptionChange})),e.createElement(L,{title:v("translations"),className:"bs-editor-translations-tab"},e.createElement(ir,{parent:this.props.parent})),e.createElement(L,{title:v("getHelp"),className:"bs-editor-tutorial-tab"},e.createElement(hr,{handleOpenCanvas:this.handleOpenCanvas})),e.createElement(L,{title:v("metadata"),className:"bs-editor-metadata-tab"},e.createElement(Sr,{metadataForm:this.props.main.parent.metadataForm}))),this.state.isShowingPreview&&e.createElement(to,{tour:this.state.tour,params:this.props.parent.params,hasLoadedLibraries:this.state.hasLoadedLibraries,previewId:this.state.previewId,goToEditor:function(){return t.togglePreview()},isShowingInfoPopup:this.state.isShowingPreviewInfoPopup,hideInfoPopup:this.hidePreviewInfoPopup}),this.state.tour&&e.createElement(so,{additionalClass:this.state.tour.additionalClass,position:this.state.tour,onClose:this.handleCloseTour,message:this.state.tour.message,markerPosition:this.state.tour.markerPosition}))}}])&&fo(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(e.Component);function wo(e){return wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wo(e)}vo.propTypes={libraries:o().array},H5PEditor.widgets.branchingScenario=H5PEditor.BranchingScenario=function(){function n(e,t,n,r){var o=this;this.parent=e,this.field=t,this.setValue=r;var i=H5PEditor.findSemanticsField("content",this.field);this.libraryFields=i.field.fields,this.libraries=H5PEditor.findSemanticsField("type",i).options,this.params=n||{},this.endScreenButtonText=v("endScreenButtonText"),this.proceedButtonText=v("proceed"),this.startScreenButtonText=v("startScreenButtonText"),this.title=v("branchingScenarioTitle"),this.params.content=this.params.content||[],this.params.endScreens=this.params.endScreens||[],this.params.endScreens[0]=this.params.endScreens[0]||{endScreenTitle:"",endScreenSubtitle:"",contentId:-1},this.params.scoringOptionGroup=this.params.scoringOptionGroup||{scoringOption:"no-score"},this.params.content.forEach((function(e){Re(e.type.library)?(e.type.params.branchingQuestion.alternatives||[]).forEach((function(e){return e.nextContentId=void 0!==e.nextContentId?e.nextContentId:-1})):e.nextContentId=void 0!==e.nextContentId?e.nextContentId:-1})),r(t,this.params),this.canvasDev=!1,document.addEventListener("keydown",(function(e){51===e.keyCode&&(o.canvasDev=!o.canvasDev)})),this.params.startScreen=this.params.startScreen||{},this.params.startScreen.startScreenTitle=this.params.startScreen.startScreenTitle||"",this.params.startScreen.startScreenSubtitle=this.params.startScreen.startScreenSubtitle||"",this.params.endScreens=this.params.endScreens||[{}],this.passReadies=!0,e.ready((function(){return o.passReadies=!1})),this.buildContentEditorForms()}return n.prototype.buildContentEditorForms=function(){var e=this,t=document.createElement("div"),n=this.field.fields.filter((function(e){return e.common})),r=H5PEditor.Library.prototype.getLibraryMetadataSettings;H5PEditor.Library.prototype.getLibraryMetadataSettings=function(e){return"H5P.AdvancedText"===e.name||"H5P.Image"===e.name?{disable:!1,disableExtraTitleField:!1}:r(e)},H5PEditor.processSemanticsChunk(n,this.params,H5P.jQuery(t),this,this.parent.currentLibrary),this.content=[],this.params.content.forEach((function(t){return e.content.push(e.getNewContent(t))}))},n.prototype.getNewContent=function(e){var t=this.children,n={formWrapper:document.createElement("div"),feedbackFormWrapper:document.createElement("div"),formChildren:null,params:e};void 0!==n.params.nextContentId&&Re(n)&&delete n.params.nextContentId,n.formWrapper.classList.add("editor-overlay-library"),H5PEditor.processSemanticsChunk(this.libraryFields,e,H5P.jQuery(n.formWrapper),this,e.type.library);var r=n.formWrapper.querySelectorAll(".field-name-feedback"),o=r[r.length-1];n.feedbackFormWrapper.appendChild(o);var i=H5PEditor.getDescriptionId(H5PEditor.getNextFieldId({name:"feedback"})),a=document.createElement("div");a.setAttribute("id",i),a.classList.add("h5p-feedback-description"),a.classList.add("h5peditor-field-description"),a.textContent=v("feedbackDescription"),o.querySelector(".title").setAttribute("aria-describedby",i);var l=o.querySelector(".content");l.insertBefore(a,l.firstChild),n.formChildren=this.children;var s=H5PEditor.findField("type",{children:n.formChildren});return s.hide(),s.children?n.ready=!0:s.change((function(){"function"==typeof n.ready&&n.ready(),n.ready=!0})),this.children=t,n},n.prototype.validate=function(){var e=!0;return(e=this.validateChunk(this.children))&&(e=this.validateChunk(this.parent.metadataForm.children)),e&&(e=this.validateChunk(this.findTranslationFields(this.parent.commonFields))),e&&(e=this.validateChunk(this.content.reduce((function(e,t){return e.concat(t)}),[]))),e},n.prototype.findTranslationFields=function(e){var t=[];if("object"!==wo(e))return t;for(var n in e){var r=e[n];"object"===wo(r)&&void 0!==r.instance?t.push(r.instance):t=t.concat(this.findTranslationFields(r))}return t},n.prototype.validateChunk=function(e){return e.every((function(e){return"function"!=typeof e.validate||!1!==e.validate()}))},n.prototype.ready=function(e){this.passReadies?this.parent.ready(e):this.readies.push(e)},n.prototype.remove=function(){document.documentElement.style.maxWidth=document.body.style.maxWidth=""},n.prototype.handleContentChanged=function(e){this.params.content=e,this.setValue(this.field,this.params)},n.prototype.appendTo=function(n){var r,o=this;document.documentElement.style.maxWidth=document.body.style.maxWidth="none";var i=function(){o.editor.setState({center:!0,fullscreen:!0}),H5PEditor.Html&&H5PEditor.Html.removeWysiwyg()},a=function(){r=null,o.editor.setState({center:!0,fullscreen:!1}),H5PEditor.Html&&H5PEditor.Html.removeWysiwyg()};this.editor=t.render(e.createElement(vo,{parent:this.parent,content:this.content,getNewContent:this.getNewContent.bind(this),libraries:this.libraries,onContentChanged:this.handleContentChanged.bind(this),onToggleFullscreen:function(e){e?r||(r=H5PEditor.semiFullscreen(n,i,a)):r&&r()},main:this}),n.get(0))},n}()})()})();
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists