mp-front-cli 2.1.0-next-5 → 2.1.1-next-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/custom-redis-BaTLH6jE.cjs +1 -0
  2. package/dist/fetch-service-parent-be-1E2rjJep.cjs +1 -0
  3. package/dist/{fetch-service-parent-be-B9aQqRUg.js → fetch-service-parent-be-B7dH5eoV.js} +33 -33
  4. package/dist/index-D-Gvi_du.cjs +1 -0
  5. package/dist/{index-B_86KXmg.js → index-Dy5KNkhq.js} +2 -2
  6. package/dist/loading-handler-CVkAHN_A.cjs +1 -0
  7. package/dist/mp-front-cli-adapter.cjs.js +1 -0
  8. package/dist/mp-front-cli-all.cjs.js +1 -0
  9. package/dist/mp-front-cli-cache.cjs.js +1 -0
  10. package/dist/mp-front-cli-core.cjs.js +1 -0
  11. package/dist/mp-front-cli-encoder.cjs.js +27 -0
  12. package/dist/mp-front-cli-encrypter.cjs.js +1 -0
  13. package/dist/mp-front-cli-header.cjs.js +1 -0
  14. package/dist/mp-front-cli-locale.cjs.js +1 -0
  15. package/dist/mp-front-cli-logger.cjs.js +1 -0
  16. package/dist/mp-front-cli-services.cjs.js +1 -0
  17. package/dist/mp-front-cli-utils-rxjs.cjs.js +1 -0
  18. package/dist/{mp-front-cli-core.es.js → mp-front-cli.js} +2 -2
  19. package/dist/{mp-front-cli-encoder.es.js → mp-front-cli11.js} +1 -1
  20. package/dist/{mp-front-cli-all.es.js → mp-front-cli2.js} +2 -2
  21. package/dist/mp-front-cli4.js +4 -0
  22. package/dist/{mp-front-cli-header.es.js → mp-front-cli5.js} +2 -2
  23. package/dist/{mp-front-cli-cache.es.js → mp-front-cli6.js} +1 -1
  24. package/dist/{mp-front-cli-encrypter.es.js → mp-front-cli8.js} +1 -1
  25. package/dist/{mp-front-cli-locale.es.js → mp-front-cli9.js} +1 -1
  26. package/dist/{service-token-DceocCHP.js → service-token-CK4mGUv8.js} +1 -1
  27. package/dist/service-token-CkqXJlgW.cjs +3 -0
  28. package/dist/stringify-BN6t_WDt.cjs +1 -0
  29. package/package.json +28 -15
  30. package/dist/mp-front-cli-services.es.js +0 -4
  31. /package/dist/{mp-front-cli-adapter.es.js → mp-front-cli10.js} +0 -0
  32. /package/dist/{mp-front-cli-utils-rxjs.es.js → mp-front-cli3.js} +0 -0
  33. /package/dist/{mp-front-cli-logger.es.js → mp-front-cli7.js} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";const s=require("ioredis"),e=process.env.REDIS_HOST,S=process.env.REDIS_PORT,o=process.env.REDIS_USER,R=process.env.REDIS_PASS,t=new s({host:e,port:S,username:o,password:R,tls:{}});exports.CustomRedis=t;
