text: !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=320)}([function(e,t,n){"use strict";e.exports={oauthAppID:"ZzenR9GsVLP7AmlY",webMapID:"286120c4a4fb4d6daac446edd9e97540",portalUrl:"https://lib-gis1.library.oregonstate.edu/arcgis",FIELD_NAME:{hucLayerHucID:"huc12",hucLayerHucName:"name",speciesLookupHucID:"huc12",statusType:"statustype",speciesLookup:{speciesCode:"element_global_id",speciesName:"scientific_name",taxa:"taxonomic_group",boundaryLayerLink:"boundarylayerlink",pdfLink:"pdlLink"},speciesDistribution:{speciesCode:"speciescode",hucID:"hucid"},feedbackTable:{hucID:"hucid",userID:"userid",species:"species",comment:"comment_",status:"statustype",retirementDate:"retirementdate",data_load_date:"dataloaddate"},overallFeedback:{userID:"userid",species:"species",comment:"comment",rating:"rating",retirementDate:"retirementdate",data_load_date:"dataloaddate"},speciesByUser:{speciesCode:"cutecode",email:"Reviewer_email"},pdfLookup:{speciesCode:"cutecode",url:"url"},data_load_date:{species_code:"cutecode",data_load_date:"dataloaddate"}},DOM_ID:{mainControl:"mainControlDiv",mapViewContainer:"viewDiv",speciesSelector:"selectorsDiv",feedbackControl:"feedbackControlDiv",overallFeedbackControl:"overallFeedbackDiv",legend:"legendDiv",listViewOverallFeedback:"listViewForOverallFeedbackDiv",listViewDeatiledFeedback:"listViewForDetailedFeedbackDiv",listViewForFeedbacksByHuc:"listViewForFeedbacksByHucDiv",searchWidgetDiv:"searchWidgetDiv",layerListDiv:"layerListDiv"},URL:{speciesLookupTable:"https://lib-gis3.library.oregonstate.edu/arcgis/rest/services/Hosted/SpeciesMasterLookup/FeatureServer/0",speciesDistribution:"https://lib-gis3.library.oregonstate.edu/arcgis/rest/services/Hosted/Species_Modeling_Extent/FeatureServer/0",speciesByUser:"https://lib-gis3.library.oregonstate.edu/arcgis/rest/services/Hosted/SpeciesReviewersLookup/FeatureServer/0",statusTable:"https://lib-gis3.library.oregonstate.edu/arcgis/rest/services/Hosted/Status_Code_Lookup/FeatureServer/0",feedbackTable:"https://lib-gis3.library.oregonstate.edu/arcgis/rest/services/Hosted/Detailed_Feedback/FeatureServer/0",overallFeedback:"https://lib-gis3.library.oregonstate.edu/arcgis/rest/services/Hosted/Overall_Feedback/FeatureServer/0",pdfLookup:"https://lib-gis3.library.oregonstate.edu/arcgis/rest/services/Hosted/PDF_Lookup/FeatureServer/0",WatershedBoundaryDataset_HUC12:"https://lib-gis1.library.oregonstate.edu/arcgis/rest/services/watersheds/oregon_watersheds/FeatureServer/3",data_load_date:"https://lib-gis3.library.oregonstate.edu/arcgis/rest/services/Hosted/Data_Load_Date/FeatureServer/0"},reference_layers:{usa_protected_areas:{itemId:"bdf6f40921dd4e68a7a6a7779778d571",title:"USA Protected Areas"},USA_NLCD_Land_Cover_2011:{itemId:"8667845812be4d7fa683f1db9f5f9e52",title:"USA NLCD Land Cover"},USA_Forest_Type:{itemId:"df87a547d8a24056ac0ea63b80d8dd4c",title:"USA Forest Type"},USA_Wetlands:{itemId:"0af8e39ad622419c8b1cf1648a2ecf95",title:"USA Wetlands"}},COLOR:{hucBorder:[255,255,255,.3],hucBorderIsModeled:[255,255,255,.5],hucBorderCommentWithoutAction:[239,35,60,1],hucFill:[217,217,217,.4],status0:[200,200,200,.5],status1:[166,219,160,.5],status2:[194,165,207,.5],actualModeledExtent:"#ffd400"}}},function(e,t,n){var r=n(2),o=n(11),i=n(16),a=n(12),c=n(25),u=function(e,t,n){var s,l,f,d,p=e&u.F,h=e&u.G,v=e&u.S,g=e&u.P,y=e&u.B,b=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,m=h?o:o[t]||(o[t]={}),w=m.prototype||(m.prototype={});for(s in h&&(n=t),n)f=((l=!p&&b&&void 0!==b[s])?b:n)[s],d=y&&l?c(f,r):g&&"function"==typeof f?c(Function.call,f):f,b&&a(b,s,f,e&u.U),m[s]!=f&&i(m,s,d),g&&w[s]!=f&&(w[s]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(5);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(51)("wks"),o=n(33),i=n(2).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(21),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(4),o=n(92),i=n(30),a=Object.defineProperty;t.f=n(10)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){!function(e){"use strict";var t="4.14",n="next";function r(e){if(e.toLowerCase()===n)return n;var t=e&&e.match(/^(\d)\.(\d+)/);return t&&{major:parseInt(t[1],10),minor:parseInt(t[2],10)}}function o(e){return void 0===e&&(e=t),"https://js.arcgis.com/"+e+"/"}function i(e){return!e||r(e)?function(e){void 0===e&&(e=t);var i=o(e),a=r(e);if(a!==n&&3===a.major){var c=a.minor<=10?"js/":"";return""+i+c+"esri/css/esri.css"}return i+"esri/themes/light/main.css"}(e):e}function a(e,t){var n=i(e),r=function(e){return document.querySelector('link[href*="'+e+'"]')}(n);return r||function(e,t){if(t){var n=document.querySelector(t);n.parentNode.insertBefore(e,n)}else document.head.appendChild(e)}(r=function(e){var t=document.createElement("link");return t.rel="stylesheet",t.href=e,t}(n),t),r}var c={Promise:"undefined"!=typeof window?window.Promise:void 0},u={};function s(e,t,n){var r;n&&(r=function(e,t){var n=function(r){t(r.error||new Error("There was an error attempting to load "+e.src)),e.removeEventListener("error",n,!1)};return e.addEventListener("error",n,!1),n}(e,n));var o=function(){t(e),e.removeEventListener("load",o,!1),r&&e.removeEventListener("error",r,!1)};e.addEventListener("load",o,!1)}function l(e){void 0===e&&(e={}),u=e}function f(){return document.querySelector("script[data-esri-loader]")}function d(){var e=window.require;return e&&e.on}function p(e){void 0===e&&(e={});var t={};[u,e].forEach(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])});var n=t.version,r=t.url||o(n);return new c.Promise(function(e,o){var i=f();if(i){var c=i.getAttribute("src");c!==r?o(new Error("The ArcGIS API for JavaScript is already loaded ("+c+").")):d()?e(i):s(i,e,o)}else if(d())o(new Error("The ArcGIS API for JavaScript is already loaded."));else{var u=t.css;if(u){var l=!0===u;a(l?n:u,t.insertCssBefore)}t.dojoConfig&&(window.dojoConfig=t.dojoConfig),s(i=function(e){var t=document.createElement("script");return t.type="text/javascript",t.src=e,t.setAttribute("data-esri-loader","loading"),t}(r),function(){i.setAttribute("data-esri-loader","loaded"),e(i)},o),document.body.appendChild(i)}})}function h(e){return new c.Promise(function(t,n){var r=window.require.on("error",n);window.require(e,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.remove(),t(e)})})}function v(e,t){if(void 0===t&&(t={}),d())return h(e);var n=f(),r=n&&n.getAttribute("src");return!t.url&&r&&(t.url=r),p(t).then(function(){return h(e)})}var g={getScript:f,isLoaded:d,loadModules:v,loadScript:p,loadCss:a,setDefaultOptions:l,utils:c};e.getScript=f,e.isLoaded=d,e.loadModules=v,e.loadScript=p,e.loadCss=a,e.setDefaultOptions=l,e.utils=c,e.default=g,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){e.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=e.exports={version:"2.6.4"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(2),o=n(16),i=n(15),a=n(33)("src"),c=n(134),u=(""+c).split("toString");n(11).inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(s&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||c.call(this)})},function(e,t,n){var r=n(28);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(1),o=n(3),i=n(28),a=/"/g,c=function(e,t,n,r){var o=String(i(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+String(r).replace(a,"&quot;")+'"'),c+">"+o+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(c),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(8),o=n(32);e.exports=n(10)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(47),o=n(28);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(122),o=n(298),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function c(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===i.call(e)}function s(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:o,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:c,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return c(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:s,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,o=arguments.length;r<o;r++)s(arguments[r],n);return t},extend:function(e,t,n){return s(t,function(t,o){e[o]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){e.exports=n(297)},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(48),o=n(32),i=n(17),a=n(30),c=n(15),u=n(92),s=Object.getOwnPropertyDescriptor;t.f=n(10)?s:function(e,t){if(e=i(e),t=a(t,!0),u)try{return s(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(1),o=n(11),i=n(3);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(25),o=n(47),i=n(13),a=n(7),c=n(224);e.exports=function(e,t){var n=1==e,u=2==e,s=3==e,l=4==e,f=6==e,d=5==e||f,p=t||c;return function(t,c,h){for(var v,g,y=i(t),b=o(y),m=r(c,h,3),w=a(b.length),S=0,F=n?p(t,w):u?p(t,0):void 0;w>S;S++)if((d||S in b)&&(g=m(v=b[S],S,y),e))if(n)F[S]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return S;case 2:F.push(v)}else if(l)return!1;return f?-1:s||l?l:F}}},function(e,t,n){var r=n(26);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){"use strict";if(n(10)){var r=n(34),o=n(2),i=n(3),a=n(1),c=n(62),u=n(88),s=n(25),l=n(45),f=n(32),d=n(16),p=n(46),h=n(21),v=n(7),g=n(118),y=n(36),b=n(30),m=n(15),w=n(49),S=n(5),F=n(13),k=n(80),E=n(37),x=n(39),_=n(38).f,I=n(82),D=n(33),L=n(6),M=n(24),A=n(52),O=n(50),T=n(84),C=n(42),N=n(55),R=n(44),P=n(83),j=n(109),H=n(8),B=n(22),U=H.f,q=B.f,V=o.RangeError,W=o.TypeError,G=o.Uint8Array,z=Array.prototype,X=u.ArrayBuffer,K=u.DataView,Y=M(0),J=M(2),$=M(3),Q=M(4),Z=M(5),ee=M(6),te=A(!0),ne=A(!1),re=T.values,oe=T.keys,ie=T.entries,ae=z.lastIndexOf,ce=z.reduce,ue=z.reduceRight,se=z.join,le=z.sort,fe=z.slice,de=z.toString,pe=z.toLocaleString,he=L("iterator"),ve=L("toStringTag"),ge=D("typed_constructor"),ye=D("def_constructor"),be=c.CONSTR,me=c.TYPED,we=c.VIEW,Se=M(1,function(e,t){return _e(O(e,e[ye]),t)}),Fe=i(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),ke=!!G&&!!G.prototype.set&&i(function(){new G(1).set({})}),Ee=function(e,t){var n=h(e);if(n<0||n%t)throw V("Wrong offset!");return n},xe=function(e){if(S(e)&&me in e)return e;throw W(e+" is not a typed array!")},_e=function(e,t){if(!(S(e)&&ge in e))throw W("It is not a typed array constructor!");return new e(t)},Ie=function(e,t){return De(O(e,e[ye]),t)},De=function(e,t){for(var n=0,r=t.length,o=_e(e,r);r>n;)o[n]=t[n++];return o},Le=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Me=function(e){var t,n,r,o,i,a,c=F(e),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,d=I(c);if(null!=d&&!k(d)){for(a=d.call(c),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);c=r}for(f&&u>2&&(l=s(l,arguments[2],2)),t=0,n=v(c.length),o=_e(this,n);n>t;t++)o[t]=f?l(c[t],t):c[t];return o},Ae=function(){for(var e=0,t=arguments.length,n=_e(this,t);t>e;)n[e]=arguments[e++];return n},Oe=!!G&&i(function(){pe.call(new G(1))}),Te=function(){return pe.apply(Oe?fe.call(xe(this)):xe(this),arguments)},Ce={copyWithin:function(e,t){return j.call(xe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Q(xe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return P.apply(xe(this),arguments)},filter:function(e){return Ie(this,J(xe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Z(xe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(xe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Y(xe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(xe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(xe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return se.apply(xe(this),arguments)},lastIndexOf:function(e){return ae.apply(xe(this),arguments)},map:function(e){return Se(xe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ce.apply(xe(this),arguments)},reduceRight:function(e){return ue.apply(xe(this),arguments)},reverse:function(){for(var e,t=xe(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this},some:function(e){return $(xe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return le.call(xe(this),e)},subarray:function(e,t){var n=xe(this),r=n.length,o=y(e,r);return new(O(n,n[ye]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===t?r:y(t,r))-o))}},Ne=function(e,t){return Ie(this,fe.call(xe(this),e,t))},Re=function(e){xe(this);var t=Ee(arguments[1],1),n=this.length,r=F(e),o=v(r.length),i=0;if(o+t>n)throw V("Wrong length!");for(;i<o;)this[t+i]=r[i++]},Pe={entries:function(){return ie.call(xe(this))},keys:function(){return oe.call(xe(this))},values:function(){return re.call(xe(this))}},je=function(e,t){return S(e)&&e[me]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},He=function(e,t){return je(e,t=b(t,!0))?f(2,e[t]):q(e,t)},Be=function(e,t,n){return!(je(e,t=b(t,!0))&&S(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};be||(B.f=He,H.f=Be),a(a.S+a.F*!be,"Object",{getOwnPropertyDescriptor:He,defineProperty:Be}),i(function(){de.call({})})&&(de=pe=function(){return se.call(this)});var Ue=p({},Ce);p(Ue,Pe),d(Ue,he,Pe.values),p(Ue,{slice:Ne,set:Re,constructor:function(){},toString:de,toLocaleString:Te}),Le(Ue,"buffer","b"),Le(Ue,"byteOffset","o"),Le(Ue,"byteLength","l"),Le(Ue,"length","e"),U(Ue,ve,{get:function(){return this[me]}}),e.exports=function(e,t,n,u){var s=e+((u=!!u)?"Clamped":"")+"Array",f="get"+e,p="set"+e,h=o[s],y=h||{},b=h&&x(h),m=!h||!c.ABV,F={},k=h&&h.prototype,I=function(e,n){U(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[f](n*t+r.o,Fe)}(this,n)},set:function(e){return function(e,n,r){var o=e._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),o.v[p](n*t+o.o,r,Fe)}(this,n,e)},enumerable:!0})};m?(h=n(function(e,n,r,o){l(e,h,s,"_d");var i,a,c,u,f=0,p=0;if(S(n)){if(!(n instanceof X||"ArrayBuffer"==(u=w(n))||"SharedArrayBuffer"==u))return me in n?De(h,n):Me.call(h,n);i=n,p=Ee(r,t);var y=n.byteLength;if(void 0===o){if(y%t)throw V("Wrong length!");if((a=y-p)<0)throw V("Wrong length!")}else if((a=v(o)*t)+p>y)throw V("Wrong length!");c=a/t}else c=g(n),i=new X(a=c*t);for(d(e,"_d",{b:i,o:p,l:a,e:c,v:new K(i)});f<c;)I(e,f++)}),k=h.prototype=E(Ue),d(k,"constructor",h)):i(function(){h(1)})&&i(function(){new h(-1)})&&N(function(e){new h,new h(null),new h(1.5),new h(e)},!0)||(h=n(function(e,n,r,o){var i;return l(e,h,s),S(n)?n instanceof X||"ArrayBuffer"==(i=w(n))||"SharedArrayBuffer"==i?void 0!==o?new y(n,Ee(r,t),o):void 0!==r?new y(n,Ee(r,t)):new y(n):me in n?De(h,n):Me.call(h,n):new y(g(n))}),Y(b!==Function.prototype?_(y).concat(_(b)):_(y),function(e){e in h||d(h,e,y[e])}),h.prototype=k,r||(k.constructor=h));var D=k[he],L=!!D&&("values"==D.name||null==D.name),M=Pe.values;d(h,ge,!0),d(k,me,s),d(k,we,!0),d(k,ye,h),(u?new h(1)[ve]==s:ve in k)||U(k,ve,{get:function(){return s}}),F[s]=h,a(a.G+a.W+a.F*(h!=y),F),a(a.S,s,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*i(function(){y.of.call(h,1)}),s,{from:Me,of:Ae}),"BYTES_PER_ELEMENT"in k||d(k,"BYTES_PER_ELEMENT",t),a(a.P,s,Ce),R(s),a(a.P+a.F*ke,s,{set:Re}),a(a.P+a.F*!L,s,Pe),r||k.toString==de||(k.toString=de),a(a.P+a.F*i(function(){new h(1).slice()}),s,{slice:Ne}),a(a.P+a.F*(i(function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()})||!i(function(){k.toLocaleString.call([1,2])})),s,{toLocaleString:Te}),C[s]=L?D:M,r||L||d(k,he,M)}}else e.exports=function(){}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(33)("meta"),o=n(5),i=n(15),a=n(8).f,c=0,u=Object.isExtensible||function(){return!0},s=!n(3)(function(){return u(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++c,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return s&&f.NEED&&u(e)&&!i(e,r)&&l(e),e}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=!1},function(e,t,n){var r=n(94),o=n(66);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(21),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(4),o=n(95),i=n(66),a=n(65)("IE_PROTO"),c=function(){},u=function(){var e,t=n(63)("iframe"),r=i.length;for(t.style.display="none",n(68).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(94),o=n(66).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(15),o=n(13),i=n(65)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var r=n(8).f,o=n(15),i=n(6)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,n){var r=n(6)("unscopables"),o=Array.prototype;null==o[r]&&n(16)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){"use strict";var r=n(2),o=n(8),i=n(10),a=n(6)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(12);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){var r=n(27);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(27),o=n(6)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(4),o=n(26),i=n(6)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r=n(11),o=n(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(34)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(17),o=n(7),i=n(36);e.exports=function(e){return function(t,n,a){var c,u=r(t),s=o(u.length),l=i(a,s);if(e&&n!=n){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(1),o=n(28),i=n(3),a=n(70),c="["+a+"]",u=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(e,t,n){var o={},c=i(function(){return!!a[e]()||"​"!="​"[e]()}),u=o[e]=c?t(f):a[e];n&&(o[n]=u),r(r.P+r.F*c,"String",o)},f=l.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(s,"")),e};e.exports=l},function(e,t,n){var r=n(6)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(4);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(49),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";n(111);var r=n(12),o=n(16),i=n(3),a=n(28),c=n(6),u=n(85),s=c("species"),l=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),f=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var d=c(e),p=!i(function(){var t={};return t[d]=function(){return 7},7!=""[e](t)}),h=p?!i(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[s]=function(){return n}),n[d](""),!t}):void 0;if(!p||!h||"replace"===e&&!l||"split"===e&&!f){var v=/./[d],g=n(a,d,""[e],function(e,t,n,r,o){return t.exec===u?p&&!o?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),y=g[0],b=g[1];r(String.prototype,e,y),o(RegExp.prototype,d,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},function(e,t,n){var r=n(25),o=n(107),i=n(80),a=n(4),c=n(7),u=n(82),s={},l={};(t=e.exports=function(e,t,n,f,d){var p,h,v,g,y=d?function(){return e}:u(e),b=r(n,f,t?2:1),m=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(p=c(e.length);p>m;m++)if((g=t?b(a(h=e[m])[0],h[1]):b(e[m]))===s||g===l)return g}else for(v=y.call(e);!(h=v.next()).done;)if((g=o(v,b,h.value,t))===s||g===l)return g}).BREAK=s,t.RETURN=l},function(e,t,n){var r=n(2).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(2),o=n(1),i=n(12),a=n(46),c=n(31),u=n(59),s=n(45),l=n(5),f=n(3),d=n(55),p=n(41),h=n(71);e.exports=function(e,t,n,v,g,y){var b=r[e],m=b,w=g?"set":"add",S=m&&m.prototype,F={},k=function(e){var t=S[e];i(S,e,"delete"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return y&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof m&&(y||S.forEach&&!f(function(){(new m).entries().next()}))){var E=new m,x=E[w](y?{}:-0,1)!=E,_=f(function(){E.has(1)}),I=d(function(e){new m(e)}),D=!y&&f(function(){for(var e=new m,t=5;t--;)e[w](t,t);return!e.has(-0)});I||((m=t(function(t,n){s(t,m,e);var r=h(new b,t,m);return null!=n&&u(n,g,r[w],r),r})).prototype=S,S.constructor=m),(_||D)&&(k("delete"),k("has"),g&&k("get")),(D||x)&&k(w),y&&S.clear&&delete S.clear}else m=v.getConstructor(t,e,g,w),a(m.prototype,n),c.NEED=!0;return p(m,e),F[e]=m,o(o.G+o.W+o.F*(m!=b),F),y||v.setStrong(m,e,g),m}},function(e,t,n){for(var r,o=n(2),i=n(16),a=n(33),c=a("typed_array"),u=a("view"),s=!(!o.ArrayBuffer||!o.DataView),l=s,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=o[d[f++]])?(i(r.prototype,c,!0),i(r.prototype,u,!0)):l=!1;e.exports={ABV:s,CONSTR:l,TYPED:c,VIEW:u}},function(e,t,n){var r=n(5),o=n(2).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){t.f=n(6)},function(e,t,n){var r=n(51)("keys"),o=n(33);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(27);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(5),o=n(4),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(25)(Function.call,n(22).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t){e.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(e,t,n){var r=n(5),o=n(69).set;e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){"use strict";var r=n(21),o=n(28);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){var r=n(21),o=n(28);e.exports=function(e){return function(t,n){var i,a,c=String(o(t)),u=r(n),s=c.length;return u<0||u>=s?e?"":void 0:(i=c.charCodeAt(u))<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):i:e?c.slice(u,u+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(34),o=n(1),i=n(12),a=n(16),c=n(42),u=n(106),s=n(41),l=n(39),f=n(6)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,v,g,y){u(n,t,h);var b,m,w,S=function(e){if(!d&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},F=t+" Iterator",k="values"==v,E=!1,x=e.prototype,_=x[f]||x["@@iterator"]||v&&x[v],I=_||S(v),D=v?k?S("entries"):I:void 0,L="Array"==t&&x.entries||_;if(L&&(w=l(L.call(new e)))!==Object.prototype&&w.next&&(s(w,F,!0),r||"function"==typeof w[f]||a(w,f,p)),k&&_&&"values"!==_.name&&(E=!0,I=function(){return _.call(this)}),r&&!y||!d&&!E&&x[f]||a(x,f,I),c[t]=I,c[F]=p,v)if(b={values:k?I:S("values"),keys:g?I:S("keys"),entries:D},y)for(m in b)m in x||i(x,m,b[m]);else o(o.P+o.F*(d||E),t,b);return b}},function(e,t,n){var r=n(78),o=n(28);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(5),o=n(27),i=n(6)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(6)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(42),o=n(6)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){"use strict";var r=n(8),o=n(32);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){var r=n(49),o=n(6)("iterator"),i=n(42);e.exports=n(11).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(13),o=n(36),i=n(7);e.exports=function(e){for(var t=r(this),n=i(t.length),a=arguments.length,c=o(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,s=void 0===u?n:o(u,n);s>c;)t[c++]=e;return t}},function(e,t,n){"use strict";var r=n(43),o=n(110),i=n(42),a=n(17);e.exports=n(76)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r,o,i=n(56),a=RegExp.prototype.exec,c=String.prototype.replace,u=a,s=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=void 0!==/()??/.exec("")[1];(s||l)&&(u=function(e){var t,n,r,o,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",i.call(u))),s&&(t=u.lastIndex),r=a.call(u,e),s&&r&&(u.lastIndex=u.global?r.index+r[0].length:t),l&&r&&r.length>1&&c.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),e.exports=u},function(e,t,n){"use strict";var r=n(75)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r,o,i,a=n(25),c=n(100),u=n(68),s=n(63),l=n(2),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,g=0,y={},b=function(){var e=+this;if(y.hasOwnProperty(e)){var t=y[e];delete y[e],t()}},m=function(e){b.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return y[++g]=function(){c("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete y[e]},"process"==n(27)(f)?r=function(e){f.nextTick(a(b,e,1))}:v&&v.now?r=function(e){v.now(a(b,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=m,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",m,!1)):r="onreadystatechange"in s("script")?function(e){u.appendChild(s("script")).onreadystatechange=function(){u.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:d,clear:p}},function(e,t,n){"use strict";var r=n(2),o=n(10),i=n(34),a=n(62),c=n(16),u=n(46),s=n(3),l=n(45),f=n(21),d=n(7),p=n(118),h=n(38).f,v=n(8).f,g=n(83),y=n(41),b="prototype",m="Wrong index!",w=r.ArrayBuffer,S=r.DataView,F=r.Math,k=r.RangeError,E=r.Infinity,x=w,_=F.abs,I=F.pow,D=F.floor,L=F.log,M=F.LN2,A=o?"_b":"buffer",O=o?"_l":"byteLength",T=o?"_o":"byteOffset";function C(e,t,n){var r,o,i,a=new Array(n),c=8*n-t-1,u=(1<<c)-1,s=u>>1,l=23===t?I(2,-24)-I(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=_(e))!=e||e===E?(o=e!=e?1:0,r=u):(r=D(L(e)/M),e*(i=I(2,-r))<1&&(r--,i*=2),(e+=r+s>=1?l/i:l*I(2,1-s))*i>=2&&(r++,i/=2),r+s>=u?(o=0,r=u):r+s>=1?(o=(e*i-1)*I(2,t),r+=s):(o=e*I(2,s-1)*I(2,t),r=0));t>=8;a[f++]=255&o,o/=256,t-=8);for(r=r<<t|o,c+=t;c>0;a[f++]=255&r,r/=256,c-=8);return a[--f]|=128*d,a}function N(e,t,n){var r,o=8*n-t-1,i=(1<<o)-1,a=i>>1,c=o-7,u=n-1,s=e[u--],l=127&s;for(s>>=7;c>0;l=256*l+e[u],u--,c-=8);for(r=l&(1<<-c)-1,l>>=-c,c+=t;c>0;r=256*r+e[u],u--,c-=8);if(0===l)l=1-a;else{if(l===i)return r?NaN:s?-E:E;r+=I(2,t),l-=a}return(s?-1:1)*r*I(2,l-t)}function R(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function P(e){return[255&e]}function j(e){return[255&e,e>>8&255]}function H(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function B(e){return C(e,52,8)}function U(e){return C(e,23,4)}function q(e,t,n){v(e[b],t,{get:function(){return this[n]}})}function V(e,t,n,r){var o=p(+n);if(o+t>e[O])throw k(m);var i=e[A]._b,a=o+e[T],c=i.slice(a,a+t);return r?c:c.reverse()}function W(e,t,n,r,o,i){var a=p(+n);if(a+t>e[O])throw k(m);for(var c=e[A]._b,u=a+e[T],s=r(+o),l=0;l<t;l++)c[u+l]=s[i?l:t-l-1]}if(a.ABV){if(!s(function(){w(1)})||!s(function(){new w(-1)})||s(function(){return new w,new w(1.5),new w(NaN),"ArrayBuffer"!=w.name})){for(var G,z=(w=function(e){return l(this,w),new x(p(e))})[b]=x[b],X=h(x),K=0;X.length>K;)(G=X[K++])in w||c(w,G,x[G]);i||(z.constructor=w)}var Y=new S(new w(2)),J=S[b].setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||u(S[b],{setInt8:function(e,t){J.call(this,e,t<<24>>24)},setUint8:function(e,t){J.call(this,e,t<<24>>24)}},!0)}else w=function(e){l(this,w,"ArrayBuffer");var t=p(e);this._b=g.call(new Array(t),0),this[O]=t},S=function(e,t,n){l(this,S,"DataView"),l(e,w,"DataView");var r=e[O],o=f(t);if(o<0||o>r)throw k("Wrong offset!");if(o+(n=void 0===n?r-o:d(n))>r)throw k("Wrong length!");this[A]=e,this[T]=o,this[O]=n},o&&(q(w,"byteLength","_l"),q(S,"buffer","_b"),q(S,"byteLength","_l"),q(S,"byteOffset","_o")),u(S[b],{getInt8:function(e){return V(this,1,e)[0]<<24>>24},getUint8:function(e){return V(this,1,e)[0]},getInt16:function(e){var t=V(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=V(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return R(V(this,4,e,arguments[1]))},getUint32:function(e){return R(V(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return N(V(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return N(V(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){W(this,1,e,P,t)},setUint8:function(e,t){W(this,1,e,P,t)},setInt16:function(e,t){W(this,2,e,j,t,arguments[2])},setUint16:function(e,t){W(this,2,e,j,t,arguments[2])},setInt32:function(e,t){W(this,4,e,H,t,arguments[2])},setUint32:function(e,t){W(this,4,e,H,t,arguments[2])},setFloat32:function(e,t){W(this,4,e,U,t,arguments[2])},setFloat64:function(e,t){W(this,8,e,B,t,arguments[2])}});y(w,"ArrayBuffer"),y(S,"DataView"),c(S[b],a.VIEW,!0),t.ArrayBuffer=w,t.DataView=S},function(e,t,n){"use strict";(function(t){var r=n(18),o=n(300),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={adapter:("undefined"!=typeof XMLHttpRequest?c=n(124):void 0!==t&&(c=n(124)),c),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){u.headers[e]={}}),r.forEach(["post","put","patch"],function(e){u.headers[e]=r.merge(i)}),e.exports=u}).call(this,n(123))},function(e,t,n){(function(t,n){
  /*!
   * @overview es6-promise - a tiny implementation of Promises/A+.
   * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
   * @license   Licensed under MIT license
   *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
   * @version   v4.2.5+7f2b526d
   */var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,i=void 0,a=void 0,c=function(e,t){h[o]=e,h[o+1]=t,2===(o+=2)&&(a?a(v):w())},u="undefined"!=typeof window?window:void 0,s=u||{},l=s.MutationObserver||s.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(v,1)}}var h=new Array(1e3);function v(){for(var e=0;e<o;e+=2){(0,h[e])(h[e+1]),h[e]=void 0,h[e+1]=void 0}o=0}var g,y,b,m,w=void 0;function S(e,t){var n=this,r=new this.constructor(E);void 0===r[k]&&H(r);var o=n._state;if(o){var i=arguments[o-1];c(function(){return P(o,r,i,n._result)})}else N(n,r,e,t);return r}function F(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(E);return A(t,e),t}f?w=function(){return t.nextTick(v)}:l?(y=0,b=new l(v),m=document.createTextNode(""),b.observe(m,{characterData:!0}),w=function(){m.data=y=++y%2}):d?((g=new MessageChannel).port1.onmessage=v,w=function(){return g.port2.postMessage(0)}):w=void 0===u?function(){try{var e=Function("return this")().require("vertx");return void 0!==(i=e.runOnLoop||e.runOnContext)?function(){i(v)}:p()}catch(e){return p()}}():p();var k=Math.random().toString(36).substring(2);function E(){}var x=void 0,_=1,I=2,D={error:null};function L(e){try{return e.then}catch(e){return D.error=e,D}}function M(t,n,r){n.constructor===t.constructor&&r===S&&n.constructor.resolve===F?function(e,t){t._state===_?T(e,t._result):t._state===I?C(e,t._result):N(t,void 0,function(t){return A(e,t)},function(t){return C(e,t)})}(t,n):r===D?(C(t,D.error),D.error=null):void 0===r?T(t,n):e(r)?function(e,t,n){c(function(e){var r=!1,o=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,function(n){r||(r=!0,t!==n?A(e,n):T(e,n))},function(t){r||(r=!0,C(e,t))},e._label);!r&&o&&(r=!0,C(e,o))},e)}(t,n,r):T(t,n)}function A(e,t){var n,r;e===t?C(e,new TypeError("You cannot resolve a promise with itself")):(r=typeof(n=t),null===n||"object"!==r&&"function"!==r?T(e,t):M(e,t,L(t)))}function O(e){e._onerror&&e._onerror(e._result),R(e)}function T(e,t){e._state===x&&(e._result=t,e._state=_,0!==e._subscribers.length&&c(R,e))}function C(e,t){e._state===x&&(e._state=I,e._result=t,c(O,e))}function N(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+_]=n,o[i+I]=r,0===i&&e._state&&c(R,e)}function R(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?P(n,r,o,i):o(i);e._subscribers.length=0}}function P(t,n,r,o){var i=e(r),a=void 0,c=void 0,u=void 0,s=void 0;if(i){if((a=function(e,t){try{return e(t)}catch(e){return D.error=e,D}}(r,o))===D?(s=!0,c=a.error,a.error=null):u=!0,n===a)return void C(n,new TypeError("A promises callback cannot return that same promise."))}else a=o,u=!0;n._state!==x||(i&&u?A(n,a):s?C(n,c):t===_?T(n,a):t===I&&C(n,a))}var j=0;function H(e){e[k]=j++,e._state=void 0,e._result=void 0,e._subscribers=[]}var B=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(E),this.promise[k]||H(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&T(this.promise,this._result))):C(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===x&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===F){var o=L(e);if(o===S&&e._state!==x)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===U){var i=new n(E);M(i,e,o),this._willSettleAt(i,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===x&&(this._remaining--,e===I?C(r,n):this._result[t]=n),0===this._remaining&&T(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;N(e,void 0,function(e){return n._settledAt(_,t,e)},function(e){return n._settledAt(I,t,e)})},e}(),U=function(){function t(e){this[k]=j++,this._result=this._state=void 0,this._subscribers=[],E!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t(function(t){A(e,t)},function(t){C(e,t)})}catch(t){C(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}):this.then(t,t)},t}();return U.prototype.then=S,U.all=function(e){return new B(this,e).promise},U.race=function(e){var t=this;return r(e)?new t(function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}):new t(function(e,t){return t(new TypeError("You must pass an array to race."))})},U.resolve=F,U.reject=function(e){var t=new this(E);return C(t,e),t},U._setScheduler=function(e){a=e},U._setAsap=function(e){c=e},U._asap=c,U.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=U},U.Promise=U,U},e.exports=r()}).call(this,n(123),n(91))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=!n(10)&&!n(3)(function(){return 7!=Object.defineProperty(n(63)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2),o=n(11),i=n(34),a=n(64),c=n(8).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||c(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(15),o=n(17),i=n(52)(!1),a=n(65)("IE_PROTO");e.exports=function(e,t){var n,c=o(e),u=0,s=[];for(n in c)n!=a&&r(c,n)&&s.push(n);for(;t.length>u;)r(c,n=t[u++])&&(~i(s,n)||s.push(n));return s}},function(e,t,n){var r=n(8),o=n(4),i=n(35);e.exports=n(10)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),c=a.length,u=0;c>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(17),o=n(38).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){"use strict";var r=n(35),o=n(53),i=n(48),a=n(13),c=n(47),u=Object.assign;e.exports=!u||n(3)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,s=1,l=o.f,f=i.f;u>s;)for(var d,p=c(arguments[s++]),h=l?r(p).concat(l(p)):r(p),v=h.length,g=0;v>g;)f.call(p,d=h[g++])&&(n[d]=p[d]);return n}:u},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(26),o=n(5),i=n(100),a=[].slice,c={};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),u=function(){var r=n.concat(a.call(arguments));return this instanceof u?function(e,t,n){if(!(t in c)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";c[t]=Function("F,a","return new F("+r.join(",")+")")}return c[t](e,n)}(t,r.length,r):i(t,r,e)};return o(t.prototype)&&(u.prototype=t.prototype),u}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(2).parseInt,o=n(54).trim,i=n(70),a=/^[-+]?0[xX]/;e.exports=8!==r(i+"08")||22!==r(i+"0x16")?function(e,t){var n=o(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(2).parseFloat,o=n(54).trim;e.exports=1/r(n(70)+"-0")!=-1/0?function(e){var t=o(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(27);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(5),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var r=n(37),o=n(32),i=n(41),a={};n(16)(a,n(6)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(4);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(26),o=n(13),i=n(47),a=n(7);e.exports=function(e,t,n,c,u){r(t);var s=o(e),l=i(s),f=a(s.length),d=u?f-1:0,p=u?-1:1;if(n<2)for(;;){if(d in l){c=l[d],d+=p;break}if(d+=p,u?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:f>d;d+=p)d in l&&(c=t(c,l[d],d,s));return c}},function(e,t,n){"use strict";var r=n(13),o=n(36),i=n(7);e.exports=[].copyWithin||function(e,t){var n=r(this),a=i(n.length),c=o(e,a),u=o(t,a),s=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===s?a:o(s,a))-u,a-c),f=1;for(u<c&&c<u+l&&(f=-1,u+=l-1,c+=l-1);l-- >0;)u in n?n[c]=n[u]:delete n[c],c+=f,u+=f;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(85);n(1)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){n(10)&&"g"!=/./g.flags&&n(8).f(RegExp.prototype,"flags",{configurable:!0,get:n(56)})},function(e,t,n){"use strict";var r,o,i,a,c=n(34),u=n(2),s=n(25),l=n(49),f=n(1),d=n(5),p=n(26),h=n(45),v=n(59),g=n(50),y=n(87).set,b=n(245)(),m=n(114),w=n(246),S=n(60),F=n(115),k=u.TypeError,E=u.process,x=E&&E.versions,_=x&&x.v8||"",I=u.Promise,D="process"==l(E),L=function(){},M=o=m.f,A=!!function(){try{var e=I.resolve(1),t=(e.constructor={})[n(6)("species")]=function(e){e(L,L)};return(D||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==_.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(e){}}(),O=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},T=function(e,t){if(!e._n){e._n=!0;var n=e._c;b(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,c=o?t.ok:t.fail,u=t.resolve,s=t.reject,l=t.domain;try{c?(o||(2==e._h&&R(e),e._h=1),!0===c?n=r:(l&&l.enter(),n=c(r),l&&(l.exit(),a=!0)),n===t.promise?s(k("Promise-chain cycle")):(i=O(n))?i.call(n,u,s):u(n)):s(r)}catch(e){l&&!a&&l.exit(),s(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&C(e)})}},C=function(e){y.call(u,function(){var t,n,r,o=e._v,i=N(e);if(i&&(t=w(function(){D?E.emit("unhandledRejection",o,e):(n=u.onunhandledrejection)?n({promise:e,reason:o}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=D||N(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},N=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){y.call(u,function(){var t;D?E.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},P=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),T(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw k("Promise can't be resolved itself");(t=O(e))?b(function(){var r={_w:n,_d:!1};try{t.call(e,s(j,r,1),s(P,r,1))}catch(e){P.call(r,e)}}):(n._v=e,n._s=1,T(n,!1))}catch(e){P.call({_w:n,_d:!1},e)}}};A||(I=function(e){h(this,I,"Promise","_h"),p(e),r.call(this);try{e(s(j,this,1),s(P,this,1))}catch(e){P.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(46)(I.prototype,{then:function(e,t){var n=M(g(this,I));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=D?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=s(j,e,1),this.reject=s(P,e,1)},m.f=M=function(e){return e===I||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!A,{Promise:I}),n(41)(I,"Promise"),n(44)("Promise"),a=n(11).Promise,f(f.S+f.F*!A,"Promise",{reject:function(e){var t=M(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(c||!A),"Promise",{resolve:function(e){return F(c&&this===a?I:this,e)}}),f(f.S+f.F*!(A&&n(55)(function(e){I.all(e).catch(L)})),"Promise",{all:function(e){var t=this,n=M(t),r=n.resolve,o=n.reject,i=w(function(){var n=[],i=0,a=1;v(e,!1,function(e){var c=i++,u=!1;n.push(void 0),a++,t.resolve(e).then(function(e){u||(u=!0,n[c]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=M(t),r=n.reject,o=w(function(){v(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t,n){"use strict";var r=n(26);function o(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){var r=n(4),o=n(5),i=n(114);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(8).f,o=n(37),i=n(46),a=n(25),c=n(45),u=n(59),s=n(76),l=n(110),f=n(44),d=n(10),p=n(31).fastKey,h=n(40),v=d?"_s":"size",g=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,s){var l=e(function(e,r){c(e,l,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[v]=0,null!=r&&u(r,n,e[s],e)});return i(l.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var n=h(this,t),r=g(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(h(this,t),e)}}),d&&r(l.prototype,"size",{get:function(){return h(this,t)[v]}}),l},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[v]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){s(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?l(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,l(1))},n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){"use strict";var r=n(46),o=n(31).getWeak,i=n(4),a=n(5),c=n(45),u=n(59),s=n(24),l=n(15),f=n(40),d=s(5),p=s(6),h=0,v=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},y=function(e,t){return d(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=y(this,e);if(t)return t[1]},has:function(e){return!!y(this,e)},set:function(e,t){var n=y(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var s=e(function(e,r){c(e,s,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=r&&u(r,n,e[i],e)});return r(s.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?v(f(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?v(f(this,t)).has(e):n&&l(n,this._i)}}),s},def:function(e,t,n){var r=o(i(t),!0);return!0===r?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},function(e,t,n){var r=n(21),o=n(7);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(38),o=n(53),i=n(4),a=n(2).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(7),o=n(72),i=n(28);e.exports=function(e,t,n,a){var c=String(i(e)),u=c.length,s=void 0===n?" ":String(n),l=r(t);if(l<=u||""==s)return c;var f=l-u,d=o.call(s,Math.ceil(f/s.length));return d.length>f&&(d=d.slice(0,f)),a?d+c:c+d}},function(e,t,n){var r=n(35),o=n(17),i=n(48).f;e.exports=function(e){return function(t){for(var n,a=o(t),c=r(a),u=c.length,s=0,l=[];u>s;)i.call(a,n=c[s++])&&l.push(e?[n,a[n]]:a[n]);return l}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!l){var e=c(d);l=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||l||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(18),o=n(301),i=n(303),a=n(304),c=n(305),u=n(125),s="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(306);e.exports=function(e){return new Promise(function(t,l){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest,h="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in p||c(e.url)||(p=new window.XDomainRequest,h="onload",v=!0,p.onprogress=function(){},p.ontimeout=function(){}),e.auth){var g=e.auth.username||"",y=e.auth.password||"";d.Authorization="Basic "+s(g+":"+y)}if(p.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p[h]=function(){if(p&&(4===p.readyState||v)&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?a(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:e,request:p};o(t,l,r),p=null}},p.onerror=function(){l(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){l(u("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var b=n(307),m=(e.withCredentials||c(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;m&&(d[e.xsrfHeaderName]=m)}if("setRequestHeader"in p&&r.forEach(d,function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)}),e.withCredentials&&(p.withCredentials=!0),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),l(e),p=null)}),void 0===f&&(f=null),p.send(f)})}},function(e,t,n){"use strict";var r=n(302);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){e.exports=n.p+"a9be8526b0fb81707be5a7f31bfa94e4.png"},function(e,t,n){e.exports=n.p+"dc7d4b1b6f1ca5e5f8b61b4607c273f5.png"},function(e,t,n){},function(e,t,n){"use strict";(function(e){n(132),n(276),n(278),n(280),n(282),n(284),n(286),n(288),n(290),n(292),n(296),e._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),e._babelPolyfill=!0}).call(this,n(91))},function(e,t,n){n(133),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(214),n(215),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(84),n(239),n(111),n(240),n(112),n(241),n(242),n(243),n(244),n(113),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),e.exports=n(11)},function(e,t,n){"use strict";var r=n(2),o=n(15),i=n(10),a=n(1),c=n(12),u=n(31).KEY,s=n(3),l=n(51),f=n(41),d=n(33),p=n(6),h=n(64),v=n(93),g=n(135),y=n(67),b=n(4),m=n(5),w=n(17),S=n(30),F=n(32),k=n(37),E=n(96),x=n(22),_=n(8),I=n(35),D=x.f,L=_.f,M=E.f,A=r.Symbol,O=r.JSON,T=O&&O.stringify,C=p("_hidden"),N=p("toPrimitive"),R={}.propertyIsEnumerable,P=l("symbol-registry"),j=l("symbols"),H=l("op-symbols"),B=Object.prototype,U="function"==typeof A,q=r.QObject,V=!q||!q.prototype||!q.prototype.findChild,W=i&&s(function(){return 7!=k(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=D(B,t);r&&delete B[t],L(e,t,n),r&&e!==B&&L(B,t,r)}:L,G=function(e){var t=j[e]=k(A.prototype);return t._k=e,t},z=U&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},X=function(e,t,n){return e===B&&X(H,t,n),b(e),t=S(t,!0),b(n),o(j,t)?(n.enumerable?(o(e,C)&&e[C][t]&&(e[C][t]=!1),n=k(n,{enumerable:F(0,!1)})):(o(e,C)||L(e,C,F(1,{})),e[C][t]=!0),W(e,t,n)):L(e,t,n)},K=function(e,t){b(e);for(var n,r=g(t=w(t)),o=0,i=r.length;i>o;)X(e,n=r[o++],t[n]);return e},Y=function(e){var t=R.call(this,e=S(e,!0));return!(this===B&&o(j,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(j,e)||o(this,C)&&this[C][e])||t)},J=function(e,t){if(e=w(e),t=S(t,!0),e!==B||!o(j,t)||o(H,t)){var n=D(e,t);return!n||!o(j,t)||o(e,C)&&e[C][t]||(n.enumerable=!0),n}},$=function(e){for(var t,n=M(w(e)),r=[],i=0;n.length>i;)o(j,t=n[i++])||t==C||t==u||r.push(t);return r},Q=function(e){for(var t,n=e===B,r=M(n?H:w(e)),i=[],a=0;r.length>a;)!o(j,t=r[a++])||n&&!o(B,t)||i.push(j[t]);return i};U||(c((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(H,n),o(this,C)&&o(this[C],e)&&(this[C][e]=!1),W(this,e,F(1,n))};return i&&V&&W(B,e,{configurable:!0,set:t}),G(e)}).prototype,"toString",function(){return this._k}),x.f=J,_.f=X,n(38).f=E.f=$,n(48).f=Y,n(53).f=Q,i&&!n(34)&&c(B,"propertyIsEnumerable",Y,!0),h.f=function(e){return G(p(e))}),a(a.G+a.W+a.F*!U,{Symbol:A});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)p(Z[ee++]);for(var te=I(p.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return o(P,e+="")?P[e]:P[e]=A(e)},keyFor:function(e){if(!z(e))throw TypeError(e+" is not a symbol!");for(var t in P)if(P[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!U,"Object",{create:function(e,t){return void 0===t?k(e):K(k(e),t)},defineProperty:X,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:$,getOwnPropertySymbols:Q}),O&&a(a.S+a.F*(!U||s(function(){var e=A();return"[null]"!=T([e])||"{}"!=T({a:e})||"{}"!=T(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(m(t)||void 0!==e)&&!z(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!z(t))return t}),r[1]=t,T.apply(O,r)}}),A.prototype[N]||n(16)(A.prototype,N,A.prototype.valueOf),f(A,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){e.exports=n(51)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(35),o=n(53),i=n(48);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,c=n(e),u=i.f,s=0;c.length>s;)u.call(e,a=c[s++])&&t.push(a);return t}},function(e,t,n){var r=n(1);r(r.S,"Object",{create:n(37)})},function(e,t,n){var r=n(1);r(r.S+r.F*!n(10),"Object",{defineProperty:n(8).f})},function(e,t,n){var r=n(1);r(r.S+r.F*!n(10),"Object",{defineProperties:n(95)})},function(e,t,n){var r=n(17),o=n(22).f;n(23)("getOwnPropertyDescriptor",function(){return function(e,t){return o(r(e),t)}})},function(e,t,n){var r=n(13),o=n(39);n(23)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(13),o=n(35);n(23)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){n(23)("getOwnPropertyNames",function(){return n(96).f})},function(e,t,n){var r=n(5),o=n(31).onFreeze;n(23)("freeze",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(5),o=n(31).onFreeze;n(23)("seal",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(5),o=n(31).onFreeze;n(23)("preventExtensions",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(5);n(23)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(5);n(23)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(5);n(23)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},function(e,t,n){var r=n(1);r(r.S+r.F,"Object",{assign:n(97)})},function(e,t,n){var r=n(1);r(r.S,"Object",{is:n(98)})},function(e,t,n){var r=n(1);r(r.S,"Object",{setPrototypeOf:n(69).set})},function(e,t,n){"use strict";var r=n(49),o={};o[n(6)("toStringTag")]="z",o+""!="[object z]"&&n(12)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(e,t,n){var r=n(1);r(r.P,"Function",{bind:n(99)})},function(e,t,n){var r=n(8).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(10)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(5),o=n(39),i=n(6)("hasInstance"),a=Function.prototype;i in a||n(8).f(a,i,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(1),o=n(101);r(r.G+r.F*(parseInt!=o),{parseInt:o})},function(e,t,n){var r=n(1),o=n(102);r(r.G+r.F*(parseFloat!=o),{parseFloat:o})},function(e,t,n){"use strict";var r=n(2),o=n(15),i=n(27),a=n(71),c=n(30),u=n(3),s=n(38).f,l=n(22).f,f=n(8).f,d=n(54).trim,p=r.Number,h=p,v=p.prototype,g="Number"==i(n(37)(v)),y="trim"in String.prototype,b=function(e){var t=c(e,!1);if("string"==typeof t&&t.length>2){var n,r,o,i=(t=y?t.trim():d(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+t}for(var a,u=t.slice(2),s=0,l=u.length;s<l;s++)if((a=u.charCodeAt(s))<48||a>o)return NaN;return parseInt(u,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(g?u(function(){v.valueOf.call(n)}):"Number"!=i(n))?a(new h(b(t)),n,p):b(t)};for(var m,w=n(10)?s(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;w.length>S;S++)o(h,m=w[S])&&!o(p,m)&&f(p,m,l(h,m));p.prototype=v,v.constructor=p,n(12)(r,"Number",p)}},function(e,t,n){"use strict";var r=n(1),o=n(21),i=n(103),a=n(72),c=1..toFixed,u=Math.floor,s=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*s[n],s[n]=r%1e7,r=u(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=s[t],s[t]=u(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==s[e]){var n=String(s[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},h=function(e,t,n){return 0===t?n:t%2==1?h(e,t-1,n*e):h(e*e,t/2,n)};r(r.P+r.F*(!!c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(3)(function(){c.call({})})),"Number",{toFixed:function(e){var t,n,r,c,u=i(this,l),s=o(e),v="",g="0";if(s<0||s>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(v="-",u=-u),u>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*h(2,69,1))-69)<0?u*h(2,-t,1):u/h(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=s;r>=7;)f(1e7,0),r-=7;for(f(h(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),f(1,1),d(2),g=p()}else f(0,n),f(1<<-t,0),g=p()+a.call("0",s);return g=s>0?v+((c=g.length)<=s?"0."+a.call("0",s-c)+g:g.slice(0,c-s)+"."+g.slice(c-s)):v+g}})},function(e,t,n){"use strict";var r=n(1),o=n(3),i=n(103),a=1..toPrecision;r(r.P+r.F*(o(function(){return"1"!==a.call(1,void 0)})||!o(function(){a.call({})})),"Number",{toPrecision:function(e){var t=i(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(1);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(1),o=n(2).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(1);r(r.S,"Number",{isInteger:n(104)})},function(e,t,n){var r=n(1);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(1),o=n(104),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(1);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(1);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(1),o=n(102);r(r.S+r.F*(Number.parseFloat!=o),"Number",{parseFloat:o})},function(e,t,n){var r=n(1),o=n(101);r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},function(e,t,n){var r=n(1),o=n(105),i=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){var r=n(1),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(1),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(1),o=n(73);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(1);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(1),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(1),o=n(74);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(1);r(r.S,"Math",{fround:n(178)})},function(e,t,n){var r=n(73),o=Math.pow,i=o(2,-52),a=o(2,-23),c=o(2,127)*(2-a),u=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),s=r(e);return o<u?s*(o/u/a+1/i-1/i)*u*a:(n=(t=(1+a/i)*o)-(t-o))>c||n!=n?s*(1/0):s*n}},function(e,t,n){var r=n(1),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,a=0,c=arguments.length,u=0;a<c;)u<(n=o(arguments[a++]))?(i=i*(r=u/n)*r+1,u=n):i+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(i)}})},function(e,t,n){var r=n(1),o=Math.imul;r(r.S+r.F*n(3)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(1);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(1);r(r.S,"Math",{log1p:n(105)})},function(e,t,n){var r=n(1);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(1);r(r.S,"Math",{sign:n(73)})},function(e,t,n){var r=n(1),o=n(74),i=Math.exp;r(r.S+r.F*n(3)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(1),o=n(74),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(1);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(1),o=n(36),i=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(1),o=n(17),i=n(7);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,a=[],c=0;n>c;)a.push(String(t[c++])),c<r&&a.push(String(arguments[c]));return a.join("")}})},function(e,t,n){"use strict";n(54)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var r=n(75)(!0);n(76)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(1),o=n(75)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){"use strict";var r=n(1),o=n(7),i=n(77),a="".endsWith;r(r.P+r.F*n(79)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),c=void 0===n?r:Math.min(o(n),r),u=String(e);return a?a.call(t,u,c):t.slice(c-u.length,c)===u}})},function(e,t,n){"use strict";var r=n(1),o=n(77);r(r.P+r.F*n(79)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(1);r(r.P,"String",{repeat:n(72)})},function(e,t,n){"use strict";var r=n(1),o=n(7),i=n(77),a="".startsWith;r(r.P+r.F*n(79)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(14)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){"use strict";n(14)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(14)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(14)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(14)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(14)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(14)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){"use strict";n(14)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(14)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){"use strict";n(14)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(14)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(14)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(14)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var r=n(1);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(1),o=n(13),i=n(30);r(r.P+r.F*n(3)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=o(this),n=i(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(1),o=n(213);r(r.P+r.F*(Date.prototype.toISOString!==o),"Date",{toISOString:o})},function(e,t,n){"use strict";var r=n(3),o=Date.prototype.getTime,i=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r(function(){return"0385-07-25T07:06:39.999Z"!=i.call(new Date(-5e13-1))})||!r(function(){i.call(new Date(NaN))})?function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:i},function(e,t,n){var r=Date.prototype,o=r.toString,i=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(12)(r,"toString",function(){var e=i.call(this);return e==e?o.call(this):"Invalid Date"})},function(e,t,n){var r=n(6)("toPrimitive"),o=Date.prototype;r in o||n(16)(o,r,n(216))},function(e,t,n){"use strict";var r=n(4),o=n(30);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!=e)}},function(e,t,n){var r=n(1);r(r.S,"Array",{isArray:n(67)})},function(e,t,n){"use strict";var r=n(25),o=n(1),i=n(13),a=n(107),c=n(80),u=n(7),s=n(81),l=n(82);o(o.S+o.F*!n(55)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,f,d=i(e),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v,y=0,b=l(d);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),null==b||p==Array&&c(b))for(n=new p(t=u(d.length));t>y;y++)s(n,y,g?v(d[y],y):d[y]);else for(f=b.call(d),n=new p;!(o=f.next()).done;y++)s(n,y,g?a(f,v,[o.value,y],!0):o.value);return n.length=y,n}})},function(e,t,n){"use strict";var r=n(1),o=n(81);r(r.S+r.F*n(3)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(1),o=n(17),i=[].join;r(r.P+r.F*(n(47)!=Object||!n(20)(i)),"Array",{join:function(e){return i.call(o(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(1),o=n(68),i=n(27),a=n(36),c=n(7),u=[].slice;r(r.P+r.F*n(3)(function(){o&&u.call(o)}),"Array",{slice:function(e,t){var n=c(this.length),r=i(this);if(t=void 0===t?n:t,"Array"==r)return u.call(this,e,t);for(var o=a(e,n),s=a(t,n),l=c(s-o),f=new Array(l),d=0;d<l;d++)f[d]="String"==r?this.charAt(o+d):this[o+d];return f}})},function(e,t,n){"use strict";var r=n(1),o=n(26),i=n(13),a=n(3),c=[].sort,u=[1,2,3];r(r.P+r.F*(a(function(){u.sort(void 0)})||!a(function(){u.sort(null)})||!n(20)(c)),"Array",{sort:function(e){return void 0===e?c.call(i(this)):c.call(i(this),o(e))}})},function(e,t,n){"use strict";var r=n(1),o=n(24)(0),i=n(20)([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(e){return o(this,e,arguments[1])}})},function(e,t,n){var r=n(225);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(5),o=n(67),i=n(6)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(1),o=n(24)(1);r(r.P+r.F*!n(20)([].map,!0),"Array",{map:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),o=n(24)(2);r(r.P+r.F*!n(20)([].filter,!0),"Array",{filter:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),o=n(24)(3);r(r.P+r.F*!n(20)([].some,!0),"Array",{some:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),o=n(24)(4);r(r.P+r.F*!n(20)([].every,!0),"Array",{every:function(e){return o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),o=n(108);r(r.P+r.F*!n(20)([].reduce,!0),"Array",{reduce:function(e){return o(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var r=n(1),o=n(108);r(r.P+r.F*!n(20)([].reduceRight,!0),"Array",{reduceRight:function(e){return o(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(1),o=n(52)(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(20)(i)),"Array",{indexOf:function(e){return a?i.apply(this,arguments)||0:o(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(1),o=n(17),i=n(21),a=n(7),c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(20)(c)),"Array",{lastIndexOf:function(e){if(u)return c.apply(this,arguments)||0;var t=o(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,i(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(1);r(r.P,"Array",{copyWithin:n(109)}),n(43)("copyWithin")},function(e,t,n){var r=n(1);r(r.P,"Array",{fill:n(83)}),n(43)("fill")},function(e,t,n){"use strict";var r=n(1),o=n(24)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(43)("find")},function(e,t,n){"use strict";var r=n(1),o=n(24)(6),i="findIndex",a=!0;i in[]&&Array(1)[i](function(){a=!1}),r(r.P+r.F*a,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(43)(i)},function(e,t,n){n(44)("Array")},function(e,t,n){var r=n(2),o=n(71),i=n(8).f,a=n(38).f,c=n(78),u=n(56),s=r.RegExp,l=s,f=s.prototype,d=/a/g,p=/a/g,h=new s(d)!==d;if(n(10)&&(!h||n(3)(function(){return p[n(6)("match")]=!1,s(d)!=d||s(p)==p||"/a/i"!=s(d,"i")}))){s=function(e,t){var n=this instanceof s,r=c(e),i=void 0===t;return!n&&r&&e.constructor===s&&i?e:o(h?new l(r&&!i?e.source:e,t):l((r=e instanceof s)?e.source:e,r&&i?u.call(e):t),n?this:f,s)};for(var v=function(e){e in s||i(s,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},g=a(l),y=0;g.length>y;)v(g[y++]);f.constructor=s,s.prototype=f,n(12)(r,"RegExp",s)}n(44)("RegExp")},function(e,t,n){"use strict";n(112);var r=n(4),o=n(56),i=n(10),a=/./.toString,c=function(e){n(12)(RegExp.prototype,"toString",e,!0)};n(3)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?o.call(e):void 0)}):"toString"!=a.name&&c(function(){return a.call(this)})},function(e,t,n){"use strict";var r=n(4),o=n(7),i=n(86),a=n(57);n(58)("match",1,function(e,t,n,c){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=c(n,e,this);if(t.done)return t.value;var u=r(e),s=String(this);if(!u.global)return a(u,s);var l=u.unicode;u.lastIndex=0;for(var f,d=[],p=0;null!==(f=a(u,s));){var h=String(f[0]);d[p]=h,""===h&&(u.lastIndex=i(s,o(u.lastIndex),l)),p++}return 0===p?null:d}]})},function(e,t,n){"use strict";var r=n(4),o=n(13),i=n(7),a=n(21),c=n(86),u=n(57),s=Math.max,l=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(58)("replace",2,function(e,t,n,h){return[function(r,o){var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=h(n,e,this,t);if(o.done)return o.value;var f=r(e),d=String(this),p="function"==typeof t;p||(t=String(t));var g=f.global;if(g){var y=f.unicode;f.lastIndex=0}for(var b=[];;){var m=u(f,d);if(null===m)break;if(b.push(m),!g)break;""===String(m[0])&&(f.lastIndex=c(d,i(f.lastIndex),y))}for(var w,S="",F=0,k=0;k<b.length;k++){m=b[k];for(var E=String(m[0]),x=s(l(a(m.index),d.length),0),_=[],I=1;I<m.length;I++)_.push(void 0===(w=m[I])?w:String(w));var D=m.groups;if(p){var L=[E].concat(_,x,d);void 0!==D&&L.push(D);var M=String(t.apply(void 0,L))}else M=v(E,d,x,_,D,t);x>=F&&(S+=d.slice(F,x)+M,F=x+E.length)}return S+d.slice(F)}];function v(e,t,r,i,a,c){var u=r+e.length,s=i.length,l=p;return void 0!==a&&(a=o(a),l=d),n.call(c,l,function(n,o){var c;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":c=a[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>s){var d=f(l/10);return 0===d?n:d<=s?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):n}c=i[l-1]}return void 0===c?"":c})}})},function(e,t,n){"use strict";var r=n(4),o=n(98),i=n(57);n(58)("search",1,function(e,t,n,a){return[function(n){var r=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var c=r(e),u=String(this),s=c.lastIndex;o(s,0)||(c.lastIndex=0);var l=i(c,u);return o(c.lastIndex,s)||(c.lastIndex=s),null===l?-1:l.index}]})},function(e,t,n){"use strict";var r=n(78),o=n(4),i=n(50),a=n(86),c=n(7),u=n(57),s=n(85),l=n(3),f=Math.min,d=[].push,p=!l(function(){RegExp(4294967295,"y")});n(58)("split",2,function(e,t,n,l){var h;return h="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,a,c,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?4294967295:t>>>0,h=new RegExp(e.source,l+"g");(i=s.call(h,o))&&!((a=h.lastIndex)>f&&(u.push(o.slice(f,i.index)),i.length>1&&i.index<o.length&&d.apply(u,i.slice(1)),c=i[0].length,f=a,u.length>=p));)h.lastIndex===i.index&&h.lastIndex++;return f===o.length?!c&&h.test("")||u.push(""):u.push(o.slice(f)),u.length>p?u.slice(0,p):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):h.call(String(o),n,r)},function(e,t){var r=l(h,e,this,t,h!==n);if(r.done)return r.value;var s=o(e),d=String(this),v=i(s,RegExp),g=s.unicode,y=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(p?"y":"g"),b=new v(p?s:"^(?:"+s.source+")",y),m=void 0===t?4294967295:t>>>0;if(0===m)return[];if(0===d.length)return null===u(b,d)?[d]:[];for(var w=0,S=0,F=[];S<d.length;){b.lastIndex=p?S:0;var k,E=u(b,p?d:d.slice(S));if(null===E||(k=f(c(b.lastIndex+(p?0:S)),d.length))===w)S=a(d,S,g);else{if(F.push(d.slice(w,S)),F.length===m)return F;for(var x=1;x<=E.length-1;x++)if(F.push(E[x]),F.length===m)return F;S=w=k}}return F.push(d.slice(w)),F}]})},function(e,t,n){var r=n(2),o=n(87).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,c=r.Promise,u="process"==n(27)(a);e.exports=function(){var e,t,n,s=function(){var r,o;for(u&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var l=c.resolve(void 0);n=function(){l.then(s)}}else n=function(){o.call(r,s)};else{var f=!0,d=document.createTextNode("");new i(s).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){"use strict";var r=n(116),o=n(40);e.exports=n(61)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(116),o=n(40);e.exports=n(61)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(o(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,o=n(2),i=n(24)(0),a=n(12),c=n(31),u=n(97),s=n(117),l=n(5),f=n(40),d=n(40),p=!o.ActiveXObject&&"ActiveXObject"in o,h=c.getWeak,v=Object.isExtensible,g=s.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(l(e)){var t=h(e);return!0===t?g(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return s.def(f(this,"WeakMap"),e,t)}},m=e.exports=n(61)("WeakMap",y,b,s,!0,!0);d&&p&&(u((r=s.getConstructor(y,"WeakMap")).prototype,b),c.NEED=!0,i(["delete","has","get","set"],function(e){var t=m.prototype,n=t[e];a(t,e,function(t,o){if(l(t)&&!v(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)})}))},function(e,t,n){"use strict";var r=n(117),o=n(40);n(61)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(o(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(1),o=n(62),i=n(88),a=n(4),c=n(36),u=n(7),s=n(5),l=n(2).ArrayBuffer,f=n(50),d=i.ArrayBuffer,p=i.DataView,h=o.ABV&&l.isView,v=d.prototype.slice,g=o.VIEW;r(r.G+r.W+r.F*(l!==d),{ArrayBuffer:d}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(e){return h&&h(e)||s(e)&&g in e}}),r(r.P+r.U+r.F*n(3)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==v&&void 0===t)return v.call(a(this),e);for(var n=a(this).byteLength,r=c(e,n),o=c(void 0===t?n:t,n),i=new(f(this,d))(u(o-r)),s=new p(this),l=new p(i),h=0;r<o;)l.setUint8(h++,s.getUint8(r++));return i}}),n(44)("ArrayBuffer")},function(e,t,n){var r=n(1);r(r.G+r.W+r.F*!n(62).ABV,{DataView:n(88).DataView})},function(e,t,n){n(29)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(29)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(29)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){n(29)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(29)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(29)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(29)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(29)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(29)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){var r=n(1),o=n(26),i=n(4),a=(n(2).Reflect||{}).apply,c=Function.apply;r(r.S+r.F*!n(3)(function(){a(function(){})}),"Reflect",{apply:function(e,t,n){var r=o(e),u=i(n);return a?a(r,t,u):c.call(r,t,u)}})},function(e,t,n){var r=n(1),o=n(37),i=n(26),a=n(4),c=n(5),u=n(3),s=n(99),l=(n(2).Reflect||{}).construct,f=u(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),d=!u(function(){l(function(){})});r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(d&&!f)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(s.apply(e,r))}var u=n.prototype,p=o(c(u)?u:Object.prototype),h=Function.apply.call(e,p,t);return c(h)?h:p}})},function(e,t,n){var r=n(8),o=n(1),i=n(4),a=n(30);o(o.S+o.F*n(3)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){i(e),t=a(t,!0),i(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(1),o=n(22).f,i=n(4);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(1),o=n(4),i=function(e){this._t=o(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(106)(i,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),r(r.S,"Reflect",{enumerate:function(e){return new i(e)}})},function(e,t,n){var r=n(22),o=n(39),i=n(15),a=n(1),c=n(5),u=n(4);a(a.S,"Reflect",{get:function e(t,n){var a,s,l=arguments.length<3?t:arguments[2];return u(t)===l?t[n]:(a=r.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:c(s=o(t))?e(s,n,l):void 0}})},function(e,t,n){var r=n(22),o=n(1),i=n(4);o(o.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(1),o=n(39),i=n(4);r(r.S,"Reflect",{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){var r=n(1);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(1),o=n(4),i=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return o(e),!i||i(e)}})},function(e,t,n){var r=n(1);r(r.S,"Reflect",{ownKeys:n(119)})},function(e,t,n){var r=n(1),o=n(4),i=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){o(e);try{return i&&i(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(8),o=n(22),i=n(39),a=n(15),c=n(1),u=n(32),s=n(4),l=n(5);c(c.S,"Reflect",{set:function e(t,n,c){var f,d,p=arguments.length<4?t:arguments[3],h=o.f(s(t),n);if(!h){if(l(d=i(t)))return e(d,n,c,p);h=u(0)}if(a(h,"value")){if(!1===h.writable||!l(p))return!1;if(f=o.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=c,r.f(p,n,f)}else r.f(p,n,u(0,c));return!0}return void 0!==h.set&&(h.set.call(p,c),!0)}})},function(e,t,n){var r=n(1),o=n(69);o&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){o.check(e,t);try{return o.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){n(277),e.exports=n(11).Array.includes},function(e,t,n){"use strict";var r=n(1),o=n(52)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(43)("includes")},function(e,t,n){n(279),e.exports=n(11).String.padStart},function(e,t,n){"use strict";var r=n(1),o=n(120),i=n(60);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){n(281),e.exports=n(11).String.padEnd},function(e,t,n){"use strict";var r=n(1),o=n(120),i=n(60);r(r.P+r.F*/Version\/10\.\d+(\.\d+)? Safari\//.test(i),"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){n(283),e.exports=n(64).f("asyncIterator")},function(e,t,n){n(93)("asyncIterator")},function(e,t,n){n(285),e.exports=n(11).Object.getOwnPropertyDescriptors},function(e,t,n){var r=n(1),o=n(119),i=n(17),a=n(22),c=n(81);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),u=a.f,s=o(r),l={},f=0;s.length>f;)void 0!==(n=u(r,t=s[f++]))&&c(l,t,n);return l}})},function(e,t,n){n(287),e.exports=n(11).Object.values},function(e,t,n){var r=n(1),o=n(121)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){n(289),e.exports=n(11).Object.entries},function(e,t,n){var r=n(1),o=n(121)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){"use strict";n(113),n(291),e.exports=n(11).Promise.finally},function(e,t,n){"use strict";var r=n(1),o=n(11),i=n(2),a=n(50),c=n(115);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then(function(){return n})}:e,n?function(n){return c(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){n(293),n(294),n(295),e.exports=n(11)},function(e,t,n){var r=n(2),o=n(1),i=n(60),a=[].slice,c=/MSIE .\./.test(i),u=function(e){return function(t,n){var r=arguments.length>2,o=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};o(o.G+o.B+o.F*c,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(e,t,n){var r=n(1),o=n(87);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){for(var r=n(84),o=n(35),i=n(12),a=n(2),c=n(16),u=n(42),s=n(6),l=s("iterator"),f=s("toStringTag"),d=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=o(p),v=0;v<h.length;v++){var g,y=h[v],b=p[y],m=a[y],w=m&&m.prototype;if(w&&(w[l]||c(w,l,d),w[f]||c(w,f,y),u[y]=d,b))for(g in r)w[g]||i(w,g,r[g],!0)}},function(e,t){!function(t){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag",s="object"==typeof e,l=t.regeneratorRuntime;if(l)s&&(e.exports=l);else{(l=t.regeneratorRuntime=s?e.exports:{}).wrap=w;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},g={};g[a]=function(){return this};var y=Object.getPrototypeOf,b=y&&y(y(A([])));b&&b!==r&&o.call(b,a)&&(g=b);var m=E.prototype=F.prototype=Object.create(g);k.prototype=m.constructor=E,E.constructor=k,E[u]=k.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u in e||(e[u]="GeneratorFunction")),e.prototype=Object.create(m),e},l.awrap=function(e){return{__await:e}},x(_.prototype),_.prototype[c]=function(){return this},l.AsyncIterator=_,l.async=function(e,t,n,r){var o=new _(w(e,t,n,r));return l.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},x(m),m[u]="Generator",m[a]=function(){return this},m.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=A,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(L),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return c.type="throw",c.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(e,t,n,r){var o=t&&t.prototype instanceof F?t:F,i=Object.create(o.prototype),a=new M(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=I(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=S(e,t,n);if("normal"===u.type){if(r=n.done?h:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function S(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function F(){}function k(){}function E(){}function x(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function _(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,a){var c=S(e[n],e,r);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(s).then(function(e){u.value=e,i(u)},function(e){return t("throw",e,i,a)})}a(c.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function I(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,I(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=S(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,v;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:O}}function O(){return{value:n,done:!0}}}(function(){return this||"object"==typeof self&&self}()||Function("return this")())},function(e,t,n){"use strict";var r=n(18),o=n(122),i=n(299),a=n(89);function c(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var u=c(a);u.Axios=i,u.create=function(e){return c(r.merge(a,e))},u.Cancel=n(127),u.CancelToken=n(313),u.isCancel=n(126),u.all=function(e){return Promise.all(e)},u.spread=n(314),e.exports=u,e.exports.default=u},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
  /*!
   * Determine if an object is a Buffer
   *
   * @author   Feross Aboukhadijeh <https://feross.org>
   * @license  MIT
   */
  e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=n(89),o=n(18),i=n(308),a=n(309);function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],function(e){c.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){c.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=c},function(e,t,n){"use strict";var r=n(18);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(125);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";var r=n(18);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))}))}),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(18),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(18);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function o(){this.message="String contains an invalid character"}o.prototype=new Error,o.prototype.code=5,o.prototype.name="InvalidCharacterError",e.exports=function(e){for(var t,n,i=String(e),a="",c=0,u=r;i.charAt(0|c)||(u="=",c%1);a+=u.charAt(63&t>>8-c%1*8)){if((n=i.charCodeAt(c+=.75))>255)throw new o;t=t<<8|n}return a}},function(e,t,n){"use strict";var r=n(18);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(18);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=o},function(e,t,n){"use strict";var r=n(18),o=n(310),i=n(126),a=n(89),c=n(311),u=n(312);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.baseURL&&!c(e.url)&&(e.url=u(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(18);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(127);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(130),n(131);var r=n(0),o=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.speciesLookup=[],this.hucsBySpecies={},this.status=[],this.selectedSpecies=null,this.selectedHuc=null,this.selectedHucs=[],this.overallFeedback={}}var t,n,r;return t=e,(n=[{key:"init",value:function(){}},{key:"setSpeciesLookup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.speciesLookup=e}},{key:"getSpeciesInfo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.speciesLookup.filter(function(t){return t[o.a.FIELD_NAME.speciesLookup.speciesCode]===e})[0]}},{key:"setHucsBySpecies",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.hucsBySpecies[e]=t}},{key:"saveToOverallFeedback",value:function(e,t){this.overallFeedback[e]=t}},{key:"setStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.status=e}},{key:"setSelectedSpecies",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.selectedSpecies=e}},{key:"getSelectedSpecies",value:function(){return this.selectedSpecies}},{key:"setSelectedHucs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;console.log("set selected hucs",e,this.selectedHucs),e?this.selectedHucs.push(e):this.selectedHucs=[]}},{key:"getSelectedHucs",value:function(){return console.log("get selected hucs so nice",this.selectedHucs),this.selectedHucs[0]}},{key:"getHucsBySpecies",value:function(e){return e=e||this.selectedSpecies,this.hucsBySpecies[e]}},{key:"getStatusByIndex",value:function(e){return e&&this.status[+e]?this.status[+e]:null}},{key:"isHucInModeledRange",value:function(e,t){var n=this.hucsBySpecies[t];return!!n&&!!n.filter(function(t){return t[o.a.FIELD_NAME.speciesDistribution.hucID].toString()===e}).length}},{key:"getOverallFeedback",value:function(e){return this.overallFeedback[e]}}])&&i(t.prototype,n),r&&i(t,r),e}(),c=function(){var e={};return{setHucsWithFeedbacks:function(t,n){console.log("setting hucs with feedbacks for review",t,n),e[t]=n},getHucsWithFeedbacks:function(t){return t||console.error("species is required to get Hucs with Feedbacks"),console.log("getting hucs with feedbacks for review",t),e[t]}}};function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hucsBySpecies=[]}var t,n,r;return t=e,(n=[{key:"init",value:function(e){this.hucsBySpecies=e.hucsBySpecies||null}},{key:"setStatus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.hucsBySpecies.forEach(function(t){t.status=e})}},{key:"setComment",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.hucsBySpecies.forEach(function(t){t.comment=e})}},{key:"reset",value:function(){this.hucsBySpecies=null}},{key:"getFeedbackData",value:function(){return{hucsBySpecies:this.hucsBySpecies}}}])&&u(t.prototype,n),r&&u(t,r),e}(),l=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e={},t=new s,n={onAdd:null,onClose:null,onSubmit:null,onRemove:null},r=function(t){(t.hucsBySpecies?t.hucsBySpecies:[t]).forEach(function(t){var n=t.hucID,r=t.species;e[r]||(e[r]={}),e[r][n]=JSON.parse(JSON.stringify(t))})},o=function(t,n){console.log("removeFromDataStore",t,n,e[t][n]),e[t][n]&&(console.log("before delete",e),delete e[t][n],console.log("after delete",e))},i=function(t){console.log("XXXXXXXXXXXXXXXXXXXXX",t);var n=[];return t.hucsBySpecies&&t.hucsBySpecies.forEach(function(t){console.log("YYYYYYYYYY",t);var r=void 0!==e[t.species]&&void 0!==e[t.species][t.hucID]?e[t.species][t.hucID]:null;console.log("saved item?",r,e[t.species][t.hucID]),r&&(t.isSaved=!0,t.status=r.status,t.comment=r.comment),n.push(t)}),t.hucsBySpecies=n,console.log("data with saved data attached if available",t),t};return{init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.onAdd=e.onOpenHandler||null,n.onClose=e.onCloseHandler||null,n.onSubmit=e.onSubmitHandler||null,n.onRemove=e.onRemoveHandler||null},open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("opening feedback manager",e),e=i(e)||e,t.init(e),n.onAdd&&n.onAdd(t.getFeedbackData())},close:function(){t.reset(),n.onClose&&n.onClose()},save:r,submit:function(){var e=t.getFeedbackData();console.log("submit feedback data",e),r(e),n.onSubmit&&n.onSubmit(e)},remove:function(){var e=t.getFeedbackData();console.log("remove feedback data",e),(e.hucsBySpecies?e.hucsBySpecies:[e]).forEach(function(e){o(e.species,e.hucID),n.onRemove&&n.onRemove(e)})},feedbackDataModel:t,batchAddToDataStore:function(e){e.forEach(function(e){r(e)})},getFeedbackDataBySpecies:function(t){return console.log("getFeedbackDataBySpecies",t),e[t]}}},f=n(19),d=n.n(f);function p(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var h=n(90).Promise;function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{querySpeciesLookupTable:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{speciesCode:[]},n=o.a.URL.speciesLookupTable+"/query",r=t.speciesCode.map(function(e){return"".concat(o.a.FIELD_NAME.speciesLookup.speciesCode," = '").concat(e,"'")}).join(" OR ");return new h(function(t,o){var i=new FormData;i.append("where",r),i.append("outFields","*"),i.append("f","json"),i.append("token",e.oauthManager.getToken()),d.a.post(n,i).then(function(e){e.data&&e.data.features&&e.data.features.length?t(e.data.features):o("no featurs in species lookup table")}).catch(function(e){o(e)})})},queryAllFeaturesFromSpeciesLookupTable:function(){var t=o.a.URL.speciesLookupTable+"/query";return new h(function(n,r){var o=[];!function i(a){var c=new FormData;c.append("where","1=1"),c.append("outFields","*"),c.append("f","json"),c.append("token",e.oauthManager.getToken()),a&&c.append("resultOffset",a),d.a.post(t,c).then(function(e){e.data&&e.data.features&&e.data.features.length&&(o=[].concat(p(o),p(e.data.features))),e.data.exceededTransferLimit?i(e.data.features[e.data.features.length-1].attributes.objectid):n(o)}).catch(function(e){r(e)})}()})},queryHucsBySpecies:function(t){var n=o.a.URL.speciesDistribution+"/query",r="".concat(o.a.FIELD_NAME.speciesDistribution.speciesCode," = '").concat(t,"'");if(n)return new h(function(t,o){d.a.get(n,{params:{where:r,outFields:"*",f:"json",token:e.oauthManager.getToken()}}).then(function(e){console.log("queryingHucsBySpecies reponse",e),e.data&&e.data.features&&e.data.features.length?(console.log("species has hucs",e.data.features),t(e.data.features)):o("no huc features for selected species")}).catch(function(e){console.log("error queryingHucsBySpecies",e),console.error(e)})});console.log("species extent table url is not found for",t)},queryStatusTable:function(){var t=o.a.URL.statusTable+"/query";return new h(function(n,r){d.a.get(t,{params:{where:"1=1",outFields:"*",f:"json",token:e.oauthManager.getToken()}}).then(function(e){e.data&&e.data.features&&e.data.features.length&&n(e.data.features)}).catch(function(e){console.error(e)})})},fetchFeedback:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.requestUrl,r=t.where||"1=1",o=t.outFields||"*",i=t.returnDistinctValues||!1;return console.log("fetchFeedbakc chump",t.requestUrl),new h(function(t,a){d.a.get(n,{params:{where:r,outFields:o,returnDistinctValues:i,f:"json",token:e.oauthManager.getToken()}}).then(function(e){console.log("fetchFeedback reponse",e),e.data&&e.data.features?t(e.data.features):a("no features found from the feedback table")})})},deleteFromFeedbackTable:function(t,n){var r=new FormData;return r.append("objectIds",n),r.append("rollbackOnFailure",!1),r.append("f","pjson"),r.append("token",e.oauthManager.getToken()),new h(function(e,n){d.a.post(t,r).then(function(t){e(t)}).catch(function(e){console.error(e),n(e)})})},applyEditToFeatureTable:function(t,n){var r="["+JSON.stringify(n)+"]",o=new FormData;return o.append("features",r),o.append("rollbackOnFailure",!1),o.append("f","pjson"),o.append("token",e.oauthManager.getToken()),console.log("post to featuretable?",JSON.stringify(n)),new h(function(e,n){d.a.post(t,o).then(function(t){console.log("post to feature table response",t),e(t)}).catch(function(e){console.error("post to feature table error",e),n(e)})})},querySpeciesByUser:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{email:""},n=o.a.URL.speciesByUser+"/query",r="".concat(o.a.FIELD_NAME.speciesByUser.email," = '").concat(t.email,"'");return new h(function(t,o){d.a.get(n,{params:{where:r,outFields:"*",f:"json",token:e.oauthManager.getToken()}}).then(function(e){e.data&&e.data.features&&t(e.data.features)}).catch(function(e){o(e)})})},queryPdfTable:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=o.a.URL.pdfLookup+"/query",r="".concat(o.a.FIELD_NAME.pdfLookup.speciesCode," = '").concat(t,"'");if(n)return new h(function(t,o){d.a.get(n,{params:{where:r,outFields:"*",f:"json",token:e.oauthManager.getToken()}}).then(function(e){e.data&&e.data.features&&e.data.features.length?t(e.data.features):o("no PDF resouce found for selected species")}).catch(function(e){console.error(e)})});console.log("pdf lookup table url is not found for",t)},getDistinctSpeciesCodeFromModelingExtent:function(){var t=o.a.URL.speciesDistribution+"/query";return new h(function(n,r){d.a.get(t,{params:{where:"1=1",outFields:o.a.FIELD_NAME.speciesDistribution.speciesCode,returnDistinctValues:!0,f:"json",token:e.oauthManager.getToken()}}).then(function(e){if(console.log("frantisek?",e),e.data&&e.data.features){var t=e.data.features.map(function(e){return e.attributes[o.a.FIELD_NAME.speciesDistribution.speciesCode]});n(t)}else r("no distinct species from modeling extent.  Check species distribution service.")}).catch(function(e){r(e)})})},getDataLoadDate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=o.a.FIELD_NAME.data_load_date.data_load_date,r=o.a.URL.data_load_date+"/query",i="".concat(o.a.FIELD_NAME.data_load_date.species_code," = '").concat(t,"'");return new h(function(t,o){d.a.get(r,{params:{where:i,outFields:n,f:"json",token:e.oauthManager.getToken()}}).then(function(e){if(e.data&&e.data.features){var r=e.data.features&&e.data.features[0]?e.data.features[0].attributes[n]:"";t(r)}else o("no data load date is found")}).catch(function(e){o(e)})})}}}var g=n(9),y=n(128),b=n.n(y),m=n(129),w=n.n(m);function S(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var E=n(90).Promise,x={url:"https://js.arcgis.com/4.14"},_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.webMapID||null,n=e.mapViewContainerID||null,r=e.portalUrl||null,i=null,a=null,c=null,u=null,s=!1,l=!1,f=null,d=function(){g.loadModules(["esri/views/MapView","esri/config","esri/WebMap"],x).then(function(e){var o=k(e,3),a=o[0],c=o[1],u=o[2];c.portalUrl=r;var s=new u({portalItem:{id:t}});(i=new a({map:s,container:n})).when(p)})},p=function(){var e;i.on("click",function(e){if(console.log("map view on hold",e,s),!s||l){console.log("clicked again???????",s,s);var t=i.toMap(e);h(t).then(m).catch(function(e){console.log(e)})}}),i.on("key-down",function(e){l="Control"===e.key,console.log("key down event is in batch select mode?",l)}),i.on("key-up",function(e){l=!1}),e=i,g.loadModules(["esri/widgets/BasemapGallery","esri/widgets/Expand"],x).then(function(t){var n=k(t,2),r=n[0],o=n[1],a=new r({view:e}),c=new o({view:e,content:a});i.ui.add(c,"top-left")}),function(e){g.loadModules(["esri/widgets/Home"],x).then(function(t){var n=new(0,k(t,1)[0])({view:e});e.ui.add(n,"top-left")})}(i),function(e){g.loadModules(["esri/views/draw/Draw","esri/Graphic","esri/geometry/Polyline"],x).then(function(t){var n=k(t,3),r=n[0],o=n[1],i=n[2];e.ui.add("line-button","top-left");var a=new r({view:e});document.getElementById("line-button").onclick=function(){console.log("line-button clicked",s),s=!0,e.graphics.removeAll();var t=a.create("polyline","freehand");e.focus(),t.on(["vertex-remove","cursor-update","redo","undo"],c),t.on(["vertex-add","draw-complete"],function(t){if(t.vertices.length>1&&u(t),"draw-complete"===t.type){console.log("drawing Complete! Is in drawmode?  getState?",s,y());var n=new i({paths:t.vertices,spatialReference:e.spatialReference});h(n).then(m).then(e.graphics.removeAll()).then(window.setTimeout(function(){s=!1},500)).catch(function(e){console.log(e)})}})};var c=function(e){e.vertices.length>1&&u(e)},u=function(t){var n=t.vertices;e.graphics.removeAll();var r=new o({geometry:{type:"polyline",paths:n,spatialReference:e.spatialReference},symbol:{type:"simple-line",color:[4,90,141],width:4,cap:"round",join:"round"}});e.graphics.add(r)}})}(i),function(e){g.loadModules(["esri/layers/MapImageLayer","esri/layers/ImageryLayer"],x).then(function(t){var n=k(t,2),r=n[0],i=n[1],a=new i({portalItem:{id:o.a.reference_layers.usa_protected_areas.itemId},title:o.a.reference_layers.usa_protected_areas.title,opacity:.7,visible:!1}),c=new i({portalItem:{id:o.a.reference_layers.USA_NLCD_Land_Cover_2011.itemId},title:o.a.reference_layers.USA_NLCD_Land_Cover_2011.title,opacity:.7,visible:!1}),u=new i({portalItem:{id:o.a.reference_layers.USA_Forest_Type.itemId},title:o.a.reference_layers.USA_Forest_Type.title,opacity:.7,visible:!1}),s=new r({portalItem:{id:o.a.reference_layers.USA_Wetlands.itemId},title:o.a.reference_layers.USA_Wetlands.title,opacity:.7,visible:!1});e.map.add(a,0),e.map.add(c,0),e.map.add(u,0),e.map.add(s,0)}).catch(function(e){console.error(e)})}(i),function(e){g.loadModules(["esri/layers/FeatureLayer"],x).then(function(t){var n=k(t,1)[0];a=new n({url:o.a.URL.WatershedBoundaryDataset_HUC12,opacity:.9,listMode:"hide",renderer:{type:"simple",symbol:{type:"simple-fill",color:[0,0,0,0],outline:{color:[0,0,0,0],width:"0"}}}}),e.map.add(a)})}(i),function(e){g.loadModules(["esri/layers/GraphicsLayer"],x).then(function(t){var n=k(t,1)[0];c=new n({opacity:.6,listMode:"hide"}),u=new n({listMode:"hide"}),e.map.addMany([c,u])})}(i),function(e){g.loadModules(["esri/widgets/Search","esri/widgets/Expand"],x).then(function(t){var n=k(t,2),r=n[0];n[1],new r({view:e,container:o.a.DOM_ID.searchWidgetDiv})}).catch(function(e){console.log(e)})}(i),function(e){g.loadModules(["esri/widgets/LayerList"],x).then(function(t){new(0,k(t,1)[0])({container:o.a.DOM_ID.layerListDiv,view:e,listItemCreatedFunction:function(e){var t=e.item;"group"!=t.layer.type&&(t.panel={content:"legend",open:!1})}})}).catch(function(e){console.error(e)})}(i)},h=function(e){var t=a.createQuery();return t.geometry=e,t.spatialRelationship="intersects",t.returnGeometry=!0,t.outFields=["*"],new E(function(n,r){a.queryFeatures(t).then(function(t){console.log("queryHUCSLayerresponse",e),t.features&&t.features.length&&n(t.features)})})},v=function(e){var t=a.createQuery();return t.where="".concat(o.a.FIELD_NAME.hucLayerHucID," = '").concat(e,"'"),t.returnGeometry=!0,t.outFields=["*"],new E(function(e,n){a.queryFeatures(t).then(function(t){t.features&&t.features.length?e(t.features[0]):n("no huc feature is found")}).catch(function(e){n(e)})})},y=function(){return console.log("get select state",l,s),l||s},m=function(e){var t=y();e.forEach(function(e){L(e),f&&f(e,t)})},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.geometry,i=n.attributes?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){F(e,t,n[t])})}return e}({},e.attributes,n.attributes):e.attributes,a={1:{type:"picture-fill",url:w.a,width:"24px",height:"24px",outline:{color:o.a.COLOR.hucBorderIsModeled,width:"2px"}},2:{type:"picture-fill",url:b.a,width:"24px",height:"24px",outline:{color:o.a.COLOR.hucBorderIsModeled,width:"2px"}},3:{type:"simple-fill",color:[0,0,0,0],outline:{color:o.a.COLOR.hucBorderCommentWithoutAction,width:"4px"}}}[+t];g.loadModules(["esri/Graphic"],x).then(function(e){var t=new(0,k(e,1)[0])({geometry:r,symbol:a,attributes:i});c.add(t)}).catch(function(e){console.error(e)})},I=function(e){c.graphics.forEach(function(t){t&&t.attributes&&t.attributes[o.a.FIELD_NAME.hucLayerHucID]===e&&c.remove(t)})},D=(C=regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v(t);case 2:n=e.sent,L(n);case 4:case"end":return e.stop()}},e,this)}),N=function(){var e=this,t=arguments;return new Promise(function(n,r){var o=C.apply(e,t);function i(e){S(o,n,r,i,a,"next",e)}function a(e){S(o,n,r,i,a,"throw",e)}i(void 0)})},function(e){return N.apply(this,arguments)}),L=function(e){console.log("addPreviewHucGraphic",e,l),l||A();var t={type:"simple-fill",color:[0,0,0,0],outline:{color:[84,242,242,.75],width:"2.5px"}};g.loadModules(["esri/Graphic"],x).then(function(n){var r=new(0,k(n,1)[0])({geometry:e.geometry,symbol:t});u.add(r)})},M=function(){c.removeAll(),A()},A=function(){u.removeAll()},O=function(e){var t={type:"simple-fill",color:[0,0,0,0],outline:{color:o.a.COLOR.hucBorder,width:"1px"}},n={type:"simple-fill",color:o.a.COLOR.hucFill,outline:{color:o.a.COLOR.hucBorderIsModeled,width:"2px"}},r=e.map(function(e){return{value:e[o.a.FIELD_NAME.speciesDistribution.hucID],symbol:n}});return{type:"unique-value",field:o.a.FIELD_NAME.hucLayerHucID,defaultSymbol:t,uniqueValueInfos:r}},T=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],i.map.layers.forEach(function(e){e.isPredictedHabitatLayer&&e.queryExtent().then(function(e){e.extent&&i.goTo(e.extent)})})};var C,N;return{init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t&&n?(f=e.hucFeatureOnSelectHandler||null,e.zoomToHucFeatureHandler,d()):console.error("web map ID and map view container DOM ID is required to init map control")},highlightHucs:function(e){M(),a.renderer=O(e)},cleanPreviewHucGraphic:A,showHucFeatureByStatus:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{attributes:null,popupTemplate:null};console.log("KKKKKKKKKKKKKKKKK",e,t,n,l),l||I(e),+t>0&&v(e).then(function(e){_(e,t,n)})},clearAllGraphics:M,queryHucsLayerByHucID:v,addPreviewHucGraphic:L,setLayersOpacity:function(e){i.map.layers.forEach(function(t){t.opacity=e})},clearMapGraphics:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={hucPreview:u};t[e]?t[e].removeAll():M()},addPreviewHucByID:D,showPredictedHabitatLayers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";i.map.layers.forEach(function(t){console.log(t),t.isPredictedHabitatLayer&&(t.definitionExpression="cutecode='".concat(e,"'")),t.refresh()}),T()},getSelectState:y,zoomToHucFeature:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}}};function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function L(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){D(i,r,o,a,c,"next",e)}function c(e){D(i,r,o,a,c,"throw",e)}a(void 0)})}}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.oauthManager,n=new a,r=new c,i=new l,u=new v({oauthManager:t}),s=e,f={selectedHucFeature:null,selectedHucFeatures:[]},d=-1!==window.location.search.indexOf("reviewMode=true"),p=function(){var e=L(regeneratorRuntime.mark(function e(){var n,r,o,i,a,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return d&&s.onReviewMode(),e.prev=1,n=t.getPoralUser(),e.next=5,u.querySpeciesByUser({email:n.email});case 5:if(r=e.sent,"oe_gis"!==t.getPoralUser().username){e.next=12;break}return e.next=9,u.queryAllFeaturesFromSpeciesLookupTable();case 9:e.t0=e.sent,e.next=15;break;case 12:return e.next=14,u.querySpeciesLookupTable({speciesCode:B(r)});case 14:e.t0=e.sent;case 15:return o=e.t0,console.log(o),e.next=19,u.queryStatusTable();case 19:return i=e.sent,y(i),h(),e.next=24,m();case 24:return a=e.sent,e.next=27,w();case 27:c=e.sent,g(o,a,c),e.next=34;break;case 31:e.prev=31,e.t1=e.catch(1),console.error(e.t1);case 34:case"end":return e.stop()}},e,this,[[1,31]])}));return function(){return e.apply(this,arguments)}}(),h=function(){i.init({onOpenHandler:function(e){console.log("feedbackManager onOpenHandler",e);e.hucsBySpecies&&e.hucsBySpecies;s.feedbackManagerOnOpen(e)},onCloseHandler:function(){s.feedbackManagerOnClose()},onSubmitHandler:function(e){console.log("feedback manager onSubmitHandler",e),(e.hucsBySpecies?e.hucsBySpecies:[e]).forEach(function(e){x(e),P(e.hucID,e.status,e),A(),s.onDeatiledFeedbackSubmit(e)})},onRemoveHandler:function(e){console.log("feedback manager onRemoveHandler",e),(e.hucsBySpecies?e.hucsBySpecies:[e]).forEach(function(e){console.log("deleteFeedback 1",e),E(e),P(e.hucID),A()})}})},g=function(){var e=L(regeneratorRuntime.mark(function e(t,r,i){var a,c,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.getDistinctSpeciesCodeFromModelingExtent();case 2:a=e.sent,console.log("species with data loaded?",a,r,i),c={},l={},r.forEach(function(e){var t=e.attributes[o.a.FIELD_NAME.feedbackTable.species];l[t]=!0}),i.forEach(function(e){var t=e.attributes[o.a.FIELD_NAME.overallFeedback.species];e.attributes[o.a.FIELD_NAME.overallFeedback.rating]&&(c[t]=!0)}),t=t.map(function(e){var t=e.attributes[o.a.FIELD_NAME.speciesLookup.speciesCode];return e.attributes.hasOverallFeedback=!!c[t],e.attributes.hasDetailedFeedback=!!l[t],e.attributes.hasDataLoaded=-1!==a.indexOf(t),e.attributes}),console.log("frumpy",t),n.setSpeciesLookup(t),s.speciesDataOnReady(t);case 12:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}(),y=function(e){e=e.map(function(e){var t=/(\r\n\t|\n|\r\t)/g,n=e.attributes[o.a.FIELD_NAME.statusType];return t.test(n)&&(n=n.replace(t," ")),n}),console.log("statusTable data",e),n.setStatus(e),s.legendDataOnReady(H(e))},b=function(){var e=L(regeneratorRuntime.mark(function e(t){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("wft",t),!(r=n.getHucsBySpecies(t))){e.next=6;break}D({data:r,speciesKey:t}),e.next=19;break;case 6:return e.prev=6,e.next=9,u.queryHucsBySpecies(t);case 9:r=(r=e.sent).map(function(e){return e.attributes}),n.setHucsBySpecies(t,r),D({data:r,speciesKey:t}),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(6),console.error(e.t0),D({data:[],speciesKey:t});case 19:case"end":return e.stop()}},e,this,[[6,15]])}));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=L(regeneratorRuntime.mark(function e(){var n,r,a,c,s,l,f=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>0&&void 0!==f[0]?f[0]:{userID:"",species:"",onSuccessHandler:null},r=n.userID||t.getUserID(),a=n.onSuccessHandler,c=["".concat(o.a.FIELD_NAME.feedbackTable.userID," = '").concat(r,"'"),"".concat(o.a.FIELD_NAME.feedbackTable.retirementDate," IS NULL")],n.species&&c.push("".concat(o.a.FIELD_NAME.feedbackTable.species," = '").concat(n.species,"'")),e.prev=5,e.next=8,u.fetchFeedback({requestUrl:o.a.URL.feedbackTable+"/query",where:c.join(" AND ")});case 8:return s=e.sent,l=s.map(function(e){return{userID:e.attributes[o.a.FIELD_NAME.feedbackTable.userID],hucID:e.attributes[o.a.FIELD_NAME.feedbackTable.hucID],species:e.attributes[o.a.FIELD_NAME.feedbackTable.species],status:e.attributes[o.a.FIELD_NAME.feedbackTable.status],comment:e.attributes[o.a.FIELD_NAME.feedbackTable.comment]}}),a?a(l):i.batchAddToDataStore(l),e.abrupt("return",s);case 14:e.prev=14,e.t0=e.catch(5),console.error(e.t0);case 17:case"end":return e.stop()}},e,this,[[5,14]])}));return function(){return e.apply(this,arguments)}}(),w=function(){var e=L(regeneratorRuntime.mark(function e(){var n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.getUserID(),e.prev=1,e.next=4,u.fetchFeedback({requestUrl:o.a.URL.overallFeedback+"/query",where:"".concat(o.a.FIELD_NAME.overallFeedback.userID," = '").concat(n,"' AND ").concat(o.a.FIELD_NAME.overallFeedback.retirementDate," IS NULL")});case 4:return r=e.sent,N(r),e.abrupt("return",r);case 9:e.prev=9,e.t0=e.catch(1),console.error(e.t0);case 12:case"end":return e.stop()}},e,this,[[1,9]])}));return function(){return e.apply(this,arguments)}}(),S=function(){var e=L(regeneratorRuntime.mark(function e(){var t,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.getSelectedSpecies(),e.prev=1,e.next=4,u.fetchFeedback({requestUrl:o.a.URL.overallFeedback+"/query",where:"".concat(o.a.FIELD_NAME.overallFeedback.species," = '").concat(t,"' AND ").concat(o.a.FIELD_NAME.overallFeedback.retirementDate," is NULL")});case 4:r=e.sent,s.overallFeedbackForReviewModeOnReady(r),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error(e.t0);case 11:case"end":return e.stop()}},e,this,[[1,8]])}));return function(){return e.apply(this,arguments)}}(),F=function(){var e=L(regeneratorRuntime.mark(function e(){var r,i,a,c,l,f,d,p,h=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=h.length>0&&void 0!==h[0]?h[0]:{rating:0,comment:""},a=t.getUserID(),c=n.getSelectedSpecies(),l={attributes:(r={},I(r,o.a.FIELD_NAME.overallFeedback.userID,a),I(r,o.a.FIELD_NAME.overallFeedback.species,c),I(r,o.a.FIELD_NAME.overallFeedback.rating,i.rating),I(r,o.a.FIELD_NAME.overallFeedback.comment,i.comment),r)},N([l]),e.prev=5,e.next=8,u.getDataLoadDate(c);case 8:return f=e.sent,e.next=11,u.fetchFeedback({requestUrl:o.a.URL.overallFeedback+"/query",where:"".concat(o.a.FIELD_NAME.overallFeedback.userID," = '").concat(a,"' AND ").concat(o.a.FIELD_NAME.overallFeedback.species," = '").concat(c,"'")});case 11:d=e.sent,p=d[0]?o.a.URL.overallFeedback+"/updateFeatures":o.a.URL.overallFeedback+"/addFeatures",d[0]&&(l.attributes.ObjectId=d[0].attributes.ObjectId),f&&(l.attributes[o.a.FIELD_NAME.overallFeedback.data_load_date]=f),u.applyEditToFeatureTable(p,l).then(function(e){console.log("post edit to OverallFeedback table",e)}),s.onOverallFeedbackSubmit(l),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(5),console.error(e.t0);case 22:case"end":return e.stop()}},e,this,[[5,19]])}));return function(){return e.apply(this,arguments)}}(),k=function(){var e=L(regeneratorRuntime.mark(function e(t){var r,i,a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("getFeedbacksBYHucForReviewMode  gggggggggggggggggggg",t.attributes,o.a.FIELD_NAME.hucLayerHucID),r=t.attributes[o.a.FIELD_NAME.hucLayerHucID],i=t.attributes[o.a.FIELD_NAME.hucLayerHucName],e.prev=3,e.next=6,u.fetchFeedback({requestUrl:o.a.URL.feedbackTable+"/query",where:"".concat(o.a.FIELD_NAME.feedbackTable.hucID," = '").concat(r,"' AND ").concat(o.a.FIELD_NAME.feedbackTable.species," = '").concat(n.getSelectedSpecies(),"'")});case 6:a=e.sent,s.feedbackByHucsForReviewModeOnReady({data:a,hucName:i}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error(e.t0);case 13:case"end":return e.stop()}},e,this,[[3,10]])}));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=L(regeneratorRuntime.mark(function e(){var t,n,r,i,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.prev=1,e.next=4,u.fetchFeedback({requestUrl:o.a.URL.feedbackTable+"/query",where:"".concat(o.a.FIELD_NAME.feedbackTable.userID," = '").concat(t.userID,"' AND ").concat(o.a.FIELD_NAME.feedbackTable.species," = '").concat(t.species,"' AND ").concat(o.a.FIELD_NAME.feedbackTable.hucID," = '").concat(t.hucID,"'")});case 4:n=e.sent,console.log("feedback to deletet",n),n[0]&&(r=o.a.URL.feedbackTable+"/deleteFeatures",i=n[0].attributes.objectid,u.deleteFromFeedbackTable(r,i).then(function(e){console.log("deleted from feedback table",e)})),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.error(e.t0);case 12:case"end":return e.stop()}},e,this,[[1,9]])}));return function(){return e.apply(this,arguments)}}(),x=function(){var e=L(regeneratorRuntime.mark(function e(){var t,n,r,i,a,c,s=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},console.log("post feedback",t),e.prev=2,e.next=5,u.getDataLoadDate(t.species);case 5:return r=e.sent,console.log("data load date?",r),i={attributes:(n={},I(n,o.a.FIELD_NAME.feedbackTable.userID,t.userID),I(n,o.a.FIELD_NAME.feedbackTable.hucID,t.hucID),I(n,o.a.FIELD_NAME.feedbackTable.status,t.status),I(n,o.a.FIELD_NAME.feedbackTable.comment,t.comment),I(n,o.a.FIELD_NAME.feedbackTable.species,t.species),n)},e.next=10,u.fetchFeedback({requestUrl:o.a.URL.feedbackTable+"/query",where:"".concat(o.a.FIELD_NAME.feedbackTable.userID," = '").concat(t.userID,"' AND ").concat(o.a.FIELD_NAME.feedbackTable.species," = '").concat(t.species,"' AND ").concat(o.a.FIELD_NAME.feedbackTable.hucID," = '").concat(t.hucID,"'")});case 10:a=e.sent,c=a[0]?o.a.URL.feedbackTable+"/updateFeatures":o.a.URL.feedbackTable+"/addFeatures",a[0]&&(i.attributes.ObjectId=a[0].attributes.ObjectId),r&&(i.attributes[o.a.FIELD_NAME.feedbackTable.data_load_date]=r),u.applyEditToFeatureTable(c,i).then(function(e){console.log("post edit to Feedback table",e)}),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(2),console.error(e.t0);case 20:case"end":return e.stop()}},e,this,[[2,17]])}));return function(){return e.apply(this,arguments)}}(),_=function(){var e=L(regeneratorRuntime.mark(function e(){var t,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.getSelectedSpecies(),console.log("get hucs with feedback review mode",t,r.getHucsWithFeedbacks(t)),!r.getHucsWithFeedbacks(t)){e.next=6;break}R(),e.next=18;break;case 6:return e.prev=6,e.next=9,u.fetchFeedback({requestUrl:o.a.URL.feedbackTable+"/query",where:"".concat(o.a.FIELD_NAME.feedbackTable.species," = '").concat(t,"'"),outFields:"".concat(o.a.FIELD_NAME.feedbackTable.hucID,", ").concat(o.a.FIELD_NAME.feedbackTable.status),returnDistinctValues:!0});case 9:i=e.sent,console.log("hucs for feedback in review mode",i),r.setHucsWithFeedbacks(t,i),R(),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(6),console.error("error loading hucs with feedback",e.t0);case 18:case"end":return e.stop()}},e,this,[[6,15]])}));return function(){return e.apply(this,arguments)}}(),D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:null,speciesKey:""},t=e.data||n.getHucsBySpecies();e.speciesKey,s.highligtHucsOnMap(t),d||M()},M=function(e){var t=n.getSelectedSpecies();(e=e||i.getFeedbackDataBySpecies(t))&&Object.keys(e).forEach(function(t){var n=e[t].hucID,r=e[t].status;P(n,r,e[t])})},A=function(){f.selectedHucFeature=null,f.selectedHucFeatures=[],n.setSelectedHucs(),s.clearMapGraphics("hucPreview"),i.close()},O=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=t.getUserID(),r=n.getSelectedSpecies(),a=n.getSelectedHucs(),c=f.selectedHucFeatures.map(function(t){var i=t.attributes[o.a.FIELD_NAME.hucLayerHucID];return{hucName:t.attributes[o.a.FIELD_NAME.hucLayerHucName],hucID:i,isHucInModeledRange:n.isHucInModeledRange(i,r),species:r,userID:e,status:null,comment:null}});console.log("bathcHucIDs",c),e&&r&&a?i.open({hucsBySpecies:c}):(console.error("userID, species name and huc id are required to open the feedback manager..."),A())},T=function(){var e=L(regeneratorRuntime.mark(function e(){var t,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.getSelectedSpecies(),e.prev=1,e.next=4,u.queryPdfTable(t);case 4:if(!(r=e.sent)[0]||!r[0].attributes[o.a.FIELD_NAME.pdfLookup.url]){e.next=9;break}return e.abrupt("return",r[0].attributes[o.a.FIELD_NAME.pdfLookup.url]);case 9:return e.abrupt("return",null);case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",null);case 15:case"end":return e.stop()}},e,this,[[1,12]])}));return function(){return e.apply(this,arguments)}}(),C=function(){var e=L(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:t=e.sent,console.log(t),t?window.open(t):console.error("no pdf file is found for selected species",species);case 5:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),N=function(e){e.forEach(function(e){var t,r=e.attributes[o.a.FIELD_NAME.overallFeedback.species],i=(I(t={},o.a.FIELD_NAME.overallFeedback.rating,e.attributes[o.a.FIELD_NAME.overallFeedback.rating]),I(t,o.a.FIELD_NAME.overallFeedback.comment,e.attributes[o.a.FIELD_NAME.overallFeedback.comment]),t);n.saveToOverallFeedback(r,i)})},R=function(){var e=n.getSelectedSpecies(),t=r.getHucsWithFeedbacks(e);s.clearMapGraphics(),t.forEach(function(e){P(e.attributes[o.a.FIELD_NAME.feedbackTable.hucID],e.attributes[o.a.FIELD_NAME.feedbackTable.status])})},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;arguments.length>2&&void 0!==arguments[2]&&arguments[2];e?s.showHucFeatureOnMap(e,t):console.error("hucID is missing...")},j=function(){var e=L(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n.setSelectedSpecies(t),b(t),A(),s.speciesOnSelect(),d&&(S(),_());case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),H=function(e){return console.log("status data@",e),e=e.map(function(e,t){return{label:e}})},B=function(e){return e.map(function(e){return e.attributes[o.a.FIELD_NAME.speciesByUser.speciesCode]})};return{init:p,dataModel:n,feedbackManager:i,setSelectedHucFeature:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;console.log("FFFFFFFF",t),t||A(),f.selectedHucFeature=e,f.selectedHucFeatures.push(e);var r=f.selectedHucFeature.attributes[o.a.FIELD_NAME.hucLayerHucID];d?(console.log("query feedbacks for selected huc",r),s.hucFeatureOnSelectForReviewMode(f.selectedHucFeature)):(n.setSelectedHucs(r),O())},resetSelectedHucFeature:A,downloadPdf:C,getOverallFeedback:function(){var e=n.getSelectedSpecies(),t=n.getOverallFeedback(e);return t?{rating:t[o.a.FIELD_NAME.overallFeedback.rating],comment:t[o.a.FIELD_NAME.overallFeedback.comment]}:{}},setSelectedSpecies:j,postOverallFeedback:F,getFeedbacksByUserForReviewMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";m({userID:e,species:n.getSelectedSpecies(),onSuccessHandler:function(e){s.clearMapGraphics(),e.forEach(function(e){P(e.hucID,e.status,e)}),s.feedbackByUsersForReviewModeOnReady(e)}})},renderListOfHucsWithFeedbacks:R,getFeedbacksByHucForReviewMode:k,signOut:function(){t.signOut()},openFeedbackManager:O}}n(315);function A(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{containerID:""},t=e.containerID?document.getElementById(e.containerID):null,n=null,r=null,i=null,a=function(){var e=r.filter(function(e){return e[o.a.FIELD_NAME.speciesLookup.taxa]===i});e.sort(function(e,t){return e[o.a.FIELD_NAME.speciesLookup.speciesName]<t[o.a.FIELD_NAME.speciesLookup.speciesName]?-1:e[o.a.FIELD_NAME.speciesLookup.speciesName]>t[o.a.FIELD_NAME.speciesLookup.speciesName]?1:0});var t=e.map(function(e){var t=e[o.a.FIELD_NAME.speciesLookup.speciesCode],n=e[o.a.FIELD_NAME.speciesLookup.speciesName],r=e.hasOverallFeedback?s("overall"):"",i=e.hasDetailedFeedback?s("detailed"):"",a=e.hasDataLoaded?"":"disabled";return"<option class='select-option species-option ".concat(r," ").concat(i," ").concat(a,"' value=\"").concat(t,'" ').concat(a,">").concat(n,"</option>")}).join("");return"\n            <label class='trailer-half'>\n                <select id='speciesSelector' class=\"select-full\" ".concat(""===t?"disabled":"",'>\n                    <option value="" selected disabled hidden>Select Species</option>\n                    ').concat(t,"\n                </select>\n            </label>\n        ")},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:[]};r=e.data||r;var n="\n            <div id='taxaSelectorDiv'>\n                ".concat(function(){var e=[];r.forEach(function(t){var n=t[o.a.FIELD_NAME.speciesLookup.taxa];-1===e.indexOf(n)&&e.push(n)}),e.sort(function(e,t){return e<t?-1:e>t?1:0});var t=e.map(function(e){return"<option class='select-option' value=\"".concat(e,'">').concat(e,"</option>")}).join("");return"\n            <label class='trailer-half'>\n                <select id='taxaSelector' class=\"select-full\">\n                    <option value=\"\" selected disabled hidden>Select Taxa</option>\n                    ".concat(t,"\n                </select>\n            </label>\n        ")}(),"\n            </div>\n            <div id='speciesSelectorDiv'>\n                ").concat(a(),"\n            </div>\n        ");t.innerHTML=n},u=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];t.addEventListener("change",function(e){var t={taxaSelector:function(){i=e.target.value,document.getElementById("speciesSelectorDiv").innerHTML=a()},speciesSelector:function(){console.log("speciesSelector on change",event.target.value),n(e.target.value)}};t[e.target.id]&&t[e.target.id]()})},s=function(){return{overall:"has-overall-feedback",detailed:"has-detailed-feedback"}[arguments.length>0&&void 0!==arguments[0]?arguments[0]:""]||"undefined-class"};return{init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n=e.onChange||null,c(),u()},render:c,setSpeciesSelectorOptionAsReviewed:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=document.querySelector(".select-option[value='".concat(e,"']")),i=s(t);n.classList.add(i),r.forEach(function(n){n[o.a.FIELD_NAME.speciesLookup.speciesCode]===e&&("detailed"===t&&(n.hasDetailedFeedback=!0),"overall"===t&&(n.hasOverallFeedback=!0))})}}}n(316);function O(){var e=null,t=null,n=null,r=null,o=null,i={data:null,isSumbitCommentOnly:!1,isBatchSelect:!1},a={1:"Add to Modeling Extent",2:"Remove from Modeling Extent",3:"Comment on Predicted Habitat"},c=function(){return i.isSumbitCommentOnly?3:(console.log("gettting status whether in modeled range",i),i.data[0].isHucInModeledRange?2:1)},u=function(){console.log("Rendering the feedback control",i);var t="<ul>";i.data.forEach(function(e){t+="<li>"+e.hucName+" ("+e.hucID+")</li>"}),t+="</ul>";var n=(i.isBatchSelect?"Multiple HUCs selected":i.data[0].hucName)||"",r=(i.isBatchSelect?t:"("+i.data[0].hucID+")")||"",o=(i.isBatchSelect?"Add comments to all selected HUCs":i.data[0].comment)||"",a="\n            <div id='feedbackControlPanelContainer' class='panel panel-black'>\n\n                <div class='trailer-0 text-right close-btn'>\n                    <span class='font-size--3 icon-ui-close js-close'></span>\n                </div>\n\n                <div class='leader-half trailer-half'>\n                    <span class='font-size-0'>".concat(n,"</span><br>\n                    <span class='font-size--3'><em>").concat(r,"</em></span>\n                    <hr>\n                </div>\n\n                <div id='actionDialogWrap'>\n                    ").concat(s(),'\n                </div>\n\n                <div class=\'comment-dialog\'>\n                    <label>\n                        <span class=\'font-size--3\'>Comment:</span>\n                        <textarea type="text" placeholder="" class="comment-textarea">').concat(o,"</textarea>\n                    </label>\n                </div>\n\n                <div class='trailer-half'>\n                    ").concat(l(i.data[0].isSaved),"\n                </div>\n            </div>\n        ");e.innerHTML=a,f()},s=function(){console.log("gettting html for actions",c());var e=c();return'\n            <div class=\'flex-container\'>\n                <div class=\'inline-block\'>\n                    <label class="toggle-switch">\n                        <input type="checkbox" class="toggle-switch-input" '.concat(i.isSumbitCommentOnly?"":"checked",'>\n                        <span class="toggle-switch-track margin-right-1"></span>\n                    </label>\n                </div>\n                <div class=\'inline-block\'>\n                    <span class="toggle-switch-label font-size--2 action-message">').concat(a[e],"</span>\n                </div>\n            </div>\n        ")},l=function(e){return e?'\n            <nav class=\'trailer-half\'>\n                <button class="btn btn-half btn-grouped btn-transparent js-remove-feedback"> Reset </button>\n                <button class="btn btn-half btn-grouped js-submit-feedback"> Save </button>\n            </nav>\n        ':'<button class="btn btn-fill js-submit-feedback trailer-half"> Save </button>'},f=function(){e.querySelector(".toggle-switch-input").addEventListener("change",function(e){console.log("toggle-switch-input on change"),i.isSumbitCommentOnly=!i.isSumbitCommentOnly,u()})},d=function(){e.addEventListener("click",function(e){if(e.target.classList.contains("js-close"))t&&t();else if(e.target.classList.contains("js-submit-feedback")){var n=c();r&&r(n)}else e.target.classList.contains("js-remove-feedback")&&o&&o()}),e.addEventListener("input",function(e){e.target.classList.contains("comment-textarea")&&n&&n(e.target.value)})};return{init:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=i.containerID?document.getElementById(i.containerID):null,t=i.onCloseHandler||null,n=i.commentOnChange||null,r=i.onSubmitHandler||null,o=i.onRemoveHandler||null,e?d():console.error("containerID is required for FeedbackControlPanel")},open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};console.log("open feedback",e),function(e){console.log("initiating state",e),i.data=e.hucsBySpecies?e.hucsBySpecies:[e],i.isBatchSelect=i.data.length>1,i.isSumbitCommentOnly=3==+i.data.status}(e),u()},close:function(){i.data=null,i.isSumbitCommentOnly=!1,e.innerHTML=""}}}n(317);var T=function(){var e=null,t=null,n=null,r=0,o="",i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;r=+e},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";o=e},c=function(){var t="\n            <div id='overallFeedbackControlPanelContainer' class='panel panel-black'>\n                <div class=\"text-center\">\n                    <h4>Tell us how you like the modeled results?</h4>\n                </div>\n\n                <div class=\"text-center\">".concat(u(),'</div>\n\n                <div class=\'leader-half\'>\n                    <label>\n                        <span class=\'font-size--3\'>feedback</span>\n                        <textarea type="text" placeholder="" class="comment-textarea" rows="4">').concat(o,"</textarea>\n                    </label>\n                </div>\n\n                <div class='leader-half trailer-half action-btn-wrap'>\n                    <btn class='btn btn-half js-close'>Close</btn>\n                    <btn class='btn btn-half js-submit'>Save</btn>\n                </div>\n            </div>\n        ");e.innerHTML=t},u=function(){for(var e=[],t=0;t<5;t++){var n='<span class="js-set-rating icon-ui-favorites icon-ui-flush '.concat(t<r?"icon-ui-yellow":"icon-ui-gray","\" data-rating='").concat(t+1,"'></span>");e.push(n)}return e.join("")},s=function(){e.addEventListener("click",function(e){if(e.target.classList.contains("js-close")&&n(),e.target.classList.contains("js-set-rating")){e.target.classList.contains("icon-ui-yellow");!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;i(e),c()}(e.target.dataset.rating)}if(e.target.classList.contains("js-submit")){if(!r)return void alert("please provide a star rating");t({rating:r,comment:o})}}),e.addEventListener("input",function(e){a(e.target.value)})},l=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e.classList.toggle("hide",!t)};return{init:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=r.containerID?document.getElementById(r.containerID):null,t=r.onSubmitHandler||null,n=r.onCloseHandler||null,e?s():console.error("containerID is required to init Overall Feedback Control")},open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{rating:0,comment:""};i(e.rating),a(e.comment),c(),l(!0)},close:function(){i(),a(),l(!1)}}},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{containerID:"",onClickHandler:null},t=e.containerID?document.getElementById(e.containerID):null,n=function(e){t.addEventListener("click",function(t){t.target.classList.contains("js-user-on-click")&&e&&e(t.target.dataset.value)})};return{init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{onClickHandler:null};t||console.error("containerID is required to init List View for overall feedback..."),n(e.onClickHandler)},render:function(e){var n=e.length?e.map(function(e){var t=e.attributes[o.a.FIELD_NAME.overallFeedback.userID],n=e.attributes[o.a.FIELD_NAME.overallFeedback.rating],r=e.attributes[o.a.FIELD_NAME.overallFeedback.comment];return"\n                <div class='panel panel-black trailer-half'>\n                    <div class='trailer-quarter cursor-pointer'>\n                        <span class='font-size--1 js-user-on-click' data-value='".concat(t,"'>").concat(t,"</span>\n                    </div>\n                    <div class='trailer-quarter'>").concat(function(e){for(var t=[],n=0;n<5;n++){var r='<span class="js-set-rating icon-ui-favorites icon-ui-flush '.concat(n<e?"icon-ui-yellow":"icon-ui-gray","\" data-rating='").concat(n+1,"'></span>");t.push(r)}return t.join("")}(n),"</div>\n                    <div>\n                        <span class='font-size--2'>").concat(r,"</span>\n                    </div>\n                </div>\n            ")}).join(""):"<p class='font-size--2'>No overall feedback for selected species</p>",r="\n            <div class='leader-1'>\n                ".concat("<h6>Overall Feedback from all users</h6>","\n                ").concat(n,"\n            </div>\n        ");t.innerHTML=r},toggleVisibility:function(e){t.classList.toggle("hide",!e)}}},N=(n(318),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{containerID:""},t=e.containerID?document.getElementById(e.containerID):null,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.addEventListener("click",function(t){t.target.classList.contains("js-close")&&e.onCloseHandler&&e.onCloseHandler(),t.target.classList.contains("js-show-huc")&&e.onClickHandler&&(e.onClickHandler(t.target.dataset.value),r(t.target.dataset.value))})},r=function(e){t.querySelectorAll(".review-data-row").forEach(function(t){t.dataset.huc===e?t.classList.add("is-active"):t.classList.remove("is-active")})};return{init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{onCloseHandler:null,onClickHandler:null};t||console.error("containerID is required to init List View for overall feedback..."),n(e)},render:function(e){var n=e&&e[0]?e[0].userID:"",r="\n            <div class='trailer-quarter'>\n                <span class='icon-ui-left cursor-pointer js-close'></span>\n                <span class='font-size--1'>All feedbacks by ".concat(n,"</span>\n            </div>\n        "),o=e.map(function(e){var t=+e.status,n=e.hucID,r=e.comment||"n/a";return"\n                <tr class='review-data-row font-size--3' data-huc='".concat(n,"'>\n                    <td class='js-show-huc cursor-pointer' data-value='").concat(n,"'>").concat(n,"</td>\n                    <td>").concat({1:"Add",2:"Remove",3:"n/a"}[t],"</td>\n                    <td>").concat(r,"</td>\n                </tr>\n            ")}).join(""),i="\n            <table class=\"table table-striped\">\n                <thead>\n                    <tr class='font-size--2'>\n                        <th>HUC</th>\n                        <th>Action</th>\n                        <th>Comment</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    ".concat(o,"\n                </tbody>\n            </table>\n        "),a="\n            <div class='leader-1'>\n                ".concat(r,"\n                ").concat(i,"\n            </div>\n        ");t.innerHTML=a},toggleVisibility:function(e){t.classList.toggle("hide",!e)},setActiveRow:r,isVisible:function(){return!t.classList.contains("hide")}}}),R=(n(319),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{containerID:""},t=e.containerID?document.getElementById(e.containerID):null,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.addEventListener("click",function(t){t.target.classList.contains("js-close")&&e.onCloseHandler&&e.onCloseHandler()})};return{init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{onCloseHandler:null,onClickHandler:null};t||console.error("containerID is required to init List View for overall feedback..."),n(e)},render:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:[],hucName:""};console.log(e);var n="\n            <div class='trailer-quarter'>\n                <span class='icon-ui-left cursor-pointer js-close'></span>\n                <span class='font-size--1'>All feedbacks for ".concat(e.hucName,"</span>\n            </div>\n        "),r=e.data.map(function(e){var t=+e.attributes[o.a.FIELD_NAME.feedbackTable.status],n=e.attributes[o.a.FIELD_NAME.feedbackTable.userID],r=e.attributes[o.a.FIELD_NAME.feedbackTable.comment];return"\n                <tr class='review-data-row font-size--3'>\n                    <td>".concat(n,"</td>\n                    <td>").concat({1:"Add",2:"Remove",3:"n/a"}[t],"</td>\n                    <td>").concat(r,"</td>\n                </tr>\n            ")}).join(""),i="\n            <table class=\"table table-striped\">\n                <thead>\n                    <tr class='font-size--2'>\n                        <th>User</th>\n                        <th>Action</th>\n                        <th>Comment</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    ".concat(r,"\n                </tbody>\n            </table>\n        "),a="\n            <div class='leader-1'>\n                ".concat(n,"\n                ").concat(i,"\n            </div>\n        ");t.innerHTML=a},toggleVisibility:function(e){t.classList.toggle("hide",!e)},isVisible:function(){return!t.classList.contains("hide")}}});function P(){var e=null,t=new A({containerID:o.a.DOM_ID.speciesSelector}),n=new O,r=new T,i=new C({containerID:o.a.DOM_ID.listViewOverallFeedback}),a=new N({containerID:o.a.DOM_ID.listViewDeatiledFeedback}),c=new R({containerID:o.a.DOM_ID.listViewForFeedbacksByHuc}),u=document.getElementById(o.a.DOM_ID.mainControl),s=function(){document.querySelectorAll(".js-open-overall-feedback").forEach(function(t){t.addEventListener("click",e.openOverallBtnOnclick)}),document.querySelectorAll(".js-download-pdf").forEach(function(t){t.addEventListener("click",e.downloadPdfBtnOnClick)}),document.querySelectorAll(".js-toggle-ui-component").forEach(function(e){e.addEventListener("click",function(t){var n=e.dataset.target;document.getElementById(n).classList.toggle("hide")})}),document.querySelectorAll(".js-sign-out").forEach(function(t){t.addEventListener("click",e.signOutBtnOnClick)})},l=function(e){e?u.classList.remove("hide"):u.classList.add("hide")},f=function(e){var t=null,n=e.container?document.getElementById(e.container):null,r=function(){var e=t.map(function(e,t){return"\n                    <div class='trailer-quarter legend-item'>\n                        <div class='inline-block legend-icon margin-right-half' data-index='".concat(t,"'></div>\n                        <span class='font-size--2'>").concat(e.label,"</span>\n                    </div>\n                ")}).join("");n.innerHTML=e};return{init:function(e){n?(t=e.data||null)&&r():console.error("container is requird to init legend")}}},d=function(e,t){[i,a,c].forEach(function(n){n===e?(n.toggleVisibility(!0),t&&n.render(t)):n.toggleVisibility(!1)})};return{init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=t,document.getElementById("agreementDiv").classList.add("hide"),document.getElementById("mainControlDiv").classList.remove("hide"),document.getElementById("viewDiv").classList.remove("hide"),s()},initLegend:function(e){new f({container:o.a.DOM_ID.legend}).init({data:e})},speciesSelector:t,feedbackControlPanel:n,toggleMainControl:l,overallFeedbackControlPanel:r,toggleOverallFeeback:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e?r.open(t):r.close(),l(!e)},toggleDownloadAsPdfBtn:function(e){var t=!!e;document.getElementById("downloadPdfBtn").classList.toggle("is-active",t)},enableOpenOverallFeedbackBtnBtn:function(e){document.getElementById("openOverallFeedbackBtn").classList.remove("btn-disabled")},listViewForOverallFeedback:i,listViewForDetailedFeedback:a,listViewForFeedbacksByHuc:c,switchToReviewModeView:function(){document.getElementById("openOverallFeedbackBtnDiv").classList.add("hide")},initViewComponentsForReviewMode:function(){i.init({onClickHandler:function(t){e.listViewForOverallFeedbackOnClick(t)}}),a.init({onCloseHandler:function(){d(i),e.listViewForDetailedFeedbackOnClose()},onClickHandler:function(t){e.listViewForDetailedFeedbackOnClick(t)}}),c.init({onCloseHandler:function(){d(i),e.listViewForFeedbacksByHucOnClose()}})},openListView:d,toggleControlPanel:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{target:null,isVisible:!1,data:null};e.target&&(e.isVisible?e.target.open(e.data):e.target.close(),l(!e.isVisible))}}}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var H=n(90).Promise,B={url:"https://js.arcgis.com/4.14"};g.utils.Promise=H;var U=function(e,t){var n=null,r=!0,i=null,a=null,c=null,u=function(){c.getCredential(a.portalUrl+"/sharing").then(function(e){s(e)})},s=function(e){n=e,r=!e};return{init:function(){return new H(function(n,r){g.loadModules(["esri/identity/OAuthInfo","esri/identity/IdentityManager","esri/config"],B).then(function(r){var l=j(r,3),f=l[0],d=l[1];l[2].portalUrl=t,c=d,a=new f({appId:e,portalUrl:o.a.portalUrl,popup:!1}),c.useSignInPage=!0,c.registerOAuthInfos([a]),c.checkSignInStatus(a.portalUrl+"/sharing").then(function(e){s(e),new H(function(e,t){g.loadModules(["esri/portal/Portal"],B).then(function(n){var r=new(0,j(n,1)[0]);r.authMode="immediate",r.load().then(function(){e(r.user)}).catch(function(e){t(e)})})}).then(function(e){i=e,n(e)})}).catch(function(){u()})}).catch(function(e){r(e),console.error(e)})})},signIn:u,signOut:function(){c.destroyCredentials(),window.location.reload()},getUserContentUrl:function(){return"".concat(n.server,"/sharing/rest/content/users/").concat(n.userId)},isAnonymous:function(){return r},getUserID:function(){return i?i.username:n.userId},getToken:function(){return n.token},getPoralUser:function(){return i}}},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetDomElementId,n=void 0===t?"":t,r=(e.onLoadHandler,void 0!==window.FileReader),o=n?document.getElementById(n):null,i=function(){o.ondragover=function(){return!1},o.ondragend=function(){return!1},o.ondrop=function(e){e.preventDefault();var t=e.dataTransfer.files[0],n=new FileReader;return n.onload=function(e){var t=e.target.result;console.log(a(t))},n.readAsText(t),!1}},a=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("\n"),t=e[0].split(",");return{features:e.slice(1).map(function(e){return e.split(",")}).map(function(e){var n={};return e.forEach(function(e,r){var o=t[r];n[o]=e}),{attributes:n}})}};return{init:function(){o?r?i():console.error("Failed to init Csv Loader >>> File Reader is not supported."):console.error("Failed to init Csv Loader >>> target DOM element (".concat(n,") for Csv Loade is not available"))}}};function V(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function W(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){V(i,r,o,a,c,"next",e)}function c(e){V(i,r,o,a,c,"throw",e)}a(void 0)})}}!function(){var e=W(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=new U(o.a.oauthAppID,o.a.portalUrl),e.next=3,t.init();case 3:document.querySelector(".js-accept-terms").addEventListener("click",function(e){G(t)});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()();var G=function(){var e=W(regeneratorRuntime.mark(function e(t){var n,r,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return console.error("oauth manager is required to init the app..."),e.abrupt("return");case 3:n=new P,r=new _({portalUrl:o.a.portalUrl,webMapID:o.a.webMapID,mapViewContainerID:o.a.DOM_ID.mapViewContainer}),i=new M({oauthManager:t,speciesDataOnReady:function(e){n.speciesSelector.render({data:e})},legendDataOnReady:function(e){n.initLegend(e)},feedbackManagerOnOpen:function(e){n.toggleControlPanel({target:n.feedbackControlPanel,isVisible:!0,data:e})},feedbackManagerOnClose:function(){n.toggleControlPanel({target:n.feedbackControlPanel,isVisible:!1})},speciesOnSelect:function(){console.log("speciesOnSelect?"),n.enableOpenOverallFeedbackBtnBtn()},onDeatiledFeedbackSubmit:function(e){var t=e.species;n.speciesSelector.setSpeciesSelectorOptionAsReviewed(t,"detailed")},onOverallFeedbackSubmit:function(e){var t=e.attributes[o.a.FIELD_NAME.overallFeedback.species];n.speciesSelector.setSpeciesSelectorOptionAsReviewed(t,"overall")},onReviewMode:function(){n.switchToReviewModeView(),n.initViewComponentsForReviewMode()},overallFeedbackForReviewModeOnReady:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;n.openListView(n.listViewForOverallFeedback,e)},feedbackByUsersForReviewModeOnReady:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;n.openListView(n.listViewForDetailedFeedback,e)},feedbackByHucsForReviewModeOnReady:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;n.openListView(n.listViewForFeedbacksByHuc,e)},hucFeatureOnSelectForReviewMode:function(e){n.listViewForDetailedFeedback.isVisible()?(console.log("no view visible",e),n.listViewForDetailedFeedback.setActiveRow(e.attributes[o.a.FIELD_NAME.hucLayerHucID])):(console.log("getFeedbackBYHucForReviewMode sup!!",e),i.getFeedbacksByHucForReviewMode(e))},highligtHucsOnMap:function(e){console.log("highligtHucsOnMap",e),r.highlightHucs(e)},showToPredictedHabitatOnMap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";r.showPredictedHabitatLayers(e)},clearMapGraphics:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";r.clearMapGraphics(e)},showHucFeatureOnMap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;r.showHucFeatureByStatus(e,t)},addPreviewHucByID:function(e){r.addPreviewHucByID(e)},pdfUrlOnChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";n.toggleDownloadAsPdfBtn(e)}}),n.speciesSelector.init({onChange:function(e){console.log("view.speicesSelector on Change?",e),i.setSelectedSpecies(e)}}),n.feedbackControlPanel.init({containerID:o.a.DOM_ID.feedbackControl,onCloseHandler:function(){i.resetSelectedHucFeature()},commentOnChange:function(e){i.feedbackManager.feedbackDataModel.setComment(e)},onSubmitHandler:function(e){e&&i.feedbackManager.feedbackDataModel.setStatus(e),i.feedbackManager.submit()},onRemoveHandler:function(){i.feedbackManager.remove()}}),n.overallFeedbackControlPanel.init({containerID:o.a.DOM_ID.overallFeedbackControl,onCloseHandler:function(){n.toggleControlPanel({target:n.overallFeedbackControlPanel,isVisible:!1})},onSubmitHandler:function(e){n.toggleControlPanel({target:n.overallFeedbackControlPanel,isVisible:!1}),i.postOverallFeedback(e)}}),n.init({downloadPdfBtnOnClick:function(){i.downloadPdf()},openOverallBtnOnclick:function(){n.toggleControlPanel({target:n.overallFeedbackControlPanel,isVisible:!0,data:i.getOverallFeedback()})},layerOpacitySliderOnUpdate:function(e){r.setLayersOpacity(e)},listViewForOverallFeedbackOnClick:function(e){i.getFeedbacksByUserForReviewMode(e)},listViewForDetailedFeedbackOnClose:function(){i.renderListOfHucsWithFeedbacks()},listViewForDetailedFeedbackOnClick:function(e){r.addPreviewHucByID(e)},listViewForFeedbacksByHucOnClose:function(){i.resetSelectedHucFeature()},signOutBtnOnClick:function(){i.signOut()}}),i.init({}),r.init({hucFeatureOnSelectHandler:function(e,t){console.log("PEE selected hucFeature",r.getSelectState()),i.setSelectedHucFeature(e,t)},zoomToHucFeatureHandler:function(e){console.log("zoom to huc feature",e),i.zoomToHucFeature(e)}}),new q({targetDomElementId:o.a.DOM_ID.mapViewContainer}).init();case 14:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}]);