PageSourceSearch

https://partecipazioni.emr.it/decidim-packs/js/5157-2b9cc19d331f7128bc90.chunk.js

js partecipazioni.emr.it collected 2026-09-24 10:38:24 UTC 3,630 bytes, 4 lines download raw bytes

1(self.webpackChunkpartecipazioni=self.webpackChunkpartecipazioni||[]).push([[5157],{25157:(function(q,D,E){(function(r){r(E(43422))})(function(r){var w={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},f=r.Pos;r.defineOption("autoCloseBrackets",!1,function(e,t,n){n&&n!=r.Init&&(e.removeKeyMap(c),e.state.closeBrackets=null),t&&(R(k(t,"pairs")),e.state.closeBrackets=t,e.addKeyMap(c))});function k(e,t){return t=="pairs"&&typeof e=="string"?e:typeof e=="object"&&e[t]!=null?e[t]:w[t]}var c={Backspace:F,Enter:K};function R(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),i="'"+n+"'";c[i]||(c[i]=z(n))}}R(w.pairs+"`");function z(e){return function(t){return W(t,e)}}function B(e){var t=e.state.closeBrackets;if(!t||t.override)return t;var n=e.getModeAt(e.getCursor());return n.closeBrackets||t}function F(e){var t=B(e);if(!t||e.getOption("disableInput"))return r.Pass;for(var n=k(t,"pairs"),i=e.listSelections(),a=0;a<i.length;a++){if(!i[a].empty())return r.Pass;var o=x(e,i[a].head);if(!o||n.indexOf(o)%2!=0)return r.Pass}for(var a=i.length-1;a>=0;a--){var l=i[a].head;e.replaceRange("",f(l.line,l.ch-1),f(l.line,l.ch+1),"+delete")}}function K(e){var t=B(e),n=t&&k(t,"explode");if(!n||e.getOption("disableInput"))return r.Pass;for(var i=e.listSelections(),a=0;a<i.length;a++){if(!i[a].empty())return r.Pass;var o=x(e,i[a].head);if(!o||n.indexOf(o)%2!=0)return r.Pass}e.operation(function(){var l=e.lineSeparator()||`
2`;e.replaceSelection(l+l,null),S(e,-1),i=e.listSelections();for(var h=0;h<i.length;h++){var b=i[h].head.line;e.indentLine(b,null,!0),e.indentLine(b+1,null,!0)}})}function S(e,t){for(var n=[],i=e.listSelections(),a=0,o=0;o<i.length;o++){var l=i[o];l.head==e.getCursor()&&(a=o);var h=l.head.ch||t>0?{line:l.head.line,ch:l.head.ch+t}:{line:l.head.line-1};n.push({anchor:h,head:h})}e.setSelections(n,a)}function L(e){var t=r.cmpPos(e.anchor,e.head)>0;return{anchor:new f(e.anchor.line,e.anchor.ch+(t?-1:1)),head:new f(e.head.line,e.head.ch+(t?1:-1))}}function W(e,t){var n=B(e);if(!n||e.getOption("disableInput"))return r.Pass;var i=k(n,"pairs"),a=i.indexOf(t);if(a==-1)return r.Pass;for(var o=k(n,"closeBefore"),l=k(n,"triples"),h=i.charAt(a+1)==t,b=e.listSelections(),O=a%2==0,g,A=0;A<b.length;A++){var y=b[A],s=y.head,v,P=e.getRange(s,f(s.line,s.ch+1));if(O&&!y.empty())v="surround";else if((h||!O)&&P==t)h&&j(e,s)?v="both":l.indexOf(t)>=0&&e.getRange(s,f(s.line,s.ch+3))==t+t+t?v="skipThree":v="skip";else if(h&&s.ch>1&&l.indexOf(t)>=0&&e.getRange(f(s.line,s.ch-2),s)==t+t){if(s.ch>2&&/\bstring/.test(e.getTokenTypeAt(f(s.line,s.ch-2))))return r.Pass;v="addFour"}else if(h){var I=s.ch==0?" ":e.getRange(f(s.line,s.ch-1),s);if(!r.isWordChar(P)&&I!=t&&!r.isWordChar(I))v="both";else return r.Pass}else if(O&&(P.length===0||/\s/.test(P)||o.indexOf(P)>-1))v="both";else return r.Pass;if(!g)g=v;else if(g!=v)return r.Pass}var d=a%2?i.charAt(a-1):t,_=a%2?t:i.charAt(a+1);e.operation(function(){if(g=="skip")S(e,1);else if(g=="skipThree")S(e,3);else if(g=="surround"){for(var p=e.getSelections(),u=0;u<p.length;u++)p[u]=d+p[u]+_;e.replaceSelections(p,"around"),p=e.listSelections().slice();for(var u=0;u<p.length;u++)p[u]=L(p[u]);e.setSelections(p)}else g=="both"?(e.replaceSelection(d+_,null),e.triggerElectric(d+_),S(e,-1)):g=="addFour"&&(e.replaceSelection(d+d+d+d,"before"),S(e,1))})}function x(e,t){var n=e.getRange(f(t.line,t.ch-1),f(t.line,t.ch+1));return n.length==2?n:null}function j(e,t){var n=e.getTokenAt(f(t.line,t.ch+1));return/\bstring/.test(n.type)&&n.start==t.ch&&(t.ch==0||!/\bstring/.test(e.getTokenTypeAt(t)))}})})}]);
3
4//# sourceMappingURL=5157-2b9cc19d331f7128bc90.chunk.js.map

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.