@clickview/reports 0.33.0 → 0.34.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{178-3cf564d975-reports.chunk.js → 178-3e31f74932-reports.chunk.js} +1 -1
- package/dist/scripts/184-9d3e8379cf-reports.chunk.js +1 -0
- package/dist/scripts/190-ea814bef70-reports.chunk.js +1 -0
- package/dist/scripts/277-9308757128-reports.chunk.js +1 -0
- package/dist/scripts/337-bd1bc2f3e7-reports.chunk.js +1 -0
- package/dist/scripts/450-054c160bf5-reports.chunk.js +1 -0
- package/dist/scripts/501-a1d1b65b35-reports.chunk.js +2 -0
- package/dist/scripts/648-269faef262-reports.chunk.js +1 -0
- package/dist/scripts/675-57c5ad7dfa-reports.chunk.js +1 -0
- package/dist/scripts/{698-e4fa30a4f5-reports.chunk.js → 698-e576ed89bd-reports.chunk.js} +1 -1
- package/dist/scripts/84-51cadab92f-reports.chunk.js +1 -0
- package/dist/scripts/905-35da9af325-reports.chunk.js +1 -0
- package/dist/scripts/bundle-0538f79e45.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/184-9f68987acf-reports.chunk.js +0 -1
- package/dist/scripts/190-f07f999890-reports.chunk.js +0 -1
- package/dist/scripts/277-d53989385e-reports.chunk.js +0 -1
- package/dist/scripts/337-88c7ad7831-reports.chunk.js +0 -1
- package/dist/scripts/450-f3f98b8f38-reports.chunk.js +0 -1
- package/dist/scripts/501-1b88a6c4bb-reports.chunk.js +0 -2
- package/dist/scripts/648-29a164f93f-reports.chunk.js +0 -1
- package/dist/scripts/675-5d39a7f913-reports.chunk.js +0 -1
- package/dist/scripts/84-d227d6fd04-reports.chunk.js +0 -1
- package/dist/scripts/905-e3a925ac1d-reports.chunk.js +0 -1
- package/dist/scripts/bundle-5a0b484e32.min.js +0 -2
- /package/dist/scripts/{501-1b88a6c4bb-reports.chunk.js.LICENSE.txt → 501-a1d1b65b35-reports.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-5a0b484e32.min.js.LICENSE.txt → bundle-0538f79e45.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[648],{86572:(C,L,n)=>{n.d(L,{y:()=>s});var e=n(32735),t=n(57408),r=n(60522),a=n(84120);function o(C){if(C)return(C=function(C){if(C)return C.replace(/<a.*?>/g,"").replace("</a>","")}(C=function(C){if(C)return C.replace(/<p>/g,"").replace(/<\/p>/g,"<br>")}(C=function(C,L){if(C&&L)return L.forEach((function(L){C=C.replace("<"+L+">","").replace("</"+L+">","")})),C}(C,["b","i","u","ul","li","old"])))).split("<br>")[0]||"Annotation"}function s(C){var L=a.w.getTypeInfo(C.interaction.typeId),n=L.name,s=L.bgClassName,i=L.Svg,l=C.questionNumber?"".concat(C.questionNumber,". "):"",m="interaction-type-icon ".concat(s);return C.smallIcon&&(m+=" sm"),(C.showQuestion||C.showTypeName)&&(m+=C.smallIcon?" me-1":" me-2"),C.iconClassName&&(m+=" ".concat(C.iconClassName)),e.createElement(e.Fragment,null,!!C.showIcon&&e.createElement("span",{className:m},e.createElement(i,null)),e.createElement(t.F,{appLink:C.appLink},!!C.showTypeName&&e.createElement("span",{className:C.typeNameClassName},e.createElement("strong",null,l,n)),!!C.showQuestion&&e.createElement("span",{className:C.questionClassName},C.interaction.typeId===r.Z9.Annotation?e.createElement("span",{dangerouslySetInnerHTML:{__html:o(C.interaction.data.annotation)}}):C.interaction.name)))}s.defaultProps={showIcon:!0,showQuestion:!0}},84120:(C,L,n)=>{n.d(L,{w:()=>c});var e=n(32735),t=n(56050),r=n(23481),a=n(81886),o=n(60522);function s(C){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(C){return typeof C}:function(C){return C&&"function"==typeof Symbol&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},s(C)}function i(C,L,n){return(L=function(C){var L=function(C,L){if("object"!==s(C)||null===C)return C;var n=C[Symbol.toPrimitive];if(void 0!==n){var e=n.call(C,"string");if("object"!==s(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(C)}(C);return"symbol"===s(L)?L:String(L)}(L))in C?Object.defineProperty(C,L,{value:n,enumerable:!0,configurable:!0,writable:!0}):C[L]=n,C}var l=r.T.encloseNamespace("shared.interactionTypes"),m=function(C,L){return r.T.isInitialised()?l(C):L};function g(C){return e.createElement("div",{dangerouslySetInnerHTML:{__html:C}})}var u=i(i(i(i(i(i({},o.Z9.Annotation,(function(){return{name:m("annotationName","Annotation"),bgClassName:"bg-pink",Svg:function(){return g("\n <svg viewBox='0 0 24 24'>\n <g transform='translate(1.000000, 1.000000)'>\n <path d='M15.0505278,14.68561 L15.4700891,14.1696106 C16.3000604,13.1488666 16.7599031,11.8782117 16.7599031,10.5341182 C16.7599031,7.34884269 14.1777271,4.76666667 10.9924516,4.76666667 C7.80717602,4.76666667 5.225,7.34884269 5.225,10.5341182 C5.225,13.7193938 7.80717602,16.3015698 10.9924516,16.3015698 C11.8841204,16.3015698 12.744766,16.0998293 13.5263257,15.7168631 L13.9796508,15.4947327 L15.7162646,16.2389957 L15.0505278,14.68561 Z M17.8106022,18.3333333 L14.0103444,16.7046514 C13.0994588,17.1509876 12.0752185,17.4015698 10.9924516,17.4015698 C7.1996628,17.4015698 4.125,14.326907 4.125,10.5341182 C4.125,6.74132946 7.1996628,3.66666667 10.9924516,3.66666667 C14.7852403,3.66666667 17.8599031,6.74132946 17.8599031,10.5341182 C17.8599031,12.175402 17.2841351,13.682208 16.3235621,14.8635731 L17.8106022,18.3333333 Z'></path>\n </g>\n </svg>\n ")},svgEl:"\n <svg viewBox='0 0 24 24'>\n <g transform='translate(1.000000, 1.000000)'>\n <path d='M15.0505278,14.68561 L15.4700891,14.1696106 C16.3000604,13.1488666 16.7599031,11.8782117 16.7599031,10.5341182 C16.7599031,7.34884269 14.1777271,4.76666667 10.9924516,4.76666667 C7.80717602,4.76666667 5.225,7.34884269 5.225,10.5341182 C5.225,13.7193938 7.80717602,16.3015698 10.9924516,16.3015698 C11.8841204,16.3015698 12.744766,16.0998293 13.5263257,15.7168631 L13.9796508,15.4947327 L15.7162646,16.2389957 L15.0505278,14.68561 Z M17.8106022,18.3333333 L14.0103444,16.7046514 C13.0994588,17.1509876 12.0752185,17.4015698 10.9924516,17.4015698 C7.1996628,17.4015698 4.125,14.326907 4.125,10.5341182 C4.125,6.74132946 7.1996628,3.66666667 10.9924516,3.66666667 C14.7852403,3.66666667 17.8599031,6.74132946 17.8599031,10.5341182 C17.8599031,12.175402 17.2841351,13.682208 16.3235621,14.8635731 L17.8106022,18.3333333 Z'></path>\n </g>\n </svg>\n ",typeName:"annotation"}})),o.Z9.Image,(function(){return{name:m("imageName","Image"),bgClassName:"bg-orange",Svg:function(){return g("\n <svg viewBox='0 0 24 24'>\n <path d='M19,5 C19.5522847,5 20,5.44771525 20,6 L20,18 C20,18.5522847 19.5522847,19 19,19 L5,19 C4.44771525,19 4,18.5522847 4,18 L4,6 C4,5.44771525 4.44771525,5 5,5 L19,5 Z M19,6 L5,6 L5,18 L19,18 L19,6 Z M13.5270821,8.72788029 L17.419465,14.7278803 C17.5697525,14.9595444 17.5037838,15.2691774 17.2721197,15.419465 C17.0404556,15.5697525 16.7308226,15.5037838 16.580535,15.2721197 L13.0911139,9.89327406 L11.4091273,12.2874279 C11.2306031,12.5415408 10.866042,12.5731488 10.6464466,12.3535534 L10.0540971,11.7612039 L7.4,15.3 C7.23431458,15.5209139 6.9209139,15.5656854 6.7,15.4 C6.4790861,15.2343146 6.43431458,14.9209139 6.6,14.7 L9.6,10.7 C9.7825648,10.4565803 10.1383987,10.4312919 10.3535534,10.6464466 L10.9328729,11.2257661 L12.6984898,8.71257207 C12.9021272,8.42271292 13.3342903,8.43069712 13.5270821,8.72788029 Z M8,7.5 C8.82842712,7.5 9.5,8.17157288 9.5,9 C9.5,9.82842712 8.82842712,10.5 8,10.5 C7.17157288,10.5 6.5,9.82842712 6.5,9 C6.5,8.17157288 7.17157288,7.5 8,7.5 Z M8,8.5 C7.72385763,8.5 7.5,8.72385763 7.5,9 C7.5,9.27614237 7.72385763,9.5 8,9.5 C8.27614237,9.5 8.5,9.27614237 8.5,9 C8.5,8.72385763 8.27614237,8.5 8,8.5 Z'></path>\n </svg>\n ")},svgEl:"\n <svg viewBox='0 0 24 24'>\n <path d='M19,5 C19.5522847,5 20,5.44771525 20,6 L20,18 C20,18.5522847 19.5522847,19 19,19 L5,19 C4.44771525,19 4,18.5522847 4,18 L4,6 C4,5.44771525 4.44771525,5 5,5 L19,5 Z M19,6 L5,6 L5,18 L19,18 L19,6 Z M13.5270821,8.72788029 L17.419465,14.7278803 C17.5697525,14.9595444 17.5037838,15.2691774 17.2721197,15.419465 C17.0404556,15.5697525 16.7308226,15.5037838 16.580535,15.2721197 L13.0911139,9.89327406 L11.4091273,12.2874279 C11.2306031,12.5415408 10.866042,12.5731488 10.6464466,12.3535534 L10.0540971,11.7612039 L7.4,15.3 C7.23431458,15.5209139 6.9209139,15.5656854 6.7,15.4 C6.4790861,15.2343146 6.43431458,14.9209139 6.6,14.7 L9.6,10.7 C9.7825648,10.4565803 10.1383987,10.4312919 10.3535534,10.6464466 L10.9328729,11.2257661 L12.6984898,8.71257207 C12.9021272,8.42271292 13.3342903,8.43069712 13.5270821,8.72788029 Z M8,7.5 C8.82842712,7.5 9.5,8.17157288 9.5,9 C9.5,9.82842712 8.82842712,10.5 8,10.5 C7.17157288,10.5 6.5,9.82842712 6.5,9 C6.5,8.17157288 7.17157288,7.5 8,7.5 Z M8,8.5 C7.72385763,8.5 7.5,8.72385763 7.5,9 C7.5,9.27614237 7.72385763,9.5 8,9.5 C8.27614237,9.5 8.5,9.27614237 8.5,9 C8.5,8.72385763 8.27614237,8.5 8,8.5 Z'></path>\n </svg>\n ",typeName:"image"}})),o.Z9.MissingWord,(function(){return{name:m("missingWordName","Fill in the blank"),prompt:m("missingWordPrompt","Fill in the blank by typing the missing word(s)"),bgClassName:"bg-teal",Svg:function(){return g("\n <svg viewBox='0 0 24 24'>\n <g transform='translate(2.000000, 2.000000)'>\n <g transform='translate(3.500000, 2.000000)'>\n <path d='M10.78125,7.53125 C11.0285625,7.53125 11.2715937,7.59621875 11.4840312,7.71909375 C11.7963125,7.89971875 12.1875,7.6735625 12.1875,7.31334375 L12.1875,3.3125 C12.1875,3.053625 11.977625,2.84375 11.71875,2.84375 L8.38675,2.84375 C8.42015625,2.680125 8.4375,2.51184375 8.4375,2.34375 C8.4375,1.05140625 7.38609375,0 6.09375,0 C4.80140625,0 3.75,1.05140625 3.75,2.34375 C3.75,2.51184375 3.76734375,2.680125 3.80075,2.84375 L0.46875,2.84375 C0.209875,2.84375 0,3.053625 0,3.3125 L0,7.31334375 C0,7.674125 0.391625,7.899375 0.70346875,7.71909375 C0.91590625,7.59621875 1.1589375,7.53125 1.40625,7.53125 C2.18165625,7.53125 2.8125,8.16209375 2.8125,8.9375 C2.8125,9.71290625 2.18165625,10.34375 1.40625,10.34375 C1.1589375,10.34375 0.91590625,10.2787812 0.70346875,10.1559062 C0.3911875,9.9753125 0,10.2013437 0,10.5616563 L0,15.53125 C0,15.790125 0.209875,16 0.46875,16 L4.46959375,16 C4.8303125,16 5.05578125,15.608375 4.8753125,15.2965312 C4.7524375,15.0840937 4.6875,14.8410938 4.6875,14.59375 C4.6875,13.8183438 5.31834375,13.1875 6.09375,13.1875 C6.86915625,13.1875 7.5,13.8183438 7.5,14.59375 C7.5,14.8410938 7.4350625,15.0840937 7.31215625,15.2965312 C7.13146875,15.6087812 7.3576875,16 7.717875,16 L11.71875,16 C11.977625,16 12.1875,15.790125 12.1875,15.53125 L12.1875,10.5616563 C12.1875,10.2009375 11.7959375,9.97553125 11.4840312,10.1559063 C11.2715937,10.2787812 11.0285625,10.34375 10.78125,10.34375 C10.0058438,10.34375 9.375,9.71290625 9.375,8.9375 C9.375,8.16209375 10.0058438,7.53125 10.78125,7.53125 Z M10.78125,11.28125 C10.9393125,11.28125 11.096375,11.2652812 11.25,11.234 L11.25,15.0625 L8.39021875,15.0625 C8.42153125,14.9088438 8.4375,14.7518125 8.4375,14.59375 C8.4375,13.3014062 7.38609375,12.25 6.09375,12.25 C4.80140625,12.25 3.75,13.3014062 3.75,14.59375 C3.75,14.7518125 3.76596875,14.9088438 3.79728125,15.0625 L0.9375,15.0625 L0.9375,11.234 C1.091125,11.2652812 1.2481875,11.28125 1.40625,11.28125 C2.69859375,11.28125 3.75,10.2298438 3.75,8.9375 C3.75,7.64515625 2.69859375,6.59375 1.40625,6.59375 C1.2481875,6.59375 1.091125,6.60971875 0.9375,6.641 L0.9375,3.78125 L4.46959375,3.78125 C4.8303125,3.78125 5.05578125,3.389625 4.8753125,3.07778125 C4.75596875,2.87140625 4.6875,2.603875 4.6875,2.34375 C4.6875,1.56834375 5.31834375,0.9375 6.09375,0.9375 C6.86915625,0.9375 7.5,1.56834375 7.5,2.34375 C7.5,2.603875 7.43153125,2.87140625 7.31215625,3.07778125 C7.13146875,3.39003125 7.3576875,3.78125 7.717875,3.78125 L11.25,3.78125 L11.25,6.641 C11.096375,6.60971875 10.9393125,6.59375 10.78125,6.59375 C9.48890625,6.59375 8.4375,7.64515625 8.4375,8.9375 C8.4375,10.2298438 9.48890625,11.28125 10.78125,11.28125 Z'></path>\n </g>\n </g>\n </svg>\n ")},svgEl:"\n <svg viewBox='0 0 24 24'>\n <g transform='translate(2.000000, 2.000000)'>\n <g transform='translate(3.500000, 2.000000)'>\n <path d='M10.78125,7.53125 C11.0285625,7.53125 11.2715937,7.59621875 11.4840312,7.71909375 C11.7963125,7.89971875 12.1875,7.6735625 12.1875,7.31334375 L12.1875,3.3125 C12.1875,3.053625 11.977625,2.84375 11.71875,2.84375 L8.38675,2.84375 C8.42015625,2.680125 8.4375,2.51184375 8.4375,2.34375 C8.4375,1.05140625 7.38609375,0 6.09375,0 C4.80140625,0 3.75,1.05140625 3.75,2.34375 C3.75,2.51184375 3.76734375,2.680125 3.80075,2.84375 L0.46875,2.84375 C0.209875,2.84375 0,3.053625 0,3.3125 L0,7.31334375 C0,7.674125 0.391625,7.899375 0.70346875,7.71909375 C0.91590625,7.59621875 1.1589375,7.53125 1.40625,7.53125 C2.18165625,7.53125 2.8125,8.16209375 2.8125,8.9375 C2.8125,9.71290625 2.18165625,10.34375 1.40625,10.34375 C1.1589375,10.34375 0.91590625,10.2787812 0.70346875,10.1559062 C0.3911875,9.9753125 0,10.2013437 0,10.5616563 L0,15.53125 C0,15.790125 0.209875,16 0.46875,16 L4.46959375,16 C4.8303125,16 5.05578125,15.608375 4.8753125,15.2965312 C4.7524375,15.0840937 4.6875,14.8410938 4.6875,14.59375 C4.6875,13.8183438 5.31834375,13.1875 6.09375,13.1875 C6.86915625,13.1875 7.5,13.8183438 7.5,14.59375 C7.5,14.8410938 7.4350625,15.0840937 7.31215625,15.2965312 C7.13146875,15.6087812 7.3576875,16 7.717875,16 L11.71875,16 C11.977625,16 12.1875,15.790125 12.1875,15.53125 L12.1875,10.5616563 C12.1875,10.2009375 11.7959375,9.97553125 11.4840312,10.1559063 C11.2715937,10.2787812 11.0285625,10.34375 10.78125,10.34375 C10.0058438,10.34375 9.375,9.71290625 9.375,8.9375 C9.375,8.16209375 10.0058438,7.53125 10.78125,7.53125 Z M10.78125,11.28125 C10.9393125,11.28125 11.096375,11.2652812 11.25,11.234 L11.25,15.0625 L8.39021875,15.0625 C8.42153125,14.9088438 8.4375,14.7518125 8.4375,14.59375 C8.4375,13.3014062 7.38609375,12.25 6.09375,12.25 C4.80140625,12.25 3.75,13.3014062 3.75,14.59375 C3.75,14.7518125 3.76596875,14.9088438 3.79728125,15.0625 L0.9375,15.0625 L0.9375,11.234 C1.091125,11.2652812 1.2481875,11.28125 1.40625,11.28125 C2.69859375,11.28125 3.75,10.2298438 3.75,8.9375 C3.75,7.64515625 2.69859375,6.59375 1.40625,6.59375 C1.2481875,6.59375 1.091125,6.60971875 0.9375,6.641 L0.9375,3.78125 L4.46959375,3.78125 C4.8303125,3.78125 5.05578125,3.389625 4.8753125,3.07778125 C4.75596875,2.87140625 4.6875,2.603875 4.6875,2.34375 C4.6875,1.56834375 5.31834375,0.9375 6.09375,0.9375 C6.86915625,0.9375 7.5,1.56834375 7.5,2.34375 C7.5,2.603875 7.43153125,2.87140625 7.31215625,3.07778125 C7.13146875,3.39003125 7.3576875,3.78125 7.717875,3.78125 L11.25,3.78125 L11.25,6.641 C11.096375,6.60971875 10.9393125,6.59375 10.78125,6.59375 C9.48890625,6.59375 8.4375,7.64515625 8.4375,8.9375 C8.4375,10.2298438 9.48890625,11.28125 10.78125,11.28125 Z'></path>\n </g>\n </g>\n </svg>\n ",typeName:"missing-word"}})),o.Z9.MultipleChoice,(function(){return{name:m("multipleChoiceName","Multiple choice"),prompt:m("multipleChoicePrompt","Choose the correct answer(s)"),bgClassName:"bg-blue",Svg:function(){return g("\n <svg viewBox='0 0 24 24'>\n <g transform='translate(1.000000, 1.000000)'>\n <path d='M15.125,3.66666667 C16.8969136,3.66666667 18.3333333,5.10308643 18.3333333,6.875 L18.3333333,15.125 C18.3333333,16.8969136 16.8969136,18.3333333 15.125,18.3333333 L6.875,18.3333333 C5.10308643,18.3333333 3.66666667,16.8969136 3.66666667,15.125 L3.66666667,6.875 C3.66666667,5.10308643 5.10308643,3.66666667 6.875,3.66666667 L15.125,3.66666667 Z M15.125,4.58333333 L6.875,4.58333333 C5.60934745,4.58333333 4.58333333,5.60934745 4.58333333,6.875 L4.58333333,15.125 C4.58333333,16.3906526 5.60934745,17.4166667 6.875,17.4166667 L15.125,17.4166667 C16.3906526,17.4166667 17.4166667,16.3906526 17.4166667,15.125 L17.4166667,6.875 C17.4166667,5.60934745 16.3906526,4.58333333 15.125,4.58333333 Z M7.33333333,13.2916667 C7.83959435,13.2916667 8.25,13.7020723 8.25,14.2083333 C8.25,14.7145944 7.83959435,15.125 7.33333333,15.125 C6.82707231,15.125 6.41666667,14.7145944 6.41666667,14.2083333 C6.41666667,13.7020723 6.82707231,13.2916667 7.33333333,13.2916667 Z M15.0349223,13.75 C15.2880528,13.75 15.4932556,13.9552028 15.4932556,14.2083333 C15.4932556,14.4614638 15.2880528,14.6666667 15.0349223,14.6666667 L9.625,14.6666667 C9.37186949,14.6666667 9.16666667,14.4614638 9.16666667,14.2083333 C9.16666667,13.9552028 9.37186949,13.75 9.625,13.75 L15.0349223,13.75 Z M7.33333333,10.0833333 C7.83959435,10.0833333 8.25,10.493739 8.25,11 C8.25,11.506261 7.83959435,11.9166667 7.33333333,11.9166667 C6.82707231,11.9166667 6.41666667,11.506261 6.41666667,11 C6.41666667,10.493739 6.82707231,10.0833333 7.33333333,10.0833333 Z M15.125,10.5416667 C15.3781305,10.5416667 15.5833333,10.7468695 15.5833333,11 C15.5833333,11.2531305 15.3781305,11.4583333 15.125,11.4583333 L9.625,11.4583333 C9.37186949,11.4583333 9.16666667,11.2531305 9.16666667,11 C9.16666667,10.7468695 9.37186949,10.5416667 9.625,10.5416667 L15.125,10.5416667 Z M7.33333333,6.875 C7.83959435,6.875 8.25,7.28540565 8.25,7.79166667 C8.25,8.29792769 7.83959435,8.70833333 7.33333333,8.70833333 C6.82707231,8.70833333 6.41666667,8.29792769 6.41666667,7.79166667 C6.41666667,7.28540565 6.82707231,6.875 7.33333333,6.875 Z M15.125,7.33333333 C15.3781305,7.33333333 15.5833333,7.53853616 15.5833333,7.79166667 C15.5833333,8.04479718 15.3781305,8.25 15.125,8.25 L9.625,8.25 C9.37186949,8.25 9.16666667,8.04479718 9.16666667,7.79166667 C9.16666667,7.53853616 9.37186949,7.33333333 9.625,7.33333333 L15.125,7.33333333 Z'></path>\n </g>\n </svg>\n ")},svgEl:"\n <svg viewBox='0 0 24 24'>\n <g transform='translate(1.000000, 1.000000)'>\n <path d='M15.125,3.66666667 C16.8969136,3.66666667 18.3333333,5.10308643 18.3333333,6.875 L18.3333333,15.125 C18.3333333,16.8969136 16.8969136,18.3333333 15.125,18.3333333 L6.875,18.3333333 C5.10308643,18.3333333 3.66666667,16.8969136 3.66666667,15.125 L3.66666667,6.875 C3.66666667,5.10308643 5.10308643,3.66666667 6.875,3.66666667 L15.125,3.66666667 Z M15.125,4.58333333 L6.875,4.58333333 C5.60934745,4.58333333 4.58333333,5.60934745 4.58333333,6.875 L4.58333333,15.125 C4.58333333,16.3906526 5.60934745,17.4166667 6.875,17.4166667 L15.125,17.4166667 C16.3906526,17.4166667 17.4166667,16.3906526 17.4166667,15.125 L17.4166667,6.875 C17.4166667,5.60934745 16.3906526,4.58333333 15.125,4.58333333 Z M7.33333333,13.2916667 C7.83959435,13.2916667 8.25,13.7020723 8.25,14.2083333 C8.25,14.7145944 7.83959435,15.125 7.33333333,15.125 C6.82707231,15.125 6.41666667,14.7145944 6.41666667,14.2083333 C6.41666667,13.7020723 6.82707231,13.2916667 7.33333333,13.2916667 Z M15.0349223,13.75 C15.2880528,13.75 15.4932556,13.9552028 15.4932556,14.2083333 C15.4932556,14.4614638 15.2880528,14.6666667 15.0349223,14.6666667 L9.625,14.6666667 C9.37186949,14.6666667 9.16666667,14.4614638 9.16666667,14.2083333 C9.16666667,13.9552028 9.37186949,13.75 9.625,13.75 L15.0349223,13.75 Z M7.33333333,10.0833333 C7.83959435,10.0833333 8.25,10.493739 8.25,11 C8.25,11.506261 7.83959435,11.9166667 7.33333333,11.9166667 C6.82707231,11.9166667 6.41666667,11.506261 6.41666667,11 C6.41666667,10.493739 6.82707231,10.0833333 7.33333333,10.0833333 Z M15.125,10.5416667 C15.3781305,10.5416667 15.5833333,10.7468695 15.5833333,11 C15.5833333,11.2531305 15.3781305,11.4583333 15.125,11.4583333 L9.625,11.4583333 C9.37186949,11.4583333 9.16666667,11.2531305 9.16666667,11 C9.16666667,10.7468695 9.37186949,10.5416667 9.625,10.5416667 L15.125,10.5416667 Z M7.33333333,6.875 C7.83959435,6.875 8.25,7.28540565 8.25,7.79166667 C8.25,8.29792769 7.83959435,8.70833333 7.33333333,8.70833333 C6.82707231,8.70833333 6.41666667,8.29792769 6.41666667,7.79166667 C6.41666667,7.28540565 6.82707231,6.875 7.33333333,6.875 Z M15.125,7.33333333 C15.3781305,7.33333333 15.5833333,7.53853616 15.5833333,7.79166667 C15.5833333,8.04479718 15.3781305,8.25 15.125,8.25 L9.625,8.25 C9.37186949,8.25 9.16666667,8.04479718 9.16666667,7.79166667 C9.16666667,7.53853616 9.37186949,7.33333333 9.625,7.33333333 L15.125,7.33333333 Z'></path>\n </g>\n </svg>\n ",typeName:"multiple-choice"}})),o.Z9.ShortAnswer,(function(){return{name:m("shortAnswerName","Short answer"),prompt:m("shortAnswerPrompt","Type in your answer to the question"),bgClassName:"bg-green",Svg:function(){return g("\n <svg viewBox='0 0 24 24'>\n <g transform='translate(1.000000, 1.000000)'>\n <path d='M16.5547082,3.66666667 C17.0307547,3.66666667 17.4166667,4.10561087 17.4166667,4.65176211 L17.4166667,17.3482379 C17.4166667,17.8922911 17.0325905,18.3333333 16.5547082,18.3333333 L5.44529184,18.3333333 C4.9692453,18.3333333 4.58333333,17.8943891 4.58333333,17.3482379 L4.58333333,4.65176211 C4.58333333,4.10770892 4.96740951,3.66666667 5.44529184,3.66666667 L16.5547082,3.66666667 Z M6.64149485,4.58362946 L5.39188119,4.58333333 L5.39188119,4.58333333 L5.39140886,4.63124366 C5.39133174,4.64701901 5.39125542,4.66659213 5.39117991,4.68981696 L5.39052172,4.99349248 C5.39045096,5.0373129 5.39038099,5.08434682 5.39031181,5.13444817 L5.38951907,5.87355262 C5.38945612,5.94585631 5.38939393,6.02064317 5.38933252,6.09776711 L5.38846857,7.41164942 C5.38841476,7.50849255 5.38836171,7.60694243 5.3883094,7.706853 L5.38744819,9.63144592 C5.38740476,9.7436262 5.38736207,9.85639075 5.3873201,9.96959351 L5.38636125,13.0260679 C5.38633211,13.1353268 5.38630366,13.2437094 5.38627591,13.3510694 L5.38541667,17.4092786 L5.38541667,17.4092786 C5.38541667,17.4094727 5.40139773,17.4096625 5.43215374,17.4098483 L5.66621602,17.410657 C5.70239956,17.4107438 5.74182455,17.4108296 5.78434021,17.4109144 L6.24635879,17.4116506 C6.30606164,17.4117294 6.36840286,17.4118072 6.43323171,17.411884 L7.07978636,17.412549 C7.15818403,17.4126199 7.23861702,17.4126899 7.32093458,17.4127589 L8.38955516,17.4135407 C8.48453695,17.413602 8.58080025,17.4136624 8.67819428,17.4137218 L10.2050643,17.4145426 C10.3099966,17.4145926 10.4153058,17.4146418 10.5208411,17.41469 L12.7186143,17.4155682 C12.8199282,17.4156037 12.9204129,17.4156383 13.0199177,17.4156721 L16.5962838,17.4166643 C16.6041235,17.4166659 16.6081188,17.4166667 16.6081188,17.4166667 L16.6083574,17.404543 L16.6083574,17.404543 L16.6092636,17.1281822 C16.609336,17.0909349 16.6094075,17.0503279 16.6094783,17.0065075 L16.6102897,16.3357629 C16.6103542,16.2685716 16.610418,16.1987511 16.6104809,16.1264474 L16.6111995,15.1489598 C16.6112564,15.059128 16.6113124,14.9673972 16.6113678,14.8739137 L16.6122825,13.0334559 C16.6123288,12.924197 16.6123745,12.8140617 16.6124193,12.703196 L16.6132553,10.3177583 C16.6132901,10.2038252 16.6133242,10.0901843 16.6133575,9.97698153 L16.6143069,6.10515513 C16.6143225,6.02803119 16.6143373,5.95324434 16.6143515,5.88094064 L16.6145833,4.59072136 L16.6145833,4.59072136 L16.6027483,4.59043343 L16.6027483,4.59043343 L16.5107818,4.58987601 C16.4881671,4.58978515 16.4620094,4.5896953 16.4324595,4.58960647 L16.0789915,4.58883422 C16.0304453,4.58875142 15.9789591,4.58866963 15.9246838,4.58858883 L15.1491499,4.58766678 C15.0749737,4.58759388 14.9986113,4.58752196 14.9202136,4.58745101 L14.1637515,4.58683864 C14.0744988,4.5867735 13.983663,4.58670932 13.891395,4.58664609 L12.4188002,4.58576887 C12.3159787,4.5857151 12.2124787,4.58566226 12.108451,4.58561036 L10.2115288,4.58477559 C10.1065966,4.58473469 10.0020412,4.58469469 9.89801354,4.5846556 L6.8573146,4.58368638 C6.78313834,4.58366655 6.71114817,4.58364758 6.64149485,4.58362946 Z M9.80280172,11.9166667 C10.0210177,11.9166667 10.1979167,12.1218695 10.1979167,12.375 C10.1979167,12.6281305 10.0210177,12.8333333 9.80280172,12.8333333 L9.80280172,12.8333333 L7.38469828,12.8333333 C7.16648232,12.8333333 6.98958333,12.6281305 6.98958333,12.375 C6.98958333,12.1218695 7.16648232,11.9166667 7.38469828,11.9166667 L7.38469828,11.9166667 Z M14.5678761,9.16666667 C14.8122845,9.16666667 15.0104167,9.37186949 15.0104167,9.625 C15.0104167,9.87813051 14.8122845,10.0833333 14.5678761,10.0833333 L14.5678761,10.0833333 L7.4321239,10.0833333 C7.18771549,10.0833333 6.98958333,9.87813051 6.98958333,9.625 C6.98958333,9.37186949 7.18771549,9.16666667 7.4321239,9.16666667 L7.4321239,9.16666667 Z M14.5678761,6.41666667 C14.8122845,6.41666667 15.0104167,6.62186949 15.0104167,6.875 C15.0104167,7.12813051 14.8122845,7.33333333 14.5678761,7.33333333 L14.5678761,7.33333333 L7.4321239,7.33333333 C7.18771549,7.33333333 6.98958333,7.12813051 6.98958333,6.875 C6.98958333,6.62186949 7.18771549,6.41666667 7.4321239,6.41666667 L7.4321239,6.41666667 Z'></path>\n </g>\n </svg>\n ")},svgEl:"\n <svg viewBox='0 0 24 24'>\n <g transform='translate(1.000000, 1.000000)'>\n <path d='M16.5547082,3.66666667 C17.0307547,3.66666667 17.4166667,4.10561087 17.4166667,4.65176211 L17.4166667,17.3482379 C17.4166667,17.8922911 17.0325905,18.3333333 16.5547082,18.3333333 L5.44529184,18.3333333 C4.9692453,18.3333333 4.58333333,17.8943891 4.58333333,17.3482379 L4.58333333,4.65176211 C4.58333333,4.10770892 4.96740951,3.66666667 5.44529184,3.66666667 L16.5547082,3.66666667 Z M6.64149485,4.58362946 L5.39188119,4.58333333 L5.39188119,4.58333333 L5.39140886,4.63124366 C5.39133174,4.64701901 5.39125542,4.66659213 5.39117991,4.68981696 L5.39052172,4.99349248 C5.39045096,5.0373129 5.39038099,5.08434682 5.39031181,5.13444817 L5.38951907,5.87355262 C5.38945612,5.94585631 5.38939393,6.02064317 5.38933252,6.09776711 L5.38846857,7.41164942 C5.38841476,7.50849255 5.38836171,7.60694243 5.3883094,7.706853 L5.38744819,9.63144592 C5.38740476,9.7436262 5.38736207,9.85639075 5.3873201,9.96959351 L5.38636125,13.0260679 C5.38633211,13.1353268 5.38630366,13.2437094 5.38627591,13.3510694 L5.38541667,17.4092786 L5.38541667,17.4092786 C5.38541667,17.4094727 5.40139773,17.4096625 5.43215374,17.4098483 L5.66621602,17.410657 C5.70239956,17.4107438 5.74182455,17.4108296 5.78434021,17.4109144 L6.24635879,17.4116506 C6.30606164,17.4117294 6.36840286,17.4118072 6.43323171,17.411884 L7.07978636,17.412549 C7.15818403,17.4126199 7.23861702,17.4126899 7.32093458,17.4127589 L8.38955516,17.4135407 C8.48453695,17.413602 8.58080025,17.4136624 8.67819428,17.4137218 L10.2050643,17.4145426 C10.3099966,17.4145926 10.4153058,17.4146418 10.5208411,17.41469 L12.7186143,17.4155682 C12.8199282,17.4156037 12.9204129,17.4156383 13.0199177,17.4156721 L16.5962838,17.4166643 C16.6041235,17.4166659 16.6081188,17.4166667 16.6081188,17.4166667 L16.6083574,17.404543 L16.6083574,17.404543 L16.6092636,17.1281822 C16.609336,17.0909349 16.6094075,17.0503279 16.6094783,17.0065075 L16.6102897,16.3357629 C16.6103542,16.2685716 16.610418,16.1987511 16.6104809,16.1264474 L16.6111995,15.1489598 C16.6112564,15.059128 16.6113124,14.9673972 16.6113678,14.8739137 L16.6122825,13.0334559 C16.6123288,12.924197 16.6123745,12.8140617 16.6124193,12.703196 L16.6132553,10.3177583 C16.6132901,10.2038252 16.6133242,10.0901843 16.6133575,9.97698153 L16.6143069,6.10515513 C16.6143225,6.02803119 16.6143373,5.95324434 16.6143515,5.88094064 L16.6145833,4.59072136 L16.6145833,4.59072136 L16.6027483,4.59043343 L16.6027483,4.59043343 L16.5107818,4.58987601 C16.4881671,4.58978515 16.4620094,4.5896953 16.4324595,4.58960647 L16.0789915,4.58883422 C16.0304453,4.58875142 15.9789591,4.58866963 15.9246838,4.58858883 L15.1491499,4.58766678 C15.0749737,4.58759388 14.9986113,4.58752196 14.9202136,4.58745101 L14.1637515,4.58683864 C14.0744988,4.5867735 13.983663,4.58670932 13.891395,4.58664609 L12.4188002,4.58576887 C12.3159787,4.5857151 12.2124787,4.58566226 12.108451,4.58561036 L10.2115288,4.58477559 C10.1065966,4.58473469 10.0020412,4.58469469 9.89801354,4.5846556 L6.8573146,4.58368638 C6.78313834,4.58366655 6.71114817,4.58364758 6.64149485,4.58362946 Z M9.80280172,11.9166667 C10.0210177,11.9166667 10.1979167,12.1218695 10.1979167,12.375 C10.1979167,12.6281305 10.0210177,12.8333333 9.80280172,12.8333333 L9.80280172,12.8333333 L7.38469828,12.8333333 C7.16648232,12.8333333 6.98958333,12.6281305 6.98958333,12.375 C6.98958333,12.1218695 7.16648232,11.9166667 7.38469828,11.9166667 L7.38469828,11.9166667 Z M14.5678761,9.16666667 C14.8122845,9.16666667 15.0104167,9.37186949 15.0104167,9.625 C15.0104167,9.87813051 14.8122845,10.0833333 14.5678761,10.0833333 L14.5678761,10.0833333 L7.4321239,10.0833333 C7.18771549,10.0833333 6.98958333,9.87813051 6.98958333,9.625 C6.98958333,9.37186949 7.18771549,9.16666667 7.4321239,9.16666667 L7.4321239,9.16666667 Z M14.5678761,6.41666667 C14.8122845,6.41666667 15.0104167,6.62186949 15.0104167,6.875 C15.0104167,7.12813051 14.8122845,7.33333333 14.5678761,7.33333333 L14.5678761,7.33333333 L7.4321239,7.33333333 C7.18771549,7.33333333 6.98958333,7.12813051 6.98958333,6.875 C6.98958333,6.62186949 7.18771549,6.41666667 7.4321239,6.41666667 L7.4321239,6.41666667 Z'></path>\n </g>\n </svg>\n ",typeName:"short-answer"}})),o.Z9.TrueOrFalse,(function(){return{name:m("trueOrFalseName","True or false"),prompt:m("trueOrFalsePrompt","Choose the correct answer"),bgClassName:"bg-purple",Svg:function(){return g("\n <svg viewBox='0 0 24 24'>\n <g transform='translate(1.000000, 1.000000)'>\n <g transform='translate(5.000000, 3.000000)'>\n <path d='M5.129,4.52970994e-14 C5.80434375,4.52970994e-14 6.35378125,0.5494375 6.35378125,1.22478125 L6.35378125,1.22478125 L6.35378125,4.12053125 C6.35378125,4.795875 5.80434375,5.3453125 5.129,5.3453125 L5.129,5.3453125 L5.01765625,5.3453125 L5.01765625,5.7625625 C5.14371875,5.7230625 5.2778125,5.70175 5.4166875,5.70175 C5.8579375,5.70175 6.24996875,5.9166875 6.4935,6.24740625 C6.6880625,6.13675 6.9129375,6.0735 7.15228125,6.0735 C7.61575,6.0735 8.024875,6.31059375 8.26471875,6.6699375 C8.450875,6.57140625 8.6629375,6.51559375 8.88784375,6.51559375 C9.6248125,6.51559375 10.2244688,7.11515625 10.2244688,7.85209375 L10.2244688,7.85209375 L10.2239688,11.0194063 C10.22375,12.719125 9.73003125,14.3683438 8.79625,15.7887188 C8.7095625,15.9205625 8.562375,15.9999688 8.4045625,15.9999688 L8.4045625,15.9999688 L3.1323125,15.9999688 C3.0124375,15.9999688 2.897125,15.9540625 2.8100625,15.8716563 C2.80745313,15.8691864 2.80274841,15.8647056 2.79608533,15.8582606 L2.73370254,15.7963915 C2.38498908,15.4434944 0.983540179,13.9211451 0.6698125,11.95725 L0.6698125,11.95725 L0.0538125,9.3209375 C-0.03209375,8.95328125 0.043625,8.5848125 0.261625,8.3100625 C0.46915625,8.04846875 0.78865625,7.89309375 1.14465625,7.8788125 C1.47575,7.8150625 1.81340625,7.8773125 2.10134375,8.0561875 C2.19071875,8.1116875 2.272125,8.17646875 2.34459375,8.24915625 L2.34459375,8.24915625 L2.34459375,5.34534375 L2.23325,5.34534375 C1.55790625,5.34534375 1.00846875,4.79590625 1.00846875,4.1205625 L1.00846875,4.1205625 L1.00846875,1.22478125 C1.00846875,0.5494375 1.55790625,4.52970994e-14 2.23325,4.52970994e-14 L2.23325,4.52970994e-14 Z M3.6810625,3.4381875 C3.46103125,3.4381875 3.282,3.61721875 3.282,3.83725 L3.282,3.83725 L3.282,11.2870938 C3.282,11.4215625 3.22428125,11.5495625 3.12346875,11.6385313 C3.02265625,11.7275 2.88853125,11.7689063 2.7550625,11.7522188 L2.7550625,11.7522188 L2.7175,11.7475313 C2.5228125,11.7231875 2.36390625,11.580125 2.31925,11.3890625 L2.31925,11.3890625 L1.78459375,9.10071875 C1.76034375,8.9969375 1.69715625,8.9088125 1.60659375,8.8525625 C1.51603125,8.7963125 1.407,8.78928125 1.30065625,8.79571875 C1.2585,8.79828125 1.23959375,8.8036875 1.194,8.80803125 C1.10340625,8.81665625 1.035625,8.84275 0.996,8.89271875 C0.956375,8.9426875 0.94596875,9.019 0.96665625,9.107625 L0.96665625,9.107625 L1.58653125,11.7605625 C1.5891875,11.7719063 1.59140625,11.7833438 1.59321875,11.794875 C1.83815625,13.3630313 2.95146875,14.6606563 3.32925,15.0625 L3.32925,15.0625 L8.1469375,15.0625 C8.893,13.8445 9.28625,12.4519688 9.2864375,11.0193125 L9.2864375,11.0193125 L9.2869375,7.85203125 C9.2869375,7.63209375 9.10790625,7.4530625 8.887875,7.4530625 C8.66784375,7.4530625 8.4888125,7.63209375 8.4888125,7.852125 L8.4888125,7.852125 L8.4888125,8.61359375 C8.4888125,8.87246875 8.2789375,9.08234375 8.0200625,9.08234375 C7.7611875,9.08234375 7.5513125,8.87246875 7.5513125,8.61359375 L7.5513125,8.61359375 L7.5513125,7.4100625 C7.5513125,7.19003125 7.3723125,7.011 7.15228125,7.011 C6.93225,7.011 6.75321875,7.19003125 6.75321875,7.4100625 L6.75321875,7.4100625 L6.75321875,8.28625 C6.75321875,8.545125 6.54334375,8.755 6.28446875,8.755 C6.02559375,8.755 5.81571875,8.545125 5.81571875,8.28625 L5.81571875,8.28625 L5.81571875,7.0383125 C5.81571875,6.81828125 5.6366875,6.63928125 5.41665625,6.63928125 C5.196625,6.63928125 5.017625,6.81828125 5.017625,7.0383125 L5.017625,7.0383125 L5.017625,8.232875 C5.017625,8.49175 4.80775,8.701625 4.548875,8.701625 C4.29,8.701625 4.080125,8.49175 4.080125,8.232875 L4.080125,8.232875 L4.080125,3.83725 C4.080125,3.61721875 3.90109375,3.4381875 3.6810625,3.4381875 Z M11.131,-1.59872116e-14 C11.8064063,-1.59872116e-14 12.3558125,0.5494375 12.3558125,1.22478125 L12.3558125,1.22478125 L12.3558125,4.1205625 C12.3558125,4.79590625 11.806375,5.34534375 11.131,5.34534375 L11.131,5.34534375 L8.23525,5.34534375 C7.55990625,5.34534375 7.01046875,4.79590625 7.01046875,4.1205625 L7.01046875,4.1205625 L7.01046875,1.22478125 C7.01046875,0.5494375 7.55990625,-1.59872116e-14 8.23525,-1.59872116e-14 L8.23525,-1.59872116e-14 Z M11.1310313,0.9375 L8.23528125,0.9375 C8.076875,0.9375 7.948,1.066375 7.948,1.22478125 L7.948,1.22478125 L7.948,4.1205625 C7.948,4.27896875 8.076875,4.40784375 8.23528125,4.40784375 L8.23528125,4.40784375 L11.1310313,4.40784375 C11.2894375,4.40784375 11.4183438,4.27896875 11.4183438,4.1205625 L11.4183438,4.1205625 L11.4183438,1.22478125 C11.4183438,1.066375 11.2894375,0.9375 11.1310313,0.9375 L11.1310313,0.9375 Z M5.129,0.9375 L2.23325,0.9375 C2.07484375,0.9375 1.94596875,1.066375 1.94596875,1.22478125 L1.94596875,1.22478125 L1.94596875,4.1205625 C1.94596875,4.27896875 2.07484375,4.40784375 2.2331875,4.40784375 L2.2331875,4.40784375 L2.34453125,4.40784375 L2.34453125,3.83721875 C2.34453125,3.10025 2.944125,2.50065625 3.68109375,2.50065625 C4.4180625,2.50065625 5.01765625,3.10025 5.01765625,3.83721875 L5.01765625,3.83721875 L5.01765625,4.40784375 L5.129,4.40784375 C5.28740625,4.40784375 5.41628125,4.27896875 5.41628125,4.1205625 L5.41628125,4.1205625 L5.41628125,1.22478125 C5.41628125,1.066375 5.28740625,0.9375 5.129,0.9375 L5.129,0.9375 Z'></path>\n </g>\n </g>\n </svg>\n ")},svgEl:"\n <svg viewBox='0 0 24 24'>\n <g transform='translate(1.000000, 1.000000)'>\n <g transform='translate(5.000000, 3.000000)'>\n <path d='M5.129,4.52970994e-14 C5.80434375,4.52970994e-14 6.35378125,0.5494375 6.35378125,1.22478125 L6.35378125,1.22478125 L6.35378125,4.12053125 C6.35378125,4.795875 5.80434375,5.3453125 5.129,5.3453125 L5.129,5.3453125 L5.01765625,5.3453125 L5.01765625,5.7625625 C5.14371875,5.7230625 5.2778125,5.70175 5.4166875,5.70175 C5.8579375,5.70175 6.24996875,5.9166875 6.4935,6.24740625 C6.6880625,6.13675 6.9129375,6.0735 7.15228125,6.0735 C7.61575,6.0735 8.024875,6.31059375 8.26471875,6.6699375 C8.450875,6.57140625 8.6629375,6.51559375 8.88784375,6.51559375 C9.6248125,6.51559375 10.2244688,7.11515625 10.2244688,7.85209375 L10.2244688,7.85209375 L10.2239688,11.0194063 C10.22375,12.719125 9.73003125,14.3683438 8.79625,15.7887188 C8.7095625,15.9205625 8.562375,15.9999688 8.4045625,15.9999688 L8.4045625,15.9999688 L3.1323125,15.9999688 C3.0124375,15.9999688 2.897125,15.9540625 2.8100625,15.8716563 C2.80745313,15.8691864 2.80274841,15.8647056 2.79608533,15.8582606 L2.73370254,15.7963915 C2.38498908,15.4434944 0.983540179,13.9211451 0.6698125,11.95725 L0.6698125,11.95725 L0.0538125,9.3209375 C-0.03209375,8.95328125 0.043625,8.5848125 0.261625,8.3100625 C0.46915625,8.04846875 0.78865625,7.89309375 1.14465625,7.8788125 C1.47575,7.8150625 1.81340625,7.8773125 2.10134375,8.0561875 C2.19071875,8.1116875 2.272125,8.17646875 2.34459375,8.24915625 L2.34459375,8.24915625 L2.34459375,5.34534375 L2.23325,5.34534375 C1.55790625,5.34534375 1.00846875,4.79590625 1.00846875,4.1205625 L1.00846875,4.1205625 L1.00846875,1.22478125 C1.00846875,0.5494375 1.55790625,4.52970994e-14 2.23325,4.52970994e-14 L2.23325,4.52970994e-14 Z M3.6810625,3.4381875 C3.46103125,3.4381875 3.282,3.61721875 3.282,3.83725 L3.282,3.83725 L3.282,11.2870938 C3.282,11.4215625 3.22428125,11.5495625 3.12346875,11.6385313 C3.02265625,11.7275 2.88853125,11.7689063 2.7550625,11.7522188 L2.7550625,11.7522188 L2.7175,11.7475313 C2.5228125,11.7231875 2.36390625,11.580125 2.31925,11.3890625 L2.31925,11.3890625 L1.78459375,9.10071875 C1.76034375,8.9969375 1.69715625,8.9088125 1.60659375,8.8525625 C1.51603125,8.7963125 1.407,8.78928125 1.30065625,8.79571875 C1.2585,8.79828125 1.23959375,8.8036875 1.194,8.80803125 C1.10340625,8.81665625 1.035625,8.84275 0.996,8.89271875 C0.956375,8.9426875 0.94596875,9.019 0.96665625,9.107625 L0.96665625,9.107625 L1.58653125,11.7605625 C1.5891875,11.7719063 1.59140625,11.7833438 1.59321875,11.794875 C1.83815625,13.3630313 2.95146875,14.6606563 3.32925,15.0625 L3.32925,15.0625 L8.1469375,15.0625 C8.893,13.8445 9.28625,12.4519688 9.2864375,11.0193125 L9.2864375,11.0193125 L9.2869375,7.85203125 C9.2869375,7.63209375 9.10790625,7.4530625 8.887875,7.4530625 C8.66784375,7.4530625 8.4888125,7.63209375 8.4888125,7.852125 L8.4888125,7.852125 L8.4888125,8.61359375 C8.4888125,8.87246875 8.2789375,9.08234375 8.0200625,9.08234375 C7.7611875,9.08234375 7.5513125,8.87246875 7.5513125,8.61359375 L7.5513125,8.61359375 L7.5513125,7.4100625 C7.5513125,7.19003125 7.3723125,7.011 7.15228125,7.011 C6.93225,7.011 6.75321875,7.19003125 6.75321875,7.4100625 L6.75321875,7.4100625 L6.75321875,8.28625 C6.75321875,8.545125 6.54334375,8.755 6.28446875,8.755 C6.02559375,8.755 5.81571875,8.545125 5.81571875,8.28625 L5.81571875,8.28625 L5.81571875,7.0383125 C5.81571875,6.81828125 5.6366875,6.63928125 5.41665625,6.63928125 C5.196625,6.63928125 5.017625,6.81828125 5.017625,7.0383125 L5.017625,7.0383125 L5.017625,8.232875 C5.017625,8.49175 4.80775,8.701625 4.548875,8.701625 C4.29,8.701625 4.080125,8.49175 4.080125,8.232875 L4.080125,8.232875 L4.080125,3.83725 C4.080125,3.61721875 3.90109375,3.4381875 3.6810625,3.4381875 Z M11.131,-1.59872116e-14 C11.8064063,-1.59872116e-14 12.3558125,0.5494375 12.3558125,1.22478125 L12.3558125,1.22478125 L12.3558125,4.1205625 C12.3558125,4.79590625 11.806375,5.34534375 11.131,5.34534375 L11.131,5.34534375 L8.23525,5.34534375 C7.55990625,5.34534375 7.01046875,4.79590625 7.01046875,4.1205625 L7.01046875,4.1205625 L7.01046875,1.22478125 C7.01046875,0.5494375 7.55990625,-1.59872116e-14 8.23525,-1.59872116e-14 L8.23525,-1.59872116e-14 Z M11.1310313,0.9375 L8.23528125,0.9375 C8.076875,0.9375 7.948,1.066375 7.948,1.22478125 L7.948,1.22478125 L7.948,4.1205625 C7.948,4.27896875 8.076875,4.40784375 8.23528125,4.40784375 L8.23528125,4.40784375 L11.1310313,4.40784375 C11.2894375,4.40784375 11.4183438,4.27896875 11.4183438,4.1205625 L11.4183438,4.1205625 L11.4183438,1.22478125 C11.4183438,1.066375 11.2894375,0.9375 11.1310313,0.9375 L11.1310313,0.9375 Z M5.129,0.9375 L2.23325,0.9375 C2.07484375,0.9375 1.94596875,1.066375 1.94596875,1.22478125 L1.94596875,1.22478125 L1.94596875,4.1205625 C1.94596875,4.27896875 2.07484375,4.40784375 2.2331875,4.40784375 L2.2331875,4.40784375 L2.34453125,4.40784375 L2.34453125,3.83721875 C2.34453125,3.10025 2.944125,2.50065625 3.68109375,2.50065625 C4.4180625,2.50065625 5.01765625,3.10025 5.01765625,3.83721875 L5.01765625,3.83721875 L5.01765625,4.40784375 L5.129,4.40784375 C5.28740625,4.40784375 5.41628125,4.27896875 5.41628125,4.1205625 L5.41628125,4.1205625 L5.41628125,1.22478125 C5.41628125,1.066375 5.28740625,0.9375 5.129,0.9375 L5.129,0.9375 Z'></path>\n </g>\n </g>\n </svg>\n ",typeName:"true-or-false"}})),c={getTypeInfo:function(C){var L=u[C];if(L)return L();a.Q.Ry.throw(new t.H("No type info defined for typeId: ".concat(C)))}}},36630:(C,L,n)=>{n.d(L,{M:()=>a});var e=n(61990),t=n(52622),r={notFound:e.l};function a(C){(0,t.v)(C,r)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[675],{20455:(e,t,n)=>{"use strict";n.d(t,{LB:()=>Xe,y9:()=>ut,g4:()=>te,Lg:()=>ae,we:()=>de,pE:()=>E,ey:()=>I,VK:()=>M,_8:()=>C,hI:()=>N,Cj:()=>Ke,O1:()=>Ye,Zj:()=>Ze,VT:()=>v,Dy:()=>h});var r=n(32735),o=n(12788),i=n(17592);const a={display:"none"};function l(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function s(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const u=(0,r.createContext)(null),c={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function f(e){let{announcements:t=d,container:n,hiddenTextDescribedById:a,screenReaderInstructions:f=c}=e;const{announce:g,announcement:p}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),v=(0,i.Ld)("DndLiveRegion"),[h,m]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{m(!0)}),[]),function(e){const t=(0,r.useContext)(u);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;g(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&g(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;g(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;g(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;g(t.onDragCancel({active:n,over:r}))}})),[g,t])),!h)return null;const y=r.createElement(r.Fragment,null,r.createElement(l,{id:a,value:f.draggable}),r.createElement(s,{id:v,announcement:p}));return n?(0,o.createPortal)(y,n):y}var g;function p(){}function v(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(g||(g={}));const m=Object.freeze({x:0,y:0});function y(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function b(e,t){const n=(0,i.DC)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function w(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function R(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function x(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function C(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function S(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const E=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=S(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=y(S(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(w)},I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=x(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=x(r),a=o.reduce(((e,t,r)=>e+y(n[r],t)),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(w)};function P(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const B=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=P(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(R)};function D(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:m}function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const A=k(1);function O(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const F={ignoreTransform:!1};function M(e,t){void 0===t&&(t=F);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:t}=(0,i.Jj)(e),{transform:r,transformOrigin:o}=t(e);r&&(n=function(e,t,n){const r=O(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),u=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(n,r,o))}const{top:r,left:o,width:a,height:l,bottom:s,right:u}=n;return{top:r,left:o,width:a,height:l,bottom:s,right:u}}function T(e){return M(e,{ignoreTransform:!0})}function N(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.Re)(o)||(0,i.vZ)(o))return n;if(n.includes(o))return n;const{getComputedStyle:a}=(0,i.Jj)(o),l=a(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,l)&&n.push(o),function(e,t){return void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(o,l)?n:r(o.parentNode)}(e):n}function G(e){const[t]=N(e,1);return null!=t?t:null}function L(e){return i.Nq&&e?(0,i.FJ)(e)?e:(0,i.UG)(e)?(0,i.qk)(e)||e===(0,i.r3)(e).scrollingElement?window:(0,i.Re)(e)?e:null:null:null}function z(e){return(0,i.FJ)(e)?e.scrollX:e.scrollLeft}function H(e){return(0,i.FJ)(e)?e.scrollY:e.scrollTop}function j(e){return{x:z(e),y:H(e)}}var W;function V(e){return!(!i.Nq||!e)&&e===document.scrollingElement}function X(e){const t={x:0,y:0},n=V(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(W||(W={}));const _={x:.2,y:.2};function q(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=_);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=X(e),g={x:0,y:0},p={x:0,y:0},v=t.height*o.y,h=t.width*o.x;return!u&&i<=t.top+v?(g.y=W.Backward,p.y=r*Math.abs((t.top+v-i)/v)):!c&&s>=t.bottom-v&&(g.y=W.Forward,p.y=r*Math.abs((t.bottom-v-s)/v)),!f&&l>=t.right-h?(g.x=W.Forward,p.x=r*Math.abs((t.right-h-l)/h)):!d&&a<=t.left+h&&(g.x=W.Backward,p.x=r*Math.abs((t.left+h-a)/h)),{direction:g,speed:p}}function U(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Y(e){return e.reduce(((e,t)=>(0,i.IH)(e,j(t))),m)}function K(e,t){if(void 0===t&&(t=M),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);G(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const J=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+z(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+H(t)),0)}]];class ${constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=N(t),r=Y(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of J)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Z{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Q(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var ee,te;function ne(e){e.preventDefault()}function re(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(ee||(ee={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(te||(te={}));const oe={start:[te.Space,te.Enter],cancel:[te.Esc],end:[te.Space,te.Enter]},ie=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case te.Right:return{...n,x:n.x+25};case te.Left:return{...n,x:n.x-25};case te.Down:return{...n,y:n.y+25};case te.Up:return{...n,y:n.y-25}}};class ae{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Z((0,i.r3)(t)),this.windowListeners=new Z((0,i.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ee.Resize,this.handleCancel),this.windowListeners.add(ee.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ee.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&K(n),t(m)}handleKeyDown(e){if((0,i.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=oe,coordinateGetter:a=ie,scrollBehavior:l="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:m;this.referenceCoordinates||(this.referenceCoordinates=c);const d=a(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=(0,i.$X)(d,c),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:u,maxScroll:c,minScroll:f}=X(n),g=U(n),p={x:Math.min(o===te.Right?g.right-g.width/2:g.right,Math.max(o===te.Right?g.left:g.left+g.width/2,d.x)),y:Math.min(o===te.Down?g.bottom-g.height/2:g.bottom,Math.max(o===te.Down?g.top:g.top+g.height/2,d.y))},v=o===te.Right&&!a||o===te.Left&&!s,h=o===te.Down&&!u||o===te.Up&&!i;if(v&&p.x!==d.x){const e=n.scrollLeft+t.x,i=o===te.Right&&e<=c.x||o===te.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=i?n.scrollLeft-e:o===te.Right?n.scrollLeft-c.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(h&&p.y!==d.y){const e=n.scrollTop+t.y,i=o===te.Down&&e<=c.y||o===te.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===te.Down?n.scrollTop-c.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,i.IH)((0,i.$X)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function le(e){return Boolean(e&&"distance"in e)}function se(e){return Boolean(e&&"delay"in e)}ae.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=oe,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class ue{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.Jj)(e);return e instanceof t?e:(0,i.r3)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=(0,i.r3)(a),this.documentListeners=new Z(this.document),this.listeners=new Z(n),this.windowListeners=new Z((0,i.Jj)(a)),this.initialCoordinates=null!=(r=(0,i.DC)(o))?r:m,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ee.Resize,this.handleCancel),this.windowListeners.add(ee.DragStart,ne),this.windowListeners.add(ee.VisibilityChange,this.handleCancel),this.windowListeners.add(ee.ContextMenu,ne),this.documentListeners.add(ee.Keydown,this.handleKeydown),t){if(le(t))return;if(se(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ee.Click,re,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ee.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:l}}=o;if(!r)return;const s=null!=(t=(0,i.DC)(e))?t:m,u=(0,i.$X)(r,s);if(!n&&l){if(se(l))return Q(u,l.tolerance)?this.handleCancel():void 0;if(le(l))return null!=l.tolerance&&Q(u,l.tolerance)?this.handleCancel():Q(u,l.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===te.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ce={move:{name:"pointermove"},end:{name:"pointerup"}};class de extends ue{constructor(e){const{event:t}=e,n=(0,i.r3)(t.target);super(e,ce,n)}}de.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const fe={move:{name:"mousemove"},end:{name:"mouseup"}};var ge;!function(e){e[e.RightClick=2]="RightClick"}(ge||(ge={})),class extends ue{constructor(e){super(e,fe,(0,i.r3)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ge.RightClick&&(null==r||r({event:n}),!0)}}];const pe={move:{name:"touchmove"},end:{name:"touchend"}};var ve,he;(class extends ue{constructor(e){super(e,pe)}static setup(){return window.addEventListener(pe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(pe.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ve||(ve={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(he||(he={}));const me={x:{[W.Backward]:!1,[W.Forward]:!1},y:{[W.Backward]:!1,[W.Forward]:!1}};var ye,be;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ye||(ye={})),function(e){e.Optimized="optimized"}(be||(be={}));const we=new Map;function Re(e,t){return(0,i.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function xe(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function Ce(e){return new $(M(e),e)}function Se(e,t,n){void 0===t&&(t=Ce);const[o,a]=(0,r.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),l=function(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=xe({callback:a});return(0,i.LI)((()=>{a(),e?(null==s||s.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==l||l.disconnect())}),[e]),o}const Ee=[];function Ie(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==m;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,i.$X)(e,n.current):m}function Pe(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Be=[];function De(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.Re)(t)?t:e}const ke=[{sensor:de,options:{}},{sensor:ae,options:{}}],Ae={current:{}},Oe={draggable:{measure:T},droppable:{measure:T,strategy:ye.WhileDragging,frequency:be.Optimized},dragOverlay:{measure:M}};class Fe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Me={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Fe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:p},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Oe,measureDroppableContainers:p,windowRect:null,measuringScheduled:!1},Te={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:p,draggableNodes:new Map,over:null,measureDroppableContainers:p},Ne=(0,r.createContext)(Te),Ge=(0,r.createContext)(Me);function Le(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Fe}}}function ze(e,t){switch(t.type){case g.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case g.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case g.DragEnd:case g.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case g.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Fe(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case g.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Fe(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case g.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Fe(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function He(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(Ne),l=(0,i.D9)(o),s=(0,i.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&l&&null!=s){if(!(0,i.vd)(l))return;if(document.activeElement===l.target)return;const e=a.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,i.so)(e);if(t){t.focus();break}}}))}}),[o,t,a,s,l]),null}function je(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const We=(0,r.createContext)({...m,scaleX:1,scaleY:1});var Ve;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Ve||(Ve={}));const Xe=(0,r.memo)((function(e){var t,n,a,l;let{id:s,accessibility:c,autoScroll:d=!0,children:p,sensors:v=ke,collisionDetection:h=B,measuring:y,modifiers:b,...w}=e;const R=(0,r.useReducer)(ze,void 0,Le),[x,S]=R,[E,I]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[P,k]=(0,r.useState)(Ve.Uninitialized),O=P===Ve.Initialized,{draggable:{active:F,nodes:T,translate:z},droppable:{containers:H}}=x,X=F?T.get(F):null,_=(0,r.useRef)({initial:null,translated:null}),U=(0,r.useMemo)((()=>{var e;return null!=F?{id:F,data:null!=(e=null==X?void 0:X.data)?e:Ae,rect:_}:null}),[F,X]),K=(0,r.useRef)(null),[J,Z]=(0,r.useState)(null),[Q,ee]=(0,r.useState)(null),te=(0,i.Ey)(w,Object.values(w)),ne=(0,i.Ld)("DndDescribedBy",s),re=(0,r.useMemo)((()=>H.getEnabled()),[H]),oe=(ie=y,(0,r.useMemo)((()=>({draggable:{...Oe.draggable,...null==ie?void 0:ie.draggable},droppable:{...Oe.droppable,...null==ie?void 0:ie.droppable},dragOverlay:{...Oe.dragOverlay,...null==ie?void 0:ie.dragOverlay}})),[null==ie?void 0:ie.draggable,null==ie?void 0:ie.droppable,null==ie?void 0:ie.dragOverlay]));var ie;const{droppableRects:ae,measureDroppableContainers:le,measuringScheduled:se}=function(e,t){let{dragging:n,dependencies:o,config:a}=t;const[l,s]=(0,r.useState)(null),u=null!=l,{frequency:c,measure:d,strategy:f}=a,g=(0,r.useRef)(e),p=function(){switch(f){case ye.Always:return!1;case ye.BeforeDragging:return n;default:return!n}}(),v=(0,i.Ey)(p),h=(0,r.useCallback)((function(e){void 0===e&&(e=[]),v.current||s((t=>t?t.concat(e):e))}),[v]),m=(0,r.useRef)(null),y=(0,i.Gj)((t=>{if(p&&!n)return we;const r=l;if(!t||t===we||g.current!==e||null!=r){const t=new Map;for(let n of e){if(!n)continue;if(r&&r.length>0&&!r.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new $(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t}),[e,l,n,p,d]);return(0,r.useEffect)((()=>{g.current=e}),[e]),(0,r.useEffect)((()=>{p||requestAnimationFrame((()=>h()))}),[n,p]),(0,r.useEffect)((()=>{u&&s(null)}),[u]),(0,r.useEffect)((()=>{p||"number"!=typeof c||null!==m.current||(m.current=setTimeout((()=>{h(),m.current=null}),c))}),[c,p,h,...o]),{droppableRects:y,measureDroppableContainers:h,measuringScheduled:u}}(re,{dragging:O,dependencies:[z.x,z.y],config:oe.droppable}),ue=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(T,F),ce=(0,r.useMemo)((()=>Q?(0,i.DC)(Q):null),[Q]),de=function(){const e=!1===(null==J?void 0:J.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=O&&!e&&!t;return"object"==typeof d?{...d,enabled:n}:{enabled:n}}(),fe=function(e,t){return Re(e,t)}(ue,oe.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const l=(0,r.useRef)(!1),{x:s,y:u}="boolean"==typeof a?{x:a,y:a}:a;(0,i.LI)((()=>{if(!s&&!u||!t)return void(l.current=!1);if(l.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=D(n(e),o);if(s||(r.x=0),u||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=G(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,s,u,o,n])}({activeNode:F?T.get(F):null,config:de.layoutShiftCompensation,initialRect:fe,measure:oe.draggable.measure});const ge=Se(ue,oe.draggable.measure,fe),pe=Se(ue?ue.parentElement:null),be=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:ae,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:H,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ce=H.getNodeFor(null==(t=be.current.over)?void 0:t.id),Fe=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=xe({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,i.Re)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),l=(0,r.useCallback)((e=>{const n=De(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)}),[t,a]),[s,u]=(0,i.wm)(l);return(0,r.useMemo)((()=>({nodeRef:s,rect:n,setRef:u})),[n,s,u])}({measure:oe.dragOverlay.measure}),Me=null!=(n=Fe.nodeRef.current)?n:ue,Te=O?null!=(a=Fe.rect)?a:ge:null,Xe=Boolean(Fe.nodeRef.current&&Fe.rect),_e=D(qe=Xe?null:ge,Re(qe));var qe;const Ue=Pe(Me?(0,i.Jj)(Me):null),Ye=function(e){const t=(0,r.useRef)(e),n=(0,i.Gj)((n=>e?n&&n!==Ee&&e&&t.current&&e.parentNode===t.current.parentNode?n:N(e):Ee),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(O?null!=Ce?Ce:ue:null),Ke=function(e,t){void 0===t&&(t=M);const[n]=e,o=Pe(n?(0,i.Jj)(n):null),[a,l]=(0,r.useReducer)((function(){return e.length?e.map((e=>V(e)?o:new $(t(e),e))):Be}),Be),s=xe({callback:l});return e.length>0&&a===Be&&l(),(0,i.LI)((()=>{e.length?e.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),l())}),[e]),a}(Ye),Je=je(b,{transform:{x:z.x-_e.x,y:z.y-_e.y,scaleX:1,scaleY:1},activatorEvent:Q,active:U,activeNodeRect:ge,containerNodeRect:pe,draggingNodeRect:Te,over:be.current.over,overlayNodeRect:Fe.rect,scrollableAncestors:Ye,scrollableAncestorRects:Ke,windowRect:Ue}),$e=ce?(0,i.IH)(ce,z):null,Ze=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=L(e.target);t&&n((e=>e?(e.set(t,j(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const i=e.map((e=>{const t=L(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,j(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=L(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,i.IH)(e,t)),m):Y(e):m),[e,t])}(Ye),Qe=Ie(Ze),et=Ie(Ze,[ge]),tt=(0,i.IH)(Je,Qe),nt=Te?A(Te,Je):null,rt=U&&nt?h({active:U,collisionRect:nt,droppableRects:ae,droppableContainers:re,pointerCoordinates:$e}):null,ot=C(rt,"id"),[it,at]=(0,r.useState)(null),lt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Xe?Je:(0,i.IH)(Je,et),null!=(l=null==it?void 0:it.rect)?l:null,ge),st=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==K.current)return;const i=T.get(K.current);if(!i)return;const a=e.nativeEvent,l=new n({active:K.current,activeNode:i,event:a,options:r,context:be,onStart(e){const t=K.current;if(null==t)return;const n=T.get(t);if(!n)return;const{onDragStart:r}=te.current,i={active:{id:t,data:n.data,rect:_}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),k(Ve.Initializing),S({type:g.DragStart,initialCoordinates:e,active:t}),E({type:"onDragStart",event:i})}))},onMove(e){S({type:g.DragMove,coordinates:e})},onEnd:s(g.DragEnd),onCancel:s(g.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=be.current;let l=null;if(t&&i){const{cancelDrop:o}=te.current;l={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===g.DragEnd&&"function"==typeof o&&await Promise.resolve(o(l))&&(e=g.DragCancel)}K.current=null,(0,o.unstable_batchedUpdates)((()=>{S({type:e}),k(Ve.Uninitialized),at(null),Z(null),ee(null);const t=e===g.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=te.current[t];null==e||e(l),E({type:t,event:l})}}))}}(0,o.unstable_batchedUpdates)((()=>{Z(l),ee(e.nativeEvent)}))}),[T]),ut=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=T.get(r);if(null!==K.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},K.current=r,st(n,t))}),[T,st]),ct=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(v,ut);!function(e){(0,r.useEffect)((()=>{if(!i.Nq)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(v),(0,i.LI)((()=>{ge&&P===Ve.Initializing&&k(Ve.Initialized)}),[ge,P]),(0,r.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:i}=be.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(a),E({type:"onDragMove",event:a})}))}),[tt.x,tt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=be.current;if(!e||null==K.current||!t||!i)return;const{onDragOver:a}=te.current,l=r.get(ot),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,o.unstable_batchedUpdates)((()=>{at(s),null==a||a(u),E({type:"onDragOver",event:u})}))}),[ot]),(0,i.LI)((()=>{be.current={activatorEvent:Q,active:U,activeNode:ue,collisionRect:nt,collisions:rt,droppableRects:ae,draggableNodes:T,draggingNode:Me,draggingNodeRect:Te,droppableContainers:H,over:it,scrollableAncestors:Ye,scrollAdjustedTranslate:tt},_.current={initial:Te,translated:nt}}),[U,ue,rt,nt,T,Me,Te,ae,H,it,Ye,tt]),function(e){let{acceleration:t,activator:n=ve.Pointer,canScroll:o,draggingRect:a,enabled:l,interval:s=5,order:u=he.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:g,threshold:p}=e;const v=function(e){let{delta:t,disabled:n}=e;const r=(0,i.D9)(t);return(0,i.Gj)((e=>{if(n||!r||!e)return me;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[W.Backward]:e.x[W.Backward]||-1===o,[W.Forward]:e.x[W.Forward]||1===o},y:{[W.Backward]:e.y[W.Backward]||-1===i,[W.Forward]:e.y[W.Forward]||1===i}}}),[n,t,r])}({delta:g,disabled:!l}),[h,m]=(0,i.Yz)(),y=(0,r.useRef)({x:0,y:0}),b=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case ve.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case ve.DraggableRect:return a}}),[n,a,c]),R=(0,r.useRef)(null),x=(0,r.useCallback)((()=>{const e=R.current;if(!e)return;const t=y.current.x*b.current.x,n=y.current.y*b.current.y;e.scrollBy(t,n)}),[]),C=(0,r.useMemo)((()=>u===he.TreeOrder?[...d].reverse():d),[u,d]);(0,r.useEffect)((()=>{if(l&&d.length&&w){for(const e of C){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=q(e,r,w,t,p);for(const e of["x","y"])v[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return m(),R.current=e,h(x,s),y.current=a,void(b.current=i)}y.current={x:0,y:0},b.current={x:0,y:0},m()}else m()}),[t,x,o,m,l,s,JSON.stringify(w),JSON.stringify(v),h,d,C,f,JSON.stringify(p)])}({...de,delta:z,draggingRect:nt,pointerCoordinates:$e,scrollableAncestors:Ye,scrollableAncestorRects:Ke});const dt=(0,r.useMemo)((()=>({active:U,activeNode:ue,activeNodeRect:ge,activatorEvent:Q,collisions:rt,containerNodeRect:pe,dragOverlay:Fe,draggableNodes:T,droppableContainers:H,droppableRects:ae,over:it,measureDroppableContainers:le,scrollableAncestors:Ye,scrollableAncestorRects:Ke,measuringConfiguration:oe,measuringScheduled:se,windowRect:Ue})),[U,ue,ge,Q,rt,pe,Fe,T,H,ae,it,le,Ye,Ke,oe,se,Ue]),ft=(0,r.useMemo)((()=>({activatorEvent:Q,activators:ct,active:U,activeNodeRect:ge,ariaDescribedById:{draggable:ne},dispatch:S,draggableNodes:T,over:it,measureDroppableContainers:le})),[Q,ct,U,ge,S,ne,T,it,le]);return r.createElement(u.Provider,{value:I},r.createElement(Ne.Provider,{value:ft},r.createElement(Ge.Provider,{value:dt},r.createElement(We.Provider,{value:lt},p)),r.createElement(He,{disabled:!1===(null==c?void 0:c.restoreFocus)})),r.createElement(f,{...c,hiddenTextDescribedById:ne}))})),_e=(0,r.createContext)(null),qe="button",Ue="Droppable";function Ye(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const l=(0,i.Ld)(Ue),{activators:s,activatorEvent:u,active:c,activeNodeRect:d,ariaDescribedById:f,draggableNodes:g,over:p}=(0,r.useContext)(Ne),{role:v=qe,roleDescription:h="draggable",tabIndex:m=0}=null!=a?a:{},y=(null==c?void 0:c.id)===t,b=(0,r.useContext)(y?We:_e),[w,R]=(0,i.wm)(),[x,C]=(0,i.wm)(),S=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(s,t),E=(0,i.Ey)(n);return(0,i.LI)((()=>(g.set(t,{id:t,key:l,node:w,activatorNode:x,data:E}),()=>{const e=g.get(t);e&&e.key===l&&g.delete(t)})),[g,t]),{active:c,activatorEvent:u,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:v,tabIndex:m,"aria-disabled":o,"aria-pressed":!(!y||v!==qe)||void 0,"aria-roledescription":h,"aria-describedby":f.draggable})),[o,v,m,y,h,f.draggable]),isDragging:y,listeners:o?void 0:S,node:w,over:p,setNodeRef:R,setActivatorNodeRef:C,transform:b}}function Ke(){return(0,r.useContext)(Ge)}const Je="Droppable",$e={timeout:25};function Ze(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const l=(0,i.Ld)(Je),{active:s,dispatch:u,over:c,measureDroppableContainers:d}=(0,r.useContext)(Ne),f=(0,r.useRef)({disabled:n}),p=(0,r.useRef)(!1),v=(0,r.useRef)(null),h=(0,r.useRef)(null),{disabled:m,updateMeasurementsFor:y,timeout:b}={...$e,...a},w=(0,i.Ey)(null!=y?y:o),R=xe({callback:(0,r.useCallback)((()=>{p.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),h.current=null}),b)):p.current=!0}),[b]),disabled:m||!s}),x=(0,r.useCallback)(((e,t)=>{R&&(t&&(R.unobserve(t),p.current=!1),e&&R.observe(e))}),[R]),[C,S]=(0,i.wm)(x),E=(0,i.Ey)(t);return(0,r.useEffect)((()=>{R&&C.current&&(R.disconnect(),p.current=!1,R.observe(C.current))}),[C,R]),(0,i.LI)((()=>(u({type:g.RegisterDroppable,element:{id:o,key:l,disabled:n,node:C,rect:v,data:E}}),()=>u({type:g.UnregisterDroppable,key:l,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(u({type:g.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)}),[o,l,n,u]),{active:s,rect:v,isOver:(null==c?void 0:c.id)===o,node:C,over:c,setNodeRef:S}}function Qe(e){let{animation:t,children:n}=e;const[o,a]=(0,r.useState)(null),[l,s]=(0,r.useState)(null),u=(0,i.D9)(n);return n||o||!u||a(u),(0,i.LI)((()=>{if(!l)return;const e=null==o?void 0:o.key,n=null==o?void 0:o.props.id;null!=e&&null!=n?Promise.resolve(t(n,l)).then((()=>{a(null)})):a(null)}),[t,o,l]),r.createElement(r.Fragment,null,n,o?(0,r.cloneElement)(o,{ref:s}):null)}const et={x:0,y:0,scaleX:1,scaleY:1};function tt(e){let{children:t}=e;return r.createElement(Ne.Provider,{value:Te},r.createElement(We.Provider,{value:et},t))}const nt={position:"fixed",touchAction:"none"},rt=e=>(0,i.vd)(e)?"transform 250ms ease":void 0,ot=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:o,adjustScale:a,children:l,className:s,rect:u,style:c,transform:d,transition:f=rt}=e;if(!u)return null;const g=a?d:{...d,scaleX:1,scaleY:1},p={...nt,width:u.width,height:u.height,top:u.top,left:u.left,transform:i.ux.Transform.toString(g),transformOrigin:a&&o?b(o,u):void 0,transition:"function"==typeof f?f(o):f,...c};return r.createElement(n,{className:s,style:p,ref:t},l)})),it=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},at={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:i.ux.Transform.toString(t)},{transform:i.ux.Transform.toString(n)}]},sideEffects:it({styles:{active:{opacity:"0"}}})};let lt=0;function st(e){return(0,r.useMemo)((()=>{if(null!=e)return lt++,lt}),[e])}const ut=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:a,transition:l,modifiers:s,wrapperElement:u="div",className:c,zIndex:d=999}=e;const{activatorEvent:f,active:g,activeNodeRect:p,containerNodeRect:v,draggableNodes:h,droppableContainers:m,dragOverlay:y,over:b,measuringConfiguration:w,scrollableAncestors:R,scrollableAncestorRects:x,windowRect:C}=Ke(),S=(0,r.useContext)(We),E=st(null==g?void 0:g.id),I=je(s,{activatorEvent:f,active:g,activeNodeRect:p,containerNodeRect:v,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:R,scrollableAncestorRects:x,transform:S,windowRect:C}),P=Re(p),B=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,i.zX)(((e,a)=>{if(null===t)return;const l=n.get(e);if(!l)return;const s=l.node.current;if(!s)return;const u=De(a);if(!u)return;const{transform:c}=(0,i.Jj)(a).getComputedStyle(a),d=O(c);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...at,...e};return e=>{let{active:i,dragOverlay:a,transform:l,...s}=e;if(!t)return;const u=a.rect.left-i.rect.left,c=a.rect.top-i.rect.top,d={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/a.rect.height:1},f={x:l.x-u,y:l.y-c,...d},g=o({...s,active:i,dragOverlay:a,transform:{initial:l,final:f}}),[p]=g,v=g[g.length-1];if(JSON.stringify(p)===JSON.stringify(v))return;const h=null==r?void 0:r({active:i,dragOverlay:a,...s}),m=a.node.animate(g,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{m.onfinish=()=>{null==h||h(),e()}}))}}(t);return K(s,o.draggable.measure),f({active:{id:e,data:l.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}({config:o,draggableNodes:h,droppableContainers:m,measuringConfiguration:w}),D=P?y.setRef:void 0;return r.createElement(tt,null,r.createElement(Qe,{animation:B},g&&E?r.createElement(ot,{key:E,id:g.id,ref:D,as:u,activatorEvent:f,adjustScale:t,className:c,transition:l,rect:P,style:{zIndex:d,...a},transform:I},n):null))}))},95339:(e,t,n)=>{"use strict";n.d(t,{DL:()=>r}),n(17592);const r=({transform:e})=>({...e,x:0})},67445:(e,t,n)=>{"use strict";n.d(t,{Fo:()=>p,U2:()=>u,is:()=>S,nB:()=>R,qw:()=>d});var r=n(32735),o=n(20455),i=n(17592);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function s(e){return null!==e&&e>=0}const u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=a(t,r,n),l=t[o],s=i[o];return s&&l?{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}:null},c={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...c}:null}const s=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-s,...c}:o<n&&o>=a?{x:0,y:l.height+s,...c}:{x:0,y:0,...c}},f="Sortable",g=r.createContext({activeIndex:-1,containerId:f,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}});function p(e){let{children:t,id:n,items:a,strategy:s=u,disabled:c=!1}=e;const{active:d,dragOverlay:p,droppableRects:v,over:h,measureDroppableContainers:m,measuringScheduled:y}=(0,o.Cj)(),b=(0,i.Ld)(f,n),w=Boolean(null!==p.rect),R=(0,r.useMemo)((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),x=null!=d,C=d?R.indexOf(d.id):-1,S=h?R.indexOf(h.id):-1,E=(0,r.useRef)(R),I=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(R,E.current),P=-1!==S&&-1===C||I,B=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(c);(0,i.LI)((()=>{I&&x&&!y&&m(R)}),[I,R,x,m,y]),(0,r.useEffect)((()=>{E.current=R}),[R]);const D=(0,r.useMemo)((()=>({activeIndex:C,containerId:b,disabled:B,disableTransforms:P,items:R,overIndex:S,useDragOverlay:w,sortedRects:l(R,v),strategy:s})),[C,b,B.draggable,B.droppable,P,R,S,v,w,s]);return r.createElement(g.Provider,{value:D},t)}const v=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return a(n,r,o).indexOf(t)},h=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:s,transition:u}=e;return!(!u||!r||l!==i&&o===a||!n&&(a===o||t!==s))},m={duration:200,easing:"ease"},y="transform",b=i.ux.Transition.toString({property:y,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function R(e){let{animateLayoutChanges:t=h,attributes:n,disabled:a,data:l,getNewIndex:u=v,id:c,strategy:d,resizeObserverConfig:f,transition:p=m}=e;const{items:R,containerId:x,activeIndex:C,disabled:S,disableTransforms:E,sortedRects:I,overIndex:P,useDragOverlay:B,strategy:D}=(0,r.useContext)(g),k=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,S),A=R.indexOf(c),O=(0,r.useMemo)((()=>({sortable:{containerId:x,index:A,items:R},...l})),[x,l,A,R]),F=(0,r.useMemo)((()=>R.slice(R.indexOf(c))),[R,c]),{rect:M,node:T,isOver:N,setNodeRef:G}=(0,o.Zj)({id:c,data:O,disabled:k.droppable,resizeObserverConfig:{updateMeasurementsFor:F,...f}}),{active:L,activatorEvent:z,activeNodeRect:H,attributes:j,setNodeRef:W,listeners:V,isDragging:X,over:_,setActivatorNodeRef:q,transform:U}=(0,o.O1)({id:c,data:O,attributes:{...w,...n},disabled:k.draggable}),Y=(0,i.HB)(G,W),K=Boolean(L),J=K&&!E&&s(C)&&s(P),$=!B&&X,Z=$&&J?U:null,Q=J?null!=Z?Z:(null!=d?d:D)({rects:I,activeNodeRect:H,activeIndex:C,overIndex:P,index:A}):null,ee=s(C)&&s(P)?u({id:c,items:R,activeIndex:C,overIndex:P}):A,te=null==L?void 0:L.id,ne=(0,r.useRef)({activeId:te,items:R,newIndex:ee,containerId:x}),re=R!==ne.current.items,oe=t({active:L,containerId:x,isDragging:X,isSorting:K,id:c,index:A,items:R,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:p,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:a,rect:l}=e;const[s,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,i.LI)((()=>{if(!t&&n!==c.current&&a.current){const e=l.current;if(e){const t=(0,o.VK)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&u(n)}}n!==c.current&&(c.current=n)}),[t,n,a,l]),(0,r.useEffect)((()=>{s&&requestAnimationFrame((()=>{u(null)}))}),[s]),s}({disabled:!oe,index:A,node:T,rect:M});return(0,r.useEffect)((()=>{K&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),x!==ne.current.containerId&&(ne.current.containerId=x),R!==ne.current.items&&(ne.current.items=R)}),[K,ee,x,R]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:L,activeIndex:C,attributes:j,data:O,rect:M,index:A,newIndex:ee,items:R,isOver:N,isSorting:K,isDragging:X,listeners:V,node:T,overIndex:P,over:_,setNodeRef:Y,setActivatorNodeRef:q,setDroppableNodeRef:G,setDraggableNodeRef:W,transform:null!=ie?ie:Q,transition:ie||re&&ne.current.newIndex===A?b:$&&!(0,i.vd)(z)||!p?void 0:K||oe?i.ux.Transition.toString({...p,property:y}):void 0}}function x(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const C=[o.g4.Down,o.g4.Right,o.g4.Up,o.g4.Left],S=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:l,over:s,scrollableAncestors:u}}=t;if(C.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];l.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const i=a.get(n.id);if(i)switch(e.code){case o.g4.Down:r.top<i.top&&t.push(n);break;case o.g4.Up:r.top>i.top&&t.push(n);break;case o.g4.Left:r.left>i.left&&t.push(n);break;case o.g4.Right:r.left<i.left&&t.push(n)}}));const f=(0,o.ey)({active:n,collisionRect:r,droppableRects:a,droppableContainers:t,pointerCoordinates:null});let g=(0,o._8)(f,"id");if(g===(null==s?void 0:s.id)&&f.length>1&&(g=f[1].id),null!=g){const e=l.get(n.id),t=l.get(g),s=t?a.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&s&&e&&t){const n=(0,o.hI)(f).some(((e,t)=>u[t]!==e)),a=E(e,t),l=(d=t,!(!x(c=e)||!x(d))&&!!E(c,d)&&c.data.current.sortable.index<d.data.current.sortable.index),g=n||!a?{x:0,y:0}:{x:l?r.width-s.width:0,y:l?r.height-s.height:0},p={x:s.left,y:s.top};return g.x&&g.y?p:(0,i.$X)(p,g)}}}var c,d};function E(e,t){return!(!x(e)||!x(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},17592:(e,t,n)=>{"use strict";n.d(t,{$X:()=>S,D9:()=>b,DC:()=>I,Ey:()=>h,FJ:()=>a,Gj:()=>m,HB:()=>o,IH:()=>C,Jj:()=>s,LI:()=>g,Ld:()=>R,Nq:()=>i,Re:()=>c,UG:()=>l,Yz:()=>v,qk:()=>u,r3:()=>f,so:()=>D,ux:()=>P,vZ:()=>d,vd:()=>E,wm:()=>y,zX:()=>p});var r=n(32735);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function s(e){var t,n;return e?a(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){const{Document:t}=s(e);return e instanceof t}function c(e){return!a(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function f(e){return e?a(e)?e.document:l(e)?u(e)?e:c(e)||d(e)?e.ownerDocument:document:document:document}const g=i?r.useLayoutEffect:r.useEffect;function p(e){const t=(0,r.useRef)(e);return g((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function v(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function h(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return g((()=>{n.current!==e&&(n.current=e)}),t),n}function m(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function y(e){const t=p(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function b(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function R(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function x(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const C=x(1),S=x(-1);function E(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function I(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=s(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const P=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[P.Translate.toString(e),P.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),B="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function D(e){return e.matches(B)?e:e.querySelector(B)}},68050:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(40841),o=n.n(r),i=n(32735),a=n(46304),l=n(74512);const s=i.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},i)=>{const s=(0,a.vE)(e,"row"),u=(0,a.pi)(),c=(0,a.zG)(),d=`${s}-cols`,f=[];return u.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const o=e!==c?`-${e}`:"";null!=n&&f.push(`${d}${o}-${n}`)})),(0,l.jsx)(n,{ref:i,...r,className:o()(t,s,...f)})}));s.displayName="Row";const u=s},52178:function(e,t,n){!function(e,t){"use strict";function n(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function l(e){n(a,o,i,l,s,"next",e)}function s(e){n(a,o,i,l,s,"throw",e)}l(void 0)}))}}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var l={init:"init"},s=function(e){var t=e.value;return void 0===t?"":t},u=function(){return t.createElement(t.Fragment,null," ")},c={Cell:s,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){var n=t.style,r=t.className;return e=o({},e,{},i(t,["style","className"])),n&&(e.style=e.style?o({},e.style||{},{},n||{}):n),r&&(e.className=e.className?e.className+" "+r:r),""===e.className&&delete e.className,e}),{})}var f=function(e,t){return void 0===t&&(t={}),function(n){return void 0===n&&(n={}),[].concat(e,[n]).reduce((function(e,r){return function e(t,n,r){return"function"==typeof n?e({},n(t,r)):Array.isArray(n)?d.apply(void 0,[t].concat(n)):d(t,n)}(e,r,o({},t,{userProps:n}))}),{})}},g=function(e,t,n,r){return void 0===n&&(n={}),e.reduce((function(e,t){return t(e,n)}),t)},p=function(e,t,n){return void 0===n&&(n={}),e.forEach((function(e){e(t,n)}))};function v(e,t,n,r){e.findIndex((function(e){return e.pluginName===n})),t.forEach((function(t){e.findIndex((function(e){return e.pluginName===t}))}))}function h(e,t){return"function"==typeof e?e(t):e}function m(e){var n=t.useRef();return n.current=e,t.useCallback((function(){return n.current}),[])}var y="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function b(e,n){var r=t.useRef(!1);y((function(){r.current&&e(),r.current=!0}),n)}function w(e,t,n){return void 0===n&&(n={}),function(r,i){void 0===i&&(i={});var a="string"==typeof r?t[r]:r;if(void 0===a)throw console.info(t),new Error("Renderer Error ☝️");return R(a,o({},e,{column:t},n,{},i))}}function R(e,n){return function(e){return"function"==typeof e&&(t=Object.getPrototypeOf(e)).prototype&&t.prototype.isReactComponent;var t}(r=e)||"function"==typeof r||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(r)?t.createElement(e,n):e;var r}function x(e,t,n){return void 0===n&&(n=0),e.map((function(e){return S(e=o({},e,{parent:t,depth:n})),e.columns&&(e.columns=x(e.columns,e,n+1)),e}))}function C(e){return D(e,"columns")}function S(e){var t=e.id,n=e.accessor,r=e.Header;if("string"==typeof n){t=t||n;var o=n.split(".");n=function(e){return function(e,t,n){if(!t)return e;var r,o="function"==typeof t?t:JSON.stringify(t),i=I.get(o)||function(){var e=function(e){return function e(t,n){if(void 0===n&&(n=[]),Array.isArray(t))for(var r=0;r<t.length;r+=1)e(t[r],n);else n.push(t);return n}(e).map((function(e){return String(e).replace(".","_")})).join(".").replace(T,".").replace(N,"").split(".")}(t);return I.set(o,e),e}();try{r=i.reduce((function(e,t){return e[t]}),e)}catch(e){}return void 0!==r?r:void 0}(e,o)}}if(!t&&"string"==typeof r&&r&&(t=r),!t&&e.columns)throw console.error(e),new Error('A column ID (or unique "Header" value) is required!');if(!t)throw console.error(e),new Error("A column ID (or string accessor) is required!");return Object.assign(e,{id:t,accessor:n}),e}function E(e,t){if(!t)throw new Error;return Object.assign(e,o({Header:u,Footer:u},c,{},t,{},e)),Object.assign(e,{originalWidth:e.width}),e}var I=new Map;function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0;r<t.length;r+=1)if(void 0!==t[r])return t[r]}function B(e){if("function"==typeof e)return e}function D(e,t){var n=[];return function e(r){r.forEach((function(r){r[t]?e(r[t]):n.push(r)}))}(e),n}function k(e,t){var n=t.manualExpandedKey,r=t.expanded,o=t.expandSubRows,i=void 0===o||o,a=[];return e.forEach((function(e){return function e(t,o){void 0===o&&(o=!0),t.isExpanded=t.original&&t.original[n]||r[t.id],t.canExpand=t.subRows&&!!t.subRows.length,o&&a.push(t),t.subRows&&t.subRows.length&&t.isExpanded&&t.subRows.forEach((function(t){return e(t,i)}))}(e)})),a}function A(e,t,n){return B(e)||t[e]||n[e]||n.text}function O(e,t,n){return e?e(t,n):void 0===t}function F(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var M=null,T=/\[/g,N=/\]/g,G=function(e){return o({role:"table"},e)},L=function(e){return o({role:"rowgroup"},e)},z=function(e,t){var n=t.column;return o({key:"header_"+n.id,colSpan:n.totalVisibleHeaderCount,role:"columnheader"},e)},H=function(e,t){var n=t.column;return o({key:"footer_"+n.id,colSpan:n.totalVisibleHeaderCount},e)},j=function(e,t){return o({key:"headerGroup_"+t.index,role:"row"},e)},W=function(e,t){return o({key:"footerGroup_"+t.index},e)},V=function(e,t){return o({key:"row_"+t.row.id,role:"row"},e)},X=function(e,t){var n=t.cell;return o({key:"cell_"+n.row.id+"_"+n.column.id,role:"cell"},e)};function _(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[G],getTableBodyProps:[L],getHeaderGroupProps:[j],getFooterGroupProps:[W],getHeaderProps:[z],getFooterProps:[H],getRowProps:[V],getCellProps:[X],useFinalInstance:[]}}l.resetHiddenColumns="resetHiddenColumns",l.toggleHideColumn="toggleHideColumn",l.setHiddenColumns="setHiddenColumns",l.toggleHideAllColumns="toggleHideAllColumns";var q=function(e){e.getToggleHiddenProps=[U],e.getToggleHideAllColumnsProps=[Y],e.stateReducers.push(K),e.useInstanceBeforeDimensions.push(J),e.headerGroupsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.hiddenColumns])})),e.useInstance.push($)};q.pluginName="useColumnVisibility";var U=function(e,t){var n=t.column;return[e,{onChange:function(e){n.toggleHidden(!e.target.checked)},style:{cursor:"pointer"},checked:n.isVisible,title:"Toggle Column Visible"}]},Y=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleHideAllColumns(!e.target.checked)},style:{cursor:"pointer"},checked:!n.allColumnsHidden&&!n.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!n.allColumnsHidden&&n.state.hiddenColumns.length}]};function K(e,t,n,r){if(t.type===l.init)return o({hiddenColumns:[]},e);if(t.type===l.resetHiddenColumns)return o({},e,{hiddenColumns:r.initialState.hiddenColumns||[]});if(t.type===l.toggleHideColumn){var i=(void 0!==t.value?t.value:!e.hiddenColumns.includes(t.columnId))?[].concat(e.hiddenColumns,[t.columnId]):e.hiddenColumns.filter((function(e){return e!==t.columnId}));return o({},e,{hiddenColumns:i})}return t.type===l.setHiddenColumns?o({},e,{hiddenColumns:h(t.value,e.hiddenColumns)}):t.type===l.toggleHideAllColumns?o({},e,{hiddenColumns:(void 0!==t.value?t.value:!e.hiddenColumns.length)?r.allColumns.map((function(e){return e.id})):[]}):void 0}function J(e){var n=e.headers,r=e.state.hiddenColumns;t.useRef(!1).current;var o=0;n.forEach((function(e){return o+=function e(t,n){t.isVisible=n&&!r.includes(t.id);var o=0;return t.headers&&t.headers.length?t.headers.forEach((function(n){return o+=e(n,t.isVisible)})):o=t.isVisible?1:0,t.totalVisibleHeaderCount=o,o}(e,!0)}))}function $(e){var n=e.columns,r=e.flatHeaders,o=e.dispatch,i=e.allColumns,a=e.getHooks,s=e.state.hiddenColumns,u=e.autoResetHiddenColumns,c=void 0===u||u,d=m(e),g=i.length===s.length,p=t.useCallback((function(e,t){return o({type:l.toggleHideColumn,columnId:e,value:t})}),[o]),v=t.useCallback((function(e){return o({type:l.setHiddenColumns,value:e})}),[o]),h=t.useCallback((function(e){return o({type:l.toggleHideAllColumns,value:e})}),[o]),y=f(a().getToggleHideAllColumnsProps,{instance:d()});r.forEach((function(e){e.toggleHidden=function(t){o({type:l.toggleHideColumn,columnId:e.id,value:t})},e.getToggleHiddenProps=f(a().getToggleHiddenProps,{instance:d(),column:e})}));var w=m(c);b((function(){w()&&o({type:l.resetHiddenColumns})}),[o,n]),Object.assign(e,{allColumnsHidden:g,toggleHideColumn:p,setHiddenColumns:v,toggleHideAllColumns:h,getToggleHideAllColumnsProps:y})}var Z={},Q={},ee=function(e,t,n){return e},te=function(e,t){return e.subRows||[]},ne=function(e,t,n){return""+(n?[n.id,t].join("."):t)},re=function(e){return e};function oe(e){var t=e.initialState,n=void 0===t?Z:t,r=e.defaultColumn,a=void 0===r?Q:r,l=e.getSubRows,s=void 0===l?te:l,u=e.getRowId,c=void 0===u?ne:u,d=e.stateReducer,f=void 0===d?ee:d,g=e.useControlledState,p=void 0===g?re:g;return o({},i(e,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:n,defaultColumn:a,getSubRows:s,getRowId:c,stateReducer:f,useControlledState:p})}function ie(e,t){void 0===t&&(t=0);var n=0,r=0,o=0,i=0;return e.forEach((function(e){var a=e.headers;if(e.totalLeft=t,a&&a.length){var l=ie(a,t),s=l[0],u=l[1],c=l[2],d=l[3];e.totalMinWidth=s,e.totalWidth=u,e.totalMaxWidth=c,e.totalFlexWidth=d}else e.totalMinWidth=e.minWidth,e.totalWidth=Math.min(Math.max(e.minWidth,e.width),e.maxWidth),e.totalMaxWidth=e.maxWidth,e.totalFlexWidth=e.canResize?e.totalWidth:0;e.isVisible&&(t+=e.totalWidth,n+=e.totalMinWidth,r+=e.totalWidth,o+=e.totalMaxWidth,i+=e.totalFlexWidth)})),[n,r,o,i]}function ae(e){var t=e.data,n=e.rows,r=e.flatRows,o=e.rowsById,i=e.column,a=e.getRowId,l=e.getSubRows,s=e.accessValueHooks,u=e.getInstance;t.forEach((function(e,c){return function e(n,c,d,f,p){void 0===d&&(d=0);var v=n,h=a(n,c,f),m=o[h];if(m)m.subRows&&m.originalSubRows.forEach((function(t,n){return e(t,n,d+1,m)}));else if((m={id:h,original:v,index:c,depth:d,cells:[{}]}).cells.map=F,m.cells.filter=F,m.cells.forEach=F,m.cells[0].getCellProps=F,m.values={},p.push(m),r.push(m),o[h]=m,m.originalSubRows=l(n,c),m.originalSubRows){var y=[];m.originalSubRows.forEach((function(t,n){return e(t,n,d+1,m,y)})),m.subRows=y}i.accessor&&(m.values[i.id]=i.accessor(n,c,m,p,t)),m.values[i.id]=g(s,m.values[i.id],{row:m,column:i,instance:u()})}(e,c,0,void 0,n)}))}l.resetExpanded="resetExpanded",l.toggleRowExpanded="toggleRowExpanded",l.toggleAllRowsExpanded="toggleAllRowsExpanded";var le=function(e){e.getToggleAllRowsExpandedProps=[se],e.getToggleRowExpandedProps=[ue],e.stateReducers.push(ce),e.useInstance.push(de),e.prepareRow.push(fe)};le.pluginName="useExpanded";var se=function(e,t){var n=t.instance;return[e,{onClick:function(e){n.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},ue=function(e,t){var n=t.row;return[e,{onClick:function(){n.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function ce(e,t,n,r){if(t.type===l.init)return o({expanded:{}},e);if(t.type===l.resetExpanded)return o({},e,{expanded:r.initialState.expanded||{}});if(t.type===l.toggleAllRowsExpanded){var s=t.value,u=r.isAllRowsExpanded,c=r.rowsById;if(void 0!==s?s:!u){var d={};return Object.keys(c).forEach((function(e){d[e]=!0})),o({},e,{expanded:d})}return o({},e,{expanded:{}})}if(t.type===l.toggleRowExpanded){var f,g=t.id,p=t.value,v=e.expanded[g],h=void 0!==p?p:!v;if(!v&&h)return o({},e,{expanded:o({},e.expanded,(f={},f[g]=!0,f))});if(v&&!h){var m=e.expanded;return m[g],o({},e,{expanded:i(m,[g].map(a))})}return e}}function de(e){var n=e.data,r=e.rows,o=e.rowsById,i=e.manualExpandedKey,a=void 0===i?"expanded":i,s=e.paginateExpandedRows,u=void 0===s||s,c=e.expandSubRows,d=void 0===c||c,g=e.autoResetExpanded,p=void 0===g||g,h=e.getHooks,y=e.plugins,w=e.state.expanded,R=e.dispatch;v(y,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var x=m(p),C=Boolean(Object.keys(o).length&&Object.keys(w).length);C&&Object.keys(o).some((function(e){return!w[e]}))&&(C=!1),b((function(){x()&&R({type:l.resetExpanded})}),[R,n]);var S=t.useCallback((function(e,t){R({type:l.toggleRowExpanded,id:e,value:t})}),[R]),E=t.useCallback((function(e){return R({type:l.toggleAllRowsExpanded,value:e})}),[R]),I=t.useMemo((function(){return u?k(r,{manualExpandedKey:a,expanded:w,expandSubRows:d}):r}),[u,r,a,w,d]),P=t.useMemo((function(){return function(e){var t=0;return Object.keys(e).forEach((function(e){var n=e.split(".");t=Math.max(t,n.length)})),t}(w)}),[w]),B=m(e),D=f(h().getToggleAllRowsExpandedProps,{instance:B()});Object.assign(e,{preExpandedRows:r,expandedRows:I,rows:I,expandedDepth:P,isAllRowsExpanded:C,toggleRowExpanded:S,toggleAllRowsExpanded:E,getToggleAllRowsExpandedProps:D})}function fe(e,t){var n=t.instance.getHooks,r=t.instance;e.toggleRowExpanded=function(t){return r.toggleRowExpanded(e.id,t)},e.getToggleRowExpandedProps=f(n().getToggleRowExpandedProps,{instance:r,row:e})}var ge=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return String(r).toLowerCase().includes(String(n).toLowerCase())}))}))};ge.autoRemove=function(e){return!e};var pe=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r).toLowerCase()===String(n).toLowerCase()}))}))};pe.autoRemove=function(e){return!e};var ve=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r)===String(n)}))}))};ve.autoRemove=function(e){return!e};var he=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t].includes(n)}))}))};he.autoRemove=function(e){return!e||!e.length};var me=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.every((function(e){return r.includes(e)}))}))}))};me.autoRemove=function(e){return!e||!e.length};var ye=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.some((function(e){return r.includes(e)}))}))}))};ye.autoRemove=function(e){return!e||!e.length};var be=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return n.includes(r)}))}))};be.autoRemove=function(e){return!e||!e.length};var we=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]===n}))}))};we.autoRemove=function(e){return void 0===e};var Re=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]==n}))}))};Re.autoRemove=function(e){return null==e};var xe=function(e,t,n){var r=n||[],o=r[0],i=r[1];if((o="number"==typeof o?o:-1/0)>(i="number"==typeof i?i:1/0)){var a=o;o=i,i=a}return e.filter((function(e){return t.some((function(t){var n=e.values[t];return n>=o&&n<=i}))}))};xe.autoRemove=function(e){return!e||"number"!=typeof e[0]&&"number"!=typeof e[1]};var Ce=Object.freeze({__proto__:null,text:ge,exactText:pe,exactTextCase:ve,includes:he,includesAll:me,includesSome:ye,includesValue:be,exact:we,equals:Re,between:xe});l.resetFilters="resetFilters",l.setFilter="setFilter",l.setAllFilters="setAllFilters";var Se=function(e){e.stateReducers.push(Ee),e.useInstance.push(Ie)};function Ee(e,t,n,r){if(t.type===l.init)return o({filters:[]},e);if(t.type===l.resetFilters)return o({},e,{filters:r.initialState.filters||[]});if(t.type===l.setFilter){var i=t.columnId,a=t.filterValue,s=r.allColumns,u=r.filterTypes,c=s.find((function(e){return e.id===i}));if(!c)throw new Error("React-Table: Could not find a column with id: "+i);var d=A(c.filter,u||{},Ce),f=e.filters.find((function(e){return e.id===i})),g=h(a,f&&f.value);return O(d.autoRemove,g,c)?o({},e,{filters:e.filters.filter((function(e){return e.id!==i}))}):o({},e,f?{filters:e.filters.map((function(e){return e.id===i?{id:i,value:g}:e}))}:{filters:[].concat(e.filters,[{id:i,value:g}])})}if(t.type===l.setAllFilters){var p=t.filters,v=r.allColumns,m=r.filterTypes;return o({},e,{filters:h(p,e.filters).filter((function(e){var t=v.find((function(t){return t.id===e.id}));return!O(A(t.filter,m||{},Ce).autoRemove,e.value,t)}))})}}function Ie(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,s=e.filterTypes,u=e.manualFilters,c=e.defaultCanFilter,d=void 0!==c&&c,f=e.disableFilters,g=e.state.filters,p=e.dispatch,v=e.autoResetFilters,h=void 0===v||v,y=t.useCallback((function(e,t){p({type:l.setFilter,columnId:e,filterValue:t})}),[p]),w=t.useCallback((function(e){p({type:l.setAllFilters,filters:e})}),[p]);a.forEach((function(e){var t=e.id,n=e.accessor,r=e.defaultCanFilter,o=e.disableFilters;e.canFilter=n?P(!0!==o&&void 0,!0!==f&&void 0,!0):P(r,d,!1),e.setFilter=function(t){return y(e.id,t)};var i=g.find((function(e){return e.id===t}));e.filterValue=i&&i.value}));var R=t.useMemo((function(){if(u||!g.length)return[r,o,i];var e=[],t={};return[function n(r,o){void 0===o&&(o=0);var i=r;return(i=g.reduce((function(e,t){var n=t.id,r=t.value,i=a.find((function(e){return e.id===n}));if(!i)return e;0===o&&(i.preFilteredRows=e);var l=A(i.filter,s||{},Ce);return l?(i.filteredRows=l(e,[n],r),i.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+i.id+"."),e)}),r)).forEach((function(r){e.push(r),t[r.id]=r,r.subRows&&(r.subRows=r.subRows&&r.subRows.length>0?n(r.subRows,o+1):r.subRows)})),i}(r),e,t]}),[u,g,r,o,i,a,s]),x=R[0],C=R[1],S=R[2];t.useMemo((function(){a.filter((function(e){return!g.find((function(t){return t.id===e.id}))})).forEach((function(e){e.preFilteredRows=x,e.filteredRows=x}))}),[x,g,a]);var E=m(h);b((function(){E()&&p({type:l.resetFilters})}),[p,u?null:n]),Object.assign(e,{preFilteredRows:r,preFilteredFlatRows:o,preFilteredRowsById:i,filteredRows:x,filteredFlatRows:C,filteredRowsById:S,rows:x,flatRows:C,rowsById:S,setFilter:y,setAllFilters:w})}Se.pluginName="useFilters",l.resetGlobalFilter="resetGlobalFilter",l.setGlobalFilter="setGlobalFilter";var Pe=function(e){e.stateReducers.push(Be),e.useInstance.push(De)};function Be(e,t,n,r){if(t.type===l.resetGlobalFilter)return o({},e,{globalFilter:r.initialState.globalFilter||void 0});if(t.type===l.setGlobalFilter){var a=t.filterValue,s=r.userFilterTypes,u=A(r.globalFilter,s||{},Ce),c=h(a,e.globalFilter);return O(u.autoRemove,c)?(e.globalFilter,i(e,["globalFilter"])):o({},e,{globalFilter:c})}}function De(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,s=e.filterTypes,u=e.globalFilter,c=e.manualGlobalFilter,d=e.state.globalFilter,f=e.dispatch,g=e.autoResetGlobalFilter,p=void 0===g||g,v=e.disableGlobalFilter,h=t.useCallback((function(e){f({type:l.setGlobalFilter,filterValue:e})}),[f]),y=t.useMemo((function(){if(c||void 0===d)return[r,o,i];var e=[],t={},n=A(u,s||{},Ce);if(!n)return console.warn("Could not find a valid 'globalFilter' option."),r;a.forEach((function(e){var t=e.disableGlobalFilter;e.canFilter=P(!0!==t&&void 0,!0!==v&&void 0,!0)}));var l=a.filter((function(e){return!0===e.canFilter}));return[function r(o){return(o=n(o,l.map((function(e){return e.id})),d)).forEach((function(n){e.push(n),t[n.id]=n,n.subRows=n.subRows&&n.subRows.length?r(n.subRows):n.subRows})),o}(r),e,t]}),[c,d,u,s,a,r,o,i,v]),w=y[0],R=y[1],x=y[2],C=m(p);b((function(){C()&&f({type:l.resetGlobalFilter})}),[f,c?null:n]),Object.assign(e,{preGlobalFilteredRows:r,preGlobalFilteredFlatRows:o,preGlobalFilteredRowsById:i,globalFilteredRows:w,globalFilteredFlatRows:R,globalFilteredRowsById:x,rows:w,flatRows:R,rowsById:x,setGlobalFilter:h,disableGlobalFilter:v})}function ke(e,t){return t.reduce((function(e,t){return e+("number"==typeof t?t:0)}),0)}Pe.pluginName="useGlobalFilter";var Ae=Object.freeze({__proto__:null,sum:ke,min:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e))})),t},max:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.max(t,e))})),t},minMax:function(e){var t=e[0]||0,n=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e),n=Math.max(n,e))})),t+".."+n},average:function(e){return ke(0,e)/e.length},median:function(e){if(!e.length)return null;var t=Math.floor(e.length/2),n=[].concat(e).sort((function(e,t){return e-t}));return e.length%2!=0?n[t]:(n[t-1]+n[t])/2},unique:function(e){return Array.from(new Set(e).values())},uniqueCount:function(e){return new Set(e).size},count:function(e){return e.length}}),Oe=[],Fe={};l.resetGroupBy="resetGroupBy",l.setGroupBy="setGroupBy",l.toggleGroupBy="toggleGroupBy";var Me=function(e){e.getGroupByToggleProps=[Te],e.stateReducers.push(Ne),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.groupBy])})),e.visibleColumns.push(Ge),e.useInstance.push(ze),e.prepareRow.push(He)};Me.pluginName="useGroupBy";var Te=function(e,t){var n=t.header;return[e,{onClick:n.canGroupBy?function(e){e.persist(),n.toggleGroupBy()}:void 0,style:{cursor:n.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function Ne(e,t,n,r){if(t.type===l.init)return o({groupBy:[]},e);if(t.type===l.resetGroupBy)return o({},e,{groupBy:r.initialState.groupBy||[]});if(t.type===l.setGroupBy)return o({},e,{groupBy:t.value});if(t.type===l.toggleGroupBy){var i=t.columnId,a=t.value,s=void 0!==a?a:!e.groupBy.includes(i);return o({},e,s?{groupBy:[].concat(e.groupBy,[i])}:{groupBy:e.groupBy.filter((function(e){return e!==i}))})}}function Ge(e,t){var n=t.instance.state.groupBy,r=n.map((function(t){return e.find((function(e){return e.id===t}))})).filter(Boolean),o=e.filter((function(e){return!n.includes(e.id)}));return(e=[].concat(r,o)).forEach((function(e){e.isGrouped=n.includes(e.id),e.groupedIndex=n.indexOf(e.id)})),e}var Le={};function ze(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,s=e.flatHeaders,u=e.groupByFn,c=void 0===u?je:u,d=e.manualGroupBy,g=e.aggregations,p=void 0===g?Le:g,h=e.plugins,y=e.state.groupBy,w=e.dispatch,R=e.autoResetGroupBy,x=void 0===R||R,C=e.disableGroupBy,S=e.defaultCanGroupBy,E=e.getHooks;v(h,["useColumnOrder","useFilters"],"useGroupBy");var I=m(e);a.forEach((function(t){var n=t.accessor,r=t.defaultGroupBy,o=t.disableGroupBy;t.canGroupBy=n?P(t.canGroupBy,!0!==o&&void 0,!0!==C&&void 0,!0):P(t.canGroupBy,r,S,!1),t.canGroupBy&&(t.toggleGroupBy=function(){return e.toggleGroupBy(t.id)}),t.Aggregated=t.Aggregated||t.Cell}));var B=t.useCallback((function(e,t){w({type:l.toggleGroupBy,columnId:e,value:t})}),[w]),k=t.useCallback((function(e){w({type:l.setGroupBy,value:e})}),[w]);s.forEach((function(e){e.getGroupByToggleProps=f(E().getGroupByToggleProps,{instance:I(),header:e})}));var A=t.useMemo((function(){if(d||!y.length)return[r,o,i,Oe,Fe,o,i];var e=y.filter((function(e){return a.find((function(t){return t.id===e}))})),t=[],n={},l=[],s={},u=[],f={},g=function r(o,i,d){if(void 0===i&&(i=0),i===e.length)return o;var g=e[i],v=c(o,g);return Object.entries(v).map((function(o,c){var v=o[0],h=o[1],m=g+":"+v,y=r(h,i+1,m=d?d+">"+m:m),b=i?D(h,"leafRows"):h,w=function(t,n,r){var o={};return a.forEach((function(i){if(e.includes(i.id))o[i.id]=n[0]?n[0].values[i.id]:null;else{var a="function"==typeof i.aggregate?i.aggregate:p[i.aggregate]||Ae[i.aggregate];if(a){var l=n.map((function(e){return e.values[i.id]})),s=t.map((function(e){var t=e.values[i.id];if(!r&&i.aggregateValue){var n="function"==typeof i.aggregateValue?i.aggregateValue:p[i.aggregateValue]||Ae[i.aggregateValue];if(!n)throw console.info({column:i}),new Error("React Table: Invalid column.aggregateValue option for column listed above");t=n(t,e,i)}return t}));o[i.id]=a(s,l)}else{if(i.aggregate)throw console.info({column:i}),new Error("React Table: Invalid column.aggregate option for column listed above");o[i.id]=null}}})),o}(b,h,i),R={id:m,isGrouped:!0,groupByID:g,groupByVal:v,values:w,subRows:y,leafRows:b,depth:i,index:c};return y.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(l.push(e),s[e.id]=e):(u.push(e),f[e.id]=e)})),R}))}(r);return g.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(l.push(e),s[e.id]=e):(u.push(e),f[e.id]=e)})),[g,t,n,l,s,u,f]}),[d,y,r,o,i,a,p,c]),O=A[0],F=A[1],M=A[2],T=A[3],N=A[4],G=A[5],L=A[6],z=m(x);b((function(){z()&&w({type:l.resetGroupBy})}),[w,d?null:n]),Object.assign(e,{preGroupedRows:r,preGroupedFlatRow:o,preGroupedRowsById:i,groupedRows:O,groupedFlatRows:F,groupedRowsById:M,onlyGroupedFlatRows:T,onlyGroupedRowsById:N,nonGroupedFlatRows:G,nonGroupedRowsById:L,rows:O,flatRows:F,rowsById:M,toggleGroupBy:B,setGroupBy:k})}function He(e){e.allCells.forEach((function(t){var n;t.isGrouped=t.column.isGrouped&&t.column.id===e.groupByID,t.isPlaceholder=!t.isGrouped&&t.column.isGrouped,t.isAggregated=!t.isGrouped&&!t.isPlaceholder&&(null==(n=e.subRows)?void 0:n.length)}))}function je(e,t){return e.reduce((function(e,n,r){var o=""+n.values[t];return e[o]=Array.isArray(e[o])?e[o]:[],e[o].push(n),e}),{})}var We=/([0-9]+)/gm;function Ve(e,t){return e===t?0:e>t?1:-1}function Xe(e,t){return e.values[t]}function _e(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}var qe=Object.freeze({__proto__:null,alphanumeric:function(e,t,n){var r=Xe(e,n),o=Xe(t,n);for(r=_e(r),o=_e(o),r=r.split(We).filter(Boolean),o=o.split(We).filter(Boolean);r.length&&o.length;){var i=r.shift(),a=o.shift(),l=parseInt(i,10),s=parseInt(a,10),u=[l,s].sort();if(isNaN(u[0])){if(i>a)return 1;if(a>i)return-1}else{if(isNaN(u[1]))return isNaN(l)?-1:1;if(l>s)return 1;if(s>l)return-1}}return r.length-o.length},datetime:function(e,t,n){var r=Xe(e,n),o=Xe(t,n);return Ve(r=r.getTime(),o=o.getTime())},basic:function(e,t,n){return Ve(Xe(e,n),Xe(t,n))}});l.resetSortBy="resetSortBy",l.setSortBy="setSortBy",l.toggleSortBy="toggleSortBy",l.clearSortBy="clearSortBy",c.sortType="alphanumeric",c.sortDescFirst=!1;var Ue=function(e){e.getSortByToggleProps=[Ye],e.stateReducers.push(Ke),e.useInstance.push(Je)};Ue.pluginName="useSortBy";var Ye=function(e,t){var n=t.instance,r=t.column,o=n.isMultiSortEvent,i=void 0===o?function(e){return e.shiftKey}:o;return[e,{onClick:r.canSort?function(e){e.persist(),r.toggleSortBy(void 0,!n.disableMultiSort&&i(e))}:void 0,style:{cursor:r.canSort?"pointer":void 0},title:r.canSort?"Toggle SortBy":void 0}]};function Ke(e,t,n,r){if(t.type===l.init)return o({sortBy:[]},e);if(t.type===l.resetSortBy)return o({},e,{sortBy:r.initialState.sortBy||[]});if(t.type===l.clearSortBy)return o({},e,{sortBy:e.sortBy.filter((function(e){return e.id!==t.columnId}))});if(t.type===l.setSortBy)return o({},e,{sortBy:t.sortBy});if(t.type===l.toggleSortBy){var i,a=t.columnId,s=t.desc,u=t.multi,c=r.allColumns,d=r.disableMultiSort,f=r.disableSortRemove,g=r.disableMultiRemove,p=r.maxMultiSortColCount,v=void 0===p?Number.MAX_SAFE_INTEGER:p,h=e.sortBy,m=c.find((function(e){return e.id===a})).sortDescFirst,y=h.find((function(e){return e.id===a})),b=h.findIndex((function(e){return e.id===a})),w=null!=s,R=[];return"toggle"!=(i=!d&&u?y?"toggle":"add":b!==h.length-1||1!==h.length?"replace":y?"toggle":"replace")||f||w||u&&g||!(y&&y.desc&&!m||!y.desc&&m)||(i="remove"),"replace"===i?R=[{id:a,desc:w?s:m}]:"add"===i?(R=[].concat(h,[{id:a,desc:w?s:m}])).splice(0,R.length-v):"toggle"===i?R=h.map((function(e){return e.id===a?o({},e,{desc:w?s:!y.desc}):e})):"remove"===i&&(R=h.filter((function(e){return e.id!==a}))),o({},e,{sortBy:R})}}function Je(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.allColumns,a=e.orderByFn,s=void 0===a?$e:a,u=e.sortTypes,c=e.manualSortBy,d=e.defaultCanSort,g=e.disableSortBy,p=e.flatHeaders,h=e.state.sortBy,y=e.dispatch,w=e.plugins,R=e.getHooks,x=e.autoResetSortBy,C=void 0===x||x;v(w,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var S=t.useCallback((function(e){y({type:l.setSortBy,sortBy:e})}),[y]),E=t.useCallback((function(e,t,n){y({type:l.toggleSortBy,columnId:e,desc:t,multi:n})}),[y]),I=m(e);p.forEach((function(e){var t=e.accessor,n=e.canSort,r=e.disableSortBy,o=e.id,i=t?P(!0!==r&&void 0,!0!==g&&void 0,!0):P(d,n,!1);e.canSort=i,e.canSort&&(e.toggleSortBy=function(t,n){return E(e.id,t,n)},e.clearSortBy=function(){y({type:l.clearSortBy,columnId:e.id})}),e.getSortByToggleProps=f(R().getSortByToggleProps,{instance:I(),column:e});var a=h.find((function(e){return e.id===o}));e.isSorted=!!a,e.sortedIndex=h.findIndex((function(e){return e.id===o})),e.isSortedDesc=e.isSorted?a.desc:void 0}));var D=t.useMemo((function(){if(c||!h.length)return[r,o];var e=[],t=h.filter((function(e){return i.find((function(t){return t.id===e.id}))}));return[function n(r){var o=s(r,t.map((function(e){var t=i.find((function(t){return t.id===e.id}));if(!t)throw new Error("React-Table: Could not find a column with id: "+e.id+" while sorting");var n=t.sortType,r=B(n)||(u||{})[n]||qe[n];if(!r)throw new Error("React-Table: Could not find a valid sortType of '"+n+"' for column '"+e.id+"'.");return function(t,n){return r(t,n,e.id,e.desc)}})),t.map((function(e){var t=i.find((function(t){return t.id===e.id}));return t&&t.sortInverted?e.desc:!e.desc})));return o.forEach((function(t){e.push(t),t.subRows&&0!==t.subRows.length&&(t.subRows=n(t.subRows))})),o}(r),e]}),[c,h,r,o,i,s,u]),k=D[0],A=D[1],O=m(C);b((function(){O()&&y({type:l.resetSortBy})}),[c?null:n]),Object.assign(e,{preSortedRows:r,preSortedFlatRows:o,sortedRows:k,sortedFlatRows:A,rows:k,flatRows:A,setSortBy:S,toggleSortBy:E})}function $e(e,t,n){return[].concat(e).sort((function(e,r){for(var o=0;o<t.length;o+=1){var i=t[o],a=!1===n[o]||"desc"===n[o],l=i(e,r);if(0!==l)return a?-l:l}return n[0]?e.index-r.index:r.index-e.index}))}l.resetPage="resetPage",l.gotoPage="gotoPage",l.setPageSize="setPageSize";var Ze=function(e){e.stateReducers.push(Qe),e.useInstance.push(et)};function Qe(e,t,n,r){if(t.type===l.init)return o({pageSize:10,pageIndex:0},e);if(t.type===l.resetPage)return o({},e,{pageIndex:r.initialState.pageIndex||0});if(t.type===l.gotoPage){var i=r.pageCount,a=r.page,s=h(t.pageIndex,e.pageIndex),u=!1;return s>e.pageIndex?u=-1===i?a.length>=e.pageSize:s<i:s<e.pageIndex&&(u=s>-1),u?o({},e,{pageIndex:s}):e}if(t.type===l.setPageSize){var c=t.pageSize,d=e.pageSize*e.pageIndex;return o({},e,{pageIndex:Math.floor(d/c),pageSize:c})}}function et(e){var n=e.rows,r=e.autoResetPage,o=void 0===r||r,i=e.manualExpandedKey,a=void 0===i?"expanded":i,s=e.plugins,u=e.pageCount,c=e.paginateExpandedRows,d=void 0===c||c,f=e.expandSubRows,g=void 0===f||f,p=e.state,h=p.pageSize,y=p.pageIndex,w=p.expanded,R=p.globalFilter,x=p.filters,C=p.groupBy,S=p.sortBy,E=e.dispatch,I=e.data,P=e.manualPagination;v(s,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var B=m(o);b((function(){B()&&E({type:l.resetPage})}),[E,P?null:I,R,x,C,S]);var D=P?u:Math.ceil(n.length/h),A=t.useMemo((function(){return D>0?[].concat(new Array(D)).fill(null).map((function(e,t){return t})):[]}),[D]),O=t.useMemo((function(){var e;if(P)e=n;else{var t=h*y,r=t+h;e=n.slice(t,r)}return d?e:k(e,{manualExpandedKey:a,expanded:w,expandSubRows:g})}),[g,w,a,P,y,h,d,n]),F=y>0,M=-1===D?O.length>=h:y<D-1,T=t.useCallback((function(e){E({type:l.gotoPage,pageIndex:e})}),[E]),N=t.useCallback((function(){return T((function(e){return e-1}))}),[T]),G=t.useCallback((function(){return T((function(e){return e+1}))}),[T]),L=t.useCallback((function(e){E({type:l.setPageSize,pageSize:e})}),[E]);Object.assign(e,{pageOptions:A,pageCount:D,page:O,canPreviousPage:F,canNextPage:M,gotoPage:T,previousPage:N,nextPage:G,setPageSize:L})}Ze.pluginName="usePagination",l.resetPivot="resetPivot",l.togglePivot="togglePivot";var tt=function(e){e.getPivotToggleProps=[rt],e.stateReducers.push(ot),e.useInstanceAfterData.push(it),e.allColumns.push(at),e.accessValue.push(lt),e.materializedColumns.push(st),e.materializedColumnsDeps.push(ut),e.visibleColumns.push(ct),e.visibleColumnsDeps.push(dt),e.useInstance.push(ft),e.prepareRow.push(gt)};tt.pluginName="usePivotColumns";var nt=[],rt=function(e,t){var n=t.header;return[e,{onClick:n.canPivot?function(e){e.persist(),n.togglePivot()}:void 0,style:{cursor:n.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function ot(e,t,n,r){if(t.type===l.init)return o({pivotColumns:nt},e);if(t.type===l.resetPivot)return o({},e,{pivotColumns:r.initialState.pivotColumns||nt});if(t.type===l.togglePivot){var i=t.columnId,a=t.value,s=void 0!==a?a:!e.pivotColumns.includes(i);return o({},e,s?{pivotColumns:[].concat(e.pivotColumns,[i])}:{pivotColumns:e.pivotColumns.filter((function(e){return e!==i}))})}}function it(e){e.allColumns.forEach((function(t){t.isPivotSource=e.state.pivotColumns.includes(t.id)}))}function at(e,t){var n=t.instance;return e.forEach((function(e){e.isPivotSource=n.state.pivotColumns.includes(e.id),e.uniqueValues=new Set})),e}function lt(e,t){var n=t.column;return n.uniqueValues&&void 0!==e&&n.uniqueValues.add(e),e}function st(e,t){var n=t.instance,r=n.allColumns,i=n.state;if(!i.pivotColumns.length||!i.groupBy||!i.groupBy.length)return e;var a=i.pivotColumns.map((function(e){return r.find((function(t){return t.id===e}))})).filter(Boolean),l=r.filter((function(e){return!e.isPivotSource&&!i.groupBy.includes(e.id)&&!i.pivotColumns.includes(e.id)})),s=C(function e(t,n,r){void 0===t&&(t=0),void 0===r&&(r=[]);var i=a[t];return i?Array.from(i.uniqueValues).sort().map((function(a){var l=o({},i,{Header:i.PivotHeader||"string"==typeof i.header?i.Header+": "+a:a,isPivotGroup:!0,parent:n,depth:t,id:n?n.id+"."+i.id+"."+a:i.id+"."+a,pivotValue:a});return l.columns=e(t+1,l,[].concat(r,[function(e){return e.values[i.id]===a}])),l})):l.map((function(e){return o({},e,{canPivot:!1,isPivoted:!0,parent:n,depth:t,id:""+(n?n.id+"."+e.id:e.id),accessor:function(t,n,o){if(r.every((function(e){return e(o)})))return o.values[e.id]}})}))}());return[].concat(e,s)}function ut(e,t){var n=t.instance.state,r=n.pivotColumns,o=n.groupBy;return[].concat(e,[r,o])}function ct(e,t){var n=t.instance.state;return e=e.filter((function(e){return!e.isPivotSource})),n.pivotColumns.length&&n.groupBy&&n.groupBy.length&&(e=e.filter((function(e){return e.isGrouped||e.isPivoted}))),e}function dt(e,t){var n=t.instance;return[].concat(e,[n.state.pivotColumns,n.state.groupBy])}function ft(e){var t=e.columns,n=e.allColumns,r=e.flatHeaders,o=e.getHooks,i=e.plugins,a=e.dispatch,s=e.autoResetPivot,u=void 0===s||s,c=e.manaulPivot,d=e.disablePivot,g=e.defaultCanPivot;v(i,["useGroupBy"],"usePivotColumns");var p=m(e);n.forEach((function(t){var n=t.accessor,r=t.defaultPivot,o=t.disablePivot;t.canPivot=n?P(t.canPivot,!0!==o&&void 0,!0!==d&&void 0,!0):P(t.canPivot,r,g,!1),t.canPivot&&(t.togglePivot=function(){return e.togglePivot(t.id)}),t.Aggregated=t.Aggregated||t.Cell})),r.forEach((function(e){e.getPivotToggleProps=f(o().getPivotToggleProps,{instance:p(),header:e})}));var h=m(u);b((function(){h()&&a({type:l.resetPivot})}),[a,c?null:t]),Object.assign(e,{togglePivot:function(e,t){a({type:l.togglePivot,columnId:e,value:t})}})}function gt(e){e.allCells.forEach((function(e){e.isPivoted=e.column.isPivoted}))}l.resetSelectedRows="resetSelectedRows",l.toggleAllRowsSelected="toggleAllRowsSelected",l.toggleRowSelected="toggleRowSelected",l.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var pt=function(e){e.getToggleRowSelectedProps=[vt],e.getToggleAllRowsSelectedProps=[ht],e.getToggleAllPageRowsSelectedProps=[mt],e.stateReducers.push(yt),e.useInstance.push(bt),e.prepareRow.push(wt)};pt.pluginName="useRowSelect";var vt=function(e,t){var n=t.instance,r=t.row,o=n.manualRowSelectedKey,i=void 0===o?"isSelected":o;return[e,{onChange:function(e){r.toggleRowSelected(e.target.checked)},style:{cursor:"pointer"},checked:!(!r.original||!r.original[i])||r.isSelected,title:"Toggle Row Selected",indeterminate:r.isSomeSelected}]},ht=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:Boolean(!n.isAllRowsSelected&&Object.keys(n.state.selectedRowIds).length)}]},mt=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllPageRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:Boolean(!n.isAllPageRowsSelected&&n.page.some((function(e){var t=e.id;return n.state.selectedRowIds[t]})))}]};function yt(e,t,n,r){if(t.type===l.init)return o({selectedRowIds:{}},e);if(t.type===l.resetSelectedRows)return o({},e,{selectedRowIds:r.initialState.selectedRowIds||{}});if(t.type===l.toggleAllRowsSelected){var i=t.value,a=r.isAllRowsSelected,s=r.rowsById,u=r.nonGroupedRowsById,c=void 0===u?s:u,d=void 0!==i?i:!a,f=Object.assign({},e.selectedRowIds);return d?Object.keys(c).forEach((function(e){f[e]=!0})):Object.keys(c).forEach((function(e){delete f[e]})),o({},e,{selectedRowIds:f})}if(t.type===l.toggleRowSelected){var g=t.id,p=t.value,v=r.rowsById,h=r.selectSubRows,m=void 0===h||h,y=r.getSubRows,b=e.selectedRowIds[g],w=void 0!==p?p:!b;if(b===w)return e;var R=o({},e.selectedRowIds);return function e(t){var n=v[t];if(n.isGrouped||(w?R[t]=!0:delete R[t]),m&&y(n))return y(n).forEach((function(t){return e(t.id)}))}(g),o({},e,{selectedRowIds:R})}if(t.type===l.toggleAllPageRowsSelected){var x=t.value,C=r.page,S=r.rowsById,E=r.selectSubRows,I=void 0===E||E,P=r.isAllPageRowsSelected,B=r.getSubRows,D=void 0!==x?x:!P,k=o({},e.selectedRowIds);return C.forEach((function(e){return function e(t){var n=S[t];if(n.isGrouped||(D?k[t]=!0:delete k[t]),I&&B(n))return B(n).forEach((function(t){return e(t.id)}))}(e.id)})),o({},e,{selectedRowIds:k})}return e}function bt(e){var n=e.data,r=e.rows,o=e.getHooks,i=e.plugins,a=e.rowsById,s=e.nonGroupedRowsById,u=void 0===s?a:s,c=e.autoResetSelectedRows,d=void 0===c||c,g=e.state.selectedRowIds,p=e.selectSubRows,h=void 0===p||p,y=e.dispatch,w=e.page,R=e.getSubRows;v(i,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var x=t.useMemo((function(){var e=[];return r.forEach((function(t){var n=h?function e(t,n,r){if(n[t.id])return!0;var o=r(t);if(o&&o.length){var i=!0,a=!1;return o.forEach((function(t){a&&!i||(e(t,n,r)?a=!0:i=!1)})),!!i||!!a&&null}return!1}(t,g,R):!!g[t.id];t.isSelected=!!n,t.isSomeSelected=null===n,n&&e.push(t)})),e}),[r,h,g,R]),C=Boolean(Object.keys(u).length&&Object.keys(g).length),S=C;C&&Object.keys(u).some((function(e){return!g[e]}))&&(C=!1),C||w&&w.length&&w.some((function(e){var t=e.id;return!g[t]}))&&(S=!1);var E=m(d);b((function(){E()&&y({type:l.resetSelectedRows})}),[y,n]);var I=t.useCallback((function(e){return y({type:l.toggleAllRowsSelected,value:e})}),[y]),P=t.useCallback((function(e){return y({type:l.toggleAllPageRowsSelected,value:e})}),[y]),B=t.useCallback((function(e,t){return y({type:l.toggleRowSelected,id:e,value:t})}),[y]),D=m(e),k=f(o().getToggleAllRowsSelectedProps,{instance:D()}),A=f(o().getToggleAllPageRowsSelectedProps,{instance:D()});Object.assign(e,{selectedFlatRows:x,isAllRowsSelected:C,isAllPageRowsSelected:S,toggleRowSelected:B,toggleAllRowsSelected:I,getToggleAllRowsSelectedProps:k,getToggleAllPageRowsSelectedProps:A,toggleAllPageRowsSelected:P})}function wt(e,t){var n=t.instance;e.toggleRowSelected=function(t){return n.toggleRowSelected(e.id,t)},e.getToggleRowSelectedProps=f(n.getHooks().getToggleRowSelectedProps,{instance:n,row:e})}var Rt=function(e){return{}},xt=function(e){return{}};l.setRowState="setRowState",l.setCellState="setCellState",l.resetRowState="resetRowState";var Ct=function(e){e.stateReducers.push(St),e.useInstance.push(Et),e.prepareRow.push(It)};function St(e,t,n,r){var i=r.initialRowStateAccessor,a=void 0===i?Rt:i,s=r.initialCellStateAccessor,u=void 0===s?xt:s,c=r.rowsById;if(t.type===l.init)return o({rowState:{}},e);if(t.type===l.resetRowState)return o({},e,{rowState:r.initialState.rowState||{}});if(t.type===l.setRowState){var d,f=t.rowId,g=t.value,p=void 0!==e.rowState[f]?e.rowState[f]:a(c[f]);return o({},e,{rowState:o({},e.rowState,(d={},d[f]=h(g,p),d))})}if(t.type===l.setCellState){var v,m,y,b,w,R=t.rowId,x=t.columnId,C=t.value,S=void 0!==e.rowState[R]?e.rowState[R]:a(c[R]),E=void 0!==(null==S||null==(v=S.cellState)?void 0:v[x])?S.cellState[x]:u(null==(m=c[R])||null==(y=m.cells)?void 0:y.find((function(e){return e.column.id===x})));return o({},e,{rowState:o({},e.rowState,(w={},w[R]=o({},S,{cellState:o({},S.cellState||{},(b={},b[x]=h(C,E),b))}),w))})}}function Et(e){var n=e.autoResetRowState,r=void 0===n||n,o=e.data,i=e.dispatch,a=t.useCallback((function(e,t){return i({type:l.setRowState,rowId:e,value:t})}),[i]),s=t.useCallback((function(e,t,n){return i({type:l.setCellState,rowId:e,columnId:t,value:n})}),[i]),u=m(r);b((function(){u()&&i({type:l.resetRowState})}),[o]),Object.assign(e,{setRowState:a,setCellState:s})}function It(e,t){var n=t.instance,r=n.initialRowStateAccessor,o=void 0===r?Rt:r,i=n.initialCellStateAccessor,a=void 0===i?xt:i,l=n.state.rowState;e&&(e.state=void 0!==l[e.id]?l[e.id]:o(e),e.setState=function(t){return n.setRowState(e.id,t)},e.cells.forEach((function(t){e.state.cellState||(e.state.cellState={}),t.state=void 0!==e.state.cellState[t.column.id]?e.state.cellState[t.column.id]:a(t),t.setState=function(r){return n.setCellState(e.id,t.column.id,r)}})))}Ct.pluginName="useRowState",l.resetColumnOrder="resetColumnOrder",l.setColumnOrder="setColumnOrder";var Pt=function(e){e.stateReducers.push(Bt),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.columnOrder])})),e.visibleColumns.push(Dt),e.useInstance.push(kt)};function Bt(e,t,n,r){return t.type===l.init?o({columnOrder:[]},e):t.type===l.resetColumnOrder?o({},e,{columnOrder:r.initialState.columnOrder||[]}):t.type===l.setColumnOrder?o({},e,{columnOrder:h(t.columnOrder,e.columnOrder)}):void 0}function Dt(e,t){var n=t.instance.state.columnOrder;if(!n||!n.length)return e;for(var r=[].concat(n),o=[].concat(e),i=[],a=function(){var e=r.shift(),t=o.findIndex((function(t){return t.id===e}));t>-1&&i.push(o.splice(t,1)[0])};o.length&&r.length;)a();return[].concat(i,o)}function kt(e){var n=e.dispatch;e.setColumnOrder=t.useCallback((function(e){return n({type:l.setColumnOrder,columnOrder:e})}),[n])}Pt.pluginName="useColumnOrder",c.canResize=!0,l.columnStartResizing="columnStartResizing",l.columnResizing="columnResizing",l.columnDoneResizing="columnDoneResizing",l.resetResize="resetResize";var At=function(e){e.getResizerProps=[Ot],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(Ft),e.useInstance.push(Tt),e.useInstanceBeforeDimensions.push(Mt)},Ot=function(e,t){var n=t.instance,r=t.header,o=n.dispatch,i=function(e,t){var n=!1;if("touchstart"===e.type){if(e.touches&&e.touches.length>1)return;n=!0}var r=function(e){var t=[];return function e(n){n.columns&&n.columns.length&&n.columns.map(e),t.push(n)}(e),t}(t).map((function(e){return[e.id,e.totalWidth]})),i=n?Math.round(e.touches[0].clientX):e.clientX,a=function(e){o({type:l.columnResizing,clientX:e})},s=function(){return o({type:l.columnDoneResizing})},u={mouse:{moveEvent:"mousemove",moveHandler:function(e){return a(e.clientX)},upEvent:"mouseup",upHandler:function(e){document.removeEventListener("mousemove",u.mouse.moveHandler),document.removeEventListener("mouseup",u.mouse.upHandler),s()}},touch:{moveEvent:"touchmove",moveHandler:function(e){return e.cancelable&&(e.preventDefault(),e.stopPropagation()),a(e.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(e){document.removeEventListener(u.touch.moveEvent,u.touch.moveHandler),document.removeEventListener(u.touch.upEvent,u.touch.moveHandler),s()}}},c=n?u.touch:u.mouse,d=!!function(){if("boolean"==typeof M)return M;var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return M=e}()&&{passive:!1};document.addEventListener(c.moveEvent,c.moveHandler,d),document.addEventListener(c.upEvent,c.upHandler,d),o({type:l.columnStartResizing,columnId:t.id,columnWidth:t.totalWidth,headerIdWidths:r,clientX:i})};return[e,{onMouseDown:function(e){return e.persist()||i(e,r)},onTouchStart:function(e){return e.persist()||i(e,r)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function Ft(e,t){if(t.type===l.init)return o({columnResizing:{columnWidths:{}}},e);if(t.type===l.resetResize)return o({},e,{columnResizing:{columnWidths:{}}});if(t.type===l.columnStartResizing){var n=t.clientX,r=t.columnId,i=t.columnWidth,a=t.headerIdWidths;return o({},e,{columnResizing:o({},e.columnResizing,{startX:n,headerIdWidths:a,columnWidth:i,isResizingColumn:r})})}if(t.type===l.columnResizing){var s=t.clientX,u=e.columnResizing,c=u.startX,d=u.columnWidth,f=u.headerIdWidths,g=(s-c)/d,p={};return(void 0===f?[]:f).forEach((function(e){var t=e[0],n=e[1];p[t]=Math.max(n+n*g,0)})),o({},e,{columnResizing:o({},e.columnResizing,{columnWidths:o({},e.columnResizing.columnWidths,{},p)})})}return t.type===l.columnDoneResizing?o({},e,{columnResizing:o({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}At.pluginName="useResizeColumns";var Mt=function(e){var t=e.flatHeaders,n=e.disableResizing,r=e.getHooks,o=e.state.columnResizing,i=m(e);t.forEach((function(e){var t=P(!0!==e.disableResizing&&void 0,!0!==n&&void 0,!0);e.canResize=t,e.width=o.columnWidths[e.id]||e.originalWidth||e.width,e.isResizing=o.isResizingColumn===e.id,t&&(e.getResizerProps=f(r().getResizerProps,{instance:i(),header:e}))}))};function Tt(e){var n=e.plugins,r=e.dispatch,o=e.autoResetResize,i=void 0===o||o,a=e.columns;v(n,["useAbsoluteLayout"],"useResizeColumns");var s=m(i);b((function(){s()&&r({type:l.resetResize})}),[a]);var u=t.useCallback((function(){return r({type:l.resetResize})}),[r]);Object.assign(e,{resetResizing:u})}var Nt={position:"absolute",top:0},Gt=function(e){e.getTableBodyProps.push(Lt),e.getRowProps.push(Lt),e.getHeaderGroupProps.push(Lt),e.getFooterGroupProps.push(Lt),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},Nt,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},Nt,{left:n.column.totalLeft+"px",width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},Nt,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]}))};Gt.pluginName="useAbsoluteLayout";var Lt=function(e,t){return[e,{style:{position:"relative",width:t.instance.totalColumnsWidth+"px"}}]},zt={display:"inline-block",boxSizing:"border-box"},Ht=function(e,t){return[e,{style:{display:"flex",width:t.instance.totalColumnsWidth+"px"}}]},jt=function(e){e.getRowProps.push(Ht),e.getHeaderGroupProps.push(Ht),e.getFooterGroupProps.push(Ht),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},zt,{width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},zt,{width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},zt,{width:n.totalWidth+"px"})}]}))};function Wt(e){e.getTableProps.push(Vt),e.getRowProps.push(Xt),e.getHeaderGroupProps.push(Xt),e.getFooterGroupProps.push(Xt),e.getHeaderProps.push(_t),e.getCellProps.push(qt),e.getFooterProps.push(Ut)}jt.pluginName="useBlockLayout",Wt.pluginName="useFlexLayout";var Vt=function(e,t){return[e,{style:{minWidth:t.instance.totalColumnsMinWidth+"px"}}]},Xt=function(e,t){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:t.instance.totalColumnsMinWidth+"px"}}]},_t=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]},qt=function(e,t){var n=t.cell;return[e,{style:{boxSizing:"border-box",flex:n.column.totalFlexWidth+" 0 auto",minWidth:n.column.totalMinWidth+"px",width:n.column.totalWidth+"px"}}]},Ut=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]};function Yt(e){e.stateReducers.push($t),e.getTableProps.push(Kt),e.getHeaderProps.push(Jt)}Yt.pluginName="useGridLayout";var Kt=function(e,t){return[e,{style:{display:"grid",gridTemplateColumns:t.instance.state.gridLayout.columnWidths.map((function(e){return e})).join(" ")}}]},Jt=function(e,t){return[e,{id:"header-cell-"+t.column.id,style:{position:"sticky"}}]};function $t(e,t,n,r){if("init"===t.type)return o({gridLayout:{columnWidths:r.columns.map((function(){return"auto"}))}},e);if("columnStartResizing"===t.type){var i=t.columnId,a=r.visibleColumns.findIndex((function(e){return e.id===i})),l=function(e){var t,n=null==(t=document.getElementById("header-cell-"+e))?void 0:t.offsetWidth;if(void 0!==n)return n}(i);return void 0!==l?o({},e,{gridLayout:o({},e.gridLayout,{columnId:i,columnIndex:a,startingWidth:l})}):e}if("columnResizing"===t.type){var s=e.gridLayout,u=s.columnIndex,c=s.startingWidth,d=s.columnWidths,f=c-(e.columnResizing.startX-t.clientX),g=[].concat(d);return g[u]=f+"px",o({},e,{gridLayout:o({},e.gridLayout,{columnWidths:g})})}}e._UNSTABLE_usePivotColumns=tt,e.actions=l,e.defaultColumn=c,e.defaultGroupByFn=je,e.defaultOrderByFn=$e,e.defaultRenderer=s,e.emptyRenderer=u,e.ensurePluginOrder=v,e.flexRender=R,e.functionalUpdate=h,e.loopHooks=p,e.makePropGetter=f,e.makeRenderer=w,e.reduceHooks=g,e.safeUseLayoutEffect=y,e.useAbsoluteLayout=Gt,e.useAsyncDebounce=function(e,n){void 0===n&&(n=0);var o=t.useRef({}),i=m(e),a=m(n);return t.useCallback(function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,l,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=s.length,n=new Array(t),l=0;l<t;l++)n[l]=s[l];return o.current.promise||(o.current.promise=new Promise((function(e,t){o.current.resolve=e,o.current.reject=t}))),o.current.timeout&&clearTimeout(o.current.timeout),o.current.timeout=setTimeout(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete o.current.timeout,e.prev=1,e.t0=o.current,e.next=5,i().apply(void 0,n);case 5:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=12;break;case 9:e.prev=9,e.t2=e.catch(1),o.current.reject(e.t2);case 12:return e.prev=12,delete o.current.promise,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])}))),a()),e.abrupt("return",o.current.promise);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),[i,a])},e.useBlockLayout=jt,e.useColumnOrder=Pt,e.useExpanded=le,e.useFilters=Se,e.useFlexLayout=Wt,e.useGetLatest=m,e.useGlobalFilter=Pe,e.useGridLayout=Yt,e.useGroupBy=Me,e.useMountedLayoutEffect=b,e.usePagination=Ze,e.useResizeColumns=At,e.useRowSelect=pt,e.useRowState=Ct,e.useSortBy=Ue,e.useTable=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e=oe(e),r=[q].concat(r);var a=m(t.useRef({}).current);Object.assign(a(),o({},e,{plugins:r,hooks:_()})),r.filter(Boolean).forEach((function(e){e(a().hooks)}));var s=m(a().hooks);a().getHooks=s,delete a().hooks,Object.assign(a(),g(s().useOptions,oe(e)));var u=a(),c=u.data,d=u.columns,v=u.initialState,h=u.defaultColumn,y=u.getSubRows,b=u.getRowId,R=u.stateReducer,I=u.useControlledState,P=m(R),B=t.useCallback((function(e,t){if(!t.type)throw console.info({action:t}),new Error("Unknown Action 👆");return[].concat(s().stateReducers,Array.isArray(P())?P():[P()]).reduce((function(n,r){return r(n,t,e,a())||n}),e)}),[s,P,a]),D=t.useReducer(B,void 0,(function(){return B(v,{type:l.init})})),k=D[0],A=D[1],O=g([].concat(s().useControlledState,[I]),k,{instance:a()});Object.assign(a(),{state:O,dispatch:A});var F=t.useMemo((function(){return x(g(s().columns,d,{instance:a()}))}),[s,a,d].concat(g(s().columnsDeps,[],{instance:a()})));a().columns=F;var M=t.useMemo((function(){return g(s().allColumns,C(F),{instance:a()}).map(S)}),[F,s,a].concat(g(s().allColumnsDeps,[],{instance:a()})));a().allColumns=M;var T=t.useMemo((function(){for(var e=[],t=[],n={},r=[].concat(M);r.length;){var o=r.shift();ae({data:c,rows:e,flatRows:t,rowsById:n,column:o,getRowId:b,getSubRows:y,accessValueHooks:s().accessValue,getInstance:a})}return[e,t,n]}),[M,c,b,y,s,a]),N=T[0],G=T[1],L=T[2];Object.assign(a(),{rows:N,initialRows:[].concat(N),flatRows:G,rowsById:L}),p(s().useInstanceAfterData,a());var z=t.useMemo((function(){return g(s().visibleColumns,M,{instance:a()}).map((function(e){return E(e,h)}))}),[s,M,a,h].concat(g(s().visibleColumnsDeps,[],{instance:a()})));M=t.useMemo((function(){var e=[].concat(z);return M.forEach((function(t){e.find((function(e){return e.id===t.id}))||e.push(t)})),e}),[M,z]),a().allColumns=M;var H=t.useMemo((function(){return g(s().headerGroups,function(e,t,n){void 0===n&&(n=function(){return{}});for(var r=[],i=e,a=0,l=function(){return a++},s=function(){var e={headers:[]},a=[],s=i.some((function(e){return e.parent}));i.forEach((function(r){var i,u=[].concat(a).reverse()[0];s&&(i=r.parent?o({},r.parent,{originalId:r.parent.id,id:r.parent.id+"_"+l(),headers:[r]},n(r)):E(o({originalId:r.id+"_placeholder",id:r.id+"_placeholder_"+l(),placeholderOf:r,headers:[r]},n(r)),t),u&&u.originalId===i.originalId?u.headers.push(r):a.push(i)),e.headers.push(r)})),r.push(e),i=a};i.length;)s();return r.reverse()}(z,h),a())}),[s,z,h,a].concat(g(s().headerGroupsDeps,[],{instance:a()})));a().headerGroups=H;var j=t.useMemo((function(){return H.length?H[0].headers:[]}),[H]);a().headers=j,a().flatHeaders=H.reduce((function(e,t){return[].concat(e,t.headers)}),[]),p(s().useInstanceBeforeDimensions,a());var W=z.filter((function(e){return e.isVisible})).map((function(e){return e.id})).sort().join("_");z=t.useMemo((function(){return z.filter((function(e){return e.isVisible}))}),[z,W]),a().visibleColumns=z;var V=ie(j),X=V[0],U=V[1],Y=V[2];return a().totalColumnsMinWidth=X,a().totalColumnsWidth=U,a().totalColumnsMaxWidth=Y,p(s().useInstance,a()),[].concat(a().flatHeaders,a().allColumns).forEach((function(e){e.render=w(a(),e),e.getHeaderProps=f(s().getHeaderProps,{instance:a(),column:e}),e.getFooterProps=f(s().getFooterProps,{instance:a(),column:e})})),a().headerGroups=t.useMemo((function(){return H.filter((function(e,t){return e.headers=e.headers.filter((function(e){return e.headers?function e(t){return t.filter((function(t){return t.headers?e(t.headers):t.isVisible})).length}(e.headers):e.isVisible})),!!e.headers.length&&(e.getHeaderGroupProps=f(s().getHeaderGroupProps,{instance:a(),headerGroup:e,index:t}),e.getFooterGroupProps=f(s().getFooterGroupProps,{instance:a(),headerGroup:e,index:t}),!0)}))}),[H,a,s]),a().footerGroups=[].concat(a().headerGroups).reverse(),a().prepareRow=t.useCallback((function(e){e.getRowProps=f(s().getRowProps,{instance:a(),row:e}),e.allCells=M.map((function(t){var n=e.values[t.id],r={column:t,row:e,value:n};return r.getCellProps=f(s().getCellProps,{instance:a(),cell:r}),r.render=w(a(),t,{row:e,cell:r,value:n}),r})),e.cells=z.map((function(t){return e.allCells.find((function(e){return e.column.id===t.id}))})),p(s().prepareRow,e,{instance:a()})}),[s,a,M,z]),a().getTableProps=f(s().getTableProps,{instance:a()}),a().getTableBodyProps=f(s().getTableBodyProps,{instance:a()}),p(s().useFinalInstance,a()),a()},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(32735))},35509:(e,t,n)=>{e.exports=n(52178)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[698],{30439:(e,t,r)=>{r.d(t,{o:()=>y});var n=r(99940),a=r(97395),i=r(4594),c=r(78417);function o(e){return o="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},o(e)}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return function(e){if(Array.isArray(e))return l(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 l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={namespace:"share"},p={video:"thumbnail,_canBeConsumed",clip:"_parentVideo[rating],_canBeConsumed,_thumbnail",interactive:"_canBeConsumed,_parentVideo[rating],_parentClip,_thumbnail",series:"tallPoster",playlist:"cover"},y={getShareObject:function(e,t,r){return{url:"/api/share/find/".concat(e),key:"share:".concat(e),bootstrapName:"share:".concat(e),success:t,error:r}},sharedObjectsById:function(e){e.sort();var t=e.map((function(e){return"id=".concat(e)})),r=Object.keys(p).map((function(e){return"query.".concat(e,"=").concat(p[e])}));return{url:"{gateway}/v1/objects?".concat([].concat(u(t),u(r),["permissionFilterOption=".concat(c.r.StripMetadata)]).join("&")),key:"objects:".concat(e.join(","))}},sentShare:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).join(":");return{url:a._.urlBuilder("{gateway}/v1/users/me/share/sent-items",e),key:"sent:shares:".concat(t),normalizeOptions:d}},getSentDirectShareByObjectId:function(e){return{url:"{gateway}/v1/users/me/share/direct/sent-items?objectId=".concat(e),key:"direct:share:sent:object:".concat(e),normalizeOptions:d}},createDirectShare:function(e,t,r,a){return{url:"{gateway}/v1/share",key:"create:direct:share",data:e,type:n.k.POST,normalizeOptions:d,invalidationKeys:["direct:share:sent:object:".concat(e.objectId),"sent:shares"],success:t,error:r,always:a}},updateDirectShareRecipients:function(e,t,r,a,i){var c="direct:share:recipients:".concat(e);return{url:"{gateway}/v1/share/".concat(e,"/recipients"),key:"edit:direct:share",data:t,type:n.k.POST,normalizeOptions:d,invalidationKeys:"sent:shares",updateState:{keys:c,updateData:function(e){return!e[c]||t.recipients.length?e:Object.assign(Object.assign({},e),s({},c,[]))}},success:r,error:a,always:i}},removeDirectShareRecipient:function(e,t,r,i,c){var o="direct:share:recipients:".concat(e);return{url:a._.urlBuilder("{gateway}/v1/share/".concat(e,"/recipients"),{recipientId:t}),key:"remove:direct:share:recipient",type:n.k.DELETE,normalizeOptions:d,invalidationKeys:"sent:shares",updateState:{keys:o,updateData:function(e){return e[o]?Object.assign(Object.assign({},e),s({},o,[])):e}},success:r,error:i,always:c}},getDirectShareRecipientsById:function(e,t,r){var n=t.map((function(e){return"id=".concat(e.id)})).join("&");return{url:"{gateway}/v1/objects?".concat(n,"&query=userprofiles{customer.id:").concat(r,"}&query.classroom=customer{id:").concat(r,"}"),key:"direct:share:recipients:".concat(e)}},getRecipientsById:function(e,t){e.sort();var r=e.map((function(e){return"id=".concat(e)})).join("&");return{url:"{gateway}/v1/objects?".concat(r,"&query.user=avatar,userprofiles{customer.id:").concat(t,"}&query.classroom=customer{id:").concat(t,"}"),key:"share:recipients:".concat(e.join(","))}},getRecipientUsers:function(e,t){return{url:"{gateway}/v1/objects/".concat(e,"/users?query={limit:100}"),key:"share:recipients:".concat(e,":users"),success:t}},getHydratedRecipients:function(e,t){e.sort();var r={id:e};return t===i.E.User&&(r.query="yearGroups,avatar"),t===i.E.Classroom&&(r.query="users[count()]{limit:0}"),t===i.E.ClassroomGroup&&(r.query="classroom,users[count()]{limit:0}"),{url:a._.urlBuilder("{gateway}/v1/objects",r),key:"share:recipients:".concat(e.join(":"),":").concat(t)}},getObjectsSharedWithUser:function(e){var t={permissionFilterOption:c.r.StripMetadata};return e&&(t.cursor=e),{url:a._.urlBuilder("{gateway}/v1/users/me/share/received-items",t),key:"shared:with:me:".concat(e)}},getShareLinkByObjectId:function(e){return{url:"{gateway}/v1/share/links?objectId=".concat(e),key:"share:link:object:".concat(e),normalizeOptions:d,formatData:function(e){return Object.assign(Object.assign({},e),{linkExpireDate:e.linkExpireDate||null})}}},createShareLink:function(e,t,r,a){return{url:"{gateway}/v1/share/links",key:"create:share:link",type:n.k.POST,data:e,normalizeOptions:d,invalidationKeys:["share:link:object:".concat(e.resourceId),"privacy:".concat(e.resourceId),"sent:shares"],success:t,error:r,always:a}},editShareLink:function(e,t,r,a,i){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"edit:share:link",data:t,type:n.k.PUT,normalizeOptions:d,invalidationKeys:["share:".concat(e.id),"share:link:object:".concat(e.objectId),"sent:shares"],success:r,error:a,always:i}},deleteShareLink:function(e,t,r,a){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"delete:share:link",type:n.k.DELETE,normalizeOptions:d,invalidationKeys:["share:".concat(e.id),"share:link:object:".concat(e.objectId),"sent:shares"],success:t,error:r,always:a}},checkPassword:function(e,t,r,a){return{url:"/api/share/links/".concat(e,"/check-password"),key:"checkpassword:".concat(e),type:n.k.POST,data:{password:t},success:r,error:a}},getPrivacy:function(e){return{url:"{gateway}/v1/objects/".concat(e,"/access"),key:"privacy:".concat(e),normalize:!1}},updatePrivacy:function(e,t,r,a){return{url:"{gateway}/v1/share/links/".concat(e,"/privacy"),key:"update:privacy",type:n.k.PUT,data:{privacy:t},invalidationKeys:"privacy",normalize:!1,success:r,error:a}}}},61105:(e,t,r)=>{r.d(t,{C:()=>h,g:()=>g});var n,a=r(32735),i=r(23481),c=r(83914),o=r(36532),s=r(5960),u=r(93264),l=r(26361),d=r(35223);!function(e){e.Folder="category",e.CategoryTree="category_tree",e.CustomLibrary="custom_library",e.HostedLibrary="hosted_library",e.Exchange="exchange",e.Workspace="workspace",e.Video="video",e.Clip="clip",e.Interactive="interactive"}(n||(n={}));var p=r(1164);function y(e){return y="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},y(e)}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g,v="shared.shared-utils",f={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case n.HostedLibrary:case n.CustomLibrary:return e.name;case n.Exchange:return i.T.getPhrase(v,"exchange");case n.Workspace:return i.T.getPhrase(v,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case n.HostedLibrary:case n.CustomLibrary:return"bg-info";case n.Exchange:return"bg-green";case n.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,r;return!!(null===(r=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===r?void 0:r.length)},mapTypeToSvg:function(e){var t,r=(m(t={},p.L.Pdf,d.vn.FilePDF),m(t,p.L.Image,d.vn.FileImg),m(t,p.L.PowerPoint,d.vn.FilePowerpoint),m(t,p.L.Document,d.vn.FileWord),m(t,p.L.Excel,d.vn.FileExcel),m(t,p.L.Zip,d.vn.FileZip),m(t,p.L.File,d.vn.File),t)[e];return r||(r=d.vn.Folder),r},mapTypeToClass:function(e){switch(e){case p.L.Pdf:return"icon-red";case p.L.Image:return"icon-purple";case p.L.Document:return"icon-blue";case p.L.Excel:return"icon-green";case p.L.PowerPoint:return"icon-orange";case p.L.Zip:return"icon-teal";case p.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case p.L.Pdf:return i.T.getPhrase(v,"pdf");case p.L.Image:return i.T.getPhrase(v,"image");case p.L.Document:return i.T.getPhrase(v,"document");case p.L.Excel:return i.T.getPhrase(v,"spreadsheet");case p.L.PowerPoint:return i.T.getPhrase(v,"presentation");case p.L.Zip:return i.T.getPhrase(v,"zipArchive");case p.L.File:return i.T.getPhrase(v,"file");default:return""}}},b=i.T.encloseNamespace("shared.badges");function h(e){var t=e.type,r=e.data;if(!function(e,t){var r,n,a;return"boolean"==typeof t?!!t:e===g.Rating?t&&!!t.value:e===g.Resources?!!(null==t?void 0:t.length)||!!(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.length):e===g.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===g.Captions?!!(null==t?void 0:t.length)||!!(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.length):e===g.Status?"number"==typeof t:!!t}(t,r))return a.createElement(a.Fragment,null);var n=function(e,t){var r="";if(e===g.DurationApproximate&&(r="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===g.DurationExact&&(r="duration-badge"),e===g.Interactive&&(r="interactive-badge"),e===g.Rating&&(r="rating-badge ".concat(f.mapRatingToClass(t.value))),e===g.ProductionYear&&(r="production-year-badge"),e===g.Resources&&(r="resources-badge"),e===g.Captions)return"p-0";if(e===g.Status)return"badge ".concat(function(e){switch(e){case s.X.Published:return"bg-success";case s.X.Archived:case s.X.Rejected:return"bg-danger";case s.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case s.X.Pending:case s.X.Processing:return"bg-warning"}}(t));if(e===g.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===g.Count&&(r="count-badge px-1 rounded"),e===g.Restriction){var n=l.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(n)}return"".concat("badge"," ").concat(r)}(t,r);n="".concat(n," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var i=function(e,t){return e===g.Interactive?b("interactive"):e===g.DurationApproximate?u.T.ToDisplayDurationNewStyle(t):e===g.DurationExact?u.T.ToDisplayDuration(t):e===g.Rating?t.code:e===g.ProductionYear?t:e===g.Resources?b("resources"):e===g.Captions?a.createElement(c.x,{svgName:d.vn.CloseCaptionBadge}):e===g.Status?s.X[t]:e===g.Trending?a.createElement(a.Fragment,null,a.createElement(c.x,{svgName:d.vn.Trending}),a.createElement("span",{className:"ps-1"},t)):e===g.Count?t:e===g.Restriction?a.createElement(a.Fragment,null,a.createElement(c.x,{svgName:l.l.mapRestrictionToSvg(t.restrictions)}),a.createElement("span",null,l.l.mapRestrictionToText(t.restrictions,t.yearGroups))):void 0}(t,r),p=function(e,t){return e===g.Rating?{title:t.name,placement:"top"}:null}(t,r),y=e.inline&&"d-inline-block";return p?a.createElement("div",{className:"badge-wrapper d-inline"},a.createElement(o.u,Object.assign({},p,{spanHack:!0,spanHackClassName:y}),a.createElement("span",{className:n},i))):a.createElement("span",{className:"".concat(n," badge-wrapper")},i)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Resources="resources",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction"}(g||(g={}))},1164:(e,t,r)=>{var n;r.d(t,{L:()=>n}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(n||(n={}))},49080:(e,t,r)=>{var n;r.d(t,{F:()=>n}),function(e){e.Expired="Expired",e.Active="Active"}(n||(n={}))},93264:(e,t,r)=>{r.d(t,{T:()=>i});var n=r(9366),a=function(e,t,r){var n=t-(e=e.toString()).length;return n<=0?e:new Array(n+1).join(r)+e},i={ToDisplayDuration:function(e){if(!n.isNumber(e))return"";var t=new Date(e),r=t.getUTCHours(),i=a(t.getUTCMinutes(),2,"0"),c=a(t.getUTCSeconds(),2,"0");return r>0?"".concat(r,":").concat(i,":").concat(c):"".concat(i,":").concat(c)},ToDisplayDurationNewStyle:function(e){if(!n.isNumber(e))return"";var t=new Date(e),r=t.getUTCHours(),a=t.getUTCMinutes(),i=t.getUTCSeconds();if((r>0||a>0)&&i>=30&&(a+=1),r>0){var c=r>1?"hrs":"hr";return a>0?"".concat(r).concat(c," ").concat(a,"m"):"".concat(r," ").concat(c)}return a>0?"".concat(a,"m"):"".concat(i,"s")}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[698],{30439:(e,t,r)=>{r.d(t,{o:()=>y});var n=r(99940),a=r(97395),i=r(4594),c=r(78417);function o(e){return o="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},o(e)}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e){return function(e){if(Array.isArray(e))return l(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 l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d={namespace:"share"},p={video:"thumbnail,_canBeConsumed",clip:"_parentVideo[rating],_canBeConsumed,_thumbnail",interactive:"_canBeConsumed,_parentVideo[rating],_parentClip,_thumbnail",series:"tallPoster",playlist:"cover"},y={getShareObject:function(e,t,r){return{url:"/api/share/find/".concat(e),key:"share:".concat(e),bootstrapName:"share:".concat(e),success:t,error:r}},sharedObjectsById:function(e){e.sort();var t=e.map((function(e){return"id=".concat(e)})),r=Object.keys(p).map((function(e){return"query.".concat(e,"=").concat(p[e])}));return{url:"{gateway}/v1/objects?".concat([].concat(u(t),u(r),["permissionFilterOption=".concat(c.r.StripMetadata)]).join("&")),key:"objects:".concat(e.join(","))}},sentShare:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.values(e).join(":");return{url:a._.urlBuilder("{gateway}/v1/users/me/share/sent-items",e),key:"sent:shares:".concat(t),normalizeOptions:d}},getSentDirectShareByObjectId:function(e){return{url:"{gateway}/v1/users/me/share/direct/sent-items?objectId=".concat(e),key:"direct:share:sent:object:".concat(e),normalizeOptions:d}},createDirectShare:function(e,t,r,a){return{url:"{gateway}/v1/share",key:"create:direct:share",data:e,type:n.k.POST,normalizeOptions:d,invalidationKeys:["direct:share:sent:object:".concat(e.objectId),"sent:shares"],success:t,error:r,always:a}},updateDirectShareRecipients:function(e,t,r,a,i){var c="direct:share:recipients:".concat(e);return{url:"{gateway}/v1/share/".concat(e,"/recipients"),key:"edit:direct:share",data:t,type:n.k.POST,normalizeOptions:d,invalidationKeys:"sent:shares",updateState:{keys:c,updateData:function(e){return!e[c]||t.recipients.length?e:Object.assign(Object.assign({},e),s({},c,[]))}},success:r,error:a,always:i}},removeDirectShareRecipient:function(e,t,r,i,c){var o="direct:share:recipients:".concat(e);return{url:a._.urlBuilder("{gateway}/v1/share/".concat(e,"/recipients"),{recipientId:t}),key:"remove:direct:share:recipient",type:n.k.DELETE,normalizeOptions:d,invalidationKeys:"sent:shares",updateState:{keys:o,updateData:function(e){return e[o]?Object.assign(Object.assign({},e),s({},o,[])):e}},success:r,error:i,always:c}},getDirectShareRecipientsById:function(e,t,r){var n=t.map((function(e){return"id=".concat(e.id)})).join("&");return{url:"{gateway}/v1/objects?".concat(n,"&query=userprofiles{customer.id:").concat(r,"}&query.classroom=customer{id:").concat(r,"}"),key:"direct:share:recipients:".concat(e)}},getRecipientsById:function(e,t){e.sort();var r=e.map((function(e){return"id=".concat(e)})).join("&");return{url:"{gateway}/v1/objects?".concat(r,"&query.user=avatar,userprofiles{customer.id:").concat(t,"}&query.classroom=customer{id:").concat(t,"}"),key:"share:recipients:".concat(e.join(","))}},getRecipientUsers:function(e,t){return{url:"{gateway}/v1/objects/".concat(e,"/users?query={limit:100}"),key:"share:recipients:".concat(e,":users"),success:t}},getHydratedRecipients:function(e,t){e.sort();var r={id:e};return t===i.E.User&&(r.query="yearGroups,avatar"),t===i.E.Classroom&&(r.query="users[count()]{limit:0}"),t===i.E.ClassroomGroup&&(r.query="classroom,users[count()]{limit:0}"),{url:a._.urlBuilder("{gateway}/v1/objects",r),key:"share:recipients:".concat(e.join(":"),":").concat(t)}},getObjectsSharedWithUser:function(e){var t={permissionFilterOption:c.r.StripMetadata};return e&&(t.cursor=e),{url:a._.urlBuilder("{gateway}/v1/users/me/share/received-items",t),key:"shared:with:me:".concat(e)}},getShareLinkByObjectId:function(e){return{url:"{gateway}/v1/share/links?objectId=".concat(e),key:"share:link:object:".concat(e),normalizeOptions:d,formatData:function(e){return Object.assign(Object.assign({},e),{linkExpireDate:e.linkExpireDate||null})}}},createShareLink:function(e,t,r,a){return{url:"{gateway}/v1/share/links",key:"create:share:link",type:n.k.POST,data:e,normalizeOptions:d,invalidationKeys:["share:link:object:".concat(e.resourceId),"privacy:".concat(e.resourceId),"sent:shares"],success:t,error:r,always:a}},editShareLink:function(e,t,r,a,i){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"edit:share:link",data:t,type:n.k.PUT,normalizeOptions:d,invalidationKeys:["share:".concat(e.id),"share:link:object:".concat(e.objectId),"sent:shares"],success:r,error:a,always:i}},deleteShareLink:function(e,t,r,a){return{url:"{gateway}/v1/share/links/".concat(e.id),key:"delete:share:link",type:n.k.DELETE,normalizeOptions:d,invalidationKeys:["share:".concat(e.id),"share:link:object:".concat(e.objectId),"sent:shares"],success:t,error:r,always:a}},checkPassword:function(e,t,r,a){return{url:"/api/share/links/".concat(e,"/check-password"),key:"checkpassword:".concat(e),type:n.k.POST,data:{password:t},success:r,error:a}},getPrivacy:function(e){return{url:"{gateway}/v1/objects/".concat(e,"/access"),key:"privacy:".concat(e),normalize:!1}},updatePrivacy:function(e,t,r,a){return{url:"{gateway}/v1/share/links/".concat(e,"/privacy"),key:"update:privacy",type:n.k.PUT,data:{privacy:t},invalidationKeys:"privacy",normalize:!1,success:r,error:a}}}},61105:(e,t,r)=>{r.d(t,{C:()=>h,g:()=>g});var n,a=r(32735),i=r(23481),c=r(83914),o=r(36532),s=r(5960),u=r(93264),l=r(26361),d=r(35223);!function(e){e.Folder="category",e.CategoryTree="category_tree",e.CustomLibrary="custom_library",e.HostedLibrary="hosted_library",e.Exchange="exchange",e.Workspace="workspace",e.Video="video",e.Clip="clip",e.Interactive="interactive"}(n||(n={}));var p=r(1164);function y(e){return y="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},y(e)}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g,v="shared.shared-utils",f={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case n.HostedLibrary:case n.CustomLibrary:return e.name;case n.Exchange:return i.T.getPhrase(v,"exchange");case n.Workspace:return i.T.getPhrase(v,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case n.HostedLibrary:case n.CustomLibrary:return"bg-info";case n.Exchange:return"bg-green";case n.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,r;return!!(null===(r=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===r?void 0:r.length)},mapTypeToSvg:function(e){var t=m(m(m(m(m(m(m({},p.L.Pdf,d.vn.FilePDF),p.L.Image,d.vn.FileImg),p.L.PowerPoint,d.vn.FilePowerpoint),p.L.Document,d.vn.FileWord),p.L.Excel,d.vn.FileExcel),p.L.Zip,d.vn.FileZip),p.L.File,d.vn.File)[e];return t||(t=d.vn.Folder),t},mapTypeToClass:function(e){switch(e){case p.L.Pdf:return"icon-red";case p.L.Image:return"icon-purple";case p.L.Document:return"icon-blue";case p.L.Excel:return"icon-green";case p.L.PowerPoint:return"icon-orange";case p.L.Zip:return"icon-teal";case p.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case p.L.Pdf:return i.T.getPhrase(v,"pdf");case p.L.Image:return i.T.getPhrase(v,"image");case p.L.Document:return i.T.getPhrase(v,"document");case p.L.Excel:return i.T.getPhrase(v,"spreadsheet");case p.L.PowerPoint:return i.T.getPhrase(v,"presentation");case p.L.Zip:return i.T.getPhrase(v,"zipArchive");case p.L.File:return i.T.getPhrase(v,"file");default:return""}}},b=i.T.encloseNamespace("shared.badges");function h(e){var t=e.type,r=e.data;if(!function(e,t){var r,n,a;return"boolean"==typeof t?!!t:e===g.Rating?t&&!!t.value:e===g.Resources?!!(null==t?void 0:t.length)||!!(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.length):e===g.Interactive?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===g.Captions?!!(null==t?void 0:t.length)||!!(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.length):e===g.Status?"number"==typeof t:!!t}(t,r))return a.createElement(a.Fragment,null);var n=function(e,t){var r="";if(e===g.DurationApproximate&&(r="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===g.DurationExact&&(r="duration-badge"),e===g.Interactive&&(r="interactive-badge"),e===g.Rating&&(r="rating-badge ".concat(f.mapRatingToClass(t.value))),e===g.ProductionYear&&(r="production-year-badge"),e===g.Resources&&(r="resources-badge"),e===g.Captions)return"p-0";if(e===g.Status)return"badge ".concat(function(e){switch(e){case s.X.Published:return"bg-success";case s.X.Archived:case s.X.Rejected:return"bg-danger";case s.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case s.X.Pending:case s.X.Processing:return"bg-warning"}}(t));if(e===g.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===g.Count&&(r="count-badge px-1 rounded"),e===g.Restriction){var n=l.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(n)}return"".concat("badge"," ").concat(r)}(t,r);n="".concat(n," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var i=function(e,t){return e===g.Interactive?b("interactive"):e===g.DurationApproximate?u.T.ToDisplayDurationNewStyle(t):e===g.DurationExact?u.T.ToDisplayDuration(t):e===g.Rating?t.code:e===g.ProductionYear?t:e===g.Resources?b("resources"):e===g.Captions?a.createElement(c.x,{svgName:d.vn.CloseCaptionBadge}):e===g.Status?s.X[t]:e===g.Trending?a.createElement(a.Fragment,null,a.createElement(c.x,{svgName:d.vn.Trending}),a.createElement("span",{className:"ps-1"},t)):e===g.Count?t:e===g.Restriction?a.createElement(a.Fragment,null,a.createElement(c.x,{svgName:l.l.mapRestrictionToSvg(t.restrictions)}),a.createElement("span",null,l.l.mapRestrictionToText(t.restrictions,t.yearGroups))):void 0}(t,r),p=function(e,t){return e===g.Rating?{title:t.name,placement:"top"}:null}(t,r),y=e.inline&&"d-inline-block";return p?a.createElement("div",{className:"badge-wrapper d-inline"},a.createElement(o.u,Object.assign({},p,{spanHack:!0,spanHackClassName:y}),a.createElement("span",{className:n},i))):a.createElement("span",{className:"".concat(n," badge-wrapper")},i)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Resources="resources",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction"}(g||(g={}))},1164:(e,t,r)=>{var n;r.d(t,{L:()=>n}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(n||(n={}))},49080:(e,t,r)=>{var n;r.d(t,{F:()=>n}),function(e){e.Expired="Expired",e.Active="Active"}(n||(n={}))},93264:(e,t,r)=>{r.d(t,{T:()=>i});var n=r(9366),a=function(e,t,r){var n=t-(e=e.toString()).length;return n<=0?e:new Array(n+1).join(r)+e},i={ToDisplayDuration:function(e){if(!n.isNumber(e))return"";var t=new Date(e),r=t.getUTCHours(),i=a(t.getUTCMinutes(),2,"0"),c=a(t.getUTCSeconds(),2,"0");return r>0?"".concat(r,":").concat(i,":").concat(c):"".concat(i,":").concat(c)},ToDisplayDurationNewStyle:function(e,t){if(!n.isNumber(e))return"";var r=new Date(e),a=r.getUTCHours(),i=r.getUTCMinutes(),c=r.getUTCSeconds();if((a>0||i>0)&&c>=30&&(i+=1),a>0){var o=a>1?"hrs":"hr";return i>0?t&&c>0?"".concat(a).concat(o," ").concat(i,"m ").concat(c,"s"):"".concat(a).concat(o," ").concat(i,"m "):"".concat(a," ").concat(o)}return i>0?t&&c>0?"".concat(i,"m ").concat(c,"s"):"".concat(i,"m"):"".concat(c,"s")}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[84],{10731:(e,t,r)=>{r.d(t,{V:()=>i});var n=r(32735);const a={emoji:"d86p2"};function i(e){return n.createElement(n.Fragment,null,n.createElement("span",{className:a.emoji},e.emoji),e.children)}},28972:(e,t,r)=>{var n;r.d(t,{w:()=>n}),function(e){e[e.Correct=0]="Correct",e[e.Incorrect=1]="Incorrect",e[e.AwaitingMarking=2]="AwaitingMarking",e[e.Answered=3]="Answered",e[e.UnAnswered=4]="UnAnswered",e[e.NotApplicable=5]="NotApplicable"}(n||(n={}))},8246:(e,t,r)=>{var n;r.d(t,{N:()=>n}),function(e){e[e.Incorrect=0]="Incorrect",e[e.Correct=1]="Correct",e[e.PendingReview=2]="PendingReview"}(n||(n={}))},52622:(e,t,r)=>{r.d(t,{v:()=>j});var n=r(32735),a=r(50242),i=r(81886),o=r(67058),c=r(23481),u=r(64364);function l(e){return l="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},l(e)}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,a=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===l(a)?a:String(a)),n)}var a}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var m="shared.privateResourceError",v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(o,e);var t,r,n,a,i=(n=o,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=d(n);if(a){var r=d(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===l(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)}(this,e)});function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,c.T.getPhrase(m,"title"))}return t=o,(r=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(m,"heading")}},{key:"description",get:function(){return c.T.getPhrase(m,"description")}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(u.H);function y(e){return y="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},y(e)}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,a=function(e,t){if("object"!==y(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===y(a)?a:String(a)),n)}var a}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var h="shared.regionLockedResourceError",w=function(e){!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&&b(e,t)}(o,e);var t,r,n,a,i=(n=o,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=g(n);if(a){var r=g(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===y(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)}(this,e)});function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,c.T.getPhrase(h,"title"))}return t=o,(r=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return c.T.getPhrase(h,"heading")}},{key:"description",get:function(){return c.T.getPhrase(h,"description")}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(u.H),E=r(49075),S={notFound:o.d,forbidden:{rating:v,yearLevel:v,region:w,privacy:v},badRequest:E._};function I(e){return e.map((function(e){return e.statusCode})).join(":")}function j(e,t,r){var o=Array.isArray(e)?e:[e];(0,n.useEffect)((function(){o.forEach((function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var n;n="number"==typeof e?e:e.status;var o=Object.assign(Object.assign({},S),t);n&&i.Q.Ry.isStatusCodeError(n)&&(n!==a.o.NotFound?n!==a.o.Forbidden?r.badRequest||i.Q.Ry.throw(new o.badRequest):r.forbidden||i.Q.Ry.throw(new o.forbidden.privacy):r.notFound||i.Q.Ry.throw(new o.notFound))}}(e.statusCode,t,r)}))}),[I(o),t,r])}},83140:(e,t,r)=>{r.d(t,{A:()=>y});var n=r(28972),a=r(8246),i=r(60522);function o(e){return o="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},o(e)}function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(){return n.w.NotApplicable}function l(e,t){var r=e.actionableItems.filter((function(e){return e.isCorrect}));return r.every((function(e){return!t(e.id)}))?n.w.UnAnswered:r.every((function(e){var r;return e.name.trim().toLowerCase()===(null===(r=t(e.id))||void 0===r?void 0:r.trim().toLowerCase())}))?n.w.Correct:n.w.Incorrect}function s(e,t){return e.actionableItems.every((function(e){return!t(e.id)}))?n.w.UnAnswered:e.actionableItems.filter((function(e){return e.isCorrect})).every((function(e){return t(e.id)===e.name}))?n.w.Correct:n.w.Incorrect}function f(e,t){var r;return e.actionableItems.forEach((function(e){var i=t(e.id);r=i?i.status!==a.N.Correct?i.status!==a.N.Incorrect?n.w.AwaitingMarking:n.w.Incorrect:n.w.Correct:n.w.UnAnswered})),r}function d(e,t){return function(r){var n=t.attempts.find((function(t){return t.id===e.id}));return null==n?void 0:n.answers.find((function(e){return e.id===r}))}}function m(e,t){var r=d(e,t);return s(e,(function(e){var t=r(e);return null==t?void 0:t.text}))}var v=c(c(c(c(c(c({},i.Z9.Annotation,u),i.Z9.Image,u),i.Z9.MissingWord,(function(e,t){var r=d(e,t);return l(e,(function(e){var t=r(e);return null==t?void 0:t.text}))})),i.Z9.MultipleChoice,m),i.Z9.ShortAnswer,(function(e,t){return f(e,d(e,t))})),i.Z9.TrueOrFalse,m),y={notApplicable:u,awaitingMarking:function(){return n.w.AwaitingMarking},isMissingWordCorrect:l,isMultipleChoiceCorrect:s,isShortAnswerMarkedCorrect:f,isInteractionCorrect:function(e,t){return(0,v[e.typeId])(e,t)}}},80845:(e,t,r)=>{r.d(t,{Q:()=>l,Wn:()=>o,f6:()=>u,j_:()=>c});var n=r(75896),a=r(60522);function i(e){return e.typeId!==a.Z9.Annotation&&e.typeId!==a.Z9.Image}function o(e){return n.m.flatten(e.timepoints.map((function(e){return e.interactions})))}function c(e){return n.m.last(e.results)}function u(e,t){return n.m.findWhere(null==t?void 0:t.attempts,{id:e})}function l(e){return o(e).filter(i)}},73238:(e,t,r)=>{r.d(t,{d:()=>d});var n=r(32735),a=r(23481),i=r(57408),o=r(10731),c=r(92209),u=r(28512),l=r(99827),s=r(22628),f=a.T.encloseNamespace("interactives.markingRequiredAlert");function d(e){var t=(0,l.b)(),r=function(e,t){var r=0;return t.students.forEach((function(t){var n=(0,s.Rt)(e,t);r+=n.awaitingMarking})),r}(e.interactive,e.results);return r?n.createElement("div",{className:"alert bg-white box-shadow",role:"alert"},n.createElement(o.V,{emoji:"👋"},f("markingRequired",{smartCount:r}))," ",n.createElement(i.F,{className:"text-info",appLink:{application:u.O.INTERACTIVES,action:c.e.Interactives.QUESTION_LIST,args:[e.interactiveMetadataId],params:t}},f("seeQuestions"))):n.createElement(n.Fragment,null)}},76264:(e,t,r)=>{r.d(t,{O:()=>l});var n=r(32735),a=r(23481),i=r(91736),o=r(36532),c=a.T.encloseNamespace("interactives.pendingIndicator");function u(e){var t="d-flex align-items-center h-100";return t+=e.showLabel?" justify-content-between":" justify-content-center",e.className&&(t+=" ".concat(e.className)),t}function l(e){var t=function(){return n.createElement("div",{className:u(e)},!!e.showLabel&&n.createElement("em",null,c("pending")),n.createElement(i.O,null))};return e.title?n.createElement(o.u,{title:e.title,spanHack:!0,spanHackClassName:"h-100 w-100 d-flex align-items-center"},n.createElement(t,null)):n.createElement(t,null)}},99943:(e,t,r)=>{r.d(t,{b:()=>c});var n=r(32735),a=r(99827),i=r(83850);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){var t,r,c=(t=(0,n.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=c[0],l=c[1],s=(0,i.u)((0,a.b)());return(0,n.useEffect)((function(){l((function(e){return!e}))}),[e.isFetching]),(0,n.useEffect)((function(){l((function(e){return!e}))}),[s]),u}},54679:(e,t,r)=>{r.d(t,{Y:()=>c});var n=r(32735),a=r(2948),i=r(79489);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){var t,r,c,u=(r=(0,a.D)(i.y.AUDIENCE_FILTER_SELECTED_COUNT),c=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(r,c)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(r,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];(0,n.useEffect)((function(){e.data?u(e.data.studentCount):u(null)}),[null===(t=e.data)||void 0===t?void 0:t.studentCount])}},84049:(e,t,r)=>{r.d(t,{P:()=>f});var n=r(32735),a=r(2948),i=r(16714),o=r(22902),c=r(79489),u=r(99827),l=r(39553);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e){var t,r,f=(0,(0,o.T)().hasPermissions)(i.C.ViewCustomerAnalytics),d=(0,u.R)(),m=f&&!!d,v=(0,l.W)(m&&e,{start:null==d?void 0:d.start,end:null==d?void 0:d.end}),y=(t=(0,a.D)(c.y.AUDIENCE_FILTER_SUGGESTIONS),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];(0,n.useEffect)((function(){var e,t;v.data&&y("users",null===(t=null===(e=v.data)||void 0===e?void 0:e.students)||void 0===t?void 0:t.map((function(e){return e.user.id})))}),[v.isFetching])}},28073:(e,t,r)=>{r.r(t),r.d(t,{InteractiveStudentResultsListView:()=>me});var n=r(32735),a=r(23481),i=r(20354),o=r(30321),c=r(52622),u=r(79612),l=r(91470),s=r(94884),f=r(36630),d=r(55554),m=r(87480),v=r(21295),y=r(71270),p=r(73238),b=r(39553),g=r(23178),h=r(99943),w=r(54679),E=r(84049),S=r(81886),I=r(75896),j=r(15800),O=r(52301),A=r(92209),C=r(55884),N=r(28512),R=r(2948),M=r(91736),T=r(80845),k=r(79489),_=r(22628),x=r(39709),P=r(76264),L=r(28162),U=r(71151),F=r(86572),H=r(93264),B=r(84120);const D={container:"ZmiBS",interaction:"x50zR"};function Z(e){return e.duration?n.createElement(n.Fragment,null,e.interactive.timepoints.map((function(t,r){if(!t.interactions.length)return n.createElement(n.Fragment,null);var a,i,o=(a=t,i=e.selectedInteraction,a.interactions.find((function(e){return e.id===i.id}))||a.interactions[0]),c=o.id===e.selectedInteraction.id,u=c?B.w.getTypeInfo(o.typeId).bgClassName:"bg-secondary",l=t.visibleAt/1e3/e.duration*100;return n.createElement("div",{key:r,className:"".concat(D.container," text-center"),style:{left:"".concat(l,"%")}},n.createElement("div",{className:"".concat(D.interaction," ").concat(u)}),!!c&&n.createElement("div",null,H.T.ToDisplayDuration(t.visibleAt)))}))):n.createElement(n.Fragment,null)}var q=a.T.encloseNamespace("interactives.interactionResultsSummary");function Q(e){var t,r=n.useMemo((function(){return(0,_.nq)(e.interaction,e.results)}),[e.interaction,e.results]);return n.createElement("div",{className:"px-1 pt-1"},n.createElement("div",{className:"d-flex"},n.createElement(F.y,{interaction:e.interaction,iconClassName:"flex-shrink-0"})),n.createElement("div",{className:"my-4 ".concat("qYEte")},n.createElement(Z,{interactive:e.interactive,duration:(t=e.interactiveMetadata,t._parentClip?t._parentClip.endTime-t._parentClip.startTime:t._parentVideo.duration?t._parentVideo.duration/1e3:0),selectedInteraction:e.interaction})),n.createElement("div",{className:"row pt-1 pb-2"},n.createElement("div",{className:"col-6 pe-1"},n.createElement("div",{className:"bg-light rounded p-2 h-100"},!r.awaitingMarking&&n.createElement("div",{className:"d-flex align-items-center justify-content-between"},n.createElement("strong",null,q("correctlyAnswered")),n.createElement(M.O,{percentage:r.percentCorrect,layout:M.I.LabelOnly})),!!r.awaitingMarking&&n.createElement("div",{className:"d-flex align-items-center justify-content-center"},n.createElement("strong",null,n.createElement("em",null,q("pending")))))),n.createElement("div",{className:"col-6 ps-1"},n.createElement("div",{className:"bg-light rounded h-100 p-2 d-flex align-items-center justify-content-between"},n.createElement("strong",null,q("unanswered")),n.createElement("span",null,r.unanswered)))))}var Y=n.forwardRef((function(e,t){var r=e.interaction,a=e.interactive,i=e.interactiveMetadata,o=e.results,c=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["interaction","interactive","interactiveMetadata","results"]);return n.createElement("div",{className:"popover-lg"},n.createElement(U.Z,Object.assign({id:"interaction-results-summary-".concat(r.id),ref:t},c),n.createElement(U.Z.Body,null,n.createElement(Q,{interaction:r,interactive:a,interactiveMetadata:i,results:o}))))}));const V={header:"ZHqWY",row:"CCiZ5",fixedTable:"zNLHs",interactionHeaderCellOuter:"sC5wg",hasResults:"uUwHL",interactionHeaderCellInner:"ERSej",resultsCellOuter:"Sn4ms",correct:"Nj5eZ",incorrect:"JEARA",awaitingMarking:"JE8zh",unanswered:"zYr_C",highlightColumn:"wiHZ3",resultsCellInner:"YZpVs",highlightResultsRow:"kOJn_",resultsRow:"ryI2A"};function W(e){var t;return n.createElement(L.Z,{trigger:(null===(t=e.results.students)||void 0===t?void 0:t.length)?"click":null,placement:"bottom",overlay:n.createElement(Y,{interaction:e.interaction,interactive:e.interactive,interactiveMetadata:e.interactiveMetadata,results:e.results}),rootClose:!0},n.createElement("div",{className:"text-center h-100\n d-flex align-items-center justify-content-center\n ".concat(V.interactionHeaderCellInner),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},n.createElement("div",{className:"p-1 position-relative"},e.interactionNumber)))}var $=r(83914),K=r(28972),z=r(83140),J=r(35223);function G(e){var t="".concat(V.resultsCellInner," h-100 position-relative");return e===K.w.Correct&&(t+=" ".concat(V.correct," text-success")),e===K.w.Incorrect&&(t+=" ".concat(V.incorrect," text-danger")),e===K.w.AwaitingMarking&&(t+=" ".concat(V.awaitingMarking)),e===K.w.UnAnswered&&(t+=" ".concat(V.unanswered," text-warning")),t}function X(e){var t=z.A.isInteractionCorrect(e.interaction,(0,T.j_)(e.studentResults)),r=function(e){return e===K.w.Correct?J.vn.Check:e===K.w.Incorrect?J.vn.Close:e===K.w.UnAnswered?J.vn.Minus:void 0}(t);return n.createElement("div",{className:G(t)},!!r&&n.createElement($.x,{svgName:r}),t===K.w.AwaitingMarking&&n.createElement(P.O,null))}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var re=a.T.encloseNamespace("interactives.studentResultsTable"),ne=60;function ae(e){var t;return n.createElement("div",{className:"d-flex align-items-center p-2 h-100 ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.children)}function ie(e){return n.createElement(ae,{className:e.column.isSorted&&"fw-bold"},re(e.phraseKey))}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ce=a.T.encloseNamespace("interactives.studentResultsTable"),ue={table:"".concat(V.fixedTable," bg-white rounded-start"),header:"".concat(V.header," border-bottom"),headerRow:"h-100",headerCell:"d-flex align-items-center justify-content-start",row:V.row},le={header:"".concat(V.header," fw-bold"),headerRow:"h-100",headerCell:"".concat(V.interactionHeaderCellOuter," bg-white border-bottom"),row:"".concat(V.row," ").concat(V.resultsRow),cell:V.resultsCellOuter};function se(e,t,r){S.Q.C$.trigger({application:N.O.INTERACTIVES,action:A.e.Interactives.STUDENT_RESULTS,args:[e,t],params:r?{interactionId:r}:{}})}function fe(e){var t,r,a,i,o,c,u=(o=n.useState(),c=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(o,c)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oe(e,t):void 0}}(o,c)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=u[0],s=u[1],f=n.useRef(),d=(t=e.results,a=ee((0,R.D)(k.y.ANONYMISE_USERS),1)[0],i=!!(null===(r=t.students)||void 0===r?void 0:r.length),n.useMemo((function(){return[{Header:function(e){var t=e.column;return n.createElement(ie,{column:t,phraseKey:"name"})},accessor:"user",Cell:function(e){var t=e.value;return n.createElement(ae,null,n.createElement("span",{className:"text-truncate"},(0,x.B)(t,a)))},disableSortBy:!i},{Header:function(e){var t=e.column;return n.createElement(ie,{column:t,phraseKey:"unanswered"})},accessor:"summary.unanswered",sortType:"basic",sortDescFirst:!0,disableSortBy:!i,Cell:function(e){var t=e.value;return n.createElement(ae,null,t)}},{Header:function(e){var t=e.column;return n.createElement(ie,{column:t,phraseKey:"score"})},accessor:"summary",id:"score",Cell:function(e){var t=e.value;return t.awaitingMarking?n.createElement(ae,null,n.createElement(P.O,{title:re("markingRequired"),className:"flex-grow-1",showLabel:!0})):n.createElement(ae,null,"".concat(t.correct,"/").concat(t.answered+t.unanswered))},width:125,sortDescFirst:!0,disableSortBy:!i},{Header:function(e){var t=e.column;return n.createElement(ie,{column:t,phraseKey:"percentage"})},accessor:"summary",id:"percentage",Cell:function(e){var t=e.value;return t.awaitingMarking?n.createElement(ae,null,n.createElement(P.O,{title:re("markingRequired"),className:"flex-grow-1",showLabel:!0})):n.createElement(ae,null,n.createElement(M.O,{percentage:t.percentCorrect,layout:M.I.LabelBefore,className:"flex-grow-1"}))},width:125,sortDescFirst:!0,disableSortBy:!i}]}),[a,i])),m=function(e,t,r,a,i){return n.useMemo((function(){return(0,T.Q)(e).map((function(i,o){return{Header:function(){return n.createElement(W,{interaction:i,results:r,interactive:e,interactiveMetadata:t,interactionNumber:o+1,onMouseEnter:function(){return a(o)},onMouseLeave:function(){return a(null)}})},accessor:"results",id:i.id,disableSortBy:!0,width:ne,Cell:function(e){var t=e.row.original;return n.createElement(X,{interaction:i,studentResults:t})}}}))}),[i])}(e.interactive,e.interactiveMetadata,e.results,(function(e){!function(e,t){if(e){var r=e.querySelectorAll(".".concat(V.resultsRow));null==r||r.forEach((function(e){e.childNodes.forEach((function(e,r){e.classList.remove(V.highlightColumn),r===t&&e.classList.add(V.highlightColumn)}))}))}}(f.current,e)}),e.refreshTable),v=function(e,t,r,a){var i=ee((0,R.D)(k.y.ANONYMISE_USERS),1)[0];return n.useMemo((function(){var r=[];if(t.students.forEach((function(t){r.push(Object.assign(Object.assign({},t),{summary:(0,_.Rt)(e,t)}))})),"user"===(null==a?void 0:a.id)){var n=I.m.sortBy(r,(function(e){return(0,x.B)(e.user,i)}));return a.desc?n.reverse():n}if("summary.unanswered"===(null==a?void 0:a.id)){var o=I.m.sortBy(r,(function(e){return e.summary.unanswered}));return a.desc?o.reverse():o}if("score"===(null==a?void 0:a.id)||"percentage"===(null==a?void 0:a.id)){var c=I.m.sortBy(r,(function(e){return e.summary.awaitingMarking?-1:e.summary.percentCorrect}));return a.desc?c.reverse():c}return r}),[r,a,i])}(e.interactive,e.results,e.refreshTable,I.m.first(l));function y(e){!function(e,t){if(e){var r=e.querySelectorAll(".".concat(V.resultsRow));null==r||r.forEach((function(e,r){e.classList.remove(V.highlightResultsRow),r===t&&e.classList.add(V.highlightResultsRow)}))}}(f.current,e)}return v.length?n.createElement("div",{className:"d-inline-block mw-100"},n.createElement("div",{ref:f,className:"d-flex".concat(v.length?" ".concat(V.hasResults):"")},n.createElement(O.i,{columns:d,data:v,theme:ue,onSelectRow:function(t){se(t.original.user.id,e.interactiveMetadata.id)},onRowMouseOver:function(e){return y(e.index)},onRowMouseLeave:function(){return y()},enableSort:!0,manualSort:!0,onSort:s}),n.createElement(O.i,{columns:m,data:v,theme:le,enableSlider:!0,scrollIncrement:8*ne,onSelectCell:function(t){se(t.row.original.user.id,e.interactiveMetadata.id,t.column.id)}}))):n.createElement(j.u,{className:"bg-white rounded-bottom py-5"},n.createElement(j.u.Image,{src:C.W.EmptyStates.Interactives.NoResponses}),n.createElement(j.u.Heading,null,ce("emptyStateHeading")),n.createElement(j.u.Info,null,ce("emptyStateDescription")))}var de=a.T.encloseNamespace("reportsInteractives.interactiveStudentResultsList");function me(e){var t,r,a,S=i.a.useBasicFetch(s.b.interactiveMetadata(e.interactiveMetadataId)),I=i.a.useBasicFetch((null===(t=S.data)||void 0===t?void 0:t.interactiveId)?s.b.interactive(S.data.interactiveId):null),j=(0,b.W)(e.interactiveMetadataId);(0,u.M)({title:de("pageTitle",{interactive:null===(r=S.data)||void 0===r?void 0:r.name})}),(0,m.U)(null===(a=S.data)||void 0===a?void 0:a.name),(0,d._)((0,v.yH)(S.data)),(0,E.P)(e.interactiveMetadataId),(0,w.Y)(j),(0,g.m)(e.interactiveMetadataId),(0,f.M)(S),(0,c.v)([S,j]),(0,o.b)(S);var O=(0,h.b)(j);return n.createElement(n.Fragment,null,n.createElement("div",null,n.createElement(y.l,{interactiveMetadataId:e.interactiveMetadataId}),!!I.data&&!!j.data&&n.createElement(p.d,{interactive:I.data,results:j.data,interactiveMetadataId:e.interactiveMetadataId}),S.data&&I.data&&j.data?n.createElement(fe,{interactive:I.data,interactiveMetadata:S.data,results:j.data,refreshTable:O}):n.createElement(l.I,null)))}},87480:(e,t,r)=>{r.d(t,{U:()=>c});var n=r(32735),a=r(2948),i=r(79489);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){var t,r,c=(t=(0,a.D)(i.y.HEADER_TITLE),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{if(!u&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw a}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1];(0,n.useEffect)((function(){return c(e),function(){c(null)}}),[e])}},82974:(e,t,r)=>{function n(e,t,r){var n="".concat(e,":").concat(t.start,":").concat(t.end),a=Array.isArray(t.userId)?t.userId.sort().join(":"):t.userId,i=Array.isArray(t.groupId)?t.groupId.sort().join(":"):t.groupId;return a&&(n+=":".concat(a)),i&&(n+=":".concat(i)),r&&(n+=":".concat(r)),n}r.d(t,{H:()=>n})},83850:(e,t,r)=>{function n(e){var t=[];return Object.keys(e).forEach((function(r){var n=e[r];n&&t.push("".concat(r,":").concat(Array.isArray(n)?n.join(","):n))})),t.join(":")}r.d(t,{u:()=>n})},22628:(e,t,r)=>{r.d(t,{HI:()=>l,Rt:()=>f,UU:()=>u,Zs:()=>c,nq:()=>s});var n=r(28972),a=r(8246),i=r(83140),o=r(80845);function c(e,t){return(0,o.Wn)(e).find((function(e){return e.id.toString()===t.toString()}))}function u(e){return"".concat(e.questionId,":").concat(e.resultId)}function l(e,t,r){var n=(0,o.j_)(t),i=(0,o.f6)(e,n);return(null==i?void 0:i.answers.every((function(e){var t;return(null===(t=r[u(e)])||void 0===t?void 0:t.status)===a.N.Correct})))?a.N.Correct:(null==i?void 0:i.answers.every((function(e){var t;return(null===(t=r[u(e)])||void 0===t?void 0:t.status)===a.N.Incorrect})))?a.N.Incorrect:void 0}function s(e,t){var r=t.students.length,a=0,c=0,u=0,l=0;return t.students.forEach((function(t){var r=(0,o.j_)(t);if(r){var s=i.A.isInteractionCorrect(e,r);s===n.w.Correct&&a++,s===n.w.UnAnswered&&u++,s===n.w.AwaitingMarking&&l++,s!==n.w.UnAnswered&&c++}})),{percentCorrect:r>0?a/r:0,correct:a,answered:c,unanswered:u,awaitingMarking:l}}function f(e,t){var r=(0,o.j_)(t),a=(0,o.Q)(e),c=a.length,u=0,l=0;a.forEach((function(e){var t=i.A.isInteractionCorrect(e,r);t===n.w.Correct&&u++,t===n.w.AwaitingMarking&&l++}));var s=c>0?u/c:0;return{answered:r.attempts.length,unanswered:c-r.attempts.length,percentCorrect:s,correct:u,awaitingMarking:l}}},39709:(e,t,r)=>{r.d(t,{B:()=>u,j:()=>l});var n=r(76198),a=r(23481),i=r(76881),o=r(55452),c=a.T.encloseNamespace("reportsShared.utils");function u(e,t){return t?(0,n._8)(function(e){var t=+"".concat(e.id).concat(Math.floor((new Date).getMinutes()/5));return{dictionaries:[n.O9,n.yd],separator:" ",length:2,style:"capital",seed:t}}(e)):o.l.getFullName(e)}function l(e){switch(e){case i.Y.Learner:return c("student");case i.Y.Staff:return c("staff");default:return e}}}}]);
|