@@ -0,0 +1 @@
1
+ "use strict";var f=Object.defineProperty;var p=(t,E,e)=>E in t?f(t,E,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[E]=e;var O=(t,E,e)=>p(t,typeof E!="symbol"?E+"":E,e);const R=require("rxjs"),u=require("./mp-front-cli-encrypter.cjs.js"),d=require("./mp-front-cli-header.cjs.js"),P=require("querystring"),g=require("./service-token-CkqXJlgW.cjs"),c=require("./loading-handler-CVkAHN_A.cjs"),h=require("./mp-front-cli-encoder.cjs.js"),y=require("./stringify-BN6t_WDt.cjs"),w=require("./mp-front-cli-logger.cjs.js"),S=require("i18next"),F=require("./index-D-Gvi_du.cjs"),U=t=>(S.init({resources:{es:{translation:{errors:{...F.translation.errors,...(t==null?void 0:t.es)??{}}}}},lng:"es",supportedLngs:["es"],interpolation:{escapeValue:!1},debug:!1}),S),x={"SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01":{code:400,type:"modal",message:"errors.helpdesk.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.message",title:"errors.helpdesk.SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01.title",level:"error"},"SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01":{code:400,type:"modal",message:"errors.helpdesk.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.message",title:"errors.helpdesk.SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01.title",level:"error"},"SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01":{code:400,type:"modal",message:"errors.helpdesk.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.message",title:"errors.helpdesk.SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01.title",level:"error"},"SKIPFINGERPRINT-UNEXCEPTED-ERROR-01":{code:400,type:"modal",message:"errors.helpdesk.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.message",title:"errors.helpdesk.SKIPFINGERPRINT-UNEXCEPTED-ERROR-01.title",level:"error"},"SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02":{code:400,type:"modal",message:"errors.helpdesk.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.message",title:"errors.helpdesk.SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02.title",level:"error"},"SKIPFINGERPRINT-CLIENT-NOT-FOUND":{code:400,type:"modal",message:"errors.helpdesk.SKIPFINGERPRINT-CLIENT-NOT-FOUND.message",title:"errors.helpdesk.SKIPFINGERPRINT-CLIENT-NOT-FOUND.title",level:"error"},"DUPLICATE-KEY-DATABASE-POSTGRES":{code:400,type:"modal",message:"errors.helpdesk.DUPLICATE-KEY-DATABASE-POSTGRES.message",title:"errors.helpdesk.DUPLICATE-KEY-DATABASE-POSTGRES.title",level:"error"},"UNEXCEPTED-ERROR":{code:400,type:"modal",message:"errors.helpdesk.UNEXCEPTED-ERROR.message",title:"errors.helpdesk.UNEXCEPTED-ERROR.title",level:"error"}},M={"PF-CANCEL-APPLICATION-GENERIC-ERROR-001":{code:400,type:"modal",message:"errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.message",title:"errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",level:"error"}},v={...M,...x},Q={UNAUTHORIZED:{level:"warning",type:"modal",message:"errors.UnAuthorized.message",title:"errors.UnAuthorized.title",code:310},"ERR-GENERAL-01":{level:"warning",type:"modal",message:"errors.ERR-GENERAL-01.message",title:"errors.ERR-GENERAL-01.title",code:400},internalError:{level:"warning",type:"modal",message:"errors.internalError.message",title:"errors.internalError.title",code:420},default:{code:420,type:"modal",message:"errors.default.message",title:"errors.default.title",level:"warning"},"PF-BIOMETRIC-001":{title:"errors.PF-BIOMETRIC-001.title",message:"errors.PF-BIOMETRIC-001.message",level:"warning",code:420,type:"modal"},"PF-BIOMETRIC-002":{title:"errors.PF-BIOMETRIC-002.title",message:"errors.PF-BIOMETRIC-002.message",level:"warning",code:420,type:"modal"},"PF-BIOMETRIC-003":{title:"errors.PF-BIOMETRIC-003.title",message:"errors.PF-BIOMETRIC-003.message",level:"warning",code:420,type:"modal"},"PF-BIOMETRIC-004":{code:421,type:"modal",message:"errors.PF-BIOMETRIC-004.message",title:"errors.PF-BIOMETRIC-004.title",level:"warning"},"PF-BIOMETRIC-007":{title:"errors.PF-BIOMETRIC-007.title",message:"errors.PF-BIOMETRIC-007.message",level:"warning",code:420,type:"modal"},"PF-VALIDATE-CLIENTTYPE-003":{title:"errors.PF-VALIDATE-CLIENTTYPE-003.title",message:"errors.PF-VALIDATE-CLIENTTYPE-003.message",level:"warning",code:310,type:"modal"},"PF-VALIDATE-CLIENTTYPE-006":{title:"errors.PF-VALIDATE-CLIENTTYPE-006.title",message:"errors.PF-VALIDATE-CLIENTTYPE-006.message",level:"warning",code:310,type:"modal"},ERROR_LOCATION:{title:"errors.ERROR_LOCATION.title",message:"errors.ERROR_LOCATION.message",level:"warning",code:310,type:"modal"},"COMMUNICATIONS-INVALIDCODEEXCEPTION-001":{title:"errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-001.title",message:"errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-001.message",code:400,type:"modal",level:"warning"},"COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001":{title:"errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001.title",message:"errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001.message",code:310,type:"modal",level:"warning"},"COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002":{title:"errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002.title",message:"errors.COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002.message",code:310,type:"modal",level:"warning"},"COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001":{title:"errors.COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001.title",message:"errors.COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001.message",code:400,type:"modal",level:"warning"},"COMMUNICATIONS-INVALIDCODEEXCEPTION-002":{title:"errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-002.title",message:"errors.COMMUNICATIONS-INVALIDCODEEXCEPTION-002.message",code:400,type:"modal",level:"warning"},"COMMUNICATIONS-BLACKLISTEXCEPTION-001":{title:"errors.COMMUNICATIONS-BLACKLISTEXCEPTION-001.title",message:"errors.COMMUNICATIONS-BLACKLISTEXCEPTION-001.message",code:403,type:"modal",level:"warning"},"COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003":{title:"errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003.title",message:"errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003.message",code:400,type:"modal",level:"warning"},"COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004":{title:"errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004.title",message:"errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004.message",code:400,type:"modal",level:"warning"},"COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005":{title:"errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005.title",message:"errors.COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005.message",code:400,type:"modal",level:"warning"},"SCORE-CLIENTREJECTED-01":{title:"errors.calculator.SCORE-CLIENTREJECTED-01.title",message:"errors.calculator.SCORE-CLIENTREJECTED-01.message",code:310,type:"modal",level:"info"},"SCORE-CLIENTREJECTED-02":{title:"errors.calculator.SCORE-CLIENTREJECTED-02.title",message:"errors.calculator.SCORE-CLIENTREJECTED-02.message",code:310,type:"modal",level:"info"},"CALCULATOR-MAPPING-01":{title:"errors.calculator.CALCULATOR-MAPPING-01.title",message:"errors.calculator.CALCULATOR-MAPPING-01.message",code:420,type:"modal",level:"warning"},"CALCULATOR-MAPPING-02":{title:"errors.calculator.CALCULATOR-MAPPING-02.title",message:"errors.calculator.CALCULATOR-MAPPING-02.message",code:420,type:"modal",level:"warning"},"CALCULATOR-MAPPING-03":{title:"errors.calculator.CALCULATOR-MAPPING-03.title",message:"errors.calculator.CALCULATOR-MAPPING-03.message",code:420,type:"modal",level:"warning"},"CALCULATOR-MAPPING-04":{title:"errors.calculator.CALCULATOR-MAPPING-04.title",message:"errors.calculator.CALCULATOR-MAPPING-04.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-01":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-01.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-01.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-02":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-02.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-02.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-03":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-03.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-03.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-04":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-04.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-04.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-05":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-05.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-05.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-06":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-06.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-06.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-07":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-07.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-07.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-08":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-08.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-08.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-09":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-09.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-09.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-10":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-10.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-10.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-11":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-11.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-11.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-12":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-12.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-12.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-13":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-13.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-13.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-14":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-14.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-14.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-15":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-15.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-15.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-16":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-16.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-16.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-17":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-17.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-17.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-18":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-18.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-18.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-19":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-19.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-19.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-20":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-20.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-20.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-21":{code:420,type:"modal",message:"errors.default.message",title:"errors.default.title",level:"warning"},"CALCULATOR-BAD-REQUEST-22":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-22.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-22.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-23":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-23.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-23.message",code:420,type:"modal",level:"info"},"CALCULATOR-BAD-REQUEST-24":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-24.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-24.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-25":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-25.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-25.message",code:420,type:"modal",level:"warning"},"CALCULATOR-UNAUTHORIZED-01":{title:"errors.calculator.CALCULATOR-UNAUTHORIZED-01.title",message:"errors.calculator.CALCULATOR-UNAUTHORIZED-01.message",code:420,type:"modal",level:"warning"},"CALCULATOR-UNAUTHORIZED-02":{title:"errors.calculator.CALCULATOR-UNAUTHORIZED-02.title",message:"errors.calculator.CALCULATOR-UNAUTHORIZED-02.message",code:420,type:"modal",level:"warning"},"CALCULATOR-SERVICE-UNAVAILABLE-01":{title:"errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-01.title",message:"errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-01.message",code:420,type:"modal",level:"warning"},"CALCULATOR-SERVICE-UNAVAILABLE-02":{title:"errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-02.title",message:"errors.calculator.CALCULATOR-SERVICE-UNAVAILABLE-02.message",code:420,type:"modal",level:"warning"},"CALCULATOR-NOT-FOUND-01":{title:"errors.calculator.CALCULATOR-NOT-FOUND-01.title",message:"errors.calculator.CALCULATOR-NOT-FOUND-01.message",code:420,type:"modal",level:"warning"},"CALCULATOR-NOT-FOUND-02":{title:"errors.calculator.CALCULATOR-NOT-FOUND-02.title",message:"errors.calculator.CALCULATOR-NOT-FOUND-02.message",code:420,type:"modal",level:"warning"},"CALCULATOR-SAP-ERROR-01":{title:"errors.calculator.CALCULATOR-SAP-ERROR-01.title",message:"errors.calculator.CALCULATOR-SAP-ERROR-01.message",code:420,type:"modal",level:"warning"},"CALCULATOR-SAP-ERROR-02":{title:"errors.calculator.CALCULATOR-SAP-ERROR-02.title",message:"errors.calculator.CALCULATOR-SAP-ERROR-02.message",code:420,type:"modal",level:"warning"},"CALCULATOR-SAP-ERROR-03":{title:"errors.calculator.CALCULATOR-SAP-ERROR-03.title",message:"errors.calculator.CALCULATOR-SAP-ERROR-03.message",code:420,type:"modal",level:"warning"},"CALCULATOR-SAP-ERROR-04":{title:"errors.calculator.CALCULATOR-SAP-ERROR-04.title",message:"errors.calculator.CALCULATOR-SAP-ERROR-04.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-26":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-26.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-26.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-27":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-27.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-27.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-28":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-28.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-28.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-29":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-29.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-29.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-30":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-30.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-30.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-31":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-31.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-31.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-34":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-34.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-34.message",code:420,type:"modal",level:"warning"},"CALCULATOR-BAD-REQUEST-35":{title:"errors.calculator.CALCULATOR-BAD-REQUEST-35.title",message:"errors.calculator.CALCULATOR-BAD-REQUEST-35.message",code:420,type:"modal",level:"warning"},"SAVING_NOT_FOUND-01":{title:"errors.calculator.SAVING_NOT_FOUND-01.title",message:"errors.calculator.SAVING_NOT_FOUND-01.message",code:420,type:"modal",level:"warning"},"SAVING-BAD-REQUEST-01":{title:"errors.calculator.SAVING-BAD-REQUEST-01.title",message:"errors.calculator.SAVING-BAD-REQUEST-01.message",code:420,type:"modal",level:"warning"},"SAVING-BAD-REQUEST-02":{title:"errors.calculator.SAVING-BAD-REQUEST-02.title",message:"errors.calculator.SAVING-BAD-REQUEST-02.message",code:420,type:"modal",level:"warning"},"SAVING-BAD-REQUEST-03":{title:"errors.calculator.SAVING-BAD-REQUEST-03.title",message:"errors.calculator.SAVING-BAD-REQUEST-03.message",code:420,type:"modal",level:"warning"},"SAVING-GENERIC-01":{title:"errors.calculator.SAVING-GENERIC-01.title",message:"errors.calculator.SAVING-GENERIC-01.message",code:420,type:"modal",level:"warning"},"JOURNEY-CANCEL-01":{title:"errors.JOURNEY-CANCEL-01.title",message:"errors.JOURNEY-CANCEL-01.message",code:310,type:"modal",level:"info"},"JOURNEY-INVALIDATEDATA-01":{title:"errors.JOURNEY-INVALIDATEDATA-01.title",message:"errors.JOURNEY-INVALIDATEDATA-01.message",code:420,type:"modal",level:"warning"},"JOURNEY-DATANOTFOUND-02":{title:"errors.JOURNEY-DATANOTFOUND-02.title",message:"errors.JOURNEY-DATANOTFOUND-02.message",code:420,type:"modal",level:"warning"},"JOURNEY-FLOWEND-03":{title:"errors.JOURNEY-FLOWEND-03.title",message:"errors.JOURNEY-FLOWEND-03.message",code:420,type:"modal",level:"warning"},"PF-ERROR-GENERIC":{title:"errors.PF-ERROR-GENERIC.title",message:"errors.PF-ERROR-GENERIC.message",code:420,type:"modal",level:"warning"},"JOURNEY-IDSTATEINCORRECT-04":{title:"errors.JOURNEY-IDSTATEINCORRECT-04.title",message:"errors.JOURNEY-IDSTATEINCORRECT-04.message",code:420,type:"modal",level:"warning"},"JOURNEY-HEADERS-05":{title:"errors.JOURNEY-HEADERS-05.title",message:"errors.JOURNEY-HEADERS-05.message",code:420,type:"modal",level:"warning"},"INITIAL-INVALIDATEDATA-01":{title:"errors.INITIAL-INVALIDATEDATA-01.title",message:"errors.INITIAL-INVALIDATEDATA-01.message",code:420,type:"modal",level:"warning"},"INITIAL-DATANOTFOUND-02":{title:"errors.INITIAL-DATANOTFOUND-02.title",message:"errors.INITIAL-DATANOTFOUND-02.message",code:420,type:"modal",level:"warning"},"INITIAL-HEADERS-03":{title:"errors.INITIAL-HEADERS-03.title",message:"errors.INITIAL-HEADERS-03.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-INVALID-MEDIA-TYPE":{title:"errors.PERSONALDATA-INVALID-MEDIA-TYPE.title",message:"errors.PERSONALDATA-INVALID-MEDIA-TYPE.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-INVALID-CONTENT-TYPE":{title:"errors.PERSONALDATA-INVALID-CONTENT-TYPE.title",message:"errors.PERSONALDATA-INVALID-CONTENT-TYPE.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-INVALID-DATA-TYPE":{title:"errors.PERSONALDATA-INVALID-DATA-TYPE.title",message:"errors.PERSONALDATA-INVALID-DATA-TYPE.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-UNKNOWN-REGISTER-01":{title:"errors.PERSONALDATA-UNKNOWN-REGISTER-01.title",message:"errors.PERSONALDATA-UNKNOWN-REGISTER-01.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-UNKNOWN-REGISTER-02":{title:"errors.PERSONALDATA-UNKNOWN-REGISTER-02.title",message:"errors.PERSONALDATA-UNKNOWN-REGISTER-02.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-01":{title:"errors.PERSONALDATA-BAD-REQUEST-01.title",message:"errors.PERSONALDATA-BAD-REQUEST-01.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-02":{title:"errors.PERSONALDATA-BAD-REQUEST-02.title",message:"errors.PERSONALDATA-BAD-REQUEST-02.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-03":{title:"errors.PERSONALDATA-BAD-REQUEST-03.title",message:"errors.PERSONALDATA-BAD-REQUEST-03.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-04":{title:"errors.PERSONALDATA-BAD-REQUEST-04.title",message:"errors.PERSONALDATA-BAD-REQUEST-04.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-05":{title:"errors.PERSONALDATA-BAD-REQUEST-05.title",message:"errors.PERSONALDATA-BAD-REQUEST-05.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-06":{title:"errors.PERSONALDATA-BAD-REQUEST-06.title",message:"errors.PERSONALDATA-BAD-REQUEST-06.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-07":{title:"errors.PERSONALDATA-BAD-REQUEST-07.title",message:"errors.PERSONALDATA-BAD-REQUEST-07.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-08":{title:"errors.PERSONALDATA-BAD-REQUEST-08.title",message:"errors.PERSONALDATA-BAD-REQUEST-08.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-GENERIC-ERROR":{title:"errors.PERSONALDATA-GENERIC-ERROR.title",message:"errors.PERSONALDATA-GENERIC-ERROR.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-ODATA-ERROR-01":{title:"errors.PERSONALDATA-ODATA-ERROR-01.title",message:"errors.PERSONALDATA-ODATA-ERROR-01.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-UNKNOWN-FG-01":{title:"errors.PERSONALDATA-UNKNOWN-FG-01.title",message:"errors.PERSONALDATA-UNKNOWN-FG-01.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-CU-ERROR-01":{title:"errors.PERSONALDATA-CU-ERROR-01.title",message:"errors.PERSONALDATA-CU-ERROR-01.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-INVALID-RFC-01":{title:"errors.PERSONALDATA-INVALID-RFC-01.title",message:"errors.PERSONALDATA-INVALID-RFC-01.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-09":{title:"errors.PERSONALDATA-BAD-REQUEST-09.title",message:"errors.PERSONALDATA-BAD-REQUEST-09.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-10":{title:"errors.PERSONALDATA-BAD-REQUEST-10.title",message:"errors.PERSONALDATA-BAD-REQUEST-10.message",code:420,type:"modal",level:"warning"},"PERSONALDATA-BAD-REQUEST-WHITE-LIST-11":{title:"errors.PERSONALDATA-BAD-REQUEST-WHITE-LIST-11.title",message:"errors.PERSONALDATA-BAD-REQUEST-WHITE-LIST-11.message",code:420,type:"modal",level:"warning"},"PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01":{title:"errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.title",message:"errors.PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01.message",code:422,type:"modal",level:"warning"},"PERSONALREFERENCE-REFERENCESEXCEPTION-01":{title:"errors.PERSONALREFERENCE-REFERENCESEXCEPTION-01.title",message:"errors.PERSONALREFERENCE-REFERENCESEXCEPTION-01.message",code:422,type:"modal",level:"warning"},"PERSONALREFERENCE-BLACKLISTEXCEPTION-01":{title:"errors.PERSONALREFERENCE-BLACKLISTEXCEPTION-01.title",message:"errors.PERSONALREFERENCE-BLACKLISTEXCEPTION-01.message",code:403,type:"modal",level:"warning"},"PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01":{title:"errors.PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01.title",message:"errors.PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01.message",code:400,type:"modal",level:"warning"},"PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001":{title:"errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.title",message:"errors.PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001.message",code:400,type:"modal",level:"warning"},"PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001":{title:"errors.PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001.title",message:"errors.PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001.message",code:420,type:"modal",level:"warning"},"PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001":{title:"errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.title",message:"errors.PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001.message",code:422,type:"modal",level:"warning"},"PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001":{title:"errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.title",message:"errors.PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001.message",code:422,type:"modal",level:"warning"},"SALES-SUMMARY-GENERIC-ERROR-001":{title:"errors.SALES-SUMMARY-GENERIC-ERROR-001.title",message:"errors.SALES-SUMMARY-GENERIC-ERROR-001.message",code:420,type:"modal",level:"warning"},"PF-SALES-SUMMARY-GENERIC-ERROR-001":{title:"errors.PF-SALES-SUMMARY-GENERIC-ERROR-001.title",message:"errors.PF-SALES-SUMMARY-GENERIC-ERROR-001.message",code:420,type:"modal",level:"warning"},"SALES-SUMMARY-ERROR-005":{title:"errors.SALES-SUMMARY-ERROR-005.title",message:"errors.SALES-SUMMARY-ERROR-005.message",code:420,type:"modal",level:"warning"},"PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001":{title:"errors.PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001.title",message:"errors.PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001.message",code:420,type:"modal",level:"warning"},"PF-CANCEL-APPLICATION-GENERIC-ERROR-001":{title:"errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.title",message:"errors.PF-CANCEL-APPLICATION-GENERIC-ERROR-001.message",code:420,type:"modal",level:"warning"},...v};class n extends w.CustomLogger{constructor(){super(...arguments);O(this,"errorCatalog",{...Q});O(this,"i18Next")}get(e="default",r="NOT_FOUND"){var A,a;const{errorCatalog:s}=this;if(e instanceof Error)return this.logError(e.message),{...s.internalError,title:this.translate(s.internalError.title),message:this.translate(s.internalError.message),uuid:r};const o=typeof e=="string"?e:e.code??e.errorType;this.logDebug("statusCode",o);const l=typeof e=="string"?{}:{...e};return{...s[o]??s.default,title:this.translate(((A=s[o])==null?void 0:A.title)??s.default.title,l),message:this.translate(((a=s[o])==null?void 0:a.message)??s.default.message,l),payload:typeof e!="string"?{errorCode:e.code}:{},uuid:r}}setErrors(e){this.errorCatalog={...this.errorCatalog,...e}}setI18nResources(e){this.i18Next=U(e)}translate(e,r={}){return this.i18Next||(this.i18Next=U()),this.i18Next.t(e,{payload:r})}}class G extends u.CustomEncrypter{constructor(){super(...arguments);O(this,"uuid","");O(this,"session",null)}setSession(e){this.session=e}getSession(){if(!this.session)throw new n().get("SESSION_NOT_FOUND");return this.session}returnData(e,r,s){const o=this.encode(r,s);e.status(200).json(o)}returnError(e,r){return r!=null&&r.uuid?e.status(520).json(r):e.status(520).json(new n().get(r,this.uuid))}get(e){return this.logDebug("get ApiMiddleware"),(r,s)=>{var o;this.logDebug("return ApiMiddleware"),this.uuid=(o=r==null?void 0:r.body)==null?void 0:o.uuid,R.of(r).pipe(R.switchMap(l=>R.forkJoin({params:R.of(this.decode(l.body)),headers:R.of(l.headers)})),R.switchMap(({params:l,headers:A})=>R.forkJoin({response:e(l,this.uuid,A),headers:R.of(A),params:R.of(l)})),R.switchMap(({params:l,response:A,headers:a})=>(this.logDebug(`ApiMiddleware \x1B[37m <URL>: \x1B[33m ${r.url} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(a)} \x1B[37m <UUID> \x1B[33m ${r.body.uuid} \x1B[37m <PARAMS> \x1B[33m ${JSON.stringify(l)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)}`),R.of(A))),R.catchError(l=>{var A;return this.logError(`ApiMiddleware <URL>: ${r==null?void 0:r.url} <HEADERS>: ${JSON.stringify(r==null?void 0:r.headers)} <UUID> ${(A=r==null?void 0:r.body)==null?void 0:A.uuid} <PARAMS> ${JSON.stringify(r==null?void 0:r.body)} <ERROR>: ${JSON.stringify(l)}`),this.returnError(s,l),R.EMPTY})).subscribe({next:l=>{this.logDebug("ApiMiddleware subscribe next",JSON.stringify(l)),this.returnData(s,l,this.uuid)}})}}}const V=process.env.ID_FRONT??"NOT_AVAILABLE";class J extends d.CustomHeader{constructor(e,r,s={}){super(s);O(this,"apiUrl");O(this,"method");this.apiUrl=e,this.method=r??"POST"}errorHandler(e,r){if(e!=null&&e.errors)throw new n().get(e.errors[0],r);return!(e!=null&&e.errors)}formatParams(e){return JSON.stringify({data:{type:V,attributes:e}})}fetchData(e={},r){return this.getHeaders().pipe(R.switchMap(s=>g.fromFetch(this.apiUrl,{method:"POST",headers:s,body:this.formatParams(e),selector:o=>o.json()}).pipe(R.catchError(o=>{throw this.logError(JSON.stringify(o)),this.logError(`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(s)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(this.formatParams(e))} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(o)} \x1B[33m`),new n().get("default",r)}),R.switchMap(o=>(this.logDebug(`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(s)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(this.formatParams(e))} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(o)} \x1B[33m`),R.of(o))))),R.filter(s=>this.errorHandler(s,r)))}fetchCustomData(e={},r,s){const o={"Content-Type":"application/json"},l=P.stringify(e),A=`${this.apiUrl}?${l}`,a=this.method==="GET"?A:this.apiUrl;return this.getHeaders(o,s).pipe(R.switchMap(i=>g.fromFetch(a,{method:this.method,headers:i,body:this.method==="GET"?null:JSON.stringify(e),selector:T=>T.json()}).pipe(R.catchError(T=>{throw this.logError(JSON.stringify(T)),this.logError(`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(i)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(this.formatParams(e))} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(T)} \x1B[33m`),new n().get("default",r)}),R.switchMap(T=>(this.logDebug(`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(i)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(e)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(T)} \x1B[33m`),R.of(T))))))}}const $=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Y(t){return typeof t=="string"&&$.test(t)}function H(t){if(!Y(t))throw TypeError("Invalid UUID");let E;const e=new Uint8Array(16);return e[0]=(E=parseInt(t.slice(0,8),16))>>>24,e[1]=E>>>16&255,e[2]=E>>>8&255,e[3]=E&255,e[4]=(E=parseInt(t.slice(9,13),16))>>>8,e[5]=E&255,e[6]=(E=parseInt(t.slice(14,18),16))>>>8,e[7]=E&255,e[8]=(E=parseInt(t.slice(19,23),16))>>>8,e[9]=E&255,e[10]=(E=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=E/4294967296&255,e[12]=E>>>24&255,e[13]=E>>>16&255,e[14]=E>>>8&255,e[15]=E&255,e}function X(t){t=unescape(encodeURIComponent(t));const E=[];for(let e=0;e<t.length;++e)E.push(t.charCodeAt(e));return E}const b="6ba7b810-9dad-11d1-80b4-00c04fd430c8",K="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function k(t,E,e){function r(s,o,l,A){var a;if(typeof s=="string"&&(s=X(s)),typeof o=="string"&&(o=H(o)),((a=o)===null||a===void 0?void 0:a.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let i=new Uint8Array(16+s.length);if(i.set(o),i.set(s,o.length),i=e(i),i[6]=i[6]&15|E,i[8]=i[8]&63|128,l){A=A||0;for(let T=0;T<16;++T)l[A+T]=i[T];return l}return y.unsafeStringify(i)}try{r.name=t}catch{}return r.DNS=b,r.URL=K,r}function W(t,E,e,r){switch(t){case 0:return E&e^~E&r;case 1:return E^e^r;case 2:return E&e^E&r^e&r;case 3:return E^e^r}}function m(t,E){return t<<E|t>>>32-E}function j(t){const E=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const l=unescape(encodeURIComponent(t));t=[];for(let A=0;A<l.length;++A)t.push(l.charCodeAt(A))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const r=t.length/4+2,s=Math.ceil(r/16),o=new Array(s);for(let l=0;l<s;++l){const A=new Uint32Array(16);for(let a=0;a<16;++a)A[a]=t[l*64+a*4]<<24|t[l*64+a*4+1]<<16|t[l*64+a*4+2]<<8|t[l*64+a*4+3];o[l]=A}o[s-1][14]=(t.length-1)*8/Math.pow(2,32),o[s-1][14]=Math.floor(o[s-1][14]),o[s-1][15]=(t.length-1)*8&4294967295;for(let l=0;l<s;++l){const A=new Uint32Array(80);for(let N=0;N<16;++N)A[N]=o[l][N];for(let N=16;N<80;++N)A[N]=m(A[N-3]^A[N-8]^A[N-14]^A[N-16],1);let a=e[0],i=e[1],T=e[2],L=e[3],C=e[4];for(let N=0;N<80;++N){const I=Math.floor(N/20),B=m(a,5)+W(I,i,T,L)+C+E[I]+A[N]>>>0;C=L,L=T,T=m(i,30)>>>0,i=a,a=B}e[0]=e[0]+a>>>0,e[1]=e[1]+i>>>0,e[2]=e[2]+T>>>0,e[3]=e[3]+L>>>0,e[4]=e[4]+C>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const D=k("v5",80,j);class _ extends h.CustomEncoder{constructor(e,r="POST",s={}){super();O(this,"apiUrl");O(this,"method");O(this,"headers");O(this,"isLoadingEnabled",!0);O(this,"errorResponse");this.apiUrl=e,this.method=r,this.headers={"Content-Type":"application/json",...s}}setIsLoadingEnabled(e){this.isLoadingEnabled=e}setErrorResponse(e){this.errorResponse=e}fetchData(e={}){const r=new Date().toISOString(),s=D(r,D.URL),o=this.encode({...e},s);c.LoadingHandler.getInstance().setSubject(this.isLoadingEnabled);const A=new URLSearchParams(window.location.search).get("flow")??"N/A";return g.fromFetch(this.apiUrl,{method:this.method,headers:{...this.headers,flow:A},body:o,selector:a=>a.json()}).pipe(R.switchMap(a=>R.of(this.decode(a))),R.switchMap(a=>a.code&&(a.type==="modal"||a.type==="message")?(this.logError(`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(a)}`),c.LoadingHandler.getInstance().setSubject(!1),c.MessageHandler.getInstance().setSubject(a),this.errorResponse?R.of(this.errorResponse):R.EMPTY):R.of(a)),R.switchMap(a=>(c.LoadingHandler.getInstance().setSubject(!1),this.logDebug(`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(a)}`),R.of(a))),R.catchError(a=>(this.logError(`FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(a)}`),c.LoadingHandler.getInstance().setSubject(!1),c.MessageHandler.getInstance().setSubject(new n().get(a,s)),this.errorResponse?R.of(this.errorResponse):R.EMPTY)))}}const Z=process.env.ID_FRONT??"NOT_AVAILABLE";class z extends d.CustomHeader{constructor(e,r,s={}){super(s);O(this,"apiUrl");O(this,"method");O(this,"errorCatalog",new n);this.apiUrl=e,this.method=r??"POST"}errorHandler(e,r){if(e!=null&&e.errors)throw this.errorCatalog.get(e.errors[0],r);return!(e!=null&&e.errors)}formatParams(e){return JSON.stringify({data:{type:Z,attributes:e}})}fetchData(e={},r){const{resources:s,errors:o}=this.onInit();return this.errorCatalog.setErrors(o),this.errorCatalog.setI18nResources(s),this.getHeaders().pipe(R.switchMap(l=>g.fromFetch(this.apiUrl,{method:"POST",headers:l,body:this.formatParams(e),selector:A=>A.json()}).pipe(R.catchError(A=>{throw this.logError(JSON.stringify(A)),this.logError(`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(l)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(this.formatParams(e))} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)} \x1B[33m`),new n().get("default",r)}),R.switchMap(A=>(this.logDebug(`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(l)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(this.formatParams(e))} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)} \x1B[33m`),R.of(A))))),R.filter(l=>this.errorHandler(l,r)))}fetchCustomData(e={},r,s){const{resources:o,errors:l}=this.onInit();this.errorCatalog.setErrors(l),this.errorCatalog.setI18nResources(o);const A={"Content-Type":"application/json"},a=P.stringify(e),i=`${this.apiUrl}?${a}`,T=this.method==="GET"?i:this.apiUrl;return this.getHeaders(A,s).pipe(R.switchMap(L=>g.fromFetch(T,{method:this.method,headers:L,body:this.method==="GET"?null:JSON.stringify(e),selector:C=>C.json()}).pipe(R.catchError(C=>{throw this.logError(JSON.stringify(C)),this.logError(`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${T} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(L)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(this.formatParams(e))} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(C)} \x1B[33m`),new n().get("default",r)}),R.switchMap(C=>(this.logDebug(`FetchServiceBE \x1B[37m <URL>: \x1B[33m ${T} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(L)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(e)} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(C)} \x1B[33m`),R.of(C))))))}}exports.ApiMiddleware=G;exports.ErrorCatalog=n;exports.FetchServiceBE=J;exports.FetchServiceFE=_;exports.FetchServiceParentBE=z;
@@ -2,16 +2,16 @@ var F = Object.defineProperty;
2
2
  var w = (t, E, e) => E in t ? F(t, E, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[E] = e;
3
3
  var N = (t, E, e) => w(t, typeof E != "symbol" ? E + "" : E, e);
4
4
  import { of as O, switchMap as C, forkJoin as d, catchError as I, EMPTY as c, filter as u } from "rxjs";
5
- import { CustomEncrypter as v } from "./mp-front-cli-encrypter.es.js";
6
- import { CustomHeader as y } from "./mp-front-cli-header.es.js";
5
+ import { CustomEncrypter as v } from "./mp-front-cli8.js";
6
+ import { CustomHeader as y } from "./mp-front-cli5.js";
7
7
  import h from "querystring";
8
- import { f as g } from "./service-token-DceocCHP.js";
8
+ import { f as g } from "./service-token-CK4mGUv8.js";
9
9
  import { L as S, M as P } from "./loading-handler-Br21zGTA.js";
10
- import { CustomEncoder as M } from "./mp-front-cli-encoder.es.js";
10
+ import { CustomEncoder as M } from "./mp-front-cli11.js";
11
11
  import { u as Q } from "./stringify-93tp0umt.js";
12
- import { CustomLogger as G } from "./mp-front-cli-logger.es.js";
12
+ import { CustomLogger as G } from "./mp-front-cli7.js";
13
13
  import B from "i18next";
14
- import { t as V } from "./index-B_86KXmg.js";
14
+ import { t as V } from "./index-Dy5KNkhq.js";
15
15
  const f = (t) => (B.init({
16
16
  resources: {
17
17
  es: {
@@ -636,7 +636,7 @@ const f = (t) => (B.init({
636
636
  message: "errors.JOURNEY-CANCEL-01.message",
637
637
  code: 310,
638
638
  type: "modal",
639
- level: "warning"
639
+ level: "info"
640
640
  },
641
641
  "JOURNEY-INVALIDATEDATA-01": {
642
642
  title: "errors.JOURNEY-INVALIDATEDATA-01.title",
@@ -946,7 +946,7 @@ const f = (t) => (B.init({
946
946
  },
947
947
  ...Y
948
948
  };
949
- class L extends G {
949
+ class n extends G {
950
950
  constructor() {
951
951
  super(...arguments);
952
952
  N(this, "errorCatalog", { ...X });
@@ -999,7 +999,7 @@ class Oe extends v {
999
999
  this.session = e;
1000
1000
  }
1001
1001
  getSession() {
1002
- if (!this.session) throw new L().get("SESSION_NOT_FOUND");
1002
+ if (!this.session) throw new n().get("SESSION_NOT_FOUND");
1003
1003
  return this.session;
1004
1004
  }
1005
1005
  returnData(e, r, s) {
@@ -1007,7 +1007,7 @@ class Oe extends v {
1007
1007
  e.status(200).json(o);
1008
1008
  }
1009
1009
  returnError(e, r) {
1010
- return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new L().get(r, this.uuid));
1010
+ return r != null && r.uuid ? e.status(520).json(r) : e.status(520).json(new n().get(r, this.uuid));
1011
1011
  }
1012
1012
  get(e) {
1013
1013
  return this.logDebug("get ApiMiddleware"), (r, s) => {
@@ -1053,7 +1053,7 @@ class Ce extends y {
1053
1053
  }
1054
1054
  errorHandler(e, r) {
1055
1055
  if (e != null && e.errors)
1056
- throw new L().get(e.errors[0], r);
1056
+ throw new n().get(e.errors[0], r);
1057
1057
  return !(e != null && e.errors);
1058
1058
  }
1059
1059
  formatParams(e) {
@@ -1083,7 +1083,7 @@ class Ce extends y {
1083
1083
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1084
1084
  this.formatParams(e)
1085
1085
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(o)} \x1B[33m`
1086
- ), new L().get("default", r);
1086
+ ), new n().get("default", r);
1087
1087
  }),
1088
1088
  C((o) => (this.logDebug(
1089
1089
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
@@ -1118,7 +1118,7 @@ class Ce extends y {
1118
1118
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1119
1119
  this.formatParams(e)
1120
1120
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(i)} \x1B[33m`
1121
- ), new L().get("default", r);
1121
+ ), new n().get("default", r);
1122
1122
  }),
1123
1123
  C((i) => (this.logDebug(
1124
1124
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${a} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
@@ -1209,17 +1209,17 @@ function q(t) {
1209
1209
  A[T] = o[l][T];
1210
1210
  for (let T = 16; T < 80; ++T)
1211
1211
  A[T] = U(A[T - 3] ^ A[T - 8] ^ A[T - 14] ^ A[T - 16], 1);
1212
- let a = e[0], R = e[1], i = e[2], m = e[3], n = e[4];
1212
+ let a = e[0], R = e[1], i = e[2], m = e[3], L = e[4];
1213
1213
  for (let T = 0; T < 80; ++T) {
1214
- const D = Math.floor(T / 20), x = U(a, 5) + z(D, R, i, m) + n + E[D] + A[T] >>> 0;
1215
- n = m, m = i, i = U(R, 30) >>> 0, R = a, a = x;
1214
+ const D = Math.floor(T / 20), x = U(a, 5) + z(D, R, i, m) + L + E[D] + A[T] >>> 0;
1215
+ L = m, m = i, i = U(R, 30) >>> 0, R = a, a = x;
1216
1216
  }
1217
- e[0] = e[0] + a >>> 0, e[1] = e[1] + R >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + n >>> 0;
1217
+ e[0] = e[0] + a >>> 0, e[1] = e[1] + R >>> 0, e[2] = e[2] + i >>> 0, e[3] = e[3] + m >>> 0, e[4] = e[4] + L >>> 0;
1218
1218
  }
1219
1219
  return [e[0] >> 24 & 255, e[0] >> 16 & 255, e[0] >> 8 & 255, e[0] & 255, e[1] >> 24 & 255, e[1] >> 16 & 255, e[1] >> 8 & 255, e[1] & 255, e[2] >> 24 & 255, e[2] >> 16 & 255, e[2] >> 8 & 255, e[2] & 255, e[3] >> 24 & 255, e[3] >> 16 & 255, e[3] >> 8 & 255, e[3] & 255, e[4] >> 24 & 255, e[4] >> 16 & 255, e[4] >> 8 & 255, e[4] & 255];
1220
1220
  }
1221
1221
  const p = Z("v5", 80, q);
1222
- class ne extends M {
1222
+ class Le extends M {
1223
1223
  constructor(e, r = "POST", s = {}) {
1224
1224
  super();
1225
1225
  N(this, "apiUrl");
@@ -1258,18 +1258,18 @@ class ne extends M {
1258
1258
  I((a) => (this.logError(
1259
1259
  `FetchServiceFE <URL>: ${this.apiUrl} <HEADERS>: ${JSON.stringify(this.headers)} <PARAMS> ${JSON.stringify(e)} <BODY> ${o} <RESPONSE>: ${JSON.stringify(a)}`
1260
1260
  ), S.getInstance().setSubject(!1), P.getInstance().setSubject(
1261
- new L().get(a, s)
1261
+ new n().get(a, s)
1262
1262
  ), this.errorResponse ? O(this.errorResponse) : c))
1263
1263
  );
1264
1264
  }
1265
1265
  }
1266
1266
  const ee = process.env.ID_FRONT ?? "NOT_AVAILABLE";
1267
- class Le extends y {
1267
+ class ne extends y {
1268
1268
  constructor(e, r, s = {}) {
1269
1269
  super(s);
1270
1270
  N(this, "apiUrl");
1271
1271
  N(this, "method");
1272
- N(this, "errorCatalog", new L());
1272
+ N(this, "errorCatalog", new n());
1273
1273
  this.apiUrl = e, this.method = r ?? "POST";
1274
1274
  }
1275
1275
  errorHandler(e, r) {
@@ -1305,7 +1305,7 @@ class Le extends y {
1305
1305
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1306
1306
  this.formatParams(e)
1307
1307
  )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(A)} \x1B[33m`
1308
- ), new L().get("default", r);
1308
+ ), new n().get("default", r);
1309
1309
  }),
1310
1310
  C((A) => (this.logDebug(
1311
1311
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${this.apiUrl} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
@@ -1333,24 +1333,24 @@ class Le extends y {
1333
1333
  method: this.method,
1334
1334
  headers: m,
1335
1335
  body: this.method === "GET" ? null : JSON.stringify(e),
1336
- selector: (n) => n.json()
1336
+ selector: (L) => L.json()
1337
1337
  }).pipe(
1338
- I((n) => {
1339
- throw this.logError(JSON.stringify(n)), this.logError(
1338
+ I((L) => {
1339
+ throw this.logError(JSON.stringify(L)), this.logError(
1340
1340
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${i} \x1B[37m <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1341
1341
  m
1342
1342
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1343
1343
  this.formatParams(e)
1344
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(n)} \x1B[33m`
1345
- ), new L().get("default", r);
1344
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(L)} \x1B[33m`
1345
+ ), new n().get("default", r);
1346
1346
  }),
1347
- C((n) => (this.logDebug(
1347
+ C((L) => (this.logDebug(
1348
1348
  `FetchServiceBE \x1B[37m <URL>: \x1B[33m ${i} \x1B[37m \x1B[37m <METHOD>: \x1B[33m ${this.method} <UUID>: \x1B[33m ${r} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(
1349
1349
  m
1350
1350
  )} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(
1351
1351
  e
1352
- )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(n)} \x1B[33m`
1353
- ), O(n)))
1352
+ )} \x1B[37m <RESPONSE>: \x1B[33m ${JSON.stringify(L)} \x1B[33m`
1353
+ ), O(L)))
1354
1354
  )
1355
1355
  )
1356
1356
  );
@@ -1358,8 +1358,8 @@ class Le extends y {
1358
1358
  }
1359
1359
  export {
1360
1360
  Oe as A,
1361
- L as E,
1361
+ n as E,
1362
1362
  Ce as F,
1363
- ne as a,
1364
- Le as b
1363
+ Le as a,
1364
+ ne as b
1365
1365
  };
@@ -0,0 +1 @@
1
+ "use strict";const e={calculator:{"SCORE-CLIENTREJECTED-01":{title:"Cliente no aprobado",message:"Pronto tendremos una nueva oportunidad para gestionar la aprobación de tu crédito Macropay. En 90 días podemos volver a intentar."},"SCORE-CLIENTREJECTED-02":{title:"Por el momento no será posible continuar con tu solicitud porque ya has utilizado toda tu línea de crédito con nosotros.",message:"¡Pronto tendremos buenas noticias para ti!"},"CALCULATOR-MAPPING-01":{title:"Verifique si los nombres de los campos son correctos",message:"Error al asignar la solicitud a la entidad o DTO"},"CALCULATOR-MAPPING-02":{title:"Verificar fecha de pago",message:"Error al asignar la fecha de pago"},"CALCULATOR-MAPPING-03":{title:"Verificar datos de la solicitud",message:"Error al asignar los detalles de la solicitud"},"CALCULATOR-MAPPING-04":{title:"Verifique si los nombres de los campos son correctos",message:"Error al asignar entidad a DTO"},"CALCULATOR-BAD-REQUEST-01":{title:"Verifique si los nombres de los campos son correctos",message:"Error al validar el campo"},"CALCULATOR-BAD-REQUEST-02":{title:"Verificar campos obligatorios",message:"El campo es obligatorio"},"CALCULATOR-BAD-REQUEST-03":{title:"Verificar la pre-solicitud",message:"Folio no encontrado para la pre-solicitud"},"CALCULATOR-BAD-REQUEST-04":{title:"Verificar credenciales",message:"Sin permisos para acceder a los servicios de SAP"},"CALCULATOR-BAD-REQUEST-05":{title:"Verificar la ejecución",message:"La ejecución no existe en la base de datos."},"CALCULATOR-BAD-REQUEST-06":{title:"Verificar la ejecución",message:"No se encontraron amortizaciones para ahorrar"},"CALCULATOR-BAD-REQUEST-07":{title:"Consulta la información",message:"La pre-solicitud ya ha generado SL's"},"CALCULATOR-BAD-REQUEST-08":{title:"Verificar la URL del servicio",message:"Error al obtener existencias, servicio no encontrado"},"CALCULATOR-BAD-REQUEST-09":{title:"Servicio no encontrado",message:"Error al obtener existencias"},"CALCULATOR-BAD-REQUEST-10":{title:"Revisa la información",message:"Se requieren detalles de la solicitud"},"CALCULATOR-BAD-REQUEST-11":{title:"Verificar el servicio o las credenciales de SAP",message:"Error al obtener el token de seguridad. Inténtalo de nuevo"},"CALCULATOR-BAD-REQUEST-12":{title:"Verificar el estado o las credenciales del servicio SAP",message:"Error al obtener el token de seguridad. Inténtalo de nuevo"},"CALCULATOR-BAD-REQUEST-13":{title:"Revisar el ID de solicitud previa",message:"Campo no encontrado"},"CALCULATOR-BAD-REQUEST-14":{title:"Revisar los datos de la solicitud",message:"Error al guardar el carrito de compras"},"CALCULATOR-BAD-REQUEST-15":{title:"Revisar información detallada",message:"La solicitud debe tener al menos un detalle."},"CALCULATOR-BAD-REQUEST-16":{title:"Revisar la información del artículo",message:"El detalle debe tener al menos un elemento."},"CALCULATOR-BAD-REQUEST-17":{title:"Consultar la cantidad enviada",message:"La cantidad es mayor que el inventario disponible"},"CALCULATOR-BAD-REQUEST-18":{title:"Revisar la información del artículo",message:"El campo de inscripción es obligatorio"},"CALCULATOR-BAD-REQUEST-19":{title:"Debe haber un producto inscribible en el detalle de la solicitud.",message:"No se encontró ningún producto inscribible en el detalle de la solicitud"},"CALCULATOR-BAD-REQUEST-20":{title:"Revisar la información del artículo",message:"Solo se permite un producto inscribible en el detalle de la solicitud"},"CALCULATOR-BAD-REQUEST-22":{title:"Revisar cantidad en la solicitud",message:"La cantidad debe ser mayor que 0"},"CALCULATOR-BAD-REQUEST-23":{title:"Revisar límite de crédito en la solicitud",message:"El artículo seleccionado rebasa la línea de crédito disponible. Selecciona otro artículo e intenta nuevamente"},"CALCULATOR-BAD-REQUEST-24":{title:"Revisar la información del artículo",message:"Se requiere precio y cantidad."},"CALCULATOR-BAD-REQUEST-25":{title:"Revisar información del artículo: precio y cantidad.",message:"El precio y la cantidad deben ser mayores que 0."},"CALCULATOR-UNAUTHORIZED-01":{title:"Verificar credenciales",message:"Error al obtener existencias"},"CALCULATOR-UNAUTHORIZED-02":{title:"Verificar credenciales",message:"Sin permisos para acceder a los servicios de SAP"},"CALCULATOR-SERVICE-UNAVAILABLE-01":{title:"Verificar el estado del servicio",message:"Error al comunicarse con los servicios de SAP"},"CALCULATOR-SERVICE-UNAVAILABLE-02":{title:"Consultar el estado del servicio de jornada",message:"Error al actualizar la jornada"},"CALCULATOR-NOT-FOUND-01":{title:"Verificar parámetros enviados",message:"No se pueden obtener existencias para el material %s y el tipo %s"},"CALCULATOR-NOT-FOUND-02":{title:"Verificar la URL del servicio",message:"URL de servicios de SAP no encontrada"},"CALCULATOR-SAP-ERROR-01":{title:"Verificar el encabezado",message:"El encabezado %s es nulo o está vacío"},"CALCULATOR-SAP-ERROR-02":{title:"Verifique el encabezado 'Set-Cookie'",message:"El encabezado 'Set-Cookie' es nulo o está vacío"},"CALCULATOR-SAP-ERROR-03":{title:"Verificar el estado del servicio",message:"Error al consumir ODATA de marcas"},"CALCULATOR-SAP-ERROR-04":{title:"Verificar el estado del servicio",message:"Error al obtener existencias"},"CALCULATOR-BAD-REQUEST-26":{title:"Clave de tipo de producto no encontrada",message:"Revisar clave de tipo de producto enviada"},"CALCULATOR-BAD-REQUEST-27":{title:"No hay materiales para el tipo de crédito",message:"Revisar producto tipo de crédito enviado"},"CALCULATOR-BAD-REQUEST-28":{title:"Error al consumir el servicio de amortización de SAP",message:"Verificar el estado o las credenciales del servicio SAP"},"CALCULATOR-BAD-REQUEST-29":{title:"Error al obtener token de seguridad en SAP",message:"Solicitud para verificar credenciales o estado del servicio"},"CALCULATOR-BAD-REQUEST-30":{title:"SAP: No se determinarán plazos para el tipo de crédito",message:"Consulta el tipo de crédito"},"CALCULATOR-BAD-REQUEST-31":{title:"Enganche requerido",message:"El enganche es menor al requerido."},"CALCULATOR-BAD-REQUEST-34":{title:"Crédito Insuficiente",message:"Lamentamos informarte que tu línea de crédito no es suficiente para adquirir los productos de esta marca. Intenta con otra marca o regresa de nuevo en 90 días."},"CALCULATOR-BAD-REQUEST-35":{title:"No hay existencias",message:"Por el momento no pudimos encontrar productos para ti, intenta más tarde"},"SAVING_NOT_FOUND-01":{title:"Verificar la identificación de guardado",message:"Guardando no encontrado"},"SAVING-BAD-REQUEST-01":{title:"Verifica el monto a ahorrar",message:"El monto excede el saldo"},"SAVING-BAD-REQUEST-02":{title:"Verificar la identificación del cliente",message:"El cliente no coincide"},"SAVING-BAD-REQUEST-03":{title:"Completa el proceso de guardado actual",message:"El cliente tiene ahorros en proceso."},"SAVING-GENERIC-01":{title:"Contacta con el equipo de soporte",message:"Error de servicio"}}},a={helpdesk:{"PF-CANCEL-APPLICATION-GENERIC-ERROR-001":{title:"Error",message:"Por favor de revisar los datos enviados"},"SKIPFINGERPRINT-WITHOUT-PERMISSIONS-01":{title:"Clave de vendedor incorrecta",message:"Por favor de revisar los datos enviados"},"SKIPFINGERPRINT-WITHOUT-IDJOURNEY-01":{title:"Sin ID Journey",message:"Favor de contactar a soporte"},"SKIPFINGERPRINT-JOURNEY-UPDATE-ERROR-01":{title:"Error",message:"No se pudo actualizar la jornada por un error inesperado"},"SKIPFINGERPRINT-UNEXCEPTED-ERROR-01":{title:"Error",message:"Favor de contactar a soporte"},"SKIPFINGERPRINT-JOURNEY-DATANOTFOUND-02":{title:"El Id State es incorrecto",message:"Favor de verificar el id."},"SKIPFINGERPRINT-CLIENT-NOT-FOUND":{title:"Cliente no existe",message:"Por favor, revisa el CURP"},"DUPLICATE-KEY-DATABASE-POSTGRES":{title:"Id Journey duplicada",message:"Favor de verificar el Id."},"UNEXCEPTED-ERROR":{title:"UNEXCEPTED-ERROR",message:"Favor de contactar a soporte"}}},o={errors:{default:{title:"No pudimos cargar alguno de los datos solicitados.",message:"Si continúa apareciendo este mensaje por favor contacta a soporte."},"MP-001":{title:"Error",message:"Se esperaban parámetros"},"ERR-GENERAL-01":{title:"Error",message:"No se obtuvieron la configuración del sistema"},UnAuthorized:{title:"La sesión ha caducado",message:"Inicia sesión nuevamente"},ErrorGeneral:{title:"",message:"{{ message }}"},internalError:{title:"No pudimos cargar alguno de los datos solicitados.",message:"Valida tu conexión a internet y vuelve a intentarlo."},UserConfigError:{title:"Error en la configuración del usuario",message:"Es necesario asignar una clave de vendedor al usuario. Por favor comunícate con nuestra mesa de ayuda para solucionar el problema."},"JOURNEY-CANCEL-01":{title:"Solicitud cancelada",message:"La solicitud ha sido cancelada. NO ES NECESARIO comunicarse con Mesa de Ayuda."},...e,...a,"JOURNEY-INVALIDATEDATA-01":{title:"Por favor verifique su estructura y los valores de sus atributos.",message:"No se puede acceder a los valores de los atributos."},"JOURNEY-DATANOTFOUND-02":{title:"Póngase en contacto con el administrador, verifique el envío de idUser, verifique el estado de id que está enviando",message:"Error al intentar acceder a la máquina de estado, usuario no encontrado, el idState no es correcto."},"JOURNEY-FLOWEND-03":{title:"Por favor crea un nuevo flujo",message:"El flujo ha terminado"},"PF-ERROR-GENERIC":{title:"Póngase en contacto con el administrador",message:"Error general"},"JOURNEY-IDSTATEINCORRECT-04":{title:"Por favor verifique el idState que está enviando",message:"El idState no es correcto"},"JOURNEY-HEADERS-05":{title:"Por favor verifique su tipo de contenido o acepte por favor",message:"Los valores de sus encabezados Content-Type o Accept son incorrectos"},"INITIAL-INVALIDATEDATA-01":{title:"No se puede acceder al valor de keyStore",message:"Por favor verifique su estructura y los valores."},"INITIAL-DATANOTFOUND-02":{title:"Por favor verifique la clave del Almacén que envía, Verifique la clave del Vendedor que envía, Vendedor encontrado, pero no tiene centros asociados con él, Datos no encontrados encontrados por el SP sp_mpf_get_sucursal_caja por favor verifique su información",message:"Centro no encontrado, Vendedor no encontrado, No hay centros asociados al envío del vendedor, Datos no encontrados"},"INITIAL-HEADERS-03":{title:"Por favor verifique su tipo de contenido o acepte por favor",message:"Los valores de sus encabezados Content-Type o Accept son incorrectos"},"PERSONALDATA-INVALID-MEDIA-TYPE":{title:"Revisar el content type",message:"Media Type no admitido"},"PERSONALDATA-INVALID-CONTENT-TYPE":{title:"Revisar el content type",message:"Inaceptable"},"PERSONALDATA-INVALID-DATA-TYPE":{title:"Revisar los datos que se envían.",message:"Numero Interior es obligatorio"},"PERSONALDATA-UNKNOWN-REGISTER-01":{title:"Revisar el valor que se envía",message:"Cliente invalido"},"PERSONALDATA-UNKNOWN-REGISTER-02":{title:"Revisar el valor que se envía",message:"Código postal no válido"},"PERSONALDATA-BAD-REQUEST-01":{title:"por favor intenta con otro teléfono",message:"El número de teléfono no es un número válido."},"PERSONALDATA-BAD-REQUEST-02":{title:"Por favor intenta con otro teléfono",message:"El número de teléfono no es un número válido."},"PERSONALDATA-BAD-REQUEST-03":{title:"Por favor intenta con otro teléfono",message:"El número de teléfono no es un número válido."},"PERSONALDATA-BAD-REQUEST-04":{title:"Por favor intenta con otro teléfono",message:"El número de teléfono ya está asociado con un proceso iniciado"},"PERSONALDATA-BAD-REQUEST-05":{title:"Por favor intenta con otro teléfono",message:"El número de teléfono ya tiene un proceso iniciado"},"PERSONALDATA-BAD-REQUEST-06":{title:"Por favor intenta con otro curp.",message:"El curp es un curp no válido"},"PERSONALDATA-BAD-REQUEST-07":{title:"Por favor intenta con otro curp.",message:"El cliente tiene una solicitud rechazada."},"PERSONALDATA-BAD-REQUEST-08":{title:"Por favor intenta con otro curp.",message:"El cliente tiene una solicitud activa."},"PERSONALDATA-GENERIC-ERROR":{title:"Ocurrió un error interno",message:"Favor de contactar a soporte para brindarle una mayor atención"},"PERSONALDATA-ODATA-ERROR-01":{title:"Fallo el Odata con error controlado",message:"Por favor contacte con soporte"},"PERSONALDATA-UNKNOWN-FG-01":{title:"Tipo de solicitud previa no válida",message:"Por favor contacte con soporte"},"PERSONALDATA-CU-ERROR-01":{title:"Error interno",message:"Ocurrió un error al intentar guardar al cliente, por favor contáctese con soporte"},"PERSONALDATA-INVALID-RFC-01":{title:"INVALID-RFC",message:"El rfc es un rfc no válido"},"PERSONALDATA-BAD-REQUEST-09":{title:"La CURP ya está asociada a un proceso iniciado",message:"Por favor intenta con otro CURP"},"PERSONALDATA-BAD-REQUEST-10":{title:"La CURP ya tiene proceso iniciado",message:"Por favor intenta con otro CURP"},"PERSONALDATA-BAD-REQUEST-WHITE-LIST-11":{title:"Lista blanca devuelve nulo",message:"Por favor intenta con otro CURP"},"PF-BIOMETRIC-001":{title:"Campo inválido",message:"Se ha producido un error en la autenticación biométrica."},"PF-BIOMETRIC-002":{title:"No aceptable",message:"No aceptable"},"PF-BIOMETRIC-003":{title:"Campo no válido",message:"El campo 'idUser' es obligatorio."},"PF-BIOMETRIC-004":{title:"Se encontró datos en Financing2",message:"El cliente ha iniciado un proceso de financiación 2."},"PF-BIOMETRIC-007":{title:"Error en la validación de identidad",message:"La validación de los datos proporcionados no coinciden con la identidad del cliente, por favor verifique los datos del cliente."},"PF-VALIDATE-CLIENTTYPE-003":{title:"Saldo pendiente por pagar",message:"Notamos que tu historial presenta un saldo vencido, por esa razón, en este momento no será posible continuar con tu crédito."},"PF-VALIDATE-CLIENTTYPE-006":{title:"Rechazado",message:"No se le puede otorgar un crédito al cliente."},ERROR_LOCATION:{title:"Proceso bloqueado",message:"No es posible continuar el proceso debido a que Incode se ejecutó fuera de la sucursal Macropay."},"COMMUNICATIONS-INVALIDCODEEXCEPTION-001":{title:"Código incorrecto",message:"Código invalido, por favor de generar uno nuevo"},"COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-001":{title:"Clave de presolicitud no identificada",message:"Por favor vuelve a intentarlo o contacta al administrador"},"COMMUNICATIONS-PREAPPLICATIONNOTFOUNDEXCEPTION-002":{title:"Clave de presolicitud no identificada",message:"Por favor vuelve a intentarlo o contacta al administrador"},"COMMUNICATIONS-INVALIDEXPIRATIONDATEEXCEPTION-001":{title:"Código expirado",message:"Por favor de generar otro código"},"COMMUNICATIONS-INVALIDCODEEXCEPTION-002":{title:"El código ya fue canjeado.",message:"Código invalido, por favor de generar uno nuevo"},"COMMUNICATIONS-BLACKLISTEXCEPTION-001":{title:"Por favor de intentar con otro número telefónico",message:"El número telefónico se encuentra en listas negras"},"COMMUNICATIONS-INVALIDNUMBEREXCEPTION-003":{title:"Número de teléfono inválido",message:"Por favor de revisar el número de teléfono"},"COMMUNICATIONS-INVALIDNUMBEREXCEPTION-004":{title:"No se encontró el número de teléfono",message:"Por favor de revisar el número de teléfono"},"COMMUNICATIONS-INVALIDNUMBEREXCEPTION-005":{title:"El número ya está registrado",message:"Por favor ingresa otro número de teléfono"},"PERSONALREFERENCE-ACTIVECREDITSEXCEPTION-01":{title:"Intentar con otra referencia",message:"La referencia se encuentra con creditos activos"},"PERSONALREFERENCE-REFERENCESEXCEPTION-01":{title:"Intentar con otra referencia",message:"El número telefónico proporcionado se encuentra referido con más de 3 clientes"},"PERSONALREFERENCE-BLACKLISTEXCEPTION-01":{title:"Intentar con otra referencia",message:"El número telefónico se encuentra en listas negras"},"PERSONALREFERENCE-INVALIDPHONENUMBEREXCEPTION-01":{title:"Teléfono invalido",message:"Ingrese un número valido."},"PERSONALREFERENCE-DELETEREFERENCEEXCEPTION-001":{title:"Eliminar excepción de referencia",message:"Ocurrió un error al eliminar la referencia."},"PERSONALREFERENCE-INVALIDREFERENCESRELATIONSHIPSCOUNTEXCEPTION-001":{title:"Referencias no válidas",message:"El cliente debe tener al menos una referencia con parentesco directo"},"PERSONALREFERENCE-INVALIDREFERENCESPARENTCOUNTEXCEPTION-001":{title:"Referencias no válidas",message:"No se puede tener de referencia más de un Padre o Madre a la vez"},"PERSONALREFERENCE-SELFREFERENCEEXCEPTION-001":{title:"Referencias no válidas",message:"No se puede usar los datos del cliente como referencia"},"SALES-SUMMARY-GENERIC-ERROR-001":{title:"Ocurrió un error resumen de venta",message:"Por favor contactar con el administrador"},"PF-SALES-SUMMARY-GENERIC-ERROR-001":{title:"Error al cerrar la venta",message:"Por favor de revisar los datos enviados"},"SALES-SUMMARY-ERROR-005":{title:"Stock insuficiente",message:"Los productos seleccionados en accesorios no cuentan con unidades disponibles en stock"},"PF-CANCEL-APPLICATIONS-INVALIDCATALOGUEIDEXCEPTION-001":{title:"Error al cancelar la solicitud",message:"Por favor comunícate con mesa de ayuda"},"PF-CANCEL-APPLICATION-GENERIC-ERROR-001":{title:"Error al cancelar la solicitud",message:"Por favor comunícate con mesa de ayuda"}}};exports.translation=o;
@@ -284,8 +284,8 @@ const e = {
284
284
  message: "Es necesario asignar una clave de vendedor al usuario. Por favor comunícate con nuestra mesa de ayuda para solucionar el problema."
285
285
  },
286
286
  "JOURNEY-CANCEL-01": {
287
- title: "Pre-solicitud o Solicitud cancelada",
288
- message: "La PR o SL ha sido cancelada. Por favor comunícate con nuestra mesa de ayuda."
287
+ title: "Solicitud cancelada",
288
+ message: "La solicitud ha sido cancelada. NO ES NECESARIO comunicarse con Mesa de Ayuda."
289
289
  },
290
290
  //Calculator & Apartadito
291
291
  ...e,
@@ -0,0 +1 @@
1
+ "use strict";var j=Object.defineProperty;var o=(n,t,e)=>t in n?j(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var u=(n,t,e)=>o(n,typeof t!="symbol"?t+"":t,e);const i=require("rxjs");class a extends i.Observable{constructor(){super(e=>{this.subject$.subscribe(e)});u(this,"subject$",new i.Subject)}setSubject(e){this.subject$.next(e)}completeSubject(){this.subject$.complete()}unsubscribeSubject(){return this.subject$.unsubscribe(),this.subject$=new i.Subject,this.subject$}}const s=class s extends a{constructor(){super()}static getInstance(){return s.instance||(s.instance=new s),s.instance}};u(s,"instance");let r=s;const c=class c extends a{constructor(){super()}static getInstance(){return c.instance||(c.instance=new c),c.instance}};u(c,"instance");let b=c;exports.LoadingHandler=b;exports.MessageHandler=r;exports.RxSubjectManager=a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Z=require("./custom-redis-BaTLH6jE.cjs"),$=require("./stringify-BN6t_WDt.cjs");let w;const q=new Uint8Array(16);function G(){if(!w&&(w=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!w))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(q)}const H=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),E={randomUUID:H};function L(r,s,i){if(E.randomUUID&&!r)return E.randomUUID();r=r||{};const c=r.random||(r.rng||G)();return c[6]=c[6]&15|64,c[8]=c[8]&63|128,$.unsafeStringify(c)}const C=process.env.PREFIX_LOGIN,b=process.env.TIMEOUT_SESSION_MINUTES,A={baseKeyPrefix:`${C}:`,userKeyPrefix:"user:",accountKeyPrefix:"account:",accountByUserIdPrefix:"account:user:",sessionKeyPrefix:"session:",sessionByUserIdPrefix:"session:user:",userByEmailKeyPrefix:"user:email:",verificationKeyPrefix:"verification:",expire:b*60},z=r=>{for(const s in r)return!1;return!0},J=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,Q=r=>r&&J.test(r)&&!Number.isNaN(Date.parse(r));function W(r={expire:b*60}){const s=Z.CustomRedis,i={...A,...r},c=i.baseKeyPrefix||"",B=c+i.userKeyPrefix,T=c+i.userByEmailKeyPrefix,k=c+i.accountKeyPrefix,R=c+i.accountByUserIdPrefix,j=c+i.sessionKeyPrefix,D=c+i.sessionByUserIdPrefix,V=c+i.verificationKeyPrefix,x=e=>T+e,U=e=>B+e,g=e=>k+e,y=e=>R+e,K=(e,t)=>`${t}:${e}`,p=e=>j+e,f=e=>D+e,I=e=>V+e,l=async(e,t)=>{const n=Object.entries(t).reduce((o,[P,a])=>(o[P]=a instanceof Date?a.toISOString():a,o),{});await s.hset(e,n),await s.expire(e,i.expire)},d=async e=>{const t=await s.hgetall(e);return!t||z(t)?null:Object.entries(t).reduce((o,[P,a])=>(o[P]=Q(a)?new Date(a):a,o),{})},S=async(e,t)=>(await l(U(e),t),t.email&&await s.set(x(t.email),e,"EX",i.expire),t),u=async e=>{const t=await d(U(e));return t?{...t}:null},N=async(e,t)=>{const n=g(e);await l(n,t),await s.set(y(t.userId),n,"EX",i.expire)},h=async e=>{const t=await d(g(e));return t?{...t}:null},_=async e=>{const t=g(e),n=await d(t);if(!n)return null;await s.hdel(t),await s.del(y(n.userId))},O=async(e,t)=>{const n=p(e);return await l(n,t),await s.set(f(t.userId),n,"EX",i.expire),t},m=async e=>{const t=await d(p(e));return t?{id:t.id,...t}:null},M=async e=>{const t=await m(e);if(!t)return null;const n=p(e);await s.del(n),await s.del(f(t.userId))},X=async(e,t)=>{const n=I(e);return await l(n,t),t},v=async e=>{const t=I(e),n=await d(t);return n?{identifier:n.identifier,...n}:null},F=async e=>{const t=I(e);await s.del(t)};return{async createUser(e){const t=L();return await S(t,{...e,id:t})},getUser:u,async getUserByEmail(e){const t=await s.get(x(e));return t?await u(t):null},async getUserByAccount({providerAccountId:e,provider:t}){const n=await h(K(e,t));return n?await u(n.userId):null},async updateUser(e){const t=e.id,n=await u(t);return await S(t,{...n,...e})},async deleteUser(e){const t=await u(e);if(!t)return null;const n=await s.get(y(e)),o=await s.get(f(e));await s.del(x(t.email),y(e),f(e)),o&&await s.del(o),n&&await s.del(n),await s.del(U(e))},async linkAccount(e){const t=K(e.providerAccountId,e.provider);return await N(t,{...e,id:t})},async unlinkAccount({providerAccountId:e,provider:t}){const n=K(e,t);await _(n)},async createSession(e){const t=e.sessionToken;return await O(t,{...e,id:t})},async getSessionAndUser(e){const n=await m(e);if(!n)return null;const o=await u(n.userId);return o?{session:n,user:o}:null},async updateSession(e){const t=e.sessionToken,n=await m(t);return n?await O(t,{...n,...e}):null},deleteSession:M,async createVerificationToken(e){const t=e.identifier;return await X(t,e),e},async useVerificationToken(e){const t=e.identifier,n=await v(t);return!n||e.token!==n.token?null:(await F(t),n)}}}exports.IORedisAdapter=W;exports.defaultOptions=A;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./fetch-service-parent-be-1E2rjJep.cjs"),r=require("./loading-handler-CVkAHN_A.cjs"),a=require("./service-token-CkqXJlgW.cjs");exports.ApiMiddleware=e.ApiMiddleware;exports.ErrorCatalog=e.ErrorCatalog;exports.FetchServiceBE=e.FetchServiceBE;exports.FetchServiceFE=e.FetchServiceFE;exports.FetchServiceParentBE=e.FetchServiceParentBE;exports.LoadingHandler=r.LoadingHandler;exports.MessageHandler=r.MessageHandler;exports.RxSubjectManager=r.RxSubjectManager;exports.ServiceToken=a.ServiceToken;
@@ -0,0 +1 @@
1
+ "use strict";var S=Object.defineProperty;var d=(n,r,t)=>r in n?S(n,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[r]=t;var a=(n,r,t)=>d(n,typeof r!="symbol"?r+"":r,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./mp-front-cli-encrypter.cjs.js"),p=require("./custom-redis-BaTLH6jE.cjs"),E=process.env.TIMEOUT_SESSION_MINUTES;var y=(n=>(n.NOT_REFRESH="NOT_REFRESH",n.REFRESH="REFRESH",n))(y||{});class C extends R.CustomEncrypter{constructor(){super(...arguments);a(this,"initClient",p.CustomRedis)}getRootNode(t){return this.initClient.get(t)}async getEntryPoint(t){try{return await this.getRootNode(t)}catch{throw new Error("Not found entry point")}}setEntryPoint(t,e,i){const s=typeof e=="string"?e:JSON.stringify(e);this.initClient.set(t,s,"EX",60*i)}async getRedisState(t,e){const i=`${t}:${this.generateSHA(e)}`,s=await this.getEntryPoint(i),c=await this.isEncrypted(s)?await this.decrypt(s??""):JSON.parse(s),o=Number(c==null?void 0:c.expires_in);return o&&this.ttl(i,o*60),{sha:i,data:c}}async deleteRedisState(t,e){const i=`${t}:${this.generateSHA(e)}`;this.initClient.del(i)}async setRedisState({idApi:t,idData:e,body:i,expire:s,encrypted:l=!1,refresh:c="REFRESH"}){const o=`${t}:${this.generateSHA(e)}`,h={expires_in:c==="REFRESH"?s:0,...i};if(l){const u=await this.encrypt(h);return this.setEntryPoint(o,u,s),o}return this.setEntryPoint(o,h,s),o}async statusHost(){return new Promise((t,e)=>{this.initClient.on("error",i=>{this.killRedis(),e(i)}),this.initClient.on("connect",()=>{t("success")})})}killRedis(){this.initClient.disconnect()}deleteKey(t){this.initClient.del(t)}ttl(t,e){this.initClient.expire(t,e)}simpleGet(t){return this.ttl(t,E*60),this.initClient.get(t)}simpleHGet(t,e){return this.ttl(t,E*60),this.initClient.hget(t,e)}simpleHSet(t,e,i){return this.initClient.hset(t,e,i)}simpleHGetAll(t){return this.initClient.hgetall(t)}}exports.CustomCache=C;exports.RefreshState=y;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./fetch-service-parent-be-1E2rjJep.cjs"),r=require("./loading-handler-CVkAHN_A.cjs"),a=require("./service-token-CkqXJlgW.cjs");exports.ApiMiddleware=e.ApiMiddleware;exports.ErrorCatalog=e.ErrorCatalog;exports.FetchServiceBE=e.FetchServiceBE;exports.FetchServiceFE=e.FetchServiceFE;exports.FetchServiceParentBE=e.FetchServiceParentBE;exports.LoadingHandler=r.LoadingHandler;exports.MessageHandler=r.MessageHandler;exports.RxSubjectManager=r.RxSubjectManager;exports.ServiceToken=a.ServiceToken;
@@ -0,0 +1,27 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const up=require("./mp-front-cli-logger.cjs.js");var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},te={exports:{}};/**
2
+ * @license
3
+ * Lodash <https://lodash.com/>
4
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
+ * Released under MIT license <https://lodash.com/license>
6
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
+ */var fp=te.exports,uo;function op(){return uo||(uo=1,function(ee,en){(function(){var l,Ct="4.17.21",jn=200,Ri="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",an="Expected a function",oo="Invalid `variable` option passed into `_.template`",nr="__lodash_hash_undefined__",lo=500,re="__lodash_placeholder__",$n=1,yi=2,st=4,at=1,ie=2,xn=1,ct=2,Ei=4,On=8,Ot=16,bn=32,bt=64,Wn=128,Wt=256,tr=512,so=30,ao="...",co=800,ho=16,Ti=1,go=2,_o=3,ue=1/0,ht=9007199254740991,po=17976931348623157e292,fe=NaN,Tn=4294967295,vo=Tn-1,wo=Tn>>>1,xo=[["ary",Wn],["bind",xn],["bindKey",ct],["curry",On],["curryRight",Ot],["flip",tr],["partial",bn],["partialRight",bt],["rearg",Wt]],gt="[object Arguments]",oe="[object Array]",Ao="[object AsyncFunction]",Pt="[object Boolean]",Bt="[object Date]",So="[object DOMException]",le="[object Error]",se="[object Function]",Li="[object GeneratorFunction]",An="[object Map]",Ft="[object Number]",Io="[object Null]",Pn="[object Object]",mi="[object Promise]",Ro="[object Proxy]",Mt="[object RegExp]",Sn="[object Set]",Dt="[object String]",ae="[object Symbol]",yo="[object Undefined]",Ut="[object WeakMap]",Eo="[object WeakSet]",Nt="[object ArrayBuffer]",_t="[object DataView]",er="[object Float32Array]",rr="[object Float64Array]",ir="[object Int8Array]",ur="[object Int16Array]",fr="[object Int32Array]",or="[object Uint8Array]",lr="[object Uint8ClampedArray]",sr="[object Uint16Array]",ar="[object Uint32Array]",To=/\b__p \+= '';/g,Lo=/\b(__p \+=) '' \+/g,mo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ci=/&(?:amp|lt|gt|quot|#39);/g,Oi=/[&<>"']/g,Co=RegExp(Ci.source),Oo=RegExp(Oi.source),bo=/<%-([\s\S]+?)%>/g,Wo=/<%([\s\S]+?)%>/g,bi=/<%=([\s\S]+?)%>/g,Po=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bo=/^\w*$/,Fo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cr=/[\\^$.*+?()[\]{}|]/g,Mo=RegExp(cr.source),hr=/^\s+/,Do=/\s/,Uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,No=/\{\n\/\* \[wrapped with (.+)\] \*/,Go=/,? & /,Ho=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qo=/[()=,{}\[\]\/\s]/,$o=/\\(\\)?/g,Ko=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wi=/\w*$/,zo=/^[-+]0x[0-9a-f]+$/i,Zo=/^0b[01]+$/i,Yo=/^\[object .+?Constructor\]$/,Jo=/^0o[0-7]+$/i,Xo=/^(?:0|[1-9]\d*)$/,Qo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,Vo=/['\n\r\u2028\u2029\\]/g,he="\\ud800-\\udfff",ko="\\u0300-\\u036f",jo="\\ufe20-\\ufe2f",nl="\\u20d0-\\u20ff",Pi=ko+jo+nl,Bi="\\u2700-\\u27bf",Fi="a-z\\xdf-\\xf6\\xf8-\\xff",tl="\\xac\\xb1\\xd7\\xf7",el="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rl="\\u2000-\\u206f",il=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mi="A-Z\\xc0-\\xd6\\xd8-\\xde",Di="\\ufe0e\\ufe0f",Ui=tl+el+rl+il,gr="['’]",ul="["+he+"]",Ni="["+Ui+"]",ge="["+Pi+"]",Gi="\\d+",fl="["+Bi+"]",Hi="["+Fi+"]",qi="[^"+he+Ui+Gi+Bi+Fi+Mi+"]",_r="\\ud83c[\\udffb-\\udfff]",ol="(?:"+ge+"|"+_r+")",$i="[^"+he+"]",pr="(?:\\ud83c[\\udde6-\\uddff]){2}",vr="[\\ud800-\\udbff][\\udc00-\\udfff]",pt="["+Mi+"]",Ki="\\u200d",zi="(?:"+Hi+"|"+qi+")",ll="(?:"+pt+"|"+qi+")",Zi="(?:"+gr+"(?:d|ll|m|re|s|t|ve))?",Yi="(?:"+gr+"(?:D|LL|M|RE|S|T|VE))?",Ji=ol+"?",Xi="["+Di+"]?",sl="(?:"+Ki+"(?:"+[$i,pr,vr].join("|")+")"+Xi+Ji+")*",al="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Xi+Ji+sl,hl="(?:"+[fl,pr,vr].join("|")+")"+Qi,gl="(?:"+[$i+ge+"?",ge,pr,vr,ul].join("|")+")",_l=RegExp(gr,"g"),pl=RegExp(ge,"g"),dr=RegExp(_r+"(?="+_r+")|"+gl+Qi,"g"),vl=RegExp([pt+"?"+Hi+"+"+Zi+"(?="+[Ni,pt,"$"].join("|")+")",ll+"+"+Yi+"(?="+[Ni,pt+zi,"$"].join("|")+")",pt+"?"+zi+"+"+Zi,pt+"+"+Yi,cl,al,Gi,hl].join("|"),"g"),dl=RegExp("["+Ki+he+Pi+Di+"]"),wl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Al=-1,M={};M[er]=M[rr]=M[ir]=M[ur]=M[fr]=M[or]=M[lr]=M[sr]=M[ar]=!0,M[gt]=M[oe]=M[Nt]=M[Pt]=M[_t]=M[Bt]=M[le]=M[se]=M[An]=M[Ft]=M[Pn]=M[Mt]=M[Sn]=M[Dt]=M[Ut]=!1;var F={};F[gt]=F[oe]=F[Nt]=F[_t]=F[Pt]=F[Bt]=F[er]=F[rr]=F[ir]=F[ur]=F[fr]=F[An]=F[Ft]=F[Pn]=F[Mt]=F[Sn]=F[Dt]=F[ae]=F[or]=F[lr]=F[sr]=F[ar]=!0,F[le]=F[se]=F[Ut]=!1;var Sl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Il={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Rl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},yl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},El=parseFloat,Tl=parseInt,Vi=typeof je=="object"&&je&&je.Object===Object&&je,Ll=typeof self=="object"&&self&&self.Object===Object&&self,z=Vi||Ll||Function("return this")(),wr=en&&!en.nodeType&&en,nt=wr&&!0&&ee&&!ee.nodeType&&ee,ki=nt&&nt.exports===wr,xr=ki&&Vi.process,cn=function(){try{var a=nt&&nt.require&&nt.require("util").types;return a||xr&&xr.binding&&xr.binding("util")}catch{}}(),ji=cn&&cn.isArrayBuffer,nu=cn&&cn.isDate,tu=cn&&cn.isMap,eu=cn&&cn.isRegExp,ru=cn&&cn.isSet,iu=cn&&cn.isTypedArray;function rn(a,g,h){switch(h.length){case 0:return a.call(g);case 1:return a.call(g,h[0]);case 2:return a.call(g,h[0],h[1]);case 3:return a.call(g,h[0],h[1],h[2])}return a.apply(g,h)}function ml(a,g,h,w){for(var R=-1,b=a==null?0:a.length;++R<b;){var q=a[R];g(w,q,h(q),a)}return w}function hn(a,g){for(var h=-1,w=a==null?0:a.length;++h<w&&g(a[h],h,a)!==!1;);return a}function Cl(a,g){for(var h=a==null?0:a.length;h--&&g(a[h],h,a)!==!1;);return a}function uu(a,g){for(var h=-1,w=a==null?0:a.length;++h<w;)if(!g(a[h],h,a))return!1;return!0}function Kn(a,g){for(var h=-1,w=a==null?0:a.length,R=0,b=[];++h<w;){var q=a[h];g(q,h,a)&&(b[R++]=q)}return b}function _e(a,g){var h=a==null?0:a.length;return!!h&&vt(a,g,0)>-1}function Ar(a,g,h){for(var w=-1,R=a==null?0:a.length;++w<R;)if(h(g,a[w]))return!0;return!1}function D(a,g){for(var h=-1,w=a==null?0:a.length,R=Array(w);++h<w;)R[h]=g(a[h],h,a);return R}function zn(a,g){for(var h=-1,w=g.length,R=a.length;++h<w;)a[R+h]=g[h];return a}function Sr(a,g,h,w){var R=-1,b=a==null?0:a.length;for(w&&b&&(h=a[++R]);++R<b;)h=g(h,a[R],R,a);return h}function Ol(a,g,h,w){var R=a==null?0:a.length;for(w&&R&&(h=a[--R]);R--;)h=g(h,a[R],R,a);return h}function Ir(a,g){for(var h=-1,w=a==null?0:a.length;++h<w;)if(g(a[h],h,a))return!0;return!1}var bl=Rr("length");function Wl(a){return a.split("")}function Pl(a){return a.match(Ho)||[]}function fu(a,g,h){var w;return h(a,function(R,b,q){if(g(R,b,q))return w=b,!1}),w}function pe(a,g,h,w){for(var R=a.length,b=h+(w?1:-1);w?b--:++b<R;)if(g(a[b],b,a))return b;return-1}function vt(a,g,h){return g===g?zl(a,g,h):pe(a,ou,h)}function Bl(a,g,h,w){for(var R=h-1,b=a.length;++R<b;)if(w(a[R],g))return R;return-1}function ou(a){return a!==a}function lu(a,g){var h=a==null?0:a.length;return h?Er(a,g)/h:fe}function Rr(a){return function(g){return g==null?l:g[a]}}function yr(a){return function(g){return a==null?l:a[g]}}function su(a,g,h,w,R){return R(a,function(b,q,B){h=w?(w=!1,b):g(h,b,q,B)}),h}function Fl(a,g){var h=a.length;for(a.sort(g);h--;)a[h]=a[h].value;return a}function Er(a,g){for(var h,w=-1,R=a.length;++w<R;){var b=g(a[w]);b!==l&&(h=h===l?b:h+b)}return h}function Tr(a,g){for(var h=-1,w=Array(a);++h<a;)w[h]=g(h);return w}function Ml(a,g){return D(g,function(h){return[h,a[h]]})}function au(a){return a&&a.slice(0,_u(a)+1).replace(hr,"")}function un(a){return function(g){return a(g)}}function Lr(a,g){return D(g,function(h){return a[h]})}function Gt(a,g){return a.has(g)}function cu(a,g){for(var h=-1,w=a.length;++h<w&&vt(g,a[h],0)>-1;);return h}function hu(a,g){for(var h=a.length;h--&&vt(g,a[h],0)>-1;);return h}function Dl(a,g){for(var h=a.length,w=0;h--;)a[h]===g&&++w;return w}var Ul=yr(Sl),Nl=yr(Il);function Gl(a){return"\\"+yl[a]}function Hl(a,g){return a==null?l:a[g]}function dt(a){return dl.test(a)}function ql(a){return wl.test(a)}function $l(a){for(var g,h=[];!(g=a.next()).done;)h.push(g.value);return h}function mr(a){var g=-1,h=Array(a.size);return a.forEach(function(w,R){h[++g]=[R,w]}),h}function gu(a,g){return function(h){return a(g(h))}}function Zn(a,g){for(var h=-1,w=a.length,R=0,b=[];++h<w;){var q=a[h];(q===g||q===re)&&(a[h]=re,b[R++]=h)}return b}function ve(a){var g=-1,h=Array(a.size);return a.forEach(function(w){h[++g]=w}),h}function Kl(a){var g=-1,h=Array(a.size);return a.forEach(function(w){h[++g]=[w,w]}),h}function zl(a,g,h){for(var w=h-1,R=a.length;++w<R;)if(a[w]===g)return w;return-1}function Zl(a,g,h){for(var w=h+1;w--;)if(a[w]===g)return w;return w}function wt(a){return dt(a)?Jl(a):bl(a)}function In(a){return dt(a)?Xl(a):Wl(a)}function _u(a){for(var g=a.length;g--&&Do.test(a.charAt(g)););return g}var Yl=yr(Rl);function Jl(a){for(var g=dr.lastIndex=0;dr.test(a);)++g;return g}function Xl(a){return a.match(dr)||[]}function Ql(a){return a.match(vl)||[]}var Vl=function a(g){g=g==null?z:xt.defaults(z.Object(),g,xt.pick(z,xl));var h=g.Array,w=g.Date,R=g.Error,b=g.Function,q=g.Math,B=g.Object,Cr=g.RegExp,kl=g.String,gn=g.TypeError,de=h.prototype,jl=b.prototype,At=B.prototype,we=g["__core-js_shared__"],xe=jl.toString,P=At.hasOwnProperty,ns=0,pu=function(){var n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Ae=At.toString,ts=xe.call(B),es=z._,rs=Cr("^"+xe.call(P).replace(cr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Se=ki?g.Buffer:l,Yn=g.Symbol,Ie=g.Uint8Array,vu=Se?Se.allocUnsafe:l,Re=gu(B.getPrototypeOf,B),du=B.create,wu=At.propertyIsEnumerable,ye=de.splice,xu=Yn?Yn.isConcatSpreadable:l,Ht=Yn?Yn.iterator:l,tt=Yn?Yn.toStringTag:l,Ee=function(){try{var n=ft(B,"defineProperty");return n({},"",{}),n}catch{}}(),is=g.clearTimeout!==z.clearTimeout&&g.clearTimeout,us=w&&w.now!==z.Date.now&&w.now,fs=g.setTimeout!==z.setTimeout&&g.setTimeout,Te=q.ceil,Le=q.floor,Or=B.getOwnPropertySymbols,os=Se?Se.isBuffer:l,Au=g.isFinite,ls=de.join,ss=gu(B.keys,B),$=q.max,Y=q.min,as=w.now,cs=g.parseInt,Su=q.random,hs=de.reverse,br=ft(g,"DataView"),qt=ft(g,"Map"),Wr=ft(g,"Promise"),St=ft(g,"Set"),$t=ft(g,"WeakMap"),Kt=ft(B,"create"),me=$t&&new $t,It={},gs=ot(br),_s=ot(qt),ps=ot(Wr),vs=ot(St),ds=ot($t),Ce=Yn?Yn.prototype:l,zt=Ce?Ce.valueOf:l,Iu=Ce?Ce.toString:l;function u(n){if(N(n)&&!y(n)&&!(n instanceof C)){if(n instanceof _n)return n;if(P.call(n,"__wrapped__"))return yf(n)}return new _n(n)}var Rt=function(){function n(){}return function(t){if(!U(t))return{};if(du)return du(t);n.prototype=t;var e=new n;return n.prototype=l,e}}();function Oe(){}function _n(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=l}u.templateSettings={escape:bo,evaluate:Wo,interpolate:bi,variable:"",imports:{_:u}},u.prototype=Oe.prototype,u.prototype.constructor=u,_n.prototype=Rt(Oe.prototype),_n.prototype.constructor=_n;function C(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Tn,this.__views__=[]}function ws(){var n=new C(this.__wrapped__);return n.__actions__=k(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=k(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=k(this.__views__),n}function xs(){if(this.__filtered__){var n=new C(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function As(){var n=this.__wrapped__.value(),t=this.__dir__,e=y(n),r=t<0,i=e?n.length:0,f=Wa(0,i,this.__views__),o=f.start,s=f.end,c=s-o,_=r?s:o-1,p=this.__iteratees__,v=p.length,d=0,x=Y(c,this.__takeCount__);if(!e||!r&&i==c&&x==c)return Zu(n,this.__actions__);var S=[];n:for(;c--&&d<x;){_+=t;for(var T=-1,I=n[_];++T<v;){var m=p[T],O=m.iteratee,ln=m.type,V=O(I);if(ln==go)I=V;else if(!V){if(ln==Ti)continue n;break n}}S[d++]=I}return S}C.prototype=Rt(Oe.prototype),C.prototype.constructor=C;function et(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Ss(){this.__data__=Kt?Kt(null):{},this.size=0}function Is(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function Rs(n){var t=this.__data__;if(Kt){var e=t[n];return e===nr?l:e}return P.call(t,n)?t[n]:l}function ys(n){var t=this.__data__;return Kt?t[n]!==l:P.call(t,n)}function Es(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=Kt&&t===l?nr:t,this}et.prototype.clear=Ss,et.prototype.delete=Is,et.prototype.get=Rs,et.prototype.has=ys,et.prototype.set=Es;function Bn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Ts(){this.__data__=[],this.size=0}function Ls(n){var t=this.__data__,e=be(t,n);if(e<0)return!1;var r=t.length-1;return e==r?t.pop():ye.call(t,e,1),--this.size,!0}function ms(n){var t=this.__data__,e=be(t,n);return e<0?l:t[e][1]}function Cs(n){return be(this.__data__,n)>-1}function Os(n,t){var e=this.__data__,r=be(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this}Bn.prototype.clear=Ts,Bn.prototype.delete=Ls,Bn.prototype.get=ms,Bn.prototype.has=Cs,Bn.prototype.set=Os;function Fn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function bs(){this.size=0,this.__data__={hash:new et,map:new(qt||Bn),string:new et}}function Ws(n){var t=$e(this,n).delete(n);return this.size-=t?1:0,t}function Ps(n){return $e(this,n).get(n)}function Bs(n){return $e(this,n).has(n)}function Fs(n,t){var e=$e(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this}Fn.prototype.clear=bs,Fn.prototype.delete=Ws,Fn.prototype.get=Ps,Fn.prototype.has=Bs,Fn.prototype.set=Fs;function rt(n){var t=-1,e=n==null?0:n.length;for(this.__data__=new Fn;++t<e;)this.add(n[t])}function Ms(n){return this.__data__.set(n,nr),this}function Ds(n){return this.__data__.has(n)}rt.prototype.add=rt.prototype.push=Ms,rt.prototype.has=Ds;function Rn(n){var t=this.__data__=new Bn(n);this.size=t.size}function Us(){this.__data__=new Bn,this.size=0}function Ns(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e}function Gs(n){return this.__data__.get(n)}function Hs(n){return this.__data__.has(n)}function qs(n,t){var e=this.__data__;if(e instanceof Bn){var r=e.__data__;if(!qt||r.length<jn-1)return r.push([n,t]),this.size=++e.size,this;e=this.__data__=new Fn(r)}return e.set(n,t),this.size=e.size,this}Rn.prototype.clear=Us,Rn.prototype.delete=Ns,Rn.prototype.get=Gs,Rn.prototype.has=Hs,Rn.prototype.set=qs;function Ru(n,t){var e=y(n),r=!e&&lt(n),i=!e&&!r&&kn(n),f=!e&&!r&&!i&&Lt(n),o=e||r||i||f,s=o?Tr(n.length,kl):[],c=s.length;for(var _ in n)(t||P.call(n,_))&&!(o&&(_=="length"||i&&(_=="offset"||_=="parent")||f&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Nn(_,c)))&&s.push(_);return s}function yu(n){var t=n.length;return t?n[$r(0,t-1)]:l}function $s(n,t){return Ke(k(n),it(t,0,n.length))}function Ks(n){return Ke(k(n))}function Pr(n,t,e){(e!==l&&!yn(n[t],e)||e===l&&!(t in n))&&Mn(n,t,e)}function Zt(n,t,e){var r=n[t];(!(P.call(n,t)&&yn(r,e))||e===l&&!(t in n))&&Mn(n,t,e)}function be(n,t){for(var e=n.length;e--;)if(yn(n[e][0],t))return e;return-1}function zs(n,t,e,r){return Jn(n,function(i,f,o){t(r,i,e(i),o)}),r}function Eu(n,t){return n&&mn(t,K(t),n)}function Zs(n,t){return n&&mn(t,nn(t),n)}function Mn(n,t,e){t=="__proto__"&&Ee?Ee(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}function Br(n,t){for(var e=-1,r=t.length,i=h(r),f=n==null;++e<r;)i[e]=f?l:_i(n,t[e]);return i}function it(n,t,e){return n===n&&(e!==l&&(n=n<=e?n:e),t!==l&&(n=n>=t?n:t)),n}function pn(n,t,e,r,i,f){var o,s=t&$n,c=t&yi,_=t&st;if(e&&(o=i?e(n,r,i,f):e(n)),o!==l)return o;if(!U(n))return n;var p=y(n);if(p){if(o=Ba(n),!s)return k(n,o)}else{var v=J(n),d=v==se||v==Li;if(kn(n))return Xu(n,s);if(v==Pn||v==gt||d&&!i){if(o=c||d?{}:pf(n),!s)return c?Ra(n,Zs(o,n)):Ia(n,Eu(o,n))}else{if(!F[v])return i?n:{};o=Fa(n,v,s)}}f||(f=new Rn);var x=f.get(n);if(x)return x;f.set(n,o),Kf(n)?n.forEach(function(I){o.add(pn(I,t,e,I,n,f))}):qf(n)&&n.forEach(function(I,m){o.set(m,pn(I,t,e,m,n,f))});var S=_?c?ni:jr:c?nn:K,T=p?l:S(n);return hn(T||n,function(I,m){T&&(m=I,I=n[m]),Zt(o,m,pn(I,t,e,m,n,f))}),o}function Ys(n){var t=K(n);return function(e){return Tu(e,n,t)}}function Tu(n,t,e){var r=e.length;if(n==null)return!r;for(n=B(n);r--;){var i=e[r],f=t[i],o=n[i];if(o===l&&!(i in n)||!f(o))return!1}return!0}function Lu(n,t,e){if(typeof n!="function")throw new gn(an);return jt(function(){n.apply(l,e)},t)}function Yt(n,t,e,r){var i=-1,f=_e,o=!0,s=n.length,c=[],_=t.length;if(!s)return c;e&&(t=D(t,un(e))),r?(f=Ar,o=!1):t.length>=jn&&(f=Gt,o=!1,t=new rt(t));n:for(;++i<s;){var p=n[i],v=e==null?p:e(p);if(p=r||p!==0?p:0,o&&v===v){for(var d=_;d--;)if(t[d]===v)continue n;c.push(p)}else f(t,v,r)||c.push(p)}return c}var Jn=nf(Ln),mu=nf(Mr,!0);function Js(n,t){var e=!0;return Jn(n,function(r,i,f){return e=!!t(r,i,f),e}),e}function We(n,t,e){for(var r=-1,i=n.length;++r<i;){var f=n[r],o=t(f);if(o!=null&&(s===l?o===o&&!on(o):e(o,s)))var s=o,c=f}return c}function Xs(n,t,e,r){var i=n.length;for(e=E(e),e<0&&(e=-e>i?0:i+e),r=r===l||r>i?i:E(r),r<0&&(r+=i),r=e>r?0:Zf(r);e<r;)n[e++]=t;return n}function Cu(n,t){var e=[];return Jn(n,function(r,i,f){t(r,i,f)&&e.push(r)}),e}function Z(n,t,e,r,i){var f=-1,o=n.length;for(e||(e=Da),i||(i=[]);++f<o;){var s=n[f];t>0&&e(s)?t>1?Z(s,t-1,e,r,i):zn(i,s):r||(i[i.length]=s)}return i}var Fr=tf(),Ou=tf(!0);function Ln(n,t){return n&&Fr(n,t,K)}function Mr(n,t){return n&&Ou(n,t,K)}function Pe(n,t){return Kn(t,function(e){return Gn(n[e])})}function ut(n,t){t=Qn(t,n);for(var e=0,r=t.length;n!=null&&e<r;)n=n[Cn(t[e++])];return e&&e==r?n:l}function bu(n,t,e){var r=t(n);return y(n)?r:zn(r,e(n))}function X(n){return n==null?n===l?yo:Io:tt&&tt in B(n)?ba(n):Ka(n)}function Dr(n,t){return n>t}function Qs(n,t){return n!=null&&P.call(n,t)}function Vs(n,t){return n!=null&&t in B(n)}function ks(n,t,e){return n>=Y(t,e)&&n<$(t,e)}function Ur(n,t,e){for(var r=e?Ar:_e,i=n[0].length,f=n.length,o=f,s=h(f),c=1/0,_=[];o--;){var p=n[o];o&&t&&(p=D(p,un(t))),c=Y(p.length,c),s[o]=!e&&(t||i>=120&&p.length>=120)?new rt(o&&p):l}p=n[0];var v=-1,d=s[0];n:for(;++v<i&&_.length<c;){var x=p[v],S=t?t(x):x;if(x=e||x!==0?x:0,!(d?Gt(d,S):r(_,S,e))){for(o=f;--o;){var T=s[o];if(!(T?Gt(T,S):r(n[o],S,e)))continue n}d&&d.push(S),_.push(x)}}return _}function js(n,t,e,r){return Ln(n,function(i,f,o){t(r,e(i),f,o)}),r}function Jt(n,t,e){t=Qn(t,n),n=xf(n,t);var r=n==null?n:n[Cn(dn(t))];return r==null?l:rn(r,n,e)}function Wu(n){return N(n)&&X(n)==gt}function na(n){return N(n)&&X(n)==Nt}function ta(n){return N(n)&&X(n)==Bt}function Xt(n,t,e,r,i){return n===t?!0:n==null||t==null||!N(n)&&!N(t)?n!==n&&t!==t:ea(n,t,e,r,Xt,i)}function ea(n,t,e,r,i,f){var o=y(n),s=y(t),c=o?oe:J(n),_=s?oe:J(t);c=c==gt?Pn:c,_=_==gt?Pn:_;var p=c==Pn,v=_==Pn,d=c==_;if(d&&kn(n)){if(!kn(t))return!1;o=!0,p=!1}if(d&&!p)return f||(f=new Rn),o||Lt(n)?hf(n,t,e,r,i,f):Ca(n,t,c,e,r,i,f);if(!(e&at)){var x=p&&P.call(n,"__wrapped__"),S=v&&P.call(t,"__wrapped__");if(x||S){var T=x?n.value():n,I=S?t.value():t;return f||(f=new Rn),i(T,I,e,r,f)}}return d?(f||(f=new Rn),Oa(n,t,e,r,i,f)):!1}function ra(n){return N(n)&&J(n)==An}function Nr(n,t,e,r){var i=e.length,f=i,o=!r;if(n==null)return!f;for(n=B(n);i--;){var s=e[i];if(o&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<f;){s=e[i];var c=s[0],_=n[c],p=s[1];if(o&&s[2]){if(_===l&&!(c in n))return!1}else{var v=new Rn;if(r)var d=r(_,p,c,n,t,v);if(!(d===l?Xt(p,_,at|ie,r,v):d))return!1}}return!0}function Pu(n){if(!U(n)||Na(n))return!1;var t=Gn(n)?rs:Yo;return t.test(ot(n))}function ia(n){return N(n)&&X(n)==Mt}function ua(n){return N(n)&&J(n)==Sn}function fa(n){return N(n)&&Qe(n.length)&&!!M[X(n)]}function Bu(n){return typeof n=="function"?n:n==null?tn:typeof n=="object"?y(n)?Du(n[0],n[1]):Mu(n):ro(n)}function Gr(n){if(!kt(n))return ss(n);var t=[];for(var e in B(n))P.call(n,e)&&e!="constructor"&&t.push(e);return t}function oa(n){if(!U(n))return $a(n);var t=kt(n),e=[];for(var r in n)r=="constructor"&&(t||!P.call(n,r))||e.push(r);return e}function Hr(n,t){return n<t}function Fu(n,t){var e=-1,r=j(n)?h(n.length):[];return Jn(n,function(i,f,o){r[++e]=t(i,f,o)}),r}function Mu(n){var t=ei(n);return t.length==1&&t[0][2]?df(t[0][0],t[0][1]):function(e){return e===n||Nr(e,n,t)}}function Du(n,t){return ii(n)&&vf(t)?df(Cn(n),t):function(e){var r=_i(e,n);return r===l&&r===t?pi(e,n):Xt(t,r,at|ie)}}function Be(n,t,e,r,i){n!==t&&Fr(t,function(f,o){if(i||(i=new Rn),U(f))la(n,t,o,e,Be,r,i);else{var s=r?r(fi(n,o),f,o+"",n,t,i):l;s===l&&(s=f),Pr(n,o,s)}},nn)}function la(n,t,e,r,i,f,o){var s=fi(n,e),c=fi(t,e),_=o.get(c);if(_){Pr(n,e,_);return}var p=f?f(s,c,e+"",n,t,o):l,v=p===l;if(v){var d=y(c),x=!d&&kn(c),S=!d&&!x&&Lt(c);p=c,d||x||S?y(s)?p=s:G(s)?p=k(s):x?(v=!1,p=Xu(c,!0)):S?(v=!1,p=Qu(c,!0)):p=[]:ne(c)||lt(c)?(p=s,lt(s)?p=Yf(s):(!U(s)||Gn(s))&&(p=pf(c))):v=!1}v&&(o.set(c,p),i(p,c,r,f,o),o.delete(c)),Pr(n,e,p)}function Uu(n,t){var e=n.length;if(e)return t+=t<0?e:0,Nn(t,e)?n[t]:l}function Nu(n,t,e){t.length?t=D(t,function(f){return y(f)?function(o){return ut(o,f.length===1?f[0]:f)}:f}):t=[tn];var r=-1;t=D(t,un(A()));var i=Fu(n,function(f,o,s){var c=D(t,function(_){return _(f)});return{criteria:c,index:++r,value:f}});return Fl(i,function(f,o){return Sa(f,o,e)})}function sa(n,t){return Gu(n,t,function(e,r){return pi(n,r)})}function Gu(n,t,e){for(var r=-1,i=t.length,f={};++r<i;){var o=t[r],s=ut(n,o);e(s,o)&&Qt(f,Qn(o,n),s)}return f}function aa(n){return function(t){return ut(t,n)}}function qr(n,t,e,r){var i=r?Bl:vt,f=-1,o=t.length,s=n;for(n===t&&(t=k(t)),e&&(s=D(n,un(e)));++f<o;)for(var c=0,_=t[f],p=e?e(_):_;(c=i(s,p,c,r))>-1;)s!==n&&ye.call(s,c,1),ye.call(n,c,1);return n}function Hu(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==f){var f=i;Nn(i)?ye.call(n,i,1):Zr(n,i)}}return n}function $r(n,t){return n+Le(Su()*(t-n+1))}function ca(n,t,e,r){for(var i=-1,f=$(Te((t-n)/(e||1)),0),o=h(f);f--;)o[r?f:++i]=n,n+=e;return o}function Kr(n,t){var e="";if(!n||t<1||t>ht)return e;do t%2&&(e+=n),t=Le(t/2),t&&(n+=n);while(t);return e}function L(n,t){return oi(wf(n,t,tn),n+"")}function ha(n){return yu(mt(n))}function ga(n,t){var e=mt(n);return Ke(e,it(t,0,e.length))}function Qt(n,t,e,r){if(!U(n))return n;t=Qn(t,n);for(var i=-1,f=t.length,o=f-1,s=n;s!=null&&++i<f;){var c=Cn(t[i]),_=e;if(c==="__proto__"||c==="constructor"||c==="prototype")return n;if(i!=o){var p=s[c];_=r?r(p,c,s):l,_===l&&(_=U(p)?p:Nn(t[i+1])?[]:{})}Zt(s,c,_),s=s[c]}return n}var qu=me?function(n,t){return me.set(n,t),n}:tn,_a=Ee?function(n,t){return Ee(n,"toString",{configurable:!0,enumerable:!1,value:di(t),writable:!0})}:tn;function pa(n){return Ke(mt(n))}function vn(n,t,e){var r=-1,i=n.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var f=h(i);++r<i;)f[r]=n[r+t];return f}function va(n,t){var e;return Jn(n,function(r,i,f){return e=t(r,i,f),!e}),!!e}function Fe(n,t,e){var r=0,i=n==null?r:n.length;if(typeof t=="number"&&t===t&&i<=wo){for(;r<i;){var f=r+i>>>1,o=n[f];o!==null&&!on(o)&&(e?o<=t:o<t)?r=f+1:i=f}return i}return zr(n,t,tn,e)}function zr(n,t,e,r){var i=0,f=n==null?0:n.length;if(f===0)return 0;t=e(t);for(var o=t!==t,s=t===null,c=on(t),_=t===l;i<f;){var p=Le((i+f)/2),v=e(n[p]),d=v!==l,x=v===null,S=v===v,T=on(v);if(o)var I=r||S;else _?I=S&&(r||d):s?I=S&&d&&(r||!x):c?I=S&&d&&!x&&(r||!T):x||T?I=!1:I=r?v<=t:v<t;I?i=p+1:f=p}return Y(f,vo)}function $u(n,t){for(var e=-1,r=n.length,i=0,f=[];++e<r;){var o=n[e],s=t?t(o):o;if(!e||!yn(s,c)){var c=s;f[i++]=o===0?0:o}}return f}function Ku(n){return typeof n=="number"?n:on(n)?fe:+n}function fn(n){if(typeof n=="string")return n;if(y(n))return D(n,fn)+"";if(on(n))return Iu?Iu.call(n):"";var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function Xn(n,t,e){var r=-1,i=_e,f=n.length,o=!0,s=[],c=s;if(e)o=!1,i=Ar;else if(f>=jn){var _=t?null:La(n);if(_)return ve(_);o=!1,i=Gt,c=new rt}else c=t?[]:s;n:for(;++r<f;){var p=n[r],v=t?t(p):p;if(p=e||p!==0?p:0,o&&v===v){for(var d=c.length;d--;)if(c[d]===v)continue n;t&&c.push(v),s.push(p)}else i(c,v,e)||(c!==s&&c.push(v),s.push(p))}return s}function Zr(n,t){return t=Qn(t,n),n=xf(n,t),n==null||delete n[Cn(dn(t))]}function zu(n,t,e,r){return Qt(n,t,e(ut(n,t)),r)}function Me(n,t,e,r){for(var i=n.length,f=r?i:-1;(r?f--:++f<i)&&t(n[f],f,n););return e?vn(n,r?0:f,r?f+1:i):vn(n,r?f+1:0,r?i:f)}function Zu(n,t){var e=n;return e instanceof C&&(e=e.value()),Sr(t,function(r,i){return i.func.apply(i.thisArg,zn([r],i.args))},e)}function Yr(n,t,e){var r=n.length;if(r<2)return r?Xn(n[0]):[];for(var i=-1,f=h(r);++i<r;)for(var o=n[i],s=-1;++s<r;)s!=i&&(f[i]=Yt(f[i]||o,n[s],t,e));return Xn(Z(f,1),t,e)}function Yu(n,t,e){for(var r=-1,i=n.length,f=t.length,o={};++r<i;){var s=r<f?t[r]:l;e(o,n[r],s)}return o}function Jr(n){return G(n)?n:[]}function Xr(n){return typeof n=="function"?n:tn}function Qn(n,t){return y(n)?n:ii(n,t)?[n]:Rf(W(n))}var da=L;function Vn(n,t,e){var r=n.length;return e=e===l?r:e,!t&&e>=r?n:vn(n,t,e)}var Ju=is||function(n){return z.clearTimeout(n)};function Xu(n,t){if(t)return n.slice();var e=n.length,r=vu?vu(e):new n.constructor(e);return n.copy(r),r}function Qr(n){var t=new n.constructor(n.byteLength);return new Ie(t).set(new Ie(n)),t}function wa(n,t){var e=t?Qr(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}function xa(n){var t=new n.constructor(n.source,Wi.exec(n));return t.lastIndex=n.lastIndex,t}function Aa(n){return zt?B(zt.call(n)):{}}function Qu(n,t){var e=t?Qr(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function Vu(n,t){if(n!==t){var e=n!==l,r=n===null,i=n===n,f=on(n),o=t!==l,s=t===null,c=t===t,_=on(t);if(!s&&!_&&!f&&n>t||f&&o&&c&&!s&&!_||r&&o&&c||!e&&c||!i)return 1;if(!r&&!f&&!_&&n<t||_&&e&&i&&!r&&!f||s&&e&&i||!o&&i||!c)return-1}return 0}function Sa(n,t,e){for(var r=-1,i=n.criteria,f=t.criteria,o=i.length,s=e.length;++r<o;){var c=Vu(i[r],f[r]);if(c){if(r>=s)return c;var _=e[r];return c*(_=="desc"?-1:1)}}return n.index-t.index}function ku(n,t,e,r){for(var i=-1,f=n.length,o=e.length,s=-1,c=t.length,_=$(f-o,0),p=h(c+_),v=!r;++s<c;)p[s]=t[s];for(;++i<o;)(v||i<f)&&(p[e[i]]=n[i]);for(;_--;)p[s++]=n[i++];return p}function ju(n,t,e,r){for(var i=-1,f=n.length,o=-1,s=e.length,c=-1,_=t.length,p=$(f-s,0),v=h(p+_),d=!r;++i<p;)v[i]=n[i];for(var x=i;++c<_;)v[x+c]=t[c];for(;++o<s;)(d||i<f)&&(v[x+e[o]]=n[i++]);return v}function k(n,t){var e=-1,r=n.length;for(t||(t=h(r));++e<r;)t[e]=n[e];return t}function mn(n,t,e,r){var i=!e;e||(e={});for(var f=-1,o=t.length;++f<o;){var s=t[f],c=r?r(e[s],n[s],s,e,n):l;c===l&&(c=n[s]),i?Mn(e,s,c):Zt(e,s,c)}return e}function Ia(n,t){return mn(n,ri(n),t)}function Ra(n,t){return mn(n,gf(n),t)}function De(n,t){return function(e,r){var i=y(e)?ml:zs,f=t?t():{};return i(e,n,A(r,2),f)}}function yt(n){return L(function(t,e){var r=-1,i=e.length,f=i>1?e[i-1]:l,o=i>2?e[2]:l;for(f=n.length>3&&typeof f=="function"?(i--,f):l,o&&Q(e[0],e[1],o)&&(f=i<3?l:f,i=1),t=B(t);++r<i;){var s=e[r];s&&n(t,s,r,f)}return t})}function nf(n,t){return function(e,r){if(e==null)return e;if(!j(e))return n(e,r);for(var i=e.length,f=t?i:-1,o=B(e);(t?f--:++f<i)&&r(o[f],f,o)!==!1;);return e}}function tf(n){return function(t,e,r){for(var i=-1,f=B(t),o=r(t),s=o.length;s--;){var c=o[n?s:++i];if(e(f[c],c,f)===!1)break}return t}}function ya(n,t,e){var r=t&xn,i=Vt(n);function f(){var o=this&&this!==z&&this instanceof f?i:n;return o.apply(r?e:this,arguments)}return f}function ef(n){return function(t){t=W(t);var e=dt(t)?In(t):l,r=e?e[0]:t.charAt(0),i=e?Vn(e,1).join(""):t.slice(1);return r[n]()+i}}function Et(n){return function(t){return Sr(to(no(t).replace(_l,"")),n,"")}}function Vt(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=Rt(n.prototype),r=n.apply(e,t);return U(r)?r:e}}function Ea(n,t,e){var r=Vt(n);function i(){for(var f=arguments.length,o=h(f),s=f,c=Tt(i);s--;)o[s]=arguments[s];var _=f<3&&o[0]!==c&&o[f-1]!==c?[]:Zn(o,c);if(f-=_.length,f<e)return lf(n,t,Ue,i.placeholder,l,o,_,l,l,e-f);var p=this&&this!==z&&this instanceof i?r:n;return rn(p,this,o)}return i}function rf(n){return function(t,e,r){var i=B(t);if(!j(t)){var f=A(e,3);t=K(t),e=function(s){return f(i[s],s,i)}}var o=n(t,e,r);return o>-1?i[f?t[o]:o]:l}}function uf(n){return Un(function(t){var e=t.length,r=e,i=_n.prototype.thru;for(n&&t.reverse();r--;){var f=t[r];if(typeof f!="function")throw new gn(an);if(i&&!o&&qe(f)=="wrapper")var o=new _n([],!0)}for(r=o?r:e;++r<e;){f=t[r];var s=qe(f),c=s=="wrapper"?ti(f):l;c&&ui(c[0])&&c[1]==(Wn|On|bn|Wt)&&!c[4].length&&c[9]==1?o=o[qe(c[0])].apply(o,c[3]):o=f.length==1&&ui(f)?o[s]():o.thru(f)}return function(){var _=arguments,p=_[0];if(o&&_.length==1&&y(p))return o.plant(p).value();for(var v=0,d=e?t[v].apply(this,_):p;++v<e;)d=t[v].call(this,d);return d}})}function Ue(n,t,e,r,i,f,o,s,c,_){var p=t&Wn,v=t&xn,d=t&ct,x=t&(On|Ot),S=t&tr,T=d?l:Vt(n);function I(){for(var m=arguments.length,O=h(m),ln=m;ln--;)O[ln]=arguments[ln];if(x)var V=Tt(I),sn=Dl(O,V);if(r&&(O=ku(O,r,i,x)),f&&(O=ju(O,f,o,x)),m-=sn,x&&m<_){var H=Zn(O,V);return lf(n,t,Ue,I.placeholder,e,O,H,s,c,_-m)}var En=v?e:this,qn=d?En[n]:n;return m=O.length,s?O=za(O,s):S&&m>1&&O.reverse(),p&&c<m&&(O.length=c),this&&this!==z&&this instanceof I&&(qn=T||Vt(qn)),qn.apply(En,O)}return I}function ff(n,t){return function(e,r){return js(e,n,t(r),{})}}function Ne(n,t){return function(e,r){var i;if(e===l&&r===l)return t;if(e!==l&&(i=e),r!==l){if(i===l)return r;typeof e=="string"||typeof r=="string"?(e=fn(e),r=fn(r)):(e=Ku(e),r=Ku(r)),i=n(e,r)}return i}}function Vr(n){return Un(function(t){return t=D(t,un(A())),L(function(e){var r=this;return n(t,function(i){return rn(i,r,e)})})})}function Ge(n,t){t=t===l?" ":fn(t);var e=t.length;if(e<2)return e?Kr(t,n):t;var r=Kr(t,Te(n/wt(t)));return dt(t)?Vn(In(r),0,n).join(""):r.slice(0,n)}function Ta(n,t,e,r){var i=t&xn,f=Vt(n);function o(){for(var s=-1,c=arguments.length,_=-1,p=r.length,v=h(p+c),d=this&&this!==z&&this instanceof o?f:n;++_<p;)v[_]=r[_];for(;c--;)v[_++]=arguments[++s];return rn(d,i?e:this,v)}return o}function of(n){return function(t,e,r){return r&&typeof r!="number"&&Q(t,e,r)&&(e=r=l),t=Hn(t),e===l?(e=t,t=0):e=Hn(e),r=r===l?t<e?1:-1:Hn(r),ca(t,e,r,n)}}function He(n){return function(t,e){return typeof t=="string"&&typeof e=="string"||(t=wn(t),e=wn(e)),n(t,e)}}function lf(n,t,e,r,i,f,o,s,c,_){var p=t&On,v=p?o:l,d=p?l:o,x=p?f:l,S=p?l:f;t|=p?bn:bt,t&=~(p?bt:bn),t&Ei||(t&=-4);var T=[n,t,i,x,v,S,d,s,c,_],I=e.apply(l,T);return ui(n)&&Af(I,T),I.placeholder=r,Sf(I,n,t)}function kr(n){var t=q[n];return function(e,r){if(e=wn(e),r=r==null?0:Y(E(r),292),r&&Au(e)){var i=(W(e)+"e").split("e"),f=t(i[0]+"e"+(+i[1]+r));return i=(W(f)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(e)}}var La=St&&1/ve(new St([,-0]))[1]==ue?function(n){return new St(n)}:Ai;function sf(n){return function(t){var e=J(t);return e==An?mr(t):e==Sn?Kl(t):Ml(t,n(t))}}function Dn(n,t,e,r,i,f,o,s){var c=t&ct;if(!c&&typeof n!="function")throw new gn(an);var _=r?r.length:0;if(_||(t&=-97,r=i=l),o=o===l?o:$(E(o),0),s=s===l?s:E(s),_-=i?i.length:0,t&bt){var p=r,v=i;r=i=l}var d=c?l:ti(n),x=[n,t,e,r,i,p,v,f,o,s];if(d&&qa(x,d),n=x[0],t=x[1],e=x[2],r=x[3],i=x[4],s=x[9]=x[9]===l?c?0:n.length:$(x[9]-_,0),!s&&t&(On|Ot)&&(t&=-25),!t||t==xn)var S=ya(n,t,e);else t==On||t==Ot?S=Ea(n,t,s):(t==bn||t==(xn|bn))&&!i.length?S=Ta(n,t,e,r):S=Ue.apply(l,x);var T=d?qu:Af;return Sf(T(S,x),n,t)}function af(n,t,e,r){return n===l||yn(n,At[e])&&!P.call(r,e)?t:n}function cf(n,t,e,r,i,f){return U(n)&&U(t)&&(f.set(t,n),Be(n,t,l,cf,f),f.delete(t)),n}function ma(n){return ne(n)?l:n}function hf(n,t,e,r,i,f){var o=e&at,s=n.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var _=f.get(n),p=f.get(t);if(_&&p)return _==t&&p==n;var v=-1,d=!0,x=e&ie?new rt:l;for(f.set(n,t),f.set(t,n);++v<s;){var S=n[v],T=t[v];if(r)var I=o?r(T,S,v,t,n,f):r(S,T,v,n,t,f);if(I!==l){if(I)continue;d=!1;break}if(x){if(!Ir(t,function(m,O){if(!Gt(x,O)&&(S===m||i(S,m,e,r,f)))return x.push(O)})){d=!1;break}}else if(!(S===T||i(S,T,e,r,f))){d=!1;break}}return f.delete(n),f.delete(t),d}function Ca(n,t,e,r,i,f,o){switch(e){case _t:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case Nt:return!(n.byteLength!=t.byteLength||!f(new Ie(n),new Ie(t)));case Pt:case Bt:case Ft:return yn(+n,+t);case le:return n.name==t.name&&n.message==t.message;case Mt:case Dt:return n==t+"";case An:var s=mr;case Sn:var c=r&at;if(s||(s=ve),n.size!=t.size&&!c)return!1;var _=o.get(n);if(_)return _==t;r|=ie,o.set(n,t);var p=hf(s(n),s(t),r,i,f,o);return o.delete(n),p;case ae:if(zt)return zt.call(n)==zt.call(t)}return!1}function Oa(n,t,e,r,i,f){var o=e&at,s=jr(n),c=s.length,_=jr(t),p=_.length;if(c!=p&&!o)return!1;for(var v=c;v--;){var d=s[v];if(!(o?d in t:P.call(t,d)))return!1}var x=f.get(n),S=f.get(t);if(x&&S)return x==t&&S==n;var T=!0;f.set(n,t),f.set(t,n);for(var I=o;++v<c;){d=s[v];var m=n[d],O=t[d];if(r)var ln=o?r(O,m,d,t,n,f):r(m,O,d,n,t,f);if(!(ln===l?m===O||i(m,O,e,r,f):ln)){T=!1;break}I||(I=d=="constructor")}if(T&&!I){var V=n.constructor,sn=t.constructor;V!=sn&&"constructor"in n&&"constructor"in t&&!(typeof V=="function"&&V instanceof V&&typeof sn=="function"&&sn instanceof sn)&&(T=!1)}return f.delete(n),f.delete(t),T}function Un(n){return oi(wf(n,l,Lf),n+"")}function jr(n){return bu(n,K,ri)}function ni(n){return bu(n,nn,gf)}var ti=me?function(n){return me.get(n)}:Ai;function qe(n){for(var t=n.name+"",e=It[t],r=P.call(It,t)?e.length:0;r--;){var i=e[r],f=i.func;if(f==null||f==n)return i.name}return t}function Tt(n){var t=P.call(u,"placeholder")?u:n;return t.placeholder}function A(){var n=u.iteratee||wi;return n=n===wi?Bu:n,arguments.length?n(arguments[0],arguments[1]):n}function $e(n,t){var e=n.__data__;return Ua(t)?e[typeof t=="string"?"string":"hash"]:e.map}function ei(n){for(var t=K(n),e=t.length;e--;){var r=t[e],i=n[r];t[e]=[r,i,vf(i)]}return t}function ft(n,t){var e=Hl(n,t);return Pu(e)?e:l}function ba(n){var t=P.call(n,tt),e=n[tt];try{n[tt]=l;var r=!0}catch{}var i=Ae.call(n);return r&&(t?n[tt]=e:delete n[tt]),i}var ri=Or?function(n){return n==null?[]:(n=B(n),Kn(Or(n),function(t){return wu.call(n,t)}))}:Si,gf=Or?function(n){for(var t=[];n;)zn(t,ri(n)),n=Re(n);return t}:Si,J=X;(br&&J(new br(new ArrayBuffer(1)))!=_t||qt&&J(new qt)!=An||Wr&&J(Wr.resolve())!=mi||St&&J(new St)!=Sn||$t&&J(new $t)!=Ut)&&(J=function(n){var t=X(n),e=t==Pn?n.constructor:l,r=e?ot(e):"";if(r)switch(r){case gs:return _t;case _s:return An;case ps:return mi;case vs:return Sn;case ds:return Ut}return t});function Wa(n,t,e){for(var r=-1,i=e.length;++r<i;){var f=e[r],o=f.size;switch(f.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=Y(t,n+o);break;case"takeRight":n=$(n,t-o);break}}return{start:n,end:t}}function Pa(n){var t=n.match(No);return t?t[1].split(Go):[]}function _f(n,t,e){t=Qn(t,n);for(var r=-1,i=t.length,f=!1;++r<i;){var o=Cn(t[r]);if(!(f=n!=null&&e(n,o)))break;n=n[o]}return f||++r!=i?f:(i=n==null?0:n.length,!!i&&Qe(i)&&Nn(o,i)&&(y(n)||lt(n)))}function Ba(n){var t=n.length,e=new n.constructor(t);return t&&typeof n[0]=="string"&&P.call(n,"index")&&(e.index=n.index,e.input=n.input),e}function pf(n){return typeof n.constructor=="function"&&!kt(n)?Rt(Re(n)):{}}function Fa(n,t,e){var r=n.constructor;switch(t){case Nt:return Qr(n);case Pt:case Bt:return new r(+n);case _t:return wa(n,e);case er:case rr:case ir:case ur:case fr:case or:case lr:case sr:case ar:return Qu(n,e);case An:return new r;case Ft:case Dt:return new r(n);case Mt:return xa(n);case Sn:return new r;case ae:return Aa(n)}}function Ma(n,t){var e=t.length;if(!e)return n;var r=e-1;return t[r]=(e>1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(Uo,`{
9
+ /* [wrapped with `+t+`] */
10
+ `)}function Da(n){return y(n)||lt(n)||!!(xu&&n&&n[xu])}function Nn(n,t){var e=typeof n;return t=t??ht,!!t&&(e=="number"||e!="symbol"&&Xo.test(n))&&n>-1&&n%1==0&&n<t}function Q(n,t,e){if(!U(e))return!1;var r=typeof t;return(r=="number"?j(e)&&Nn(t,e.length):r=="string"&&t in e)?yn(e[t],n):!1}function ii(n,t){if(y(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||on(n)?!0:Bo.test(n)||!Po.test(n)||t!=null&&n in B(t)}function Ua(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function ui(n){var t=qe(n),e=u[t];if(typeof e!="function"||!(t in C.prototype))return!1;if(n===e)return!0;var r=ti(e);return!!r&&n===r[0]}function Na(n){return!!pu&&pu in n}var Ga=we?Gn:Ii;function kt(n){var t=n&&n.constructor,e=typeof t=="function"&&t.prototype||At;return n===e}function vf(n){return n===n&&!U(n)}function df(n,t){return function(e){return e==null?!1:e[n]===t&&(t!==l||n in B(e))}}function Ha(n){var t=Je(n,function(r){return e.size===lo&&e.clear(),r}),e=t.cache;return t}function qa(n,t){var e=n[1],r=t[1],i=e|r,f=i<(xn|ct|Wn),o=r==Wn&&e==On||r==Wn&&e==Wt&&n[7].length<=t[8]||r==(Wn|Wt)&&t[7].length<=t[8]&&e==On;if(!(f||o))return n;r&xn&&(n[2]=t[2],i|=e&xn?0:Ei);var s=t[3];if(s){var c=n[3];n[3]=c?ku(c,s,t[4]):s,n[4]=c?Zn(n[3],re):t[4]}return s=t[5],s&&(c=n[5],n[5]=c?ju(c,s,t[6]):s,n[6]=c?Zn(n[5],re):t[6]),s=t[7],s&&(n[7]=s),r&Wn&&(n[8]=n[8]==null?t[8]:Y(n[8],t[8])),n[9]==null&&(n[9]=t[9]),n[0]=t[0],n[1]=i,n}function $a(n){var t=[];if(n!=null)for(var e in B(n))t.push(e);return t}function Ka(n){return Ae.call(n)}function wf(n,t,e){return t=$(t===l?n.length-1:t,0),function(){for(var r=arguments,i=-1,f=$(r.length-t,0),o=h(f);++i<f;)o[i]=r[t+i];i=-1;for(var s=h(t+1);++i<t;)s[i]=r[i];return s[t]=e(o),rn(n,this,s)}}function xf(n,t){return t.length<2?n:ut(n,vn(t,0,-1))}function za(n,t){for(var e=n.length,r=Y(t.length,e),i=k(n);r--;){var f=t[r];n[r]=Nn(f,e)?i[f]:l}return n}function fi(n,t){if(!(t==="constructor"&&typeof n[t]=="function")&&t!="__proto__")return n[t]}var Af=If(qu),jt=fs||function(n,t){return z.setTimeout(n,t)},oi=If(_a);function Sf(n,t,e){var r=t+"";return oi(n,Ma(r,Za(Pa(r),e)))}function If(n){var t=0,e=0;return function(){var r=as(),i=ho-(r-e);if(e=r,i>0){if(++t>=co)return arguments[0]}else t=0;return n.apply(l,arguments)}}function Ke(n,t){var e=-1,r=n.length,i=r-1;for(t=t===l?r:t;++e<t;){var f=$r(e,i),o=n[f];n[f]=n[e],n[e]=o}return n.length=t,n}var Rf=Ha(function(n){var t=[];return n.charCodeAt(0)===46&&t.push(""),n.replace(Fo,function(e,r,i,f){t.push(i?f.replace($o,"$1"):r||e)}),t});function Cn(n){if(typeof n=="string"||on(n))return n;var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function ot(n){if(n!=null){try{return xe.call(n)}catch{}try{return n+""}catch{}}return""}function Za(n,t){return hn(xo,function(e){var r="_."+e[0];t&e[1]&&!_e(n,r)&&n.push(r)}),n.sort()}function yf(n){if(n instanceof C)return n.clone();var t=new _n(n.__wrapped__,n.__chain__);return t.__actions__=k(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function Ya(n,t,e){(e?Q(n,t,e):t===l)?t=1:t=$(E(t),0);var r=n==null?0:n.length;if(!r||t<1)return[];for(var i=0,f=0,o=h(Te(r/t));i<r;)o[f++]=vn(n,i,i+=t);return o}function Ja(n){for(var t=-1,e=n==null?0:n.length,r=0,i=[];++t<e;){var f=n[t];f&&(i[r++]=f)}return i}function Xa(){var n=arguments.length;if(!n)return[];for(var t=h(n-1),e=arguments[0],r=n;r--;)t[r-1]=arguments[r];return zn(y(e)?k(e):[e],Z(t,1))}var Qa=L(function(n,t){return G(n)?Yt(n,Z(t,1,G,!0)):[]}),Va=L(function(n,t){var e=dn(t);return G(e)&&(e=l),G(n)?Yt(n,Z(t,1,G,!0),A(e,2)):[]}),ka=L(function(n,t){var e=dn(t);return G(e)&&(e=l),G(n)?Yt(n,Z(t,1,G,!0),l,e):[]});function ja(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===l?1:E(t),vn(n,t<0?0:t,r)):[]}function nc(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===l?1:E(t),t=r-t,vn(n,0,t<0?0:t)):[]}function tc(n,t){return n&&n.length?Me(n,A(t,3),!0,!0):[]}function ec(n,t){return n&&n.length?Me(n,A(t,3),!0):[]}function rc(n,t,e,r){var i=n==null?0:n.length;return i?(e&&typeof e!="number"&&Q(n,t,e)&&(e=0,r=i),Xs(n,t,e,r)):[]}function Ef(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:E(e);return i<0&&(i=$(r+i,0)),pe(n,A(t,3),i)}function Tf(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r-1;return e!==l&&(i=E(e),i=e<0?$(r+i,0):Y(i,r-1)),pe(n,A(t,3),i,!0)}function Lf(n){var t=n==null?0:n.length;return t?Z(n,1):[]}function ic(n){var t=n==null?0:n.length;return t?Z(n,ue):[]}function uc(n,t){var e=n==null?0:n.length;return e?(t=t===l?1:E(t),Z(n,t)):[]}function fc(n){for(var t=-1,e=n==null?0:n.length,r={};++t<e;){var i=n[t];r[i[0]]=i[1]}return r}function mf(n){return n&&n.length?n[0]:l}function oc(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:E(e);return i<0&&(i=$(r+i,0)),vt(n,t,i)}function lc(n){var t=n==null?0:n.length;return t?vn(n,0,-1):[]}var sc=L(function(n){var t=D(n,Jr);return t.length&&t[0]===n[0]?Ur(t):[]}),ac=L(function(n){var t=dn(n),e=D(n,Jr);return t===dn(e)?t=l:e.pop(),e.length&&e[0]===n[0]?Ur(e,A(t,2)):[]}),cc=L(function(n){var t=dn(n),e=D(n,Jr);return t=typeof t=="function"?t:l,t&&e.pop(),e.length&&e[0]===n[0]?Ur(e,l,t):[]});function hc(n,t){return n==null?"":ls.call(n,t)}function dn(n){var t=n==null?0:n.length;return t?n[t-1]:l}function gc(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r;return e!==l&&(i=E(e),i=i<0?$(r+i,0):Y(i,r-1)),t===t?Zl(n,t,i):pe(n,ou,i,!0)}function _c(n,t){return n&&n.length?Uu(n,E(t)):l}var pc=L(Cf);function Cf(n,t){return n&&n.length&&t&&t.length?qr(n,t):n}function vc(n,t,e){return n&&n.length&&t&&t.length?qr(n,t,A(e,2)):n}function dc(n,t,e){return n&&n.length&&t&&t.length?qr(n,t,l,e):n}var wc=Un(function(n,t){var e=n==null?0:n.length,r=Br(n,t);return Hu(n,D(t,function(i){return Nn(i,e)?+i:i}).sort(Vu)),r});function xc(n,t){var e=[];if(!(n&&n.length))return e;var r=-1,i=[],f=n.length;for(t=A(t,3);++r<f;){var o=n[r];t(o,r,n)&&(e.push(o),i.push(r))}return Hu(n,i),e}function li(n){return n==null?n:hs.call(n)}function Ac(n,t,e){var r=n==null?0:n.length;return r?(e&&typeof e!="number"&&Q(n,t,e)?(t=0,e=r):(t=t==null?0:E(t),e=e===l?r:E(e)),vn(n,t,e)):[]}function Sc(n,t){return Fe(n,t)}function Ic(n,t,e){return zr(n,t,A(e,2))}function Rc(n,t){var e=n==null?0:n.length;if(e){var r=Fe(n,t);if(r<e&&yn(n[r],t))return r}return-1}function yc(n,t){return Fe(n,t,!0)}function Ec(n,t,e){return zr(n,t,A(e,2),!0)}function Tc(n,t){var e=n==null?0:n.length;if(e){var r=Fe(n,t,!0)-1;if(yn(n[r],t))return r}return-1}function Lc(n){return n&&n.length?$u(n):[]}function mc(n,t){return n&&n.length?$u(n,A(t,2)):[]}function Cc(n){var t=n==null?0:n.length;return t?vn(n,1,t):[]}function Oc(n,t,e){return n&&n.length?(t=e||t===l?1:E(t),vn(n,0,t<0?0:t)):[]}function bc(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===l?1:E(t),t=r-t,vn(n,t<0?0:t,r)):[]}function Wc(n,t){return n&&n.length?Me(n,A(t,3),!1,!0):[]}function Pc(n,t){return n&&n.length?Me(n,A(t,3)):[]}var Bc=L(function(n){return Xn(Z(n,1,G,!0))}),Fc=L(function(n){var t=dn(n);return G(t)&&(t=l),Xn(Z(n,1,G,!0),A(t,2))}),Mc=L(function(n){var t=dn(n);return t=typeof t=="function"?t:l,Xn(Z(n,1,G,!0),l,t)});function Dc(n){return n&&n.length?Xn(n):[]}function Uc(n,t){return n&&n.length?Xn(n,A(t,2)):[]}function Nc(n,t){return t=typeof t=="function"?t:l,n&&n.length?Xn(n,l,t):[]}function si(n){if(!(n&&n.length))return[];var t=0;return n=Kn(n,function(e){if(G(e))return t=$(e.length,t),!0}),Tr(t,function(e){return D(n,Rr(e))})}function Of(n,t){if(!(n&&n.length))return[];var e=si(n);return t==null?e:D(e,function(r){return rn(t,l,r)})}var Gc=L(function(n,t){return G(n)?Yt(n,t):[]}),Hc=L(function(n){return Yr(Kn(n,G))}),qc=L(function(n){var t=dn(n);return G(t)&&(t=l),Yr(Kn(n,G),A(t,2))}),$c=L(function(n){var t=dn(n);return t=typeof t=="function"?t:l,Yr(Kn(n,G),l,t)}),Kc=L(si);function zc(n,t){return Yu(n||[],t||[],Zt)}function Zc(n,t){return Yu(n||[],t||[],Qt)}var Yc=L(function(n){var t=n.length,e=t>1?n[t-1]:l;return e=typeof e=="function"?(n.pop(),e):l,Of(n,e)});function bf(n){var t=u(n);return t.__chain__=!0,t}function Jc(n,t){return t(n),n}function ze(n,t){return t(n)}var Xc=Un(function(n){var t=n.length,e=t?n[0]:0,r=this.__wrapped__,i=function(f){return Br(f,n)};return t>1||this.__actions__.length||!(r instanceof C)||!Nn(e)?this.thru(i):(r=r.slice(e,+e+(t?1:0)),r.__actions__.push({func:ze,args:[i],thisArg:l}),new _n(r,this.__chain__).thru(function(f){return t&&!f.length&&f.push(l),f}))});function Qc(){return bf(this)}function Vc(){return new _n(this.value(),this.__chain__)}function kc(){this.__values__===l&&(this.__values__=zf(this.value()));var n=this.__index__>=this.__values__.length,t=n?l:this.__values__[this.__index__++];return{done:n,value:t}}function jc(){return this}function nh(n){for(var t,e=this;e instanceof Oe;){var r=yf(e);r.__index__=0,r.__values__=l,t?i.__wrapped__=r:t=r;var i=r;e=e.__wrapped__}return i.__wrapped__=n,t}function th(){var n=this.__wrapped__;if(n instanceof C){var t=n;return this.__actions__.length&&(t=new C(this)),t=t.reverse(),t.__actions__.push({func:ze,args:[li],thisArg:l}),new _n(t,this.__chain__)}return this.thru(li)}function eh(){return Zu(this.__wrapped__,this.__actions__)}var rh=De(function(n,t,e){P.call(n,e)?++n[e]:Mn(n,e,1)});function ih(n,t,e){var r=y(n)?uu:Js;return e&&Q(n,t,e)&&(t=l),r(n,A(t,3))}function uh(n,t){var e=y(n)?Kn:Cu;return e(n,A(t,3))}var fh=rf(Ef),oh=rf(Tf);function lh(n,t){return Z(Ze(n,t),1)}function sh(n,t){return Z(Ze(n,t),ue)}function ah(n,t,e){return e=e===l?1:E(e),Z(Ze(n,t),e)}function Wf(n,t){var e=y(n)?hn:Jn;return e(n,A(t,3))}function Pf(n,t){var e=y(n)?Cl:mu;return e(n,A(t,3))}var ch=De(function(n,t,e){P.call(n,e)?n[e].push(t):Mn(n,e,[t])});function hh(n,t,e,r){n=j(n)?n:mt(n),e=e&&!r?E(e):0;var i=n.length;return e<0&&(e=$(i+e,0)),Ve(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&vt(n,t,e)>-1}var gh=L(function(n,t,e){var r=-1,i=typeof t=="function",f=j(n)?h(n.length):[];return Jn(n,function(o){f[++r]=i?rn(t,o,e):Jt(o,t,e)}),f}),_h=De(function(n,t,e){Mn(n,e,t)});function Ze(n,t){var e=y(n)?D:Fu;return e(n,A(t,3))}function ph(n,t,e,r){return n==null?[]:(y(t)||(t=t==null?[]:[t]),e=r?l:e,y(e)||(e=e==null?[]:[e]),Nu(n,t,e))}var vh=De(function(n,t,e){n[e?0:1].push(t)},function(){return[[],[]]});function dh(n,t,e){var r=y(n)?Sr:su,i=arguments.length<3;return r(n,A(t,4),e,i,Jn)}function wh(n,t,e){var r=y(n)?Ol:su,i=arguments.length<3;return r(n,A(t,4),e,i,mu)}function xh(n,t){var e=y(n)?Kn:Cu;return e(n,Xe(A(t,3)))}function Ah(n){var t=y(n)?yu:ha;return t(n)}function Sh(n,t,e){(e?Q(n,t,e):t===l)?t=1:t=E(t);var r=y(n)?$s:ga;return r(n,t)}function Ih(n){var t=y(n)?Ks:pa;return t(n)}function Rh(n){if(n==null)return 0;if(j(n))return Ve(n)?wt(n):n.length;var t=J(n);return t==An||t==Sn?n.size:Gr(n).length}function yh(n,t,e){var r=y(n)?Ir:va;return e&&Q(n,t,e)&&(t=l),r(n,A(t,3))}var Eh=L(function(n,t){if(n==null)return[];var e=t.length;return e>1&&Q(n,t[0],t[1])?t=[]:e>2&&Q(t[0],t[1],t[2])&&(t=[t[0]]),Nu(n,Z(t,1),[])}),Ye=us||function(){return z.Date.now()};function Th(n,t){if(typeof t!="function")throw new gn(an);return n=E(n),function(){if(--n<1)return t.apply(this,arguments)}}function Bf(n,t,e){return t=e?l:t,t=n&&t==null?n.length:t,Dn(n,Wn,l,l,l,l,t)}function Ff(n,t){var e;if(typeof t!="function")throw new gn(an);return n=E(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=l),e}}var ai=L(function(n,t,e){var r=xn;if(e.length){var i=Zn(e,Tt(ai));r|=bn}return Dn(n,r,t,e,i)}),Mf=L(function(n,t,e){var r=xn|ct;if(e.length){var i=Zn(e,Tt(Mf));r|=bn}return Dn(t,r,n,e,i)});function Df(n,t,e){t=e?l:t;var r=Dn(n,On,l,l,l,l,l,t);return r.placeholder=Df.placeholder,r}function Uf(n,t,e){t=e?l:t;var r=Dn(n,Ot,l,l,l,l,l,t);return r.placeholder=Uf.placeholder,r}function Nf(n,t,e){var r,i,f,o,s,c,_=0,p=!1,v=!1,d=!0;if(typeof n!="function")throw new gn(an);t=wn(t)||0,U(e)&&(p=!!e.leading,v="maxWait"in e,f=v?$(wn(e.maxWait)||0,t):f,d="trailing"in e?!!e.trailing:d);function x(H){var En=r,qn=i;return r=i=l,_=H,o=n.apply(qn,En),o}function S(H){return _=H,s=jt(m,t),p?x(H):o}function T(H){var En=H-c,qn=H-_,io=t-En;return v?Y(io,f-qn):io}function I(H){var En=H-c,qn=H-_;return c===l||En>=t||En<0||v&&qn>=f}function m(){var H=Ye();if(I(H))return O(H);s=jt(m,T(H))}function O(H){return s=l,d&&r?x(H):(r=i=l,o)}function ln(){s!==l&&Ju(s),_=0,r=c=i=s=l}function V(){return s===l?o:O(Ye())}function sn(){var H=Ye(),En=I(H);if(r=arguments,i=this,c=H,En){if(s===l)return S(c);if(v)return Ju(s),s=jt(m,t),x(c)}return s===l&&(s=jt(m,t)),o}return sn.cancel=ln,sn.flush=V,sn}var Lh=L(function(n,t){return Lu(n,1,t)}),mh=L(function(n,t,e){return Lu(n,wn(t)||0,e)});function Ch(n){return Dn(n,tr)}function Je(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new gn(an);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],f=e.cache;if(f.has(i))return f.get(i);var o=n.apply(this,r);return e.cache=f.set(i,o)||f,o};return e.cache=new(Je.Cache||Fn),e}Je.Cache=Fn;function Xe(n){if(typeof n!="function")throw new gn(an);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function Oh(n){return Ff(2,n)}var bh=da(function(n,t){t=t.length==1&&y(t[0])?D(t[0],un(A())):D(Z(t,1),un(A()));var e=t.length;return L(function(r){for(var i=-1,f=Y(r.length,e);++i<f;)r[i]=t[i].call(this,r[i]);return rn(n,this,r)})}),ci=L(function(n,t){var e=Zn(t,Tt(ci));return Dn(n,bn,l,t,e)}),Gf=L(function(n,t){var e=Zn(t,Tt(Gf));return Dn(n,bt,l,t,e)}),Wh=Un(function(n,t){return Dn(n,Wt,l,l,l,t)});function Ph(n,t){if(typeof n!="function")throw new gn(an);return t=t===l?t:E(t),L(n,t)}function Bh(n,t){if(typeof n!="function")throw new gn(an);return t=t==null?0:$(E(t),0),L(function(e){var r=e[t],i=Vn(e,0,t);return r&&zn(i,r),rn(n,this,i)})}function Fh(n,t,e){var r=!0,i=!0;if(typeof n!="function")throw new gn(an);return U(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Nf(n,t,{leading:r,maxWait:t,trailing:i})}function Mh(n){return Bf(n,1)}function Dh(n,t){return ci(Xr(t),n)}function Uh(){if(!arguments.length)return[];var n=arguments[0];return y(n)?n:[n]}function Nh(n){return pn(n,st)}function Gh(n,t){return t=typeof t=="function"?t:l,pn(n,st,t)}function Hh(n){return pn(n,$n|st)}function qh(n,t){return t=typeof t=="function"?t:l,pn(n,$n|st,t)}function $h(n,t){return t==null||Tu(n,t,K(t))}function yn(n,t){return n===t||n!==n&&t!==t}var Kh=He(Dr),zh=He(function(n,t){return n>=t}),lt=Wu(function(){return arguments}())?Wu:function(n){return N(n)&&P.call(n,"callee")&&!wu.call(n,"callee")},y=h.isArray,Zh=ji?un(ji):na;function j(n){return n!=null&&Qe(n.length)&&!Gn(n)}function G(n){return N(n)&&j(n)}function Yh(n){return n===!0||n===!1||N(n)&&X(n)==Pt}var kn=os||Ii,Jh=nu?un(nu):ta;function Xh(n){return N(n)&&n.nodeType===1&&!ne(n)}function Qh(n){if(n==null)return!0;if(j(n)&&(y(n)||typeof n=="string"||typeof n.splice=="function"||kn(n)||Lt(n)||lt(n)))return!n.length;var t=J(n);if(t==An||t==Sn)return!n.size;if(kt(n))return!Gr(n).length;for(var e in n)if(P.call(n,e))return!1;return!0}function Vh(n,t){return Xt(n,t)}function kh(n,t,e){e=typeof e=="function"?e:l;var r=e?e(n,t):l;return r===l?Xt(n,t,l,e):!!r}function hi(n){if(!N(n))return!1;var t=X(n);return t==le||t==So||typeof n.message=="string"&&typeof n.name=="string"&&!ne(n)}function jh(n){return typeof n=="number"&&Au(n)}function Gn(n){if(!U(n))return!1;var t=X(n);return t==se||t==Li||t==Ao||t==Ro}function Hf(n){return typeof n=="number"&&n==E(n)}function Qe(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=ht}function U(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}function N(n){return n!=null&&typeof n=="object"}var qf=tu?un(tu):ra;function ng(n,t){return n===t||Nr(n,t,ei(t))}function tg(n,t,e){return e=typeof e=="function"?e:l,Nr(n,t,ei(t),e)}function eg(n){return $f(n)&&n!=+n}function rg(n){if(Ga(n))throw new R(Ri);return Pu(n)}function ig(n){return n===null}function ug(n){return n==null}function $f(n){return typeof n=="number"||N(n)&&X(n)==Ft}function ne(n){if(!N(n)||X(n)!=Pn)return!1;var t=Re(n);if(t===null)return!0;var e=P.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&xe.call(e)==ts}var gi=eu?un(eu):ia;function fg(n){return Hf(n)&&n>=-9007199254740991&&n<=ht}var Kf=ru?un(ru):ua;function Ve(n){return typeof n=="string"||!y(n)&&N(n)&&X(n)==Dt}function on(n){return typeof n=="symbol"||N(n)&&X(n)==ae}var Lt=iu?un(iu):fa;function og(n){return n===l}function lg(n){return N(n)&&J(n)==Ut}function sg(n){return N(n)&&X(n)==Eo}var ag=He(Hr),cg=He(function(n,t){return n<=t});function zf(n){if(!n)return[];if(j(n))return Ve(n)?In(n):k(n);if(Ht&&n[Ht])return $l(n[Ht]());var t=J(n),e=t==An?mr:t==Sn?ve:mt;return e(n)}function Hn(n){if(!n)return n===0?n:0;if(n=wn(n),n===ue||n===-1/0){var t=n<0?-1:1;return t*po}return n===n?n:0}function E(n){var t=Hn(n),e=t%1;return t===t?e?t-e:t:0}function Zf(n){return n?it(E(n),0,Tn):0}function wn(n){if(typeof n=="number")return n;if(on(n))return fe;if(U(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=U(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=au(n);var e=Zo.test(n);return e||Jo.test(n)?Tl(n.slice(2),e?2:8):zo.test(n)?fe:+n}function Yf(n){return mn(n,nn(n))}function hg(n){return n?it(E(n),-9007199254740991,ht):n===0?n:0}function W(n){return n==null?"":fn(n)}var gg=yt(function(n,t){if(kt(t)||j(t)){mn(t,K(t),n);return}for(var e in t)P.call(t,e)&&Zt(n,e,t[e])}),Jf=yt(function(n,t){mn(t,nn(t),n)}),ke=yt(function(n,t,e,r){mn(t,nn(t),n,r)}),_g=yt(function(n,t,e,r){mn(t,K(t),n,r)}),pg=Un(Br);function vg(n,t){var e=Rt(n);return t==null?e:Eu(e,t)}var dg=L(function(n,t){n=B(n);var e=-1,r=t.length,i=r>2?t[2]:l;for(i&&Q(t[0],t[1],i)&&(r=1);++e<r;)for(var f=t[e],o=nn(f),s=-1,c=o.length;++s<c;){var _=o[s],p=n[_];(p===l||yn(p,At[_])&&!P.call(n,_))&&(n[_]=f[_])}return n}),wg=L(function(n){return n.push(l,cf),rn(Xf,l,n)});function xg(n,t){return fu(n,A(t,3),Ln)}function Ag(n,t){return fu(n,A(t,3),Mr)}function Sg(n,t){return n==null?n:Fr(n,A(t,3),nn)}function Ig(n,t){return n==null?n:Ou(n,A(t,3),nn)}function Rg(n,t){return n&&Ln(n,A(t,3))}function yg(n,t){return n&&Mr(n,A(t,3))}function Eg(n){return n==null?[]:Pe(n,K(n))}function Tg(n){return n==null?[]:Pe(n,nn(n))}function _i(n,t,e){var r=n==null?l:ut(n,t);return r===l?e:r}function Lg(n,t){return n!=null&&_f(n,t,Qs)}function pi(n,t){return n!=null&&_f(n,t,Vs)}var mg=ff(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Ae.call(t)),n[t]=e},di(tn)),Cg=ff(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Ae.call(t)),P.call(n,t)?n[t].push(e):n[t]=[e]},A),Og=L(Jt);function K(n){return j(n)?Ru(n):Gr(n)}function nn(n){return j(n)?Ru(n,!0):oa(n)}function bg(n,t){var e={};return t=A(t,3),Ln(n,function(r,i,f){Mn(e,t(r,i,f),r)}),e}function Wg(n,t){var e={};return t=A(t,3),Ln(n,function(r,i,f){Mn(e,i,t(r,i,f))}),e}var Pg=yt(function(n,t,e){Be(n,t,e)}),Xf=yt(function(n,t,e,r){Be(n,t,e,r)}),Bg=Un(function(n,t){var e={};if(n==null)return e;var r=!1;t=D(t,function(f){return f=Qn(f,n),r||(r=f.length>1),f}),mn(n,ni(n),e),r&&(e=pn(e,$n|yi|st,ma));for(var i=t.length;i--;)Zr(e,t[i]);return e});function Fg(n,t){return Qf(n,Xe(A(t)))}var Mg=Un(function(n,t){return n==null?{}:sa(n,t)});function Qf(n,t){if(n==null)return{};var e=D(ni(n),function(r){return[r]});return t=A(t),Gu(n,e,function(r,i){return t(r,i[0])})}function Dg(n,t,e){t=Qn(t,n);var r=-1,i=t.length;for(i||(i=1,n=l);++r<i;){var f=n==null?l:n[Cn(t[r])];f===l&&(r=i,f=e),n=Gn(f)?f.call(n):f}return n}function Ug(n,t,e){return n==null?n:Qt(n,t,e)}function Ng(n,t,e,r){return r=typeof r=="function"?r:l,n==null?n:Qt(n,t,e,r)}var Vf=sf(K),kf=sf(nn);function Gg(n,t,e){var r=y(n),i=r||kn(n)||Lt(n);if(t=A(t,4),e==null){var f=n&&n.constructor;i?e=r?new f:[]:U(n)?e=Gn(f)?Rt(Re(n)):{}:e={}}return(i?hn:Ln)(n,function(o,s,c){return t(e,o,s,c)}),e}function Hg(n,t){return n==null?!0:Zr(n,t)}function qg(n,t,e){return n==null?n:zu(n,t,Xr(e))}function $g(n,t,e,r){return r=typeof r=="function"?r:l,n==null?n:zu(n,t,Xr(e),r)}function mt(n){return n==null?[]:Lr(n,K(n))}function Kg(n){return n==null?[]:Lr(n,nn(n))}function zg(n,t,e){return e===l&&(e=t,t=l),e!==l&&(e=wn(e),e=e===e?e:0),t!==l&&(t=wn(t),t=t===t?t:0),it(wn(n),t,e)}function Zg(n,t,e){return t=Hn(t),e===l?(e=t,t=0):e=Hn(e),n=wn(n),ks(n,t,e)}function Yg(n,t,e){if(e&&typeof e!="boolean"&&Q(n,t,e)&&(t=e=l),e===l&&(typeof t=="boolean"?(e=t,t=l):typeof n=="boolean"&&(e=n,n=l)),n===l&&t===l?(n=0,t=1):(n=Hn(n),t===l?(t=n,n=0):t=Hn(t)),n>t){var r=n;n=t,t=r}if(e||n%1||t%1){var i=Su();return Y(n+i*(t-n+El("1e-"+((i+"").length-1))),t)}return $r(n,t)}var Jg=Et(function(n,t,e){return t=t.toLowerCase(),n+(e?jf(t):t)});function jf(n){return vi(W(n).toLowerCase())}function no(n){return n=W(n),n&&n.replace(Qo,Ul).replace(pl,"")}function Xg(n,t,e){n=W(n),t=fn(t);var r=n.length;e=e===l?r:it(E(e),0,r);var i=e;return e-=t.length,e>=0&&n.slice(e,i)==t}function Qg(n){return n=W(n),n&&Oo.test(n)?n.replace(Oi,Nl):n}function Vg(n){return n=W(n),n&&Mo.test(n)?n.replace(cr,"\\$&"):n}var kg=Et(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),jg=Et(function(n,t,e){return n+(e?" ":"")+t.toLowerCase()}),n_=ef("toLowerCase");function t_(n,t,e){n=W(n),t=E(t);var r=t?wt(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return Ge(Le(i),e)+n+Ge(Te(i),e)}function e_(n,t,e){n=W(n),t=E(t);var r=t?wt(n):0;return t&&r<t?n+Ge(t-r,e):n}function r_(n,t,e){n=W(n),t=E(t);var r=t?wt(n):0;return t&&r<t?Ge(t-r,e)+n:n}function i_(n,t,e){return e||t==null?t=0:t&&(t=+t),cs(W(n).replace(hr,""),t||0)}function u_(n,t,e){return(e?Q(n,t,e):t===l)?t=1:t=E(t),Kr(W(n),t)}function f_(){var n=arguments,t=W(n[0]);return n.length<3?t:t.replace(n[1],n[2])}var o_=Et(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()});function l_(n,t,e){return e&&typeof e!="number"&&Q(n,t,e)&&(t=e=l),e=e===l?Tn:e>>>0,e?(n=W(n),n&&(typeof t=="string"||t!=null&&!gi(t))&&(t=fn(t),!t&&dt(n))?Vn(In(n),0,e):n.split(t,e)):[]}var s_=Et(function(n,t,e){return n+(e?" ":"")+vi(t)});function a_(n,t,e){return n=W(n),e=e==null?0:it(E(e),0,n.length),t=fn(t),n.slice(e,e+t.length)==t}function c_(n,t,e){var r=u.templateSettings;e&&Q(n,t,e)&&(t=l),n=W(n),t=ke({},t,r,af);var i=ke({},t.imports,r.imports,af),f=K(i),o=Lr(i,f),s,c,_=0,p=t.interpolate||ce,v="__p += '",d=Cr((t.escape||ce).source+"|"+p.source+"|"+(p===bi?Ko:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),x="//# sourceURL="+(P.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Al+"]")+`
11
+ `;n.replace(d,function(I,m,O,ln,V,sn){return O||(O=ln),v+=n.slice(_,sn).replace(Vo,Gl),m&&(s=!0,v+=`' +
12
+ __e(`+m+`) +
13
+ '`),V&&(c=!0,v+=`';
14
+ `+V+`;
15
+ __p += '`),O&&(v+=`' +
16
+ ((__t = (`+O+`)) == null ? '' : __t) +
17
+ '`),_=sn+I.length,I}),v+=`';
18
+ `;var S=P.call(t,"variable")&&t.variable;if(!S)v=`with (obj) {
19
+ `+v+`
20
+ }
21
+ `;else if(qo.test(S))throw new R(oo);v=(c?v.replace(To,""):v).replace(Lo,"$1").replace(mo,"$1;"),v="function("+(S||"obj")+`) {
22
+ `+(S?"":`obj || (obj = {});
23
+ `)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
24
+ function print() { __p += __j.call(arguments, '') }
25
+ `:`;
26
+ `)+v+`return __p
27
+ }`;var T=eo(function(){return b(f,x+"return "+v).apply(l,o)});if(T.source=v,hi(T))throw T;return T}function h_(n){return W(n).toLowerCase()}function g_(n){return W(n).toUpperCase()}function __(n,t,e){if(n=W(n),n&&(e||t===l))return au(n);if(!n||!(t=fn(t)))return n;var r=In(n),i=In(t),f=cu(r,i),o=hu(r,i)+1;return Vn(r,f,o).join("")}function p_(n,t,e){if(n=W(n),n&&(e||t===l))return n.slice(0,_u(n)+1);if(!n||!(t=fn(t)))return n;var r=In(n),i=hu(r,In(t))+1;return Vn(r,0,i).join("")}function v_(n,t,e){if(n=W(n),n&&(e||t===l))return n.replace(hr,"");if(!n||!(t=fn(t)))return n;var r=In(n),i=cu(r,In(t));return Vn(r,i).join("")}function d_(n,t){var e=so,r=ao;if(U(t)){var i="separator"in t?t.separator:i;e="length"in t?E(t.length):e,r="omission"in t?fn(t.omission):r}n=W(n);var f=n.length;if(dt(n)){var o=In(n);f=o.length}if(e>=f)return n;var s=e-wt(r);if(s<1)return r;var c=o?Vn(o,0,s).join(""):n.slice(0,s);if(i===l)return c+r;if(o&&(s+=c.length-s),gi(i)){if(n.slice(s).search(i)){var _,p=c;for(i.global||(i=Cr(i.source,W(Wi.exec(i))+"g")),i.lastIndex=0;_=i.exec(p);)var v=_.index;c=c.slice(0,v===l?s:v)}}else if(n.indexOf(fn(i),s)!=s){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r}function w_(n){return n=W(n),n&&Co.test(n)?n.replace(Ci,Yl):n}var x_=Et(function(n,t,e){return n+(e?" ":"")+t.toUpperCase()}),vi=ef("toUpperCase");function to(n,t,e){return n=W(n),t=e?l:t,t===l?ql(n)?Ql(n):Pl(n):n.match(t)||[]}var eo=L(function(n,t){try{return rn(n,l,t)}catch(e){return hi(e)?e:new R(e)}}),A_=Un(function(n,t){return hn(t,function(e){e=Cn(e),Mn(n,e,ai(n[e],n))}),n});function S_(n){var t=n==null?0:n.length,e=A();return n=t?D(n,function(r){if(typeof r[1]!="function")throw new gn(an);return[e(r[0]),r[1]]}):[],L(function(r){for(var i=-1;++i<t;){var f=n[i];if(rn(f[0],this,r))return rn(f[1],this,r)}})}function I_(n){return Ys(pn(n,$n))}function di(n){return function(){return n}}function R_(n,t){return n==null||n!==n?t:n}var y_=uf(),E_=uf(!0);function tn(n){return n}function wi(n){return Bu(typeof n=="function"?n:pn(n,$n))}function T_(n){return Mu(pn(n,$n))}function L_(n,t){return Du(n,pn(t,$n))}var m_=L(function(n,t){return function(e){return Jt(e,n,t)}}),C_=L(function(n,t){return function(e){return Jt(n,e,t)}});function xi(n,t,e){var r=K(t),i=Pe(t,r);e==null&&!(U(t)&&(i.length||!r.length))&&(e=t,t=n,n=this,i=Pe(t,K(t)));var f=!(U(e)&&"chain"in e)||!!e.chain,o=Gn(n);return hn(i,function(s){var c=t[s];n[s]=c,o&&(n.prototype[s]=function(){var _=this.__chain__;if(f||_){var p=n(this.__wrapped__),v=p.__actions__=k(this.__actions__);return v.push({func:c,args:arguments,thisArg:n}),p.__chain__=_,p}return c.apply(n,zn([this.value()],arguments))})}),n}function O_(){return z._===this&&(z._=es),this}function Ai(){}function b_(n){return n=E(n),L(function(t){return Uu(t,n)})}var W_=Vr(D),P_=Vr(uu),B_=Vr(Ir);function ro(n){return ii(n)?Rr(Cn(n)):aa(n)}function F_(n){return function(t){return n==null?l:ut(n,t)}}var M_=of(),D_=of(!0);function Si(){return[]}function Ii(){return!1}function U_(){return{}}function N_(){return""}function G_(){return!0}function H_(n,t){if(n=E(n),n<1||n>ht)return[];var e=Tn,r=Y(n,Tn);t=A(t),n-=Tn;for(var i=Tr(r,t);++e<n;)t(e);return i}function q_(n){return y(n)?D(n,Cn):on(n)?[n]:k(Rf(W(n)))}function $_(n){var t=++ns;return W(n)+t}var K_=Ne(function(n,t){return n+t},0),z_=kr("ceil"),Z_=Ne(function(n,t){return n/t},1),Y_=kr("floor");function J_(n){return n&&n.length?We(n,tn,Dr):l}function X_(n,t){return n&&n.length?We(n,A(t,2),Dr):l}function Q_(n){return lu(n,tn)}function V_(n,t){return lu(n,A(t,2))}function k_(n){return n&&n.length?We(n,tn,Hr):l}function j_(n,t){return n&&n.length?We(n,A(t,2),Hr):l}var np=Ne(function(n,t){return n*t},1),tp=kr("round"),ep=Ne(function(n,t){return n-t},0);function rp(n){return n&&n.length?Er(n,tn):0}function ip(n,t){return n&&n.length?Er(n,A(t,2)):0}return u.after=Th,u.ary=Bf,u.assign=gg,u.assignIn=Jf,u.assignInWith=ke,u.assignWith=_g,u.at=pg,u.before=Ff,u.bind=ai,u.bindAll=A_,u.bindKey=Mf,u.castArray=Uh,u.chain=bf,u.chunk=Ya,u.compact=Ja,u.concat=Xa,u.cond=S_,u.conforms=I_,u.constant=di,u.countBy=rh,u.create=vg,u.curry=Df,u.curryRight=Uf,u.debounce=Nf,u.defaults=dg,u.defaultsDeep=wg,u.defer=Lh,u.delay=mh,u.difference=Qa,u.differenceBy=Va,u.differenceWith=ka,u.drop=ja,u.dropRight=nc,u.dropRightWhile=tc,u.dropWhile=ec,u.fill=rc,u.filter=uh,u.flatMap=lh,u.flatMapDeep=sh,u.flatMapDepth=ah,u.flatten=Lf,u.flattenDeep=ic,u.flattenDepth=uc,u.flip=Ch,u.flow=y_,u.flowRight=E_,u.fromPairs=fc,u.functions=Eg,u.functionsIn=Tg,u.groupBy=ch,u.initial=lc,u.intersection=sc,u.intersectionBy=ac,u.intersectionWith=cc,u.invert=mg,u.invertBy=Cg,u.invokeMap=gh,u.iteratee=wi,u.keyBy=_h,u.keys=K,u.keysIn=nn,u.map=Ze,u.mapKeys=bg,u.mapValues=Wg,u.matches=T_,u.matchesProperty=L_,u.memoize=Je,u.merge=Pg,u.mergeWith=Xf,u.method=m_,u.methodOf=C_,u.mixin=xi,u.negate=Xe,u.nthArg=b_,u.omit=Bg,u.omitBy=Fg,u.once=Oh,u.orderBy=ph,u.over=W_,u.overArgs=bh,u.overEvery=P_,u.overSome=B_,u.partial=ci,u.partialRight=Gf,u.partition=vh,u.pick=Mg,u.pickBy=Qf,u.property=ro,u.propertyOf=F_,u.pull=pc,u.pullAll=Cf,u.pullAllBy=vc,u.pullAllWith=dc,u.pullAt=wc,u.range=M_,u.rangeRight=D_,u.rearg=Wh,u.reject=xh,u.remove=xc,u.rest=Ph,u.reverse=li,u.sampleSize=Sh,u.set=Ug,u.setWith=Ng,u.shuffle=Ih,u.slice=Ac,u.sortBy=Eh,u.sortedUniq=Lc,u.sortedUniqBy=mc,u.split=l_,u.spread=Bh,u.tail=Cc,u.take=Oc,u.takeRight=bc,u.takeRightWhile=Wc,u.takeWhile=Pc,u.tap=Jc,u.throttle=Fh,u.thru=ze,u.toArray=zf,u.toPairs=Vf,u.toPairsIn=kf,u.toPath=q_,u.toPlainObject=Yf,u.transform=Gg,u.unary=Mh,u.union=Bc,u.unionBy=Fc,u.unionWith=Mc,u.uniq=Dc,u.uniqBy=Uc,u.uniqWith=Nc,u.unset=Hg,u.unzip=si,u.unzipWith=Of,u.update=qg,u.updateWith=$g,u.values=mt,u.valuesIn=Kg,u.without=Gc,u.words=to,u.wrap=Dh,u.xor=Hc,u.xorBy=qc,u.xorWith=$c,u.zip=Kc,u.zipObject=zc,u.zipObjectDeep=Zc,u.zipWith=Yc,u.entries=Vf,u.entriesIn=kf,u.extend=Jf,u.extendWith=ke,xi(u,u),u.add=K_,u.attempt=eo,u.camelCase=Jg,u.capitalize=jf,u.ceil=z_,u.clamp=zg,u.clone=Nh,u.cloneDeep=Hh,u.cloneDeepWith=qh,u.cloneWith=Gh,u.conformsTo=$h,u.deburr=no,u.defaultTo=R_,u.divide=Z_,u.endsWith=Xg,u.eq=yn,u.escape=Qg,u.escapeRegExp=Vg,u.every=ih,u.find=fh,u.findIndex=Ef,u.findKey=xg,u.findLast=oh,u.findLastIndex=Tf,u.findLastKey=Ag,u.floor=Y_,u.forEach=Wf,u.forEachRight=Pf,u.forIn=Sg,u.forInRight=Ig,u.forOwn=Rg,u.forOwnRight=yg,u.get=_i,u.gt=Kh,u.gte=zh,u.has=Lg,u.hasIn=pi,u.head=mf,u.identity=tn,u.includes=hh,u.indexOf=oc,u.inRange=Zg,u.invoke=Og,u.isArguments=lt,u.isArray=y,u.isArrayBuffer=Zh,u.isArrayLike=j,u.isArrayLikeObject=G,u.isBoolean=Yh,u.isBuffer=kn,u.isDate=Jh,u.isElement=Xh,u.isEmpty=Qh,u.isEqual=Vh,u.isEqualWith=kh,u.isError=hi,u.isFinite=jh,u.isFunction=Gn,u.isInteger=Hf,u.isLength=Qe,u.isMap=qf,u.isMatch=ng,u.isMatchWith=tg,u.isNaN=eg,u.isNative=rg,u.isNil=ug,u.isNull=ig,u.isNumber=$f,u.isObject=U,u.isObjectLike=N,u.isPlainObject=ne,u.isRegExp=gi,u.isSafeInteger=fg,u.isSet=Kf,u.isString=Ve,u.isSymbol=on,u.isTypedArray=Lt,u.isUndefined=og,u.isWeakMap=lg,u.isWeakSet=sg,u.join=hc,u.kebabCase=kg,u.last=dn,u.lastIndexOf=gc,u.lowerCase=jg,u.lowerFirst=n_,u.lt=ag,u.lte=cg,u.max=J_,u.maxBy=X_,u.mean=Q_,u.meanBy=V_,u.min=k_,u.minBy=j_,u.stubArray=Si,u.stubFalse=Ii,u.stubObject=U_,u.stubString=N_,u.stubTrue=G_,u.multiply=np,u.nth=_c,u.noConflict=O_,u.noop=Ai,u.now=Ye,u.pad=t_,u.padEnd=e_,u.padStart=r_,u.parseInt=i_,u.random=Yg,u.reduce=dh,u.reduceRight=wh,u.repeat=u_,u.replace=f_,u.result=Dg,u.round=tp,u.runInContext=a,u.sample=Ah,u.size=Rh,u.snakeCase=o_,u.some=yh,u.sortedIndex=Sc,u.sortedIndexBy=Ic,u.sortedIndexOf=Rc,u.sortedLastIndex=yc,u.sortedLastIndexBy=Ec,u.sortedLastIndexOf=Tc,u.startCase=s_,u.startsWith=a_,u.subtract=ep,u.sum=rp,u.sumBy=ip,u.template=c_,u.times=H_,u.toFinite=Hn,u.toInteger=E,u.toLength=Zf,u.toLower=h_,u.toNumber=wn,u.toSafeInteger=hg,u.toString=W,u.toUpper=g_,u.trim=__,u.trimEnd=p_,u.trimStart=v_,u.truncate=d_,u.unescape=w_,u.uniqueId=$_,u.upperCase=x_,u.upperFirst=vi,u.each=Wf,u.eachRight=Pf,u.first=mf,xi(u,function(){var n={};return Ln(u,function(t,e){P.call(u.prototype,e)||(n[e]=t)}),n}(),{chain:!1}),u.VERSION=Ct,hn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),hn(["drop","take"],function(n,t){C.prototype[n]=function(e){e=e===l?1:$(E(e),0);var r=this.__filtered__&&!t?new C(this):this.clone();return r.__filtered__?r.__takeCount__=Y(e,r.__takeCount__):r.__views__.push({size:Y(e,Tn),type:n+(r.__dir__<0?"Right":"")}),r},C.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),hn(["filter","map","takeWhile"],function(n,t){var e=t+1,r=e==Ti||e==_o;C.prototype[n]=function(i){var f=this.clone();return f.__iteratees__.push({iteratee:A(i,3),type:e}),f.__filtered__=f.__filtered__||r,f}}),hn(["head","last"],function(n,t){var e="take"+(t?"Right":"");C.prototype[n]=function(){return this[e](1).value()[0]}}),hn(["initial","tail"],function(n,t){var e="drop"+(t?"":"Right");C.prototype[n]=function(){return this.__filtered__?new C(this):this[e](1)}}),C.prototype.compact=function(){return this.filter(tn)},C.prototype.find=function(n){return this.filter(n).head()},C.prototype.findLast=function(n){return this.reverse().find(n)},C.prototype.invokeMap=L(function(n,t){return typeof n=="function"?new C(this):this.map(function(e){return Jt(e,n,t)})}),C.prototype.reject=function(n){return this.filter(Xe(A(n)))},C.prototype.slice=function(n,t){n=E(n);var e=this;return e.__filtered__&&(n>0||t<0)?new C(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==l&&(t=E(t),e=t<0?e.dropRight(-t):e.take(t-n)),e)},C.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},C.prototype.toArray=function(){return this.take(Tn)},Ln(C.prototype,function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=u[r?"take"+(t=="last"?"Right":""):t],f=r||/^find/.test(t);i&&(u.prototype[t]=function(){var o=this.__wrapped__,s=r?[1]:arguments,c=o instanceof C,_=s[0],p=c||y(o),v=function(m){var O=i.apply(u,zn([m],s));return r&&d?O[0]:O};p&&e&&typeof _=="function"&&_.length!=1&&(c=p=!1);var d=this.__chain__,x=!!this.__actions__.length,S=f&&!d,T=c&&!x;if(!f&&p){o=T?o:new C(this);var I=n.apply(o,s);return I.__actions__.push({func:ze,args:[v],thisArg:l}),new _n(I,d)}return S&&T?n.apply(this,s):(I=this.thru(v),S?r?I.value()[0]:I.value():I)})}),hn(["pop","push","shift","sort","splice","unshift"],function(n){var t=de[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var f=this.value();return t.apply(y(f)?f:[],i)}return this[e](function(o){return t.apply(y(o)?o:[],i)})}}),Ln(C.prototype,function(n,t){var e=u[t];if(e){var r=e.name+"";P.call(It,r)||(It[r]=[]),It[r].push({name:t,func:e})}}),It[Ue(l,ct).name]=[{name:"wrapper",func:l}],C.prototype.clone=ws,C.prototype.reverse=xs,C.prototype.value=As,u.prototype.at=Xc,u.prototype.chain=Qc,u.prototype.commit=Vc,u.prototype.next=kc,u.prototype.plant=nh,u.prototype.reverse=th,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=eh,u.prototype.first=u.prototype.head,Ht&&(u.prototype[Ht]=jc),u},xt=Vl();nt?((nt.exports=xt)._=xt,wr._=xt):z._=xt}).call(fp)}(te,te.exports)),te.exports}var fo=op();class lp extends up.CustomLogger{encode(en,l){try{this.logDebug("encode CustomEncoder",JSON.stringify(en));const Ct=JSON.stringify(en),jn=Buffer.from(Ct).toString("base64");return JSON.stringify({info:jn,uuid:l})}catch{return this.logError("error convert to base64"),JSON.stringify({info:en,uuid:l})}}decode(en){try{fo.isString(en)&&(en=JSON.parse(en));const{info:l}=en;this.logDebug("decode CustomEncoder",JSON.stringify(l));const Ct=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;if(fo.isString(l)&&Ct.test(l)){const jn=Buffer.from(l,"base64").toString();return JSON.parse(jn)}}catch{this.logError("error convert to base64")}return en}}exports.CustomEncoder=lp;
@@ -0,0 +1 @@
1
+ "use strict";var c=Object.defineProperty;var o=(r,t,e)=>t in r?c(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>o(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("node-jose"),y=require("crypto"),E=require("./mp-front-cli-encoder.cjs.js"),u=r=>r.replace(/[\u00A0-\uffff]/gu,t=>"\\u"+("000"+t.charCodeAt(0).toString(16)).slice(-4));class g extends E.CustomEncoder{constructor(){super(...arguments);i(this,"signatureKey")}async generateKey(){const e=process.env.SECRET_SIGNATURE;if(!e)throw new Error("Define a SECRET_SIGNATURE from `.env`");this.signatureKey=await s.JWK.asKey({kty:"oct",k:s.util.base64url.encode(e)})}async encrypt(e){if(await this.generateKey(),!this.signatureKey)throw new Error("PLEASE CREATE A KEY TO ENCRYPT 🙂");const n=JSON.stringify(e),a=u(n);return await s.JWE.createEncrypt({format:"compact"},this.signatureKey).update(a).final()}async decrypt(e){if(await this.generateKey(),!this.signatureKey)throw new Error("PLEASE CREATE A KEY TO DECRYPT 🙂");const{payload:n}=await s.JWE.createDecrypt(this.signatureKey).decrypt(e);return JSON.parse(n.toString())}async isEncrypted(e){this.logInfo("EncryptionHandler",e);try{return await this.decrypt(e??""),this.logDebug("EncryptionHandler","IS ENCRYPTED 🥵"),!0}catch(n){return this.logWarn("EncryptionHandler",JSON.stringify(n)),this.logDebug("EncryptionHandler","IS NOT ENCRYPTED 🙂"),!1}}generateSHA(e){const n=JSON.stringify(e);return y.createHash("sha256").update(n).digest("hex")}}exports.CustomEncrypter=g;
@@ -0,0 +1 @@
1
+ "use strict";var a=Object.defineProperty;var c=(s,t,e)=>t in s?a(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var n=(s,t,e)=>c(s,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("rxjs"),d=require("./mp-front-cli-encrypter.cjs.js"),p=require("./service-token-CkqXJlgW.cjs");class u extends d.CustomEncrypter{constructor(e={}){super();n(this,"headers");this.headers={Accept:"application/json","Content-Type":"application/vnd.api+json",...e}}addTokenBackend(e){return this.logDebug("addTokenBackend CustomHeader",JSON.stringify(e)),new p.ServiceToken().get().pipe(r.switchMap(o=>r.of({...e,Authorization:`Bearer ${o}`})))}getHeaders(e={},o=!0){return this.logDebug("getHeaders CustomHeader"),o?this.addTokenBackend(e).pipe(r.switchMap(i=>r.of({...i,...this.headers}))):r.of(e).pipe(r.switchMap(i=>r.of({...i,...this.headers})))}}exports.CustomHeader=u;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D-Gvi_du.cjs"),r={errors:{}},n={validationMessages:{}},a={validationMessages:{mixed:{required:"Campo requerido",default:"Dato inválido",notType:"Ingresa un dato válido",min:"Debe tener al menos {{min}} caracteres",max:"Debe tener máximo {{max}} caracteres",matches:"Dato no válido"},number:{min:"Debe ser mayor que {{min}}",max:"Debe ser menor a {{max}}",lessThan:"Debe ser menor que {{less}}",moreThan:"Debe ser mayor que {{more}}",positive:"Debe ser un número positivo",negative:"Debe ser un número negativo",integer:"Debe ser un número entero"},string:{length:"Debe tener exactamente {{length}} caracteres",min:"Debe tener al menos {{min}} caracteres",max:"Debe tener máximo {{max}} caracteres",email:"E-mail inválido",url:"Debe ter un formato de URL válida",trim:"No debe contener espacios no iniciar con uno.",matches:"Dato no válido"},date:{min:"Debe ser después de {{min}}",max:"Debe ser antes de {{max}}"},array:{min:"Debe tener mínimo {{min}} items",max:"Debe tener máximo {{max}} items",length:"Debe tener {{max}} items"}}};exports.errorES_MX=e.translation;exports.errorEN_EN=r;exports.validatorEN_EN=n;exports.validatorES_MX=a;
@@ -0,0 +1 @@
1
+ "use strict";var n=Object.defineProperty;var l=(r,o,t)=>o in r?n(r,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[o]=t;var s=(r,o,t)=>l(r,typeof o!="symbol"?o+"":o,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var g=(r=>(r[r.error=0]="error",r[r.warn=1]="warn",r[r.info=2]="info",r[r.http=3]="http",r[r.verbose=4]="verbose",r[r.debug=5]="debug",r[r.silly=6]="silly",r))(g||{});const e={error:"\x1B[31m",warn:"\x1B[33m",info:"\x1B[34m",http:"\x1B[35m",verbose:"\x1B[32m",debug:"\x1B[37m",silly:"\x1B[37m"};class a{constructor(){s(this,"appName");s(this,"logsLevel");s(this,"silentLogs");this.appName=process.env.NEXT_PUBLIC_APP_LOGS_NAME,this.logsLevel=process.env.NEXT_PUBLIC_LOGS_LEVEL,this.silentLogs=process.env.NEXT_PUBLIC_SILENT_LOGS==="true"}consoleFormat(o,t){try{return`${e[o]} ${this.appName} [${new Date().toISOString()}] [${o.toUpperCase()}]: ${t.toString()} \x1B[37m`}catch{return t}}log(o,t){if(o<=g[this.logsLevel]&&!this.silentLogs)try{console.log(this.consoleFormat(g[o],t))}catch(i){console.error("Fail to parse log",i)}}logError(...o){this.log(0,o)}logWarn(...o){this.log(1,o)}logInfo(...o){this.log(2,o)}logHttp(...o){this.log(3,o)}logVerbose(...o){this.log(4,o)}logDebug(...o){this.log(5,o)}logSilly(...o){this.log(6,o)}}exports.CustomLogger=a;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./service-token-CkqXJlgW.cjs");exports.ServiceToken=e.ServiceToken;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./loading-handler-CVkAHN_A.cjs");exports.LoadingHandler=e.LoadingHandler;exports.MessageHandler=e.MessageHandler;exports.RxSubjectManager=e.RxSubjectManager;
@@ -1,6 +1,6 @@
1
- import { A as r, E as s, F as o, a as t, b as c } from "./fetch-service-parent-be-B9aQqRUg.js";
1
+ import { A as r, E as s, F as o, a as t, b as c } from "./fetch-service-parent-be-B7dH5eoV.js";
2
2
  import { L as n, M as S, R as d } from "./loading-handler-Br21zGTA.js";
3
- import { S as F } from "./service-token-DceocCHP.js";
3
+ import { S as F } from "./service-token-CK4mGUv8.js";
4
4
  export {
5
5
  r as ApiMiddleware,
6
6
  s as ErrorCatalog,
@@ -1,4 +1,4 @@
1
- import { CustomLogger as up } from "./mp-front-cli-logger.es.js";
1
+ import { CustomLogger as up } from "./mp-front-cli7.js";
2
2
  var je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, te = { exports: {} };
3
3
  /**
4
4
  * @license
@@ -1,6 +1,6 @@
1
- import { A as r, E as s, F as o, a as t, b as c } from "./fetch-service-parent-be-B9aQqRUg.js";
1
+ import { A as r, E as s, F as o, a as t, b as c } from "./fetch-service-parent-be-B7dH5eoV.js";
2
2
  import { L as n, M as S, R as d } from "./loading-handler-Br21zGTA.js";
3
- import { S as F } from "./service-token-DceocCHP.js";
3
+ import { S as F } from "./service-token-CK4mGUv8.js";
4
4
  export {
5
5
  r as ApiMiddleware,
6
6
  s as ErrorCatalog,
@@ -0,0 +1,4 @@
1
+ import { S as r } from "./service-token-CK4mGUv8.js";
2
+ export {
3
+ r as ServiceToken
4
+ };
@@ -2,8 +2,8 @@ var p = Object.defineProperty;
2
2
  var d = (r, t, e) => t in r ? p(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var n = (r, t, e) => d(r, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { switchMap as a, of as o } from "rxjs";
5
- import { CustomEncrypter as c } from "./mp-front-cli-encrypter.es.js";
6
- import { S as u } from "./service-token-DceocCHP.js";
5
+ import { CustomEncrypter as c } from "./mp-front-cli8.js";
6
+ import { S as u } from "./service-token-CK4mGUv8.js";
7
7
  class f extends c {
8
8
  constructor(e = {}) {
9
9
  super();
@@ -1,7 +1,7 @@
1
1
  var S = Object.defineProperty;
2
2
  var p = (n, r, t) => r in n ? S(n, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[r] = t;
3
3
  var E = (n, r, t) => p(n, typeof r != "symbol" ? r + "" : r, t);
4
- import { CustomEncrypter as u } from "./mp-front-cli-encrypter.es.js";
4
+ import { CustomEncrypter as u } from "./mp-front-cli8.js";
5
5
  import { C as R } from "./custom-redis-BMPP_XZi.js";
6
6
  const a = process.env.TIMEOUT_SESSION_MINUTES;
7
7
  var d = /* @__PURE__ */ ((n) => (n.NOT_REFRESH = "NOT_REFRESH", n.REFRESH = "REFRESH", n))(d || {});
@@ -3,7 +3,7 @@ var c = (r, e, t) => e in r ? o(r, e, { enumerable: !0, configurable: !0, writab
3
3
  var i = (r, e, t) => c(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  import a from "node-jose";
5
5
  import { createHash as E } from "crypto";
6
- import { CustomEncoder as y } from "./mp-front-cli-encoder.es.js";
6
+ import { CustomEncoder as y } from "./mp-front-cli11.js";
7
7
  const p = (r) => r.replace(/[\u00A0-\uffff]/gu, (e) => "\\u" + ("000" + e.charCodeAt(0).toString(16)).slice(-4));
8
8
  class S extends y {
9
9
  constructor() {
@@ -1,4 +1,4 @@
1
- import { t } from "./index-B_86KXmg.js";
1
+ import { t } from "./index-Dy5KNkhq.js";
2
2
  const e = {
3
3
  errors: {}
4
4
  }, a = {
@@ -2,7 +2,7 @@ var G = Object.defineProperty;
2
2
  var J = (r, t, e) => t in r ? G(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var m = (r, t, e) => J(r, typeof t != "symbol" ? t + "" : t, e);
4
4
  import { switchMap as B, of as H, catchError as V } from "rxjs";
5
- import { CustomLogger as q } from "./mp-front-cli-logger.es.js";
5
+ import { CustomLogger as q } from "./mp-front-cli7.js";
6
6
  var O = function(r, t) {
7
7
  return O = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
8
8
  e.__proto__ = n;
@@ -0,0 +1,3 @@
1
+ "use strict";var G=Object.defineProperty;var q=(r,t,e)=>t in r?G(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var m=(r,t,e)=>q(r,typeof t!="symbol"?t+"":t,e);const S=require("rxjs"),J=require("./mp-front-cli-logger.cjs.js");var O=function(r,t){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},O(r,t)};function x(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");O(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var g=function(){return g=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},g.apply(this,arguments)};function V(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(r);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(r,n[i])&&(e[n[i]]=r[n[i]]);return e}function N(r,t,e,n){function i(o){return o instanceof e?o:new e(function(c){c(o)})}return new(e||(e=Promise))(function(o,c){function a(l){try{u(n.next(l))}catch(p){c(p)}}function s(l){try{u(n.throw(l))}catch(p){c(p)}}function u(l){l.done?o(l.value):i(l.value).then(a,s)}u((n=n.apply(r,t||[])).next())})}function C(r,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,c=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return c.next=a(0),c.throw=a(1),c.return=a(2),typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(u){return function(l){return s([u,l])}}function s(u){if(n)throw new TypeError("Generator is already executing.");for(;c&&(c=0,u[0]&&(e=0)),e;)try{if(n=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,i=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){e.label=u[1];break}if(u[0]===6&&e.label<o[1]){e.label=o[1],o=u;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(u);break}o[2]&&e.ops.pop(),e.trys.pop();continue}u=t.call(r,e)}catch(l){u=[6,l],i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function _(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,o=[],c;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(a){c={error:a}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(c)throw c.error}}return o}function I(r,t,e){if(e||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return r.concat(o||Array.prototype.slice.call(t))}function A(r){return this instanceof A?(this.v=r,this):new A(r)}function W(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",c),i[Symbol.asyncIterator]=function(){return this},i;function c(f){return function(d){return Promise.resolve(d).then(f,p)}}function a(f,d){n[f]&&(i[f]=function(h){return new Promise(function(Y,$){o.push([f,h,Y,$])>1||s(f,h)})},d&&(i[f]=d(i[f])))}function s(f,d){try{u(n[f](d))}catch(h){v(o[0][3],h)}}function u(f){f.value instanceof A?Promise.resolve(f.value.v).then(l,p):v(o[0][2],f)}function l(f){s("next",f)}function p(f){s("throw",f)}function v(f,d){f(d),o.shift(),o.length&&s(o[0][0],o[0][1])}}function Q(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof _=="function"?_(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(o){e[o]=r[o]&&function(c){return new Promise(function(a,s){c=r[o](c),i(a,s,c.done,c.value)})}}function i(o,c,a,s){Promise.resolve(s).then(function(u){o({value:u,done:a})},c)}}function y(r){return typeof r=="function"}function X(r){var t=function(n){Error.call(n),n.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var T=X(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
2
+ `+e.map(function(n,i){return i+1+") "+n.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=e}});function H(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var U=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,n,i,o;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var a=_(c),s=a.next();!s.done;s=a.next()){var u=s.value;u.remove(this)}}catch(h){t={error:h}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else c.remove(this);var l=this.initialTeardown;if(y(l))try{l()}catch(h){o=h instanceof T?h.errors:[h]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var v=_(p),f=v.next();!f.done;f=v.next()){var d=f.value;try{j(d)}catch(h){o=o??[],h instanceof T?o=I(I([],P(o)),P(h.errors)):o.push(h)}}}catch(h){n={error:h}}finally{try{f&&!f.done&&(i=v.return)&&i.call(v)}finally{if(n)throw n.error}}}if(o)throw new T(o)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)j(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&H(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&H(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}();U.EMPTY;function K(r){return r instanceof U||r&&"closed"in r&&y(r.remove)&&y(r.add)&&y(r.unsubscribe)}function j(r){y(r)?r():r.unsubscribe()}var Z={Promise:void 0},z={setTimeout:function(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return setTimeout.apply(void 0,I([r,t],P(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function D(r){z.setTimeout(function(){throw r})}function k(){}function rr(r){r()}var R=function(r){x(t,r);function t(e){var n=r.call(this)||this;return n.isStopped=!1,e?(n.destination=e,K(e)&&e.add(n)):n.destination=nr,n}return t.create=function(e,n,i){return new E(e,n,i)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(U),er=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){w(n)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){w(n)}else w(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){w(e)}},r}(),E=function(r){x(t,r);function t(e,n,i){var o=r.call(this)||this,c;return y(e)||!e?c={next:e??void 0,error:n??void 0,complete:i??void 0}:c=e,o.destination=new er(c),o}return t}(R);function w(r){D(r)}function tr(r){throw r}var nr={closed:!0,next:k,error:tr,complete:k};function or(r,t,e,n,i){return new ir(r,t,e,n,i)}var ir=function(r){x(t,r);function t(e,n,i,o,c,a){var s=r.call(this,e)||this;return s.onFinalize=c,s.shouldUnsubscribe=a,s._next=n?function(u){try{n(u)}catch(l){e.error(l)}}:r.prototype._next,s._error=o?function(u){try{o(u)}catch(l){e.error(l)}finally{this.unsubscribe()}}:r.prototype._error,s._complete=i?function(){try{i()}catch(u){e.error(u)}finally{this.unsubscribe()}}:r.prototype._complete,s}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(R),B=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function cr(r){return r}function ur(r){return r.length===0?cr:r.length===1?r[0]:function(e){return r.reduce(function(n,i){return i(n)},e)}}var b=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,n){var i=this,o=ar(t)?t:new E(t,e,n);return rr(function(){var c=i,a=c.operator,s=c.source;o.add(a?a.call(o,s):s?i._subscribe(o):i._trySubscribe(o))}),o},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var n=this;return e=L(e),new e(function(i,o){var c=new E({next:function(a){try{t(a)}catch(s){o(s),c.unsubscribe()}},error:o,complete:i});n.subscribe(c)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[B]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ur(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=L(t),new t(function(n,i){var o;e.subscribe(function(c){return o=c},function(c){return i(c)},function(){return n(o)})})},r.create=function(t){return new r(t)},r}();function L(r){var t;return(t=r??Z.Promise)!==null&&t!==void 0?t:Promise}function sr(r){return r&&y(r.next)&&y(r.error)&&y(r.complete)}function ar(r){return r&&r instanceof R||sr(r)&&K(r)}var fr=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function lr(r){return y(r==null?void 0:r.then)}function hr(r){return y(r[B])}function yr(r){return Symbol.asyncIterator&&y(r==null?void 0:r[Symbol.asyncIterator])}function pr(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function vr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var dr=vr();function br(r){return y(r==null?void 0:r[dr])}function mr(r){return W(this,arguments,function(){var e,n,i,o;return C(this,function(c){switch(c.label){case 0:e=r.getReader(),c.label=1;case 1:c.trys.push([1,,9,10]),c.label=2;case 2:return[4,A(e.read())];case 3:return n=c.sent(),i=n.value,o=n.done,o?[4,A(void 0)]:[3,5];case 4:return[2,c.sent()];case 5:return[4,A(i)];case 6:return[4,c.sent()];case 7:return c.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function Ar(r){return y(r==null?void 0:r.getReader)}function Sr(r){if(r instanceof b)return r;if(r!=null){if(hr(r))return _r(r);if(fr(r))return wr(r);if(lr(r))return gr(r);if(yr(r))return F(r);if(br(r))return Tr(r);if(Ar(r))return Or(r)}throw pr(r)}function _r(r){return new b(function(t){var e=r[B]();if(y(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function wr(r){return new b(function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()})}function gr(r){return new b(function(t){r.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,D)})}function Tr(r){return new b(function(t){var e,n;try{for(var i=_(r),o=i.next();!o.done;o=i.next()){var c=o.value;if(t.next(c),t.closed)return}}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}t.complete()})}function F(r){return new b(function(t){Pr(r,t).catch(function(e){return t.error(e)})})}function Or(r){return F(mr(r))}function Pr(r,t){var e,n,i,o;return N(this,void 0,void 0,function(){var c,a;return C(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),e=Q(r),s.label=1;case 1:return[4,e.next()];case 2:if(n=s.sent(),!!n.done)return[3,4];if(c=n.value,t.next(c),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=s.sent(),i={error:a},[3,11];case 6:return s.trys.push([6,,9,10]),n&&!n.done&&(o=e.return)?[4,o.call(e)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function M(r,t){t===void 0&&(t={});var e=t.selector,n=V(t,["selector"]);return new b(function(i){var o=new AbortController,c=o.signal,a=!0,s=n.signal;if(s)if(s.aborted)o.abort();else{var u=function(){c.aborted||o.abort()};s.addEventListener("abort",u),i.add(function(){return s.removeEventListener("abort",u)})}var l=g(g({},n),{signal:c}),p=function(v){a=!1,i.error(v)};return fetch(r,l).then(function(v){e?Sr(e(v)).subscribe(or(i,void 0,function(){a=!1,i.complete()},p)):(a=!1,i.next(v),i.complete())}).catch(p),function(){a&&o.abort()}})}class Ir extends J.CustomLogger{constructor(){super();m(this,"API_AUTH_BACK_URL");m(this,"API_AUTH_BACK_USERNAME_AUTH");m(this,"API_AUTH_BACK_PASSWORD_AUTH");m(this,"headers");m(this,"ID",process.env.ID_FRONT??"NOT_AVAILABLE");this.API_AUTH_BACK_URL=process.env.API_AUTH_BACK_URL,this.API_AUTH_BACK_USERNAME_AUTH=process.env.API_AUTH_BACK_USERNAME_AUTH,this.API_AUTH_BACK_PASSWORD_AUTH=process.env.API_AUTH_BACK_PASSWORD_AUTH,this.headers={Accept:"application/json","Content-Type":"application/vnd.api+json"}}get(){return this.logDebug("get ServiceToken"),M(this.API_AUTH_BACK_URL,{method:"POST",headers:this.headers,body:JSON.stringify({data:{id:this.ID,type:"AuthUser",attributes:{username:this.API_AUTH_BACK_USERNAME_AUTH,password:this.API_AUTH_BACK_PASSWORD_AUTH}}})}).pipe(S.switchMap(e=>e.json()),S.switchMap(e=>{var n;return this.logDebug(`ServiceToken <URL>: \x1B[33m ${this.API_AUTH_BACK_URL} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(this.headers)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(e)} \x1B[37m`),S.of(((n=e==null?void 0:e.data.attributes)==null?void 0:n.token)||"")}),S.catchError(e=>(this.logError(`ServiceToken ${e}`),S.of(""))))}}exports.ServiceToken=Ir;exports.fromFetch=M;
@@ -0,0 +1 @@
1
+ "use strict";const n=[];for(let i=0;i<256;++i)n.push((i+256).toString(16).slice(1));function c(i,u=0){return n[i[u+0]]+n[i[u+1]]+n[i[u+2]]+n[i[u+3]]+"-"+n[i[u+4]]+n[i[u+5]]+"-"+n[i[u+6]]+n[i[u+7]]+"-"+n[i[u+8]]+n[i[u+9]]+"-"+n[i[u+10]]+n[i[u+11]]+n[i[u+12]]+n[i[u+13]]+n[i[u+14]]+n[i[u+15]]}exports.unsafeStringify=c;
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "2.1.0-next-5",
3
+ "version": "2.1.1-next-0",
4
4
  "private": false,
5
5
  "type": "module",
6
+ "main": "./dist/mp-front-cli-all.cjs",
7
+ "module": "./dist/mp-front-cli-all.js",
6
8
  "scripts": {
7
9
  "build": "tsc && vite build",
8
10
  "package": "npm pack",
@@ -20,54 +22,65 @@
20
22
  "exports": {
21
23
  ".": {
22
24
  "types": "./dist/index.d.ts",
23
- "import": "./dist/mp-front-cli-all.es.js"
25
+ "import": "./dist/mp-front-cli-all.js",
26
+ "require": "./dist/mp-front-cli-all.cjs"
24
27
  },
25
28
  "./core": {
26
29
  "types": "./dist/core/index.d.ts",
27
- "import": "./dist/mp-front-cli-core.es.js"
30
+ "import": "./dist/mp-front-cli-core.js",
31
+ "require": "./dist/mp-front-cli-core.cjs"
28
32
  },
29
33
  "./core/rxjs": {
30
34
  "types": "./dist/core/utils/rxjs/index.d.ts",
31
- "import": "./dist/mp-front-cli-utils-rxjs.es.js"
35
+ "import": "./dist/mp-front-cli-utils-rxjs.js",
36
+ "require": "./dist/mp-front-cli-utils-rxjs.cjs"
32
37
  },
33
38
  "./core/encoder": {
34
39
  "types": "./dist/core/utils/custom-encoder.d.ts",
35
- "import": "./dist/mp-front-cli-encoder.es.js"
40
+ "import": "./dist/mp-front-cli-encoder.js",
41
+ "require": "./dist/mp-front-cli-encoder.cjs"
36
42
  },
37
43
  "./core/header": {
38
44
  "types": "./dist/core/utils/custom-header.d.ts",
39
- "import": "./dist/mp-front-cli-header.es.js"
45
+ "import": "./dist/mp-front-cli-header.js",
46
+ "require": "./dist/mp-front-cli-header.cjs"
40
47
  },
41
48
  "./core/logger": {
42
49
  "types": "./dist/core/utils/custom-logger.d.ts",
43
- "import": "./dist/mp-front-cli-logger.es.js"
50
+ "import": "./dist/mp-front-cli-logger.js",
51
+ "require": "./dist/mp-front-cli-logger.cjs"
44
52
  },
45
53
  "./core/encrypter": {
46
54
  "types": "./dist/core/utils/custom-encrypter.d.ts",
47
- "import": "./dist/mp-front-cli-encrypter.es.js"
55
+ "import": "./dist/mp-front-cli-encrypter.js",
56
+ "require": "./dist/mp-front-cli-encrypter.cjs"
48
57
  },
49
58
  "./core/cache": {
50
59
  "types": "./dist/core/utils/custom-cache.d.ts",
51
- "import": "./dist/mp-front-cli-cache.es.js"
60
+ "import": "./dist/mp-front-cli-cache.js",
61
+ "require": "./dist/mp-front-cli-cache.cjs"
52
62
  },
53
63
  "./core/adapter": {
54
64
  "types": "./dist/core/utils/custom-adapter.d.ts",
55
- "import": "./dist/mp-front-cli-adapter.es.js"
65
+ "import": "./dist/mp-front-cli-adapter.js",
66
+ "require": "./dist/mp-front-cli-adapter.cjs"
56
67
  },
57
68
  "./core/services": {
58
69
  "types": "./dist/core/services/index.d.ts",
59
- "import": "./dist/mp-front-cli-services.es.js"
70
+ "import": "./dist/mp-front-cli-services.js",
71
+ "require": "./dist/mp-front-cli-services.cjs"
60
72
  },
61
73
  "./locale": {
62
74
  "types": "./dist/lang/index.d.ts",
63
- "import": "./dist/mp-front-cli-locale.es.js"
75
+ "import": "./dist/mp-front-cli-locale.js",
76
+ "require": "./dist/mp-front-cli-locale.cjs"
64
77
  },
65
78
  "./types": {
66
79
  "types": "./dist/core/interfaces/index.d.ts"
67
80
  }
68
81
  },
69
82
  "peerDependencies": {
70
- "i18next": "24.2.1",
83
+ "i18next": "25.2.0",
71
84
  "ioredis": "5.3.2",
72
85
  "next-auth": "4.24.11",
73
86
  "node-jose": "2.2.0",
@@ -91,8 +104,8 @@
91
104
  "globals": "15.14.0",
92
105
  "husky": "9.1.7",
93
106
  "typescript": "5.7.2",
94
- "vite": "6.0.11",
107
+ "vite": "6.3.5",
95
108
  "vite-plugin-dts": "4.5.0",
96
109
  "vite-tsconfig-paths": "5.1.4"
97
110
  }
98
- }
111
+ }
@@ -1,4 +0,0 @@
1
- import { S as r } from "./service-token-DceocCHP.js";
2
- export {
3
- r as ServiceToken
4
- };