PageSourceSearch

https://www.deltadentalnj.com/smile_resources/js/externalclient?v=nDOnPGrCH-G0-9Zbm4VMj54C3IQtqm9gXFGVSBQLiP81

js deltadentalnj.com collected 2026-09-24 12:07:14 UTC 38,976 bytes, 1 lines download raw bytes

1var __extends,Ajax,ExternalClientApi;!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():n.axios=t()}(window,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){var r,u;if((1&i&&(n=t(n)),8&i)||4&i&&"object"==typeof n&&n&&n.__esModule)return n;if(r=Object.create(null),t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(u in n)t.d(r,u,function(t){return n[t]}.bind(null,u));return r},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=10)}([function(n,t,i){"use strict";function f(n){return"[object Array]"===r.call(n)}function e(n){return void 0===n}function s(n){return null!==n&&"object"==typeof n}function u(n){if("[object Object]"!==r.call(n))return!1;var t=Object.getPrototypeOf(n);return null===t||t===Object.prototype}function h(n){return"[object Function]"===r.call(n)}function o(n,t){var i,u,r;if(null!=n)if("object"!=typeof n&&(n=[n]),f(n))for(i=0,u=n.length;i<u;i++)t.call(null,n[i],i,n);else for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.call(null,n[r],r,n)}var c=i(2),r=Object.prototype.toString;n.exports={isArray:f,isArrayBuffer:function(n){return"[object ArrayBuffer]"===r.call(n)},isBuffer:function(n){return null!==n&&!e(n)&&null!==n.constructor&&!e(n.constructor)&&"function"==typeof n.constructor.isBuffer&&n.constructor.isBuffer(n)},isFormData:function(n){return"undefined"!=typeof FormData&&n instanceof FormData},isArrayBufferView:function(n){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer&&n.buffer instanceof ArrayBuffer},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isObject:s,isPlainObject:u,isUndefined:e,isDate:function(n){return"[object Date]"===r.call(n)},isFile:function(n){return"[object File]"===r.call(n)},isBlob:function(n){return"[object Blob]"===r.call(n)},isFunction:h,isStream:function(n){return s(n)&&h(n.pipe)},isURLSearchParams:function(n){return"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:o,merge:function n(){function e(i,r){t[r]=u(t[r])&&u(i)?n(t[r],i):u(i)?n({},i):f(i)?i.slice():i}for(var t={},i=0,r=arguments.length;i<r;i++)o(arguments[i],e);return t},extend:function(n,t,i){return o(t,function(t,r){n[r]=i&&"function"==typeof t?c(t,i):t}),n},trim:function(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")},stripBOM:function(n){return 65279===n.charCodeAt(0)&&(n=n.slice(1)),n}}},function(n,t,i){"use strict";function e(n,t){!r.isUndefined(n)&&r.isUndefined(n["Content-Type"])&&(n["Content-Type"]=t)}var r=i(0),f=i(16),s=i(4),h={"Content-Type":"application/x-www-form-urlencoded"},o,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(o=i(5)),o),transformRequest:[function(n,t){return f(t,"Accept"),f(t,"Content-Type"),r.isFormData(n)||r.isArrayBuffer(n)||r.isBuffer(n)||r.isStream(n)||r.isFile(n)||r.isBlob(n)?n:r.isArrayBufferView(n)?n.buffer:r.isURLSearchParams(n)?(e(t,"application/x-www-form-urlencoded;charset=utf-8"),n.toString()):r.isObject(n)||t&&"application/json"===t["Content-Type"]?(e(t,"application/json"),function(n,t,i){if(r.isString(n))try{return(t||JSON.parse)(n),r.trim(n)}catch(n){if("SyntaxError"!==n.name)throw n;}return(i||JSON.stringify)(n)}(n)):n}],transformResponse:[function(n){var t=this.transitional,u=t&&t.silentJSONParsing,f=t&&t.forcedJSONParsing,i=!u&&"json"===this.responseType;if(i||f&&r.isString(n)&&n.length)try{return JSON.parse(n)}catch(n){if(i){if("SyntaxError"===n.name)throw s(n,this,"E_JSON_PARSE");throw n;}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(n){return n>=200&&n<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}};r.forEach(["delete","get","head"],function(n){u.headers[n]={}});r.forEach(["post","put","patch"],function(n){u.headers[n]=r.merge(h)});n.exports=u},function(n){"use strict";n.exports=function(n,t){return function(){for(var r=new Array(arguments.length),i=0;i<r.length;i++)r[i]=arguments[i];return n.apply(t,r)}}},function(n,t,i){"use strict";function u(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var r=i(0);n.exports=function(n,t,i){var f,e,o;return t?(i?f=i(t):r.isURLSearchParams(t)?f=t.toString():(e=[],r.forEach(t,function(n,t){null!=n&&(r.isArray(n)?t+="[]":n=[n],r.forEach(n,function(n){r.isDate(n)?n=n.toISOString():r.isObject(n)&&(n=JSON.stringify(n));e.push(u(t)+"="+u(n))}))}),f=e.join("&")),f&&(o=n.indexOf("#"),-1!==o&&(n=n.slice(0,o)),n+=(-1===n.indexOf("?")?"?":"&")+f),n):n}},function(n){"use strict";n.exports=function(n,t,i,r,u){return n.config=t,i&&(n.code=i),n.request=r,n.response=u,n.isAxiosError=!0,n.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}},n}},function(n,t,i){"use strict";var r=i(0),f=i(17),e=i(18),o=i(3),s=i(19),h=i(22),c=i(23),u=i(6);n.exports=function(n){return new Promise(function(t,i){function d(){if(l){var r="getAllResponseHeaders"in l?h(l.getAllResponseHeaders()):null,u={data:y&&"text"!==y&&"json"!==y?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:n,request:l};f(t,i,u);l=null}}var a=n.data,v=n.headers,y=n.responseType,l,b,k,p,w;r.isFormData(a)&&delete v["Content-Type"];
1l=new XMLHttpRequest;n.auth&&(b=n.auth.username||"",k=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"",v.Authorization="Basic "+btoa(b+":"+k));p=s(n.baseURL,n.url);(l.open(n.method.toUpperCase(),o(p,n.params,n.paramsSerializer),!0),l.timeout=n.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(i(u("Request aborted",n,"ECONNABORTED",l)),l=null)},l.onerror=function(){i(u("Network Error",n,null,l));l=null},l.ontimeout=function(){var t="timeout of "+n.timeout+"ms exceeded";n.timeoutErrorMessage&&(t=n.timeoutErrorMessage);i(u(t,n,n.transitional&&n.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",l));l=null},r.isStandardBrowserEnv())&&(w=(n.withCredentials||c(p))&&n.xsrfCookieName?e.read(n.xsrfCookieName):void 0,w&&(v[n.xsrfHeaderName]=w));"setRequestHeader"in l&&r.forEach(v,function(n,t){void 0===a&&"content-type"===t.toLowerCase()?delete v[t]:l.setRequestHeader(t,n)});r.isUndefined(n.withCredentials)||(l.withCredentials=!!n.withCredentials);y&&"json"!==y&&(l.responseType=n.responseType);"function"==typeof n.onDownloadProgress&&l.addEventListener("progress",n.onDownloadProgress);"function"==typeof n.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",n.onUploadProgress);n.cancelToken&&n.cancelToken.promise.then(function(n){l&&(l.abort(),i(n),l=null)});a||(a=null);l.send(a)})}},function(n,t,i){"use strict";var r=i(4);n.exports=function(n,t,i,u,f){var e=new Error(n);return r(e,t,i,u,f)}},function(n){"use strict";n.exports=function(n){return!(!n||!n.__CANCEL__)}},function(n,t,i){"use strict";var r=i(0);n.exports=function(n,t){function u(n,t){return r.isPlainObject(n)&&r.isPlainObject(t)?r.merge(n,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function h(f){r.isUndefined(t[f])?r.isUndefined(n[f])||(i[f]=u(void 0,n[f])):i[f]=u(n[f],t[f])}var c,l;t=t||{};var i={},f=["url","method","data"],e=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];return r.forEach(f,function(n){r.isUndefined(t[n])||(i[n]=u(void 0,t[n]))}),r.forEach(e,h),r.forEach(o,function(f){r.isUndefined(t[f])?r.isUndefined(n[f])||(i[f]=u(void 0,n[f])):i[f]=u(void 0,t[f])}),r.forEach(s,function(r){r in t?i[r]=u(n[r],t[r]):r in n&&(i[r]=u(void 0,n[r]))}),c=f.concat(e).concat(o).concat(s),l=Object.keys(n).concat(Object.keys(t)).filter(function(n){return-1===c.indexOf(n)}),r.forEach(l,h),i}},function(n){"use strict";function t(n){this.message=n}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};t.prototype.__CANCEL__=!0;n.exports=t},function(n,t,i){n.exports=i(11)},function(n,t,i){"use strict";function e(n){var t=new u(n),i=o(u.prototype.request,t);return f.extend(i,u.prototype,t),f.extend(i,t),i}var f=i(0),o=i(2),u=i(12),s=i(8),r=e(i(1));r.Axios=u;r.create=function(n){return e(s(r.defaults,n))};r.Cancel=i(9);r.CancelToken=i(26);r.isCancel=i(7);r.all=function(n){return Promise.all(n)};r.spread=i(27);r.isAxiosError=i(28);n.exports=r;n.exports.default=r},function(n,t,i){"use strict";function u(n){this.defaults=n;this.interceptors={request:new o,response:new o}}var e=i(0),c=i(3),o=i(13),s=i(14),f=i(8),h=i(24),r=h.validators;u.prototype.request=function(n){var l,u,o,t,e,i,c,a,v;if("string"==typeof n?(n=arguments[1]||{}).url=arguments[0]:n=n||{},n.method=(n=f(this.defaults,n)).method?n.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get",l=n.transitional,void 0!==l&&h.assertOptions(l,{silentJSONParsing:r.transitional(r.boolean,"1.0.0"),forcedJSONParsing:r.transitional(r.boolean,"1.0.0"),clarifyTimeoutError:r.transitional(r.boolean,"1.0.0")},!1),u=[],o=!0,this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(n)||(o=o&&t.synchronous,u.unshift(t.fulfilled,t.rejected))}),e=[],this.interceptors.response.forEach(function(n){e.push(n.fulfilled,n.rejected)}),!o){for(i=[s,void 0],Array.prototype.unshift.apply(i,u),i=i.concat(e),t=Promise.resolve(n);i.length;)t=t.then(i.shift(),i.shift());return t}for(c=n;u.length;){a=u.shift();v=u.shift();try{c=a(c)}catch(n){v(n);break}}try{t=s(c)}catch(n){return Promise.reject(n)}for(;e.length;)t=t.then(e.shift(),e.shift());return t};u.prototype.getUri=function(n){return n=f(this.defaults,n),c(n.url,n.params,n.paramsSerializer).replace(/^\?/,"")};e.forEach(["delete","get","head","options"],function(n){u.prototype[n]=function(t,i){return this.request(f(i||{},{method:n,url:t,data:(i||{}).data}))}});e.forEach(["post","put","patch"],function(n){u.prototype[n]=function(t,i,r){return this.request(f(r||{},{method:n,url:t,data:i}))}});n.exports=u},function(n,t,i){"use strict";function r(){this.handlers=[]}var u=i(0);r.prototype.use=function(n,t,i){return this.handlers.push({fulfilled:n,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1};r.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)};r.prototype.forEach=function(n){u.forEach(this.handlers,function(t){null!==t&&n(t)})};n.exports=r},function(n,t,i){"use strict";function u(n){n.cancelToken&&n.cancelToken.throwIfRequested()}var f=i(0),r=i(15),e=i(7),o=i(1);n.exports=function(n){return u(n),n.headers=n.headers||{},n.data=r.call(n,n.data,n.headers,n.transformRequest),n.headers=f.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),f.forEach(["delete","get","head","post","put","patch","common"],function(t){delete n.headers[t]}),(n.adapter||o.adapter)(n).then(function(t){return u(n),t.data=r.call(n,t.data,t.headers,n.transformResponse),t},function(t){return e(t)||(u(n),t&&t.response&&(t.response.data=r.call(n,t.response.data,t.response.headers,n.transformResponse))),Promise.reject(t)})}},function(n,t,i){"use strict";var r=i(0),u=i(1);n.exports=function(n,t,i){var f=this||u;return r.forEach(i,function(i){n=i.call(f,n,t)}
1),n}},function(n,t,i){"use strict";var r=i(0);n.exports=function(n,t){r.forEach(n,function(i,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(n[t]=i,delete n[r])})}},function(n,t,i){"use strict";var r=i(6);n.exports=function(n,t,i){var u=i.config.validateStatus;i.status&&u&&!u(i.status)?t(r("Request failed with status code "+i.status,i.config,null,i.request,i)):n(i)}},function(n,t,i){"use strict";var r=i(0);n.exports=r.isStandardBrowserEnv()?{write:function(n,t,i,u,f,e){var o=[];o.push(n+"="+encodeURIComponent(t));r.isNumber(i)&&o.push("expires="+new Date(i).toGMTString());r.isString(u)&&o.push("path="+u);r.isString(f)&&o.push("domain="+f);!0===e&&o.push("secure");document.cookie=o.join("; ")},read:function(n){var t=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(n,t,i){"use strict";var r=i(20),u=i(21);n.exports=function(n,t){return n&&!r(t)?u(n,t):t}},function(n){"use strict";n.exports=function(n){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(n)}},function(n){"use strict";n.exports=function(n,t){return t?n.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):n}},function(n,t,i){"use strict";var r=i(0),u=["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"];n.exports=function(n){var t,f,e,i={};return n?(r.forEach(n.split("\n"),function(n){if(e=n.indexOf(":"),t=r.trim(n.substr(0,e)).toLowerCase(),f=r.trim(n.substr(e+1)),t){if(i[t]&&u.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([f]):i[t]?i[t]+", "+f:f}}),i):i}},function(n,t,i){"use strict";var r=i(0);n.exports=r.isStandardBrowserEnv()?function(){function i(t){var i=t;return u&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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}}var t,u=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");return t=i(window.location.href),function(n){var u=r.isString(n)?i(n):n;return u.protocol===t.protocol&&u.host===t.host}}():function(){return!0}},function(n,t,i){"use strict";function o(n,t){for(var r=t?t.split("."):e,u=n.split("."),i=0;i<3;i++){if(r[i]>u[i])return!0;if(r[i]<u[i])return!1}return!1}var f=i(25),r={},u,e;["object","boolean","number","function","string","symbol"].forEach(function(n,t){r[n]=function(i){return typeof i===n||"a"+(t<1?"n ":" ")+n}});u={};e=f.version.split(".");r.transitional=function(n,t,i){function r(n,t){return"[Axios v"+f.version+"] Transitional option '"+n+"'"+t+(i?". "+i:"")}var e=t&&o(t);return function(i,f,o){if(!1===n)throw new Error(r(f," has been removed in "+t));return e&&!u[f]&&(u[f]=!0,console.warn(r(f," has been deprecated since v"+t+" and will be removed in the near future"))),!n||n(i,f,o)}};n.exports={isOlderVersion:o,assertOptions:function(n,t,i){var u,f,r,e,o,s;if("object"!=typeof n)throw new TypeError("options must be an object");for(u=Object.keys(n),f=u.length;f-->0;)if(r=u[f],e=t[r],e){if(o=n[r],s=void 0===o||e(o,r,n),!0!==s)throw new TypeError("option "+r+" must be "+s);}else if(!0!==i)throw Error("Unknown option "+r);},validators:r}},function(n){n.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.
119","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(n,t,i){"use strict";function r(n){var i,t;if("function"!=typeof n)throw new TypeError("executor must be a function.");this.promise=new Promise(function(n){i=n});t=this;n(function(n){t.reason||(t.reason=new u(n),i(t.reason))})}var u=i(9);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason;};r.source=function(){var n;return{token:new r(function(t){n=t}),cancel:n}};n.exports=r},function(n){"use strict";n.exports=function(n){return function(t){return n.apply(null,t)}}},function(n){"use strict";n.exports=function(n){return"object"==typeof n&&!0===n.isAxiosError}}])});__extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.
1setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),function(n){var t=function(n){function t(){var i,r,t=n.call(this)||this;return t.endpoint="/api/platform/eca/token",t.getOrSetAccessTokens=function(){var n=jQuery.Deferred();return!t.tokenAuthEnabled||!t.needToGenerateNewTokens()?(n.resolve(t.accessTokens),n.promise()):(t.getJson(t.endpoint,null,!1).then(function(i){t.accessTokens=i.Data;n.resolve(t.accessTokens)}),n.promise())},t.tokenAuthEnabled=Smile.ExternalClientApi.Config.TokenAuthEnabled,((r=(i=Smile===null||Smile===void 0?void 0:Smile.ExternalClientApi)===null||i===void 0?void 0:i.Config)===null||r===void 0?void 0:r.AccessTokens)&&(t.accessTokens=Smile.ExternalClientApi.Config.AccessTokens),t}return __extends(t,n),t.prototype.needToGenerateNewTokens=function(){var n,t;return this.accessTokens===null?!0:this.isTokenNullOrExpired(Smile.User.IsAuth?(n=this.accessTokens)===null||n===void 0?void 0:n.PrivateAccessToken:(t=this.accessTokens)===null||t===void 0?void 0:t.PublicAccessToken)},t.prototype.isTokenNullOrExpired=function(n){return!(n!=null&&!this.isExpired(n.ExpiresAt))},t.prototype.isExpired=function(n){if(n==null)return!0;var t=moment((new Date).toUTCString());return t.isSameOrAfter(moment(n))},t}(Ajax.HttpService);n.ExternalClientAuthService=t}(ExternalClientApi||(ExternalClientApi={})),function(n){var t=function(){function t(n){this.pleaseWaitUrl="/pdf-download";this.authService=n;this.client=axios.create({baseURL:Smile.ExternalClientApi.Config.Endpoint})}return t.prototype.getJson=function(n,t,i,r,u,f){var o=this,e;return i===void 0&&(i=!0),r===void 0&&(r=!0),u===void 0&&(u=!1),f===void 0&&(f=!1),e=jQuery.Deferred(),this.authService.getOrSetAccessTokens().then(function(s){o.accessTokens=s;o.executeGetJson(n,t,i,r,u,f).then(function(n){return e.resolve(n)},function(n){e.reject(n)})}),e.promise()},t.prototype.postJson=function(n,t,i,r,u,f,e){var s=this,o;return i===void 0&&(i=!0),r===void 0&&(r=!0),u===void 0&&(u=!1),f===void 0&&(f=!1),e===void 0&&(e=!1),o=jQuery.Deferred(),this.authService.getOrSetAccessTokens().then(function(h){s.accessTokens=h;s.executePostJson(n,t,i,r,u,f,e).then(function(n){return o.resolve(n)},function(n){o.reject(n)})}),o.promise()},t.prototype.downloadFile=function(n,t,i){var u=this,r;return t===void 0&&(t=null),i===void 0&&(i=!1),r=$.Deferred(),this.authService.getOrSetAccessTokens().then(function(f){u.accessTokens=f;u.executeDownloadFile(n,t,i).then(function(n){r.resolve(n)}).catch(function(n){r.reject(n)})}).catch(function(n){r.reject(n)}),r},t.prototype.downloadFileXHR=function(t,i,r,u,f){var c=this,e,h,o,s;if(i===void 0&&(i=null),r===void 0&&(r=!1),e=new XMLHttpRequest,h=Smile.ExternalClientApi.Config.Endpoint+t,e.open("GET",h,!0),e.withCredentials=r,e.responseType="blob",o=this.getAuthHeader(t),o)for(s in o)e.setRequestHeader(s,o[s]);return e.setRequestHeader("Accept","application/pdf"),n.AjaxRequestHandler.requestCount++,Smile.Events.fire(Events.Action.ShowLoadingDialog,"Downloading..."),e.onload=function(){var r,n,t;if(e.status!==200){Smile.Modals.ErrorDialog.show("Error downloading document",null);f&&f();return}if(r=e.response,i||(i=c.getFileNameFromHeaderXHR(e)),n=window.navigator,n&&n.msSaveOrOpenBlob){n.msSaveOrOpenBlob(r,i);return}t=document.createElement("a");t.href=window.URL.createObjectURL(r);t.download=i;t.click()},e.onloadend=function(){Smile.Events.fire(Events.Action.HideLoadingDialog);u&&e.status===200&&u()},e.onerror=function(){f&&f()},e.send(),e},t.prototype.getFileNameFromHeaderXHR=function(n){var i=n.getResponseHeader("content-disposition"),t=/filename="(.*?)"/i.exec(i);return t&&t.length>1?t[1]:null},t.prototype.downloadGenericFile=function(n,t,i){var r=this;t===void 0&&(t=null);i===void 0&&(i=!1);this.authService.getOrSetAccessTokens().then(function(u){r.accessTokens=u;r.executeDownloadGenericFile(n,t,i)})},t.prototype.putFile=function(n,t,i,r,u,f,e,o){i===void 0&&(i=undefined);r===void 0&&(r=undefined);u===void 0&&(u=!1);f===void 0&&(f=!1);e===void 0&&(e=!1);o===void 0&&(o=!0);var s=jQuery.Deferred();return this.executePutFile(n,t,i,r,u,f,e,o).then(function(n){return s.resolve(n)},function(n){s.reject(n)}),s.promise()},t.prototype.executeGetJson=function(t,i,r,u,f,e){var h=this,o,s;return r===void 0&&(r=!0),u===void 0&&(u=!0),f===void 0&&(f=!1),e===void 0&&(e=!1),o={withCredentials:f,params:{request:JSON.stringify(i),cachebuster:Core.Guid.newGuid().toString()},headers:this.getAuthHeader(t)},e&&(o.responseType="arraybuffer",o.headers||(o.headers={}),o.headers.Accept="application/pdf"),r&&Smile.Events.fire(Events.Action.ShowLoadingDialog,null),Smile.Events.fire(Events.Action.CoreAJAXDataPreLoad,t),s=this.client.get(t,o),n.AjaxRequestHandler.requestCount++,s.then(function(i){n.AjaxRequestHandler.handleResult(i,t);n.AjaxRequestHandler.processUiRules(i)}).catch(function(n){return h.handleError(n,t)}).then(function(){return n.AjaxRequestHandler.handleRequestCount(u)}),s},t.prototype.executePostJson=function(t,i,r,u,f,e,o){var c=this,s,h;return r===void 0&&(r=!0),u===void 0&&(u=!0),f===void 0&&(f=!1),e===void 0&&(e=!1),o===void 0&&(o=!1),s={headers:this.getAuthHeader(t),withCredentials:f},e&&(s.responseType="arraybuffer",s.headers||(s.headers={}),s.headers.Accept="application/pdf"),o&&(i=i?pako.gzip(JSON.stringify(i),{level:9}):null,s.headers["Content-Type"]="application/json; charset=utf-8",s.headers["Content-Encoding"]="gzip"),r&&Smile.Events.fire(Events.Action.ShowLoadingDialog,null),Smile.Events.fire(Events.Action.CoreAJAXDataPreLoad,t),h=this.client.post(t,i,s),n.AjaxRequestHandler.requestCount++,h.then(function(i){n.AjaxRequestHandler.handleResult(i,t);n.AjaxRequestHandler.processUiRules(i)}).catch(function(n){return c.handleError(n,t)}).then(function(){return n.AjaxRequestHandler.handleRequestCount(u)}),h},t.prototype.executePutFile=function(t,i,r,u,f,e,o,s){var l=this,h,c;return r===void 0&&(r=undefined),u===void 0&&(u=undefined),f===void 0&&(f=!1),e===void 0&&(e=!1),o===void 0&&(o=!0),s===void 0&&(s=!0),h={headers:{},withCredentials:f},h.onUploadProgress=u,r&&r.forEach(function(n){h.headers[n.key]=n.value}),e&&Smile.Events.fire(Events.Action.ShowLoadingDialog,null),Smile.Events.fire(Events.Action.CoreAJAXDataPreLoad,t),c=this.client.put(t,i,h),n.AjaxRequestHandler.requestCount++,c.then(function(i){n.AjaxRequestHandler.handleResult(i,t);n.AjaxRequestHandler.processUiRules(i)}).catch(function(n){s&&l.handleError(n,t)}).then(function(){return n.AjaxRequestHandler.handleRequestCount(o)}),c},t.prototype.executeOpenStaticFileInNewTab=function(n,t){var r=this,i=window.open(this.pleaseWaitUrl),u=axios.get(n,{responseType:"blob"});u.then(function(n){var r=window.URL.createObjectURL(new Blob([n.data],{type:t}));i.location=r}).catch(function(){r.replaceTabContentWithErrorMessage(i)})},t.prototype.replaceTabContentWithErrorMessage=function(n){var t=new Blob(["<h2>Sorry, an error occurred, please try again.<\/h2>"],{type:"text/html"}),i=window.URL.createObjectURL(t);n.location=i},t.prototype.executeDownloadFile=function(t,i,r){var e=this,u,f,o;return i===void 0&&(i=null),r===void 0&&(r=!1),u={withCredentials:r,headers:this.getAuthHeader(t),responseType:"arraybuffer"},u.headers||(u.headers={}),u.headers.Accept="application/pdf",n.AjaxRequestHandler.requestCount++,Smile.Events.fire(Events.Action.ShowLoadingDialog,"Downloading..."),f=$.Deferred(),o=this.client.get(t,u),o.then(function(n){var r=window.URL.createObjectURL(new Blob([n.data],{type:"application/pdf"})),t=document.createElement("a");t.href=r;t.setAttribute("download",i);document.body.appendChild(t);t.click();Smile.Events.fire(Events.Action.HideLoadingDialog);f.resolve(!0)}).catch(function(n){n.response.data=e.handleDownloadFileError(n.response.data);var t=n.response.data.Workflow;
1t&&t.WorkflowErrorContext.IsWorkflowError&&Smile.Events.fire(Events.Action.WorkflowErrorOccurred);e.handleError(n,"");f.resolve(!1)}).then(function(){return n.AjaxRequestHandler.handleRequestCount()}),f},t.prototype.executeDownloadGenericFile=function(t,i,r){var e=this,u,f;i===void 0&&(i=null);r===void 0&&(r=!1);u={withCredentials:r,headers:this.getAuthHeader(t),responseType:"blob"};u.headers||(u.headers={});u.headers.Accept="application/octet-stream";n.AjaxRequestHandler.requestCount++;Smile.Events.fire(Events.Action.ShowLoadingDialog,"Downloading...");f=this.client.get(t,u);f.then(function(n){var r=window.URL.createObjectURL(new Blob([n.data])),t=document.createElement("a");i||(i=e.getFileNameFromHeader(n));t.href=r;t.setAttribute("download",i);document.body.appendChild(t);t.click();document.body.removeChild(t)}).catch(function(){Smile.Modals.ErrorDialog.show("Error downloading document",null)}).then(function(){return n.AjaxRequestHandler.handleRequestCount(!0)})},t.prototype.getFileNameFromHeader=function(n){var i=n.headers["content-disposition"],t=/filename="(.*?)"/i.exec(i);return t&&t.length>1?t[1]:null},t.prototype.handleDownloadFileError=function(n){var t=new TextDecoder("utf-8");return JSON.parse(t.decode(n))},t.prototype.getAuthHeader=function(n){var t=this.getAccessTokenForUrl(n);return t?{Authorization:"Bearer ".concat(t)}:null},t.prototype.getAccessTokenForUrl=function(n){var t;return n.indexOf("/private/")>-1?this.accessTokens&&this.accessTokens.PrivateAccessToken?this.accessTokens.PrivateAccessToken.AccessToken:null:((t=this.accessTokens.PublicAccessToken)===null||t===void 0?void 0:t.AccessToken)?this.accessTokens.PublicAccessToken.AccessToken:null},t.prototype.handleError=function(t,i){var r,u=t.response?t.response.status:500;n.AjaxRequestHandler.handleError(u,(r=t.response)===null||r===void 0?void 0:r.data,i)},t}();n.ExternalClientApiHttpService=t}(Ajax||(Ajax={}));Smile.createNamespace(Smile,"Smile.AjaxAxios");Smile.AjaxAxios=new Ajax.ExternalClientApiHttpService(new ExternalClientApi.ExternalClientAuthService),function(n){var t=function(){function t(n){this.pleaseWaitUrl="/pdf-download";this.authService=n;this.axiosClient=axios.create({baseURL:Smile.ExternalClientApi.Config.Endpoint})}return t.prototype.request=function(t){return new n.HttpRequestBuilder(t,this)},t.prototype.getJson=function(n){var i=this,t=jQuery.Deferred();return this.authService.getOrSetAccessTokens().then(function(n){return i.accessTokens=n}).then(function(){return i.performGet(n)}).then(function(n){return t.resolve(n)}).catch(function(n){return t.reject(n)}),t.promise()},t.prototype.postJson=function(n){var i=this,t=jQuery.Deferred();return this.authService.getOrSetAccessTokens().then(function(n){return i.accessTokens=n}).then(function(){return i.performPost(n)}).then(function(n){return t.resolve(n)}).catch(function(n){return t.reject(n)}),t.promise()},t.prototype.uploadFile=function(n){var t=jQuery.Deferred();return this.performUploadFile(n).then(function(n){return t.resolve(n)}).catch(function(n){return t.reject(n)}),t.promise()},t.prototype.downloadPdf=function(n){var t=this;this.authService.getOrSetAccessTokens().then(function(n){return t.accessTokens=n}).then(function(){return t.performDownloadPdf(n)})},t.prototype.downloadBlob=function(n){var t=this;this.authService.getOrSetAccessTokens().then(function(n){return t.accessTokens=n}).then(function(){return t.performDownloadBlob(n)})},t.prototype.openFileInNewTab=function(n,t){var r=this,i=window.open(this.pleaseWaitUrl),u=axios.get(n,{responseType:"blob"});u.then(function(n){return i.location=window.URL.createObjectURL(new Blob([n.data],{type:t}))}).catch(function(){return r.replaceTabContentWithErrorMessage(i)})},t.prototype.performGet=function(t){var i=this,u=new n.AxiosRequestConfigBuilder(t.useCredentials).setAuthHeader(t.url,this.accessTokens).setDataToParams(t.data).expectPdf(t.expectPdf).enableGzip(t.enableGzip).build(),r;return this.showLoadingDialog(t.showLoadingDialog),this.firePreLoadEvent(t.url),r=this.axiosClient.get(t.url,u),this.incrementRequestCount(),r.then(function(n){return i.processResult(n,t.url)}).catch(function(n){return i.handleError(n,t.url)}
1).then(function(){return i.handleRequestCount(t.hideLoadingDialog)}),r},t.prototype.performPost=function(t){var i=this,u=new n.AxiosRequestConfigBuilder(t.useCredentials).setAuthHeader(t.url,this.accessTokens).expectPdf(t.expectPdf).enableGzip(t.enableGzip).build(),r;return t.data=this.compressData(t.data,t.enableGzip),this.showLoadingDialog(t.showLoadingDialog),this.firePreLoadEvent(t.url),r=this.axiosClient.post(t.url,t.data,u),this.incrementRequestCount(),r.then(function(n){return i.processResult(n,t.url)}).catch(function(n){return i.handleError(n,t.url)}).then(function(){return i.handleRequestCount(t.hideLoadingDialog)}),r},t.prototype.performUploadFile=function(t){var i=this,u=new n.AxiosRequestConfigBuilder(t.useCredentials).setUploadProgressCallback(t.uploadProgressCallback).setMetadataHeaders(t.metadataHeaders).build(),r;return this.showLoadingDialog(t.showLoadingDialog),this.firePreLoadEvent(t.url),r=this.axiosClient.put(t.url,t.file,u),this.incrementRequestCount(),r.then(function(n){return i.processResult(n,t.url)}).catch(function(n){return i.handleError(n,t.url,t.handleErrors)}).then(function(){return i.handleRequestCount(t.hideLoadingDialog)}),r},t.prototype.performDownloadPdf=function(t){var i=this,u=new n.AxiosRequestConfigBuilder(t.useCredentials).setAuthHeader(t.url,this.accessTokens).expectPdf(!0).build(),r;this.incrementRequestCount();this.showLoadingDialog(!0,"Downloading...");r=this.axiosClient.get(t.url,u);r.then(function(n){return i.downloadFileContent(n,t.fileName,!1,{type:"application/pdf"})}).then(function(){return i.hideLoadingDialog()}).catch(function(n){n.response.data=i.handleDownloadFileError(n.response.data);var t=n.response.data.Workflow;
1t&&t.WorkflowErrorContext.IsWorkflowError&&Smile.Events.fire(Events.Action.WorkflowErrorOccurred);i.handleError(n,"")}).then(function(){return i.handleRequestCount(t.hideLoadingDialog)})},t.prototype.performDownloadBlob=function(t){var i=this,u=new n.AxiosRequestConfigBuilder(t.useCredentials).setAuthHeader(t.url,this.accessTokens).returnBlob().build(),r;this.incrementRequestCount();this.showLoadingDialog(!0,"Downloading...");r=this.axiosClient.get(t.url,u);r.then(function(n){return i.downloadFileContent(n,t.fileName,!0)}).catch(function(){return Smile.Modals.ErrorDialog.show("Error downloading document",null)}).then(function(){return i.handleRequestCount(!0)})},t.prototype.downloadFileContent=function(n,t,i,r){i===void 0&&(i=!1);r===void 0&&(r={});var f=window.URL.createObjectURL(new Blob([n.data],r)),u=document.createElement("a");i&&!t&&(t=this.getFileNameFromHeader(n));u.href=f;u.setAttribute("download",t);document.body.appendChild(u);u.click();document.body.removeChild(u)},t.prototype.replaceTabContentWithErrorMessage=function(n){var t=new Blob(["<h2>Sorry, an error occurred, please try again.<\/h2>"],{type:"text/html"});n.location=window.URL.createObjectURL(t)},t.prototype.getFileNameFromHeader=function(n){var i=n.headers["content-disposition"],t=/filename="(.*?)"/i.exec(i);return t&&t.length>1?t[1]:null},t.prototype.handleDownloadFileError=function(n){var t=new TextDecoder("utf-8");return JSON.parse(t.decode(n))},t.prototype.compressData=function(n,t){return t?n?pako.gzip(JSON.stringify(n),{level:9}):null:n},t.prototype.processResult=function(n,t){Ajax.AjaxRequestHandler.handleResult(n,t);Ajax.AjaxRequestHandler.processUiRules(n)},t.prototype.handleError=function(n,t,i){var r,u;(i===void 0&&(i=!0),i)&&(u=n.response?n.response.status:500,Ajax.AjaxRequestHandler.handleError(u,(r=n.response)===null||r===void 0?void 0:r.data,t))},t.prototype.incrementRequestCount=function(){Ajax.AjaxRequestHandler.requestCount++},t.prototype.firePreLoadEvent=function(n){Smile.Events.fire(Events.Action.CoreAJAXDataPreLoad,n)},t.prototype.showLoadingDialog=function(n,t){(n===void 0&&(n=!0),t===void 0&&(t=null),n)&&Smile.Events.fire(Events.Action.ShowLoadingDialog,t)},t.prototype.hideLoadingDialog=function(){Smile.Events.fire(Events.Action.HideLoadingDialog)},t.prototype.handleRequestCount=function(n){n===void 0&&(n=!0);Ajax.AjaxRequestHandler.handleRequestCount(n)},t}();n.HttpClient=t}(ExternalClientApi||(ExternalClientApi={}));Smile.ExternalClientApi.HttpClient=new ExternalClientApi.HttpClient(new ExternalClientApi.ExternalClientAuthService),function(n){var t=function(){function n(n,t){this.httpClient=t;this.requestConfig={handleErrors:!0,hideLoadingDialog:!0,showLoadingDialog:!0,url:n,useCredentials:!1,data:null,expectPdf:!1,enableGzip:!1,file:null,fileName:"",metadataHeaders:[],uploadProgressCallback:function(){}}}return n.prototype.withData=function(n){return this.requestConfig.data=n,this},n.prototype.withMetadataHeaders=function(n){return this.requestConfig.metadataHeaders=n,this},n.prototype.withUploadProgressCallback=function(n){return this.requestConfig.uploadProgressCallback=n,this},n.prototype.showLoadingDialog=function(n){return n===void 0&&(n=!0),this.requestConfig.showLoadingDialog=n,this},n.prototype.hideLoadingDialog=function(n){return n===void 0&&(n=!0),this.requestConfig.hideLoadingDialog=n,this},n.prototype.withCredentials=function(n){return n===void 0&&(n=!0),this.requestConfig.useCredentials=n,this},n.prototype.withGzipEnabled=function(n){return n===void 0&&(n=!0),this.requestConfig.enableGzip=n,this},n.prototype.expectPdf=function(n){return n===void 0&&(n=!0),this.requestConfig.expectPdf=n,this},n.prototype.handleError=function(n){return n===void 0&&(n=!0),this.requestConfig.handleErrors=n,this},n.prototype.get=function(){return this.httpClient.getJson(this.requestConfig)},n.prototype.post=function(){return this.httpClient.postJson(this.requestConfig)},n.prototype.uploadFile=function(){return this.httpClient.uploadFile(this.requestConfig)},n.prototype.downloadPdf=function(){return this.httpClient.downloadPdf(this.requestConfig)},n.prototype.downloadBlob=function(){return this.httpClient.downloadBlob(this.requestConfig)},n}();n.HttpRequestBuilder=t}(ExternalClientApi||(ExternalClientApi={})),function(n){var t=function(){function n(n){this.axiosRequestConfig={};this.axiosRequestConfig.headers={};this.axiosRequestConfig.withCredentials=n}return n.prototype.build=function(){return this.axiosRequestConfig},n.prototype.setAuthHeader=function(n,t){var i=this.getAccessTokenForUrl(n,t);return this.axiosRequestConfig.headers.Authorization=i?"Bearer ".concat(i):null,this},n.prototype.getAccessTokenForUrl=function(n,t){var i;return n.indexOf("/private/")>-1?t&&t.PrivateAccessToken?t.PrivateAccessToken.AccessToken:null:((i=t.PublicAccessToken)===null||i===void 0?void 0:i.Acce
1ssToken)?t.PublicAccessToken.AccessToken:null},n.prototype.setDataToParams=function(n){return this.axiosRequestConfig.params={request:JSON.stringify(n),cachebuster:Core.Guid.newGuid().toString()},this},n.prototype.expectPdf=function(n){return n?(this.axiosRequestConfig.responseType="arraybuffer",this.axiosRequestConfig.headers.Accept="application/pdf",this):this},n.prototype.enableGzip=function(n){return n?(this.axiosRequestConfig.headers["Content-Type"]="application/json; charset=utf-8",this.axiosRequestConfig.headers["Content-Encoding"]="gzip",this):this},n.prototype.returnBlob=function(){return this.axiosRequestConfig.responseType="blob",this.axiosRequestConfig.headers.Accept="application/octet-stream",this},n.prototype.setMetadataHeaders=function(n){var t=this;return(n===void 0&&(n=undefined),!n)?this:(n.forEach(function(n){t.axiosRequestConfig.headers[n.key]=n.value}),this)},n.prototype.setUploadProgressCallback=function(n){return n===void 0&&(n=undefined),this.axiosRequestConfig.onUploadProgress=n,this},n}();n.AxiosRequestConfigBuilder=t}(ExternalClientApi||(ExternalClientApi={}))

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