PageSourceSearch

https://app.superbio.ai/_next/static/chunks/4149-3d592bd82d4c51cc.js

js superbio.ai collected 2026-10-03 22:56:47 UTC 79,335 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4149],{3572:(e,t,r)=>{var n=r(12438),o=0;e.exports=function(e){var t=++o;return n(e)+t}},22512:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(14232),o={},i={},a={};t.default=function(e){var t=(0,n.useState)({loaded:!1,error:!1}),r=t[0],c=t[1];return(0,n.useEffect)(function(){if((null==i?void 0:i[e])||(i[e]="init"),"loaded"===i[e])return void c({loaded:!0,error:!1});if("error"===i[e])return void c({loaded:!0,error:!0});var t,r=function(t){var r,n;t&&console.log("error loading the script"),null==(r=null==o?void 0:o[e])||r.forEach(function(e){return e(t)}),t&&a[e]?(null==(n=null==a?void 0:a[e])||n.remove(),i[e]="error"):i[e]="loaded",delete a[e]},n=function(e){c({loaded:!0,error:e})};return(null==a?void 0:a[e])||(a[e]=document.createElement("script"),a[e]&&(a[e].src=e,a[e].async=!0,document.body.append(a[e]),a[e].addEventListener("load",function(){return r(!1)}),a[e].addEventListener("error",function(){return r(!0)}),i[e]="loading")),(null==o?void 0:o[e])?null==(t=null==o?void 0:o[e])||t.push(n):o[e]=[n],function(){var t,n;a[e]&&(null==(t=a[e])||t.removeEventListener("load",function(){return r(!0)}),null==(n=a[e])||n.removeEventListener("error",function(){return r(!0)}))}},[e]),[r.loaded,r.error]}},26001:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(14232),c=r(56427),l=i(r(22512));t.default=function(){var e,t=["https://www.googleapis.com/auth/drive.readonly"],r=(0,l.default)("https://apis.google.com/js/api.js"),i=r[0],s=r[1],u=(0,l.default)("https://accounts.google.com/gsi/client"),f=u[0],p=u[1],d=(0,a.useState)(!1),h=d[0],y=d[1],b=(0,a.useState)(!1),v=b[0],g=b[1],m=(0,a.useState)(!1);m[0],m[1];var O=(0,a.useState)(c.defaultConfiguration),w=O[0],P=O[1],S=(0,a.useState)(),k=S[0],j=S[1];(0,a.useEffect)(function(){!i||s||!f||p||h||_()},[i,s,f,p,h]),(0,a.useEffect)(function(){v&&w.token&&i&&!s&&f&&!p&&h&&(C(w),g(!1))},[v,w.token,i,s,f,p,h]);var _=function(){window.gapi.load("auth"),window.gapi.load("picker",{callback:T})},T=function(){y(!0)},C=function(t){var r=t.token,n=t.appId,o=t.supportDrives,i=t.developerKey,a=t.viewId,c=t.disabled,l=t.multiselect,s=t.setOrigin,u=t.showUploadView,f=t.showUploadFolders,p=t.setParentFolder,d=void 0===p?"":p,h=t.viewMimeTypes,y=t.customViews,b=t.locale,v=t.setIncludeFolders,g=t.setSelectFolderEnabled,m=t.disableDefaultView,O=t.callbackFunction;if(c)return!1;var w=new google.picker.DocsView(google.picker.ViewId[void 0===a?"DOCS":a]);h&&w.setMimeTypes(h),v&&w.setIncludeFolders(!0),g&&w.setSelectFolderEnabled(!0);var P=new google.picker.DocsUploadView;return h&&P.setMimeTypes(h),f&&P.setIncludeFolders(!0),d&&P.setParent(d),d&&w.setParent(d),e=new google.picker.PickerBuilder().setAppId(void 0===n?"":n).setOAuthToken(r).setDeveloperKey(i).setLocale(void 0===b?"en":b).setCallback(O),s&&e.setOrigin(s),void 0!==m&&m||e.addView(w),y&&y.map(function(t){return e.addView(t)}),l&&e.enableFeature(google.picker.Feature.MULTISELECT_ENABLED),void 0!==u&&u&&e.addView(P),void 0!==o&&o&&e.enableFeature(google.picker.Feature.SUPPORT_DRIVES),e.build().setVisible(!0),!0};return[function(e){if(P(e),e.token||google.accounts.oauth2.initTokenClient({client_id:e.clientId,scope:(e.customScopes?o(o([],t,!0),e.customScopes,!0):t).join(" "),callback:function(t){j(t),C(n(n({},e),{token:t.access_token}))}}).requestAccessToken(),e.token&&i&&!s&&h)return C(e)},k]}},27023:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,o,i){for(var a=-1,c=r(t((n-e)/(o||1)),0),l=Array(c);c--;
1)l[i?c:++a]=e,e+=o;return l}},31099:(e,t,r)=>{"use strict";r.d(t,{A:()=>b});var n=r(44501),o=r(14232),i=r(39648),a=r(68898),c=r(57078),l=r(83323),s=r(8972),u=r(64987),f=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=String(e).toLowerCase(),o=String(r.getOptionValue(t)).toLowerCase(),i=String(r.getOptionLabel(t)).toLowerCase();return o===n||i===n},d=function(e){return'Create "'.concat(e,'"')},h=function(e,t,r,n){return!(!e||t.some(function(t){return p(e,t,n)})||r.some(function(t){return p(e,t,n)}))},y=function(e,t){return{label:t,value:e,__isNew__:!0}};r(98477),r(97);var b=(0,o.forwardRef)(function(e,t){var r,p,b,v,g,m,O,w,P,S,k,j,_,T,C,E,x,R,N,D,I,M,A,B,L,F,V,K,Y=(b=void 0!==(p=(r=(0,a.u)(e)).allowCreateWhileLoading)&&p,g=void 0===(v=r.createOptionPosition)?"last":v,O=void 0===(m=r.formatCreateLabel)?d:m,P=void 0===(w=r.isValidNewOption)?h:w,k=void 0===(S=r.getNewOptionData)?y:S,j=r.onCreateOption,T=void 0===(_=r.options)?[]:_,C=r.onChange,R=void 0===(x=(E=(0,s.A)(r,f)).getOptionValue)?i.g:x,D=void 0===(N=E.getOptionLabel)?i.b:N,I=E.inputValue,M=E.isLoading,A=E.isMulti,B=E.value,L=E.name,F=(0,o.useMemo)(function(){return P(I,(0,u.H)(B),T,{getOptionValue:R,getOptionLabel:D})?k(I,O(I)):void 0},[O,k,D,R,I,P,T,B]),V=(0,o.useMemo)(function(){return(b||!M)&&F?"first"===g?[F].concat((0,l.A)(T)):[].concat((0,l.A)(T),[F]):T},[b,g,M,F,T]),K=(0,o.useCallback)(function(e,t){if("select-option"!==t.action)return C(e,t);var r=Array.isArray(e)?e:[e];if(r[r.length-1]===F){if(j)j(I);else{var n=k(I,I);C((0,u.D)(A,[].concat((0,l.A)((0,u.H)(B)),[n]),n),{action:"create-option",name:L,option:n})}return}C(e,t)},[k,I,A,L,F,j,C,B]),(0,c.A)((0,c.A)({},E),{},{options:V,onChange:K}));return o.createElement(i.S,(0,n.A)({ref:t},Y))})},50092:(e,t,r)=>{var n=r(27023),o=r(65930),i=r(60524);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&o(t,r,a)&&(r=a=void 0),t=i(t),void 0===r?(r=t,t=0):r=i(r),a=void 0===a?t<r?1:-1:i(a),n(t,r,a,e)}}},56427:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultConfiguration=void 0,t.defaultConfiguration={clientId:"",developerKey:"",viewId:"DOCS",callbackFunction:function(){return null}}},60524:(e,t,r)=>{var n=r(52782),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-o?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},63415:(e,t,r)=>{e.exports=r(50092)()},65930:(e,t,r)=>{var n=r(79364),o=r(27136),i=r(68373),a=r(98825);e.exports=function(e,t,r){if(!a(r))return!1;var c=typeof t;return("number"==c?!!(o(r)&&i(t,r.length)):"string"==c&&t in r)&&n(r[t],e)}},74134:function(e,t,r){let n;n=r(14232),e.exports=(()=>{var e={865:e=>{"use strict";e.exports=function(e,t){var r=e.filter(t);return 0!==r.length&&r.length!==e.length}},703:(e,t,r)=>{"use strict";var n=r(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},697:(e,t,r)=>{e.exports=r(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},385:function(e,t,r){e.exports=function(e){var t=[function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(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,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();
1function i(e){return e&&e.__esModule?e:{default:e}}var a=r(8),c=i(a),l=i(r(6)),s=i(r(2)),u=r(1),f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),(function(e,t,r){for(var n=!0;n;){var o=e,i=t,a=r;n=!1,null===o&&(o=Function.prototype);var c=Object.getOwnPropertyDescriptor(o,i);if(void 0!==c){if("value"in c)return c.value;var l=c.get;if(void 0===l)return;return l.call(a)}var s=Object.getPrototypeOf(o);if(null===s)return;e=s,t=i,r=a,n=!0,c=s=void 0}})(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.state={showLoader:!1,lastScrollTop:0,actionTriggered:!1,pullToRefreshThresholdBreached:!1},this.startY=0,this.currentY=0,this.dragging=!1,this.maxPullDownDistance=0,this.onScrollListener=this.onScrollListener.bind(this),this.throttledOnScrollListener=(0,s.default)(this.onScrollListener,150).bind(this),this.onStart=this.onStart.bind(this),this.onMove=this.onMove.bind(this),this.onEnd=this.onEnd.bind(this),this.getScrollableTarget=this.getScrollableTarget.bind(this)}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
1(t,e),o(t,[{key:"componentDidMount",value:function(){if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el.addEventListener("scroll",this.throttledOnScrollListener),"number"==typeof this.props.initialScrollY&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown.firstChild.getBoundingClientRect().height,this.forceUpdate(),"function"!=typeof this.props.refreshFunction))throw Error('Mandatory prop "refreshFunction" missing.\n          Pull Down To Refresh functionality will not work\n          as expected. Check README.md for usage\'')}},{key:"componentWillUnmount",value:function(){this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd))}},{key:"componentWillReceiveProps",value:function(e){this.props.key===e.key&&this.props.dataLength===e.dataLength||this.setState({showLoader:!1,actionTriggered:!1,pullToRefreshThresholdBreached:!1})}},{key:"getScrollableTarget",value:function(){return this.props.scrollableTarget instanceof HTMLElement?this.props.scrollableTarget:"string"==typeof this.props.scrollableTarget?document.getElementById(this.props.scrollableTarget):(null===this.props.scrollableTarget&&console.warn("You are trying to pass scrollableTarget but it is null. This might\n        happen because the element may not have been added to DOM yet.\n        See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.\n      "),null)}},{key:"onStart",value:function(e){this.state.lastScrollTop||(this.dragging=!0,this.startY=e.pageY||e.touches[0].pageY,this.currentY=this.startY,this._infScroll.style.willChange="transform",this._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)")}},{key:"onMove",value:function(e){this.dragging&&(this.currentY=e.pageY||e.touches[0].pageY,this.currentY<this.startY||(this.currentY-this.startY>=this.props.pullDownToRefreshThreshold&&this.setState({pullToRefreshThresholdBreached:!0}),this.currentY-this.startY>1.5*this.maxPullDownDistance||(this._infScroll.style.overflow="visible",this._infScroll.style.transform="translate3d(0px, "+(this.currentY-this.startY)+"px, 0px)")))}},{key:"onEnd",value:function(e){var t=this;this.startY=0,this.currentY=0,this.dragging=!1,this.state.pullToRefreshThresholdBreached&&this.props.refreshFunction&&this.props.refreshFunction(),requestAnimationFrame(function(){t._infScroll&&(t._infScroll.style.overflow="auto",t._infScroll.style.transform="none",t._infScroll.style.willChange="none")})}},{key:"isElementAtBottom",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?.8:arguments[1],r=e===document.body||e===document.documentElement?window.screen.availHeight:e.clientHeight,n=(0,u.parseThreshold)(t);return n.unit===u.ThresholdUnits.Pixel?e.scrollTop+r>=e.scrollHeight-n.value:e.scrollTop+r>=n.value/100*e.scrollHeight}},{key:"onScrollListener",value:function(e){var t=this;"function"==typeof this.props.onScroll&&setTimeout(function(){return t.props.onScroll(e)},0);var r=this.props.height||this._scrollableNode?e.target:document.documentElement.scrollTop?document.documentElement:document.body;this.state.actionTriggered||(this.isElementAtBottom(r,this.props.scrollThreshold)&&this.props.hasMore&&(this.setState({actionTriggered:!0,showLoader:!0}),this.props.next()),this.setState({lastScrollTop:r.scrollTop}))}},{key:"render",value:function(){var e=this,t=n({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),r=this.props.hasChildren||!(!this.props.children||!this.props.children.length),o=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return c.default.createElement("div",{style:o},c.default.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(t){return e._infScroll=t},style:t},this.props.pullDownToRefresh&&c.default.createElement("div",{style:{position:"relative"},ref:function(t){return e._pullDown=t}},c.default.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},!this.state.pullToRefreshThresholdBreached&&this.props.pullDownToRefreshContent,this.state.pullToRefreshThresholdBreached&&this.props.releaseToRefreshContent)),this.props.children,!this.state.showLoader&&!r&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))}}]),t}(a.Component);t.default=f,f.defaultProps={pullDownToRefreshContent:c.default.createElement("h3",null,"Pull down to refresh"),releaseToRefreshContent:c.default.createElement("h3",null,"Release to refresh"),pullDownToRefreshThreshold:100,disableBrowserPullToRefresh:!0}
1,f.propTypes={next:l.default.func,hasMore:l.default.bool,children:l.default.node,loader:l.default.node.isRequired,scrollThreshold:l.default.oneOfType([l.default.number,l.default.string]),endMessage:l.default.node,style:l.default.object,height:l.default.number,scrollableTarget:l.default.node,hasChildren:l.default.bool,pullDownToRefresh:l.default.bool,pullDownToRefreshContent:l.default.node,releaseToRefreshContent:l.default.node,pullDownToRefreshThreshold:l.default.number,refreshFunction:l.default.func,onScroll:l.default.func,dataLength:l.default.number.isRequired,key:l.default.string},e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseThreshold=function(e){return"number"==typeof e?{unit:r.Percent,value:100*e}:"string"==typeof e?e.match(/^(\d*(\.\d+)?)px$/)?{unit:r.Pixel,value:parseFloat(e)}:e.match(/^(\d*(\.\d+)?)%$/)?{unit:r.Percent,value:parseFloat(e)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),n):(console.warn("scrollThreshold should be string or number"),n)};var r={Pixel:"Pixel",Percent:"Percent"};t.ThresholdUnits=r;var n={unit:r.Percent,value:.8}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n,o;return t||(t=250),function(){var i=r||this,a=+new Date,c=arguments;n&&a<n+t?(clearTimeout(o),o=setTimeout(function(){n=a,e.apply(i,c)},t)):(n=a,e.apply(i,c))}},e.exports=t.default},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){"use strict";e.exports=function(e,t,r,n,o,i,a,c){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[r,n,o,i,a,c],u=0;(l=Error(t.replace(/%s/g,function(){return s[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,r){"use strict";var n=r(3),o=r(4),i=r(7);e.exports=function(){function e(e,t,r,n,a,c){c!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t,r){e.exports=r(5)()},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,r){t.exports=e}],r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={exports:{},id:e,loaded:!1};return t[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=r,n.p="",n(0)}(r(787))},787:e=>{"use strict";e.exports=n}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";r.r(o),r.d(o,{default:()=>tT});var e,t,n,i,a=r(697),c=r.n(a),l=r(787),s=r.n(l);let u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){return t["data-".concat(r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())]=e[r],t},{})},f=function(e){return!e||Array.isArray(e)&&!e.length},p=(D=1,I=new WeakMap,{get:function(e){return I.has(e)||I.set(e,D++),"".concat("rdts").concat(I.get(e))},reset:function(){I=new WeakMap,D=1}}),d=function(e,t,r){if(Array.prototype.findIndex)return e.findIndex(t,r);if(!e)throw TypeError("findIndex called on null or undefined");if("function"!=typeof t)throw TypeError("findIndex predicate must be a function");for(var n=0;n<e.length;n++){var o=e[n];if(t.call(r,o,n,e))return n}return -1};function h(e,t){var r=e?"#"===e[0]?{"aria-labelledby":e.substring(1).replace(/ #/g," ")}:{"aria-label":e}:{};return t&&(r["aria-labelledby"]="".concat(r["aria-labelledby"]||""," ").concat(t).trim()),r}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})(e)}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&v(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||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=m(o);if(e=r?Reflect.construct(t,arguments,m(this).constructor):t.apply(this,arguments),e&&("object"===y(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return g(this)});function o(e){var t,r,i;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),O(g(t=n.call(this,e)),"handleInputChange",function(e){e.persist(),t.delayedCallback(e)}),r=function(e){return t.props.onInputChange(e.target.value)},t.delayedCallback=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=!i;clearTimeout(i),i=setTimeout(function(){i=null,r.apply(void 0,t)},300),o&&r.apply(void 0,t)},t}return t=[{key:"render",value:function(){var e=this.props,t=e.inputRef,r=e.texts,n=void 0===r?{}:r,o=e.onFocus,i=e.onBlur,a=e.disabled,c=e.readOnly,l=e.onKeyDown,u=e.activeDescendant,f=e.inlineSearchInput;return s().createElement("input",b({type:"text",disabled:a,ref:t,className:"search",placeholder:f?n.inlineSearchPlaceholder||"Search...":n.placeholder||"Choose...",onKeyDown:l,onChange:this.handleInputChange,onFocus:o,onBlur:i,readOnly:c,"aria-activedescendant":u,"aria-autocomplete":l?"list":void 0},h(n.label)))}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);function P(e){return(P="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})(e)}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}O(w,"propTypes",{tags:c().array,texts:c().object,onInputChange:c().func,onFocus:c().func,onBlur:c().func,onTagRemove:c().func,onKeyDown:c().func,inputRef:c().func,disabled:c().bool,readOnly:c().bool,activeDescendant:c().string,inlineSearchInput:c().bool});var T=function(e){return"".concat(e,"_tag")},C=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&S(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||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=j(o);if(e=r?Reflect.construct(t,arguments,j(this).constructor):t.apply(this,arguments),e&&("object"===P(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return k(this)});function o(){var e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return _(k(e=n.call.apply(n,[this].concat(r))),"handleClick",function(t){var r=e.props,n=r.id,o=r.onDelete;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),o(n,void 0!==(t.key||t.keyCode))}),_(k(e),"onKeyDown",function(t){"Backspace"===t.key&&(e.handleClick(t),t.preventDefault())}),_(k(e),"onKeyUp",function(t){(32===t.keyCode||["Delete","Enter"].indexOf(t.key)>-1)&&(e.handleClick(t),t.preventDefault())}),e}return t=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.label,n=e.labelRemove,o=e.readOnly,i=e.disabled,a=T(t),c="".concat(t,"_button"),l=["tag-remove",o&&"readOnly",i&&"disabled"].filter(
1Boolean).join(" "),u=o||i;return s().createElement("span",{className:"tag",id:a,"aria-label":r},r,s().createElement("button",{id:c,onClick:u?void 0:this.handleClick,onKeyDown:u?void 0:this.onKeyDown,onKeyUp:u?void 0:this.onKeyUp,className:l,type:"button","aria-label":void 0===n?"Remove":n,"aria-labelledby":"".concat(c," ").concat(a),"aria-disabled":u},"x"))}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);function E(e){return(E="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})(e)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(){return(N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}_(C,"propTypes",{id:c().string.isRequired,label:c().string.isRequired,onDelete:c().func,readOnly:c().bool,disabled:c().bool,labelRemove:c().string});var D,I,M,A,B=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&x(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=R(o);if(e=r?Reflect.construct(t,arguments,R(this).constructor):t.apply(this,arguments),e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function o(){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),n.apply(this,arguments)}return t=[{key:"render",value:function(){var e=this.props,t=e.tags,r=e.onTagRemove,n=e.texts,o=void 0===n?{}:n,i=e.disabled,a=e.readOnly,c=e.children||s().createElement("span",{className:"placeholder"},o.placeholder||"Choose...");return s().createElement("ul",{className:"tag-list"},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return e.map(function(e){var i=e._id,a=e.label,c=e.tagClassName,l=e.dataset,f=e.tagLabel;return s().createElement("li",N({className:["tag-item",c].filter(Boolean).join(" "),key:"tag-item-".concat(i)},u(l)),s().createElement(C,{label:f||a,id:i,onDelete:t,readOnly:r,disabled:n||e.disabled,labelRemove:o}))})}(t,r,a,i,o.labelRemove),s().createElement("li",{className:"tag-item"},c))}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);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})(e)}function F(){return(F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}
1function K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}M="propTypes",A={tags:c().array,onTagRemove:c().func,readOnly:c().bool,disabled:c().bool,texts:c().object,children:c().node},M in B?Object.defineProperty(B,M,{value:A,enumerable:!0,configurable:!0,writable:!0}):B[M]=A;var H=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&K(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||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=U(o);if(e=r?Reflect.construct(t,arguments,U(this).constructor):t.apply(this,arguments),e&&("object"===L(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return Y(this)});function o(){var e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return q(Y(e=n.call.apply(n,[this].concat(r))),"getAriaAttributes",function(){var t=e.props,r=t.mode,n=t.texts,o=void 0===n?{}:n,i=t.showDropdown,a=t.clientId,c=t.tags,l="".concat(a,"_trigger"),s=[],u=h(o.label);return c&&c.length&&(u["aria-label"]&&s.push(l),c.forEach(function(e){s.push(T(e._id))}),u=h(o.label,s.join(" "))),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach(function(t){q(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({id:l,role:"button",tabIndex:e.props.tabIndex,"aria-haspopup":"simpleSelect"===r?"listbox":"tree","aria-expanded":i?"true":"false"},u)}),q(Y(e),"handleTrigger",function(t){t.key&&13!==t.keyCode&&32!==t.keyCode&&40!==t.keyCode||t.key&&e.triggerNode&&e.triggerNode!==document.activeElement||(e.props.showDropdown||32!==t.keyCode||t.preventDefault(),e.props.onTrigger(t))}),e}return t=[{key:"render",value:function(){var e=this,t=this.props,r=t.disabled,n=t.readOnly,o=t.showDropdown,i=["dropdown-trigger","arrow",r&&"disabled",n&&"readOnly",o&&"top",!o&&"bottom"].filter(Boolean).join(" ");return s().createElement("a",F({ref:function(t){e.triggerNode=t},className:i,onClick:r?void 0:this.handleTrigger,onKeyDown:r?void 0:this.handleTrigger},this.getAriaAttributes()),this.props.children)}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);q(H,"propTypes",{onTrigger:c().func,disabled:c().bool,readOnly:c().bool,showDropdown:c().bool,mode:c().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),texts:c().object,clientId:c().string,tags:c().array,tabIndex:c().number});var W=r(385),z=r.n(W);function $(e){return($="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})(e)}function J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Q(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var X=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&J(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=G(o);if(e=r?Reflect.construct(t,arguments,G(this).constructor):t.apply(this,arguments),e&&("object"===$(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return Z(this)});function o(){var e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return Q(Z(e=n.call.apply(n,[this].concat(r))),"handleClick",function(){var t=e.props,r=t.onAction,n=t.actionData;r&&r(n.nodeId,n.action)}),e}return t=[{key:"render",value:function(){var e=this.props,t=e.title,r=e.className,n=e.text,o=e.readOnly;return s().createElement("i",{title:t,className:r,onClick:o?void 0:this.handleClick},n)}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
1Q(X,"propTypes",{title:c().string,text:c().string,className:c().string,actionData:c().object,onAction:c().func,readOnly:c().bool}),Q(X,"defaultProps",{onAction:function(){}});var et=["actions","id"];function er(){return(er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function en(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?en(Object(r),!0).forEach(function(t){ec(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ei(e,t){return(ei=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ea(e){return(ea=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ec(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var el=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&ei(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||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=ea(o);if(e=r?Reflect.construct(t,arguments,ea(this).constructor):t.apply(this,arguments),e&&("object"===ee(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function o(){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),n.apply(this,arguments)}return t=[{key:"render",value:function(){var e=this.props,t=e.actions,r=e.id,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,et);return f(t)?null:t.map(function(e,t){var o=e.id||"action-".concat(t);return s().createElement(X,er({key:o},n,e,{actionData:{action:eo(eo({},e),{},{id:o}),nodeId:r}}))})}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);function es(e){return(es="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})(e)}ec(el,"propTypes",{id:c().string.isRequired,actions:c().array});var eu=["checked","indeterminate","onChange","disabled","readOnly"];function ef(){return(ef=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ep(e,t){return(ep=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ed(e){return(ed=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eh=function(e){var t=e.checked,r=e.indeterminate;return function(e){e&&(e.checked=t,e.indeterminate=r)}},ey=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&ep(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||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=ed(o);if(e=r?Reflect.construct(t,arguments,ed(this).constructor):t.apply(this,arguments),e&&("object"===es(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function o(){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),n.apply(this,arguments)}return t=[{key:"render",value:function(){var e=this.props,t=e.checked,r=e.indeterminate,n=e.onCh
1ange,o=e.disabled,i=e.readOnly,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,eu);return s().createElement("input",ef({type:"checkbox",ref:eh({checked:t,indeterminate:void 0!==r&&r}),onChange:n,disabled:o||i},a))}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);function eb(e){return(eb="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})(e)}e="propTypes",t={checked:c().bool,indeterminate:c().bool,onChange:c().func,disabled:c().bool,readOnly:c().bool},e in ey?Object.defineProperty(ey,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):ey[e]=t;var ev=["name","checked","onChange","disabled","readOnly"];function eg(){return(eg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function em(e,t){return(em=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eO(e){return(eO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ew=function(e){var t=e.checked;return function(e){e&&(e.checked=t)}},eP=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&em(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=eO(o);if(e=r?Reflect.construct(t,arguments,eO(this).constructor):t.apply(this,arguments),e&&("object"===eb(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function o(){return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),n.apply(this,arguments)}return t=[{key:"render",value:function(){var e=this.props,t=e.name,r=e.checked,n=e.onChange,o=e.disabled,i=e.readOnly,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ev);return s().createElement("input",eg({type:"radio",name:t,ref:ew({checked:r}),onChange:n,disabled:o||i},a))}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);function eS(e){return(eS="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})(e)}function ek(){return(ek=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}
1function ej(e,t){return(ej=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function e_(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eT(e){return(eT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}n="propTypes",i={name:c().string.isRequired,checked:c().bool,onChange:c().func,disabled:c().bool,readOnly:c().bool},n in eP?Object.defineProperty(eP,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):eP[n]=i;var eE=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&ej(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||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=eT(o);if(e=r?Reflect.construct(t,arguments,eT(this).constructor):t.apply(this,arguments),e&&("object"===eS(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return e_(this)});function o(){var e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return eC(e_(e=n.call.apply(n,[this].concat(r))),"handleCheckboxChange",function(t){var r=e.props,n=r.mode,o=r.id;(0,r.onCheckboxChange)(o,"simpleSelect"===n||"radioSelect"===n||t.target.checked),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()}),e}return t=[{key:"render",value:function(){var e=this.props,t=e.mode,r=e.title,n=e.label,o=e.id,i=e.partial,a=e.checked,c=this.props,l=c.value,u=c.disabled,f=c.showPartiallySelected,p=c.readOnly,d=c.clientId,h={className:"node-label"};"simpleSelect"!==t||p||u||(h.onClick=this.handleCheckboxChange);var y={id:o,value:l,checked:a,disabled:u,readOnly:p,tabIndex:-1},b=["checkbox-item","simpleSelect"===t&&"simple-select"].filter(Boolean).join(" ");return s().createElement("label",{title:r||n,htmlFor:o},"radioSelect"===t?s().createElement(eP,ek({name:d,className:"radio-item",onCh
1ange:this.handleCheckboxChange},y)):s().createElement(ey,ek({name:o,className:b,indeterminate:f&&i,onChange:this.handleCheckboxChange},y)),s().createElement("span",h,n))}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);function ex(e){return(ex="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})(e)}function eR(e,t){return(eR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eN(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eD(e){return(eD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}eC(eE,"propTypes",{id:c().string.isRequired,actions:c().array,title:c().string,label:c().string.isRequired,value:c().string.isRequired,checked:c().bool,partial:c().bool,disabled:c().bool,dataset:c().object,mode:c().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),showPartiallySelected:c().bool,onCheckboxChange:c().func,readOnly:c().bool,clientId:c().string});var eM=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&eR(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||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=eD(o);if(e=r?Reflect.construct(t,arguments,eD(this).constructor):t.apply(this,arguments),e&&("object"===ex(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return eN(this)});function o(){var e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return eI(eN(e=n.call.apply(n,[this].concat(r))),"onToggle",function(t){t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e.props.onNodeToggle(e.props.id)}),eI(eN(e),"onKeyDown",function(t){"Enter"!==t.key&&32!==t.keyCode||(e.props.onNodeToggle(e.props.id),t.preventDefault())}),e}return t=[{key:"render",value:function(){var e=this.props,t=e.expanded,r=e.isLeaf,n=["toggle",t&&"expanded",!t&&"collapsed"].filter(Boolean).join(" ");return r?s().createElement("i",{role:"button",tabIndex:-1,className:n,style:{visibility:"hidden"},"aria-hidden":!0}):s().createElement("i",{role:"button",tabIndex:-1,className:n,onClick:this.onToggle,onKeyDown:this.onKeyDown,"aria-hidden":!0})}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);function eA(e){return(eA="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})(e)}function eB(){return(eB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function eL(e,t){return(eL=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eF(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eV(e){return(eV=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eK(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
1eI(eM,"propTypes",{expanded:c().bool,isLeaf:c().bool,onNodeToggle:c().func,id:c().string});var eY=function(e){return f(e)},eU=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&eL(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||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=eV(o);if(e=r?Reflect.construct(t,arguments,eV(this).constructor):t.apply(this,arguments),e&&("object"===eA(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return eF(this)});function o(){var e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return eK(eF(e=n.call.apply(n,[this].concat(r))),"getAriaAttributes",function(){var t=e.props,r=t._children,n=t._depth,o=t.checked,i=t.disabled,a=t.expanded,c=t.readOnly,l=t.mode,s=t.partial,u={};return u.role="simpleSelect"===l?"option":"treeitem",u["aria-disabled"]=i||c,u["aria-selected"]=o,"simpleSelect"!==l&&(u["aria-checked"]=s?"mixed":o,u["aria-level"]=(n||0)+1,u["aria-expanded"]=r&&(a?"true":"false")),u}),e}return t=[{key:"render",value:function(){var e,t,r,n,o,i,a,c,l,f,p,d,h,y,b=this.props,v=b.mode,g=b.keepTreeOnSearch,m=b._id,O=b._children,w=b.dataset,P=b._depth,S=b.expanded,k=b.title,j=b.label,_=b.partial,T=b.checked,C=b.value,E=b.disabled,x=b.actions,R=b.onAction,N=b.searchModeOn,D=b.onNodeToggle,I=b.onCheckboxChange,M=b.showPartiallySelected,A=b.readOnly,B=b.clientId,L=(t=(e=this.props).keepTreeOnSearch,r=e.keepChildrenOnSearch,n=e._children,o=e.matchInChildren,i=e.matchInParent,a=e.disabled,c=e.partial,l=e.hide,f=e.className,p=e.showPartiallySelected,d=e.readOnly,h=e.checked,y=e._focused,["node",eY(n)&&"leaf",!eY(n)&&"tree",a&&"disabled",l&&"hide",t&&o&&"match-in-children",t&&r&&i&&"match-in-parent",p&&c&&"partial",d&&"readOnly",h&&"checked",y&&"focused",f].filter(Boolean).join(" ")),F="".concat(m,"_li");return s().createElement("li",eB({className:L,style:g||!N?{paddingLeft:"".concat(20*(P||0),"px")}:{},id:F},u(w),this.getAriaAttributes()),s().createElement(eM,{isLeaf:eY(O),expanded:S,id:m,onNodeToggle:D}),s().createElement(eE,{title:k,label:j,id:m,partial:_,checked:T,value:C,disabled:E,mode:v,onCheckboxChange:I,showPartiallySelected:M,readOnly:A,clientId:B}),s().createElement(el,{actions:x,onAction:R,id:m,readOnly:A}))}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.PureComponent);function eq(e){return(eq="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})(e)}function eH(){return(eH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function eW(e,t){return(eW=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ez(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e$(e){return(e$=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function eJ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}eK(eU,"propTypes",{_id:c().string.isRequired,_depth:c().number,_children:c().array,actions:c().array,className:c().string,title:c().string,label:c().string.isRequired,value:c().string.isRequired,checked:c().bool,expanded:c().bool,disabled:c().bool,partial:c().bool,dataset:c().object,keepTreeOnSearch:c().bool,keepChildrenOnSearch:c().bool,searchModeOn:c().bool,onNodeToggle:c().func,onAction:c().func,onCheckboxChange:c().func,mode:c().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),showPartiallySelected:c().bool,readOnly:c().bool,clientId:c().string});var eZ=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&eW(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,t=e$(o);if(e=r?Reflect.construct(t,arguments,e$(this).constructor):t.apply(this,arguments),e&&("object"===eq(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return ez(this)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),eJ(ez(t=n.call(this,e)),"UNSAFE_componentWillReceiveProps",function(e){var r=e.activeDescendant===t.props.activeDescendant;t.computeInstanceProps(e,!r),t.setState({items:t.allVisibleNodes.slice(0,t.currentPage*t.props.pageSize)})}),eJ(ez(t),"componentDidMount",function(){t.setState({scrollableTarget:t.node.parentNode})}
1),eJ(ez(t),"computeInstanceProps",function(e,r){if(t.allVisibleNodes=t.getNodes(e),t.totalPages=Math.ceil(t.allVisibleNodes.length/t.props.pageSize),r&&e.activeDescendant){var n=e.activeDescendant.replace(/_li$/,""),o=d(t.allVisibleNodes,function(e){return e.key===n})+1;t.currentPage=o>0?Math.ceil(o/t.props.pageSize):1}}),eJ(ez(t),"shouldRenderNode",function(e,t){var r=t.data,n=t.searchModeOn,o=e.expanded,i=e._parent;if(n||o)return!0;var a=i&&r.get(i);return!a||a.expanded}),eJ(ez(t),"getNodes",function(e){var r=e.data,n=e.keepTreeOnSearch,o=e.keepChildrenOnSearch,i=e.searchModeOn,a=e.mode,c=e.showPartiallySelected,l=e.readOnly,u=e.onAction,f=e.onChange,p=e.onCheckboxChange,d=e.onNodeToggle,h=e.activeDescendant,y=e.clientId,b=[];return r.forEach(function(r){t.shouldRenderNode(r,e)&&b.push(s().createElement(eU,eH({keepTreeOnSearch:n,keepChildrenOnSearch:o,key:r._id},r,{searchModeOn:i,onChange:f,onCheckboxChange:p,onNodeToggle:d,onAction:u,mode:a,showPartiallySelected:c,readOnly:l,clientId:y,activeDescendant:h})))}),b}),eJ(ez(t),"hasMore",function(){return t.currentPage<t.totalPages}),eJ(ez(t),"loadMore",function(){t.currentPage=t.currentPage+1;var e=t.allVisibleNodes.slice(0,t.currentPage*t.props.pageSize);t.setState({items:e})}),eJ(ez(t),"setNodeRef",function(e){t.node=e}),eJ(ez(t),"getAriaAttributes",function(){var e=t.props.mode;return{role:"simpleSelect"===e?"listbox":"tree","aria-multiselectable":/multiSelect|hierarchical/.test(e)}}),t.currentPage=1,t.computeInstanceProps(e,!0),t.state={items:t.allVisibleNodes.slice(0,t.props.pageSize)},t}return t=[{key:"render",value:function(){var e=this.props.searchModeOn;return s().createElement("ul",eH({className:"root ".concat(e?"searchModeOn":""),ref:this.setNodeRef},this.getAriaAttributes()),this.state.scrollableTarget&&s().createElement(z(),{dataLength:this.state.items.length,next:this.loadMore,hasMore:this.hasMore(),loader:s().createElement("span",{className:"searchLoader"},"Loading..."),scrollableTarget:this.state.scrollableTarget},this.state.items))}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.Component);eJ(eZ,"propTypes",{data:c().object,keepTreeOnSearch:c().bool,keepChildrenOnSearch:c().bool,searchModeOn:c().bool,onChange:c().func,onNodeToggle:c().func,onAction:c().func,onCheckboxChange:c().func,mode:c().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),showPartiallySelected:c().bool,pageSize:c().number,readOnly:c().bool,clientId:c().string,activeDescendant:c().string}),eJ(eZ,"defaultProps",{pageSize:100});var eG=r(865),eQ=r.n(eG),eX=function(e){return e};let e0=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eX;return eQ()(e[t],function(e){return r(e).checked})||e[t].some(function(e){return r(e).partial})},e1=function(e){var t=e.tree,r=e.simple,n=e.radio,o=e.showPartialState,i=e.hierarchical,a=e.rootPrefixId;return function e(t){var r=t.nodes,n=t.parent,o=t.depth,i=void 0===o?0:o,a=t.simple,c=t.radio,l=t.showPartialState,s=t.hierarchical,u=t.rootPrefixId,p=t._rv,d=void 0===p?{list:new Map,defaultValues:[],singleSelectedNode:null}:p,h=a||c;return r.forEach(function(t,r){t._depth=i,n?(t._id=t.id||"".concat(n._id,"-").concat(r),t._parent=n._id,n._children.push(t._id)):t._id=t.id||"".concat(u?"".concat(u,"-").concat(r):r),h&&t.checked&&(d.singleSelectedNode?t.checked=!1:d.singleSelectedNode=t),h&&t.isDefaultValue&&d.singleSelectedNode&&!d.singleSelectedNode.isDefaultValue&&(d.singleSelectedNode.checked=!1,d.singleSelectedNode=null),!t.isDefaultValue||h&&0!==d.defaultValues.length||(d.defaultValues.push(t._id),t.checked=!0,h&&(d.singleSelectedNode=t)),s&&!c||function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?["disabled"]:["checked","disabled"],n=0;n<r.length;n++){var o=r[n];void 0===e[o]&&void 0!==t[o]&&(e[o]=t[o])}}(t,n,!c),d.list.set(t._id,t),!a&&t.children&&(t._children=[],e({nodes:t.children,parent:t,depth:i+1,radio:c,showPartialState:l,hierarchical:s,_rv:d}),l&&!t.checked&&(t.partial=e0(t),h||f(t.children)||!t.children.every(function(e){return e.checked})||(t.checked=!0)),t.children=void 0)}),d}({nodes:Array.isArray(t)?t:[t],simple:r,radio:n,showPartialState:o,hierarchical:i,rootPrefixId:a})};var e2=function e(t,r,n){r[t._id]=!0,f(t._children)||t._children.forEac
1h(function(t){return e(n(t),r,n)})},e3=function(e,t){var r=[],n={};return e.forEach(function(e,o){n[o]||(t(e,o,n)&&r.push(e),n[o]=!0)}),r};function e7(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var e4="ArrowUp",e5="ArrowDown",e8="ArrowLeft",e6="ArrowRight",e9="Enter",te="Home",tt="PageUp",tr="PageDown",tn="None",to="FocusPrevious",ti="FocusNext",ta="FocusParent",tc="FocusFirst",tl="FocusLast",ts="ToggleExpanded",tu="ToggleChecked",tf=new Set([to,ti,ta,tc,tl]),tp=[e4,e5,te,tt,"End",tr],td=tp.concat([e8,e6,e9]),th=function(e,t,r,n){return t.indexOf(e)>-1||!r&&e===n},ty=function(e,t,r){if(!e||0===e.length)return t;var n,o=t;return th(r,[tc,tl],!0)?o=(function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,n,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),1!==o.length);i=!0);}catch(e){a=!0,n=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw n}}return o}}(e)||function(e){if(e){if("string"==typeof e)return e7(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e7(e,1):void 0}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0]:[to,ti].indexOf(r)>-1&&(o=(n=e.indexOf(t)+1)%e.length==0?e[0]:e[n]),o},tb={isValidKey:function(e,t){return(t?td:tp).indexOf(e)>-1},getAction:function(e,t){return t===e8?e&&t===e8?!0===e.expanded?ts:e._parent?ta:tn:tn:t===e6?e&&e._children&&t===e6?!0!==e.expanded?ts:ti:tn:th(t,[te,tt],e,e5)?tc:th(t,["End",tr],e,e4)?tl:function(e,t){if(!e)return tn;switch(t){case e4:return to;case e5:return ti;case e9:return tu;default:return tn}}(e,t)},getNextFocus:function(e,t,r,n,o){if(r===ta)return t&&t._parent?n(t._parent):t;if(!tf.has(r))return t;var i,a,c,l=(i=e,a=n,c=o,e3(i,function(e,t,r){return c&&e._children&&e._children.length&&!0!==e.expanded&&e2(e,r,a),!e.hide}));return th(r,[to,tl],!0)&&(l=l.reverse()),ty(l,t,r)},getNextFocusAfterTagDelete:function(e,t,r,n){var o=t?d(t,function(t){return t._id===e}):-1;if(o<0||!r.length)return n;var i=r[o=r.length>
1o?o:r.length-1]._id,a=document.getElementById(T(i));return a&&a.firstElementChild||n},handleFocusNavigationkey:function(e,t,r,n,o){var i=tb.getNextFocus(e,r,t,n,o);return tb.adjustFocusedProps(r,i),i?i._id:r&&r._id},handleToggleNavigationkey:function(e,t,r,n,o){return e!==tu||r||t.readOnly||t.disabled?e===ts&&o(t._id):n(t._id,!0!==t.checked),t&&t._id},adjustFocusedProps:function(e,t){e&&t&&e._id!==t._id&&(e._focused=!1),t&&(t._focused=!0)}},tv=function(){var e;function t(e){var r=e.data,n=e.mode,o=e.showPartiallySelected,i=e.rootPrefixId,a=e.searchPredicate;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),this._src=r,this.simpleSelect="simpleSelect"===n,this.radioSelect="radioSelect"===n,this.hierarchical="hierarchical"===n,this.searchPredicate=a;var c=e1({tree:JSON.parse(JSON.stringify(r)),simple:this.simpleSelect,radio:this.radioSelect,showPartialState:o,hierarchical:this.hierarchical,rootPrefixId:i}),l=c.list,s=c.defaultValues,u=c.singleSelectedNode;this.tree=l,this.defaultValues=s,this.showPartialState=!this.hierarchical&&o,this.searchMaps=new Map,(this.simpleSelect||this.radioSelect)&&u&&(this.currentChecked=u._id)}return e=[{key:"getNodeById",value:function(e){return this.tree.get(e)}},{key:"getMatches",value:function(e){var t=this;if(this.searchMaps.has(e))return this.searchMaps.get(e);var r=-1,n=e;this.searchMaps.forEach(function(t,o){e.startsWith(o)&&o.length>r&&(r=o.length,n=o)});var o=[],i=this._getAddOnMatch(o,e);return n!==e?this.searchMaps.get(n).forEach(function(e){return i(t.getNodeById(e))}):this.tree.forEach(i),this.searchMaps.set(e,o),o}},{key:"addParentsToTree",value:function(e,t){if(void 0!==e){var r=this.getNodeById(e);this.addParentsToTree(r._parent,t),r.hide=!r._isMatch||r.hide,r.matchInChildren=!0,t.set(e,r)}}},{key:"addChildrenToTree",value:function(e,t,r){var n=this;void 0!==e&&e.forEach(function(e){if(!r||!r.includes(e)){var o=n.getNodeById(e);o.matchInParent=!0,t.set(e,o),n.addChildrenToTree(o._children,t)}})}},{key:"filterTree",value:function(e,t,r){var n=this,o=this.getMatches(e.toLowerCase()),i=new Map;o.forEach(function(e){var a=n.getNodeById(e);a.hide=!1,a._isMatch=!0,t&&n.addParentsToTree(a._parent,i),i.set(e,a),t&&r&&n.addChildrenToTree(a._children,i,o)});var a=0===o.length;return this.matchTree=i,{allNodesHidden:a,tree:i}}},{key:"restoreNodes",value:function(){return this.tree.forEach(function(e){e.hide=!1}),this.tree}},{key:"restoreDefaultValues",value:function(){var e=this;return this.defaultValues.forEach(function(t){e.setNodeCheckedState(t,!0)}),this.tree}},{key:"togglePreviousChecked",value:function(e,t){var r=this.currentChecked;if(r&&r!==e){var n=this.getNodeById(r);n.checked=!1,this.radioSelect&&this.showPartialState&&this.partialCheckParents(n)}this.currentChecked=t?e:null}},{key:"setNodeCheckedState",value:function(e,t){this.radioSelect&&this.togglePreviousChecked(e,t);var r=this.getNodeById(e);r.checked=t,this.showPartialState&&(r.partial=!1),this.simpleSelect?this.togglePreviousChecked(e,t):this.radioSelect?(this.showPartialState&&this.partialCheckParents(r),t||this.unCheckParents(r)):(this.hierarchical||this.toggleChildren(e,t),this.showPartialState&&this.partialCheckParents(r),this.hierarchical||t||this.unCheckParents(r))}},{key:"unCheckParents",value:function(e){for(var t=e._parent;t;){var r=this.getNodeById(t);r.checked=!1,r.partial=e0(r,"_children",this.getNodeById.bind(this)),t=r._parent}}},{key:"partialCheckParents",value:function(e){for(var t=this,r=e._parent;r;){var n=this.getNodeById(r);n.checked=n._children.every(function(e){return t.getNodeById(e).checked}),n.partial=e0(n,"_children",this.getNodeById.bind(this)),r=n._parent}}},{key:"toggleChildren",value:function(e,t){var r=this,n=this.getNodeById(e);n.checked=t,this.showPartialState&&(n.partial=!1),f(n._children)||n._children.forEach(function(e){return r.toggleChildren(e,t)})}},{key:"toggleNodeExpandState",value:function(e){var t=this.getNodeById(e);return t.expanded=!t.expanded,t.expanded||this.collapseChildren(t),this.tree}},{key:"collapseChildren",value:function(e){var t=this;
1e.expanded=!1,f(e._children)||e._children.forEach(function(e){return t.collapseChildren(t.getNodeById(e))})}},{key:"tags",get:function(){var e=this;return this.radioSelect||this.simpleSelect?this.currentChecked?[this.getNodeById(this.currentChecked)]:[]:e3(this.tree,function(t,r,n){return t.checked&&!e.hierarchical&&e2(t,n,function(t){return e.getNodeById(t)}),t.checked})}},{key:"getTreeAndTags",value:function(){return{tree:this.tree,tags:this.tags}}},{key:"handleNavigationKey",value:function(e,t,r,n,o,i,a){var c=this,l=e&&this.getNodeById(e),s=tb.getAction(l,r);return tf.has(s)?tb.handleFocusNavigationkey(t,s,l,function(e){return c.getNodeById(e)},o):l&&t.has(l._id)?tb.handleToggleNavigationkey(s,l,n,i,a):e}},{key:"_getAddOnMatch",value:function(e,t){var r=function(e,t){return e.label.toLowerCase().indexOf(t)>=0};return"function"==typeof this.searchPredicate&&(r=this.searchPredicate),function(n){r(n,t)&&e.push(n._id)}}}],function(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,n.key,n)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}();function tg(e){return(tg="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})(e)}function tm(){return(tm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tO(Object(r),!0).forEach(function(t){tj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tP(e,t){return(tP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tS(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tk(e){return(tk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tj(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var t_=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&tP(o,e);var t,r,n=(r=function(){if("u"<typeof Reflect||!Reflect.construct||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=tk(o);if(e=r?Reflect.construct(t,arguments,tk(this).constructor):t.apply(this,arguments),e&&("object"===tg(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return tS(this)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),tj(tS(t=n.call(this,e)),"initNewProps",function(e){var r=e.data,n=e.mode,o=e.showDropdown,i=e.showPartiallySelected,a=e.searchPredicate;t.treeManager=new tv({data:r,mode:n,showPartiallySelected:i,rootPrefixId:t.clientId,searchPredicate:a}),t.setState(function(e){var r=e.currentFocus&&t.treeManager.getNodeById(e.currentFocus);return r&&(r._focused=!0),tw({showDropdown:/initial|always/.test(o)||!0===e.showDropdown},t.treeManager.getTreeAndTags())})}),tj(tS(t),"resetSearchState",function(){return t.searchInput&&(t.searchInput.value=""),{tree:t.treeManager.restoreNodes(),searchModeOn:!1,allNodesHidden:!1}}),tj(tS(t),"handleClick",function(e,r){t.setState(function(e){var r="always"===t.props.showDropdown||t.keepDropdownActive||!e.showDropdown;return r!==e.showDropdown&&(r?document.addEventListener("click",t.handleOutsideClick,!1):document.removeEventListener("click",t.handleOutsideClick,!1)),r?t.props.onFocus():t.props.onBlur(),r?{showDropdown:r}:tw({showDropdown:r},t.resetSearchState())},r)}),tj(tS(t),"handleOutsideClick",function(e){var r;"always"!==t.props.showDropdown&&(r=t.node,e instanceof Event&&!(function(e){if(e.path)return e.path;for(var t=e.target,r=[t];t.parentElement;)r.unshift(t=t.parentElement);return r})(e).some(function(e){return e===r}))&&t.handleClick()}),tj(tS(t),"onInputChange",function(e){var r=e.length>0;if(r){var n=t.treeManager.filterTree(e,t.props.keepTreeOnSearch,t.props.keepChildrenOnSearch),o=n.allNodesHidden,i=n.tree;t.setState({tree:i,searchModeOn:r,allNodesHidden:o})}else t.setState(t.resetSearchState())}),tj(tS(t),"onTagRemove",function(e,r){var n=t.state.tags;t.onCheckboxChange(e,!1,function(o){r&&tb.getNextFocusAfterTagDelete(e,n,o,t.searchInput).focus()})}),tj(tS(t),"onNodeToggle",function(e){t.treeManager.toggleNodeExpandState(e);var r=t.state.searchModeOn?t.treeManager.matchTree:t.treeManager.tree;t.setState({tree:r}),"function"==typeof t.props.onNodeToggle&&t.props.onNodeToggle(t.treeManager.getNodeById(e))}),tj(tS(t),"onCheckboxChange",function(e,r,n){var o=t.props,i=o.mode,a=o.keepOpenOnSelect,c=o.clearSearchOnChange,l=t.state,s=l.currentFocus,u=l.searchModeOn;t.treeManager.setNodeCheckedState(e,r);var f=t.treeManager.tags,p=["simpleSelect","radioSelect"].indexOf(i)>-1,d=!(p&&!a)&&t.state.showDropdown,h=s&&t.treeManager.getNodeById(s),y=t.treeManager.getNodeById(e);f.length||(t.treeManager.restoreDefaultValues(),f=t.treeManager.tags);var b={tree:u?t.treeManager.matchTree:t.treeManager.tree,tags:f,showDropdown:d,currentFocus:e};(p&&!d||c)&&Object.assign(b,t.resetSearchState()),p&&!d&&document.removeEventListener("click",t.handleOutsideClick,!1),tb.adjustFocusedProps(h,y),t.setState(b,function(){n&&n(f)}),t.props.onChange(y,f)}
1),tj(tS(t),"onAction",function(e,r){t.props.onAction(t.treeManager.getNodeById(e),r)}),tj(tS(t),"onInputFocus",function(){t.keepDropdownActive=!0}),tj(tS(t),"onInputBlur",function(){t.keepDropdownActive=!1}),tj(tS(t),"onTrigger",function(e){t.handleClick(e,function(){t.state.showDropdown&&t.searchInput.focus()})}),tj(tS(t),"onKeyboardKeyDown",function(e){var r=t.props,n=r.readOnly,o=r.mode,i=r.disablePoppingOnBackspace,a=t.state,c=a.showDropdown,l=a.tags,s=a.searchModeOn,u=a.currentFocus,f=t.treeManager,p=s?f.matchTree:f.tree;if(!c&&(tb.isValidKey(e.key,!1)||/^\w$/i.test(e.key))){if(e.persist(),t.handleClick(null,function(){return t.onKeyboardKeyDown(e)}),/\w/i.test(e.key))return}else if(c&&tb.isValidKey(e.key,!0)){var d=f.handleNavigationKey(u,p,e.key,n,!s,t.onCheckboxChange,t.onNodeToggle);d!==u&&t.setState({currentFocus:d},function(){var e=document&&document.getElementById("".concat(d,"_li"));e&&e.scrollIntoView()})}else{if(c&&["Escape","Tab"].indexOf(e.key)>-1)return void("simpleSelect"===o&&p.has(u)?t.onCheckboxChange(u,!0):(t.keepDropdownActive=!1,t.handleClick()));if(i||"Backspace"!==e.key||!l.length||0!==t.searchInput.value.length)return;var h=l.pop();t.onCheckboxChange(h._id,!1)}e.preventDefault()}),tj(tS(t),"getAriaAttributes",function(){var e=t.props,r=e.mode,n=e.texts;return"radioSelect"!==r?{}:tw({role:"radiogroup"},h(n.label))}),t.state={searchModeOn:!1,currentFocus:void 0},t.clientId=e.id||p.get(tS(t)),t}return t=[{key:"UNSAFE_componentWillMount",value:function(){this.initNewProps(this.props)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleOutsideClick,!1)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.initNewProps(e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.disabled,n=t.readOnly,o=t.mode,i=t.texts,a=t.inlineSearchInput,c=t.tabIndex,l=this.state,u=l.showDropdown,f=l.currentFocus,p=l.tags,d={disabled:r,readOnly:n,activeDescendant:f?"".concat(f,"_li"):void 0,texts:i,mode:o,clientId:this.clientId},h=s().createElement(w,tm({inputRef:function(t){e.searchInput=t},onInputChange:this.onInputChange,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onKeyDown:this.onKeyboardKeyDown},d,{inlineSearchInput:a}));return s().createElement("div",{id:this.clientId,className:[this.props.className&&this.props.className,"react-dropdown-tree-select"].filter(Boolean).join(" "),ref:function(t){e.node=t}},s().createElement("div",{className:["dropdown","simpleSelect"===o&&"simple-select","radioSelect"===o&&"radio-select"].filter(Boolean).join(" ")},s().createElement(H,tm({onTrigger:this.onTrigger,showDropdown:u},d,{tags:p,tabIndex:c}),s().createElement(B,tm({tags:p,onTagRemove:this.onTagRemove},d),!a&&h)),u&&s().createElement("div",tm({className:"dropdown-content"},this.getAriaAttributes()),a&&h,this.state.allNodesHidden?s().createElement("span",{className:"no-matches"},i.noMatches||"No matches found"):s().createElement(eZ,tm({data:this.state.tree,keepTreeOnSearch:this.props.keepTreeOnSearch,keepChildrenOnSearch:this.props.keepChildrenOnSearch,searchModeOn:this.state.searchModeOn,onAction:this.onAction,onCheckboxChange:this.onCheckboxChange,onNodeToggle:this.onNodeToggle,mode:o,showPartiallySelected:this.props.showPartiallySelected},d)))))}}],function(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,n.key,n)}}(o.prototype,t),Object.defineProperty(o,"prototype",{writable:!1}),o}(l.Component);tj(t_,"propTypes",{data:c().oneOfType([c().object,c().array]).isRequired,clearSearchOnChange:c().bool,keepTreeOnSearch:c().bool,keepChildrenOnSearch:c().bool,keepOpenOnSelect:c().bool,texts:c().shape({placeholder:c().string,inlineSearchPlaceholder:c().string,noMatches:c().string,label:c().string,labelRemove:c().string}),showDropdown:c().oneOf(["default","initial","always"]),className:c().string,onChange:c().func,onAction:c().func,onNodeToggle:c().func,onFocus:c().func,onBlur:c().func,mode:c().oneOf(["multiSelect","simpleSelect","radioSelect","hierarchical"]),showPartiallySelected:c().bool,disabled:c().bool,readOnly:c().bool,id:c().string,
1searchPredicate:c().func,inlineSearchInput:c().bool,tabIndex:c().number,disablePoppingOnBackspace:c().bool}),tj(t_,"defaultProps",{onAction:function(){},onFocus:function(){},onBlur:function(){},onChange:function(){},texts:{},showDropdown:"default",inlineSearchInput:!1,tabIndex:0,disablePoppingOnBackspace:!1});let tT=t_})(),o})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.