Changeset 2186517
- Timestamp:
- 11/05/2019 09:26:01 PM (6 years ago)
- Location:
- piri-faq-ai-assistant/trunk
- Files:
-
- 4 edited
-
README.md (modified) (1 diff)
-
assets/js/widget.js (modified) (1 diff)
-
piri-faq-ai-assistant.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
piri-faq-ai-assistant/trunk/README.md
r2186504 r2186517 20 20 **Changelog** 21 21 22 > ##### v1.2.1 ( 6th oct'19 ) 23 24 - Minor bug fixes 25 22 26 > ##### v1.2 ( 6th oct'19 ) 23 27 -
piri-faq-ai-assistant/trunk/assets/js/widget.js
r2186504 r2186517 37 37 * @license MIT 38 38 */ 39 t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(13),i=n(130),o=n(328),a=n(329),u=n(135);function s(t){this.defaults=t,this.interceptors={request:new o,response:new o}}s.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=u(this.defaults,t)).method=t.method?t.method.toLowerCase():"get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},s.prototype.getUri=function(t){return t=u(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}})),t.exports=s},function(t,e,n){"use strict";var r=n(13);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(13),i=n(330),o=n(131),a=n(132),u=n(338),s=n(339);function l(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return l(t),t.baseURL&&!u(t.url)&&(t.url=s(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return l(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(l(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var s,l=[],c=!1,f=-1;function p(){c&&s&&(c=!1,s.length?l=s.concat(l):f=-1,l.length&&d())}function d(){if(!c){var t=u(p);c=!0;for(var e=l.length;e;){for(s=l,l=[];++f<e;)s&&s[f].run();f=-1,e=l.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new h(t,e)),1!==l.length||c||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(134);t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(13),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(i)&&u.push("path="+i),r.isString(o)&&u.push("domain="+o),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(136);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(343),i=n(148),o=n(151),a=n(149);t.exports={Parser:r,ProcessingInstructions:i,IsValidNodeDefinitions:o,ProcessNodeDefinitions:a}},function(t,e,n){"use strict";var r=n(344),i=n(346),o=n(350),a=n(361),u=n(364),s=n(367).Parser,l=n(95).DomHandler,c=n(148),f=n(151),p=n(150);t.exports=function(t){function e(e,n,c,f){var d=function(e){(t=t||{}).decodeEntities=!0;var n=new l;return new s(n,t).parseComplete(e),n.dom.filter((function(t){return"directive"!==t.type}))}(e).map((function(t,e){return function t(e,n,s,l,c){if(n(e)){r((function(t){t.shouldPreprocessNode(e)&&t.preprocessNode(e,c)}),l||[]);var f=i((function(t){return t.shouldProcessNode(e)}),s||[]);if(null!=f){var d=o((function(t){return null==t||!1===t}),a(u)((function(e,r){return t(e,n,s,l,r)}),e.children||[]));return f.replaceChildren?p.createElement(e,c,e.data,[f.processNode(e,d,c)]):f.processNode(e,d,c)}return!1}return!1}(t,n,c,f,e)}));return d.length<=1?d[0]:d}return{parse:function(t){var n=new c;return e(t,f.alwaysValid,n.defaultProcessingInstructions)},parseWithInstructions:e}}},function(t,e,n){var r=n(345),i=n(19)(r("forEach",(function(t,e){for(var n=e.length,r=0;r<n;)t(e[r]),r+=1;return e})));t.exports=i},function(t,e,n){var r=n(87);t.exports=function(t,e){return function(){var n=arguments.length;if(0===n)return e();var i=arguments[n-1];return r(i)||"function"!=typeof i[t]?e.apply(this,arguments):i[t].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},function(t,e,n){var r=n(19)(n(88)(["find"],n(348),(function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return e[n];n+=1}})));t.exports=r},function(t,e){t.exports=function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}},function(t,e,n){var r=n(19),i=n(349),o=n(89),a=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.found=!0,t=i(this.xf["@@transducer/step"](t,e))),t},t}(),u=r((function(t,e){return new a(t,e)}));t.exports=u},function(t,e){t.exports=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}},function(t,e,n){var r=n(351),i=n(19),o=n(352),a=i((function(t,e){return o(r(t),e)}));t.exports=a},function(t,e){t.exports=function(t){return function(){return!t.apply(this,arguments)}}},function(t,e,n){var r=n(19),i=n(88),o=n(353),a=n(354),u=n(90),s=n(359),l=n(137),c=r(i(["filter"],s,(function(t,e){return a(e)?u((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},l(e)):o(t,e)})));t.exports=c},function(t,e){t.exports=function(t,e){for(var n=0,r=e.length,i=[];n<r;)t(e[n])&&(i[i.length]=e[n]),n+=1;return i}},function(t,e){t.exports=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},function(t,e,n){var r=n(39),i=n(87),o=n(356),a=r((function(t){return!!i(t)||!!t&&("object"==typeof t&&(!o(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));t.exports=a},function(t,e){t.exports=function(t){return"[object String]"===Object.prototype.toString.call(t)}},function(t,e){var n=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();t.exports=function(t){return new n(t)}},function(t,e,n){var r=n(91),i=n(19)((function(t,e){return r(t.length,(function(){return t.apply(e,arguments)}))}));t.exports=i},function(t,e,n){var r=n(19),i=n(89),o=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}(),a=r((function(t,e){return new o(t,e)}));t.exports=a},function(t,e,n){var r=n(92),i=Object.prototype.toString,o=function(){return"[object Arguments]"===i.call(arguments)?function(t){return"[object Arguments]"===i.call(t)}:function(t){return r("callee",t)}}();t.exports=o},function(t,e,n){var r=n(362),i=n(39),o=n(138),a=i((function(t){return o(t.length,(function(){var e=0,n=arguments[0],i=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var t=n.apply(this,r(arguments,[e,i]));return e+=1,t},t.apply(this,o)}))}));t.exports=a},function(t,e){t.exports=function(t,e){var n;e=e||[];var r=(t=t||[]).length,i=e.length,o=[];for(n=0;n<r;)o[o.length]=t[n],n+=1;for(n=0;n<i;)o[o.length]=e[n],n+=1;return o}},function(t,e,n){var r=n(91),i=n(61);t.exports=function t(e,n,o){return function(){for(var a=[],u=0,s=e,l=0;l<n.length||u<arguments.length;){var c;l<n.length&&(!i(n[l])||u>=arguments.length)?c=n[l]:(c=arguments[u],u+=1),a[l]=c,i(c)||(s-=1),l+=1}return s<=0?o.apply(this,a):r(s,t(e,a,o))}}},function(t,e,n){var r=n(19),i=n(88),o=n(365),a=n(90),u=n(366),s=n(138),l=n(137),c=r(i(["fantasy-land/map","map"],u,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return s(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return a((function(n,r){return n[r]=t(e[r]),n}),{},l(e));default:return o(t,e)}})));t.exports=c},function(t,e){t.exports=function(t,e){for(var n=0,r=e.length,i=Array(r);n<r;)i[n]=t(e[n]),n+=1;return i}},function(t,e,n){var r=n(19),i=n(89),o=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),a=r((function(t,e){return new o(t,e)}));t.exports=a},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var o=n(139);e.Parser=o.Parser;var a=n(95);e.DomHandler=a.DomHandler,e.DefaultHandler=a.DomHandler,e.parseDOM=function(t,e){var n=new a.DomHandler(void 0,e);return new o.Parser(n,e).end(t),n.dom},e.createDomStream=function(t,e,n){var r=new a.DomHandler(t,e,n);return new o.Parser(r,e)};var u=n(140);e.Tokenizer=u.default;var s=i(n(96));e.ElementType=s,e.EVENTS={attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0},r(n(143)),r(n(379)),r(n(380));var l=i(n(144));e.DomUtils=l;var c=n(143);e.RssHandler=c.FeedHandler},function(t){t.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(t,e,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var s=10;function l(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function c(t,e,n,r){var i,o,a,u;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(t))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,u=s,console&&console.warn&&console.warn(u)}return t}function f(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,o(this.listener,this.target,t))}function p(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function d(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):m(i,i.length)}function h(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return l(this)},u.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[t];if(void 0===s)return!1;if("function"==typeof s)o(s,this,e);else{var l=s.length,c=m(s,l);for(n=0;n<l;++n)o(c[n],this,e)}return!0},u.prototype.addListener=function(t,e){return c(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return c(this,t,e,!0)},u.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.on(t,p(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.prependListener(t,p(this,t,e)),this},u.prototype.removeListener=function(t,e){var n,r,i,o,a;if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);if(void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},u.prototype.listeners=function(t){return d(this,t,!0)},u.prototype.rawListeners=function(t){return d(this,t,!1)},u.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},u.prototype.listenerCount=h,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8]]),a=function(){function t(t){this.type=t,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return o.get(this.type)||1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent||null},set:function(t){this.parent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev||null},set:function(t){this.prev=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next||null},set:function(t){this.next=t},enumerable:!0,configurable:!0}),t}();e.Node=a;var u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.data=n,r}return i(e,t),Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!0,configurable:!0}),e}(a);e.DataNode=u;var s=function(t){function e(e,n){var r=t.call(this,"directive",n)||this;return r.name=e,r}return i(e,t),e}(u);e.ProcessingInstruction=s;var l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.children=n,r}return i(e,t),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!0,configurable:!0}),e}(a);e.NodeWithChildren=l;var c=function(t){function e(e,n){var r=t.call(this,"script"===e?"script":"style"===e?"style":"tag",[])||this;return r.name=e,r.attribs=n,r.attribs=n,r}return i(e,t),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!0,configurable:!0}),e}(l);e.Element=c},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(49),o=r(n(372));e.getOuterHTML=o.default,e.getInnerHTML=function(t,n){return i.hasChildren(t)?t.children.map((function(t){return e.getOuterHTML(t,n)})).join(""):""},e.getText=function t(e){return Array.isArray(e)?e.map(t).join(""):i.isTag(e)?"br"===e.name?"\n":t(e.children):i.isCDATA(e)?t(e.children):i.isText(e)?e.data:""}},function(t,e,n){var r=n(96),i=n(373),o=n(374);o.elementNames.__proto__=null,o.attributeNames.__proto__=null;var a={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var u={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s=t.exports=function(t,e){Array.isArray(t)||t.cheerio||(t=[t]),e=e||{};for(var n="",i=0;i<t.length;i++){var o=t[i];"root"===o.type?n+=s(o.children,e):r.isTag(o)?n+=c(o,e):o.type===r.Directive?n+=f(o):o.type===r.Comment?n+=h(o):o.type===r.CDATA?n+=d(o):n+=p(o,e)}return n};const l=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function c(t,e){"foreign"===e.xmlMode&&(t.name=o.elementNames[t.name]||t.name,t.parent&&l.indexOf(t.parent.name)>=0&&(e=Object.assign({},e,{xmlMode:!1}))),!e.xmlMode&&["svg","math"].indexOf(t.name)>=0&&(e=Object.assign({},e,{xmlMode:"foreign"}));var n="<"+t.name,r=function(t,e){if(t){var n,r="";for(var a in t)n=t[a],r&&(r+=" "),"foreign"===e.xmlMode&&(a=o.attributeNames[a]||a),r+=a,(null!==n&&""!==n||e.xmlMode)&&(r+='="'+(e.decodeEntities?i.encodeXML(n):n.replace(/\"/g,"""))+'"');return r}}(t.attribs,e);return r&&(n+=" "+r),!e.xmlMode||t.children&&0!==t.children.length?(n+=">",t.children&&(n+=s(t.children,e)),u[t.name]&&!e.xmlMode||(n+="</"+t.name+">")):n+="/>",n}function f(t){return"<"+t.data+">"}function p(t,e){var n=t.data||"";return!e.decodeEntities||t.parent&&t.parent.name in a||(n=i.encodeXML(n)),n}function d(t){return"<![CDATA["+t.children[0].data+"]]>"}function h(t){return"\x3c!--"+t.data+"--\x3e"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(145),i=n(146);e.decode=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?i.encodeXML:i.encodeHTML)(t)};var o=n(146);e.encodeXML=o.encodeXML,e.encodeHTML=o.encodeHTML,e.escape=o.escape,e.encodeHTML4=o.encodeHTML,e.encodeHTML5=o.encodeHTML;var a=n(145);e.decodeXML=a.decodeXML,e.decodeHTML=a.decodeHTML,e.decodeHTMLStrict=a.decodeHTMLStrict,e.decodeHTML4=a.decodeHTML,e.decodeHTML5=a.decodeHTML,e.decodeHTML4Strict=a.decodeHTMLStrict,e.decodeHTML5Strict=a.decodeHTMLStrict,e.decodeXMLStrict=a.decodeXML},function(t){t.exports=JSON.parse('{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}')},function(t,e,n){"use strict";function r(t){return t.children||null}function i(t){return t.parent||null}function o(t,e){return t.attribs&&t.attribs[e]}Object.defineProperty(e,"__esModule",{value:!0}),e.getChildren=r,e.getParent=i,e.getSiblings=function(t){var e=i(t);return e?r(e):[t]},e.getAttributeValue=o,e.hasAttrib=function(t,e){return!!o(t,e)},e.getName=function(t){return t.name}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeElement=function(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}},e.replaceElement=function(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var i=e.parent=t.parent;if(i){var o=i.children;o[o.lastIndexOf(t)]=e}},e.appendChild=function(t,e){if(e.parent=t,1!==t.children.push(e)){var n=t.children[t.children.length-2];n.next=e,e.prev=n,e.next=null}},e.append=function(t,e){var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){var i=n.children;i.splice(i.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},e.prepend=function(t,e){var n=t.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(147),i=n(49);function o(t){return"text"===t.type}var a={tag_name:function(t){return"function"==typeof t?function(e){return i.isTag(e)&&t(e.name)}:"*"===t?i.isTag:function(e){return i.isTag(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return o(e)&&t(e.data)}:function(e){return o(e)&&e.data===t}}};function u(t,e){return"function"==typeof e?function(n){return i.isTag(n)&&e(n.attribs[t])}:function(n){return i.isTag(n)&&n.attribs[t]===e}}function s(t,e){return function(n){return t(n)||e(n)}}function l(t){var e=Object.keys(t).map((function(e){var n=t[e];return e in a?a[e](n):u(e,n)}));return 0===e.length?null:e.reduce(s)}e.testElement=function(t,e){var n=l(t);return!n||n(e)},e.getElements=function(t,e,n,i){void 0===i&&(i=1/0);var o=l(t);return o?r.filter(o,e,n,i):[]},e.getElementById=function(t,e,n){return void 0===n&&(n=!0),Array.isArray(e)||(e=[e]),r.findOne(u("id",t),e,n)},e.getElementsByTagName=function(t,e,n,i){return void 0===i&&(i=1/0),r.filter(a.tag_name(t),e,n,i)},e.getElementsByTagType=function(t,e,n,i){return void 0===n&&(n=!0),void 0===i&&(i=1/0),r.filter(a.tag_type(t),e,n,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(49);function i(t,e){var n=[],i=[];if(t===e)return 0;for(var o=r.hasChildren(t)?t:t.parent;o;)n.unshift(o),o=o.parent;for(o=r.hasChildren(e)?e:e.parent;o;)i.unshift(o),o=o.parent;for(var a=0;n[a]===i[a];)a++;if(0===a)return 1;var u=n[a-1],s=u.children,l=n[a],c=i[a];return s.indexOf(l)>s.indexOf(c)?u===e?20:4:u===t?10:2}e.removeSubsets=function(t){for(var e=t.length;--e>=0;){var n=t[e];if(e>0&&t.lastIndexOf(n,e-1)>=0)t.splice(e,1);else for(var r=n.parent;r;r=r.parent)if(t.indexOf(r)>-1){t.splice(e,1);break}}return t},e.compareDocumentPosition=i,e.uniqueSort=function(t){return(t=t.filter((function(t,e,n){return!n.includes(t,e+1)}))).sort((function(t,e){var n=i(t,e);return 2&n?-1:4&n?1:0})),t}},function(t,e){},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,(function(t){for(var e,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];n.events.push([t].concat(r)),n._cbs[t]&&(e=n._cbs)[t].apply(e,r)}))||this;return n._cbs=e,n.events=[],n}return i(e,t),e.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},e.prototype.restart=function(){var t;this._cbs.onreset&&this._cbs.onreset();for(var e=0;e<this.events.length;e++){var n=this.events[e],r=n[0],i=n.slice(1);this._cbs[r]&&(t=this._cbs)[r].apply(t,i)}},e}(o(n(381)).default);e.CollectingHandler=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this._func=t}return t.prototype.onattribute=function(t,e){this._func("onattribute",t,e)},t.prototype.oncdatastart=function(){this._func("oncdatastart")},t.prototype.oncdataend=function(){this._func("oncdataend")},t.prototype.ontext=function(t){this._func("ontext",t)},t.prototype.onprocessinginstruction=function(t,e){this._func("onprocessinginstruction",t,e)},t.prototype.oncomment=function(t){this._func("oncomment",t)},t.prototype.oncommentend=function(){this._func("oncommentend")},t.prototype.onclosetag=function(t){this._func("onclosetag",t)},t.prototype.onopentag=function(t,e){this._func("onopentag",t,e)},t.prototype.onopentagname=function(t){this._func("onopentagname",t)},t.prototype.onerror=function(t){this._func("onerror",t)},t.prototype.onend=function(){this._func("onend")},t.prototype.onparserinit=function(t){this._func("onparserinit",t)},t.prototype.onreset=function(){this._func("onreset")},t}();e.default=r},function(t,e,n){"use strict";t.exports={shouldProcessEveryNode:function(t){return!0}}},function(t,e,n){(function(e){var n=1/0,r="[object Symbol]",i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",u="[\\ud800-\\udfff]",s="["+a+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",c="\\d+",f="[\\u2700-\\u27bf]",p="[a-z\\xdf-\\xf6\\xf8-\\xff]",d="[^\\ud800-\\udfff"+a+c+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",h="\\ud83c[\\udffb-\\udfff]",m="[^\\ud800-\\udfff]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",y="[A-Z\\xc0-\\xd6\\xd8-\\xde]",b="(?:"+p+"|"+d+")",_="(?:"+y+"|"+d+")",w="(?:"+l+"|"+h+")"+"?",x="[\\ufe0e\\ufe0f]?"+w+("(?:\\u200d(?:"+[m,g,v].join("|")+")[\\ufe0e\\ufe0f]?"+w+")*"),S="(?:"+[f,g,v].join("|")+")"+x,E="(?:"+[m+l+"?",l,g,v,u].join("|")+")",k=RegExp("['’]","g"),T=RegExp(l,"g"),A=RegExp(h+"(?="+h+")|"+E+x,"g"),C=RegExp([y+"?"+p+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[s,y,"$"].join("|")+")",_+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[s,y+b,"$"].join("|")+")",y+"?"+b+"+(?:['’](?:d|ll|m|re|s|t|ve))?",y+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",c,S].join("|"),"g"),O=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),P=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,N="object"==typeof e&&e&&e.Object===Object&&e,L="object"==typeof self&&self&&self.Object===Object&&self,M=N||L||Function("return this")();var j,R=(j={"À":"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","ſ":"ss"},function(t){return null==j?void 0:j[t]});function D(t){return O.test(t)}function I(t){return D(t)?function(t){return t.match(A)||[]}(t):function(t){return t.split("")}(t)}var F=Object.prototype.toString,U=M.Symbol,q=U?U.prototype:void 0,z=q?q.toString:void 0;function B(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&F.call(t)==r}(t))return z?z.call(t):"";var e=t+"";return"0"==e&&1/t==-n?"-0":e}function V(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}(t,e,n)}function H(t){return null==t?"":B(t)}var W,G=(W=function(t,e,n){return e=e.toLowerCase(),t+(n?Y(H(e).toLowerCase()):e)},function(t){return function(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}(function(t,e,n){return t=H(t),void 0===(e=n?void 0:e)?function(t){return P.test(t)}(t)?function(t){return t.match(C)||[]}(t):function(t){return t.match(i)||[]}(t):t.match(e)||[]}(function(t){return(t=H(t))&&t.replace(o,R).replace(T,"")}(t).replace(k,"")),W,"")});var Q,Y=(Q="toUpperCase",function(t){var e=D(t=H(t))?I(t):void 0,n=e?e[0]:t.charAt(0),r=e?V(e,1).join(""):t.slice(1);return n[Q]()+r});t.exports=G}).call(this,n(98))},function(t,e,n){var r=n(39),i=n(92),o=r((function(t){var e=[];for(var n in t)i(n,t)&&(e[e.length]=[n,t[n]]);return e}));t.exports=o},function(t,e,n){var r=n(386)(n(90));t.exports=r},function(t,e,n){var r=n(39),i=n(19),o=n(61);t.exports=function(t){return function e(n,a,u){switch(arguments.length){case 0:return e;case 1:return o(n)?e:i((function(e,r){return t(n,e,r)}));case 2:return o(n)&&o(a)?e:o(n)?i((function(e,n){return t(e,a,n)})):o(a)?i((function(e,r){return t(n,e,r)})):r((function(e){return t(n,a,e)}));default:return o(n)&&o(a)&&o(u)?e:o(n)&&o(a)?i((function(e,n){return t(e,n,u)})):o(n)&&o(u)?i((function(e,n){return t(e,a,n)})):o(a)&&o(u)?i((function(e,r){return t(n,e,r)})):o(n)?r((function(e){return t(e,a,u)})):o(a)?r((function(e){return t(n,e,u)})):o(u)?r((function(e){return t(n,a,e)})):t(n,a,u)}}}},function(t,e,n){"use strict";var r=["accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","challenge","charSet","checked","cite","classID","className","colSpan","cols","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","is","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","nonce","open","optimum","pattern","placeholder","poster","preload","profile","radioGroup","readOnly","rel","required","reversed","role","rowSpan","rows","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","target","title","type","useMap","value","width","wmode","wrap","onClick"].concat(["autoCapitalize","autoCorrect","color","itemProp","itemScope","itemType","itemRef","itemID","security","unselectable","results","autoSave"]).concat(["accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseProfile","baselineShift","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","ideographic","imageRendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","visibility","widths","wordSpacing","writingMode","x","x1","x2","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlns","xmlnsXlink","xmlBase","xmlLang","xmlSpace","y","y1","y2","yChannelSelector","z","zoomAndPan"]).reduce((function(t,e){var n=e.toLowerCase();return n!==e&&(t[n]=e),t}),{});t.exports=r},,function(t,e,n){"use strict";n.r(e);var r=n(1),i=n.n(r),o=n(152),a=n.n(o),u=n(97),s=n.n(u),l=Object(r.createContext)(),c=l.Provider,f=l.Consumer,p=function(t){var e=t.data,n=e.item,r=e.next,o=e.prev,a=e.nextOptions,u=0!=r||0==r&&a;return i.a.createElement(f,null,(function(t){var e=t.bot_name,s=t.bot_src,l=t.primary_color;return i.a.createElement(i.a.Fragment,null,(0!=r||0==r&&a)&&i.a.createElement("img",{src:s,style:{width:25,height:25}}),i.a.createElement("div",{style:{flexDirection:"column",borderRadius:10,marginLeft:0!=r||a?10:35}},o&&i.a.createElement("p",{style:{fontSize:12,marginBottom:5,color:"#424242"}},e),i.a.createElement("p",{className:u?"message tail":"message",style:{borderBottomLeftRadius:u?0:10,marginBottom:u?20:0,backgroundColor:l}},n.message)))}))};function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var h=function(t){var e=d(Object(r.useState)(!1),2),n=e[0],o=e[1],a=t.data,u=a.option,s=a.id;return i.a.createElement(f,null,(function(t){var e=t.primary_color,r=t.replaceWithAnswer;return i.a.createElement("a",{href:"#",className:"pill",style:{backgroundColor:n?e:"#fff",color:n?"#fff":e,border:"1px solid ".concat(e)},onMouseEnter:function(){return o(!0)},onMouseLeave:function(){return o(!1)},onClick:function(t){t.preventDefault(),r(u,s)}},u)}))},m=function(t){var e=t.data.item;return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"optionsWrapper"},e.message.map((function(t){return i.a.createElement(h,{data:{option:t,id:e.id}})}))))},g=n(153),v=n.n(g);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function x(t,e){return(x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var S=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=_(this,w(e).call(this,t))).state={errorShown:!1},n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}(e,t),n=e,(r=[{key:"componentDidUpdate",value:function(){var t=this;this.props.data.item.error&&setTimeout((function(){return t.setState({errorShown:!0})}),1500)}},{key:"render",value:function(){var t=this.props.data,e=t.item,n=t.next,r=this.state.errorShown;return i.a.createElement("div",{className:"clientMessageWrapper"},i.a.createElement("div",{style:{flexDirection:"row",display:"flex",alignItems:"center"}},i.a.createElement("p",{className:n?"message":"message tail",style:{opacity:e.error?.5:1,borderBottomRightRadius:n?10:0}},e.message),r&&i.a.createElement("img",{src:v.a,width:15,height:15,style:{marginLeft:5}})),e.error&&!r&&i.a.createElement("p",{style:{marginTop:8,fontSize:13,marginLeft:1,opacity:.4}},"Sending failed!")||e.sending&&i.a.createElement("p",{className:"status"},"sending..."))}}])&&b(n.prototype,r),o&&b(n,o),e}(i.a.Component);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function A(t,e){return(A=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var O=function(t){function e(t){var n,r,o,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?C(t):e}(this,T(e).call(this,t)),r=C(C(n)),a=function(){document.getElementsByClassName("chatBody")[0].scrollTo(0,n.scrollToRef.current.offsetTop)},(o="scrollToBottom")in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,n.scrollToRef=i.a.createRef(),n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A(t,e)}(e,t),n=e,(r=[{key:"componentDidUpdate",value:function(){this.scrollToBottom()}},{key:"render",value:function(){var t=this.props.data.data;return i.a.createElement("div",{className:"chatBody"},t.map((function(e,n){var r=t[n+1]&&t[n+1].author,o=!n||1==t[n-1].author,a=t[n+1]&&Array.isArray(t[n+1].message);return!1!==e.visible?0==e.author?i.a.createElement("div",{className:"botMessageWrapper",style:{marginBottom:0!=r?18:0}},Array.isArray(e.message)?i.a.createElement(m,{data:{item:e,next:r,prev:o}}):i.a.createElement(p,{data:{item:e,next:r,prev:o,nextOptions:a}})):i.a.createElement(S,{data:{item:e,next:r}}):null})),i.a.createElement("div",{ref:this.scrollToRef}))}}])&&k(n.prototype,r),o&&k(n,o),e}(i.a.Component),P=n(154),N=n.n(P),L=function(){return i.a.createElement(f,null,(function(t){var e=t.bot_name,n=t.bot_src,r=t.windowTrigger;t.base_url;return i.a.createElement("div",{className:"header"},i.a.createElement("div",{className:"botinfo"},i.a.createElement("img",{src:n,width:"34",height:"34"}),i.a.createElement("p",{class:"botname"},e)),i.a.createElement("a",{className:"close",href:"#",onClick:function(){return r()}},i.a.createElement("img",{src:N.a,width:"12",height:"12"})))}))};function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var F=function(t){function e(t){var n,r,o,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?I(t):e}(this,R(e).call(this,t)),r=I(I(n)),a=function(){""!=n.input.current.value&&(n.handleTextInput(n.input.current.value),n.input.current.value="")},(o="handleSubmit")in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,n.input=i.a.createRef(),n.handleTextInput=t.handleTextInput,n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i.a.createElement(f,null,(function(e){var n=e.primary_color,r=e.bot_name;return i.a.createElement("div",{className:"footer",style:{borderTop:"1px solid ".concat(n)}},i.a.createElement("form",{onSubmit:t.handleSubmit,className:"chatinputform"},i.a.createElement("textarea",{className:"chatinput",placeholder:"Reply to ".concat(r),ref:t.input,onKeyPress:function(e){"Enter"===e.key&&(t.handleSubmit(),e.preventDefault())}})))}))}}])&&j(n.prototype,r),o&&j(n,o),e}(i.a.Component),U=function(t){var e=t.data.count;return i.a.createElement(f,null,(function(t){var n=t.primary_color,r=t.bot_inverted,o=t.windowTrigger;return i.a.createElement("div",{className:"toggle",onClick:o,style:{backgroundColor:n}},i.a.createElement("img",{src:r,width:35,height:35}),!!e&&i.a.createElement("p",{className:"count",style:{color:n}},e))}))},q=function(){var t=46656*Math.random()|0,e=46656*Math.random()|0;return(t=("000"+t.toString(36)).slice(-3))+(e=("000"+e.toString(36)).slice(-3))},z=function(){var t=6e4*(new Date).getTimezoneOffset();return new Date(Date.now()-t).toISOString().slice(0,-1).split(".").shift()},B=function(t){var e=new(0,n(342).Parser),r=t.match(/(https?:\/\/[^\s]+)/);return r?(t="< p>".concat(t,"</p>"),e.parse(t.replace(r[0],'<a href="'.concat(r[0],'" target="_blank" style="color:#fff; text-decoration:underline; outline:none">').concat(r[0],"</a>")))):t};function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){X(t,e,n[e])}))}return t}function W(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Q(t){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Y(t,e){return(Y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?K(t):e}(this,Q(e).call(this,t)),X(K(K(n)),"replaceWithAnswer",(function(t,e){var r=q(),i=n.state,o=i.data,a=i.sessionId;o[n.state.data.findIndex((function(t){return t.id==e}))].visible=!1,o.push({id:r,author:1,message:t,sending:!0}),n.setState({data:o,count:n.state.open?0:n.state.count+1},(function(){var e=n.state.data,i=e.findIndex((function(t){return t.id==r})),o=new FormData;o.set("qs",t),o.set("sender",a),o.set("current_time",z()),s.a.post("".concat(n.BASE_URL),o,{"Content-Type":"multipart/form-data"}).then((function(t){var r=t.data;e[i].sending=!1,r.forEach((function(t){var n=t.text;e.push({message:B(n),author:0,id:q()})})),n.setState({data:e,count:n.state.open?0:n.state.count+r.length})})).catch((function(t){e[i].error=!0,e[i].sending=!1,n.setState({data:e})}))}))})),X(K(K(n)),"handleTextInput",(function(t){var e=q(),r=n.state,i=r.data,o=r.sessionId,a=i.length-1;i[a].message&&Array.isArray(i[a].message)&&(i[a].visible=!1),i.push({id:e,author:1,message:t,sending:!0}),n.setState({data:i,count:n.state.open?0:n.state.count+1},(function(){var r=n.state.data.findIndex((function(t){return t.id==e})),i=n.state.data,a=new FormData;a.set("qs",t),a.set("sender",o),a.set("current_time",z()),s.a.post("".concat(n.BASE_URL),a,{"Content-Type":"multipart/form-data"}).then((function(t){var e=t.data;i[r].sending=!1,e.forEach((function(t){var e=t.text;i.push({message:B(e),author:0,id:q()})})),n.setState({data:i,count:n.state.open?0:n.state.count+e.length})})).catch((function(t){i[r].error=!0,i[r].sending=!1,n.setState({data:i})}))}))})),X(K(K(n)),"windowTrigger",(function(){var t=n.state.open;t?n.setState({open:!t}):n.setState({open:!t,count:0})})),n.state={open:!1,data:[],count:0};var r=n.props.wpObject.base_url;return"/"!=r[r.length-1]&&(r+="/"),n.BASE_URL=r,n.windowTrigger=n.windowTrigger.bind(K(K(n))),n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Y(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.setSession(),this.initialMessagePopulate()}},{key:"setSession",value:function(){var t=localStorage.getItem("sessionId");t||(t=q(),localStorage.setItem("sessionId",t)),this.setState({sessionId:t})}},{key:"initialMessagePopulate",value:function(){var t=/^\[(.+)\]$/gm,e=this.props.wpObject.initial_state.split(/\r?\n/g).filter((function(t){return!!t.trim()})).map((function(e){var n=t.exec(e);return n?{message:n[1].split(",").map((function(t){return t.trim()})),id:q(),author:0}:{message:e,id:q(),author:0}}));this.setState({data:W(this.state.data).concat(W(e)),count:this.state.open?0:this.state.count+e.length})}},{key:"render",value:function(){var t=this.state,e=t.open,n=t.data,r=t.count;return console.log(n,"data"),n.length>0?i.a.createElement(c,{value:H({},this.props.wpObject,{base_url:this.BASE_URL,replaceWithAnswer:this.replaceWithAnswer,windowTrigger:this.windowTrigger})},i.a.createElement("div",{className:"window",style:{right:e?0:-350,display:e?"flex":"none"}},i.a.createElement(L,null),i.a.createElement(O,{data:{data:n}}),i.a.createElement(F,{handleTextInput:this.handleTextInput})),!e&&i.a.createElement(U,{data:{count:r}})):null}}])&&G(n.prototype,r),o&&G(n,o),e}(i.a.Component);window._babelPolyfill||n(155),document.addEventListener("DOMContentLoaded",(function(){for(var t=document.querySelectorAll(".piri-faa-widget"),e=0;e<t.length;++e){var n=t[e].getAttribute("data-object-id");a.a.render(i.a.createElement($,{wpObject:window[n]}),t[e])}}))}]);39 t.exports=function(t){return null!=t&&null!=t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}},function(t,e,n){"use strict";var r=n(13),i=n(130),o=n(328),a=n(329),u=n(135);function s(t){this.defaults=t,this.interceptors={request:new o,response:new o}}s.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=u(this.defaults,t)).method=t.method?t.method.toLowerCase():"get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},s.prototype.getUri=function(t){return t=u(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){s.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){s.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}})),t.exports=s},function(t,e,n){"use strict";var r=n(13);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(13),i=n(330),o=n(131),a=n(132),u=n(338),s=n(339);function l(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return l(t),t.baseURL&&!u(t.url)&&(t.url=s(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return l(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(l(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var s,l=[],c=!1,f=-1;function p(){c&&s&&(c=!1,s.length?l=s.concat(l):f=-1,l.length&&d())}function d(){if(!c){var t=u(p);c=!0;for(var e=l.length;e;){for(s=l,l=[];++f<e;)s&&s[f].run();f=-1,e=l.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new h(t,e)),1!==l.length||c||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";var r=n(13);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(134);t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(13),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(13);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(i)&&u.push("path="+i),r.isString(o)&&u.push("domain="+o),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(136);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var r=n(343),i=n(148),o=n(151),a=n(149);t.exports={Parser:r,ProcessingInstructions:i,IsValidNodeDefinitions:o,ProcessNodeDefinitions:a}},function(t,e,n){"use strict";var r=n(344),i=n(346),o=n(350),a=n(361),u=n(364),s=n(367).Parser,l=n(95).DomHandler,c=n(148),f=n(151),p=n(150);t.exports=function(t){function e(e,n,c,f){var d=function(e){(t=t||{}).decodeEntities=!0;var n=new l;return new s(n,t).parseComplete(e),n.dom.filter((function(t){return"directive"!==t.type}))}(e).map((function(t,e){return function t(e,n,s,l,c){if(n(e)){r((function(t){t.shouldPreprocessNode(e)&&t.preprocessNode(e,c)}),l||[]);var f=i((function(t){return t.shouldProcessNode(e)}),s||[]);if(null!=f){var d=o((function(t){return null==t||!1===t}),a(u)((function(e,r){return t(e,n,s,l,r)}),e.children||[]));return f.replaceChildren?p.createElement(e,c,e.data,[f.processNode(e,d,c)]):f.processNode(e,d,c)}return!1}return!1}(t,n,c,f,e)}));return d.length<=1?d[0]:d}return{parse:function(t){var n=new c;return e(t,f.alwaysValid,n.defaultProcessingInstructions)},parseWithInstructions:e}}},function(t,e,n){var r=n(345),i=n(19)(r("forEach",(function(t,e){for(var n=e.length,r=0;r<n;)t(e[r]),r+=1;return e})));t.exports=i},function(t,e,n){var r=n(87);t.exports=function(t,e){return function(){var n=arguments.length;if(0===n)return e();var i=arguments[n-1];return r(i)||"function"!=typeof i[t]?e.apply(this,arguments):i[t].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},function(t,e,n){var r=n(19)(n(88)(["find"],n(348),(function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return e[n];n+=1}})));t.exports=r},function(t,e){t.exports=function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}},function(t,e,n){var r=n(19),i=n(349),o=n(89),a=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.found=!0,t=i(this.xf["@@transducer/step"](t,e))),t},t}(),u=r((function(t,e){return new a(t,e)}));t.exports=u},function(t,e){t.exports=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}},function(t,e,n){var r=n(351),i=n(19),o=n(352),a=i((function(t,e){return o(r(t),e)}));t.exports=a},function(t,e){t.exports=function(t){return function(){return!t.apply(this,arguments)}}},function(t,e,n){var r=n(19),i=n(88),o=n(353),a=n(354),u=n(90),s=n(359),l=n(137),c=r(i(["filter"],s,(function(t,e){return a(e)?u((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},l(e)):o(t,e)})));t.exports=c},function(t,e){t.exports=function(t,e){for(var n=0,r=e.length,i=[];n<r;)t(e[n])&&(i[i.length]=e[n]),n+=1;return i}},function(t,e){t.exports=function(t){return"[object Object]"===Object.prototype.toString.call(t)}},function(t,e,n){var r=n(39),i=n(87),o=n(356),a=r((function(t){return!!i(t)||!!t&&("object"==typeof t&&(!o(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));t.exports=a},function(t,e){t.exports=function(t){return"[object String]"===Object.prototype.toString.call(t)}},function(t,e){var n=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();t.exports=function(t){return new n(t)}},function(t,e,n){var r=n(91),i=n(19)((function(t,e){return r(t.length,(function(){return t.apply(e,arguments)}))}));t.exports=i},function(t,e,n){var r=n(19),i=n(89),o=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}(),a=r((function(t,e){return new o(t,e)}));t.exports=a},function(t,e,n){var r=n(92),i=Object.prototype.toString,o=function(){return"[object Arguments]"===i.call(arguments)?function(t){return"[object Arguments]"===i.call(t)}:function(t){return r("callee",t)}}();t.exports=o},function(t,e,n){var r=n(362),i=n(39),o=n(138),a=i((function(t){return o(t.length,(function(){var e=0,n=arguments[0],i=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var t=n.apply(this,r(arguments,[e,i]));return e+=1,t},t.apply(this,o)}))}));t.exports=a},function(t,e){t.exports=function(t,e){var n;e=e||[];var r=(t=t||[]).length,i=e.length,o=[];for(n=0;n<r;)o[o.length]=t[n],n+=1;for(n=0;n<i;)o[o.length]=e[n],n+=1;return o}},function(t,e,n){var r=n(91),i=n(61);t.exports=function t(e,n,o){return function(){for(var a=[],u=0,s=e,l=0;l<n.length||u<arguments.length;){var c;l<n.length&&(!i(n[l])||u>=arguments.length)?c=n[l]:(c=arguments[u],u+=1),a[l]=c,i(c)||(s-=1),l+=1}return s<=0?o.apply(this,a):r(s,t(e,a,o))}}},function(t,e,n){var r=n(19),i=n(88),o=n(365),a=n(90),u=n(366),s=n(138),l=n(137),c=r(i(["fantasy-land/map","map"],u,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return s(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return a((function(n,r){return n[r]=t(e[r]),n}),{},l(e));default:return o(t,e)}})));t.exports=c},function(t,e){t.exports=function(t,e){for(var n=0,r=e.length,i=Array(r);n<r;)i[n]=t(e[n]),n+=1;return i}},function(t,e,n){var r=n(19),i=n(89),o=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=i.init,t.prototype["@@transducer/result"]=i.result,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),a=r((function(t,e){return new o(t,e)}));t.exports=a},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var o=n(139);e.Parser=o.Parser;var a=n(95);e.DomHandler=a.DomHandler,e.DefaultHandler=a.DomHandler,e.parseDOM=function(t,e){var n=new a.DomHandler(void 0,e);return new o.Parser(n,e).end(t),n.dom},e.createDomStream=function(t,e,n){var r=new a.DomHandler(t,e,n);return new o.Parser(r,e)};var u=n(140);e.Tokenizer=u.default;var s=i(n(96));e.ElementType=s,e.EVENTS={attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0},r(n(143)),r(n(379)),r(n(380));var l=i(n(144));e.DomUtils=l;var c=n(143);e.RssHandler=c.FeedHandler},function(t){t.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(t,e,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function u(){u.init.call(this)}t.exports=u,u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var s=10;function l(t){return void 0===t._maxListeners?u.defaultMaxListeners:t._maxListeners}function c(t,e,n,r){var i,o,a,u;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(t))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=t,s.type=e,s.count=a.length,u=s,console&&console.warn&&console.warn(u)}return t}function f(){for(var t=[],e=0;e<arguments.length;e++)t.push(arguments[e]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,o(this.listener,this.target,t))}function p(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function d(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):m(i,i.length)}function h(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},u.prototype.getMaxListeners=function(){return l(this)},u.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=i[t];if(void 0===s)return!1;if("function"==typeof s)o(s,this,e);else{var l=s.length,c=m(s,l);for(n=0;n<l;++n)o(c[n],this,e)}return!0},u.prototype.addListener=function(t,e){return c(this,t,e,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(t,e){return c(this,t,e,!0)},u.prototype.once=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.on(t,p(this,t,e)),this},u.prototype.prependOnceListener=function(t,e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);return this.prependListener(t,p(this,t,e)),this},u.prototype.removeListener=function(t,e){var n,r,i,o,a;if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e);if(void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},u.prototype.listeners=function(t){return d(this,t,!0)},u.prototype.rawListeners=function(t){return d(this,t,!1)},u.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):h.call(t,e)},u.prototype.listenerCount=h,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var o=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8]]),a=function(){function t(t){this.type=t,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return o.get(this.type)||1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent||null},set:function(t){this.parent=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev||null},set:function(t){this.prev=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next||null},set:function(t){this.next=t},enumerable:!0,configurable:!0}),t}();e.Node=a;var u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.data=n,r}return i(e,t),Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!0,configurable:!0}),e}(a);e.DataNode=u;var s=function(t){function e(e,n){var r=t.call(this,"directive",n)||this;return r.name=e,r}return i(e,t),e}(u);e.ProcessingInstruction=s;var l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.children=n,r}return i(e,t),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.children[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!0,configurable:!0}),e}(a);e.NodeWithChildren=l;var c=function(t){function e(e,n){var r=t.call(this,"script"===e?"script":"style"===e?"style":"tag",[])||this;return r.name=e,r.attribs=n,r.attribs=n,r}return i(e,t),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!0,configurable:!0}),e}(l);e.Element=c},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(49),o=r(n(372));e.getOuterHTML=o.default,e.getInnerHTML=function(t,n){return i.hasChildren(t)?t.children.map((function(t){return e.getOuterHTML(t,n)})).join(""):""},e.getText=function t(e){return Array.isArray(e)?e.map(t).join(""):i.isTag(e)?"br"===e.name?"\n":t(e.children):i.isCDATA(e)?t(e.children):i.isText(e)?e.data:""}},function(t,e,n){var r=n(96),i=n(373),o=n(374);o.elementNames.__proto__=null,o.attributeNames.__proto__=null;var a={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var u={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},s=t.exports=function(t,e){Array.isArray(t)||t.cheerio||(t=[t]),e=e||{};for(var n="",i=0;i<t.length;i++){var o=t[i];"root"===o.type?n+=s(o.children,e):r.isTag(o)?n+=c(o,e):o.type===r.Directive?n+=f(o):o.type===r.Comment?n+=h(o):o.type===r.CDATA?n+=d(o):n+=p(o,e)}return n};const l=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function c(t,e){"foreign"===e.xmlMode&&(t.name=o.elementNames[t.name]||t.name,t.parent&&l.indexOf(t.parent.name)>=0&&(e=Object.assign({},e,{xmlMode:!1}))),!e.xmlMode&&["svg","math"].indexOf(t.name)>=0&&(e=Object.assign({},e,{xmlMode:"foreign"}));var n="<"+t.name,r=function(t,e){if(t){var n,r="";for(var a in t)n=t[a],r&&(r+=" "),"foreign"===e.xmlMode&&(a=o.attributeNames[a]||a),r+=a,(null!==n&&""!==n||e.xmlMode)&&(r+='="'+(e.decodeEntities?i.encodeXML(n):n.replace(/\"/g,"""))+'"');return r}}(t.attribs,e);return r&&(n+=" "+r),!e.xmlMode||t.children&&0!==t.children.length?(n+=">",t.children&&(n+=s(t.children,e)),u[t.name]&&!e.xmlMode||(n+="</"+t.name+">")):n+="/>",n}function f(t){return"<"+t.data+">"}function p(t,e){var n=t.data||"";return!e.decodeEntities||t.parent&&t.parent.name in a||(n=i.encodeXML(n)),n}function d(t){return"<![CDATA["+t.children[0].data+"]]>"}function h(t){return"\x3c!--"+t.data+"--\x3e"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(145),i=n(146);e.decode=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?i.encodeXML:i.encodeHTML)(t)};var o=n(146);e.encodeXML=o.encodeXML,e.encodeHTML=o.encodeHTML,e.escape=o.escape,e.encodeHTML4=o.encodeHTML,e.encodeHTML5=o.encodeHTML;var a=n(145);e.decodeXML=a.decodeXML,e.decodeHTML=a.decodeHTML,e.decodeHTMLStrict=a.decodeHTMLStrict,e.decodeHTML4=a.decodeHTML,e.decodeHTML5=a.decodeHTML,e.decodeHTML4Strict=a.decodeHTMLStrict,e.decodeHTML5Strict=a.decodeHTMLStrict,e.decodeXMLStrict=a.decodeXML},function(t){t.exports=JSON.parse('{"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}}')},function(t,e,n){"use strict";function r(t){return t.children||null}function i(t){return t.parent||null}function o(t,e){return t.attribs&&t.attribs[e]}Object.defineProperty(e,"__esModule",{value:!0}),e.getChildren=r,e.getParent=i,e.getSiblings=function(t){var e=i(t);return e?r(e):[t]},e.getAttributeValue=o,e.hasAttrib=function(t,e){return!!o(t,e)},e.getName=function(t){return t.name}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeElement=function(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}},e.replaceElement=function(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var i=e.parent=t.parent;if(i){var o=i.children;o[o.lastIndexOf(t)]=e}},e.appendChild=function(t,e){if(e.parent=t,1!==t.children.push(e)){var n=t.children[t.children.length-2];n.next=e,e.prev=n,e.next=null}},e.append=function(t,e){var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){var i=n.children;i.splice(i.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},e.prepend=function(t,e){var n=t.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(147),i=n(49);function o(t){return"text"===t.type}var a={tag_name:function(t){return"function"==typeof t?function(e){return i.isTag(e)&&t(e.name)}:"*"===t?i.isTag:function(e){return i.isTag(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return o(e)&&t(e.data)}:function(e){return o(e)&&e.data===t}}};function u(t,e){return"function"==typeof e?function(n){return i.isTag(n)&&e(n.attribs[t])}:function(n){return i.isTag(n)&&n.attribs[t]===e}}function s(t,e){return function(n){return t(n)||e(n)}}function l(t){var e=Object.keys(t).map((function(e){var n=t[e];return e in a?a[e](n):u(e,n)}));return 0===e.length?null:e.reduce(s)}e.testElement=function(t,e){var n=l(t);return!n||n(e)},e.getElements=function(t,e,n,i){void 0===i&&(i=1/0);var o=l(t);return o?r.filter(o,e,n,i):[]},e.getElementById=function(t,e,n){return void 0===n&&(n=!0),Array.isArray(e)||(e=[e]),r.findOne(u("id",t),e,n)},e.getElementsByTagName=function(t,e,n,i){return void 0===i&&(i=1/0),r.filter(a.tag_name(t),e,n,i)},e.getElementsByTagType=function(t,e,n,i){return void 0===n&&(n=!0),void 0===i&&(i=1/0),r.filter(a.tag_type(t),e,n,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(49);function i(t,e){var n=[],i=[];if(t===e)return 0;for(var o=r.hasChildren(t)?t:t.parent;o;)n.unshift(o),o=o.parent;for(o=r.hasChildren(e)?e:e.parent;o;)i.unshift(o),o=o.parent;for(var a=0;n[a]===i[a];)a++;if(0===a)return 1;var u=n[a-1],s=u.children,l=n[a],c=i[a];return s.indexOf(l)>s.indexOf(c)?u===e?20:4:u===t?10:2}e.removeSubsets=function(t){for(var e=t.length;--e>=0;){var n=t[e];if(e>0&&t.lastIndexOf(n,e-1)>=0)t.splice(e,1);else for(var r=n.parent;r;r=r.parent)if(t.indexOf(r)>-1){t.splice(e,1);break}}return t},e.compareDocumentPosition=i,e.uniqueSort=function(t){return(t=t.filter((function(t,e,n){return!n.includes(t,e+1)}))).sort((function(t,e){var n=i(t,e);return 2&n?-1:4&n?1:0})),t}},function(t,e){},function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,(function(t){for(var e,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];n.events.push([t].concat(r)),n._cbs[t]&&(e=n._cbs)[t].apply(e,r)}))||this;return n._cbs=e,n.events=[],n}return i(e,t),e.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},e.prototype.restart=function(){var t;this._cbs.onreset&&this._cbs.onreset();for(var e=0;e<this.events.length;e++){var n=this.events[e],r=n[0],i=n.slice(1);this._cbs[r]&&(t=this._cbs)[r].apply(t,i)}},e}(o(n(381)).default);e.CollectingHandler=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this._func=t}return t.prototype.onattribute=function(t,e){this._func("onattribute",t,e)},t.prototype.oncdatastart=function(){this._func("oncdatastart")},t.prototype.oncdataend=function(){this._func("oncdataend")},t.prototype.ontext=function(t){this._func("ontext",t)},t.prototype.onprocessinginstruction=function(t,e){this._func("onprocessinginstruction",t,e)},t.prototype.oncomment=function(t){this._func("oncomment",t)},t.prototype.oncommentend=function(){this._func("oncommentend")},t.prototype.onclosetag=function(t){this._func("onclosetag",t)},t.prototype.onopentag=function(t,e){this._func("onopentag",t,e)},t.prototype.onopentagname=function(t){this._func("onopentagname",t)},t.prototype.onerror=function(t){this._func("onerror",t)},t.prototype.onend=function(){this._func("onend")},t.prototype.onparserinit=function(t){this._func("onparserinit",t)},t.prototype.onreset=function(){this._func("onreset")},t}();e.default=r},function(t,e,n){"use strict";t.exports={shouldProcessEveryNode:function(t){return!0}}},function(t,e,n){(function(e){var n=1/0,r="[object Symbol]",i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",u="[\\ud800-\\udfff]",s="["+a+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",c="\\d+",f="[\\u2700-\\u27bf]",p="[a-z\\xdf-\\xf6\\xf8-\\xff]",d="[^\\ud800-\\udfff"+a+c+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",h="\\ud83c[\\udffb-\\udfff]",m="[^\\ud800-\\udfff]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",y="[A-Z\\xc0-\\xd6\\xd8-\\xde]",b="(?:"+p+"|"+d+")",_="(?:"+y+"|"+d+")",w="(?:"+l+"|"+h+")"+"?",x="[\\ufe0e\\ufe0f]?"+w+("(?:\\u200d(?:"+[m,g,v].join("|")+")[\\ufe0e\\ufe0f]?"+w+")*"),S="(?:"+[f,g,v].join("|")+")"+x,E="(?:"+[m+l+"?",l,g,v,u].join("|")+")",k=RegExp("['’]","g"),T=RegExp(l,"g"),A=RegExp(h+"(?="+h+")|"+E+x,"g"),C=RegExp([y+"?"+p+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[s,y,"$"].join("|")+")",_+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[s,y+b,"$"].join("|")+")",y+"?"+b+"+(?:['’](?:d|ll|m|re|s|t|ve))?",y+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",c,S].join("|"),"g"),O=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),P=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,N="object"==typeof e&&e&&e.Object===Object&&e,L="object"==typeof self&&self&&self.Object===Object&&self,M=N||L||Function("return this")();var j,R=(j={"À":"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","ſ":"ss"},function(t){return null==j?void 0:j[t]});function D(t){return O.test(t)}function I(t){return D(t)?function(t){return t.match(A)||[]}(t):function(t){return t.split("")}(t)}var F=Object.prototype.toString,U=M.Symbol,q=U?U.prototype:void 0,z=q?q.toString:void 0;function B(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&F.call(t)==r}(t))return z?z.call(t):"";var e=t+"";return"0"==e&&1/t==-n?"-0":e}function V(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}(t,e,n)}function H(t){return null==t?"":B(t)}var W,G=(W=function(t,e,n){return e=e.toLowerCase(),t+(n?Y(H(e).toLowerCase()):e)},function(t){return function(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}(function(t,e,n){return t=H(t),void 0===(e=n?void 0:e)?function(t){return P.test(t)}(t)?function(t){return t.match(C)||[]}(t):function(t){return t.match(i)||[]}(t):t.match(e)||[]}(function(t){return(t=H(t))&&t.replace(o,R).replace(T,"")}(t).replace(k,"")),W,"")});var Q,Y=(Q="toUpperCase",function(t){var e=D(t=H(t))?I(t):void 0,n=e?e[0]:t.charAt(0),r=e?V(e,1).join(""):t.slice(1);return n[Q]()+r});t.exports=G}).call(this,n(98))},function(t,e,n){var r=n(39),i=n(92),o=r((function(t){var e=[];for(var n in t)i(n,t)&&(e[e.length]=[n,t[n]]);return e}));t.exports=o},function(t,e,n){var r=n(386)(n(90));t.exports=r},function(t,e,n){var r=n(39),i=n(19),o=n(61);t.exports=function(t){return function e(n,a,u){switch(arguments.length){case 0:return e;case 1:return o(n)?e:i((function(e,r){return t(n,e,r)}));case 2:return o(n)&&o(a)?e:o(n)?i((function(e,n){return t(e,a,n)})):o(a)?i((function(e,r){return t(n,e,r)})):r((function(e){return t(n,a,e)}));default:return o(n)&&o(a)&&o(u)?e:o(n)&&o(a)?i((function(e,n){return t(e,n,u)})):o(n)&&o(u)?i((function(e,n){return t(e,a,n)})):o(a)&&o(u)?i((function(e,r){return t(n,e,r)})):o(n)?r((function(e){return t(e,a,u)})):o(a)?r((function(e){return t(n,e,u)})):o(u)?r((function(e){return t(n,a,e)})):t(n,a,u)}}}},function(t,e,n){"use strict";var r=["accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","challenge","charSet","checked","cite","classID","className","colSpan","cols","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","is","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","nonce","open","optimum","pattern","placeholder","poster","preload","profile","radioGroup","readOnly","rel","required","reversed","role","rowSpan","rows","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","target","title","type","useMap","value","width","wmode","wrap","onClick"].concat(["autoCapitalize","autoCorrect","color","itemProp","itemScope","itemType","itemRef","itemID","security","unselectable","results","autoSave"]).concat(["accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baseProfile","baselineShift","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","ideographic","imageRendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","visibility","widths","wordSpacing","writingMode","x","x1","x2","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlns","xmlnsXlink","xmlBase","xmlLang","xmlSpace","y","y1","y2","yChannelSelector","z","zoomAndPan"]).reduce((function(t,e){var n=e.toLowerCase();return n!==e&&(t[n]=e),t}),{});t.exports=r},,function(t,e,n){"use strict";n.r(e);var r=n(1),i=n.n(r),o=n(152),a=n.n(o),u=n(97),s=n.n(u),l=Object(r.createContext)(),c=l.Provider,f=l.Consumer,p=function(t){var e=t.data,n=e.item,r=e.next,o=e.prev,a=e.nextOptions,u=0!=r||0==r&&a;return i.a.createElement(f,null,(function(t){var e=t.bot_name,s=t.bot_src,l=t.primary_color;return i.a.createElement(i.a.Fragment,null,(0!=r||0==r&&a)&&i.a.createElement("img",{src:s,style:{width:25,height:25}}),i.a.createElement("div",{style:{flexDirection:"column",borderRadius:10,marginLeft:0!=r||a?10:35}},o&&i.a.createElement("p",{style:{fontSize:12,marginBottom:5,color:"#424242"}},e),i.a.createElement("p",{className:u?"message tail":"message",style:{borderBottomLeftRadius:u?0:10,marginBottom:u?20:0,backgroundColor:l}},n.message)))}))};function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var h=function(t){var e=d(Object(r.useState)(!1),2),n=e[0],o=e[1],a=t.data,u=a.option,s=a.id;return i.a.createElement(f,null,(function(t){var e=t.primary_color,r=t.replaceWithAnswer;return i.a.createElement("a",{href:"#",className:"pill",style:{backgroundColor:n?e:"#fff",color:n?"#fff":e,border:"1px solid ".concat(e)},onMouseEnter:function(){return o(!0)},onMouseLeave:function(){return o(!1)},onClick:function(t){t.preventDefault(),r(u,s)}},u)}))},m=function(t){var e=t.data.item;return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"optionsWrapper"},e.message.map((function(t){return i.a.createElement(h,{data:{option:t,id:e.id}})}))))},g=n(153),v=n.n(g);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function x(t,e){return(x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var S=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=_(this,w(e).call(this,t))).state={errorShown:!1},n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}(e,t),n=e,(r=[{key:"componentDidUpdate",value:function(){var t=this;this.props.data.item.error&&setTimeout((function(){return t.setState({errorShown:!0})}),1500)}},{key:"render",value:function(){var t=this.props.data,e=t.item,n=t.next,r=this.state.errorShown;return i.a.createElement("div",{className:"clientMessageWrapper"},i.a.createElement("div",{style:{flexDirection:"row",display:"flex",alignItems:"center"}},i.a.createElement("p",{className:n?"message":"message tail",style:{opacity:e.error?.5:1,borderBottomRightRadius:n?10:0}},e.message),r&&i.a.createElement("img",{src:v.a,width:15,height:15,style:{marginLeft:5}})),e.error&&!r&&i.a.createElement("p",{style:{marginTop:8,fontSize:13,marginLeft:1,opacity:.4}},"Sending failed!")||e.sending&&i.a.createElement("p",{className:"status"},"sending..."))}}])&&b(n.prototype,r),o&&b(n,o),e}(i.a.Component);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function A(t,e){return(A=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var O=function(t){function e(t){var n,r,o,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?C(t):e}(this,T(e).call(this,t)),r=C(C(n)),a=function(){document.getElementsByClassName("chatBody")[0].scrollTo(0,n.scrollToRef.current.offsetTop)},(o="scrollToBottom")in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,n.scrollToRef=i.a.createRef(),n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A(t,e)}(e,t),n=e,(r=[{key:"componentDidUpdate",value:function(){this.scrollToBottom()}},{key:"render",value:function(){var t=this.props.data.data;return i.a.createElement("div",{className:"chatBody"},t.map((function(e,n){var r=t[n+1]&&t[n+1].author,o=!n||1==t[n-1].author,a=t[n+1]&&Array.isArray(t[n+1].message);return!1!==e.visible?0==e.author?i.a.createElement("div",{className:"botMessageWrapper",style:{marginBottom:0!=r?18:0}},Array.isArray(e.message)?i.a.createElement(m,{data:{item:e,next:r,prev:o}}):i.a.createElement(p,{data:{item:e,next:r,prev:o,nextOptions:a}})):i.a.createElement(S,{data:{item:e,next:r}}):null})),i.a.createElement("div",{ref:this.scrollToRef}))}}])&&k(n.prototype,r),o&&k(n,o),e}(i.a.Component),P=n(154),N=n.n(P),L=function(){return i.a.createElement(f,null,(function(t){var e=t.bot_name,n=t.bot_src,r=t.windowTrigger;t.base_url;return i.a.createElement("div",{className:"header"},i.a.createElement("div",{className:"botinfo"},i.a.createElement("img",{src:n,width:"34",height:"34"}),i.a.createElement("p",{class:"botname"},e)),i.a.createElement("a",{className:"close",href:"#",onClick:function(){return r()}},i.a.createElement("img",{src:N.a,width:"12",height:"12"})))}))};function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var F=function(t){function e(t){var n,r,o,a;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?I(t):e}(this,R(e).call(this,t)),r=I(I(n)),a=function(){""!=n.input.current.value&&(n.handleTextInput(n.input.current.value),n.input.current.value="")},(o="handleSubmit")in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,n.input=i.a.createRef(),n.handleTextInput=t.handleTextInput,n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(e,t),n=e,(r=[{key:"render",value:function(){var t=this;return i.a.createElement(f,null,(function(e){var n=e.primary_color,r=e.bot_name;return i.a.createElement("div",{className:"footer",style:{borderTop:"1px solid ".concat(n)}},i.a.createElement("form",{onSubmit:t.handleSubmit,className:"chatinputform"},i.a.createElement("textarea",{className:"chatinput",placeholder:"Reply to ".concat(r),ref:t.input,onKeyPress:function(e){"Enter"===e.key&&(t.handleSubmit(),e.preventDefault())}})))}))}}])&&j(n.prototype,r),o&&j(n,o),e}(i.a.Component),U=function(t){var e=t.data.count;return i.a.createElement(f,null,(function(t){var n=t.primary_color,r=t.bot_inverted,o=t.windowTrigger;return i.a.createElement("div",{className:"toggle",onClick:o,style:{backgroundColor:n}},i.a.createElement("img",{src:r,width:35,height:35}),!!e&&i.a.createElement("p",{className:"count",style:{color:n}},e))}))},q=function(){var t=46656*Math.random()|0,e=46656*Math.random()|0;return(t=("000"+t.toString(36)).slice(-3))+(e=("000"+e.toString(36)).slice(-3))},z=function(){var t=6e4*(new Date).getTimezoneOffset();return new Date(Date.now()-t).toISOString().slice(0,-1).split(".").shift()},B=function(t){var e=new(0,n(342).Parser),r=t.match(/(https?:\/\/[^\s]+)/);return r?(t="<span>".concat(t,"</span>"),e.parse(t.replace(r[0],'<a href="'.concat(r[0],'" target="_blank" style="color:#fff; text-decoration:underline; outline:none">').concat(r[0],"</a>")))):t};function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){X(t,e,n[e])}))}return t}function W(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Q(t){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Y(t,e){return(Y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function X(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $=function(t){function e(t){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),n=function(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?K(t):e}(this,Q(e).call(this,t)),X(K(K(n)),"replaceWithAnswer",(function(t,e){var r=q(),i=n.state,o=i.data,a=i.sessionId;o[n.state.data.findIndex((function(t){return t.id==e}))].visible=!1,o.push({id:r,author:1,message:t,sending:!0}),n.setState({data:o,count:n.state.open?0:n.state.count+1},(function(){var e=n.state.data,i=e.findIndex((function(t){return t.id==r})),o=new FormData;o.set("qs",t),o.set("sender",a),o.set("current_time",z()),s.a.post("".concat(n.BASE_URL),o,{"Content-Type":"multipart/form-data"}).then((function(t){var r=t.data;e[i].sending=!1,r.forEach((function(t){var n=t.text;e.push({message:B(n),author:0,id:q()})})),n.setState({data:e,count:n.state.open?0:n.state.count+r.length})})).catch((function(t){e[i].error=!0,e[i].sending=!1,n.setState({data:e})}))}))})),X(K(K(n)),"handleTextInput",(function(t){var e=q(),r=n.state,i=r.data,o=r.sessionId,a=i.length-1;i[a].message&&Array.isArray(i[a].message)&&(i[a].visible=!1),i.push({id:e,author:1,message:t,sending:!0}),n.setState({data:i,count:n.state.open?0:n.state.count+1},(function(){var r=n.state.data.findIndex((function(t){return t.id==e})),i=n.state.data,a=new FormData;a.set("qs",t),a.set("sender",o),a.set("current_time",z()),s.a.post("".concat(n.BASE_URL),a,{"Content-Type":"multipart/form-data"}).then((function(t){var e=t.data;i[r].sending=!1,e.forEach((function(t){var e=t.text;i.push({message:B(e),author:0,id:q()})})),n.setState({data:i,count:n.state.open?0:n.state.count+e.length})})).catch((function(t){i[r].error=!0,i[r].sending=!1,n.setState({data:i})}))}))})),X(K(K(n)),"windowTrigger",(function(){var t=n.state.open;t?n.setState({open:!t}):n.setState({open:!t,count:0})})),n.state={open:!1,data:[],count:0};var r=n.props.wpObject.base_url;return"/"!=r[r.length-1]&&(r+="/"),n.BASE_URL=r,n.windowTrigger=n.windowTrigger.bind(K(K(n))),n}var n,r,o;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Y(t,e)}(e,t),n=e,(r=[{key:"componentDidMount",value:function(){this.setSession(),this.initialMessagePopulate()}},{key:"setSession",value:function(){var t=localStorage.getItem("sessionId");t||(t=q(),localStorage.setItem("sessionId",t)),this.setState({sessionId:t})}},{key:"initialMessagePopulate",value:function(){var t=/^\[(.+)\]$/gm,e=this.props.wpObject.initial_state.split(/\r?\n/g).filter((function(t){return!!t.trim()})).map((function(e){var n=t.exec(e);return n?{message:n[1].split(",").map((function(t){return t.trim()})),id:q(),author:0}:{message:e,id:q(),author:0}}));this.setState({data:W(this.state.data).concat(W(e)),count:this.state.open?0:this.state.count+e.length})}},{key:"render",value:function(){var t=this.state,e=t.open,n=t.data,r=t.count;return console.log(n,"data"),n.length>0?i.a.createElement(c,{value:H({},this.props.wpObject,{base_url:this.BASE_URL,replaceWithAnswer:this.replaceWithAnswer,windowTrigger:this.windowTrigger})},i.a.createElement("div",{className:"window",style:{right:e?0:-350,display:e?"flex":"none"}},i.a.createElement(L,null),i.a.createElement(O,{data:{data:n}}),i.a.createElement(F,{handleTextInput:this.handleTextInput})),!e&&i.a.createElement(U,{data:{count:r}})):null}}])&&G(n.prototype,r),o&&G(n,o),e}(i.a.Component);window._babelPolyfill||n(155),document.addEventListener("DOMContentLoaded",(function(){for(var t=document.querySelectorAll(".piri-faa-widget"),e=0;e<t.length;++e){var n=t[e].getAttribute("data-object-id");a.a.render(i.a.createElement($,{wpObject:window[n]}),t[e])}}))}]); -
piri-faq-ai-assistant/trunk/piri-faq-ai-assistant.php
r2186504 r2186517 14 14 * Plugin URI: http://piri.ai/ 15 15 * Description: FAQ AI Assistant 16 * Version: 1.2 16 * Version: 1.2.1 17 17 * Author: PIRI 18 18 * Author URI: http://piri.ai/ … … 31 31 } 32 32 33 define( 'PIRI_FAA_VERSION', '1.2 ' );33 define( 'PIRI_FAA_VERSION', '1.2.1' ); 34 34 35 35 -
piri-faq-ai-assistant/trunk/readme.txt
r2186504 r2186517 45 45 46 46 * Added anchor link support 47 48 = 1.2.1 = 49 50 * Minor Bug fixes
Note: See TracChangeset
for help on using the changeset viewer.