Sindbad~EG File Manager

Current Path : /var/www/moodledata/mdata-uautomaq/filedir/c5/ca/
Upload File :
Current File : /var/www/moodledata/mdata-uautomaq/filedir/c5/ca/c5caa5b19c139d00bbd9b0ab3ad5944f55791085

/*! For license information please see dist.js.LICENSE.txt */
(()=>{var e={6664:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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,0.85);z-index:60}\n",""]);const l=a},3750:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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,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:0.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:0.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:0.25em 1em;font-size:0.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,0.4) 0 3px 10px;pointer-events:none;opacity:0;visibility:hidden;transition:visibility 0s linear 0.1s, opacity 0.1s linear, bottom 0.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,0.4) 0 3px 10px;content:" ";width:0.75em;height:0.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:0.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:0.9rem;transform:rotate(-45deg);cursor:pointer}.alternative-ball .loop-back:after{font-family:"Material Icons";content:"";border-radius:50%;padding:0.1em;color:#fff;font-weight:normal;background:linear-gradient(0deg, #b83737 1%, #e8668d 100%);box-shadow:0px 3px 6px rgba(0,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:0.9rem;transform:rotate(-45deg);cursor:pointer}.draggable .loop-back:after{font-family:"Material Icons";content:"";border-radius:50%;padding:0.1em;color:#fff;font-weight:normal;background:linear-gradient(0deg, #b83737 1%, #e8668d 100%);box-shadow:0px 3px 6px rgba(0,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:0.9rem;color:#f31635}.draggable.endscreenCustom:after{content:""}\n',""]);const l=a},8235:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,"",""]);const l=a},6247:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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:white}.tree.h5peditor-semi-fullscreen .content-type-menu{height:100%}.label-info{position:relative;color:white;font-size:0.75em;line-height:1.25em;padding-top:1.333333333333333em;padding-left:1.333333333333333em;padding-bottom:0;font-weight:300;display:flex;margin-bottom:0.6666666666666667em;margin-top:0.6666666666666667em}.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:0.5rem;display:block;box-sizing:border-box;font-size:0.7em;margin-bottom:0.5rem;cursor:pointer;line-height:0.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:0.2rem;font-size:0.875rem;margin-right:0.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:#ffffff}.content-type-buttons li.branchingquestion:before{font-family:"bs-editor";content:""}.content-type-buttons li.reuse-question.disabled{border-color:transparent;background:#2B2F36;opacity:0.5;cursor:not-allowed}.content-type-buttons li.reuse-question.disabled:before{content:\'\\e911\'}.content-type-buttons li.reuse-question:before{font-family:"H5P";content:\'\\e910\'}.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}\n',""]);const l=a},8738:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,'.draggable{position:absolute;height:2rem;box-sizing:border-box;background:#2B2F36;margin-bottom:0.5rem;font-size:0.7rem;font-weight:400;list-style-type:none;cursor:pointer;line-height:0.875rem;color:#fff;border-radius:3px;text-overflow:ellipsis;white-space:nowrap;z-index:10;transition:box-shadow 0.2s ease}.draggable.dragging:hover{box-shadow:rgba(0,0,0,0.4) 0 3px 10px;transition:box-shadow 0.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 transparent;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,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:0.5rem 2rem 0.5rem 0.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:0.2rem;font-size:0.875rem;margin-right:0.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:0.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:white;border-radius:0 3px;transition:visibility 0s linear 0.1s, opacity 0.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}\n',""]);const l=a},4333:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,'.dropzone{position:absolute;width:2.6em;height:2em;padding-top:0.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:0.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:0.7rem;padding:0.7rem}\n',""]);const l=a},433:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i),l=n(1678),s=n.n(l),c=new URL(n(7406),n.b),u=new URL(n(3626),n.b),d=new URL(n(9868),n.b),p=new URL(n(445),n.b),f=new URL(n(2231),n.b),h=new URL(n(8805),n.b),m=new URL(n(9431),n.b),b=new URL(n(7638),n.b),g=new URL(n(5682),n.b),y=new URL(n(7042),n.b),v=a()(o()),w=s()(c),x=s()(u),E=s()(d),k=s()(p),C=s()(f),S=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('+k+') format("woff")}@font-face{font-family:\'H5PRoboto\';font-style:normal;font-weight:700;src:local("Roboto Bold"),local("Roboto-Bold"),url('+C+') format("woff2"),url('+S+') 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-field-description,.topbar>.field.text .h5p-errors{display:none}.topbar>.field.text input.h5peditor-text{background:rgba(0,0,0,0.5);padding:0.53em 0.5em;color:white;border:solid 1px #191e22;margin:0.47em;min-width:15.3em;max-width:25em;font-size:0.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:0.8125em 0;line-height:1;flex-grow:0;min-width:3em;transition:background 0.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:white;font-size:1em;font-weight:bold;padding:0.5em 1em;border-radius:.208em;flex-shrink:0;margin-right:0.4em;margin-left:0.4em;transition:background 0.2s linear}.proceed-button:hover{background:#0f56e5}.preview-button{cursor:pointer;background:transparent;color:white;border:none;text-transform:uppercase;font-size:0.875em;font-weight:bold;padding:0.47em 0.75em;margin-right:0.4em;margin-left:0.4em;border-radius:0.25em;transition:background 0.2s linear}.preview-button[disabled]{cursor:default;opacity:0.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:0.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:0.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,0.1)}}@keyframes flashing2{from{background:#fff;transform:scale(0.6, 0.6)}to{background:rgba(255,255,255,0.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:0.75em 1em;width:16.875em}.tour-dialog:after{display:block;background:#8a24f3;content:" ";width:0.75em;height:0.75em;position:absolute;right:5%;bottom:100%;transform:translateX(-50%) translateY(50%) rotate(45deg)}.tour-button{border:1px solid #fff;color:#fff;background:transparent;padding:0.75em 1em;display:inline-block;margin-top:0.75em;cursor:pointer}.tour-button:hover{background:#fff;color:#8a24f3}\n',""]);const _=v},5207:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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,0.2);font-size:0.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:0.042rem solid #eee;clear:both;position:relative;box-shadow:0 2px 2px rgba(18,14,14,0.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:0.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:0.8em}.editor-overlay .editor-overlay-header .editor-overlay-title:before{float:inherit;font-family:"Material Icons";font-size:1rem;font-weight:normal;margin-right:0.3rem;padding-right:0.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:0.7em;white-space:nowrap}.editor-overlay .editor-overlay-header .buttons .button{font-size:100%;padding:0.4rem 1rem;text-decoration:none;border-radius:2px;cursor:pointer;margin-left:0.5rem;color:#1773DA;border:solid 2px transparent;background-color:transparent}.editor-overlay .editor-overlay-header .buttons .button:hover{background-color:#dbdee3}.editor-overlay .editor-overlay-header .buttons .button-blue{font-size:0.85rem;font-weight:bold;font-family:H5PRoboto;padding:0.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:0.85rem;font-family:H5PRoboto;padding:0.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:0.042rem solid #eee;clear:both;position:relative;display:flex;flex-shrink:0;width:100%}.field.wizard .h5peditor-tab-a.h5peditor-tab-video:before{content:\'\\e911\'}.field.wizard .h5peditor-tab-a.h5peditor-tab-assets:before{content:\'\\e917\'}.field.wizard .h5peditor-tab-a.h5peditor-tab-summary:before{content:\'\\e912\'}.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}\n',""]);const l=a},2010:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,'.legend{cursor:pointer;width:8rem;background-color:white;position:absolute;left:calc(100% - 9rem);top:1.5rem;text-align:center;padding:0.5rem;box-sizing:border-box;font-weight:bold;transition:all 0.1s ease;user-select:none;z-index:10;overflow:hidden}.legend:hover{-webkit-box-shadow:rgba(0,0,0,0.2) 0 3px 10px;-moz-box-shadow:rgba(0,0,0,0.2) 0 3px 10px;box-shadow:rgba(0,0,0,0.2) 0 3px 10px}.legend>span{font-size:0.875rem}.legend.fade{pointer-events:none;opacity:0.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 0.1s ease}.legend-content ul{list-style:none;margin:0.6em 0 0 0;padding:1rem 1rem 0;border-top:solid 1px #e9ebee}.legend-content ul li{margin-bottom:.5rem;font-size:0.708rem;font-weight:normal;list-style-position:inside;text-align:left;padding-left:2rem;padding-bottom:0.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:#c4ddf9;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:white;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:0.1em;color:#fff;font-weight:normal;background:linear-gradient(0deg, #b83737 1%, #e8668d 100%);box-shadow:0px 3px 6px rgba(0,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:0.75rem;text-align:center;padding-left:0;padding-bottom:0}.legend-content.expanded{display:inherit;opacity:1}\n',""]);const l=a},2815:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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 0.25em 0}.startscreen-header p{font-size:0.75rem;margin-top:0.3rem;display:block;color:#626262}.startscreen-footer{text-align:center;margin-top:0.3rem;margin-bottom:3.8em;font-size:0.75rem;display:block;color:#626262}.startscreen-footer a{cursor:pointer;color:#1773DA;text-decoration:underline}\n",""]);const l=a},9031:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,'.submenu{position:absolute;left:calc(100% - 1.8rem);top:100%;color:black;background-color:#fff;border:1px solid rgba(0,0,0,0.15);border-radius:4px;box-shadow:0 10px 20px rgba(0,0,0,0.2);margin:0;list-style:none;padding:0.25rem;font-size:0.75rem;z-index:1}.submenu li{padding:0.5rem;line-height:0.708rem;color:#363b42;padding-left:0.6rem;align-items:center}.submenu li:hover{background-color:#F1F3F6}.submenu li:first-child{background-color:#F1F3F6;font-weight:bold;border-bottom:solid 0.042rem #F1F3F6;cursor:auto}.submenu li:last-child{border-top:solid 0.042rem #F1F3F6}.submenu li:before{font-family:"Material Icons";margin-right:0.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}\n',""]);const l=a},8087:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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 0.042rem #e2e5ee;border-radius:4px;margin-bottom:1rem}.h5p-branchingscenario-editor .h5peditor-form .tab-view-full-page fieldset legend{color:#363b42;background-color:white;padding:0.6rem;font-weight:bold;font-size:0.85rem}.h5p-branchingscenario-editor .h5peditor-form .large-padding{padding:1.5rem}.h5p-branchingscenario-editor .h5peditor-form .tab-view-white-box{border:solid 0.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:0.75rem;margin-top:0.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:#ffffff;z-index:2000;padding:0.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,0.1);-moz-box-shadow:0 1px 5px 1px rgba(0,0,0,0.1);box-shadow:0 1px 5px 1px rgba(0,0,0,0.1);font-size:0.75rem;line-height:0.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:0.6rem;top:0.6rem;border-right:solid 1px #e9ebee;padding-right:0.6rem;height:calc(100% - 1rem);font-weight:normal}\n',""]);const l=a},1089:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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:grey;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 0.1s ease-in-out;border-left:solid 3px #191e22;border-right:solid 3px transparent}.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}\n',""]);const l=a},7247:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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}\n",""]);const l=a},1964:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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}\n",""]);const l=a},4345:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,"",""]);const l=a},2148:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,"#help .tab-view-white-box{height:calc(100% - 7.55rem);overflow:hidden}\n",""]);const l=a},9097:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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}\n',""]);const l=a},8329:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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 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:0.875em;box-shadow:0 1px 5px 1px rgba(0,0,0,0.1);opacity:0;visibility:hidden;transition:visibility 0s linear 0.1s, opacity 0.1s linear, bottom 0.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:0.5em;top:0.5em}.close-info-popup-button:after{font-family:"Material Icons";content:""}.zoom-wrapper{padding:0.5em;vertical-align:middle;align-content:center;text-align:center;line-height:1.45em;font-size:0.875em;display:flex;align-items:center;flex-grow:1;justify-content:center}.zoom-in,.zoom-out{font-size:1.5em;cursor:pointer;padding:0.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:0.2em}.fit-to-canvas{cursor:pointer;padding:0.125em 0.3em 0.125em 0.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:0.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:0.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:transparent}\n',""]);const l=a},2546:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,'.h5p-branchingscenario-editor .tooltip{position:absolute;bottom:98%;top:auto;width:15rem;background-color:#ffffff;z-index:2000;padding:0.6rem;border-radius:5px;font-weight:normal;padding-left:3.5rem;text-align:left;box-shadow:0 1px 5px 1px rgba(0,0,0,0.1);font-size:0.75rem;line-height:0.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:0.6rem;top:0.6rem;border-right:solid 1px #e9ebee;padding-right:0.6rem;height:calc(100% - 1rem);font-weight:normal}\n',""]);const l=a},8925:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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:0.3rem;content:""}.tab-view-info .tooltip-wrapper .tooltip-button:after{color:#999999;font-size:1.325em;font-weight:normal}\n',""]);const l=a},826:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i)()(o());a.push([e.id,".editor-overlay-branching-options select{width:100%}.editor-overlay-branching-options .field{margin-bottom:0}\n",""]);const l=a},3133:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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:0.5em}\n',""]);const l=a},8633:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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,0.2);font-size:1em;z-index:61}.confirmation-dialog-header{padding:1rem 1rem 1rem 1.5rem;border-bottom:0.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:0.7rem 0;padding:0.85rem;font-size:0.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:0.2em;padding:0.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:0.2em;padding:0.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:0.5rem 1rem;text-decoration:none;border-radius:2px;cursor:pointer;color:#363b42}.confirmation-dialog-body .dialog-cancel:hover{background-color:#dbdee3}\n',""]);const l=a},8708:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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}\n",""]);const l=a},5991:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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:0.25em}.h5p-branchingscenario-editor .empty-preview-description{font-size:0.75rem;margin-top:0.3rem;display:block;color:#626262}.h5p-branchingscenario-editor .editor-link{text-decoration:underline}\n",""]);const l=a},2970:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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}\n",""]);const l=a},581:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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}\n",""]);const l=a},4818:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(4933),o=n.n(r),i=n(3476),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:0.8em;border:1px solid #d0d0d1;font-size:0.9em;border-radius:0.2em;background:#fff}\n",""]);const l=a},4634:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(4933),o=n.n(r),i=n(3476),a=n.n(i),l=n(1678),s=n.n(l),c=new URL(n(3544),n.b),u=new URL(n(1185),n.b),d=new URL(n(6987),n.b),p=new URL(n(9545),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}\n',""]);const v=f},3476: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}},1678: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}},4933:e=>{"use strict";e.exports=function(e){return e[1]}},2525:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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,i){for(var a,l,s=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(s[u]=a[u]);if(t){l=t(a);for(var d=0;d<l.length;d++)r.call(a,l[d])&&(s[l[d]]=a[l[d]])}}return s}},8772:(e,t,n)=>{"use strict";var r=n(331);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}},3615:(e,t,n)=>{e.exports=n(8772)()},331:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3577:(e,t,n)=>{"use strict";var r=n(7378),o=n(2525),i=n(1102);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(k.hasOwnProperty(s))throw Error(a(99,s));k[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(C[e])throw Error(a(100,e));C[e]=t,S[e]=t.eventTypes[n].dependencies}var E=[],k={},C={},S={};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 z(e){N?_?_.push(e):_=[e]:N=e}function j(){if(N){var e=N,t=_;if(_=N=null,I(e),t)for(e=0;e<t.length;e++)I(t[e])}}function R(e,t){return e(t)}function D(e,t,n,r,o){return e(t,n,r,o)}function M(){}var F=R,A=!1,B=!1;function L(){null===N&&null===_||(M(),j())}function H(e,t,n){if(B)return e(t,n);B=!0;try{return F(e,t,n)}finally{B=!1,L()}}var Z=/^[: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]*$/,Q=Object.prototype.hasOwnProperty,U={},W={};function $(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 V={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){V[e]=new $(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];V[t]=new $(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){V[e]=new $(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){V[e]=new $(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){V[e]=new $(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){V[e]=new $(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){V[e]=new $(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){V[e]=new $(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){V[e]=new $(e,5,!1,e.toLowerCase(),null,!1)}));var q=/[\-:]([a-z])/g;function G(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(q,G);V[t]=new $(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(q,G);V[t]=new $(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(q,G);V[t]=new $(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){V[e]=new $(e,1,!1,e.toLowerCase(),null,!1)})),V.xlinkHref=new $("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){V[e]=new $(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function K(e,t,n,r){var o=V.hasOwnProperty(t)?V[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!!Q.call(W,e)||!Q.call(U,e)&&(Z.test(e)?W[e]=!0:(U[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))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Y=/^(.*)[\\\/]/,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(Y,"")+":"+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 ke(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 Ce(e,t){null!=(t=t.checked)&&K(e,"checked",t,!1)}function Se(e,t){Ce(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 ze(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 je(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Re(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 De(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Re(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Me,Fe,Ae=(Fe=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Me=Me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Me.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 Fe(e,t)}))}:Fe);function Be(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 Le(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:Le("Animation","AnimationEnd"),animationiteration:Le("Animation","AnimationIteration"),animationstart:Le("Animation","AnimationStart"),transitionend:Le("Transition","TransitionEnd")},Ze={},Qe={};function Ue(e){if(Ze[e])return Ze[e];if(!He[e])return e;var t,n=He[e];for(t in n)if(n.hasOwnProperty(t)&&t in Qe)return Ze[e]=n[t];return e}P&&(Qe=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 We=Ue("animationend"),$e=Ue("animationiteration"),Ve=Ue("animationstart"),qe=Ue("transitionend"),Ge="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"==typeof WeakMap?WeakMap:Map);function Ke(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(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(Ye(e)!==e)throw Error(a(188))}function tt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(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=Nn(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":Vt(t,"scroll",!0);break;case"focus":case"blur":Vt(t,"focus",!0),Vt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":st(e)&&Vt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ge.indexOf(e)&&$t(e,t)}n.set(e,null)}}var ht,mt,bt,gt=!1,yt=[],vt=null,wt=null,xt=null,Et=new Map,kt=new Map,Ct=[],St="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":kt.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=_n(t))&&mt(t),e):(e.eventSystemFlags|=r,e)}function _t(e){var t=Nn(e.target);if(null!==t){var n=Ye(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=Kt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=_n(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function zt(e,t,n){It(e)&&n.delete(t)}function jt(){for(gt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=_n(e.blockedOn))&&ht(e);break}var t=Kt(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(zt),kt.forEach(zt)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Dt(e){function t(t){return Rt(t,e)}if(0<yt.length){Rt(yt[0],e);for(var n=1;n<yt.length;n++){var r=yt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==vt&&Rt(vt,e),null!==wt&&Rt(wt,e),null!==xt&&Rt(xt,e),Et.forEach(t),kt.forEach(t),n=0;n<Ct.length;n++)(r=Ct[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ct.length&&null===(n=Ct[0]).blockedOn;)_t(n),null===n.blockedOn&&Ct.shift()}var Mt={},Ft=new Map,At=new Map,Bt=["abort","abort",We,"animationEnd",$e,"animationIteration",Ve,"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",qe,"transitionEnd","waiting","waiting"];function Lt(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},At.set(r,t),Ft.set(r,i),Mt[o]=i}}Lt("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),Lt("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),Lt(Bt,2);for(var Ht="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Zt=0;Zt<Ht.length;Zt++)At.set(Ht[Zt],0);var Qt=i.unstable_UserBlockingPriority,Ut=i.unstable_runWithPriority,Wt=!0;function $t(e,t){Vt(t,e,!1)}function Vt(e,t,n){var r=At.get(t);switch(void 0===r?2:r){case 0:r=qt.bind(null,t,1,e);break;case 1:r=Gt.bind(null,t,1,e);break;default:r=Xt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function qt(e,t,n,r){A||M();var o=Xt,i=A;A=!0;try{D(o,e,t,n,r)}finally{(A=i)||L()}}function Gt(e,t,n,r){Ut(Qt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){if(Wt)if(0<yt.length&&-1<St.indexOf(e))e=Pt(null,e,t,n,r),yt.push(e);else{var o=Kt(e,t,n,r);if(null===o)Ot(e,r);else if(-1<St.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,kt.set(i,Nt(kt.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 Kt(e,t,n,r){if(null!==(n=Nn(n=lt(r)))){var o=Ye(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 Yt={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||Yt.hasOwnProperty(e)&&Yt[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(Yt).forEach((function(e){Jt.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yt[t]=Yt[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=Ke(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[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=null,yn=null;function vn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function wn(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 xn="function"==typeof setTimeout?setTimeout:void 0,En="function"==typeof clearTimeout?clearTimeout:void 0;function kn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Cn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===bn||n===mn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Sn=Math.random().toString(36).slice(2),Tn="__reactInternalInstance$"+Sn,Pn="__reactEventHandlers$"+Sn,On="__reactContainere$"+Sn;function Nn(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[On]||n[Tn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Cn(e);null!==e;){if(n=e[Tn])return n;e=Cn(e)}return t}n=(e=n).parentNode}return null}function _n(e){return!(e=e[Tn]||e[On])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function In(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function zn(e){return e[Pn]||null}function jn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Rn(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 Dn(e,t,n){(t=Rn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function Mn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=jn(t);for(t=n.length;0<t--;)Dn(n[t],"captured",e);for(t=0;t<n.length;t++)Dn(n[t],"bubbled",e)}}function Fn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Rn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=nt(n._dispatchListeners,t),n._dispatchInstances=nt(n._dispatchInstances,e))}function An(e){e&&e.dispatchConfig.registrationName&&Fn(e._targetInst,null,e)}function Bn(e){rt(e,Mn)}var Ln=null,Hn=null,Zn=null;function Qn(){if(Zn)return Zn;var e,t,n=Hn,r=n.length,o="value"in Ln?Ln.value:Ln.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 Zn=o.slice(e,1<t?1-t:void 0)}function Un(){return!0}function Wn(){return!1}function $n(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)?Un:Wn,this.isPropagationStopped=Wn,this}function Vn(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 qn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Vn,e.release=qn}o($n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Un)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Un)},persist:function(){this.isPersistent=Un},isPersistent:Wn,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=Wn,this._dispatchInstances=this._dispatchListeners=null}}),$n.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},$n.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,Gn(n),n},Gn($n);var Xn=$n.extend({data:null}),Kn=$n.extend({data:null}),Yn=[9,13,27,32],Jn=P&&"CompositionEvent"in window,er=null;P&&"documentMode"in document&&(er=document.documentMode);var tr=P&&"TextEvent"in window&&!er,nr=P&&(!Jn||er&&8<er&&11>=er),rr=String.fromCharCode(32),or={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(" ")}},ir=!1;function ar(e,t){switch(e){case"keyup":return-1!==Yn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function lr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var sr=!1,cr={eventTypes:or,extractEvents:function(e,t,n,r){var o;if(Jn)e:{switch(e){case"compositionstart":var i=or.compositionStart;break e;case"compositionend":i=or.compositionEnd;break e;case"compositionupdate":i=or.compositionUpdate;break e}i=void 0}else sr?ar(e,n)&&(i=or.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=or.compositionStart);return i?(nr&&"ko"!==n.locale&&(sr||i!==or.compositionStart?i===or.compositionEnd&&sr&&(o=Qn()):(Hn="value"in(Ln=r)?Ln.value:Ln.textContent,sr=!0)),i=Xn.getPooled(i,t,n,r),(o||null!==(o=lr(n)))&&(i.data=o),Bn(i),o=i):o=null,(e=tr?function(e,t){switch(e){case"compositionend":return lr(t);case"keypress":return 32!==t.which?null:(ir=!0,rr);case"textInput":return(e=t.data)===rr&&ir?null:e;default:return null}}(e,n):function(e,t){if(sr)return"compositionend"===e||!Jn&&ar(e,t)?(e=Qn(),Zn=Hn=Ln=null,sr=!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 nr&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Kn.getPooled(or.beforeInput,t,n,r)).data=e,Bn(t)):t=null,null===o?t:null===t?o:[o,t]}},ur={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 dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ur[e.type]:"textarea"===t}var pr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=$n.getPooled(pr.change,e,t,n)).type="change",z(n),Bn(e),e}var hr=null,mr=null;function br(e){at(e)}function gr(e){if(xe(In(e)))return e}function yr(e,t){if("change"===e)return t}var vr=!1;function wr(){hr&&(hr.detachEvent("onpropertychange",xr),mr=hr=null)}function xr(e){if("value"===e.propertyName&&gr(mr))if(e=fr(mr,e,lt(e)),A)at(e);else{A=!0;try{R(br,e)}finally{A=!1,L()}}}function Er(e,t,n){"focus"===e?(wr(),mr=n,(hr=t).attachEvent("onpropertychange",xr)):"blur"===e&&wr()}function kr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return gr(mr)}function Cr(e,t){if("click"===e)return gr(t)}function Sr(e,t){if("input"===e||"change"===e)return gr(t)}P&&(vr=st("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:pr,_isInputEventSupported:vr,extractEvents:function(e,t,n,r){var o=t?In(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=yr;else if(dr(o))if(vr)a=Sr;else{a=kr;var l=Er}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Cr);if(a&&(a=a(e,t)))return fr(a,n,r);l&&l(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Pe(o,"number",o.value)}},Pr=$n.extend({view:null,detail:null}),Or={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Or[e])&&!!t[e]}function _r(){return Nr}var Ir=0,zr=0,jr=!1,Rr=!1,Dr=Pr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:_r,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=Ir;return Ir=e.screenX,jr?"mousemove"===e.type?e.screenX-t:0:(jr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=zr;return zr=e.screenY,Rr?"mousemove"===e.type?e.screenY-t:0:(Rr=!0,0)}}),Mr=Dr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Fr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ar={eventTypes:Fr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(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)?Nn(t):null)&&(t!==Ye(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var l=Dr,s=Fr.mouseLeave,c=Fr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(l=Mr,s=Fr.pointerLeave,c=Fr.pointerEnter,u="pointer");if(e=null==a?i:In(a),i=null==t?i:In(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=jn(e))a++;for(e=0,t=c;t;t=jn(t))e++;for(;0<a-e;)l=jn(l),a--;for(;0<e-a;)c=jn(c),e--;for(;a--;){if(l===c||l===c.alternate)break e;l=jn(l),c=jn(c)}l=null}else l=null;for(c=l,l=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)l.push(r),r=jn(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=jn(u);for(u=0;u<l.length;u++)Fn(l[u],"bubbled",s);for(u=r.length;0<u--;)Fn(r[u],"captured",n);return 0==(64&o)?[s]:[s,n]}},Br="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Lr=Object.prototype.hasOwnProperty;function Hr(e,t){if(Br(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(!Lr.call(t,n[r])||!Br(e[n[r]],t[n[r]]))return!1;return!0}var Zr=P&&"documentMode"in document&&11>=document.documentMode,Qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Ur=null,Wr=null,$r=null,Vr=!1;function qr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vr||null==Ur||Ur!==cn(n)?null:(n="selectionStart"in(n=Ur)&&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},$r&&Hr($r,n)?null:($r=n,(e=$n.getPooled(Qr.select,Wr,e,t)).type="select",e.target=Ur,Bn(e),e))}var Gr={eventTypes:Qr,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=Ke(o),i=S.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?In(t):window,e){case"focus":(dr(o)||"true"===o.contentEditable)&&(Ur=o,Wr=t,$r=null);break;case"blur":$r=Wr=Ur=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vr=!1,qr(n,r);case"selectionchange":if(Zr)break;case"keydown":case"keyup":return qr(n,r)}return null}},Xr=$n.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Kr=$n.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yr=Pr.extend({relatedTarget:null});function Jr(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 eo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},to={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"},no=Pr.extend({key:function(e){if(e.key){var t=eo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?to[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:_r,charCode:function(e){return"keypress"===e.type?Jr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ro=Dr.extend({dataTransfer:null}),oo=Pr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:_r}),io=$n.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ao=Dr.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}),lo={eventTypes:Mt,extractEvents:function(e,t,n,r){var o=Ft.get(e);if(!o)return null;switch(e){case"keypress":if(0===Jr(n))return null;case"keydown":case"keyup":e=no;break;case"blur":case"focus":e=Yr;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=Dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ro;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=oo;break;case We:case $e:case Ve:e=Xr;break;case qe:e=io;break;case"scroll":e=Pr;break;case"wheel":e=ao;break;case"copy":case"cut":case"paste":e=Kr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mr;break;default:e=$n}return Bn(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=zn,m=_n,b=In,T({SimpleEventPlugin:lo,EnterLeaveEventPlugin:Ar,ChangeEventPlugin:Tr,SelectEventPlugin:Gr,BeforeInputEventPlugin:cr});var so=[],co=-1;function uo(e){0>co||(e.current=so[co],so[co]=null,co--)}function po(e,t){co++,so[co]=e.current,e.current=t}var fo={},ho={current:fo},mo={current:!1},bo=fo;function go(e,t){var n=e.type.contextTypes;if(!n)return fo;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 yo(e){return null!=e.childContextTypes}function vo(){uo(mo),uo(ho)}function wo(e,t,n){if(ho.current!==fo)throw Error(a(168));po(ho,t),po(mo,n)}function xo(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 Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,bo=ho.current,po(ho,e),po(mo,mo.current),!0}function ko(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=xo(e,t,bo),r.__reactInternalMemoizedMergedChildContext=e,uo(mo),uo(ho),po(ho,e)):uo(mo),po(mo,n)}var Co=i.unstable_runWithPriority,So=i.unstable_scheduleCallback,To=i.unstable_cancelCallback,Po=i.unstable_requestPaint,Oo=i.unstable_now,No=i.unstable_getCurrentPriorityLevel,_o=i.unstable_ImmediatePriority,Io=i.unstable_UserBlockingPriority,zo=i.unstable_NormalPriority,jo=i.unstable_LowPriority,Ro=i.unstable_IdlePriority,Do={},Mo=i.unstable_shouldYield,Fo=void 0!==Po?Po:function(){},Ao=null,Bo=null,Lo=!1,Ho=Oo(),Zo=1e4>Ho?Oo:function(){return Oo()-Ho};function Qo(){switch(No()){case _o:return 99;case Io:return 98;case zo:return 97;case jo:return 96;case Ro:return 95;default:throw Error(a(332))}}function Uo(e){switch(e){case 99:return _o;case 98:return Io;case 97:return zo;case 96:return jo;case 95:return Ro;default:throw Error(a(332))}}function Wo(e,t){return e=Uo(e),Co(e,t)}function $o(e,t,n){return e=Uo(e),So(e,t,n)}function Vo(e){return null===Ao?(Ao=[e],Bo=So(_o,Go)):Ao.push(e),Do}function qo(){if(null!==Bo){var e=Bo;Bo=null,To(e)}Go()}function Go(){if(!Lo&&null!==Ao){Lo=!0;var e=0;try{var t=Ao;Wo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ao=null}catch(t){throw null!==Ao&&(Ao=Ao.slice(e+1)),So(_o,qo),t}finally{Lo=!1}}}function Xo(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ko(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 Yo={current:null},Jo=null,ei=null,ti=null;function ni(){ti=ei=Jo=null}function ri(e){var t=Yo.current;uo(Yo),e.type._context._currentValue=t}function oi(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 ii(e,t){Jo=e,ti=ei=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(za=!0),e.firstContext=null)}function ai(e,t){if(ti!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ti=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ei){if(null===Jo)throw Error(a(308));ei=t,Jo.dependencies={expirationTime:0,firstContext:t,responders:null}}else ei=ei.next=t;return e._currentValue}var li=!1;function si(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ci(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ui(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function di(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 pi(e,t){var n=e.alternate;null!==n&&ci(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function fi(e,t,n,r){var i=e.updateQueue;li=!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}),cs(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:li=!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,us(u),e.expirationTime=u,e.memoizedState=c}}function hi(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 mi=X.ReactCurrentBatchConfig,bi=(new r.Component).refs;function gi(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 yi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Xl(),o=mi.suspense;(o=ui(r=Kl(r,e,o),o)).payload=t,null!=n&&(o.callback=n),di(e,o),Yl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Xl(),o=mi.suspense;(o=ui(r=Kl(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),di(e,o),Yl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Xl(),r=mi.suspense;(r=ui(n=Kl(n,e,r),r)).tag=2,null!=t&&(r.callback=t),di(e,r),Yl(e,n)}};function vi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&Hr(n,r)&&Hr(o,i))}function wi(e,t,n){var r=!1,o=fo,i=t.contextType;return"object"==typeof i&&null!==i?i=ai(i):(o=yo(t)?bo:ho.current,i=(r=null!=(r=t.contextTypes))?go(e,o):fo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function xi(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&&yi.enqueueReplaceState(t,t.state,null)}function Ei(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=bi,si(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ai(i):(i=yo(t)?bo:ho.current,o.context=go(e,i)),fi(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(gi(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&&yi.enqueueReplaceState(o,o.state,null),fi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var ki=Array.isArray;function Ci(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===bi&&(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 Si(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 Ti(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=_s(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=js(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=Ci(e,t,n),r.return=e,r):((r=Is(n.type,n.key,n.props,null,e.mode,r)).ref=Ci(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=Rs(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=zs(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=js(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Is(t.type,t.key,t.props,null,e.mode,n)).ref=Ci(e,null,t),n.return=e,n;case te:return(t=Rs(t,e.mode,n)).return=e,t}if(ki(t)||me(t))return(t=zs(t,e.mode,n,null)).return=e,t;Si(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(ki(n)||me(n))return null!==o?null:d(e,t,n,r,null);Si(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(ki(r)||me(r))return d(t,e=e.get(n)||null,r,o,null);Si(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=Ci(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=zs(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Is(i.type,i.key,i.props,null,e.mode,s)).ref=Ci(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=Rs(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=js(i,e.mode,s)).return=e,e=r),l(e);if(ki(i))return m(e,r,i,s);if(me(i))return b(e,r,i,s);if(u&&Si(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 Pi=Ti(!0),Oi=Ti(!1),Ni={},_i={current:Ni},Ii={current:Ni},zi={current:Ni};function ji(e){if(e===Ni)throw Error(a(174));return e}function Ri(e,t){switch(po(zi,t),po(Ii,e),po(_i,Ni),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:De(null,"");break;default:t=De(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(_i),po(_i,t)}function Di(){uo(_i),uo(Ii),uo(zi)}function Mi(e){ji(zi.current);var t=ji(_i.current),n=De(t,e.type);t!==n&&(po(Ii,e),po(_i,n))}function Fi(e){Ii.current===e&&(uo(_i),uo(Ii))}var Ai={current:0};function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===mn||n.data===bn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(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 Li(e,t){return{responder:e,props:t}}var Hi=X.ReactCurrentDispatcher,Zi=X.ReactCurrentBatchConfig,Qi=0,Ui=null,Wi=null,$i=null,Vi=!1;function qi(){throw Error(a(321))}function Gi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Xi(e,t,n,r,o,i){if(Qi=i,Ui=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Hi.current=null===e||null===e.memoizedState?va:wa,e=n(r,o),t.expirationTime===Qi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,$i=Wi=null,t.updateQueue=null,Hi.current=xa,e=n(r,o)}while(t.expirationTime===Qi)}if(Hi.current=ya,t=null!==Wi&&null!==Wi.next,Qi=0,$i=Wi=Ui=null,Vi=!1,t)throw Error(a(300));return e}function Ki(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===$i?Ui.memoizedState=$i=e:$i=$i.next=e,$i}function Yi(){if(null===Wi){var e=Ui.alternate;e=null!==e?e.memoizedState:null}else e=Wi.next;var t=null===$i?Ui.memoizedState:$i.next;if(null!==t)$i=t,Wi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Wi=e).memoizedState,baseState:Wi.baseState,baseQueue:Wi.baseQueue,queue:Wi.queue,next:null},null===$i?Ui.memoizedState=$i=e:$i=$i.next=e}return $i}function Ji(e,t){return"function"==typeof t?t(e):t}function ea(e){var t=Yi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Wi,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<Qi){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>Ui.expirationTime&&(Ui.expirationTime=u,us(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),cs(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,Br(r,t.memoizedState)||(za=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ta(e){var t=Yi(),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);Br(i,t.memoizedState)||(za=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function na(e){var t=Ki();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:e}).dispatch=ga.bind(null,Ui,e),[t.memoizedState,e]}function ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ui.updateQueue)?(t={lastEffect:null},Ui.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 oa(){return Yi().memoizedState}function ia(e,t,n,r){var o=Ki();Ui.effectTag|=e,o.memoizedState=ra(1|t,n,void 0,void 0===r?null:r)}function aa(e,t,n,r){var o=Yi();r=void 0===r?null:r;var i=void 0;if(null!==Wi){var a=Wi.memoizedState;if(i=a.destroy,null!==r&&Gi(r,a.deps))return void ra(t,n,i,r)}Ui.effectTag|=e,o.memoizedState=ra(1|t,n,i,r)}function la(e,t){return ia(516,4,e,t)}function sa(e,t){return aa(516,4,e,t)}function ca(e,t){return aa(4,2,e,t)}function ua(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 da(e,t,n){return n=null!=n?n.concat([e]):null,aa(4,2,ua.bind(null,t,e),n)}function pa(){}function fa(e,t){return Ki().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Gi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ma(e,t){var n=Yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Gi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ba(e,t,n){var r=Qo();Wo(98>r?98:r,(function(){e(!0)})),Wo(97<r?97:r,(function(){var r=Zi.suspense;Zi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Zi.suspense=r}}))}function ga(e,t,n){var r=Xl(),o=mi.suspense;o={expirationTime:r=Kl(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===Ui||null!==i&&i===Ui)Vi=!0,o.expirationTime=Qi,Ui.expirationTime=Qi;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,Br(l,a))return}catch(e){}Yl(e,r)}}var ya={readContext:ai,useCallback:qi,useContext:qi,useEffect:qi,useImperativeHandle:qi,useLayoutEffect:qi,useMemo:qi,useReducer:qi,useRef:qi,useState:qi,useDebugValue:qi,useResponder:qi,useDeferredValue:qi,useTransition:qi},va={readContext:ai,useCallback:fa,useContext:ai,useEffect:la,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ia(4,2,e,t)},useMemo:function(e,t){var n=Ki();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ki();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=ga.bind(null,Ui,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ki().memoizedState=e},useState:na,useDebugValue:pa,useResponder:Li,useDeferredValue:function(e,t){var n=na(e),r=n[0],o=n[1];return la((function(){var n=Zi.suspense;Zi.suspense=void 0===t?null:t;try{o(e)}finally{Zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(!1),n=t[0];return t=t[1],[fa(ba.bind(null,t,e),[t,e]),n]}},wa={readContext:ai,useCallback:ha,useContext:ai,useEffect:sa,useImperativeHandle:da,useLayoutEffect:ca,useMemo:ma,useReducer:ea,useRef:oa,useState:function(){return ea(Ji)},useDebugValue:pa,useResponder:Li,useDeferredValue:function(e,t){var n=ea(Ji),r=n[0],o=n[1];return sa((function(){var n=Zi.suspense;Zi.suspense=void 0===t?null:t;try{o(e)}finally{Zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(Ji),n=t[0];return t=t[1],[ha(ba.bind(null,t,e),[t,e]),n]}},xa={readContext:ai,useCallback:ha,useContext:ai,useEffect:sa,useImperativeHandle:da,useLayoutEffect:ca,useMemo:ma,useReducer:ta,useRef:oa,useState:function(){return ta(Ji)},useDebugValue:pa,useResponder:Li,useDeferredValue:function(e,t){var n=ta(Ji),r=n[0],o=n[1];return sa((function(){var n=Zi.suspense;Zi.suspense=void 0===t?null:t;try{o(e)}finally{Zi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ta(Ji),n=t[0];return t=t[1],[ha(ba.bind(null,t,e),[t,e]),n]}},Ea=null,ka=null,Ca=!1;function Sa(e,t){var n=Os(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 Ta(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 Pa(e){if(Ca){var t=ka;if(t){var n=t;if(!Ta(e,t)){if(!(t=kn(n.nextSibling))||!Ta(e,t))return e.effectTag=-1025&e.effectTag|2,Ca=!1,void(Ea=e);Sa(Ea,n)}Ea=e,ka=kn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ca=!1,Ea=e}}function Oa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ea=e}function Na(e){if(e!==Ea)return!1;if(!Ca)return Oa(e),Ca=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!wn(t,e.memoizedProps))for(t=ka;t;)Sa(e,t),t=kn(t.nextSibling);if(Oa(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){if(0===t){ka=kn(e.nextSibling);break e}t--}else"$"!==n&&n!==bn&&n!==mn||t++}e=e.nextSibling}ka=null}}else ka=Ea?kn(e.stateNode.nextSibling):null;return!0}function _a(){ka=Ea=null,Ca=!1}var Ia=X.ReactCurrentOwner,za=!1;function ja(e,t,n,r){t.child=null===e?Oi(t,null,n,r):Pi(t,e.child,n,r)}function Ra(e,t,n,r,o){n=n.render;var i=t.ref;return ii(t,o),r=Xi(e,t,n,r,i,o),null===e||za?(t.effectTag|=1,ja(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Xa(e,t,o))}function Da(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Ns(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Is(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Hr)(o,r)&&e.ref===t.ref)?Xa(e,t,i):(t.effectTag|=1,(e=_s(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,o,i){return null!==e&&Hr(e.memoizedProps,r)&&e.ref===t.ref&&(za=!1,o<i)?(t.expirationTime=e.expirationTime,Xa(e,t,i)):Aa(e,t,n,r,i)}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Aa(e,t,n,r,o){var i=yo(n)?bo:ho.current;return i=go(t,i),ii(t,o),n=Xi(e,t,n,r,i,o),null===e||za?(t.effectTag|=1,ja(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Xa(e,t,o))}function Ba(e,t,n,r,o){if(yo(n)){var i=!0;Eo(t)}else i=!1;if(ii(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),wi(t,n,r),Ei(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?ai(c):go(t,c=yo(n)?bo:ho.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)&&xi(t,a,r,c),li=!1;var p=t.memoizedState;a.state=p,fi(t,r,a,o),s=t.memoizedState,l!==r||p!==s||mo.current||li?("function"==typeof u&&(gi(t,n,u,r),s=t.memoizedState),(l=li||vi(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,ci(e,t),l=t.memoizedProps,a.props=t.type===t.elementType?l:Ko(t.type,l),s=a.context,c="object"==typeof(c=n.contextType)&&null!==c?ai(c):go(t,c=yo(n)?bo:ho.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&xi(t,a,r,c),li=!1,s=t.memoizedState,a.state=s,fi(t,r,a,o),p=t.memoizedState,l!==r||s!==p||mo.current||li?("function"==typeof u&&(gi(t,n,u,r),p=t.memoizedState),(u=li||vi(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 La(e,t,n,r,i,o)}function La(e,t,n,r,o,i){Fa(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&ko(t,n,!1),Xa(e,t,i);r=t.stateNode,Ia.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Pi(t,e.child,null,i),t.child=Pi(t,null,l,i)):ja(e,t,l,i),t.memoizedState=r.state,o&&ko(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Ri(e,t.containerInfo)}var Za,Qa,Ua,Wa={dehydrated:null,retryTime:0};function $a(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Ai.current,l=!1;if((r=0!=(64&t.effectTag))||(r=0!=(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),po(Ai,1&a),null===e){if(void 0!==i.fallback&&Pa(t),l){if(l=i.fallback,(i=zs(null,o,0,null)).return=t,0==(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=zs(l,o,n,null)).return=t,i.sibling=n,t.memoizedState=Wa,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=Oi(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,l){if(i=i.fallback,(n=_s(e,e.pendingProps)).return=t,0==(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=_s(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Wa,t.child=n,o}return n=Pi(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=i.fallback,(i=zs(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(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=zs(l,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Wa,t.child=i,n}return t.memoizedState=null,t.child=Pi(t,e,i.children,n)}function Va(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),oi(e.return,t)}function qa(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 Ga(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ja(e,t,r.children,n),0!=(2&(r=Ai.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Va(e,n);else if(19===e.tag)Va(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(po(Ai,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),qa(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===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}qa(t,!0,n,null,i,t.lastEffect);break;case"together":qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Xa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&us(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=_s(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=_s(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ka(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 Ya(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 yo(t.type)&&vo(),null;case 3:return Di(),uo(mo),uo(ho),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Na(t)||(t.effectTag|=4),null;case 5:Fi(t),n=ji(zi.current);var i=t.type;if(null!==e&&null!=t.stateNode)Qa(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=ji(_i.current),Na(t)){r=t.stateNode,i=t.type;var l=t.memoizedProps;switch(r[Tn]=t,r[Pn]=l,i){case"iframe":case"object":case"embed":$t("load",r);break;case"video":case"audio":for(e=0;e<Ge.length;e++)$t(Ge[e],r);break;case"source":$t("error",r);break;case"img":case"image":case"link":$t("error",r),$t("load",r);break;case"form":$t("reset",r),$t("submit",r);break;case"details":$t("toggle",r);break;case"input":ke(r,l),$t("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!l.multiple},$t("invalid",r),ln(n,"onChange");break;case"textarea":Ie(r,l),$t("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]):C.hasOwnProperty(s)&&null!=c&&ln(n,s)}switch(i){case"input":we(r),Te(r,l,!0);break;case"textarea":we(r),je(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=Re(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[Tn]=t,e[Pn]=r,Za(e,t),t.stateNode=e,s=on(i,r),i){case"iframe":case"object":case"embed":$t("load",e),c=r;break;case"video":case"audio":for(c=0;c<Ge.length;c++)$t(Ge[c],e);c=r;break;case"source":$t("error",e),c=r;break;case"img":case"image":case"link":$t("error",e),$t("load",e),c=r;break;case"form":$t("reset",e),$t("submit",e),c=r;break;case"details":$t("toggle",e),c=r;break;case"input":ke(e,r),c=Ee(e,r),$t("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}),$t("invalid",e),ln(n,"onChange");break;case"textarea":Ie(e,r),c=_e(e,r),$t("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)&&Ae(e,d):"children"===l?"string"==typeof d?("textarea"!==i||""!==d)&&Be(e,d):"number"==typeof d&&Be(e,""+d):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(C.hasOwnProperty(l)?null!=d&&ln(n,l):null!=d&&K(e,l,d,s))}switch(i){case"input":we(e),Te(e,r,!1);break;case"textarea":we(e),je(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)}vn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ua(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=ji(zi.current),ji(_i.current),Na(t)?(n=t.stateNode,r=t.memoizedProps,n[Tn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tn]=t,t.stateNode=n)}return null;case 13:return uo(Ai),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Na(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&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ai.current)?Il===Cl&&(Il=Sl):(Il!==Cl&&Il!==Sl||(Il=Tl),0!==Ml&&null!==Ol&&(Fs(Ol,_l),As(Ol,Ml)))),(n||r)&&(t.effectTag|=4),null);case 4:return Di(),null;case 10:return ri(t),null;case 19:if(uo(Ai),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(l=r.rendering)){if(i)Ka(r,!1);else if(Il!==Cl||null!==e&&0!=(64&e.effectTag))for(l=t.child;null!==l;){if(null!==(e=Bi(l))){for(t.effectTag|=64,Ka(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 po(Ai,1&Ai.current|2),t.child}l=l.sibling}}else{if(!i)if(null!==(e=Bi(l))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ka(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Zo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Ka(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=Zo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Zo(),n.sibling=null,t=Ai.current,po(Ai,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ja(e){switch(e.tag){case 1:yo(e.type)&&vo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Di(),uo(mo),uo(ho),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Fi(e),null;case 13:return uo(Ai),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return uo(Ai),null;case 4:return Di(),null;case 10:return ri(e),null;default:return null}}function el(e,t){return{value:e,source:t,stack:ge(t)}}Za=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}},Qa=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l,s,c=t.stateNode;switch(ji(_i.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&&(C.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&&(C.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)}},Ua=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var tl="function"==typeof WeakSet?WeakSet:Set;function nl(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 rl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Es(e,t)}else t.current=null}function ol(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:Ko(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function il(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 al(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 ll(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void al(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:Ko(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&hi(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}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&vn(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&&Dt(n)))))}throw Error(a(163))}function sl(e,t,n){switch("function"==typeof Ts&&Ts(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;Wo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(e){Es(o,e)}}e=e.next}while(e!==r)}))}break;case 1:rl(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Es(e,t)}}(t,n);break;case 5:rl(t);break;case 4:hl(e,t,n)}}function cl(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&&cl(t)}function ul(e){return 5===e.tag||3===e.tag||4===e.tag}function dl(e){e:{for(var t=e.return;null!==t;){if(ul(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&&(Be(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ul(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?pl(e,n,t):fl(e,n,t)}function pl(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(pl(e,t,n),e=e.sibling;null!==e;)pl(e,t,n),e=e.sibling}function fl(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(fl(e,t,n),e=e.sibling;null!==e;)fl(e,t,n),e=e.sibling}function hl(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(sl(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(sl(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 ml(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void il(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[Pn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ce(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?Ae(n,s):"children"===l?Be(n,s):K(n,l,s,t)}switch(e){case"input":Se(n,r);break;case"textarea":ze(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,Dt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Al=Zo()),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 bl(t);case 19:return void bl(t)}throw Error(a(163))}function bl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new tl),t.forEach((function(t){var r=Cs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var gl="function"==typeof WeakMap?WeakMap:Map;function yl(e,t,n){(n=ui(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ll||(Ll=!0,Hl=r),nl(e,t)},n}function vl(e,t,n){(n=ui(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return nl(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Zl?Zl=new Set([this]):Zl.add(this),nl(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var wl,xl=Math.ceil,El=X.ReactCurrentDispatcher,kl=X.ReactCurrentOwner,Cl=0,Sl=3,Tl=4,Pl=0,Ol=null,Nl=null,_l=0,Il=Cl,zl=null,jl=1073741823,Rl=1073741823,Dl=null,Ml=0,Fl=!1,Al=0,Bl=null,Ll=!1,Hl=null,Zl=null,Ql=!1,Ul=null,Wl=90,$l=null,Vl=0,ql=null,Gl=0;function Xl(){return 0!=(48&Pl)?1073741821-(Zo()/10|0):0!==Gl?Gl:Gl=1073741821-(Zo()/10|0)}function Kl(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Qo();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&Pl))return _l;if(null!==n)e=Xo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Xo(e,150,100);break;case 97:case 96:e=Xo(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Ol&&e===_l&&--e,e}function Yl(e,t){if(50<Vl)throw Vl=0,ql=null,Error(a(185));if(null!==(e=Jl(e,t))){var n=Qo();1073741823===t?0!=(8&Pl)&&0==(48&Pl)?rs(e):(ts(e),0===Pl&&qo()):ts(e),0==(4&Pl)||98!==n&&99!==n||(null===$l?$l=new Map([[e,t]]):(void 0===(n=$l.get(e))||n>t)&&$l.set(e,t))}}function Jl(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&&(Ol===o&&(us(t),Il===Tl&&Fs(o,_l)),As(o,t)),o}function es(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ms(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function ts(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Vo(rs.bind(null,e));else{var t=es(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Xl();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!==Do&&To(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Vo(rs.bind(null,e)):$o(r,ns.bind(null,e),{timeout:10*(1073741821-t)-Zo()}),e.callbackNode=t}}}function ns(e,t){if(Gl=0,t)return Bs(e,t=Xl()),ts(e),null;var n=es(e);if(0!==n){if(t=e.callbackNode,0!=(48&Pl))throw Error(a(327));if(vs(),e===Ol&&n===_l||as(e,n),null!==Nl){var r=Pl;Pl|=16;for(var o=ss();;)try{ps();break}catch(t){ls(e,t)}if(ni(),Pl=r,El.current=o,1===Il)throw t=zl,as(e,n),Fs(e,n),ts(e),t;if(null===Nl)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Il,Ol=null,r){case Cl:case 1:throw Error(a(345));case 2:Bs(e,2<n?2:n);break;case Sl:if(Fs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=ms(o)),1073741823===jl&&10<(o=Al+500-Zo())){if(Fl){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,as(e,n);break}}if(0!==(i=es(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=xn(bs.bind(null,e),o);break}bs(e);break;case Tl:if(Fs(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=ms(o)),Fl&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,as(e,n);break}if(0!==(o=es(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Rl?r=10*(1073741821-Rl)-Zo():1073741823===jl?r=0:(r=10*(1073741821-jl)-5e3,0>(r=(o=Zo())-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*xl(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=xn(bs.bind(null,e),r);break}bs(e);break;case 5:if(1073741823!==jl&&null!==Dl){i=jl;var l=Dl;if(0>=(r=0|l.busyMinDurationMs)?r=0:(o=0|l.busyDelayMs,r=(i=Zo()-(10*(1073741821-i)-(0|l.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Fs(e,n),e.timeoutHandle=xn(bs.bind(null,e),r);break}}bs(e);break;default:throw Error(a(329))}if(ts(e),e.callbackNode===t)return ns.bind(null,e)}}return null}function rs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&Pl))throw Error(a(327));if(vs(),e===Ol&&t===_l||as(e,t),null!==Nl){var n=Pl;Pl|=16;for(var r=ss();;)try{ds();break}catch(t){ls(e,t)}if(ni(),Pl=n,El.current=r,1===Il)throw n=zl,as(e,t),Fs(e,t),ts(e),n;if(null!==Nl)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ol=null,bs(e),ts(e)}return null}function os(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&qo()}}function is(e,t){var n=Pl;Pl&=-2,Pl|=8;try{return e(t)}finally{0===(Pl=n)&&qo()}}function as(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,En(n)),null!==Nl)for(n=Nl.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vo();break;case 3:Di(),uo(mo),uo(ho);break;case 5:Fi(r);break;case 4:Di();break;case 13:case 19:uo(Ai);break;case 10:ri(r)}n=n.return}Ol=e,Nl=_s(e.current,null),_l=t,Il=Cl,zl=null,Rl=jl=1073741823,Dl=null,Ml=0,Fl=!1}function ls(e,t){for(;;){try{if(ni(),Hi.current=ya,Vi)for(var n=Ui.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Qi=0,$i=Wi=Ui=null,Vi=!1,null===Nl||null===Nl.return)return Il=1,zl=t,Nl=null;e:{var o=e,i=Nl.return,a=Nl,l=t;if(t=_l,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var s=l;if(0==(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=0!=(1&Ai.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(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=ui(1073741823,null);g.tag=2,di(a,g)}a.expirationTime=1073741823;break e}l=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new gl,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=ks.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))}5!==Il&&(Il=2),l=el(l,a),d=i;do{switch(d.tag){case 3:s=l,d.effectTag|=4096,d.expirationTime=t,pi(d,yl(d,s,t));break e;case 1:s=l;var w=d.type,x=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===Zl||!Zl.has(x)))){d.effectTag|=4096,d.expirationTime=t,pi(d,vl(d,s,t));break e}}d=d.return}while(null!==d)}Nl=hs(Nl)}catch(e){t=e;continue}break}}function ss(){var e=El.current;return El.current=ya,null===e?ya:e}function cs(e,t){e<jl&&2<e&&(jl=e),null!==t&&e<Rl&&2<e&&(Rl=e,Dl=t)}function us(e){e>Ml&&(Ml=e)}function ds(){for(;null!==Nl;)Nl=fs(Nl)}function ps(){for(;null!==Nl&&!Mo();)Nl=fs(Nl)}function fs(e){var t=wl(e.alternate,e,_l);return e.memoizedProps=e.pendingProps,null===t&&(t=hs(e)),kl.current=null,t}function hs(e){Nl=e;do{var t=Nl.alternate;if(e=Nl.return,0==(2048&Nl.effectTag)){if(t=Ya(t,Nl,_l),1===_l||1!==Nl.childExpirationTime){for(var n=0,r=Nl.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Nl.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Nl.firstEffect),null!==Nl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Nl.firstEffect),e.lastEffect=Nl.lastEffect),1<Nl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Nl:e.firstEffect=Nl,e.lastEffect=Nl))}else{if(null!==(t=Ja(Nl)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Nl.sibling))return t;Nl=e}while(null!==Nl);return Il===Cl&&(Il=5),null}function ms(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function bs(e){var t=Qo();return Wo(99,gs.bind(null,e,t)),null}function gs(e,t){do{vs()}while(null!==Ul);if(0!=(48&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=ms(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===Ol&&(Nl=Ol=null,_l=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=Pl;Pl|=32,kl.current=null,gn=Wt;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;yn={activeElementDetached:null,focusedElem:l,selectionRange:s},Wt=!1,Bl=o;do{try{ys()}catch(e){if(null===Bl)throw Error(a(330));Es(Bl,e),Bl=Bl.nextEffect}}while(null!==Bl);Bl=o;do{try{for(l=e,s=t;null!==Bl;){var w=Bl.effectTag;if(16&w&&Be(Bl.stateNode,""),128&w){var x=Bl.alternate;if(null!==x){var E=x.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&w){case 2:dl(Bl),Bl.effectTag&=-3;break;case 6:dl(Bl),Bl.effectTag&=-3,ml(Bl.alternate,Bl);break;case 1024:Bl.effectTag&=-1025;break;case 1028:Bl.effectTag&=-1025,ml(Bl.alternate,Bl);break;case 4:ml(Bl.alternate,Bl);break;case 8:hl(l,u=Bl,s),cl(u)}Bl=Bl.nextEffect}}catch(e){if(null===Bl)throw Error(a(330));Es(Bl,e),Bl=Bl.nextEffect}}while(null!==Bl);if(E=yn,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}Wt=!!gn,yn=gn=null,e.current=n,Bl=o;do{try{for(w=e;null!==Bl;){var k=Bl.effectTag;if(36&k&&ll(w,Bl.alternate,Bl),128&k){x=void 0;var C=Bl.ref;if(null!==C){var S=Bl.stateNode;Bl.tag,x=S,"function"==typeof C?C(x):C.current=x}}Bl=Bl.nextEffect}}catch(e){if(null===Bl)throw Error(a(330));Es(Bl,e),Bl=Bl.nextEffect}}while(null!==Bl);Bl=null,Fo(),Pl=i}else e.current=n;if(Ql)Ql=!1,Ul=e,Wl=t;else for(Bl=o;null!==Bl;)t=Bl.nextEffect,Bl.nextEffect=null,Bl=t;if(0===(t=e.firstPendingTime)&&(Zl=null),1073741823===t?e===ql?Vl++:(Vl=0,ql=e):Vl=0,"function"==typeof Ss&&Ss(n.stateNode,r),ts(e),Ll)throw Ll=!1,e=Hl,Hl=null,e;return 0!=(8&Pl)||qo(),null}function ys(){for(;null!==Bl;){var e=Bl.effectTag;0!=(256&e)&&ol(Bl.alternate,Bl),0==(512&e)||Ql||(Ql=!0,$o(97,(function(){return vs(),null}))),Bl=Bl.nextEffect}}function vs(){if(90!==Wl){var e=97<Wl?97:Wl;return Wl=90,Wo(e,ws)}}function ws(){if(null===Ul)return!1;var e=Ul;if(Ul=null,0!=(48&Pl))throw Error(a(331));var t=Pl;for(Pl|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:il(5,n),al(5,n)}}catch(t){if(null===e)throw Error(a(330));Es(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Pl=t,qo(),!0}function xs(e,t,n){di(e,t=yl(e,t=el(n,t),1073741823)),null!==(e=Jl(e,1073741823))&&ts(e)}function Es(e,t){if(3===e.tag)xs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){xs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zl||!Zl.has(r))){di(n,e=vl(n,e=el(t,e),1073741823)),null!==(n=Jl(n,1073741823))&&ts(n);break}}n=n.return}}function ks(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ol===e&&_l===n?Il===Tl||Il===Sl&&1073741823===jl&&Zo()-Al<500?as(e,_l):Fl=!0:Ms(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,ts(e)))}function Cs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=Kl(t=Xl(),e,null)),null!==(e=Jl(e,t))&&ts(e)}wl=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||mo.current)za=!0;else{if(r<n){switch(za=!1,t.tag){case 3:Ha(t),_a();break;case 5:if(Mi(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:yo(t.type)&&Eo(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,po(Yo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?$a(e,t,n):(po(Ai,1&Ai.current),null!==(t=Xa(e,t,n))?t.sibling:null);po(Ai,1&Ai.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ga(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),po(Ai,Ai.current),!r)return null}return Xa(e,t,n)}za=!1}}else za=!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=go(t,ho.current),ii(t,n),o=Xi(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,yo(r)){var i=!0;Eo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,si(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&gi(t,r,l,e),o.updater=yi,t.stateNode=o,o._reactInternalFiber=t,Ei(t,r,e,n),t=La(null,t,r,!0,i,n)}else t.tag=0,ja(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 Ns(e)?1:0;if(null!=e){if((e=e.$$typeof)===se)return 11;if(e===de)return 14}return 2}(o),e=Ko(o,e),i){case 0:t=Aa(null,t,o,e,n);break e;case 1:t=Ba(null,t,o,e,n);break e;case 11:t=Ra(null,t,o,e,n);break e;case 14:t=Da(null,t,o,Ko(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Aa(e,t,r,o=t.elementType===r?o:Ko(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Ko(r,o),n);case 3:if(Ha(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ci(e,t),fi(t,r,null,n),(r=t.memoizedState.element)===o)_a(),t=Xa(e,t,n);else{if((o=t.stateNode.hydrate)&&(ka=kn(t.stateNode.containerInfo.firstChild),Ea=t,o=Ca=!0),o)for(n=Oi(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else ja(e,t,r,n),_a();t=t.child}return t;case 5:return Mi(t),null===e&&Pa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,wn(r,o)?l=null:null!==i&&wn(r,i)&&(t.effectTag|=16),Fa(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ja(e,t,l,n),t=t.child),t;case 6:return null===e&&Pa(t),null;case 13:return $a(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Pi(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ra(e,t,r,o=t.elementType===r?o:Ko(r,o),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(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(po(Yo,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0==(i=Br(s,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===o.children&&!mo.current){t=Xa(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&&0!=(u.observedBits&i)){1===s.tag&&((u=ui(n,null)).tag=2,di(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),oi(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}ja(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ii(t,n),r=r(o=ai(o,i.unstable_observedBits)),t.effectTag|=1,ja(e,t,r,n),t.child;case 14:return i=Ko(o=t.type,t.pendingProps),Da(e,t,o,i=Ko(o.type,i),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ko(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,yo(r)?(e=!0,Eo(t)):e=!1,ii(t,n),wi(t,r,o),Ei(t,r,o,n),La(null,t,r,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var Ss=null,Ts=null;function Ps(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 Os(e,t,n,r){return new Ps(e,t,n,r)}function Ns(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _s(e,t){var n=e.alternate;return null===n?((n=Os(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 Is(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Ns(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case ne:return zs(n.children,o,i,t);case le:l=8,o|=7;break;case re:l=8,o|=1;break;case oe:return(e=Os(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case ce:return(e=Os(13,n,t,o)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=Os(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=Os(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function zs(e,t,n,r){return(e=Os(7,e,r,t)).expirationTime=n,e}function js(e,t,n){return(e=Os(6,e,null,t)).expirationTime=n,e}function Rs(e,t,n){return(t=Os(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ds(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 Ms(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Fs(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 As(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 Bs(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ls(e,t,n,r){var o=t.current,i=Xl(),l=mi.suspense;i=Kl(i,o,l);e:if(n){t:{if(Ye(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(yo(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(yo(c)){n=xo(n,c,s);break e}}n=s}else n=fo;return null===t.context?t.context=n:t.pendingContext=n,(t=ui(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),di(o,t),Yl(o,i),i}function Hs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zs(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Qs(e,t){Zs(e,t),(e=e.alternate)&&Zs(e,t)}function Us(e,t,n){var r=new Ds(e,t,n=null!=n&&!0===n.hydrate),o=Os(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,si(o),e[On]=r.current,n&&0!==t&&function(e,t){var n=Ke(t);St.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 Ws(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $s(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=Hs(a);l.call(e)}}Ls(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 Us(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=Hs(a);s.call(e)}}is((function(){Ls(t,a,e,o)}))}return Hs(a)}function Vs(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}}function qs(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ws(t))throw Error(a(200));return Vs(e,t,null,n)}Us.prototype.render=function(e){Ls(e,this._internalRoot,null,null)},Us.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ls(null,e,null,(function(){t[On]=null}))},ht=function(e){if(13===e.tag){var t=Xo(Xl(),150,100);Yl(e,t),Qs(e,t)}},mt=function(e){13===e.tag&&(Yl(e,3),Qs(e,3))},bt=function(e){if(13===e.tag){var t=Xl();Yl(e,t=Kl(t,e,null)),Qs(e,t)}},O=function(e,t,n){switch(t){case"input":if(Se(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=zn(r);if(!o)throw Error(a(90));xe(r),Se(r,o)}}}break;case"textarea":ze(e,n);break;case"select":null!=(t=n.value)&&Ne(e,!!n.multiple,t,!1)}},R=os,D=function(e,t,n,r,o){var i=Pl;Pl|=4;try{return Wo(98,e.bind(null,t,n,r,o))}finally{0===(Pl=i)&&qo()}},M=function(){0==(49&Pl)&&(function(){if(null!==$l){var e=$l;$l=null,e.forEach((function(e,t){Bs(t,e),ts(t)})),qo()}}(),vs())},F=function(e,t){var n=Pl;Pl|=2;try{return e(t)}finally{0===(Pl=n)&&qo()}};var Gs={Events:[_n,In,zn,T,k,Bn,function(e){rt(e,An)},z,j,Xt,at,vs,{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);Ss=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Ts=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.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:Nn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gs,t.createPortal=qs,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(0!=(48&Pl))throw Error(a(187));var n=Pl;Pl|=1;try{return Wo(99,e.bind(null,t))}finally{Pl=n,qo()}},t.hydrate=function(e,t,n){if(!Ws(t))throw Error(a(200));return $s(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ws(t))throw Error(a(200));return $s(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ws(e))throw Error(a(40));return!!e._reactRootContainer&&(is((function(){$s(null,null,e,!1,(function(){e._reactRootContainer=null,e[On]=null}))})),!0)},t.unstable_batchedUpdates=os,t.unstable_createPortal=function(e,t){return qs(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ws(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return $s(e,t,n,!1,r)},t.version="16.14.0"},1542:(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(3577)},1535:(e,t,n)=>{"use strict";var r=n(2525),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 k=E.prototype=new x;k.constructor=E,r(k,w.prototype),k.isPureReactComponent=!0;var C={current:null},S=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)S.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:C.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 z(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>_.length&&_.push(e)}function j(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?"."+D(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=t+D(o=e[s],s);l+=j(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+=j(o=o.value,c=t+D(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 R(e,t,n){return null==e?0:j(e,"",t,n)}function D(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 M(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?A(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 A(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(N,"$&/")+"/"),R(e,F,t=I(t,i,r,o)),z(t)}var B={current:null};function L(){var e=B.current;if(null===e)throw Error(g(321));return e}var H={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return A(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,M,t=I(null,null,t,n)),z(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return A(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=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.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 L().useCallback(e,t)},t.useContext=function(e,t){return L().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return L().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return L().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return L().useLayoutEffect(e,t)},t.useMemo=function(e,t){return L().useMemo(e,t)},t.useReducer=function(e,t,n){return L().useReducer(e,t,n)},t.useRef=function(e){return L().useRef(e)},t.useState=function(e){return L().useState(e)},t.version="16.14.0"},7378:(e,t,n)=>{"use strict";e.exports=n(1535)},3323:(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,k=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();x=e+w;try{y(!0,e)?k.postMessage(null):(g=!1,y=null)}catch(e){throw k.postMessage(null),e}}else g=!1},n=function(e){y=e,g||(g=!0,k.postMessage(null))},r=function(e,n){v=f((function(){e(t.unstable_now())}),n)},o=function(){h(v),v=-1}}function C(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 S(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,z=3,j=!1,R=!1,D=!1;function M(e){for(var t=S(N);null!==t;){if(null===t.callback)T(N);else{if(!(t.startTime<=e))break;T(N),t.sortIndex=t.expirationTime,C(O,t)}t=S(N)}}function F(e){if(D=!1,M(e),!R)if(null!==S(O))R=!0,n(A);else{var t=S(N);null!==t&&r(F,t.startTime-e)}}function A(e,n){R=!1,D&&(D=!1,o()),j=!0;var a=z;try{for(M(n),I=S(O);null!==I&&(!(I.expirationTime>n)||e&&!i());){var l=I.callback;if(null!==l){I.callback=null,z=I.priorityLevel;var s=l(I.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?I.callback=s:I===S(O)&&T(O),M(n)}else T(O);I=S(O)}if(null!==I)var c=!0;else{var u=S(N);null!==u&&r(F,u.startTime-n),c=!1}return c}finally{I=null,z=a,j=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var L=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(){R||j||(R=!0,n(A))},t.unstable_getCurrentPriorityLevel=function(){return z},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(z){case 1:case 2:case 3:var t=3;break;default:t=z}var n=z;z=t;try{return e()}finally{z=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=z;z=e;try{return t()}finally{z=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:B(e)}else a=B(e),s=l;return e={id:_++,callback:i,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>l?(e.sortIndex=s,C(N,e),null===S(O)&&e===S(N)&&(D?o():D=!0,r(F,s-l))):(e.sortIndex=a,C(O,e),R||j||(R=!0,n(A))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var n=S(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=z;return function(){var n=z;z=t;try{return e.apply(this,arguments)}finally{z=n}}}},1102:(e,t,n)=>{"use strict";e.exports=n(3323)},1892: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}}},8311: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)}},8060:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},8192:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},5760:e=>{"use strict";e.exports=function(e){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)}}}},4865: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))}}},7042:(e,t,n)=>{"use strict";e.exports=n.p+"d4c409dfe110747b1763.woff"},5682:(e,t,n)=>{"use strict";e.exports=n.p+"815babffe97b00a1f30b.woff2"},8805:(e,t,n)=>{"use strict";e.exports=n.p+"2b389797cf8bdbea58fb.woff"},2231:(e,t,n)=>{"use strict";e.exports=n.p+"1ab7bbddcdbde1b6f274.woff2"},7638:(e,t,n)=>{"use strict";e.exports=n.p+"399c3cc75ca92df8083c.woff"},9431:(e,t,n)=>{"use strict";e.exports=n.p+"d8ba12774e48a5a73c24.woff2"},445:(e,t,n)=>{"use strict";e.exports=n.p+"55cf6665278898f1149c.woff"},9868:(e,t,n)=>{"use strict";e.exports=n.p+"06db94b5fad70e44175d.woff2"},3626:(e,t,n)=>{"use strict";e.exports=n.p+"fbebe70817c0f48eb4ee.woff"},7406:(e,t,n)=>{"use strict";e.exports=n.p+"cb41c1e71debe927815c.woff2"},3544:(e,t,n)=>{"use strict";e.exports=n.p+"698b70db8a5ab239d57c.eot?l2n71k"},9545:(e,t,n)=>{"use strict";e.exports=n.p+"82aa10655eda523c6f67.svg?l2n71k"},1185:(e,t,n)=>{"use strict";e.exports=n.p+"8ac824aa6974fb101dad.ttf?l2n71k"},6987:(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&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].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(7378),t=n(1542),r=n(3615),o=n.n(r),i=n(1892),a=n.n(i),l=n(5760),s=n.n(l),c=n(8311),u=n.n(c),d=n(8192),p=n.n(d),f=n(8060),h=n.n(f),m=n(4865),b=n.n(m),g=n(4634),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.Z,y),g.Z&&g.Z.locals&&g.Z.locals;var w=n(433),x={};x.styleTagTransform=b(),x.setAttributes=p(),x.insert=u().bind(null,"head"),x.domAPI=s(),x.insertStyleElement=h(),a()(w.Z,x),w.Z&&w.Z.locals&&w.Z.locals;var E=n(1089),k={};function C(e){return C="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},C(e)}function S(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,r.key,r)}}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function P(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return O(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}k.styleTagTransform=b(),k.setAttributes=p(),k.insert=u().bind(null,"head"),k.domAPI=s(),k.insertStyleElement=h(),a()(E.Z,k),E.Z&&E.Z.locals&&E.Z.locals;var _=function(t){!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&&T(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=N(o);if(i){var n=N(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return P(this,e)});function l(t){var n,r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i=function(t){var r=n.props.children[t];return e.createElement("li",{key:t,title:r.props.title,className:[r.props.className,n.props.activeIndex==t?"active":""].join(" "),onClick:function(){return n.props.onChange(t)}})},(o="renderNavItem")in(r=O(n=a.call(this,t)))?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n}return n=l,(r=[{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)}}])&&S(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);_.propTypes={tour:o().oneOfType([o().shape({fadeActive:o().bool.isRequired}),o().bool])};var I=n(8087),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 R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(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,r.key,r)}}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function F(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)}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}z.styleTagTransform=b(),z.setAttributes=p(),z.insert=u().bind(null,"head"),z.domAPI=s(),z.insertStyleElement=h(),a()(I.Z,z),I.Z&&I.Z.locals&&I.Z.locals;var B=function(t){!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&&M(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=A(o);if(i){var n=A(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return F(this,e)});function l(){return R(this,l),a.apply(this,arguments)}return n=l,(r=[{key:"render",value:function(){return e.createElement("div",{className:"tab-panel"+(!0===this.props.active?" active":"")},this.props.children)}}])&&D(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);B.propTypes={active:o().bool};var L=n(6247),H={};H.styleTagTransform=b(),H.setAttributes=p(),H.insert=u().bind(null,"head"),H.domAPI=s(),H.insertStyleElement=h(),a()(L.Z,H),L.Z&&L.Z.locals&&L.Z.locals;var Z=n(2546),Q={};function U(e){return U="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},U(e)}function W(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,r.key,r)}}function $(e,t){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$(e,t)}function V(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return q(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}Q.styleTagTransform=b(),Q.setAttributes=p(),Q.insert=u().bind(null,"head"),Q.domAPI=s(),Q.insertStyleElement=h(),a()(Z.Z,Q),Z.Z&&Z.Z.locals&&Z.Z.locals;var X=function(t){!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)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=G(o);if(i){var n=G(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return V(this,e)});function l(e){var t,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=function(e){e.target!==t.tooltip&&t.props.onClose()},(r="handleDocumentClick")in(n=q(t=a.call(this,e)))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t.state={showTooltip:!1},t}return n=l,(r=[{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}})}}])&&W(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);X.propTypes={children:o().array};var K=n(8925),Y={};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,r.key,r)}}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}function ne(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 re(e)}function re(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}Y.styleTagTransform=b(),Y.setAttributes=p(),Y.insert=u().bind(null,"head"),Y.domAPI=s(),Y.insertStyleElement=h(),a()(K.Z,Y),K.Z&&K.Z.locals&&K.Z.locals;var ie=function(t){!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&&te(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=oe(o);if(i){var n=oe(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ne(this,e)});function l(e){var t,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=function(){t.setState((function(e){return{showTooltip:!e.showTooltip}}))},(r="handleClick")in(n=re(t=a.call(this,e)))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t.state={showTooltip:!1},t}return n=l,(r=[{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(X,{text:this.props.text,tooltipClass:t,onClose:this.handleClick}))}}])&&ee(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);ie.propTypes={children:o().array};var ae=n(8235),le={};le.styleTagTransform=b(),le.setAttributes=p(),le.insert=u().bind(null,"head"),le.domAPI=s(),le.insertStyleElement=h(),a()(ae.Z,le),ae.Z&&ae.Z.locals&&ae.Z.locals;var se=n(8738),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){ye(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,r.key,r)}}function he(e,t){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},he(e,t)}function me(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 be(e)}function be(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}ce.styleTagTransform=b(),ce.setAttributes=p(),ce.insert=u().bind(null,"head"),ce.domAPI=s(),ce.insertStyleElement=h(),a()(se.Z,ce),se.Z&&se.Z.locals&&se.Z.locals;var ve=function(t){!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&&he(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ge(o);if(i){var n=ge(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return me(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),ye(be(t=a.call(this,e)),"handleMouseDown",(function(e){var n=e.target.classList.contains("loop-back")||e.target.classList.contains("content-menu-button");0!==e.button||t.props.disabled||l.inUse||n||(t.setState(t.prepareMouseMove({startX:e.pageX,startY:e.pageY})),t.props.onStarted&&t.props.onStarted())})),ye(be(t),"prepareMouseMove",(function(e){return l.inUse=!0,window.addEventListener("mouseup",t.handleMouseUp),window.addEventListener("mousemove",t.handleMouseMove),{moving:e}})),ye(be(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)})),ye(be(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),l.inUse=!1,t.props.onStopped&&t.props.onStopped(e)})),ye(be(t),"getBoundingClientRect",(function(){return t.element.getBoundingClientRect()})),t.state=e.started?t.prepareMouseMove(e.started):{moving:null},t}return n=l,(r=[{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(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(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(9031),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 ke(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,r.key,r)}}function Ce(e,t){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ce(e,t)}function Se(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)}function Te(e){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Te(e)}xe.styleTagTransform=b(),xe.setAttributes=p(),xe.insert=u().bind(null,"head"),xe.domAPI=s(),xe.insertStyleElement=h(),a()(we.Z,xe),we.Z&&we.Z.locals&&we.Z.locals;var Pe=function(t){!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&&Ce(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Te(o);if(i){var n=Te(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Se(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return n=l,(r=[{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")))}}])&&ke(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function Oe(e){return Oe="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},Oe(e)}function Ne(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,r.key,r)}}function _e(e,t){return _e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_e(e,t)}function Ie(e,t){if(t&&("object"===Oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ze(e)}function ze(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function je(e){return je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},je(e)}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Pe.propTypes={onPreview:o().func,onEdit:o().func,onCopy:o().func,onDelete:o().func};var De=function(t){!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(e,t)}(s,t);var n,r,o,i,a,l=(i=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=je(i);if(a){var n=je(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ie(this,e)});function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Re(ze(t=l.call(this,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}]})),Re(ze(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)})),Re(ze(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})),Re(ze(t),"handleMoved",(function(e){t.setState({temporaryPosition:e},t.props.onMove)})),Re(ze(t),"handleStopped",(function(e){e&&t.props.onDropped(),t.element&&t.setState({temporaryPosition:null})})),Re(ze(t),"handleMenuButtonClick",(function(){t.state.contentMenuActive||(t.setState({contentMenuActive:!0}),document.addEventListener("click",t.handleDocumentClick)),t.props.onDropped()})),Re(ze(t),"handleDocumentClick",(function(e){0!==e.button||e.defaultPrevented||(t.setState({contentMenuActive:!1}),document.removeEventListener("click",t.handleDocumentClick))})),Re(ze(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 n=s,o=[{key:"getTooltip",value:function(e,t){var n,r=e.params.type.library,o=e.params.type.library.split(" ")[0],i=H5PEditor.LibraryListCache.libraryCache[r],a=i&&i.title?i.title:"";if(a||(a=o.replace("H5P.","")),t)return a;var l=e.params.type.params;switch(o){case"H5P.AdvancedText":return l.text&&(n=s.stripHTML(l.text)),void 0===n&&e.params.type.metadata&&(n=e.params.type.metadata.title),void 0!==n?n:a;case"H5P.BranchingQuestion":return l.branchingQuestion&&l.branchingQuestion.question&&l.branchingQuestion.question.trim().length>0?s.stripHTML(l.branchingQuestion.question):e.params.type.metadata&&e.params.type.metadata.title&&e.params.type.metadata.title.trim().length>0?e.params.type.metadata.title:a;default:return e.params.type.metadata&&e.params.type.metadata.title?s.stripHTML(e.params.type.metadata.title):a}}},{key:"stripHTML",value:function(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}}],(r=[{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(Pe,{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"}))}}])&&Ne(n.prototype,r),o&&Ne(n,o),Object.defineProperty(n,"prototype",{writable:!1}),s}(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 Me=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]},Ae=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(Me(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},Le=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n))return e[n]};function He(e){return He="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},He(e)}function Ze(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,r.key,r)}}function Qe(e,t){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qe(e,t)}function Ue(e,t){if(t&&("object"===He(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return We(e)}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qe=function(t){!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&&Qe(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$e(o);if(i){var n=$e(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Ue(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),Ve(We(t=a.call(this,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?Le(t.props.libraries,(function(e){return e.name===i.generic.library})):void 0))return;Me(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})}})),Ve(We(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}})})),Ve(We(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)})})),Ve(We(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 n=l,(r=[{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=Le(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()))}}])&&Ze(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);qe.propTypes={libraries:o().array,tourState:o().string,handleMouseDown:o().func};var Ge=n(3750),Xe={};Xe.styleTagTransform=b(),Xe.setAttributes=p(),Xe.insert=u().bind(null,"head"),Xe.domAPI=s(),Xe.insertStyleElement=h(),a()(Ge.Z,Xe),Ge.Z&&Ge.Z.locals&&Ge.Z.locals;var Ke=n(2815),Ye={};function Je(e){return Je="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},Je(e)}function et(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,r.key,r)}}function tt(e,t){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tt(e,t)}function nt(e,t){if(t&&("object"===Je(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)}function rt(e){return rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rt(e)}Ye.styleTagTransform=b(),Ye.setAttributes=p(),Ye.insert=u().bind(null,"head"),Ye.domAPI=s(),Ye.insertStyleElement=h(),a()(Ke.Z,Ye),Ke.Z&&Ke.Z.locals&&Ke.Z.locals;var ot=function(t){!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&&tt(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=rt(o);if(i){var n=rt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return nt(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return n=l,(r=[{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")))))}}])&&et(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);ot.propTypes={handleClick:o().func,handleTutorialClick:o().func};var it=n(9097),at={};at.styleTagTransform=b(),at.setAttributes=p(),at.insert=u().bind(null,"head"),at.domAPI=s(),at.insertStyleElement=h(),a()(it.Z,at),it.Z&&it.Z.locals&&it.Z.locals;var lt=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)};lt.propTypes={scenario:o().string,currentContentType:o().string,newContentType:o().string};const st=lt;var ct=n(4333),ut={};function dt(e){return dt="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},dt(e)}function pt(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,r.key,r)}}function ft(e,t){return ft=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ft(e,t)}function ht(e,t){if(t&&("object"===dt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mt(e)}function mt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}ut.styleTagTransform=b(),ut.setAttributes=p(),ut.insert=u().bind(null,"head"),ut.domAPI=s(),ut.insertStyleElement=h(),a()(ct.Z,ut),ct.Z&&ct.Z.locals&&ct.Z.locals;var gt=function(t){!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&&ft(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=bt(o);if(i){var n=bt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ht(this,e)});function l(e){var t,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o=function(){return t.props.type},(r="getType")in(n=mt(t=a.call(this,e)))?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t}return n=l,(r=[{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)}}])&&pt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function yt(e){return yt="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},yt(e)}function vt(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,r.key,r)}}function wt(e,t){return wt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wt(e,t)}function xt(e,t){if(t&&("object"===yt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Et(e)}function Et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kt(e){return kt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kt(e)}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var St=function(t){!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&&wt(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=kt(o);if(i){var n=kt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return xt(this,e)});function l(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),Ct(Et(n=a.call(this,t)),"createTreeLayout",(function(){return n.xs=[],n.processed=[],n.createBranch(0,0,1)})),Ct(Et(n),"isAlreadyProcessed",(function(e){return-1!==n.processed.indexOf(e)})),Ct(Et(n),"createBranch",(function(e,t,r){if(void 0===e||e<0||!n.props.content[e])return n.createNode(null,t,r);if(n.isAlreadyProcessed(e))return n.createNode(e,t,r,!0);n.processed.push(e);for(var o=n.props.content[e],i=Me(o),a=n.getChildren(o,i),l=n.createNode(e,t,r),s=0;s<a.length;s++)if(!(void 0===a[s]||a[s]<0)||i){var c=n.createBranch(a[s],t+r,i?2:1);(i||!c||!c.loop)&&c&&(l.children.push(c),c.parent=l.id,c.num=s,n.movePreviousSiblingsLeft(l,s,c.beautyModifier))}return n.determineBeautyModifier(l),l})),Ct(Et(n),"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(Et(n),"createNode",(function(e,t,r,o){var i=0;t+=r;for(var a=0;a<r;a++)void 0===n.xs[t-a]&&(n.xs[t-a]=0),n.xs[t-a]>i&&(i=n.xs[t-a]);for(var l={id:e,x:i,y:t,children:[],beautyModifier:0,parent:null,num:0,loop:!!o,isBranching:null!==e&&Me(n.props.content[e])},s=0;s<r;s++)n.xs[t-s]=i+n.getNodeWidth(l);return l})),Ct(Et(n),"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(Et(n),"determineBeautyModifier",(function(e){if(e.children.length){var t=e.children[0],r=e.children[e.children.length-1],o=r.x+n.getNodeWidth(r)-t.x;o&&(o=o/2-.5),o+=t.x,t.beautyModifier<0&&(o-=t.beautyModifier),e.beautyModifier=e.x-o}})),Ct(Et(n),"renderTree",(function(e){n.xs=[],n.nodes=[];var t=n.createPosition(n.renderBranch(e,0));return t.nodes=n.nodes,t})),Ct(Et(n),"renderBranch",(function(e,t,r){n.applyBeautyModifiers(e,t);for(var o=n.updateIndentation(e,r),i=n.createSize(e),a=0;a<e.children.length;a++){var l=e.beautyModifier>0?e.beautyModifier:0,s=n.renderBranch(e.children[a],l+t+o,e.isBranching);n.updateSize(i,s)}return n.centerParent(e),n.renderNode(e),i})),Ct(Et(n),"applyBeautyModifiers",(function(e,t){e.x+=t,e.beautyModifier<0&&(e.x-=e.beautyModifier)})),Ct(Et(n),"updateIndentation",(function(e,t){var r=0;return void 0!==n.xs[e.y]&&e.x<n.xs[e.y]&&(r=n.xs[e.y]-e.x,e.x=n.xs[e.y]),t&&void 0!==n.xs[e.y-1]&&e.x<n.xs[e.y-1]&&(r+=n.xs[e.y-1]-e.x,e.x=n.xs[e.y-1]),n.xs[e.y]=e.x+n.getNodeWidth(e),t&&(n.xs[e.y-1]=n.xs[e.y]),r})),Ct(Et(n),"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(Et(n),"centerParent",(function(e){if(e.children.length){var t=e.children[0],r=e.children[e.children.length-1],o=r.x+n.getNodeWidth(r)-t.x;o&&(o=o/2-.5),o+=t.x,e.x=o,n.xs[e.y]=e.x+1}})),Ct(Et(n),"renderNode",(function(t){if(null!==t.id&&!t.loop){var r=n.props.content[t.id],o=t.isBranching,i="H5P.BranchingQuestion"===r.params.type.library.split(" ")[0];void 0!==r.params.nextContentId||i||(r.params.nextContentId=-1);var a=n.createPosition(t),l=De.getTooltip(n.props.content[t.id]),s=!t.children.length&&r.params.nextContentId>=0,c=!o&&n.hasCustomFeedback(r),u=n.isPlacing()&&!(o&&n.isPlacingNewBranching()),d=null!==n.props.highlight;null===n.props.onlyThisBall||n.props.highlight!==t.id&&n.props.onlyThisBall!==t.id||(d=!1),-1!==n.props.highlight||-1!==r.params.nextContentId||c||i||(d=!1),n.nodes.push(e.createElement(De,{key:t.id,id:t.id,fade:d,ref:function(e){n["draggable-"+t.id]=e,u&&n.props.dropzones.push(e)},position:a,width:n.props.nodeSize.width,selected:n.props.placing===t.id,onPlacing:function(){return n.props.onPlacing(t.id)},onMove:function(){return n.handleMove(t.id,n["draggable-"+t.id])},onDropped:function(){return n.handleDropped(t.id,n["draggable-"+t.id])},draggableMouseOver:function(e){n.props.draggableMouseOver(e),n.props.onMouseOver(t.id)},draggableMouseOut:function(){n.props.draggableMouseOut(),n.props.onMouseOut()},draggableHovered:n.props.draggableHovered,contentClass:n.getClassName(t.id),onEdit:function(){return n.props.onEdit(t.id)},onHighlight:function(){return n.props.onHighlight(n.tips.newContentTypeId,n.tips.currentContentTypeId)},onPreview:function(){return n.props.onPreview(t.id)},onCopy:function(){return n.props.onCopy(t.id)},onDelete:function(){return n.props.onDelete(t.id)},disabled:n.isPlacing()?!u:o,tooltip:l,scale:n.props.scale,hasCustomEndScreen:c&&-1===r.params.nextContentId,hasLoopBack:s,highlightLinkedContent:function(){r.params.nextContentId>-1&&n.props.onHighlightLoop(r.params.nextContentId,t.id)}},l));var p=a.x+n.props.nodeSize.width/2,f=n.props.nodeSize.spacing.y+n.dzSpecs.height;if(0!==t.id&&n.renderLine("vertical",t.id+"-vabove",f-3,p-1,a.y-f),o){n.renderLine("vertical",t.id+"-vbelow",f,p-1,a.y+n.props.nodeSize.height-1);var h=n.renderAlternativeBalls(t);n.renderLine("horizontal",t.id+"-hbelow",h.lastX-h.firstX+2,h.firstX+13,a.y+n.props.nodeSize.height+f-1)}if(n.isPlacing()&&!n.isPlacing(t.id)){if(!n.isPlacing(t.parent)){var m=t.parent?n.props.content[t.parent]:null,b=m&&Me(m);n.renderDropzone(t.id,p-n.dzSpecs.width/2,a.y-f+n.props.nodeSize.spacing.y/2-2,b?m:void 0,t.num,b)}o||t.children.length||n.renderDropzone(t.id,p-n.dzSpecs.width/2,a.y+n.props.nodeSize.height+n.props.nodeSize.spacing.y/2-2,t.id,t.num+1)}}})),Ct(Et(n),"renderLine",(function(t,r,o,i,a){var l={left:i+"px",top:a+"px"};l["vertical"===t?"height":"width"]=o+"px",n.nodes.push(e.createElement("div",{key:r,className:t+"-line"+(null!==n.props.highlight?" fade":""),style:l}))})),Ct(Et(n),"renderDropzone",(function(t,r,o,i,a,l){var s=void 0===i||l?t:void 0;void 0===a&&(a=0);var c=-9===t;n.nodes.push(e.createElement(gt,{key:(t<0?"f--"+t+"/"+i:t)+"-dz-"+a,ref:function(e){c&&(n.initialDropzone=e),n.props.dropzones.push(e)},nextContentId:s,parent:i,alternative:a,position:{x:r,y:o},elementClass:"dropzone"+(c&&!n.props.inserting?" disabled":""),style:{left:r+"px",top:o+"px"},onMouseOver:function(){return n.props.onDropzoneHighlight(t)},onMouseOut:function(){return n.props.onFocus()},onFocus:function(){return n.props.onDropzoneHighlight(t)},onClick:function(){return n.props.onDropzoneClick(s,i,a)}}))})),Ct(Et(n),"renderAlternativeBalls",(function(t){for(var r=n.props.content[t.id].params.type.params.branchingQuestion.alternatives,o=0,i=0,a=function(a){var l=t.children[a],s=null===l.id,c=t.id+"-abox-"+a,u=r[a].text,d=n.hasCustomFeedback(r[a]),p=null!==n.props.highlight,f="alternative-ball";l.loop?f+=" loop":s&&(d?f+=" endscreenCustom":(f+=" endscreen",-1===n.props.highlight&&(p=!1))),n.props.onlyThisBall===c&&(p=!1),p&&(f+=" fade");var h=n.createPosition(t.children[a],0,-1);i=h.x+(s||l.loop?n.dzSpecs.width:n.props.nodeSize.width)/2-14,o||(o=i);var m=.375*n.props.nodeSize.spacing.y;n.renderLine("vertical",t.id+"-vabovebs-"+a,m,i+13,h.y+1),n.nodes.push(e.createElement("div",{key:c,className:f,"aria-label":v("alternative")+" "+(a+1),onDoubleClick:function(){n.props.onEdit(t.id)},style:{left:i+"px",top:h.y+7+"px"}},"A",a+1,l.loop&&e.createElement("div",{className:"loop-back",onClick:function(){return n.props.onHighlightLoop(l.id,c)}}),e.createElement("div",{className:"dark-tooltip"},e.createElement("div",{className:"dark-text-wrap"},u?De.stripHTML(u):v("alternative")+" "+(a+1))))),(s||l.loop)&&n.isPlacing()&&n.renderDropzone(-1,h.x,h.y+n.props.nodeSize.height+n.props.nodeSize.spacing.y/2-2,t.id,a)},l=0;l<t.children.length;l++)a(l);return{firstX:o,lastX:i}})),Ct(Et(n),"createSize",(function(e){return{x:e.x+n.getNodeWidth(e),y:e.y+1}})),Ct(Et(n),"createPosition",(function(e,t,r){var o=n.props.nodeSize.spacing.y+n.dzSpecs.height;return{x:(e.x+(t||0))*(n.props.nodeSize.width+n.props.nodeSize.spacing.x),y:(e.y+(r||0))*(n.props.nodeSize.height+o)}})),Ct(Et(n),"getNodeWidth",(function(e){return null===e.id||e.loop?.3463414634146341:1})),Ct(Et(n),"getClassName",(function(e){return n.props.getLibrary(n.props.content[e].params.type.library).className})),Ct(Et(n),"handleMove",(function(e,t){var r=n.getIntersections(t),o=1;n.props.dropzones.forEach((function(i){i&&i!==t&&(0===r.length||i!==r[0]?i.dehighlight():(o=0,n.tips.newContentTypeId=e,n.tips.currentContentTypeId=r[0],i.highlight()))})),o&&n.props.onFocus()})),Ct(Et(n),"handleDropped",(function(e,t){var r=n.getIntersections(t);n.props.onDropped(e,r.length>0?r[0]:null)})),Ct(Et(n),"getIntersections",(function(e){var t=e.getPoints();return n.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(Et(n),"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"===n.props.scoringOption)})),Ct(Et(n),"isPlacingNewBranching",(function(){return-1===n.props.placing&&n.props.library&&"Branching Question"===n.props.library.title})),Ct(Et(n),"isPlacing",(function(e){return void 0===e?null!==n.props.placing:n.props.placing===e})),n.dzSpecs={width:42,height:32},n.tips={newContentTypeId:null,currentContentTypeId:null},n}return n=l,(r=[{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)}}])&&vt(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);St.propTypes={};var Tt=n(8633),Pt={};Pt.styleTagTransform=b(),Pt.setAttributes=p(),Pt.insert=u().bind(null,"head"),Pt.domAPI=s(),Pt.insertStyleElement=h(),a()(Tt.Z,Pt),Tt.Z&&Tt.Z.locals&&Tt.Z.locals;const Ot=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))))},Nt=n.p+"1a6e90a744a5b861553d.gif";var _t=n(3133),It={};It.styleTagTransform=b(),It.setAttributes=p(),It.insert=u().bind(null,"head"),It.domAPI=s(),It.insertStyleElement=h(),a()(_t.Z,It),_t.Z&&_t.Z.locals&&_t.Z.locals;const zt=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=Nt),a=v("replaceContent")}return e.createElement(Ot,{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 jt=n(5207),Rt={};Rt.styleTagTransform=b(),Rt.setAttributes=p(),Rt.insert=u().bind(null,"head"),Rt.domAPI=s(),Rt.insertStyleElement=h(),a()(jt.Z,Rt),jt.Z&&jt.Z.locals&&jt.Z.locals;var Dt=n(826),Mt={};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 At(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,r.key,r)}}function Bt(e,t){return Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bt(e,t)}function Lt(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 Ht(e)}function Ht(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zt(e){return Zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zt(e)}function Qt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Mt.styleTagTransform=b(),Mt.setAttributes=p(),Mt.insert=u().bind(null,"head"),Mt.domAPI=s(),Mt.insertStyleElement=h(),a()(Dt.Z,Mt),Dt.Z&&Dt.Z.locals&&Dt.Z.locals;var Ut=function(t){!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&&Bt(e,t)}(s,t);var n,r,o,i,a,l=(i=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Zt(i);if(a){var n=Zt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Lt(this,e)});function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Qt(Ht(t=l.call(this,e)),"handleExistingContentChange",(function(e){t.updateContentSelected(e.target.value)})),Qt(Ht(t),"updateContentSelected",(function(e){t.props.onChangeContent&&t.props.onChangeContent(e)})),Qt(Ht(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 n=t.props.nextContentId>=0?"old-content":t.props.isInserting?"new-content":"end-scenario";return t.state={expanded:!1,selectedMainOption:n},t}return n=s,o=[{key:"getDerivedStateFromProps",value:function(e){return{selectedMainOption:e.nextContentId>=0?"old-content":s.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)}}],(r=[{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.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)})))))))}}])&&At(n.prototype,r),o&&At(n,o),Object.defineProperty(n,"prototype",{writable:!1}),s}(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 $t(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,r.key,r)}}function Vt(e,t){return Vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vt(e,t)}function qt(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 Gt(e)}function Gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xt(e){return Xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xt(e)}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ut.propTypes={nextContentId:o().number,isBranchingQuestion:o().bool,validAlternatives:o().array,onChangeContent:o().func};var Yt=function(n){!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&&Vt(e,t)}(s,n);var r,o,i,a,l=(i=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Xt(i);if(a){var n=Xt(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return qt(this,e)});function s(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Kt(Gt(n=l.call(this,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")})),Kt(Gt(n),"findField",(function(e){return H5PEditor.findField(e,{children:n.props.content.formChildren})})),Kt(Gt(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})),Kt(Gt(n),"handleNextContentIdChange",(function(e){n.props.onNextContentChange(n.props.content.params,parseInt(e))})),Kt(Gt(n),"handleRemove",(function(){n.finalizeForm(),n.props.onRemove()})),Kt(Gt(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")})),Kt(Gt(n),"handleDone",(function(){n.finalizeForm(),n.props.onDone()})),Kt(Gt(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=Me(n.props.content),n.state={isSubFrom:!1},n.validAltCount=n.props.validAlternatives?n.props.validAlternatives.length:0,n}return r=s,o=[{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(Ut,{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(Nn.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(Ut,{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})))}}],o&&$t(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),s}(e.Component);Yt.propTypes={content:o().object,validAlternatives:o().array,onDone:o().func};var Jt=function e(t,n){return n===t||!!n.parentElement&&e(t,n.parentElement)},en=n(2010),tn={};function nn(e){return nn="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},nn(e)}function rn(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,r.key,r)}}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}function an(e,t){if(t&&("object"===nn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ln(e)}function ln(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tn.styleTagTransform=b(),tn.setAttributes=p(),tn.insert=u().bind(null,"head"),tn.domAPI=s(),tn.insertStyleElement=h(),a()(en.Z,tn),en.Z&&en.Z.locals&&en.Z.locals;var un=function(t){!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)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=sn(o);if(i){var n=sn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return an(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),cn(ln(t=a.call(this,e)),"handleDocumentClick",(function(e){t.state.expanded&&!Jt(t.legend,e.target)&&t.setState({expanded:!1})})),cn(ln(t),"handleToggle",(function(){t.setState((function(e){return{expanded:!e.expanded}}))})),t.state={expanded:!1},t}return n=l,(r=[{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"))))))}}])&&rn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);un.propTypes={fade:o().bool,l10n:o().object,onOpenTutorial:o().func};var dn=n(6664),pn={};function fn(e){return fn="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},fn(e)}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,r.key,r)}}function bn(e,t){return bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bn(e,t)}function gn(e,t){if(t&&("object"===fn(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)}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yn(e)}pn.styleTagTransform=b(),pn.setAttributes=p(),pn.insert=u().bind(null,"head"),pn.domAPI=s(),pn.insertStyleElement=h(),a()(dn.Z,pn),dn.Z&&dn.Z.locals&&dn.Z.locals;var vn=function(t){!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&&bn(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=yn(o);if(i){var n=yn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return gn(this,e)});function l(){return hn(this,l),a.apply(this,arguments)}return n=l,(r=[{key:"render",value:function(){return e.createElement("div",{className:"block-interaction-overlay"},this.props.children)}}])&&mn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);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 xn(e){return function(e){if(Array.isArray(e))return En(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 En(e,t);var n=Object.prototype.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)?En(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 En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kn(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,r.key,r)}}function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cn(e,t)}function Sn(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 Tn(e)}function Tn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nn=function(t){!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)}(s,t);var n,r,o,i,a,l=(i=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Pn(i);if(a){var n=Pn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Sn(this,e)});function s(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),On(Tn(n=l.call(this,t)),"handleDocumentKeyDown",(function(e){46===e.which&&null!==n.state.placing&&n.handleContentDelete(n.state.placing)})),On(Tn(n),"handlePlacing",(function(e){null!==n.state.placing&&n.state.placing!==e?n.setState({tips:!1,isPlacingOnBQ:!!(e>-1&&n.state.content[e].params.type.params.branchingQuestion),deleting:e,confirmReplace:!0,dialog:"replace"},n.setIsEditing):n.setState({placing:e})})),On(Tn(n),"handleMouseOver",(function(e){null!==n.state.placing&&n.state.placing!==e&&void 0!==n.state.content[e]&&n.handleContentHighlight(n.state.placing,n.state.content[e])})),On(Tn(n),"handleMouseLeft",(function(){n.handleTreeFocus()})),On(Tn(n),"handleContentHighlight",(function(e,t){var r,o="NEW_CONTENT_ON_EXISTING_CONTENT";if(n.state.placing>-1&&(o="EXISTING_CONTENT_ON_EXISTING_CONTENT"),-1===e){if(void 0===n.props.getNewContent(n.getNewContentParams()).params.type.metadata)return!1;r=n.props.getNewContent(n.getNewContentParams()).params.type.metadata.contentType,n.props.inserting&&n.props.inserting.pasted&&(r=n.props.inserting.pasted.generic.metadata.title,o="PASTED_CONTENT_ON_EXISTING_CONTENT"),n.props.inserting&&"H5P.BranchingQuestion"===n.props.inserting.library.name.split(" ")[0]&&(o="NEW_BQ_ON_EXISTING_CONTENT"),n.props.inserting&&n.props.inserting.pasted&&"H5P.BranchingQuestion"===n.props.inserting.library.name.split(" ")[0]&&(o="PASTED_BQ_ON_EXISTING_CONTENT")}else r=n.state.content[e].params.type.metadata.title;var i=void 0!==t.props?n.state.content[t.props.id]:t;return!(void 0===i.params||n.props.inserting&&"H5P.BranchingQuestion"===n.props.inserting.library.name.split(" ")[0]&&i.params.type.params.branchingQuestion)&&(i.params.type.params.branchingQuestion&&(o="NEW_CONTENT_ON_EXISTING_BQ",n.props.inserting&&n.props.inserting.pasted&&(r=n.props.inserting.pasted.generic.metadata.title,o="PASTED_CONTENT_ON_EXISTING_BQ"),n.state.placing>-1&&(o="EXISTING_CONTENT_ON_EXISTING_BQ")),n.setState({tips:{scenario:o,newContentTypeTitle:r,currentContentTypeTitle:i.params.type.metadata.title}}),n.props.onHighlight)})),On(Tn(n),"handleTreeFocus",(function(){n.setState({tips:null})})),On(Tn(n),"handleDropzoneHighlight",(function(e){if(n.state.insertingId&&n.setState({tips:{scenario:"NEW_CONTENT_ON_DROPZONE",newContentTypeTitle:n.state.library.title}}),n.state.placing>-1&&n.setState({tips:{scenario:"EXISTING_CONTENT_ON_DROPZONE",currentContentTypeTitle:n.state.content[n.state.placing].params.type.metadata.title}}),n.props.inserting&&n.props.inserting.pasted){var t=n.props.inserting.pasted.generic.metadata.title?n.props.inserting.pasted.generic.metadata.title:n.state.library.title;n.setState({tips:{scenario:"PASTED_CONTENT_ON_DROPZONE",newContentTypeTitle:t}})}if(n.props.inserting&&"H5P.BranchingQuestion"===n.props.inserting.library.name.split(" ")[0]&&(null!=e&&-1===e||null!==n.tree.tips.currentContentTypeId&&void 0===n.tree.tips.currentContentTypeId.props.nextContentId?n.setState({tips:{scenario:"NEW_BQ_ON_LT_DROPZONE",newContentTypeTitle:n.state.library.title}}):n.setState({tips:{scenario:"NEW_BQ_ON_DROPZONE",newContentTypeTitle:n.state.library.title}})),n.props.inserting&&n.props.inserting.pasted&&"H5P.BranchingQuestion"===n.props.inserting.library.name.split(" ")[0]){var r=n.props.inserting.pasted.generic.metadata.title?n.props.inserting.pasted.generic.metadata.title:n.state.library.title;n.setState({tips:{scenario:"PASTED_BQ_ON_DROPZONE",newContentTypeTitle:r}})}})),On(Tn(n),"getParent",(function(e,t){return n.tree.processed.slice(0,n.tree.processed.indexOf(e)).filter((function(e){return e>-1})).map((function(e){return t[e]})).filter((function(t){return Me(t)?t.params.type.params.branchingQuestion.alternatives.some((function(t){return t.nextContentId===e})):t.params.nextContentId===e})).slice(-1).pop()})),On(Tn(n),"handleDropped",(function(e,t){if(!t||t instanceof De&&t.props.disabled)return n.setState({placing:null,tips:null}),void n.props.onDropped();t instanceof De&&!n.state.editing?n.handlePlacing(t.props.id):n.placeInTree(e,t.props.nextContentId,t.props.parent,t.props.alternative)})),On(Tn(n),"handleDropzoneClick",(function(e,t,r){null!==n.state.placing&&n.placeInTree(n.state.placing,e,t,r)})),On(Tn(n),"handleContentEdit",(function(e){H5PEditor.$(n.tree["draggable-".concat(e)].element.element).click(),n.setState({editing:e,placing:null},n.setIsEditing)})),On(Tn(n),"handleContentCopy",(function(e){var t=new H5P.ClipboardItem(n.state.content[e].params,"type","H5PEditor.BranchingScenario");H5P.clipboardify(t)})),On(Tn(n),"handleContentDelete",(function(e){n.setState({deleting:e,dialog:"delete"},n.setIsEditing)})),On(Tn(n),"getChildrenTitles",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return n.getChildrenIds(e,!0,!1,r).filter((function(e){return e!==t})).sort((function(e,t){return e-t})).map((function(e){return Ae(n.state.content[e])}))})),On(Tn(n),"getChildrenIds",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=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=n.state.content[e],a=[],l=[],s=Me(i);if(r&&(!s||s&&t)&&a.push(e),s){var c=i.params.type.params.branchingQuestion.alternatives||[];l=c.map((function(e){return e.nextContentId}))}else l=[i.params.nextContentId];return l.filter((function(e){return void 0!==e&&e>-1})).filter((function(t){return n.tree.processed.indexOf(t)>n.tree.processed.indexOf(e)})).forEach((function(e){a=a.concat(n.getChildrenIds(e,t,!0,o))})),a.filter((function(e,t){return a.indexOf(e)===t}))})),On(Tn(n),"getNewContentParams",(function(){if(n.props.inserting&&n.props.inserting.pasted){var e=function(e){for(var t=0;t<n.props.libraries.length;t++)if(!0!==n.props.libraries[t].restricted&&n.props.libraries[t].name===e)return!0;return!1};if("H5PEditor.BranchingScenario"===n.props.inserting.pasted.from&&(!n.props.inserting.pasted.generic||e(n.props.inserting.pasted.generic.library)))return Me({params:n.props.inserting.pasted.specific})||(n.props.inserting.pasted.specific.nextContentId=-1),n.props.inserting.pasted.specific;if(n.props.inserting.pasted.generic&&e(n.props.inserting.pasted.generic.library))return{type:n.props.inserting.pasted.generic,showContentTitle:!1}}return{type:{library:n.state.library.name,params:"branchingquestion"!==n.state.library.className?{}:{branchingQuestion:{alternatives:[{nextContentId:-1},{nextContentId:-1}]}},subContentId:H5P.createUUID()},showContentTitle:!1}})),On(Tn(n),"updateNextContentId",(function(e,t,r,o,i){var a=!1;0===t&&e.nextContentId===r&&(e.nextContentId=0,a=!0),e.nextContentId===t&&(!1===n.hasChangedOldParentLink?(e.nextContentId=r<0?void 0:r,n.hasChangedOldParentLink=!0):0===o&&(e.nextContentId=0,a=!0)),void 0!==o&&e.nextContentId===o&&0!==o&&!1===n.hasChangedNewParentLink&&(e.nextContentId=t,n.hasChangedNewParentLink=!0),!a&&e.nextContentId>-1&&e.nextContentId<i&&e.nextContentId++})),On(Tn(n),"replaceChild",(function(e,t,n){if(e&&void 0!==t)if(Me(e)){var r=e.params.type.params.branchingQuestion.alternatives;n?r.forEach((function(e){e.nextContentId===n&&(e.nextContentId=t)})):s.attachChild(e,t)}else n&&e.params.nextContentId!==n||(e.params.nextContentId=t)})),On(Tn(n),"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)})),On(Tn(n),"hasEndScreen",(function(e){return!(e.params&&Me(e)||-1!==(e=e.params||e).nextContentId&&void 0!==e.nextContentId)})),On(Tn(n),"hasCustomEndScreen",(function(e){return(!e.params||!Me(e))&&(e=e.params||e,n.hasEndScreen(e)&&n.hasFeedback(e))})),On(Tn(n),"spliceInfoNode",(function(e,t){if(!(t>=e.length)){if(0===t&&e.length>1&&-1!==e[0].params.nextContentId){var r=e[0].params.nextContentId;n.swapNodes(e,0,e[t].params.nextContentId),e[r].params.nextContentId=0,t=r}var o=e[t];n.replaceNodeIds(e,t,o.params.nextContentId),n.setNodeOffset(e,t,-1),n.tree.processed=n.tree.processed.map((function(e){return e>t?e-1:e})),e.splice(t,1),n.tree.processed=n.tree.processed.filter((function(e){return e!==t})),H5PEditor.removeChildren(o.formChildren)}})),On(Tn(n),"spliceBranchingQuestion",(function(e,t){for(var r=n.getChildrenIds(t,!0,!0),o=function(){var t=r.pop();n.spliceInfoNode(e,t),r=r.map((function(e){return e>t?e-=1:e}))};r.length>0;)o()})),On(Tn(n),"replaceNodeIds",(function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.forEach((function(e,i){(Me(e)?e.params.type.params.branchingQuestion.alternatives||[]:[e.params]).forEach((function(e){e.nextContentId===t&&(!0!==o.keepLoops&&n.tree.processed.indexOf(r)<=n.tree.processed.indexOf(i)?e.nextContentId=-1:e.nextContentId=r)}))}))})),On(Tn(n),"setNodeOffset",(function(e,t,n){e.forEach((function(e){(Me(e)?e.params.type.params.branchingQuestion.alternatives||[]:[e.params]).forEach((function(e){e.nextContentId>t&&(e.nextContentId=e.nextContentId+n)}))}))})),On(Tn(n),"removeNode",(function(e,t){Me(e[t])?n.spliceBranchingQuestion(e,t):n.spliceInfoNode(e,t)})),On(Tn(n),"handleDelete",(function(){n.setState((function(e){var t={deleting:null,dialog:null,setNextContentId:null,content:xn(e.content)};if(null!==e.setNextContentId){var r=t.content[e.editing],o=Be(r,e.deleting);-1===o?r.params.nextContentId=e.setNextContentId:null!==o&&(-2!==e.setNextContentId&&(r.params.type.params.branchingQuestion.alternatives[o].nextContentId=e.setNextContentId),n.editorOverlay.renderBranchingOptions[o](e.setNextContentId)),n.removeNode(t.content,e.deleting);for(var i=0;i<t.content.length;i++)t.content[i]===r&&(t.editing=i);return t}if(t.inserting=null,t.editing=null,t.placing=null,null!==e.placing&&e.placing!==e.deleting){var a=Me(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]=n.props.getNewContent(n.getNewContentParams()),s.attachChild(t.content[e.deleting],a),t.editing=e.deleting;else{if(t.content[e.placing].params.nextContentId!==e.deleting&&t.content[e.deleting].params.nextContentId!==e.placing){var l=Me(t.content[e.placing])?-1:t.content[e.placing].params.nextContentId,c=0===e.placing?t.content[e.placing].params.nextContentId:void 0;n.replaceChild(n.getParent(e.placing,t.content),l,e.placing),n.replaceChild(t.content[e.placing],t.content[e.deleting].params.nextContentId,t.content[e.placing].params.nextContentId),0===e.deleting?n.replaceChild(t.content[e.deleting],e.placing):n.replaceChild(n.getParent(e.deleting,t.content),e.placing,e.deleting),c&&n.swapNodes(t.content,0,c)}n.removeNode(t.content,e.deleting)}n.tree["draggable-".concat(e.deleting)].dehighlight(),n.props.inserting&&n.props.onDropped()}else null!==e.deleting&&n.removeNode(t.content,null!==e.editing?e.editing:e.deleting);return t}),(function(){n.contentChanged(),n.setIsEditing()}))})),On(Tn(n),"swapNodes",(function(e,t,n){e.forEach((function(e){(Me(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})),On(Tn(n),"handleCancel",(function(){null!==n.state.deleting&&n.tree["draggable-".concat(n.state.deleting)]&&n.tree["draggable-".concat(n.state.deleting)].dehighlight();var e={deleting:null,dialog:null};null!==n.state.setNextContentId?(e.setNextContentId=null,-1===Be(n.state.content[n.state.editing],n.state.deleting)&&n.editorOverlay.forceUpdate()):(e.placing=null,e.editing=null,e.inserting=null),n.setState(e,n.setIsEditing),n.props.inserting&&n.props.onDropped()})),On(Tn(n),"countDefaultEndScenarios",(function(){var e=0;return n.state.content.forEach((function(t){Me(t)?(t.params.type.params.branchingQuestion.alternatives||[]).forEach((function(t){n.hasEndScreen(t)&&!n.hasCustomEndScreen(t)&&e++})):n.hasEndScreen(t)&&!n.hasCustomEndScreen(t)&&e++})),e})),On(Tn(n),"contentChanged",(function(){n.props.onContentChanged(n.state.content.map((function(e){return e.params})),n.countDefaultEndScenarios())})),On(Tn(n),"setIsEditing",(function(){n.props.onIsEditing(null!==n.state.editing||null!==n.state.dialog)})),On(Tn(n),"handleEditorDone",(function(){n.setState({editing:null,inserting:null},(function(){n.contentChanged(),n.setIsEditing()}))})),On(Tn(n),"handleEditorRemove",(function(){n.setState((function(e){return{editing:null,inserting:null,placing:e.editing,deleting:e.editing,dialog:"delete"}}),(function(){n.contentChanged(),n.setIsEditing()}))})),On(Tn(n),"panningLimits",(function(e){var t=n.treewrap.getBoundingClientRect(),r=n.tree.element.getBoundingClientRect(),o=64*n.props.scale,i=r.width+4*o>t.width,a=r.height+o>t.height;i?e.x>o?e.x=o:t.width-e.x-4*o>r.width&&(e.x=t.width-r.width-4*o):e.x<o/2?e.x=o/2:e.x+r.width+o>t.width&&(e.x=t.width-r.width-o),a?e.y>o?e.y=o:t.height-e.y-4*o>r.height&&(e.y=t.height-r.height-4*o):e.y<0?e.y=0:e.y+r.height+o>t.height&&(e.y=t.height-r.height-o)})),On(Tn(n),"handleMoved",(function(e){n.setState({panning:e})})),On(Tn(n),"handleStopped",(function(e){e||(n.props.onHighlight(null),setTimeout((function(){null!==n.state.placing&&null===n.state.deleting&&(n.setState({placing:null,tips:null}),n.props.onDropped())}),0))})),On(Tn(n),"handleNextContentChange",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e.nextContentId>-1){for(var o=0,i=0;i<n.state.content.length;i++){var a=Be(n.state.content[i],e.nextContentId,!0),l=n.tree.processed.indexOf(e.nextContentId)<n.tree.processed.indexOf(i);if(a&&!l&&(o+=Be(n.state.content[i],e.nextContentId,!0)),o>1)break}if(o<2&&n.tree.processed.indexOf(e.nextContentId)>n.tree.processed.indexOf(n.state.editing))return n.setState({setNextContentId:t,deleting:e.nextContentId,dialog:"delete"+(-2===t?" alternative":"")},n.setIsEditing),!0}-2!==t&&(e.nextContentId=t,null!==r?r(t):n.forceUpdate())})),On(Tn(n),"renderConfirmationDialogContent",(function(){if(-2===n.state.setNextContentId||null!==n.state.setNextContentId){var t=n.getChildrenTitles(n.state.deleting,null,n.state.setNextContentId);return t.unshift(Ae(n.state.content[n.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 Me(n.state.content[n.state.deleting])?e.createElement("div",{className:"confirmation-details"},e.createElement("p",null,v("shiftConfirmationBranch"),":"),e.createElement("ul",null,n.getChildrenTitles(n.state.deleting,n.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")))})),n.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:n.props.content,dialog:null,panning:{x:0,y:0},setNextContentId:null,tips:null},n}return n=s,r=[{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,n,r){var o=this;this.setState((function(i,a){var l={placing:null,tips:null,editing:null,inserting:null,content:xn(i.content)};if(-1===e&&(l.content.push(o.props.getNewContent(o.getNewContentParams())),e=l.content.length-1,l.editing=e,0===e))return Me(l.content[0])||(l.content[0].params.nextContentId=-1),a.onDropped(),l;void 0!==n&&(n=l.content[n]);var c=n&&Me(n),u=l.content[e].params.nextContentId;o.tree.processed.indexOf(u)<o.tree.processed.indexOf(e)&&(u=-1);var d=-1;if(0===t&&(l.content.splice(0,0,l.content[e]),null!==l.editing&&(l.editing=0),d=e+1,l.content.splice(d,1),s.attachChild(l.content[0],1)),0===e?(l.content.splice(0,0,l.content[u]),d=u+1,l.content.splice(d,1),s.attachChild(l.content[1],t===u?u+1:t),o.hasChangedOldParentLink=!0):o.hasChangedOldParentLink=!1,o.hasChangedNewParentLink=!1,0!==t&&0!==e){var p=t;if(!Me(l.content[e])){var f=l.content[e].params.nextContentId;void 0===p&&o.tree.processed.indexOf(f)<o.tree.processed.indexOf(e)&&(p=f)}s.attachChild(l.content[e],p)}var h=[];return function n(r){var i=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,c){if(void 0!==r&&-1!==r){var p=null===i,f=p?l.content[r]:null;if(p){if(-1!==h.indexOf(r))return;h.push(r)}var m=p&&Me(f),b=p?null:i.params.type.params.branchingQuestion.alternatives[c];m||0===t&&(0===r&&p||0===a)||o.updateNextContentId(p?f.params:b,e,u,t,d);var g=m?s.getBranchingChildren(f):[p?f.params.nextContentId:b.nextContentId];g&&n(g,m?f:null,m?r:null)}}))}([0]),void 0!==n&&(c?n.params.type.params.branchingQuestion.alternatives[r].nextContentId=0===e?1:e:n.params.nextContentId=0===e?1:e),a.onDropped(),l}),(function(){o.contentChanged(),o.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:Ae(e)})})),e.createElement("div",{className:"wrapper"+(this.props.isTourActive?" tour-fade":"")},null!==this.state.editing&&e.createElement(Yt,On({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(vn,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(st,{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(St,{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(ot,{handleClick:this.props.onDropped,handleTutorialClick:this.props.handleOpenTutorial},e.createElement(gt,{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(un,{fade:null!==this.props.highlight,onTutorialOpen:this.props.handleOpenTutorial})),null!==this.state.dialog&&e.createElement(zt,{action:this.state.dialog,isBQ:this.state.isPlacingOnBQ,onConfirm:this.handleDelete,onCancel:this.handleCancel},this.renderConfirmationDialogContent()))}}],o=[{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),Me(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("")}}],r&&kn(n.prototype,r),o&&kn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),s}(e.Component);Nn.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 _n=n(8329),In={};function zn(e){return zn="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},zn(e)}function jn(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,r.key,r)}}function Rn(e,t){return Rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rn(e,t)}function Dn(e,t){if(t&&("object"===zn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Mn(e)}function Mn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}In.styleTagTransform=b(),In.setAttributes=p(),In.insert=u().bind(null,"head"),In.domAPI=s(),In.insertStyleElement=h(),a()(_n.Z,In),_n.Z&&_n.Z.locals&&_n.Z.locals;var Bn=function(t){!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&&Rn(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Fn(o);if(i){var n=Fn(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Dn(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),An(Mn(t=a.call(this,e)),"handleShowPopup",(function(){t.setState({showInfoPopup:!0})})),An(Mn(t),"handleClosePopup",(function(){t.setState({showInfoPopup:!1})})),An(Mn(t),"handleHighlight",(function(){t.props.onHighlight(-1),t.handleClosePopup()})),An(Mn(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}))})),An(Mn(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(Le(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}})}})),An(Mn(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 n=l,(r=[{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")})))}}])&&jn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);Bn.propTypes={numDefaultEndScenarios:o().number,onHighlight:o().func,scale:o().number,onScaleChanged:o().func,containerRect:o().object,contentRect:o().object,isTourActive:o().bool};var Ln=n(1964),Hn={};function Zn(e){return Zn="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},Zn(e)}function Qn(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,r.key,r)}}function Un(e,t){return Un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Un(e,t)}function Wn(e,t){if(t&&("object"===Zn(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)}function $n(e){return $n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$n(e)}Hn.styleTagTransform=b(),Hn.setAttributes=p(),Hn.insert=u().bind(null,"head"),Hn.domAPI=s(),Hn.insertStyleElement=h(),a()(Ln.Z,Hn),Ln.Z&&Ln.Z.locals&&Ln.Z.locals;var Vn=function(t){!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&&Un(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=$n(o);if(i){var n=$n(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Wn(this,e)});function l(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(n=a.call(this,t)).refStartScreen=e.createRef(),n.refEndScreen=e.createRef(),n.refScoringOption=e.createRef(),n.refBehaviour=e.createRef();var r=n.props.main.params,o=H5PEditor.findSemanticsField("startScreen",n.props.main.field);n.startScreenWrapper=document.createElement("div");var i=H5PEditor.findSemanticsField("endScreens",n.props.main.field);n.endScreenWrapper=document.createElement("div");var s=H5PEditor.findSemanticsField("scoringOption",n.props.main.field),c=H5PEditor.findSemanticsField("scoringOptionGroup",n.props.main.field);n.scoringOptionWrapper=document.createElement("div");var u=H5PEditor.findSemanticsField("behaviour",n.props.main.field);n.behaviourWrapper=document.createElement("div"),H5PEditor.processSemanticsChunk([o],r,H5PEditor.$(n.startScreenWrapper),n.props.main);var d=[].concat(n.props.main.children),p={};return p[i.field.name]=r.endScreens[0],H5PEditor.processSemanticsChunk([i.field],p,H5PEditor.$(n.endScreenWrapper),n.props.main),d=d.concat(n.props.main.children),H5PEditor.processSemanticsChunk([c],r,H5PEditor.$(n.scoringOptionWrapper),n.props.main),d=d.concat(n.props.main.children),H5PEditor.processSemanticsChunk([u],r,H5PEditor.$(n.behaviourWrapper),n.props.main),d=d.concat(n.props.main.children),n.props.main.children=d,n.$scoringField=H5PEditor.$(n.endScreenWrapper).find(".field-name-endScreenScore"),H5PEditor.followField(n.props.main,c.name+"/"+s.name,(function(){n.$scoringField.toggleClass("no-display",void 0!==r.scoringOptionGroup.scoringOption&&"static-end-score"!==r.scoringOptionGroup.scoringOption),n.props.updateScoringOption()})),n.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>")},n}return n=l,(r=[{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"}))))}}])&&Qn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);Vn.propTypes={main:o().object,updateScoringOption:o().func};var qn=n(4345),Gn={};function Xn(e){return Xn="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},Xn(e)}function Kn(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,r.key,r)}}function Yn(e,t){return Yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yn(e,t)}function Jn(e,t){if(t&&("object"===Xn(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)}function er(e){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},er(e)}Gn.styleTagTransform=b(),Gn.setAttributes=p(),Gn.insert=u().bind(null,"head"),Gn.domAPI=s(),Gn.insertStyleElement=h(),a()(qn.Z,Gn),qn.Z&&qn.Z.locals&&qn.Z.locals;var tr=function(t){!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&&Yn(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=er(o);if(i){var n=er(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Jn(this,e)});function l(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(n=a.call(this,t)).commonFields=e.createRef(),n}return n=l,(r=[{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}))}}])&&Kn(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component),nr=n(2148),rr={};function or(e){return or="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},or(e)}function ir(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,r.key,r)}}function ar(e,t){return ar=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ar(e,t)}function lr(e,t){if(t&&("object"===or(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)}function sr(e){return sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sr(e)}rr.styleTagTransform=b(),rr.setAttributes=p(),rr.insert=u().bind(null,"head"),rr.domAPI=s(),rr.insertStyleElement=h(),a()(nr.Z,rr),nr.Z&&nr.Z.locals&&nr.Z.locals;var cr=function(t){!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&&ar(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=sr(o);if(i){var n=sr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return lr(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return n=l,(r=[{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 *"})))}}])&&ir(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component),ur=n(7247),dr={};function pr(e){return pr="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},pr(e)}function fr(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,r.key,r)}}function hr(e,t){return hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hr(e,t)}function mr(e,t){if(t&&("object"===pr(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)}function br(e){return br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},br(e)}dr.styleTagTransform=b(),dr.setAttributes=p(),dr.insert=u().bind(null,"head"),dr.domAPI=s(),dr.insertStyleElement=h(),a()(ur.Z,dr),ur.Z&&ur.Z.locals&&ur.Z.locals;var gr=function(t){!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&&hr(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=br(o);if(i){var n=br(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return mr(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return n=l,(r=[{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}}))))}}])&&fr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component),yr=n(8708),vr={};vr.styleTagTransform=b(),vr.setAttributes=p(),vr.insert=u().bind(null,"head"),vr.domAPI=s(),vr.insertStyleElement=h(),a()(yr.Z,vr),yr.Z&&yr.Z.locals&&yr.Z.locals;const wr=function(t){return e.createElement(Ot,{classes:"full-screen-dialog",headerText:v("fullScreenMode"),body:v("fullScreenRecommendation"),textConfirm:v("editFullScreen"),textCancel:v("editWindow"),handleConfirm:t.handleConfirm,handleCancel:t.handleCancel})};var xr=n(581),Er={};Er.styleTagTransform=b(),Er.setAttributes=p(),Er.insert=u().bind(null,"head"),Er.domAPI=s(),Er.insertStyleElement=h(),a()(xr.Z,Er),xr.Z&&xr.Z.locals&&xr.Z.locals;var kr=n(4818),Cr={};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 Tr(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,r.key,r)}}function Pr(e,t){return Pr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pr(e,t)}function Or(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 Nr(e)}function Nr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _r(e){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_r(e)}function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Cr.styleTagTransform=b(),Cr.setAttributes=p(),Cr.insert=u().bind(null,"head"),Cr.domAPI=s(),Cr.insertStyleElement=h(),a()(kr.Z,Cr),kr.Z&&kr.Z.locals&&kr.Z.locals;var zr=function(t){!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&&Pr(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_r(o);if(i){var n=_r(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Or(this,e)});function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),Ir(Nr(t=a.call(this,e)),"setContentId",(function(e){e!==l.defaultValue?(t.setState({value:e}),t.navigateToContent(e)):t.props.previewInstance.trigger("restarted")})),t.previewSceneSelectId=H5PEditor.getNextFieldId({name:"previewScene"});var n=null!==e.initialContentId?e.initialContentId:l.defaultValue;return n!==l.defaultValue&&t.navigateToContent(n),t.state={value:n},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:l.defaultValue})})),t}return n=l,(r=[{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:l.defaultValue},v("previewFromBeginning")),this.props.params.branchingScenario.content.map((function(t){var n=Ae({params:t});return e.createElement("option",{key:t.contentId,value:t.contentId},n)})))))}}])&&Tr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);Ir(zr,"defaultValue","start"),zr.propTypes={previewInstance:o().object,params:o().object,isDisabled:o().bool,initialContentId:o().number};var jr=n(5991),Rr={};Rr.styleTagTransform=b(),Rr.setAttributes=p(),Rr.insert=u().bind(null,"head"),Rr.domAPI=s(),Rr.insertStyleElement=h(),a()(jr.Z,Rr),jr.Z&&jr.Z.locals&&jr.Z.locals;var Dr=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 Mr=Dr;Dr.propTypes={goToEditor:o().func};const Fr=n.p+"bcd324b5f61dbf14f28b.gif";var Ar=n(2970),Br={};Br.styleTagTransform=b(),Br.setAttributes=p(),Br.insert=u().bind(null,"head"),Br.domAPI=s(),Br.insertStyleElement=h(),a()(Ar.Z,Br),Ar.Z&&Ar.Z.locals&&Ar.Z.locals;const Lr=function(){return e.createElement("div",{className:"loading-wrapper"},e.createElement("img",{className:"loading-graphics",src:Fr,alt:""}),e.createElement("div",{className:"loading-text"},v("previewLoading")))};var Hr=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")}))};Hr.propTypes={hideInfoPopup:o().func};const Zr=Hr;function Qr(e){return Qr="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},Qr(e)}function Ur(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,r.key,r)}}function Wr(e,t){return Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wr(e,t)}function $r(e,t){if(t&&("object"===Qr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vr(e)}function Vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qr(e){return qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qr(e)}var Gr=function(t){!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&&Wr(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=qr(o);if(i){var n=qr(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return $r(this,e)});function l(t){var n,r,o,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i=function(){n.resizeTimeout=null,n.resizeTimeout||(n.resizeTimeout=setTimeout((function(){n.resizeTimeout=null,n.preview&&n.preview.trigger("resize")}),66))},(o="handleWindowResize")in(r=Vr(n=a.call(this,t)))?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n.previewContainer=e.createRef(),n.state={isInitialized:!1},n}return n=l,(r=[{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(Mr,{goToEditor:this.props.goToEditor})):this.state.isInitialized?e.createElement("div",{className:"preview-container"+(this.props.tour?" tour-fade":"")},e.createElement(zr,{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(Zr,{hideInfoPopup:this.props.hideInfoPopup})):e.createElement("div",{className:"preview-container"},e.createElement(Lr,null),e.createElement("div",{className:"preview-wrapper"},e.createElement("div",{ref:this.previewContainer})))}}])&&Ur(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);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,r.key,r)}}function Yr(e,t){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yr(e,t)}function Jr(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)}function eo(e){return eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eo(e)}Gr.propTypes={params:o().object,hasLoadedLibraries:o().bool,isShowingInfoPopup:o().bool,previewId:o().number,goToEditor:o().func,hideInfoPopup:o().func};var to=function(t){!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&&Yr(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=eo(o);if(i){var n=eo(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Jr(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return n=l,(r=[{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")))))}}])&&Kr(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component),no=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)}},ro=function(e,t){void 0!==window.localStorage&&window.localStorage.setItem(e,t);try{H5P.setUserData(0,e,t)}catch(e){}};function oo(e){return oo="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},oo(e)}function io(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,r.key,r)}}function ao(e,t){return ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ao(e,t)}function lo(e,t){if(t&&("object"===oo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return so(e)}function so(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},co(e)}function uo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var po=function(t){!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&&ao(e,t)}(l,t);var n,r,o,i,a=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=co(o);if(i){var n=co(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return lo(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),uo(so(t=a.call(this,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"}})}})),uo(so(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))})),uo(so(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)})),uo(so(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})}))}))})),uo(so(t),"handleMouseDown",(function(e){t.setState((function(t){return{inserting:e,insertingId:t.insertingId+1,highlight:null}}))})),uo(so(t),"handleOpenCanvas",(function(){t.setState({activeIndex:0})})),uo(so(t),"handleOpenTutorial",(function(){t.setState({activeIndex:3})})),uo(so(t),"setActiveIndex",(function(e){t.setState({activeIndex:e})})),uo(so(t),"handleIsEditing",(function(e){t.setState({isEditing:e})})),uo(so(t),"handleHighlight",(function(e,n){t.setState({highlight:e,onlyThisBall:void 0===n?null:n})})),uo(so(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}}))})),uo(so(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?no("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)})):no("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)})))})),uo(so(t),"handleScoringOptionChange",(function(){t.setState({scoringOption:t.props.main.params.scoringOptionGroup.scoringOption})})),uo(so(t),"handleCanvasCentered",(function(){t.setState({center:!1,centerWholeTree:!1})})),uo(so(t),"handleCanvasTranslated",(function(){t.setState({translate:null})})),uo(so(t),"handleInsertingDone",(function(){t.setState((function(e){return{insertingId:e.insertingId+1,inserting:null}}))})),uo(so(t),"handleToggleFullscreen",(function(){t.setState((function(e){return t.props.onToggleFullscreen(!e.fullscreen),{fullscreen:!e.fullscreen}}))})),uo(so(t),"onFullScreenDialogAction",(function(e){e&&t.props.onToggleFullscreen(!0),t.setState({showFullScreenDialog:!1})})),uo(so(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}}})})),uo(so(t),"togglePreview",(function(e){t.setState((function(t){return{isShowingPreview:!t.isShowingPreview,previewId:e>=0?e:null,draggableHovered:null}}))})),uo(so(t),"hidePreviewInfoPopup",(function(){t.setState({isShowingPreviewInfoPopup:!1})})),uo(so(t),"draggableMouseOver",(function(e){t.setState({draggableHovered:e})})),uo(so(t),"draggableMouseOut",(function(){t.setState({draggableHovered:null})})),uo(so(t),"handleCloseTour",(function(){"screen-size"===t.state.tour.state?(t.topbar.firstChild.classList.remove("tour-fade"),ro("h5p-editor-branching-scenario-tour-v1-seen",!0)):"branching-node"===t.state.tour.state?ro("h5p-editor-branching-scenario-branching-content-tour-v1-seen",!0):"content-node"===t.state.tour.state&&ro("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 n=l,(r=[{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&&no("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(vn,null,e.createElement(wr,{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(B,{onMouseUp:this.handleMouseUp,title:"Create content",className:"bs-editor-content-tab has-submenu"},e.createElement(qe,{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(Nn,{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(Bn,{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(B,{title:v("settings"),className:"bs-editor-settings-tab"},e.createElement(Vn,{main:this.props.main,updateScoringOption:this.handleScoringOptionChange})),e.createElement(B,{title:v("translations"),className:"bs-editor-translations-tab"},e.createElement(tr,{parent:this.props.parent})),e.createElement(B,{title:v("getHelp"),className:"bs-editor-tutorial-tab"},e.createElement(cr,{handleOpenCanvas:this.handleOpenCanvas})),e.createElement(B,{title:v("metadata"),className:"bs-editor-metadata-tab"},e.createElement(gr,{metadataForm:this.props.main.parent.metadataForm}))),this.state.isShowingPreview&&e.createElement(Gr,{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(to,{additionalClass:this.state.tour.additionalClass,position:this.state.tour,onClose:this.handleCloseTour,message:this.state.tour.message,markerPosition:this.state.tour.markerPosition}))}}])&&io(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(e.Component);function fo(e){return fo="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},fo(e)}po.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){Me(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&&Me(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"!==fo(e))return t;for(var n in e){var r=e[n];"object"===fo(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(po,{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