@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
1 lines • 30.1 kB
JavaScript
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9423],{83349:(t,e,r)=>{function n(t,e,r){r=r||2;var n,o,s,a,u,l,f,c=e&&e.length,y=c?e[0]*r:t.length,v=i(t,0,y,r,!0),_=[];if(!v||v.next===v.prev)return _;if(c&&(v=h(t,e,v,r)),t.length>80*r){n=s=t[0],o=a=t[1];for(var d=r;d<y;d+=r)(u=t[d])<n&&(n=u),(l=t[d+1])<o&&(o=l),u>s&&(s=u),l>a&&(a=l);f=0!==(f=Math.max(s-n,a-o))?1/f:0}return x(v,_,r,n,o,f),_}function i(t,e,r,n,i){var o,x;if(i===V(t,e,r,n)>0)for(o=e;o<r;o+=n)x=B(o,t[o],t[o+1],x);else for(o=r-n;o>=e;o-=n)x=B(o,t[o],t[o+1],x);if(x&&A(x,x.next)){var s=x.next;F(x),x=s}return x}function o(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!A(n,n.next)&&0!==w(n.prev,n,n.next))n=n.next;else{var i=n.prev;if(F(n),(n=e=i)===n.next)break;r=!0}}while(r||n!==e);return e}function x(t,e,r,n,i,h,f){if(t){!f&&h&&_(t,n,i,h);for(var c,y,v=t;t.prev!==t.next;)if(c=t.prev,y=t.next,h?a(t,n,i,h):s(t))e.push(c.i/r),e.push(t.i/r),e.push(y.i/r),F(t),t=y.next,v=y.next;else if((t=y)===v){f?1===f?x(t=u(o(t),e,r),e,r,n,i,h,2):2===f&&l(t,e,r,n,i,h):x(o(t),e,r,n,i,h,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(w(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(p(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&w(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function a(t,e,r,n){var i=t.prev,o=t,x=t.next;if(w(i,o,x)>=0)return!1;for(var s=i.x<o.x?i.x<x.x?i.x:x.x:o.x<x.x?o.x:x.x,a=i.y<o.y?i.y<x.y?i.y:x.y:o.y<x.y?o.y:x.y,u=i.x>o.x?i.x>x.x?i.x:x.x:o.x>x.x?o.x:x.x,l=i.y>o.y?i.y>x.y?i.y:x.y:o.y>x.y?o.y:x.y,h=d(s,a,e,r,n),f=d(u,l,e,r,n),c=t.prevZ,y=t.nextZ;c&&c.z>=h&&y&&y.z<=f;){if(c!==t.prev&&c!==t.next&&p(i.x,i.y,o.x,o.y,x.x,x.y,c.x,c.y)&&w(c.prev,c,c.next)>=0)return!1;if(c=c.prevZ,y!==t.prev&&y!==t.next&&p(i.x,i.y,o.x,o.y,x.x,x.y,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;c&&c.z>=h;){if(c!==t.prev&&c!==t.next&&p(i.x,i.y,o.x,o.y,x.x,x.y,c.x,c.y)&&w(c.prev,c,c.next)>=0)return!1;c=c.prevZ}for(;y&&y.z<=f;){if(y!==t.prev&&y!==t.next&&p(i.x,i.y,o.x,o.y,x.x,x.y,y.x,y.y)&&w(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function u(t,e,r){var n=t;do{var i=n.prev,x=n.next.next;!A(i,x)&&m(i,n,n.next,x)&&U(i,x)&&U(x,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(x.i/r),F(n),F(n.next),n=t=x),n=n.next}while(n!==t);return o(n)}function l(t,e,r,n,i,s){var a=t;do{for(var u=a.next.next;u!==a.prev;){if(a.i!==u.i&&g(a,u)){var l=b(a,u);return a=o(a,a.next),l=o(l,l.next),x(a,e,r,n,i,s),void x(l,e,r,n,i,s)}u=u.next}a=a.next}while(a!==t)}function h(t,e,r,n){var x,s,a,u=[];for(x=0,s=e.length;x<s;x++)(a=i(t,e[x]*n,x<s-1?e[x+1]*n:t.length,n,!1))===a.next&&(a.steiner=!0),u.push(T(a));for(u.sort(f),x=0;x<u.length;x++)r=o(r=y(u[x],r),r.next);return r}function f(t,e){return t.x-e.x}function c(t){if(t.next.prev===t)return t;let e=t;for(;;){const r=e.next;if(r.prev===e||r===e||r===t)break;e=r}return e}function y(t,e){var r=function(t,e){var r,n=e,i=t.x,o=t.y,x=-1/0;do{if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){var s=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>x){if(x=s,s===i){if(o===n.y)return n;if(o===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===x)return r;var a,u=r,l=r.x,h=r.y,f=1/0;n=r;do{i>=n.x&&n.x>=l&&i!==n.x&&p(o<h?i:x,o,l,h,o<h?x:i,o,n.x,n.y)&&(a=Math.abs(o-n.y)/(i-n.x),U(n,t)&&(a<f||a===f&&(n.x>r.x||n.x===r.x&&v(r,n)))&&(r=n,f=a)),n=n.next}while(n!==u);return r}(t,e);if(!r)return e;var n=b(r,t),i=o(r,r.next);let x=c(n);return o(x,x.next),i=c(i),c(e===r?i:e)}function v(t,e){return w(t.prev,t,e.prev)<0&&w(e.next,t,t.next)<0}function _(t,e,r,n){var i=t;do{null===i.z&&(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,o,x,s,a,u=1;do{for(r=t,t=null,o=null,x=0;r;){for(x++,n=r,s=0,e=0;e<u&&(s++,n=n.nextZ);e++);for(a=u;s>0||a>0&&n;)0!==s&&(0===a||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,a--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;r=n}o.nextZ=null,u*=2}while(x>1)}(i)}function d(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function T(t){var e=t,r=t;do{(e.x<r.x||e.x===r.x&&e.y<r.y)&&(r=e),e=e.next}while(e!==t);return r}function p(t,e,r,n,i,o,x,s){return(i-x)*(e-s)-(t-x)*(o-s)>=0&&(t-x)*(n-s)-(r-x)*(e-s)>=0&&(r-x)*(o-s)-(i-x)*(n-s)>=0}function g(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&m(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(U(t,e)&&U(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(w(t.prev,t,e.prev)||w(t,e.prev,e))||A(t,e)&&w(t.prev,t,t.next)>0&&w(e.prev,e,e.next)>0)}function w(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function A(t,e){return t.x===e.x&&t.y===e.y}function m(t,e,r,n){var i=R(w(t,e,r)),o=R(w(t,e,n)),x=R(w(r,n,t)),s=R(w(r,n,e));return i!==o&&x!==s||!(0!==i||!L(t,r,e))||!(0!==o||!L(t,n,e))||!(0!==x||!L(r,t,n))||!(0!==s||!L(r,e,n))}function L(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function R(t){return t>0?1:t<0?-1:0}function U(t,e){return w(t.prev,t,t.next)<0?w(t,e,t.next)>=0&&w(t,t.prev,e)>=0:w(t,e,t.prev)<0||w(t,t.next,e)<0}function b(t,e){var r=new N(t.i,t.x,t.y),n=new N(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function B(t,e,r,n){var i=new N(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function F(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function N(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function V(t,e,r,n){for(var i=0,o=e,x=r-n;o<r;o+=n)i+=(t[x]-t[o])*(t[o+1]+t[x+1]),x=o;return i}r.d(e,{e:()=>n}),n.deviation=function(t,e,r,n){var i=e&&e.length,o=i?e[0]*r:t.length,x=Math.abs(V(t,0,o,r));if(i)for(var s=0,a=e.length;s<a;s++){var u=e[s]*r,l=s<a-1?e[s+1]*r:t.length;x-=Math.abs(V(t,u,l,r))}var h=0;for(s=0;s<n.length;s+=3){var f=n[s]*r,c=n[s+1]*r,y=n[s+2]*r;h+=Math.abs((t[f]-t[y])*(t[c+1]-t[f+1])-(t[f]-t[c])*(t[y+1]-t[f+1]))}return 0===x&&0===h?0:Math.abs((h-x)/x)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var x=0;x<e;x++)r.vertices.push(t[i][o][x]);i>0&&(n+=t[i-1].length,r.holes.push(n))}return r}},32488:(t,e,r)=>{r.d(e,{A:()=>R});const n=[["(",")"],[")","("],["<",">"],[">","<"],["[","]"],["]","["],["{","}"],["}","{"],["«","»"],["»","«"],["‹","›"],["›","‹"],["⁽","⁾"],["⁾","⁽"],["₍","₎"],["₎","₍"],["≤","≥"],["≥","≤"],["〈","〉"],["〉","〈"],["﹙","﹚"],["﹚","﹙"],["﹛","﹜"],["﹜","﹛"],["﹝","﹞"],["﹞","﹝"],["﹤","﹥"],["﹥","﹤"]],i=["آ","أ","إ","ا"],o=["ﻵ","ﻷ","ﻹ","ﻻ"],x=["ﻶ","ﻸ","ﻺ","ﻼ"],s=["ا","ب","ت","ث","ج","ح","خ","د","ذ","ر","ز","س","ش","ص","ض","ط","ظ","ع","غ","ف","ق","ك","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ل","م","ن","ه","و","ي","إ","أ","آ","ة","ى","ی","ئ","ؤ"],a=["ﺍ","ﺏ","ﺕ","ﺙ","ﺝ","ﺡ","ﺥ","ﺩ","ﺫ","ﺭ","ﺯ","ﺱ","ﺵ","ﺹ","ﺽ","ﻁ","ﻅ","ﻉ","ﻍ","ﻑ","ﻕ","ﻙ","ﻝ","ﻡ","ﻥ","ﻩ","ﻭ","ﻱ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯼ","ﺉ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺉ","ﺅ"],u=["ﺎ","ﺐ","ﺖ","ﺚ","ﺞ","ﺢ","ﺦ","ﺪ","ﺬ","ﺮ","ﺰ","ﺲ","ﺶ","ﺺ","ﺾ","ﻂ","ﻆ","ﻊ","ﻎ","ﻒ","ﻖ","ﻚ","ﻞ","ﻢ","ﻦ","ﻪ","ﻮ","ﻲ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯽ","ﺊ","ﺆ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺊ","ﺆ"],l=["ﺎ","ﺒ","ﺘ","ﺜ","ﺠ","ﺤ","ﺨ","ﺪ","ﺬ","ﺮ","ﺰ","ﺴ","ﺸ","ﺼ","ﻀ","ﻄ","ﻈ","ﻌ","ﻐ","ﻔ","ﻘ","ﻜ","ﻠ","ﻤ","ﻨ","ﻬ","ﻮ","ﻴ","ﺈ","ﺄ","ﺂ","ﺔ","ﻰ","ﯿ","ﺌ","ﺆ","ﹱ","ﹲ","ﹴ","ﹷ","ﹹ","ﹻ","ﹽ","ﹿ","ﺀ","ﺌ","ﺆ"],h=["ﺍ","ﺑ","ﺗ","ﺛ","ﺟ","ﺣ","ﺧ","ﺩ","ﺫ","ﺭ","ﺯ","ﺳ","ﺷ","ﺻ","ﺿ","ﻃ","ﻇ","ﻋ","ﻏ","ﻓ","ﻗ","ﻛ","ﻟ","ﻣ","ﻧ","ﻫ","ﻭ","ﻳ","ﺇ","ﺃ","ﺁ","ﺓ","ﻯ","ﯾ","ﺋ","ﺅ","ﹰ","ﹲ","ﹴ","ﹶ","ﹸ","ﹺ","ﹼ","ﹾ","ﺀ","ﺋ","ﺅ"],f=["ء","آ","أ","ؤ","إ","ا","ة","د","ذ","ر","ز","و","ى"],c=["ً","ً","ٌ","؟","ٍ","؟","َ","َ","ُ","ُ","ِ","ِ","ّ","ّ","ْ","ْ","ء","آ","آ","أ","أ","ؤ","ؤ","إ","إ","ئ","ئ","ئ","ئ","ا","ا","ب","ب","ب","ب","ة","ة","ت","ت","ت","ت","ث","ث","ث","ث","ج","ج","ج","ج","ح","ح","ح","ح","خ","خ","خ","خ","د","د","ذ","ذ","ر","ر","ز","ز","س","س","س","س","ش","ش","ش","ش","ص","ص","ص","ص","ض","ض","ض","ض","ط","ط","ط","ط","ظ","ظ","ظ","ظ","ع","ع","ع","ع","غ","غ","غ","غ","ف","ف","ف","ف","ق","ق","ق","ق","ك","ك","ك","ك","ل","ل","ل","ل","م","م","م","م","ن","ن","ن","ن","ه","ه","ه","ه","و","و","ى","ى","ي","ي","ي","ي","ﻵ","ﻶ","ﻷ","ﻸ","ﻹ","ﻺ","ﻻ","ﻼ","؟","؟","؟"],y=["ء","ف"],v=["غ","ي"],_=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,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,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,4,4,w],[4,4,4,p,p,p,4,4,4,4,4,T,9,T,9,9,2,2,2,2,2,2,2,2,2,2,9,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,0,0,0,4,4,0,0,0,4,4,4,p,p,4,4,4,p,p,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4]];class R{constructor(){this.inputFormat="ILYNN",this.outputFormat="VLNNN",this.sourceToTarget=[],this.targetToSource=[],this.levels=[]}bidiTransform(t,e,r){if(this.sourceToTarget=[],this.targetToSource=[],!t)return"";if(function(t,e,r){q=[],X=[];for(let n=0;n<r;n++)t[n]=n,e[n]=n,q[n]=n}(this.sourceToTarget,this.targetToSource,t.length),!this.checkParameters(e,r))return t;e=this.inputFormat,r=this.outputFormat;let n=t;const s=$,l=j(e.charAt(1)),f=j(r.charAt(1)),y=("I"===e.charAt(0)?"L":e.charAt(0))+l,v=("I"===r.charAt(0)?"L":r.charAt(0))+f,_=e.charAt(2)+r.charAt(2);s.defInFormat=y,s.defOutFormat=v,s.defSwap=_;const d=U(t,y,v,_,s);let T=!1;return"R"===r.charAt(1)?T=!0:"C"!==r.charAt(1)&&"D"!==r.charAt(1)||(T="rtl"===this.checkContextual(d)),this.sourceToTarget=q,this.targetToSource=function(t){const e=new Array(t.length);for(let r=0;r<t.length;r++)e[t[r]]=r;return e}(this.sourceToTarget),Q=this.targetToSource,n=e.charAt(3)===r.charAt(3)?d:"S"===r.charAt(3)?function(t,e){if(0===e.length)return"";void 0===t&&(t=!0);const r=(e=String(e)).split("");let n=0,i=1,s=r.length;t||(n=r.length-1,i=-1,s=1);const l=function(t,e,r,n){let i=0;const s=[];let l=0;for(let f=e;f*r<n;f+=r)if(E(t[f])||J(t[f])){if("ل"===t[f]&&Z(t,f+r,r,n)){t[f]=W(t[f+r],0===i?o:x),f+=r,P(t,f,r,n),s[l]=f,l++,i=0;continue}const e=t[f];1===i?t[f]=M(t,f+r,r,n)?I(t[f]):z(t[f],u):!0===M(t,f+r,r,n)?t[f]=z(t[f],h):t[f]=z(t[f],a),J(e)||(i=1),!0===D(e)&&(i=0)}else i=0;return s}(r,n,i,s);let f="";for(let e=0;e<r.length;e++)S(l,l.length,e)>-1?(Y(Q,e,!t,-1),q.splice(e,1)):f+=r[e];return f}(T,d):function(t,e){if(0===t.length)return"";void 0===e&&(e=!0);let r="";const n=(t=String(t)).split("");for(let o=0;o<t.length;o++){let x=!1;if(n[o]>="ﹰ"&&n[o]<"\ufeff"){const s=t.charCodeAt(o);n[o]>="ﻵ"&&n[o]<="ﻼ"?(e?(o>0&&" "===n[o-1]?r=r.slice(0,-1)+"ل":(r+="ل",x=!0),r+=i[(s-65269)/2]):(r+=i[(s-65269)/2],r+="ل",o+1<t.length&&" "===n[o+1]?o++:x=!0),x&&(Y(Q,o,!0,1),q.splice(o,0,q[o]))):r+=c[s-65136]}else r+=n[o]}return r}(d,T),this.sourceToTarget=q,this.targetToSource=Q,this.levels=X,n}_inputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.inputFormat=t}_outputFormatSetter(t){if(!et.test(t))throw new Error("dojox/string/BidiEngine: the bidi layout string is wrong!");this.outputFormat=t}checkParameters(t,e){return t?this._inputFormatSetter(t):t=this.inputFormat,e?this._outputFormatSetter(e):e=this.outputFormat,t!==e}checkContextual(t){let e=b(t);if("ltr"!==e&&"rtl"!==e){try{e=document.dir.toLowerCase()}catch(t){}"ltr"!==e&&"rtl"!==e&&(e="ltr")}return e}hasBidiChar(t){return rt.test(t)}}function U(t,e,r,n,i){const o=function(t,e,r){if(void 0===e.inFormat&&(e.inFormat=r.defInFormat),void 0===e.outFormat&&(e.outFormat=r.defOutFormat),void 0===e.swap&&(e.swap=r.defSwap),e.inFormat===e.outFormat)return e;const n=e.inFormat.slice(0,1),i=e.outFormat.slice(0,1);let o,x=e.inFormat.slice(1,4),s=e.outFormat.slice(1,4);return"C"===x.charAt(0)&&(o=b(t),x="ltr"===o||"rtl"===o?o.toUpperCase():"L"===e.inFormat.charAt(2)?"LTR":"RTL",e.inFormat=n+x),"C"===s.charAt(0)&&(o=b(t),"rtl"===o?s="RTL":"ltr"===o?(o=function(t){const e=t.split("");return e.reverse(),b(e.join(""))}(t),s=o.toUpperCase()):s="L"===e.outFormat.charAt(2)?"LTR":"RTL",e.outFormat=i+s),e}(t,{inFormat:e,outFormat:r,swap:n},i);if(o.inFormat===o.outFormat)return t;e=o.inFormat,r=o.outFormat,n=o.swap;const x=e.slice(0,1),s=e.slice(1,4),a=r.slice(0,1),u=r.slice(1,4);if(i.inFormat=e,i.outFormat=r,i.swap=n,"L"===x&&"VLTR"===r){if("LTR"===s)return i.dir=K,B(t,i);if("RTL"===s)return i.dir=tt,B(t,i)}if("V"===x&&"V"===a)return i.dir="RTL"===s?tt:K,V(t,i);if("L"===x&&"VRTL"===r)return"LTR"===s?(i.dir=K,t=B(t,i)):(i.dir=tt,t=B(t,i)),V(t);if("VLTR"===e&&"LLTR"===r)return i.dir=K,B(t,i);if("V"===x&&"L"===a&&s!==u)return t=V(t),"RTL"===s?U(t,"LLTR","VLTR",n,i):U(t,"LRTL","VRTL",n,i);if("VRTL"===e&&"LRTL"===r)return U(t,"LRTL","VRTL",n,i);if("L"===x&&"L"===a){const e=i.swap;return i.swap=e.slice(0,1)+"N","RTL"===s?(i.dir=tt,t=B(t,i),i.swap="N"+e.slice(1,3),i.dir=K,t=B(t,i)):(i.dir=K,t=B(t,i),i.swap="N"+e.slice(1,3),t=U(t,"VLTR","LRTL",i.swap,i)),t}return t}function b(t){const e=/[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(t);return e?e[0]<="z"?"ltr":"rtl":""}function B(t,e){const r=t.split(""),n=[];return F(r,n,e),function(t,e,r){if(0!==r.hiLevel&&r.swap[0]!==r.swap[1])for(let r=0;r<t.length;r++)1===e[r]&&(t[r]=C(t[r]))}(r,n,e),k(2,r,n,e),k(1,r,n,e),X=n,r.join("")}function F(t,e,r){const n=t.length,i=r.dir?d:_;let o=0,x=-1;const s=[],a=[];r.hiLevel=r.dir,r.lastArabic=!1,r.hasUbatAl=!1,r.hasUbatB=!1,r.hasUbatS=!1;for(let e=0;e<n;e++)s[e]=N(t[e]);for(let u=0;u<n;u++){const n=o,l=O(t,s,a,u,r);a[u]=l,o=i[n][l];const h=240&o;o&=15;const f=i[o][G];if(e[u]=f,h>0)if(16===h){for(let t=x;t<u;t++)e[t]=1;x=-1}else x=-1;if(i[o][H])-1===x&&(x=u);else if(x>-1){for(let t=x;t<u;t++)e[t]=f;x=-1}5===s[u]&&(e[u]=0),r.hiLevel|=f}r.hasUbatS&&function(t,e,r,n){for(let i=0;i<r;i++)if(6===t[i]){e[i]=n.dir;for(let r=i-1;r>=0&&8===t[r];r--)e[r]=n.dir}}(s,e,n,r)}function N(t){const e=t.charCodeAt(0),r=m[e>>8];return r<100?r:L[r-100][255&e]}function V(t,e){const r=t.split("");if(e){const t=[];F(r,t,e),X=t}return r.reverse(),q.reverse(),r.join("")}function S(t,e,r){for(let n=0;n<e;n++)if(t[n]===r)return n;return-1}function E(t){for(let e=0;e<y.length;e++)if(t>=y[e]&&t<=v[e])return!0;return!1}function M(t,e,r,n){for(;e*r<n&&J(t[e]);)e+=r;return!!(e*r<n&&E(t[e]))}function Z(t,e,r,n){for(;e*r<n&&J(t[e]);)e+=r;let o=" ";if(!(e*r<n))return!1;o=t[e];for(let t=0;t<i.length;t++)if(i[t]===o)return!0;return!1}function k(t,e,r,n){if(n.hiLevel<t)return;if(1===t&&n.dir===tt&&!n.hasUbatB)return e.reverse(),void q.reverse();const i=e.length;let o,x,s,a,u,l=0;for(;l<i;){if(r[l]>=t){for(o=l+1;o<i&&r[o]>=t;)o++;for(x=l,s=o-1;x<s;x++,s--)a=e[x],e[x]=e[s],e[s]=a,u=q[x],q[x]=q[s],q[s]=u;l=o}l++}}function O(t,e,r,n,i){const o=e[n];return{UBAT_L:()=>(i.lastArabic=!1,0),UBAT_R:()=>(i.lastArabic=!1,1),UBAT_ON:()=>4,UBAT_AN:()=>3,UBAT_EN:()=>i.lastArabic?3:2,UBAT_AL:()=>(i.lastArabic=!0,i.hasUbatAl=!0,1),UBAT_WS:()=>4,UBAT_CS:()=>{let t,o;return n<1||n+1>=e.length||2!==(t=r[n-1])&&3!==t||2!==(o=e[n+1])&&3!==o?4:(i.lastArabic&&(o=3),o===t?o:4)},UBAT_ES:()=>2===(n>0?r[n-1]:5)&&n+1<e.length&&2===e[n+1]?2:4,UBAT_ET:()=>{if(n>0&&2===r[n-1])return 2;if(i.lastArabic)return 4;let t=n+1;const o=e.length;for(;t<o&&e[t]===p;)t++;return t<o&&2===e[t]?2:4},UBAT_NSM:()=>{if("VLTR"===i.inFormat){const r=e.length;let i=n+1;for(;i<r&&e[i]===g;)i++;if(i<r){const r=t[n].charCodeAt(0),o=r>=1425&&r<=2303||64286===r,x=e[i];if(o&&(1===x||7===x))return 1}}return n<1||5===e[n-1]?4:r[n-1]},UBAT_B:()=>(i.lastArabic=!0,i.hasUbatB=!0,i.dir),UBAT_S:()=>(i.hasUbatS=!0,4),UBAT_LRE:()=>(i.lastArabic=!1,4),UBAT_RLE:()=>(i.lastArabic=!1,4),UBAT_LRO:()=>(i.lastArabic=!1,4),UBAT_RLO:()=>(i.lastArabic=!1,4),UBAT_PDF:()=>(i.lastArabic=!1,4),UBAT_BN:()=>4}[A[o]]()}function C(t){let e,r=0,i=n.length-1;for(;r<=i;)if(e=Math.floor((r+i)/2),t<n[e][0])i=e-1;else{if(!(t>n[e][0]))return n[e][1];r=e+1}return t}function D(t){for(let e=0;e<f.length;e++)if(f[e]===t)return!0;return!1}function I(t){for(let e=0;e<s.length;e++)if(t===s[e])return l[e];return t}function z(t,e){for(let r=0;r<s.length;r++)if(t===s[r])return e[r];return t}function J(t){return t>="ً"&&t<="ٕ"}function j(t){return"L"===t?"LTR":"R"===t?"RTL":"C"===t?"CLR":"D"===t?"CRL":""}function P(t,e,r,n){for(;e*r<n&&J(t[e]);)e+=r;return e*r<n&&(t[e]=" ",!0)}function W(t,e){for(let r=0;r<i.length;r++)if(t===i[r])return e[r];return t}function Y(t,e,r,n){for(let i=0;i<t.length;i++)(t[i]>e||!r&&t[i]===e)&&(t[i]+=n)}let q=[],Q=[],X=[];const $={dir:0,defInFormat:"LLTR",defoutFormat:"VLTR",defSwap:"YN",inFormat:"LLTR",outFormat:"VLTR",swap:"YN",hiLevel:0,lastArabic:!1,hasUbatAl:!1,hasBlockSep:!1,hasSegSep:!1,defOutFormat:""},G=5,H=6,K=0,tt=1,et=/^[(I|V)][(L|R|C|D)][(Y|N)][(S|N)][N]$/,rt=/[\u0591-\u06ff\ufb1d-\ufefc]/},15585:(t,e,r)=>{r.d(e,{F:()=>a,l:()=>u});var n=r(2741),i=r(44208);const o=128e3;let x=null,s=null;async function a(){return x||(x=async function(){const t=(0,i.A)("esri-csp-restrictions")?await r.e(177).then(r.bind(r,50177)).then((t=>t.l)):await r.e(3091).then(r.bind(r,13091)).then((t=>t.l));s=await t.default({locateFile:t=>(0,n.s)(`esri/core/libs/libtess/${t}`)})}()),x}function u(t,e){const r=Math.max(t.length,o);return s.triangulate(t,e,r)}},18989:(t,e,r)=>{r.d(e,{A:()=>n});class n{constructor(t=0,e=0,r=0,n=0){this.x=t,this.y=e,this.width=r,this.height=n}get isEmpty(){return this.width<=0||this.height<=0}union(t){this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.width=Math.max(this.width,t.width),this.height=Math.max(this.height,t.height)}}},83773:(t,e,r)=>{r.d(e,{i:()=>y});var n=r(15294),i=r(76213);function o(t,e){return t.x===e.x&&t.y===e.y}function x(t){if(!t)return;const e=t.length;if(e<=1)return;let r=0;for(let n=1;n<e;n++)o(t[n],t[r])||++r===n||(t[r]=t[n]);t.length=r+1}function s(t,e){return t.x=e.y,t.y=-e.x,t}function a(t,e){return t.x=-e.y,t.y=e.x,t}function u(t,e){return t.x=e.x,t.y=e.y,t}function l(t,e){return t.x=-e.x,t.y=-e.y,t}function h(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function f(t,e){return t.x*e.x+t.y*e.y}function c(t,e,r,n){return t.x=e.x*r+e.y*n,t.y=e.x*n-e.y*r,t}class y{constructor(t,e,r){this._writeVertex=t,this._writeTriangle=e,this._canUseThinTessellation=r,this._prevNormal={x:void 0,y:void 0},this._nextNormal={x:void 0,y:void 0},this._textureNormalLeft={x:0,y:1},this._textureNormalRight={x:0,y:-1},this._textureNormal={x:void 0,y:void 0},this._joinNormal={x:void 0,y:void 0},this._inner={x:void 0,y:void 0},this._outer={x:void 0,y:void 0},this._roundStart={x:void 0,y:void 0},this._roundEnd={x:void 0,y:void 0},this._startBreak={x:void 0,y:void 0},this._endBreak={x:void 0,y:void 0},this._innerPrev={x:void 0,y:void 0},this._innerNext={x:void 0,y:void 0},this._bevelStart={x:void 0,y:void 0},this._bevelEnd={x:void 0,y:void 0},this._bevelMiddle={x:void 0,y:void 0}}tessellate(t,e,r=this._canUseThinTessellation){x(t),r&&e.halfWidth<i.Gh&&!e.offset?this._tessellateThin(t,e):this._tessellate(t,e)}_tessellateThin(t,e){if(t.length<2)return;const r=e.wrapDistance||65535;let n=e.initialDistance||0,i=!1,o=t[0].x,x=t[0].y;const s=t.length;for(let e=1;e<s;++e){i&&(i=!1,n=0);let s=t[e].x,a=t[e].y,u=s-o,l=a-x,h=Math.sqrt(u*u+l*l);if(u/=h,l/=h,n+h>r){i=!0;const t=(r-n)/h;h=r-n,s=(1-t)*o+t*s,a=(1-t)*x+t*a,--e}const f=this._writeVertex(o,x,0,0,u,l,l,-u,0,-1,n),c=this._writeVertex(o,x,0,0,u,l,-l,u,0,1,n);n+=h;const y=this._writeVertex(s,a,0,0,u,l,l,-u,0,-1,n),v=this._writeVertex(s,a,0,0,u,l,-l,u,0,1,n);this._writeTriangle(f,c,y),this._writeTriangle(c,y,v),o=s,x=a}}_tessellate(t,e){const r=t[0],i=t[t.length-1],x=o(r,i),y=x?3:2;if(t.length<y)return;const v=e.pixelCoordRatio,_=null!=e.capType?e.capType:n.xR.BUTT,d=null!=e.joinType?e.joinType:n.JO.MITER,T=null!=e.miterLimit?Math.min(e.miterLimit,4):2,p=null!=e.roundLimit?Math.min(e.roundLimit,1.05):1.05,g=null!=e.halfWidth?e.halfWidth:2,w=!!e.textured;let A,m,L,R=null;const U=this._prevNormal,b=this._nextNormal;let B=-1,F=-1;const N=this._joinNormal;let V,S;const E=this._textureNormalLeft,M=this._textureNormalRight,Z=this._textureNormal;let k=-1,O=-1;const C=e.wrapDistance||65535;let D=e.initialDistance||0;const I=this._writeVertex,z=this._writeTriangle,J=(t,e,r,n,i,o)=>{const x=I(m,L,V,S,r,n,t,e,i,o,D);return k>=0&&O>=0&&x>=0&&z(k,O,x),k=O,O=x,x};x&&(A=t[t.length-2],b.x=i.x-A.x,b.y=i.y-A.y,F=h(b),b.x/=F,b.y/=F);let j=!1;for(let e=0;e<t.length;++e){if(j&&(j=!1,D=0),A&&(U.x=-b.x,U.y=-b.y,B=F,D+B>C&&(j=!0)),j){const r=(C-D)/B;B=C-D,A={x:(1-r)*A.x+r*t[e].x,y:(1-r)*A.y+r*t[e].y},--e}else A=t[e];m=A.x,L=A.y;const r=e<=0&&!j,i=e===t.length-1;if(r||(D+=B),R=i?x?t[1]:null:t[e+1],R?(b.x=R.x-m,b.y=R.y-L,F=h(b),b.x/=F,b.y/=F):(b.x=void 0,b.y=void 0),!x){if(r){a(N,b),V=N.x,S=N.y,_===n.xR.SQUARE&&(J(-b.y-b.x,b.x-b.y,b.x,b.y,0,-1),J(b.y-b.x,-b.x-b.y,b.x,b.y,0,1)),_===n.xR.ROUND&&(J(-b.y-b.x,b.x-b.y,b.x,b.y,-1,-1),J(b.y-b.x,-b.x-b.y,b.x,b.y,-1,1)),_!==n.xR.ROUND&&_!==n.xR.BUTT||(J(-b.y,b.x,b.x,b.y,0,-1),J(b.y,-b.x,b.x,b.y,0,1));continue}if(i){s(N,U),V=N.x,S=N.y,_!==n.xR.ROUND&&_!==n.xR.BUTT||(J(U.y,-U.x,-U.x,-U.y,0,-1),J(-U.y,U.x,-U.x,-U.y,0,1)),_===n.xR.SQUARE&&(J(U.y-U.x,-U.x-U.y,-U.x,-U.y,0,-1),J(-U.y-U.x,U.x-U.y,-U.x,-U.y,0,1)),_===n.xR.ROUND&&(J(U.y-U.x,-U.x-U.y,-U.x,-U.y,1,-1),J(-U.y-U.x,U.x-U.y,-U.x,-U.y,1,1));continue}}let o,y,I=(W=b,-((P=U).x*W.y-P.y*W.x));if(Math.abs(I)<.01)f(U,b)>0?(N.x=U.x,N.y=U.y,I=1,o=Number.MAX_VALUE,y=!0):(a(N,b),I=1,o=1,y=!1);else{N.x=(U.x+b.x)/I,N.y=(U.y+b.y)/I,o=h(N);const t=(o-1)*g*v;y=o>4||t>B&&t>F}V=N.x,S=N.y;let z=d;switch(d){case n.JO.BEVEL:o<1.05&&(z=n.JO.MITER);break;case n.JO.ROUND:o<p&&(z=n.JO.MITER);break;case n.JO.MITER:o>T&&(z=n.JO.BEVEL)}switch(z){case n.JO.MITER:if(J(N.x,N.y,-U.x,-U.y,0,-1),J(-N.x,-N.y,-U.x,-U.y,0,1),i)break;if(w){const t=j?0:D;k=this._writeVertex(m,L,V,S,b.x,b.y,N.x,N.y,0,-1,t),O=this._writeVertex(m,L,V,S,b.x,b.y,-N.x,-N.y,0,1,t)}break;case n.JO.BEVEL:{const t=I<0;let e,r,n,o;if(t){const t=k;k=O,O=t,e=E,r=M}else e=M,r=E;if(y)n=t?a(this._innerPrev,U):s(this._innerPrev,U),o=t?s(this._innerNext,b):a(this._innerNext,b);else{const e=t?l(this._inner,N):u(this._inner,N);n=e,o=e}const x=t?s(this._bevelStart,U):a(this._bevelStart,U);J(n.x,n.y,-U.x,-U.y,e.x,e.y);const h=J(x.x,x.y,-U.x,-U.y,r.x,r.y);if(i)break;const f=t?a(this._bevelEnd,b):s(this._bevelEnd,b);if(y){const t=this._writeVertex(m,L,V,S,-U.x,-U.y,0,0,0,0,D);k=this._writeVertex(m,L,V,S,b.x,b.y,o.x,o.y,e.x,e.y,D),O=this._writeVertex(m,L,V,S,b.x,b.y,f.x,f.y,r.x,r.y,D),this._writeTriangle(h,t,O)}else{if(w){const t=this._bevelMiddle;t.x=(x.x+f.x)/2,t.y=(x.y+f.y)/2,c(Z,t,-U.x,-U.y),J(t.x,t.y,-U.x,-U.y,Z.x,Z.y),c(Z,t,b.x,b.y),k=this._writeVertex(m,L,V,S,b.x,b.y,t.x,t.y,Z.x,Z.y,D),O=this._writeVertex(m,L,V,S,b.x,b.y,o.x,o.y,e.x,e.y,D)}else{const t=k;k=O,O=t}J(f.x,f.y,b.x,b.y,r.x,r.y)}if(t){const t=k;k=O,O=t}break}case n.JO.ROUND:{const t=I<0;let e,r;if(t){const t=k;k=O,O=t,e=E,r=M}else e=M,r=E;const n=t?l(this._inner,N):u(this._inner,N);let x,h;y?(x=t?a(this._innerPrev,U):s(this._innerPrev,U),h=t?s(this._innerNext,b):a(this._innerNext,b)):(x=n,h=n);const v=t?s(this._roundStart,U):a(this._roundStart,U),_=t?a(this._roundEnd,b):s(this._roundEnd,b),d=J(x.x,x.y,-U.x,-U.y,e.x,e.y),T=J(v.x,v.y,-U.x,-U.y,r.x,r.y);if(i)break;const p=this._writeVertex(m,L,V,S,-U.x,-U.y,0,0,0,0,D);y||this._writeTriangle(k,O,p);const g=l(this._outer,n),A=this._writeVertex(m,L,V,S,b.x,b.y,_.x,_.y,r.x,r.y,D);let R,B;const F=o>2;if(F){let e;o!==Number.MAX_VALUE?(g.x/=o,g.y/=o,e=f(U,g),e=(o*(e*e-1)+1)/e):e=-1,R=t?s(this._startBreak,U):a(this._startBreak,U),R.x+=U.x*e,R.y+=U.y*e,B=t?a(this._endBreak,b):s(this._endBreak,b),B.x+=b.x*e,B.y+=b.y*e}c(Z,g,-U.x,-U.y);const C=this._writeVertex(m,L,V,S,-U.x,-U.y,g.x,g.y,Z.x,Z.y,D);c(Z,g,b.x,b.y);const z=w?this._writeVertex(m,L,V,S,b.x,b.y,g.x,g.y,Z.x,Z.y,D):C,j=p,P=w?this._writeVertex(m,L,V,S,b.x,b.y,0,0,0,0,D):p;let W=-1,Y=-1;if(F&&(c(Z,R,-U.x,-U.y),W=this._writeVertex(m,L,V,S,-U.x,-U.y,R.x,R.y,Z.x,Z.y,D),c(Z,B,b.x,b.y),Y=this._writeVertex(m,L,V,S,b.x,b.y,B.x,B.y,Z.x,Z.y,D)),w?F?(this._writeTriangle(j,T,W),this._writeTriangle(j,W,C),this._writeTriangle(P,z,Y),this._writeTriangle(P,Y,A)):(this._writeTriangle(j,T,C),this._writeTriangle(P,z,A)):F?(this._writeTriangle(p,T,W),this._writeTriangle(p,W,Y),this._writeTriangle(p,Y,A)):(this._writeTriangle(p,T,C),this._writeTriangle(p,z,A)),y?(k=this._writeVertex(m,L,V,S,b.x,b.y,h.x,h.y,e.x,e.y,D),O=A):(k=w?this._writeVertex(m,L,V,S,b.x,b.y,h.x,h.y,e.x,e.y,D):d,this._writeTriangle(k,P,A),O=A),t){const t=k;k=O,O=t}break}}}var P,W}}}}]);